/*! modernizr 3.5.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-applicationcache-audio-backgroundsize-borderimage-borderradius-boxshadow-canvas-canvastext-cssanimations-csscalc-csscolumns-cssfilters-cssgradients-csspointerevents-cssreflections-csstransforms-csstransforms3d-csstransitions-flexbox-flexboxlegacy-fontface-generatedcontent-geolocation-hashchange-history-hsla-indexeddb-inlinesvg-input-inputtypes-localstorage-multiplebgs-objectfit-opacity-postmessage-rgba-sessionstorage-smil-svg-svgasimg-svgclippaths-textshadow-video-webgl-websockets-websqldatabase-webworkers-domprefixes-hasevent-prefixes-setclasses-testallprops-testprop-teststyles !*/
function xmlToJson(n){var t={},r,e,u,f,i,o;if(n.nodeType==1){if(n.attributes.length>0)for(r=0;r<n.attributes.length;r++)e=n.attributes.item(r),t[e.nodeName]=e.nodeValue}else n.nodeType==3&&(t=n.nodeValue);if(n.hasChildNodes())for(u=0;u<n.childNodes.length;u++)f=n.childNodes.item(u),i=f.nodeName,typeof t[i]=="undefined"?t[i]=xmlToJson(f):(typeof t[i].push=="undefined"&&(o=t[i],t[i]=[],t[i].push(o)),t[i].push(xmlToJson(f)));return t}function payoneIFrameCheckCallBack(n){payoneIFrames.checkCallback(n)}var DateFormatter,datetimepickerFactory,mejs,swfobject,FSIModule,ImageSet,ImagePreloader,ImageLoadingItem,contentHeaderPreload,eventAggregator,DS,DependencySystem,LCS,LifeCycleSystem,ajaxDomHelper,componentManager,sniff,fixes,utils,debugTools,JQueryPlugins,Navigation,Scrolling,Toggles,WebData,Slideshows,App,Sidebar,sidebarNavigation,__extends,modalManager,stageCollection,loadingResources,videoHandlers,videoHandlerHelper,Debug,timeMachineHandler,tooltipBoxHandler,imageMapHandler,initTabsHandler,radioGroupAccordionHandler,
paymentTypesHandler,bottomSliderHandlers,selectBoxHandler,carouselCrosssellingHandler,ArticleTemplates,ArticleDetails,detailsPage,addressSelect,ajaxFormHandler,initializeModelSwitcherHandler,inputDataTypesHandler,inputTypesHandler,footerPositionHandler,pageScrollingHandler,carouselManager,sideNav,linklistHandler,dropdownTypeaheadHandler,footerHandler,scrollableBlock,sliderHandler,buttonHandler,iframeHandler,contentTopHandler,Category,postMessageHelper,salesTeaserHandler,inputClearButtons,linksWithChildWindowHandler,formFieldBinder,Images,unveilHandler,videoOverlayAutoplay,videoOverlayResizer,payoneIFrames,Common,jobListing,logoClaimFadeHandler,loadingSpinner,PageElements;!function(n,t,i){function c(n,t){return typeof n===t}function ti(){var i,n,u,f,e,o,t;for(var s in v)if(v.hasOwnProperty(s)){if(i=[],n=v[s],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=c(n.fn,"function")?n.fn(
):n.fn,e=0;e<i.length;e++)o=i[e],t=o.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),yt.push((f?"":"no-")+t.join("-"))}}function st(n){var t=s.className,i=r._config.classPrefix||"",u;(p&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),p?s.className.baseVal=t:s.className=t)}function u(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):p?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function d(n,t){return!!~(""+n).indexOf(t)}function ht(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ii(){var n=t.body;return n||(n=u(p?"svg":"body"),n.fake=!0),n}function ct(n,i,r,f){var o,a,c,v,l="modernizr",h=u("div"),e=ii();if(parseInt(r,10))for(;r--;)c=u("div"),c.id=f?f[r]:l+(r+1),h.appendChild(c);return o=u(
"style"),o.type="text/css",o.id="s"+l,(e.fake?e:h).appendChild(o),e.appendChild(h),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(t.createTextNode(n)),h.id=l,e.fake&&(e.style.background="",e.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(e)),a=i(h,n),e.fake?(e.parentNode.removeChild(e),s.style.overflow=v,s.offsetHeight):h.parentNode.removeChild(h),!!a}function a(n,t){var u,i,f;if("object"==typeof n)for(u in n)gt(n,u)&&a(u,n[u]);else{if(n=n.toLowerCase(),i=n.split("."),f=r[i[0]],2==i.length&&(f=f[i[1]]),"undefined"!=typeof f)return r;t="function"==typeof t?t():t;1==i.length?r[i[0]]=t:(!r[i[0]]||r[i[0]]instanceof Boolean||(r[i[0]]=new Boolean(r[i[0]])),r[i[0]][i[1]]=t);st([(t&&0!=t?"":"no-")+i.join("-")]);r._trigger(n,t)}return r}function ri(n,t){return function(){return n.apply(t,arguments)}}function ui(n,t,i){var r;for(var u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],c(r,"function")?ri(r,i||t):r);return!1}function lt(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+
t.toLowerCase()}).replace(/^ms-/,"-ms-")}function fi(t,i,r){var u,f,e;return"getComputedStyle"in n?(u=getComputedStyle.call(n,t,i),f=n.console,null!==u?r&&(u=u.getPropertyValue(r)):f&&(e=f.error?"error":"log",f[e].call(f,"getComputedStyle returning null, its possible modernizr test results are inaccurate"))):u=!i&&t.currentStyle&&t.currentStyle[r],u}function ei(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(lt(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+lt(t[f])+":"+r+")");return u=u.join(" or "),ct("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==fi(n,null,"position")})}return i}function at(n,t,r,f){function s(){v&&(delete h.style,delete h.modElem)}var l,v,o,y,e,p,a;if((f=c(f,"undefined")?!1:f,!c(r,"undefined"))&&(l=ei(n,r),!c(l,"undefined")))return l;for(a=["modernizr","tspan","samp"];!h.style&&a.length;)v=!0,h.modElem=u(a.shift()),h.style=h.modElem.style;for(y=n.length,o=0;y>o;o++)if(e=n[o],p=h.style[
e],d(e,"-")&&(e=ht(e)),h.style[e]!==i){if(f||c(r,"undefined"))return s(),"pfx"==t?e:!0;try{h.style[e]=r}catch(w){}if(h.style[e]!=p)return s(),"pfx"==t?e:!0}return s(),!1}function y(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+ut.join(f+" ")+f).split(" ");return c(t,"string")||c(t,"undefined")?at(e,t,r,u):(e=(n+" "+tt.join(f+" ")+f).split(" "),ui(e,t,i))}function e(n,t,r){return y(n,i,i,t,r)}function vt(n,t){var i=n.deleteDatabase(t);i.onsuccess=function(){a("indexeddb.deletedatabase",!0)};i.onerror=function(){a("indexeddb.deletedatabase",!1)}}var yt=[],v=[],f={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){v.push({name:n,fn:t,options:i})},addAsyncTest:function(n){v.push({name:null,fn:n})}},r=function(){},g,l,nt,tt,wt,it,bt,kt,rt,ut,b,dt,ft,gt,et,h,ni,ot,k;r.prototype=f;r=new r;r.addTest("applicationcache","applicationCache"in n);r.addTest("geolocation","geolocation"in
navigator);r.addTest("history",function(){var t=navigator.userAgent;return-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")||"file:"===location.protocol?n.history&&"pushState"in n.history:!1});r.addTest("postmessage","postMessage"in n);r.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);g=!1;try{g="WebSocket"in n&&2===n.WebSocket.CLOSING}catch(si){}r.addTest("websockets",g);r.addTest("localstorage",function(){var n="modernizr";try{return localStorage.setItem(n,n),localStorage.removeItem(n),!0}catch(t){return!1}});r.addTest("sessionstorage",function(){var n="modernizr";try{return sessionStorage.setItem(n,n),sessionStorage.removeItem(n),!0}catch(t){return!1}});r.addTest("webworkers","Worker"in n);r.addTest("websqldatabase","openDatabase"in n);l=f._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];f._prefixes=l;var s=t.documentElement,p="svg"===
s.nodeName.toLowerCase(),pt=function(){function n(n,t){var f;return n?(t&&"string"!=typeof t||(t=u(t||"div")),n="on"+n,f=n in t,!f&&r&&(t.setAttribute||(t=u("div")),t.setAttribute(n,""),f="function"==typeof t[n],t[n]!==i&&(t[n]=i),t.removeAttribute(n)),f):!1}var r=!("onblur"in t.documentElement);return n}();f.hasEvent=pt;r.addTest("hashchange",function(){return pt("hashchange",n)===!1?!1:t.documentMode===i||t.documentMode>7});r.addTest("audio",function(){var t=u("audio"),n=!1;try{n=!!t.canPlayType;n&&(n=new Boolean(n),n.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=t.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),n.opus=t.canPlayType('audio/ogg; codecs="opus"')||t.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),n.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(i){}return n});r.addTest("canvas",function(){var n=u("canvas");return!(!n.getContext||!n.getContext(
"2d"))});r.addTest("canvastext",function(){return r.canvas===!1?!1:"function"==typeof u("canvas").getContext("2d").fillText});r.addTest("video",function(){var t=u("video"),n=!1;try{n=!!t.canPlayType;n&&(n=new Boolean(n),n.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),n.vp9=t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),n.hls=t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(i){}return n});r.addTest("webgl",function(){var t=u("canvas"),i="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return i in t?t[i]("webgl")||t[i]("experimental-webgl"):"WebGLRenderingContext"in n});r.addTest("csscalc",function(){var n="width:",t=u("a");return t.style.cssText=n+l.join("calc(10px);"+n),!!t.style.length});r.addTest("cssgradients",function(){for(var o,i,f,e="background-image:",t="",
n=0,s=l.length-1;s>n;n++)f=0===n?"to ":"",t+=e+l[n]+"linear-gradient("+f+"left top, #9f9, white);";return r._config.usePrefixes&&(t+=e+"-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));"),o=u("a"),i=o.style,i.cssText=t,(""+i.backgroundImage).indexOf("gradient")>-1});r.addTest("multiplebgs",function(){var n=u("a").style;return n.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(n.background)});r.addTest("opacity",function(){var n=u("a").style;return n.cssText=l.join("opacity:.55;"),/^0.55$/.test(n.opacity)});r.addTest("csspointerevents",function(){var n=u("a").style;return n.cssText="pointer-events:auto","auto"===n.pointerEvents});r.addTest("rgba",function(){var n=u("a").style;return n.cssText="background-color:rgba(150,255,150,.5)",(""+n.backgroundColor).indexOf("rgba")>-1});r.addTest("inlinesvg",function(){var n=u("div");return n.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&n.firstChild&&n.firstChild.namespaceURI)});
nt="Moz O ms Webkit";tt=f._config.usePrefixes?nt.toLowerCase().split(" "):[];f._domPrefixes=tt;var o=u("input"),oi="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),w={};r.input=function(t){for(var i=0,r=t.length;r>i;i++)w[t[i]]=!!(t[i]in o);return w.list&&(w.list=!(!u("datalist")||!n.HTMLDataListElement)),w}(oi);wt="search tel url email datetime date month week time datetime-local number range color".split(" ");it={};r.inputtypes=function(n){for(var u,e,r,c=n.length,h="1)",f=0;c>f;f++)o.setAttribute("type",u=n[f]),r="text"!==o.type&&"style"in o,r&&(o.value=h,o.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(u)&&o.style.WebkitAppearance!==i?(s.appendChild(o),e=t.defaultView,r=e.getComputedStyle&&"textfield"!==e.getComputedStyle(o,null).WebkitAppearance&&0!==o.offsetHeight,s.removeChild(o)):/^(search|tel)$/.test(u)||(r=/^(url|email)$/.test(u)?o.checkValidity&&o.checkValidity()===!1:o.value!=h)),it[n[f]]=!!r;return it}(wt);bt="CSS"in n&&"supports"in n.
CSS;kt="supportsCSS"in n;r.addTest("supports",bt||kt);r.addTest("hsla",function(){var n=u("a").style;return n.cssText="background-color:hsla(120,40%,100%,.5)",d(n.backgroundColor,"rgba")||d(n.backgroundColor,"hsla")});rt={}.toString;r.addTest("smil",function(){return!!t.createElementNS&&/SVGAnimate/.test(rt.call(t.createElementNS("http://www.w3.org/2000/svg","animate")))});r.addTest("svgclippaths",function(){return!!t.createElementNS&&/SVGClipPath/.test(rt.call(t.createElementNS("http://www.w3.org/2000/svg","clipPath")))});ut=f._config.usePrefixes?nt.split(" "):[];f._cssomPrefixes=ut;b=f.testStyles=ct;dt=function(){var n=navigator.userAgent,t=n.match(/w(eb)?osbrowser/gi),i=n.match(/windows phone/gi)&&n.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;return t||i}();dt?r.addTest("fontface",!1):b('@font-face {font-family:"font";src:url("https://")}',function(n,i){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"",o=/src/i.test(
e)&&0===e.indexOf(i.split(" ")[0]);r.addTest("fontface",o)});b('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(n){r.addTest("generatedcontent",n.offsetHeight>=6)});ft=function(t){var u,s=l.length,f=n.CSSRule,r,e,o;if("undefined"==typeof f)return i;if(!t)return!1;if(t=t.replace(/^@/,""),u=t.replace(/-/g,"_").toUpperCase()+"_RULE",u in f)return"@"+t;for(r=0;s>r;r++)if(e=l[r],o=e.toUpperCase()+"_"+u,o in f)return"@-"+e.toLowerCase()+"-"+t;return!1};f.atRule=ft;!function(){var n={}.hasOwnProperty;gt=c(n,"undefined")||c(n.call,"undefined")?function(n,t){return t in n&&c(n.constructor.prototype[t],"undefined")}:function(t,i){return n.call(t,i)}}();f._l={};f.on=function(n,t){this._l[n]||(this._l[n]=[]);this._l[n].push(t);r.hasOwnProperty(n)&&setTimeout(function(){r._trigger(n,r[n])},0)};f._trigger=function(n,t){if(this._l[n]){var i=this._l[n];setTimeout(function(){for(var r,n=0;n<i.length;n++)(r=i[n])(t)},0);delete this._l[n]}};r._q.push(function(){f.addTest=a});r.addTest(
"svgasimg",t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"));et={elem:u("modernizr")};r._q.push(function(){delete et.elem});h={style:et.elem.style};r._q.unshift(function(){delete h.style});ni=f.testProp=function(n,t,r){return at([n],i,t,r)};r.addTest("textshadow",ni("textShadow","1px 1px"));f.testAllProps=y;f.testAllProps=e;r.addTest("cssanimations",e("animationName","a",!0));r.addTest("backgroundsize",e("backgroundSize","100%",!0));r.addTest("borderimage",e("borderImage","url() 1",!0));r.addTest("borderradius",e("borderRadius","0px",!0));r.addTest("boxshadow",e("boxShadow","1px 1px",!0)),function(){r.addTest("csscolumns",function(){var n=!1,t=e("columnCount");try{n=!!t;n&&(n=new Boolean(n))}catch(i){}return n});for(var n,i,u=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],t=0;t<u.length;t++)n=u[t].toLowerCase(),i=e("column"+u[t]),("breakbefore"===n||"breakafter"===n||"breakinside"==n)&&(i=i||e(u[t])),r.addTest("csscolumns."+
n,i)}();r.addTest("cssfilters",function(){if(r.supports)return e("filter","blur(2px)");var n=u("a");return n.style.cssText=l.join("filter:blur(2px); "),!!n.style.length&&(t.documentMode===i||t.documentMode>9)});r.addTest("flexbox",e("flexBasis","1px",!0));r.addTest("flexboxlegacy",e("boxDirection","reverse",!0));r.addTest("cssreflections",e("boxReflect","above",!0));r.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&e("transform","scale(1)",!0)});r.addTest("csstransforms3d",function(){var t=!!e("perspective","1px",!0),i=r._config.usePrefixes,n,u;return t&&(!i||"webkitPerspective"in s.style)&&(u="#modernizr{width:0;height:0}",r.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",i&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",b(u+n,function(n){t=7===n.offsetWidth&&18===n.offsetHeight})),t});r.addTest("csstransitions",e("transition","all",!0));for(ot=f.prefixed=function(n,t,i){return 0===n.indexOf("@")?
ft(n):(-1!=n.indexOf("-")&&(n=ht(n)),t?y(n,t,i):y(n,"pfx"))},r.addAsyncTest(function(){var t,r,i;try{t=ot("indexedDB",n)}catch(u){}t?(r="modernizr-"+Math.random(),i=t.open(r),i.onerror=function(){i.error&&"InvalidStateError"===i.error.name?a("indexeddb",!1):(a("indexeddb",!0),vt(t,r))},i.onsuccess=function(){a("indexeddb",!0);vt(t,r)}):a("indexeddb",!1)}),r.addTest("objectfit",!!ot("objectFit"),{aliases:["object-fit"]}),ti(),st(yt),delete f.addTest,delete f.addAsyncTest,k=0;k<r._q.length;k++)r._q[k]();n.Modernizr=r}(window,document),function(n){function ft(){}function et(n){h=[n]}function t(n,t,i){return n&&n.apply&&n.apply(t.context||t,i)}function u(n){return/\?/.test(n)?"&":"?"}function ut(r){function oi(n){pt++||(wt(),vt&&(s[ct]={s:[n]}),ti&&(n=ti.apply(r,[n])),t(bt,r,[n,d,r]),t(ni,r,[r,d]))}function gt(n){pt++||(wt(),vt&&n!=g&&(s[ct]=n),t(kt,r,[r,n]),t(ni,r,[r,n]))}r=n.extend({},it,r);var bt=r.success,kt=r.error,ni=r.complete,ti=r.dataFilter,ii=r.callbackParameter,ri=r.callback,si=r.cache,vt=r.pageCache,ui=
r.charset,ct=r.url,lt=r.data,fi=r.timeout,yt,pt=0,wt=ft,ei,ut,at,dt;return(tt&&tt(function(n){n.done(bt).fail(kt);bt=n.resolve;kt=n.reject}).promise(r),r.abort=function(){pt++||wt()},t(r.beforeSend,r,[r])===!1||pt)?r:(ct=ct||f,lt=lt?typeof lt=="string"?lt:n.param(lt,r.traditional):f,ct+=lt?u(ct)+lt:f,ii&&(ct+=u(ct)+encodeURIComponent(ii)+"=?"),si||vt||(ct+=u(ct)+"_"+(new Date).getTime()+"="),ct=ct.replace(/=\?(&|$)/,"="+ri+"$1"),vt&&(yt=s[ct])?yt.s?oi(yt.s[0]):gt(yt):(nt[ri]=et,ut=n(k)[0],ut.id=v+st++,ui&&(ut[ot]=ui),rt&&rt.version()<11.6?(at=n(k)[0]).text="document.getElementById('"+ut.id+"')."+o+"()":ut[c]=c,ht&&(ut.htmlFor=ut.id,ut.event=e),ut[y]=ut[o]=ut[p]=function(n){if(!ut[w]||!/i/.test(ut[w])){try{ut[e]&&ut[e]()}catch(t){}n=h;h=0;n?oi(n[0]):gt(l)}},ut.src=ct,wt=function(){dt&&clearTimeout(dt);ut[p]=ut[y]=ut[o]=null;i[b](ut);at&&i[b](at)},i[a](ut,ei=i.firstChild),at&&i[a](at,ei),dt=fi>0&&setTimeout(function(){gt(g)},fi)),r)}var c="async",ot="charset",f="",l="error",a="insertBefore",v="_jqjsp",r="on",e=
r+"click",o=r+l,y=r+"load",p=r+"readystatechange",w="readyState",b="removeChild",k="<script>",d="success",g="timeout",nt=window,tt=n.Deferred,i=n("head")[0]||document.documentElement,s={},st=0,h,it={callback:v,url:location.href},rt=nt.opera,ht=!!n("<div>").html("<!--[if IE]><i><![endif]-->").find("i").length;ut.setup=function(t){n.extend(it,t)};n.jsonp=ut}(jQuery);
/*!
 * jQuery Selectbox plugin 0.2
 *
 * Copyright 2011-2012, Dimitar Ivanov (http://www.bulgaria-web-developers.com/projects/javascript/selectbox/)
 * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
 * 
 * Date: Tue Jul 17 19:58:36 2012 +0300
 */
(function(n,t){function f(){this._state=[];this._defaults={classHolder:"sbHolder",classHolderDisabled:"sbHolderDisabled",classSelector:"sbSelector",classOptions:"sbOptions",classGroup:"sbGroup",classSub:"sbSub",classDisabled:"sbDisabled",classToggleOpen:"sbToggleOpen",classToggle:"sbToggle",classFocus:"sbFocus",speed:200,effect:"slide",onChange:null,onOpen:null,onClose:null}}var r="selectbox",i=!1,u=!0;n.extend(f.prototype,{_isOpenSelectbox:function(n){if(!n)return i;var t=this._getInst(n);return t.isOpen},_isDisabledSelectbox:function(n){if(!n)return i;var t=this._getInst(n);return t.isDisabled},_attachSelectbox:function(t,f){function p(){var t,i,r=this.attr("id").split("_")[1];for(t in o._state)t!==r&&o._state.hasOwnProperty(t)&&(i=n("select[sb='"+t+"']")[0],i&&o._closeSelectbox(i))}function w(){var i=arguments[1]&&arguments[1].sub?!0:!1,r=arguments[1]&&arguments[1].disabled?!0:!1;arguments[0].each(function(f){var s=n(this),y=n("<li>"),h;s.is(":selected")&&(c.text(s.text()),v=u);f===b-1&&y.addClass("last");
s.is(":disabled")||r?(h=n("<span>",{text:s.text()}).addClass(e.settings.classDisabled),i&&h.addClass(e.settings.classSub),h.appendTo(y)):(h=n("<span>",{rel:s.val()}).text(s.text()).bind("click.sb",function(i){i&&i.preventDefault&&i.preventDefault();var u=a,r=n(this),f=u.attr("id").split("_")[1];o._changeSelectbox(t,r.attr("rel"),r.text());o._closeSelectbox(t)}).bind("mouseover.sb",function(){var t=n(this);t.parent().siblings().find("a").removeClass(e.settings.classFocus);t.addClass(e.settings.classFocus)}).bind("mouseout.sb",function(){n(this).removeClass(e.settings.classFocus)}),i&&h.addClass(e.settings.classSub),s.is(":selected")&&h.addClass(e.settings.classFocus),h.appendTo(y));y.appendTo(l)})}if(this._getInst(t))return i;var s=n(t),o=this,e=o._newInst(s),h,c,a,l,v=i,k=s.find("optgroup"),y=s.find("option"),b=y.length;s.attr("sb",e.uid);n.extend(e.settings,o._defaults,f);o._state[e.uid]=i;s.hide();h=n("<div>",{id:"sbHolder_"+e.uid,"class":e.settings.classHolder,tabindex:s.attr("tabindex")});c=n("<span>",{id:
"sbSelector_"+e.uid,"class":e.settings.classSelector,click:function(i){i.preventDefault();p.apply(n(this),[]);var r=n(this).attr("id").split("_")[1];o._state[r]?o._closeSelectbox(t):o._openSelectbox(t)}});a=n("<span>",{id:"sbToggle_"+e.uid,"class":e.settings.classToggle,click:function(i){i.preventDefault();p.apply(n(this),[]);var r=n(this).attr("id").split("_")[1];o._state[r]?o._closeSelectbox(t):o._openSelectbox(t)}});a.appendTo(h);l=n("<ul>",{id:"sbOptions_"+e.uid,"class":e.settings.classOptions,css:{display:"none"}});s.children().each(function(){var t=n(this),i,r={};t.is("option")?w(t):t.is("optgroup")&&(i=n("<li>"),n("<span>",{text:t.attr("label")}).addClass(e.settings.classGroup).appendTo(i),i.appendTo(l),t.is(":disabled")&&(r.disabled=!0),r.sub=!0,w(t.find("option"),r))});v||c.text(y.first().text());n.data(t,r,e);h.data("uid",e.uid).bind("keydown.sb",function(t){var l=t.charCode?t.charCode:t.keyCode?t.keyCode:0,u=n(this),h=u.data("uid"),e=u.siblings("select[sb='"+h+"']").data(r),s=u.siblings(["select[sb='",
h,"']"].join("")).get(0),i=u.find("ul").find("a."+e.settings.classFocus),f,c;switch(l){case 37:case 38:i.length>0&&(n("a",u).removeClass(e.settings.classFocus),f=i.parent().prevAll("li:has(a)").eq(0).find("a"),f.length>0&&(f.addClass(e.settings.classFocus).focus(),n("#sbSelector_"+h).text(f.text())));break;case 39:case 40:n("a",u).removeClass(e.settings.classFocus);f=i.length>0?i.parent().nextAll("li:has(a)").eq(0).find("a"):u.find("ul").find("a").eq(0);f.length>0&&(f.addClass(e.settings.classFocus).focus(),n("#sbSelector_"+h).text(f.text()));break;case 13:i.length>0&&o._changeSelectbox(s,i.attr("rel"),i.text());o._closeSelectbox(s);break;case 9:s&&(e=o._getInst(s),e&&(i.length>0&&o._changeSelectbox(s,i.attr("rel"),i.text()),o._closeSelectbox(s)));c=parseInt(u.attr("tabindex"),10);t.shiftKey?c--:c++;n("*[tabindex='"+c+"']").focus();break;case 27:o._closeSelectbox(s)}return t.stopPropagation(),!1}).delegate("a","mouseover",function(){n(this).addClass(e.settings.classFocus)}).delegate("a","mouseout",function(){
n(this).removeClass(e.settings.classFocus)});c.appendTo(h);l.appendTo(h);h.insertAfter(s);n("html").on("mousedown",function(t){t.stopPropagation();n("select").selectbox("close")});n([".",e.settings.classHolder,", .",e.settings.classSelector].join("")).mousedown(function(n){n.stopPropagation()})},_detachSelectbox:function(t){var u=this._getInst(t);if(!u)return i;n("#sbHolder_"+u.uid).remove();n.data(t,r,null);n(t).show()},_changeSelectbox:function(t,i,r){var e,f=this._getInst(t);f&&(e=this._get(f,"onChange"),n("#sbSelector_"+f.uid).text(r));i=i.replace(/\'/g,"\\'");n(t).find("option[value='"+i+"']").prop("selected",u);f&&e?e.apply(f.input?f.input[0]:null,[i,f]):f&&f.input&&f.input.trigger("change")},_enableSelectbox:function(t){var u=this._getInst(t);if(!u||!u.isDisabled)return i;n("#sbHolder_"+u.uid).removeClass(u.settings.classHolderDisabled);u.isDisabled=i;n.data(t,r,u)},_disableSelectbox:function(t){var f=this._getInst(t);if(!f||f.isDisabled)return i;n("#sbHolder_"+f.uid).addClass(f.settings.classHolderDisabled);
f.isDisabled=u;n.data(t,r,f)},_optionSelectbox:function(t,u,f){var e=this._getInst(t);if(!e)return i;e[u]=f;n.data(t,r,e)},_openSelectbox:function(t){var i=this._getInst(t);if(i&&!i.isOpen&&!i.isDisabled){var f=n("#sbOptions_"+i.uid),s=parseInt(n(window).height(),10),h=n("#sbHolder_"+i.uid).offset(),c=n(window).scrollTop(),e=f.prev().height(),l=s-(h.top-c)-e/2,o=this._get(i,"onOpen");f.css({top:e+"px",maxHeight:l-e+"px"});i.settings.effect==="fade"?f.fadeIn(i.settings.speed):f.slideDown(i.settings.speed);n("#sbToggle_"+i.uid).addClass(i.settings.classToggleOpen);this._state[i.uid]=u;i.isOpen=u;o&&o.apply(i.input?i.input[0]:null,[i]);n.data(t,r,i)}},_closeSelectbox:function(t){var u=this._getInst(t),f;u&&u.isOpen&&(f=this._get(u,"onClose"),u.settings.effect==="fade"?n("#sbOptions_"+u.uid).fadeOut(u.settings.speed):n("#sbOptions_"+u.uid).slideUp(u.settings.speed),n("#sbToggle_"+u.uid).removeClass(u.settings.classToggleOpen),this._state[u.uid]=i,u.isOpen=i,f&&f.apply(u.input?u.input[0]:null,[u]),n.data(t,r,u))},
_newInst:function(n){var t=n[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:t,input:n,uid:Math.floor(Math.random()*99999999),isOpen:i,isDisabled:i,settings:{}}},_getInst:function(t){try{return n.data(t,r)}catch(i){throw"Missing instance data for this selectbox";}},_get:function(n,i){return n.settings[i]!==t?n.settings[i]:this._defaults[i]}});n.fn.selectbox=function(t){var i=Array.prototype.slice.call(arguments,1);return typeof t=="string"&&t=="isDisabled"?n.selectbox["_"+t+"Selectbox"].apply(n.selectbox,[this[0]].concat(i)):t=="option"&&arguments.length==2&&typeof arguments[1]=="string"?n.selectbox["_"+t+"Selectbox"].apply(n.selectbox,[this[0]].concat(i)):this.each(function(){typeof t=="string"?n.selectbox["_"+t+"Selectbox"].apply(n.selectbox,[this].concat(i)):n.selectbox._attachSelectbox(this,t)})};n.selectbox=new f;n.selectbox.version="0.2"})(jQuery);
/*!
* jQuery Cycle2; version: 2.1.6 build: 20141007
* http://jquery.malsup.com/cycle2/
* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL
*/
!function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="2.1.6";n.fn.cycle=function(i){var r;return 0!==this.length||n.isReady?this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop);s("--c2 init--");f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{});r.timeoutId=0;r.paused=r.paused||!1;r.container=u;r._maxZ=r.maxZ;r.API=n.extend({_container:u},n.fn.cycle.API);r.API.log=s;r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API};u.data("cycle.opts",r);u.data("cycle.API",r.API);r.API.trigger("cycle-bootstrap",[r,r.API]);r.API.addInitialSlides();r.API.preInitSlideshow();r.slides.length&&r.API.initSlideshow()}}):(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this)
};n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0;t.slides=n();i=i.jquery?i:t.container.find(i);t.random&&i.sort(function(){return Math.random()-.5});t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.preInit)&&i.preInit(t);t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var i,t=this.opts(),r=t.container;t.API.calcFirstSlide();"static"==t.container.css("position")&&t.container.css("position","relative");n(t.slides[t.currSlide]).css({opacity:1,display:"block",visibility:"visible"});t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse);t.pauseOnHover&&(t.pauseOnHover!==!0&&(r=n(t.pauseOnHover)),r.hover(function(){t.API.pause(!0)},function(
){t.API.resume(!0)}));t.timeout&&(i=t.API.getSlideOpts(t.currSlide),t.API.queueTransition(i,i.timeout+t.delay));t._initialized=!0;t.API.updateView(!0);t.API.trigger("cycle-initialized",[t]);t.API.postInitSlideshow()},pause:function(t){var i=this.opts(),r=i.API.getSlideOpts(),u=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0;u||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),r.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=n.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=void 0)))},resume:function(n){var t=this.opts(),i=!t.hoverPaused&&!t.paused;n?t.hoverPaused=!1:t.paused=!1;i||(t.container.removeClass("cycle-paused"),0===t.slides.filter(":animated").length&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var u,r=this.opts(),e=r.slideCount,f=!1;"string"==n.type(t)&&(t=n.trim(t));n(
t).each(function(){var u,t=n(this);i?r.container.prepend(t):r.container.append(t);r.slideCount++;u=r.API.buildSlideOpts(t);r.slides=i?n(t).add(r.slides):r.slides.add(t);r.API.initSlide(u,t,--r._maxZ);t.data("cycle.opts",u);r.API.trigger("cycle-slide-added",[r,u,t])});r.API.updateView(!0);f=r._preInitialized&&2>e&&r.slideCount>=1;f&&(r._initialized?r.timeout&&(u=r.slides.length,r.nextSlide=r.reverse?u-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var t,n=this.opts();t=parseInt(n.startingSlide||0,10);(t>=n.slides.length||0>t)&&(t=0);n.currSlide=t;n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var t,n=this.opts();n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var u,
r=t;return r._tempFx?u=n.fn.cycle.transitions[r._tempFx]:i&&r.manualFx&&(u=n.fn.cycle.transitions[r.manualFx]),u||(u=n.fn.cycle.transitions[r.fx]),r._tempFx=null,this.opts()._tempFx=null,u||(u=n.fn.cycle.transitions.fade,r.API.log('Transition "'+r.fx+'" not found.  Using fade.')),u},prepareTx:function(n,t){var o,f,e,r,u,i=this.opts();return i.slideCount<2?void(i.timeoutId=0):(!n||i.busy&&!i.manualTrump||(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),void(i.busy||(0!==i.timeoutId||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&void 0!==r.manualSpeed&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){i.busy=!1;i.container.data("cycle.opts")&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,
e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.API.updateView()):i.API.queueTransition(r))))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{});o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{});e.sync||h()});e.sync&&h()},queueTransition:function(t,i){var r=this.opts(),u=void 0!==i?i:t.timeout;return 0===r.nextSlide&&0==--r.loop?(r.API.log("terminating; loop=0"),r.timeout=0,u?setTimeout(function(){r.API.trigger("cycle-finished",[r])},u):r.API.trigger("cycle-finished",[r]),void(r.nextSlide=r.currSlide)):void 0!==r.continueAuto&&(r.continueAuto===!1||n.isFunction(r.continueAuto)&&r.continueAuto()===!1)?(r.API.log("terminating automatic transitions"),r.timeout=0,void(r.timeoutId&&clearTimeout(r.timeoutId))):void(u&&(r._lastQueue=n.now(),void 0===i&&(r._remainingTimeout=t.timeout),r.paused||r.hoverPaused||(r.timeoutId=setTimeout(function(){r.API.prepareTx(!1,!r.reverse)}
,u))))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n]));n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var u,o,f=this.opts(),r=i.data()||{};for(var e in r)r.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(u=r[e],o=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),f.API.log("["+(f.slideCount-1)+"]",o+":",u,"("+typeof u+")"),r[o]=u);r=n.extend({},n.fn.cycle.defaults,f,r);r.slideNum=f.slideCount;try{delete r.API;delete r.slideCount;delete r.currSlide;delete r.nextSlide;delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return void 0===t&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(
t,i,r){var u=this.opts();i.css(t.slideCss||{});r>0&&i.css("zIndex",r);isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default);t.sync||(t.speed=t.speed/2);i.addClass(u.slideClass)},updateView:function(n,t){var i=this.opts(),r,u;i._initialized&&(r=i.API.getSlideOpts(),u=i.slides[i.currSlide],!n&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,r,u]),i.updateView<0)||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),n&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),0===i.updateView&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,r,u,n])},r.speed/(i.sync?2:1)),0!==i.updateView&&i.API.trigger("cycle-update-view",[i,r,u,n]),n&&i.API.trigger("cycle-update-view-after",[i,r,u])))},getComponent:function(t){var r=this.opts(),i=r[t];return"string"==typeof i?/^\s*[\>|\+|~]/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[
u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;o>f;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}};n.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))};n.fn.cycle.version=function(){return"Cycle2: "+i};n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r);n.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:0,visibility:"visible",display:"block"});t.animIn={opacity:1};t.animOut={opacity:0}}},fadeout:{before:function(t,i,
r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:1,visibility:"visible",display:"block"});t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,visibility:"visible",display:"block"};n.cssAfter={zIndex:n._maxZ-2,left:0};n.animIn={left:0};n.animOut={left:r?-u:u}}}};n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0};n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(n){"use strict";function t(t,i){var f,o,e,r=i.autoHeight;if("container"==
r)o=n(i.slides[i.currSlide]).outerHeight(),i.container.height(o);else if(i._autoHeightRatio)i.container.height(i.container.width()/i._autoHeightRatio);else if("calc"===r||"number"==n.type(r)&&r>=0){if(e="calc"===r?u(t,i):r>=i.slides.length?0:r,e==i._sentinelIndex)return;i._sentinelIndex=e;i._sentinel&&i._sentinel.remove();f=n(i.slides[e].cloneNode(!0));f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");f.find("*").css("visibility","hidden");i._sentinel=f}}function u(t,i){var r=0,u=-1;return i.slides.each(function(t){var i=n(this).height();i>u&&(u=i,r=t)}),r}function i(t,i,r,u){var f=n(u).outerHeight();i.container.animate({height:f},i.autoHeightSpeed,i.autoHeightEasing)}function r(u,f){f._autoHeightOnResize&&(n(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null);f.container.off("cycle-slide-added cycle-slide-removed",
t);f.container.off("cycle-destroyed",r);f.container.off("cycle-before",i);f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}n.extend(n.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});n(document).on("cycle-initialized",function(u,f){function h(){t(u,f)}var e,o=f.autoHeight,s=n.type(o),c=null;("string"===s||"number"===s)&&(f.container.on("cycle-slide-added cycle-slide-removed",t),f.container.on("cycle-destroyed",r),"container"==o?f.container.on("cycle-before",i):"string"===s&&/\d+\:\d+/.test(o)&&(e=o.match(/(\d+)\:(\d+)/),e=e[1]/e[2],f._autoHeightRatio=e),"number"!==s&&(f._autoHeightOnResize=function(){clearTimeout(c);c=setTimeout(h,50)},n(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(h,30))})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>",captionModule:"caption"});n(document).on(
"cycle-update-view",function(t,i,r,u){"caption"===i.captionModule&&n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})}(jQuery),function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return"number"==n.type(i)?this.cycle("goto",i):"string"==n.type(i)?this.each(function(){var o;return r=i,u=n(this).data("cycle.opts"),void 0===u?void t.log('slideshow must be initialized before sending commands; "'+r+'" ignored'):(r="goto"==r?"jump":r,f=u.API[r],n.isFunction(f)?(o=n.makeArray(e),o.shift(),f.apply(u.API,o)):void t.log("unknown command: ",r))}):t.apply(this,arguments)};n.extend(n.fn.cycle,t);n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?-1:1,n.allowWrap===
!1&&n.currSlide+t>=n.slideCount||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&(t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){this.stop();var t=this.opts(),i=n.isFunction(n._data)?n._data:n.noop;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stop();t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed");t.container.removeData();i(t.container[0],"parsedAttrs",!1);t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass));t.slides.each(function(){var r=n(this);r.removeData();r.removeClass(t.slideClass);i(this,"parsedAttrs",!1)})},jump:function(n,t){var u,i=this.opts(),r;if(!i.busy||i.manualTrump){if(r=parseInt(n,10),isNaN(r)||0>r||r>=i.slides.length)return void i.API.log("goto: invalid slide index: "+r);if(r==i.currSlide)return void i.API.log("goto: skipping, already on slide",
r);i.nextSlide=r;clearTimeout(i.timeoutId);i.timeoutId=0;i.API.log("goto: ",r," (zero-index)");u=i.currSlide<i.nextSlide;i._tempFx=t;i.API.prepareTx(!0,u)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stopTransition();t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave"));t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var n=this.opts();n.API.destroy();n.container.cycle()},remove:function(t){for(var r,u,i=this.opts(),e=[],o=1,f=0;f<i.slides.length;f++)r=i.slides[f],f==t?u=r:(e.push(r),n(r).data("cycle.opts").slideNum=o,o++);u&&(i.slides=n(e),i.slideCount--,n(u).remove(),t==i.currSlide?i.API.advanceSlide(1):t<i.currSlide?i.currSlide--:i.currSlide++,i.API.trigger("cycle-slide-removed",[i,t,u]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";
n(u).cycle(r,i.data("cycle-arg"))})}(jQuery),function(n){"use strict";function t(t,i){var r;return t._hashFence?void(t._hashFence=!1):(r=window.location.hash.substring(1),void t.slides.each(function(u){if(n(this).data("cycle-hash")==r){if(i===!0)t.startingSlide=u;else{var f=t.currSlide<u;t.nextSlide=u;t.API.prepareTx(!0,f)}return!1}}))}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0);r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function s(t){var o;"wait"==i.loader?(e.push(t),0===f&&(e.sort(h),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),
r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function h(n,t){return n.data("index")-t.data("index")}var e=[],o,f;if("string"==n.type(t))t=n.trim(t);else if("array"===n.type(t))for(o=0;o<t.length;o++)t[o]=n(t[o])[0];t=n(t);f=t.length;f&&(t.css("visibility","hidden").appendTo("body").each(function(t){function l(){0==--c&&(--f,s(o))}var c=0,o=n(this),h=o.is("img")?o:o.find("img");return o.data("index",t),h=h.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),h.length?(c=h.length,void h.each(function(){this.complete?l():n(this).load(function(){l()}).on("error",function(){0==--c&&(i.API.log("slide skipped; img not loaded:",this.src),0==--f&&"wait"==i.loader&&r.apply(i.API,[e,u]))})})):(--f,void e.push(o))}),f&&i.container.addClass("cycle-loading"))}var r;i.loader&&(r=i.API.add,i.API.add=u)})}(jQuery),function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(
f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){t.pagerEventBubble||n.preventDefault();t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i._tempFx=i.pagerFx,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var u=i.API.getComponent("pager");u.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var r;i.pager&&(r=i.API.getComponent("pager"),r.each(function(){n(this).children().
removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){if(t.API.getComponent("next").on(t.nextEvent,function(n){n.preventDefault();t.API.next()}),t.API.getComponent("prev").on(t.prevEvent,function(n){n.preventDefault();t.API.prev()}),t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx;t.API.next()});t.container.on(r,function(){t._tempFx=t.swipeFx;t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var i=t.disabledClass,r=t.API.getComponent(
"next"),u=t.API.getComponent("prev"),f=t._prevBoundry||0,e=void 0!==t._nextBoundry?t._nextBoundry:t.slideCount-1;t.currSlide==e?r.addClass(i).prop("disabled",!0):r.removeClass(i).prop("disabled",!1);t.currSlide===f?u.addClass(i).prop("disabled",!0):u.removeClass(i).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(n,t){t.API.getComponent("prev").off(t.nextEvent);t.API.getComponent("next").off(t.prevEvent);t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var r,f,u=i.API,e=u.next,s=u.prev,o=u.prepareTx,h=n.type(i.progressive);if("array"==h)r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if("string"==h){if(f=n(i.progressive),r=n.trim(f.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){return void u.log("error parsing progressive slides",c)}
else r=r.split(new RegExp(f.data("cycle-split")||"\n")),r[r.length-1]||r.pop()}o&&(u.prepareTx=function(n,t){var f,u;return n||0===r.length?void o.apply(i.API,[n,t]):void(t&&i.currSlide==i.slideCount-1?(u=r[0],r=r.slice(1),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)}),i.API.add(u)):t||0!==i.currSlide?o.apply(i.API,[n,t]):(f=r.length-1,u=r[f],r=r.slice(0,f),i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1;t.API.advanceSlide(-1)},50)}),i.API.add(u,!0)))});e&&(u.next=function(){var n=this.opts(),t;r.length&&n.currSlide==n.slideCount-1?(t=r[0],r=r.slice(1),n.container.one("cycle-slide-added",function(n,t){e.apply(t.API);t.container.removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(t)):e.apply(n.API)});s&&(u.prev=function(){var n=this.opts(),t,i;r.length&&0===n.currSlide?(t=r.length-1,i=r[t],r=r.slice(0,t),n.container.one("cycle-slide-added",function(n,t){t.currSlide=1;t.API.advanceSlide(-1);t.container.
removeClass("cycle-loading")}),n.container.addClass("cycle-loading"),n.API.add(i,!0)):s.apply(n.API)})}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var o,f,u,s=i.split("."),e=0;e<r.length;e++)if(f=r[e]){if(s.length>1)for(u=f,o=0;o<s.length;o++)f=u,u=u[s[o]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(void 0!==u&&null!==u&&u!=i)return u}return i})}})}(jQuery);!function(n){"use strict";n.extend(n.fn.cycle.defaults,{centerHorz:!1,centerVert:!1});n(document).on("cycle-pre-initialize",function(t,i){function r(){clearTimeout(u);u=setTimeout(e,50)}function s(){clearTimeout(u);clearTimeout(f);n(window).off("resize orientationchange",r)}function h(){i.slides.each(o)}function e(){o.apply(i.container.find("."+i.slideActiveClass));clearTimeout(f);f=setTimeout(h,50)}function o(){var
t=n(this),u=i.container.width(),f=i.container.height(),r=t.outerWidth(),e=t.outerHeight();r&&(i.centerHorz&&u>=r&&t.css("marginLeft",(u-r)/2),i.centerVert&&f>=e&&t.css("marginTop",(f-e)/2))}if(i.centerHorz||i.centerVert){var u,f;n(window).on("resize orientationchange load",r);i.container.on("cycle-destroyed",s);i.container.on("cycle-initialized cycle-slide-added cycle-slide-removed",function(){r()});e()}})}(jQuery);!function(n){"use strict";n(document).on("cycle-bootstrap",function(n,t,i){"carousel"===t.fx&&(i.getSlideIndex=function(n){var t=this.opts()._carouselWrap.children(),i=t.index(n);return i%t.length},i.next=function(){var n=t.reverse?-1:1;t.allowWrap===!1&&t.currSlide+n>t.slideCount-t.carouselVisible||(t.API.advanceSlide(n),t.API.trigger("cycle-next",[t]).log("cycle-next"))})});n.fn.cycle.transitions.carousel={preInit:function(t){t.hideNonActive=!1;t.container.on("cycle-destroyed",n.proxy(this.onDestroy,t.API));t.API.stopTransition=this.stopTransition;for(var i=0;i<t.startingSlide;i++)t.container.append(
t.slides[0])},postInit:function(t){var i,u,f,r,e=t.carouselVertical,o,s;if(t.carouselVisible&&t.carouselVisible>t.slideCount&&(t.carouselVisible=t.slideCount-1),o=t.carouselVisible||t.slides.length,s={display:e?"block":"inline-block",position:"static"},t.container.css({position:"relative",overflow:"hidden"}),t.slides.css(s),t._currSlide=t.currSlide,r=n('<div class="cycle-carousel-wrap"><\/div>').prependTo(t.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(t.slides),t._carouselWrap=r,e||r.css("white-space","nowrap"),t.allowWrap!==!1){for(u=0;u<(void 0===t.carouselVisible?2:1);u++){for(i=0;i<t.slideCount;i++)r.append(t.slides[i].cloneNode(!0));for(i=t.slideCount;i--;)r.prepend(t.slides[i].cloneNode(!0))}r.find(".cycle-slide-active").removeClass("cycle-slide-active");t.slides.eq(t.startingSlide).addClass("cycle-slide-active")}t.pager&&t.allowWrap===!1&&(f=t.slideCount-o,n(t.pager).children().filter(":gt("+f+")").hide());t._nextBoundry=t.slideCount-t.carouselVisible;this.prepareDimensions(
t)},prepareDimensions:function(t){var r,u,e,f,i=t.carouselVertical,o=t.carouselVisible||t.slides.length;if(t.carouselFluid&&t.carouselVisible?t._carouselResizeThrottle||this.fluidSlides(t):t.carouselVisible&&t.carouselSlideDimension?(r=o*t.carouselSlideDimension,t.container[i?"height":"width"](r)):t.carouselVisible&&(r=o*n(t.slides[0])[i?"outerHeight":"outerWidth"](!0),t.container[i?"height":"width"](r)),u=t.carouselOffset||0,t.allowWrap!==!1)if(t.carouselSlideDimension)u-=(t.slideCount+t.currSlide)*t.carouselSlideDimension;else for(e=t._carouselWrap.children(),f=0;f<t.slideCount+t.currSlide;f++)u-=n(e[f])[i?"outerHeight":"outerWidth"](!0);t._carouselWrap.css(i?"top":"left",u)},fluidSlides:function(t){function i(){clearTimeout(u);u=setTimeout(r,20)}function r(){t._carouselWrap.stop(!1,!0);var n=t.container.width()/t.carouselVisible;n=Math.ceil(n-e);t._carouselWrap.children().width(n);t._sentinel&&t._sentinel.width(n);o(t)}var u,f=t.slides.eq(0),e=f.outerWidth()-f.width(),o=this.prepareDimensions;n(window).on(
"resize",i);t._carouselResizeThrottle=i;r()},transition:function(t,i,r,u,f){var h,l={},e=t.nextSlide-t.currSlide,s=t.carouselVertical,a=t.speed,c,o;t.allowWrap===!1?(u=e>0,c=t._currSlide,o=t.slideCount-t.carouselVisible,e>0&&t.nextSlide>o&&c==o?e=0:e>0&&t.nextSlide>o?e=t.nextSlide-c-(t.nextSlide-o):0>e&&t.currSlide>o&&t.nextSlide>o?e=0:0>e&&t.currSlide>o?e+=t.currSlide-o:c=t.currSlide,h=this.getScroll(t,s,c,e),t.API.opts()._currSlide=t.nextSlide>o?o:t.nextSlide):u&&0===t.nextSlide?(h=this.getDim(t,t.currSlide,s),f=this.genCallback(t,u,s,f)):u||t.nextSlide!=t.slideCount-1?h=this.getScroll(t,s,t.currSlide,e):(h=this.getDim(t,t.currSlide,s),f=this.genCallback(t,u,s,f));l[s?"top":"left"]=u?"-="+h:"+="+h;t.throttleSpeed&&(a=h/n(t.slides[0])[s?"height":"width"]()*t.speed);t._carouselWrap.animate(l,a,t.easing,f)},getDim:function(t,i,r){var u=n(t.slides[i]);return u[r?"outerHeight":"outerWidth"](!0)},getScroll:function(n,t,i,r){var u,f=0;if(r>0)for(u=i;i+r>u;u++)f+=this.getDim(n,u,t);else for(u=i;u>i+r;u--)f+=this.getDim(
n,u,t);return f},genCallback:function(t,i,r,u){return function(){var i=n(t.slides[t.nextSlide]).position(),f=0-i[r?"top":"left"]+(t.carouselOffset||0);t._carouselWrap.css(t.carouselVertical?"top":"left",f);u()}},stopTransition:function(){var n=this.opts();n.slides.stop(!1,!0);n._carouselWrap.stop(!1,!0)},onDestroy:function(){var t=this.opts();t._carouselResizeThrottle&&n(window).off("resize",t._carouselResizeThrottle);t.slides.prependTo(t.container);t._carouselWrap.remove()}}}(jQuery);eval(function(n,t,i,r,u,f){if(u=function(n){return(n<t?"":u(parseInt(n/t)))+((n=n%t)>35?String.fromCharCode(n+29):n.toString(36))},!"".replace(/^/,String)){while(i--)f[u(i)]=r[i]||u(i);r=[function(n){return f[n]}];u=function(){return"\\w+"};i=1}while(i--)r[i]&&(n=n.replace(new RegExp("\\b"+u(i)+"\\b","g"),r[i]));return n}(";5(1W.1C)(8($){5((!$.1s.1V&&!$.1s.1U))2d{1j.1X(\"1T\",C,s)}1R(e){};$.o.4=8(j){5(3.u==0)9 3;5(M V[0]=='1m'){5(3.u>1){7 k=V;9 3.18(8(){$.o.4.K($(3),k)})};$.o.4[V[0]].K(3,$.27(V).26(1)||[]);9 3};7 j=$.1b({},$.o.4.1w,j||{});$.o.4.P++;3.1y('.l-4-1g').p('l-4-1g').18(8(){7 b,m=$(3);7 c=(3.2g||'28-4').1f(/\\[|\\]/g,'Y').1f(/^\\Y+|\\Y+$/g,'');7 d=$(3.2h||1j.1H);7 e=d.6('4');5(!e||e.1o!=$.o.4.P)e={E:0,1o:$.o.4.P};7 f=e[c]||d.6('4'+c);5(f)b=f.6('4');5(f&&b)b.E++;R{b=$.1b({},j||{},($.1d?m.1d():($.25?m.6():w))||{},{E:0,L:[],v:[]});b.z=e.E++;f=$('<1G 13=\"l-4-1I\"/>');m.1J(f);f.p('4-12-11-10');5(m.Z('G')||m.14('G'))b.n=s;5(m.14('1c'))b.1c=s;f.1r(b.D=$('<W 13=\"4-D\"><a U=\"'+b.D+'\">'+b.1B+'<\/a><\/W>').q('1e',8(){$(3).4('N');$(3).p('l-4-T')}).q('1h',8(){$(3).4('x');$(3).I('l-4-T')}).q('1i',8(){$(3).4('y')}).6('4',b))};7 g=$('<W 20=\"21\" 22-24=\"'+3.U+'\" 13=\"l-4 t-'+b.z+'\"><a U=\"'+(3.U||3.1k)+'\">'+3.1k+'<\/a><\/W>');f.1r(g);5(3.X)g.Z('X',3.X);5(3.1x)g.p(3.1x);5(b.29)b.B=2;5(M b.B=='1l'&&b.B>0){7 h=($.o.15?g.15():0)||b.1n;7 i=(b.E%b.B),17=1K.1L(h/b.B);g.15(17).1M('a').1N({'1O-1P':'-'+(i*17)+'1Q'})};5(b.n)g.p('l-4-1p');R g.p('l-4-1S').q('1e',8(){$(3).4('1q');$(3).4('J')}).q('1h',8(){$(3).4('x');$(3).4('H')}).q('1i',8(){$(3).4('y')});5(3.S)b.r=g;5(3.1Y==\"A\"){5($(3).14('1Z'))b.r=g};m.1t();m.q('1u.4',8(a){5(a.1v)9 C;$(3).4('y')});g.6('4.m',m.6('4.l',g));b.L[b.L.u]=g[0];b.v[b.v.u]=m[0];b.t=e[c]=f;b.23=d;m.6('4',b);f.6('4',b);g.6('4',b);d.6('4',e);d.6('4'+c,f)});$('.4-12-11-10').4('x').I('4-12-11-10');9 3};$.1b($.o.4,{P:0,J:8(){7 a=3.6('4');5(!a)9 3;5(!a.J)9 3;7 b=$(3).6('4.m')||$(3.19=='1a'?3:w);5(a.J)a.J.K(b[0],[b.Q(),$('a',b.6('4.l'))[0]])},H:8(){7 a=3.6('4');5(!a)9 3;5(!a.H)9 3;7 b=$(3).6('4.m')||$(3.19=='1a'?3:w);5(a.H)a.H.K(b[0],[b.Q(),$('a',b.6('4.l'))[0]])},1q:8(){7 a=3.6('4');5(!a)9 3;5(a.n)9;3.4('N');3.1z().1A().O('.t-'+a.z).p('l-4-T')},N:8(){7 a=3.6('4');5(!a)9 3;5(a.n)9;a.t.2a().O('.t-'+a.z).I('l-4-q').I('l-4-T')},x:8(){7 a=3.6('4');5(!a)9 3;3.4('N');7 b=$(a.r);7 c=b.u?b.1z().1A().O('.t-'+a.z):w;5(c)c.p('l-4-q');a.D[a.n||a.1c?'1t':'2b']();3.2c()[a.n?'p':'I']('l-4-1p')},y:8(a,b){7 c=3.6('4');5(!c)9 3;5(c.n)9;c.r=w;5(M a!='F'||3.u>1){5(M a=='1l')9 $(c.L[a]).4('y',F,b);5(M a=='1m'){$.18(c.L,8(){5($(3).6('4.m').Q()==a)$(3).4('y',F,b)});9 3}}R{c.r=3[0].19=='1a'?3.6('4.l'):(3.2e('.t-'+c.z)?3:w)};3.6('4',c);3.4('x');7 d=$(c.r?c.r.6('4.m'):w);7 e=$(c.v).O(':S');7 f=$(c.v).1y(d);f.1D('S',C);d.1D('S',s);$(d.u?d:e).2f({1E:'1u',1v:s});5((b||b==F)&&c.1F)c.1F.K(d[0],[d.Q(),$('a',c.r)[0]]);9 3},n:8(a,b){7 c=3.6('4');5(!c)9 3;c.n=a||a==F?s:C;5(b)$(c.v).Z(\"G\",\"G\");R $(c.v).2i(\"G\");3.6('4',c);3.4('x')},2j:8(){3.4('n',s,s)},2k:8(){3.4('n',C,C)}});$.o.4.1w={D:'2l 2m',1B:'',B:0,1n:16};$(8(){$('m[1E=2n].l').4()})})(1C);",
62,148,"|||this|rating|if|data|var|function|return||||||||||||star|input|readOnly|fn|addClass|on|current|true|rater|length|inputs|null|draw|select|serial||split|false|cancel|count|undefined|disabled|blur|removeClass|focus|apply|stars|typeof|drain|filter|calls|val|else|checked|hover|title|arguments|div|id|_|attr|drawn|be|to|class|hasClass|width||spw|each|tagName|INPUT|extend|required|metadata|mouseover|replace|applied|mouseout|click|document|value|number|string|starWidth|call|readonly|fill|append|support|hide|change|selfTriggered|options|className|not|prevAll|addBack|cancelValue|jQuery|prop|type|callback|span|body|control|before|Math|floor|find|css|margin|left|px|catch|live|BackgroundImageCache|style|opacity|window|execCommand|nodeName|selected|role|text|aria|context|label|meta|slice|makeArray|unnamed|half|children|show|siblings|try|is|trigger|name|form|removeAttr|disable|enable|Cancel|Rating|radio".split("|"),0,{}));
/*!
 * jQuery Form Plugin
 * version: 3.51.0-2014.06.20
 * Requires jQuery v1.5 or later
 * Copyright (c) 2014 M. Alsup
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Project repository: https://github.com/malsup/form
 * Dual licensed under the MIT and GPL licenses.
 * https://github.com/malsup/form#copyright-and-license
 */
(function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):n(typeof jQuery!="undefined"?jQuery:window.Zepto)})(function(n){"use strict";function u(t){var i=t.data;t.isDefaultPrevented()||(t.preventDefault(),n(t.target).ajaxSubmit(i))}function f(t){var r=t.target,u=n(r),f,i,e;if(!u.is("[type=submit],[type=image]")){if(f=u.closest("[type=submit]"),f.length===0)return;r=f[0]}i=this;i.clk=r;r.type=="image"&&(t.offsetX!==undefined?(i.clk_x=t.offsetX,i.clk_y=t.offsetY):typeof n.fn.offset=="function"?(e=u.offset(),i.clk_x=t.pageX-e.left,i.clk_y=t.pageY-e.top):(i.clk_x=t.pageX-r.offsetLeft,i.clk_y=t.pageY-r.offsetTop));setTimeout(function(){i.clk=i.clk_x=i.clk_y=null},100)}function t(){if(n.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");window.console&&window.console.log?window.console.log(t):window.opera&&window.opera.postError&&window.opera.postError(t)}}var i={},r;i.fileapi=n("<input type='file'/>").get(0).files!==undefined;i.formdata=window.FormData!==
undefined;r=!!n.fn.prop;n.fn.attr2=function(){if(!r)return this.attr.apply(this,arguments);var n=this.prop.apply(this,arguments);return n&&n.jquery||typeof n=="string"?n:this.attr.apply(this,arguments)};n.fn.ajaxSubmit=function(u){function ot(t){for(var r=n.param(t,u.traditional).split("&"),o=r.length,e=[],f,i=0;i<o;i++)r[i]=r[i].replace(/\+/g," "),f=r[i].split("="),e.push([decodeURIComponent(f[0]),decodeURIComponent(f[1])]);return e}function st(t){for(var f,r,s,o=new FormData,i=0;i<t.length;i++)o.append(t[i].name,t[i].value);if(u.extraData)for(f=ot(u.extraData),i=0;i<f.length;i++)f[i]&&o.append(f[i][0],f[i][1]);return u.data=null,r=n.extend(!0,{},n.ajaxSettings,u,{contentType:!1,processData:!1,cache:!1,type:e||"POST"}),u.uploadProgress&&(r.xhr=function(){var t=n.ajaxSettings.xhr();return t.upload&&t.upload.addEventListener("progress",function(n){var t=0,i=n.loaded||n.position,r=n.total;n.lengthComputable&&(t=Math.ceil(i/r*100));u.uploadProgress(n,i,r,t)},!1),t}),r.data=null,s=r.beforeSend,r.beforeSend=function(
n,t){t.data=u.formData?u.formData:o;s&&s.call(this,n,t)},n.ajax(r)}function ft(i){function ot(n){var i=null;try{n.contentWindow&&(i=n.contentWindow.document)}catch(r){t("cannot get iframe.contentWindow document: "+r)}if(i)return i;try{i=n.contentDocument?n.contentDocument:n.document}catch(r){t("cannot get iframe.contentDocument: "+r);i=n.document}return i}function st(){function h(){try{var n=ot(a).readyState;t("state = "+n);n&&n.toLowerCase()=="uninitialized"&&setTimeout(h,50)}catch(i){t("Server abort: ",i," (",i.name,")");b(tt);g&&clearTimeout(g);g=undefined}}var u=f.attr2("target"),s=f.attr2("action"),y=f.attr("enctype")||f.attr("encoding")||"multipart/form-data",r,i,c;l.setAttribute("target",d);(!e||/post/i.test(e))&&l.setAttribute("method","POST");s!=o.url&&l.setAttribute("action",o.url);o.skipEncodingOverride||e&&!/post/i.test(e)||f.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});o.timeout&&(g=setTimeout(function(){rt=!0;b(ut)},o.timeout));r=[];try{if(o.extraData)for(i in o.extraData)
o.extraData.hasOwnProperty(i)&&(n.isPlainObject(o.extraData[i])&&o.extraData[i].hasOwnProperty("name")&&o.extraData[i].hasOwnProperty("value")?r.push(n('<input type="hidden" name="'+o.extraData[i].name+'">').val(o.extraData[i].value).appendTo(l)[0]):r.push(n('<input type="hidden" name="'+i+'">').val(o.extraData[i]).appendTo(l)[0]));o.iframeTarget||v.appendTo("body");a.attachEvent?a.attachEvent("onload",b):a.addEventListener("load",b,!1);setTimeout(h,15);try{l.submit()}catch(p){c=document.createElement("form").submit;c.apply(l)}}finally{l.setAttribute("action",s);l.setAttribute("enctype",y);u?l.setAttribute("target",u):f.removeAttr("target");n(r).remove()}}function b(i){var r,u,w,f,k,d,e,c,l;if(!s.aborted&&!lt){if(h=ot(a),h||(t("cannot access response document"),i=tt),i===ut&&s){s.abort("timeout");y.reject(s,"timeout");return}if(i==tt&&s){s.abort("server abort");y.reject(s,"error","server abort");return}if(h&&h.location.href!=o.iframeSrc||rt){a.detachEvent?a.detachEvent("onload",b):a.removeEventListener("load",
b,!1);r="success";try{if(rt)throw"timeout";if(w=o.dataType=="xml"||h.XMLDocument||n.isXMLDoc(h),t("isXml="+w),!w&&window.opera&&(h.body===null||!h.body.innerHTML)&&--ct){t("requeing onLoad callback, DOM not available");setTimeout(b,250);return}f=h.body?h.body:h.documentElement;s.responseText=f?f.innerHTML:null;s.responseXML=h.XMLDocument?h.XMLDocument:h;w&&(o.dataType="xml");s.getResponseHeader=function(n){var t={"content-type":o.dataType};return t[n.toLowerCase()]};f&&(s.status=Number(f.getAttribute("status"))||s.status,s.statusText=f.getAttribute("statusText")||s.statusText);k=(o.dataType||"").toLowerCase();d=/(json|script|text)/.test(k);d||o.textarea?(e=h.getElementsByTagName("textarea")[0],e?(s.responseText=e.value,s.status=Number(e.getAttribute("status"))||s.status,s.statusText=e.getAttribute("statusText")||s.statusText):d&&(c=h.getElementsByTagName("pre")[0],l=h.getElementsByTagName("body")[0],c?s.responseText=c.textContent?c.textContent:c.innerText:l&&(s.responseText=l.textContent?l.textContent:l.innerText))):
k=="xml"&&!s.responseXML&&s.responseText&&(s.responseXML=at(s.responseText));try{ht=yt(s,k,o)}catch(nt){r="parsererror";s.error=u=nt||r}}catch(nt){t("error caught: ",nt);r="error";s.error=u=nt||r}s.aborted&&(t("upload aborted"),r=null);s.status&&(r=s.status>=200&&s.status<300||s.status===304?"success":"error");r==="success"?(o.success&&o.success.call(o.context,ht,"success",s),y.resolve(s.responseText,"success",s),p&&n.event.trigger("ajaxSuccess",[s,o])):r&&(u===undefined&&(u=s.statusText),o.error&&o.error.call(o.context,s,r,u),y.reject(s,"error",u),p&&n.event.trigger("ajaxError",[s,o,u]));p&&n.event.trigger("ajaxComplete",[s,o]);p&&!--n.active&&n.event.trigger("ajaxStop");o.complete&&o.complete.call(o.context,s,r);lt=!0;o.timeout&&clearTimeout(g);setTimeout(function(){o.iframeTarget?v.attr("src",o.iframeSrc):v.remove();s.responseXML=null},100)}}}var l=f[0],it,nt,o,p,d,v,a,s,k,w,rt,g,y=n.Deferred(),ut,tt,ft,et,ht,h,ct,lt;if(y.abort=function(n){s.abort(n)},i)for(nt=0;nt<c.length;nt++)it=n(c[nt]),r?it.prop("disabled",
!1):it.removeAttr("disabled");if(o=n.extend(!0,{},n.ajaxSettings,u),o.context=o.context||o,d="jqFormIO"+(new Date).getTime(),o.iframeTarget?(v=n(o.iframeTarget),w=v.attr2("name"),w?d=w:v.attr2("name",d)):(v=n('<iframe name="'+d+'" src="'+o.iframeSrc+'" />'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),a=v[0],s={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(i){var r=i==="timeout"?"timeout":"aborted";t("aborting upload... "+r);this.aborted=1;try{a.contentWindow.document.execCommand&&a.contentWindow.document.execCommand("Stop")}catch(u){}v.attr("src",o.iframeSrc);s.error=r;o.error&&o.error.call(o.context,s,r,i);p&&n.event.trigger("ajaxError",[s,o,r]);o.complete&&o.complete.call(o.context,s,r)}},p=o.global,p&&0==n.active++&&n.event.trigger("ajaxStart"),p&&n.event.trigger("ajaxSend",[s,o]),o.beforeSend&&o.beforeSend.call(o.context,s,o)===!1)return o.global&&n.active--,
y.reject(),y;if(s.aborted)return y.reject(),y;k=l.clk;k&&(w=k.name,w&&!k.disabled&&(o.extraData=o.extraData||{},o.extraData[w]=k.value,k.type=="image"&&(o.extraData[w+".x"]=l.clk_x,o.extraData[w+".y"]=l.clk_y)));ut=1;tt=2;ft=n("meta[name=csrf-token]").attr("content");et=n("meta[name=csrf-param]").attr("content");et&&ft&&(o.extraData=o.extraData||{},o.extraData[et]=ft);o.forceSync?st():setTimeout(st,10);ct=50;var at=n.parseXML||function(n,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n)):t=(new DOMParser).parseFromString(n,"text/xml"),t&&t.documentElement&&t.documentElement.nodeName!="parsererror"?t:null},vt=n.parseJSON||function(n){return window.eval("("+n+")")},yt=function(t,i,r){var f=t.getResponseHeader("content-type")||"",e=i==="xml"||!i&&f.indexOf("xml")>=0,u=e?t.responseXML:t.responseText;return e&&u.documentElement.nodeName==="parsererror"&&n.error&&n.error("parsererror"),r&&r.dataFilter&&(u=r.dataFilter(u,i)),typeof u=="string"&&(i==="json"||!i&&f.indexOf(
"json")>=0?u=vt(u):(i==="script"||!i&&f.indexOf("javascript")>=0)&&n.globalEval(u)),u};return y}var e,b,o,f,a,v,c,y,s,l,h,d,g,nt,ut,p,w;if(!this.length)return t("ajaxSubmit: skipping submit process - no element selected"),this;if(f=this,typeof u=="function"?u={success:u}:u===undefined&&(u={}),e=u.type||this.attr2("method"),b=u.url||this.attr2("action"),o=typeof b=="string"?n.trim(b):"",o=o||window.location.href||"",o&&(o=(o.match(/^([^#]+)/)||[])[1]),u=n.extend(!0,{url:o,success:n.ajaxSettings.success,type:e||n.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},u),a={},this.trigger("form-pre-serialize",[this,u,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(u.beforeSerialize&&u.beforeSerialize(this,u)===!1)return t("ajaxSubmit: submit aborted via beforeSerialize callback"),this;if(v=u.traditional,v===undefined&&(v=n.ajaxSettings.traditional),c=[],s=this.formToArray(u.semantic,c),u.data&&(u.extraData=u.data,y=n.param(u.
data,v)),u.beforeSubmit&&u.beforeSubmit(s,this,u)===!1)return t("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[s,this,u,a]),a.veto)return t("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;l=n.param(s,v);y&&(l=l?l+"&"+y:y);u.type.toUpperCase()=="GET"?(u.url+=(u.url.indexOf("?")>=0?"&":"?")+l,u.data=null):u.data=l;h=[];u.resetForm&&h.push(function(){f.resetForm()});u.clearForm&&h.push(function(){f.clearForm(u.includeHidden)});!u.dataType&&u.target?(d=u.success||function(){},h.push(function(t){var i=u.replaceTarget?"replaceWith":"html";n(u.target)[i](t).each(d,arguments)})):u.success&&h.push(u.success);u.success=function(n,t,i){for(var e=u.context||this,r=0,o=h.length;r<o;r++)h[r].apply(e,[n,t,i||f,f])};u.error&&(g=u.error,u.error=function(n,t,i){var r=u.context||this;g.apply(r,[n,t,i,f])});u.complete&&(nt=u.complete,u.complete=function(n,t){var i=u.context||this;nt.apply(i,[n,t,f])});var et=n("input[type=file]:enabled",this).filter(function(
){return n(this).val()!==""}),tt=et.length>0,it="multipart/form-data",rt=f.attr("enctype")==it||f.attr("encoding")==it,k=i.fileapi&&i.formdata;for(t("fileAPI :"+k),ut=(tt||rt)&&!k,u.iframe!==!1&&(u.iframe||ut)?u.closeKeepAlive?n.get(u.closeKeepAlive,function(){p=ft(s)}):p=ft(s):p=(tt||rt)&&k?st(s):n.ajax(u),f.removeData("jqxhr").data("jqxhr",p),w=0;w<c.length;w++)c[w]=null;return this.trigger("form-submit-notify",[this,u]),this};n.fn.ajaxForm=function(i){if(i=i||{},i.delegation=i.delegation&&n.isFunction(n.fn.on),!i.delegation&&this.length===0){var r={s:this.selector,c:this.context};return!n.isReady&&r.s?(t("DOM not ready, queuing ajaxForm"),n(function(){n(r.s,r.c).ajaxForm(i)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this)}if(i.delegation){n(document).off("submit.form-plugin",this.selector,u).off("click.form-plugin",this.selector,f).on("submit.form-plugin",this.selector,i,u).on("click.form-plugin",this.selector,i,f);return this}return this.ajaxFormUnbind().bind(
"submit.form-plugin",i,u).bind("click.form-plugin",i,f)};n.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};n.fn.formToArray=function(t,r){var e=[],l,h,f,c,u,b,k,a,p,v;if(this.length===0)return e;var o=this[0],w=this.attr("id"),s=t?o.getElementsByTagName("*"):o.elements,y;if(s&&!/MSIE [678]/.test(navigator.userAgent)&&(s=n(s).get()),w&&(y=n(':input[form="'+w+'"]').get(),y.length&&(s=(s||[]).concat(y))),!s||!s.length)return e;for(l=0,b=s.length;l<b;l++)if(u=s[l],f=u.name,f&&!u.disabled){if(t&&o.clk&&u.type=="image"){o.clk==u&&(e.push({name:f,value:n(u).val(),type:u.type}),e.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));continue}if(c=n.fieldValue(u,!0),c&&c.constructor==Array)for(r&&r.push(u),h=0,k=c.length;h<k;h++)e.push({name:f,value:c[h]});else if(i.fileapi&&u.type=="file")if(r&&r.push(u),a=u.files,a.length)for(h=0;h<a.length;h++)e.push({name:f,value:a[h],type:u.type});else e.push({name:f,value:"",type:u.type});else c!==null&&typeof c!="undefined"&&(r&&
r.push(u),e.push({name:f,value:c,type:u.type,required:u.required}))}return!t&&o.clk&&(p=n(o.clk),v=p[0],f=v.name,f&&!v.disabled&&v.type=="image"&&(e.push({name:f,value:p.val()}),e.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}))),e};n.fn.formSerialize=function(t){return n.param(this.formToArray(t))};n.fn.fieldSerialize=function(t){var i=[];return this.each(function(){var f=this.name,r,u,e;if(f)if(r=n.fieldValue(this,t),r&&r.constructor==Array)for(u=0,e=r.length;u<e;u++)i.push({name:f,value:r[u]});else r!==null&&typeof r!="undefined"&&i.push({name:this.name,value:r})}),n.param(i)};n.fn.fieldValue=function(t){for(var f,i,r=[],u=0,e=this.length;u<e;u++)(f=this[u],i=n.fieldValue(f,t),i!==null&&typeof i!="undefined"&&(i.constructor!=Array||i.length))&&(i.constructor==Array?n.merge(r,i):r.push(i));return r};n.fieldValue=function(t,i){var a=t.name,u=t.type,h=t.tagName.toLowerCase(),e,o,r,f;if(i===undefined&&(i=!0),i&&(!a||t.disabled||u=="reset"||u=="button"||(u=="checkbox"||u=="radio")&&!t.checked||(u==
"submit"||u=="image")&&t.form&&t.form.clk!=t||h=="select"&&t.selectedIndex==-1))return null;if(h=="select"){if(e=t.selectedIndex,e<0)return null;var c=[],l=t.options,s=u=="select-one",v=s?e+1:l.length;for(o=s?e:0;o<v;o++)if(r=l[o],r.selected){if(f=r.value,f||(f=r.attributes&&r.attributes.value&&!r.attributes.value.specified?r.text:r.value),s)return f;c.push(f)}return c}return n(t).val()};n.fn.clearForm=function(t){return this.each(function(){n("input,select,textarea",this).clearFields(t)})};n.fn.clearFields=n.fn.clearInputs=function(t){var i=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var r=this.type,u=this.tagName.toLowerCase();i.test(r)||u=="textarea"?this.value="":r=="checkbox"||r=="radio"?this.checked=!1:u=="select"?this.selectedIndex=-1:r=="file"?/MSIE/.test(navigator.userAgent)?n(this).replaceWith(n(this).clone(!0)):n(this).val(""):t&&(t===!0&&/hidden/.test(r)||typeof t=="string"&&n(this).is(t))&&(this.value="")})};n.fn.resetForm=
function(){return this.each(function(){typeof this.reset!="function"&&(typeof this.reset!="object"||this.reset.nodeType)||this.reset()})};n.fn.enable=function(n){return n===undefined&&(n=!0),this.each(function(){this.disabled=!n})};n.fn.selected=function(t){return t===undefined&&(t=!0),this.each(function(){var r=this.type,i;r=="checkbox"||r=="radio"?this.checked=t:this.tagName.toLowerCase()=="option"&&(i=n(this).parent("select"),t&&i[0]&&i[0].type=="select-one"&&i.find("option").selected(!1),this.selected=t)})};n.fn.ajaxSubmit.debug=!1});!function(n){"use strict";function t(n){return function(t){if(this===t.target)return n.apply(this,arguments)}}var r=function(n,t){this.init(n,t)},i;r.prototype={constructor:r,init:function(t,i){if(this.$element=n(t),this.options=n.extend({},n.fn.modalmanager.defaults,this.$element.data(),typeof i=="object"&&i),this.stack=[],this.backdropCount=0,this.options.resize){var r,u=this;n(window).on("resize.modal",function(){r&&clearTimeout(r);r=setTimeout(function(){for(var n=0;n<u.stack.
length;n++)u.stack[n].isShown&&u.stack[n].layout()},10)})}},createModal:function(t,i){n(t).modal(n.extend({manager:this},i))},appendModal:function(i){this.stack.push(i);var r=this;i.$element.on("show.modalmanager",t(function(){var t=function(){i.isShown=!0;var t=n.support.transition&&i.$element.hasClass("fade");r.$element.toggleClass("modal-open",r.hasOpenModal()).toggleClass("page-overflow",n(window).height()<r.$element.height());i.$parent=i.$element.parent();i.$container=r.createContainer(i);i.$element.appendTo(i.$container);r.backdrop(i,function(){i.$element.show();t&&i.$element[0].offsetWidth;i.layout();i.$element.addClass("in").attr("aria-hidden",!1);var u=function(){r.setFocus();i.$element.trigger("shown")};t?i.$element.one(n.support.transition.end,u):u()})};i.options.replace?r.replace(t):t()}));i.$element.on("hidden.modalmanager",t(function(){if(r.backdrop(i),i.$element.parent().length)if(i.$backdrop){var t=n.support.transition&&i.$element.hasClass("fade");t&&i.$element[0].offsetWidth;n.support.transition&&
i.$element.hasClass("fade")?i.$backdrop.one(n.support.transition.end,function(){i.destroy()}):i.destroy()}else i.destroy();else r.destroyModal(i)}));i.$element.on("destroy.modalmanager",t(function(){r.destroyModal(i)}))},getOpenModals:function(){for(var t=[],n=0;n<this.stack.length;n++)this.stack[n].isShown&&t.push(this.stack[n]);return t},hasOpenModal:function(){return this.getOpenModals().length>0},setFocus:function(){for(var t,n=0;n<this.stack.length;n++)this.stack[n].isShown&&(t=this.stack[n]);t&&t.focus()},destroyModal:function(n){n.$element.off(".modalmanager");n.$backdrop&&this.removeBackdrop(n);this.stack.splice(this.getIndexOfModal(n),1);var t=this.hasOpenModal();this.$element.toggleClass("modal-open",t);t||this.$element.removeClass("page-overflow");this.removeContainer(n);this.setFocus()},getModalAt:function(n){return this.stack[n]},getIndexOfModal:function(n){for(var t=0;t<this.stack.length;t++)if(n===this.stack[t])return t},replace:function(i){for(var r,u=0;u<this.stack.length;u++)this.stack[u].isShown&&
(r=this.stack[u]);r?(this.$backdropHandle=r.$backdrop,r.$backdrop=null,i&&r.$element.one("hidden",t(n.proxy(i,this))),r.hide()):i&&i()},removeBackdrop:function(n){n.$backdrop.remove();n.$backdrop=null},createBackdrop:function(t,i){var r;return this.$backdropHandle?(r=this.$backdropHandle,r.off(".modalmanager"),this.$backdropHandle=null,this.isLoading&&this.removeSpinner()):r=n(i).addClass(t).appendTo(this.$element),r},removeContainer:function(n){n.$container.remove();n.$container=null},createContainer:function(r){var u;if(u=n('<div class="modal-scrollable">').css("z-index",i("modal",this.getOpenModals().length)).appendTo(this.$element),r&&r.options.backdrop!="static")u.on("click.modal",t(function(){r.hide()}));else if(r)u.on("click.modal",t(function(){r.attention()}));return u},backdrop:function(t,r){var e=t.$element.hasClass("fade")?"fade":"",o=t.options.backdrop&&this.backdropCount<this.options.backdropLimit,u,f;t.isShown&&o?(u=n.support.transition&&e&&!this.$backdropHandle,t.$backdrop=this.createBackdrop(e,
t.options.backdropTemplate),t.$backdrop.css("z-index",i("backdrop",this.getOpenModals().length)),u&&t.$backdrop[0].offsetWidth,t.$backdrop.addClass("in"),this.backdropCount+=1,u?t.$backdrop.one(n.support.transition.end,r):r()):!t.isShown&&t.$backdrop?(t.$backdrop.removeClass("in"),this.backdropCount-=1,f=this,n.support.transition&&t.$element.hasClass("fade")?t.$backdrop.one(n.support.transition.end,function(){f.removeBackdrop(t)}):f.removeBackdrop(t)):r&&r()},removeSpinner:function(){this.$spinner&&this.$spinner.remove();this.$spinner=null;this.isLoading=!1},removeLoading:function(){this.$backdropHandle&&this.$backdropHandle.remove();this.$backdropHandle=null;this.removeSpinner()},loading:function(t){var r,f,u;t=t||function(){};this.$element.toggleClass("modal-open",!this.isLoading||this.hasOpenModal()).toggleClass("page-overflow",n(window).height()<this.$element.height());this.isLoading?this.isLoading&&this.$backdropHandle?(this.$backdropHandle.removeClass("in"),u=this,n.support.transition?this.$backdropHandle.
one(n.support.transition.end,function(){u.removeLoading()}):u.removeLoading()):t&&t(this.isLoading):(this.$backdropHandle=this.createBackdrop("fade",this.options.backdropTemplate),this.$backdropHandle[0].offsetWidth,r=this.getOpenModals(),this.$backdropHandle.css("z-index",i("backdrop",r.length+1)).addClass("in"),f=n(this.options.spinner).css("z-index",i("modal",r.length+1)).appendTo(this.$element).addClass("in"),this.$spinner=n(this.createContainer()).append(f).on("click.modalmanager",n.proxy(this.loading,this)),this.isLoading=!0,n.support.transition?this.$backdropHandle.one(n.support.transition.end,t):t())}};i=function(){var i,t={};return function(r,u){if(typeof i=="undefined"){var f=n('<div class="modal hide" />').appendTo("body"),e=n('<div class="modal-backdrop hide" />').appendTo("body");t.modal=+f.css("z-index");t.backdrop=+e.css("z-index");i=t.modal-t.backdrop;f.remove();e.remove();e=f=null}return t[r]+i*u}}();n.fn.modalmanager=function(t,i){return this.each(function(){var f=n(this),u=f.data("modalmanager");
u||f.data("modalmanager",u=new r(this,t));typeof t=="string"&&u[t].apply(u,[].concat(i))})};n.fn.modalmanager.defaults={backdropLimit:999,resize:!0,spinner:'<div class="loading-spinner fade" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"><\/div><\/div><\/div>',backdropTemplate:'<div class="modal-backdrop" />'};n.fn.modalmanager.Constructor=r;n(function(){n(document).off("show.bs.modal").off("hidden.bs.modal")})}(jQuery);!function(n){"use strict";var t=function(n,t){this.init(n,t)};t.prototype={constructor:t,init:function(t,i){var u=this,r;this.options=i;this.$element=n(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",n.proxy(this.hide,this));this.options.remote&&this.$element.find(".modal-body").load(this.options.remote,function(){var t=n.Event("loaded");u.$element.trigger(t)});r=typeof this.options.manager=="function"?this.options.manager.call(this):this.options.manager;r=r.appendModal?r:n(r).modalmanager().data("modalmanager");
r.appendModal(this)},toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=n.Event("show");this.isShown||(this.$element.trigger(t),t.isDefaultPrevented())||(this.escape(),this.tab(),this.options.loading&&this.loading())},hide:function(t){if(t&&t.preventDefault(),t=n.Event("hide"),this.$element.trigger(t),!this.isShown||t.isDefaultPrevented())return this.isShown=!1;this.isShown=!1;this.escape();this.tab();this.isLoading&&this.loading();n(document).off("focusin.modal");this.$element.removeClass("in").removeClass("animated").removeClass(this.options.attentionAnimation).removeClass("modal-overflow").attr("aria-hidden",!0);n.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal()},layout:function(){var i=this.options.height?"height":"max-height",r=this.options.height||this.options.maxHeight,t,u;this.options.width?(this.$element.css("width",this.options.width),t=this,this.$element.css("margin-left",function(){return/%/ig.test(t.options.width)?-(parseInt(
t.options.width)/2)+"%":-(n(this).width()/2)+"px"})):(this.$element.css("width",""),this.$element.css("margin-left",""));this.$element.find(".modal-body").css("overflow","").css(i,"");r&&this.$element.find(".modal-body").css("overflow","auto").css(i,r);u=n(window).height()-10<this.$element.height();u||this.options.modalOverflow?this.$element.css("margin-top",0).addClass("modal-overflow"):this.$element.css("margin-top",0-this.$element.height()/2).removeClass("modal-overflow")},tab:function(){var t=this;if(this.isShown&&this.options.consumeTab)this.$element.on("keydown.tabindex.modal","[data-tabindex]",function(i){if(i.keyCode&&i.keyCode==9){var r=n(this),u=n(this);t.$element.find("[data-tabindex]:enabled:not([readonly])").each(function(t){r=t.shiftKey?r.data("tabindex")>n(this).data("tabindex")?r=n(this):u=n(this):r.data("tabindex")<n(this).data("tabindex")?r=n(this):u=n(this)});r[0]!==n(this)[0]?r.focus():u.focus();i.preventDefault()}});else this.isShown||this.$element.off("keydown.tabindex.modal")},escape:function(
){var n=this;if(this.isShown&&this.options.keyboard){this.$element.attr("tabindex")||this.$element.attr("tabindex",-1);this.$element.on("keyup.dismiss.modal",function(t){t.which==27&&n.hide()})}else this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,i=setTimeout(function(){t.$element.off(n.support.transition.end);t.hideModal()},500);this.$element.one(n.support.transition.end,function(){clearTimeout(i);t.hideModal()})},hideModal:function(){var n=this.options.height?"height":"max-height",t=this.options.height||this.options.maxHeight;t&&this.$element.find(".modal-body").css("overflow","").css(n,"");this.$element.hide().trigger("hidden")},removeLoading:function(){this.$loading.remove();this.$loading=null;this.isLoading=!1},loading:function(t){var i,r,u;t=t||function(){};i=this.$element.hasClass("fade")?"fade":"";this.isLoading?this.isLoading&&this.$loading?(this.$loading.removeClass("in"),u=this,n.support.transition&&this.$element.hasClass("fade")?this.$loading.one(n.
support.transition.end,function(){u.removeLoading()}):u.removeLoading()):t&&t(this.isLoading):(r=n.support.transition&&i,this.$loading=n('<div class="loading-mask '+i+'">').append(this.options.spinner).appendTo(this.$element),r&&this.$loading[0].offsetWidth,this.$loading.addClass("in"),this.isLoading=!0,r?this.$loading.one(n.support.transition.end,t):t())},focus:function(){var n=this.$element.find(this.options.focusOn);n=n.length?n:this.$element;n.focus()},attention:function(){if(this.options.attentionAnimation){this.$element.removeClass("animated").removeClass(this.options.attentionAnimation);var n=this;setTimeout(function(){n.$element.addClass("animated").addClass(n.options.attentionAnimation)},0)}this.focus()},destroy:function(){var t=n.Event("destroy");(this.$element.trigger(t),t.isDefaultPrevented())||this.teardown()},teardown:function(){if(!this.$parent.length){this.$element.remove();this.$element=null;return}this.$parent!==this.$element.parent()&&this.$element.appendTo(this.$parent);this.$element.off(".modal");
this.$element.removeData("modal");this.$element.removeClass("in").attr("aria-hidden",!0)}};n.fn.modal=function(i,r){return this.each(function(){var f=n(this),u=f.data("modal"),e=n.extend({},n.fn.modal.defaults,f.data(),typeof i=="object"&&i);u||f.data("modal",u=new t(this,e));typeof i=="string"?u[i].apply(u,[].concat(r)):e.show&&u.show()})};n.fn.modal.defaults={keyboard:!0,backdrop:!0,loading:!1,show:!0,width:null,height:null,maxHeight:null,modalOverflow:!1,consumeTab:!0,focusOn:null,replace:!1,resize:!1,attentionAnimation:"shake",manager:"body",spinner:'<div class="loading-spinner" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"><\/div><\/div><\/div>',backdropTemplate:'<div class="modal-backdrop" />'};n.fn.modal.Constructor=t;n(function(){n(document).off("click.modal").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var i=n(this),r=i.attr("href"),u=n(i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),f=u.data(
"modal")?"toggle":n.extend({remote:!/#/.test(r)&&r},u.data(),i.data());t.preventDefault();u.modal(f).one("hide",function(){i.focus()})})})}(window.jQuery);
/*!
 * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2016
 *
 * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format.
 * @see http://php.net/manual/en/function.date.php
 *
 * For more JQuery plugins visit http://plugins.krajee.com
 * For more Yii related demos visit http://demos.krajee.com
 */
!function(){"use strict";var t,n,i,r,e,u,f;u=864e5;f=3600;t=function(n,t){return"string"==typeof n&&"string"==typeof t&&n.toLowerCase()===t.toLowerCase()};n=function(t,i,r){var f=r||"0",u=t.toString();return u.length<i?n(f+u,i):u};i=function(n){var u,r,t;for(n=n||{},u=1;u<arguments.length;u++)if(r=arguments[u])for(t in r)r.hasOwnProperty(t)&&("object"==typeof r[t]?i(n[t],r[t]):n[t]=r[t]);return n};r=function(n,t){for(var i=0;i<t.length;i++)if(t[i].toLowerCase()===n.toLowerCase())return i;return-1};e={dateSettings:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["AM","PM"],ordinal:function(n){var t=n%10,i={1:"st",2:"nd",3:"rd"};return 1!==Math.floor(n%100/10)&&i[t]?i[t]:"th"}},separators:/[ \-+\/\.T:@]/g,validParts:/[dDjlNSwzWFmMntLoYyaABgGhHisueTIOPZcrU]/g,
intParts:/[djwNzmnyYhHgGis]/g,tzParts:/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,tzClip:/[^-+\dA-Z]/g};DateFormatter=function(n){var t=this,r=i(e,n);t.dateSettings=r.dateSettings;t.separators=r.separators;t.validParts=r.validParts;t.intParts=r.intParts;t.tzParts=r.tzParts;t.tzClip=r.tzClip};DateFormatter.prototype={constructor:DateFormatter,getMonth:function(n){var t,i=this;return t=r(n,i.dateSettings.monthsShort)+1,0===t&&(t=r(n,i.dateSettings.months)+1),t},parseDate:function(n,i){var f,h,e,o,r,a,v,y,w,p,c=this,l=!1,s=!1,b=c.dateSettings,u={date:null,year:null,month:null,day:null,hour:0,min:0,sec:0};if(!n)return null;if(n instanceof Date)return n;if("U"===i)return e=parseInt(n),e?new Date(1e3*e):n;switch(typeof n){case"number":return new Date(n);case"string":break;default:return null}if(f=i.match(c.validParts),!f||0===f.length)throw new Error("Invalid date format definition.");for(h=n.replace(c.separators,"\x00").split(
"\x00"),e=0;e<h.length;e++)switch(o=h[e],r=parseInt(o),f[e]){case"y":case"Y":if(!r)return null;w=o.length;u.year=2===w?parseInt((70>r?"20":"19")+o):r;l=!0;break;case"m":case"n":case"M":case"F":if(isNaN(r)){if(a=c.getMonth(o),!(a>0))return null;u.month=a}else{if(!(r>=1&&12>=r))return null;u.month=r}l=!0;break;case"d":case"j":if(!(r>=1&&31>=r))return null;u.day=r;l=!0;break;case"g":case"h":if(v=f.indexOf("a")>-1?f.indexOf("a"):f.indexOf("A")>-1?f.indexOf("A"):-1,p=h[v],v>-1)y=t(p,b.meridiem[0])?0:t(p,b.meridiem[1])?12:-1,r>=1&&12>=r&&y>-1?u.hour=r+y-1:r>=0&&23>=r&&(u.hour=r);else{if(!(r>=0&&23>=r))return null;u.hour=r}s=!0;break;case"G":case"H":if(!(r>=0&&23>=r))return null;u.hour=r;s=!0;break;case"i":if(!(r>=0&&59>=r))return null;u.min=r;s=!0;break;case"s":if(!(r>=0&&59>=r))return null;u.sec=r;s=!0}if(l===!0&&u.year&&u.month&&u.day)u.date=new Date(u.year,u.month-1,u.day,u.hour,u.min,u.sec,0);else{if(s!==!0)return null;u.date=new Date(0,0,0,u.hour,u.min,u.sec,0)}return u.date},guessDate:function(n,t){if("string"!=
typeof n)return n;var e,o,u,h,f,r,a=this,c=n.replace(a.separators,"\x00").split("\x00"),s=t.match(a.validParts),i=new Date,l=0;if(!/^[djmn]/g.test(s[0]))return n;for(u=0;u<c.length;u++){if(l=2,f=c[u],r=parseInt(f.substr(0,2)),isNaN(r))return null;switch(u){case 0:"m"===s[0]||"n"===s[0]?i.setMonth(r-1):i.setDate(r);break;case 1:"m"===s[0]||"n"===s[0]?i.setDate(r):i.setMonth(r-1);break;case 2:if(o=i.getFullYear(),e=f.length,l=4>e?e:4,o=parseInt(4>e?o.toString().substr(0,4-e)+f:f.substr(0,4)),!o)return null;i.setFullYear(o);break;case 3:i.setHours(r);break;case 4:i.setMinutes(r);break;case 5:i.setSeconds(r)}h=f.substr(l);h.length>0&&c.splice(u+1,0,h)}return i},parseFormat:function(t,i){var r,o=this,e=o.dateSettings,h=/\\?(.?)/gi,s=function(n,t){return r[n]?r[n]():t};return r={d:function(){return n(r.j(),2)},D:function(){return e.daysShort[r.w()]},j:function(){return i.getDate()},l:function(){return e.days[r.w()]},N:function(){return r.w()||7},w:function(){return i.getDay()},z:function(){var n=new Date(r.Y(),r.n(
)-1,r.j()),t=new Date(r.Y(),0,1);return Math.round((n-t)/u)},W:function(){var t=new Date(r.Y(),r.n()-1,r.j()-r.N()+3),i=new Date(t.getFullYear(),0,4);return n(1+Math.round((t-i)/u/7),2)},F:function(){return e.months[i.getMonth()]},m:function(){return n(r.n(),2)},M:function(){return e.monthsShort[i.getMonth()]},n:function(){return i.getMonth()+1},t:function(){return new Date(r.Y(),r.n(),0).getDate()},L:function(){var n=r.Y();return n%4==0&&n%100!=0||n%400==0?1:0},o:function(){var n=r.n(),t=r.W(),i=r.Y();return i+(12===n&&9>t?1:1===n&&t>9?-1:0)},Y:function(){return i.getFullYear()},y:function(){return r.Y().toString().slice(-2)},a:function(){return r.A().toLowerCase()},A:function(){var n=r.G()<12?0:1;return e.meridiem[n]},B:function(){var t=i.getUTCHours()*f,r=60*i.getUTCMinutes(),u=i.getUTCSeconds();return n(Math.floor((t+r+u+f)/86.4)%1e3,3)},g:function(){return r.G()%12||12},G:function(){return i.getHours()},h:function(){return n(r.g(),2)},H:function(){return n(r.G(),2)},i:function(){return n(i.getMinutes(),2)}
,s:function(){return n(i.getSeconds(),2)},u:function(){return n(1e3*i.getMilliseconds(),6)},e:function(){var n=/\((.*)\)/.exec(String(i))[1];return n||"Coordinated Universal Time"},I:function(){var n=new Date(r.Y(),0),t=Date.UTC(r.Y(),0),i=new Date(r.Y(),6),u=Date.UTC(r.Y(),6);return n-t!=i-u?1:0},O:function(){var t=i.getTimezoneOffset(),r=Math.abs(t);return(t>0?"-":"+")+n(100*Math.floor(r/60)+r%60,4)},P:function(){var n=r.O();return n.substr(0,3)+":"+n.substr(3,2)},T:function(){var n=(String(i).match(o.tzParts)||[""]).pop().replace(o.tzClip,"");return n||"UTC"},Z:function(){return 60*-i.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(h,s)},r:function(){return"D, d M Y H:i:s O".replace(h,s)},U:function(){return i.getTime()/1e3||0}},s(t,t)},formatDate:function(n,t){var i,s,e,u,r,f=this,o="",h="\\";if("string"==typeof n&&(n=f.parseDate(n,t),!n))return null;if(n instanceof Date){for(e=t.length,i=0;e>i;i++)r=t.charAt(i),"S"!==r&&r!==h&&(i>0&&t.charAt(i-1)===h?o+=r:(u=f.parseFormat(r,n),i!==e-1&&f.
intParts.test(r)&&"S"===t.charAt(i+1)&&(s=parseInt(u)||0,u+=f.dateSettings.ordinal(s)),o+=u));return o}return""}}}();
/**
 * @preserve jQuery DateTimePicker
 * @homepage http://xdsoft.net/jqplugins/datetimepicker/
 * @author Chupurnov Valeriy (<chupurnov@gmail.com>)
 */
datetimepickerFactory=function(n){"use strict";function h(n,t,i){this.date=n;this.desc=t;this.style=i}var i={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:
["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень",
"Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari",
"februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:
["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November",
"December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag",
"torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben",
"Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],
dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu",
"Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],
dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro",
"Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар",
"март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},
he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi",
"Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(
){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},t=null,u=null,c="en",r="de",l={meridiem:["AM","PM"]},o=function(){var f=i.i18n[r],e={days:f.dayOfWeek,daysShort:f.dayOfWeekShort,months:f.months,monthsShort:n.map(f.months,function(n){return n.substring(0,3)})};typeof DateFormatter=="function"&&(t=u=new DateFormatter({dateSettings:n.extend({},l,e)}))},s={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},
formatter:{parseDate:function(n,t){if(e(t))return u.parseDate(n,t);var i=moment(n,t);return i.isValid()?i.toDate():!1},formatDate:function(n,t){return e(t)?u.formatDate(n,t):moment(n).format(t)},formatMask:function(n){return n.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}},f,e;n.datetimepicker={setLocale:function(n){var t=i.i18n[n]?n:c;r!==t&&(r=t,o())},setDateFormatter:function(r){if(typeof r=="string"&&s.hasOwnProperty(r)){var u=s[r];n.extend(i,u.default_options);t=u.formatter}else t=r}};f={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"};e=function(n){return Object.values(f).indexOf(n)===-1?!1:!0};n.extend(n.datetimepicker,f);o();window.getComputedStyle||(window.getComputedStyle=function(n){return this.el=n,this.getPropertyValue=
function(t){var i=/(-([a-z]))/g;return t==="float"&&(t="styleFloat"),i.test(t)&&(t=t.replace(i,function(n,t,i){return i.toUpperCase()})),n.currentStyle[t]||null},this});Array.prototype.indexOf||(Array.prototype.indexOf=function(n,t){for(var i=t||0,r=this.length;i<r;i+=1)if(this[i]===n)return i;return-1});Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()};n.fn.xdsoftScroller=function(t,i){return this.each(function(){var r=n(this),h=function(n){var t={x:0,y:0},i;return n.type==="touchstart"||n.type==="touchmove"||n.type==="touchend"||n.type==="touchcancel"?(i=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0],t.x=i.clientX,t.y=i.clientY):(n.type==="mousedown"||n.type==="mouseup"||n.type==="mousemove"||n.type==="mouseover"||n.type==="mouseout"||n.type==="mouseenter"||n.type==="mouseleave")&&(t.x=n.clientX,t.y=n.clientY),t},e,f,o,s,u,c=100,l=!1,b=0,v=0,y=0,p=!1,w=0,a=function(){};if(i==="hide"){r.find(".xdsoft_scrollbar").hide();return}if(!n(this).
hasClass("xdsoft_scroller_box")){e=r.children().eq(0);f=r[0].clientHeight;o=e[0].offsetHeight;s=n('<div class="xdsoft_scrollbar"><\/div>');u=n('<div class="xdsoft_scroller"><\/div>');s.append(u);r.addClass("xdsoft_scroller_box").append(s);a=function(n){var t=h(n).y-b+w;t<0&&(t=0);t+u[0].offsetHeight>y&&(t=y-u[0].offsetHeight);r.trigger("scroll_element.xdsoft_scroller",[c?t/c:0])};u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){if(f||r.trigger("resize_scroll.xdsoft_scroller",[i]),b=h(e).y,w=parseInt(u.css("margin-top"),10),y=s[0].offsetHeight,e.type==="mousedown"||e.type==="touchstart"){t.ownerDocument&&n(t.ownerDocument.body).addClass("xdsoft_noselect");n([t.ownerDocument.body,t.contentWindow]).on("touchend mouseup.xdsoft_scroller",function o(){n([t.ownerDocument.body,t.contentWindow]).off("touchend mouseup.xdsoft_scroller",o).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")});n(t.ownerDocument.body).on("mousemove.xdsoft_scroller",a)}else p=!0,e.stopPropagation(),e.preventDefault(
)}).on("touchmove",function(n){p&&(n.preventDefault(),a(n))}).on("touchend touchcancel",function(){p=!1;w=0});r.on("scroll_element.xdsoft_scroller",function(n,t){f||r.trigger("resize_scroll.xdsoft_scroller",[t,!0]);t=t>1?1:t<0||isNaN(t)?0:t;u.css("margin-top",c*t);setTimeout(function(){e.css("marginTop",-parseInt((e[0].offsetHeight-f)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(n,t,i){var h,l;f=r[0].clientHeight;o=e[0].offsetHeight;h=f/o;l=h*s[0].offsetHeight;h>1?u.hide():(u.show(),u.css("height",parseInt(l>10?l:10,10)),c=s[0].offsetHeight-u[0].offsetHeight,i!==!0&&r.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(e.css("marginTop"),10))/(o-f)]))});r.on("mousewheel",function(n){var t=Math.abs(parseInt(e.css("marginTop"),10));return t=t-n.deltaY*20,t<0&&(t=0),r.trigger("scroll_element.xdsoft_scroller",[t/(o-f)]),n.stopPropagation(),!1});r.on("touchstart",function(n){l=h(n);v=Math.abs(parseInt(e.css("marginTop"),10))});r.on("touchmove",function(n){if(l){n.preventDefault();var t=h(n);
r.trigger("scroll_element.xdsoft_scroller",[(v-(t.y-l.y))/(o-f)])}});r.on("touchend touchcancel",function(){l=!1;v=0})}r.trigger("resize_scroll.xdsoft_scroller",[i])})};n.fn.datetimepicker=function(u,f){var a=this,v=48,nt=57,y=96,p=105,s=17,w=46,b=13,tt=27,o=8,it=37,rt=38,ut=39,ft=40,k=9,et=116,ot=65,st=67,ht=86,ct=90,lt=89,c=!1,e=n.isPlainObject(u)||!u?n.extend(!0,{},i,u):n.extend(!0,{},i),d=0,l,g,at=function(n){n.on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function t(){n.is(":disabled")||n.data("xdsoft_datetimepicker")||(clearTimeout(d),d=setTimeout(function(){n.data("xdsoft_datetimepicker")||l(n);n.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",t).trigger("open.xdsoft")},100))})};l=function(i){function fi(){var n=!1,t;return e.startDate?n=l.strToDate(e.startDate):(n=e.value||(i&&i.val&&i.val()?i.val():""),n?(n=l.strToDateTime(n),e.yearOffset&&(n=new Date(n.getFullYear()-e.yearOffset,n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))):e.defaultDate&&
(n=l.strToDateTime(e.defaultDate),e.defaultTime&&(t=l.strtotime(e.defaultTime),n.setHours(t.getHours()),n.setMinutes(t.getMinutes())))),n&&l.isValidDate(n)?f.data("changed",!0):n="",n||0}function oi(r){var u=function(n,t){var i=n.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(i).test(t)},e=function(n){try{if(r.ownerDocument.selection&&r.ownerDocument.selection.createRange){var t=r.ownerDocument.selection.createRange();return t.getBookmark().charCodeAt(2)-2}if(n.setSelectionRange)return n.selectionStart}catch(i){return 0}},f=function(n,t){if(n=typeof n=="string"||n instanceof String?r.ownerDocument.getElementById(n):n,!n)return!1;if(n.createTextRange){var i=n.createTextRange();return i.collapse(!0),i.moveEnd("character",t),i.moveStart("character",t),i.select(),!0}return n.setSelectionRange?(n.setSelectionRange(t,t),!0):!1};if(r.mask&&i.off("keydown.xdsoft"),
r.mask===!0&&(r.mask=t.formatMask?t.formatMask(r.format):r.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),n.type(r.mask)==="string"){u(r.mask,i.val())||(i.val(r.mask.replace(/[0-9]/g,"_")),f(i[0],0));i.on("paste.xdsoft",function(t){var h=t.clipboardData||t.originalEvent.clipboardData||window.clipboardData,s=h.getData("text"),e=this.value,o=this.selectionStart,c=e.substr(0,o),l=e.substr(o+s.length);return e=c+s+l,o+=s.length,u(r.mask,e)?(this.value=e,f(this,o)):n.trim(e)===""?this.value=r.mask.replace(/[0-9]/g,"_"):i.trigger("error_input.xdsoft"),t.preventDefault(),!1});i.on("keydown.xdsoft",function(t){var l=this.value,h=t.which,e=this.selectionStart,g=this.selectionEnd,a=e!==g,d;if(h>=v&&h<=nt||h>=y&&h<=p||h===o||h===w){for(d=h===o||h===w?"_":String.fromCharCode(y<=h&&h<=p?h-v:h),h===o&&e&&!a&&(e-=1);;){var yt=r.mask.substr(e,1),pt=e<r.mask.length,wt=e>0,bt=/[^0-9_]/.test(yt),kt=bt&&pt&&wt;if(!kt)break;e+=h===o&&
!a?-1:1}if(a){var at=g-e,vt=r.mask.replace(/[0-9]/g,"_"),dt=vt.substr(e,at),gt=dt.substr(1),ni=l.substr(0,e),ti=d+gt,ii=l.substr(e+at);l=ni+ti+ii}else{var ri=l.substr(0,e),ui=d,fi=l.substr(e+1);l=ri+ui+fi}if(n.trim(l)==="")l=vt;else if(e===r.mask.length)return t.preventDefault(),!1;for(e+=h===o?0:1;/[^0-9_]/.test(r.mask.substr(e,1))&&e<r.mask.length&&e>0;)e+=h===o?0:1;u(r.mask,l)?(this.value=l,f(this,e)):n.trim(l)===""?this.value=r.mask.replace(/[0-9]/g,"_"):i.trigger("error_input.xdsoft")}else if([ot,st,ht,ct,lt].indexOf(h)!==-1&&c||[tt,rt,ft,it,ut,et,s,k,b].indexOf(h)!==-1)return!0;return t.preventDefault(),!1})}}var f=n('<div class="xdsoft_datetimepicker xdsoft_noselect"><\/div>'),si=n('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net<\/a><\/div>'),at=n('<div class="xdsoft_datepicker active"><\/div>'),d=n('<div class="xdsoft_monthpicker"><button type="button" class="xdsoft_prev"><\/button><button type="button" class="xdsoft_today_button"><\/button><div class="xdsoft_label xdsoft_month"><span><\/span><i><\/i><\/div><div class="xdsoft_label xdsoft_year"><span><\/span><i><\/i><\/div><button type="button" class="xdsoft_next"><\/button><\/div>'),
kt=n('<div class="xdsoft_calendar"><\/div>'),yt=n('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"><\/button><div class="xdsoft_time_box"><\/div><button type="button" class="xdsoft_next"><\/button><\/div>'),g=yt.find(".xdsoft_time_box").eq(0),a=n('<div class="xdsoft_time_variant"><\/div>'),dt=n('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected<\/button>'),gt=n('<div class="xdsoft_select xdsoft_monthselect"><div><\/div><\/div>'),ni=n('<div class="xdsoft_select xdsoft_yearselect"><div><\/div><\/div>'),pt=!1,ei,ti,wt,vt,bt,ii=0,l,ri,ui;e.id&&f.attr("id",e.id);e.style&&f.attr("style",e.style);e.weeks&&f.addClass("xdsoft_showweeks");e.rtl&&f.addClass("xdsoft_rtl");f.addClass("xdsoft_"+e.theme);f.addClass(e.className);d.find(".xdsoft_month span").after(gt);d.find(".xdsoft_year span").after(ni);d.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var i=n(this).find(".xdsoft_select").eq(0),f=0,o=0,s=i.is(":visible"),r,u;
for(d.find(".xdsoft_select").hide(),l.currentTime&&(f=l.currentTime[n(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),i[s?"hide":"show"](),r=i.find("div.xdsoft_option"),u=0;u<r.length;u+=1)if(r.eq(u).data("value")===f)break;else o+=r[0].offsetHeight;return i.xdsoftScroller(e,o/(i.children()[0].offsetHeight-i[0].clientHeight)),t.stopPropagation(),!1});ui=function(n){var t=n.originalEvent,i=t.touches?t.touches[0]:t;this.touchStartPosition=this.touchStartPosition||i;var r=Math.abs(this.touchStartPosition.clientX-i.clientX),u=Math.abs(this.touchStartPosition.clientY-i.clientY),f=Math.sqrt(r*r+u*u);f>e.touchMovedThreshold&&(this.touchMoved=!0)};d.find(".xdsoft_select").xdsoftScroller(e).on("touchstart mousedown.xdsoft",function(n){var t=n.originalEvent;this.touchMoved=!1;this.touchStartPosition=t.touches?t.touches[0]:t;n.stopPropagation();n.preventDefault()}).on("touchmove",".xdsoft_option",ui).on("touchend mousedown.xdsoft",".xdsoft_option",function(){if(!this.touchMoved){(l.currentTime===undefined||l.
currentTime===null)&&(l.currentTime=l.now());var t=l.currentTime.getFullYear();l&&l.currentTime&&l.currentTime[n(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](n(this).data("value"));n(this).parent().parent().hide();f.trigger("xchange.xdsoft");e.onChangeMonth&&n.isFunction(e.onChangeMonth)&&e.onChangeMonth.call(f,l.currentTime,f.data("input"));t!==l.currentTime.getFullYear()&&n.isFunction(e.onChangeYear)&&e.onChangeYear.call(f,l.currentTime,f.data("input"))}});f.getValue=function(){return l.getCurrentTime()};f.setOptions=function(r){var u={};if(e=n.extend(!0,{},e,r),r.allowTimes&&n.isArray(r.allowTimes)&&r.allowTimes.length&&(e.allowTimes=n.extend(!0,[],r.allowTimes)),r.weekends&&n.isArray(r.weekends)&&r.weekends.length&&(e.weekends=n.extend(!0,[],r.weekends)),r.allowDates&&n.isArray(r.allowDates)&&r.allowDates.length&&(e.allowDates=n.extend(!0,[],r.allowDates)),r.allowDateRe&&Object.prototype.toString.call(r.allowDateRe)==="[object String]"&&(e.allowDateRe=new RegExp(r.allowDateRe)),
r.highlightedDates&&n.isArray(r.highlightedDates)&&r.highlightedDates.length&&(n.each(r.highlightedDates,function(i,r){var c=n.map(r.split(","),n.trim),o,f=new h(t.parseDate(c[0],e.formatDate),c[1],c[2]),s=t.formatDate(f.date,e.formatDate);u[s]!==undefined?(o=u[s].desc,o&&o.length&&f.desc&&f.desc.length&&(u[s].desc=o+"\n"+f.desc)):u[s]=f}),e.highlightedDates=n.extend(!0,[],u)),r.highlightedPeriods&&n.isArray(r.highlightedPeriods)&&r.highlightedPeriods.length&&(u=n.extend(!0,[],e.highlightedDates),n.each(r.highlightedPeriods,function(i,r){var f,a,v,o,s,l,y,c;for(n.isArray(r)?(f=r[0],a=r[1],v=r[2],y=r[3]):(c=n.map(r.split(","),n.trim),f=t.parseDate(c[0],e.formatDate),a=t.parseDate(c[1],e.formatDate),v=c[2],y=c[3]);f<=a;)o=new h(f,v,y),s=t.formatDate(f,e.formatDate),f.setDate(f.getDate()+1),u[s]!==undefined?(l=u[s].desc,l&&l.length&&o.desc&&o.desc.length&&(u[s].desc=l+"\n"+o.desc)):u[s]=o}),e.highlightedDates=n.extend(!0,[],u)),r.disabledDates&&n.isArray(r.disabledDates)&&r.disabledDates.length&&(e.disabledDates=
n.extend(!0,[],r.disabledDates)),r.disabledWeekDays&&n.isArray(r.disabledWeekDays)&&r.disabledWeekDays.length&&(e.disabledWeekDays=n.extend(!0,[],r.disabledWeekDays)),(e.open||e.opened)&&!e.inline&&i.trigger("open.xdsoft"),e.inline&&(pt=!0,f.addClass("xdsoft_inline"),i.after(f).hide()),e.inverseButton&&(e.next="xdsoft_prev",e.prev="xdsoft_next"),e.datepicker?at.addClass("active"):at.removeClass("active"),e.timepicker?yt.addClass("active"):yt.removeClass("active"),e.value&&(l.setCurrentTime(e.value),i&&i.val&&i.val(l.str)),e.dayOfWeekStart=isNaN(e.dayOfWeekStart)?0:parseInt(e.dayOfWeekStart,10)%7,e.timepickerScrollbar||g.xdsoftScroller(e,"hide"),e.minDate&&/^[\+\-](.*)$/.test(e.minDate)&&(e.minDate=t.formatDate(l.strToDateTime(e.minDate),e.formatDate)),e.maxDate&&/^[\+\-](.*)$/.test(e.maxDate)&&(e.maxDate=t.formatDate(l.strToDateTime(e.maxDate),e.formatDate)),e.minDateTime&&/^\+(.*)$/.test(e.minDateTime)&&(e.minDateTime=l.strToDateTime(e.minDateTime).dateFormat(e.formatDate)),e.maxDateTime&&/^\+(.*)$/.test(e.maxDateTime)&&
(e.maxDateTime=l.strToDateTime(e.maxDateTime).dateFormat(e.formatDate)),dt.toggle(e.showApplyButton),d.find(".xdsoft_today_button").css("visibility",e.todayButton?"visible":"hidden"),d.find("."+e.prev).css("visibility",e.prevButton?"visible":"hidden"),d.find("."+e.next).css("visibility",e.nextButton?"visible":"hidden"),oi(e),e.validateOnBlur)i.off("blur.xdsoft").on("blur.xdsoft",function(){var u,i,r;e.allowBlank&&(!n.trim(n(this).val()).length||typeof e.mask=="string"&&n.trim(n(this).val())===e.mask.replace(/[0-9]/g,"_"))?(n(this).val(null),f.data("xdsoft_datetime").empty()):(u=t.parseDate(n(this).val(),e.format),u?n(this).val(t.formatDate(u,e.format)):(i=+[n(this).val()[0],n(this).val()[1]].join(""),r=+[n(this).val()[2],n(this).val()[3]].join(""),!e.datepicker&&e.timepicker&&i>=0&&i<24&&r>=0&&r<60?n(this).val([i,r].map(function(n){return n>9?n:"0"+n}).join(":")):n(this).val(t.formatDate(l.now(),e.format))),f.data("xdsoft_datetime").setCurrentTime(n(this).val()));f.trigger("changedatetime.xdsoft");f.trigger("close.xdsoft")}
);e.dayOfWeekStartPrev=e.dayOfWeekStart===0?6:e.dayOfWeekStart-1;f.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")};f.data("options",e).on("touchstart mousedown.xdsoft",function(n){return n.stopPropagation(),n.preventDefault(),ni.hide(),gt.hide(),!1});g.append(a);g.xdsoftScroller(e);f.on("afterOpen.xdsoft",function(){g.xdsoftScroller(e)});f.append(at).append(yt);e.withoutCopyright!==!0&&f.append(si);at.append(d).append(kt).append(dt);n(e.parentID).append(f);ei=function(){var i=this;i.now=function(n){var t=new Date,u,r;return!n&&e.defaultDate&&(u=i.strToDateTime(e.defaultDate),t.setFullYear(u.getFullYear()),t.setMonth(u.getMonth()),t.setDate(u.getDate())),t.setFullYear(t.getFullYear()),!n&&e.defaultTime&&(r=i.strtotime(e.defaultTime),t.setHours(r.getHours()),t.setMinutes(r.getMinutes()),t.setSeconds(r.getSeconds()),t.setMilliseconds(r.getMilliseconds())),t};i.isValidDate=function(n){return Object.prototype.toString.call(n)!=="[object Date]"?!1:!isNaN(n.getTime())};i.setCurrentTime=function(n,t){i.currentTime=
typeof n=="string"?i.strToDateTime(n):i.isValidDate(n)?n:n||t||!e.allowBlank||e.inline?i.now():null;f.trigger("xchange.xdsoft")};i.empty=function(){i.currentTime=null};i.getCurrentTime=function(){return i.currentTime};i.nextMonth=function(){(i.currentTime===undefined||i.currentTime===null)&&(i.currentTime=i.now());var t=i.currentTime.getMonth()+1,r;return t===12&&(i.currentTime.setFullYear(i.currentTime.getFullYear()+1),t=0),r=i.currentTime.getFullYear(),i.currentTime.setDate(Math.min(new Date(i.currentTime.getFullYear(),t+1,0).getDate(),i.currentTime.getDate())),i.currentTime.setMonth(t),e.onChangeMonth&&n.isFunction(e.onChangeMonth)&&e.onChangeMonth.call(f,l.currentTime,f.data("input")),r!==i.currentTime.getFullYear()&&n.isFunction(e.onChangeYear)&&e.onChangeYear.call(f,l.currentTime,f.data("input")),f.trigger("xchange.xdsoft"),t};i.prevMonth=function(){(i.currentTime===undefined||i.currentTime===null)&&(i.currentTime=i.now());var t=i.currentTime.getMonth()-1;return t===-1&&(i.currentTime.setFullYear(i.currentTime.
getFullYear()-1),t=11),i.currentTime.setDate(Math.min(new Date(i.currentTime.getFullYear(),t+1,0).getDate(),i.currentTime.getDate())),i.currentTime.setMonth(t),e.onChangeMonth&&n.isFunction(e.onChangeMonth)&&e.onChangeMonth.call(f,l.currentTime,f.data("input")),f.trigger("xchange.xdsoft"),t};i.getWeekOfYear=function(t){var r,i;return e.onGetWeekOfYear&&n.isFunction(e.onGetWeekOfYear)&&(r=e.onGetWeekOfYear.call(f,t),typeof r!="undefined")?r:(i=new Date(t.getFullYear(),0,1),i.getDay()!==4&&i.setMonth(0,1+(11-i.getDay())%7),Math.ceil(((t-i)/864e5+i.getDay()+1)/7))};i.strToDateTime=function(n){var r=[],f,u;return n&&n instanceof Date&&i.isValidDate(n)?n:(r=/^([+-]{1})(.*)$/.exec(n),r&&(r[2]=t.parseDate(r[2],e.formatDate)),r&&r[2]?(f=r[2].getTime()-r[2].getTimezoneOffset()*6e4,u=new Date(i.now(!0).getTime()+parseInt(r[1]+"1",10)*f)):u=n?t.parseDate(n,e.format):i.now(),i.isValidDate(u)||(u=i.now()),u)};i.strToDate=function(n){if(n&&n instanceof Date&&i.isValidDate(n))return n;var r=n?t.parseDate(n,e.formatDate):i.now(
!0);return i.isValidDate(r)||(r=i.now(!0)),r};i.strtotime=function(n){if(n&&n instanceof Date&&i.isValidDate(n))return n;var r=n?t.parseDate(n,e.formatTime):i.now(!0);return i.isValidDate(r)||(r=i.now(!0)),r};i.str=function(){var n=e.format;return e.yearOffset&&(n=n.replace("Y",i.currentTime.getFullYear()+e.yearOffset),n=n.replace("y",String(i.currentTime.getFullYear()+e.yearOffset).substring(2,4))),t.formatDate(i.currentTime,n)};i.currentTime=this.now()};l=new ei;dt.on("touchend click",function(n){n.preventDefault();f.data("changed",!0);l.setCurrentTime(fi());i.val(l.str());f.trigger("close.xdsoft")});d.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){f.data("changed",!0);l.setCurrentTime(0,!0);f.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var n=l.getCurrentTime(),t,r;(n=new Date(n.getFullYear(),n.getMonth(),n.getDate()),t=l.strToDate(e.minDate),t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),n<t)||(r=l.strToDate(e.maxDate),r=new Date(r.getFullYear(),r.getMonth(),
r.getDate()),n>r)||(i.val(l.str()),i.trigger("change"),f.trigger("close.xdsoft"))});d.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=n(this),i=0,r=!1;(function u(n){t.hasClass(e.next)?l.nextMonth():t.hasClass(e.prev)&&l.prevMonth();e.monthChangeSpinner&&(r||(i=setTimeout(u,n||100)))})(500);n([e.ownerDocument.body,e.contentWindow]).on("touchend mouseup.xdsoft",function f(){clearTimeout(i);r=!0;n([e.ownerDocument.body,e.contentWindow]).off("touchend mouseup.xdsoft",f)})});yt.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var i=n(this),r=0,u=!1,t=110;(function f(n){var s=g[0].clientHeight,h=a[0].offsetHeight,o=Math.abs(parseInt(a.css("marginTop"),10));i.hasClass(e.next)&&h-s-e.timeHeightInTimePicker>=o?a.css("marginTop","-"+(o+e.timeHeightInTimePicker)+"px"):i.hasClass(e.prev)&&o-e.timeHeightInTimePicker>=0&&a.css("marginTop","-"+(o-e.timeHeightInTimePicker)+"px");g.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(a[0].style.marginTop,10)/
(h-s))]);t=t>10?10:t-10;u||(r=setTimeout(f,n||t))})(500);n([e.ownerDocument.body,e.contentWindow]).on("touchend mouseup.xdsoft",function o(){clearTimeout(r);u=!0;n([e.ownerDocument.body,e.contentWindow]).off("touchend mouseup.xdsoft",o)})});ti=0;f.on("xchange.xdsoft",function(o){clearTimeout(ti);ti=setTimeout(function(){var pt,wt,tt,it,bt,v,dt,c,lt;(l.currentTime===undefined||l.currentTime===null)&&(l.currentTime=l.now());for(var p="",o=new Date(l.currentTime.getFullYear(),l.currentTime.getMonth(),1,12,0,0),s=0,w,et=l.now(),k=!1,g=!1,b=!1,y=!1,rt,at,ft,vt,c,yt,h=[],nt,ot=!0,st="",ut,ht,ct;o.getDay()!==e.dayOfWeekStart;)o.setDate(o.getDate()-1);for(p+="<table><thead><tr>",e.weeks&&(p+="<th><\/th>"),w=0;w<7;w+=1)p+="<th>"+e.i18n[r].dayOfWeekShort[(w+e.dayOfWeekStart)%7]+"<\/th>";for(p+="<\/tr><\/thead>",p+="<tbody>",e.maxDate!==!1&&(k=l.strToDate(e.maxDate),k=new Date(k.getFullYear(),k.getMonth(),k.getDate(),23,59,59,999)),e.minDate!==!1&&(g=l.strToDate(e.minDate),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(
))),e.minDateTime!==!1&&(b=l.strToDate(e.minDateTime),b=new Date(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds())),e.maxDateTime!==!1&&(y=l.strToDate(e.maxDateTime),y=new Date(y.getFullYear(),y.getMonth(),y.getDate(),y.getHours(),y.getMinutes(),y.getSeconds())),y!==!1&&(pt=(y.getFullYear()*12+y.getMonth())*31+y.getDate());s<l.currentTime.countDaysInMonth()||o.getDay()!==e.dayOfWeekStart||l.currentTime.getMonth()===o.getMonth();)h=[],s+=1,at=o.getDay(),ft=o.getDate(),vt=o.getFullYear(),c=o.getMonth(),yt=l.getWeekOfYear(o),ct="",h.push("xdsoft_date"),nt=e.beforeShowDay&&n.isFunction(e.beforeShowDay.call)?e.beforeShowDay.call(f,o):null,e.allowDateRe&&Object.prototype.toString.call(e.allowDateRe)==="[object RegExp]"&&(e.allowDateRe.test(t.formatDate(o,e.formatDate))||h.push("xdsoft_disabled")),e.allowDates&&e.allowDates.length>0&&e.allowDates.indexOf(t.formatDate(o,e.formatDate))===-1&&h.push("xdsoft_disabled"),wt=(o.getFullYear()*12+o.getMonth())*31+o.getDate(),(k!==!1&&o>k||b!==
!1&&o<b||g!==!1&&o<g||y!==!1&&wt>pt||nt&&nt[0]===!1)&&h.push("xdsoft_disabled"),e.disabledDates.indexOf(t.formatDate(o,e.formatDate))!==-1&&h.push("xdsoft_disabled"),e.disabledWeekDays.indexOf(at)!==-1&&h.push("xdsoft_disabled"),i.is("[disabled]")&&h.push("xdsoft_disabled"),nt&&nt[1]!==""&&h.push(nt[1]),l.currentTime.getMonth()!==c&&h.push("xdsoft_other_month"),(e.defaultSelect||f.data("changed"))&&t.formatDate(l.currentTime,e.formatDate)===t.formatDate(o,e.formatDate)&&h.push("xdsoft_current"),t.formatDate(et,e.formatDate)===t.formatDate(o,e.formatDate)&&h.push("xdsoft_today"),(o.getDay()===0||o.getDay()===6||e.weekends.indexOf(t.formatDate(o,e.formatDate))!==-1)&&h.push("xdsoft_weekend"),e.highlightedDates[t.formatDate(o,e.formatDate)]!==undefined&&(rt=e.highlightedDates[t.formatDate(o,e.formatDate)],h.push(rt.style===undefined?"xdsoft_highlighted_default":rt.style),ct=rt.desc===undefined?"":rt.desc),e.beforeShowDay&&n.isFunction(e.beforeShowDay)&&h.push(e.beforeShowDay(o)),ot&&(p+="<tr>",ot=!1,e.weeks&&(p+=
"<th>"+yt+"<\/th>")),p+='<td data-date="'+ft+'" data-month="'+c+'" data-year="'+vt+'" class="xdsoft_date xdsoft_day_of_week'+o.getDay()+" "+h.join(" ")+'" title="'+ct+'"><div>'+ft+"<\/div><\/td>",o.getDay()===e.dayOfWeekStartPrev&&(p+="<\/tr>",ot=!0),o.setDate(ft+1);if(p+="<\/tbody><\/table>",kt.html(p),d.find(".xdsoft_label span").eq(0).text(e.i18n[r].months[l.currentTime.getMonth()]),d.find(".xdsoft_label span").eq(1).text(l.currentTime.getFullYear()+e.yearOffset),st="",ut="",c="",tt=0,e.minTime!==!1&&(v=l.strtotime(e.minTime),tt=60*v.getHours()+v.getMinutes()),it=1440,e.maxTime!==!1&&(v=l.strtotime(e.maxTime),it=60*v.getHours()+v.getMinutes()),e.minDateTime!==!1&&(v=l.strToDateTime(e.minDateTime),bt=t.formatDate(l.currentTime,e.formatDate)===t.formatDate(v,e.formatDate),bt&&(c=60*v.getHours()+v.getMinutes(),c>tt&&(tt=c))),e.maxDateTime!==!1&&(v=l.strToDateTime(e.maxDateTime),dt=t.formatDate(l.currentTime,e.formatDate)===t.formatDate(v,e.formatDate),dt&&(c=60*v.getHours()+v.getMinutes(),c<it&&(it=c))),ht=function(
r,u){var o=l.now(),s,a=e.allowTimes&&n.isArray(e.allowTimes)&&e.allowTimes.length,c;o.setHours(r);r=parseInt(o.getHours(),10);o.setMinutes(u);u=parseInt(o.getMinutes(),10);h=[];c=60*r+u;(i.is("[disabled]")||c>=it||c<tt)&&h.push("xdsoft_disabled");s=new Date(l.currentTime);s.setHours(parseInt(l.currentTime.getHours(),10));a||s.setMinutes(Math[e.roundTime](l.currentTime.getMinutes()/e.step)*e.step);(e.initTime||e.defaultSelect||f.data("changed"))&&s.getHours()===parseInt(r,10)&&(!a&&e.step>59||s.getMinutes()===parseInt(u,10))&&(e.defaultSelect||f.data("changed")?h.push("xdsoft_current"):e.initTime&&h.push("xdsoft_init_time"));parseInt(et.getHours(),10)===parseInt(r,10)&&parseInt(et.getMinutes(),10)===parseInt(u,10)&&h.push("xdsoft_today");st+='<div class="xdsoft_time '+h.join(" ")+'" data-hour="'+r+'" data-minute="'+u+'">'+t.formatDate(o,e.formatTime)+"<\/div>"},e.allowTimes&&n.isArray(e.allowTimes)&&e.allowTimes.length)for(s=0;s<e.allowTimes.length;s+=1)ut=l.strtotime(e.allowTimes[s]).getHours(),c=l.strtotime(
e.allowTimes[s]).getMinutes(),ht(ut,c);else for(s=0,w=0;s<(e.hours12?12:24);s+=1)for(w=0;w<60;w+=e.step)(lt=s*60+w,lt<tt)||lt>=it||(ut=(s<10?"0":"")+s,c=(w<10?"0":"")+w,ht(ut,c));for(a.html(st),u="",s=parseInt(e.yearStart,10);s<=parseInt(e.yearEnd,10);s+=1)u+='<div class="xdsoft_option '+(l.currentTime.getFullYear()===s?"xdsoft_current":"")+'" data-value="'+s+'">'+(s+e.yearOffset)+"<\/div>";for(ni.children().eq(0).html(u),s=parseInt(e.monthStart,10),u="";s<=parseInt(e.monthEnd,10);s+=1)u+='<div class="xdsoft_option '+(l.currentTime.getMonth()===s?"xdsoft_current":"")+'" data-value="'+s+'">'+e.i18n[r].months[s]+"<\/div>";gt.children().eq(0).html(u);n(f).trigger("generate.xdsoft")},10);o.stopPropagation()}).on("afterOpen.xdsoft",function(){if(e.timepicker){var n,t,i,r;a.find(".xdsoft_current").length?n=".xdsoft_current":a.find(".xdsoft_init_time").length&&(n=".xdsoft_init_time");n?(t=g[0].clientHeight,i=a[0].offsetHeight,r=a.find(n).index()*e.timeHeightInTimePicker+1,i-t<r&&(r=i-t),g.trigger("scroll_element.xdsoft_scroller",
[parseInt(r,10)/(i-t)])):g.trigger("scroll_element.xdsoft_scroller",[0])}});wt=0;kt.on("touchend click.xdsoft","td",function(t){t.stopPropagation();wt+=1;var u=n(this),r=l.currentTime;if((r===undefined||r===null)&&(l.currentTime=l.now(),r=l.currentTime),u.hasClass("xdsoft_disabled"))return!1;r.setDate(1);r.setFullYear(u.data("year"));r.setMonth(u.data("month"));r.setDate(u.data("date"));f.trigger("select.xdsoft",[r]);i.val(l.str());e.onSelectDate&&n.isFunction(e.onSelectDate)&&e.onSelectDate.call(f,l.currentTime,f.data("input"),t);f.data("changed",!0);f.trigger("xchange.xdsoft");f.trigger("changedatetime.xdsoft");(wt>1||e.closeOnDateSelect===!0||e.closeOnDateSelect===!1&&!e.timepicker)&&!e.inline&&f.trigger("close.xdsoft");setTimeout(function(){wt=0},200)});a.on("touchstart","div",function(){this.touchMoved=!1}).on("touchmove","div",ui).on("touchend click.xdsoft","div",function(t){if(!this.touchMoved){t.stopPropagation();var r=n(this),i=l.currentTime;if((i===undefined||i===null)&&(l.currentTime=l.now(),i=l.currentTime),
r.hasClass("xdsoft_disabled"))return!1;i.setHours(r.data("hour"));i.setMinutes(r.data("minute"));f.trigger("select.xdsoft",[i]);f.data("input").val(l.str());e.onSelectTime&&n.isFunction(e.onSelectTime)&&e.onSelectTime.call(f,l.currentTime,f.data("input"),t);f.data("changed",!0);f.trigger("xchange.xdsoft");f.trigger("changedatetime.xdsoft");e.inline!==!0&&e.closeOnTimeSelect===!0&&f.trigger("close.xdsoft")}});at.on("mousewheel.xdsoft",function(n){return e.scrollMonth?(n.deltaY<0?l.nextMonth():l.prevMonth(),!1):!0});i.on("mousewheel.xdsoft",function(n){return e.scrollInput?!e.datepicker&&e.timepicker?(vt=a.find(".xdsoft_current").length?a.find(".xdsoft_current").eq(0).index():0,vt+n.deltaY>=0&&vt+n.deltaY<a.children().length&&(vt+=n.deltaY),a.children().eq(vt).length&&a.children().eq(vt).trigger("mousedown"),!1):e.datepicker&&!e.timepicker?(at.trigger(n,[n.deltaY,n.deltaX,n.deltaY]),i.val&&i.val(l.str()),f.trigger("changedatetime.xdsoft"),!1):void 0:!0});f.on("changedatetime.xdsoft",function(t){if(e.onChangeDateTime&&
n.isFunction(e.onChangeDateTime)){var i=f.data("input");e.onChangeDateTime.call(f,l.currentTime,i,t);delete e.value;i.trigger("change")}}).on("generate.xdsoft",function(){e.onGenerate&&n.isFunction(e.onGenerate)&&e.onGenerate.call(f,l.currentTime,f.data("input"));pt&&(f.trigger("afterOpen.xdsoft"),pt=!1)}).on("click.xdsoft",function(n){n.stopPropagation()});vt=0;ri=function(n,t){do if(n=n.parentNode,!n||t(n)===!1)break;while(n.nodeName!=="HTML")};bt=function(){var r,u,t,i,c,p,a,s,h,v,y,l,o,w;s=f.data("input");r=s.offset();u=s[0];v="top";t=r.top+u.offsetHeight-1;i=r.left;c="absolute";h=n(e.contentWindow).width();l=n(e.contentWindow).height();o=n(e.contentWindow).scrollTop();e.ownerDocument.documentElement.clientWidth-r.left<at.parent().outerWidth(!0)&&(w=at.parent().outerWidth(!0)-u.offsetWidth,i=i-w);s.parent().css("direction")==="rtl"&&(i-=f.outerWidth()-s.outerWidth());e.fixed?(t-=o,i-=n(e.contentWindow).scrollLeft(),c="fixed"):(a=!1,ri(u,function(n){return n===null?!1:e.contentWindow.getComputedStyle(n).getPropertyValue(
"position")==="fixed"?(a=!0,!1):void 0}),a?(c="fixed",t+f.outerHeight()>l+o?(v="bottom",t=l+o-r.top):t-=o):t+f[0].offsetHeight>l+o&&(t=r.top-f[0].offsetHeight+1),t<0&&(t=0),i+u.offsetWidth>h&&(i=h-u.offsetWidth));p=f[0];ri(p,function(n){var t;return t=e.contentWindow.getComputedStyle(n).getPropertyValue("position"),t==="relative"&&h>=n.offsetWidth?(i=i-(h-n.offsetWidth)/2,!1):void 0});y={position:c,left:i,top:"",bottom:""};y[v]=t;f.css(y)};f.on("open.xdsoft",function(t){var i=!0;if(e.onShow&&n.isFunction(e.onShow)&&(i=e.onShow.call(f,l.currentTime,f.data("input"),t)),i!==!1){f.show();bt();n(e.contentWindow).off("resize.xdsoft",bt).on("resize.xdsoft",bt);if(e.closeOnWithoutClick)n([e.ownerDocument.body,e.contentWindow]).on("touchstart mousedown.xdsoft",function r(){f.trigger("close.xdsoft");n([e.ownerDocument.body,e.contentWindow]).off("touchstart mousedown.xdsoft",r)})}}).on("close.xdsoft",function(t){var i=!0;d.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide();e.onClose&&n.isFunction(e.onClose)&&
(i=e.onClose.call(f,l.currentTime,f.data("input"),t));i===!1||e.opened||e.inline||f.hide();t.stopPropagation()}).on("toggle.xdsoft",function(){f.is(":visible")?f.trigger("close.xdsoft"):f.trigger("open.xdsoft")}).data("input",i);ii=0;f.data("xdsoft_datetime",l);f.setOptions(e);l.setCurrentTime(fi());i.data("xdsoft_datetimepicker",f).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){i.is(":disabled")||i.data("xdsoft_datetimepicker").is(":visible")&&e.closeOnInputClick||e.openOnFocus&&(clearTimeout(ii),ii=setTimeout(function(){i.is(":disabled")||(pt=!0,l.setCurrentTime(fi(),!0),e.mask&&oi(e),f.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var i,r=t.which;return[b].indexOf(r)!==-1&&e.enterLikeTab?(i=n("input:visible,textarea:visible,button:visible,a:visible"),f.trigger("close.xdsoft"),i.eq(i.index(this)+1).focus(),!1):[k].indexOf(r)!==-1?(f.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){f.trigger("close.xdsoft")})};g=function(t){var i=t.data("xdsoft_datetimepicker");
i&&(i.data("xdsoft_datetime",null),i.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),n(e.contentWindow).off("resize.xdsoft"),n([e.contentWindow,e.ownerDocument.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())};n(e.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(n){n.keyCode===s&&(c=!0)}).on("keyup.xdsoftctrl",function(n){n.keyCode===s&&(c=!1)});return this.each(function(){var i=n(this).data("xdsoft_datetimepicker"),r;if(i){if(n.type(u)==="string")switch(u){case"show":n(this).select().focus();i.trigger("open.xdsoft");break;case"hide":i.trigger("close.xdsoft");break;case"toggle":i.trigger("toggle.xdsoft");break;case"destroy":g(n(this));break;case"reset":this.value=this.defaultValue;this.value&&i.data("xdsoft_datetime").isValidDate(t.parseDate(this.value,e.format))||i.data("changed",!1);i.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":r=i.data("input");r.trigger("blur.xdsoft");break;default:i[u]&&n.isFunction(
i[u])&&(a=i[u](f))}else i.setOptions(u);return 0}n.type(u)!=="string"&&(!e.lazyInit||e.open||e.inline?l(n(this)):at(n(this)))}),a};n.fn.datetimepicker.defaults=i},function(n){typeof define=="function"&&define.amd?define(["jquery","jquery-mousewheel"],n):typeof exports=="object"?module.exports=n(require("jquery")):n(jQuery)}(datetimepickerFactory);
/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 */
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)})(function(n){function e(r){var f=r||window.event,w=h.call(arguments,1),l=0,o=0,e=0,a=0,b=0,k=0,v,y,p;if(r=n.event.fix(f),r.type="mousewheel","detail"in f&&(e=f.detail*-1),"wheelDelta"in f&&(e=f.wheelDelta),"wheelDeltaY"in f&&(e=f.wheelDeltaY),"wheelDeltaX"in f&&(o=f.wheelDeltaX*-1),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(o=e*-1,e=0),l=e===0?o:e,"deltaY"in f&&(e=f.deltaY*-1,l=e),"deltaX"in f&&(o=f.deltaX,e===0&&(l=o*-1)),e!==0||o!==0)return f.deltaMode===1?(v=n.data(this,"mousewheel-line-height"),l*=v,e*=v,o*=v):f.deltaMode===2&&(y=n.data(this,"mousewheel-page-height"),l*=y,e*=y,o*=y),a=Math.max(Math.abs(e),Math.abs(o)),(!t||a<t)&&(t=a,s(f,a)&&(t/=40)),s(f,a)&&(l/=40,o/=40,e/=40),l=Math[l>=1?"floor":"ceil"](l/t),o=Math[o>=1?"floor":"ceil"](o/t),e=Math[e>=1?"floor":"ceil"](e/t),i.settings.normalizeOffset&&this.getBoundingClientRect&&(p=this.getBoundingClientRect(),b=r.clientX-p.left,k=r.
clientY-p.top),r.deltaX=o,r.deltaY=e,r.deltaFactor=t,r.offsetX=b,r.offsetY=k,r.deltaMode=0,w.unshift(r,l,o,e),u&&clearTimeout(u),u=setTimeout(c,200),(n.event.dispatch||n.event.handle).apply(this,w)}function c(){t=null}function s(n,t){return i.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,u,t,f,i;if(n.event.fixHooks)for(f=o.length;f;)n.event.fixHooks[o[--f]]=n.event.mouseHooks;i=n.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],e,!1);else this.onmousewheel=e;n.data(this,"mousewheel-line-height",i.getLineHeight(this));n.data(this,"mousewheel-page-height",i.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],e,!1);else this.onmousewheel=null;
n.removeData(this,"mousewheel-line-height");n.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var r=n(t),i=r["offsetParent"in n.fn?"offsetParent":"parent"]();return i.length||(i=n("body")),parseInt(i.css("fontSize"),10)||parseInt(r.css("fontSize"),10)||16},getPageHeight:function(t){return n(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})});
/*!
 * Amplify 1.1.2
 *
 * Copyright 2011 - 2013 appendTo LLC. (http://appendto.com/team)
 * Dual licensed under the MIT or GPL licenses.
 * http://appendto.com/open-source-licenses
 *
 * http://amplifyjs.com
 */
(function(n){var i=[].slice,t={},r=n.amplify={publish:function(n){if(typeof n!="string")throw new Error("You must provide a valid topic to publish.");var s=i.call(arguments,1),r,u,o,f=0,e;if(!t[n])return!0;for(r=t[n].slice(),o=r.length;f<o;f++)if(u=r[f],e=u.callback.apply(u.context,s),e===!1)break;return e!==!1},subscribe:function(n,i,r,u){var f,s;if(typeof n!="string")throw new Error("You must provide a valid topic to create a subscription.");arguments.length===3&&typeof r=="number"&&(u=r,r=i,i=null);arguments.length===2&&(r=i,i=null);u=u||10;for(var e=0,h=n.split(/\s/),c=h.length,o;e<c;e++){for(n=h[e],o=!1,t[n]||(t[n]=[]),f=t[n].length-1,s={callback:r,context:i,priority:u};f>=0;f--)if(t[n][f].priority<=u){t[n].splice(f+1,0,s);o=!0;break}o||t[n].unshift(s)}return r},unsubscribe:function(n,i,r){if(typeof n!="string")throw new Error("You must provide a valid topic to remove a subscription.");if(arguments.length===2&&(r=i,i=null),t[n])for(var f=t[n].length,u=0;u<f;u++)t[n][u].callback!==r||i&&t[n][u].context!==
i||(t[n].splice(u,1),u--,f--)}}})(this),function(n,t){function f(n,r){i.addType(n,function(f,e,o){var c,s,v,l,h=e,a=(new Date).getTime();if(!f){h={};l=[];v=0;try{for(f=r.length;f=r.key(v++);)u.test(f)&&(s=JSON.parse(r.getItem(f)),s.expires&&s.expires<=a?l.push(f):h[f.replace(u,"")]=s.data);while(f=l.pop())r.removeItem(f)}catch(y){}return h}if(f="__amplify__"+f,e===t){if(c=r.getItem(f),s=c?JSON.parse(c):{expires:-1},!(s.expires&&s.expires<=a))return s.data;r.removeItem(f)}else if(e===null)r.removeItem(f);else{s=JSON.stringify({data:e,expires:o.expires?a+o.expires:null});try{r.setItem(f,s)}catch(y){i[n]();try{r.setItem(f,s)}catch(y){throw i.error();}}}return h})}var i=n.store=function(n,t,r){var u=i.type;return r&&r.type&&r.type in i.types&&(u=r.type),i.types[u](n,t,r||{})},u,r;i.types={};i.type=null;i.addType=function(n,t){i.type||(i.type=n);i.types[n]=t;i[n]=function(t,r,u){return u=u||{},u.type=n,i(t,r,u)}};i.error=function(){return"amplify.store quota exceeded"};u=/^__amplify__/;for(r in{localStorage:1,sessionStorage:
1})try{window[r].setItem("__amplify__","x");window[r].removeItem("__amplify__");f(r,window[r])}catch(e){}if(!i.types.localStorage&&window.globalStorage)try{f("globalStorage",window.globalStorage[window.location.hostname]);i.type==="sessionStorage"&&(i.type="globalStorage")}catch(e){}(function(){if(!i.types.localStorage){var n=document.createElement("div"),r="amplify";n.style.display="none";document.getElementsByTagName("head")[0].appendChild(n);try{n.addBehavior("#default#userdata");n.load(r)}catch(u){n.parentNode.removeChild(n);return}i.addType("userData",function(u,f,e){n.load(r);var s,o,h,v,l,c=f,a=(new Date).getTime();if(!u){for(c={},l=[],v=0;s=n.XMLDocument.documentElement.attributes[v++];)o=JSON.parse(s.value),o.expires&&o.expires<=a?l.push(s.name):c[s.name]=o.data;while(u=l.pop())n.removeAttribute(u);return n.save(r),c}if(u=u.replace(/[^\-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g,"-"),u=u.replace(/^-/,"_-"),f===t){if(s=n.getAttribute(u),o=s?JSON.
parse(s):{expires:-1},!(o.expires&&o.expires<=a))return o.data;n.removeAttribute(u)}else f===null?n.removeAttribute(u):(h=n.getAttribute(u),o=JSON.stringify({data:f,expires:e.expires?a+e.expires:null}),n.setAttribute(u,o));try{n.save(r)}catch(y){h===null?n.removeAttribute(u):n.setAttribute(u,h);i.userData();try{n.setAttribute(u,o);n.save(r)}catch(y){throw h===null?n.removeAttribute(u):n.setAttribute(u,h),i.error();}}return c})}})(),function(){function u(n){return n===t?t:JSON.parse(JSON.stringify(n))}var n={},r={};i.addType("memory",function(i,f,e){return i?f===t?u(n[i]):(r[i]&&(clearTimeout(r[i]),delete r[i]),f===null?(delete n[i],null):(n[i]=f,e.expires&&(r[i]=setTimeout(function(){delete n[i];delete r[i]},e.expires)),f)):u(n)})}()}(this.amplify=this.amplify||{}),function(n){"use strict";function t(){}function r(n){return{}.toString.call(n)==="[object Function]"}function i(n){var t=!1;return setTimeout(function(){t=!0},1),function(){var i=this,r=arguments;t?n.apply(i,r):setTimeout(function(){n.apply(i,r)},1)}
}n.request=function(u,f,e){var o=u||{};typeof o=="string"&&(r(f)&&(e=f,f={}),o={resourceId:u,data:f||{},success:e});var s={abort:t},h=n.request.resources[o.resourceId],c=o.success||t,l=o.error||t;if(o.success=i(function(t,i){i=i||"success";n.publish("request.success",o,t,i);n.publish("request.complete",o,t,i);c(t,i)}),o.error=i(function(t,i){i=i||"error";n.publish("request.error",o,t,i);n.publish("request.complete",o,t,i);l(t,i)}),!h)throw o.resourceId?"amplify.request: unknown resourceId: "+o.resourceId:"amplify.request: no resourceId provided";if(!n.publish("request.before",o)){o.error(null,"abort");return}return n.request.resources[o.resourceId](o,s),s};n.request.types={};n.request.resources={};n.request.define=function(t,i,r){if(typeof i=="string"){if(!(i in n.request.types))throw"amplify.request.define: unknown type: "+i;r.resourceId=t;n.request.resources[t]=n.request.types[i](r)}else n.request.resources[t]=i}}(amplify),function(n,t,i){"use strict";var u=["status","statusText","responseText","responseXML",
"readyState"],f=/\{([^\}]+)\}/g,r;n.request.types.ajax=function(r){return r=t.extend({type:"GET"},r),function(f,e){var h,c,v=r.url,a=e.abort,o=t.extend(!0,{},r,{data:f.data}),l=!1,s={readyState:0,setRequestHeader:function(n,t){return h.setRequestHeader(n,t)},getAllResponseHeaders:function(){return h.getAllResponseHeaders()},getResponseHeader:function(n){return h.getResponseHeader(n)},overrideMimeType:function(n){return h.overrideMimeType(n)},abort:function(){l=!0;try{h.abort()}catch(n){}c(null,"abort")},success:function(n,t){f.success(n,t)},error:function(n,t){f.error(n,t)}};c=function(n,r){t.each(u,function(n,t){try{s[t]=h[t]}catch(i){}});/OK$/.test(s.statusText)&&(s.statusText="success");n===i&&(n=null);l&&(r="abort");/timeout|error|abort/.test(r)?s.error(n,r):s.success(n,r);c=t.noop};n.publish("request.ajax.preprocess",r,f,o,s);t.extend(o,{isJSONP:function(){return/jsonp/gi.test(this.dataType)},cacheURL:function(){var n,t;return this.isJSONP()?(n="callback",this.hasOwnProperty("jsonp")&&(this.jsonp!==!1?n=
this.jsonp:this.hasOwnProperty("jsonpCallback")&&(n=this.jsonpCallback)),t=new RegExp("&?"+n+"=[^&]*&?","gi"),this.url.replace(t,"")):this.url},success:function(n,t){c(n,t)},error:function(n,t){c(null,t)},beforeSend:function(t,i){h=t;o=i;var u=r.beforeSend?r.beforeSend.call(this,s,o):!0;return u&&n.publish("request.before.ajax",r,f,o,s)}});o.cache&&o.isJSONP()&&t.extend(o,{cache:!0});t.ajax(o);e.abort=function(){s.abort();a.call(this)}}};n.subscribe("request.ajax.preprocess",function(n,i,r){var e=[],u=r.data;typeof u!="string"&&(u=t.extend(!0,{},n.data,u),r.url=r.url.replace(f,function(n,t){if(t in u)return e.push(t),u[t]}),t.each(e,function(n,t){delete u[t]}),r.data=u)});n.subscribe("request.ajax.preprocess",function(n,i,r){var u=r.data,f=n.dataMap;f&&typeof u!="string"&&(t.isFunction(f)?r.data=f(u):(t.each(n.dataMap,function(n,t){n in u&&(u[t]=u[n],delete u[n])}),r.data=u))});r=n.request.cache={_key:function(n,t,i){function u(){return i.charCodeAt(r++)<<24|i.charCodeAt(r++)<<16|i.charCodeAt(r++)<<8|i.charCodeAt(
r++)<<0}i=t+i;for(var e=i.length,r=0,f=u();r<e;)f^=u();return"request-"+n+"-"+f},_default:function(){var n={};return function(t,i,u,f){var e=r._key(i.resourceId,u.cacheURL(),u.data),o=t.cache,s;if(e in n)return f.success(n[e]),!1;s=f.success;f.success=function(t){n[e]=t;typeof o=="number"&&setTimeout(function(){delete n[e]},o);s.apply(this,arguments)}}}()};n.store&&(t.each(n.store.types,function(t){r[t]=function(i,u,f,e){var o=r._key(u.resourceId,f.cacheURL(),f.data),s=n.store[t](o),h;if(s)return f.success(s),!1;h=e.success;e.success=function(r){n.store[t](o,r,{expires:i.cache.expires});h.apply(this,arguments)}}}),r.persist=r[n.store.type]);n.subscribe("request.before.ajax",function(n){var t=n.cache;if(t)return t=t.type||t,r[t in r?t:"_default"].apply(this,arguments)});n.request.decoders={jsend:function(n,t,i,r,u){n.status==="success"?r(n.data):n.status==="fail"?u(n.data,"fail"):n.status==="error"?(delete n.status,u(n,"error")):u(null,"error")}};n.subscribe("request.before.ajax",function(i,r,u,f){function o(n,
t){h(n,t)}function s(n,t){c(n,t)}var h=f.success,c=f.error,e=t.isFunction(i.decoder)?i.decoder:i.decoder in n.request.decoders?n.request.decoders[i.decoder]:n.request.decoders._default;e&&(f.success=function(n,t){e(n,t,f,o,s)},f.error=function(n,t){e(n,t,f,o,s)})})}(amplify,jQuery);
/*!
 *
 * MediaElement.js
 * HTML5 <video> and <audio> shim and player
 * http://mediaelementjs.com/
 *
 * Creates a JavaScript object that mimics HTML5 MediaElement API
 * for browsers that don't understand HTML5 or can't play the provided codec
 * Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3
 *
 * Copyright 2010-2014, John Dyer (http://j.hn)
 * License: MIT
 *
 */
mejs=mejs||{};mejs.version="2.23.5";mejs.meIndex=0;mejs.plugins={silverlight:[{version:[3,0],types:["video/mp4","video/m4v","video/mov","video/wmv","audio/wma","audio/m4a","audio/mp3","audio/wav","audio/mpeg"]}],flash:[{version:[9,0,124],types:["video/mp4","video/m4v","video/mov","video/flv","video/rtmp","video/x-flv","audio/flv","audio/x-flv","audio/mp3","audio/m4a","audio/mp4","audio/mpeg","video/dailymotion","video/x-dailymotion","application/x-mpegURL","audio/ogg"]}],youtube:[{version:null,types:["video/youtube","video/x-youtube","audio/youtube","audio/x-youtube"]}],vimeo:[{version:null,types:["video/vimeo","video/x-vimeo"]}]};mejs.Utility={encodeUrl:function(n){return encodeURIComponent(n)},escapeHTML:function(n){return n.toString().split("&").join("&amp;").split("<").join("&lt;").split('"').join("&quot;")},absolutizeUrl:function(n){var t=document.createElement("div");return t.innerHTML='<a href="'+this.escapeHTML(n)+'">x<\/a>',t.firstChild.href},getScriptPath:function(n){for(var u=0,i,f="",s="",r,h,t,e,
o,c=document.getElementsByTagName("script"),l=c.length,a=n.length;u<l;u++){for(t=c[u].src,r=t.lastIndexOf("/"),r>-1?(o=t.substring(r+1),e=t.substring(0,r+1)):(o=t,e=""),i=0;i<a;i++)if(s=n[i],h=o.indexOf(s),h>-1){f=e;break}if(f!=="")break}return f},calculateTimeFormat:function(n,t,i){var s,u,h,c,e;n<0&&(n=0);typeof i=="undefined"&&(i=25);var r=t.timeFormat,l=r[0],o=r[1]==r[0],a=o?2:1,v=":",y=Math.floor(n/3600)%24,p=Math.floor(n/60)%60,w=Math.floor(n%60),b=Math.floor((n%1*i).toFixed(3)),f=[[b,"f"],[w,"s"],[p,"m"],[y,"h"]];for(r.length<a&&(v=r[a]),s=!1,u=0,h=f.length;u<h;u++)if(r.indexOf(f[u][1])!==-1)s=!0;else if(s){for(c=!1,e=u;e<h;e++)if(f[e][0]>0){c=!0;break}if(!c)break;o||(r=l+r);r=f[u][1]+v+r;o&&(r=f[u][1]+r);l=f[u][1]}t.currentTimeFormat=r},twoDigitsString:function(n){return n<10?"0"+n:String(n)},secondsToTimeCode:function(n,t){var r,f,u;n<0&&(n=0);typeof t!="object"&&(r="m:ss",r=arguments[1]?"hh:mm:ss":r,r=arguments[2]?r+":ff":r,t={currentTimeFormat:r,framesPerSecond:arguments[3]||25});f=t.framesPerSecond;
typeof f=="undefined"&&(f=25);var r=t.currentTimeFormat,e=Math.floor(n/3600)%24,o=Math.floor(n/60)%60,s=Math.floor(n%60),h=Math.floor((n%1*f).toFixed(3));for(lis=[[h,"f"],[s,"s"],[o,"m"],[e,"h"]],u=r,i=0,len=lis.length;i<len;i++)u=u.replace(lis[i][1]+lis[i][1],this.twoDigitsString(lis[i][0])),u=u.replace(lis[i][1],lis[i][0]);return u},timeCodeToSeconds:function(n,t,i,r){typeof i=="undefined"?i=!1:typeof r=="undefined"&&(r=25);var u=n.split(":"),e=parseInt(u[0],10),o=parseInt(u[1],10),s=parseInt(u[2],10),f=0;return i&&(f=parseInt(u[3])/r),e*3600+o*60+s+f},convertSMPTEtoSeconds:function(n){var t;if(typeof n!="string")return!1;n=n.replace(",",".");var r=0,u=n.indexOf(".")!=-1?n.split(".")[1].length:0,i=1;for(n=n.split(":").reverse(),t=0;t<n.length;t++)i=1,t>0&&(i=Math.pow(60,t)),r+=Number(n[t])*i;return Number(r.toFixed(u))},removeSwf:function(n){var t=document.getElementById(n);t&&/object|embed/i.test(t.nodeName)&&(mejs.MediaFeatures.isIE?(t.style.display="none",function(){t.readyState==4?mejs.Utility.removeObjectInIE(
n):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))},removeObjectInIE:function(n){var t=document.getElementById(n),i;if(t){for(i in t)typeof t[i]=="function"&&(t[i]=null);t.parentNode.removeChild(t)}},determineScheme:function(n){return n&&n.indexOf("://")!=-1?n.substr(0,n.indexOf("://")+3):"//"},debounce:function(n,t,i){var r;return function(){var u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}},isNodeAfter:function(n,t){return!!(n&&t&&typeof n.compareDocumentPosition=="function"&&n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}};mejs.PluginDetector={hasPluginVersion:function(n,t){var i=this.plugins[n];return t[1]=t[1]||0,t[2]=t[2]||0,i[0]>t[0]||i[0]==t[0]&&i[1]>t[1]||i[0]==t[0]&&i[1]==t[1]&&i[2]>=t[2]?!0:!1},nav:window.navigator,ua:window.navigator.userAgent.toLowerCase(),plugins:[],addPlugin:function(n,t,i,r,u){this.plugins[n]=this.detectPlugin(t,i,r,u)},detectPlugin:function(n,t,i,r){var u=[0,0,0],e,f,o;if(typeof
this.nav.plugins!="undefined"&&typeof this.nav.plugins[n]=="object"){if(e=this.nav.plugins[n].description,e&&!(typeof this.nav.mimeTypes!="undefined"&&this.nav.mimeTypes[t]&&!this.nav.mimeTypes[t].enabledPlugin))for(u=e.replace(n,"").replace(/^\s+/,"").replace(/\sr/gi,".").split("."),f=0;f<u.length;f++)u[f]=parseInt(u[f].match(/\d+/),10)}else if(typeof ActiveXObject!="undefined")try{o=new ActiveXObject(i);o&&(u=r(o))}catch(s){}return u}};mejs.PluginDetector.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",function(n){var i=[],t=n.GetVariable("$version");return t&&(t=t.split(" ")[1].split(","),i=[parseInt(t[0],10),parseInt(t[1],10),parseInt(t[2],10)]),i});mejs.PluginDetector.addPlugin("silverlight","Silverlight Plug-In","application/x-silverlight-2","AgControl.AgControl",function(n){var t=[0,0,0,0],i=function(n,t,i,r){while(n.isVersionSupported(t[0]+"."+t[1]+"."+t[2]+"."+t[3]))t[i]+=r;t[i]-=r};return i(n,t,0,1),i(n,t,1,1),i(n,t,2,1e4),i(n,t,2,1e3),i(n,t,2,100),
i(n,t,2,10),i(n,t,2,1),i(n,t,3,1),t});mejs.MediaFeatures={init:function(){var n=this,u=document,f=mejs.PluginDetector.nav,t=mejs.PluginDetector.ua.toLowerCase(),r,i,e=["source","track","audio","video"];n.isiPad=t.match(/ipad/i)!==null;n.isiPhone=t.match(/iphone/i)!==null;n.isiOS=n.isiPhone||n.isiPad;n.isAndroid=t.match(/android/i)!==null;n.isBustedAndroid=t.match(/android 2\.[12]/)!==null;n.isBustedNativeHTTPS=location.protocol==="https:"&&(t.match(/android [12]\./)!==null||t.match(/macintosh.* version.* safari/)!==null);n.isIE=f.appName.toLowerCase().indexOf("microsoft")!=-1||f.appName.toLowerCase().match(/trident/gi)!==null;n.isChrome=t.match(/chrome/gi)!==null;n.isChromium=t.match(/chromium/gi)!==null;n.isFirefox=t.match(/firefox/gi)!==null;n.isWebkit=t.match(/webkit/gi)!==null;n.isGecko=t.match(/gecko/gi)!==null&&!n.isWebkit&&!n.isIE;n.isOpera=t.match(/opera/gi)!==null;n.hasTouch="ontouchstart"in window;for(n.svgAsImg=!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"),r=
0;r<e.length;r++)i=document.createElement(e[r]);n.supportsMediaTag=typeof i.canPlayType!="undefined"||n.isBustedAndroid;try{i.canPlayType("video/mp4")}catch(o){n.supportsMediaTag=!1}n.supportsPointerEvents=function(){var n=document.createElement("x"),t=document.documentElement,i=window.getComputedStyle,r;return("pointerEvents"in n.style)?(n.style.pointerEvents="auto",n.style.pointerEvents="x",t.appendChild(n),r=i&&i(n,"").pointerEvents==="auto",t.removeChild(n),!!r):!1}();n.hasFirefoxPluginMovingProblem=!1;n.hasiOSFullScreen=typeof i.webkitEnterFullscreen!="undefined";n.hasNativeFullscreen=typeof i.requestFullscreen!="undefined";n.hasWebkitNativeFullScreen=typeof i.webkitRequestFullScreen!="undefined";n.hasMozNativeFullScreen=typeof i.mozRequestFullScreen!="undefined";n.hasMsNativeFullScreen=typeof i.msRequestFullscreen!="undefined";n.hasTrueNativeFullScreen=n.hasWebkitNativeFullScreen||n.hasMozNativeFullScreen||n.hasMsNativeFullScreen;n.nativeFullScreenEnabled=n.hasTrueNativeFullScreen;n.hasMozNativeFullScreen?
n.nativeFullScreenEnabled=document.mozFullScreenEnabled:n.hasMsNativeFullScreen&&(n.nativeFullScreenEnabled=document.msFullscreenEnabled);n.isChrome&&(n.hasiOSFullScreen=!1);n.hasTrueNativeFullScreen&&(n.fullScreenEventName="",n.hasWebkitNativeFullScreen?n.fullScreenEventName="webkitfullscreenchange":n.hasMozNativeFullScreen?n.fullScreenEventName="mozfullscreenchange":n.hasMsNativeFullScreen&&(n.fullScreenEventName="MSFullscreenChange"),n.isFullScreen=function(){return n.hasMozNativeFullScreen?u.mozFullScreen:n.hasWebkitNativeFullScreen?u.webkitIsFullScreen:n.hasMsNativeFullScreen?u.msFullscreenElement!==null:void 0},n.requestFullScreen=function(t){n.hasWebkitNativeFullScreen?t.webkitRequestFullScreen():n.hasMozNativeFullScreen?t.mozRequestFullScreen():n.hasMsNativeFullScreen&&t.msRequestFullscreen()},n.cancelFullScreen=function(){n.hasWebkitNativeFullScreen?document.webkitCancelFullScreen():n.hasMozNativeFullScreen?document.mozCancelFullScreen():n.hasMsNativeFullScreen&&document.msExitFullscreen()});n.hasiOSFullScreen&&
t.match(/mac os x 10_5/i)&&(n.hasNativeFullScreen=!1,n.hasiOSFullScreen=!1)}};mejs.MediaFeatures.init();mejs.HtmlMediaElement={pluginType:"native",isFullScreen:!1,setCurrentTime:function(n){this.currentTime=n},setMuted:function(n){this.muted=n},setVolume:function(n){this.volume=n},stop:function(){this.pause()},setSrc:function(n){for(var r=this.getElementsByTagName("source"),t,i;r.length>0;)this.removeChild(r[0]);if(typeof n=="string")this.src=n;else for(t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.src=i.src;break}},setVideoSize:function(n,t){this.width=n;this.height=t}};mejs.PluginMediaElement=function(n,t,i){this.id=n;this.pluginType=t;this.src=i;this.events={};this.attributes={}};mejs.PluginMediaElement.prototype={pluginElement:null,pluginType:"",isFullScreen:!1,playbackRate:-1,defaultPlaybackRate:-1,seekable:[],played:[],paused:!0,ended:!1,seeking:!1,duration:0,error:null,tagName:"",muted:!1,volume:1,currentTime:0,play:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType==
"vimeo"?this.pluginApi.playVideo():this.pluginApi.playMedia(),this.paused=!1)},load:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"||this.pluginApi.loadMedia(),this.paused=!1)},pause:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.getPlayerState()==1&&this.pluginApi.pauseVideo():this.pluginApi.pauseMedia(),this.paused=!0)},stop:function(){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.stopVideo():this.pluginApi.stopMedia(),this.paused=!0)},canPlayType:function(n){for(var i,r,u=mejs.plugins[this.pluginType],t=0;t<u.length;t++)if(r=u[t],mejs.PluginDetector.hasPluginVersion(this.pluginType,r.version))for(i=0;i<r.types.length;i++)if(n==r.types[i])return"probably";return""},positionFullscreenButton:function(n,t,i){this.pluginApi!=null&&this.pluginApi.positionFullscreenButton&&this.pluginApi.positionFullscreenButton(Math.floor(n),Math.floor(t),i)},hideFullscreenButton:function(){this.
pluginApi!=null&&this.pluginApi.hideFullscreenButton&&this.pluginApi.hideFullscreenButton()},setSrc:function(n){if(typeof n=="string")this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(n)),this.src=mejs.Utility.absolutizeUrl(n);else for(var i,t=0;t<n.length;t++)if(i=n[t],this.canPlayType(i.type)){this.pluginApi.setSrc(mejs.Utility.absolutizeUrl(i.src));this.src=mejs.Utility.absolutizeUrl(i.src);break}},setCurrentTime:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"||this.pluginType=="vimeo"?this.pluginApi.seekTo(n):this.pluginApi.setCurrentTime(n),this.currentTime=n)},setVolume:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"?this.pluginApi.setVolume(n*100):this.pluginApi.setVolume(n),this.volume=n)},setMuted:function(n){this.pluginApi!=null&&(this.pluginType=="youtube"?(n?this.pluginApi.mute():this.pluginApi.unMute(),this.muted=n,this.dispatchEvent({type:"volumechange"})):this.pluginApi.setMuted(n),this.muted=n)},setVideoSize:function(n,t){this.pluginElement&&this.pluginElement.style&&
(this.pluginElement.style.width=n+"px",this.pluginElement.style.height=t+"px");this.pluginApi!=null&&this.pluginApi.setVideoSize&&this.pluginApi.setVideoSize(n,t)},setFullscreen:function(n){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.pluginApi.setFullscreen(n)},enterFullScreen:function(){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.setFullscreen(!0)},exitFullScreen:function(){this.pluginApi!=null&&this.pluginApi.setFullscreen&&this.setFullscreen(!1)},addEventListener:function(n,t){this.events[n]=this.events[n]||[];this.events[n].push(t)},removeEventListener:function(n,t){var r,i;if(!n)return this.events={},!0;if(r=this.events[n],!r)return!0;if(!t)return this.events[n]=[],!0;for(i=0;i<r.length;i++)if(r[i]===t)return this.events[n].splice(i,1),!0;return!1},dispatchEvent:function(n){var t,i=this.events[n.type];if(i)for(t=0;t<i.length;t++)i[t].apply(this,[n])},hasAttribute:function(n){return n in this.attributes},removeAttribute:function(n){delete this.attributes[n]},getAttribute:function(
n){return this.hasAttribute(n)?this.attributes[n]:null},setAttribute:function(n,t){this.attributes[n]=t},remove:function(){mejs.Utility.removeSwf(this.pluginElement.id)}};mejs.MediaElementDefaults={mode:"auto",plugins:["flash","silverlight","youtube","vimeo"],enablePluginDebug:!1,httpsBasicAuthSite:!1,type:"",pluginPath:mejs.Utility.getScriptPath(["mediaelement.js","mediaelement.min.js","mediaelement-and-player.js","mediaelement-and-player.min.js"]),flashName:"flashmediaelement.swf",flashStreamer:"",flashScriptAccess:"sameDomain",enablePluginSmoothing:!1,enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",silverlightName:"silverlightmediaelement.xap",defaultVideoWidth:480,defaultVideoHeight:270,pluginWidth:-1,pluginHeight:-1,pluginVars:[],timerRate:250,startVolume:.8,customError:"",success:function(){},error:function(){}};mejs.MediaElement=function(n,t){return mejs.HtmlMediaElementShim.create(n,t)};mejs.HtmlMediaElementShim={create:function(n,t){var f={},r=typeof n=="string"?document.getElementById(
n):n,l=r.tagName.toLowerCase(),a=l==="audio"||l==="video",e=a?r.getAttribute("src"):r.getAttribute("href"),o=r.getAttribute("poster"),s=r.getAttribute("autoplay"),u=r.getAttribute("preload"),h=r.getAttribute("controls"),i;for(var c in mejs.MediaElementDefaults)f[c]=mejs.MediaElementDefaults[c];for(c in t)f[c]=t[c];return e=typeof e=="undefined"||e===null||e==""?null:e,o=typeof o=="undefined"||o===null?"":o,u=typeof u=="undefined"||u===null||u==="false"?"none":u,s=!(typeof s=="undefined"||s===null||s==="false"),h=!(typeof h=="undefined"||h===null||h==="false"),i=this.determinePlayback(r,f,mejs.MediaFeatures.supportsMediaTag,a,e),i.url=i.url!==null?mejs.Utility.absolutizeUrl(i.url):"",i.scheme=mejs.Utility.determineScheme(i.url),i.method=="native"?(mejs.MediaFeatures.isBustedAndroid&&(r.src=i.url,r.addEventListener("click",function(){r.play()},!1)),this.updateNative(i,f,s,u)):i.method!==""?this.createPlugin(i,f,o,s,u,h):(this.createErrorMessage(i,f,o),this)},determinePlayback:function(n,t,i,r,u){var o=[],f,l,a,
v,s,h,e={method:"",url:"",htmlMediaElement:n,isVideo:n.tagName.toLowerCase()!=="audio",scheme:""},y,p,c,w,b;if(typeof t.type!="undefined"&&t.type!=="")if(typeof t.type=="string")o.push({type:t.type,url:u});else for(f=0;f<t.type.length;f++)o.push({type:t.type[f],url:u});else if(u!==null)h=this.formatType(u,n.getAttribute("type")),o.push({type:h,url:u});else for(f=0;f<n.childNodes.length;f++)s=n.childNodes[f],s.nodeType==1&&s.tagName.toLowerCase()=="source"&&(u=s.getAttribute("src"),h=this.formatType(u,s.getAttribute("type")),b=s.getAttribute("media"),(!b||!window.matchMedia||window.matchMedia&&window.matchMedia(b).matches)&&o.push({type:h,url:u}));if(!r&&o.length>0&&o[0].url!==null&&this.getTypeFromFile(o[0].url).indexOf("audio")>-1&&(e.isVideo=!1),e.isVideo&&mejs.MediaFeatures.isBustedAndroid&&(n.canPlayType=function(n){return n.match(/video\/(mp4|m4v)/gi)!==null?"maybe":""}),e.isVideo&&mejs.MediaFeatures.isChromium&&(n.canPlayType=function(n){return n.match(/video\/(webm|ogv|ogg)/gi)!==null?"maybe":""}),i&&(t.
mode==="auto"||t.mode==="auto_plugin"||t.mode==="native")&&!(mejs.MediaFeatures.isBustedNativeHTTPS&&t.httpsBasicAuthSite===!0)){for(r||(w=document.createElement(e.isVideo?"video":"audio"),n.parentNode.insertBefore(w,n),n.style.display="none",e.htmlMediaElement=n=w),f=0;f<o.length;f++)if(o[f].type=="video/m3u8"||n.canPlayType(o[f].type).replace(/no/,"")!==""||n.canPlayType(o[f].type.replace(/mp3/,"mpeg")).replace(/no/,"")!==""||n.canPlayType(o[f].type.replace(/m4a/,"mp4")).replace(/no/,"")!==""){e.method="native";e.url=o[f].url;break}if(e.method==="native"&&(e.url!==null&&(n.src=e.url),t.mode!=="auto_plugin"))return e}if(t.mode==="auto"||t.mode==="auto_plugin"||t.mode==="shim")for(f=0;f<o.length;f++)for(h=o[f].type,l=0;l<t.plugins.length;l++)for(y=t.plugins[l],p=mejs.plugins[y],a=0;a<p.length;a++)if(c=p[a],c.version==null||mejs.PluginDetector.hasPluginVersion(y,c.version))for(v=0;v<c.types.length;v++)if(h.toLowerCase()==c.types[v].toLowerCase())return e.method=y,e.url=o[f].url,e;return t.mode==="auto_plugin"&&
e.method==="native"?e:(e.method===""&&o.length>0&&(e.url=o[0].url),e)},formatType:function(n,t){return n&&!t?this.getTypeFromFile(n):t&&~t.indexOf(";")?t.substr(0,t.indexOf(";")):t},getTypeFromFile:function(n){n=n.split("?")[0];var t=n.substring(n.lastIndexOf(".")+1).toLowerCase(),i=/(mp4|m4v|ogg|ogv|m3u8|webm|webmv|flv|wmv|mpeg|mov)/gi.test(t)?"video/":"audio/";return this.getTypeFromExtension(t,i)},getTypeFromExtension:function(n,t){t=t||"";switch(n){case"mp4":case"m4v":case"m4a":case"f4v":case"f4a":return t+"mp4";case"flv":return t+"x-flv";case"webm":case"webma":case"webmv":return t+"webm";case"ogg":case"oga":case"ogv":return t+"ogg";case"m3u8":return"application/x-mpegurl";case"ts":return t+"mp2t";default:return t+n}},createErrorMessage:function(n,t,i){var r=n.htmlMediaElement,u=document.createElement("div"),f=t.customError;u.className="me-cannotplay";try{u.style.width=r.width+"px";u.style.height=r.height+"px"}catch(e){}f||(f='<a href="'+n.url+'">',i!==""&&(f+='<img src="'+i+'" width="100%" height="100%" alt="" />'),
f+="<span>"+mejs.i18n.t("mejs.download-file")+"<\/span><\/a>");u.innerHTML=f;r.parentNode.insertBefore(u,r);r.style.display="none";t.error(r)},createPlugin:function(n,t,i,r,u,f){var s=n.htmlMediaElement,v=1,y=1,c="me_"+n.method+"_"+mejs.meIndex++,o=new mejs.PluginMediaElement(c,n.method,n.url),l=document.createElement("div"),nt,h,a,k,d,g,p,rt,w,tt,it,e,b;for(o.tagName=s.tagName,p=0;p<s.attributes.length;p++)k=s.attributes[p],k.specified&&o.setAttribute(k.name,k.value);for(h=s.parentNode;h!==null&&h.tagName!=null&&h.tagName.toLowerCase()!=="body"&&h.parentNode!=null&&h.parentNode.tagName!=null&&h.parentNode.constructor!=null&&h.parentNode.constructor.name==="ShadowRoot";){if(h.parentNode.tagName.toLowerCase()==="p"){h.parentNode.parentNode.insertBefore(h,h.parentNode);break}h=h.parentNode}if(n.isVideo?(v=t.pluginWidth>0?t.pluginWidth:t.videoWidth>0?t.videoWidth:s.getAttribute("width")!==null?s.getAttribute("width"):t.defaultVideoWidth,y=t.pluginHeight>0?t.pluginHeight:t.videoHeight>0?t.videoHeight:s.getAttribute(
"height")!==null?s.getAttribute("height"):t.defaultVideoHeight,v=mejs.Utility.encodeUrl(v),y=mejs.Utility.encodeUrl(y)):t.enablePluginDebug&&(v=320,y=240),o.success=t.success,l.className="me-plugin",l.id=c+"_container",n.isVideo?s.parentNode.insertBefore(l,s):document.body.insertBefore(l,document.body.childNodes[0]),n.method==="flash"||n.method==="silverlight"){if(d=s.getAttribute("type")==="audio/mp4",g=s.getElementsByTagName("source"),g&&!d)for(p=0,rt=g.length;p<rt;p++)g[p].getAttribute("type")==="audio/mp4"&&(d=!0);a=["id="+c,"isvideo="+(n.isVideo||d?"true":"false"),"autoplay="+(r?"true":"false"),"preload="+u,"width="+v,"startvolume="+t.startVolume,"timerrate="+t.timerRate,"flashstreamer="+t.flashStreamer,"height="+y,"pseudostreamstart="+t.pseudoStreamingStartQueryParam];n.url!==null&&(n.method=="flash"?a.push("file="+mejs.Utility.encodeUrl(n.url)):a.push("file="+n.url));t.enablePluginDebug&&a.push("debug=true");t.enablePluginSmoothing&&a.push("smoothing=true");t.enablePseudoStreaming&&a.push("pseudostreaming=true");
f&&a.push("controls=true");t.pluginVars&&(a=a.concat(t.pluginVars));window[c+"_init"]=function(){switch(o.pluginType){case"flash":o.pluginElement=o.pluginApi=document.getElementById(c);break;case"silverlight":o.pluginElement=document.getElementById(o.id);o.pluginApi=o.pluginElement.Content.MediaElementJS}o.pluginApi!=null&&o.success&&o.success(o,s)};window[c+"_event"]=function(n,t){var i,r,u;i={type:n,target:o};for(r in t)o[r]=t[r],i[r]=t[r];u=t.bufferedTime||0;i.target.buffered=i.buffered={start:function(){return 0},end:function(){return u},length:1};o.dispatchEvent(i)}}switch(n.method){case"silverlight":l.innerHTML='<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" id="'+c+'" name="'+c+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="initParams" value="'+a.join(",")+'" /><param name="windowless" value="true" /><param name="background" value="black" /><param name="minRuntimeVersion" value="3.0.0.0" /><param name="autoUpgrade" value="true" /><param name="source" value="'+
t.pluginPath+t.silverlightName+'" /><\/object>';break;case"flash":mejs.MediaFeatures.isIE?(nt=document.createElement("div"),l.appendChild(nt),nt.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+c+'" width="'+v+'" height="'+y+'" class="mejs-shim"><param name="movie" value="'+t.pluginPath+t.flashName+"?"+(new Date).getTime()+'" /><param name="flashvars" value="'+a.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+t.flashScriptAccess+'" /><param name="allowFullScreen" value="true" /><param name="scale" value="default" /><\/object>'):l.innerHTML='<embed id="'+c+'" name="'+c+'" play="true" loop="false" quality="high" bgcolor="#000000" wmode="transparent" allowScriptAccess="'+t.flashScriptAccess+'" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" src="'+
t.pluginPath+t.flashName+'" flashvars="'+a.join("&")+'" width="'+v+'" height="'+y+'" scale="default"class="mejs-shim"><\/embed>';break;case"youtube":n.url.lastIndexOf("youtu.be")!=-1?(w=n.url.substr(n.url.lastIndexOf("/")+1),w.indexOf("?")!=-1&&(w=w.substr(0,w.indexOf("?")))):(tt=n.url.match(/[?&]v=([^&#]+)|&|#|$/),tt&&(w=tt[1]));youtubeSettings={container:l,containerId:l.id,pluginMediaElement:o,pluginId:c,videoId:w,height:y,width:v,scheme:n.scheme,variables:t.youtubeIframeVars};window.postMessage?mejs.YouTubeApi.enqueueIframe(youtubeSettings):mejs.PluginDetector.hasPluginVersion("flash",[10,0,0])&&mejs.YouTubeApi.createFlash(youtubeSettings,t);break;case"vimeo":it=c+"_player";o.vimeoid=n.url.substr(n.url.lastIndexOf("/")+1);l.innerHTML='<iframe src="'+n.scheme+"player.vimeo.com/video/"+o.vimeoid+"?api=1&portrait=0&byline=0&title=0&player_id="+it+'" width="'+v+'" height="'+y+'" frameborder="0" class="mejs-shim" id="'+it+'" webkitallowfullscreen mozallowfullscreen allowfullscreen><\/iframe>';typeof $f=="function"?
(e=$f(l.childNodes[0]),b=-1,e.addEvent("ready",function(){function n(n,t,i,r){var u={type:i,target:t};i=="timeupdate"&&(t.currentTime=u.currentTime=r.seconds,t.duration=u.duration=r.duration);t.dispatchEvent(u)}e.playVideo=function(){e.api("play")};e.stopVideo=function(){e.api("unload")};e.pauseVideo=function(){e.api("pause")};e.seekTo=function(n){e.api("seekTo",n)};e.setVolume=function(n){e.api("setVolume",n)};e.setMuted=function(n){n?(e.lastVolume=e.api("getVolume"),e.api("setVolume",0)):(e.api("setVolume",e.lastVolume),delete e.lastVolume)};e.getPlayerState=function(){return b};e.addEvent("play",function(){b=1;n(e,o,"play");n(e,o,"playing")});e.addEvent("pause",function(){b=2;n(e,o,"pause")});e.addEvent("finish",function(){b=0;n(e,o,"ended")});e.addEvent("playProgress",function(t){n(e,o,"timeupdate",t)});e.addEvent("seek",function(t){b=3;n(e,o,"seeked",t)});e.addEvent("loadProgress",function(t){b=3;n(e,o,"progress",t)});o.pluginElement=l;o.pluginApi=e;o.success(o,o.pluginElement)})):console.warn("You need to include froogaloop for vimeo to work")}
return s.style.display="none",s.removeAttribute("autoplay"),o},updateNative:function(n,t){var i=n.htmlMediaElement;for(var r in mejs.HtmlMediaElement)i[r]=mejs.HtmlMediaElement[r];return t.success(i,i),i}};mejs.YouTubeApi={isIframeStarted:!1,isIframeLoaded:!1,loadIframeApi:function(n){var t,i;this.isIframeStarted||(t=document.createElement("script"),t.src=n.scheme+"www.youtube.com/player_api",i=document.getElementsByTagName("script")[0],i.parentNode.insertBefore(t,i),this.isIframeStarted=!0)},iframeQueue:[],enqueueIframe:function(n){this.isLoaded?this.createIframe(n):(this.loadIframeApi(n),this.iframeQueue.push(n))},createIframe:function(n){var t=n.pluginMediaElement,i=new YT.Player(n.containerId,{height:n.height,width:n.width,videoId:n.videoId,playerVars:mejs.$.extend({},{controls:0,wmode:"transparent"},n.variables),events:{onReady:function(){i.setVideoSize=function(n,t){i.setSize(n,t)};n.pluginMediaElement.pluginApi=i;n.pluginMediaElement.pluginElement=document.getElementById(n.containerId);t.success(t,t.pluginElement);
mejs.YouTubeApi.createEvent(i,t,"canplay");setInterval(function(){mejs.YouTubeApi.createEvent(i,t,"timeupdate")},250);typeof t.attributes.autoplay!="undefined"&&i.playVideo()},onStateChange:function(n){mejs.YouTubeApi.handleStateChange(n.data,i,t)}}})},createEvent:function(n,t,i){var r={type:i,target:t},u;n&&n.getDuration&&(t.currentTime=r.currentTime=n.getCurrentTime(),t.duration=r.duration=n.getDuration(),r.paused=t.paused,r.ended=t.ended,r.muted=n.isMuted(),r.volume=n.getVolume()/100,r.bytesTotal=n.getVideoBytesTotal(),r.bufferedBytes=n.getVideoBytesLoaded(),u=r.bufferedBytes/r.bytesTotal*r.duration,r.target.buffered=r.buffered={start:function(){return 0},end:function(){return u},length:1});t.dispatchEvent(r)},iFrameReady:function(){for(this.isLoaded=!0,this.isIframeLoaded=!0;this.iframeQueue.length>0;){var n=this.iframeQueue.pop();this.createIframe(n)}},flashPlayers:{},createFlash:function(n){this.flashPlayers[n.pluginId]=n;var t,i=n.scheme+"www.youtube.com/apiplayer?enablejsapi=1&amp;playerapiid="+n.pluginId+
"&amp;version=3&amp;autoplay=0&amp;controls=0&amp;modestbranding=1&loop=0";mejs.MediaFeatures.isIE?(t=document.createElement("div"),n.container.appendChild(t),t.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="'+n.scheme+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="'+n.pluginId+'" width="'+n.width+'" height="'+n.height+'" class="mejs-shim"><param name="movie" value="'+i+'" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+options.flashScriptAccess+'" /><param name="allowFullScreen" value="true" /><\/object>'):n.container.innerHTML='<object type="application/x-shockwave-flash" id="'+n.pluginId+'" data="'+i+'" width="'+n.width+'" height="'+n.height+'" style="visibility: visible; " class="mejs-shim"><param name="allowScriptAccess" value="'+options.flashScriptAccess+'"><param name="wmode" value="transparent"><\/object>'},flashReady:function(n){var r=this.flashPlayers[n],i=document.getElementById(n),t=r.pluginMediaElement,u;t.
pluginApi=t.pluginElement=i;r.success(t,t.pluginElement);i.cueVideoById(r.videoId);u=r.containerId+"_callback";window[u]=function(n){mejs.YouTubeApi.handleStateChange(n,i,t)};i.addEventListener("onStateChange",u);setInterval(function(){mejs.YouTubeApi.createEvent(i,t,"timeupdate")},250);mejs.YouTubeApi.createEvent(i,t,"canplay")},handleStateChange:function(n,t,i){switch(n){case-1:i.paused=!0;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"loadedmetadata");break;case 0:i.paused=!1;i.ended=!0;mejs.YouTubeApi.createEvent(t,i,"ended");break;case 1:i.paused=!1;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"play");mejs.YouTubeApi.createEvent(t,i,"playing");break;case 2:i.paused=!0;i.ended=!1;mejs.YouTubeApi.createEvent(t,i,"pause");break;case 3:mejs.YouTubeApi.createEvent(t,i,"progress")}}};window.onYouTubePlayerAPIReady=function(){mejs.YouTubeApi.iFrameReady()};window.onYouTubePlayerReady=function(n){mejs.YouTubeApi.flashReady(n)};window.mejs=mejs;window.MediaElement=mejs.MediaElement,function(n,t,i){var r={"default":"en",
locale:{language:i.i18n&&i.i18n.locale.language||"",strings:i.i18n&&i.i18n.locale.strings||{}},pluralForms:[function(){return arguments[1]},function(){var n=arguments;return n[0]===1?n[1]:n[2]},function(){var n=arguments;return[0,1].indexOf(n[0])>-1?n[1]:n[2]},function(){var n=arguments;return n[0]%10==1&&n[0]%100!=11?n[1]:n[0]!==0?n[2]:n[3]},function(){var n=arguments;return n[0]===1||n[0]===11?n[1]:n[0]===2||n[0]===12?n[2]:n[0]>2&&n[0]<20?n[3]:n[4]},function(){return args[0]===1?args[1]:args[0]===0||args[0]%100>0&&args[0]%100<20?args[2]:args[3]},function(){var n=arguments;return n[0]%10==1&&n[0]%100!=11?n[1]:n[0]%10>=2&&(n[0]%100<10||n[0]%100>=20)?n[2]:[3]},function(){var n=arguments;return n[0]%10==1&&n[0]%100!=11?n[1]:n[0]%10>=2&&n[0]%10<=4&&(n[0]%100<10||n[0]%100>=20)?n[2]:n[3]},function(){var n=arguments;return n[0]===1?n[1]:n[0]>=2&&n[0]<=4?n[2]:n[3]},function(){var n=arguments;return n[0]===1?n[1]:n[0]%10>=2&&n[0]%10<=4&&(n[0]%100<10||n[0]%100>=20)?n[2]:n[3]},function(){var n=arguments;return n[0]%100==
1?n[2]:n[0]%100==2?n[3]:n[0]%100==3||n[0]%100==4?n[4]:n[1]},function(){var n=arguments;return n[0]===1?n[1]:n[0]===2?n[2]:n[0]>2&&n[0]<7?n[3]:n[0]>6&&n[0]<11?n[4]:n[5]},function(){var n=arguments;return n[0]===0?n[1]:n[0]===1?n[2]:n[0]===2?n[3]:n[0]%100>=3&&n[0]%100<=10?n[4]:n[0]%100>=11?n[5]:n[6]},function(){var n=arguments;return n[0]===1?n[1]:n[0]===0||n[0]%100>1&&n[0]%100<11?n[2]:n[0]%100>10&&n[0]%100<20?n[3]:n[4]},function(){var n=arguments;return n[0]%10==1?n[1]:n[0]%10==2?n[2]:n[3]},function(){var n=arguments;return n[0]!==11&&n[0]%10==1?n[1]:n[2]},function(){var n=arguments;return n[0]===1?n[1]:n[0]%10>=2&&n[0]%10<=4&&(n[0]%100<10||n[0]%100>=20)?n[2]:n[3]},function(){var n=arguments;return n[0]===1?n[1]:n[0]===2?n[2]:n[0]!==8&&n[0]!==11?n[3]:n[4]},function(){var n=arguments;return n[0]===0?n[1]:n[2]},function(){var n=arguments;return n[0]===1?n[1]:n[0]===2?n[2]:n[0]===3?n[3]:n[4]},function(){var n=arguments;return n[0]===0?n[1]:n[0]===1?n[2]:n[3]}],getLanguage:function(){var n=r.locale.language||r["default"];
return/^(x\-)?[a-z]{2,}(\-\w{2,})?(\-\w{2,})?$/.exec(n)?n:r["default"]},t:function(n,t){if(typeof n=="string"&&n.length){var f=r.getLanguage(),i,u,e=function(n,t,i){return typeof n!="object"||typeof t!="number"||typeof i!="number"?n:typeof n=="string"?n:r.pluralForms[i].apply(null,[t].concat(n))},o=function(n){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return n.replace(/[&<>"]/g,function(n){return t[n]})};return r.locale.strings&&r.locale.strings[f]&&(i=r.locale.strings[f][n],typeof t=="number"&&(u=r.locale.strings[f]["mejs.plural-form"],i=e.apply(null,[i,t,u]))),!i&&r.locale.strings&&r.locale.strings[r["default"]]&&(i=r.locale.strings[r["default"]][n],typeof t=="number"&&(u=r.locale.strings[r["default"]]["mejs.plural-form"],i=e.apply(null,[i,t,u]))),i=i||n,typeof t=="number"&&(i=i.replace("%1",t)),o(i)}return n}};typeof mejsL10n!="undefined"&&(r.locale.language=mejsL10n.language);i.i18n=r}(document,window,mejs),function(n){"use strict";typeof mejsL10n!="undefined"&&(n[mejsL10n.language]=mejsL10n.
strings)}(mejs.i18n.locale.strings);
/*!
 * This is a i18n.locale language object.
 *
 * English; This can serve as a template for other languages to translate
 *
 * @author
 *   TBD
 *   Sascha Greuel (Twitter: @SoftCreatR)
 *
 * @see
 *   me-i18n.js
 *
 * @params
 *  - exports - CommonJS, window ..
 */
(function(n){"use strict";n.en===undefined&&(n.en={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.fullscreen-off":"Turn off Fullscreen","mejs.fullscreen-on":"Go Fullscreen","mejs.download-video":"Download Video","mejs.fullscreen":"Fullscreen","mejs.time-jump-forward":["Jump forward 1 second","Jump forward %1 seconds"],"mejs.play":"Play","mejs.pause":"Pause","mejs.close":"Close","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.time-skip-back":["Skip back 1 second","Skip back %1 seconds"],"mejs.captions-subtitles":"Captions/Subtitles","mejs.none":"None","mejs.mute-toggle":"Mute Toggle","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.ad-skip":"Skip ad","mejs.ad-skip-info":["Skip in 1 second","Skip in %1 seconds"],
"mejs.source-chooser":"Source Chooser"})})(mejs.i18n.locale.strings);
/*!
 *
 * MediaElementPlayer
 * http://mediaelementjs.com/
 *
 * Creates a controller bar for HTML5 <video> add <audio> tags
 * using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper)
 *
 * Copyright 2010-2013, John Dyer (http://j.hn/)
 * License: MIT
 *
 */
typeof jQuery!="undefined"?mejs.$=jQuery:typeof Zepto!="undefined"?(mejs.$=Zepto,Zepto.fn.outerWidth=function(n){var t=$(this).width();return n&&(t+=parseInt($(this).css("margin-right"),10),t+=parseInt($(this).css("margin-left"),10)),t}):typeof ender!="undefined"&&(mejs.$=ender),function(n){mejs.MepDefaults={poster:"",showPosterWhenEnded:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(n){return n.duration*.05},defaultSeekForwardInterval:function(n){return n.duration*.05},setDimensions:!0,audioWidth:-1,audioHeight:-1,startVolume:.8,loop:!1,autoRewind:!0,enableAutosize:!0,timeFormat:"",alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,autosizeProgress:!0,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,clickToPlayPause:!0,controlsTimeoutDefault:1500,controlsTimeoutMouseEnter:2500,controlsTimeoutMouseLeave:1e3,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:
["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:!0,stretching:"auto",enableKeyboard:!0,pauseOtherPlayers:!0,keyActions:[{keys:[32,179],action:function(n,t){mejs.MediaFeatures.isFirefox||(t.paused||t.ended?t.play():t.pause())}},{keys:[38],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.volume+.1,1);t.setVolume(i)}},{keys:[40],action:function(n,t){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.volume-.1,0);t.setVolume(i)}},{keys:[37,227],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.max(t.currentTime-n.options.defaultSeekBackwardInterval(t),0);t.setCurrentTime(i)}}},{keys:[39,228],action:function(n,t){if(!isNaN(t.duration)&&t.duration>0){n.isVideo&&(n.showControls(),n.startControlsTimer());var i=Math.min(t.currentTime+
n.options.defaultSeekForwardInterval(t),t.duration);t.setCurrentTime(i)}}},{keys:[70],action:function(n){typeof n.enterFullScreen!="undefined"&&(n.isFullScreen?n.exitFullScreen():n.enterFullScreen())}},{keys:[77],action:function(n){n.container.find(".mejs-volume-slider").css("display","block");n.isVideo&&(n.showControls(),n.startControlsTimer());n.media.muted?n.setMuted(!1):n.setMuted(!0)}}]};mejs.mepIndex=0;mejs.players={};mejs.MediaElementPlayer=function(t,i){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(t,i);var r=this;if(r.$media=r.$node=n(t),r.node=r.media=r.$media[0],r.node)return typeof r.node.player!="undefined"?r.node.player:(typeof i=="undefined"&&(i=r.$node.data("mejsoptions")),r.options=n.extend({},mejs.MepDefaults,i),r.options.timeFormat||(r.options.timeFormat="mm:ss",r.options.alwaysShowHours&&(r.options.timeFormat="hh:mm:ss"),r.options.showTimecodeFrameCount&&(r.options.timeFormat+=":ff")),mejs.Utility.calculateTimeFormat(0,r.options,r.options.framesPerSecond||
25),r.id="mep_"+mejs.mepIndex++,mejs.players[r.id]=r,r.init(),r)};mejs.MediaElementPlayer.prototype={hasFocus:!1,controlsAreVisible:!0,init:function(){var t=this,r=mejs.MediaFeatures,u=n.extend(!0,{},t.options,{success:function(n,i){t.meReady(n,i)},error:function(n){t.handleError(n)}}),f=t.media.tagName.toLowerCase(),e,i,o;t.isDynamic=f!=="audio"&&f!=="video";t.isVideo=t.isDynamic?t.options.isVideo:f!=="audio"&&t.options.isVideo;r.isiPad&&t.options.iPadUseNativeControls||r.isiPhone&&t.options.iPhoneUseNativeControls?(t.$media.attr("controls","controls"),r.isiPad&&t.media.getAttribute("autoplay")!==null&&t.play()):r.isAndroid&&t.options.AndroidUseNativeControls||(t.isVideo||!t.isVideo&&t.options.features.length?(t.$media.removeAttr("controls"),e=t.isVideo?mejs.i18n.t("mejs.video-player"):mejs.i18n.t("mejs.audio-player"),n('<span class="mejs-offscreen">'+e+"<\/span>").insertBefore(t.$media),t.container=n('<div id="'+t.id+'" class="mejs-container '+(mejs.MediaFeatures.svgAsImg?"svg":"no-svg")+'" tabindex="0" role="application" aria-label="'+
e+'"><div class="mejs-inner"><div class="mejs-mediaelement"><\/div><div class="mejs-layers"><\/div><div class="mejs-controls"><\/div><div class="mejs-clear"><\/div><\/div><\/div>').addClass(t.$media[0].className).insertBefore(t.$media).focus(function(n){var i,r;t.controlsAreVisible||t.hasFocus||!t.controlsEnabled||(t.showControls(!0),t.hasMsNativeFullScreen||(i=".mejs-playpause-button > button",mejs.Utility.isNodeAfter(n.relatedTarget,t.container[0])&&(i=".mejs-controls .mejs-button:last-child > button"),r=t.container.find(i),r.focus()))}),t.options.features.length||t.container.css("background","transparent").find(".mejs-controls").hide(),t.isVideo&&t.options.stretching==="fill"&&!t.container.parent("mejs-fill-container").length&&(t.outerContainer=t.$media.parent(),t.container.wrap('<div class="mejs-fill-container"/>')),t.container.addClass((r.isAndroid?"mejs-android ":"")+(r.isiOS?"mejs-ios ":"")+(r.isiPad?"mejs-ipad ":"")+(r.isiPhone?"mejs-iphone ":"")+(t.isVideo?"mejs-video ":"mejs-audio ")),t.container.find(
".mejs-mediaelement").append(t.$media),t.node.player=t,t.controls=t.container.find(".mejs-controls"),t.layers=t.container.find(".mejs-layers"),i=t.isVideo?"video":"audio",o=i.substring(0,1).toUpperCase()+i.substring(1),t.width=t.options[i+"Width"]>0||t.options[i+"Width"].toString().indexOf("%")>-1?t.options[i+"Width"]:t.media.style.width!==""&&t.media.style.width!==null?t.media.style.width:t.media.getAttribute("width")!==null?t.$media.attr("width"):t.options["default"+o+"Width"],t.height=t.options[i+"Height"]>0||t.options[i+"Height"].toString().indexOf("%")>-1?t.options[i+"Height"]:t.media.style.height!==""&&t.media.style.height!==null?t.media.style.height:t.$media[0].getAttribute("height")!==null?t.$media.attr("height"):t.options["default"+o+"Height"],t.setPlayerSize(t.width,t.height),u.pluginWidth=t.width,u.pluginHeight=t.height):t.isVideo||t.options.features.length||t.$media.hide());mejs.MediaElement(t.$media[0],u);typeof t.container!="undefined"&&t.options.features.length&&t.controlsAreVisible&&t.container.
trigger("controlsshown")},showControls:function(n){var t=this;(n=typeof n=="undefined"||n,t.controlsAreVisible)||(n?(t.controls.removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0;t.container.trigger("controlsshown")}),t.container.find(".mejs-control").removeClass("mejs-offscreen").stop(!0,!0).fadeIn(200,function(){t.controlsAreVisible=!0})):(t.controls.removeClass("mejs-offscreen").css("display","block"),t.container.find(".mejs-control").removeClass("mejs-offscreen").css("display","block"),t.controlsAreVisible=!0,t.container.trigger("controlsshown")),t.setControlsSize())},hideControls:function(t){var i=this;(t=typeof t=="undefined"||t,!i.controlsAreVisible||i.options.alwaysShowControls||i.keyboardAction||i.media.paused||i.media.ended)||(t?(i.controls.stop(!0,!0).fadeOut(200,function(){n(this).addClass("mejs-offscreen").css("display","block");i.controlsAreVisible=!1;i.container.trigger("controlshidden")}),i.container.find(".mejs-control").stop(!0,!0).fadeOut(200,function(){
n(this).addClass("mejs-offscreen").css("display","block")})):(i.controls.addClass("mejs-offscreen").css("display","block"),i.container.find(".mejs-control").addClass("mejs-offscreen").css("display","block"),i.controlsAreVisible=!1,i.container.trigger("controlshidden")))},controlsTimer:null,startControlsTimer:function(n){var t=this;n=typeof n!="undefined"?n:t.options.controlsTimeoutDefault;t.killControlsTimer("start");t.controlsTimer=setTimeout(function(){t.hideControls();t.killControlsTimer("hide")},n)},killControlsTimer:function(){var n=this;n.controlsTimer!==null&&(clearTimeout(n.controlsTimer),delete n.controlsTimer,n.controlsTimer=null)},controlsEnabled:!0,disableControls:function(){var n=this;n.killControlsTimer();n.hideControls(!1);this.controlsEnabled=!1},enableControls:function(){var n=this;n.showControls(!1);n.controlsEnabled=!0},meReady:function(t,i){var r=this,u=mejs.MediaFeatures,e=i.getAttribute("autoplay"),o=!(typeof e=="undefined"||e===null||e==="false"),h,s,f;if(!r.created){if(r.created=!0,r.media=
t,r.domNode=i,!(u.isAndroid&&r.options.AndroidUseNativeControls)&&!(u.isiPad&&r.options.iPadUseNativeControls)&&!(u.isiPhone&&r.options.iPhoneUseNativeControls)){if(!r.isVideo&&!r.options.features.length){o&&t.pluginType=="native"&&r.play();r.options.success&&(typeof r.options.success=="string"?window[r.options.success](r.media,r.domNode,r):r.options.success(r.media,r.domNode,r));return}r.buildposter(r,r.controls,r.layers,r.media);r.buildkeyboard(r,r.controls,r.layers,r.media);r.buildoverlays(r,r.controls,r.layers,r.media);r.findTracks();for(h in r.options.features)if(s=r.options.features[h],r["build"+s])try{r["build"+s](r,r.controls,r.layers,r.media)}catch(c){}r.container.trigger("controlsready");r.setPlayerSize(r.width,r.height);r.setControlsSize();r.isVideo&&(mejs.MediaFeatures.hasTouch&&!r.options.alwaysShowControls?r.$media.bind("touchstart",function(){r.controlsAreVisible?r.hideControls(!1):r.controlsEnabled&&r.showControls(!1)}):(r.clickToPlayPauseCallback=function(){if(r.options.clickToPlayPause){r.media.
paused?r.play():r.pause();var n=r.$media.closest(".mejs-container").find(".mejs-overlay-button"),t=n.attr("aria-pressed");n.attr("aria-pressed",!t)}},r.media.addEventListener("click",r.clickToPlayPauseCallback,!1),r.container.bind("mouseenter",function(){r.controlsEnabled&&(r.options.alwaysShowControls||(r.killControlsTimer("enter"),r.showControls(),r.startControlsTimer(r.options.controlsTimeoutMouseEnter)))}).bind("mousemove",function(){r.controlsEnabled&&(r.controlsAreVisible||r.showControls(),r.options.alwaysShowControls||r.startControlsTimer(r.options.controlsTimeoutMouseEnter))}).bind("mouseleave",function(){r.controlsEnabled&&(r.media.paused||r.options.alwaysShowControls||r.startControlsTimer(r.options.controlsTimeoutMouseLeave))})),r.options.hideVideoControlsOnLoad&&r.hideControls(!1),o&&!r.options.alwaysShowControls&&r.hideControls(),r.options.enableAutosize&&r.media.addEventListener("loadedmetadata",function(n){r.options.videoHeight<=0&&r.domNode.getAttribute("height")===null&&!isNaN(n.target.videoHeight)&&
(r.setPlayerSize(n.target.videoWidth,n.target.videoHeight),r.setControlsSize(),r.media.setVideoSize(n.target.videoWidth,n.target.videoHeight))},!1));r.media.addEventListener("play",function(){var t,n;for(t in mejs.players)n=mejs.players[t],n.id==r.id||!r.options.pauseOtherPlayers||n.paused||n.ended||n.pause(),n.hasFocus=!1;r.hasFocus=!0},!1);r.media.addEventListener("ended",function(){if(r.options.autoRewind)try{r.media.setCurrentTime(0);window.setTimeout(function(){n(r.container).find(".mejs-overlay-loading").parent().hide()},20)}catch(t){}r.media.pluginType==="youtube"?r.media.stop():r.media.pause();r.setProgressRail&&r.setProgressRail();r.setCurrentRail&&r.setCurrentRail();r.options.loop?r.play():!r.options.alwaysShowControls&&r.controlsEnabled&&r.showControls()},!1);r.media.addEventListener("loadedmetadata",function(){mejs.Utility.calculateTimeFormat(r.duration,r.options,r.options.framesPerSecond||25);r.updateDuration&&r.updateDuration();r.updateCurrent&&r.updateCurrent();r.isFullScreen||(r.setPlayerSize(
r.width,r.height),r.setControlsSize())},!1);f=null;r.media.addEventListener("timeupdate",function(){f!==this.duration&&(f=this.duration,mejs.Utility.calculateTimeFormat(f,r.options,r.options.framesPerSecond||25),r.updateDuration&&r.updateDuration(),r.updateCurrent&&r.updateCurrent(),r.setControlsSize())},!1);r.container.focusout(function(t){if(t.relatedTarget){var i=n(t.relatedTarget);r.keyboardAction&&i.parents(".mejs-container").length===0&&(r.keyboardAction=!1,r.isVideo&&!r.options.alwaysShowControls&&r.hideControls(!0))}});setTimeout(function(){r.setPlayerSize(r.width,r.height);r.setControlsSize()},50);r.globalBind("resize",function(){r.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||r.setPlayerSize(r.width,r.height);r.setControlsSize()});r.media.pluginType=="youtube"&&(u.isiOS||u.isAndroid)&&(r.container.find(".mejs-overlay-play").hide(),r.container.find(".mejs-poster").hide())}o&&t.pluginType=="native"&&r.play();r.options.success&&(typeof r.options.success=="string"?
window[r.options.success](r.media,r.domNode,r):r.options.success(r.media,r.domNode,r))}},handleError:function(n){var t=this;t.controls&&t.controls.hide();t.options.error&&t.options.error(n)},setPlayerSize:function(n,t){var i=this;if(!i.options.setDimensions)return!1;typeof n!="undefined"&&(i.width=n);typeof t!="undefined"&&(i.height=t);switch(i.options.stretching){case"fill":i.isVideo?this.setFillMode():this.setDimensions(i.width,i.height);break;case"responsive":this.setResponsiveMode();break;case"none":this.setDimensions(i.width,i.height);break;default:this.hasFluidMode()===!0?this.setResponsiveMode():this.setDimensions(i.width,i.height)}},hasFluidMode:function(){var n=this;return n.height.toString().indexOf("%")>0||n.$node.css("max-width")!=="none"&&n.$node.css("max-width")!=="t.width"||n.$node[0].currentStyle&&n.$node[0].currentStyle.maxWidth==="100%"},setResponsiveMode:function(){var t=this,e=function(){return t.isVideo?t.media.videoWidth&&t.media.videoWidth>0?t.media.videoWidth:t.media.getAttribute("width")!==
null?t.media.getAttribute("width"):t.options.defaultVideoWidth:t.options.defaultAudioWidth}(),f=function(){return t.isVideo?t.media.videoHeight&&t.media.videoHeight>0?t.media.videoHeight:t.media.getAttribute("height")!==null?t.media.getAttribute("height"):t.options.defaultVideoHeight:t.options.defaultAudioHeight}(),r=t.container.parent().closest(":visible").width(),u=t.container.parent().closest(":visible").height(),i=t.isVideo||!t.options.autosizeProgress?parseInt(r*f/e,10):f;(isNaN(i)||u!==0&&i>u&&u>f)&&(i=u);t.container.parent().length>0&&t.container.parent()[0].tagName.toLowerCase()==="body"&&(r=n(window).width(),i=n(window).height());i&&r&&(t.container.width(r).height(i),t.$media.add(t.container.find(".mejs-shim")).width("100%").height("100%"),t.isVideo&&t.media.setVideoSize&&t.media.setVideoSize(r,i),t.layers.children(".mejs-layer").width("100%").height("100%"))},setFillMode:function(){var n=this,i=n.outerContainer,t,r;i.width()||i.height(n.$media.width());i.height()||i.height(n.$media.height());t=i.width(
);r=i.height();n.setDimensions("100%","100%");n.container.find(".mejs-poster img").css("display","block");targetElement=n.container.find("object, embed, iframe, video");var e=n.height,o=n.width,c=t,l=e*t/o,s=o*r/e,a=r,u=!(s>t),f=u?Math.floor(c):Math.floor(s),h=u?Math.floor(l):Math.floor(a);u?(targetElement.height(h).width(t),n.media.setVideoSize&&n.media.setVideoSize(t,h)):(targetElement.height(r).width(f),n.media.setVideoSize&&n.media.setVideoSize(f,r));targetElement.css({"margin-left":Math.floor((t-f)/2),"margin-top":0})},setDimensions:function(n,t){var i=this;i.container.width(n).height(t);i.layers.children(".mejs-layer").width(n).height(t)},setControlsSize:function(){var i=this,o=0,t=0,r=i.controls.find(".mejs-time-rail"),u=i.controls.find(".mejs-time-total"),s=r.siblings(),f=s.last(),e=null,h=i.options&&!i.options.autosizeProgress;if(i.container.is(":visible")&&r.length&&r.is(":visible")){h&&(t=parseInt(r.css("width"),10));t!==0&&t||(s.each(function(){var t=n(this);t.css("position")!="absolute"&&t.is(":visible")&&
(o+=n(this).outerWidth(!0))}),t=i.controls.width()-o-(r.outerWidth(!0)-r.width()));do h||r.width(t),u.width(t-(u.outerWidth(!0)-u.width())),f.css("position")!="absolute"&&(e=f.length?f.position():null,t--);while(e!==null&&e.top.toFixed(2)>0&&t>0);i.container.trigger("controlsresize")}},buildposter:function(t,i,r,u){var o=this,f=n('<div class="mejs-poster mejs-layer"><\/div>').appendTo(r),e=t.$media.attr("poster");t.options.poster!==""&&(e=t.options.poster);e?o.setPoster(e):f.hide();u.addEventListener("play",function(){f.hide()},!1);t.options.showPosterWhenEnded&&t.options.autoRewind&&u.addEventListener("ended",function(){f.show()},!1)},setPoster:function(t){var u=this,i=u.container.find(".mejs-poster"),r=i.find("img");r.length===0&&(r=n('<img width="100%" height="100%" alt="" />').appendTo(i));r.attr("src",t);i.css({"background-image":"url("+t+")"})},buildoverlays:function(t,i,r,u){var s=this;if(t.isVideo){var f=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span><\/span><\/div><\/div>').
hide().appendTo(r),e=n('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"><\/div><\/div>').hide().appendTo(r),o=n('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button" role="button" aria-label="'+mejs.i18n.t("mejs.play")+'" aria-pressed="false"><\/div><\/div>').appendTo(r).bind("click",function(){if(s.options.clickToPlayPause){u.paused&&u.play();var t=n(this).find(".mejs-overlay-button"),i=t.attr("aria-pressed");t.attr("aria-pressed",!!i)}});u.addEventListener("play",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("playing",function(){o.hide();f.hide();i.find(".mejs-time-buffering").hide();e.hide()},!1);u.addEventListener("seeking",function(){f.show();i.find(".mejs-time-buffering").show()},!1);u.addEventListener("seeked",function(){f.hide();i.find(".mejs-time-buffering").hide()},!1);u.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||o.show()},!1);u.addEventListener("waiting",function(){f.show(
);i.find(".mejs-time-buffering").show()},!1);u.addEventListener("loadeddata",function(){f.show();i.find(".mejs-time-buffering").show();mejs.MediaFeatures.isAndroid&&(u.canplayTimeout=window.setTimeout(function(){if(document.createEvent){var n=document.createEvent("HTMLEvents");return n.initEvent("canplay",!0,!0),u.dispatchEvent(n)}},300))},!1);u.addEventListener("canplay",function(){f.hide();i.find(".mejs-time-buffering").hide();clearTimeout(u.canplayTimeout)},!1);u.addEventListener("error",function(n){s.handleError(n);f.hide();o.hide();e.show();e.find(".mejs-overlay-error").html("Error loading this resource")},!1);u.addEventListener("keydown",function(n){s.onkeydown(t,u,n)},!1)}},buildkeyboard:function(t,i,r,u){var f=this;f.container.keydown(function(){f.keyboardAction=!0});f.globalBind("keydown",function(i){t.hasFocus=n(i.target).closest(".mejs-container").length!==0&&n(i.target).closest(".mejs-container").attr("id")===t.$media.closest(".mejs-container").attr("id");return f.onkeydown(t,u,i)});f.globalBind("click",
function(i){t.hasFocus=n(i.target).closest(".mejs-container").length!==0})},onkeydown:function(n,t,i){var r,e,u,f,o;if(n.hasFocus&&n.options.enableKeyboard)for(r=0,e=n.options.keyActions.length;r<e;r++)for(u=n.options.keyActions[r],f=0,o=u.keys.length;f<o;f++)if(i.keyCode==u.keys[f])return typeof i.preventDefault=="function"&&i.preventDefault(),u.action(n,t,i.keyCode,i),!1;return!0},findTracks:function(){var t=this,i=t.$media.find("track");t.tracks=[];i.each(function(i,r){r=n(r);t.tracks.push({srclang:r.attr("srclang")?r.attr("srclang").toLowerCase():"",src:r.attr("src"),kind:r.attr("kind"),label:r.attr("label")||"",entries:[],isLoaded:!1})})},changeSkin:function(n){this.container[0].className="mejs-container "+n;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.load();this.media.play()},pause:function(){try{this.media.pause()}catch(n){}},load:function(){this.isLoaded||this.media.load();this.isLoaded=!0},setMuted:function(n){this.media.setMuted(n)},setCurrentTime:function(
n){this.media.setCurrentTime(n)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(n){this.media.setVolume(n)},getVolume:function(){return this.media.volume},setSrc:function(n){var i=this,t,r,u,f;if(i.media.pluginType==="youtube"){if(typeof n!="string")for(r=0;r<n.length;r++)if(u=n[r],this.canPlayType(u.type)){n=u.src;break}n.lastIndexOf("youtu.be")!==-1?(t=n.substr(n.lastIndexOf("/")+1),t.indexOf("?")!==-1&&(t=t.substr(0,t.indexOf("?")))):(f=n.match(/[?&]v=([^&#]+)|&|#|$/),f&&(t=f[1]));i.media.getAttribute("autoplay")!==null?i.media.pluginApi.loadVideoById(t):i.media.pluginApi.cueVideoById(t)}else i.media.setSrc(n)},remove:function(){var n=this,i,t;n.container.prev(".mejs-offscreen").remove();for(i in n.options.features)if(t=n.options.features[i],n["clean"+t])try{n["clean"+t](n)}catch(r){}n.isDynamic?n.$node.insertBefore(n.container):(n.$media.prop("controls",!0),n.$node.clone().insertBefore(n.container).show(),n.$node.remove());n.media.pluginType!=="native"&&n.media.remove();delete
mejs.players[n.id];typeof n.container=="object"&&n.container.remove();n.globalUnbind();delete n.node.player},rebuildtracks:function(){var n=this;n.findTracks();n.buildtracks(n,n.controls,n.layers,n.media)},resetSize:function(){var n=this;setTimeout(function(){n.setPlayerSize(n.width,n.height);n.setControlsSize()},50)}},function(){function t(t,r){var u={d:[],w:[]};return n.each((t||"").split(" "),function(n,t){var f=t+"."+r;f.indexOf(".")===0?(u.d.push(f),u.w.push(f)):u[i.test(t)?"w":"d"].push(f)}),u.d=u.d.join(" "),u.w=u.w.join(" "),u}var i=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/;mejs.MediaElementPlayer.prototype.globalBind=function(i,r,u){var f=this,e=f.node?f.node.ownerDocument:document;i=t(i,f.id);i.d&&n(e).bind(i.d,r,u);i.w&&n(window).bind(i.w,r,u)};mejs.MediaElementPlayer.prototype.globalUnbind=function(i,r){var u=this,f=u.node?u.node.ownerDocument:document;i=t(i,u.id);i.d&&n(f).unbind(i.d,r);i.w&&n(window).unbind(i.w,r)}}();typeof
n!="undefined"&&(n.fn.mediaelementplayer=function(t){return t===!1?this.each(function(){var t=n(this).data("mediaelementplayer");t&&t.remove();n(this).removeData("mediaelementplayer")}):this.each(function(){n(this).data("mediaelementplayer",new mejs.MediaElementPlayer(this,t))}),this},n(document).ready(function(){n(".mejs-player").mediaelementplayer()}));window.MediaElementPlayer=mejs.MediaElementPlayer}(mejs.$),function(n){n.extend(mejs.MepDefaults,{playText:"",pauseText:""});n.extend(MediaElementPlayer.prototype,{buildplaypause:function(t,i,r,u){function f(n){"play"===n?(h.removeClass("mejs-play").addClass("mejs-pause"),l.attr({title:s,"aria-label":s})):(h.removeClass("mejs-pause").addClass("mejs-play"),l.attr({title:o,"aria-label":o}))}var c=this,e=c.options,o=e.playText?e.playText:mejs.i18n.t("mejs.play"),s=e.pauseText?e.pauseText:mejs.i18n.t("mejs.pause"),h=n('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+c.id+'" title="'+o+'" aria-label="'+s+'"><\/button><\/div>').
appendTo(i).click(function(n){return n.preventDefault(),u.paused?u.play():u.pause(),!1}),l=h.find("button");f("pse");u.addEventListener("play",function(){f("play")},!1);u.addEventListener("playing",function(){f("play")},!1);u.addEventListener("pause",function(){f("pse")},!1);u.addEventListener("paused",function(){f("pse")},!1)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{stopText:"Stop"});n.extend(MediaElementPlayer.prototype,{buildstop:function(t,i,r,u){var f=this;n('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+f.id+'" title="'+f.options.stopText+'" aria-label="'+f.options.stopText+'"><\/button><\/div>').appendTo(i).click(function(){u.paused||u.pause();u.currentTime>0&&(u.setCurrentTime(0),u.pause(),i.find(".mejs-time-current").width("0px"),i.find(".mejs-time-handle").css("left","0px"),i.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0,t.options)),i.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0,t.options)),r.find(".mejs-poster").
show())})}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{enableProgressTooltip:!0,progressHelpText:""});n.extend(MediaElementPlayer.prototype,{buildprogress:function(t,i,r,u){var f=this,e=!1,c=!1,o=0,s=!1,l=t.options.autoRewind,p=f.options.progressHelpText?f.options.progressHelpText:mejs.i18n.t("mejs.time-help-text"),a=t.options.enableProgressTooltip?'<span class="mejs-time-float"><span class="mejs-time-float-current">00:00<\/span><span class="mejs-time-float-corner"><\/span><\/span>':"";n('<div class="mejs-time-rail"><span  class="mejs-time-total mejs-time-slider"><span class="mejs-time-buffering"><\/span><span class="mejs-time-loaded"><\/span><span class="mejs-time-current"><\/span><span class="mejs-time-handle"><\/span>'+a+"<\/span><\/div>").appendTo(i);i.find(".mejs-time-buffering").hide();f.total=i.find(".mejs-time-total");f.loaded=i.find(".mejs-time-loaded");f.current=i.find(".mejs-time-current");f.handle=i.find(".mejs-time-handle");f.timefloat=i.find(".mejs-time-float");f.timefloatcurrent=i.find(".mejs-time-float-current");
f.slider=i.find(".mejs-time-slider");var h=function(n){var r=f.total.offset(),s=f.total.width(),h=0,o=0,c=0,i;i=n.originalEvent&&n.originalEvent.changedTouches?n.originalEvent.changedTouches[0].pageX:n.changedTouches?n.changedTouches[0].pageX:n.pageX;u.duration&&(i<r.left?i=r.left:i>s+r.left&&(i=s+r.left),c=i-r.left,h=c/s,o=h<=.02?0:h*u.duration,e&&o!==u.currentTime&&u.setCurrentTime(o),mejs.MediaFeatures.hasTouch||(f.timefloat.css("left",c),f.timefloatcurrent.html(mejs.Utility.secondsToTimeCode(o,t.options)),f.timefloat.show()))},v=function(){var n=u.currentTime,i=mejs.i18n.t("mejs.time-slider"),r=mejs.Utility.secondsToTimeCode(n,t.options),e=u.duration;f.slider.attr({"aria-label":i,"aria-valuemin":0,"aria-valuemax":e,"aria-valuenow":n,"aria-valuetext":r,role:"slider",tabindex:0})},y=function(){var n=new Date;n-o>=1e3&&u.play()};f.slider.bind("focus",function(){t.options.autoRewind=!1});f.slider.bind("blur",function(){t.options.autoRewind=l});f.slider.bind("keydown",function(n){new Date-o>=1e3&&(s=u.paused);
var f=n.keyCode,r=u.duration,i=u.currentTime,e=t.options.defaultSeekForwardInterval(u),h=t.options.defaultSeekBackwardInterval(u);switch(f){case 37:case 40:i-=h;break;case 39:case 38:i+=e;break;case 36:i=0;break;case 35:i=r;break;case 32:case 13:u.paused?u.play():u.pause();return;default:return}return i=i<0?0:i>=r?r:Math.floor(i),o=new Date,s||u.pause(),i<u.duration&&!s&&setTimeout(y,1100),u.setCurrentTime(i),n.preventDefault(),n.stopPropagation(),!1});f.total.bind("mousedown touchstart",function(n){(n.which===1||n.which===0)&&(e=!0,h(n),f.globalBind("mousemove.dur touchmove.dur",function(n){h(n)}),f.globalBind("mouseup.dur touchend.dur",function(){e=!1;typeof f.timefloat!="undefined"&&f.timefloat.hide();f.globalUnbind(".dur")}))}).bind("mouseenter",function(){c=!0;f.globalBind("mousemove.dur",function(n){h(n)});typeof f.timefloat=="undefined"||mejs.MediaFeatures.hasTouch||f.timefloat.show()}).bind("mouseleave",function(){c=!1;e||(f.globalUnbind(".dur"),typeof f.timefloat!="undefined"&&f.timefloat.hide())});u.
addEventListener("progress",function(n){t.setProgressRail(n);t.setCurrentRail(n)},!1);u.addEventListener("timeupdate",function(n){t.setProgressRail(n);t.setCurrentRail(n);v(n)},!1);f.container.on("controlsresize",function(n){t.setProgressRail(n);t.setCurrentRail(n)})},setProgressRail:function(n){var r=this,t=n!==undefined?n.target:r.media,i=null;t&&t.buffered&&t.buffered.length>0&&t.buffered.end&&t.duration?i=t.buffered.end(t.buffered.length-1)/t.duration:t&&t.bytesTotal!==undefined&&t.bytesTotal>0&&t.bufferedBytes!==undefined?i=t.bufferedBytes/t.bytesTotal:n&&n.lengthComputable&&n.total!==0&&(i=n.loaded/n.total);i!==null&&(i=Math.min(1,Math.max(0,i)),r.loaded&&r.total&&r.loaded.width(r.total.width()*i))},setCurrentRail:function(){var n=this,t,i;n.media.currentTime!==undefined&&n.media.duration&&n.total&&n.handle&&(t=Math.round(n.total.width()*n.media.currentTime/n.media.duration),i=t-Math.round(n.handle.outerWidth(!0)/2),n.current.width(t),n.handle.css("left",i))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,
{duration:-1,timeAndDurationSeparator:"<span> | <\/span>"});n.extend(MediaElementPlayer.prototype,{buildcurrent:function(t,i,r,u){var f=this;n('<div class="mejs-time" role="timer" aria-live="off"><span class="mejs-currenttime">'+mejs.Utility.secondsToTimeCode(0,t.options)+"<\/span><\/div>").appendTo(i);f.currenttime=f.controls.find(".mejs-currenttime");u.addEventListener("timeupdate",function(){f.controlsAreVisible&&t.updateCurrent()},!1)},buildduration:function(t,i,r,u){var f=this;i.children().last().find(".mejs-currenttime").length>0?n(f.options.timeAndDurationSeparator+'<span class="mejs-duration">'+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"<\/span>").appendTo(i.find(".mejs-time")):(i.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container"),n('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+mejs.Utility.secondsToTimeCode(f.options.duration,f.options)+"<\/span><\/div>").appendTo(i));f.durationD=f.controls.find(".mejs-duration");u.addEventListener(
"timeupdate",function(){f.controlsAreVisible&&t.updateDuration()},!1)},updateCurrent:function(){var n=this,t=n.media.currentTime;isNaN(t)&&(t=0);n.currenttime&&n.currenttime.html(mejs.Utility.secondsToTimeCode(t,n.options))},updateDuration:function(){var n=this,t=n.media.duration;n.options.duration>0&&(t=n.options.duration);isNaN(t)&&(t=0);n.container.toggleClass("mejs-long-video",t>3600);n.durationD&&t>0&&n.durationD.html(mejs.Utility.secondsToTimeCode(t,n.options))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{muteText:mejs.i18n.t("mejs.mute-toggle"),allyVolumeControlText:mejs.i18n.t("mejs.volume-help-text"),hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical"});n.extend(MediaElementPlayer.prototype,{buildvolume:function(t,i,r,u){var w;if(!(mejs.MediaFeatures.isAndroid||mejs.MediaFeatures.isiOS)||!this.options.hideVolumeOnTouchDevices){var f=this,c=f.isVideo?f.options.videoVolume:f.options.audioVolume,e=c=="horizontal"?n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+
f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><\/div><a href="javascript:void(0);" class="mejs-horizontal-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-horizontal-volume-total"><\/div><div class="mejs-horizontal-volume-current"><\/div><div class="mejs-horizontal-volume-handle"><\/div><\/a>').appendTo(i):n('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+f.id+'" title="'+f.options.muteText+'" aria-label="'+f.options.muteText+'"><\/button><a href="javascript:void(0);" class="mejs-volume-slider"><span class="mejs-offscreen">'+f.options.allyVolumeControlText+'<\/span><div class="mejs-volume-total"><\/div><div class="mejs-volume-current"><\/div><div class="mejs-volume-handle"><\/div><\/a><\/div>').appendTo(i),o=f.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),h=f.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),y=f.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),
a=f.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),s=function(n,t){var i,r,u,l,f;if(!o.is(":visible")&&typeof t=="undefined"){o.show();s(n,!0);o.hide();return}n=Math.max(0,n);n=Math.min(n,1);n===0?(e.removeClass("mejs-mute").addClass("mejs-unmute"),e.children("button").attr("title",mejs.i18n.t("mejs.unmute")).attr("aria-label",mejs.i18n.t("mejs.unmute"))):(e.removeClass("mejs-unmute").addClass("mejs-mute"),e.children("button").attr("title",mejs.i18n.t("mejs.mute")).attr("aria-label",mejs.i18n.t("mejs.mute")));i=h.position();c=="vertical"?(r=h.height(),u=r-r*n,a.css("top",Math.round(i.top+u-a.height()/2)),y.height(r-u),y.css("top",i.top+u)):(l=h.width(),f=l*n,a.css("left",Math.round(i.left+f-a.width()/2)),y.width(Math.round(f)))},p=function(n){var t=null,i=h.offset(),r,f,e,o;if(c==="vertical"){if(r=h.height(),f=n.pageY-i.top,t=(r-f)/r,i.top===0||i.left===0)return}else e=h.width(),o=n.pageX-i.left,t=o/e;t=Math.max(0,t);t=Math.min(t,1);s(t);t===0?u.setMuted(!0):u.setMuted(!1);u.setVolume(t)}
,l=!1,v=!1;e.hover(function(){o.show();v=!0},function(){v=!1;l||c!="vertical"||o.hide()});w=function(){var n=Math.floor(u.volume*100);o.attr({"aria-label":mejs.i18n.t("mejs.volume-slider"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n,"aria-valuetext":n+"%",role:"slider",tabindex:0})};o.bind("mouseover",function(){v=!0}).bind("mousedown",function(n){return p(n),f.globalBind("mousemove.vol",function(n){p(n)}),f.globalBind("mouseup.vol",function(){l=!1;f.globalUnbind(".vol");v||c!="vertical"||o.hide()}),l=!0,!1}).bind("keydown",function(n){var i=n.keyCode,t=u.volume;switch(i){case 38:t=Math.min(t+.1,1);break;case 40:t=Math.max(0,t-.1);break;default:return!0}return l=!1,s(t),u.setVolume(t),!1});e.find("button").click(function(){u.setMuted(!u.muted)});e.find("button").bind("focus",function(){o.show()});u.addEventListener("volumechange",function(n){l||(u.muted?(s(0),e.removeClass("mejs-mute").addClass("mejs-unmute")):(s(u.volume),e.removeClass("mejs-unmute").addClass("mejs-mute")));w(n)},!1);t.options.startVolume===
0&&u.setMuted(!0);u.pluginType==="native"&&u.setVolume(t.options.startVolume);f.container.on("controlsresize",function(){u.muted?(s(0),e.removeClass("mejs-mute").addClass("mejs-unmute")):(s(u.volume),e.removeClass("mejs-unmute").addClass("mejs-mute"))})}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{usePluginFullScreen:!0,newWindowCallback:function(){return""},fullscreenText:""});n.extend(MediaElementPlayer.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,fullscreenMode:"",buildfullscreen:function(t,i,r,u){var h;if(t.isVideo){t.isInIframe=window.location!=window.parent.location;u.addEventListener("loadstart",function(){t.detectFullscreenMode()});var f=this,e=null,o=f.options.fullscreenText?f.options.fullscreenText:mejs.i18n.t("mejs.fullscreen"),s=n('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+f.id+'" title="'+o+'" aria-label="'+o+'"><\/button><\/div>').appendTo(i).on("click",function(){var n=mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.
isFullScreen()||t.isFullScreen;n?t.exitFullScreen():t.enterFullScreen()}).on("mouseover",function(){if(f.fullscreenMode=="plugin-hover"){e!==null&&(clearTimeout(e),delete e);var n=s.offset(),i=t.container.offset();u.positionFullscreenButton(n.left-i.left,n.top-i.top,!0)}}).on("mouseout",function(){f.fullscreenMode=="plugin-hover"&&(e!==null&&(clearTimeout(e),delete e),e=setTimeout(function(){u.hideFullscreenButton()},1500))});t.fullscreenBtn=s;f.globalBind("keydown",function(n){n.keyCode==27&&(mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||f.isFullScreen)&&t.exitFullScreen()});f.normalHeight=0;f.normalWidth=0;mejs.MediaFeatures.hasTrueNativeFullScreen&&(h=function(){t.isFullScreen&&(mejs.MediaFeatures.isFullScreen()?(t.isNativeFullScreen=!0,t.setControlsSize()):(t.isNativeFullScreen=!1,t.exitFullScreen()))},t.globalBind(mejs.MediaFeatures.fullScreenEventName,h))}},detectFullscreenMode:function(){var t=this,n="",i=mejs.MediaFeatures;return i.hasTrueNativeFullScreen&&t.media.pluginType===
"native"?n="native-native":i.hasTrueNativeFullScreen&&t.media.pluginType!=="native"&&!i.hasFirefoxPluginMovingProblem?n="plugin-native":t.usePluginFullScreen?mejs.MediaFeatures.supportsPointerEvents?(n="plugin-click",t.createPluginClickThrough()):n="plugin-hover":n="fullwindow",t.fullscreenMode=n,n},isPluginClickThroughCreated:!1,createPluginClickThrough:function(){var t=this;if(!t.isPluginClickThroughCreated){var u=!1,f=function(){if(u){for(var n in i)i[n].hide();t.fullscreenBtn.css("pointer-events","");t.controls.css("pointer-events","");t.media.removeEventListener("click",t.clickToPlayPauseCallback);u=!1}},i={},e=["top","left","right","bottom"],r,o,s=function(){var f=fullscreenBtn.offset().left-t.container.offset().left,n=fullscreenBtn.offset().top-t.container.offset().top,o=fullscreenBtn.outerWidth(!0),u=fullscreenBtn.outerHeight(!0),e=t.container.width(),s=t.container.height();for(r in i)i[r].css({position:"absolute",top:0,left:0});i.top.width(e).height(n);i.left.width(f).height(u).css({top:n});i.right.width(
e-f-o).height(u).css({top:n,left:f+o});i.bottom.width(e).height(s-u-n).css({top:n+u})};for(t.globalBind("resize",function(){s()}),r=0,o=e.length;r<o;r++)i[e[r]]=n('<div class="mejs-fullscreen-hover" />').appendTo(t.container).mouseover(f).hide();fullscreenBtn.on("mouseover",function(){if(!t.isFullScreen){var n=fullscreenBtn.offset(),f=player.container.offset();media.positionFullscreenButton(n.left-f.left,n.top-f.top,!1);t.fullscreenBtn.css("pointer-events","none");t.controls.css("pointer-events","none");t.media.addEventListener("click",t.clickToPlayPauseCallback);for(r in i)i[r].show();s();u=!0}});media.addEventListener("fullscreenchange",function(){t.isFullScreen=!t.isFullScreen;t.isFullScreen?t.media.removeEventListener("click",t.clickToPlayPauseCallback):t.media.addEventListener("click",t.clickToPlayPauseCallback);f()});t.globalBind("mousemove",function(n){if(u){var i=fullscreenBtn.offset();(n.pageY<i.top||n.pageY>i.top+fullscreenBtn.outerHeight(!0)||n.pageX<i.left||n.pageX>i.left+fullscreenBtn.outerWidth(
!0))&&(fullscreenBtn.css("pointer-events",""),t.controls.css("pointer-events",""),u=!1)}});t.isPluginClickThroughCreated=!0}},cleanfullscreen:function(n){n.exitFullScreen()},containerSizeTimeout:null,enterFullScreen:function(){var t=this,i;if(mejs.MediaFeatures.isiOS&&mejs.MediaFeatures.hasiOSFullScreen&&typeof t.media.webkitEnterFullscreen=="function"){t.media.webkitEnterFullscreen();return}n(document.documentElement).addClass("mejs-fullscreen");t.normalHeight=t.container.height();t.normalWidth=t.container.width();t.fullscreenMode==="native-native"||t.fullscreenMode==="plugin-native"?(mejs.MediaFeatures.requestFullScreen(t.container[0]),t.isInIframe&&setTimeout(function r(){if(t.isNativeFullScreen){var u=n(window).width(),i=screen.width,f=Math.abs(i-u),e=i*.002;f>e?t.exitFullScreen():setTimeout(r,500)}},1e3)):t.fullscreeMode=="fullwindow";t.container.addClass("mejs-container-fullscreen").width("100%").height("100%");t.containerSizeTimeout=setTimeout(function(){t.container.css({width:"100%",height:"100%"});t.
setControlsSize()},500);t.media.pluginType==="native"?t.$media.width("100%").height("100%"):(t.container.find(".mejs-shim").width("100%").height("100%"),setTimeout(function(){var i=n(window),r=i.width(),u=i.height();t.media.setVideoSize(r,u)},500));t.layers.children("div").width("100%").height("100%");t.fullscreenBtn&&t.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");t.setControlsSize();t.isFullScreen=!0;i=Math.min(screen.width/t.width,screen.height/t.height);t.container.find(".mejs-captions-text").css("font-size",i*100+"%");t.container.find(".mejs-captions-text").css("line-height","normal");t.container.find(".mejs-captions-position").css("bottom","45px");t.container.trigger("enteredfullscreen")},exitFullScreen:function(){var t=this;clearTimeout(t.containerSizeTimeout);mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||t.isFullScreen)&&mejs.MediaFeatures.cancelFullScreen();n(document.documentElement).removeClass("mejs-fullscreen");t.container.removeClass(
"mejs-container-fullscreen").width(t.normalWidth).height(t.normalHeight);t.media.pluginType==="native"?t.$media.width(t.normalWidth).height(t.normalHeight):(t.container.find(".mejs-shim").width(t.normalWidth).height(t.normalHeight),t.media.setVideoSize(t.normalWidth,t.normalHeight));t.layers.children("div").width(t.normalWidth).height(t.normalHeight);t.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");t.setControlsSize();t.isFullScreen=!1;t.container.find(".mejs-captions-text").css("font-size","");t.container.find(".mejs-captions-text").css("line-height","");t.container.find(".mejs-captions-position").css("bottom","");t.container.trigger("exitedfullscreen")}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{speeds:["2.00","1.50","1.25","1.00","0.75"],defaultSpeed:"1.00",speedChar:"x"});n.extend(MediaElementPlayer.prototype,{buildspeed:function(t,i,r,u){var e=this,f,a,h,w,v;if(e.media.pluginType=="native"){var s=null,c=null,l=null,y=null,o=[],p=!1;for(f=0,a=e.options.speeds.length;f<a;
f++)h=e.options.speeds[f],typeof h=="string"?(o.push({name:h+e.options.speedChar,value:h}),h===e.options.defaultSpeed&&(p=!0)):(o.push(h),h.value===e.options.defaultSpeed&&(p=!0));for(p||o.push({name:e.options.defaultSpeed+e.options.speedChar,value:e.options.defaultSpeed}),o.sort(function(n,t){return parseFloat(t.value)-parseFloat(n.value)}),w=function(n){for(f=0,a=o.length;f<a;f++)if(o[f].value===n)return o[f].name},v='<div class="mejs-button mejs-speed-button"><button type="button">'+w(e.options.defaultSpeed)+'<\/button><div class="mejs-speed-selector"><ul>',f=0,il=o.length;f<il;f++)y=e.id+"-speed-"+o[f].value,v+='<li><input type="radio" name="speed" value="'+o[f].value+'" id="'+y+'" '+(o[f].value===e.options.defaultSpeed?" checked":"")+' /><label for="'+y+'" '+(o[f].value===e.options.defaultSpeed?' class="mejs-speed-selected"':"")+">"+o[f].name+"<\/label><\/li>";v+="<\/ul><\/div><\/div>";s=n(v).appendTo(i);c=s.find(".mejs-speed-selector");l=e.options.defaultSpeed;u.addEventListener("loadedmetadata",function(
){l&&(u.playbackRate=parseFloat(l))},!0);c.on("click",'input[type="radio"]',function(){var t=n(this).attr("value");l=t;u.playbackRate=parseFloat(t);s.find("button").html(w(t));s.find(".mejs-speed-selected").removeClass("mejs-speed-selected");s.find('input[type="radio"]:checked').next().addClass("mejs-speed-selected")});s.one("mouseenter focusin",function(){c.height(s.find(".mejs-speed-selector ul").outerHeight(!0)+s.find(".mejs-speed-translations").outerHeight(!0)).css("top",-1*c.height()+"px")})}}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{startLanguage:"",tracksText:"",tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""});n.extend(MediaElementPlayer.prototype,{hasChapters:!1,cleartracks:function(n){n&&(n.captions&&n.captions.remove(),n.chapters&&n.chapters.remove(),n.captionsText&&n.captionsText.remove(),n.captionsButton&&n.captionsButton.remove())},buildtracks:function(t,i,r,u){var s;if(t.tracks.length!==0){var e=this,c=e.options.tracksAriaLive?'role="log" aria-live="assertive" aria-atomic="false"':
"",h=e.options.tracksText?e.options.tracksText:mejs.i18n.t("mejs.captions-subtitles"),f,o;if(e.domNode.textTracks)for(f=e.domNode.textTracks.length-1;f>=0;f--)e.domNode.textTracks[f].mode="hidden";for(e.cleartracks(t,i,r,u),t.chapters=n('<div class="mejs-chapters mejs-layer"><\/div>').prependTo(r).hide(),t.captions=n('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position mejs-captions-position-hover" '+c+'><span class="mejs-captions-text"><\/span><\/div><\/div>').prependTo(r).hide(),t.captionsText=t.captions.find(".mejs-captions-text"),t.captionsButton=n('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+e.id+'" title="'+h+'" aria-label="'+h+'"><\/button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+t.id+'_captions" id="'+t.id+'_captions_none" value="none" checked="checked" /><label for="'+t.id+'_captions_none">'+mejs.i18n.t("mejs.none")+"<\/label><\/li><\/ul><\/div><\/div>").appendTo(i),s=0,f=0;f<t.tracks.length;f++)o=t.tracks[
f].kind,(o==="subtitles"||o==="captions")&&s++;if(e.options.toggleCaptionsButtonWhenOnlyOne&&s==1)t.captionsButton.on("click",function(){lang=t.selectedTrack===null?t.tracks[0].srclang:"none";t.setTrack(lang)});else{t.captionsButton.on("mouseenter focusin",function(){n(this).find(".mejs-captions-selector").removeClass("mejs-offscreen")}).on("click","input[type=radio]",function(){lang=this.value;t.setTrack(lang)});t.captionsButton.on("mouseleave focusout",function(){n(this).find(".mejs-captions-selector").addClass("mejs-offscreen")})}for(t.options.alwaysShowControls?t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):t.container.bind("controlsshown",function(){t.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("controlshidden",function(){u.paused||t.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")}),t.trackToLoad=-1,t.selectedTrack=null,t.isLoadingTrack=!1,f=0;f<t.tracks.length;f++)o=t.tracks[f].kind,
(o==="subtitles"||o==="captions")&&t.addTrackButton(t.tracks[f].srclang,t.tracks[f].label);t.loadNextTrack();u.addEventListener("timeupdate",function(){t.displayCaptions()},!1);t.options.slidesSelector!==""&&(t.slidesContainer=n(t.options.slidesSelector),u.addEventListener("timeupdate",function(){t.displaySlides()},!1));u.addEventListener("loadedmetadata",function(){t.displayChapters()},!1);t.container.hover(function(){t.hasChapters&&(t.chapters.removeClass("mejs-offscreen"),t.chapters.fadeIn(200).height(t.chapters.find(".mejs-chapter").outerHeight()))},function(){t.hasChapters&&!u.paused&&t.chapters.fadeOut(200,function(){n(this).addClass("mejs-offscreen");n(this).css("display","block")})});e.container.on("controlsresize",function(){e.adjustLanguageBox()});t.node.getAttribute("autoplay")!==null&&t.chapters.addClass("mejs-offscreen")}},setTrack:function(n){var t=this,i;if(n=="none")t.selectedTrack=null,t.captionsButton.removeClass("mejs-captions-enabled");else for(i=0;i<t.tracks.length;i++)if(t.tracks[i].srclang==
n){t.selectedTrack===null&&t.captionsButton.addClass("mejs-captions-enabled");t.selectedTrack=t.tracks[i];t.captions.attr("lang",t.selectedTrack.srclang);t.displayCaptions();break}},loadNextTrack:function(){var n=this;n.trackToLoad++;n.trackToLoad<n.tracks.length?(n.isLoadingTrack=!0,n.loadTrack(n.trackToLoad)):(n.isLoadingTrack=!1,n.checkForTracks())},loadTrack:function(t){var r=this,i=r.tracks[t],u=function(){i.isLoaded=!0;r.enableTrackButton(i.srclang,i.label);r.loadNextTrack()};(i.src!==undefined||i.src!=="")&&n.ajax({url:i.src,dataType:"text",success:function(n){i.entries=typeof n=="string"&&/<tt\s+xml/ig.exec(n)?mejs.TrackFormatParser.dfxp.parse(n):mejs.TrackFormatParser.webvtt.parse(n);u();i.kind=="chapters"&&r.media.addEventListener("play",function(){r.media.duration>0&&r.displayChapters(i)},!1);i.kind=="slides"&&r.setupSlides(i)},error:function(){r.removeTrackButton(i.srclang);r.loadNextTrack()}})},enableTrackButton:function(t,i){var r=this;i===""&&(i=mejs.language.codes[t]||t);r.captionsButton.find(
"input[value="+t+"]").prop("disabled",!1).siblings("label").html(i);r.options.startLanguage==t&&n("#"+r.id+"_captions_"+t).prop("checked",!0).trigger("click");r.adjustLanguageBox()},removeTrackButton:function(n){var t=this;t.captionsButton.find("input[value="+n+"]").closest("li").remove();t.adjustLanguageBox()},addTrackButton:function(t,i){var r=this;i===""&&(i=mejs.language.codes[t]||t);r.captionsButton.find("ul").append(n('<li><input type="radio" name="'+r.id+'_captions" id="'+r.id+"_captions_"+t+'" value="'+t+'" disabled="disabled" /><label for="'+r.id+"_captions_"+t+'">'+i+" (loading)<\/label><\/li>"));r.adjustLanguageBox();r.container.find(".mejs-captions-translations option[value="+t+"]").remove()},adjustLanguageBox:function(){var n=this;n.captionsButton.find(".mejs-captions-selector").height(n.captionsButton.find(".mejs-captions-selector ul").outerHeight(!0)+n.captionsButton.find(".mejs-captions-translations").outerHeight(!0))},checkForTracks:function(){var n=this,r=!1,t,i;if(n.options.hideCaptionsButtonWhenEmpty)
{for(t=0;t<n.tracks.length;t++)if(i=n.tracks[t].kind,(i==="subtitles"||i==="captions")&&n.tracks[t].isLoaded){r=!0;break}r||(n.captionsButton.hide(),n.setControlsSize())}},displayCaptions:function(){if(typeof this.tracks!="undefined"){var n=this,t,i=n.selectedTrack;if(i!==null&&i.isLoaded){for(t=0;t<i.entries.times.length;t++)if(n.media.currentTime>=i.entries.times[t].start&&n.media.currentTime<=i.entries.times[t].stop){n.captionsText.html(i.entries.text[t]).attr("class","mejs-captions-text "+(i.entries.times[t].identifier||""));n.captions.show().height(0);return}n.captions.hide()}else n.captions.hide()}},setupSlides:function(n){var t=this;t.slides=n;t.slides.entries.imgs=[t.slides.entries.text.length];t.showSlide(0)},showSlide:function(t){if(typeof this.tracks!="undefined"&&typeof this.slidesContainer!="undefined"){var r=this,u=r.slides.entries.text[t],i=r.slides.entries.imgs[t];typeof i=="undefined"||typeof i.fadeIn=="undefined"?r.slides.entries.imgs[t]=i=n('<img src="'+u+'">').on("load",function(){i.appendTo(
r.slidesContainer).hide().fadeIn().siblings(":visible").fadeOut()}):i.is(":visible")||i.is(":animated")||i.fadeIn().siblings(":visible").fadeOut()}},displaySlides:function(){if(typeof this.slides!="undefined")for(var t=this,i=t.slides,n=0;n<i.entries.times.length;n++)if(t.media.currentTime>=i.entries.times[n].start&&t.media.currentTime<=i.entries.times[n].stop){t.showSlide(n);return}},displayChapters:function(){for(var n=this,t=0;t<n.tracks.length;t++)if(n.tracks[t].kind=="chapters"&&n.tracks[t].isLoaded){n.drawChapters(n.tracks[t]);n.hasChapters=!0;break}},drawChapters:function(t){var r=this,i,e,u=0,f=0;for(r.chapters.empty(),i=0;i<t.entries.times.length;i++)e=t.entries.times[i].stop-t.entries.times[i].start,u=Math.floor(e/r.media.duration*100),(u+f>100||i==t.entries.times.length-1&&u+f<100)&&(u=100-f),r.chapters.append(n('<div class="mejs-chapter" rel="'+t.entries.times[i].start+'" style="left: '+f.toString()+"%;width: "+u.toString()+'%;"><div class="mejs-chapter-block'+(i==t.entries.times.length-1?" mejs-chapter-block-last":
"")+'"><span class="ch-title">'+t.entries.text[i]+'<\/span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(t.entries.times[i].start,r.options)+"&ndash;"+mejs.Utility.secondsToTimeCode(t.entries.times[i].stop,r.options)+"<\/span><\/div><\/div>")),f+=u;r.chapters.find("div.mejs-chapter").click(function(){r.media.setCurrentTime(parseFloat(n(this).attr("rel")));r.media.paused&&r.media.play()});r.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",fl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",
ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvtt:{pattern_timecode:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(t){for(var i=0,r=mejs.TrackFormatParser.split2(t,/\r?\n/),e={text:[],times:[]},u,f,o;i<r.length;i++){if(u=this.pattern_timecode.exec(r[i]),u&&i<r.length){for(i-1>=0&&r[i-1]!==""&&(o=r[i-1]),i++,f=r[i],i++;r[i]!==""&&i<r.length;)f=f+"\n"+r[i],i++;f=n.trim(f).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>");e.text.push(f);e.times.push({identifier:o,start:mejs.Utility.convertSMPTEtoSeconds(u[1])===0?.2:mejs.Utility.convertSMPTEtoSeconds(u[1]),stop:mejs.Utility.convertSMPTEtoSeconds(u[3]),settings:u[5]})}o=""}return e}},dfxp:{parse:function(t){var e,o,r,h;t=n(t).filter("tt");var
i=0,c=t.children("div").eq(0),u=c.find("p"),l=t.find("#"+c.attr("style")),f,a,s={text:[],times:[]};if(l.length&&(e=l.removeAttr("id").get(0).attributes,e.length))for(f={},i=0;i<e.length;i++)f[e[i].name.split(":")[1]]=e[i].value;for(i=0;i<u.length;i++){if(r={start:null,stop:null,style:null},u.eq(i).attr("begin")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("begin"))),!r.start&&u.eq(i-1).attr("end")&&(r.start=mejs.Utility.convertSMPTEtoSeconds(u.eq(i-1).attr("end"))),u.eq(i).attr("end")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i).attr("end"))),!r.stop&&u.eq(i+1).attr("begin")&&(r.stop=mejs.Utility.convertSMPTEtoSeconds(u.eq(i+1).attr("begin"))),f){o="";for(h in f)o+=h+":"+f[h]+";"}o&&(r.style=o);r.start===0&&(r.start=.2);s.times.push(r);a=n.trim(u.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1<\/a>");s.text.push(a)}return s}},split2:function(n,t){return n.split(t)}};"x\n\ny".split(/\n/gi).length!=3&&(mejs.
TrackFormatParser.split2=function(n,t){for(var u=[],i="",r=0;r<n.length;r++)i+=n.substring(r,r+1),t.test(i)&&(u.push(i.replace(t,"")),i="");return u.push(i),u})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{sourcechooserText:""});n.extend(MediaElementPlayer.prototype,{buildsourcechooser:function(t,i,r,u){var e=this,o=e.options.sourcechooserText?e.options.sourcechooserText:mejs.i18n.t("mejs.source-chooser"),s,h,f;t.sourcechooserButton=n('<div class="mejs-button mejs-sourcechooser-button"><button type="button" role="button" aria-haspopup="true" aria-owns="'+e.id+'" title="'+o+'" aria-label="'+o+'"><\/button><div class="mejs-sourcechooser-selector mejs-offscreen" role="menu" aria-expanded="false" aria-hidden="true"><ul><\/ul><\/div><\/div>').appendTo(i).hover(function(){clearTimeout(s);t.showSourcechooserSelector()},function(){var i=n(this);s=setTimeout(function(){t.hideSourcechooserSelector()},500)}).on("keydown",function(i){var r=i.keyCode;switch(r){case 32:mejs.MediaFeatures.isFirefox||t.showSourcechooserSelector(
);n(this).find(".mejs-sourcechooser-selector").find("input[type=radio]:checked").first().focus();break;case 13:t.showSourcechooserSelector();n(this).find(".mejs-sourcechooser-selector").find("input[type=radio]:checked").first().focus();break;case 27:t.hideSourcechooserSelector();n(this).find("button").focus();break;default:return!0}}).on("focusout",mejs.Utility.debounce(function(){setTimeout(function(){var i=n(document.activeElement).closest(".mejs-sourcechooser-selector");i.length||t.hideSourcechooserSelector()},0)},100)).delegate("input[type=radio]","click",function(){var t,r,f,i;n(this).attr("aria-selected",!0).attr("checked","checked");n(this).closest(".mejs-sourcechooser-selector").find("input[type=radio]").not(this).attr("aria-selected","false").removeAttr("checked");t=this.value;u.currentSrc!=t&&(r=u.currentTime,f=u.paused,u.pause(),u.setSrc(t),u.addEventListener("loadedmetadata",function(){u.currentTime=r},!0),i=function(){f||u.play();u.removeEventListener("canplay",i,!0)},u.addEventListener("canplay",
i,!0),u.load())}).delegate("button","click",function(){n(this).siblings(".mejs-sourcechooser-selector").hasClass("mejs-offscreen")?(t.showSourcechooserSelector(),n(this).siblings(".mejs-sourcechooser-selector").find("input[type=radio]:checked").first().focus()):t.hideSourcechooserSelector()});for(h in this.node.children)f=this.node.children[h],f.nodeName==="SOURCE"&&(u.canPlayType(f.type)=="probably"||u.canPlayType(f.type)=="maybe")&&t.addSourceButton(f.src,f.title,f.type,u.src==f.src)},addSourceButton:function(t,i,r,u){var f=this;(i===""||i==undefined)&&(i=t);r=r.split("/")[1];f.sourcechooserButton.find("ul").append(n('<li><input type="radio" name="'+f.id+'_sourcechooser" id="'+f.id+"_sourcechooser_"+i+r+'" role="menuitemradio" value="'+t+'" '+(u?'checked="checked"':"")+'aria-selected="'+u+'" /><label for="'+f.id+"_sourcechooser_"+i+r+'" aria-hidden="true">'+i+" ("+r+")<\/label><\/li>"));f.adjustSourcechooserBox()},adjustSourcechooserBox:function(){var n=this;n.sourcechooserButton.find(".mejs-sourcechooser-selector").
height(n.sourcechooserButton.find(".mejs-sourcechooser-selector ul").outerHeight(!0))},hideSourcechooserSelector:function(){this.sourcechooserButton.find(".mejs-sourcechooser-selector").addClass("mejs-offscreen").attr("aria-expanded","false").attr("aria-hidden","true").find("input[type=radio]").attr("tabindex","-1")},showSourcechooserSelector:function(){this.sourcechooserButton.find(".mejs-sourcechooser-selector").removeClass("mejs-offscreen").attr("aria-expanded","true").attr("aria-hidden","false").find("input[type=radio]").attr("tabindex","0")}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(n){return typeof n.enterFullScreen=="undefined"?null:n.isFullScreen?mejs.i18n.t("mejs.fullscreen-off"):mejs.i18n.t("mejs.fullscreen-on")},click:function(n){n.isFullScreen?n.exitFullScreen():n.enterFullScreen()}},{render:function(n){return n.media.muted?mejs.i18n.t("mejs.unmute"):mejs.i18n.t("mejs.mute")},click:function(n){n.media.muted?n.setMuted(!1):n.setMuted(!0)}},{isSeparator:!0},
{render:function(){return mejs.i18n.t("mejs.download-video")},click:function(n){window.location.href=n.media.currentSrc}}]});n.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(t){t.contextMenu=n('<div class="mejs-contextmenu"><\/div>').appendTo(n("body")).hide();t.container.bind("contextmenu",function(n){if(t.isContextMenuEnabled)return n.preventDefault(),t.renderContextMenu(n.clientX-1,n.clientY-1),!1});t.container.bind("click",function(){t.contextMenu.hide()});t.contextMenu.bind("mouseleave",function(){t.startContextMenuTimer()})},cleancontextmenu:function(n){n.contextMenu.remove()},isContextMenuEnabled:!0,enableContextMenu:function(){this.isContextMenuEnabled=!0},disableContextMenu:function(){this.isContextMenuEnabled=!1},contextMenuTimeout:null,startContextMenuTimer:function(){var n=this;n.killContextMenuTimer();n.contextMenuTimer=setTimeout(function(){n.hideContextMenu();n.killContextMenuTimer()},750)},killContextMenuTimer:function(){var n=this.contextMenuTimer;n!=null&&(clearTimeout(n),delete
n,n=null)},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(t,i){for(var o,r=this,f="",e=r.options.contextMenuItems,u=0,s=e.length;u<s;u++)e[u].isSeparator?f+='<div class="mejs-contextmenu-separator"><\/div>':(o=e[u].render(r),o!=null&&(f+='<div class="mejs-contextmenu-item" data-itemindex="'+u+'" id="element-'+Math.random()*1e6+'">'+o+"<\/div>"));r.contextMenu.empty().append(n(f)).css({top:i,left:t}).show();r.contextMenu.find(".mejs-contextmenu-item").each(function(){var i=n(this),u=parseInt(i.data("itemindex"),10),t=r.options.contextMenuItems[u];typeof t.show!="undefined"&&t.show(i,r);i.click(function(){typeof t.click!="undefined"&&t.click(r);r.contextMenu.hide()})});setTimeout(function(){r.killControlsTimer("rev3")},100)}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{skipBackInterval:30,skipBackText:""});n.extend(MediaElementPlayer.prototype,{buildskipback:function(t,i,r,u){var f=this,o=mejs.i18n.t("mejs.time-skip-back",f.options.skipBackInterval),e=f.options.skipBackText?
f.options.skipBackText:o,s=n('<div class="mejs-button mejs-skip-back-button"><button type="button" aria-controls="'+f.id+'" title="'+e+'" aria-label="'+e+'">'+f.options.skipBackInterval+"<\/button><\/div>").appendTo(i).click(function(){u.setCurrentTime(Math.max(u.currentTime-f.options.skipBackInterval,0));n(this).find("button").blur()})}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{postrollCloseText:""});n.extend(MediaElementPlayer.prototype,{buildpostroll:function(t,i,r){var u=this,e=u.options.postrollCloseText?u.options.postrollCloseText:mejs.i18n.t("mejs.close"),f=u.container.find('link[rel="postroll"]').attr("href");typeof f!="undefined"&&(t.postroll=n('<div class="mejs-postroll-layer mejs-layer"><a class="mejs-postroll-close" onclick="$(this).parent().hide();return false;">'+e+'<\/a><div class="mejs-postroll-layer-content"><\/div><\/div>').prependTo(r).hide(),u.media.addEventListener("ended",function(){n.ajax({dataType:"html",url:f,success:function(n){r.find(".mejs-postroll-layer-content").html(n)}});
t.postroll.show()},!1))}})}(mejs.$),function(n){n.extend(mejs.MepDefaults,{markerColor:"#E9BC3D",markers:[],markerCallback:function(){}});n.extend(MediaElementPlayer.prototype,{buildmarkers:function(n,t,i,r){for(var h=this,u=0,f=-1,e=-1,s=-1,o=-1,u=0;u<n.options.markers.length;++u)t.find(".mejs-time-total").append('<span class="mejs-time-marker"><\/span>');r.addEventListener("durationchange",function(){n.setmarkers(t)});r.addEventListener("timeupdate",function(){for(f=Math.floor(r.currentTime),s>f?o>f&&(o=-1):s=f,u=0;u<n.options.markers.length;++u)e=Math.floor(n.options.markers[u]),f===e&&e!==o&&(n.options.markerCallback(r,r.currentTime),o=e)},!1)},setmarkers:function(t){for(var i=this,r=0,u,r=0;r<i.options.markers.length;++r)Math.floor(i.options.markers[r])<=i.media.duration&&Math.floor(i.options.markers[r])>=0&&(u=100*Math.floor(i.options.markers[r])/i.media.duration,n(t.find(".mejs-time-marker")[r]).css({width:"1px",left:u+"%",background:i.options.markerColor}))}})}(mejs.$),function(n,t,i){(function(n){"use strict";
typeof define=="function"&&define.amd?define(["jquery"],n):jQuery&&!jQuery.fn.qtip&&n(jQuery)})(function(r){"use strict";function oi(n,t,i,f){this.id=i;this.target=n;this.tooltip=s;this.elements={target:n};this._id=o+"-"+i;this.timers={img:{}};this.options=t;this.plugins={};this.cache={event:{},target:r(),disabled:u,attr:f,onTooltip:u,lastClass:""};this.rendered=this.destroyed=this.disabled=this.waiting=this.hiddenDuringWait=this.positioning=this.triggering=u}function et(n){return n===s||r.type(n)!=="object"}function pi(n){return!(r.isFunction(n)||n&&n.attr||n.length||r.type(n)==="object"&&(n.jquery||n.then))}function dt(n){var t,e,i,o;return et(n)?u:(et(n.metadata)&&(n.metadata={type:n.metadata}),"content"in n&&(t=n.content,et(t)||t.jquery||t.done?(e=pi(t)?u:t,t=n.content={text:e}):e=t.text,"ajax"in t&&(i=t.ajax,o=i&&i.once!==u,delete t.ajax,t.text=function(n,t){var u=e||r(this).attr(t.options.content.attr)||"Loading...",f=r.ajax(r.extend({},i,{context:t})).then(i.success,s,i.error).then(function(n){return n&&
o&&t.set("content.text",n),n},function(n,i,r){t.destroyed||n.status===0||t.set("content.text",i+": "+r)});return o?u:(t.set("content.text",u),f)}),"title"in t&&(r.isPlainObject(t.title)&&(t.button=t.title.button,t.title=t.title.text),pi(t.title||u)&&(t.title=u))),"position"in n&&et(n.position)&&(n.position={my:n.position,at:n.position}),"show"in n&&et(n.show)&&(n.show=n.show.jquery?{target:n.show}:n.show===f?{ready:f}:{event:n.show}),"hide"in n&&et(n.hide)&&(n.hide=n.hide.jquery?{target:n.hide}:{event:n.hide}),"style"in n&&et(n.style)&&(n.style={classes:n.style}),r.each(h,function(){this.sanitize&&this.sanitize(n)}),n)}function wi(n,t){for(var u=0,f,i=n,r=t.split(".");i=i[r[u++]];)u<r.length&&(f=i);return[f||n,r.pop()]}function yr(n,t){var i,r,u;for(i in this.checks)if(this.checks.hasOwnProperty(i))for(r in this.checks[i])this.checks[i].hasOwnProperty(r)&&(u=new RegExp(r,"i").exec(n))&&(t.push(u),(i==="builtin"||this.plugins[i])&&this.checks[i][r].apply(this.plugins[i]||this,t))}function gt(n){return ar.concat(
"").join(n?"-"+n+" ":" ")}function ni(n,t){if(t>0)return setTimeout(r.proxy(n,this),t);n.call(this)}function pr(n){this.tooltip.hasClass(a)||(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this.timers.show=ni.call(this,function(){this.toggle(f,n)},this.options.show.delay))}function wr(n){if(!this.tooltip.hasClass(a)&&!this.destroyed){var t=r(n.relatedTarget),i=t.closest(rt)[0]===this.tooltip[0],f=t[0]===this.options.show.target[0];if(clearTimeout(this.timers.show),clearTimeout(this.timers.hide),this!==t[0]&&this.options.position.target==="mouse"&&i||this.options.hide.fixed&&/mouse(out|leave|move)/.test(n.type)&&(i||f)){try{n.preventDefault();n.stopImmediatePropagation()}catch(e){}return}this.timers.hide=ni.call(this,function(){this.toggle(u,n)},this.options.hide.delay,this)}}function si(n){!this.tooltip.hasClass(a)&&this.options.hide.inactive&&(clearTimeout(this.timers.inactive),this.timers.inactive=ni.call(this,function(){this.hide(n)},this.options.hide.inactive))}function di(n){this.rendered&&
this.tooltip[0].offsetWidth>0&&this.reposition(n)}function gi(n,i,u){r(t.body).delegate(n,(i.split?i:i.join("."+o+" "))+"."+o,function(){var n=c.api[r.attr(this,bt)];n&&!n.disabled&&u.apply(n,arguments)})}function br(n,i,e){var y,l,v,h,b,k=r(t.body),p=n[0]===t?k:n,w=n.metadata?n.metadata(e.metadata):s,d=e.metadata.type==="html5"&&w?w[e.metadata.name]:s,a=n.data(e.metadata.name||"qtipopts");try{a=typeof a=="string"?r.parseJSON(a):a}catch(g){}if(h=r.extend(f,{},c.defaults,e,typeof a=="object"?dt(a):s,dt(d||w)),l=h.position,h.id=i,"boolean"==typeof h.content.text)if(v=n.attr(h.content.attr),h.content.attr!==u&&v)h.content.text=v;else return u;if(l.container.length||(l.container=k),l.target===u&&(l.target=p),h.show.target===u&&(h.show.target=p),h.show.solo===f&&(h.show.solo=l.container.closest("body")),h.hide.target===u&&(h.hide.target=p),h.position.viewport===f&&(h.position.viewport=l.container),l.container=l.container.eq(0),l.at=new it(l.at,f),l.my=new it(l.my),n.data(o))if(h.overwrite)n.qtip("destroy",!0);else
if(h.overwrite===u)return u;return n.attr(fi,i),h.suppress&&(b=n.attr("title"))&&n.removeAttr("title").attr(ut,b).attr("title",""),y=new oi(n,h,i,!!v),n.data(o,y),y}function pt(n){return n.charAt(0).toUpperCase()+n.slice(1)}function kr(n,t){var u=t.charAt(0).toUpperCase()+t.slice(1),e=(t+" "+fr.join(u+" ")+u).split(" "),r,f,o=0;if(ri[t])return n.css(ri[t]);while(r=e[o++])if((f=n.css(r))!==i)return ri[t]=r,f}function lt(n,t){return Math.ceil(parseFloat(kr(n,t)))}function er(n,t){this._ns="tip";this.options=t;this.offset=t.offset;this.size=[t.width,t.height];this.qtip=n;this.init(n)}function or(n,t){this.options=t;this._ns="-modal";this.qtip=n;this.init(n)}function cr(n){this._ns="ie6";this.qtip=n;this.init(n)}var f=!0,u=!1,s=null,w="x",y="y",d="width",at="height",b="top",p="left",tt="bottom",k="right",l="center",lr="flipinvert",ft="shift",c,e,it,wt,h={},o="qtip",fi="data-hasqtip",bt="data-qtip-id",ar=["ui-widget","ui-tooltip"],rt="."+o,vi="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(
" "),yi=o+"-fixed",ei=o+"-default",st=o+"-focus",vr=o+"-hover",a=o+"-disabled",ht="_replacedByqTip",ut="oldtitle",kt,v={ie:function(){for(var n=4,i=t.createElement("div");(i.innerHTML="<!--[if gt IE "+n+"]><i><\/i><![endif]-->")&&i.getElementsByTagName("i")[0];n+=1);return n>4?n:NaN}(),iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||u},bi,ki,vt,ri,fr,ai,g,ui,nt,sr,hr;e=oi.prototype;e._when=function(n){return r.when.apply(r,n)};e.render=function(n){if(this.rendered||this.destroyed)return this;var i=this,t=this.options,s=this.cache,y=this.elements,p=t.content.text,l=t.content.title,w=t.content.button,e=t.position,v=[];return r.attr(this.target[0],"aria-describedby",this._id),s.posClass=this._createPosClass((this.position={my:e.my,at:e.at}).my),this.tooltip=y.tooltip=r("<div/>",{id:this._id,"class":[o,ei,t.style.classes,s.posClass].join(" "),width:t.style.width||"",height:t.style.height||
"",tracking:e.target==="mouse"&&e.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":u,"aria-describedby":this._id+"-content","aria-hidden":f}).toggleClass(a,this.disabled).attr(bt,this.id).data(o,this).appendTo(e.container).append(y.content=r("<div />",{"class":o+"-content",id:this._id+"-content","aria-atomic":f})),this.rendered=-1,this.positioning=f,l&&(this._createTitle(),r.isFunction(l)||v.push(this._updateTitle(l,u))),w&&this._createButton(),r.isFunction(p)||v.push(this._updateContent(p,u)),this.rendered=f,this._setWidget(),r.each(h,function(n){var t;this.initialize==="render"&&(t=this(i))&&(i.plugins[n]=t)}),this._unassignEvents(),this._assignEvents(),this._when(v).then(function(){i._trigger("render");i.positioning=u;!i.hiddenDuringWait&&(t.show.ready||n)&&i.toggle(f,s.event,u);i.hiddenDuringWait=u}),c.api[this.id]=this,this};e.destroy=function(n){function t(){if(!this.destroyed){this.destroyed=f;var n=this.target,i=n.attr(ut),t;this.rendered&&this.tooltip.stop(1,0).find("*").remove().end().remove(
);r.each(this.plugins,function(){this.destroy&&this.destroy()});for(t in this.timers)this.timers.hasOwnProperty(t)&&clearTimeout(this.timers[t]);n.removeData(o).removeAttr(bt).removeAttr(fi).removeAttr("aria-describedby");this.options.suppress&&i&&n.attr("title",i).removeAttr(ut);this._unassignEvents();this.options=this.elements=this.cache=this.timers=this.plugins=this.mouse=s;delete c.api[this.id]}}if(this.destroyed)return this.target;if((n!==f||this.triggering==="hide")&&this.rendered){this.tooltip.one("tooltiphidden",r.proxy(t,this));this.triggering||this.hide()}else t.call(this);return this.target};wt=e.checks={builtin:{"^id$":function(n,t,i,e){var s=i===f?c.nextid:i,h=o+"-"+s;s!==u&&s.length>0&&!r("#"+h).length?(this._id=h,this.rendered&&(this.tooltip[0].id=this._id,this.elements.content[0].id=this._id+"-content",this.elements.title[0].id=this._id+"-title")):n[t]=e},"^prerender":function(n,t,i){i&&!this.rendered&&this.render(this.options.show.ready)},"^content.text$":function(n,t,i){this._updateContent(i)}
,"^content.attr$":function(n,t,i,r){this.options.content.text===this.target.attr(r)&&this._updateContent(this.target.attr(i))},"^content.title$":function(n,t,i){if(!i)return this._removeTitle();i&&!this.elements.title&&this._createTitle();this._updateTitle(i)},"^content.button$":function(n,t,i){this._updateButton(i)},"^content.title.(text|button)$":function(n,t,i){this.set("content."+t,i)},"^position.(my|at)$":function(n,t,i){"string"==typeof i&&(this.position[t]=n[t]=new it(i,t==="at"))},"^position.container$":function(n,t,i){this.rendered&&this.tooltip.appendTo(i)},"^show.ready$":function(n,t,i){i&&(!this.rendered&&this.render(f)||this.toggle(f))},"^style.classes$":function(n,t,i,r){this.rendered&&this.tooltip.removeClass(r).addClass(i)},"^style.(width|height)":function(n,t,i){this.rendered&&this.tooltip.css(t,i)},"^style.widget|content.title":function(){this.rendered&&this._setWidget()},"^style.def":function(n,t,i){this.rendered&&this.tooltip.toggleClass(ei,!!i)},"^events.(render|show|move|hide|focus|blur)$":
function(n,t,i){this.rendered&&this.tooltip[(r.isFunction(i)?"":"un")+"bind"]("tooltip"+t,i)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){if(this.rendered){var n=this.options.position;this.tooltip.attr("tracking",n.target==="mouse"&&n.adjust.mouse);this._unassignEvents();this._assignEvents()}}}};e.get=function(n){if(this.destroyed)return this;var i=wi(this.options,n.toLowerCase()),t=i[0][i[1]];return t.precedance?t.string():t};bi=/^position\.(my|at|adjust|target|container|viewport)|style|content|show\.ready/i;ki=/^prerender|show\.ready/i;e.set=function(n,t){if(this.destroyed)return this;var h=this.rendered,i=u,e=this.options,o;return"string"==typeof n?(o=n,n={},n[o]=t):n=r.extend({},n),r.each(n,function(t,u){if(h&&ki.test(t)){delete n[t];return}var f=wi(e,t.toLowerCase()),o;o=f[0][f[1]];f[0][f[1]]=u&&u.nodeType?r(u):u;i=bi.test(t)||i;n[t]=[f[0],f[1],u,o]}),dt(e),this.positioning=f,r.each(n,r.proxy(yr,this)),this.positioning=u,this.rendered&&this.tooltip[0].offsetWidth>
0&&i&&this.reposition(e.position.target==="mouse"?s:this.cache.event),this};e._update=function(n,t){var i=this,e=this.cache;return!this.rendered||!n?u:(r.isFunction(n)&&(n=n.call(this.elements.target,e.event,this)||""),r.isFunction(n.then))?(e.waiting=f,n.then(function(n){return e.waiting=u,i._update(n,t)},s,function(n){return i._update(n,t)})):n===u||!n&&n!==""?u:(n.jquery&&n.length>0?t.empty().append(n.css({display:"block",visibility:"visible"})):t.html(n),this._waitForContent(t).then(function(n){i.rendered&&i.tooltip[0].offsetWidth>0&&i.reposition(e.event,!n.length)}))};e._waitForContent=function(n){var t=this.cache;return t.waiting=f,(r.fn.imagesLoaded?n.imagesLoaded():(new r.Deferred).resolve([])).done(function(){t.waiting=u}).promise()};e._updateContent=function(n,t){this._update(n,this.elements.content,t)};e._updateTitle=function(n,t){this._update(n,this.elements.title,t)===u&&this._removeTitle(u)};e._createTitle=function(){var n=this.elements,t=this._id+"-title";n.titlebar&&this._removeTitle();n.titlebar=
r("<div />",{"class":o+"-titlebar "+(this.options.style.widget?gt("header"):"")}).append(n.title=r("<div />",{id:t,"class":o+"-title","aria-atomic":f})).insertBefore(n.content).delegate(".qtip-close","mousedown keydown mouseup keyup mouseout",function(n){r(this).toggleClass("ui-state-active ui-state-focus",n.type.substr(-4)==="down")}).delegate(".qtip-close","mouseover mouseout",function(n){r(this).toggleClass("ui-state-hover",n.type==="mouseover")});this.options.content.button&&this._createButton()};e._removeTitle=function(n){var t=this.elements;t.title&&(t.titlebar.remove(),t.titlebar=t.title=t.button=s,n!==u&&this.reposition())};e._createPosClass=function(n){return o+"-pos-"+(n||this.options.position.my).abbrev()};e.reposition=function(i,e){if(!this.rendered||this.positioning||this.destroyed)return this;this.positioning=f;var c=this.cache,d=this.tooltip,a=this.options.position,o=a.target,et=a.my,g=a.at,ot=a.viewport,ht=a.container,ut=a.adjust,vt=ut.method.split(" "),ct=d.outerWidth(u),lt=d.outerHeight(u),nt=
0,it=0,yt=d.css("position"),s={left:0,top:0},wt=d[0].offsetWidth>0,bt=i&&i.type==="scroll",st=r(n),pt=ht[0].ownerDocument,rt=this.mouse,y,w,ft,at;if(r.isArray(o)&&o.length===2)g={x:p,y:b},s={left:o[0],top:o[1]};else if(o==="mouse")g={x:p,y:b},(!ut.mouse||this.options.hide.distance)&&c.origin&&c.origin.pageX?i=c.origin:!i||i&&(i.type==="resize"||i.type==="scroll")?i=c.event:rt&&rt.pageX&&(i=rt),yt!=="static"&&(s=ht.offset()),pt.body.offsetWidth!==(n.innerWidth||pt.documentElement.clientWidth)&&(w=r(t.body).offset()),s={left:i.pageX-s.left+(w&&w.left||0),top:i.pageY-s.top+(w&&w.top||0)},ut.mouse&&bt&&rt&&(s.left-=(rt.scrollX||0)-st.scrollLeft(),s.top-=(rt.scrollY||0)-st.scrollTop());else{if(o==="event"?i&&i.target&&i.type!=="scroll"&&i.type!=="resize"?c.target=r(i.target):i.target||(c.target=this.elements.target):o!=="event"&&(c.target=r(o.jquery?o:this.elements.target)),o=c.target,o=r(o).eq(0),o.length===0)return this;o[0]===t||o[0]===n?(nt=v.iOS?n.innerWidth:o.width(),it=v.iOS?n.innerHeight:o.height(),o[0]===
n&&(s={top:(ot||o).scrollTop(),left:(ot||o).scrollLeft()})):h.imagemap&&o.is("area")?y=h.imagemap(this,o,g,h.viewport?vt:u):h.svg&&o&&o[0].ownerSVGElement?y=h.svg(this,o,g,h.viewport?vt:u):(nt=o.outerWidth(u),it=o.outerHeight(u),s=o.offset());y&&(nt=y.width,it=y.height,w=y.offset,s=y.position);s=this.reposition.offset(o,s,ht);(v.iOS>3.1&&v.iOS<4.1||v.iOS>=4.3&&v.iOS<4.33||!v.iOS&&yt==="fixed")&&(s.left-=st.scrollLeft(),s.top-=st.scrollTop());(!y||y&&y.adjustable!==u)&&(s.left+=g.x===k?nt:g.x===l?nt/2:0,s.top+=g.y===tt?it:g.y===l?it/2:0)}return(s.left+=ut.x+(et.x===k?-ct:et.x===l?-ct/2:0),s.top+=ut.y+(et.y===tt?-lt:et.y===l?-lt/2:0),h.viewport?(ft=s.adjusted=h.viewport(this,s,a,nt,it,ct,lt),w&&ft.left&&(s.left+=w.left),w&&ft.top&&(s.top+=w.top),ft.my&&(this.position.my=ft.my)):s.adjusted={left:0,top:0},c.posClass!==(at=this._createPosClass(this.position.my))&&(c.posClass=at,d.removeClass(c.posClass).addClass(at)),!this._trigger("move",[s,ot.elem||ot],i))?this:(delete s.adjusted,e===u||!wt||isNaN(s.left)||isNaN(
s.top)||o==="mouse"||!r.isFunction(a.effect)?d.css(s):r.isFunction(a.effect)&&(a.effect.call(d,this,r.extend({},s)),d.queue(function(n){r(this).css({opacity:"",height:""});v.ie&&this.style.removeAttribute("filter");n()})),this.positioning=u,this)};e.reposition.offset=function(n,i,u){function l(n,t){i.left+=t*n.scrollLeft();i.top+=t*n.scrollTop()}if(!u[0])return i;var s=r(n[0].ownerDocument),a=!!v.ie&&t.compatMode!=="CSS1Compat",f=u[0],o,h,e,c;do(h=r.css(f,"position"))!=="static"&&(h==="fixed"?(e=f.getBoundingClientRect(),l(s,-1)):(e=r(f).position(),e.left+=parseFloat(r.css(f,"borderLeftWidth"))||0,e.top+=parseFloat(r.css(f,"borderTopWidth"))||0),i.left-=e.left+(parseFloat(r.css(f,"marginLeft"))||0),i.top-=e.top+(parseFloat(r.css(f,"marginTop"))||0),o||(c=r.css(f,"overflow"))==="hidden"||c==="visible"||(o=r(f)));while(f=f.offsetParent);return o&&(o[0]!==s[0]||a)&&l(o,1),i};vt=(it=e.reposition.Corner=function(n,t){n=(""+n).replace(/([A-Z])/," $1").replace(/middle/gi,l).toLowerCase();this.x=(n.match(/left|right/i)||
n.match(/center/)||["inherit"])[0].toLowerCase();this.y=(n.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase();this.forceY=!!t;var i=n.charAt(0);this.precedance=i==="t"||i==="b"?y:w}).prototype;vt.invert=function(n,t){this[n]=this[n]===p?k:this[n]===k?p:t||this[n]};vt.string=function(n){var t=this.x,i=this.y,r=t!==i?t==="center"||i!=="center"&&(this.precedance===y||this.forceY)?[i,t]:[t,i]:[t];return n!==!1?r.join(" "):r};vt.abbrev=function(){var n=this.string(!1);return n[0].charAt(0)+(n[1]&&n[1].charAt(0)||"")};vt.clone=function(){return new it(this.string(),this.forceY)};e.toggle=function(n,i){var c=this.cache,b=this.options,e=this.tooltip;if(i){if(/over|enter/.test(i.type)&&c.event&&/out|leave/.test(c.event.type)&&b.show.target.add(i.target).length===b.show.target.length&&e.has(i.relatedTarget).length)return this;c.event=r.event.fix(i)}if(this.waiting&&!n&&(this.hiddenDuringWait=f),this.rendered){if(this.destroyed||this.disabled)return this}else return n?this.render(1):this;var y=n?"show":"hide",h=
this.options[y],k=this.options.position,l=this.options.content,d=this.tooltip.css("width"),g=this.tooltip.is(":visible"),nt=n||h.target.length===1,tt=!i||h.target.length<2||c.target[0]===i.target,p,w,a;return((typeof n).search("boolean|number")&&(n=!g),p=!e.is(":animated")&&g===n&&tt,w=p?s:!!this._trigger(y,[90]),this.destroyed)?this:(w!==u&&n&&this.focus(i),!w||p)?this:(r.attr(e[0],"aria-hidden",!!!n),n?(this.mouse&&(c.origin=r.event.fix(this.mouse)),r.isFunction(l.text)&&this._updateContent(l.text,u),r.isFunction(l.title)&&this._updateTitle(l.title,u),!kt&&k.target==="mouse"&&k.adjust.mouse&&(r(t).bind("mousemove."+o,this._storeMouse),kt=f),d||e.css("width",e.outerWidth(u)),this.reposition(i,arguments[2]),d||e.css("width",""),!h.solo||(typeof h.solo=="string"?r(h.solo):r(rt,h.solo)).not(e).not(h.target).qtip("hide",new r.Event("tooltipsolo"))):(clearTimeout(this.timers.show),delete c.origin,kt&&!r(rt+'[tracking="true"]:visible',h.solo).not(e).length&&(r(t).unbind("mousemove."+o),kt=u),this.blur(i)),a=r.proxy(
function(){n?(v.ie&&e[0].style.removeAttribute("filter"),e.css("overflow",""),"string"==typeof h.autofocus&&r(this.options.show.autofocus,e).focus(),this.options.show.target.trigger("qtip-"+this.id+"-inactive")):e.css({display:"",visibility:"",opacity:"",left:"",top:""});this._trigger(n?"visible":"hidden")},this),h.effect===u||nt===u?(e[y](),a()):r.isFunction(h.effect)?(e.stop(1,1),h.effect.call(e,this),e.queue("fx",function(n){a();n()})):e.fadeTo(90,n?1:0,a),n&&h.target.trigger("qtip-"+this.id+"-inactive"),this)};e.show=function(n){return this.toggle(f,n)};e.hide=function(n){return this.toggle(u,n)};e.focus=function(n){if(!this.rendered||this.destroyed)return this;var t=r(rt),i=this.tooltip,f=parseInt(i[0].style.zIndex,10),u=c.zindex+t.length;return i.hasClass(st)||this._trigger("focus",[u],n)&&(f!==u&&(t.each(function(){this.style.zIndex>f&&(this.style.zIndex=this.style.zIndex-1)}),t.filter("."+st).qtip("blur",n)),i.addClass(st)[0].style.zIndex=u),this};e.blur=function(n){return!this.rendered||this.destroyed?
this:(this.tooltip.removeClass(st),this._trigger("blur",[this.tooltip.css("zIndex")],n),this)};e.disable=function(n){return this.destroyed?this:(n==="toggle"?n=!(this.rendered?this.tooltip.hasClass(a):this.disabled):"boolean"!=typeof n&&(n=f),this.rendered&&this.tooltip.toggleClass(a,n).attr("aria-disabled",n),this.disabled=!!n,this)};e.enable=function(){return this.disable(u)};e._createButton=function(){var e=this,n=this.elements,i=n.tooltip,t=this.options.content.button,s=typeof t=="string",f=s?t:"Close tooltip";n.button&&n.button.remove();n.button=t.jquery?t:r("<a />",{"class":"qtip-close "+(this.options.style.widget?"":o+"-icon"),title:f,"aria-label":f}).prepend(r("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"}));n.button.appendTo(n.titlebar||i).attr("role","button").click(function(n){return i.hasClass(a)||e.hide(n),u})};e._updateButton=function(n){if(!this.rendered)return u;var t=this.elements.button;n?this._createButton():t.remove()};e._setWidget=function(){var t=this.options.style.widget,n=
this.elements,i=n.tooltip,r=i.hasClass(a);i.removeClass(a);a=t?"ui-state-disabled":"qtip-disabled";i.toggleClass(a,r);i.toggleClass("ui-helper-reset "+gt(),t).toggleClass(ei,this.options.style.def&&!t);n.content&&n.content.toggleClass(gt("content"),t);n.titlebar&&n.titlebar.toggleClass(gt("header"),t);n.button&&n.button.toggleClass(o+"-icon",!t)};e._storeMouse=function(n){return(this.mouse=r.event.fix(n)).type="mousemove",this};e._bind=function(n,t,i,u,f){if(n&&i&&t.length){var e="."+this._id+(u?"-"+u:"");return r(n).bind((t.split?t:t.join(e+" "))+e,r.proxy(i,f||this)),this}};e._unbind=function(n,t){return n&&r(n).unbind("."+this._id+(t?"-"+t:"")),this};e._trigger=function(n,t,i){var f=new r.Event("tooltip"+n);return f.originalEvent=i&&r.extend({},i)||this.cache.event||s,this.triggering=n,this.tooltip.trigger(f,[this].concat(t||[])),this.triggering=u,!f.isDefaultPrevented()};e._bindEvents=function(n,t,i,u,f,e){var o=i.filter(u).add(u.filter(i)),s=[];o.length&&(r.each(t,function(t,i){var u=r.inArray(i,n);u>-1&&
s.push(n.splice(u,1)[0])}),s.length&&(this._bind(o,s,function(n){var t=this.rendered?this.tooltip[0].offsetWidth>0:!1;(t?e:f).call(this,n)}),i=i.not(o),u=u.not(o)));this._bind(i,n,f);this._bind(u,t,e)};e._assignInitialEvents=function(n){function o(n){if(this.disabled||this.destroyed)return u;this.cache.event=n&&r.event.fix(n);this.cache.target=n&&r(n.target);clearTimeout(this.timers.show);this.timers.show=ni.call(this,function(){this.render(typeof n=="object"||t.show.ready)},t.prerender?0:t.show.delay)}var t=this.options,i=t.show.target,s=t.hide.target,h=t.show.event?r.trim(""+t.show.event).split(" "):[],e=t.hide.event?r.trim(""+t.hide.event).split(" "):[];this._bind(this.elements.target,["remove","removeqtip"],function(){this.destroy(!0)},"destroy");/mouse(over|enter)/i.test(t.show.event)&&!/mouse(out|leave)/i.test(t.hide.event)&&e.push("mouseleave");this._bind(i,"mousemove",function(n){this._storeMouse(n);this.cache.onTarget=f});this._bindEvents(h,e,i,s,o,function(){if(!this.timers)return u;clearTimeout(this.
timers.show)});(t.show.ready||t.prerender)&&o.call(this,n)};e._assignEvents=function(){var y=this,i=this.options,f=i.position,e=this.tooltip,s=i.show.target,o=i.hide.target,p=f.container,h=f.viewport,l=r(t),v=r(n),w=i.show.event?r.trim(""+i.show.event).split(" "):[],b=i.hide.event?r.trim(""+i.hide.event).split(" "):[];r.each(i.events,function(n,t){y._bind(e,n==="toggle"?["tooltipshow","tooltiphide"]:["tooltip"+n],t,null,e)});/mouse(out|leave)/i.test(i.hide.event)&&i.hide.leave==="window"&&this._bind(l,["mouseout","blur"],function(n){/select|option/.test(n.target.nodeName)||n.relatedTarget||this.hide(n)});i.hide.fixed?o=o.add(e.addClass(yi)):/mouse(over|enter)/i.test(i.show.event)&&this._bind(o,"mouseleave",function(){clearTimeout(this.timers.show)});(""+i.hide.event).indexOf("unfocus")>-1&&this._bind(p.closest("html"),["mousedown","touchstart"],function(n){var t=r(n.target),i=this.rendered&&!this.tooltip.hasClass(a)&&this.tooltip[0].offsetWidth>0,u=t.parents(rt).filter(this.tooltip[0]).length>0;t[0]===this.target[
0]||t[0]===this.tooltip[0]||u||this.target.has(t[0]).length||!i||this.hide(n)});"number"==typeof i.hide.inactive&&(this._bind(s,"qtip-"+this.id+"-inactive",si,"inactive"),this._bind(o.add(e),c.inactiveEvents,si));this._bindEvents(w,b,s,o,pr,wr);this._bind(s.add(e),"mousemove",function(n){if("number"==typeof i.hide.distance){var t=this.cache.origin||{},r=this.options.hide.distance,u=Math.abs;(u(n.pageX-t.pageX)>=r||u(n.pageY-t.pageY)>=r)&&this.hide(n)}this._storeMouse(n)});f.target==="mouse"&&f.adjust.mouse&&(i.hide.event&&this._bind(s,["mouseenter","mouseleave"],function(n){if(!this.cache)return u;this.cache.onTarget=n.type==="mouseenter"}),this._bind(l,"mousemove",function(n){this.rendered&&this.cache.onTarget&&!this.tooltip.hasClass(a)&&this.tooltip[0].offsetWidth>0&&this.reposition(n)}));(f.adjust.resize||h.length)&&this._bind(r.event.special.resize?h:v,"resize",di);f.adjust.scroll&&this._bind(v.add(f.container),"scroll",di)};e._unassignEvents=function(){var u=this.options,f=u.show.target,e=u.hide.target,i=
r.grep([this.elements.target[0],this.rendered&&this.tooltip[0],u.position.container[0],u.position.viewport[0],u.position.container.closest("html")[0],n,t],function(n){return typeof n=="object"});f&&f.toArray&&(i=i.concat(f.toArray()));e&&e.toArray&&(i=i.concat(e.toArray()));this._unbind(i)._unbind(i,"destroy")._unbind(i,"inactive")};r(function(){gi(rt,["mouseenter","mouseleave"],function(n){var u=n.type==="mouseenter",i=r(n.currentTarget),f=r(n.relatedTarget||n.target),t=this.options;u?(this.focus(n),i.hasClass(yi)&&!i.hasClass(a)&&clearTimeout(this.timers.hide)):t.position.target==="mouse"&&t.position.adjust.mouse&&t.hide.event&&t.show.target&&!f.closest(t.show.target[0]).length&&this.hide(n);i.toggleClass(vr,u)});gi("["+bt+"]",vi,si)});c=r.fn.qtip=function(n,t,e){var a=(""+n).toLowerCase(),y=s,p=r.makeArray(arguments).slice(1),v=p[p.length-1],l=this[0]?r.data(this[0],o):s;return!arguments.length&&l||a==="api"?l:"string"==typeof n?(this.each(function(){var n=r.data(this,o);if(!n)return f;if(v&&v.timeStamp&&(
n.cache.event=v),t&&(a==="option"||a==="options"))if(e!==i||r.isPlainObject(t))n.set(t,e);else return y=n.get(t),u;else n[a]&&n[a].apply(n,p)}),y!==s?y:this):"object"==typeof n||!arguments.length?(l=dt(r.extend(f,{},n)),this.each(function(n){var i,t;if(t=r.isArray(l.id)?l.id[n]:l.id,t=!t||t===u||t.length<1||c.api[t]?c.nextid++:t,i=br(r(this),t,l),i===u)return f;c.api[t]=i;r.each(h,function(){this.initialize==="initialize"&&this(i)});i._assignInitialEvents(v)})):void 0};r.qtip=oi;c.api={};r.each({attr:function(n,t){if(this.length){var u=this[0],f="title",i=r.data(u,"qtip");if(n===f&&i&&i.options&&"object"==typeof i&&"object"==typeof i.options&&i.options.suppress)return arguments.length<2?r.attr(u,ut):(i&&i.options.content.attr===f&&i.cache.attr&&i.set("content.text",t),this.attr(ut,t))}return r.fn["attr"+ht].apply(this,arguments)},clone:function(n){var t=r.fn["clone"+ht].apply(this,arguments);return n||t.filter("["+ut+"]").attr("title",function(){return r.attr(this,ut)}).removeAttr(ut),t}},function(n,t){if(!t||
r.fn[n+ht])return f;var i=r.fn[n+ht]=r.fn[n];r.fn[n]=function(){return t.apply(this,arguments)||i.apply(this,arguments)}});r.ui||(r["cleanData"+ht]=r.cleanData,r.cleanData=function(n){for(var i=0,t;(t=r(n[i])).length;i++)if(t.attr(fi))try{t.triggerHandler("removeqtip")}catch(u){}r["cleanData"+ht].apply(this,arguments)});c.version="3.0.3";c.nextid=0;c.inactiveEvents=vi;c.zindex=15e3;c.defaults={prerender:u,id:u,overwrite:f,suppress:f,content:{text:f,attr:"title",title:u,button:u},position:{my:"top left",at:"bottom right",target:u,container:u,viewport:u,adjust:{x:0,y:0,mouse:f,scroll:f,resize:f,method:"flipinvert flipinvert"},effect:function(n,t){r(this).animate(t,{duration:200,queue:u})}},show:{target:u,event:"mouseenter",effect:f,delay:90,solo:u,ready:u,autofocus:u},hide:{target:u,event:"mouseleave",effect:f,delay:0,fixed:u,inactive:u,leave:"window",distance:u},style:{classes:"",widget:u,width:u,height:u,def:f},events:{render:s,move:s,show:s,hide:s,toggle:s,visible:s,hidden:s,focus:s,blur:s}};var hi,ci,ot,nr,
tr,li="margin",ti="border",yt="color",ct="background-color",ir="transparent",rr=" !important",ii=!!t.createElement("canvas").getContext,ur=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i;ri={};fr=["Webkit","O","Moz","ms"];ii?(nr=n.devicePixelRatio||1,tr=function(){var n=t.createElement("canvas").getContext("2d");return n.backingStorePixelRatio||n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||1}(),ot=nr/tr):ci=function(n,t,i){return"<qtipvml:"+n+' xmlns="urn:schemas-microsoft.com:vml" class="qtip-vml" '+(t||"")+' style="behavior: url(#default#VML); '+(i||"")+'" />'};r.extend(er.prototype,{init:function(n){var t,i;i=this.element=n.elements.tip=r("<div />",{"class":o+"-tip"}).prependTo(n.tooltip);ii?(t=r("<canvas />").appendTo(this.element)[0].getContext("2d"),t.lineJoin="miter",t.miterLimit=1e5,t.save()):(t=ci("shape",'coordorigin="0,0"',"position:absolute;"),this.element.html(t+t),n._bind(r("*",i).add(i),["click","mousedown"],function(n){n.stopPropagation(
)},this._ns));n._bind(n.tooltip,"tooltipmove",this.reposition,this._ns,this);this.create()},_swapDimensions:function(){this.size[0]=this.options.height;this.size[1]=this.options.width},_resetDimensions:function(){this.size[0]=this.options.width;this.size[1]=this.options.height},_useTitle:function(n){var t=this.qtip.elements.titlebar;return t&&(n.y===b||n.y===l&&this.element.position().top+this.size[1]/2+this.options.offset<t.outerHeight(f))},_parseCorner:function(n){var t=this.qtip.options.position.my;return n===u||t===u?n=u:n===f?n=new it(t.string()):n.string||(n=new it(n),n.fixed=f),n},_parseWidth:function(n,t,i){var r=this.qtip.elements,u=ti+pt(t)+"Width";return(i?lt(i,u):lt(r.content,u)||lt(this._useTitle(n)&&r.titlebar||r.content,u)||lt(r.tooltip,u))||0},_parseRadius:function(n){var t=this.qtip.elements,i=ti+pt(n.y)+pt(n.x)+"Radius";return v.ie<9?0:lt(this._useTitle(n)&&t.titlebar||t.content,i)||lt(t.tooltip,i)||0},_invalidColour:function(n,t,i){var r=n.css(t);return!r||i&&r===n.css(i)||ur.test(r)?u:r},_parseColours:
function(n){var i=this.qtip.elements,u=this.element.css("cssText",""),f=ti+pt(n[n.precedance])+pt(yt),o=this._useTitle(n)&&i.titlebar||i.content,t=this._invalidColour,e=[];return e[0]=t(u,ct)||t(o,ct)||t(i.content,ct)||t(i.tooltip,ct)||u.css(ct),e[1]=t(u,f,yt)||t(o,f,yt)||t(i.content,f,yt)||t(i.tooltip,f,yt)||i.tooltip.css(f),r("*",u).add(u).css("cssText",ct+":"+ir+rr+";"+ti+":0"+rr+";"),e},_calculateSize:function(n){var o=n.precedance===y,s=this.options.width,r=this.options.height,h=n.abbrev()==="c",c=(o?s:r)*(h?.5:1),i=Math.pow,l=Math.round,a,f,e,u=Math.sqrt(i(c,2)+i(r,2)),t=[this.border/c*u,this.border/r*u];return t[2]=Math.sqrt(i(t[0],2)-i(this.border,2)),t[3]=Math.sqrt(i(t[1],2)-i(this.border,2)),a=u+t[2]+t[3]+(h?0:t[0]),f=a/u,e=[l(f*s),l(f*r)],o?e:e.reverse()},_calculateTip:function(n,t,i){i=i||1;t=t||this.size;var r=t[0]*i,u=t[1]*i,e=Math.ceil(r/2),o=Math.ceil(u/2),f={br:[0,0,r,u,r,0],bl:[0,0,r,0,0,u],tr:[0,u,r,0,r,u],tl:[0,0,0,u,r,u],tc:[0,u,e,0,r,u],bc:[0,0,r,0,e,u],rc:[0,0,r,o,0,u],lc:[r,0,r,u,0,o]};
return f.lt=f.br,f.rt=f.bl,f.lb=f.tr,f.rb=f.tl,f[n.abbrev()]},_drawCoords:function(n,t){n.beginPath();n.moveTo(t[0],t[1]);n.lineTo(t[2],t[3]);n.lineTo(t[4],t[5]);n.closePath()},create:function(){var n=this.corner=(ii||v.ie)&&this._parseCorner(this.options.corner);return this.enabled=!!this.corner&&this.corner.abbrev()!=="c",this.enabled&&(this.qtip.cache.corner=n.clone(),this.update()),this.element.toggle(this.enabled),this.corner},update:function(t,i){if(!this.enabled)return this;var ct=this.qtip.elements,st=this.element,rt=st.children(),ut=this.options,nt=this.size,e=ut.mimic,ft=Math.round,a,et,h,c,ht,g,o,s;t||(t=this.qtip.cache.corner||this.corner);e===u?e=t:(e=new it(e),e.precedance=t.precedance,e.x==="inherit"?e.x=t.x:e.y==="inherit"?e.y=t.y:e.x===e.y&&(e[t.precedance]=t[t.precedance]));et=e.precedance;t.precedance===w?this._swapDimensions():this._resetDimensions();a=this.color=this._parseColours(t);a[1]!==ir?(s=this.border=this._parseWidth(t,t[t.precedance]),ut.border&&s<1&&!ur.test(a[1])&&(a[0]=a[1]),this.
border=s=ut.border!==f?ut.border:s):this.border=s=0;o=this.size=this._calculateSize(t);st.css({width:o[0],height:o[1],lineHeight:o[1]+"px"});g=t.precedance===y?[ft(e.x===p?s:e.x===k?o[0]-nt[0]-s:(o[0]-nt[0])/2),ft(e.y===b?o[1]-nt[1]:0)]:[ft(e.x===p?o[0]-nt[0]:0),ft(e.y===b?s:e.y===tt?o[1]-nt[1]-s:(o[1]-nt[1])/2)];ii?(h=rt[0].getContext("2d"),h.restore(),h.save(),h.clearRect(0,0,6e3,6e3),c=this._calculateTip(e,nt,ot),ht=this._calculateTip(e,this.size,ot),rt.attr(d,o[0]*ot).attr(at,o[1]*ot),rt.css(d,o[0]).css(at,o[1]),this._drawCoords(h,ht),h.fillStyle=a[1],h.fill(),h.translate(g[0]*ot,g[1]*ot),this._drawCoords(h,c),h.fillStyle=a[0],h.fill()):(c=this._calculateTip(e),c="m"+c[0]+","+c[1]+" l"+c[2]+","+c[3]+" "+c[4]+","+c[5]+" xe",g[2]=s&&/^(r|b)/i.test(t.string())?v.ie===8?2:1:0,rt.css({coordsize:o[0]+s+" "+o[1]+s,antialias:""+(e.string().indexOf(l)>-1),left:g[0]-g[2]*Number(et===w),top:g[1]-g[2]*Number(et===y),width:o[0]+s,height:o[1]+s}).each(function(n){var t=r(this);t[t.prop?"prop":"attr"]({coordsize:o[0]+s+
" "+o[1]+s,path:c,fillcolor:a[0],filled:!!n,stroked:!n}).toggle(!!(s||n));n||t.html(ci("stroke",'weight="'+s*2+'px" color="'+a[1]+'" miterlimit="1000" joinstyle="miter"'))}));n.opera&&setTimeout(function(){ct.tip.css({display:"inline-block",visibility:"visible"})},1);i!==u&&this.calculate(t,o)},calculate:function(n,t){if(!this.enabled)return u;var e=this,s=this.qtip.elements,c=this.element,h=this.options.offset,i={},f,o;return n=n||this.corner,f=n.precedance,t=t||this._calculateSize(n),o=[n.x,n.y],f===w&&o.reverse(),r.each(o,function(r,u){var o,a,c;u===l?(o=f===y?p:b,i[o]="50%",i[li+"-"+o]=-Math.round(t[f===y?0:1]/2)+h):(o=e._parseWidth(n,u,s.tooltip),a=e._parseWidth(n,u,s.content),c=e._parseRadius(n),i[u]=Math.max(-e.border,r?a:h+(c>o?c:-o)))}),i[n[f]]-=t[f===w?0:1],c.css({margin:"",top:"",bottom:"",left:"",right:""}).css(i),i},reposition:function(n,t,r){function it(n,t,i,r,u){n===ft&&s.precedance===t&&h[r]&&s[i]!==l?s.precedance=s.precedance===w?y:w:n!==ft&&h[r]&&(s[t]=s[t]===l?h[r]>0?r:u:s[t]===r?u:r)}function rt(
n,t,f){s[n]===l?nt[li+"-"+t]=o[n]=e[li+"-"+t]-h[t]:(a=e[f]!==i?[h[t],-e[t]]:[-h[t],e[t]],(o[n]=Math.max(a[0],a[1]))>a[0]&&(r[t]-=h[t],o[t]=u),nt[e[f]!==i?f:t]=o[n])}if(this.enabled){var c=t.cache,s=this.corner.clone(),h=r.adjusted,v=t.options.position.adjust.method.split(" "),d=v[0],g=v[1]||v[0],o={left:u,top:u,x:0,y:0},e,nt={},a;this.corner.fixed!==f&&(it(d,w,y,p,k),it(g,y,w,b,tt),(s.string()!==c.corner.string()||c.cornerTop!==h.top||c.cornerLeft!==h.left)&&this.update(s,u));e=this.calculate(s);e.right!==i&&(e.left=-e.right);e.bottom!==i&&(e.top=-e.bottom);e.user=this.offset;o.left=d===ft&&!!h.left;o.left&&rt(w,p,k);o.top=g===ft&&!!h.top;o.top&&rt(y,b,tt);this.element.css(nt).toggle(!(o.x&&o.y||s.x===l&&o.y||s.y===l&&o.x));r.left-=e.left.charAt?e.user:d!==ft||o.top||!o.left&&!o.top?e.left+this.border:0;r.top-=e.top.charAt?e.user:g!==ft||o.left||!o.left&&!o.top?e.top+this.border:0;c.cornerLeft=h.left;c.cornerTop=h.top;c.corner=s.clone()}},destroy:function(){this.qtip._unbind(this.qtip.tooltip,this._ns);this.qtip.
elements.tip&&this.qtip.elements.tip.find("*").remove().end().remove()}});hi=h.tip=function(n){return new er(n,n.options.style.tip)};hi.initialize="render";hi.sanitize=function(n){if(n.style&&"tip"in n.style){var t=n.style.tip;typeof t!="object"&&(t=n.style.tip={corner:t});/string|boolean/i.test(typeof t.corner)||(t.corner=f)}};wt.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){this.create();this.qtip.reposition()},"^style.tip.(height|width)$":function(n){this.size=[n.width,n.height];this.update();this.qtip.reposition()},"^content.title|style.(classes|widget)$":function(){this.update()}};r.extend(f,c.defaults,{style:{tip:{corner:f,mimic:u,width:6,height:6,border:f,offset:0}}});ui="qtip-modal";nt="."+ui;g=function(){function l(n){if(r.expr[":"].focusable)return r.expr[":"].focusable;var e=!isNaN(r.attr(n,"tabindex")),t=n.nodeName&&n.nodeName.toLowerCase(),i,u,f;return"area"===t?(i=n.parentNode,u=i.name,!n.href||!u||i.nodeName.toLowerCase()!=="map")?!1:(f=r("img[usemap=#"+u+"]")[0],!!f&&f.is(":visible")):
/input|select|textarea|button|object/.test(t)?!n.disabled:"a"===t?n.href||e:e}function c(n){o.length<1&&n.length?n.not("body").blur():o.first().focus()}function a(t){if(n.is(":visible")){var f=r(t.target),e=i.tooltip,o=f.closest(rt),s;s=o.length<1?u:parseInt(o[0].style.zIndex,10)>parseInt(e[0].style.zIndex,10);s||f.closest(rt)[0]===e[0]||c(f)}}var e=this,o={},i,h,n;r.extend(e,{init:function(){return n=e.elem=r("<div />",{id:"qtip-overlay",html:"<div><\/div>",mousedown:function(){return u}}).hide(),r(t.body).bind("focusin"+nt,a),r(t).bind("keydown"+nt,function(n){i&&i.options.show.modal.escape&&n.keyCode===27&&i.hide(n)}),n.bind("click"+nt,function(n){i&&i.options.show.modal.blur&&i.hide(n)}),e},update:function(n){i=n;o=n.options.show.modal.stealfocus!==u?n.tooltip.find("*").filter(function(){return l(this)}):[]},toggle:function(o,l,a){var p=o.tooltip,v=o.options.show.modal,y=v.effect,w=l?"show":"hide",b=n.is(":visible"),k=r(nt).filter(":visible:not(:animated)").not(p);return(e.update(o),l&&v.stealfocus!==u&&c(
r(":focus")),n.toggleClass("blurs",v.blur),l&&n.appendTo(t.body),n.is(":animated")&&b===l&&h!==u||!l&&k.length)?e:(n.stop(f,u),r.isFunction(y)?y.call(n,l):y===u?n[w]():n.fadeTo(parseInt(a,10)||90,l?1:0,function(){l||n.hide()}),l||n.queue(function(t){n.css({left:"",top:""});r(nt).length||n.detach();t()}),h=l,i.destroyed&&(i=s),e)}});e.init()};g=new g;r.extend(or.prototype,{init:function(n){var t=n.tooltip;if(!this.options.on)return this;n.elements.overlay=g.elem;t.addClass(ui).css("z-index",c.modal_zindex+r(nt).length);n._bind(t,["tooltipshow","tooltiphide"],function(n,i,u){var f=n.originalEvent;if(n.target===t[0])if(f&&n.type==="tooltiphide"&&/mouse(leave|enter)/.test(f.type)&&r(f.relatedTarget).closest(g.elem[0]).length)try{n.preventDefault()}catch(e){}else(!f||f&&f.type!=="tooltipsolo")&&this.toggle(n,n.type==="tooltipshow",u)},this._ns,this);n._bind(t,"tooltipfocus",function(n,i){if(!n.isDefaultPrevented()&&n.target===t[0]){var u=r(nt),f=c.modal_zindex+u.length,e=parseInt(t[0].style.zIndex,10);g.elem[0].style.
zIndex=f-1;u.each(function(){this.style.zIndex>e&&(this.style.zIndex-=1)});u.filter("."+st).qtip("blur",n.originalEvent);t.addClass(st)[0].style.zIndex=f;g.update(i);try{n.preventDefault()}catch(o){}}},this._ns,this);n._bind(t,"tooltiphide",function(n){n.target===t[0]&&r(nt).filter(":visible").not(t).last().qtip("focus",n)},this._ns,this)},toggle:function(n,t,i){if(n&&n.isDefaultPrevented())return this;g.toggle(this.qtip,!!t,i)},destroy:function(){this.qtip.tooltip.removeClass(ui);this.qtip._unbind(this.qtip.tooltip,this._ns);g.toggle(this.qtip,u);delete this.qtip.elements.overlay}});ai=h.modal=function(n){return new or(n,n.options.show.modal)};ai.sanitize=function(n){n.show&&(typeof n.show.modal!="object"?n.show.modal={on:!!n.show.modal}:typeof n.show.modal.on=="undefined"&&(n.show.modal.on=f))};c.modal_zindex=c.zindex-200;ai.initialize="render";wt.modal={"^show.modal.(on|blur)$":function(){this.destroy();this.init();this.qtip.elems.overlay.toggle(this.qtip.tooltip[0].offsetWidth>0)}};r.extend(f,c.defaults,{
show:{modal:{on:u,effect:f,blur:f,stealfocus:f,escape:f}}});h.viewport=function(i,r,f,e,o,s,h){function wt(n,t,i,u,f,e,o,s,h){var y=r[f],c=a[n],k=kt[n],rt=i===ft,g=c===f?h:c===e?-h:-h/2,ut=k===f?s:k===e?-s:-s/2,tt=lt[f]+it[f]-(pt?0:nt[f]),b=tt-y,w=y+h-(o===d?ht:ct)-tt,p=g-(a.precedance===n||c===a[t]?ut:0)-(k===l?s/2:0);return rt?(p=(c===f?1:-1)*g,r[f]+=b>0?b:w>0?-w:0,r[f]=Math.max(-nt[f]+it[f],y-p,Math.min(Math.max(-nt[f]+it[f]+(o===d?ht:ct),y+p),r[f],c==="center"?y-g:1e9))):(u*=i===lr?2:0,b>0&&(c!==f||w>0)?(r[f]-=p+u,v.invert(n,f)):w>0&&(c!==e||b>0)&&(r[f]-=(c===l?-p:p)+u,v.invert(n,e)),r[f]<lt[f]&&-r[f]>w&&(r[f]=y,v=a.clone())),r[f]-y}var vt=f.target,bt=i.elements.tooltip,a=f.my,kt=f.at,g=f.adjust,rt=g.method.split(" "),ut=rt[0],et=rt[1]||rt[0],c=f.viewport,yt=f.container,ot={left:0,top:0},st,v,nt,pt,ht,ct,lt,it;return!c.jquery||vt[0]===n||vt[0]===t.body||g.method==="none"?ot:(nt=yt.offset()||ot,pt=yt.css("position")==="static",st=bt.css("position")==="fixed",ht=c[0]===n?c.width():c.outerWidth(u),ct=c[0]===
n?c.height():c.outerHeight(u),lt={left:st?0:c.scrollLeft(),top:st?0:c.scrollTop()},it=c.offset()||ot,(ut!=="shift"||et!=="shift")&&(v=a.clone()),{left:ut!=="none"?wt(w,y,ut,g.x,p,k,d,e,s):0,top:et!=="none"?wt(y,w,et,g.y,b,tt,at,o,h):0,my:v})};h.polys={polygon:function(n,t){for(var i={width:0,height:0,position:{top:1e10,right:0,bottom:0,left:1e10},adjustable:u},f=0,r,e=[],o=1,s=1,a=0,v=0,h,c,f=n.length;f--;)r=[parseInt(n[--f],10),parseInt(n[f+1],10)],r[0]>i.position.right&&(i.position.right=r[0]),r[0]<i.position.left&&(i.position.left=r[0]),r[1]>i.position.bottom&&(i.position.bottom=r[1]),r[1]<i.position.top&&(i.position.top=r[1]),e.push(r);if(h=i.width=Math.abs(i.position.right-i.position.left),c=i.height=Math.abs(i.position.bottom-i.position.top),t.abbrev()==="c")i.position={left:i.position.left+i.width/2,top:i.position.top+i.height/2};else{while(h>0&&c>0&&o>0&&s>0)for(h=Math.floor(h/2),c=Math.floor(c/2),t.x===p?o=h:t.x===k?o=i.width-h:o+=Math.floor(h/2),t.y===b?s=c:t.y===tt?s=i.height-c:s+=Math.floor(c/2),f=
e.length;f--;){if(e.length<2)break;a=e[f][0]-i.position.left;v=e[f][1]-i.position.top;(t.x===p&&a>=o||t.x===k&&a<=o||t.x===l&&(a<o||a>i.width-o)||t.y===b&&v>=s||t.y===tt&&v<=s||t.y===l&&(v<s||v>i.height-s))&&e.splice(f,1)}i.position={left:e[0][0],top:e[0][1]}}return i},rect:function(n,t,i,r){return{width:Math.abs(i-n),height:Math.abs(r-t),position:{left:Math.min(n,i),top:Math.min(t,r)}}},_angles:{tc:3/2,tr:7/4,tl:5/4,bc:1/2,br:1/4,bl:3/4,rc:2,lc:1,c:0},ellipse:function(n,t,i,r,f){var e=h.polys._angles[f.abbrev()],o=e===0?0:i*Math.cos(e*Math.PI),s=r*Math.sin(e*Math.PI);return{width:i*2-Math.abs(o),height:r*2-Math.abs(s),position:{left:n+o,top:t+s},adjustable:u}},circle:function(n,t,i,r){return h.polys.ellipse(n,t,i,i,r)}};h.svg=function(n,i,f){for(var e=i[0],a=r(e.ownerSVGElement),l=e.ownerDocument,b=(parseInt(i.css("stroke-width"),10)||0)/2,v,k,p,d,w,y,s,o,c;!e.getBBox;)e=e.parentNode;if(!e.getBBox||!e.parentNode)return u;switch(e.nodeName){case"ellipse":case"circle":o=h.polys.ellipse(e.cx.baseVal.value,e.cy.
baseVal.value,(e.rx||e.r).baseVal.value+b,(e.ry||e.r).baseVal.value+b,f);break;case"line":case"polygon":case"polyline":for(s=e.points||[{x:e.x1.baseVal.value,y:e.y1.baseVal.value},{x:e.x2.baseVal.value,y:e.y2.baseVal.value}],o=[],y=-1,d=s.numberOfItems||s.length;++y<d;)w=s.getItem?s.getItem(y):s[y],o.push.apply(o,[w.x,w.y]);o=h.polys.polygon(o,f);break;default:o=e.getBBox();o={width:o.width,height:o.height,position:{left:o.x,top:o.y}}}return c=o.position,a=a[0],a.createSVGPoint&&(k=e.getScreenCTM(),s=a.createSVGPoint(),s.x=c.left,s.y=c.top,p=s.matrixTransform(k),c.left=p.x,c.top=p.y),l!==t&&n.position.target!=="mouse"&&(v=r((l.defaultView||l.parentWindow).frameElement).offset(),v&&(c.left+=v.left,c.top+=v.top)),l=r(l),c.left+=l.scrollLeft(),c.top+=l.scrollTop(),o};h.imagemap=function(n,t,i){t.jquery||(t=r(t));var s=(t.attr("shape")||"rect").toLowerCase().replace("poly","polygon"),f=r('img[usemap="#'+t.parent("map").attr("name")+'"]'),y=r.trim(t.attr("coords")),c=y.replace(/,$/,"").split(","),e,l,a,o,v;if(!f.length)
return u;if(s==="polygon")o=h.polys.polygon(c,i);else if(h.polys[s]){for(a=-1,v=c.length,l=[];++a<v;)l.push(parseInt(c[a],10));o=h.polys[s].apply(this,l.concat(i))}else return u;return e=f.offset(),e.left+=Math.ceil((f.outerWidth(u)-f.width())/2),e.top+=Math.ceil((f.outerHeight(u)-f.height())/2),o.position.left+=e.left,o.position.top+=e.top,o};hr='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"><\/iframe>';r.extend(cr.prototype,{_scroll:function(){var t=this.qtip.elements.overlay;t&&(t[0].style.top=r(n).scrollTop()+"px")},init:function(i){var u=i.tooltip;r("select, object").length<1&&(this.bgiframe=i.elements.bgiframe=r(hr).appendTo(u),i._bind(u,"tooltipmove",this.adjustBGIFrame,this._ns,this));this.redrawContainer=r("<div/>",{id:o+"-rcontainer"}).appendTo(t.body);i.elements.overlay&&i.elements.overlay.addClass("qtipmodal-ie6fix")&&
(i._bind(n,["scroll","resize"],this._scroll,this._ns,this),i._bind(u,["tooltipshow"],this._scroll,this._ns,this));this.redraw()},adjustBGIFrame:function(){var t=this.qtip.tooltip,e={height:t.outerHeight(u),width:t.outerWidth(u)},r=this.qtip.plugins.tip,f=this.qtip.elements.tip,i,n;n=parseInt(t.css("borderLeftWidth"),10)||0;n={left:-n,top:-n};r&&f&&(i=r.corner.precedance==="x"?[d,p]:[at,b],n[i[1]]-=f[i[0]]());this.bgiframe.css(n).css(e)},redraw:function(){if(this.qtip.rendered<1||this.drawing)return this;var t=this.qtip.tooltip,u=this.qtip.options.style,e=this.qtip.options.position.container,f,n,i,r;return this.qtip.drawing=1,u.height&&t.css(at,u.height),u.width?t.css(d,u.width):(t.css(d,"").appendTo(this.redrawContainer),n=t.width(),n%2<1&&(n+=1),i=t.css("maxWidth")||"",r=t.css("minWidth")||"",f=(i+r).indexOf("%")>-1?e.width()/100:0,i=(i.indexOf("%")>-1?f:1*parseInt(i,10))||n,r=(r.indexOf("%")>-1?f:1*parseInt(r,10))||0,n=i+r?Math.min(Math.max(n,r),i):n,t.css(d,Math.round(n)).appendTo(e)),this.drawing=0,this},
destroy:function(){this.bgiframe&&this.bgiframe.remove();this.qtip._unbind([n,this.qtip.tooltip],this._ns)}});sr=h.ie6=function(n){return v.ie===6?new cr(n):u};sr.initialize="render";wt.ie6={"^content|style$":function(){this.redraw()}}})}(window,document),function(){"use strict";function e(n){n.fn.swiper=function(i){var r;return n(this).each(function(){var n=new t(this,i);r||(r=n)}),r}}var n,t=function(r,u){function d(n){return Math.floor(n)}function ot(){f.autoplayTimeoutId=setTimeout(function(){f.params.loop?(f.fixLoop(),f._slideNext(),f.emit("onAutoplay",f)):f.isEnd?u.autoplayStopOnLast?f.stopAutoplay():(f._slideTo(0),f.emit("onAutoplay",f)):(f._slideNext(),f.emit("onAutoplay",f))},f.params.autoplay)}function st(t,i){var r=n(t.target),u;if(!r.is(i))if(typeof i=="string")r=r.parents(i);else if(i.nodeType)return r.parents().each(function(n,t){t===i&&(u=i)}),u?i:undefined;return r.length===0?undefined:r[0]}function lt(n,t){t=t||{};var r=window.MutationObserver||window.WebkitMutationObserver,i=new r(function(n)
{n.forEach(function(n){f.onResize(!0);f.emit("onObserverUpdate",f,n)})});i.observe(n,{attributes:typeof t.attributes=="undefined"?!0:t.attributes,childList:typeof t.childList=="undefined"?!0:t.childList,characterData:typeof t.characterData=="undefined"?!0:t.characterData});f.observers.push(i)}function wt(n){var t,o,s,e,r;if((n.originalEvent&&(n=n.originalEvent),t=n.keyCode||n.charCode,!f.params.allowSwipeToNext&&(f.isHorizontal()&&t===39||!f.isHorizontal()&&t===40))||!f.params.allowSwipeToPrev&&(f.isHorizontal()&&t===37||!f.isHorizontal()&&t===38))return!1;if(!n.shiftKey&&!n.altKey&&!n.ctrlKey&&!n.metaKey&&(!document.activeElement||!document.activeElement.nodeName||document.activeElement.nodeName.toLowerCase()!=="input"&&document.activeElement.nodeName.toLowerCase()!=="textarea")){if(t===37||t===39||t===38||t===40){if(o=!1,f.container.parents(".swiper-slide").length>0&&f.container.parents(".swiper-slide-active").length===0)return;var u={left:window.pageXOffset,top:window.pageYOffset},h=window.innerWidth,c=window.
innerHeight,i=f.container.offset();for(f.rtl&&(i.left=i.left-f.container[0].scrollLeft),s=[[i.left,i.top],[i.left+f.width,i.top],[i.left,i.top+f.height],[i.left+f.width,i.top+f.height]],e=0;e<s.length;e++)r=s[e],r[0]>=u.left&&r[0]<=u.left+h&&r[1]>=u.top&&r[1]<=u.top+c&&(o=!0);if(!o)return}f.isHorizontal()?((t===37||t===39)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),(t===39&&!f.rtl||t===37&&f.rtl)&&f.slideNext(),(t===37&&!f.rtl||t===39&&f.rtl)&&f.slidePrev()):((t===38||t===40)&&(n.preventDefault?n.preventDefault():n.returnValue=!1),t===40&&f.slideNext(),t===38&&f.slidePrev())}}function bt(n){n.originalEvent&&(n=n.originalEvent);var u=f.mousewheel.event,t=0,r=f.rtl?-1:1;if(u==="mousewheel")if(f.params.mousewheelForceToAxis)if(f.isHorizontal())if(Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY))t=n.wheelDeltaX*r;else return;else if(Math.abs(n.wheelDeltaY)>Math.abs(n.wheelDeltaX))t=n.wheelDeltaY;else return;else t=Math.abs(n.wheelDeltaX)>Math.abs(n.wheelDeltaY)?-n.wheelDeltaX*r:-n.wheelDeltaY;else if(
u==="DOMMouseScroll")t=-n.detail;else if(u==="wheel")if(f.params.mousewheelForceToAxis)if(f.isHorizontal())if(Math.abs(n.deltaX)>Math.abs(n.deltaY))t=-n.deltaX*r;else return;else if(Math.abs(n.deltaY)>Math.abs(n.deltaX))t=-n.deltaY;else return;else t=Math.abs(n.deltaX)>Math.abs(n.deltaY)?-n.deltaX*r:-n.deltaY;if(t!==0){if(f.params.mousewheelInvert&&(t=-t),f.params.freeMode){var i=f.getWrapperTranslate()+t*f.params.mousewheelSensitivity,e=f.isBeginning,o=f.isEnd;if(i>=f.minTranslate()&&(i=f.minTranslate()),i<=f.maxTranslate()&&(i=f.maxTranslate()),f.setWrapperTransition(0),f.setWrapperTranslate(i),f.updateProgress(),f.updateActiveIndex(),(!e&&f.isBeginning||!o&&f.isEnd)&&f.updateClasses(),f.params.freeModeSticky?(clearTimeout(f.mousewheel.timeout),f.mousewheel.timeout=setTimeout(function(){f.slideReset()},300)):f.params.lazyLoading&&f.lazy&&f.lazy.load(),i===0||i===f.maxTranslate())return}else{if((new window.Date).getTime()-f.mousewheel.lastScrollTime>60)if(t<0)if(f.isEnd&&!f.params.loop||f.animating){if(f.params.
mousewheelReleaseOnEdges)return!0}else f.slideNext();else if(f.isBeginning&&!f.params.loop||f.animating){if(f.params.mousewheelReleaseOnEdges)return!0}else f.slidePrev();f.mousewheel.lastScrollTime=(new window.Date).getTime()}return f.params.autoplay&&f.stopAutoplay(),n.preventDefault?n.preventDefault():n.returnValue=!1,!1}}function kt(t,i){t=n(t);var e,r,u,o=f.rtl?-1:1;e=t.attr("data-swiper-parallax")||"0";r=t.attr("data-swiper-parallax-x");u=t.attr("data-swiper-parallax-y");r||u?(r=r||"0",u=u||"0"):f.isHorizontal()?(r=e,u="0"):(u=e,r="0");r=r.indexOf("%")>=0?parseInt(r,10)*i*o+"%":r*i*o+"px";u=u.indexOf("%")>=0?parseInt(u,10)*i+"%":u*i+"px";t.transform("translate3d("+r+", "+u+",0px)")}function yt(n){return n.indexOf("on")!==0&&(n=n[0]!==n[0].toUpperCase()?"on"+n[0].toUpperCase()+n.substring(1):"on"+n),n}var y,pt,p,o,ft,h,k,f,et,v,rt,ut,at,vt;if(!(this instanceof t))return new t(r,u);y={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:
!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:undefined,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:
!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:undefined,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",
slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0};pt=u&&u.virtualTranslate;u=u||{};p={};for(o in u)if(typeof u[o]!="object"||u[o]===null||u[o].nodeType||u[o]===window||u[o]===document||typeof i!="undefined"&&u[o]instanceof i||typeof jQuery!="undefined"&&u[o]instanceof jQuery)p[o]=u[o];else{p[o]={};for(ft in u[o])p[o][ft]=u[o][ft]}for(h in y)if(typeof u[h]=="undefined")u[h]=y[h];else if(typeof u[h]=="object")
for(k in y[h])typeof u[h][k]=="undefined"&&(u[h][k]=y[h][k]);if((f=this,f.params=u,f.originalParams=p,f.classNames=[],typeof n!="undefined"&&typeof i!="undefined"&&(n=i),typeof n!="undefined"||(n=typeof i=="undefined"?window.Dom7||window.Zepto||window.jQuery:i,n))&&(f.$=n,f.currentBreakpoint=undefined,f.getActiveBreakpoint=function(){var i,t,n,r;if(!f.params.breakpoints)return!1;i=!1;t=[];for(n in f.params.breakpoints)f.params.breakpoints.hasOwnProperty(n)&&t.push(n);for(t.sort(function(n,t){return parseInt(n,10)>parseInt(t,10)}),r=0;r<t.length;r++)n=t[r],n>=window.innerWidth&&!i&&(i=n);return i||"max"},f.setBreakpoint=function(){var n=f.getActiveBreakpoint(),t,r,i;if(n&&f.currentBreakpoint!==n){t=n in f.params.breakpoints?f.params.breakpoints[n]:f.originalParams;r=f.params.loop&&t.slidesPerView!==f.params.slidesPerView;for(i in t)f.params[i]=t[i];f.currentBreakpoint=n;r&&f.destroyLoop&&f.reLoop(!0)}},f.params.breakpoints&&f.setBreakpoint(),f.container=n(r),f.container.length!==0)){if(f.container.length>1)return et=
[],f.container.each(function(){var n=this;et.push(new t(this,u))}),et;f.container[0].swiper=f;f.container.data("swiper",f);f.classNames.push("swiper-container-"+f.params.direction);f.params.freeMode&&f.classNames.push("swiper-container-free-mode");f.support.flexbox||(f.classNames.push("swiper-container-no-flexbox"),f.params.slidesPerColumn=1);f.params.autoHeight&&f.classNames.push("swiper-container-autoheight");(f.params.parallax||f.params.watchSlidesVisibility)&&(f.params.watchSlidesProgress=!0);["cube","coverflow","flip"].indexOf(f.params.effect)>=0&&(f.support.transforms3d?(f.params.watchSlidesProgress=!0,f.classNames.push("swiper-container-3d")):f.params.effect="slide");f.params.effect!=="slide"&&f.classNames.push("swiper-container-"+f.params.effect);f.params.effect==="cube"&&(f.params.resistanceRatio=0,f.params.slidesPerView=1,f.params.slidesPerColumn=1,f.params.slidesPerGroup=1,f.params.centeredSlides=!1,f.params.spaceBetween=0,f.params.virtualTranslate=!0,f.params.setWrapperSize=!1);(f.params.effect===
"fade"||f.params.effect==="flip")&&(f.params.slidesPerView=1,f.params.slidesPerColumn=1,f.params.slidesPerGroup=1,f.params.watchSlidesProgress=!0,f.params.spaceBetween=0,f.params.setWrapperSize=!1,typeof pt=="undefined"&&(f.params.virtualTranslate=!0));f.params.grabCursor&&f.support.touch&&(f.params.grabCursor=!1);f.wrapper=f.container.children("."+f.params.wrapperClass);f.params.pagination&&(f.paginationContainer=n(f.params.pagination),f.params.uniqueNavElements&&typeof f.params.pagination=="string"&&f.paginationContainer.length>1&&f.container.find(f.params.pagination).length===1&&(f.paginationContainer=f.container.find(f.params.pagination)),f.params.paginationType==="bullets"&&f.params.paginationClickable?f.paginationContainer.addClass("swiper-pagination-clickable"):f.params.paginationClickable=!1,f.paginationContainer.addClass("swiper-pagination-"+f.params.paginationType));(f.params.nextButton||f.params.prevButton)&&(f.params.nextButton&&(f.nextButton=n(f.params.nextButton),f.params.uniqueNavElements&&typeof
f.params.nextButton=="string"&&f.nextButton.length>1&&f.container.find(f.params.nextButton).length===1&&(f.nextButton=f.container.find(f.params.nextButton))),f.params.prevButton&&(f.prevButton=n(f.params.prevButton),f.params.uniqueNavElements&&typeof f.params.prevButton=="string"&&f.prevButton.length>1&&f.container.find(f.params.prevButton).length===1&&(f.prevButton=f.container.find(f.params.prevButton))));f.isHorizontal=function(){return f.params.direction==="horizontal"};f.rtl=f.isHorizontal()&&(f.container[0].dir.toLowerCase()==="rtl"||f.container.css("direction")==="rtl");f.rtl&&f.classNames.push("swiper-container-rtl");f.rtl&&(f.wrongRTL=f.wrapper.css("display")==="-webkit-box");f.params.slidesPerColumn>1&&f.classNames.push("swiper-container-multirow");f.device.android&&f.classNames.push("swiper-container-android");f.container.addClass(f.classNames.join(" "));f.translate=0;f.progress=0;f.velocity=0;f.lockSwipeToNext=function(){f.params.allowSwipeToNext=!1};f.lockSwipeToPrev=function(){f.params.allowSwipeToPrev=
!1};f.lockSwipes=function(){f.params.allowSwipeToNext=f.params.allowSwipeToPrev=!1};f.unlockSwipeToNext=function(){f.params.allowSwipeToNext=!0};f.unlockSwipeToPrev=function(){f.params.allowSwipeToPrev=!0};f.unlockSwipes=function(){f.params.allowSwipeToNext=f.params.allowSwipeToPrev=!0};f.params.grabCursor&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grab",f.container[0].style.cursor="-moz-grab",f.container[0].style.cursor="grab");f.imagesToLoad=[];f.imagesLoaded=0;f.loadImage=function(n,t,i,r,u){function e(){u&&u()}var f;n.complete&&r?e():t?(f=new window.Image,f.onload=e,f.onerror=e,i&&(f.srcset=i),t&&(f.src=t)):e()};f.preloadImages=function(){function t(){typeof f!="undefined"&&f!==null&&(f.imagesLoaded!==undefined&&f.imagesLoaded++,f.imagesLoaded===f.imagesToLoad.length&&(f.params.updateOnImagesReady&&f.update(),f.emit("onImagesReady",f)))}f.imagesToLoad=f.container.find("img");for(var n=0;n<f.imagesToLoad.length;n++)f.loadImage(f.imagesToLoad[n],f.imagesToLoad[n].currentSrc||f.
imagesToLoad[n].getAttribute("src"),f.imagesToLoad[n].srcset||f.imagesToLoad[n].getAttribute("srcset"),!0,t)};f.autoplayTimeoutId=undefined;f.autoplaying=!1;f.autoplayPaused=!1;f.startAutoplay=function(){if(typeof f.autoplayTimeoutId!="undefined"||!f.params.autoplay||f.autoplaying)return!1;f.autoplaying=!0;f.emit("onAutoplayStart",f);ot()};f.stopAutoplay=function(){f.autoplayTimeoutId&&(f.autoplayTimeoutId&&clearTimeout(f.autoplayTimeoutId),f.autoplaying=!1,f.autoplayTimeoutId=undefined,f.emit("onAutoplayStop",f))};f.pauseAutoplay=function(n){f.autoplayPaused||(f.autoplayTimeoutId&&clearTimeout(f.autoplayTimeoutId),f.autoplayPaused=!0,n===0?(f.autoplayPaused=!1,ot()):f.wrapper.transitionEnd(function(){f&&(f.autoplayPaused=!1,f.autoplaying?ot():f.stopAutoplay())}))};f.minTranslate=function(){return-f.snapGrid[0]};f.maxTranslate=function(){return-f.snapGrid[f.snapGrid.length-1]};f.updateAutoHeight=function(){var t=f.slides.eq(f.activeIndex)[0],n;typeof t!="undefined"&&(n=t.offsetHeight,n&&f.wrapper.css("height",
n+"px"))};f.updateContainerSize=function(){var n,t;(n=typeof f.params.width!="undefined"?f.params.width:f.container[0].clientWidth,t=typeof f.params.height!="undefined"?f.params.height:f.container[0].clientHeight,(n!==0||!f.isHorizontal())&&(t!==0||f.isHorizontal()))&&(n=n-parseInt(f.container.css("padding-left"),10)-parseInt(f.container.css("padding-right"),10),t=t-parseInt(f.container.css("padding-top"),10)-parseInt(f.container.css("padding-bottom"),10),f.width=n,f.height=t,f.size=f.isHorizontal()?f.width:f.height)};f.updateSlidesSize=function(){var o,h,c,e,u,l;f.slides=f.wrapper.children("."+f.params.slideClass);f.snapGrid=[];f.slidesGrid=[];f.slidesSizesGrid=[];var i=f.params.spaceBetween,r=-f.params.slidesOffsetBefore,n,y=0,v=0;if(typeof f.size!="undefined"){typeof i=="string"&&i.indexOf("%")>=0&&(i=parseFloat(i.replace("%",""))/100*f.size);f.virtualSize=-i;f.rtl?f.slides.css({marginLeft:"",marginTop:""}):f.slides.css({marginRight:"",marginBottom:""});f.params.slidesPerColumn>1&&(o=Math.floor(f.slides.length/
f.params.slidesPerColumn)===f.slides.length/f.params.slidesPerColumn?f.slides.length:Math.ceil(f.slides.length/f.params.slidesPerColumn)*f.params.slidesPerColumn,f.params.slidesPerView!=="auto"&&f.params.slidesPerColumnFill==="row"&&(o=Math.max(o,f.params.slidesPerView*f.params.slidesPerColumn)));var t,s=f.params.slidesPerColumn,a=o/s,p=a-(f.params.slidesPerColumn*a-f.slides.length);for(n=0;n<f.slides.length;n++)(t=0,h=f.slides.eq(n),f.params.slidesPerColumn>1&&(f.params.slidesPerColumnFill==="column"?(e=Math.floor(n/s),u=n-e*s,(e>p||e===p&&u===s-1)&&++u>=s&&(u=0,e++),c=e+u*o/s,h.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(u=Math.floor(n/a),e=n-u*a),h.css({"margin-top":u!==0&&f.params.spaceBetween&&f.params.spaceBetween+"px"}).attr("data-swiper-column",e).attr("data-swiper-row",u)),h.css("display")!=="none")&&(f.params.slidesPerView==="auto"?(t=f.isHorizontal()?h.outerWidth(!0):h.outerHeight(!0),f.params.roundLengths&&(t=d(t))):(t=(f.size-(f.params.
slidesPerView-1)*i)/f.params.slidesPerView,f.params.roundLengths&&(t=d(t)),f.isHorizontal()?f.slides[n].style.width=t+"px":f.slides[n].style.height=t+"px"),f.slides[n].swiperSlideSize=t,f.slidesSizesGrid.push(t),f.params.centeredSlides?(r=r+t/2+y/2+i,n===0&&(r=r-f.size/2-i),Math.abs(r)<1/1e3&&(r=0),v%f.params.slidesPerGroup==0&&f.snapGrid.push(r),f.slidesGrid.push(r)):(v%f.params.slidesPerGroup==0&&f.snapGrid.push(r),f.slidesGrid.push(r),r=r+t+i),f.virtualSize+=t+i,y=t,v++);if(f.virtualSize=Math.max(f.virtualSize,f.size)+f.params.slidesOffsetAfter,f.rtl&&f.wrongRTL&&(f.params.effect==="slide"||f.params.effect==="coverflow")&&f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}),(!f.support.flexbox||f.params.setWrapperSize)&&(f.isHorizontal()?f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}):f.wrapper.css({height:f.virtualSize+f.params.spaceBetween+"px"})),f.params.slidesPerColumn>1&&(f.virtualSize=(t+f.params.spaceBetween)*o,f.virtualSize=Math.ceil(f.virtualSize/f.params.slidesPerColumn)-
f.params.spaceBetween,f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}),f.params.centeredSlides)){for(l=[],n=0;n<f.snapGrid.length;n++)f.snapGrid[n]<f.virtualSize+f.snapGrid[0]&&l.push(f.snapGrid[n]);f.snapGrid=l}if(!f.params.centeredSlides){for(l=[],n=0;n<f.snapGrid.length;n++)f.snapGrid[n]<=f.virtualSize-f.size&&l.push(f.snapGrid[n]);f.snapGrid=l;Math.floor(f.virtualSize-f.size)-Math.floor(f.snapGrid[f.snapGrid.length-1])>1&&f.snapGrid.push(f.virtualSize-f.size)}f.snapGrid.length===0&&(f.snapGrid=[0]);f.params.spaceBetween!==0&&(f.isHorizontal()?f.rtl?f.slides.css({marginLeft:i+"px"}):f.slides.css({marginRight:i+"px"}):f.slides.css({marginBottom:i+"px"}));f.params.watchSlidesProgress&&f.updateSlidesOffset()}};f.updateSlidesOffset=function(){for(var n=0;n<f.slides.length;n++)f.slides[n].swiperSlideOffset=f.isHorizontal()?f.slides[n].offsetLeft:f.slides[n].offsetTop};f.updateSlidesProgress=function(n){var r,t,i,e;if(typeof n=="undefined"&&(n=f.translate||0),f.slides.length!==0)for(typeof f.slides[
0].swiperSlideOffset=="undefined"&&f.updateSlidesOffset(),r=-n,f.rtl&&(r=n),f.slides.removeClass(f.params.slideVisibleClass),t=0;t<f.slides.length;t++){if(i=f.slides[t],e=(r-i.swiperSlideOffset)/(i.swiperSlideSize+f.params.spaceBetween),f.params.watchSlidesVisibility){var u=-(r-i.swiperSlideOffset),o=u+f.slidesSizesGrid[t],s=u>=0&&u<f.size||o>0&&o<=f.size||u<=0&&o>=f.size;s&&f.slides.eq(t).addClass(f.params.slideVisibleClass)}i.progress=f.rtl?-e:e}};f.updateProgress=function(n){typeof n=="undefined"&&(n=f.translate||0);var t=f.maxTranslate()-f.minTranslate(),i=f.isBeginning,r=f.isEnd;t===0?(f.progress=0,f.isBeginning=f.isEnd=!0):(f.progress=(n-f.minTranslate())/t,f.isBeginning=f.progress<=0,f.isEnd=f.progress>=1);f.isBeginning&&!i&&f.emit("onReachBeginning",f);f.isEnd&&!r&&f.emit("onReachEnd",f);f.params.watchSlidesProgress&&f.updateSlidesProgress(n);f.emit("onProgress",f,f.progress)};f.updateActiveIndex=function(){for(var i=f.rtl?f.translate:-f.translate,t,r,n=0;n<f.slidesGrid.length;n++)typeof f.slidesGrid[
n+1]!="undefined"?i>=f.slidesGrid[n]&&i<f.slidesGrid[n+1]-(f.slidesGrid[n+1]-f.slidesGrid[n])/2?t=n:i>=f.slidesGrid[n]&&i<f.slidesGrid[n+1]&&(t=n+1):i>=f.slidesGrid[n]&&(t=n);((t<0||typeof t=="undefined")&&(t=0),r=Math.floor(t/f.params.slidesPerGroup),r>=f.snapGrid.length&&(r=f.snapGrid.length-1),t!==f.activeIndex)&&(f.snapIndex=r,f.previousIndex=f.activeIndex,f.activeIndex=t,f.updateClasses())};f.updateClasses=function(){var r,u,e,t,i;if(f.slides.removeClass(f.params.slideActiveClass+" "+f.params.slideNextClass+" "+f.params.slidePrevClass),r=f.slides.eq(f.activeIndex),r.addClass(f.params.slideActiveClass),u=r.next("."+f.params.slideClass).addClass(f.params.slideNextClass),f.params.loop&&u.length===0&&f.slides.eq(0).addClass(f.params.slideNextClass),e=r.prev("."+f.params.slideClass).addClass(f.params.slidePrevClass),f.params.loop&&e.length===0&&f.slides.eq(-1).addClass(f.params.slidePrevClass),f.paginationContainer&&f.paginationContainer.length>0){if(i=f.params.loop?Math.ceil((f.slides.length-f.loopedSlides*2)
/f.params.slidesPerGroup):f.snapGrid.length,f.params.loop?(t=Math.ceil((f.activeIndex-f.loopedSlides)/f.params.slidesPerGroup),t>f.slides.length-1-f.loopedSlides*2&&(t=t-(f.slides.length-f.loopedSlides*2)),t>i-1&&(t=t-i),t<0&&f.params.paginationType!=="bullets"&&(t=i+t)):t=typeof f.snapIndex!="undefined"?f.snapIndex:f.activeIndex||0,f.params.paginationType==="bullets"&&f.bullets&&f.bullets.length>0&&(f.bullets.removeClass(f.params.bulletActiveClass),f.paginationContainer.length>1?f.bullets.each(function(){n(this).index()===t&&n(this).addClass(f.params.bulletActiveClass)}):f.bullets.eq(t).addClass(f.params.bulletActiveClass)),f.params.paginationType==="fraction"&&(f.paginationContainer.find("."+f.params.paginationCurrentClass).text(t+1),f.paginationContainer.find("."+f.params.paginationTotalClass).text(i)),f.params.paginationType==="progress"){var o=(t+1)/i,s=o,h=1;f.isHorizontal()||(h=o,s=1);f.paginationContainer.find("."+f.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+s+") scaleY("+
h+")").transition(f.params.speed)}f.params.paginationType==="custom"&&f.params.paginationCustomRender&&(f.paginationContainer.html(f.params.paginationCustomRender(f,t+1,i)),f.emit("onPaginationRendered",f,f.paginationContainer[0]))}f.params.loop||(f.params.prevButton&&f.prevButton&&f.prevButton.length>0&&(f.isBeginning?(f.prevButton.addClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.disable(f.prevButton)):(f.prevButton.removeClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.enable(f.prevButton))),f.params.nextButton&&f.nextButton&&f.nextButton.length>0&&(f.isEnd?(f.nextButton.addClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.disable(f.nextButton)):(f.nextButton.removeClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.enable(f.nextButton))))};f.updatePagination=function(){var n,i,t;if(f.params.pagination&&f.paginationContainer&&f.paginationContainer.length>0){if(n="",f.params.paginationType==="bullets"){for(i=f.params.loop?Math.ceil((f.slides.
length-f.loopedSlides*2)/f.params.slidesPerGroup):f.snapGrid.length,t=0;t<i;t++)n+=f.params.paginationBulletRender?f.params.paginationBulletRender(t,f.params.bulletClass):"<"+f.params.paginationElement+' class="'+f.params.bulletClass+'"><\/'+f.params.paginationElement+">";f.paginationContainer.html(n);f.bullets=f.paginationContainer.find("."+f.params.bulletClass);f.params.paginationClickable&&f.params.a11y&&f.a11y&&f.a11y.initPagination()}f.params.paginationType==="fraction"&&(n=f.params.paginationFractionRender?f.params.paginationFractionRender(f,f.params.paginationCurrentClass,f.params.paginationTotalClass):'<span class="'+f.params.paginationCurrentClass+'"><\/span> / <span class="'+f.params.paginationTotalClass+'"><\/span>',f.paginationContainer.html(n));f.params.paginationType==="progress"&&(n=f.params.paginationProgressRender?f.params.paginationProgressRender(f,f.params.paginationProgressbarClass):'<span class="'+f.params.paginationProgressbarClass+'"><\/span>',f.paginationContainer.html(n));f.params.paginationType!==
"custom"&&f.emit("onPaginationRendered",f,f.paginationContainer[0])}};f.update=function(n){function t(){r=Math.min(Math.max(f.translate,f.maxTranslate()),f.minTranslate());f.setWrapperTranslate(r);f.updateActiveIndex();f.updateClasses()}if(f.updateContainerSize(),f.updateSlidesSize(),f.updateProgress(),f.updatePagination(),f.updateClasses(),f.params.scrollbar&&f.scrollbar&&f.scrollbar.set(),n){var i,r;f.controller&&f.controller.spline&&(f.controller.spline=undefined);f.params.freeMode?(t(),f.params.autoHeight&&f.updateAutoHeight()):(i=(f.params.slidesPerView==="auto"||f.params.slidesPerView>1)&&f.isEnd&&!f.params.centeredSlides?f.slideTo(f.slides.length-1,0,!1,!0):f.slideTo(f.activeIndex,0,!1,!0),i||t())}else f.params.autoHeight&&f.updateAutoHeight()};f.onResize=function(n){var i,r,t,u;f.params.breakpoints&&f.setBreakpoint();i=f.params.allowSwipeToPrev;r=f.params.allowSwipeToNext;f.params.allowSwipeToPrev=f.params.allowSwipeToNext=!0;f.updateContainerSize();f.updateSlidesSize();(f.params.slidesPerView==="auto"||
f.params.freeMode||n)&&f.updatePagination();f.params.scrollbar&&f.scrollbar&&f.scrollbar.set();f.controller&&f.controller.spline&&(f.controller.spline=undefined);t=!1;f.params.freeMode?(u=Math.min(Math.max(f.translate,f.maxTranslate()),f.minTranslate()),f.setWrapperTranslate(u),f.updateActiveIndex(),f.updateClasses(),f.params.autoHeight&&f.updateAutoHeight()):(f.updateClasses(),t=(f.params.slidesPerView==="auto"||f.params.slidesPerView>1)&&f.isEnd&&!f.params.centeredSlides?f.slideTo(f.slides.length-1,0,!1,!0):f.slideTo(f.activeIndex,0,!1,!0));f.params.lazyLoading&&!t&&f.lazy&&f.lazy.load();f.params.allowSwipeToPrev=i;f.params.allowSwipeToNext=r};v=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?v=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(v=["MSPointerDown","MSPointerMove","MSPointerUp"]);f.touchEvents={start:f.support.touch||!f.params.simulateTouch?"touchstart":v[0],move:f.support.touch||!f.params.simulateTouch?"touchmove":v[1],end:f.support.touch||!f.params.
simulateTouch?"touchend":v[2]};(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&(f.params.touchEventsTarget==="container"?f.container:f.wrapper).addClass("swiper-wp8-"+f.params.direction);f.initEvents=function(n){var r=n?"off":"on",t=n?"removeEventListener":"addEventListener",i=f.params.touchEventsTarget==="container"?f.container[0]:f.wrapper[0],o=f.support.touch?i:document,e=f.params.nested?!0:!1;f.browser.ie?(i[t](f.touchEvents.start,f.onTouchStart,!1),o[t](f.touchEvents.move,f.onTouchMove,e),o[t](f.touchEvents.end,f.onTouchEnd,!1)):(f.support.touch&&(i[t](f.touchEvents.start,f.onTouchStart,!1),i[t](f.touchEvents.move,f.onTouchMove,e),i[t](f.touchEvents.end,f.onTouchEnd,!1)),!u.simulateTouch||f.device.ios||f.device.android||(i[t]("mousedown",f.onTouchStart,!1),document[t]("mousemove",f.onTouchMove,e),document[t]("mouseup",f.onTouchEnd,!1)));window[t]("resize",f.onResize);f.params.nextButton&&f.nextButton&&f.nextButton.length>0&&(f.nextButton[r]("click",f.onClickNext),f.params.a11y&&f.a11y&&
f.nextButton[r]("keydown",f.a11y.onEnterKey));f.params.prevButton&&f.prevButton&&f.prevButton.length>0&&(f.prevButton[r]("click",f.onClickPrev),f.params.a11y&&f.a11y&&f.prevButton[r]("keydown",f.a11y.onEnterKey));f.params.pagination&&f.params.paginationClickable&&(f.paginationContainer[r]("click","."+f.params.bulletClass,f.onClickIndex),f.params.a11y&&f.a11y&&f.paginationContainer[r]("keydown","."+f.params.bulletClass,f.a11y.onEnterKey));(f.params.preventClicks||f.params.preventClicksPropagation)&&i[t]("click",f.preventClicks,!0)};f.attachEvents=function(){f.initEvents()};f.detachEvents=function(){f.initEvents(!0)};f.allowClick=!0;f.preventClicks=function(n){f.allowClick||(f.params.preventClicks&&n.preventDefault(),f.params.preventClicksPropagation&&f.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))};f.onClickNext=function(n){(n.preventDefault(),!f.isEnd||f.params.loop)&&f.slideNext()};f.onClickPrev=function(n){(n.preventDefault(),!f.isBeginning||f.params.loop)&&f.slidePrev()};f.onClickIndex=function(
t){t.preventDefault();var i=n(this).index()*f.params.slidesPerGroup;f.params.loop&&(i=i+f.loopedSlides);f.slideTo(i)};f.updateClickedSlide=function(t){var r=st(t,"."+f.params.slideClass),o=!1,u,i,e;if(r)for(u=0;u<f.slides.length;u++)f.slides[u]===r&&(o=!0);if(r&&o)f.clickedSlide=r,f.clickedIndex=n(r).index();else{f.clickedSlide=undefined;f.clickedIndex=undefined;return}if(f.params.slideToClickedSlide&&f.clickedIndex!==undefined&&f.clickedIndex!==f.activeIndex)if(i=f.clickedIndex,f.params.loop){if(f.animating)return;e=n(f.clickedSlide).attr("data-swiper-slide-index");f.params.centeredSlides?i<f.loopedSlides-f.params.slidesPerView/2||i>f.slides.length-f.loopedSlides+f.params.slidesPerView/2?(f.fixLoop(),i=f.wrapper.children("."+f.params.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){f.slideTo(i)},0)):f.slideTo(i):i>f.slides.length-f.params.slidesPerView?(f.fixLoop(),i=f.wrapper.children("."+f.params.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.swiper-slide-duplicate)').
eq(0).index(),setTimeout(function(){f.slideTo(i)},0)):f.slideTo(i)}else f.slideTo(i)};var c,l,g,nt,w,e,s,tt,ht="input, select, textarea, button",ct=Date.now(),b,a=[],it;if(f.animating=!1,f.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0},f.onTouchStart=function(t){var i,u,r;if(t.originalEvent&&(t=t.originalEvent),rt=t.type==="touchstart",rt||!("which"in t)||t.which!==3){if(f.params.noSwiping&&st(t,"."+f.params.noSwipingClass)){f.allowClick=!0;return}(!f.params.swipeHandler||st(t,f.params.swipeHandler))&&((i=f.touches.currentX=t.type==="touchstart"?t.targetTouches[0].pageX:t.pageX,u=f.touches.currentY=t.type==="touchstart"?t.targetTouches[0].pageY:t.pageY,f.device.ios&&f.params.iOSEdgeSwipeDetection&&i<=f.params.iOSEdgeSwipeThreshold)||(c=!0,l=!1,g=!0,w=undefined,ut=undefined,f.touches.startX=i,f.touches.startY=u,nt=Date.now(),f.allowClick=!0,f.updateContainerSize(),f.swipeDirection=undefined,f.params.threshold>0&&(tt=!1),t.type!=="touchstart"&&(r=!0,n(t.target).is(ht)&&(r=!1),document.activeElement&&n(
document.activeElement).is(ht)&&document.activeElement.blur(),r&&t.preventDefault()),f.emit("onTouchStart",f,t)))}},f.onTouchMove=function(t){var o,i,r;if(t.originalEvent&&(t=t.originalEvent),!rt||t.type!=="mousemove"){if(t.preventedByNestedSwiper){f.touches.startX=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX;f.touches.startY=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY;return}if(f.params.onlyExternal){f.allowClick=!1;c&&(f.touches.startX=f.touches.currentX=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,f.touches.startY=f.touches.currentY=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY,nt=Date.now());return}if(rt&&document.activeElement&&t.target===document.activeElement&&n(t.target).is(ht)){l=!0;f.allowClick=!1;return}if((g&&f.emit("onTouchMove",f,t),!t.targetTouches||!(t.targetTouches.length>1))&&(f.touches.currentX=t.type==="touchmove"?t.targetTouches[0].pageX:t.pageX,f.touches.currentY=t.type==="touchmove"?t.targetTouches[0].pageY:t.pageY,typeof w=="undefined"&&(o=Math.atan2(
Math.abs(f.touches.currentY-f.touches.startY),Math.abs(f.touches.currentX-f.touches.startX))*180/Math.PI,w=f.isHorizontal()?o>f.params.touchAngle:90-o>f.params.touchAngle),w&&f.emit("onTouchMoveOpposite",f,t),typeof ut=="undefined"&&f.browser.ieTouch&&(f.touches.currentX!==f.touches.startX||f.touches.currentY!==f.touches.startY)&&(ut=!0),c)){if(w){c=!1;return}if((ut||!f.browser.ieTouch)&&(f.allowClick=!1,f.emit("onSliderMove",f,t),t.preventDefault(),f.params.touchMoveStopPropagation&&!f.params.nested&&t.stopPropagation(),l||(u.loop&&f.fixLoop(),s=f.getWrapperTranslate(),f.setWrapperTransition(0),f.animating&&f.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),f.params.autoplay&&f.autoplaying&&(f.params.autoplayDisableOnInteraction?f.stopAutoplay():f.pauseAutoplay()),it=!1,f.params.grabCursor&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grabbing",f.container[0].style.cursor="-moz-grabbin",f.container[0].style.cursor="grabbing")),l=!0,
i=f.touches.diff=f.isHorizontal()?f.touches.currentX-f.touches.startX:f.touches.currentY-f.touches.startY,i=i*f.params.touchRatio,f.rtl&&(i=-i),f.swipeDirection=i>0?"prev":"next",e=i+s,r=!0,i>0&&e>f.minTranslate()?(r=!1,f.params.resistance&&(e=f.minTranslate()-1+Math.pow(-f.minTranslate()+s+i,f.params.resistanceRatio))):i<0&&e<f.maxTranslate()&&(r=!1,f.params.resistance&&(e=f.maxTranslate()+1-Math.pow(f.maxTranslate()-s-i,f.params.resistanceRatio))),r&&(t.preventedByNestedSwiper=!0),!f.params.allowSwipeToNext&&f.swipeDirection==="next"&&e<s&&(e=s),!f.params.allowSwipeToPrev&&f.swipeDirection==="prev"&&e>s&&(e=s),f.params.followFinger)){if(f.params.threshold>0)if(Math.abs(i)>f.params.threshold||tt){if(!tt){tt=!0;f.touches.startX=f.touches.currentX;f.touches.startY=f.touches.currentY;e=s;f.touches.diff=f.isHorizontal()?f.touches.currentX-f.touches.startX:f.touches.currentY-f.touches.startY;return}}else{e=s;return}(f.params.freeMode||f.params.watchSlidesProgress)&&f.updateActiveIndex();f.params.freeMode&&(a.length===
0&&a.push({position:f.touches[f.isHorizontal()?"startX":"startY"],time:nt}),a.push({position:f.touches[f.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()}));f.updateProgress(e);f.setWrapperTranslate(e)}}}},f.onTouchEnd=function(t){var w,v,o,d,tt,y,h,p,r,u,rt,ft;if(t.originalEvent&&(t=t.originalEvent),g&&f.emit("onTouchEnd",f,t),g=!1,c){if(f.params.grabCursor&&l&&c&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grab",f.container[0].style.cursor="-moz-grab",f.container[0].style.cursor="grab"),w=Date.now(),v=w-nt,f.allowClick&&(f.updateClickedSlide(t),f.emit("onTap",f,t),v<300&&w-ct>300&&(b&&clearTimeout(b),b=setTimeout(function(){f&&(f.params.paginationHide&&f.paginationContainer.length>0&&!n(t.target).hasClass(f.params.bulletClass)&&f.paginationContainer.toggleClass(f.params.paginationHiddenClass),f.emit("onClick",f,t))},300)),v<300&&w-ct<300&&(b&&clearTimeout(b),f.emit("onDoubleTap",f,t))),ct=Date.now(),setTimeout(function(){f&&(f.allowClick=!0)},0),!c||!l||!f.
swipeDirection||f.touches.diff===0||e===s){c=l=!1;return}if(c=l=!1,o=f.params.followFinger?f.rtl?f.translate:-f.translate:-e,f.params.freeMode){if(o<-f.minTranslate()){f.slideTo(f.activeIndex);return}if(o>-f.maxTranslate()){f.slides.length<f.snapGrid.length?f.slideTo(f.snapGrid.length-1):f.slideTo(f.slides.length-1);return}if(f.params.freeModeMomentum){if(a.length>1){var ut=a.pop(),et=a.pop(),st=ut.position-et.position,ot=ut.time-et.time;f.velocity=st/ot;f.velocity=f.velocity/2;Math.abs(f.velocity)<f.params.freeModeMinimumVelocity&&(f.velocity=0);(ot>150||(new window.Date).getTime()-ut.time>300)&&(f.velocity=0)}else f.velocity=0;a.length=0;var k=1e3*f.params.freeModeMomentumRatio,ht=f.velocity*k,i=f.translate+ht;if(f.rtl&&(i=-i),d=!1,y=Math.abs(f.velocity)*20*f.params.freeModeMomentumBounceRatio,i<f.maxTranslate())f.params.freeModeMomentumBounce?(i+f.maxTranslate()<-y&&(i=f.maxTranslate()-y),tt=f.maxTranslate(),d=!0,it=!0):i=f.maxTranslate();else if(i>f.minTranslate())f.params.freeModeMomentumBounce?(i-f.minTranslate(
)>y&&(i=f.minTranslate()+y),tt=f.minTranslate(),d=!0,it=!0):i=f.minTranslate();else if(f.params.freeModeSticky){for(h=0,h=0;h<f.snapGrid.length;h+=1)if(f.snapGrid[h]>-i){p=h;break}i=Math.abs(f.snapGrid[p]-i)<Math.abs(f.snapGrid[p-1]-i)||f.swipeDirection==="next"?f.snapGrid[p]:f.snapGrid[p-1];f.rtl||(i=-i)}if(f.velocity!==0)k=f.rtl?Math.abs((-i-f.translate)/f.velocity):Math.abs((i-f.translate)/f.velocity);else if(f.params.freeModeSticky){f.slideReset();return}f.params.freeModeMomentumBounce&&d?(f.updateProgress(tt),f.setWrapperTransition(k),f.setWrapperTranslate(i),f.onTransitionStart(),f.animating=!0,f.wrapper.transitionEnd(function(){f&&it&&(f.emit("onMomentumBounce",f),f.setWrapperTransition(f.params.speed),f.setWrapperTranslate(tt),f.wrapper.transitionEnd(function(){f&&f.onTransitionEnd()}))})):f.velocity?(f.updateProgress(i),f.setWrapperTransition(k),f.setWrapperTranslate(i),f.onTransitionStart(),f.animating||(f.animating=!0,f.wrapper.transitionEnd(function(){f&&f.onTransitionEnd()}))):f.updateProgress(i);
f.updateActiveIndex()}(!f.params.freeModeMomentum||v>=f.params.longSwipesMs)&&(f.updateProgress(),f.updateActiveIndex());return}for(u=0,rt=f.slidesSizesGrid[0],r=0;r<f.slidesGrid.length;r+=f.params.slidesPerGroup)typeof f.slidesGrid[r+f.params.slidesPerGroup]!="undefined"?o>=f.slidesGrid[r]&&o<f.slidesGrid[r+f.params.slidesPerGroup]&&(u=r,rt=f.slidesGrid[r+f.params.slidesPerGroup]-f.slidesGrid[r]):o>=f.slidesGrid[r]&&(u=r,rt=f.slidesGrid[f.slidesGrid.length-1]-f.slidesGrid[f.slidesGrid.length-2]);if(ft=(o-f.slidesGrid[u])/rt,v>f.params.longSwipesMs){if(!f.params.longSwipes){f.slideTo(f.activeIndex);return}f.swipeDirection==="next"&&(ft>=f.params.longSwipesRatio?f.slideTo(u+f.params.slidesPerGroup):f.slideTo(u));f.swipeDirection==="prev"&&(ft>1-f.params.longSwipesRatio?f.slideTo(u+f.params.slidesPerGroup):f.slideTo(u))}else{if(!f.params.shortSwipes){f.slideTo(f.activeIndex);return}f.swipeDirection==="next"&&f.slideTo(u+f.params.slidesPerGroup);f.swipeDirection==="prev"&&f.slideTo(u)}}},f._slideTo=function(n,t)
{return f.slideTo(n,t,!0,!0)},f.slideTo=function(n,t,i,r){var u,e;for(typeof i=="undefined"&&(i=!0),typeof n=="undefined"&&(n=0),n<0&&(n=0),f.snapIndex=Math.floor(n/f.params.slidesPerGroup),f.snapIndex>=f.snapGrid.length&&(f.snapIndex=f.snapGrid.length-1),u=-f.snapGrid[f.snapIndex],f.params.autoplay&&f.autoplaying&&(r||!f.params.autoplayDisableOnInteraction?f.pauseAutoplay(t):f.stopAutoplay()),f.updateProgress(u),e=0;e<f.slidesGrid.length;e++)-Math.floor(u*100)>=Math.floor(f.slidesGrid[e]*100)&&(n=e);if(!f.params.allowSwipeToNext&&u<f.translate&&u<f.minTranslate()||!f.params.allowSwipeToPrev&&u>f.translate&&u>f.maxTranslate()&&(f.activeIndex||0)!==n)return!1;if(typeof t=="undefined"&&(t=f.params.speed),f.previousIndex=f.activeIndex||0,f.activeIndex=n,f.rtl&&-u===f.translate||!f.rtl&&u===f.translate)return f.params.autoHeight&&f.updateAutoHeight(),f.updateClasses(),f.params.effect!=="slide"&&f.setWrapperTranslate(u),!1;f.updateClasses();f.onTransitionStart(i);if(t===0){f.setWrapperTranslate(u);f.setWrapperTransition(
0);f.onTransitionEnd(i)}else f.setWrapperTranslate(u),f.setWrapperTransition(t),f.animating||(f.animating=!0,f.wrapper.transitionEnd(function(){if(f)f.onTransitionEnd(i)}));return!0},f.onTransitionStart=function(n){typeof n=="undefined"&&(n=!0);f.params.autoHeight&&f.updateAutoHeight();f.lazy&&f.lazy.onTransitionStart();n&&(f.emit("onTransitionStart",f),f.activeIndex!==f.previousIndex&&(f.emit("onSlideChangeStart",f),f.activeIndex>f.previousIndex?f.emit("onSlideNextStart",f):f.emit("onSlidePrevStart",f)))},f.onTransitionEnd=function(n){f.animating=!1;f.setWrapperTransition(0);typeof n=="undefined"&&(n=!0);f.lazy&&f.lazy.onTransitionEnd();n&&(f.emit("onTransitionEnd",f),f.activeIndex!==f.previousIndex&&(f.emit("onSlideChangeEnd",f),f.activeIndex>f.previousIndex?f.emit("onSlideNextEnd",f):f.emit("onSlidePrevEnd",f)));f.params.hashnav&&f.hashnav&&f.hashnav.setHash()},f.slideNext=function(n,t,i){if(f.params.loop){if(f.animating)return!1;f.fixLoop();var r=f.container[0].clientLeft;return f.slideTo(f.activeIndex+f.
params.slidesPerGroup,t,n,i)}return f.slideTo(f.activeIndex+f.params.slidesPerGroup,t,n,i)},f._slideNext=function(n){return f.slideNext(!0,n,!0)},f.slidePrev=function(n,t,i){if(f.params.loop){if(f.animating)return!1;f.fixLoop();var r=f.container[0].clientLeft;return f.slideTo(f.activeIndex-1,t,n,i)}return f.slideTo(f.activeIndex-1,t,n,i)},f._slidePrev=function(n){return f.slidePrev(!0,n,!0)},f.slideReset=function(n,t){return f.slideTo(f.activeIndex,t,n)},f.setWrapperTransition=function(n,t){f.wrapper.transition(n);f.params.effect!=="slide"&&f.effects[f.params.effect]&&f.effects[f.params.effect].setTransition(n);f.params.parallax&&f.parallax&&f.parallax.setTransition(n);f.params.scrollbar&&f.scrollbar&&f.scrollbar.setTransition(n);f.params.control&&f.controller&&f.controller.setTransition(n,t);f.emit("onSetTransition",f,n)},f.setWrapperTranslate=function(n,t,i){var r=0,u=0,o,e;f.isHorizontal()?r=f.rtl?-n:n:u=n;f.params.roundLengths&&(r=d(r),u=d(u));f.params.virtualTranslate||(f.support.transforms3d?f.wrapper.transform(
"translate3d("+r+"px, "+u+"px, 0px)"):f.wrapper.transform("translate("+r+"px, "+u+"px)"));f.translate=f.isHorizontal()?r:u;e=f.maxTranslate()-f.minTranslate();o=e===0?0:(n-f.minTranslate())/e;o!==f.progress&&f.updateProgress(n);t&&f.updateActiveIndex();f.params.effect!=="slide"&&f.effects[f.params.effect]&&f.effects[f.params.effect].setTranslate(f.translate);f.params.parallax&&f.parallax&&f.parallax.setTranslate(f.translate);f.params.scrollbar&&f.scrollbar&&f.scrollbar.setTranslate(f.translate);f.params.control&&f.controller&&f.controller.setTranslate(f.translate,i);f.emit("onSetTranslate",f,f.translate)},f.getTranslate=function(n,t){var u,i,r,e;return(typeof t=="undefined"&&(t="x"),f.params.virtualTranslate)?f.rtl?-f.translate:f.translate:(r=window.getComputedStyle(n,null),window.WebKitCSSMatrix?(i=r.transform||r.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(n){return n.replace(",",".")}).join(", ")),e=new window.WebKitCSSMatrix(i==="none"?"":i)):(e=r.MozTransform||r.OTransform||r.MsTransform||
r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),u=e.toString().split(",")),t==="x"&&(i=window.WebKitCSSMatrix?e.m41:u.length===16?parseFloat(u[12]):parseFloat(u[4])),t==="y"&&(i=window.WebKitCSSMatrix?e.m42:u.length===16?parseFloat(u[13]):parseFloat(u[5])),f.rtl&&i&&(i=-i),i||0)},f.getWrapperTranslate=function(n){return typeof n=="undefined"&&(n=f.isHorizontal()?"x":"y"),f.getTranslate(f.wrapper[0],n)},f.observers=[],f.initObservers=function(){var t,n;if(f.params.observeParents)for(t=f.container.parents(),n=0;n<t.length;n++)lt(t[n]);lt(f.container[0],{childList:!1});lt(f.wrapper[0],{attributes:!1})},f.disconnectObservers=function(){for(var n=0;n<f.observers.length;n++)f.observers[n].disconnect();f.observers=[]},f.createLoop=function(){var i,r,u,t;for(f.wrapper.children("."+f.params.slideClass+"."+f.params.slideDuplicateClass).remove(),i=f.wrapper.children("."+f.params.slideClass),f.params.slidesPerView!=="auto"||f.params.loopedSlides||(f.params.loopedSlides=
i.length),f.loopedSlides=parseInt(f.params.loopedSlides||f.params.slidesPerView,10),f.loopedSlides=f.loopedSlides+f.params.loopAdditionalSlides,f.loopedSlides>i.length&&(f.loopedSlides=i.length),r=[],u=[],i.each(function(t,e){var o=n(this);t<f.loopedSlides&&u.push(e);t<i.length&&t>=i.length-f.loopedSlides&&r.push(e);o.attr("data-swiper-slide-index",t)}),t=0;t<u.length;t++)f.wrapper.append(n(u[t].cloneNode(!0)).addClass(f.params.slideDuplicateClass));for(t=r.length-1;t>=0;t--)f.wrapper.prepend(n(r[t].cloneNode(!0)).addClass(f.params.slideDuplicateClass))},f.destroyLoop=function(){f.wrapper.children("."+f.params.slideClass+"."+f.params.slideDuplicateClass).remove();f.slides.removeAttr("data-swiper-slide-index")},f.reLoop=function(n){var t=f.activeIndex-f.loopedSlides;f.destroyLoop();f.createLoop();f.updateSlidesSize();n&&f.slideTo(t+f.loopedSlides,0,!1)},f.fixLoop=function(){var n;f.activeIndex<f.loopedSlides?(n=f.slides.length-f.loopedSlides*3+f.activeIndex,n=n+f.loopedSlides,f.slideTo(n,0,!1,!0)):(f.params.slidesPerView===
"auto"&&f.activeIndex>=f.loopedSlides*2||f.activeIndex>f.slides.length-f.params.slidesPerView*2)&&(n=-f.slides.length+f.activeIndex+f.loopedSlides,n=n+f.loopedSlides,f.slideTo(n,0,!1,!0))},f.appendSlide=function(n){if(f.params.loop&&f.destroyLoop(),typeof n=="object"&&n.length)for(var t=0;t<n.length;t++)n[t]&&f.wrapper.append(n[t]);else f.wrapper.append(n);f.params.loop&&f.createLoop();f.params.observer&&f.support.observer||f.update(!0)},f.prependSlide=function(n){var i,t;if(f.params.loop&&f.destroyLoop(),i=f.activeIndex+1,typeof n=="object"&&n.length){for(t=0;t<n.length;t++)n[t]&&f.wrapper.prepend(n[t]);i=f.activeIndex+n.length}else f.wrapper.prepend(n);f.params.loop&&f.createLoop();f.params.observer&&f.support.observer||f.update(!0);f.slideTo(i,0,!1)},f.removeSlide=function(n){var t,i,r;if(f.params.loop&&(f.destroyLoop(),f.slides=f.wrapper.children("."+f.params.slideClass)),t=f.activeIndex,typeof n=="object"&&n.length){for(r=0;r<n.length;r++)i=n[r],f.slides[i]&&f.slides.eq(i).remove(),i<t&&t--;t=Math.max(t,
0)}else i=n,f.slides[i]&&f.slides.eq(i).remove(),i<t&&t--,t=Math.max(t,0);f.params.loop&&f.createLoop();f.params.observer&&f.support.observer||f.update(!0);f.params.loop?f.slideTo(t+f.loopedSlides,0,!1):f.slideTo(t,0,!1)},f.removeAllSlides=function(){for(var t=[],n=0;n<f.slides.length;n++)t.push(n);f.removeSlide(t)},f.effects={fade:{setTranslate:function(){for(var r,u,t=0;t<f.slides.length;t++){var i=f.slides.eq(t),e=i[0].swiperSlideOffset,n=-e;f.params.virtualTranslate||(n=n-f.translate);r=0;f.isHorizontal()||(r=n,n=0);u=f.params.fade.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:u}).transform("translate3d("+n+"px, "+r+"px, 0px)")}},setTransition:function(n){if(f.slides.transition(n),f.params.virtualTranslate&&n!==0){var t=!1;f.slides.transitionEnd(function(){var i,n;if(!t&&f)for(t=!0,f.animating=!1,i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],n=0;n<i.length;n++)f.wrapper.trigger(i[n])})}}},flip:{setTranslate:
function(){for(var t,i,r,u,o=0;o<f.slides.length;o++){t=f.slides.eq(o);i=t[0].progress;f.params.flip.limitRotation&&(i=Math.max(Math.min(t[0].progress,1),-1));var l=t[0].swiperSlideOffset,a=-180*i,e=a,h=0,s=-l,c=0;f.isHorizontal()?f.rtl&&(e=-e):(c=s,s=0,h=-e,e=0);t[0].style.zIndex=-Math.abs(Math.round(i))+f.slides.length;f.params.flip.slideShadows&&(r=f.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),u=f.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom"),r.length===0&&(r=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"left":"top")+'"><\/div>'),t.append(r)),u.length===0&&(u=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"right":"bottom")+'"><\/div>'),t.append(u)),r.length&&(r[0].style.opacity=Math.max(-i,0)),u.length&&(u[0].style.opacity=Math.max(i,0)));t.transform("translate3d("+s+"px, "+c+"px, 0px) rotateX("+h+"deg) rotateY("+e+"deg)")}},setTransition:function(t){if(f.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").
transition(t),f.params.virtualTranslate&&t!==0){var i=!1;f.slides.eq(f.activeIndex).transitionEnd(function(){var r,t;if(!i&&f&&n(this).hasClass(f.params.slideActiveClass))for(i=!0,f.animating=!1,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t=0;t<r.length;t++)f.wrapper.trigger(r[t])})}}},cube:{setTranslate:function(){var e=0,t,i,y,h,c,b;for(f.params.cube.shadow&&(f.isHorizontal()?(t=f.wrapper.find(".swiper-cube-shadow"),t.length===0&&(t=n('<div class="swiper-cube-shadow"><\/div>'),f.wrapper.append(t)),t.css({height:f.width+"px"})):(t=f.container.find(".swiper-cube-shadow"),t.length===0&&(t=n('<div class="swiper-cube-shadow"><\/div>'),f.container.append(t)))),i=0;i<f.slides.length;i++){var u=f.slides.eq(i),o=i*90,l=Math.floor(o/360);f.rtl&&(o=-o,l=Math.floor(-o/360));var s=Math.max(Math.min(u[0].progress,1),-1),r=0,v=0,a=0;i%4==0?(r=-l*4*f.size,a=0):(i-1)%4==0?(r=0,a=-l*4*f.size):(i-2)%4==0?(r=f.size+l*4*f.size,a=f.size):(i-3)%4==0&&(r=-f.size,a=3*f.size+f.size*
4*l);f.rtl&&(r=-r);f.isHorizontal()||(v=r,r=0);y="rotateX("+(f.isHorizontal()?0:-o)+"deg) rotateY("+(f.isHorizontal()?o:0)+"deg) translate3d("+r+"px, "+v+"px, "+a+"px)";s<=1&&s>-1&&(e=i*90+s*90,f.rtl&&(e=-i*90-s*90));u.transform(y);f.params.cube.slideShadows&&(h=f.isHorizontal()?u.find(".swiper-slide-shadow-left"):u.find(".swiper-slide-shadow-top"),c=f.isHorizontal()?u.find(".swiper-slide-shadow-right"):u.find(".swiper-slide-shadow-bottom"),h.length===0&&(h=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"left":"top")+'"><\/div>'),u.append(h)),c.length===0&&(c=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"right":"bottom")+'"><\/div>'),u.append(c)),h.length&&(h[0].style.opacity=Math.max(-s,0)),c.length&&(c[0].style.opacity=Math.max(s,0)))}if(f.wrapper.css({"-webkit-transform-origin":"50% 50% -"+f.size/2+"px","-moz-transform-origin":"50% 50% -"+f.size/2+"px","-ms-transform-origin":"50% 50% -"+f.size/2+"px","transform-origin":"50% 50% -"+f.size/2+"px"}),f.params.cube.shadow)if(f.isHorizontal())t.
transform("translate3d(0px, "+(f.width/2+f.params.cube.shadowOffset)+"px, "+-f.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+f.params.cube.shadowScale+")");else{var p=Math.abs(e)-Math.floor(Math.abs(e)/90)*90,k=1.5-(Math.sin(p*2*Math.PI/360)/2+Math.cos(p*2*Math.PI/360)/2),d=f.params.cube.shadowScale,w=f.params.cube.shadowScale/k,g=f.params.cube.shadowOffset;t.transform("scale3d("+d+", 1, "+w+") translate3d(0px, "+(f.height/2+g)+"px, "+-f.height/2/w+"px) rotateX(-90deg)")}b=f.isSafari||f.isUiWebView?-f.size/2:0;f.wrapper.transform("translate3d(0px,0,"+b+"px) rotateX("+(f.isHorizontal()?0:e)+"deg) rotateY("+(f.isHorizontal()?-e:0)+"deg)")},setTransition:function(n){f.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n);f.params.cube.shadow&&!f.isHorizontal()&&f.container.find(".swiper-cube-shadow").transition(n)}},coverflow:{setTranslate:function(){for(var w,r,u,b,a=f.translate,v=f.isHorizontal()?-a+f.width/2:
-a+f.height/2,y=f.isHorizontal()?f.params.coverflow.rotate:-f.params.coverflow.rotate,k=f.params.coverflow.depth,e=0,d=f.slides.length;e<d;e++){var i=f.slides.eq(e),p=f.slidesSizesGrid[e],g=i[0].swiperSlideOffset,t=(v-g-p/2)/p*f.params.coverflow.modifier,o=f.isHorizontal()?y*t:0,s=f.isHorizontal()?0:y*t,h=-k*Math.abs(t),c=f.isHorizontal()?0:f.params.coverflow.stretch*t,l=f.isHorizontal()?f.params.coverflow.stretch*t:0;Math.abs(l)<.001&&(l=0);Math.abs(c)<.001&&(c=0);Math.abs(h)<.001&&(h=0);Math.abs(o)<.001&&(o=0);Math.abs(s)<.001&&(s=0);w="translate3d("+l+"px,"+c+"px,"+h+"px)  rotateX("+s+"deg) rotateY("+o+"deg)";i.transform(w);i[0].style.zIndex=-Math.abs(Math.round(t))+1;f.params.coverflow.slideShadows&&(r=f.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),u=f.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom"),r.length===0&&(r=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"left":"top")+'"><\/div>'),i.append(r)),u.length===0&&
(u=n('<div class="swiper-slide-shadow-'+(f.isHorizontal()?"right":"bottom")+'"><\/div>'),i.append(u)),r.length&&(r[0].style.opacity=t>0?t:0),u.length&&(u[0].style.opacity=-t>0?-t:0))}f.browser.ie&&(b=f.wrapper[0].style,b.perspectiveOrigin=v+"px 50%")},setTransition:function(n){f.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n)}}},f.lazy={initialImageLoaded:!1,loadImageInSlide:function(t,i){if(typeof t!="undefined"&&(typeof i=="undefined"&&(i=!0),f.slides.length!==0)){var r=f.slides.eq(t),u=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");(!r.hasClass("swiper-lazy")||r.hasClass("swiper-lazy-loaded")||r.hasClass("swiper-lazy-loading")||(u=u.add(r[0])),u.length!==0)&&u.each(function(){var t=n(this);t.addClass("swiper-lazy-loading");var u=t.attr("data-background"),e=t.attr("data-src"),o=t.attr("data-srcset");f.loadImage(t[0],e||u,o,!1,function(){var n,s,h;u?(t.css("background-image",'url("'+
u+'")'),t.removeAttr("data-background")):(o&&(t.attr("srcset",o),t.removeAttr("data-srcset")),e&&(t.attr("src",e),t.removeAttr("data-src")));t.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading");r.find(".swiper-lazy-preloader, .preloader").remove();f.params.loop&&i&&(n=r.attr("data-swiper-slide-index"),r.hasClass(f.params.slideDuplicateClass)?(s=f.wrapper.children('[data-swiper-slide-index="'+n+'"]:not(.'+f.params.slideDuplicateClass+")"),f.lazy.loadImageInSlide(s.index(),!1)):(h=f.wrapper.children("."+f.params.slideDuplicateClass+'[data-swiper-slide-index="'+n+'"]'),f.lazy.loadImageInSlide(h.index(),!1)));f.emit("onLazyImageReady",f,r[0],t[0])});f.emit("onLazyImageLoad",f,r[0],t[0])})}},load:function(){var t,r,u;if(f.params.watchSlidesVisibility)f.wrapper.children("."+f.params.slideVisibleClass).each(function(){f.lazy.loadImageInSlide(n(this).index())});else if(f.params.slidesPerView>1)for(t=f.activeIndex;t<f.activeIndex+f.params.slidesPerView;t++)f.slides[t]&&f.lazy.loadImageInSlide(t);else f.
lazy.loadImageInSlide(f.activeIndex);if(f.params.lazyLoadingInPrevNext)if(f.params.slidesPerView>1||f.params.lazyLoadingInPrevNextAmount&&f.params.lazyLoadingInPrevNextAmount>1){var e=f.params.lazyLoadingInPrevNextAmount,i=f.params.slidesPerView,o=Math.min(f.activeIndex+i+Math.max(e,i),f.slides.length),s=Math.max(f.activeIndex-Math.max(i,e),0);for(t=f.activeIndex+f.params.slidesPerView;t<o;t++)f.slides[t]&&f.lazy.loadImageInSlide(t);for(t=s;t<f.activeIndex;t++)f.slides[t]&&f.lazy.loadImageInSlide(t)}else r=f.wrapper.children("."+f.params.slideNextClass),r.length>0&&f.lazy.loadImageInSlide(r.index()),u=f.wrapper.children("."+f.params.slidePrevClass),u.length>0&&f.lazy.loadImageInSlide(u.index())},onTransitionStart:function(){f.params.lazyLoading&&(!f.params.lazyLoadingOnTransitionStart&&(f.params.lazyLoadingOnTransitionStart||f.lazy.initialImageLoaded)||f.lazy.load())},onTransitionEnd:function(){f.params.lazyLoading&&!f.params.lazyLoadingOnTransitionStart&&f.lazy.load()}},f.scrollbar={isTouched:!1,setDragPosition:
function(n){var i=f.scrollbar,e=f.isHorizontal()?n.type==="touchstart"||n.type==="touchmove"?n.targetTouches[0].pageX:n.pageX||n.clientX:n.type==="touchstart"||n.type==="touchmove"?n.targetTouches[0].pageY:n.pageY||n.clientY,t=e-i.track.offset()[f.isHorizontal()?"left":"top"]-i.dragSize/2,r=-f.minTranslate()*i.moveDivider,u=-f.maxTranslate()*i.moveDivider;t<r?t=r:t>u&&(t=u);t=-t/i.moveDivider;f.updateProgress(t);f.setWrapperTranslate(t,!0)},dragStart:function(n){var t=f.scrollbar;t.isTouched=!0;n.preventDefault();n.stopPropagation();t.setDragPosition(n);clearTimeout(t.dragTimeout);t.track.transition(0);f.params.scrollbarHide&&t.track.css("opacity",1);f.wrapper.transition(100);t.drag.transition(100);f.emit("onScrollbarDragStart",f)},dragMove:function(n){var t=f.scrollbar;t.isTouched&&(n.preventDefault?n.preventDefault():n.returnValue=!1,t.setDragPosition(n),f.wrapper.transition(0),t.track.transition(0),t.drag.transition(0),f.emit("onScrollbarDragMove",f))},dragEnd:function(){var n=f.scrollbar;n.isTouched&&(n.isTouched=
!1,f.params.scrollbarHide&&(clearTimeout(n.dragTimeout),n.dragTimeout=setTimeout(function(){n.track.css("opacity",0);n.track.transition(400)},1e3)),f.emit("onScrollbarDragEnd",f),f.params.scrollbarSnapOnRelease&&f.slideReset())},enableDraggable:function(){var t=f.scrollbar,i=f.support.touch?t.track:document;n(t.track).on(f.touchEvents.start,t.dragStart);n(i).on(f.touchEvents.move,t.dragMove);n(i).on(f.touchEvents.end,t.dragEnd)},disableDraggable:function(){var t=f.scrollbar,i=f.support.touch?t.track:document;n(t.track).off(f.touchEvents.start,t.dragStart);n(i).off(f.touchEvents.move,t.dragMove);n(i).off(f.touchEvents.end,t.dragEnd)},set:function(){if(f.params.scrollbar){var t=f.scrollbar;t.track=n(f.params.scrollbar);f.params.uniqueNavElements&&typeof f.params.scrollbar=="string"&&t.track.length>1&&f.container.find(f.params.scrollbar).length===1&&(t.track=f.container.find(f.params.scrollbar));t.drag=t.track.find(".swiper-scrollbar-drag");t.drag.length===0&&(t.drag=n('<div class="swiper-scrollbar-drag"><\/div>'),
t.track.append(t.drag));t.drag[0].style.width="";t.drag[0].style.height="";t.trackSize=f.isHorizontal()?t.track[0].offsetWidth:t.track[0].offsetHeight;t.divider=f.size/f.virtualSize;t.moveDivider=t.divider*(t.trackSize/f.size);t.dragSize=t.trackSize*t.divider;f.isHorizontal()?t.drag[0].style.width=t.dragSize+"px":t.drag[0].style.height=t.dragSize+"px";t.track[0].style.display=t.divider>=1?"none":"";f.params.scrollbarHide&&(t.track[0].style.opacity=0)}},setTranslate:function(){if(f.params.scrollbar){var n=f.scrollbar,r=f.translate||0,t,i=n.dragSize;t=(n.trackSize-n.dragSize)*f.progress;f.rtl&&f.isHorizontal()?(t=-t,t>0?(i=n.dragSize-t,t=0):-t+n.dragSize>n.trackSize&&(i=n.trackSize+t)):t<0?(i=n.dragSize+t,t=0):t+n.dragSize>n.trackSize&&(i=n.trackSize-t);f.isHorizontal()?(f.support.transforms3d?n.drag.transform("translate3d("+t+"px, 0, 0)"):n.drag.transform("translateX("+t+"px)"),n.drag[0].style.width=i+"px"):(f.support.transforms3d?n.drag.transform("translate3d(0px, "+t+"px, 0)"):n.drag.transform("translateY("+
t+"px)"),n.drag[0].style.height=i+"px");f.params.scrollbarHide&&(clearTimeout(n.timeout),n.track[0].style.opacity=1,n.timeout=setTimeout(function(){n.track[0].style.opacity=0;n.track.transition(400)},1e3))}},setTransition:function(n){f.params.scrollbar&&f.scrollbar.drag.transition(n)}},f.controller={LinearSpline:function(n,t){var i,r,f,u;this.x=n;this.y=t;this.lastIndex=n.length-1;f=this.x.length;this.interpolate=function(n){return n?(r=u(this.x,n),i=r-1,(n-this.x[i])*(this.y[r]-this.y[i])/(this.x[r]-this.x[i])+this.y[i]):0};u=function(){var n,t,i;return function(r,u){for(t=-1,n=r.length;n-t>1;)r[i=n+t>>1]<=u?t=i:n=i;return n}}()},getInterpolateFunction:function(n){f.controller.spline||(f.controller.spline=f.params.loop?new f.controller.LinearSpline(f.slidesGrid,n.slidesGrid):new f.controller.LinearSpline(f.snapGrid,n.snapGrid))},setTranslate:function(n,i){function s(t){n=t.rtl&&t.params.direction==="horizontal"?-f.translate:f.translate;f.params.controlBy==="slide"&&(f.controller.getInterpolateFunction(t),u=-f.
controller.spline.interpolate(-n));u&&f.params.controlBy!=="container"||(o=(t.maxTranslate()-t.minTranslate())/(f.maxTranslate()-f.minTranslate()),u=(n-f.minTranslate())*o+t.minTranslate());f.params.controlInverse&&(u=t.maxTranslate()-u);t.updateProgress(u);t.setWrapperTranslate(u,!1,f);t.updateActiveIndex()}var r=f.params.control,o,u,e;if(f.isArray(r))for(e=0;e<r.length;e++)r[e]!==i&&r[e]instanceof t&&s(r[e]);else r instanceof t&&i!==r&&s(r)},setTransition:function(n,i){function e(t){t.setWrapperTransition(n,f);n!==0&&(t.onTransitionStart(),t.wrapper.transitionEnd(function(){r&&(t.params.loop&&f.params.controlBy==="slide"&&t.fixLoop(),t.onTransitionEnd())}))}var r=f.params.control,u;if(f.isArray(r))for(u=0;u<r.length;u++)r[u]!==i&&r[u]instanceof t&&e(r[u]);else r instanceof t&&i!==r&&e(r)}},f.hashnav={init:function(){var i,r,n,u,t,e,o;if(f.params.hashnav&&(f.hashnav.initialized=!0,i=document.location.hash.replace("#",""),i))for(r=0,n=0,u=f.slides.length;n<u;n++)t=f.slides.eq(n),e=t.attr("data-hash"),e!==i||t.
hasClass(f.params.slideDuplicateClass)||(o=t.index(),f.slideTo(o,r,f.params.runCallbacksOnInit,!0))},setHash:function(){f.hashnav.initialized&&f.params.hashnav&&(document.location.hash=f.slides.eq(f.activeIndex).attr("data-hash")||"")}},f.disableKeyboardControl=function(){f.params.keyboardControl=!1;n(document).off("keydown",wt)},f.enableKeyboardControl=function(){f.params.keyboardControl=!0;n(document).on("keydown",wt)},f.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},f.params.mousewheelControl){try{new window.WheelEvent("wheel");f.mousewheel.event="wheel"}catch(dt){(window.WheelEvent||f.container[0]&&"wheel"in f.container[0])&&(f.mousewheel.event="wheel")}!f.mousewheel.event&&window.WheelEvent;f.mousewheel.event||document.onmousewheel===undefined||(f.mousewheel.event="mousewheel");f.mousewheel.event||(f.mousewheel.event="DOMMouseScroll")}f.disableMousewheelControl=function(){return f.mousewheel.event?(f.container.off(f.mousewheel.event,bt),!0):!1};f.enableMousewheelControl=function(){if(!f.
mousewheel.event)return!1;f.container.on(f.mousewheel.event,bt);return!0};f.parallax={setTranslate:function(){f.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){kt(this,f.progress)});f.slides.each(function(){var t=n(this);t.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var n=Math.min(Math.max(t[0].progress,-1),1);kt(this,n)})})},setTransition:function(t){typeof t=="undefined"&&(t=f.params.speed);f.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var i=n(this),r=parseInt(i.attr("data-swiper-parallax-duration"),10)||t;t===0&&(r=0);i.transition(r)})}};f._plugins=[];for(at in f.plugins)vt=f.plugins[at](f,f.params[at]),vt&&f._plugins.push(vt);return f.callPlugins=function(n){for(var t=0;t<f._plugins.length;t++)n in f._plugins[t]&&f._plugins[t][n](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},f.emitterEventListeners={},f.
emit=function(n){f.params[n]&&f.params[n](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(f.emitterEventListeners[n])for(t=0;t<f.emitterEventListeners[n].length;t++)f.emitterEventListeners[n][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);f.callPlugins&&f.callPlugins(n,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},f.on=function(n,t){return n=yt(n),f.emitterEventListeners[n]||(f.emitterEventListeners[n]=[]),f.emitterEventListeners[n].push(t),f},f.off=function(n,t){var i;if(n=yt(n),typeof t=="undefined")return f.emitterEventListeners[n]=[],f;if(f.emitterEventListeners[n]&&f.emitterEventListeners[n].length!==0){for(i=0;i<f.emitterEventListeners[n].length;i++)f.emitterEventListeners[n][i]===t&&f.emitterEventListeners[n].splice(i,1);return f}},f.once=function(n,t){n=yt(n);var i=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);f.off(n,i)};f.on(n,i);return f},f.a11y={makeFocusable:function(n){return n.attr("tabIndex",
"0"),n},addRole:function(n,t){return n.attr("role",t),n},addLabel:function(n,t){return n.attr("aria-label",t),n},disable:function(n){return n.attr("aria-disabled",!0),n},enable:function(n){return n.attr("aria-disabled",!1),n},onEnterKey:function(t){if(t.keyCode===13){if(n(t.target).is(f.params.nextButton)){f.onClickNext(t);f.isEnd?f.a11y.notify(f.params.lastSlideMessage):f.a11y.notify(f.params.nextSlideMessage)}else if(n(t.target).is(f.params.prevButton)){f.onClickPrev(t);f.isBeginning?f.a11y.notify(f.params.firstSlideMessage):f.a11y.notify(f.params.prevSlideMessage)}n(t.target).is("."+f.params.bulletClass)&&n(t.target)[0].click()}},liveRegion:n('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"><\/span>'),notify:function(n){var t=f.a11y.liveRegion;t.length!==0&&(t.html(""),t.html(n))},init:function(){f.params.nextButton&&f.nextButton&&f.nextButton.length>0&&(f.a11y.makeFocusable(f.nextButton),f.a11y.addRole(f.nextButton,"button"),f.a11y.addLabel(f.nextButton,f.params.nextSlideMessage));
f.params.prevButton&&f.prevButton&&f.prevButton.length>0&&(f.a11y.makeFocusable(f.prevButton),f.a11y.addRole(f.prevButton,"button"),f.a11y.addLabel(f.prevButton,f.params.prevSlideMessage));n(f.container).append(f.a11y.liveRegion)},initPagination:function(){f.params.pagination&&f.params.paginationClickable&&f.bullets&&f.bullets.length&&f.bullets.each(function(){var t=n(this);f.a11y.makeFocusable(t);f.a11y.addRole(t,"button");f.a11y.addLabel(t,f.params.paginationBulletMessage.replace(/{{index}}/,t.index()+1))})},destroy:function(){f.a11y.liveRegion&&f.a11y.liveRegion.length>0&&f.a11y.liveRegion.remove()}},f.init=function(){f.params.loop&&f.createLoop();f.updateContainerSize();f.updateSlidesSize();f.updatePagination();f.params.scrollbar&&f.scrollbar&&(f.scrollbar.set(),f.params.scrollbarDraggable&&f.scrollbar.enableDraggable());f.params.effect!=="slide"&&f.effects[f.params.effect]&&(f.params.loop||f.updateProgress(),f.effects[f.params.effect].setTranslate());f.params.loop?f.slideTo(f.params.initialSlide+f.loopedSlides,
0,f.params.runCallbacksOnInit):(f.slideTo(f.params.initialSlide,0,f.params.runCallbacksOnInit),f.params.initialSlide===0&&(f.parallax&&f.params.parallax&&f.parallax.setTranslate(),f.lazy&&f.params.lazyLoading&&(f.lazy.load(),f.lazy.initialImageLoaded=!0)));f.attachEvents();f.params.observer&&f.support.observer&&f.initObservers();f.params.preloadImages&&!f.params.lazyLoading&&f.preloadImages();f.params.autoplay&&f.startAutoplay();f.params.keyboardControl&&f.enableKeyboardControl&&f.enableKeyboardControl();f.params.mousewheelControl&&f.enableMousewheelControl&&f.enableMousewheelControl();f.params.hashnav&&f.hashnav&&f.hashnav.init();f.params.a11y&&f.a11y&&f.a11y.init();f.emit("onInit",f)},f.cleanupStyles=function(){f.container.removeClass(f.classNames.join(" ")).removeAttr("style");f.wrapper.removeAttr("style");f.slides&&f.slides.length&&f.slides.removeClass([f.params.slideVisibleClass,f.params.slideActiveClass,f.params.slideNextClass,f.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").
removeAttr("data-swiper-row");f.paginationContainer&&f.paginationContainer.length&&f.paginationContainer.removeClass(f.params.paginationHiddenClass);f.bullets&&f.bullets.length&&f.bullets.removeClass(f.params.bulletActiveClass);f.params.prevButton&&n(f.params.prevButton).removeClass(f.params.buttonDisabledClass);f.params.nextButton&&n(f.params.nextButton).removeClass(f.params.buttonDisabledClass);f.params.scrollbar&&f.scrollbar&&(f.scrollbar.track&&f.scrollbar.track.length&&f.scrollbar.track.removeAttr("style"),f.scrollbar.drag&&f.scrollbar.drag.length&&f.scrollbar.drag.removeAttr("style"))},f.destroy=function(n,t){f.detachEvents();f.stopAutoplay();f.params.scrollbar&&f.scrollbar&&f.params.scrollbarDraggable&&f.scrollbar.disableDraggable();f.params.loop&&f.destroyLoop();t&&f.cleanupStyles();f.disconnectObservers();f.params.keyboardControl&&f.disableKeyboardControl&&f.disableKeyboardControl();f.params.mousewheelControl&&f.disableMousewheelControl&&f.disableMousewheelControl();f.params.a11y&&f.a11y&&f.a11y.destroy(
);f.emit("onDestroy");n!==!1&&(f=null)},f.init(),f}},i,f,u,r;t.prototype={isSafari:function(){var n=navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(n){return Object.prototype.toString.apply(n)==="[object Array]"},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var n=navigator.userAgent,i=n.match(/(Android);?[\s\/]+([\d.]+)?/),t=n.match(/(iPad).*OS\s([\d_]+)/),r=n.match(/(iPod)(.*OS\s([\d_]+))?/),u=!t&&n.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:t||u||r,android:i}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&
Modernizr.csstransforms3d===!0||function(){var n=document.createElement("div").style;return"webkitPerspective"in n||"MozPerspective"in n||"OPerspective"in n||"MsPerspective"in n||"perspective"in n}(),flexbox:function(){for(var i=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<t.length;n++)if(t[n]in i)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};i=function(){var n=function(n){for(var i=this,t=0,t=0;t<n.length;t++)i[t]=n[t];return i.length=n.length,this},t=function(t,i){var e=[],r=0,o,s,u,f;if(t&&!i&&t instanceof n)return t;if(t)if(typeof t=="string")if(u=t.trim(),u.indexOf("<")>=0&&u.indexOf(">")>=0)for(f="div",u.indexOf("<li")===0&&(f="ul"),u.indexOf("<tr")===0&&(f="tbody"),(u.indexOf("<td")===0||u.indexOf("<th")===0)&&(f="tr"),u.indexOf("<tbody")===0&&(f="table"),u.
indexOf("<option")===0&&(f="select"),s=document.createElement(f),s.innerHTML=t,r=0;r<s.childNodes.length;r++)e.push(s.childNodes[r]);else for(o=i||t[0]!=="#"||t.match(/[ .<>:~]/)?(i||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],r=0;r<o.length;r++)o[r]&&e.push(o[r]);else if(t.nodeType||t===window||t===document)e.push(t);else if(t.length>0&&t[0].nodeType)for(r=0;r<t.length;r++)e.push(t[r]);return new n(e)};return n.prototype={addClass:function(n){var r,t,i;if(typeof n=="undefined")return this;for(r=n.split(" "),t=0;t<r.length;t++)for(i=0;i<this.length;i++)this[i].classList.add(r[t]);return this},removeClass:function(n){for(var t,r=n.split(" "),i=0;i<r.length;i++)for(t=0;t<this.length;t++)this[t].classList.remove(r[i]);return this},hasClass:function(n){return this[0]?this[0].classList.contains(n):!1},toggleClass:function(n){for(var t,r=n.split(" "),i=0;i<r.length;i++)for(t=0;t<this.length;t++)this[t].classList.toggle(r[i]);return this},attr:function(n,t){var i,r;if(arguments.length===
1&&typeof n=="string")return this[0]?this[0].getAttribute(n):undefined;for(i=0;i<this.length;i++)if(arguments.length===2)this[i].setAttribute(n,t);else for(r in n)this[i][r]=n[r],this[i].setAttribute(r,n[r]);return this},removeAttr:function(n){for(var t=0;t<this.length;t++)this[t].removeAttribute(n);return this},data:function(n,t){var u,i,r;if(typeof t=="undefined")return this[0]?(u=this[0].getAttribute("data-"+n),u?u:this[0].dom7ElementDataStorage&&n in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[n]:undefined):undefined;for(i=0;i<this.length;i++)r=this[i],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[n]=t;return this},transform:function(n){for(var t,i=0;i<this.length;i++)t=this[i].style,t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=n;return this},transition:function(n){var i,t;for(typeof n!="string"&&(n=n+"ms"),i=0;i<this.length;i++)t=this[i].style,t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=
t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n;return this},on:function(n,i,r,u){function s(n){var e=n.target,f,u;if(t(e).is(i))r.call(e,n);else for(f=t(e).parents(),u=0;u<f.length;u++)t(f[u]).is(i)&&r.call(f[u],n)}for(var o=n.split(" "),e,f=0;f<this.length;f++)if(typeof i=="function"||i===!1)for(typeof i=="function"&&(r=arguments[1],u=arguments[2]||!1),e=0;e<o.length;e++)this[f].addEventListener(o[e],r,u);else for(e=0;e<o.length;e++)this[f].dom7LiveListeners||(this[f].dom7LiveListeners=[]),this[f].dom7LiveListeners.push({listener:r,liveListener:s}),this[f].addEventListener(o[e],s,u);return this},off:function(n,t,i,r){for(var u,f,o=n.split(" "),e=0;e<o.length;e++)for(u=0;u<this.length;u++)if(typeof t=="function"||t===!1)typeof t=="function"&&(i=arguments[1],r=arguments[2]||!1),this[u].removeEventListener(o[e],i,r);else if(this[u].dom7LiveListeners)for(f=0;f<this[u].dom7LiveListeners.length;f++)this[u].dom7LiveListeners[f].listener===i&&this[u].removeEventListener(o[e],this[u].dom7LiveListeners[
f].liveListener,r);return this},once:function(n,t,i,r){function f(e){i(e);u.off(n,t,f,r)}var u=this;typeof t=="function"&&(t=!1,i=arguments[1],r=arguments[2]);u.on(n,t,f,r)},trigger:function(n,t){for(var i,r=0;r<this.length;r++){try{i=new window.CustomEvent(n,{detail:t,bubbles:!0,cancelable:!0})}catch(u){i=document.createEvent("Event");i.initEvent(n,!0,!0);i.detail=t}this[r].dispatchEvent(i)}return this},transitionEnd:function(n){function u(f){if(f.target===this)for(n.call(this,f),t=0;t<i.length;t++)r.off(i[t],u)}var i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t,r=this;if(n)for(t=0;t<i.length;t++)r.on(i[t],u);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(n){return this.length>0?n?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>
0?parseFloat(this.css("height")):null},outerHeight:function(n){return this.length>0?n?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var n=this[0],t=n.getBoundingClientRect(),i=document.body,r=n.clientTop||i.clientTop||0,u=n.clientLeft||i.clientLeft||0,f=window.pageYOffset||n.scrollTop,e=window.pageXOffset||n.scrollLeft;return{top:t.top+f-r,left:t.left+e-u}}return null},css:function(n,t){var i,r;if(arguments.length===1)if(typeof n=="string"){if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(i=0;i<this.length;i++)for(r in n)this[i].style[r]=n[r];return this}if(arguments.length===2&&typeof n=="string"){for(i=0;i<this.length;i++)this[i].style[n]=t;return this}return this},each:function(n){for(var t=0;t<this.length;t++)n.call(this[t],t,this[t]);return this},html:function(n){if(typeof n=="undefined")return this[0]?this[0].innerHTML:undefined;for(var t=0;t<this.length;t++)
this[t].innerHTML=n;return this},text:function(n){if(typeof n=="undefined")return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t++)this[t].textContent=n;return this},is:function(i){var f,u,r;if(!this[0])return!1;if(typeof i=="string"){if(r=this[0],r===document)return i===document;if(r===window)return i===window;if(r.matches)return r.matches(i);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(i);if(r.mozMatchesSelector)return r.mozMatchesSelector(i);if(r.msMatchesSelector)return r.msMatchesSelector(i);for(f=t(i),u=0;u<f.length;u++)if(f[u]===this[0])return!0;return!1}if(i===document)return this[0]===document;if(i===window)return this[0]===window;if(i.nodeType||i instanceof n){for(f=i.nodeType?[i]:i,u=0;u<f.length;u++)if(f[u]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var n=this[0],t=0;(n=n.previousSibling)!==null;)n.nodeType===1&&t++;return t}return undefined},eq:function(t){if(typeof t=="undefined")return this;var r=this.length,i;return t>r-1?new n([]):
t<0?(i=r+t,i<0?new n([]):new n([this[i]])):new n([this[t]])},append:function(t){for(var r,u,i=0;i<this.length;i++)if(typeof t=="string")for(u=document.createElement("div"),u.innerHTML=t;u.firstChild;)this[i].appendChild(u.firstChild);else if(t instanceof n)for(r=0;r<t.length;r++)this[i].appendChild(t[r]);else this[i].appendChild(t);return this},prepend:function(t){for(var r,u,i=0;i<this.length;i++)if(typeof t=="string")for(u=document.createElement("div"),u.innerHTML=t,r=u.childNodes.length-1;r>=0;r--)this[i].insertBefore(u.childNodes[r],this[i].childNodes[0]);else if(t instanceof n)for(r=0;r<t.length;r++)this[i].insertBefore(t[r],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},insertBefore:function(n){for(var r,i=t(n),u=0;u<this.length;u++)if(i.length===1)i[0].parentNode.insertBefore(this[u],i[0]);else if(i.length>1)for(r=0;r<i.length;r++)i[r].parentNode.insertBefore(this[u].cloneNode(!0),i[r])},insertAfter:function(n){for(var r,i=t(n),u=0;u<this.length;u++)if(i.length===
1)i[0].parentNode.insertBefore(this[u],i[0].nextSibling);else if(i.length>1)for(r=0;r<i.length;r++)i[r].parentNode.insertBefore(this[u].cloneNode(!0),i[r].nextSibling)},next:function(i){return this.length>0?i?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(i)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])},nextAll:function(i){var f=[],u=this[0],r;if(!u)return new n([]);while(u.nextElementSibling)r=u.nextElementSibling,i?t(r).is(i)&&f.push(r):f.push(r),u=r;return new n(f)},prev:function(i){return this.length>0?i?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(i)?new n([this[0].previousElementSibling]):new n([]):this[0].previousElementSibling?new n([this[0].previousElementSibling]):new n([]):new n([])},prevAll:function(i){var f=[],u=this[0],r;if(!u)return new n([]);while(u.previousElementSibling)r=u.previousElementSibling,i?t(r).is(i)&&f.push(r):f.push(r),u=r;return new n(f)},parent:function(n){for(
var r=[],i=0;i<this.length;i++)n?t(this[i].parentNode).is(n)&&r.push(this[i].parentNode):r.push(this[i].parentNode);return t(t.unique(r))},parents:function(n){for(var i,r=[],u=0;u<this.length;u++)for(i=this[u].parentNode;i;)n?t(i).is(n)&&r.push(i):r.push(i),i=i.parentNode;return t(t.unique(r))},find:function(t){for(var u,i,f=[],r=0;r<this.length;r++)for(u=this[r].querySelectorAll(t),i=0;i<u.length;i++)f.push(u[i]);return new n(f)},children:function(i){for(var u,r,f=[],e=0;e<this.length;e++)for(u=this[e].childNodes,r=0;r<u.length;r++)i?u[r].nodeType===1&&t(u[r]).is(i)&&f.push(u[r]):u[r].nodeType===1&&f.push(u[r]);return new n(t.unique(f))},remove:function(){for(var n=0;n<this.length;n++)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this},add:function(){for(var n=this,r,u,i=0;i<arguments.length;i++)for(u=t(arguments[i]),r=0;r<u.length;r++)n[n.length]=u[r],n.length++;return n}},t.fn=n.prototype,t.unique=function(n){for(var i=[],t=0;t<n.length;t++)i.indexOf(n[t])===-1&&i.push(n[t]);return i},
t}();f=["jQuery","Zepto","Dom7"];for(u=0;u<f.length;u++)window[f[u]]&&e(window[f[u]]);r=typeof i=="undefined"?window.Dom7||window.Zepto||window.jQuery:i;r&&("transitionEnd"in r.fn||(r.fn.transitionEnd=function(n){function u(f){if(f.target===this)for(n.call(this,f),t=0;t<i.length;t++)r.off(i[t],u)}var i=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t,r=this;if(n)for(t=0;t<i.length;t++)r.on(i[t],u);return this}),"transform"in r.fn||(r.fn.transform=function(n){for(var t,i=0;i<this.length;i++)t=this[i].style,t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=n;return this}),"transition"in r.fn||(r.fn.transition=function(n){var i,t;for(typeof n!="string"&&(n=n+"ms"),i=0;i<this.length;i++)t=this[i].style,t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=n;return this}));window.Swiper=t}();typeof module!="undefined"?module.exports=window.Swiper:typeof
define=="function"&&define.amd&&define([],function(){"use strict";return window.Swiper});
/*!    SWFObject v2.3.20130521 <http://github.com/swfobject/swfobject>
    is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
swfobject=function(){function w(){var n,i,u,r;if(!c&&document.getElementsByTagName("body")[0]){try{i=f("span");i.style.display="none";n=t.getElementsByTagName("body")[0].appendChild(i);n.parentNode.removeChild(n);n=null;i=null}catch(e){return}for(c=!0,u=y.length,r=0;r<u;r++)y[r]()}}function kt(n){c?n():y[y.length]=n}function ii(n){if(typeof u.addEventListener!==i)u.addEventListener("load",n,!1);else if(typeof t.addEventListener!==i)t.addEventListener("load",n,!1);else if(typeof u.attachEvent!==i)oi(u,"onload",n);else if(typeof u.onload=="function"){var r=u.onload;u.onload=function(){r();n()}}else u.onload=n}function ri(){var h=t.getElementsByTagName("body")[0],e=f(o),u,s;e.setAttribute("style","visibility: hidden;");e.setAttribute("type",b);u=h.appendChild(e);u?(s=0,function c(){if(typeof u.GetVariable!==i)try{var t=u.GetVariable("$version");t&&(t=t.split(" ")[1].split(","),n.pv=[r(t[0]),r(t[1]),r(t[2])])}catch(f){n.pv=[8,0,0]}else if(s<10){s++;setTimeout(c,10);return}h.removeChild(e);u=null;ft()}()):ft()}function ft(
){var y=s.length,u,t,o,h,c;if(y>0)for(u=0;u<y;u++){var f=s[u].id,e=s[u].callbackFn,r={success:!1,id:f};if(n.pv[0]>0){if(t=l(f),t)if(!tt(s[u].swfVersion)||n.wk&&n.wk<312)if(s[u].expressInstall&&ot()){o={};o.data=s[u].expressInstall;o.width=t.getAttribute("width")||"0";o.height=t.getAttribute("height")||"0";t.getAttribute("class")&&(o.styleclass=t.getAttribute("class"));t.getAttribute("align")&&(o.align=t.getAttribute("align"));var p={},v=t.getElementsByTagName("param"),w=v.length;for(h=0;h<w;h++)v[h].getAttribute("name").toLowerCase()!=="movie"&&(p[v[h].getAttribute("name")]=v[h].getAttribute("value"));st(o,p,f,e)}else ui(t),e&&e(r);else a(f,!0),e&&(r.success=!0,r.ref=et(f),r.id=f,e(r))}else a(f,!0),e&&(c=et(f),c&&typeof c.SetVariable!==i&&(r.success=!0,r.ref=c,r.id=c.id),e(r))}}function et(n){var r=null,t=l(n);return t&&t.nodeName.toUpperCase()==="OBJECT"&&(r=typeof t.SetVariable!==i?t:t.getElementsByTagName(o)[0]||t),r}function ot(){return!g&&tt("6.0.65")&&(n.win||n.mac)&&!(n.wk&&n.wk<312)}function st(e,o,s,
h){var c=l(s),y,a,v;s=lt(s);g=!0;it=h||null;wt={success:!1,id:s};c&&(c.nodeName.toUpperCase()==="OBJECT"?(p=ht(c),d=null):(p=c,d=s),e.id=vt,(typeof e.width===i||!/%$/.test(e.width)&&r(e.width)<310)&&(e.width="310"),(typeof e.height===i||!/%$/.test(e.height)&&r(e.height)<137)&&(e.height="137"),y=n.ie?"ActiveX":"PlugIn",a="MMredirectURL="+encodeURIComponent(u.location.toString().replace(/&/g,"%26"))+"&MMplayerType="+y+"&MMdoctitle="+encodeURIComponent(t.title.slice(0,47)+" - Flash Player Installation"),typeof o.flashvars!==i?o.flashvars+="&"+a:o.flashvars=a,n.ie&&c.readyState!=4&&(v=f("div"),s+="SWFObjectNew",v.setAttribute("id",s),c.parentNode.insertBefore(v,c),c.style.display="none",nt(c)),ct(e,o,s))}function ui(t){if(n.ie&&t.readyState!=4){t.style.display="none";var i=f("div");t.parentNode.insertBefore(i,t);i.parentNode.replaceChild(ht(t),i);nt(t)}else t.parentNode.replaceChild(ht(t),t)}function ht(t){var u=f("div"),e,i,s,r;if(n.win&&n.ie)u.innerHTML=t.innerHTML;else if(e=t.getElementsByTagName(o)[0],e&&(i=e.
childNodes,i))for(s=i.length,r=0;r<s;r++)i[r].nodeType==1&&i[r].nodeName==="PARAM"||i[r].nodeType==8||u.appendChild(i[r].cloneNode(!0));return u}function fi(n,t){var i=f("div");return i.innerHTML="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'><param name='movie' value='"+n+"'>"+t+"<\/object>",i.firstChild}function ct(t,r,u){var a,v=l(u),e,s,c,h;if(u=lt(u),n.wk&&n.wk<312)return a;if(v){e=n.ie?f("div"):f(o);typeof t.id===i&&(t.id=u);for(h in r)r.hasOwnProperty(h)&&h.toLowerCase()!=="movie"&&ei(e,h,r[h]);n.ie&&(e=fi(t.data,e.innerHTML));for(s in t)t.hasOwnProperty(s)&&(c=s.toLowerCase(),c==="styleclass"?e.setAttribute("class",t[s]):c!=="classid"&&c!=="data"&&e.setAttribute(s,t[s]));n.ie?k[k.length]=t.id:(e.setAttribute("type",b),e.setAttribute("data",t.data));v.parentNode.replaceChild(e,v);a=e}return a}function ei(n,t,i){var r=f("param");r.setAttribute("name",t);r.setAttribute("value",i);n.appendChild(r)}function nt(t){var i=l(t);i&&i.nodeName.toUpperCase()==="OBJECT"&&(n.ie?(i.style.display="none",
function r(){if(i.readyState==4){for(var n in i)typeof i[n]=="function"&&(i[n]=null);i.parentNode.removeChild(i)}else setTimeout(r,10)}()):i.parentNode.removeChild(i))}function dt(n){return n&&n.nodeType&&n.nodeType===1}function lt(n){return dt(n)?n.id:n}function l(n){if(dt(n))return n;var i=null;try{i=t.getElementById(n)}catch(r){}return i}function f(n){return t.createElement(n)}function r(n){return parseInt(n,10)}function oi(n,t,i){n.attachEvent(t,i);v[v.length]=[n,t,i]}function tt(t){t+="";var u=n.pv,i=t.split(".");return i[0]=r(i[0]),i[1]=r(i[1])||0,i[2]=r(i[2])||0,u[0]>i[0]||u[0]==i[0]&&u[1]>i[1]||u[0]==i[0]&&u[1]==i[1]&&u[2]>=i[2]?!0:!1}function gt(r,u,e,o){var l=t.getElementsByTagName("head")[0],s,c;l&&(s=typeof e=="string"?e:"screen",o&&(h=null,rt=null),h&&rt==s||(c=f("style"),c.setAttribute("type","text/css"),c.setAttribute("media",s),h=l.appendChild(c),n.ie&&typeof t.styleSheets!==i&&t.styleSheets.length>0&&(h=t.styleSheets[t.styleSheets.length-1]),rt=s),h&&(typeof h.addRule!==i?h.addRule(r,u):typeof
t.createTextNode!==i&&h.appendChild(t.createTextNode(r+" {"+u+"}"))))}function a(n,t){if(bt){var i=t?"visible":"hidden",r=l(n);c&&r?r.style.visibility=i:typeof n=="string"&&gt("#"+n,"visibility:"+i)}}function ni(n){var t=/[\\\"<>\.;]/.exec(n)!==null;return t&&typeof encodeURIComponent!==i?encodeURIComponent(n):n}var i="undefined",o="object",at="Shockwave Flash",ti="ShockwaveFlash.ShockwaveFlash",b="application/x-shockwave-flash",vt="SWFObjectExprInst",yt="onreadystatechange",u=window,t=document,e=navigator,pt=!1,y=[],s=[],k=[],v=[],p,d,it,wt,c=!1,g=!1,h,rt,bt=!0,ut=!1,n=function(){var a=typeof t.getElementById!==i&&typeof t.getElementsByTagName!==i&&typeof t.createElement!==i,s=e.userAgent.toLowerCase(),h=e.platform.toLowerCase(),v=h?/win/.test(h):/win/.test(s),y=h?/mac/.test(h):/mac/.test(s),p=/webkit/.test(s)?parseFloat(s.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,c=e.appName==="Microsoft Internet Explorer",f=[0,0,0],n=null,l;if(typeof e.plugins!==i&&typeof e.plugins[at]===o)n=e.plugins[at].description,
n&&typeof e.mimeTypes!==i&&e.mimeTypes[b]&&e.mimeTypes[b].enabledPlugin&&(pt=!0,c=!1,n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),f[0]=r(n.replace(/^(.*)\..*$/,"$1")),f[1]=r(n.replace(/^.*\.(.*)\s.*$/,"$1")),f[2]=/[a-zA-Z]/.test(n)?r(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1")):0);else if(typeof u.ActiveXObject!==i)try{l=new ActiveXObject(ti);l&&(n=l.GetVariable("$version"),n&&(c=!0,n=n.split(" ")[1].split(","),f=[r(n[0]),r(n[1]),r(n[2])]))}catch(w){}return{w3:a,pv:f,wk:p,ie:c,win:v,mac:y}}(),hi=function(){n.w3&&((typeof t.readyState!==i&&(t.readyState==="complete"||t.readyState==="interactive")||typeof t.readyState===i&&(t.getElementsByTagName("body")[0]||t.body))&&w(),c||(typeof t.addEventListener!==i&&t.addEventListener("DOMContentLoaded",w,!1),n.ie&&(t.attachEvent(yt,function r(){t.readyState==="complete"&&(t.detachEvent(yt,r),w())}),u==top&&function f(){if(!c){try{t.documentElement.doScroll("left")}catch(n){setTimeout(f,0);return}w()}}()),n.wk&&function e(){if(!c){if(!/loaded|complete/.test(t.readyState)){setTimeout(e,
0);return}w()}}()))}(),si;return y[0]=function(){},si=function(){n.ie&&window.attachEvent("onunload",function(){for(var r,i,u,f,e=v.length,t=0;t<e;t++)v[t][0].detachEvent(v[t][1],v[t][2]);for(r=k.length,i=0;i<r;i++)nt(k[i]);for(u in n)n[u]=null;n=null;for(f in swfobject)swfobject[f]=null;swfobject=null})}(),{registerObject:function(t,i,r,u){if(n.w3&&t&&i){var f={};f.id=t;f.swfVersion=i;f.expressInstall=r;f.callbackFn=u;s[s.length]=f;a(t,!1)}else u&&u({success:!1,id:t})},getObjectById:function(t){if(n.w3)return et(t)},embedSWF:function(t,r,u,f,e,s,h,c,l,v){var y=lt(r),p={success:!1,id:y};n.w3&&!(n.wk&&n.wk<312)&&t&&r&&u&&f&&e?(a(y,!1),kt(function(){var n,k,w,d,b,g,nt,it;if(u+="",f+="",n={},l&&typeof l===o)for(k in l)n[k]=l[k];if(n.data=t,n.width=u,n.height=f,w={},c&&typeof c===o)for(d in c)w[d]=c[d];if(h&&typeof h===o)for(b in h)h.hasOwnProperty(b)&&(g=ut?encodeURIComponent(b):b,nt=ut?encodeURIComponent(h[b]):h[b],typeof w.flashvars!==i?w.flashvars+="&"+g+"="+nt:w.flashvars=g+"="+nt);if(tt(e))it=ct(n,w,r),n.id==
y&&a(y,!0),p.success=!0,p.ref=it,p.id=it.id;else{if(s&&ot()){n.data=s;st(n,w,r,v);return}a(y,!0)}v&&v(p)})):v&&v(p)},switchOffAutoHideShow:function(){bt=!1},enableUriEncoding:function(n){ut=typeof n===i?!0:n},ua:n,getFlashPlayerVersion:function(){return{major:n.pv[0],minor:n.pv[1],release:n.pv[2]}},hasFlashPlayerVersion:tt,createSWF:function(t,i,r){return n.w3?ct(t,i,r):undefined},showExpressInstall:function(t,i,r,u){n.w3&&ot()&&st(t,i,r,u)},removeSWF:function(t){n.w3&&nt(t)},createCSS:function(t,i,r,u){n.w3&&gt(t,i,r,u)},addDomLoadEvent:kt,addLoadEvent:ii,getQueryParamValue:function(n){var r=t.location.search||t.location.hash,u,i;if(r){if(/\?/.test(r)&&(r=r.split("?")[1]),!n)return ni(r);for(u=r.split("&"),i=0;i<u.length;i++)if(u[i].substring(0,u[i].indexOf("="))==n)return ni(u[i].substring(u[i].indexOf("=")+1))}return""},expressInstallCallback:function(){if(g){var t=l(vt);t&&p&&(t.parentNode.replaceChild(p,t),d&&(a(d,!0),n.ie&&(p.style.display="block")),it&&it(wt));g=!1}},testPlayerVersion:function(){pt?ri(
):ft()},version:"2.3"}}();
/*!
 * jQuery.ScrollTo
 * Copyright (c) 2007-2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
 * Licensed under MIT
 * http://flesler.blogspot.com/2007/10/jqueryscrollto.html
 * @projectDescription Easy element scrolling using jQuery.
 * @author Ariel Flesler
 * @version 1.4.12
 */
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){function i(t){return n.isFunction(t)||typeof t=="object"?t:{top:t,left:t}}var t=n.scrollTo=function(t,i,r){return n(window).scrollTo(t,i,r)};return t.defaults={axis:"xy",duration:parseFloat(n.fn.jquery)>=1.3?0:1,limit:!0},t.window=function(){return n(window)._scrollable()},n.fn._scrollable=function(){return this.map(function(){var t=this,r=!t.nodeName||n.inArray(t.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1,i;return r?(i=(t.contentWindow||t).document||t.ownerDocument||t,/webkit/i.test(navigator.userAgent)||i.compatMode=="BackCompat"?i.body:i.documentElement):t})},n.fn.scrollTo=function(r,u,f){return typeof u=="object"&&(f=u,u=0),typeof f=="function"&&(f={onAfter:f}),r=="max"&&(r=9e9),f=n.extend({},t.defaults,f),u=u||f.duration,f.queue=f.queue&&f.axis.length>1,f.queue&&(u/=2),f.offset=i(f.offset),f.over=i(f.over),this._scrollable().each(function(){function v(n){h.animate(o,u,f.easing,n&&function(
){n.call(this,e,f)})}var a;if(r!=null){var s=this,h=n(s),e=r,c,o={},l=h.is("html,body");switch(typeof e){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)){e=i(e);break}if(e=l?n(e):n(e,this),!e.length)return;case"object":(e.is||e.style)&&(c=(e=n(e)).offset())}a=n.isFunction(f.offset)&&f.offset(s,e)||f.offset;n.each(f.axis.split(""),function(n,i){var p=i=="x"?"Left":"Top",u=p.toLowerCase(),r="scroll"+p,w=s[r],b=t.max(s,i),y;c?(o[r]=c[u]+(l?0:w-h.offset()[u]),f.margin&&(o[r]-=parseInt(e.css("margin"+p))||0,o[r]-=parseInt(e.css("border"+p+"Width"))||0),o[r]+=a[u]||0,f.over[u]&&(o[r]+=e[i=="x"?"width":"height"]()*f.over[u])):(y=e[u],o[r]=y.slice&&y.slice(-1)=="%"?parseFloat(y)/100*b:y);f.limit&&/^\d+$/.test(o[r])&&(o[r]=o[r]<=0?0:Math.min(o[r],b));!n&&f.queue&&(w!=o[r]&&v(f.onAfterFirst),delete o[r])});v(f.onAfter)}}).end()},t.max=function(t,i){var r=i=="x"?"Width":"Height",u="scroll"+r;if(!n(t).is("html,body"))return t[u]-n(t)[r.toLowerCase()]();var f="client"+r,e=t.ownerDocument.documentElement,
o=t.ownerDocument.body;return Math.max(e[u],o[u])-Math.min(e[f],o[f])},t}),function(n,t,i){function u(n,i){this.wrapper=typeof n=="string"?t.querySelector(n):n;this.scroller=this.wrapper.children[0];this.scrollerStyle=this.scroller.style;this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0};for(var u in i)this.options[u]=i[u];this.translateZ=this.options.HWCompositing&&r.hasPerspective?" translateZ(0)":"";this.options.useTransition=r.hasTransition&&this.options.useTransition;this.options.useTransform=r.hasTransform&&this.options.useTransform;this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough;this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault;this.options.scrollY=
this.options.eventPassthrough=="vertical"?!1:this.options.scrollY;this.options.scrollX=this.options.eventPassthrough=="horizontal"?!1:this.options.scrollX;this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough;this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold;this.options.bounceEasing=typeof this.options.bounceEasing=="string"?r.ease[this.options.bounceEasing]||r.ease.circular:this.options.bounceEasing;this.options.resizePolling=this.options.resizePolling===undefined?60:this.options.resizePolling;this.options.tap===!0&&(this.options.tap="tap");this.options.shrinkScrollbars=="scale"&&(this.options.useTransition=!1);this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1;this.x=0;this.y=0;this.directionX=0;this.directionY=0;this._events={};this._init();this.refresh();this.scrollTo(this.options.startX,this.options.startY);this.enable()}function f(n,i,r){var u=t.createElement("div"),f=t.createElement("div");return r===
!0&&(u.style.cssText="position:absolute;z-index:9999",f.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),f.className="iScrollIndicator",n=="h"?(r===!0&&(u.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",f.style.height="100%"),u.className="iScrollHorizontalScrollbar"):(r===!0&&(u.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",f.style.width="100%"),u.className="iScrollVerticalScrollbar"),u.style.cssText+=";overflow:hidden",i||(u.style.pointerEvents="none"),u.appendChild(f),u}function e(i,u){this.wrapper=typeof u.el=="string"?t.querySelector(u.el):u.el;this.wrapperStyle=this.wrapper.style;this.indicator=this.wrapper.children[0];this.indicatorStyle=this.indicator.style;this.scroller=i;this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var f in u)this.options[f]=u[f];this.
sizeRatioX=1;this.sizeRatioY=1;this.maxPosX=0;this.maxPosY=0;this.options.interactive&&(this.options.disableTouch||(r.addEvent(this.indicator,"touchstart",this),r.addEvent(n,"touchend",this)),this.options.disablePointer||(r.addEvent(this.indicator,r.prefixPointerEvent("pointerdown"),this),r.addEvent(n,r.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(r.addEvent(this.indicator,"mousedown",this),r.addEvent(n,"mouseup",this)));this.options.fade&&(this.wrapperStyle[r.style.transform]=this.scroller.translateZ,this.wrapperStyle[r.style.transitionDuration]=r.isBadAndroid?"0.001s":"0ms",this.wrapperStyle.opacity="0")}var o=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t){n.setTimeout(t,1e3/60)},r=function(){function u(n){return e===!1?!1:e===""?n:e+n.charAt(0).toUpperCase()+n.substr(1)}var r={},f=t.createElement("div").style,e=function(){for(var t=["t","webkitT","MozT","msT","OT"],i,n=0,r=t.length;n<
r;n++)if(i=t[n]+"ransform",i in f)return t[n].substr(0,t[n].length-1);return!1}(),o;return r.getTime=Date.now||function(){return(new Date).getTime()},r.extend=function(n,t){for(var i in t)n[i]=t[i]},r.addEvent=function(n,t,i,r){n.addEventListener(t,i,!!r)},r.removeEvent=function(n,t,i,r){n.removeEventListener(t,i,!!r)},r.prefixPointerEvent=function(t){return n.MSPointerEvent?"MSPointer"+t.charAt(9).toUpperCase()+t.substr(10):t},r.momentum=function(n,t,r,u,f,e){var h=n-t,s=i.abs(h)/r,o,c;return e=e===undefined?.0006:e,o=n+s*s/(2*e)*(h<0?-1:1),c=s/e,o<u?(o=f?u-f/2.5*(s/8):u,h=i.abs(o-n),c=h/s):o>0&&(o=f?f/2.5*(s/8):0,h=i.abs(n)+o,c=h/s),{destination:i.round(o),duration:c}},o=u("transform"),r.extend(r,{hasTransform:o!==!1,hasPerspective:u("perspective")in f,hasTouch:"ontouchstart"in n,hasPointer:n.PointerEvent||n.MSPointerEvent,hasTransition:u("transition")in f}),r.isBadAndroid=/Android /.test(n.navigator.appVersion)&&!/Chrome\/\d/.test(n.navigator.appVersion),r.extend(r.style={},{transform:o,transitionTimingFunction:
u("transitionTimingFunction"),transitionDuration:u("transitionDuration"),transitionDelay:u("transitionDelay"),transformOrigin:u("transformOrigin")}),r.hasClass=function(n,t){var i=new RegExp("(^|\\s)"+t+"(\\s|$)");return i.test(n.className)},r.addClass=function(n,t){if(!r.hasClass(n,t)){var i=n.className.split(" ");i.push(t);n.className=i.join(" ")}},r.removeClass=function(n,t){if(r.hasClass(n,t)){var i=new RegExp("(^|\\s)"+t+"(\\s|$)","g");n.className=n.className.replace(i," ")}},r.offset=function(n){for(var t=-n.offsetLeft,i=-n.offsetTop;n=n.offsetParent;)t-=n.offsetLeft,i-=n.offsetTop;return{left:t,top:i}},r.preventDefaultException=function(n,t){for(var i in t)if(t[i].test(n[i]))return!0;return!1},r.extend(r.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),r.extend(r.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(n){return n*(2-n)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",
fn:function(n){return i.sqrt(1- --n*n)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(n){var t=4;return(n=n-1)*n*((t+1)*n+t)+1}},bounce:{style:"",fn:function(n){return(n/=1)<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375}},elastic:{style:"",fn:function(n){var t=.22;return n===0?0:n==1?1:.4*i.pow(2,-10*n)*i.sin((n-t/4)*2*i.PI/t)+1}}}),r.tap=function(n,i){var r=t.createEvent("Event");r.initEvent(i,!0,!0);r.pageX=n.pageX;r.pageY=n.pageY;n.target.dispatchEvent(r)},r.click=function(n){var i=n.target,r;/(SELECT|INPUT|TEXTAREA)/i.test(i.tagName)||(r=t.createEvent("MouseEvents"),r.initMouseEvent("click",!0,!0,n.view,1,i.screenX,i.screenY,i.clientX,i.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,0,null),r._constructed=!0,i.dispatchEvent(r))},r}();u.prototype={version:"5.1.3",_init:function(){this._initEvents();(this.options.scrollbars||this.options.indicators)&&this._initIndicators();this.options.mouseWheel&&this._initWheel(
);this.options.snap&&this._initSnap();this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0);this._execEvent("destroy")},_transitionEnd:function(n){n.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(n){if((r.eventType[n.type]==1||n.button===0)&&this.enabled&&(!this.initiated||r.eventType[n.type]===this.initiated)){!this.options.preventDefault||r.isBadAndroid||r.preventDefaultException(n.target,this.options.preventDefaultException)||n.preventDefault();var u=n.touches?n.touches[0]:n,t;this.initiated=r.eventType[n.type];this.moved=!1;this.distX=0;this.distY=0;this.directionX=0;this.directionY=0;this.directionLocked=0;this._transitionTime();this.startTime=r.getTime();this.options.useTransition&&this.isInTransition?(this.isInTransition=!1,t=this.getComputedPosition(),this._translate(i.round(t.x),i.round(t.y)),this._execEvent("scrollEnd")):!this.options.
useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd"));this.startX=this.x;this.startY=this.y;this.absStartX=this.x;this.absStartY=this.y;this.pointX=u.pageX;this.pointY=u.pageY;this._execEvent("beforeScrollStart")}},_move:function(n){if(this.enabled&&r.eventType[n.type]===this.initiated){this.options.preventDefault&&n.preventDefault();var o=n.touches?n.touches[0]:n,t=o.pageX-this.pointX,u=o.pageY-this.pointY,c=r.getTime(),f,e,s,h;if(this.pointX=o.pageX,this.pointY=o.pageY,this.distX+=t,this.distY+=u,s=i.abs(this.distX),h=i.abs(this.distY),!(c-this.endTime>300)||!(s<10)||!(h<10)){if(this.directionLocked||this.options.freeScroll||(this.directionLocked=s>h+this.options.directionLockThreshold?"h":h>=s+this.options.directionLockThreshold?"v":"n"),this.directionLocked=="h"){if(this.options.eventPassthrough=="vertical")n.preventDefault();else if(this.options.eventPassthrough=="horizontal"){this.initiated=!1;return}u=0}else if(this.directionLocked=="v"){if(this.options.eventPassthrough=="horizontal")
n.preventDefault();else if(this.options.eventPassthrough=="vertical"){this.initiated=!1;return}t=0}t=this.hasHorizontalScroll?t:0;u=this.hasVerticalScroll?u:0;f=this.x+t;e=this.y+u;(f>0||f<this.maxScrollX)&&(f=this.options.bounce?this.x+t/3:f>0?0:this.maxScrollX);(e>0||e<this.maxScrollY)&&(e=this.options.bounce?this.y+u/3:e>0?0:this.maxScrollY);this.directionX=t>0?-1:t<0?1:0;this.directionY=u>0?-1:u<0?1:0;this.moved||this._execEvent("scrollStart");this.moved=!0;this._translate(f,e);c-this.startTime>300&&(this.startTime=c,this.startX=this.x,this.startY=this.y)}}},_end:function(n){var f;if(!this.enabled||r.eventType[n.type]!==this.initiated){this.enabled||n.type!=="mouseup"||r.click(n);return}this.options.preventDefault&&!r.preventDefaultException(n.target,this.options.preventDefaultException)&&n.preventDefault();var v=n.changedTouches?n.changedTouches[0]:n,o,s,e=r.getTime()-this.startTime,t=i.round(this.x),u=i.round(this.y),l=i.abs(t-this.startX),a=i.abs(u-this.startY),h=0,c="";if(this.isInTransition=0,this.initiated=
0,this.endTime=r.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(t,u),!this.moved){this.options.tap&&r.tap(n,this.options.tap);this.options.click&&r.click(n);this._execEvent("scrollCancel");return}if(this._events.flick&&e<200&&l<100&&a<100){this._execEvent("flick");return}if(this.options.momentum&&e<300&&(o=this.hasHorizontalScroll?r.momentum(this.x,this.startX,e,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:t,duration:0},s=this.hasVerticalScroll?r.momentum(this.y,this.startY,e,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:u,duration:0},t=o.destination,u=s.destination,h=i.max(o.duration,s.duration),this.isInTransition=1),this.options.snap&&(f=this._nearestSnap(t,u),this.currentPage=f,h=this.options.snapSpeed||i.max(i.max(i.min(i.abs(t-f.x),1e3),i.min(i.abs(u-f.y),1e3)),300),t=f.x,u=f.y,this.directionX=0,this.directionY=0,c=this.options.bounceEasing),t!=this.x||u!=this.y){(t>0||t<this.maxScrollX||
u>0||u<this.maxScrollY)&&(c=r.ease.quadratic);this.scrollTo(t,u,h,c);return}this._execEvent("scrollEnd")}},_resize:function(){var n=this;clearTimeout(this.resizeTimeout);this.resizeTimeout=setTimeout(function(){n.refresh()},this.options.resizePolling)},resetPosition:function(n){var t=this.x,i=this.y;return(n=n||0,!this.hasHorizontalScroll||this.x>0?t=0:this.x<this.maxScrollX&&(t=this.maxScrollX),!this.hasVerticalScroll||this.y>0?i=0:this.y<this.maxScrollY&&(i=this.maxScrollY),t==this.x&&i==this.y)?!1:(this.scrollTo(t,i,n,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){var n=this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth;this.wrapperHeight=this.wrapper.clientHeight;this.scrollerWidth=this.scroller.offsetWidth;this.scrollerHeight=this.scroller.offsetHeight;this.maxScrollX=this.wrapperWidth-this.scrollerWidth;this.maxScrollY=this.wrapperHeight-this.scrollerHeight;this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<
0;this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0;this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth);this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight);this.endTime=0;this.directionX=0;this.directionY=0;this.wrapperOffset=r.offset(this.wrapper);this._execEvent("refresh");this.resetPosition()},on:function(n,t){this._events[n]||(this._events[n]=[]);this._events[n].push(t)},off:function(n,t){if(this._events[n]){var i=this._events[n].indexOf(t);i>-1&&this._events[n].splice(i,1)}},_execEvent:function(n){if(this._events[n]){var t=0,i=this._events[n].length;if(i)for(;t<i;t++)this._events[n][t].apply(this,[].slice.call(arguments,1))}},scrollBy:function(n,t,i,r){n=this.x+n;t=this.y+t;i=i||0;this.scrollTo(n,t,i,r)},scrollTo:function(n,t,i,u){u=u||r.ease.circular;this.isInTransition=this.options.useTransition&&i>0;!i||this.options.useTransition&&u.style?(this._transitionTimingFunction(u.style),this._transitionTime(i),this._translate(n,t)):this.
_animate(n,t,i,u.fn)},scrollToElement:function(n,t,u,f,e){if(n=n.nodeType?n:this.scroller.querySelector(n),n){var o=r.offset(n);o.left-=this.wrapperOffset.left;o.top-=this.wrapperOffset.top;u===!0&&(u=i.round(n.offsetWidth/2-this.wrapper.offsetWidth/2));f===!0&&(f=i.round(n.offsetHeight/2-this.wrapper.offsetHeight/2));o.left-=u||0;o.top-=f||0;o.left=o.left>0?0:o.left<this.maxScrollX?this.maxScrollX:o.left;o.top=o.top>0?0:o.top<this.maxScrollY?this.maxScrollY:o.top;t=t===undefined||t===null||t==="auto"?i.max(i.abs(this.x-o.left),i.abs(this.y-o.top)):t;this.scrollTo(o.left,o.top,t,e)}},_transitionTime:function(n){if(n=n||0,this.scrollerStyle[r.style.transitionDuration]=n+"ms",!n&&r.isBadAndroid&&(this.scrollerStyle[r.style.transitionDuration]="0.001s"),this.indicators)for(var t=this.indicators.length;t--;)this.indicators[t].transitionTime(n)},_transitionTimingFunction:function(n){if(this.scrollerStyle[r.style.transitionTimingFunction]=n,this.indicators)for(var t=this.indicators.length;t--;)this.indicators[t].transitionTimingFunction(
n)},_translate:function(n,t){if(this.options.useTransform?this.scrollerStyle[r.style.transform]="translate("+n+"px,"+t+"px)"+this.translateZ:(n=i.round(n),t=i.round(t),this.scrollerStyle.left=n+"px",this.scrollerStyle.top=t+"px"),this.x=n,this.y=t,this.indicators)for(var u=this.indicators.length;u--;)this.indicators[u].updatePosition()},_initEvents:function(t){var i=t?r.removeEvent:r.addEvent,u=this.options.bindToWrapper?this.wrapper:n;i(n,"orientationchange",this);i(n,"resize",this);this.options.click&&i(this.wrapper,"click",this,!0);this.options.disableMouse||(i(this.wrapper,"mousedown",this),i(u,"mousemove",this),i(u,"mousecancel",this),i(u,"mouseup",this));r.hasPointer&&!this.options.disablePointer&&(i(this.wrapper,r.prefixPointerEvent("pointerdown"),this),i(u,r.prefixPointerEvent("pointermove"),this),i(u,r.prefixPointerEvent("pointercancel"),this),i(u,r.prefixPointerEvent("pointerup"),this));r.hasTouch&&!this.options.disableTouch&&(i(this.wrapper,"touchstart",this),i(u,"touchmove",this),i(u,"touchcancel",
this),i(u,"touchend",this));i(this.scroller,"transitionend",this);i(this.scroller,"webkitTransitionEnd",this);i(this.scroller,"oTransitionEnd",this);i(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var t=n.getComputedStyle(this.scroller,null),i,u;return this.options.useTransform?(t=t[r.style.transform].split(")")[0].split(", "),i=+(t[12]||t[4]),u=+(t[13]||t[5])):(i=+t.left.replace(/[^-\d.]/g,""),u=+t.top.replace(/[^-\d.]/g,"")),{x:i,y:u}},_initIndicators:function(){function i(n){for(var t=s.indicators.length;t--;)n.call(s.indicators[t])}var r=this.options.interactiveScrollbars,o=typeof this.options.scrollbars!="string",n=[],t,s=this,u;for(this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(t={el:f("v",r,this.options.scrollbars),interactive:r,defaultScrollbars:!0,customStyle:o,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(t.el),n.push(t)),this.options.scrollX&&(t={el:f("h",r,
this.options.scrollbars),interactive:r,defaultScrollbars:!0,customStyle:o,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(t.el),n.push(t))),this.options.indicators&&(n=n.concat(this.options.indicators)),u=n.length;u--;)this.indicators.push(new e(this,n[u]));if(this.options.fadeScrollbars){this.on("scrollEnd",function(){i(function(){this.fade()})});this.on("scrollCancel",function(){i(function(){this.fade()})});this.on("scrollStart",function(){i(function(){this.fade(1)})});this.on("beforeScrollStart",function(){i(function(){this.fade(1,!0)})})}this.on("refresh",function(){i(function(){this.refresh()})});this.on("destroy",function(){i(function(){this.destroy()});delete this.indicators})},_initWheel:function(){r.addEvent(this.wrapper,"wheel",this);r.addEvent(this.wrapper,"mousewheel",this);r.addEvent(this.wrapper,"DOMMouseScroll",this);this.on("destroy",function(){r.removeEvent(this.wrapper,"wheel",this);r.removeEvent(
this.wrapper,"mousewheel",this);r.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(n){if(this.enabled){n.preventDefault();n.stopPropagation();var r,t,u,f,e=this;if(this.wheelTimeout===undefined&&e._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){e._execEvent("scrollEnd");e.wheelTimeout=undefined},400),"deltaX"in n)n.deltaMode===1?(r=-n.deltaX*this.options.mouseWheelSpeed,t=-n.deltaY*this.options.mouseWheelSpeed):(r=-n.deltaX,t=-n.deltaY);else if("wheelDeltaX"in n)r=n.wheelDeltaX/120*this.options.mouseWheelSpeed,t=n.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in n)r=t=n.wheelDelta/120*this.options.mouseWheelSpeed;else if("detail"in n)r=t=-n.detail/3*this.options.mouseWheelSpeed;else return;if(r*=this.options.invertWheelDirection,t*=this.options.invertWheelDirection,this.hasVerticalScroll||(r=t,t=0),this.options.snap){u=this.currentPage.pageX;f=this.currentPage.pageY;r>0?u--:r<0&&u++;t>0?f--:t<0&&f++;this.goToPage(u,f);return}
u=this.x+i.round(this.hasHorizontalScroll?r:0);f=this.y+i.round(this.hasVerticalScroll?t:0);u>0?u=0:u<this.maxScrollX&&(u=this.maxScrollX);f>0?f=0:f<this.maxScrollY&&(f=this.maxScrollY);this.scrollTo(u,f,0)}},_initSnap:function(){this.currentPage={};typeof this.options.snap=="string"&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap));this.on("refresh",function(){var n=0,f,e=0,h,o,s,r=0,u,c=this.options.snapStepX||this.wrapperWidth,l=this.options.snapStepY||this.wrapperHeight,t;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(this.options.snap===!0)for(o=i.round(c/2),s=i.round(l/2);r>-this.scrollerWidth;){for(this.pages[n]=[],f=0,u=0;u>-this.scrollerHeight;)this.pages[n][f]={x:i.max(r,this.maxScrollX),y:i.max(u,this.maxScrollY),width:c,height:l,cx:r-o,cy:u-s},u-=l,f++;r-=c;n++}else for(t=this.options.snap,f=t.length,h=-1;n<f;n++)(n===0||t[n].offsetLeft<=t[n-1].offsetLeft)&&(e=0,h++),this.pages[e]||(this.pages[e]=[]),r=i.max(-t[n].offsetLeft,
this.maxScrollX),u=i.max(-t[n].offsetTop,this.maxScrollY),o=r-i.round(t[n].offsetWidth/2),s=u-i.round(t[n].offsetHeight/2),this.pages[e][h]={x:r,y:u,width:t[n].offsetWidth,height:t[n].offsetHeight,cx:o,cy:s},r>this.maxScrollX&&e++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0);this.options.snapThreshold%1==0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=i.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=i.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}});this.on("flick",function(){var n=this.options.snapSpeed||i.max(i.max(i.min(i.abs(this.x-this.startX),1e3),i.min(i.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,n)})},_nearestSnap:function(n,t){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var r=0,f=this.pages.
length,u=0;if(i.abs(n-this.absStartX)<this.snapThresholdX&&i.abs(t-this.absStartY)<this.snapThresholdY)return this.currentPage;for(n>0?n=0:n<this.maxScrollX&&(n=this.maxScrollX),t>0?t=0:t<this.maxScrollY&&(t=this.maxScrollY);r<f;r++)if(n>=this.pages[r][0].cx){n=this.pages[r][0].x;break}for(f=this.pages[r].length;u<f;u++)if(t>=this.pages[0][u].cy){t=this.pages[0][u].y;break}return r==this.currentPage.pageX&&(r+=this.directionX,r<0?r=0:r>=this.pages.length&&(r=this.pages.length-1),n=this.pages[r][0].x),u==this.currentPage.pageY&&(u+=this.directionY,u<0?u=0:u>=this.pages[0].length&&(u=this.pages[0].length-1),t=this.pages[0][u].y),{x:n,y:t,pageX:r,pageY:u}},goToPage:function(n,t,r,u){u=u||this.options.bounceEasing;n>=this.pages.length?n=this.pages.length-1:n<0&&(n=0);t>=this.pages[n].length?t=this.pages[n].length-1:t<0&&(t=0);var f=this.pages[n][t].x,e=this.pages[n][t].y;r=r===undefined?this.options.snapSpeed||i.max(i.max(i.min(i.abs(f-this.x),1e3),i.min(i.abs(e-this.y),1e3)),300):r;this.currentPage={x:f,y:e,pageX:
n,pageY:t};this.scrollTo(f,e,r,u)},next:function(n,t){var i=this.currentPage.pageX,r=this.currentPage.pageY;i++;i>=this.pages.length&&this.hasVerticalScroll&&(i=0,r++);this.goToPage(i,r,n,t)},prev:function(n,t){var i=this.currentPage.pageX,r=this.currentPage.pageY;i--;i<0&&this.hasVerticalScroll&&(i=0,r--);this.goToPage(i,r,n,t)},_initKeys:function(){var i={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40},t;if(typeof this.options.keyBindings=="object")for(t in this.options.keyBindings)typeof this.options.keyBindings[t]=="string"&&(this.options.keyBindings[t]=this.options.keyBindings[t].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(t in i)this.options.keyBindings[t]=this.options.keyBindings[t]||i[t];r.addEvent(n,"keydown",this);this.on("destroy",function(){r.removeEvent(n,"keydown",this)})},_key:function(n){if(this.enabled){var t=this.options.snap,u=t?this.currentPage.pageX:this.x,f=t?this.currentPage.pageY:this.y,o=r.getTime(),s=this.keyTime||0,e;this.options.useTransition&&
this.isInTransition&&(e=this.getComputedPosition(),this._translate(i.round(e.x),i.round(e.y)),this.isInTransition=!1);this.keyAcceleration=o-s<200?i.min(this.keyAcceleration+.25,50):0;switch(n.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?u+=t?1:this.wrapperWidth:f+=t?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?u-=t?1:this.wrapperWidth:f-=t?1:this.wrapperHeight;break;case this.options.keyBindings.end:u=t?this.pages.length-1:this.maxScrollX;f=t?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:u=0;f=0;break;case this.options.keyBindings.left:u+=t?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:f+=t?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:u-=t?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:f-=t?1:5+this.keyAcceleration>>0;break;default:return}if(t){this.goToPage(u,f);return}u>0?(u=0,this.keyAcceleration=
0):u<this.maxScrollX&&(u=this.maxScrollX,this.keyAcceleration=0);f>0?(f=0,this.keyAcceleration=0):f<this.maxScrollY&&(f=this.maxScrollY,this.keyAcceleration=0);this.scrollTo(u,f,0);this.keyTime=o}},_animate:function(n,t,i,u){function c(){var a=r.getTime(),y,p,v;if(a>=l){f.isAnimating=!1;f._translate(n,t);f.resetPosition(f.options.bounceTime)||f._execEvent("scrollEnd");return}a=(a-h)/i;v=u(a);y=(n-e)*v+e;p=(t-s)*v+s;f._translate(y,p);f.isAnimating&&o(c)}var f=this,e=this.x,s=this.y,h=r.getTime(),l=h+i;this.isAnimating=!0;c()},handleEvent:function(n){switch(n.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(n);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(n);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(n);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":
case"MSTransitionEnd":this._transitionEnd(n);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(n);break;case"keydown":this._key(n);break;case"click":n._constructed||(n.preventDefault(),n.stopPropagation())}}};e.prototype={handleEvent:function(n){switch(n.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(n);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(n);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(n)}},destroy:function(){this.options.interactive&&(r.removeEvent(this.indicator,"touchstart",this),r.removeEvent(this.indicator,r.prefixPointerEvent("pointerdown"),this),r.removeEvent(this.indicator,"mousedown",this),r.removeEvent(n,"touchmove",this),r.removeEvent(n,r.prefixPointerEvent("pointermove"),this),r.removeEvent(n,"mousemove",this),r.removeEvent(n,"touchend",this),r.removeEvent(n,r.prefixPointerEvent(
"pointerup"),this),r.removeEvent(n,"mouseup",this));this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(t){var i=t.touches?t.touches[0]:t;t.preventDefault();t.stopPropagation();this.transitionTime();this.initiated=!0;this.moved=!1;this.lastPointX=i.pageX;this.lastPointY=i.pageY;this.startTime=r.getTime();this.options.disableTouch||r.addEvent(n,"touchmove",this);this.options.disablePointer||r.addEvent(n,r.prefixPointerEvent("pointermove"),this);this.options.disableMouse||r.addEvent(n,"mousemove",this);this.scroller._execEvent("beforeScrollStart")},_move:function(n){var t=n.touches?n.touches[0]:n,i,u,f,e,o=r.getTime();this.moved||this.scroller._execEvent("scrollStart");this.moved=!0;i=t.pageX-this.lastPointX;this.lastPointX=t.pageX;u=t.pageY-this.lastPointY;this.lastPointY=t.pageY;f=this.x+i;e=this.y+u;this._pos(f,e);n.preventDefault();n.stopPropagation()},_end:function(t){if(this.initiated){if(this.initiated=!1,t.preventDefault(),t.stopPropagation(),r.removeEvent(
n,"touchmove",this),r.removeEvent(n,r.prefixPointerEvent("pointermove"),this),r.removeEvent(n,"mousemove",this),this.scroller.options.snap){var u=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),f=this.options.snapSpeed||i.max(i.max(i.min(i.abs(this.scroller.x-u.x),1e3),i.min(i.abs(this.scroller.y-u.y),1e3)),300);(this.scroller.x!=u.x||this.scroller.y!=u.y)&&(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=u,this.scroller.scrollTo(u.x,u.y,f,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(n){n=n||0;this.indicatorStyle[r.style.transitionDuration]=n+"ms";!n&&r.isBadAndroid&&(this.indicatorStyle[r.style.transitionDuration]="0.001s")},transitionTimingFunction:function(n){this.indicatorStyle[r.style.transitionTimingFunction]=n},refresh:function(){this.transitionTime();this.indicatorStyle.display=this.options.listenX&&!this.options.listenY?this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&
!this.options.listenX?this.scroller.hasVerticalScroll?"block":"none":this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none";this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(r.addClass(this.wrapper,"iScrollBothScrollbars"),r.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(r.removeClass(this.wrapper,"iScrollBothScrollbars"),r.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));var n=this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=i.max(i.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=
this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,this.options.shrink=="clip"?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX);this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=i.max(i.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.options.shrink=="clip"?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.
scroller.maxScrollY);this.updatePosition()},updatePosition:function(){var n=this.options.listenX&&i.round(this.sizeRatioX*this.scroller.x)||0,t=this.options.listenY&&i.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(n<this.minBoundaryX?(this.options.shrink=="scale"&&(this.width=i.max(this.indicatorWidth+n,8),this.indicatorStyle.width=this.width+"px"),n=this.minBoundaryX):n>this.maxBoundaryX?this.options.shrink=="scale"?(this.width=i.max(this.indicatorWidth-(n-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",n=this.maxPosX+this.indicatorWidth-this.width):n=this.maxBoundaryX:this.options.shrink=="scale"&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),t<this.minBoundaryY?(this.options.shrink=="scale"&&(this.height=i.max(this.indicatorHeight+t*3,8),this.indicatorStyle.height=this.height+"px"),t=this.minBoundaryY):t>this.maxBoundaryY?this.options.shrink=="scale"?(this.height=i.max(this.indicatorHeight-(t-this.maxPosY)*
3,8),this.indicatorStyle.height=this.height+"px",t=this.maxPosY+this.indicatorHeight-this.height):t=this.maxBoundaryY:this.options.shrink=="scale"&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px"));this.x=n;this.y=t;this.scroller.options.useTransform?this.indicatorStyle[r.style.transform]="translate("+n+"px,"+t+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=n+"px",this.indicatorStyle.top=t+"px")},_pos:function(n,t){n<0?n=0:n>this.maxPosX&&(n=this.maxPosX);t<0?t=0:t>this.maxPosY&&(t=this.maxPosY);n=this.options.listenX?i.round(n/this.sizeRatioX):this.scroller.x;t=this.options.listenY?i.round(t/this.sizeRatioY):this.scroller.y;this.scroller.scrollTo(n,t)},fade:function(n,t){if(!t||this.visible){clearTimeout(this.fadeTimeout);this.fadeTimeout=null;var i=n?250:500,u=n?0:300;n=n?"1":"0";this.wrapperStyle[r.style.transitionDuration]=i+"ms";this.fadeTimeout=setTimeout(function(n){this.wrapperStyle.opacity=n;this.visible=+n}.bind(this,n),u)}}};
u.utils=r;typeof module!="undefined"&&module.exports?module.exports=u:n.IScroll=u}(window,document,Math);FSIModule=function(){this.moduleParentContainer=null;this.moduleContainer;this.fsiMainBackground;this.currentZoomPercent=100;this.configBaseURL="";this.configBaseLanguage="";this.configBasePath=function(){return""};this.imageBasePath="http://superzoom.onlinesuperimage.com/fsicache/server?type=image&source=";this.defaultImageBasePath="http://superzoom.onlinesuperimage.com/fsicache/server?type=image&source=";this.initialActionDelay=5;this.sharpen="50";this.quality="80";this.fsiContainer;this.fsiImageContainer;this.fsiZoomCanvas;this.fullscreenHTML=$(".gallery3d").data("fullscreen");this.fsiCurrentViewContainer;this.fsiThumbnailsContainer;this.fsiThumbnailsScrollingContainer;this.fsiThumbnailContainerWidth=92;this.fsiThumbnailContainerHeight=120;this.fsiThumbsContainerWidth;this.fsiThumbsContainerPadding=12;this.fsiThumbsContainerViewContainerMargin=10;this.fsiPreloader;this.fsiButtonsContainer;this.fsiButtonsContaineWidth=
176;this.fsiButtonsContaineHeight=32;this.fsiStartStopButton;this.zoomInButton;this.zoomOutButton;this.rotationTouchPoint={x:-1,y:-1};this.zoomDragPoint={x:-1,y:-1,startX:-1,startY:-1};this.thumbnailScroller;this.timeoutIntervalFactor=30;this.currentSet=-1;this.currentShownViewContainerIndex=-1;this.loadedImagesCount=0;this.rotationInterval;this.fakeImage;this.fsiContainerWidth=522;this.fsiContainerHeight=504;this.fsiContainerPadding=10;this.availableViewContainers=[];this.availableThumbnails=[];this.settingsObject;this.moduleSettingsObject;this.isInit=!1;this.maxZoomWidth=2e3;this.maxZoomHeight=2e3;this.fsiID="";this.imagesSets=[];this.jsonConfigObject=null;this.init=function(n,t){if(!this.isInit){this.moduleParentContainer=n;this.fsiContainerWidth=this.moduleParentContainer.clientWidth;this.fsiContainerHeight=this.moduleParentContainer.clientHeight;this.isInit=!0;this.fsiThumbsContainerWidth=this.fsiThumbnailContainerWidth+2*this.fsiThumbsContainerPadding;this.moduleContainer=document.createElement("div");this.
moduleContainer.id=t;n.appendChild(this.moduleContainer);this.moduleContainer.style.display="none";this.fsiMainBackground=document.createElement("div");this.fsiMainBackground.id="fsiMainBackground";this.moduleContainer.appendChild(this.fsiMainBackground);this.FSIContainer=document.createElement("div");this.FSIContainer.id="FSIContainer";this.moduleContainer.appendChild(this.FSIContainer);this.fsiPreloader=document.createElement("div");this.fsiPreloader.id="fsiPreloader";this.moduleContainer.appendChild(this.fsiPreloader);this.fsiImageContainer=document.createElement("div");this.fsiImageContainer.id="fsiImageContainer";this.FSIContainer.appendChild(this.fsiImageContainer);this.fsiCurrentViewContainer=document.createElement("div");this.fsiCurrentViewContainer.currentLeft=0;this.fsiCurrentViewContainer.currentTop=0;this.fsiCurrentViewContainer.id="fsiCurrentViewContainer";this.fsiImageContainer.appendChild(this.fsiCurrentViewContainer);this.fsiZoomCanvas=document.createElement("canvas");this.fsiZoomCanvas.id="fsiZoomCanvas";
this.fsiImageContainer.appendChild(this.fsiZoomCanvas);this.fsiButtonsContainer=document.createElement("div");this.fsiButtonsContainer.id="fsiButtonsContainer";this.FSIContainer.appendChild(this.fsiButtonsContainer);this.fsiStartStopButton=document.createElement("div");this.fsiStartStopButton.id="fsiStartStopButton";this.fsiStartStopButton.style.display="block";this.fsiButtonsContainer.appendChild(this.fsiStartStopButton);this.zoomInButton=document.createElement("div");this.zoomInButton.id="zoomInButton";this.fsiButtonsContainer.appendChild(this.zoomInButton);this.zoomOutButton=document.createElement("div");this.zoomOutButton.id="zoomOutButton";this.fsiButtonsContainer.appendChild(this.zoomOutButton);this.fullscreenButton=document.createElement("div");this.fullscreenButton.id="fullscreenButton";this.fsiButtonsContainer.appendChild(this.fullscreenButton);this.fsiThumbnailsContainer=document.createElement("div");this.fsiThumbnailsContainer.id="fsiThumbnailsContainer";this.FSIContainer.appendChild(this.fsiThumbnailsContainer);
this.fsiThumbnailsContainerBg=document.createElement("div");this.fsiThumbnailsContainerBg.id="fsiThumbnailsContainerBg";this.fsiThumbnailsContainer.appendChild(this.fsiThumbnailsContainerBg);this.thumbsScrollDownButton=document.createElement("div");this.thumbsScrollDownButton.id="thumbsScrollDownButton";this.fsiThumbnailsContainer.appendChild(this.thumbsScrollDownButton);this.thumbsScrollUpButton=document.createElement("div");this.thumbsScrollUpButton.id="thumbsScrollUpButton";this.fsiThumbnailsContainer.appendChild(this.thumbsScrollUpButton);this.fsiThumbnailsContainerInner=document.createElement("div");this.fsiThumbnailsContainerInner.id="fsiThumbnailsContainerInner";this.fsiThumbnailsContainer.appendChild(this.fsiThumbnailsContainerInner);this.fsiThumbnailsScrollingContainer=document.createElement("div");this.fsiThumbnailsScrollingContainer.id="fsiThumbnailsScrollingContainer";this.fsiThumbnailsContainerInner.appendChild(this.fsiThumbnailsScrollingContainer);this.thumbnailScroller=new Scrolling.IScrollAdjuster(
$(this.fsiThumbnailsContainer),{refreshScrollerOnContentHeightChange:!1,disableIScrollWhenNotNeeded:!0,setUpScrollingContainers:!1,useSpecificScrollingContainer:"#"+this.fsiThumbnailsContainerInner.id},{scrollbars:!1});this.fsiMainBackground.onclick=this.fsiMainBackground_clickHandler;this.fsiStartStopButton.onclick=this.fsiStartStopButton_clickHandler;this.thumbsScrollDownButton.onclick=this.thumbsScrollDownButton_clickHandler;this.thumbsScrollUpButton.onclick=this.thumbsScrollUpButton_clickHandler;this.zoomInButton.onclick=this.fsiZoomInButton_clickHandler;this.zoomOutButton.onclick=this.fsiZoomOutButton_clickHandler;this.fullscreenButton.onclick=this.fullscreenButton_clickHandler;$(this.fsiImageContainer).on("touchstart mousedown",this.fsiImageContainer_touchStartHandler).on("touchmove",this.fsiImageContainer_touchMoveHandler).on("touchend mouseup",this.fsiImageContainer_touchEndHandler);this.fsiCurrentViewContainer.addEventListener("webkitTransitionEnd",this.fsiImageContainer_webkitTransitionEndHandler,!1);
this.fsiCurrentViewContainer.addEventListener("transitionend",this.fsiImageContainer_webkitTransitionEndHandler,!1);this.fsiCurrentViewContainer.addEventListener("OTransitionEnd",this.fsiImageContainer_webkitTransitionEndHandler,!1)}};this.resizeFSI=function(){(this.fsiContainerWidth=this.moduleParentContainer.clientWidth,this.fsiContainerHeight=this.moduleParentContainer.clientHeight,this.isInit&&this.moduleParentContainer)&&(this.timeout&&clearTimeout(this.timeout),timeout=setTimeout("FSIModule.getInstance().showFSI({id:'"+this.fsiID+"'});",500))};this.setSizeAndPosition=function(n){this.FSIContainer.style.width=this.fsiContainerWidth+"px";this.FSIContainer.style.height=this.fsiContainerHeight+"px";this.FSIContainer.style.left=Math.round(this.moduleContainer.clientWidth-this.FSIContainer.clientWidth)/2+"px";this.FSIContainer.style.top=Math.round(this.moduleContainer.clientHeight-this.FSIContainer.clientHeight)/2+"px";this.fsiPreloader.style.top=Math.round(this.moduleContainer.clientHeight-this.fsiPreloader.
clientHeight)/2+"px";this.fsiPreloader.style.left=Math.round(this.moduleContainer.clientWidth-this.fsiPreloader.clientWidth)/2+"px";n?(this.fsiThumbnailsContainer.style.display="block",this.fsiThumbnailsContainer.style.width=this.fsiThumbsContainerWidth+"px",this.fsiThumbnailsContainer.style.height=this.FSIContainer.clientHeight-this.fsiContainerPadding*2+"px",this.fsiThumbnailsContainer.style.top=this.fsiContainerPadding+"px",this.fsiThumbnailsContainer.style.left=this.FSIContainer.clientWidth-this.fsiContainerPadding-this.fsiThumbsContainerWidth+"px",this.fsiImageContainer.style.width=this.fsiCurrentViewContainer.style.width=this.FSIContainer.clientWidth-this.fsiContainerPadding*2-this.fsiThumbsContainerWidth-this.fsiThumbsContainerViewContainerMargin+"px",this.fsiImageContainer.style.height=this.fsiCurrentViewContainer.style.height=this.FSIContainer.clientHeight-this.fsiContainerPadding*2+"px",this.fsiImageContainer.style.top=this.fsiContainerPadding+"px",this.fsiCurrentViewContainer.style.top="0px",this.fsiImageContainer.
style.left=this.fsiContainerPadding+"px",this.fsiCurrentViewContainer.style.left="0px"):(this.fsiThumbnailsContainer.style.display="none",this.fsiImageContainer.style.width=this.fsiCurrentViewContainer.style.width=this.FSIContainer.clientWidth-this.fsiContainerPadding*2+"px",this.fsiImageContainer.style.height=this.fsiCurrentViewContainer.style.height=this.FSIContainer.clientHeight-this.fsiContainerPadding*2+"px",this.fsiImageContainer.style.top=this.fsiContainerPadding+"px",this.fsiCurrentViewContainer.style.top="0px",this.fsiImageContainer.style.left=this.fsiContainerPadding+"px",this.fsiCurrentViewContainer.style.left="0px");this.fsiThumbnailsContainerInner.style.height=this.fsiThumbnailsContainer.clientHeight-56+"px";this.fsiThumbnailsContainerInner.style.width=this.fsiThumbnailsContainer.clientWidth+"px";this.fsiThumbnailsContainerBg.style.width=this.fsiThumbnailsContainer.clientWidth-6+"px";this.fsiZoomCanvas.width=this.fsiImageContainer.clientWidth;this.fsiZoomCanvas.height=this.fsiImageContainer.clientHeight;
this.fsiZoomCanvas.style.width=this.fsiImageContainer.clientWidth+"px";this.fsiZoomCanvas.style.height=this.fsiImageContainer.clientHeight+"px";this.fsiButtonsContainer.style.left=this.fsiCurrentViewContainer.offsetLeft+Math.round(this.fsiCurrentViewContainer.clientWidth-this.fsiButtonsContaineWidth)/2+"px"};this.showFSI=function(n){var i,t,r;this.closeFSI();this.fsiPreloader.style.display="block";i=this.configBasePath()+n.id;this.fsiID=n.id;"XDomainRequest"in window&&window.XDomainRequest!==null?(t=new XDomainRequest,t.open("get",i),r=this,t.onload=function(){r.FSIConfigLoaded(t.responseText)},t.send()):this.jsonConfigObject=$.ajax({type:"GET",url:i,success:this.FSIConfigLoaded,dataType:"text"})};this.createXMLDocument=function(n){var i=navigator.appName,t;return i=="Microsoft Internet Explorer"?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(n)):t=(new DOMParser).parseFromString(n,"text/xml"),t};this.FSIConfigLoaded=function(n){var s=FSIModule.getInstance().createXMLDocument(n),t={query:{
results:null}},o,r,i,u,f,e;if(t.query.results=xmlToJson(s),FSIModule.getInstance().length=0,FSIModule.getInstance().jsonConfigObject=null,t.query.results.fsi_parameter.FPX.Base.value?(o=t.query.results.fsi_parameter.FPX.Base.value.split("?"),o[1]="type=image&"+o[1],FSIModule.getInstance().imageBasePath=o.join("?")):FSIModule.getInstance().imageBasePath=this.defaultImageBasePath,t.query.results.fsi_parameter.Images)for(r=t.query.results.fsi_parameter.Images.Image,i=0;i<r.length;i++)u=new ImageSet,f=r[i].Options.SceneSets.value.split(","),FSIModule.getInstance().fillImageSet(u,r[i].Options,r[i].images3d,f,r[i].label),FSIModule.getInstance().imagesSets.push(u);else{if(u=new ImageSet,f="1-2",t.query.results.fsi_parameter.Options.length)for(e=0;e<t.query.results.fsi_parameter.Options.length;e++)t.query.results.fsi_parameter.Options[e].SceneSets&&(f=t.query.results.fsi_parameter.Options[e].SceneSets.value.split(","));else f=t.query.results.fsi_parameter.Options.SceneSets.value.split(",");FSIModule.getInstance().fillImageSet(
u,t.query.results.fsi_parameter.Options,t.query.results.fsi_parameter.images3d,f,"");FSIModule.getInstance().imagesSets.push(u)}FSIModule.getInstance().imagesSets.length!=0&&(FSIModule.getInstance().moduleContainer.style.display="block",FSIModule.getInstance().setSizeAndPosition(FSIModule.getInstance().imagesSets.length>1?!0:!1),FSIModule.getInstance().loadImageSetConfig())};this.fillImageSet=function(n,t,i,r,u){for(var e,o,f=0;f<r.length;f++)if(e=r[f].split("-"),e.length==1)n.sequence.push(r[f]-1);else if(e[0]<e[1])for(o=e[0];o<=e[1];o++)n.sequence.push(o-1);else for(o=e[0];o>=e[1];o--)n.sequence.push(o-1);if(n.timeoutInterval=FSIModule.getInstance().timeoutIntervalFactor*FSIModule.getInstance().initialActionDelay,n.label=u,n.prefix=i.prefix?i.prefix:"",n.suffix=i.suffix,i.image.length)for(f=0;f<i.image.length;f++)n.images.push(i.image[f].src);else n.images.push(i.image.src)};this.loadImageSetConfig=function(){for(var t,n=0;n<this.imagesSets.length;n++)if(this.imagesSets[n].ratio==0){t=this.imagesSets[n];this.
fakeImage=new Image;this.fakeImage.onload=this.imageSetConfigLoaded;this.fakeImage.onerror=this.imageSetConfigError;this.fakeImage.src=this.imageBasePath+t.prefix+t.images[0]+t.suffix;return}this.fsiPreloader.style.display="none";this.imagesSets.length>1&&this.createThumbs();this.changeSet(0)};this.createThumbs=function(){var u,t,i,n,s,e;this.thumbnailScroller.scrollTo(0,0,"1ms");this.fsiThumbsContainerWidth;this.fsiThumbsContainerPadding;for(var r=this.fsiThumbsContainerWidth-this.fsiThumbsContainerPadding*2,f=0,h=ImagePreloader.getInstance("FSIViewThumbsLoader"),o=0;this.fsiThumbnailsScrollingContainer.children.length;){if(u=this.fsiThumbnailsScrollingContainer.children[0],!u.thumbCanvas){this.fsiThumbnailsScrollingContainer.removeChild(u);continue}u.style.display="none";u.thumbCanvas.getContext("2d").clearRect(0,0,u.width,u.height);this.fsiThumbnailsScrollingContainer.removeChild(u)}for(t=0;t<this.imagesSets.length&&t<this.availableThumbnails.length;t++)i=50,r=Math.round(i*this.imagesSets[t].ratio),r>this.
fsiThumbnailContainerWidth-2*this.fsiThumbsContainerPadding&&(r=this.fsiThumbnailContainerWidth-2*this.fsiThumbsContainerPadding,i=Math.round(r/this.imagesSets[t].ratio)),o<i&&(o=i),n=this.availableThumbnails[t],n.style.display="block",n.style.top=f+"px",n.style.left=this.fsiThumbsContainerPadding+"px",n.style.width=this.fsiThumbnailContainerWidth+"px",n.style.height=this.fsiThumbnailContainerHeight+"px",this.fsiThumbnailsScrollingContainer.appendChild(n),s=this.imageBasePath+this.imagesSets[t].prefix+this.imagesSets[t].images[0]+this.imagesSets[t].suffix+"&sharpen="+this.sharpen+"&quality="+this.quality+"&width="+r+"&height="+i+"&left=0&top=0&right=1&bottom=1&tmp=fsi&profile=png",h.addItem(this.createLoadingItem(n.thumbCanvas,s,this.imagesSets.length-t,r,i,r,i,this.thumb_loadHandler)),n.thumbCanvas.style.left=Math.round((this.fsiThumbnailContainerWidth-r)/2)+"px",n.thumbCanvas.style.top="22px",n.thumbLabel.style.width=this.fsiThumbnailContainerWidth+2+"px",n.thumbLabel.style.left="-1px",n.thumbLabel.style.top=
i+22+"px",n.thumbLabel.innerHTML=this.imagesSets[t].label,f+=this.fsiThumbnailContainerHeight;for(;t<this.imagesSets.length;t++)i=50,r=Math.round(i*this.imagesSets[t].ratio),r>this.fsiThumbnailContainerWidth-2*this.fsiThumbsContainerPadding&&(r=this.fsiThumbnailContainerWidth-2*this.fsiThumbsContainerPadding,i=Math.round(r/this.imagesSets[t].ratio)),o<i&&(o=i),n=document.createElement("div"),n.onclick=this.thumb_clickHandler,n.style.display="block",n.style.top=f+"px",n.style.left=this.fsiThumbsContainerPadding+"px",n.style.width=this.fsiThumbnailContainerWidth+"px",n.style.height=this.fsiThumbnailContainerHeight+"px",n.thumbCanvas=document.createElement("canvas"),n.appendChild(n.thumbCanvas),n.thumbLabel=document.createElement("p"),n.thumbLabel.style.width=this.fsiThumbnailContainerWidth+2+"px",n.thumbLabel.style.left="-1px",n.thumbLabel.style.top=i+22+"px",n.appendChild(n.thumbLabel),n.thumbLabel.innerHTML=this.imagesSets[t].label,this.fsiThumbnailsScrollingContainer.appendChild(n),s=this.imageBasePath+this.
imagesSets[t].prefix+this.imagesSets[t].images[0]+this.imagesSets[t].suffix+"&sharpen="+this.sharpen+"&quality="+this.quality+"&width="+r+"&height="+i+"&left=0&top=0&right=1&bottom=1&tmp=fsi&profile=png",h.addItem(this.createLoadingItem(n.thumbCanvas,s,this.imagesSets.length-t,r,i,r,i,this.thumb_loadHandler)),n.thumbCanvas.style.left=Math.round((this.fsiThumbnailContainerWidth-r)/2)+"px",n.thumbCanvas.style.top="22px",f+=this.fsiThumbnailContainerHeight,this.availableThumbnails.push(n);this.fsiThumbnailsScrollingContainer.style.width=this.fsiThumbnailsContainer.clientWidth-2+"px";this.fsiThumbnailsScrollingContainer.style.height=f+2+"px";e=document.createElement("div");e.id="thumbSelector";e.style.width=this.fsiThumbnailsContainer.clientWidth-12+"px";e.style.height=this.fsiThumbnailContainerHeight-5+"px";this.fsiThumbnailsScrollingContainer.appendChild(e);this.showHideThumbnailsButtons();this.thumbnailScroller.iScroll.refresh();h.load()};this.imageSetConfigError=function(){};this.imageSetConfigLoaded=function(
){for(var n=0;n<FSIModule.getInstance().imagesSets.length;n++)if(FSIModule.getInstance().imagesSets[n].ratio==0){FSIModule.getInstance().imagesSets[n].ratio=this.width/this.height;break}FSIModule.getInstance().fakeImage.onload="";delete FSIModule.getInstance().fakeImage.onload;FSIModule.getInstance().fakeImage.onerror="";delete FSIModule.getInstance().fakeImage.onerror;this.src="/img/common/FSI/blank.png";delete FSIModule.getInstance().fakeImage;FSIModule.getInstance().loadImageSetConfig()};this.changeSet=function(n){var e,o,h,i,f,s;if(this.forceCloseZoom(),this.currentSet!=n){for(this.stopRotation(),e=ImagePreloader.getInstance("FSIViewContainerLoader"),e.cancelAllLoadings(),this.fsiButtonsContainer.style.display="none",this.fsiCurrentViewContainer.style["-webkit-transition"]="none 0ms",this.fsiCurrentViewContainer.style["-webkit-transform"]="translate(0px, 0px) scale(1)",this.fsiCurrentViewContainer.style["-ms-transform"]="translate(0px, 0px) scale(1)",this.fsiCurrentViewContainer.style.MozTransition="none 0ms",
this.fsiCurrentViewContainer.style.MozTransform="translate(0px, 0px) scale(1)",this.fsiCurrentViewContainer.style.OTransition="all 0ms",this.fsiCurrentViewContainer.style.OTransform="translate(0px, 0px) scale(1)",this.fsiCurrentViewContainer.currentLeft=0,this.fsiCurrentViewContainer.currentTop=0,this.imagesSets.length>1&&this.currentSet>=0&&(o=FSIModule.getInstance().fsiThumbnailsScrollingContainer.children[this.currentSet],o.className="FSIThumbNormal"),this.currentSet=n,this.imagesSets.length>1&&(o=FSIModule.getInstance().fsiThumbnailsScrollingContainer.children[this.currentSet],o.className="FSIThumbSelected",document.getElementById("thumbSelector").style.top=o.offsetTop+2+"px"),this.loadedImagesCount=0;this.fsiCurrentViewContainer.children.length;)h=this.fsiCurrentViewContainer.children[0],h.style.display="none",this.fsiCurrentViewContainer.removeChild(h);var t=FSIModule.getInstance().imagesSets[n],r=0,u=0;for(t.ratio>1?Math.round(this.fsiCurrentViewContainer.clientWidth/t.ratio)>this.fsiCurrentViewContainer.
clientWidth?(u=this.fsiCurrentViewContainer.clientHeight-66,r=Math.round(u*t.ratio)):(r=this.fsiCurrentViewContainer.clientWidth,u=Math.round(r/t.ratio)):Math.round(this.fsiCurrentViewContainer.clientHeight*t.ratio)>this.fsiCurrentViewContainer.clientWidth?(r=this.fsiCurrentViewContainer.clientWidth,u=Math.round(r/t.ratio)):(u=this.fsiCurrentViewContainer.clientHeight-66,r=Math.round(u*t.ratio)),i=0;i<this.availableViewContainers.length&&i<t.images.length;i++)f=this.availableViewContainers[i],f.style.display=i==0?"block":"none",this.fsiCurrentViewContainer.appendChild(f),s=this.imageBasePath+t.prefix+t.images[i]+t.suffix+"&sharpen="+this.sharpen+"&quality="+this.quality+"&width="+r+"&height="+u+"&left=0&top=0&right=1&bottom=1&tmp=fsi&profile=png",e.addItem(this.createLoadingItem(f,s,t.images.length-i,r,u,this.fsiCurrentViewContainer.clientWidth,this.fsiCurrentViewContainer.clientHeight,this.viewContainer_loadHandler));for(;i<t.images.length;i++)f=document.createElement("canvas"),f.style.display=i==0?"block":"none",
this.fsiCurrentViewContainer.appendChild(f),this.availableViewContainers.push(f),s=this.imageBasePath+t.prefix+t.images[i]+t.suffix+"&sharpen="+this.sharpen+"&quality="+this.quality+"&width="+r+"&height="+u+"&left=0&top=0&right=1&bottom=1&tmp=fsi&profile=png",e.addItem(this.createLoadingItem(f,s,t.images.length-i,r,u,this.fsiCurrentViewContainer.clientWidth,this.fsiCurrentViewContainer.clientHeight,this.viewContainer_loadHandler));this.currentShownViewContainerIndex=0;e.load();this.forceCloseZoom()}};this.createLoadingItem=function(n,t,i,r,u,f,e,o){var s=new ImageLoadingItem;return s.src=t,s.onLoad={object:this,callback:o},s.priority=i,s.canvas=n,n.startX=s.startX=(f-r)/2,n.startY=s.startY=(e-u)/2,n.startWidth=s.width=r,n.startHeight=s.height=u,s.decache=!1,n.width=f,n.height=e,n.style.top="0px",n.style.left="0px",s};this.viewContainer_loadHandler=function(){this.loadedImagesCount++;this.imagesSets[this.currentSet].images.length==this.loadedImagesCount&&FSIModule.getInstance().startRotation();this.fsiButtonsContainer.
style.display="block";this.imagesSets[this.currentSet].images.length==this.loadedImagesCount&&this.imagesSets[this.currentSet].images.length>1};this.startRotation=function(){this.rotationInterval||this.currentZoomPercent!=100||($(this.fsiStartStopButton).css("border-color","#b1b1b1"),this.imagesSets[this.currentSet].images.length>1&&(this.rotationInterval=setInterval("FSIModule.getInstance().changeImage('prev')",this.imagesSets[this.currentSet].timeoutInterval),$(this.moduleParentContainer).trigger("rotationStarted")))};this.stopRotation=function(){$(this.fsiStartStopButton).css("border-color","transparent");this.rotationInterval&&(clearInterval(this.rotationInterval),this.rotationInterval=null)};this.startStopRotation=function(){this.rotationInterval?(clearInterval(this.rotationInterval),this.rotationInterval=null,$(this.fsiStartStopButton).css("border-color","transparent")):this.currentZoomPercent==100&&(this.rotationInterval=setInterval("FSIModule.getInstance().changeImage('prev')",this.imagesSets[this.currentSet].
timeoutInterval),$(this.fsiStartStopButton).css("border-color","#b1b1b1"))};this.changeImage=function(n){var t=this.imagesSets[this.currentSet].sequence,r=t[this.currentShownViewContainerIndex],i;(n!="next"?(this.currentShownViewContainerIndex++,this.currentShownViewContainerIndex>=t.length&&(this.currentShownViewContainerIndex=0)):(this.currentShownViewContainerIndex--,this.currentShownViewContainerIndex<0&&(this.currentShownViewContainerIndex=t.length-1)),i=t[this.currentShownViewContainerIndex],r!=i)&&(this.fsiCurrentViewContainer.children[i].style.display="block",this.fsiCurrentViewContainer.children[r].style.display="none")};this.thumb_loadHandler=function(){};this.thumb_clickHandler=function(){FSIModule.getInstance().changeSet(FSIModule.getInstance().availableThumbnails.indexOf(this))};this.showHideThumbnailsButtons=function(){this.fsiThumbnailsContainerInner.clientHeight>this.fsiThumbnailsScrollingContainer.clientHeight?(this.thumbsScrollDownButton.style.display="none",this.thumbsScrollUpButton.style.display=
"none"):(this.thumbsScrollDownButton.style.display="block",this.thumbsScrollUpButton.style.display="block")};this.fsiImageContainer_touchStartHandler=function(n){var t;n.preventDefault();t=FSIModule.getInstance();$(t.fsiImageContainer).on("touchmove mousemove",t.fsiImageContainer_touchMoveHandler);var i=n.originalEvent.targetTouches?n.originalEvent.targetTouches[0].pageX:n.originalEvent.pageX,r=n.originalEvent.targetTouches?n.originalEvent.targetTouches[0].pageY:n.originalEvent.pageY,u=t.currentZoomPercent/100;if(u<=1){if(t.imagesSets[t.currentSet].images.length<t.loadedImagesCount)return;t.stopRotation();t.rotationTouchPoint={x:i,y:r}}else t.zoomDragPoint={x:i,y:r,startX:t.fsiCurrentViewContainer.offsetLeft,startY:t.fsiCurrentViewContainer.offsetTop},t.hideZoomPart()};this.fsiImageContainer_touchMoveHandler=function(n){n.preventDefault();var t=FSIModule.getInstance(),r=n.originalEvent.targetTouches?n.originalEvent.targetTouches[0].pageX:n.originalEvent.pageX,u=n.originalEvent.targetTouches?n.originalEvent.targetTouches[
0].pageY:n.originalEvent.pageY,i=t.currentZoomPercent/100,h=t.imagesSets[t.currentSet].sequence;if(i<=1){if(Math.abs(t.rotationTouchPoint.x-r)<5)return;t.rotationTouchPoint.x-r>0?t.changeImage("previous"):t.changeImage("next");t.rotationTouchPoint={x:r,y:u}}else{var e=t.imagesSets[t.currentSet].sequence[t.currentShownViewContainerIndex],f=t.fsiCurrentViewContainer.children[e],o=r-t.zoomDragPoint.x,s=u-t.zoomDragPoint.y;t.zoomDragPoint.x=r;t.zoomDragPoint.y=u;t.fsiCurrentViewContainer.currentLeft+=o;t.fsiCurrentViewContainer.currentTop+=s;t.checkTranslateLimits(f.startWidth*i,f.startHeight*i);t.fsiCurrentViewContainer.style["-webkit-transition"]="none 0ms";t.fsiCurrentViewContainer.style["-webkit-transform"]="matrix("+i+", 0, 0, "+i+", "+t.fsiCurrentViewContainer.currentLeft+", "+t.fsiCurrentViewContainer.currentTop+")";t.fsiCurrentViewContainer.style["-ms-transform"]="matrix("+i+", 0, 0, "+i+", "+t.fsiCurrentViewContainer.currentLeft+", "+t.fsiCurrentViewContainer.currentTop+")";t.fsiCurrentViewContainer.style.
MozTransition="none 0ms";t.fsiCurrentViewContainer.style.MozTransform="matrix("+i+", 0, 0, "+i+", "+t.fsiCurrentViewContainer.currentLeft+", "+t.fsiCurrentViewContainer.currentTop+")";t.fsiCurrentViewContainer.style.OTransition="all 0ms";t.fsiCurrentViewContainer.style.OTransform="matrix("+i+", 0, 0, "+i+", "+t.fsiCurrentViewContainer.currentLeft+", "+t.fsiCurrentViewContainer.currentTop+")"}};this.checkTranslateLimits=function(n,t){var r=(n-this.fsiImageContainer.clientWidth)/2,i;r>0?(this.fsiCurrentViewContainer.currentLeft>r&&(this.fsiCurrentViewContainer.currentLeft=r),this.fsiCurrentViewContainer.currentLeft<-r&&(this.fsiCurrentViewContainer.currentLeft=-r)):this.fsiCurrentViewContainer.currentLeft=0;i=(t-this.fsiImageContainer.clientHeight)/2;i>0?(this.fsiCurrentViewContainer.currentTop>i&&(this.fsiCurrentViewContainer.currentTop=i),this.fsiCurrentViewContainer.currentTop<-i&&(this.fsiCurrentViewContainer.currentTop=-i)):this.fsiCurrentViewContainer.currentTop=0;this.fsiCurrentViewContainer.currentLeft=
Math.round(this.fsiCurrentViewContainer.currentLeft);this.fsiCurrentViewContainer.currentTop=Math.round(this.fsiCurrentViewContainer.currentTop)};this.fsiImageContainer_touchEndHandler=function(n){n.preventDefault();var t=FSIModule.getInstance();$(t.fsiImageContainer).unbind("mousemove",t.fsiImageContainer_touchMoveHandler);$(t.fsiImageContainer).unbind("touchmove",t.fsiImageContainer_touchMoveHandler);t.currentZoomPercent==100?t.rotationTouchPoint={x:-1,y:-1}:t.loadZoomImage()};this.fsiStartStopButton_clickHandler=function(){FSIModule.getInstance().startStopRotation()};this.fsiZoomInButton_clickHandler=function(){FSIModule.getInstance().zoomInOut(FSIModule.getInstance().currentZoomPercent+100)};this.thumbsScrollDownButton_clickHandler=function(){FSIModule.getInstance().thumbnailScroller.scrollBy(0,-120,300,IScroll.utils.ease.quadratic)};this.thumbsScrollUpButton_clickHandler=function(){FSIModule.getInstance().thumbnailScroller.scrollBy(0,120,300,IScroll.utils.ease.quadratic)};this.zoomInOut=function(n){var r,
u,i,t;this.stopRotation();this.hideZoomPart();r=this.currentZoomPercent/100;this.currentZoomPercent=n;u=this.imagesSets[this.currentSet].sequence[this.currentShownViewContainerIndex];i=this.fsiCurrentViewContainer.children[u];this.currentZoomPercent*i.startHeight/100>this.maxZoomHeight&&(this.currentZoomPercent=Math.floor(this.maxZoomHeight/(i.startHeight/100)));this.currentZoomPercent*i.startWidth/100>this.maxZoomWidth&&(this.currentZoomPercent=Math.floor(this.maxZoomWidth/(i.startWidth/100)));this.currentZoomPercent<100&&(this.currentZoomPercent=100);t=this.currentZoomPercent/100;r>1&&(this.fsiCurrentViewContainer.currentLeft*=(t-1)/(r-1),this.fsiCurrentViewContainer.currentTop*=(t-1)/(r-1));this.checkTranslateLimits(i.startWidth*t,i.startHeight*t);this.fsiCurrentViewContainer.style["-webkit-transition"]="-webkit-transform 800ms";this.fsiCurrentViewContainer.style["-webkit-transform"]="translate("+this.fsiCurrentViewContainer.currentLeft+"px, "+this.fsiCurrentViewContainer.currentTop+"px) scale("+t+")";this.
fsiCurrentViewContainer.style["-webkit-backface-visibility"]="hidden";this.fsiCurrentViewContainer.style["-ms-transform"]="translate("+this.fsiCurrentViewContainer.currentLeft+"px, "+this.fsiCurrentViewContainer.currentTop+"px) scale("+t+")";this.fsiCurrentViewContainer.style.MozTransition="-moz-transform 800ms";this.fsiCurrentViewContainer.style.MozTransform="translate("+this.fsiCurrentViewContainer.currentLeft+"px, "+this.fsiCurrentViewContainer.currentTop+"px) scale("+t+")";this.fsiCurrentViewContainer.style.OTransition="all 800ms";this.fsiCurrentViewContainer.style.OTransform="translate("+this.fsiCurrentViewContainer.currentLeft+"px, "+this.fsiCurrentViewContainer.currentTop+"px) scale("+t+")";$("body").hasClass("isMsie")&&this.fsiImageContainer_webkitTransitionEndHandler()};this.fsiImageContainer_webkitTransitionEndHandler=function(){var n=FSIModule.getInstance();n.currentZoomPercent==100?n.zoomOut():n.loadZoomImage()};this.loadZoomImage=function(){var n=this.currentZoomPercent/100,l=this.imagesSets[this.
currentSet].sequence[this.currentShownViewContainerIndex],t=this.fsiCurrentViewContainer.children[l],s=this.imagesSets[this.currentSet],i=n*t.startWidth,h=this.fsiImageContainer.clientWidth,r=n*t.startHeight,c=this.fsiImageContainer.clientHeight,u=((i-h)/2-this.fsiCurrentViewContainer.currentLeft)/i,f=((i-h)/2+h-this.fsiCurrentViewContainer.currentLeft)/i,e=((r-c)/2-this.fsiCurrentViewContainer.currentTop)/r,o=((r-c)/2+c-this.fsiCurrentViewContainer.currentTop)/r;e<0&&(e=0);o>1&&(o=1);u<0&&(u=0);f>1&&(f=1);var a=parseInt(n*t.startWidth*(f-u)),v=parseInt(n*t.startHeight*(o-e)),y=this.imageBasePath+s.prefix+s.images[l]+s.suffix+"&sharpen="+this.sharpen+"&quality="+this.quality+"&width="+a+"&height="+this.fsiImageContainer.clientHeight+"&left="+u+"&top="+e+"&right="+f+"&bottom="+o+"&tmp=fsi&profile=png",p=this.createLoadingItem(this.fsiZoomCanvas,y,50,a,v,this.fsiImageContainer.clientWidth,this.fsiImageContainer.clientHeight,this.onZoomLoad);ImagePreloader.getInstance("FSIZoomLoader").cancelAllLoadings();ImagePreloader.
getInstance("FSIZoomLoader").addItem(p);ImagePreloader.getInstance("FSIZoomLoader").load()};this.onZoomLoad=function(){this.fsiZoomCanvas.style.display="block"};this.fsiZoomOutButton_clickHandler=function(){FSIModule.getInstance().zoomInOut(FSIModule.getInstance().currentZoomPercent-100)};this.fullscreenButton_clickHandler=function(){FSIModule.getInstance().fullscreenMode?window.close():window.open(FSIModule.getInstance().fullscreenHTML+"?fsiId="+FSIModule.getInstance().fsiID+"&config="+FSIModule.getInstance().configBaseLanguage,"_fsifullscreen")};this.zoomOut=function(){this.fsiCurrentViewContainer.currentLeft=0;this.fsiCurrentViewContainer.currentTop=0;this.hideZoomPart()};this.forceCloseZoom=function(){var n,t;for(this.currentZoomPercent=100,this.hideZoomPart(),n=0;n<this.fsiCurrentViewContainer.children.length;n++)t=this.fsiCurrentViewContainer.children[n],t.style.width=this.fsiImageContainer.clientWidth+"px",t.style.height=this.fsiImageContainer.clientHeight+"px";this.fsiCurrentViewContainer.style.left="0px";
this.fsiCurrentViewContainer.style.top="0px";this.fsiCurrentViewContainer.style.width=this.fsiImageContainer.clientWidth+"px";this.fsiCurrentViewContainer.style.height=this.fsiImageContainer.clientHeight+"px"};this.hideZoomPart=function(){ImagePreloader.getInstance("FSIZoomLoader").cancelAllLoadings();this.fsiZoomCanvas.getContext("2d").clearRect(0,0,this.fsiZoomCanvas.width,this.fsiZoomCanvas.height);this.fsiZoomCanvas.style.display="none"};this.fsiMainBackground_clickHandler=function(){FSIModule.getInstance().closeFSI()};this.closeFSI=function(){var n;for(FSIModule.getInstance().forceCloseZoom(),ImagePreloader.getInstance("FSIViewContainerLoader").cancelAllLoadings(),ImagePreloader.getInstance("FSIViewThumbsLoader").cancelAllLoadings(),this.fsiButtonsContainer.style.display="none",this.rotationTouchPoint={x:-1,y:-1},this.fsiPreloader.style.display="none",this.stopRotation(),FSIModule.getInstance().fakeImage&&(this.fakeImage.onload="",delete this.fakeImage.onload,this.fakeImage.onerror="",delete this.fakeImage.
onerror,this.fakeImage.src="/img/common/FSI/blank.png",delete this.fakeImage),this.moduleContainer.style.display="none",this.imagesSets.length=0;this.fsiThumbnailsScrollingContainer.children.length;){if(n=this.fsiThumbnailsScrollingContainer.children[0],!n.thumbCanvas){this.fsiThumbnailsScrollingContainer.removeChild(n);continue}n.thumbCanvas.getContext("2d").clearRect(0,0,n.thumbCanvas.width,n.thumbCanvas.height);n.style.display="none";n.className="FSIThumbNormal";this.fsiThumbnailsScrollingContainer.removeChild(n)}while(this.fsiCurrentViewContainer.children.length)n=this.fsiCurrentViewContainer.children[0],n.getContext("2d").clearRect(0,0,n.width,n.height),n.style.display="none",this.fsiCurrentViewContainer.removeChild(n);this.currentSet=-1}};ImageSet=function(){this.label;this.prefix;this.suffix;this.ratio=0;this.timeoutInterval=0;this.sequence=[];this.images=[]};FSIModule.getInstance=function(){return FSIModule.instance==undefined&&(FSIModule.instance=new FSIModule),FSIModule.instance};ImagePreloader=function(
){this.key;this.loadingItems=[];this.imagesInUse=[];this.connectionLimit=2;this.cancelAllLoadings=function(){this.loadingItems.length=0;for(var n=0;n<this.imagesInUse.length;n++)this.imagesInUse[n].onload="",delete this.imagesInUse[n].onload,this.imagesInUse[n].src="/img/common/FSI/blank.png",this.imagesInUse[n].onerror="",delete this.imagesInUse[n].onerror,delete this.imagesInUse[n];this.imagesInUse.length=0};this.addItem=function(n){if(n.src=="#"){n.onLoad.callback.call(n.onLoad.object,n.canvas,n.startX,n.src);return}this.loadingItems.push(n);this.loadingItems.sort(function(n,t){return n.priority-t.priority})};this.load=function(){for(var n,t=0;t<this.connectionLimit&&this.imagesInUse.length<=this.connectionLimit&&this.loadingItems.length>0;t++)n=this.loadingItems.pop(),this.imagesInUse[this.imagesInUse.length]=new Image(n.width,n.height),this.imagesInUse[this.imagesInUse.length-1].loadingItem=n,this.imagesInUse[this.imagesInUse.length-1].key=this.key,this.imagesInUse[this.imagesInUse.length-1].onload=this.
onload,this.imagesInUse[this.imagesInUse.length-1].onerror=this.onerror,this.imagesInUse[this.imagesInUse.length-1].src=n.decache?this.imagesInUse[this.imagesInUse.length-1].loadingItem.src+"?"+Math.random():this.imagesInUse[this.imagesInUse.length-1].loadingItem.src};this.onload=function(){var t=this.key,r=ImagePreloader.getInstance(t).imagesInUse.indexOf(this),n=ImagePreloader.getInstance(t).imagesInUse.splice(r,1)[0],i;if(n.width=this.loadingItem.width,n.height=this.loadingItem.height,t=="FSIViewContainerLoader"){this.startWidth=this.loadingItem.canvas.startWidth;this.startHeight=this.loadingItem.canvas.startHeight;this.style.display=this.loadingItem.canvas.style.display;$(this.loadingItem.canvas).before(this);$(this.loadingItem.canvas).remove();delete n.onload;delete n.onerror;this.loadingItem.onLoad.callback.call(this.loadingItem.onLoad.object,this.loadingItem.canvas,this.loadingItem.startX,this.loadingItem.src);ImagePreloader.getInstance(t).load();return}i=this.loadingItem.canvas.getContext("2d");i.drawImage(
this,parseInt(this.loadingItem.startX),parseInt(this.loadingItem.startY),parseInt(this.loadingItem.width),parseInt(this.loadingItem.height));this.loadingItem.onLoad.callback.call(this.loadingItem.onLoad.object,this.loadingItem.canvas,this.loadingItem.startX,this.loadingItem.src);n.onload="";n.onerror="";n.src="/img/common/FSI/blank.png";delete n.onload;delete n.onerror;delete n;ImagePreloader.getInstance(t).load()};this.onerror=function(){var n=this.key,i=ImagePreloader.getInstance(n).imagesInUse.indexOf(this),t=ImagePreloader.getInstance(n).imagesInUse.splice(i,1);this.loadingItem.numbersOfTries--;this.loadingItem.numbersOfTries>=0&&ImagePreloader.getInstance(n).addItem(this.loadingItem);delete t.onload;delete t.onerror;delete t;ImagePreloader.getInstance(n).load()}};ImagePreloader.getInstance=function(n){return ImagePreloader.instance==undefined&&(ImagePreloader.instance={}),ImagePreloader.instance[n]==undefined&&(ImagePreloader.instance[n]=new ImagePreloader,ImagePreloader.instance[n].key=n),ImagePreloader.
instance[n]};ImageLoadingItem=function(){this.numbersOfTries=4;this.image;this.src;this.onLoad;this.priority;this.canvas;this.startX=0;this.startY=0;this.width;this.height;this.decache=!0},function(){var y=this,at=y._,e={},r=Array.prototype,g=Object.prototype,vt=Function.prototype,nt=r.push,i=r.slice,o=r.concat,f=g.toString,yt=g.hasOwnProperty,tt=r.forEach,it=r.map,rt=r.reduce,ut=r.reduceRight,ft=r.filter,et=r.every,ot=r.some,s=r.indexOf,st=r.lastIndexOf,pt=Array.isArray,ht=Object.keys,p=vt.bind,n=function(t){return t instanceof n?t:this instanceof n?void(this._wrapped=t):new n(t)},t,w,b,h,c,k,l,a,u,ct,lt,v;"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=n),exports._=n):y._=n;n.VERSION="1.6.0";t=n.each=n.forEach=function(t,i,r){var u,f;if(null==t)return t;if(tt&&t.forEach===tt)t.forEach(i,r);else if(t.length===+t.length){for(u=0,f=t.length;f>u;u++)if(i.call(r,t[u],u,t)===e)return}else for(var o=n.keys(t),u=0,f=o.length;f>u;u++)if(i.call(r,t[o[u]],o[u],t)===e)return;
return t};n.map=n.collect=function(n,i,r){var u=[];return null==n?u:it&&n.map===it?n.map(i,r):(t(n,function(n,t,f){u.push(i.call(r,n,t,f))}),u)};w="Reduce of empty array with no initial value";n.reduce=n.foldl=n.inject=function(i,r,u,f){var e=arguments.length>2;if(null==i&&(i=[]),rt&&i.reduce===rt)return f&&(r=n.bind(r,f)),e?i.reduce(r,u):i.reduce(r);if(t(i,function(n,t,i){e?u=r.call(f,u,n,t,i):(u=n,e=!0)}),!e)throw new TypeError(w);return u};n.reduceRight=n.foldr=function(i,r,u,f){var o=arguments.length>2,e,s;if(null==i&&(i=[]),ut&&i.reduceRight===ut)return f&&(r=n.bind(r,f)),o?i.reduceRight(r,u):i.reduceRight(r);if(e=i.length,e!==+e&&(s=n.keys(i),e=s.length),t(i,function(n,t,h){t=s?s[--e]:--e;o?u=r.call(f,u,i[t],t,h):(u=i[t],o=!0)}),!o)throw new TypeError(w);return u};n.find=n.detect=function(n,t,i){var r;return b(n,function(n,u,f){if(t.call(i,n,u,f))return(r=n,!0)}),r};n.filter=n.select=function(n,i,r){var u=[];return null==n?u:ft&&n.filter===ft?n.filter(i,r):(t(n,function(n,t,f){i.call(r,n,t,f)&&u.push(n)}
),u)};n.reject=function(t,i,r){return n.filter(t,function(n,t,u){return!i.call(r,n,t,u)},r)};n.every=n.all=function(i,r,u){r||(r=n.identity);var f=!0;return null==i?f:et&&i.every===et?i.every(r,u):(t(i,function(n,t,i){if(!(f=f&&r.call(u,n,t,i)))return e}),!!f)};b=n.some=n.any=function(i,r,u){r||(r=n.identity);var f=!1;return null==i?f:ot&&i.some===ot?i.some(r,u):(t(i,function(n,t,i){if(f||(f=r.call(u,n,t,i)))return e}),!!f)};n.contains=n.include=function(n,t){return null==n?!1:s&&n.indexOf===s?n.indexOf(t)!=-1:b(n,function(n){return n===t})};n.invoke=function(t,r){var u=i.call(arguments,2),f=n.isFunction(r);return n.map(t,function(n){return(f?r:n[r]).apply(n,u)})};n.pluck=function(t,i){return n.map(t,n.property(i))};n.where=function(t,i){return n.filter(t,n.matches(i))};n.findWhere=function(t,i){return n.find(t,n.matches(i))};n.max=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.max.apply(Math,i);var f=-1/0,e=-1/0;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;o>e&&(f=n,e=o)
}),f};n.min=function(i,r,u){if(!r&&n.isArray(i)&&i[0]===+i[0]&&i.length<65535)return Math.min.apply(Math,i);var f=1/0,e=1/0;return t(i,function(n,t,i){var o=r?r.call(u,n,t,i):n;e>o&&(f=n,e=o)}),f};n.shuffle=function(i){var u,f=0,r=[];return t(i,function(t){u=n.random(f++);r[f-1]=r[u];r[u]=t}),r};n.sample=function(t,i,r){return null==i||r?(t.length!==+t.length&&(t=n.values(t)),t[n.random(t.length-1)]):n.shuffle(t).slice(0,Math.max(0,i))};h=function(t){return null==t?n.identity:n.isFunction(t)?t:n.property(t)};n.sortBy=function(t,i,r){return i=h(i),n.pluck(n.map(t,function(n,t,u){return{value:n,index:t,criteria:i.call(r,n,t,u)}}).sort(function(n,t){var i=n.criteria,r=t.criteria;if(i!==r){if(i>r||i===void 0)return 1;if(r>i||r===void 0)return-1}return n.index-t.index}),"value")};c=function(n){return function(i,r,u){var f={};return r=h(r),t(i,function(t,e){var o=r.call(u,t,e,i);n(f,o,t)}),f}};n.groupBy=c(function(t,i,r){n.has(t,i)?t[i].push(r):t[i]=[r]});n.indexBy=c(function(n,t,i){n[t]=i});n.countBy=c(function(t,
i){n.has(t,i)?t[i]++:t[i]=1});n.sortedIndex=function(n,t,i,r){var f;i=h(i);for(var o=i.call(r,t),u=0,e=n.length;e>u;)f=u+e>>>1,i.call(r,n[f])<o?u=f+1:e=f;return u};n.toArray=function(t){return t?n.isArray(t)?i.call(t):t.length===+t.length?n.map(t,n.identity):n.values(t):[]};n.size=function(t){return null==t?0:t.length===+t.length?t.length:n.keys(t).length};n.first=n.head=n.take=function(n,t,r){if(null!=n)return null==t||r?n[0]:0>t?[]:i.call(n,0,t)};n.initial=function(n,t,r){return i.call(n,0,n.length-(null==t||r?1:t))};n.last=function(n,t,r){if(null!=n)return null==t||r?n[n.length-1]:i.call(n,Math.max(n.length-t,0))};n.rest=n.tail=n.drop=function(n,t,r){return i.call(n,null==t||r?1:t)};n.compact=function(t){return n.filter(t,n.identity)};k=function(i,r,u){return r&&n.every(i,n.isArray)?o.apply(u,i):(t(i,function(t){n.isArray(t)||n.isArguments(t)?r?nt.apply(u,t):k(t,r,u):u.push(t)}),u)};n.flatten=function(n,t){return k(n,t,[])};n.without=function(t){return n.difference(t,i.call(arguments,1))};n.partition=function(
n,i){var r=[],u=[];return t(n,function(n){(i(n)?r:u).push(n)}),[r,u]};n.uniq=n.unique=function(i,r,u,f){n.isFunction(r)&&(f=u,u=r,r=!1);var s=u?n.map(i,u,f):i,o=[],e=[];return t(s,function(t,u){(r?u&&e[e.length-1]===t:n.contains(e,t))||(e.push(t),o.push(i[u]))}),o};n.union=function(){return n.uniq(n.flatten(arguments,!0))};n.intersection=function(t){var r=i.call(arguments,1);return n.filter(n.uniq(t),function(t){return n.every(r,function(i){return n.contains(i,t)})})};n.difference=function(t){var u=o.apply(r,i.call(arguments,1));return n.filter(t,function(t){return!n.contains(u,t)})};n.zip=function(){for(var i=n.max(n.pluck(arguments,"length").concat(0)),r=new Array(i),t=0;i>t;t++)r[t]=n.pluck(arguments,""+t);return r};n.object=function(n,t){if(null==n)return{};for(var r={},i=0,u=n.length;u>i;i++)t?r[n[i]]=t[i]:r[n[i][0]]=n[i][1];return r};n.indexOf=function(t,i,r){if(null==t)return-1;var u=0,f=t.length;if(r){if("number"!=typeof r)return u=n.sortedIndex(t,i),t[u]===i?u:-1;u=0>r?Math.max(0,f+r):r}if(s&&t.indexOf===
s)return t.indexOf(i,r);for(;f>u;u++)if(t[u]===i)return u;return-1};n.lastIndexOf=function(n,t,i){var u,r;if(null==n)return-1;if(u=null!=i,st&&n.lastIndexOf===st)return u?n.lastIndexOf(t,i):n.lastIndexOf(t);for(r=u?i:n.length;r--;)if(n[r]===t)return r;return-1};n.range=function(n,t,i){arguments.length<=1&&(t=n||0,n=0);i=arguments[2]||1;for(var r=Math.max(Math.ceil((t-n)/i),0),u=0,f=new Array(r);r>u;)f[u++]=n,n+=i;return f};l=function(){};n.bind=function(t,r){var u,f;if(p&&t.bind===p)return p.apply(t,i.call(arguments,1));if(!n.isFunction(t))throw new TypeError;return u=i.call(arguments,2),f=function(){var e,n;return(this instanceof f)?(l.prototype=t.prototype,e=new l,l.prototype=null,n=t.apply(e,u.concat(i.call(arguments))),Object(n)===n?n:e):t.apply(r,u.concat(i.call(arguments)))}};n.partial=function(t){var r=i.call(arguments,1);return function(){for(var f=0,i=r.slice(),u=0,e=i.length;e>u;u++)i[u]===n&&(i[u]=arguments[f++]);for(;f<arguments.length;)i.push(arguments[f++]);return t.apply(this,i)}};n.bindAll=function(
r){var u=i.call(arguments,1);if(0===u.length)throw new Error("bindAll must be passed function names");return t(u,function(t){r[t]=n.bind(r[t],r)}),r};n.memoize=function(t,i){var r={};return i||(i=n.identity),function(){var u=i.apply(this,arguments);return n.has(r,u)?r[u]:r[u]=t.apply(this,arguments)}};n.delay=function(n,t){var r=i.call(arguments,2);return setTimeout(function(){return n.apply(null,r)},t)};n.defer=function(t){return n.delay.apply(n,[t,1].concat(i.call(arguments,1)))};n.throttle=function(t,i,r){var u,f,s,e=null,o=0,h;return r||(r={}),h=function(){o=r.leading===!1?0:n.now();e=null;s=t.apply(u,f);u=f=null},function(){var c=n.now(),l;return o||r.leading!==!1||(o=c),l=i-(c-o),u=this,f=arguments,0>=l?(clearTimeout(e),e=null,o=c,s=t.apply(u,f),u=f=null):e||r.trailing===!1||(e=setTimeout(h,l)),s}};n.debounce=function(t,i,r){var u,f,e,s,o,h=function(){var c=n.now()-s;i>c?u=setTimeout(h,i-c):(u=null,r||(o=t.apply(e,f),e=f=null))};return function(){e=this;f=arguments;s=n.now();var c=r&&!u;return u||(u=setTimeout(
h,i)),c&&(o=t.apply(e,f),e=f=null),o}};n.once=function(n){var t,i=!1;return function(){return i?t:(i=!0,t=n.apply(this,arguments),n=null,t)}};n.wrap=function(t,i){return n.partial(i,t)};n.compose=function(){var n=arguments;return function(){for(var t=arguments,i=n.length-1;i>=0;i--)t=[n[i].apply(this,t)];return t[0]}};n.after=function(n,t){return function(){if(--n<1)return t.apply(this,arguments)}};n.keys=function(t){var i,r;if(!n.isObject(t))return[];if(ht)return ht(t);i=[];for(r in t)n.has(t,r)&&i.push(r);return i};n.values=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;u>i;i++)f[i]=t[r[i]];return f};n.pairs=function(t){for(var r=n.keys(t),u=r.length,f=new Array(u),i=0;u>i;i++)f[i]=[r[i],t[r[i]]];return f};n.invert=function(t){for(var u={},r=n.keys(t),i=0,f=r.length;f>i;i++)u[t[r[i]]]=r[i];return u};n.functions=n.methods=function(t){var i=[];for(var r in t)n.isFunction(t[r])&&i.push(r);return i.sort()};n.extend=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]=t[i]}
),n};n.pick=function(n){var u={},f=o.apply(r,i.call(arguments,1));return t(f,function(t){t in n&&(u[t]=n[t])}),u};n.omit=function(t){var f={},e=o.apply(r,i.call(arguments,1));for(var u in t)n.contains(e,u)||(f[u]=t[u]);return f};n.defaults=function(n){return t(i.call(arguments,1),function(t){if(t)for(var i in t)n[i]===void 0&&(n[i]=t[i])}),n};n.clone=function(t){return n.isObject(t)?n.isArray(t)?t.slice():n.extend({},t):t};n.tap=function(n,t){return t(n),n};a=function(t,i,r,u){var l,v,h,c,e,o,s;if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return t===i;if(t instanceof n&&(t=t._wrapped),i instanceof n&&(i=i._wrapped),l=f.call(t),l!=f.call(i))return!1;switch(l){case"[object String]":return t==String(i);case"[object Number]":return t!=+t?i!=+i:0==t?1/t==1/i:t==+i;case"[object Date]":case"[object Boolean]":return+t==+i;case"[object RegExp]":return t.source==i.source&&t.global==i.global&&t.multiline==i.multiline&&t.ignoreCase==i.ignoreCase}if("object"!=typeof t||"object"!=typeof i)return!1;for(v=r.length;v--;
)if(r[v]==t)return u[v]==i;if(h=t.constructor,c=i.constructor,h!==c&&!(n.isFunction(h)&&h instanceof h&&n.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in i)return!1;if(r.push(t),u.push(i),e=0,o=!0,"[object Array]"==l){if(e=t.length,o=e==i.length)for(;e--&&(o=a(t[e],i[e],r,u)););}else{for(s in t)if(n.has(t,s)&&(e++,!(o=n.has(i,s)&&a(t[s],i[s],r,u))))break;if(o){for(s in i)if(n.has(i,s)&&!e--)break;o=!e}}return r.pop(),u.pop(),o};n.isEqual=function(n,t){return a(n,t,[],[])};n.isEmpty=function(t){if(null==t)return!0;if(n.isArray(t)||n.isString(t))return 0===t.length;for(var i in t)if(n.has(t,i))return!1;return!0};n.isElement=function(n){return!(!n||1!==n.nodeType)};n.isArray=pt||function(n){return"[object Array]"==f.call(n)};n.isObject=function(n){return n===Object(n)};t(["Arguments","Function","String","Number","Date","RegExp"],function(t){n["is"+t]=function(n){return f.call(n)=="[object "+t+"]"}});n.isArguments(arguments)||(n.isArguments=function(t){return!(!t||!n.has(t,"callee"))});"function"!=
typeof/./&&(n.isFunction=function(n){return"function"==typeof n});n.isFinite=function(n){return isFinite(n)&&!isNaN(parseFloat(n))};n.isNaN=function(t){return n.isNumber(t)&&t!=+t};n.isBoolean=function(n){return n===!0||n===!1||"[object Boolean]"==f.call(n)};n.isNull=function(n){return null===n};n.isUndefined=function(n){return n===void 0};n.has=function(n,t){return yt.call(n,t)};n.noConflict=function(){return y._=at,this};n.identity=function(n){return n};n.constant=function(n){return function(){return n}};n.property=function(n){return function(t){return t[n]}};n.matches=function(n){return function(t){if(t===n)return!0;for(var i in n)if(n[i]!==t[i])return!1;return!0}};n.times=function(n,t,i){for(var u=Array(Math.max(0,n)),r=0;n>r;r++)u[r]=t.call(i,r);return u};n.random=function(n,t){return null==t&&(t=n,n=0),n+Math.floor(Math.random()*(t-n+1))};n.now=Date.now||function(){return(new Date).getTime()};u={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;"}};u.unescape=n.invert(u.escape);ct={escape:
new RegExp("["+n.keys(u.escape).join("")+"]","g"),unescape:new RegExp("("+n.keys(u.unescape).join("|")+")","g")};n.each(["escape","unescape"],function(t){n[t]=function(n){return null==n?"":(""+n).replace(ct[t],function(n){return u[t][n]})}});n.result=function(t,i){if(null==t)return void 0;var r=t[i];return n.isFunction(r)?r.call(t):r};n.mixin=function(i){t(n.functions(i),function(t){var r=n[t]=i[t];n.prototype[t]=function(){var t=[this._wrapped];return nt.apply(t,arguments),v.call(this,r.apply(n,t))}})};lt=0;n.uniqueId=function(n){var t=++lt+"";return n?n+t:t};n.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var d=/(.)^/,wt={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},bt=/\\|'|\r|\n|\t|\u2028|\u2029/g;n.template=function(t,i,r){var f,e;r=n.defaults({},r,n.templateSettings);var h=new RegExp([(r.escape||d).source,(r.interpolate||d).source,(r.evaluate||d).source].join("|")+"|$","g"),o=0,u="__p+='";t.replace(h,function(n,i,
r,f,e){return u+=t.slice(o,e).replace(bt,function(n){return"\\"+wt[n]}),i&&(u+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),r&&(u+="'+\n((__t=("+r+"))==null?'':__t)+\n'"),f&&(u+="';\n"+f+"\n__p+='"),o=e+n.length,n});u+="';\n";r.variable||(u="with(obj||{}){\n"+u+"}\n");u="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+u+"return __p;\n";try{f=new Function(r.variable||"obj","_",u)}catch(s){throw s.source=u,s;}return i?f(i,n):(e=function(t){return f.call(this,t,n)},e.source="function("+(r.variable||"obj")+"){\n"+u+"}",e)};n.chain=function(t){return n(t).chain()};v=function(t){return this._chain?n(t).chain():t};n.mixin(n);t(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var i=r[t];n.prototype[t]=function(){var n=this._wrapped;return i.apply(n,arguments),"shift"!=t&&"splice"!=t||0!==n.length||delete n[0],v.call(this,n)}});t(["concat","join","slice"],function(t){var i=r[t];n.prototype[t]=function(){return v.call(this,i.apply(this._wrapped,arguments))}
});n.extend(n.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}});"function"==typeof define&&define.amd&&define("underscore",[],function(){return n})}.call(this);
/*! Hammer.JS - v2.0.4 - 2014-09-28
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2014 Jorik Tangelder;
 * Licensed under the MIT license */
(function(n,t,i,r){"use strict";function hi(n,t,i){return setTimeout(li(n,i),t)}function it(n,t,i){return Array.isArray(n)?(v(n,i[t],i),!0):!1}function v(n,t,i){var u;if(n)if(n.forEach)n.forEach(t,i);else if(n.length!==r)for(u=0;u<n.length;)t.call(i,n[u],u,n),u++;else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u,n)}function k(n,t,i){for(var f=Object.keys(t),u=0;u<f.length;)(!i||i&&n[f[u]]===r)&&(n[f[u]]=t[f[u]]),u++;return n}function ci(n,t){return k(n,t,!0)}function o(n,t,i){var u=t.prototype,r;r=n.prototype=Object.create(u);r.constructor=n;r._super=u;i&&k(r,i)}function li(n,t){return function(){return n.apply(t,arguments)}}function ai(n,t){return typeof n==fr?n.apply(t?t[0]||r:r,t):n}function er(n,t){return n===r?t:n}function pt(n,t,i){v(bt(t),function(t){n.addEventListener(t,i,!1)})}function wt(n,t,i){v(bt(t),function(t){n.removeEventListener(t,i,!1)})}function or(n,t){while(n){if(n==t)return!0;n=n.parentNode}return!1}function d(n,t){return n.indexOf(t)>-1}function bt(n){return n.trim().split(/\s+/g)}function rt(
n,t,i){if(n.indexOf&&!i)return n.indexOf(t);for(var r=0;r<n.length;){if(i&&n[r][i]==t||!i&&n[r]===t)return r;r++}return-1}function kt(n){return Array.prototype.slice.call(n,0)}function sr(n,t,i){for(var u=[],e=[],r=0,f;r<n.length;)f=t?n[r][t]:n[r],rt(e,f)<0&&u.push(n[r]),e[r]=f,r++;return i&&(u=t?u.sort(function(n,i){return n[t]>i[t]}):u.sort()),u}function dt(n,t){for(var i,u,e=t[0].toUpperCase()+t.slice(1),f=0;f<ur.length;){if(i=ur[f],u=i?i+e:t,u in n)return u;f++}return r}function hu(){return su++}function hr(n){var t=n.ownerDocument;return t.defaultView||t.parentWindow}function cu(){var n=t.getElementById("sniff");return/android/i.test(navigator.userAgent)&&/isChrome/.test(n.text)}function s(n,t){var i=this;this.manager=n;this.callback=t;this.element=n.element;this.target=n.options.inputTarget;this.domHandler=function(t){ai(n.options.enable,[n])&&i.handler(t)};this.init()}function yu(n){var t,i=n.options.inputClass;return t=i?i:lu?pi:au?ri:cr?wi:ii,new t(n,pu)}function pu(n,t,i){var r=i.pointers.length,o=i.
changedPointers.length,s=t&f&&r-o==0,h=t&(u|e)&&r-o==0;i.isFirst=!!s;i.isFinal=!!h;s&&(n.session={});i.eventType=t;wu(n,i);n.emit("hammer.input",i);n.recognize(i);n.session.prevInput=i}function wu(n,t){var i=n.session,u=t.pointers,e=u.length,f;i.firstInput||(i.firstInput=vr(t));e>1&&!i.firstMultiple?i.firstMultiple=vr(t):e===1&&(i.firstMultiple=!1);var o=i.firstInput,r=i.firstMultiple,s=r?r.center:o.center,h=t.center=yr(u);t.timeStamp=si();t.deltaTime=t.timeStamp-o.timeStamp;t.angle=yi(s,h);t.distance=ti(s,h);bu(i,t);t.offsetDirection=pr(t.deltaX,t.deltaY);t.scale=r?nf(r.pointers,u):1;t.rotation=r?gu(r.pointers,u):0;ku(i,t);f=n.element;or(t.srcEvent.target,f)&&(f=t.srcEvent.target);t.target=f}function bu(n,t){var i=t.center,r=n.offsetDelta||{},e=n.prevDelta||{},o=n.prevInput||{};(t.eventType===f||o.eventType===u)&&(e=n.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=n.offsetDelta={x:i.x,y:i.y});t.deltaX=e.x+(i.x-r.x);t.deltaY=e.y+(i.y-r.y)}function ku(n,t){var i=n.lastInterval||t,c=t.timeStamp-i.timeStamp,f,o,s,h;if(
t.eventType!=e&&(c>vu||i.velocity===r)){var l=i.deltaX-t.deltaX,a=i.deltaY-t.deltaY,u=du(c,l,a);o=u.x;s=u.y;f=ft(u.x)>ft(u.y)?u.x:u.y;h=pr(l,a);n.lastInterval=t}else f=i.velocity,o=i.velocityX,s=i.velocityY,h=i.direction;t.velocity=f;t.velocityX=o;t.velocityY=s;t.direction=h}function vr(n){for(var i=[],t=0;t<n.pointers.length;)i[t]={clientX:tt(n.pointers[t].clientX),clientY:tt(n.pointers[t].clientY)},t++;return{timeStamp:si(),pointers:i,center:yr(i),deltaX:n.deltaX,deltaY:n.deltaY}}function yr(n){var t=n.length;if(t===1)return{x:tt(n[0].clientX),y:tt(n[0].clientY)};for(var r=0,u=0,i=0;i<t;)r+=n[i].clientX,u+=n[i].clientY,i++;return{x:tt(r/t),y:tt(u/t)}}function du(n,t,i){return{x:t/n||0,y:i/n||0}}function pr(n,t){return n===t?gt:ft(n)>=ft(t)?n>0?ot:st:t>0?ht:ct}function ti(n,t,i){i||(i=ar);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.sqrt(r*r+u*u)}function yi(n,t,i){i||(i=ar);var r=t[i[0]]-n[i[0]],u=t[i[1]]-n[i[1]];return Math.atan2(u,r)*180/Math.PI}function gu(n,t){return yi(t[1],t[0],ni)-yi(n[1],n[0],
ni)}function nf(n,t){return ti(t[0],t[1],ni)/ti(n[0],n[1],ni)}function ii(){this.evEl=rf;this.evWin=uf;this.allow=!0;this.pressed=!1;s.apply(this,arguments)}function pi(){this.evEl=wr;this.evWin=br;s.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function kr(){this.evTarget=sf;this.evWin=hf;this.started=!1;s.apply(this,arguments)}function cf(n,t){var i=kt(n.touches),r=kt(n.changedTouches);return t&(u|e)&&(i=sr(i.concat(r),"identifier",!0)),[i,r]}function ri(){this.evTarget=gr;this.targetIds={};s.apply(this,arguments)}function lf(n,t){var r=kt(n.touches),o=this.targetIds;if(t&(f|g)&&r.length===1)return o[r[0].identifier]=!0,[r,r];var i,s,h=kt(n.changedTouches),c=[],l=this.target;if(s=r.filter(function(n){return or(n.target,l)}),t===f)for(i=0;i<s.length;)o[s[i].identifier]=!0,i++;for(i=0;i<h.length;)o[h[i].identifier]&&c.push(h[i]),t&(u|e)&&delete o[h[i].identifier],i++;if(c.length)return[sr(s.concat(c),"identifier",!0),c]}function wi(){s.apply(this,arguments);var n=li(this.handler,this);
this.touch=new ri(this.manager,n);this.mouse=new ii(this.manager,n)}function ki(n,t){this.manager=n;this.set(t)}function af(n){if(d(n,lt))return lt;var t=d(n,at),i=d(n,vt);return t&&i?at+" "+vt:t||i?t?at:vt:d(n,bi)?bi:ru}function p(n){this.id=hu();this.manager=null;this.options=ci(n||{},this.defaults);this.options.enable=er(this.options.enable,!0);this.state=ui;this.simultaneous={};this.requireFail=[]}function vf(n){return n&yt?"cancel":n&w?"end":n&ut?"move":n&h?"start":""}function uu(n){return n==ct?"down":n==ht?"up":n==ot?"left":n==st?"right":""}function fi(n,t){var i=t.manager;return i?i.get(n):n}function c(){p.apply(this,arguments)}function ei(){c.apply(this,arguments);this.pX=null;this.pY=null}function di(){c.apply(this,arguments)}function gi(){p.apply(this,arguments);this._timer=null;this._input=null}function nr(){c.apply(this,arguments)}function tr(){c.apply(this,arguments)}function oi(){p.apply(this,arguments);this.pTime=!1;this.pCenter=!1;this._timer=null;this._input=null;this.count=0}function b(n,t)
{return t=t||{},t.recognizers=er(t.recognizers,b.defaults.preset),new rr(n,t)}function rr(n,t){t=t||{};this.options=ci(t,b.defaults);this.options.inputTarget=this.options.inputTarget||n;this.handlers={};this.session={};this.recognizers=[];this.element=n;this.input=yu(this);this.touchAction=new ki(this,this.options.touchAction);eu(this,!0);v(t.recognizers,function(n){var t=this.add(new n[0](n[1]));n[2]&&t.recognizeWith(n[2]);n[3]&&t.requireFailure(n[3])},this)}function eu(n,t){var i=n.element;v(n.options.cssProps,function(n,r){i.style[dt(i.style,r)]=t?n:""})}function yf(n,i){var r=t.createEvent("Event");r.initEvent(n,!0,!0);r.gesture=i;i.target.dispatchEvent(r)}var ur=["","webkit","moz","MS","ms","o"],ou=t.createElement("div"),fr="function",tt=Math.round,ft=Math.abs,si=Date.now,su=1,cr="ontouchstart"in n,lu=cu()?!1:dt(n,"PointerEvent")!==r,au=cr&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),et="touch",vi="mouse",vu=25,f=1,g=2,u=4,e=8,gt=1,ot=2,st=4,ht=8,ct=16,l=ot|st,nt=ht|ct,lr=l|nt,ar=["x",
"y"],ni=["clientX","clientY"],dr,gr,fu,ir;s.prototype={handler:function(){},init:function(){this.evEl&&pt(this.element,this.evEl,this.domHandler);this.evTarget&&pt(this.target,this.evTarget,this.domHandler);this.evWin&&pt(hr(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&wt(this.element,this.evEl,this.domHandler);this.evTarget&&wt(this.target,this.evTarget,this.domHandler);this.evWin&&wt(hr(this.element),this.evWin,this.domHandler)}};var tf={mousedown:f,mousemove:g,mouseup:u},rf="mousedown",uf="mousemove mouseup";o(ii,s,{handler:function(n){var t=tf[n.type];(t&f&&n.button===0&&(this.pressed=!0),t&g&&n.which!==1&&(t=u),this.pressed&&this.allow)&&(t&u&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[n],changedPointers:[n],pointerType:vi,srcEvent:n}))}});var ff={pointerdown:f,pointermove:g,pointerup:u,pointercancel:e,pointerout:e},ef={2:et,3:"pen",4:vi,5:"kinect"},wr="pointerdown",br="pointermove pointerup pointercancel";n.MSPointerEvent&&(wr="MSPointerDown",br="MSPointerMove MSPointerUp MSPointerCancel");
o(pi,s,{handler:function(n){var t=this.store,o=!1,h=n.type.toLowerCase().replace("ms",""),r=ff[h],s=ef[n.pointerType]||n.pointerType,c=s==et,i=rt(t,n.pointerId,"pointerId");(r&f&&(n.button===0||c)?i<0&&(t.push(n),i=t.length-1):r&(u|e)&&(o=!0),i<0)||(t[i]=n,this.callback(this.manager,r,{pointers:t,changedPointers:[n],pointerType:s,srcEvent:n}),o&&t.splice(i,1))}});var of={touchstart:f,touchmove:g,touchend:u,touchcancel:e},sf="touchstart",hf="touchstart touchmove touchend touchcancel";o(kr,s,{handler:function(n){var i=of[n.type],t;(i===f&&(this.started=!0),this.started)&&(t=cf.call(this,n,i),i&(u|e)&&t[0].length-t[1].length==0&&(this.started=!1),this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:et,srcEvent:n}))}});dr={touchstart:f,touchmove:g,touchend:u,touchcancel:e};gr="touchstart touchmove touchend touchcancel";o(ri,s,{handler:function(n){var i=dr[n.type],t=lf.call(this,n,i);t&&this.callback(this.manager,i,{pointers:t[0],changedPointers:t[1],pointerType:et,srcEvent:n})}});o(wi,s,{handler:
function(n,t,i){var r=i.pointerType==et,f=i.pointerType==vi;if(r)this.mouse.allow=!1;else if(f&&!this.mouse.allow)return;t&(u|e)&&(this.mouse.allow=!0);this.callback(n,t,i)},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var nu=dt(ou.style,"touchAction"),tu=nu!==r,iu="compute",ru="auto",bi="manipulation",lt="none",at="pan-x",vt="pan-y";ki.prototype={set:function(n){n==iu&&(n=this.compute());tu&&(this.manager.element.style[nu]=n);this.actions=n.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var n=[];return v(this.manager.recognizers,function(t){ai(t.options.enable,[t])&&(n=n.concat(t.getTouchAction()))}),af(n.join(" "))},preventDefaults:function(n){var t,i;if(!tu){if(t=n.srcEvent,i=n.offsetDirection,this.manager.session.prevented){t.preventDefault();return}var r=this.actions,u=d(r,lt),f=d(r,vt),e=d(r,at);if(u||f&&i&l||e&&i&nt)return this.preventSrc(t)}},preventSrc:function(n){this.manager.session.prevented=!0;n.preventDefault()}};var ui=1,
h=2,ut=4,w=8,y=w,yt=16,a=32;p.prototype={defaults:{},set:function(n){return k(this.options,n),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(n){if(it(n,"recognizeWith",this))return this;var t=this.simultaneous;return n=fi(n,this),t[n.id]||(t[n.id]=n,n.recognizeWith(this)),this},dropRecognizeWith:function(n){return it(n,"dropRecognizeWith",this)?this:(n=fi(n,this),delete this.simultaneous[n.id],this)},requireFailure:function(n){if(it(n,"requireFailure",this))return this;var t=this.requireFail;return n=fi(n,this),rt(t,n)===-1&&(t.push(n),n.requireFailure(this)),this},dropRequireFailure:function(n){if(it(n,"dropRequireFailure",this))return this;n=fi(n,this);var t=rt(this.requireFail,n);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(n){return!!this.simultaneous[n.id]},emit:function(n){function i(i){r.manager.emit(r.options.event+(i?vf(t):""),n)}var r=this,t=this.state;t<w&&i(!0);i();t>=w&&i(!0)}
,tryEmit:function(n){if(this.canEmit())return this.emit(n);this.state=a},canEmit:function(){for(var n=0;n<this.requireFail.length;){if(!(this.requireFail[n].state&(a|ui)))return!1;n++}return!0},recognize:function(n){var t=k({},n);if(!ai(this.options.enable,[this,t])){this.reset();this.state=a;return}this.state&(y|yt|a)&&(this.state=ui);this.state=this.process(t);this.state&(h|ut|w|yt)&&this.tryEmit(t)},process:function(){},getTouchAction:function(){},reset:function(){}};o(c,p,{defaults:{pointers:1},attrTest:function(n){var t=this.options.pointers;return t===0||n.pointers.length===t},process:function(n){var t=this.state,i=n.eventType,r=t&(h|ut),f=this.attrTest(n);return r&&(i&e||!f)?t|yt:r||f?i&u?t|w:(t&h)?t|ut:h:a}});o(ei,c,{defaults:{event:"pan",threshold:10,pointers:1,direction:lr},getTouchAction:function(){var t=this.options.direction,n=[];return t&l&&n.push(vt),t&nt&&n.push(at),n},directionTest:function(n){var i=this.options,r=!0,u=n.distance,t=n.direction,f=n.deltaX,e=n.deltaY;return t&i.direction||(i.direction&
l?(t=f===0?gt:f<0?ot:st,r=f!=this.pX,u=Math.abs(n.deltaX)):(t=e===0?gt:e<0?ht:ct,r=e!=this.pY,u=Math.abs(n.deltaY))),n.direction=t,r&&u>i.threshold&&t&i.direction},attrTest:function(n){return c.prototype.attrTest.call(this,n)&&(this.state&h||!(this.state&h)&&this.directionTest(n))},emit:function(n){this.pX=n.deltaX;this.pY=n.deltaY;var t=uu(n.direction);t&&this.manager.emit(this.options.event+t,n);this._super.emit.call(this,n)}});o(di,c,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[lt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&h)},emit:function(n){if(this._super.emit.call(this,n),n.scale!==1){var t=n.scale<1?"in":"out";this.manager.emit(this.options.event+t,n)}}});o(gi,p,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[ru]},process:function(n){var t=this.options,i=n.pointers.length===t.pointers,r=n.distance<t.threshold,o=n.deltaTime>t.time;if(this._input=n,
!r||!i||n.eventType&(u|e)&&!o)this.reset();else if(n.eventType&f)this.reset(),this._timer=hi(function(){this.state=y;this.tryEmit()},t.time,this);else if(n.eventType&u)return y;return a},reset:function(){clearTimeout(this._timer)},emit:function(n){this.state===y&&(n&&n.eventType&u?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=si(),this.manager.emit(this.options.event,this._input)))}});o(nr,c,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[lt]},attrTest:function(n){return this._super.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&h)}});o(tr,c,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:l|nt,pointers:1},getTouchAction:function(){return ei.prototype.getTouchAction.call(this)},attrTest:function(n){var t=this.options.direction,i;return t&(l|nt)?i=n.velocity:t&l?i=n.velocityX:t&nt&&(i=n.velocityY),this._super.attrTest.call(this,n)&&t&n.direction&&n.distance>this.options.threshold&&ft(i)>this.options.velocity&&
n.eventType&u},emit:function(n){var t=uu(n.direction);t&&this.manager.emit(this.options.event+t,n);this.manager.emit(this.options.event,n)}});o(oi,p,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[bi]},process:function(n){var t=this.options,o=n.pointers.length===t.pointers,s=n.distance<t.threshold,c=n.deltaTime<t.time,i,r,e;if(this.reset(),n.eventType&f&&this.count===0)return this.failTimeout();if(s&&c&&o){if(n.eventType!=u)return this.failTimeout();if(i=this.pTime?n.timeStamp-this.pTime<t.interval:!0,r=!this.pCenter||ti(this.pCenter,n.center)<t.posThreshold,this.pTime=n.timeStamp,this.pCenter=n.center,r&&i?this.count+=1:this.count=1,this._input=n,e=this.count%t.taps,e===0)return this.hasRequireFailures()?(this._timer=hi(function(){this.state=y;this.tryEmit()},t.interval,this),h):y}return a},failTimeout:function(){return this._timer=hi(function(){this.state=a},this.options.interval,this),a},reset:function(){clearTimeout(this._timer)}
,emit:function(){this.state==y&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});b.VERSION="2.0.4";b.defaults={domEvents:!1,touchAction:iu,enable:!0,inputTarget:null,inputClass:null,preset:[[nr,{enable:!1}],[di,{enable:!1},["rotate"]],[tr,{direction:l}],[ei,{direction:l},["swipe"]],[oi],[oi,{event:"doubletap",taps:2},["tap"]],[gi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};fu=1;ir=2;rr.prototype={set:function(n){return k(this.options,n),n.touchAction&&this.touchAction.update(),n.inputTarget&&(this.input.destroy(),this.input.target=n.inputTarget,this.input.init()),this},stop:function(n){this.session.stopped=n?ir:fu},recognize:function(n){var r=this.session,i,f,t,u;if(!r.stopped)for(this.touchAction.preventDefaults(n),f=this.recognizers,t=r.curRecognizer,(!t||t&&t.state&y)&&(t=r.curRecognizer=null),u=0;u<f.length;)i=f[u],r.stopped!==ir&&(!t||i==t||i.canRecognizeWith(t))?i.recognize(
n):i.reset(),!t&&i.state&(h|ut|w)&&(t=r.curRecognizer=i),u++},get:function(n){var i,t;if(n instanceof p)return n;for(i=this.recognizers,t=0;t<i.length;t++)if(i[t].options.event==n)return i[t];return null},add:function(n){if(it(n,"add",this))return this;var t=this.get(n.options.event);return t&&this.remove(t),this.recognizers.push(n),n.manager=this,this.touchAction.update(),n},remove:function(n){if(it(n,"remove",this))return this;var t=this.recognizers;return n=this.get(n),t.splice(rt(t,n),1),this.touchAction.update(),this},on:function(n,t){var i=this.handlers;return v(bt(n),function(n){i[n]=i[n]||[];i[n].push(t)}),this},off:function(n,t){var i=this.handlers;return v(bt(n),function(n){t?i[n].splice(rt(i[n],t),1):delete i[n]}),this},emit:function(n,t){var i,r;if(this.options.domEvents&&yf(n,t),i=this.handlers[n]&&this.handlers[n].slice(),i&&i.length)for(t.type=n,t.preventDefault=function(){t.srcEvent.preventDefault()},r=0;r<i.length;)i[r](t),r++},destroy:function(){this.element&&eu(this,!1);this.handlers={};this.
session={};this.input.destroy();this.element=null}};k(b,{INPUT_START:f,INPUT_MOVE:g,INPUT_END:u,INPUT_CANCEL:e,STATE_POSSIBLE:ui,STATE_BEGAN:h,STATE_CHANGED:ut,STATE_ENDED:w,STATE_RECOGNIZED:y,STATE_CANCELLED:yt,STATE_FAILED:a,DIRECTION_NONE:gt,DIRECTION_LEFT:ot,DIRECTION_RIGHT:st,DIRECTION_UP:ht,DIRECTION_DOWN:ct,DIRECTION_HORIZONTAL:l,DIRECTION_VERTICAL:nt,DIRECTION_ALL:lr,Manager:rr,Input:s,TouchAction:ki,TouchInput:ri,MouseInput:ii,PointerEventInput:pi,TouchMouseInput:wi,SingleTouchInput:kr,Recognizer:p,AttrRecognizer:c,Tap:oi,Pan:ei,Swipe:tr,Pinch:di,Rotate:nr,Press:gi,on:pt,off:wt,each:v,merge:ci,extend:k,inherit:o,bindFn:li,prefixed:dt});typeof define==fr&&define.amd?define(function(){return b}):typeof module!="undefined"&&module.exports?module.exports=b:n[i]=b})(window,document,"Hammer"),function(n){typeof define=="function"&&define.amd?define(["jquery","hammerjs"],n):typeof exports=="object"?n(require("jquery"),require("hammerjs")):n(jQuery,Hammer)}(function(n,t){function i(i,r){var u=n(i);u.data("hammer")||
u.data("hammer",new t(u[0],r))}n.fn.hammer=function(n){return this.each(function(){i(this,n)})};t.Manager.prototype.emit=function(t){return function(i,r){t.call(this,i,r);n(this.element).trigger({type:i,gesture:r})}}(t.Manager.prototype.emit)});
/*!
 * hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+
 * http://cherne.net/brian/resources/jquery.hoverIntent.html
 *
 * You may use hoverIntent under the terms of the MIT license. Basically that
 * means you are free to use hoverIntent as long as this header is left intact.
 * Copyright 2007, 2013 Brian Cherne
 */
(function(n){n.fn.hoverIntent=function(t,i,r){var u={interval:100,sensitivity:7,timeout:0};u=typeof t=="object"?n.extend(u,t):n.isFunction(i)?n.extend(u,{over:t,out:i,selector:r}):n.extend(u,{over:t,out:t,selector:i});var f,e,o,s,h=function(n){f=n.pageX;e=n.pageY},c=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-f)+Math.abs(s-e)<u.sensitivity)return n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s=1,u.over.apply(i,[t]);o=f;s=e;i.hoverIntent_t=setTimeout(function(){c(t,i)},u.interval)},a=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,u.out.apply(t,[n])},l=function(t){var r=jQuery.extend({},t),i=this;if(i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t)),t.type=="mouseenter"){o=r.pageX;s=r.pageY;n(i).on("mousemove.hoverIntent",h);i.hoverIntent_t=setTimeout(function(){c(r,i)},u.interval)}else n(i).off("mousemove.hoverIntent",h),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){a(r,i)},u.timeout))};return this.on({"mouseenter.hoverIntent":
l,"mouseleave.hoverIntent":l},u.selector)}})(jQuery);
/*!
 * typeahead.js 0.11.1
 * https://github.com/twitter/typeahead.js
 * Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
 */
(function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(i){return n.Bloodhound=t(i)}):typeof exports=="object"?module.exports=t(require("jquery")):n.Bloodhound=t(jQuery)})(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;
return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),u="0.11.1",f=function(){"use strict";function n(n){return n=
t.toStr(n),n?n.split(/\s+/):[]}function i(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function r(n){return function(i){return i=t.isArray(i)?i:[].slice.call(arguments,0),function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),i=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var r=this.list.tail,i;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.
head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),e=function(){"use strict";function r(n,r){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix));this.ls=r||i;this.ls||this._noop()}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(t){return n.parseJSON(t)}function o(n){for(var r,u=[],f=i.length,t=0;t<f;t++)(r=i.key(t)).match(n)&&u.push(r.replace(n,""));return u}var i;try{i=window.localStorage;i.setItem("~~~","!");i.removeItem("~~~")}catch(s){i=null}return t.mixin(r.prototype,{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=t.noop},_safeSet:function(n,t){try{this.ls.setItem(n,t)}catch(i){i.name==="QuotaExceededError"&&
(this.clear(),this._noop())}},get:function(n){return this.isExpired(n)&&this.remove(n),e(this.ls.getItem(this._prefix(n)))},set:function(n,i,r){return t.isNumber(r)?this._safeSet(this._ttlKey(n),f(u()+r)):this.ls.removeItem(this._ttlKey(n)),this._safeSet(this._prefix(n),f(i))},remove:function(n){return this.ls.removeItem(this._ttlKey(n)),this.ls.removeItem(this._prefix(n)),this},clear:function(){for(var t=o(this.keyMatcher),n=t.length;n--;)this.remove(t[n]);return this},isExpired:function(n){var i=e(this.ls.getItem(this._ttlKey(n)));return t.isNumber(i)&&u()>i?!0:!1}}),r}(),r=function(){"use strict";function r(n){n=n||{};this.cancelled=!1;this.lastReq=null;this._send=n.transport;this._get=n.limiter?n.limiter(this._get):this._get;this._cache=n.cache===!1?new i(0):o}var u=0,f={},e=6,o=new i(10);return r.setMaxPendingRequests=function(n){e=n},r.resetCache=function(){o.reset()},t.mixin(r.prototype,{_fingerprint:function(t){return t=t||{},t.url+t.type+n.param(t.data||{})},_get:function(n,t){function s(n){t(null,n);
i._cache.set(r,n)}function h(){t(!0)}function c(){u--;delete f[r];i.onDeckRequestArgs&&(i._get.apply(i,i.onDeckRequestArgs),i.onDeckRequestArgs=null)}var i=this,r,o;(r=this._fingerprint(n),this.cancelled||r!==this.lastReq)||((o=f[r])?o.done(s).fail(h):u<e?(u++,f[r]=this._send(n).done(s).fail(h).always(c)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(i,r){var f,u;r=r||n.noop;i=t.isString(i)?{url:i}:i||{};u=this._fingerprint(i);this.cancelled=!1;this.lastReq=u;(f=this._cache.get(u))?r(null,f):this._get(i,r)},cancel:function(){this.cancelled=!0}}),r}(),o=window.SearchIndex=function(){"use strict";function u(i){i=i||{};i.datumTokenizer&&i.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.identify=i.identify||t.stringify;this.datumTokenizer=i.datumTokenizer;this.queryTokenizer=i.queryTokenizer;this.matchAnyQueryToken=i.matchAnyQueryToken;this.reset()}function f(n){return n=t.filter(n,function(n){return!!n}),t.map(n,function(n){return n.toLowerCase()})}function e(
){var n={};return n[r]=[],n[i]={},n}function o(n){for(var i={},r=[],t=0,u=n.length;t<u;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function s(n,t){var i=0,r=0,u=[],f,e;for(n=n.sort(),t=t.sort(),f=n.length,e=t.length;i<f&&r<e;)n[i]<t[r]?i++:n[i]>t[r]?r++:(u.push(n[i]),i++,r++);return u}var i="c",r="i";return t.mixin(u.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var u=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var o,s;u.datums[o=u.identify(n)]=n;s=f(u.datumTokenizer(n));t.each(s,function(n){for(var f,t=u.trie,s=n.split("");f=s.shift();)t=t[i][f]||(t[i][f]=e()),t[r].push(o)})})},get:function(n){var i=this;return t.map(n,function(n){return i.datums[n]})},search:function(n){var e=this,h,u;return h=f(this.queryTokenizer(n)),t.each(h,function(n){var t,f,h,o;if(u&&u.length===0&&!e.matchAnyQueryToken)return!1;for(t=e.trie,f=n.split("");t&&(h=f.shift());)t=t[i][h];if(t&&f.length===0)o=t[r].slice(0),u=u?s(u,o):o;else if(!e.matchAnyQueryToken)return u=[],!1}),u?t.map(o(
u),function(n){return e.datums[n]}):[]},all:function(){var n=[];for(var t in this.datums)n.push(this.datums[t]);return n},reset:function(){this.datums={};this.trie=e()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),u}(),s=function(){"use strict";function i(n){this.url=n.url;this.ttl=n.ttl;this.cache=n.cache;this.prepare=n.prepare;this.transform=n.transform;this.transport=n.transport;this.thumbprint=n.thumbprint;this.storage=new e(n.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},t.mixin(i.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var t={},i;return this.cache?(t.data=this.storage.get(n.data),t.protocol=this.storage.get(n.protocol),t.thumbprint=this.storage.get(n.thumbprint),i=t.thumbprint!==this.thumbprint||t.protocol!==
location.protocol,t.data&&!i?t.data:null):null},fromNetwork:function(n){function r(){n(!0)}function u(t){n(null,i.transform(t))}var i=this,t;n&&(t=this.prepare(this._settings()),this.transport(t).fail(r).done(u))},clear:function(){return this.storage.clear(),this}}),i}(),h=function(){"use strict";function n(n){this.url=n.url;this.prepare=n.prepare;this.transform=n.transform;this.indexResponse=n.indexResponse;this.transport=new r({cache:n.cache,limiter:n.limiter,transport:n.transport})}return t.mixin(n.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(n,t){function u(n,i){n?t([]):t(r.transform(i))}var r=this,i;if(t)return n=n||"",i=this.prepare(n,this._settings()),this.transport.get(i,u)},cancelLastRequest:function(){this.transport.cancel()}}),n}(),c=function(){"use strict";function r(r){var f;return r?(f={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:t.identity,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(f,r),r.url||n.error(
"prefetch requires url to be set"),r.transform=r.filter||r.transform,r.cacheKey=r.cacheKey||r.url,r.thumbprint=u+r.thumbprint,r.transport=r.transport?i(r.transport):n.ajax,r):null}function f(r){var u;if(r)return u={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.url||n.error("remote requires url to be set"),r.transform=r.filter||r.transform,r.prepare=e(r),r.limiter=o(r),r.transport=r.transport?i(r.transport):n.ajax,delete r.replace,delete r.wildcard,delete r.rateLimitBy,delete r.rateLimitWait,r}function e(n){function u(n,t){return t.url=i(t.url,n),t}function f(n,t){return t.url=t.url.replace(r,encodeURIComponent(n)),t}function e(n,t){return t}var t,i,r;return(t=n.prepare,i=n.replace,r=n.wildcard,t)?t:i?u:n.wildcard?f:e}function o(n){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var i,u,r;return i=n.limiter,
u=n.rateLimitBy,r=n.rateLimitWait,i||(i=/^throttle$/i.test(u)?e(r):f(r)),i}function i(i){return function(r){function f(n){t.defer(function(){u.resolve(n)})}function e(n){t.defer(function(){u.reject(n)})}var u=n.Deferred();return i(r,f,e),u}}return function(i){var e,u;return e={initialize:!0,identify:t.stringify,datumTokenizer:null,queryTokenizer:null,matchAnyQueryToken:!1,sufficient:5,indexRemote:!1,sorter:null,local:[],prefetch:null,remote:null},i=t.mixin(e,i||{}),i.datumTokenizer||n.error("datumTokenizer is required"),i.queryTokenizer||n.error("queryTokenizer is required"),u=i.sorter,i.sorter=u?function(n){return n.sort(u)}:t.identity,i.local=t.isFunction(i.local)?i.local():i.local,i.prefetch=r(i.prefetch),i.remote=f(i.remote),i}}();return function(){"use strict";function i(n){n=c(n);this.sorter=n.sorter;this.identify=n.identify;this.sufficient=n.sufficient;this.indexRemote=n.indexRemote;this.local=n.local;this.remote=n.remote?new h(n.remote):null;this.prefetch=n.prefetch?new s(n.prefetch):null;this.index=new
o({identify:this.identify,datumTokenizer:n.datumTokenizer,queryTokenizer:n.queryTokenizer});n.initialize!==!1&&this.initialize()}var u;return u=window&&window.Bloodhound,i.noConflict=function(){return window&&(window.Bloodhound=u),i},i.tokenizers=f,t.mixin(i.prototype,{__ttAdapter:function(){function t(t,i,r){return n.search(t,i,r)}function i(t,i){return n.search(t,i)}var n=this;return this.remote?t:i},_loadPrefetch:function(){function u(n,r){if(n)return t.reject();i.add(r);i.prefetch.store(i.index.serialize());t.resolve()}var i=this,t,r;return t=n.Deferred(),this.prefetch?(r=this.prefetch.fromCache())?(this.index.bootstrap(r),t.resolve()):this.prefetch.fromNetwork(u):t.resolve(),t.promise()},_initialize:function(){function t(){n.add(n.local)}var n=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(t),this.initPromise},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){return this.index.add(n),this},get:function(n){return n=t.isArray(n)?n:
[].slice.call(arguments),this.index.get(n)},search:function(n,i,r){function e(n){var i=[];t.each(n,function(n){t.some(u,function(t){return f.identify(n)===f.identify(t)})||i.push(n)});f.indexRemote&&f.add(i);r(i)}var f=this,u;return i=i||t.noop,r=r||t.noop,u=this.sorter(this.index.search(n)),i(this.remote?u.slice():u),this.remote&&u.length<this.sufficient?this.remote.get(n,e):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return r.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),i}()}),function(n,t){typeof define=="function"&&define.amd?define(["jquery"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(
/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:
function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),e=function(){"use strict";function i(i){var e,o;return o=t.mixin({},n,i),e={css:f(),classes:o,html:r(o),selectors:u(o)},{css:e.css,html:e.html,classes:e.classes,selectors:e.selectors,mixin:function(n){t.mixin(n,e)}}}function r(n){return{wrapper:'<span class="'+n.wrapper+'"><\/span>',menu:'<div class="'+n.menu+'"><\/div>'}}function u(n){var i={};return t.each(n,function(n,t){i[t]="."+n}),i}function f(){var
n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n}var n={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return i}(),o=function(){"use strict";function u(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var i,r;return i="typeahead:",r={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:
"autocompleted"},t.mixin(u.prototype,{_trigger:function(t,r){var u;return u=n.Event(i+t),(r=r||[]).unshift(u),this.$el.trigger.apply(this.$el,r),u},before:function(n){var t,i;return t=[].slice.call(arguments,1),i=this._trigger("before"+n,t),i.isDefaultPrevented()},trigger:function(n){var t;this._trigger(n,[].slice.call(arguments,1));(t=r[n])&&this._trigger(t,[].slice.call(arguments,1))}}),u}(),r=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?h(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function u(n,i,r){return t.call(this,"async",n,i,r)}function f(n,i,r){return t.call(this,"sync",n,i,r)}function e(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function o(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,
this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&u<f;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function s(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function h(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,r=s();return{onSync:f,onAsync:u,off:e,trigger:o}}(),s=function(n){"use strict";function r(n,i,r){for(var u=[],f,e=0,o=n.length;e<o;e++)u.push(t.escapeRegExChars(n[e]));return f=r?"\\b("+u.join("|")+")\\b":"("+u.join("|")+")",i?new RegExp(f):new RegExp(f,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,e;return(i=f.exec(t.data))&&(e=n.createElement(u.tagName),u.className&&(e.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),e.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(e,r)),!!i}function e(
n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:e(i,t)}var f;(u=t.mixin({},i,u),u.node&&u.pattern)&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],f=r(u.pattern,u.caseSensitive,u.wordsOnly),e(u.node,o))}}(window.document),u=function(){"use strict";function i(i,r){i=i||{};i.input||n.error("input is missing");r.mixin(this);this.$hint=n(i.hint);this.$input=n(i.input);this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;this.$overflowHelper=e(this.$input);this._checkLanguageDirection();this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop)}function e(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.
css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function f(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return t.toStr(n).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query;this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection()},_managePreventDefault:function(n,t){var i;switch(n){case"up":case"down":i=!f(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!f(t);break
default:i=!0}return i},_checkLanguageDirection:function(){var n=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==n&&(this.dir=n,this.$hint.attr("dir",n),this.trigger("langDirChanged",n))},_setQuery:function(n,t){var i,r;i=o(n,this.query);r=i?this.query.length!==n.length:!1;this.query=n;t||i?!t&&r&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var n=this,i,r,f,e;i=t.bind(this._onBlur,this);r=t.bind(this._onFocus,this);f=t.bind(this._onKeydown,this);e=t.bind(this._onInput,this);this.$input.on("blur.tt",i).on("focus.tt",r).on("keydown.tt",f);if(!t.isMsie()||t.isMsie()>9)this.$input.on("input.tt",e);else this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(i){u[i.which||i.keyCode]||t.defer(t.bind(n._onInput,n,i))});return this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(n,t){this.setInputValue(n);this._setQuery(
n,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(n){this.$input.val(n);this.clearHintIfInvalid();this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&t.indexOf(n)===0;r=n!==""&&i&&!this.hasOverflow();r||this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return(n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i))?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(
){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();this.$hint=this.$input=this.$overflowHelper=n("<div>")}}),i}(),f=function(){"use strict";function u(i,r){i=i||{};i.templates=i.templates||{};i.templates.notFound=i.templates.notFound||i.templates.empty;i.source||n.error("missing source");i.node||n.error("missing node");i.name&&!h(i.name)&&n.error("invalid dataset name: "+i.name);r.mixin(this);this.highlight=!!i.highlight;this.name=i.name||f();this.limit=i.limit||5;this.displayFn=e(i.display||i.displayKey);this.templates=o(i.templates,this.displayFn);this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source;this.async=t.isUndefined(i.async)?this.source.length>2:!!i.async;this.updateOnAsync=this.async&&i.updateOnAsync===!0;this._resetLastSuggestion();this.$el=n(i.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function e(n){function i(t){return t[n]}return n=n||t.stringify,t.isFunction(n)?n:i}function o(i,r){function u(t){return n("<div>").text(
r(t))}return{notFound:i.notFound&&t.templatify(i.notFound),pending:i.pending&&t.templatify(i.pending),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion||u}}function h(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var i,f;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},f=t.getIdGenerator(),u.extractData=function(t){var r=n(t);return r.data(i.obj)?{val:r.data(i.val)||"",obj:r.data(i.obj)||null}:null},t.mixin(u.prototype,r,{_overwrite:function(n,t){t=t||[];t.length?this._renderSuggestions(n,t):this.async&&!this.updateOnAsync&&this.templates.pending?this._renderPending(n):(!this.async||this.updateOnAsync)&&this.templates.notFound?this._renderNotFound(n):this._empty();this.trigger("rendered",this.name,t,!1)},_append:function(n,t){t=t||[];t.length&&this.$lastSuggestion.length?this._appendSuggestions(n,t):t.length?this._renderSuggestions(n,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(n);this.trigger("rendered",this.name,t,
!0)},_renderSuggestions:function(n,t){var i;i=this._getSuggestionsFragment(n,t);this.$lastSuggestion=i.children().last();this.$el.html(i).prepend(this._getHeader(n,t)).append(this._getFooter(n,t))},_appendSuggestions:function(n,t){var i,r;i=this._getSuggestionsFragment(n,t);r=i.children().last();this.$lastSuggestion.after(i);this.$lastSuggestion=r},_renderPending:function(n){var t=this.templates.pending;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_renderNotFound:function(n){var t=this.templates.notFound;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_empty:function(){this.$el.empty();this._resetLastSuggestion()},_getSuggestionsFragment:function(r,u){var f=this,e;return e=document.createDocumentFragment(),t.each(u,function(t){var u,o;o=f._injectQuery(r,t);u=n(f.templates.suggestion(o)).data(i.obj,t).data(i.val,f.displayFn(t)).addClass(f.classes.suggestion+" "+f.classes.selectable);e.appendChild(u[0])}),this.highlight&&s({className:this.classes.highlight,
node:e,pattern:r}),n(e)},_getFooter:function(n,t){return this.templates.footer?this.templates.footer({query:n,suggestions:t,dataset:this.name}):null},_getHeader:function(n,t){return this.templates.header?this.templates.header({query:n,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=n()},_injectQuery:function(n,i){return t.isObject(i)?t.mixin({_query:n},i):i},update:function(t){function o(n){u||(u=!0,n=(n||[]).slice(0,i.limit),i.updateOnAsync?e=n:(r=n.length,i._overwrite(t,n)),r<i.limit&&i.async&&i.trigger("asyncRequested",t))}function s(u){u=e.concat(u).slice(0,i.limit-r);!f&&r<i.limit&&(i.cancel=n.noop,i.updateOnAsync?i._overwrite(t,u):i._append(t,u),r+=u.length,i.async&&i.trigger("asyncReceived",t))}var i=this,f=!1,u=!1,r=0,e=[];this.cancel();this.cancel=function(){f=!0;i.cancel=n.noop;i.async&&i.trigger("asyncCanceled",t)};this.source(t,o,s);u||o([])},cancel:n.noop,clear:function(){this._empty();this.cancel();this.trigger("cleared")},isEmpty:function(){return this.
$el.is(":empty")},destroy:function(){this.$el=n("<div>")}}),u}(),i=function(){"use strict";function i(i,r){function e(t){var i=u.$node.find(t.node).first();return t.node=i.length?i:n("<div>").appendTo(u.$node),new f(t,r)}var u=this;i=i||{};i.node||n.error("node is required");r.mixin(this);this.$node=n(i.node);this.query=null;this.datasets=t.map(i.datasets,e)}return t.mixin(i.prototype,r,{_onSelectableClick:function(t){this.trigger("selectableClicked",n(t.currentTarget))},_onRendered:function(n,t,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetRendered",t,i,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function n(n){return n.isEmpty()}return t.every(this.datasets,n)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var n=this.getActiveSelectable();
n&&n.removeClass(this.classes.cursor)},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$node.scrollTop();u=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10);t<0?this.$node.scrollTop(r+t):u<i&&this.$node.scrollTop(r+(i-u))},bind:function(){var i=this,r=t.bind(this._onSelectableClick,this);this.$node.on("click.tt",this.selectors.selectable,r);this.$node.on("mouseover",this.selectors.selectable,function(){i.setCursor(n(this))});return t.each(this.datasets,function(n){n.onSync("asyncRequested",i._propagate,i).onSync("asyncCanceled",i._propagate,i).onSync("asyncReceived",i._propagate,i).onSync("rendered",i._onRendered,i).onSync("cleared",i._onCleared,i)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.scrollTop(0);this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open);this._removeCursor()},setLanguageDirection:function(n){this.
$node.attr("dir",n)},selectableRelativeToCursor:function(n){var i,r,u,t;return r=this.getActiveSelectable(),i=this._getSelectables(),u=r?i.index(r):-1,t=u+n,t=(t+1)%(i.length+1)-1,t=t<-1?i.length-1:t,t===-1?null:i.eq(t)},setCursor:function(n){this._removeCursor();(n=n&&n.first())&&(n.addClass(this.classes.cursor),this._ensureVisible(n))},getSelectableData:function(n){return n&&n.length?f.extractData(n):null},getActiveSelectable:function(){var n=this._getSelectables().filter(this.selectors.cursor).first();return n.length?n:null},getTopSelectable:function(){var n=this._getSelectables().first();return n.length?n:null},update:function(n){function r(t){t.update(n)}var i=n!==this.query;return i&&(this.query=n,t.each(this.datasets,r)),i},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.query=null;this.$node.addClass(this.classes.empty)},destroy:function(){function i(n){n.destroy()}this.$node.off(".tt");this.$node=n("<div>");t.each(this.datasets,i)}}),i}(),h=function(){"use strict";function r(){i.
apply(this,[].slice.call(arguments,0))}var n=i.prototype;return t.mixin(r.prototype,i.prototype,{open:function(){return this._allDatasetsEmpty()||this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css(t==="ltr"?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),r}(),c=function(){"use strict";function r(r,u){var f,e,o,s,h,c,l,a,v,y,p;r=r||{};r.input||n.error("missing input");r.menu||n.error("missing menu");r.eventBus||n.error("missing event bus");u.
mixin(this);this.eventBus=r.eventBus;this.minLength=t.isNumber(r.minLength)?r.minLength:1;this.input=r.input;this.menu=r.menu;this.enabled=!0;this.active=!1;this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);f=i(this,"activate","open","_onFocused");e=i(this,"deactivate","_onBlurred");o=i(this,"isActive","isOpen","_onEnterKeyed");s=i(this,"isActive","isOpen","_onTabKeyed");h=i(this,"isActive","_onEscKeyed");c=i(this,"isActive","open","_onUpKeyed");l=i(this,"isActive","open","_onDownKeyed");a=i(this,"isActive","isOpen","_onLeftKeyed");v=i(this,"isActive","isOpen","_onRightKeyed");y=i(this,"_openIfActive","_onQueryChanged");p=i(this,"_openIfActive",
"_onWhitespaceChanged");this.input.bind().onSync("focused",f,this).onSync("blurred",e,this).onSync("enterKeyed",o,this).onSync("tabKeyed",s,this).onSync("escKeyed",h,this).onSync("upKeyed",c,this).onSync("downKeyed",l,this).onSync("leftKeyed",a,this).onSync("rightKeyed",v,this).onSync("queryChanged",y,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(n){var i=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(i,function(t){return n[t].apply(n,r)})}}return t.mixin(r.prototype,{_hacks:function(){var r,i;r=this.input.$input||n("<div>");i=this.menu.$node||n("<div>");r.on("blur.tt",function(n){var u,f,e;u=document.activeElement;f=i.is(u);e=i.has(u).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){r.focus()}))});i.on("mousedown.tt",function(n){n.preventDefault()})},_onSelectableClicked:function(n,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:
function(n,t,i,r){this._updateHint();this.eventBus.trigger("render",i,r,t)},_onAsyncRequested:function(n,t,i){this.eventBus.trigger("asyncrequest",i,t)},_onAsyncCanceled:function(n,t,i){this.eventBus.trigger("asynccancel",i,t)},_onAsyncReceived:function(n,t,i){this.eventBus.trigger("asyncreceive",i,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&t.preventDefault()},_onTabKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&t.preventDefault():(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){this.dir==="rtl"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable(
)||this.menu.getTopSelectable())},_onRightKeyed:function(){this.dir==="ltr"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getActiveSelectable()||this.menu.getTopSelectable())},_onQueryChanged:function(n,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(n,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(n){return n=t.isString(n)?n:this.input.getQuery()||"",n.length>=this.minLength},_updateHint:function(){var f,i,n,e,o,s,r;f=this.menu.getTopSelectable();i=this.menu.getSelectableData(f);n=this.input.getInputValue();!i||t.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(e=u.normalizeQuery(n),o=t.escapeRegExChars(e),s=new RegExp("^(?:"+o+")(.+$)","i"),r=s.exec(i.val),r&&this.input.setHint(n+r[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=
!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(n){this.input.setQuery(t.toStr(n))},getVal:function(){return this.input.getQuery()},select:function(n){var t=this.menu.getSelectableData(n);return t&&!this.eventBus.before("select",t.obj)?(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj),this.close(),!0):!1},autocomplete:
function(n){var i,t,r;return(i=this.input.getQuery(),t=this.menu.getSelectableData(n),r=t&&i!==t.val,r&&!this.eventBus.before("autocomplete",t.obj))?(this.input.setQuery(t.val),this.eventBus.trigger("autocomplete",t.obj),!0):!1},moveCursor:function(n){var u,i,t,r,f;return(u=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(n),t=this.menu.getSelectableData(i),r=t?t.obj:null,f=this._minLengthMet()&&this.menu.update(u),!f&&!this.eventBus.before("cursorchange",r))?(this.menu.setCursor(i),t?this.input.setInputValue(t.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0):!1},destroy:function(){this.input.destroy();this.menu.destroy()}}),r}();(function(){"use strict";function r(t,i){t.each(function(){var t=n(this),r;(r=t.data(f.typeahead))&&i(r,t)})}function v(n,t){return n.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css(p(n)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}
function y(n,t){n.data(f.attrs,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")});n.addClass(t.classes.input).attr({autocomplete:"off",spellcheck:!1});try{n.attr("dir")||n.attr("dir","auto")}catch(i){}return n}function p(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function w(n){var r,i;r=n.data(f.www);i=n.parent().filter(r.selectors.wrapper);t.each(n.data(f.attrs),function(i,r){t.isUndefined(i)?n.removeAttr(r):n.attr(r,i)});n.removeData(f.typeahead).removeData(f.www).removeData(f.attr).removeClass(r.classes.input);i.length&&(n.detach().insertAfter(i),i.remove())}function a(i){var u,r;return u=t.isJQuery(i)||t.isElement(i),r=u?n(i).first(
):[],r.length?r:null}var l,f,s;l=n.fn.typeahead;f={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"};s={initialize:function(r,s){function p(){var e,d,p,w,b,k,g,nt,tt,it,rt;t.each(s,function(n){n.highlight=!!r.highlight});e=n(this);d=n(l.html.wrapper);p=a(r.hint);w=a(r.menu);b=r.hint!==!1&&!p;k=r.menu!==!1&&!w;b&&(p=v(e,l));k&&(w=n(l.html.menu).css(l.css.menu));p&&p.val("");e=y(e,l);(b||k)&&(d.css(l.css.wrapper),e.css(b?l.css.input:l.css.inputWithNoHint),e.wrap(d).parent().prepend(b?p:null).append(k?w:null));rt=k?h:i;g=new o({el:e});nt=new u({hint:p,input:e},l);tt=new rt({node:w,datasets:s},l);it=new c({input:nt,menu:tt,eventBus:g,minLength:r.minLength},l);e.data(f.www,l);e.data(f.typeahead,it)}var l;return s=t.isArray(s)?s:[].slice.call(arguments,1),r=r||{},l=e(r.classNames),this.each(p)},isEnabled:function(){var n;return r(this.first(),function(t){n=t.isEnabled()}),n},enable:function(){return r(this,function(n){n.enable()}),this},disable:function(){return r(this,function(n){n.disable()}),this},isActive:
function(){var n;return r(this.first(),function(t){n=t.isActive()}),n},activate:function(){return r(this,function(n){n.activate()}),this},deactivate:function(){return r(this,function(n){n.deactivate()}),this},isOpen:function(){var n;return r(this.first(),function(t){n=t.isOpen()}),n},open:function(){return r(this,function(n){n.open()}),this},close:function(){return r(this,function(n){n.close()}),this},select:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.select(u)}),i},autocomplete:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.autocomplete(u)}),i},moveCursor:function(n){var t=!1;return r(this.first(),function(i){t=i.moveCursor(n)}),t},val:function(n){var i;return arguments.length?(r(this,function(i){i.setVal(t.toStr(n))}),this):(r(this.first(),function(n){i=n.getVal()}),i)},destroy:function(){return r(this,function(n,t){w(t);n.destroy()}),this}};n.fn.typeahead=function(n){return s[n]?s[n].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)};n.fn.typeahead.
noConflict=function(){return n.fn.typeahead=l,this}})()});
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Version 1.2.3
 */
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)})(function(n){function i(i,u){var o=t(i),s=u?t(u):o,h=[],e=0,f=0,c=o.length,l=u?s.length:o.length;for(u||(u=i);e<c;e++)for(f=0;f<l;f++)if(i[e]===u[f])continue;else r(o[e],s[f])&&h.push(c>l?i[e]:u[f]);return n.unique(h)}function t(t){for(var u=[],f=0,r,i;i=t[f++];)r=n(i).offset(),u.push([r.top,r.left,i.offsetWidth,i.offsetHeight]);return u}function r(n,t){var i=n[1],r=n[0],e=n[2],o=n[3],u=t[1],f=t[0],s=t[2],h=t[3];return!(f+h<=r||r+o<=f||u+s<=i||i+e<=u)}n.fn.overlaps=function(t){return this.pushStack(i(this,t&&n(t)))}}),function(n){var i=function(){this.arrImagesForLoad=[];this.arrImagesLoaded=[];this.arrSequence=[];this.autoplay=!1;this.isAnimation=!1;this.animationInterval=null;this.animationSpeed=-1;this.animationHeight=0;this.animationWidth=0;this.$imagesContainer=null;this.$imageLoading=null;this.$clickedOnPreview=!1;this.xmlFile="";this.init=function(t,i){var r,u,f;return this.$imagesContainer=t,n("img",this.$imagesContainer).
remove(),this.arrImagesForLoad.length=0,this.arrImagesLoaded.length=0,this.arrSequence.length=0,this.$imageLoading=n("<img />").attr("class","preview").attr("src",i.animationLoadingImg),this.$imagesContainer.append(this.$imageLoading),this.$imageLoading.mouseup(function(n){n.stopPropagation()}),this.stopAnimation(),this.autoplay=i.autoplay,this.animationSpeed=i.animationSpeed,this.animationHeight=i.animationHeight,this.animationWidth=i.animationWidth,this.xmlFile=i.xmlFile,r=n.Deferred(),"XDomainRequest"in window&&window.XDomainRequest!==null?(u=new XDomainRequest,u.open("get",this.xmlFile),f=this,u.onload=function(){f.loadImageXml(n.parseXML(u.responseText)).done(function(){r.resolve()}).fail(function(){r.reject()})},u.onerror=function(){r.reject()},u.send()):this.basicXhr=n.ajax({type:"GET",url:i.xmlFile,dataType:"xml",context:this,success:function(n){this.loadImageXml(n).done(function(){r.resolve()}).fail(function(){r.reject()})},error:function(){r.reject()}}),this.initialization=r.promise()};this.loadImageXml=
function(t){var i=this,r;return n(t).find("fsi_parameter").each(function(){var a=n(this).find("FPX").find("Base").attr("value"),s=n(this).find("Options").find("SceneSets").attr("value"),f=n(this).find("images3d:first"),v=f.attr("prefix")?f.attr("prefix"):"",l=f.attr("suffix"),h,u,e,o,r,c,t;if(s!="")for(h=s.split(","),t=0;t<h.length;t++)if(u=h[t].split("-"),u.length==1)i.arrSequence.push(Math.max(parseInt(Math.round(u[0]/2),10),1)-1);else if(u.length==2)if(e=Math.max(parseInt(Math.round(u[0]/2),10),1),o=Math.max(parseInt(Math.round(u[1]/2),10),1),e<o)for(r=e;r<=o;r++)i.arrSequence.push(r-1);else for(r=e;r>=o;r--)i.arrSequence.push(r-1);else continue;if(c="even",i.arrSequence.length==1&&(c="eq("+i.arrSequence[0]+")"),f.find("image:"+c).each(function(){var t=n(this).attr("src");i.arrImagesForLoad.push(i.createImage(a+v+t+l+"&width="+i.animationWidth+"&height="+i.animationHeight+"&profile=jpeg"+(l==".png"?"&effects=matte(fff)":"")+"&quality=95"))}),s=="")for(t=0;t<i.arrImagesForLoad.length;t++)i.arrSequence.push(
t)}),r=n.Deferred(),this.prepareImages().done(function(){r.resolve()}).fail(function(){r.reject()}),r.promise()};this.createImage=function(t){return n("<img />").hide().css("margin","auto").attr("class","preview").data("src",t)};this.prepareImages=function(){for(var r,t,u=[],f=this.arrImagesForLoad.length,i=0;i<f;i++)r=this.arrImagesForLoad.shift(),t=n.Deferred(),u.push(t),r.one("load",{context:this,deferral:t,imageNumber:i},function(t){t.data.context.arrImagesLoaded[t.data.imageNumber]=n(this);t.data.deferral.resolve(t.data.context)}).one("error",{deferral:t},function(n){n.data.deferral.reject()}).attr("src",r.data("src"));return n.when.apply(n,u).then(function(n){n.arrImagesLoaded.length&&n.setUpPosterImage(n.arrImagesLoaded[0]);n.$imagesContainer.append.apply(n.$imagesContainer,n.arrImagesLoaded);n.allImagesReady()})};this.setUpPosterImage=function(n){this.currentShowingIndex=0;this.$imageLoading.hide();n.mouseup(function(){this.clickedOnPreview=!0}).show()};this.allImagesReady=function(){var n=this;this.$imageLoading.
hide();this.autoplay&&!this.clickedOnPreview&&(this.animationInterval=setInterval(function(){n.showNext()},this.animationSpeed));this.clickedOnPreview&&(this.clickedOnPreview=!1);this.arrImagesLoaded[0]&&this.arrImagesLoaded[0].unbind("click")};this.startAnimation=function(){var n=this;this.isAnimation||(this.isAnimation=!0,this.animationInterval=setInterval(function(){n.showNext()},this.animationSpeed))};this.stopAnimation=function(){this.isAnimation=!1;clearInterval(this.animationInterval)};this.destroy=function(){this.initialization.state()==="pending"?this.basicXhr&&this.basicXhr.readyState!==4&&this.basicXhr.abort():this.stopAnimation()};this.showNext=function(){if(this.$imagesContainer.parents("body").length==0){this.stopAnimation();return}var n=this.currentShowingIndex+1;if(n>=this.arrSequence.length&&(n=0),this.arrSequence[n]==this.arrSequence[this.currentShowingIndex]){this.currentShowingIndex=n;return}this.arrImagesLoaded[this.arrSequence[this.currentShowingIndex]].hide();this.arrImagesLoaded[this.arrSequence[
n]].show();this.currentShowingIndex=n}},t={init:function(t){var s={xmlFile:"default.xml",autoplay:!1,animationSpeed:100,animationWidth:400,animationHeight:400,callbacks:{onNoTarget:function(){},onPartlySuccess:function(){},onSuccess:function(){},onEachSuccess:function(){},onFailure:function(){},onEachFailure:function(){},onInit:function(){},onEachInit:function(){}}},r=n.extend(!0,{},s,t),f=[],u=this.length,e=0,o=0;return this.each(function(){var t=n(this),u=n.Deferred(),s;f.push(u);t.data("wcoImageAnimation")||(s=new i,t.data("wcoImageAnimation",s));t.data("wcoImageAnimation").init(t,r).done(function(){r.callbacks.onEachSuccess.call(t);e++}).fail(function(){r.callbacks.onEachFailure.call(t);o++}).always(function(){r.callbacks.onEachInit.call(t);u.resolve()})}),u?n.when.apply(n,f).done(function(){u===e?r.callbacks.onSuccess.call(this):u===o?r.callbacks.onFailure.call(this):r.callbacks.onPartlySuccess.call(this);r.callbacks.onInit.call(this)}):(r.callbacks.onNoTarget.call(this),r.callbacks.onInit.call(this)),this}
,startAnimation:function(){return this.each(function(){n(this).data("wcoImageAnimation").startAnimation()})},stopAnimation:function(){return this.each(function(){n(this).data("wcoImageAnimation").stopAnimation()})},destroy:function(){return this.each(function(){var t=n(this);t.data("wcoImageAnimation").destroy();t.data("wcoImageAnimation",undefined)})}};n.fn.wcoimageanimation=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n!="object"&&n)console.log("there was an error");else return t.init.apply(this,arguments)}}(jQuery),function(){var n;n=function(){function n(){}return n.BACKSPACE=8,n.TAB=9,n.ENTER=13,n.SHIFT=16,n.CTRL=17,n.ALT=18,n.PAUSE_BREAK=19,n.CAPS_LOCK=20,n.ESCAPE=27,n.PAGE_UP=33,n.PAGE_DOWN=34,n.END=35,n.HOME=36,n.LEFT_ARROW=37,n.UP_ARROW=38,n.RIGHT_ARROW=39,n.DOWN_ARROW=40,n.INSERT=45,n.DELETE=46,n._0=48,n._1=49,n._2=50,n._3=51,n._4=52,n._5=53,n._6=54,n._7=55,n._8=56,n._9=57,n.A=65,n.B=66,n.C=67,n.D=68,n.E=69,n.F=70,n.G=71,n.H=72,n.I=73,n.J=74,n.K=75,n.
L=76,n.M=77,n.N=78,n.O=79,n.P=80,n.Q=81,n.R=82,n.S=83,n.T=84,n.U=85,n.V=86,n.W=87,n.X=88,n.Y=89,n.Z=90,n.LEFT_WINDOW_KEY=91,n.RIGHT_WINDOW_KEY=92,n.SELECT_KEY=93,n.NUM_PAD_0=96,n.NUM_PAD_1=97,n.NUM_PAD_2=98,n.NUM_PAD_3=99,n.NUM_PAD_4=100,n.NUM_PAD_5=101,n.NUM_PAD_6=102,n.NUM_PAD_7=103,n.NUM_PAD_8=104,n.NUM_PAD_9=105,n.NUM_PAD_ASTERISK=106,n.NUM_PAD_PLUS=107,n.NUM_PAD_MINUS=109,n.NUM_PAD_FOWARD_SLASH=111,n.F1=112,n.F2=113,n.F3=114,n.F4=115,n.F5=116,n.F6=117,n.F7=118,n.F8=119,n.F9=120,n.F10=121,n.F11=122,n.F12=123,n.NUM_LOCK=144,n.SCROLL_LOCK=145,n.SEMI_COLON=186,n.EQUALS=187,n.COMMA=188,n.DASH=189,n.PERIOD=190,n.FORWARD_SLASH=191,n.GRAVE=192,n.LEFT_BRACKET=219,n.BACK_SLASH=220,n.RIGHT_BRACKET=221,n.SINGLE_QUOTE=222,n}();this.Key=n}.call(this);
/*!
 * Isotope PACKAGED v2.2.2
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * http://isotope.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(n){function r(){}function t(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(r,u){n.fn[r]=function(f){var h,o,c,l,e,s;if(typeof f=="string"){for(h=i.call(arguments,1),o=0,c=this.length;o<c;o++){if(l=this[o],e=n.data(l,r),!e){t("cannot call methods on "+r+" prior to initialization; attempted to call '"+f+"'");continue}if(!n.isFunction(e[f])||f.charAt(0)==="_"){t("no such method '"+f+"' for "+r+" instance");continue}if(s=e[f].apply(e,h),s!==undefined)return s}return this}return this.each(function(){var t=n.data(this,r);t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,r,t))})}}if(n){var t=typeof console=="undefined"?r:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var i=Array.prototype.slice;typeof define=="function"&&define.amd?define("jquery-bridget/jquery.bridget",["jquery"],t):typeof exports=="object"?t(require("jquery")):t(n.jQuery)})(window);
/*!
 * eventie v1.0.6
 * event binding helper
 *   eventie.bind( elem, 'click', myFn )
 *   eventie.unbind( elem, 'click', myFn )
 * MIT license
 */
(function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,u=function(){},i,r;t.addEventListener?u=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(u=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=undefined}});r={bind:u,unbind:i};typeof define=="function"&&define.amd?define("eventie/eventie",r):typeof exports=="object"?module.exports=r:n.eventie=r})(window);
/*!
 * EventEmitter v4.2.11 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */
(function(){"use strict";function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var t=this._getEvents(),r,i;if(n instanceof RegExp){r={};for(i in t)t.hasOwnProperty(i)&&n.test(i)&&(r[i]=t[i])}else r=t[n]||(t[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t=this.getListeners(n),i;return t instanceof Array&&(i={},i[n]=t),i||t};n.addListener=function(n,t){var i=this.getListenersAsObject(n),f=typeof t=="object";for(var r in i)i.hasOwnProperty(r)&&u(i[r],t)===-1&&i[r].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;
t<n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var i=this.getListenersAsObject(n),r;for(var f in i)i.hasOwnProperty(f)&&(r=u(i[f],t),r!==-1&&i[f].splice(r,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if(typeof t!="object"||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&(typeof u=="function"?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var r=typeof n,t=this._getEvents(),i;if(r==="string")delete t[n];else if(n instanceof RegExp)for(i in t)t.hasOwnProperty(i)&&n.test(i)&&delete t[i];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var r=this.getListenersAsObject(n),i,f,u,
e;for(u in r)if(r.hasOwnProperty(u))for(f=r[u].length;f--;)i=r[u][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):typeof module=="object"&&module.exports?module.exports=t:r.EventEmitter=t}).call(this);
/*!
 * getStyleProperty v1.0.4
 * original by kangax
 * http://perfectionkills.com/feature-testing-css-properties/
 * MIT license
 */
(function(n){function t(n){var u,t,f;if(n){if(typeof r[n]=="string")return n;for(n=n.charAt(0).toUpperCase()+n.slice(1),t=0,f=i.length;t<f;t++)if(u=i[t]+n,typeof r[u]=="string")return u}}var i="Webkit Moz ms Ms O".split(" "),r=document.documentElement.style;typeof define=="function"&&define.amd?define("get-style-property/get-style-property",[],function(){return t}):typeof exports=="object"?module.exports=t:n.getStyleProperty=t})(window);
/*!
 * getSize v1.2.2
 * measure size of elements
 * MIT license
 */
(function(n){function i(n){var t=parseFloat(n),i=n.indexOf("%")===-1&&!isNaN(t);return i&&t}function u(){}function e(){for(var r,i={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},n=0,u=t.length;n<u;n++)r=t[n],i[r]=0;return i}function r(r){function c(){var e,t,c,l;s||(s=!0,e=n.getComputedStyle,o=function(){var n=e?function(n){return e(n,null)}:function(n){return n.currentStyle};return function(t){var i=n(t);return i||f("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),i}}(),u=r("boxSizing"),u&&(t=document.createElement("div"),t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[u]="border-box",c=document.body||document.documentElement,c.appendChild(t),l=o(t),h=i(l.width)===200,c.removeChild(t)))}function l(n){var f,r,w,s,b,v,l,y,p;if(c(),typeof n=="string"&&(n=document.querySelector(n)),n&&typeof n=="object"&&n.nodeType){if(f=o(n),f.display==="none")
return e();for(r={},r.width=n.offsetWidth,r.height=n.offsetHeight,w=r.isBorderBox=!!(u&&f[u]&&f[u]==="border-box"),s=0,b=t.length;s<b;s++)v=t[s],l=f[v],l=a(n,l),y=parseFloat(l),r[v]=isNaN(y)?0:y;var k=r.paddingLeft+r.paddingRight,d=r.paddingTop+r.paddingBottom,rt=r.marginLeft+r.marginRight,ut=r.marginTop+r.marginBottom,g=r.borderLeftWidth+r.borderRightWidth,nt=r.borderTopWidth+r.borderBottomWidth,tt=w&&h,it=i(f.width);return it!==!1&&(r.width=it+(tt?0:k+g)),p=i(f.height),p!==!1&&(r.height=p+(tt?0:d+nt)),r.innerWidth=r.width-(k+g),r.innerHeight=r.height-(d+nt),r.outerWidth=r.width+rt,r.outerHeight=r.height+ut,r}}function a(t,i){if(n.getComputedStyle||i.indexOf("%")===-1)return i;var r=t.style,e=r.left,u=t.runtimeStyle,f=u&&u.left;return f&&(u.left=t.currentStyle.left),r.left=i,i=r.pixelLeft,r.left=e,f&&(u.left=f),i}var s=!1,o,u,h;return l}var f=typeof console=="undefined"?u:function(n){console.error(n)},t=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom",
"borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];typeof define=="function"&&define.amd?define("get-size/get-size",["get-style-property/get-style-property"],r):typeof exports=="object"?module.exports=r(require("desandro-get-style-property")):n.getSize=r(n.getStyleProperty)})(window);
/*!
 * docReady v1.0.4
 * Cross browser DOMContentLoaded event emitter
 * MIT license
 */
(function(n){function t(n){typeof n=="function"&&(t.isReady?n():r.push(n))}function u(n){var r=n.type==="readystatechange"&&i.readyState!=="complete";t.isReady||r||e()}function e(){var n,i,u;for(t.isReady=!0,n=0,i=r.length;n<i;n++)u=r[n],u()}function f(r){return i.readyState==="complete"?e():(r.bind(i,"DOMContentLoaded",u),r.bind(i,"readystatechange",u),r.bind(n,"load",u)),t}var i=n.document,r=[];t.isReady=!1;typeof define=="function"&&define.amd?define("doc-ready/doc-ready",["eventie/eventie"],f):typeof exports=="object"?module.exports=f(require("eventie")):n.docReady=f(n.eventie)})(window),function(n){"use strict";function i(n,t){return n[r](t)}function u(n){if(!n.parentNode){var t=document.createDocumentFragment();t.appendChild(n)}}function o(n,t){var r,i,f;for(u(n),r=n.parentNode.querySelectorAll(t),i=0,f=r.length;i<f;i++)if(r[i]===n)return!0;return!1}function s(n,t){return u(n),i(n,t)}var r=function(){var i,t,u,f,r;if(n.matches)return"matches";if(n.matchesSelector)return"matchesSelector";for(i=["webkit",
"moz","ms","o"],t=0,u=i.length;t<u;t++)if(f=i[t],r=f+"MatchesSelector",n[r])return r}(),t,f,e;r?(f=document.createElement("div"),e=i(f,"div"),t=e?i:s):t=o;typeof define=="function"&&define.amd?define("matches-selector/matches-selector",[],function(){return t}):typeof exports=="object"?module.exports=t:window.matchesSelector=t}(Element.prototype),function(n,t){"use strict";typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["doc-ready/doc-ready","matches-selector/matches-selector"],function(i,r){return t(n,i,r)}):typeof exports=="object"?module.exports=t(n,require("doc-ready"),require("desandro-matches-selector")):n.fizzyUIUtils=t(n,n.docReady,n.matchesSelector)}(window,function(n,t,i){var r={},f,u;return r.extend=function(n,t){for(var i in t)n[i]=t[i];return n},r.modulo=function(n,t){return(n%t+t)%t},f=Object.prototype.toString,r.isArray=function(n){return f.call(n)=="[object Array]"},r.makeArray=function(n){var t=[],i,u;if(r.isArray(n))t=n;else if(n&&typeof n.length=="number")for(i=0,u=n.length;
i<u;i++)t.push(n[i]);else t.push(n);return t},r.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},r.removeFrom=function(n,t){var i=r.indexOf(n,t);i!=-1&&n.splice(i,1)},r.isElement=typeof HTMLElement=="function"||typeof HTMLElement=="object"?function(n){return n instanceof HTMLElement}:function(n){return n&&typeof n=="object"&&n.nodeType==1&&typeof n.nodeName=="string"},r.setText=function(){function t(t,i){n=n||(document.documentElement.textContent!==undefined?"textContent":"innerText");t[n]=i}var n;return t}(),r.getParent=function(n,t){while(n!=document.body)if(n=n.parentNode,i(n,t))return n},r.getQueryElement=function(n){return typeof n=="string"?document.querySelector(n):n},r.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},r.filterFindElements=function(n,t){var f,e,h,u,s,o,c;for(n=r.makeArray(n),f=[],e=0,h=n.length;e<h;e++)if(u=n[e],r.isElement(u))if(t)for(i(u,t)&&f.push(u),s=u.querySelectorAll(t),o=0,
c=s.length;o<c;o++)f.push(s[o]);else f.push(u);return f},r.debounceMethod=function(n,t,i){var u=n.prototype[t],r=t+"Timeout";n.prototype[t]=function(){var t=this[r],f,n;t&&clearTimeout(t);f=arguments;n=this;this[r]=setTimeout(function(){u.apply(n,f);delete n[r]},i||100)}},r.toDashed=function(n){return n.replace(/(.)([A-Z])/g,function(n,t,i){return t+"-"+i}).toLowerCase()},u=n.console,r.htmlInit=function(i,f){t(function(){for(var t,o,a,v,s,h=r.toDashed(f),c=document.querySelectorAll(".js-"+h),l="data-"+h+"-options",e=0,y=c.length;e<y;e++){t=c[e];o=t.getAttribute(l);try{a=o&&JSON.parse(o)}catch(p){u&&u.error("Error parsing "+l+" on "+t.nodeName.toLowerCase()+(t.id?"#"+t.id:"")+": "+p);continue}v=new i(t,a);s=n.jQuery;s&&s.data(t,f,v)}})},r}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("outlayer/item",["eventEmitter/EventEmitter","get-size/get-size","get-style-property/get-style-property","fizzy-ui-utils/utils"],function(i,r,u,f){return t(n,i,r,u,f)}):typeof exports=="object"?module.exports=
t(n,require("wolfy87-eventemitter"),require("get-size"),require("desandro-get-style-property"),require("fizzy-ui-utils")):(n.Outlayer={},n.Outlayer.Item=t(n,n.EventEmitter,n.getSize,n.getStyleProperty,n.fizzyUIUtils))}(window,function(n,t,i,r,u){"use strict";function p(n){for(var t in n)return!1;return t=null,!0}function f(n,t){n&&(this.element=n,this.layout=t,this.position={x:0,y:0},this._create())}function d(n){return n.replace(/([A-Z])/g,function(n){return"-"+n.toLowerCase()})}var o=n.getComputedStyle,y=o?function(n){return o(n,null)}:function(n){return n.currentStyle},e=r("transition"),w=r("transform"),b=e&&w,k=!!r("perspective"),s={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[e],h=["transform","transition","transitionDuration","transitionProperty"],c=function(){for(var n,t,u={},i=0,f=h.length;i<f;i++)n=h[i],t=r(n),t&&t!==n&&(u[n]=t);return u}(),l,a,v;return u.extend(f.prototype,t.prototype),f.prototype._create=function(){this.
_transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:"absolute"})},f.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},f.prototype.getSize=function(){this.size=i(this.element)},f.prototype.css=function(n){var r=this.element.style,t,i;for(t in n)i=c[t]||t,r[i]=n[t]},f.prototype.getPosition=function(){var f=y(this.element),e=this.layout.options,o=e.isOriginLeft,s=e.isOriginTop,r=f[o?"left":"right"],u=f[s?"top":"bottom"],n=this.layout.size,t=r.indexOf("%")!=-1?parseFloat(r)/100*n.width:parseInt(r,10),i=u.indexOf("%")!=-1?parseFloat(u)/100*n.height:parseInt(u,10);t=isNaN(t)?0:t;i=isNaN(i)?0:i;t-=o?n.paddingLeft:n.paddingRight;i-=s?n.paddingTop:n.paddingBottom;this.position.x=t;this.position.y=i},f.prototype.layoutPosition=function(){var i=this.layout.size,n=this.layout.options,t={},r=n.isOriginLeft?"paddingLeft":"paddingRight",u=n.isOriginLeft?"left":"right",f=n.isOriginLeft?"right":"left",e=this.position.x+i[r];t[u]=this.getXValue(e);t[f]="";var o=n.isOriginTop?"paddingTop":"paddingBottom",
s=n.isOriginTop?"top":"bottom",h=n.isOriginTop?"bottom":"top",c=this.position.y+i[o];t[s]=this.getYValue(c);t[h]="";this.css(t);this.emitEvent("layout",[this])},f.prototype.getXValue=function(n){var t=this.layout.options;return t.percentPosition&&!t.isHorizontal?n/this.layout.size.width*100+"%":n+"px"},f.prototype.getYValue=function(n){var t=this.layout.options;return t.percentPosition&&t.isHorizontal?n/this.layout.size.height*100+"%":n+"px"},f.prototype._transitionTo=function(n,t){this.getPosition();var r=this.position.x,u=this.position.y,f=parseInt(n,10),e=parseInt(t,10),o=f===this.position.x&&e===this.position.y;if(this.setPosition(n,t),o&&!this.isTransitioning){this.layoutPosition();return}var s=n-r,h=t-u,i={};i.transform=this.getTranslate(s,h);this.transition({to:i,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},f.prototype.getTranslate=function(n,t){var i=this.layout.options;return(n=i.isOriginLeft?n:-n,t=i.isOriginTop?t:-t,k)?"translate3d("+n+"px, "+t+"px, 0)":"translate("+n+"px, "+t+"px)"}
,f.prototype.goTo=function(n,t){this.setPosition(n,t);this.layoutPosition()},f.prototype.moveTo=b?f.prototype._transitionTo:f.prototype.goTo,f.prototype.setPosition=function(n,t){this.position.x=parseInt(n,10);this.position.y=parseInt(t,10)},f.prototype._nonTransition=function(n){this.css(n.to);n.isCleaning&&this._removeStyles(n.to);for(var t in n.onTransitionEnd)n.onTransitionEnd[t].call(this)},f.prototype._transition=function(n){var i,t,r;if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(n);return}i=this._transn;for(t in n.onTransitionEnd)i.onEnd[t]=n.onTransitionEnd[t];for(t in n.to)i.ingProperties[t]=!0,n.isCleaning&&(i.clean[t]=!0);n.from&&(this.css(n.from),r=this.element.offsetHeight,r=null);this.enableTransition(n.to);this.css(n.to);this.isTransitioning=!0},l="opacity,"+d(c.transform||"transform"),f.prototype.enableTransition=function(){this.isTransitioning||(this.css({transitionProperty:l,transitionDuration:this.layout.options.transitionDuration}),this.element.addEventListener(
s,this,!1))},f.prototype.transition=f.prototype[e?"_transition":"_nonTransition"],f.prototype.onwebkitTransitionEnd=function(n){this.ontransitionend(n)},f.prototype.onotransitionend=function(n){this.ontransitionend(n)},a={"-webkit-transform":"transform","-moz-transform":"transform","-o-transform":"transform"},f.prototype.ontransitionend=function(n){var t,i,r;n.target===this.element&&(t=this._transn,i=a[n.propertyName]||n.propertyName,delete t.ingProperties[i],p(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[n.propertyName]="",delete t.clean[i]),i in t.onEnd&&(r=t.onEnd[i],r.call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this]))},f.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(s,this,!1);this.isTransitioning=!1},f.prototype._removeStyles=function(n){var t={};for(var i in n)t[i]="";this.css(t)},v={transitionProperty:"",transitionDuration:""},f.prototype.removeTransitionStyles=function(){this.css(v)},f.prototype.
removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:""});this.emitEvent("remove",[this])},f.prototype.remove=function(){if(!e||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}var n=this;this.once("transitionEnd",function(){n.removeElem()});this.hide()},f.prototype.reveal=function(){delete this.isHidden;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("visibleStyle");t[i]=this.onRevealTransitionEnd;this.transition({from:n.hiddenStyle,to:n.visibleStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},f.prototype.getHideRevealTransitionEndProperty=function(n){var t=this.layout.options[n],i;if(t.opacity)return"opacity";for(i in t)return i},f.prototype.hide=function(){this.isHidden=!0;this.css({display:""});var n=this.layout.options,t={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");t[i]=this.onHideTransitionEnd;this.transition(
{from:n.visibleStyle,to:n.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},f.prototype.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},f.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},f});
/*!
 * Outlayer v1.4.2
 * the brains and guts of a layout library
 * MIT license
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define("outlayer/outlayer",["eventie/eventie","eventEmitter/EventEmitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,r,u,f,e){return t(n,i,r,u,f,e)}):typeof exports=="object"?module.exports=t(n,require("eventie"),require("wolfy87-eventemitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):n.Outlayer=t(n,n.eventie,n.EventEmitter,n.getSize,n.fizzyUIUtils,n.Outlayer.Item)})(window,function(n,t,i,r,u,f){"use strict";function e(n,t){var i=u.getQueryElement(n),r;if(!i){h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||n));return}this.element=i;o&&(this.$element=o(this.element));this.options=u.extend({},this.constructor.defaults);this.option(t);r=++l;this.element.outlayerGUID=r;s[r]=this;this._create();this.options.isInitLayout&&this.layout()}var h=n.console,o=n.jQuery,c=function(){},l=0,s={};return e.namespace="outlayer",e.Item=f,e.defaults={containerStyle:{position:"relative"},isInitLayout:!0,
isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},u.extend(e.prototype,i.prototype),e.prototype.option=function(n){u.extend(this.options,n)},e.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);u.extend(this.element.style,this.options.containerStyle);this.options.isResizeBound&&this.bindResize()},e.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)},e.prototype._itemize=function(n){for(var u,f,i=this._filterFindItemElements(n),e=this.constructor.Item,r=[],t=0,o=i.length;t<o;t++)u=i[t],f=new e(u,this),r.push(f);return r},e.prototype._filterFindItemElements=function(n){return u.filterFindElements(n,this.options.itemSelector)},e.prototype.getItemElements=function(){for(var t=[],n=0,i=this.items.length;n<i;n++)t.push(this.items[n].element);return t},e.prototype.layout=function(){this._resetLayout();this.
_manageStamps();var n=this.options.isLayoutInstant!==undefined?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,n);this._isLayoutInited=!0},e.prototype._init=e.prototype.layout,e.prototype._resetLayout=function(){this.getSize()},e.prototype.getSize=function(){this.size=r(this.element)},e.prototype._getMeasurement=function(n,t){var i=this.options[n],f;i?(typeof i=="string"?f=this.element.querySelector(i):u.isElement(i)&&(f=i),this[n]=f?r(f)[t]:i):this[n]=0},e.prototype.layoutItems=function(n,t){n=this._getItemsForLayout(n);this._layoutItems(n,t);this._postLayout()},e.prototype._getItemsForLayout=function(n){for(var i,r=[],t=0,u=n.length;t<u;t++)i=n[t],i.isIgnored||r.push(i);return r},e.prototype._layoutItems=function(n,t){var f,i,e,r,u;if(this._emitCompleteOnItems("layout",n),n&&n.length){for(f=[],i=0,e=n.length;i<e;i++)r=n[i],u=this._getItemLayoutPosition(r),u.item=r,u.isInstant=t||r.isLayoutInstant,f.push(u);this._processLayoutQueue(f)}},e.prototype._getItemLayoutPosition=function(
){return{x:0,y:0}},e.prototype._processLayoutQueue=function(n){for(var t,i=0,r=n.length;i<r;i++)t=n[i],this._positionItem(t.item,t.x,t.y,t.isInstant)},e.prototype._positionItem=function(n,t,i,r){r?n.goTo(t,i):n.moveTo(t,i)},e.prototype._postLayout=function(){this.resizeContainer()},e.prototype.resizeContainer=function(){if(this.options.isResizingContainer){var n=this._getContainerSize();n&&(this._setContainerMeasure(n.width,!0),this._setContainerMeasure(n.height,!1))}},e.prototype._getContainerSize=c,e.prototype._setContainerMeasure=function(n,t){if(n!==undefined){var i=this.size;i.isBorderBox&&(n+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth);n=Math.max(n,0);this.element.style[t?"width":"height"]=n+"px"}},e.prototype._emitCompleteOnItems=function(n,t){function u(){s.dispatchEvent(n+"Complete",null,[t])}function h(){r++;r===f&&u()}var s=this,f=t.length,r,i,e,o;if(!t||!f){u();return}for(r=0,i=0,e=t.length;i<e;i++){o=t[i];o.
once(n,h)}},e.prototype.dispatchEvent=function(n,t,i){var u=t?[t].concat(i):i,r;this.emitEvent(n,u);o&&(this.$element=this.$element||o(this.element),t?(r=o.Event(t),r.type=n,this.$element.trigger(r,i)):this.$element.trigger(n,i))},e.prototype.ignore=function(n){var t=this.getItem(n);t&&(t.isIgnored=!0)},e.prototype.unignore=function(n){var t=this.getItem(n);t&&delete t.isIgnored},e.prototype.stamp=function(n){var t,i,r;if(n=this._find(n),n)for(this.stamps=this.stamps.concat(n),t=0,i=n.length;t<i;t++)r=n[t],this.ignore(r)},e.prototype.unstamp=function(n){var t,r,i;if(n=this._find(n),n)for(t=0,r=n.length;t<r;t++)i=n[t],u.removeFrom(this.stamps,i),this.unignore(i)},e.prototype._find=function(n){if(n)return typeof n=="string"&&(n=this.element.querySelectorAll(n)),u.makeArray(n)},e.prototype._manageStamps=function(){var n,t,i;if(this.stamps&&this.stamps.length)for(this._getBoundingRect(),n=0,t=this.stamps.length;n<t;n++)i=this.stamps[n],this._manageStamp(i)},e.prototype._getBoundingRect=function(){var t=this.element.
getBoundingClientRect(),n=this.size;this._boundingRect={left:t.left+n.paddingLeft+n.borderLeftWidth,top:t.top+n.paddingTop+n.borderTopWidth,right:t.right-(n.paddingRight+n.borderRightWidth),bottom:t.bottom-(n.paddingBottom+n.borderBottomWidth)}},e.prototype._manageStamp=c,e.prototype._getElementOffset=function(n){var t=n.getBoundingClientRect(),i=this._boundingRect,u=r(n);return{left:t.left-i.left-u.marginLeft,top:t.top-i.top-u.marginTop,right:i.right-t.right-u.marginRight,bottom:i.bottom-t.bottom-u.marginBottom}},e.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},e.prototype.bindResize=function(){this.isResizeBound||(t.bind(n,"resize",this),this.isResizeBound=!0)},e.prototype.unbindResize=function(){this.isResizeBound&&t.unbind(n,"resize",this);this.isResizeBound=!1},e.prototype.onresize=function(){function t(){n.resize();delete n.resizeTimeout}this.resizeTimeout&&clearTimeout(this.resizeTimeout);var n=this;this.resizeTimeout=setTimeout(t,100)},e.prototype.resize=function(){this.isResizeBound&&
this.needsResizeLayout()&&this.layout()},e.prototype.needsResizeLayout=function(){var n=r(this.element),t=this.size&&n;return t&&n.innerWidth!==this.size.innerWidth},e.prototype.addItems=function(n){var t=this._itemize(n);return t.length&&(this.items=this.items.concat(t)),t},e.prototype.appended=function(n){var t=this.addItems(n);t.length&&(this.layoutItems(t,!0),this.reveal(t))},e.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(i=this.items.slice(0),this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i))},e.prototype.reveal=function(n){var i,t,r;for(this._emitCompleteOnItems("reveal",n),i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.reveal()},e.prototype.hide=function(n){var i,t,r;for(this._emitCompleteOnItems("hide",n),i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.hide()},e.prototype.revealItemElements=function(n){var t=this.getItems(n);this.reveal(t)},e.prototype.hideItemElements=function(n){var t=this.getItems(n);this.hide(t)},e.prototype.
getItem=function(n){for(var i,t=0,r=this.items.length;t<r;t++)if(i=this.items[t],i.element===n)return i},e.prototype.getItems=function(n){var i,t,f,e,r;for(n=u.makeArray(n),i=[],t=0,f=n.length;t<f;t++)e=n[t],r=this.getItem(e),r&&i.push(r);return i},e.prototype.remove=function(n){var t=this.getItems(n),i,f,r;if(this._emitCompleteOnItems("remove",t),t&&t.length)for(i=0,f=t.length;i<f;i++)r=t[i],r.remove(),u.removeFrom(this.items,r)},e.prototype.destroy=function(){var t=this.element.style,n,i,r,u;for(t.height="",t.position="",t.width="",n=0,i=this.items.length;n<i;n++)r=this.items[n],r.destroy();this.unbindResize();u=this.element.outlayerGUID;delete s[u];delete this.element.outlayerGUID;o&&o.removeData(this.element,this.constructor.namespace)},e.data=function(n){n=u.getQueryElement(n);var t=n&&n.outlayerGUID;return t&&s[t]},e.create=function(n,t){function i(){e.apply(this,arguments)}return Object.create?i.prototype=Object.create(e.prototype):u.extend(i.prototype,e.prototype),i.prototype.constructor=i,i.defaults=
u.extend({},e.defaults),u.extend(i.defaults,t),i.prototype.settings={},i.namespace=n,i.data=e.data,i.Item=function(){f.apply(this,arguments)},i.Item.prototype=new f,u.htmlInit(i,n),o&&o.bridget&&o.bridget(n,i),i},e.Item=f,e}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/item",["outlayer/outlayer"],t):typeof exports=="object"?module.exports=t(require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.Item=t(n.Outlayer))}(window,function(n){"use strict";function t(){n.Item.apply(this,arguments)}t.prototype=new n.Item;t.prototype._create=function(){this.id=this.layout.itemGUID++;n.Item.prototype._create.call(this);this.sortData={}};t.prototype.updateSortData=function(){var t,i,n,r;if(!this.isIgnored){this.sortData.id=this.id;this.sortData["original-order"]=this.id;this.sortData.random=Math.random();t=this.layout.options.getSortData;i=this.layout._sorters;for(n in t)r=i[n],this.sortData[n]=r(this.element,this)}};var i=t.prototype.destroy;return t.prototype.destroy=function(){i.
apply(this,arguments);this.css({display:""})},t}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-mode",["get-size/get-size","outlayer/outlayer"],t):typeof exports=="object"?module.exports=t(require("get-size"),require("outlayer")):(n.Isotope=n.Isotope||{},n.Isotope.LayoutMode=t(n.getSize,n.Outlayer))}(window,function(n,t){"use strict";function i(n){this.isotope=n;n&&(this.options=n.options[this.namespace],this.element=n.element,this.items=n.filteredItems,this.size=n.size)}return function(){function e(n){return function(){return t.prototype[n].apply(this.isotope,arguments)}}for(var r,u=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout"],n=0,f=u.length;n<f;n++)r=u[n],i.prototype[r]=e(r)}(),i.prototype.needsVerticalResizeLayout=function(){var t=n(this.isotope.element),i=this.isotope.size&&t;return i&&t.innerHeight!=this.isotope.size.innerHeight},i.prototype._getMeasurement=function(){this.isotope._getMeasurement.
apply(this,arguments)},i.prototype.getColumnWidth=function(){this.getSegmentSize("column","Width")},i.prototype.getRowHeight=function(){this.getSegmentSize("row","Height")},i.prototype.getSegmentSize=function(n,t){var i=n+t,u="outer"+t,r;(this._getMeasurement(i,u),this[i])||(r=this.getFirstItemSize(),this[i]=r&&r[u]||this.isotope.size["inner"+t])},i.prototype.getFirstItemSize=function(){var t=this.isotope.filteredItems[0];return t&&t.element&&n(t.element)},i.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},i.prototype.getSize=function(){this.isotope.getSize();this.size=this.isotope.size},i.modes={},i.create=function(n,t){function r(){i.apply(this,arguments)}return r.prototype=new i,t&&(r.options=t),r.prototype.namespace=n,i.modes[n]=r,r},i});
/*!
 * Masonry v3.3.1
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define("masonry/masonry",["outlayer/outlayer","get-size/get-size","fizzy-ui-utils/utils"],t):typeof exports=="object"?module.exports=t(require("outlayer"),require("get-size"),require("fizzy-ui-utils")):n.Masonry=t(n.Outlayer,n.getSize,n.fizzyUIUtils)})(window,function(n,t,i){var r=n.create("masonry");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){var n,i;this.getContainerWidth();this.columnWidth||(n=this.items[0],i=n&&n.element,this.columnWidth=i&&t(i).outerWidth||this.containerWidth);var r=this.columnWidth+=this.gutter,f=this.containerWidth+this.gutter,u=f/r,e=r-f%r,o=e&&e<1?"round":"floor";u=Math[o](u);this.cols=Math.max(u,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:
this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){var t;n.getSize();var e=n.size.outerWidth%this.columnWidth,s=e&&e<1?"round":"ceil",r=Math[s](n.size.outerWidth/this.columnWidth);r=Math.min(r,this.cols);var u=this._getColGroup(r),f=Math.min.apply(Math,u),o=i.indexOf(u,f),h={x:this.columnWidth*o,y:f},c=f+n.size.outerHeight,l=this.cols+1-u.length;for(t=0;t<l;t++)this.colYs[o+t]=c;return h},r.prototype._getColGroup=function(n){var i,r,t,u;if(n<2)return this.colYs;for(i=[],r=this.cols+1-n,t=0;t<r;t++)u=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,u);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;r<=i;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype.
_getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth()),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t;){if(this.colYs[t]!==0)break;n++}return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r});
/*!
 * Masonry layout mode
 * sub-classes Masonry
 * http://masonry.desandro.com
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-modes/masonry",["../layout-mode","masonry/masonry"],t):typeof exports=="object"?module.exports=t(require("../layout-mode"),require("masonry-layout")):t(n.Isotope.LayoutMode,n.Masonry)})(window,function(n,t){"use strict";function f(n,t){for(var i in t)n[i]=t[i];return n}var i=n.create("masonry"),e=i.prototype._getElementOffset,o=i.prototype.layout,s=i.prototype._getMeasurement,r,u;return f(i.prototype,t.prototype),i.prototype._getElementOffset=e,i.prototype.layout=o,i.prototype._getMeasurement=s,r=i.prototype.measureColumns,i.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;r.call(this)},u=i.prototype._manageStamp,i.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;u.apply(this,arguments)},i}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-modes/fit-rows",
["../layout-mode"],t):typeof exports=="object"?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var t=n.create("fitRows");return t.prototype._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement("gutter","outerWidth")},t.prototype._getItemLayoutPosition=function(n){var t,i,r;return n.getSize(),t=n.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter,this.x!==0&&t+this.x>i&&(this.x=0,this.y=this.maxY),r={x:this.x,y:this.y},this.maxY=Math.max(this.maxY,this.y+n.size.outerHeight),this.x+=t,r},t.prototype._getContainerSize=function(){return{height:this.maxY}},t}),function(n,t){"use strict";typeof define=="function"&&define.amd?define("isotope/js/layout-modes/vertical",["../layout-mode"],t):typeof exports=="object"?module.exports=t(require("../layout-mode")):t(n.Isotope.LayoutMode)}(window,function(n){"use strict";var t=n.create("vertical",{horizontalAlignment:0});return t.prototype._resetLayout=function(){this.y=0},t.prototype.
_getItemLayoutPosition=function(n){n.getSize();var t=(this.isotope.size.innerWidth-n.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=n.size.outerHeight,{x:t,y:i}},t.prototype._getContainerSize=function(){return{height:this.y}},t});
/*!
 * Isotope v2.2.2
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * http://isotope.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size","matches-selector/matches-selector","fizzy-ui-utils/utils","isotope/js/item","isotope/js/layout-mode","isotope/js/layout-modes/masonry","isotope/js/layout-modes/fit-rows","isotope/js/layout-modes/vertical"],function(i,r,u,f,e,o){return t(n,i,r,u,f,e,o)}):typeof exports=="object"?module.exports=t(n,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("./item"),require("./layout-mode"),require("./layout-modes/masonry"),require("./layout-modes/fit-rows"),require("./layout-modes/vertical")):n.Isotope=t(n,n.Outlayer,n.getSize,n.matchesSelector,n.fizzyUIUtils,n.Isotope.Item,n.Isotope.LayoutMode)})(window,function(n,t,i,r,u,f,e){function y(n,t){return function(i,r){for(var h,c,u=0,s=n.length;u<s;u++){var f=n[u],e=i.sortData[f],o=r.sortData[f];if(e>o||e<o)return h=t[f]!==undefined?t[f]:t,c=h?1:-1,(e>o?1:-1)*c}return 0}}var s=n.jQuery,l=String.prototype.
trim?function(n){return n.trim()}:function(n){return n.replace(/^\s+|\s+$/g,"")},a=document.documentElement,v=a.textContent?function(n){return n.textContent}:function(n){return n.innerText},o=t.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0}),h,c;return o.Item=f,o.LayoutMode=e,o.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();t.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=["original-order"];for(var n in e.modes)this._initLayoutMode(n)},o.prototype.reloadItems=function(){this.itemGUID=0;t.prototype.reloadItems.call(this)},o.prototype._itemize=function(){for(var r,n=t.prototype._itemize.apply(this,arguments),i=0,u=n.length;i<u;i++)r=n[i],r.id=this.itemGUID++;return this._updateItemsSortData(n),n},o.prototype._initLayoutMode=function(n){var t=e.modes[n],i=this.options[n]||{};this.options[n]=t.options?u.extend(t.options,i):i;this.modes[n]=new t(this)},o.prototype.layout=function(){if(!this._isLayoutInited&&
this.options.isInitLayout){this.arrange();return}this._layout()},o.prototype._layout=function(){var n=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,n);this._isLayoutInited=!0},o.prototype.arrange=function(n){function r(){i.reveal(t.needReveal);i.hide(t.needHide)}var t,i;this.option(n);this._getIsInstant();t=this._filter(this.items);this.filteredItems=t.matches;i=this;this._bindArrangeComplete();this._isInstant?this._noTransition(r):r();this._sort();this._layout()},o.prototype._init=o.prototype.arrange,o.prototype._getIsInstant=function(){var n=this.options.isLayoutInstant!==undefined?this.options.isLayoutInstant:!this._isLayoutInited;return this._isInstant=n,n},o.prototype._bindArrangeComplete=function(){function n(){t&&i&&r&&u.dispatchEvent("arrangeComplete",null,[u.filteredItems])}var t,i,r,u=this;this.once("layoutComplete",function(){t=!0;n()});this.once("hideComplete",function(){i=!0;n()});this.once("revealComplete",function(){r=!0;n()})},o.prototype._filter=
function(n){var u=this.options.filter,i,s,t,r;u=u||"*";var f=[],e=[],o=[],h=this._getFilterTest(u);for(i=0,s=n.length;i<s;i++)(t=n[i],t.isIgnored)||(r=h(t),r&&f.push(t),r&&t.isHidden?e.push(t):r||t.isHidden||o.push(t));return{matches:f,needReveal:e,needHide:o}},o.prototype._getFilterTest=function(n){return s&&this.options.isJQueryFiltering?function(t){return s(t.element).is(n)}:typeof n=="function"?function(t){return n(t.element)}:function(t){return r(t.element,n)}},o.prototype.updateSortData=function(n){var t;n?(n=u.makeArray(n),t=this.getItems(n)):t=this.items;this._getSorters();this._updateItemsSortData(t)},o.prototype._getSorters=function(){var t=this.options.getSortData,n,i;for(n in t)i=t[n],this._sorters[n]=h(i)},o.prototype._updateItemsSortData=function(n){for(var r,i=n&&n.length,t=0;i&&t<i;t++)r=n[t],r.updateSortData()},h=function(){function n(n){if(typeof n!="string")return n;var i=l(n).split(" "),r=i[0],u=r.match(/^\[(.+)\]$/),s=u&&u[1],f=t(s,r),e=o.sortDataParsers[i[1]];return e?function(n){return n&&
e(f(n))}:function(n){return n&&f(n)}}function t(n,t){return n?function(t){return t.getAttribute(n)}:function(n){var i=n.querySelector(t);return i&&v(i)}}return n}(),o.sortDataParsers={parseInt:function(n){return parseInt(n,10)},parseFloat:function(n){return parseFloat(n)}},o.prototype._sort=function(){var n=this.options.sortBy,t,i;n&&(t=[].concat.apply(n,this.sortHistory),i=y(t,this.options.sortAscending),this.filteredItems.sort(i),n!=this.sortHistory[0]&&this.sortHistory.unshift(n))},o.prototype._mode=function(){var n=this.options.layoutMode,t=this.modes[n];if(!t)throw new Error("No layout mode: "+n);return t.options=this.options[n],t},o.prototype._resetLayout=function(){t.prototype._resetLayout.call(this);this._mode()._resetLayout()},o.prototype._getItemLayoutPosition=function(n){return this._mode()._getItemLayoutPosition(n)},o.prototype._manageStamp=function(n){this._mode()._manageStamp(n)},o.prototype._getContainerSize=function(){return this._mode()._getContainerSize()},o.prototype.needsResizeLayout=function(
){return this._mode().needsResizeLayout()},o.prototype.appended=function(n){var t=this.addItems(n),i;t.length&&(i=this._filterRevealAdded(t),this.filteredItems=this.filteredItems.concat(i))},o.prototype.prepended=function(n){var t=this._itemize(n),i;t.length&&(this._resetLayout(),this._manageStamps(),i=this._filterRevealAdded(t),this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=t.concat(this.items))},o.prototype._filterRevealAdded=function(n){var t=this._filter(n);return this.hide(t.needHide),this.reveal(t.matches),this.layoutItems(t.matches,!0),t.matches},o.prototype.insert=function(n){var i=this.addItems(n),t,u,r,f;if(i.length){for(r=i.length,t=0;t<r;t++)u=i[t],this.element.appendChild(u.element);for(f=this._filter(i).matches,t=0;t<r;t++)i[t].isLayoutInstant=!0;for(this.arrange(),t=0;t<r;t++)delete i[t].isLayoutInstant;this.reveal(f)}},c=o.prototype.remove,o.prototype.remove=function(n){var t,r,i,f;if(n=u.makeArray(n),t=this.getItems(n),c.call(this,n),r=t&&t.length,
r)for(i=0;i<r;i++)f=t[i],u.removeFrom(this.filteredItems,f)},o.prototype.shuffle=function(){for(var i,n=0,t=this.items.length;n<t;n++)i=this.items[n],i.sortData.random=Math.random();this.options.sortBy="random";this._sort();this._layout()},o.prototype._noTransition=function(n){var i=this.options.transitionDuration,t;return this.options.transitionDuration=0,t=n.call(this),this.options.transitionDuration=i,t},o.prototype.getFilteredItemElements=function(){for(var t=[],n=0,i=this.filteredItems.length;n<i;n++)t.push(this.filteredItems[n].element);return t},o});
/*!
 * Packery layout mode PACKAGED v1.1.3
 * sub-classes Packery
 * http://packery.metafizzy.co
 */
/*!
 * classie v1.0.1
 * class helper functions
 * from bonzo https://github.com/ded/bonzo
 * MIT license
 * 
 * classie.has( elem, 'my-class' ) -> true/false
 * classie.add( elem, 'my-new-class' )
 * classie.remove( elem, 'my-unwanted-class' )
 * classie.toggle( elem, 'my-class' )
 */
(function(n){function f(n){return new RegExp("(^|\\s+)"+n+"(\\s+|$)")}function e(n,u){var f=t(n,u)?r:i;f(n,u)}var t,i,r,u;"classList"in document.documentElement?(t=function(n,t){return n.classList.contains(t)},i=function(n,t){n.classList.add(t)},r=function(n,t){n.classList.remove(t)}):(t=function(n,t){return f(t).test(n.className)},i=function(n,i){t(n,i)||(n.className=n.className+" "+i)},r=function(n,t){n.className=n.className.replace(f(t)," ")});u={hasClass:t,addClass:i,removeClass:r,toggleClass:e,has:t,add:i,remove:r,toggle:e};typeof define=="function"&&define.amd?define("classie/classie",u):typeof exports=="object"?module.exports=u:n.classie=u})(window),function(n,t){typeof define=="function"&&define.amd?define("packery/js/rect",t):typeof exports=="object"?module.exports=t():(n.Packery=n.Packery||{},n.Packery.Rect=t())}(window,function(){function n(t){for(var i in n.defaults)this[i]=n.defaults[i];for(i in t)this[i]=t[i]}var t=window.Packery=function(){};return t.Rect=n,n.defaults={x:0,y:0,width:0,height:0},
n.prototype.contains=function(n){var t=n.width||0,i=n.height||0;return this.x<=n.x&&this.y<=n.y&&this.x+this.width>=n.x+t&&this.y+this.height>=n.y+i},n.prototype.overlaps=function(n){var t=this.x+this.width,i=this.y+this.height,r=n.x+n.width,u=n.y+n.height;return this.x<r&&t>n.x&&this.y<u&&i>n.y},n.prototype.getMaximalFreeRects=function(t){if(!this.overlaps(t))return!1;var r=[],i,e=this.x+this.width,o=this.y+this.height,u=t.x+t.width,f=t.y+t.height;return this.y<t.y&&(i=new n({x:this.x,y:this.y,width:this.width,height:t.y-this.y}),r.push(i)),e>u&&(i=new n({x:u,y:this.y,width:e-u,height:this.height}),r.push(i)),o>f&&(i=new n({x:this.x,y:f,width:this.width,height:o-f}),r.push(i)),this.x<t.x&&(i=new n({x:this.x,y:this.y,width:t.x-this.x,height:this.height}),r.push(i)),r},n.prototype.canFit=function(n){return this.width>=n.width&&this.height>=n.height},n}),function(n,t){if(typeof define=="function"&&define.amd)define("packery/js/packer",["./rect"],t);else if(typeof exports=="object")module.exports=t(require("./rect"))
else{var i=n.Packery=n.Packery||{};i.Packer=t(i.Rect)}}(window,function(n){function t(n,t,i){this.width=n||0;this.height=t||0;this.sortDirection=i||"downwardLeftToRight";this.reset()}t.prototype.reset=function(){this.spaces=[];this.newSpaces=[];var r=new n({x:0,y:0,width:this.width,height:this.height});this.spaces.push(r);t.sortLeftToRightDownward.ColumnCounter=0;t.sortLeftToRightDownward.firstColumnDone=!1;t.sortLeftToRightDownward.ColumnsWidths=[0];this.sorter=i[this.sortDirection]||i.downwardLeftToRight};t.prototype.pack=function(n){for(var i,t=0,r=this.spaces.length;t<r;t++)if(i=this.spaces[t],i.canFit(n)){this.placeInSpace(n,i);break}};t.prototype.placeInSpace=function(n,t){n.x=t.x;n.y=t.y;this.placed(n)};t.prototype.placed=function(n){for(var r,u,t=[],i=0,f=this.spaces.length;i<f;i++)r=this.spaces[i],u=r.getMaximalFreeRects(n),u?t.push.apply(t,u):t.push(r);this.spaces=t;this.mergeSortSpaces()};t.prototype.mergeSortSpaces=function(){t.mergeRects(this.spaces);t.sortLeftToRightDownward.ignoreColumnsHeight?
this.spaces=t.sortLeftToRightDownward(this.spaces):this.spaces.sort(this.sorter)};t.prototype.addSpace=function(n){this.spaces.push(n);this.mergeSortSpaces()};t.mergeRects=function(n){for(var u,r,f,i,o,s,h,t=0,e=n.length;t<e;t++)if(u=n[t],u)for(r=n.slice(0),r.splice(t,1),f=0,i=0,o=r.length;i<o;i++)s=r[i],h=t>i?0:1,u.contains(s)&&(n.splice(i+h-f,1),f++);return n};var i={downwardLeftToRight:function(n,t){return n.y-t.y||n.x-t.x},rightwardTopToBottom:function(n,t){return n.x-t.x||n.y-t.y}};return t.sortLeftToRightDownward=function(n){var i,r;if(n.sort(function(n,t){return t.x-n.x||n.y-t.y}),i=[],t.sortLeftToRightDownward.firstColumnDone||(t.sortLeftToRightDownward.ColumnCounter==t.sortLeftToRightDownward.maxColumns-1?(t.sortLeftToRightDownward.ColumnCounter=0,t.sortLeftToRightDownward.firstColumnDone=!0):(i=n,t.sortLeftToRightDownward.ColumnsWidths.push(i[0].x))),t.sortLeftToRightDownward.firstColumnDone){for(t.sortLeftToRightDownward.ColumnCounter==t.sortLeftToRightDownward.maxColumns&&(t.sortLeftToRightDownward.
ColumnCounter=0),r=0;r<n.length;r++)n[r].x==t.sortLeftToRightDownward.ColumnsWidths[t.sortLeftToRightDownward.ColumnCounter]&&(i.push(n[r]),n.splice(r,1));i.sort(function(n,t){return n.y-t.y});i=i.concat(n)}return t.sortLeftToRightDownward.ColumnCounter++,i},t.sortLeftToRightDownward.ignoreColumnsHeight=!1,t.sortLeftToRightDownward.ColumnCounter=0,t.sortLeftToRightDownward.firstColumnDone=!1,t.sortLeftToRightDownward.maxColumns=4,t.sortLeftToRightDownward.ColumnsWidths=[0],t}),function(n,t){typeof define=="function"&&define.amd?define("packery/js/item",["get-style-property/get-style-property","outlayer/outlayer","./rect"],t):typeof exports=="object"?module.exports=t(require("desandro-get-style-property"),require("outlayer"),require("./rect")):n.Packery.Item=t(n.getStyleProperty,n.Outlayer,n.Packery.Rect)}(window,function(n,t,i){var u=n("transform"),r=function(){t.Item.apply(this,arguments)},f;return r.prototype=new t.Item,f=r.prototype._create,r.prototype._create=function(){f.call(this);this.rect=new i;this.placeRect=
new i},r.prototype.dragStart=function(){this.getPosition();this.removeTransitionStyles();this.isTransitioning&&u&&(this.element.style[u]="none");this.getSize();this.isPlacing=!0;this.needsPositioning=!1;this.positionPlaceRect(this.position.x,this.position.y);this.isTransitioning=!1;this.didDrag=!1},r.prototype.dragMove=function(n,t){this.didDrag=!0;var i=this.layout.size;n-=i.paddingLeft;t-=i.paddingTop;this.positionPlaceRect(n,t)},r.prototype.dragStop=function(){this.getPosition();var n=this.position.x!=this.placeRect.x,t=this.position.y!=this.placeRect.y;this.needsPositioning=n||t;this.didDrag=!1},r.prototype.positionPlaceRect=function(n,t,i){this.placeRect.x=this.getPlaceRectCoord(n,!0);this.placeRect.y=this.getPlaceRectCoord(t,!1,i)},r.prototype.getPlaceRectCoord=function(n,t,i){var o=t?"Width":"Height",s=this.size["outer"+o],r=this.layout[t?"columnWidth":"rowHeight"],u=this.layout.size["inner"+o],f,h,e;return t||(u=Math.max(u,this.layout.maxY),this.layout.rowHeight||(u-=this.layout.gutter)),r?(r+=this.layout.
gutter,u+=t?this.layout.gutter:0,n=Math.round(n/r),h=this.layout.options.isHorizontal?t?"ceil":"floor":t?"floor":"ceil",e=Math[h](u/r),e-=Math.ceil(s/r),f=e):f=u-s,n=i?n:Math.min(n,f),n*=r||1,Math.max(0,n)},r.prototype.copyPlaceRectPosition=function(){this.rect.x=this.placeRect.x;this.rect.y=this.placeRect.y},r.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.layout.packer.addSpace(this.rect);this.emitEvent("remove",[this])},r});
/*!
 * Packery v1.4.1
 * bin-packing layout library
 *
 * Licensed GPLv3 for open source use
 * or Flickity Commercial License for commercial use
 *
 * http://packery.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(n,t){typeof define=="function"&&define.amd?define("packery/js/packery",["classie/classie","get-size/get-size","outlayer/outlayer","./rect","./packer","./item"],t):typeof exports=="object"?module.exports=t(require("desandro-classie"),require("get-size"),require("outlayer"),require("./rect"),require("./packer"),require("./item")):n.Packery=t(n.classie,n.getSize,n.Outlayer,n.Packery.Rect,n.Packery.Packer,n.Packery.Item)})(window,function(n,t,i,r,u,f){function o(n,t){return n.position.y-t.position.y||n.position.x-t.position.x}function s(n,t){return n.position.x-t.position.x||n.position.y-t.position.y}r.prototype.canFit=function(n){return this.width>=n.width-1&&this.height>=n.height-1};var e=i.create("packery");return e.Item=f,e.prototype._create=function(){i.prototype._create.call(this);this.packer=new u;this.stamp(this.options.stamped);var n=this;this.handleDraggabilly={dragStart:function(){n.itemDragStart(this.element)},dragMove:function(){n.itemDragMove(this.element,this.position.x,this.position.y)},
dragEnd:function(){n.itemDragEnd(this.element)}};this.handleUIDraggable={start:function(t){n.itemDragStart(t.currentTarget)},drag:function(t,i){n.itemDragMove(t.currentTarget,i.position.left,i.position.top)},stop:function(t){n.itemDragEnd(t.currentTarget)}}},e.prototype._resetLayout=function(){this.getSize();this._getMeasurements();var n=this.packer;this.options.isHorizontal?(n.width=Number.POSITIVE_INFINITY,n.height=this.size.innerHeight+this.gutter,n.sortDirection="rightwardTopToBottom"):(n.width=this.size.innerWidth+this.gutter,n.height=Number.POSITIVE_INFINITY,n.sortDirection="downwardLeftToRight");u.sortLeftToRightDownward.ignoreColumnsHeight=this.options.ignoreColumnsHeight;u.sortLeftToRightDownward.maxColumns=this.options.columns||1;n.reset();this.maxY=0;this.maxX=0},e.prototype._getMeasurements=function(){this._getMeasurement("columnWidth","width");this._getMeasurement("rowHeight","height");this._getMeasurement("gutter","width")},e.prototype._getItemLayoutPosition=function(n){return this._packItem(n),
n.rect},e.prototype._packItem=function(n){this._setRectSize(n.element,n.rect);this.packer.pack(n.rect);this._setMaxXY(n.rect)},e.prototype._setMaxXY=function(n){this.maxX=Math.max(n.x+n.width,this.maxX);this.maxY=Math.max(n.y+n.height,this.maxY)},e.prototype._setRectSize=function(n,i){var f=t(n),r=f.outerWidth,u=f.outerHeight;(r||u)&&(r=this._applyGridGutter(r,this.columnWidth),u=this._applyGridGutter(u,this.rowHeight));i.width=Math.min(r,this.packer.width);i.height=Math.min(u,this.packer.height)},e.prototype._applyGridGutter=function(n,t){if(!t)return n+this.gutter;t+=this.gutter;var i=n%t,r=i&&i<1?"round":"ceil";return Math[r](n/t)*t},e.prototype._getContainerSize=function(){return this.options.isHorizontal?{width:this.maxX-this.gutter}:{height:this.maxY-this.gutter}},e.prototype._manageStamp=function(n){var u=this.getItem(n),t,i;u&&u.isPlacing?t=u.placeRect:(i=this._getElementOffset(n),t=new r({x:this.options.isOriginLeft?i.left:i.right,y:this.options.isOriginTop?i.top:i.bottom}));this._setRectSize(n,t);this.
packer.placed(t);this._setMaxXY(t)},e.prototype.sortItemsByPosition=function(){var n=this.options.isHorizontal?s:o;this.items.sort(n)},e.prototype.fit=function(n,t,i){var r=this.getItem(n);r&&(this._getMeasurements(),this.stamp(r.element),r.getSize(),r.isPlacing=!0,t=t===undefined?r.rect.x:t,i=i===undefined?r.rect.y:i,r.positionPlaceRect(t,i,!0),this._bindFitEvents(r),r.moveTo(r.placeRect.x,r.placeRect.y),this.layout(),this.unstamp(r.element),this.sortItemsByPosition(),r.isPlacing=!1,r.copyPlaceRectPosition())},e.prototype._bindFitEvents=function(n){function i(){(t++,t==2)&&r.emitEvent("fitComplete",[n])}var r=this,t=0;n.on("layout",function(){return i(),!0});this.on("layoutComplete",function(){return i(),!0})},e.prototype.resize=function(){var n=t(this.element),r=this.size&&n,i=this.options.isHorizontal?"innerHeight":"innerWidth";r&&n[i]==this.size[i]||this.layout()},e.prototype.itemDragStart=function(n){this.stamp(n);var t=this.getItem(n);t&&t.dragStart()},e.prototype.itemDragMove=function(n,t,i){function f(
){r.layout();delete r.dragTimeout}var u=this.getItem(n),r;u&&u.dragMove(t,i);r=this;this.clearDragTimeout();this.dragTimeout=setTimeout(f,40)},e.prototype.clearDragTimeout=function(){this.dragTimeout&&clearTimeout(this.dragTimeout)},e.prototype.itemDragEnd=function(t){var i=this.getItem(t),u,r;if(i&&(u=i.didDrag,i.dragStop()),!i||!u&&!i.needsPositioning){this.unstamp(t);return}if(n.add(i.element,"is-positioning-post-drag"),r=this._getDragEndLayoutComplete(t,i),i.needsPositioning){i.on("layout",r);i.moveTo(i.placeRect.x,i.placeRect.y)}else i&&i.copyPlaceRectPosition();this.clearDragTimeout();this.on("layoutComplete",r);this.layout()},e.prototype._getDragEndLayoutComplete=function(t,i){var u=i&&i.needsPositioning,f=0,e=u?2:1,r=this;return function(){return(f++,f!=e)?!0:(i&&(n.remove(i.element,"is-positioning-post-drag"),i.isPlacing=!1,i.copyPlaceRectPosition()),r.unstamp(t),r.sortItemsByPosition(),u&&r.emitEvent("dragItemPositioned",[i]),!0)}},e.prototype.bindDraggabillyEvents=function(n){n.on("dragStart",this.
handleDraggabilly.dragStart);n.on("dragMove",this.handleDraggabilly.dragMove);n.on("dragEnd",this.handleDraggabilly.dragEnd)},e.prototype.bindUIDraggableEvents=function(n){n.on("dragstart",this.handleUIDraggable.start).on("drag",this.handleUIDraggable.drag).on("dragstop",this.handleUIDraggable.stop)},e.Rect=r,e.Packer=u,e});
/*!
 * Packery layout mode v1.1.3
 * sub-classes Packery
 * http://packery.metafizzy.co
 */
(function(n,t){typeof define=="function"&&define.amd?define(["isotope/js/layout-mode","packery/js/packery","get-size/get-size"],t):typeof exports=="object"?module.exports=t(require("isotope-layout/js/layout-mode"),require("packery"),require("get-size")):t(n.Isotope.LayoutMode,n.Packery,n.getSize)})(window,function(n,t,i){function o(n,t){for(var i in t)n[i]=t[i];return n}var r=n.create("packery"),s=r.prototype._getElementOffset,h=r.prototype._getMeasurement,u,f,e;return o(r.prototype,t.prototype),r.prototype._getElementOffset=s,r.prototype._getMeasurement=h,u=r.prototype._resetLayout,r.prototype._resetLayout=function(){this.packer=this.packer||new t.Packer;u.apply(this,arguments)},f=r.prototype._getItemLayoutPosition,r.prototype._getItemLayoutPosition=function(n){return n.rect=n.rect||new t.Rect,f.call(this,n)},e=r.prototype._manageStamp,r.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;e.apply(this,arguments)}
,r.prototype.needsResizeLayout=function(){var n=i(this.element),r=this.size&&n,t=this.options.isHorizontal?"innerHeight":"innerWidth";return r&&n[t]!=this.size[t]},r});
/*! VelocityJS.org (1.2.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */
/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */
(function(n){function o(n){var i=n.length,r=t.type(n);return r==="function"||t.isWindow(n)?!1:n.nodeType===1&&i?!0:r==="array"||i===0||typeof i=="number"&&i>0&&i-1 in n}var t,i,r;if(!n.jQuery){t=function(n,i){return new t.fn.init(n,i)};t.isWindow=function(n){return n!=null&&n==n.window};t.type=function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?u[s.call(n)]||"object":typeof n};t.isArray=Array.isArray||function(n){return t.type(n)==="array"};t.isPlainObject=function(n){var i;if(!n||t.type(n)!=="object"||n.nodeType||t.isWindow(n))return!1;try{if(n.constructor&&!f.call(n,"constructor")&&!f.call(n.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}for(i in n);return i===undefined||f.call(n,i)};t.each=function(n,t,i){var u,r=0,f=n.length,e=o(n);if(i){if(e){for(;r<f;r++)if(u=t.apply(n[r],i),u===!1)break}else for(r in n)if(u=t.apply(n[r],i),u===!1)break}else if(e){for(;r<f;r++)if(u=t.call(n[r],r,n[r]),u===!1)break}else for(r in n)if(u=t.call(n[r],r,n[r]),u===!1)break;return n};t.data=
function(n,r,u){var e,f;if(u===undefined){if(f=n[t.expando],e=f&&i[f],r===undefined)return e;if(e&&r in e)return e[r]}else if(r!==undefined)return f=n[t.expando]||(n[t.expando]=++t.uuid),i[f]=i[f]||{},i[f][r]=u,u};t.removeData=function(n,r){var u=n[t.expando],f=u&&i[u];f&&t.each(r,function(n,t){delete f[t]})};t.extend=function(){var r,e,i,f,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n!="object"&&t.type(n)!=="function"&&(n={}),u===c&&(n=this,u--);u<c;u++)if((o=arguments[u])!=null)for(f in o)(r=n[f],i=o[f],n!==i)&&(h&&i&&(t.isPlainObject(i)||(e=t.isArray(i)))?(e?(e=!1,s=r&&t.isArray(r)?r:[]):s=r&&t.isPlainObject(r)?r:{},n[f]=t.extend(h,s,i)):i!==undefined&&(n[f]=i));return n};t.queue=function(n,i,r){function f(n,t){var i=t||[];return n!=null&&(o(Object(n))?function(n,t){for(var r=+t.length,i=0,u=n.length;i<r;)n[u++]=t[i++];if(r!==r)while(t[i]!==undefined)n[u++]=t[i++];return n.length=u,n}(i,typeof n=="string"?[n]:n):[].push.call(i,n)),i}if(n){
i=(i||"fx")+"queue";var u=t.data(n,i);return r?(!u||t.isArray(r)?u=t.data(n,i,f(r)):u.push(r),u):u||[]}};t.dequeue=function(n,i){t.each(n.nodeType?[n]:n,function(n,r){i=i||"fx";var f=t.queue(r,i),u=f.shift();u==="inprogress"&&(u=f.shift());u&&(i==="fx"&&f.unshift("inprogress"),u.call(r,function(){t.dequeue(r,i)}))})};t.fn=t.prototype={init:function(n){if(n.nodeType)return this[0]=n,this;throw new Error("Not a DOM node.");},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(n.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(n.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function n(){for(var n=this.offsetParent||document;n&&!1&&n.style.position==="static";)n=n.offsetParent;return n||document}var u=this[0],n=n.apply(u),i=this.offset(),r=/^(?:body|html)$/i.test(n.nodeName)?{top:0,left:0}:t(n).offset();return i.top-=parseFloat(u.style.marginTop)||0,i.left-=parseFloat(u.style.marginLeft)||
0,n.style&&(r.top+=parseFloat(n.style.borderTopWidth)||0,r.left+=parseFloat(n.style.borderLeftWidth)||0),{top:i.top-r.top,left:i.left-r.left}}};i={};t.expando="velocity"+(new Date).getTime();t.uuid=0;var u={},f=u.hasOwnProperty,s=u.toString,e="Boolean Number String Function Array Date RegExp Object Error".split(" ");for(r=0;r<e.length;r++)u["[object "+e[r]+"]"]=e[r].toLowerCase();t.fn.init.prototype=t.fn;n.Velocity={Utilities:t}}})(window),function(n){typeof module=="object"&&typeof module.exports=="object"?module.exports=n():typeof define=="function"&&define.amd?define(n):n()}(function(){return function(n,t,i,r){function tt(n){for(var i=-1,u=n?n.length:0,r=[],t;++i<u;)t=n[i],t&&r.push(t);return r}function p(n){return s.isWrapped(n)?n=[].slice.call(n):s.isNode(n)&&(n=[n]),n}function e(n){var t=o.data(n,"velocity");return t===null?r:t}function it(n){return function(t){return Math.round(t*n)*(1/n)}}function k(n,i,r,u){function a(n,t){return 1-3*t+3*n}function v(n,t){return 3*t-6*n}function y(n){return 3*n}function h(
n,t,i){return((a(t,i)*n+v(t,i))*n+y(t))*n}function p(n,t,i){return 3*a(t,i)*n*n+2*v(t,i)*n+y(t)}function tt(t,i){for(var f,e,u=0;u<b;++u){if(f=p(i,n,r),f===0)return i;e=h(i,n,r)-t;i-=e/f}return i}function it(){for(var t=0;t<o;++t)e[t]=h(t*s,n,r)}function rt(t,i,u){var e,f,o=0;do f=i+(u-i)/2,e=h(f,n,r)-t,e>0?u=f:i=f;while(Math.abs(e)>d&&++o<g);return f}function ut(t){for(var u=0,i=1,c=o-1;i!=c&&e[i]<=t;++i)u+=s;--i;var l=(t-e[i])/(e[i+1]-e[i]),f=u+l*s,h=p(f,n,r);return h>=k?tt(t,f):h==0?f:rt(t,u,u+s)}function ft(){l=!0;(n!=i||r!=u)&&it()}var b=4,k=.001,d=1e-7,g=10,o=11,s=1/(o-1),nt="Float32Array"in t,f,e,l,c,w;if(arguments.length!==4)return!1;for(f=0;f<4;++f)if(typeof arguments[f]!="number"||isNaN(arguments[f])||!isFinite(arguments[f]))return!1;return n=Math.min(n,1),r=Math.min(r,1),n=Math.max(n,0),r=Math.max(r,0),e=nt?new Float32Array(o):new Array(o),l=!1,c=function(t){return(l||ft(),n===i&&r===u)?t:t===0?0:t===1?1:h(ut(t),i,u)},c.getControlPoints=function(){return[{x:n,y:i},{x:r,y:u}]},w="generateBezier("+[n,
i,r,u]+")",c.toString=function(){return w},c}function g(n,t){var i=n;return s.isString(n)?f.Easings[n]||(i=!1):i=s.isArray(n)&&n.length===1?it.apply(null,n):s.isArray(n)&&n.length===2?d.apply(null,n.concat([t])):s.isArray(n)&&n.length===4?k.apply(null,n):!1,i===!1&&(i=f.Easings[f.defaults.easing]?f.defaults.easing:b),i}function v(n){var d,ft,c,b,g,ct,it,h,rt,lt,a,i,p,at,et,k,ot,ut;if(n)for(d=(new Date).getTime(),ft=f.State.calls.length,ft>1e4&&(f.State.calls=tt(f.State.calls)),c=0;c<ft;c++)if(f.State.calls[c]){var w=f.State.calls[c],st=w[0],t=w[2],y=w[3],vt=!!y,ht=null;for(y||(y=f.State.calls[c][3]=d-16),b=Math.min((d-y)/t.duration,1),g=0,ct=st.length;g<ct;g++)if(it=st[g],h=it.element,e(h)){rt=!1;t.display!==r&&t.display!==null&&t.display!=="none"&&(t.display==="flex"&&(lt=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"],o.each(lt,function(n,t){u.setPropertyValue(h,"display",t)})),u.setPropertyValue(h,"display",t.display));t.visibility!==r&&t.visibility!=="hidden"&&u.setPropertyValue(h,"visibility",t.visibility);
for(a in it)if(a!=="element"){if(i=it[a],at=s.isString(i.easing)?f.Easings[i.easing]:i.easing,b===1)p=i.endValue;else if(et=i.endValue-i.startValue,p=i.startValue+et*at(b,t,et),!vt&&p===i.currentValue)continue;i.currentValue=p;a==="tween"?ht=p:(u.Hooks.registered[a]&&(k=u.Hooks.getRoot(a),ot=e(h).rootPropertyValueCache[k],ot&&(i.rootPropertyValue=ot)),ut=u.setPropertyValue(h,a,i.currentValue+(parseFloat(p)===0?"":i.unitType),i.rootPropertyValue,i.scrollData),u.Hooks.registered[a]&&(e(h).rootPropertyValueCache[k]=u.Normalizations.registered[k]?u.Normalizations.registered[k]("extract",null,ut[1]):ut[1]),ut[0]==="transform"&&(rt=!0))}t.mobileHA&&e(h).transformCache.translate3d===r&&(e(h).transformCache.translate3d="(0px, 0px, 0px)",rt=!0);rt&&u.flushTransformCache(h)}t.display!==r&&t.display!=="none"&&(f.State.calls[c][2].display=!1);t.visibility!==r&&t.visibility!=="hidden"&&(f.State.calls[c][2].visibility=!1);t.progress&&t.progress.call(w[1],w[1],b,Math.max(0,y+t.duration-d),y,ht);b===1&&nt(c)}f.State.isTicking&&
l(v)}function nt(n,t){var h,v,i,c,l,b;if(!f.State.calls[n])return!1;var y=f.State.calls[n][0],a=f.State.calls[n][1],s=f.State.calls[n][2],p=f.State.calls[n][4],w=!1;for(h=0,v=y.length;h<v;h++){if(i=y[h].element,t||s.loop||(s.display==="none"&&u.setPropertyValue(i,"display",s.display),s.visibility==="hidden"&&u.setPropertyValue(i,"visibility",s.visibility)),s.loop===!0||o.queue(i)[1]!==r&&/\.velocityQueueEntryFlag/i.test(o.queue(i)[1])||e(i)&&(e(i).isAnimating=!1,e(i).rootPropertyValueCache={},c=!1,o.each(u.Lists.transforms3D,function(n,t){var u=/^scale/.test(t)?1:0,f=e(i).transformCache[t];e(i).transformCache[t]!==r&&new RegExp("^\\("+u+"[^.]").test(f)&&(c=!0,delete e(i).transformCache[t])}),s.mobileHA&&(c=!0,delete e(i).transformCache.translate3d),c&&u.flushTransformCache(i),u.Values.removeClass(i,"velocity-animating")),!t&&s.complete&&!s.loop&&h===v-1)try{s.complete.call(a,a)}catch(k){setTimeout(function(){throw k;},1)}p&&s.loop!==!0&&p(a);e(i)&&s.loop===!0&&!t&&(o.each(e(i).tweensContainer,function(n,t){/^rotate/.
test(n)&&parseFloat(t.endValue)===360&&(t.endValue=0,t.startValue=360);/^backgroundPosition/.test(n)&&parseFloat(t.endValue)===100&&t.unitType==="%"&&(t.endValue=0,t.startValue=100)}),f(i,"reverse",{loop:!0,delay:s.delay}));s.queue!==!1&&o.dequeue(i,s.queue)}for(f.State.calls[n]=!1,l=0,b=f.State.calls.length;l<b;l++)if(f.State.calls[l]!==!1){w=!0;break}w===!1&&(f.State.isTicking=!1,delete f.State.calls,f.State.calls=[])}var h=function(){var n,t;if(i.documentMode)return i.documentMode;for(n=7;n>4;n--)if(t=i.createElement("div"),t.innerHTML="<!--[if IE "+n+"]><span><\/span><![endif]-->",t.getElementsByTagName("span").length)return t=null,n;return r}(),y=function(){var n=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var r=(new Date).getTime(),i;return i=Math.max(0,16-(r-n)),n=r+i,setTimeout(function(){t(r+i)},i)}}(),s={isString:function(n){return typeof n=="string"},isArray:Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"},isFunction:function(
n){return Object.prototype.toString.call(n)==="[object Function]"},isNode:function(n){return n&&n.nodeType},isNodeList:function(n){return typeof n=="object"&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(n))&&n.length!==r&&(n.length===0||typeof n[0]=="object"&&n[0].nodeType>0)},isWrapped:function(n){return n&&(n.jquery||t.Zepto&&t.Zepto.zepto.isZ(n))},isSVG:function(n){return t.SVGElement&&n instanceof t.SVGElement},isEmptyObject:function(n){for(var t in n)return!1;return!0}},o,w=!1,d,u,c,l;if(n.fn&&n.fn.jquery?(o=n,w=!0):o=t.Velocity.Utilities,h<=8&&!w)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");else if(h<=7){jQuery.fn.velocity=jQuery.fn.animate;return}var a=400,b="swing",f={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(
navigator.userAgent),prefixElement:i.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:o,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:a,easing:b,begin:r,complete:r,progress:r,display:r,visibility:r,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(n){o.data(n,"velocity",{isSVG:s.isSVG(n),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};return t.pageYOffset!==r?(f.State.scrollAnchor=t,f.State.scrollPropertyLeft="pageXOffset",f.State.scrollPropertyTop="pageYOffset"):(f.State.scrollAnchor=i.documentElement||i.body.parentNode||i.body,f.State.scrollPropertyLeft="scrollLeft",f.State.scrollPropertyTop="scrollTop"),d=function(){function t(n){return-n.tension*n.x-n.friction*n.v}function n(n,i,r){var u={x:n.x+r.dx*i,v:n.v+r.dv*i,tension:n.tension,friction:n.friction};return{dx:u.v,
dv:t(u)}}function i(i,r){var u={dx:i.v,dv:t(i)},f=n(i,r*.5,u),e=n(i,r*.5,f),o=n(i,r,e),s=1/6*(u.dx+2*(f.dx+e.dx)+o.dx),h=1/6*(u.dv+2*(f.dv+e.dv)+o.dv);return i.x=i.x+s*r,i.v=i.v+h*r,i}return function r(n,t,u){var o={x:-1,v:0,tension:null,friction:null},s=[0],e=0,l=1/1e4,a=16/1e3,h,c,f;for(n=parseFloat(n)||500,t=parseFloat(t)||20,u=u||null,o.tension=n,o.friction=t,h=u!==null,h?(e=r(n,t),c=e/u*a):c=a;;)if(f=i(f||o,c),s.push(1+f.x),e+=16,!(Math.abs(f.x)>l&&Math.abs(f.v)>l))break;return h?function(n){return s[n*(s.length-1)|0]}:e}}(),f.Easings={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},spring:function(n){return 1-Math.cos(n*4.5*Math.PI)*Math.exp(-n*6)}},o.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",
[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(n,t){f.Easings[t[0]]=k.apply(null,t[1])}),u=f.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/ig},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:
["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e,i,r,t,f,o,s,n=0;n<u.Lists.colors.length;n++)e=u.Lists.colors[n]==="color"?"0 0 0 1":"255 255 255 1",u.Hooks.templates[u.Lists.colors[n]]=["Red Green Blue Alpha",e];if(h)for(i in u.Hooks.templates)r=u.Hooks.templates[i],t=r[0].split(" "),f=r[1].match(u.RegEx.valueSplit),t[0]==="Color"&&(t.push(t.shift()),f.push(f.shift()),u.Hooks.templates[i]=[t.join(" "),f.join(" ")]);for(i in u.Hooks.templates){r=u.Hooks.templates[i];t=r[0].split(" ");for(n in t)o=i+t[n],s=n,u.Hooks.registered[o]=[i,s]}},getRoot:function(n){var t=u.Hooks.registered[n];return t?t[0]:n},cleanRootPropertyValue:function(n,t){return u.RegEx.valueUnwrap.
test(t)&&(t=t.match(u.RegEx.valueUnwrap)[1]),u.Values.isCSSNullValue(t)&&(t=u.Hooks.templates[n][1]),t},extractValue:function(n,t){var i=u.Hooks.registered[n],r,f;return i?(r=i[0],f=i[1],t=u.Hooks.cleanRootPropertyValue(r,t),t.toString().match(u.RegEx.valueSplit)[f]):t},injectValue:function(n,t,i){var r=u.Hooks.registered[n],e,o,f;return r?(e=r[0],o=r[1],i=u.Hooks.cleanRootPropertyValue(e,i),f=i.toString().match(u.RegEx.valueSplit),f[o]=t,f.join(" ")):i}},Normalizations:{registered:{clip:function(n,t,i){switch(n){case"name":return"clip";case"extract":var r;return u.RegEx.wrappedValueAlreadyExtracted.test(i)?r=i:(r=i.toString().match(u.RegEx.valueUnwrap),r=r?r[1].replace(/,(\s+)?/g," "):i),r;case"inject":return"rect("+i+")"}},blur:function(n,t,i){var r,u;switch(n){case"name":return f.State.isFirefox?"filter":"-webkit-filter";case"extract":return r=parseFloat(i),r||r===0||(u=i.toString().match(/blur\(([0-9]+[A-z]+)\)/i),r=u?u[1]:0),r;case"inject":return parseFloat(i)?"blur("+i+")":"none"}},opacity:function(n,t,
i){if(h<=8)switch(n){case"name":return"filter";case"extract":var r=i.toString().match(/alpha\(opacity=(.*)\)/i);return r?r[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(i)>=1?"":"alpha(opacity="+parseInt(parseFloat(i)*100,10)+")"}else switch(n){case"name":return"opacity";case"extract":return i;case"inject":return i}}},register:function(){var n;for(h<=9||f.State.isGingerbread||(u.Lists.transformsBase=u.Lists.transformsBase.concat(u.Lists.transforms3D)),n=0;n<u.Lists.transformsBase.length;n++)(function(){var t=u.Lists.transformsBase[n];u.Normalizations.registered[t]=function(n,i,u){switch(n){case"name":return"transform";case"extract":return e(i)===r||e(i).transformCache[t]===r?/^scale/i.test(t)?1:0:e(i).transformCache[t].replace(/[()]/g,"");case"inject":var o=!1;switch(t.substr(0,t.length-1)){case"translate":o=!/(%|px|em|rem|vw|vh|\d)$/i.test(u);break;case"scal":case"scale":f.State.isAndroid&&e(i).transformCache[t]===r&&u<1&&(u=1);o=!/(\d)$/i.test(u);break;case"skew":o=!/(deg|\d)$/i.test(u);break;case"rotate":
o=!/(deg|\d)$/i.test(u)}return o||(e(i).transformCache[t]="("+u+")"),e(i).transformCache[t]}}})();for(n=0;n<u.Lists.colors.length;n++)(function(){var t=u.Lists.colors[n];u.Normalizations.registered[t]=function(n,i,f){var e,s,o;switch(n){case"name":return t;case"extract":return u.RegEx.wrappedValueAlreadyExtracted.test(f)?e=f:(o={black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",red:"rgb(255, 0, 0)",white:"rgb(255, 255, 255)"},/^[A-z]+$/i.test(f)?s=o[f]!==r?o[f]:o.black:u.RegEx.isHex.test(f)?s="rgb("+u.Values.hexToRgb(f).join(" ")+")":/^rgba?\(/i.test(f)||(s=o.black),e=(s||f).toString().match(u.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")),h<=8||e.split(" ").length!==3||(e+=" 1"),e;case"inject":return h<=8?f.split(" ").length===4&&(f=f.split(/\s+/).slice(0,3).join(" ")):f.split(" ").length===3&&(f+=" 1"),(h<=8?"rgb":"rgba")+"("+f.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}})()}},Names:{camelCase:function(n){return n.replace(/-(\w)/g,function(n,t){return t.toUpperCase(
)})},SVGAttribute:function(n){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(h||f.State.isAndroid&&!f.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(n)},prefixCheck:function(n){var r,t,u,i;if(f.State.prefixMatches[n])return[f.State.prefixMatches[n],!0];for(r=["","Webkit","Moz","ms","O"],t=0,u=r.length;t<u;t++)if(i=t===0?n:r[t]+n.replace(/^\w/,function(n){return n.toUpperCase()}),s.isString(f.State.prefixElement.style[i]))return f.State.prefixMatches[n]=i,[i,!0];return[n,!1]}},Values:{hexToRgb:function(n){var t;return n=n.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(n,t,i,r){return t+t+i+i+r+r}),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),t?[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]:[0,0,0]},isCSSNullValue:function(n){return n==0||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(n)},getUnitType:function(n){return/^(rotate|skew)/i.test(n)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.
test(n)?"":"px"},getDisplayType:function(n){var t=n&&n.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(n,t){n.classList?n.classList.add(t):n.className+=(n.className.length?" ":"")+t},removeClass:function(n,t){n.classList?n.classList.remove(t):n.className=n.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(n,i,s,c){function y(n,i){var f=0,l,p,w,s,v;if(h<=8)f=o.css(n,i);else{l=!1;/^(width|height)$/.test(i)&&u.getPropertyValue(n,"display")===0&&(l=!0,u.setPropertyValue(n,"display",u.Values.getDisplayType(n)));function a(){l&&u.setPropertyValue(n,"display","none")}if(!c){if(i==="height"&&u.getPropertyValue(n,"boxSizing").toString(
).toLowerCase()!=="border-box")return p=n.offsetHeight-(parseFloat(u.getPropertyValue(n,"borderTopWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderBottomWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingTop"))||0)-(parseFloat(u.getPropertyValue(n,"paddingBottom"))||0),a(),p;if(i==="width"&&u.getPropertyValue(n,"boxSizing").toString().toLowerCase()!=="border-box")return w=n.offsetWidth-(parseFloat(u.getPropertyValue(n,"borderLeftWidth"))||0)-(parseFloat(u.getPropertyValue(n,"borderRightWidth"))||0)-(parseFloat(u.getPropertyValue(n,"paddingLeft"))||0)-(parseFloat(u.getPropertyValue(n,"paddingRight"))||0),a(),w}s=e(n)===r?t.getComputedStyle(n,null):e(n).computedStyle?e(n).computedStyle:e(n).computedStyle=t.getComputedStyle(n,null);i==="borderColor"&&(i="borderTopColor");f=h===9&&i==="filter"?s.getPropertyValue(i):s[i];(f===""||f===null)&&(f=n.style[i]);a()}return f==="auto"&&/^(top|right|bottom|left)$/i.test(i)&&(v=y(n,"position"),(v==="fixed"||v==="absolute"&&/top|left/i.test(i))&&(f=o(n).position()[i]+
"px")),f}var l,p,a,w,v;if(u.Hooks.registered[i]?(p=i,a=u.Hooks.getRoot(p),s===r&&(s=u.getPropertyValue(n,u.Names.prefixCheck(a)[0])),u.Normalizations.registered[a]&&(s=u.Normalizations.registered[a]("extract",n,s)),l=u.Hooks.extractValue(p,s)):u.Normalizations.registered[i]&&(w=u.Normalizations.registered[i]("name",n),w!=="transform"&&(v=y(n,u.Names.prefixCheck(w)[0]),u.Values.isCSSNullValue(v)&&u.Hooks.templates[i]&&(v=u.Hooks.templates[i][1])),l=u.Normalizations.registered[i]("extract",n,v)),!/^[\d-]/.test(l))if(e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i))if(/^(height|width)$/i.test(i))try{l=n.getBBox()[i]}catch(b){l=0}else l=n.getAttribute(i);else l=y(n,u.Names.prefixCheck(i)[0]);return u.Values.isCSSNullValue(l)&&(l=0),f.debug>=2&&console.log("Get "+i+": "+l),l},setPropertyValue:function(n,i,r,o,s){var c=i,a,l;if(i==="scroll")s.container?s.container["scroll"+s.direction]=r:s.direction==="Left"?t.scrollTo(r,s.alternateValue):t.scrollTo(s.alternateValue,r);else if(u.Normalizations.registered[i]&&u.Normalizations.
registered[i]("name",n)==="transform")u.Normalizations.registered[i]("inject",n,r),c="transform",r=e(n).transformCache[i];else{if(u.Hooks.registered[i]&&(a=i,l=u.Hooks.getRoot(i),o=o||u.getPropertyValue(n,l),r=u.Hooks.injectValue(a,r,o),i=l),u.Normalizations.registered[i]&&(r=u.Normalizations.registered[i]("inject",n,r),i=u.Normalizations.registered[i]("name",n)),c=u.Names.prefixCheck(i)[0],h<=8)try{n.style[c]=r}catch(v){f.debug&&console.log("Browser does not support ["+r+"] for ["+c+"]")}else e(n)&&e(n).isSVG&&u.Names.SVGAttribute(i)?n.setAttribute(i,r):n.style[c]=r;f.debug>=2&&console.log("Set "+i+" ("+c+"): "+r)}return[c,r]},flushTransformCache:function(n){var i="",r,s,c;if((h||f.State.isAndroid&&!f.State.isChrome)&&e(n).isSVG){function t(t){return parseFloat(u.getPropertyValue(n,t))}r={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:t("scale")!==1?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};o.each(e(n).transformCache,function(n){/^translate/i.
test(n)?n="translate":/^scale/i.test(n)?n="scale":/^rotate/i.test(n)&&(n="rotate");r[n]&&(i+=n+"("+r[n].join(" ")+") ",delete r[n])})}else o.each(e(n).transformCache,function(t){if(s=e(n).transformCache[t],t==="transformPerspective")return c=s,!0;h===9&&t==="rotateZ"&&(t="rotate");i+=t+s+" "}),c&&(i="perspective"+c+" "+i);u.setPropertyValue(n,"transform",i)}},u.Hooks.register(),u.Normalizations.register(),f.hook=function(n,t,i){var u=r;return n=p(n),o.each(n,function(n,o){if(e(o)===r&&f.init(o),i===r)u===r&&(u=f.CSS.getPropertyValue(o,t));else{var s=f.CSS.setPropertyValue(o,t,i);s[0]==="transform"&&f.CSS.flushTransformCache(o);u=s}}),u},c=function(){function ft(){return et?b.promise||null:vt}function bt(){function nt(){var st,pt,vt,dt,wt,et,gt,ut,a,ot,ht,lt,ft,at,yt,kt;if(n.begin&&tt===0)try{n.begin.call(y,y)}catch(ii){setTimeout(function(){throw ii;},1)}if(it==="scroll")st=/^x$/i.test(n.axis)?"Left":"Top",pt=parseFloat(n.offset)||0,n.container?s.isWrapped(n.container)||s.isNode(n.container)?(n.container=n.container[
0]||n.container,vt=n.container["scroll"+st],wt=vt+o(c).position()[st.toLowerCase()]+pt):n.container=null:(vt=f.State.scrollAnchor[f.State["scrollProperty"+st]],dt=f.State.scrollAnchor[f.State["scrollProperty"+(st==="Left"?"Top":"Left")]],wt=o(c).offset()[st.toLowerCase()]+pt),p={scroll:{rootPropertyValue:!1,startValue:vt,currentValue:vt,endValue:wt,unitType:"",easing:n.easing,scrollData:{container:n.container,direction:st,alternateValue:dt}},element:c},f.debug&&console.log("tweensContainer (scroll): ",p.scroll,c);else if(it==="reverse")if(e(c).tweensContainer){e(c).opts.display==="none"&&(e(c).opts.display="auto");e(c).opts.visibility==="hidden"&&(e(c).opts.visibility="visible");e(c).opts.loop=!1;e(c).opts.begin=null;e(c).opts.complete=null;h.easing||delete n.easing;h.duration||delete n.duration;n=o.extend({},e(c).opts,n);ut=o.extend(!0,{},e(c).tweensContainer);for(et in ut)et!=="element"&&(gt=ut[et].startValue,ut[et].startValue=ut[et].currentValue=ut[et].endValue,ut[et].endValue=gt,s.isEmptyObject(h)||(ut[et].
easing=n.easing),f.debug&&console.log("reverse tweensContainer ("+et+"): "+JSON.stringify(ut[et]),c));p=ut}else{o.dequeue(c,n.queue);return}else if(it==="start"){e(c).tweensContainer&&e(c).isAnimating===!0&&(ut=e(c).tweensContainer);function ni(t,i){var f=r,o=r,e=r;return s.isArray(t)?(f=t[0],!s.isArray(t[1])&&/^[\d-]/.test(t[1])||s.isFunction(t[1])||u.RegEx.isHex.test(t[1])?e=t[1]:(s.isString(t[1])&&!u.RegEx.isHex.test(t[1])||s.isArray(t[1]))&&(o=i?t[1]:g(t[1],n.duration),t[2]!==r&&(e=t[2]))):f=t,i||(o=o||n.easing),s.isFunction(f)&&(f=f.call(c,tt,d)),s.isFunction(e)&&(e=e.call(c,tt,d)),[f||0,o,e]}o.each(w,function(n,t){var i,f;if(RegExp("^"+u.Lists.colors.join("$|^")+"$").test(n)){var e=ni(t,!0),o=e[0],s=e[1],h=e[2];if(u.RegEx.isHex.test(o)){var c=["Red","Green","Blue"],a=u.Values.hexToRgb(o),l=h?u.Values.hexToRgb(h):r;for(i=0;i<c.length;i++)f=[a[i]],s&&f.push(s),l!==r&&f.push(l[i]),w[n+c[i]]=f;delete w[n]}}});for(a in w){var bt=ni(w[a]),rt=bt[0],ri=bt[1],nt=bt[2];if(a=u.Names.camelCase(a),ot=u.Hooks.getRoot(
a),ht=!1,!e(c).isSVG&&ot!=="tween"&&u.Names.prefixCheck(ot)[1]===!1&&u.Normalizations.registered[ot]===r){f.debug&&console.log("Skipping ["+ot+"] due to a lack of browser support.");continue}(n.display!==r&&n.display!==null&&n.display!=="none"||n.visibility!==r&&n.visibility!=="hidden")&&/opacity|filter/.test(a)&&!nt&&rt!==0&&(nt=0);n._cacheValues&&ut&&ut[a]?(nt===r&&(nt=ut[a].endValue+ut[a].unitType),ht=e(c).rootPropertyValueCache[ot]):u.Hooks.registered[a]?nt===r?(ht=u.getPropertyValue(c,ot),nt=u.getPropertyValue(c,a,ht)):ht=u.Hooks.templates[ot][1]:nt===r&&(nt=u.getPropertyValue(c,a));yt=!1;function ti(n,t){var i,r;return r=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(n){return i=n,""}),i||(i=u.Values.getUnitType(n)),[r,i]}lt=ti(a,nt);nt=lt[0];at=lt[1];lt=ti(a,rt);rt=lt[0].replace(/^([+-\/*])=/,function(n,t){return yt=t,""});ft=lt[1];nt=parseFloat(nt)||0;rt=parseFloat(rt)||0;ft==="%"&&(/^(fontSize|lineHeight)$/.test(a)?(rt=rt/100,ft="em"):/^scale/.test(a)?(rt=rt/100,ft=""):/(Red|Green|Blue)$/i.
test(a)&&(rt=rt/100*255,ft=""));function ui(){var s={myParent:c.parentNode||i.body,position:u.getPropertyValue(c,"position"),fontSize:u.getPropertyValue(c,"fontSize")},a=s.position===l.lastPosition&&s.myParent===l.lastParent,v=s.fontSize===l.lastFontSize,h,r,n;return l.lastParent=s.myParent,l.lastPosition=s.position,l.lastFontSize=s.fontSize,h=100,r={},v&&a?(r.emToPx=l.lastEmToPx,r.percentToPxWidth=l.lastPercentToPxWidth,r.percentToPxHeight=l.lastPercentToPxHeight):(n=e(c).isSVG?i.createElementNS("http://www.w3.org/2000/svg","rect"):i.createElement("div"),f.init(n),s.myParent.appendChild(n),o.each(["overflow","overflowX","overflowY"],function(t,i){f.CSS.setPropertyValue(n,i,"hidden")}),f.CSS.setPropertyValue(n,"position",s.position),f.CSS.setPropertyValue(n,"fontSize",s.fontSize),f.CSS.setPropertyValue(n,"boxSizing","content-box"),o.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(t,i){f.CSS.setPropertyValue(n,i,h+"%")}),f.CSS.setPropertyValue(n,"paddingLeft",h+"em"),r.percentToPxWidth=
l.lastPercentToPxWidth=(parseFloat(u.getPropertyValue(n,"width",null,!0))||1)/h,r.percentToPxHeight=l.lastPercentToPxHeight=(parseFloat(u.getPropertyValue(n,"height",null,!0))||1)/h,r.emToPx=l.lastEmToPx=(parseFloat(u.getPropertyValue(n,"paddingLeft"))||1)/h,s.myParent.removeChild(n)),l.remToPx===null&&(l.remToPx=parseFloat(u.getPropertyValue(i.body,"fontSize"))||16),l.vwToPx===null&&(l.vwToPx=parseFloat(t.innerWidth)/100,l.vhToPx=parseFloat(t.innerHeight)/100),r.remToPx=l.remToPx,r.vwToPx=l.vwToPx,r.vhToPx=l.vhToPx,f.debug>=1&&console.log("Unit ratios: "+JSON.stringify(r),c),r}if(/[\/*]/.test(yt))ft=at;else if(at!==ft&&nt!==0)if(rt===0)ft=at;else{k=k||ui();kt=/margin|padding|left|right|width|text|word|letter/i.test(a)||/X$/.test(a)||a==="x"?"x":"y";switch(at){case"%":nt*=kt==="x"?k.percentToPxWidth:k.percentToPxHeight;break;case"px":break;default:nt*=k[at+"ToPx"]}switch(ft){case"%":nt*=1/(kt==="x"?k.percentToPxWidth:k.percentToPxHeight);break;case"px":break;default:nt*=1/k[ft+"ToPx"]}}switch(yt){case"+":rt=nt+
rt;break;case"-":rt=nt-rt;break;case"*":rt=nt*rt;break;case"/":rt=nt/rt}p[a]={rootPropertyValue:ht,startValue:nt,currentValue:nt,endValue:rt,unitType:ft,easing:ri};f.debug&&console.log("tweensContainer ("+a+"): "+JSON.stringify(p[a]),c)}p.element=c}p.element&&(u.Values.addClass(c,"velocity-animating"),ct.push(p),n.queue===""&&(e(c).tweensContainer=p,e(c).opts=n),e(c).isAnimating=!0,tt===d-1?(f.State.calls.push([ct,y,n,null,b.resolver]),f.State.isTicking===!1&&(f.State.isTicking=!0,v())):tt++)}var c=this,n=o.extend({},f.defaults,h),p={},k;e(c)===r&&f.init(c);parseFloat(n.delay)&&n.queue!==!1&&o.queue(c,n.queue,function(t){f.velocityQueueEntryFlag=!0;e(c).delayTimer={setTimeout:setTimeout(t,parseFloat(n.delay)),next:t}});switch(n.duration.toString().toLowerCase()){case"fast":n.duration=200;break;case"normal":n.duration=a;break;case"slow":n.duration=600;break;default:n.duration=parseFloat(n.duration)||1}f.mock!==!1&&(f.mock===!0?n.duration=n.delay=1:(n.duration*=parseFloat(f.mock)||1,n.delay*=parseFloat(f.mock)||
1));n.easing=g(n.easing,n.duration);n.begin&&!s.isFunction(n.begin)&&(n.begin=null);n.progress&&!s.isFunction(n.progress)&&(n.progress=null);n.complete&&!s.isFunction(n.complete)&&(n.complete=null);n.display!==r&&n.display!==null&&(n.display=n.display.toString().toLowerCase(),n.display==="auto"&&(n.display=f.CSS.Values.getDisplayType(c)));n.visibility!==r&&n.visibility!==null&&(n.visibility=n.visibility.toString().toLowerCase());n.mobileHA=n.mobileHA&&f.State.isMobile&&!f.State.isGingerbread;n.queue===!1?n.delay?setTimeout(nt,n.delay):nt():o.queue(c,n.queue,function(n,t){if(t===!0)return b.promise&&b.resolver(y),!0;f.velocityQueueEntryFlag=!0;nt(n)});(n.queue===""||n.queue==="fx")&&o.queue(c)[0]!=="inprogress"&&o.dequeue(c)}var at=arguments[0]&&(arguments[0].p||o.isPlainObject(arguments[0].properties)&&!arguments[0].properties.names||s.isString(arguments[0].properties)),et,vt,rt,y,w,h,d,tt,yt,k,b,it,st,ht,l,ct,n,lt,ot,ut;if(s.isWrapped(this)?(et=!1,rt=0,y=this,vt=this):(et=!0,rt=1,y=at?arguments[0].elements||
arguments[0].e:arguments[0]),y=p(y),y){if(at?(w=arguments[0].properties||arguments[0].p,h=arguments[0].options||arguments[0].o):(w=arguments[rt],h=arguments[rt+1]),d=y.length,tt=0,!/^(stop|finish)$/i.test(w)&&!o.isPlainObject(h))for(yt=rt+1,h={},k=yt;k<arguments.length;k++)!s.isArray(arguments[k])&&(/^(fast|normal|slow)$/i.test(arguments[k])||/^\d/.test(arguments[k]))?h.duration=arguments[k]:s.isString(arguments[k])||s.isArray(arguments[k])?h.easing=arguments[k]:s.isFunction(arguments[k])&&(h.complete=arguments[k]);b={promise:null,resolver:null,rejecter:null};et&&f.Promise&&(b.promise=new f.Promise(function(n,t){b.resolver=n;b.rejecter=t}));switch(w){case"scroll":it="scroll";break;case"reverse":it="reverse";break;case"finish":case"stop":return o.each(y,function(n,t){e(t)&&e(t).delayTimer&&(clearTimeout(e(t).delayTimer.setTimeout),e(t).delayTimer.next&&e(t).delayTimer.next(),delete e(t).delayTimer)}),st=[],o.each(f.State.calls,function(n,t){t&&o.each(t[1],function(i,u){var f=h===r?"":h;if(f!==!0&&t[2].queue!==
f&&!(h===r&&t[2].queue===!1))return!0;o.each(y,function(i,r){r===u&&((h===!0||s.isString(h))&&(o.each(o.queue(r,s.isString(h)?h:""),function(n,t){s.isFunction(t)&&t(null,!0)}),o.queue(r,s.isString(h)?h:"",[])),w==="stop"?(e(r)&&e(r).tweensContainer&&f!==!1&&o.each(e(r).tweensContainer,function(n,t){t.endValue=t.currentValue}),st.push(n)):w==="finish"&&(t[2].duration=1))})})}),w==="stop"&&(o.each(st,function(n,t){nt(t,!0)}),b.promise&&b.resolver(y)),ft();default:if(o.isPlainObject(w)&&!s.isEmptyObject(w))it="start";else{if(s.isString(w)&&f.Redirects[w]){var n=o.extend({},h),wt=n.duration,pt=n.delay||0;return n.backwards===!0&&(y=o.extend(!0,[],y).reverse()),o.each(y,function(t,i){parseFloat(n.stagger)?n.delay=pt+parseFloat(n.stagger)*t:s.isFunction(n.stagger)&&(n.delay=pt+n.stagger.call(i,t,d));n.drag&&(n.duration=parseFloat(wt)||(/^(callout|transition)/.test(w)?1e3:a),n.duration=Math.max(n.duration*(n.backwards?1-t/d:(t+1)/d),n.duration*.75,200));f.Redirects[w].call(i,i,n||{},t,d,y,b.promise?b:r)}),ft()}return ht=
"Velocity: First argument ("+w+") was not a property map, a known action, or a registered redirect. Aborting.",b.promise?b.rejecter(new Error(ht)):console.log(ht),ft()}}if(l={lastParent:null,lastPosition:null,lastFontSize:null,lastPercentToPxWidth:null,lastPercentToPxHeight:null,lastEmToPx:null,remToPx:null,vwToPx:null,vhToPx:null},ct=[],o.each(y,function(n,t){s.isNode(t)&&bt.call(t)}),n=o.extend({},f.defaults,h),n.loop=parseInt(n.loop),lt=n.loop*2-1,n.loop)for(ot=0;ot<lt;ot++)ut={delay:n.delay,progress:n.progress},ot===lt-1&&(ut.display=n.display,ut.visibility=n.visibility,ut.complete=n.complete),c(y,"reverse",ut);return ft()}},f=o.extend(c,f),f.animate=c,l=t.requestAnimationFrame||y,f.State.isMobile||i.hidden===r||i.addEventListener("visibilitychange",function(){i.hidden?(l=function(n){return setTimeout(function(){n(!0)},16)},v()):l=t.requestAnimationFrame||y}),n.Velocity=f,n!==t&&(n.fn.velocity=c,n.fn.velocity.defaults=f.defaults),o.each(["Down","Up"],function(n,t){f.Redirects["slide"+t]=function(n,i,u,e,s,
h){var c=o.extend({},i),v=c.begin,y=c.complete,a={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},l={};c.display===r&&(c.display=t==="Down"?f.CSS.Values.getDisplayType(n)==="inline"?"inline-block":"block":"none");c.begin=function(){var i,r;v&&v.call(s,s);for(i in a)l[i]=n.style[i],r=f.CSS.getPropertyValue(n,i),a[i]=t==="Down"?[r,0]:[0,r];l.overflow=n.style.overflow;n.style.overflow="hidden"};c.complete=function(){for(var t in l)n.style[t]=l[t];y&&y.call(s,s);h&&h.resolver(s)};f(n,a,c)}}),o.each(["In","Out"],function(n,t){f.Redirects["fade"+t]=function(n,i,u,e,s,h){var c=o.extend({},i),a={opacity:t==="In"?1:0},l=c.complete;c.complete=u!==e-1?c.begin=null:function(){l&&l.call(s,s);h&&h.resolver(s)};c.display===r&&(c.display=t==="In"?"auto":"none");f(this,a,c)}}),f}(window.jQuery||window.Zepto||window,window,document)});
/* VelocityJS.org UI Pack (5.0.4). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License. Portions copyright Daniel Eden, Christian Pucci. */
(function(n){typeof require=="function"&&typeof exports=="object"?module.exports=n():typeof define=="function"&&define.amd?define(["velocity"],n):n()})(function(){return function(n,t,i,r){function c(n,t){var i=[];return!n||!t?!1:(f.each([n,t],function(n,t){var r=[];f.each(t,function(n,t){while(t.toString().length<5)t="0"+t;r.push(t)});i.push(r.join(""))}),parseFloat(i[0])>parseFloat(i[1]))}var u,f,s,h,e,o;if(n.Velocity&&n.Velocity.Utilities)u=n.Velocity,f=u.Utilities;else{t.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting.");return}if(s=u.version,h={major:1,minor:1,patch:0},c(h,s)){e="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";alert(e);throw new Error(e);}u.RegisterEffect=u.RegisterUI=function(n,t){function i(n,t,i,r){var e=0,o;f.each(n.nodeType?[n]:n,function(n,t){r&&(i+=n*r);o=t.parentNode;f.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(n,i){e+=parseFloat(
u.CSS.getPropertyValue(t,i))})});u.animate(o,{height:(t==="In"?"+":"-")+"="+e},{queue:!1,easing:"ease-in-out",duration:i*(t==="In"?.6:1)})}return u.Redirects[n]=function(e,o,s,h,c,l){var b=s===h-1,v,w;for(t.defaultDuration=typeof t.defaultDuration=="function"?t.defaultDuration.call(c,c):parseFloat(t.defaultDuration),v=0;v<t.calls.length;v++){var y=t.calls[v],k=y[0],d=o.duration||t.defaultDuration||1e3,nt=y[1],p=y[2]||{},a={};if(a.duration=d*(nt||1),a.queue=o.queue||"",a.easing=p.easing||"ease",a.delay=parseFloat(p.delay)||0,a._cacheValues=p._cacheValues||!0,v===0&&(a.delay+=parseFloat(o.delay)||0,s===0&&(a.begin=function(){o.begin&&o.begin.call(c,c);var t=n.match(/(In|Out)$/);t&&t[0]==="In"&&k.opacity!==r&&f.each(c.nodeType?[c]:c,function(n,t){u.CSS.setPropertyValue(t,"opacity",0)});o.animateParentHeight&&t&&i(c,t[0],d+a.delay,o.stagger)}),o.display!==null&&(o.display!==r&&o.display!=="none"?a.display=o.display:/In$/.test(n)&&(w=u.CSS.Values.getDisplayType(e),a.display=w==="inline"?"inline-block":w)),o.visibility&&
o.visibility!=="hidden"&&(a.visibility=o.visibility)),v===t.calls.length-1){function g(){(o.display===r||o.display==="none")&&/Out$/.test(n)&&f.each(c.nodeType?[c]:c,function(n,t){u.CSS.setPropertyValue(t,"display","none")});o.complete&&o.complete.call(c,c);l&&l.resolver(c||e)}a.complete=function(){var n,i,f;if(t.reset){for(n in t.reset)i=t.reset[n],u.CSS.Hooks.registered[n]===r&&(typeof i=="string"||typeof i=="number")&&(t.reset[n]=[t.reset[n],t.reset[n]]);f={duration:0,queue:!1};b&&(f.complete=g);u.animate(e,t.reset,f)}else b&&g()};o.visibility==="hidden"&&(a.visibility=o.visibility)}u.animate(e,k,a)}},u};u.RegisterEffect.packagedEffects={"callout.bounce":{defaultDuration:550,calls:[[{translateY:-30},.25],[{translateY:0},.125],[{translateY:-15},.125],[{translateY:0},.25]]},"callout.shake":{defaultDuration:800,calls:[[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:11},.125],[{translateX:-11},.125],[{translateX:0},.125]]},"callout.flash":
{defaultDuration:1100,calls:[[{opacity:[0,"easeInOutQuad",1]},.25],[{opacity:[1,"easeInOutQuad"]},.25],[{opacity:[0,"easeInOutQuad"]},.25],[{opacity:[1,"easeInOutQuad"]},.25]]},"callout.pulse":{defaultDuration:825,calls:[[{scaleX:1.1,scaleY:1.1},.5,{easing:"easeInExpo"}],[{scaleX:1,scaleY:1},.5]]},"callout.swing":{defaultDuration:950,calls:[[{rotateZ:15},.2],[{rotateZ:-10},.2],[{rotateZ:5},.2],[{rotateZ:-5},.2],[{rotateZ:0},.2]]},"callout.tada":{defaultDuration:1e3,calls:[[{scaleX:.9,scaleY:.9,rotateZ:-3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:3},.1],[{scaleX:1.1,scaleY:1.1,rotateZ:-3},.1],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],["reverse",.125],[{scaleX:1,scaleY:1,rotateZ:0},.2]]},"transition.fadeIn":{defaultDuration:500,calls:[[{opacity:[1,0]}]]},"transition.fadeOut":{defaultDuration:500,calls:[[{opacity:[0,1]}]]},"transition.flipXIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateY:[0,-55]}]],reset:{transformPerspective:0}},"transition.flipXOut":{defaultDuration:
700,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateY:55}]],reset:{transformPerspective:0,rotateY:0}},"transition.flipYIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],rotateX:[0,-45]}]],reset:{transformPerspective:0}},"transition.flipYOut":{defaultDuration:800,calls:[[{opacity:[0,1],transformPerspective:[800,800],rotateX:25}]],reset:{transformPerspective:0,rotateX:0}},"transition.flipBounceXIn":{defaultDuration:900,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateY:[-10,90]},.5],[{opacity:.8,rotateY:10},.25],[{opacity:1,rotateY:0},.25]],reset:{transformPerspective:0}},"transition.flipBounceXOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateY:-10},.5],[{opacity:0,rotateY:90},.5]],reset:{transformPerspective:0,rotateY:0}},"transition.flipBounceYIn":{defaultDuration:850,calls:[[{opacity:[.725,0],transformPerspective:[400,400],rotateX:[-10,90]},.5],[{opacity:.8,rotateX:10},.25],[{opacity:1,rotateX:0},.25]],reset:{transformPerspective:
0}},"transition.flipBounceYOut":{defaultDuration:800,calls:[[{opacity:[.9,1],transformPerspective:[400,400],rotateX:-15},.5],[{opacity:0,rotateX:90},.5]],reset:{transformPerspective:0,rotateX:0}},"transition.swoopIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["100%","50%"],transformOriginY:["100%","100%"],scaleX:[1,0],scaleY:[1,0],translateX:[0,-700],translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%"}},"transition.swoopOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformOriginX:["50%","100%"],transformOriginY:["100%","100%"],scaleX:0,scaleY:0,translateX:-700,translateZ:0}]],reset:{transformOriginX:"50%",transformOriginY:"50%",scaleX:1,scaleY:1,translateX:0}},"transition.whirlIn":{defaultDuration:850,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,0],scaleY:[1,0],rotateY:[0,160]},1,{easing:"easeInOutSine"}]]},"transition.whirlOut":{defaultDuration:750,calls:[[{opacity:[0,"easeInOutQuint",1],transformOriginX:["50%","50%"],
transformOriginY:["50%","50%"],scaleX:0,scaleY:0,rotateY:160},1,{easing:"swing"}]],reset:{scaleX:1,scaleY:1,rotateY:0}},"transition.shrinkIn":{defaultDuration:750,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,1.5],scaleY:[1,1.5],translateZ:0}]]},"transition.shrinkOut":{defaultDuration:600,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:1.3,scaleY:1.3,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.expandIn":{defaultDuration:700,calls:[[{opacity:[1,0],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:[1,.625],scaleY:[1,.625],translateZ:0}]]},"transition.expandOut":{defaultDuration:700,calls:[[{opacity:[0,1],transformOriginX:["50%","50%"],transformOriginY:["50%","50%"],scaleX:.5,scaleY:.5,translateZ:0}]],reset:{scaleX:1,scaleY:1}},"transition.bounceIn":{defaultDuration:800,calls:[[{opacity:[1,0],scaleX:[1.05,.3],scaleY:[1.05,.3]},.4],[{scaleX:.9,scaleY:.9,translateZ:0},.2],[{scaleX:1,scaleY:1},
.5]]},"transition.bounceOut":{defaultDuration:800,calls:[[{scaleX:.95,scaleY:.95},.35],[{scaleX:1.1,scaleY:1.1,translateZ:0},.35],[{opacity:[0,1],scaleX:.3,scaleY:.3},.3]],reset:{scaleX:1,scaleY:1}},"transition.bounceUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[-30,1e3]},.6,{easing:"easeOutCirc"}],[{translateY:10},.2],[{translateY:0},.2]]},"transition.bounceUpOut":{defaultDuration:1e3,calls:[[{translateY:20},.2],[{opacity:[0,"easeInCirc",1],translateY:-1e3},.8]],reset:{translateY:0}},"transition.bounceDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateY:[30,-1e3]},.6,{easing:"easeOutCirc"}],[{translateY:-10},.2],[{translateY:0},.2]]},"transition.bounceDownOut":{defaultDuration:1e3,calls:[[{translateY:-20},.2],[{opacity:[0,"easeInCirc",1],translateY:1e3},.8]],reset:{translateY:0}},"transition.bounceLeftIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[30,-1250]},.6,{easing:"easeOutCirc"}],[{translateX:-10},.2],[{translateX:0},.2]]},"transition.bounceLeftOut":{defaultDuration:
750,calls:[[{translateX:30},.2],[{opacity:[0,"easeInCirc",1],translateX:-1250},.8]],reset:{translateX:0}},"transition.bounceRightIn":{defaultDuration:750,calls:[[{opacity:[1,0],translateX:[-30,1250]},.6,{easing:"easeOutCirc"}],[{translateX:10},.2],[{translateX:0},.2]]},"transition.bounceRightOut":{defaultDuration:750,calls:[[{translateX:-30},.2],[{opacity:[0,"easeInCirc",1],translateX:1250},.8]],reset:{translateX:0}},"transition.slideUpIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,20],translateZ:0}]]},"transition.slideUpOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:-20,translateZ:0}]],reset:{translateY:0}},"transition.slideDownIn":{defaultDuration:900,calls:[[{opacity:[1,0],translateY:[0,-20],translateZ:0}]]},"transition.slideDownOut":{defaultDuration:900,calls:[[{opacity:[0,1],translateY:20,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,-20],translateZ:0}]]},"transition.slideLeftOut":{defaultDuration:1050,
calls:[[{opacity:[0,1],translateX:-20,translateZ:0}]],reset:{translateX:0}},"transition.slideRightIn":{defaultDuration:1e3,calls:[[{opacity:[1,0],translateX:[0,20],translateZ:0}]]},"transition.slideRightOut":{defaultDuration:1050,calls:[[{opacity:[0,1],translateX:20,translateZ:0}]],reset:{translateX:0}},"transition.slideUpBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,75],translateZ:0}]]},"transition.slideUpBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:-75,translateZ:0}]],reset:{translateY:0}},"transition.slideDownBigIn":{defaultDuration:850,calls:[[{opacity:[1,0],translateY:[0,-75],translateZ:0}]]},"transition.slideDownBigOut":{defaultDuration:800,calls:[[{opacity:[0,1],translateY:75,translateZ:0}]],reset:{translateY:0}},"transition.slideLeftBigIn":{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,-75],translateZ:0}]]},"transition.slideLeftBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:-75,translateZ:0}]],reset:{translateX:0}},"transition.slideRightBigIn":
{defaultDuration:800,calls:[[{opacity:[1,0],translateX:[0,75],translateZ:0}]]},"transition.slideRightBigOut":{defaultDuration:750,calls:[[{opacity:[0,1],translateX:75,translateZ:0}]],reset:{translateX:0}},"transition.perspectiveUpIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveUpOut":{defaultDuration:850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:["100%","100%"],rotateX:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveDownIn":{defaultDuration:800,calls:[[{opacity:[1,0],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveDownOut":{defaultDuration:
850,calls:[[{opacity:[0,1],transformPerspective:[800,800],transformOriginX:[0,0],transformOriginY:[0,0],rotateX:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateX:0}},"transition.perspectiveLeftIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:[0,-180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveLeftOut":{defaultDuration:950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:[0,0],transformOriginY:[0,0],rotateY:-180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}},"transition.perspectiveRightIn":{defaultDuration:950,calls:[[{opacity:[1,0],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:[0,180]}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%"}},"transition.perspectiveRightOut":{defaultDuration:
950,calls:[[{opacity:[0,1],transformPerspective:[2e3,2e3],transformOriginX:["100%","100%"],transformOriginY:[0,0],rotateY:180}]],reset:{transformPerspective:0,transformOriginX:"50%",transformOriginY:"50%",rotateY:0}}};for(o in u.RegisterEffect.packagedEffects)u.RegisterEffect(o,u.RegisterEffect.packagedEffects[o]);u.RunSequence=function(n){var t=f.extend(!0,[],n);t.length>1&&(f.each(t.reverse(),function(n,i){var r=t[n+1];if(r){var s=i.o||i.options,e=r.o||r.options,h=s&&s.sequenceQueue===!1?"begin":"complete",c=e&&e[h],o={};o[h]=function(){var n=r.e||r.elements,t=n.nodeType?[n]:n;c&&c.call(t,t);u(i)};r.o?r.o=f.extend({},e,o):r.options=f.extend({},e,o)}}),t.reverse());u(t[0])}}(window.jQuery||window.Zepto||window,window,document)}),function(n){var e=document.createElement("input"),o="oninput"in e&&(!("documentMode"in document)||document.documentMode>9),s=function(n){return n.nodeName==="INPUT"&&(n.type==="text"||n.type==="password")||n.nodeName==="TEXTAREA"},t=null,i=null,r=null,h={get:function(){return r.get.call(
this)},set:function(n){i=n;r.set.call(this,n)}},c=function(n){t=n;i=n.value;r=Object.getOwnPropertyDescriptor(n.constructor.prototype,"value");Object.defineProperty(t,"value",h);t.attachEvent("onpropertychange",f)},u=function(){t&&(delete t.value,t.detachEvent("onpropertychange",f),t=null,i=null,r=null)},f=function(r){if(r.propertyName==="value"){var u=r.srcElement.value;u!==i&&(i=u,n(t).trigger("textchange"))}};if(o)n(document).on("input",function(t){n(t.target).trigger("textchange")});else n(document).on("focusin",function(n){s(n.target)&&(u(),c(n.target))}).on("focusout",function(){u()}).on("selectionchange keyup keydown",function(){t&&t.value!==i&&(i=t.value,n(t).trigger("textchange"))})}(jQuery);
/*!
 * imagesLoaded PACKAGED v3.2.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
/*!
 * EventEmitter v4.2.6 - git.io/ee
 * Oliver Caldwell
 * MIT license
 * @preserve
 */
(function(){"use strict";function t(){}function u(n,t){for(var i=n.length;i--;)if(n[i].listener===t)return i;return-1}function i(n){return function(){return this[n].apply(this,arguments)}}var n=t.prototype,r=this,f=r.EventEmitter;n.getListeners=function(n){var t=this._getEvents(),r,i;if(typeof n=="object"){r={};for(i in t)t.hasOwnProperty(i)&&n.test(i)&&(r[i]=t[i])}else r=t[n]||(t[n]=[]);return r};n.flattenListeners=function(n){for(var i=[],t=0;t<n.length;t+=1)i.push(n[t].listener);return i};n.getListenersAsObject=function(n){var t=this.getListeners(n),i;return t instanceof Array&&(i={},i[n]=t),i||t};n.addListener=function(n,t){var i=this.getListenersAsObject(n),f=typeof t=="object";for(var r in i)i.hasOwnProperty(r)&&u(i[r],t)===-1&&i[r].push(f?t:{listener:t,once:!1});return this};n.on=i("addListener");n.addOnceListener=function(n,t){return this.addListener(n,{listener:t,once:!0})};n.once=i("addOnceListener");n.defineEvent=function(n){return this.getListeners(n),this};n.defineEvents=function(n){for(var t=0;t<
n.length;t+=1)this.defineEvent(n[t]);return this};n.removeListener=function(n,t){var i=this.getListenersAsObject(n),r;for(var f in i)i.hasOwnProperty(f)&&(r=u(i[f],t),r!==-1&&i[f].splice(r,1));return this};n.off=i("removeListener");n.addListeners=function(n,t){return this.manipulateListeners(!1,n,t)};n.removeListeners=function(n,t){return this.manipulateListeners(!0,n,t)};n.manipulateListeners=function(n,t,i){var r,u,f=n?this.removeListener:this.addListener,e=n?this.removeListeners:this.addListeners;if(typeof t!="object"||t instanceof RegExp)for(r=i.length;r--;)f.call(this,t,i[r]);else for(r in t)t.hasOwnProperty(r)&&(u=t[r])&&(typeof u=="function"?f.call(this,r,u):e.call(this,r,u));return this};n.removeEvent=function(n){var r=typeof n,t=this._getEvents(),i;if(r==="string")delete t[n];else if(r==="object")for(i in t)t.hasOwnProperty(i)&&n.test(i)&&delete t[i];else delete this._events;return this};n.removeAllListeners=i("removeEvent");n.emitEvent=function(n,t){var r=this.getListenersAsObject(n),i,f,u,e;for(u in
r)if(r.hasOwnProperty(u))for(f=r[u].length;f--;)i=r[u][f],i.once===!0&&this.removeListener(n,i.listener),e=i.listener.apply(this,t||[]),e===this._getOnceReturnValue()&&this.removeListener(n,i.listener);return this};n.trigger=i("emitEvent");n.emit=function(n){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(n,t)};n.setOnceReturnValue=function(n){return this._onceReturnValue=n,this};n._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0};n._getEvents=function(){return this._events||(this._events={})};t.noConflict=function(){return r.EventEmitter=f,t};typeof define=="function"&&define.amd?define("eventEmitter/EventEmitter",[],function(){return t}):typeof module=="object"&&module.exports?module.exports=t:this.EventEmitter=t}).call(this);
/*!
 * eventie v1.0.4
 * event binding helper
 *   eventie.bind( elem, 'click', myFn )
 *   eventie.unbind( elem, 'click', myFn )
 */
(function(n){function f(t){var i=n.event;return i.target=i.target||i.srcElement||t,i}var t=document.documentElement,r=function(){},i,u;t.addEventListener?r=function(n,t,i){n.addEventListener(t,i,!1)}:t.attachEvent&&(r=function(n,t,i){n[t+i]=i.handleEvent?function(){var t=f(n);i.handleEvent.call(i,t)}:function(){var t=f(n);i.call(n,t)};n.attachEvent("on"+t,n[t+i])});i=function(){};t.removeEventListener?i=function(n,t,i){n.removeEventListener(t,i,!1)}:t.detachEvent&&(i=function(n,t,i){n.detachEvent("on"+t,n[t+i]);try{delete n[t+i]}catch(r){n[t+i]=undefined}});u={bind:r,unbind:i};typeof define=="function"&&define.amd?define("eventie/eventie",u):n.eventie=u})(this);
/*!
 * imagesLoaded v3.2.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
(function(n,t){"use strict";typeof define=="function"&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(i,r){return t(n,i,r)}):typeof module=="object"&&module.exports?module.exports=t(n,require("wolfy87-eventemitter"),require("eventie")):n.imagesLoaded=t(n,n.EventEmitter,n.eventie)})(window,function(n,t,i){function s(n,t){for(var i in t)n[i]=t[i];return n}function a(n){return l.call(n)=="[object Array]"}function v(n){var t=[],i;if(a(n))t=n;else if(typeof n.length=="number")for(i=0;i<n.length;i++)t.push(n[i]);else t.push(n);return t}function r(n,t,i){if(!(this instanceof r))return new r(n,t,i);if(typeof n=="string"&&(n=document.querySelectorAll(n)),this.elements=v(n),this.options=s({},this.options),typeof t=="function"?i=t:s(this.options,t),i)this.on("always",i);this.getImages();f&&(this.jqDeferred=new f.Deferred);var u=this;setTimeout(function(){u.check()})}function u(n){this.img=n}function e(n,t){this.url=n;this.element=t;this.img=new Image}var f=n.jQuery,o=n.console,l=Object.prototype.
toString,h,c;return r.prototype=new t,r.prototype.options={},r.prototype.getImages=function(){var n,t;for(this.images=[],n=0;n<this.elements.length;n++)t=this.elements[n],this.addElementImages(t)},r.prototype.addElementImages=function(n){var i,r,t,f,u,e;if(n.nodeName=="IMG"&&this.addImage(n),this.options.background===!0&&this.addElementBackgroundImages(n),i=n.nodeType,i&&h[i]){for(r=n.querySelectorAll("img"),t=0;t<r.length;t++)f=r[t],this.addImage(f);if(typeof this.options.background=="string")for(u=n.querySelectorAll(this.options.background),t=0;t<u.length;t++)e=u[t],this.addElementBackgroundImages(e)}},h={1:!0,9:!0,11:!0},r.prototype.addElementBackgroundImages=function(n){for(var r=c(n),u=/url\(['"]*([^'"\)]+)['"]*\)/gi,t=u.exec(r.backgroundImage),i;t!==null;)i=t&&t[1],i&&this.addBackground(i,n),t=u.exec(r.backgroundImage)},c=n.getComputedStyle||function(n){return n.currentStyle},r.prototype.addImage=function(n){var t=new u(n);this.images.push(t)},r.prototype.addBackground=function(n,t){var i=new e(n,t);this.
images.push(i)},r.prototype.check=function(){function r(n,t,r){setTimeout(function(){i.progress(n,t,r)})}var i=this,n,t;if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length){this.complete();return}for(n=0;n<this.images.length;n++){t=this.images[n];t.once("progress",r);t.check()}},r.prototype.progress=function(n,t,i){this.progressedCount++;this.hasAnyBroken=this.hasAnyBroken||!n.isLoaded;this.emit("progress",this,n,t);this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,n);this.progressedCount==this.images.length&&this.complete();this.options.debug&&o&&o.log("progress: "+i,n,t)},r.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done",n;this.isComplete=!0;this.emit(t,this);this.emit("always",this);this.jqDeferred&&(n=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[n](this))},u.prototype=new t,u.prototype.check=function(){var n=this.getIsImageComplete();if(n){this.confirm(this.img.naturalWidth!==0,"naturalWidth");return}this.proxyImage=new Image;i.bind(this.proxyImage,
"load",this);i.bind(this.proxyImage,"error",this);i.bind(this.img,"load",this);i.bind(this.img,"error",this);this.proxyImage.src=this.img.src},u.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth!==undefined},u.prototype.confirm=function(n,t){this.isLoaded=n;this.emit("progress",this,this.img,t)},u.prototype.handleEvent=function(n){var t="on"+n.type;this[t]&&this[t](n)},u.prototype.onload=function(){this.confirm(!0,"onload");this.unbindEvents()},u.prototype.onerror=function(){this.confirm(!1,"onerror");this.unbindEvents()},u.prototype.unbindEvents=function(){i.unbind(this.proxyImage,"load",this);i.unbind(this.proxyImage,"error",this);i.unbind(this.img,"load",this);i.unbind(this.img,"error",this)},e.prototype=new u,e.prototype.check=function(){i.bind(this.img,"load",this);i.bind(this.img,"error",this);this.img.src=this.url;var n=this.getIsImageComplete();n&&(this.confirm(this.img.naturalWidth!==0,"naturalWidth"),this.unbindEvents())},e.prototype.unbindEvents=function(){i.unbind(
this.img,"load",this);i.unbind(this.img,"error",this)},e.prototype.confirm=function(n,t){this.isLoaded=n;this.emit("progress",this,this.element,t)},r.makeJQueryPlugin=function(t){(t=t||n.jQuery,t)&&(f=t,f.fn.imagesLoaded=function(n,t){var i=new r(this,n,t);return i.jqDeferred.promise(f(this))})},r.makeJQueryPlugin(),r}),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n($,window,document,undefined)):typeof exports=="object"?n(require("jquery"),window,document,undefined):n(window.jQuery,window,document,undefined)}(function(n,t,i,r){function o(){var t=n('<div class="scrollbar-width-tester" style="width:50px;height:50px;overflow-y:scroll;top:-200px;left:-200px;"><div style="height:100px;"><\/div>'),i=0,r=0;return n("body").append(t),i=n(t).innerWidth(),r=n("div",t).innerWidth(),t.remove(),i-r}function u(t,i){this.el=t;this.$el=n(t);this.$track;this.$scrollbar;this.dragOffset;this.flashTimeout;this.$contentEl=this.$el;this.$scrollContentEl=this.$el;this.scrollDirection="vert";this.
scrollOffsetAttr="scrollTop";this.sizeAttr="height";this.scrollSizeAttr="scrollHeight";this.offsetAttr="top";this.options=n.extend({},u.DEFAULTS,i);this.init()}var f=o(),e;u.DEFAULTS={wrapContent:!0,autoHide:!0};u.prototype.init=function(){if(f===0){this.$el.css("overflow","auto");return}if((this.$el.data("simplebar-direction")==="horizontal"||this.$el.hasClass("simplebar horizontal"))&&(this.scrollDirection="horiz",this.scrollOffsetAttr="scrollLeft",this.sizeAttr="width",this.scrollSizeAttr="scrollWidth",this.offsetAttr="left"),this.options.wrapContent&&this.$el.wrapInner('<div class="simplebar-scroll-content"><div class="simplebar-content"><\/div><\/div>'),this.$contentEl=this.$el.find(".simplebar-content"),this.$el.prepend('<div class="simplebar-track"><div class="simplebar-scrollbar"><\/div><\/div>'),this.$track=this.$el.find(".simplebar-track"),this.$scrollbar=this.$el.find(".simplebar-scrollbar"),this.$scrollContentEl=this.$el.find(".simplebar-scroll-content"),this.resizeScrollContent(),this.options.autoHide)
this.$el.on("mouseenter",n.proxy(this.flashScrollbar,this));this.$scrollbar.on("mousedown",n.proxy(this.startDrag,this));this.$scrollContentEl.on("scroll",n.proxy(this.startScroll,this));this.resizeScrollbar();this.options.autoHide||this.showScrollbar()};u.prototype.startDrag=function(t){t.preventDefault();var r=t.pageY;this.scrollDirection==="horiz"&&(r=t.pageX);this.dragOffset=r-this.$scrollbar.offset()[this.offsetAttr];n(i).on("mousemove",n.proxy(this.drag,this));n(i).on("mouseup",n.proxy(this.endDrag,this))};u.prototype.drag=function(n){n.preventDefault();var t=n.pageY,i=null,r=null,u=null;this.scrollDirection==="horiz"&&(t=n.pageX);i=t-this.$track.offset()[this.offsetAttr]-this.dragOffset;r=i/this.$track[this.sizeAttr]();u=r*this.$contentEl[0][this.scrollSizeAttr];this.$scrollContentEl[this.scrollOffsetAttr](u)};u.prototype.endDrag=function(){n(i).off("mousemove",this.drag);n(i).off("mouseup",this.endDrag)};u.prototype.resizeScrollbar=function(){if(f!==0){var t=this.$contentEl[0][this.scrollSizeAttr],e=this.
$scrollContentEl[this.scrollOffsetAttr](),n=this.$track[this.sizeAttr](),i=n/t,r=Math.round(i*e)+2,u=Math.floor(i*(n-2))-2;n<t?(this.scrollDirection==="vert"?this.$scrollbar.css({top:r,height:u}):this.$scrollbar.css({left:r,width:u}),this.$track.show()):this.$track.hide()}};u.prototype.startScroll=function(n){this.$el.trigger(n);this.flashScrollbar()};u.prototype.flashScrollbar=function(){this.resizeScrollbar();this.showScrollbar()};u.prototype.showScrollbar=function(){(this.$scrollbar.addClass("visible"),this.options.autoHide)&&(typeof this.flashTimeout=="number"&&t.clearTimeout(this.flashTimeout),this.flashTimeout=t.setTimeout(n.proxy(this.hideScrollbar,this),1e3))};u.prototype.hideScrollbar=function(){this.$scrollbar.removeClass("visible");typeof this.flashTimeout=="number"&&t.clearTimeout(this.flashTimeout)};u.prototype.resizeScrollContent=function(){var n=/firefox/i.test(navigator.userAgent);n&&(this.scrollDirection==="vert"?(this.$scrollContentEl.width(this.$el.width()+f),this.$scrollContentEl.height(this.
$el.height())):(this.$scrollContentEl.width(this.$el.width()),this.$scrollContentEl.height(this.$el.height()+f)))};u.prototype.recalculate=function(){this.resizeScrollContent();this.resizeScrollbar()};u.prototype.getScrollElement=function(){return this.$scrollContentEl};u.prototype.getContentElement=function(){return this.$contentEl};n(t).on("load",function(){n("[data-simplebar-direction]").each(function(){n(this).simplebar()})});e=n.fn.simplebar;n.fn.simplebar=function(t){var f=arguments,i;return typeof t=="undefined"||typeof t=="object"?this.each(function(){n.data(this,"simplebar")||n.data(this,"simplebar",new u(this,t))}):typeof t=="string"?(this.each(function(){var r=n.data(this,"simplebar");r instanceof u&&typeof r[t]=="function"&&(i=r[t].apply(r,Array.prototype.slice.call(f,1)));t==="destroy"&&n.data(this,"simplebar",null)}),i!==r?i:this):void 0};n.fn.simplebar.Constructor=u;n.fn.simplebar.noConflict=function(){return n.fn.simplebar=e,this}}),function(n){function i(){var n=document.createElement("p"),t=
!1;if(n.addEventListener)n.addEventListener("DOMAttrModified",function(){t=!0},!1);else if(n.attachEvent)n.attachEvent("onDOMAttrModified",function(){t=!0});else return!1;return n.setAttribute("id","target"),t}function r(t,i){var r,u;t&&(r=this.data("attr-old-value"),i.attributeName.indexOf("style")>=0?(r.style||(r.style={}),u=i.attributeName.split("."),i.attributeName=u[0],i.oldValue=r.style[u[1]],i.newValue=u[1]+":"+this.prop("style")[n.camelCase(u[1])],r.style[u[1]]=i.newValue):(i.oldValue=r[i.attributeName],i.newValue=this.attr(i.attributeName),r[i.attributeName]=i.newValue),this.data("attr-old-value",r))}var t=window.MutationObserver||window.WebKitMutationObserver;n.fn.attrchange=function(u,f){var e,s,o;return typeof u=="object"?(e={trackValues:!1,callback:n.noop},typeof u=="function"?e.callback=u:n.extend(e,u),e.trackValues&&this.each(function(t,i){for(var u={},r,t=0,f=i.attributes,e=f.length;t<e;t++)r=f.item(t),u[r.nodeName]=r.value;n(this).data("attr-old-value",u)}),t)?(s={subtree:!1,attributes:!0,attributeOldValue:
e.trackValues},o=new t(function(t){t.forEach(function(t){var i=t.target;e.trackValues&&(t.newValue=n(i).attr(t.attributeName));n(i).data("attrchange-status")==="connected"&&e.callback.call(i,t)})}),this.data("attrchange-method","Mutation Observer").data("attrchange-status","connected").data("attrchange-obs",o).each(function(){o.observe(this,s)})):i()?this.data("attrchange-method","DOMAttrModified").data("attrchange-status","connected").on("DOMAttrModified",function(t){t.originalEvent&&(t=t.originalEvent);t.attributeName=t.attrName;t.oldValue=t.prevValue;n(this).data("attrchange-status")==="connected"&&e.callback.call(this,t)}):"onpropertychange"in document.body?this.data("attrchange-method","propertychange").data("attrchange-status","connected").on("propertychange",function(t){t.attributeName=window.event.propertyName;r.call(n(this),e.trackValues,t);n(this).data("attrchange-status")==="connected"&&e.callback.call(this,t)}):this:typeof u=="string"&&n.fn.attrchange.hasOwnProperty("extensions")&&n.fn.attrchange.
extensions.hasOwnProperty(u)?n.fn.attrchange.extensions[u].call(this,f):void 0}}(jQuery);
/*! jquery-qrcode v0.14.0 - https://larsjung.de/jquery-qrcode/ */
(function(n){"use strict";function e(t,i,r,u){function h(n,t){return(n-=u,t-=u,n<0||n>=o||t<0||t>=o)?!1:e.isDark(n,t)}function c(n,t,i,r){var e=f.isDark,u=1/s;f.isDark=function(f,o){var s=o*u,h=f*u,c=s+u,l=h+u;return e(f,o)&&(n>c||s>i||t>l||h>r)}}var f={},e=n(r,i),o,s;return e.addData(t),e.make(),u=u||0,o=e.getModuleCount(),s=e.getModuleCount()+2*u,f.text=t,f.level=i,f.version=r,f.moduleCount=s,f.isDark=h,f.addBlank=c,f}function r(n,t,i,r,u){i=Math.max(1,i||1);r=Math.min(40,r||40);for(var f=i;f<=r;f+=1)try{return e(n,t,f,u)}catch(o){}return undefined}function o(n,i,r){var u=r.size,s="bold "+r.mSize*u+"px "+r.fontname,h=t("<canvas/>")[0].getContext("2d");h.font=s;var v=h.measureText(r.label).width,c=r.mSize,l=v/u,o=(1-l)*r.mPosX,e=(1-c)*r.mPosY,y=o+l,a=e+c,f=.01;r.mode===1?n.addBlank(0,e-f,u,a+f):n.addBlank(o-f,e-f,y+f,a+f);i.fillStyle=r.fontcolor;i.font=s;i.fillText(r.label,o*u,e*u+.75*r.mSize*u)}function s(n,t,i){var u=i.size,c=i.image.naturalWidth||1,l=i.image.naturalHeight||1,f=i.mSize,o=f*c/l,s=(1-o)*i.mPosX,
e=(1-f)*i.mPosY,a=s+o,h=e+f,r=.01;i.mode===3?n.addBlank(0,e-r,u,h+r):n.addBlank(s-r,e-r,a+r,h+r);t.drawImage(i.image,s*u,e*u,o*u,f*u)}function h(n,i,r){t(r.background).is("img")?i.drawImage(r.background,0,0,r.size,r.size):r.background&&(i.fillStyle=r.background,i.fillRect(r.left,r.top,r.size,r.size));var u=r.mode;u===1||u===2?o(n,i,r):(u===3||u===4)&&s(n,i,r)}function c(n,t,i,r,u,f,e,o){n.isDark(e,o)&&t.rect(r,u,f,f)}function l(n,t,i,r,u,f,e,o,s,h){e?n.moveTo(t+f,i):n.moveTo(t,i);o?(n.lineTo(r-f,i),n.arcTo(r,i,r,u,f)):n.lineTo(r,i);s?(n.lineTo(r,u-f),n.arcTo(r,u,t,u,f)):n.lineTo(r,u);h?(n.lineTo(t+f,u),n.arcTo(t,u,t,i,f)):n.lineTo(t,u);e?(n.lineTo(t,i+f),n.arcTo(t,i,r,i,f)):n.lineTo(t,i)}function a(n,t,i,r,u,f,e,o,s,h){e&&(n.moveTo(t+f,i),n.lineTo(t,i),n.lineTo(t,i+f),n.arcTo(t,i,t+f,i,f));o&&(n.moveTo(r-f,i),n.lineTo(r,i),n.lineTo(r,i+f),n.arcTo(r,i,r-f,i,f));s&&(n.moveTo(r-f,u),n.lineTo(r,u),n.lineTo(r,u-f),n.arcTo(r,u,r-f,u,f));h&&(n.moveTo(t+f,u),n.lineTo(t,u),n.lineTo(t,u-f),n.arcTo(t,u,t+f,u,f))}function v(
n,t,i,r,u,f,e,o){var s=n.isDark,d=r+f,g=u+f,nt=i.radius*f,p=e-1,w=e+1,b=o-1,k=o+1,tt=s(e,o),it=s(p,b),h=s(p,o),rt=s(p,k),c=s(e,k),ut=s(w,k),v=s(w,o),ft=s(w,b),y=s(e,b);tt?l(t,r,u,d,g,nt,!h&&!y,!h&&!c,!v&&!c,!v&&!y):a(t,r,u,d,g,nt,h&&y&&it,h&&c&&rt,v&&c&&ut,v&&y&&ft)}function y(n,i,r){var e=n.moduleCount,o=r.size/e,s=c,u,f,h;for(r.radius>0&&r.radius<=.5&&(s=v),i.beginPath(),u=0;u<e;u+=1)for(f=0;f<e;f+=1){var l=r.left+f*o,a=r.top+u*o,y=o;s(n,i,r,l,a,y,u,f)}t(r.fill).is("img")?(i.strokeStyle="rgba(0,0,0,0.5)",i.lineWidth=2,i.stroke(),h=i.globalCompositeOperation,i.globalCompositeOperation="destination-out",i.fill(),i.globalCompositeOperation=h,i.clip(),i.drawImage(r.fill,0,0,r.size,r.size),i.restore()):(i.fillStyle=r.fill,i.fill())}function u(n,i){var u=r(i.text,i.ecLevel,i.minVersion,i.maxVersion,i.quiet),f,e;return u?(f=t(n).data("qrcode",u),e=f[0].getContext("2d"),h(u,e,i),y(u,e,i),f):null}function f(n){var i=t("<canvas/>").attr("width",n.size).attr("height",n.size);return u(i,n)}function p(n){return t("<img/>").
attr("src",f(n)[0].toDataURL("image/png"))}function w(n){var e=r(n.text,n.ecLevel,n.minVersion,n.maxVersion,n.quiet);if(!e)return null;var o=n.size,c=n.background,l=Math.floor,s=e.moduleCount,i=l(o/s),a=l(.5*(o-i*s)),u,f,v={position:"relative",left:0,top:0,padding:0,margin:0,width:o,height:o},y={position:"absolute",padding:0,margin:0,width:i,height:i,"background-color":n.fill},h=t("<div/>").data("qrcode",e).css(v);for(c&&h.css("background-color",c),u=0;u<s;u+=1)for(f=0;f<s;f+=1)e.isDark(u,f)&&t("<div/>").css(y).css({left:a+f*i,top:a+u*i}).appendTo(h);return h}function b(n){return i&&n.render==="canvas"?f(n):i&&n.render==="image"?p(n):w(n)}var t=window.jQuery,i=function(){var n=document.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))}(),k={render:"canvas",minVersion:1,maxVersion:40,ecLevel:"L",left:0,top:0,size:200,fill:"#000",background:null,text:"no text",radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:"no label",fontname:"sans",fontcolor:"#000",image:null};t.fn.qrcode=function(n)
{var i=t.extend({},k,n);return this.each(function(n,r){r.nodeName.toLowerCase()==="canvas"?u(r,i):t(r).append(b(i))})}})(function(){var n=function(){function f(n,t){if(typeof n.length=="undefined")throw new Error(n.length+"/"+t);var u=function(){for(var i=0,u,r;i<n.length&&n[i]==0;)i+=1;for(u=new Array(n.length-i+t),r=0;r<n.length-i;r+=1)u[r]=n[r+i];return u}(),r={};return r.getAt=function(n){return u[n]},r.getLength=function(){return u.length},r.multiply=function(n){for(var t,e=new Array(r.getLength()+n.getLength()-1),u=0;u<r.getLength();u+=1)for(t=0;t<n.getLength();t+=1)e[u+t]^=i.gexp(i.glog(r.getAt(u))+i.glog(n.getAt(t)));return f(e,0)},r.mod=function(n){var e,u,t;if(r.getLength()-n.getLength()<0)return r;for(e=i.glog(r.getAt(0))-i.glog(n.getAt(0)),u=new Array(r.getLength()),t=0;t<r.getLength();t+=1)u[t]=r.getAt(t);for(t=0;t<n.getLength();t+=1)u[t]^=i.gexp(i.glog(n.getAt(t))+e);return f(u,0).mod(n)},r}var e=function(n,t){var k=236,d=17,l=n,p=u[t],i=null,e=0,a=null,w=[],o={},b=function(n,t){e=l*4+17;i=function(
n){for(var i,r=new Array(n),t=0;t<n;t+=1)for(r[t]=new Array(n),i=0;i<n;i+=1)r[t][i]=null;return r}(e);v(0,0);v(e-7,0);v(0,e-7);tt();nt();rt(n,t);l>=7&&it(n);a==null&&(a=et(l,p,w));ut(a,t)},v=function(n,t){for(var u,r=-1;r<=7;r+=1)if(!(n+r<=-1)&&!(e<=n+r))for(u=-1;u<=7;u+=1)t+u<=-1||e<=t+u||(i[n+r][t+u]=0<=r&&r<=6&&(u==0||u==6)||0<=u&&u<=6&&(r==0||r==6)||2<=r&&r<=4&&2<=u&&u<=4?!0:!1)},g=function(){for(var t,i=0,u=0,n=0;n<8;n+=1)b(!0,n),t=r.getLostPoint(o),(n==0||i>t)&&(i=t,u=n);return u},nt=function(){for(var t,n=8;n<e-8;n+=1)i[n][6]==null&&(i[n][6]=n%2==0);for(t=8;t<e-8;t+=1)i[6][t]==null&&(i[6][t]=t%2==0)},tt=function(){for(var f,o,s,n,t,u=r.getPatternPosition(l),e=0;e<u.length;e+=1)for(f=0;f<u.length;f+=1)if(o=u[e],s=u[f],i[o][s]==null)for(n=-2;n<=2;n+=1)for(t=-2;t<=2;t+=1)i[o+n][s+t]=n==-2||n==2||t==-2||t==2||n==0&&t==0?!0:!1},it=function(n){for(var u,f=r.getBCHTypeNumber(l),t=0;t<18;t+=1)u=!n&&(f>>t&1)==1,i[Math.floor(t/3)][t%3+e-11]=u;for(t=0;t<18;t+=1)u=!n&&(f>>t&1)==1,i[t%3+e-11][Math.floor(t/3)]=u},rt=
function(n,t){for(var f,s=p<<3|t,o=r.getBCHTypeInfo(s),u=0;u<15;u+=1)f=!n&&(o>>u&1)==1,u<6?i[u][8]=f:u<8?i[u+1][8]=f:i[e-15+u][8]=f;for(u=0;u<15;u+=1)f=!n&&(o>>u&1)==1,u<8?i[8][e-u-1]=f:u<9?i[8][15-u]=f:i[8][14-u]=f;i[e-8][8]=!n},ut=function(n,t){for(var o,s,a,h=-1,u=e-1,c=7,l=0,v=r.getMaskFunction(t),f=e-1;f>0;f-=2)for(f==6&&(f-=1);;){for(o=0;o<2;o+=1)i[u][f-o]==null&&(s=!1,l<n.length&&(s=(n[l]>>>c&1)==1),a=v(u,f-o),a&&(s=!s),i[u][f-o]=s,c-=1,c==-1&&(l+=1,c=7));if(u+=h,u<0||e<=u){u-=h;h=-h;break}}},ft=function(n,t){for(var s,v,p,w,c,h,i,b=0,l=0,a=0,e=new Array(t.length),o=new Array(t.length),u=0;u<t.length;u+=1){for(s=t[u].dataCount,v=t[u].totalCount-s,l=Math.max(l,s),a=Math.max(a,v),e[u]=new Array(s),i=0;i<e[u].length;i+=1)e[u][i]=255&n.getBuffer()[i+b];b+=s;var y=r.getErrorCorrectPolynomial(v),d=f(e[u],y.getLength()-1),k=d.mod(y);for(o[u]=new Array(y.getLength()-1),i=0;i<o[u].length;i+=1)p=i+k.getLength()-o[u].length,o[u][i]=p>=0?k.getAt(p):0}for(w=0,i=0;i<t.length;i+=1)w+=t[i].totalCount;for(c=new Array(w),
h=0,i=0;i<l;i+=1)for(u=0;u<t.length;u+=1)i<e[u].length&&(c[h]=e[u][i],h+=1);for(i=0;i<a;i+=1)for(u=0;u<t.length;u+=1)i<o[u].length&&(c[h]=o[u][i],h+=1);return c},et=function(n,t,i){for(var o,e,c=s.getRSBlocks(n,t),u=h(),f=0;f<i.length;f+=1)o=i[f],u.put(o.getMode(),4),u.put(o.getLength(),r.getLengthInBits(o.getMode(),n)),o.write(u);for(e=0,f=0;f<c.length;f+=1)e+=c[f].dataCount;if(u.getLengthInBits()>e*8)throw new Error("code length overflow. ("+u.getLengthInBits()+">"+e*8+")");for(u.getLengthInBits()+4<=e*8&&u.put(0,4);u.getLengthInBits()%8!=0;)u.putBit(!1);for(;;){if(u.getLengthInBits()>=e*8)break;if(u.put(k,8),u.getLengthInBits()>=e*8)break;u.put(d,8)}return ft(u,c)};return o.addData=function(n){var t=c(n);w.push(t);a=null},o.isDark=function(n,t){if(n<0||e<=n||t<0||e<=t)throw new Error(n+","+t);return i[n][t]},o.getModuleCount=function(){return e},o.make=function(){b(!1,g())},o.createTableTag=function(n,t){var i,r,u;for(n=n||2,t=typeof t=="undefined"?n*4:t,i="",i+='<table style="',i+=" border-width: 0px; border-style: none;",
i+=" border-collapse: collapse;",i+=" padding: 0px; margin: "+t+"px;",i+='">',i+="<tbody>",r=0;r<o.getModuleCount();r+=1){for(i+="<tr>",u=0;u<o.getModuleCount();u+=1)i+='<td style="',i+=" border-width: 0px; border-style: none;",i+=" border-collapse: collapse;",i+=" padding: 0px; margin: 0px;",i+=" width: "+n+"px;",i+=" height: "+n+"px;",i+=" background-color: ",i+=o.isDark(r,u)?"#000000":"#ffffff",i+=";",i+='"/>';i+="<\/tr>"}return i+="<\/tbody>",i+"<\/table>"},o.createImgTag=function(n,t){n=n||2;t=typeof t=="undefined"?n*4:t;var r=o.getModuleCount()*n+t*2,i=t,u=r-t;return y(r,r,function(t,r){if(i<=t&&t<u&&i<=r&&r<u){var f=Math.floor((t-i)/n),e=Math.floor((r-i)/n);return o.isDark(e,f)?0:1}return 1})},o};e.stringToBytes=function(n){for(var r,i=[],t=0;t<n.length;t+=1)r=n.charCodeAt(t),i.push(r&255);return i};e.createStringToBytes=function(n,t){var i=function(){for(var f=a(n),i=function(){var n=f.read();if(n==-1)throw new Error;return n},r=0,e={},u;;){if(u=f.read(),u==-1)break;var o=i(),s=i(),h=i(),c=String.fromCharCode(
u<<8|o),l=s<<8|h;e[c]=l;r+=1}if(r!=t)throw new Error(r+" != "+t);return e}(),r="?".charCodeAt(0);return function(n){for(var e,t,u=[],f=0;f<n.length;f+=1)e=n.charCodeAt(f),e<128?u.push(e):(t=i[n.charAt(f)],typeof t=="number"?(t&255)==t?u.push(t):(u.push(t>>>8),u.push(t&255)):u.push(r));return u}};var n={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},u={L:1,M:0,Q:3,H:2},t={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},r=function(){var s=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],
[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],e=1335,o=7973,h=21522,r={},u=function(n){for(var t=0;n!=0;)t+=1,n>>>=1;return t};return r.getBCHTypeInfo=function(n){for(var t=n<<10;u(t)-u(e)>=0;)t^=e<<u(t)-u(e);return(n<<10|t)^h},r.getBCHTypeNumber=function(n){for(var t=n<<12;u(t)-u(o)>=0;)t^=o<<u(t)-u(o);return n<<12|t},r.getPatternPosition=function(n){return s[n-1]},r.getMaskFunction=function(n){switch(n){case t.PATTERN000:return function(n,t){return(n+t)%2==0};case t.PATTERN001:return function(n){return n%2==0};case t.PATTERN010:return function(n,t){return t%3==0};case t.PATTERN011:return function(n,t){return(n+t)%3==0};case t.PATTERN100:return function(n,t){return(Math.floor(n/2)+Math.floor(t/3))%2==0};case t.PATTERN101:return function(n,t){return n*t%2+n*t%3==0};case t.PATTERN110:return function(n,t){return(n*t%2+n*t%3)%2==0};case t.PATTERN111:return function(n,t){return(n*t%3+(n+t)%2)%2==0};default:throw new Error("bad maskPattern:"+n);}},r.getErrorCorrectPolynomial=
function(n){for(var t=f([1],0),r=0;r<n;r+=1)t=t.multiply(f([1,i.gexp(r)],0));return t},r.getLengthInBits=function(t,i){if(1<=i&&i<10)switch(t){case n.MODE_NUMBER:return 10;case n.MODE_ALPHA_NUM:return 9;case n.MODE_8BIT_BYTE:return 8;case n.MODE_KANJI:return 8;default:throw new Error("mode:"+t);}else if(i<27)switch(t){case n.MODE_NUMBER:return 12;case n.MODE_ALPHA_NUM:return 11;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 10;default:throw new Error("mode:"+t);}else if(i<41)switch(t){case n.MODE_NUMBER:return 14;case n.MODE_ALPHA_NUM:return 13;case n.MODE_8BIT_BYTE:return 16;case n.MODE_KANJI:return 12;default:throw new Error("mode:"+t);}else throw new Error("type:"+i);},r.getLostPoint=function(n){for(var s,c,u,f,e,h,t,l,r=n.getModuleCount(),o=0,i=0;i<r;i+=1)for(t=0;t<r;t+=1){for(s=0,c=n.isDark(i,t),u=-1;u<=1;u+=1)if(!(i+u<0)&&!(r<=i+u))for(f=-1;f<=1;f+=1)t+f<0||r<=t+f||(u!=0||f!=0)&&c==n.isDark(i+u,t+f)&&(s+=1);s>5&&(o+=3+s-5)}for(i=0;i<r-1;i+=1)for(t=0;t<r-1;t+=1)e=0,n.isDark(i,t)&&(e+=1),n.isDark(
i+1,t)&&(e+=1),n.isDark(i,t+1)&&(e+=1),n.isDark(i+1,t+1)&&(e+=1),(e==0||e==4)&&(o+=3);for(i=0;i<r;i+=1)for(t=0;t<r-6;t+=1)n.isDark(i,t)&&!n.isDark(i,t+1)&&n.isDark(i,t+2)&&n.isDark(i,t+3)&&n.isDark(i,t+4)&&!n.isDark(i,t+5)&&n.isDark(i,t+6)&&(o+=40);for(t=0;t<r;t+=1)for(i=0;i<r-6;i+=1)n.isDark(i,t)&&!n.isDark(i+1,t)&&n.isDark(i+2,t)&&n.isDark(i+3,t)&&n.isDark(i+4,t)&&!n.isDark(i+5,t)&&n.isDark(i+6,t)&&(o+=40);for(h=0,t=0;t<r;t+=1)for(i=0;i<r;i+=1)n.isDark(i,t)&&(h+=1);return l=Math.abs(100*h/r/r-50)/5,o+l*10},r}(),i=function(){for(var i,t=new Array(256),r=new Array(256),n=0;n<8;n+=1)t[n]=1<<n;for(n=8;n<256;n+=1)t[n]=t[n-4]^t[n-5]^t[n-6]^t[n-8];for(n=0;n<255;n+=1)r[t[n]]=n;return i={},i.glog=function(n){if(n<1)throw new Error("glog("+n+")");return r[n]},i.gexp=function(n){while(n<0)n+=255;while(n>=256)n-=255;return t[n]},i}();var s=function(){var n=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,
108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,
135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,
146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],i=function(n,t){var i={};return i.totalCount=n,i.dataCount=t,i},t={},r=function(t,i){switch(i){case u.L:return n[(t-1)*4+0];case u.M:return n[(t-1)*4+1];case u.Q:return n[(t-1)*4+2];case u.H:return n[(t-1)*4+3];default:return undefined}};return t.getRSBlocks=function(n,t){var f=r(n,t),s,e,u,o;if(typeof f=="undefined")throw new Error("bad rs block @ typeNumber:"+n+"/errorCorrectLevel:"+
t);for(s=f.length/3,e=[],u=0;u<s;u+=1){var h=f[u*3+0],c=f[u*3+1],l=f[u*3+2];for(o=0;o<h;o+=1)e.push(i(c,l))}return e},t}(),h=function(){var t=[],i=0,n={};return n.getBuffer=function(){return t},n.getAt=function(n){var i=Math.floor(n/8);return(t[i]>>>7-n%8&1)==1},n.put=function(t,i){for(var r=0;r<i;r+=1)n.putBit((t>>>i-r-1&1)==1)},n.getLengthInBits=function(){return i},n.putBit=function(n){var r=Math.floor(i/8);t.length<=r&&t.push(0);n&&(t[r]|=128>>>i%8);i+=1},n},c=function(t){var u=n.MODE_8BIT_BYTE,f=t,r=e.stringToBytes(t),i={};return i.getMode=function(){return u},i.getLength=function(){return r.length},i.write=function(n){for(var t=0;t<r.length;t+=1)n.put(r[t],8)},i},o=function(){var t=[],n={};return n.writeByte=function(n){t.push(n&255)},n.writeShort=function(t){n.writeByte(t);n.writeByte(t>>>8)},n.writeBytes=function(t,i,r){i=i||0;r=r||t.length;for(var u=0;u<r;u+=1)n.writeByte(t[u+i])},n.writeString=function(t){for(var i=0;i<t.length;i+=1)n.writeByte(t.charCodeAt(i))},n.toByteArray=function(){return t},n.
toString=function(){var i="",n;for(i+="[",n=0;n<t.length;n+=1)n>0&&(i+=","),i+=t[n];return i+"]"},n},l=function(){var t=0,n=0,r=0,u="",i={},f=function(n){u+=String.fromCharCode(e(n&63))},e=function(n){if(!(n<0)){if(n<26)return 65+n;if(n<52)return n- -71;if(n<62)return n-4;if(n==62)return 43;if(n==63)return 47}throw new Error("n:"+n);};return i.writeByte=function(i){for(t=t<<8|i&255,n+=8,r+=1;n>=6;)f(t>>>n-6),n-=6},i.flush=function(){var e,i;if(n>0&&(f(t<<6-n),t=0,n=0),r%3!=0)for(e=3-r%3,i=0;i<e;i+=1)u+="="},i.toString=function(){return u},i},a=function(n){var u=n,i=0,r=0,t=0,f={},e;return f.read=function(){for(var n,f;t<8;){if(i>=u.length){if(t==0)return-1;throw new Error("unexpected end of file./"+t);}if(n=u.charAt(i),i+=1,n=="=")return t=0,-1;n.match(/^\s$/)||(r=r<<6|e(n.charCodeAt(0)),t+=6)}return f=r>>>t-8&255,t-=8,f},e=function(n){if(65<=n&&n<=90)return n-65;if(97<=n&&n<=122)return n-71;if(48<=n&&n<=57)return n- -4;if(n==43)return 62;if(n==47)return 63;throw new Error("c:"+n);},f},v=function(n,t){var r=n,
f=t,i=new Array(n*t),u={};u.setPixel=function(n,t,u){i[t*r+n]=u};u.write=function(n){var u,i,t;for(n.writeString("GIF87a"),n.writeShort(r),n.writeShort(f),n.writeByte(128),n.writeByte(0),n.writeByte(0),n.writeByte(0),n.writeByte(0),n.writeByte(0),n.writeByte(255),n.writeByte(255),n.writeByte(255),n.writeString(","),n.writeShort(0),n.writeShort(0),n.writeShort(r),n.writeShort(f),n.writeByte(0),u=2,i=s(u),n.writeByte(u),t=0;i.length-t>255;)n.writeByte(255),n.writeBytes(i,t,255),t+=255;n.writeByte(i.length-t);n.writeBytes(i,t,i.length-t);n.writeByte(0);n.writeString(";")};var e=function(n){var u=n,t=0,i=0,r={};return r.write=function(n,r){if(n>>>r!=0)throw new Error("length over");while(t+r>=8)u.writeByte(255&(n<<t|i)),r-=8-t,n>>>=8-t,i=0,t=0;i=n<<t|i;t=t+r},r.flush=function(){t>0&&u.writeByte(i)},r},s=function(n){for(var v,f,s,r,c,l=1<<n,y=(1<<n)+1,u=n+1,t=h(),a=0;a<l;a+=1)t.add(String.fromCharCode(a));for(t.add(String.fromCharCode(l)),t.add(String.fromCharCode(y)),v=o(),f=e(v),f.write(l,u),s=0,r=String.fromCharCode(
i[s]),s+=1;s<i.length;)c=String.fromCharCode(i[s]),s+=1,t.contains(r+c)?r=r+c:(f.write(t.indexOf(r),u),t.size()<4095&&(t.size()==1<<u&&(u+=1),t.add(r+c)),r=c);return f.write(t.indexOf(r),u),f.write(y,u),f.flush(),v.toByteArray()},h=function(){var t={},i=0,n={};return n.add=function(r){if(n.contains(r))throw new Error("dup key:"+r);t[r]=i;i+=1},n.size=function(){return i},n.indexOf=function(n){return t[n]},n.contains=function(n){return typeof t[n]!="undefined"},n};return u},y=function(n,t,i,r){for(var f,c,s,a,h,u,y=v(n,t),e=0;e<t;e+=1)for(f=0;f<n;f+=1)y.setPixel(f,e,i(f,e));for(c=o(),y.write(c),s=l(),a=c.toByteArray(),h=0;h<a.length;h+=1)s.writeByte(a[h]);return s.flush(),u="",u+="<img",u+=' src="',u+="data:image/gif;base64,",u+=s,u+='"',u+=' width="',u+=n,u+='"',u+=' height="',u+=t,u+='"',r&&(u+=' alt="',u+=r,u+='"'),u+"/>"};return e}();return function(n){typeof define=="function"&&define.amd?define([],n):typeof exports=="object"&&(module.exports=n())}(function(){return n}),!function(n){n.stringToBytes=function(
n){function t(n){for(var t,i=[],r=0;r<n.length;r++)t=n.charCodeAt(r),t<128?i.push(t):t<2048?i.push(192|t>>6,128|t&63):t<55296||t>=57344?i.push(224|t>>12,128|t>>6&63,128|t&63):(r++,t=65536+((t&1023)<<10|n.charCodeAt(r)&1023),i.push(240|t>>18,128|t>>12&63,128|t>>6&63,128|t&63));return i}return t(n)}}(n),n}());
/*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Version: 3.1.9
 *
 * Requires: jQuery 1.2.2+
 */
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?module.exports=n:n(jQuery)})(function(n){function e(i){var r=i||window.event,y=h.call(arguments,1),o=0,e=0,f=0,l=0,a,v;if(i=n.event.fix(r),i.type="mousewheel","detail"in r&&(f=r.detail*-1),"wheelDelta"in r&&(f=r.wheelDelta),"wheelDeltaY"in r&&(f=r.wheelDeltaY),"wheelDeltaX"in r&&(e=r.wheelDeltaX*-1),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(e=f*-1,f=0),o=f===0?e:f,"deltaY"in r&&(f=r.deltaY*-1,o=f),"deltaX"in r&&(e=r.deltaX,f===0&&(o=e*-1)),f!==0||e!==0)return r.deltaMode===1?(a=n.data(this,"mousewheel-line-height"),o*=a,f*=a,e*=a):r.deltaMode===2&&(v=n.data(this,"mousewheel-page-height"),o*=v,f*=v,e*=v),l=Math.max(Math.abs(f),Math.abs(e)),(!t||l<t)&&(t=l,s(r,l)&&(t/=40)),s(r,l)&&(o/=40,e/=40,f/=40),o=Math[o>=1?"floor":"ceil"](o/t),e=Math[e>=1?"floor":"ceil"](e/t),f=Math[f>=1?"floor":"ceil"](f/t),i.deltaX=e,i.deltaY=f,i.deltaFactor=t,i.deltaMode=0,y.unshift(i,o,e,f),u&&clearTimeout(u),u=setTimeout(c,200),(n.event.dispatch||
n.event.handle).apply(this,y)}function c(){t=null}function s(n,t){return r.settings.adjustOldDeltas&&n.type==="mousewheel"&&t%120==0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,u,t,f,r;if(n.event.fixHooks)for(f=o.length;f;)n.event.fixHooks[o[--f]]=n.event.mouseHooks;r=n.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e;n.data(this,"mousewheel-line-height",r.getLineHeight(this));n.data(this,"mousewheel-page-height",r.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=i.length;n;)this.removeEventListener(i[--n],e,!1);else this.onmousewheel=null},getLineHeight:function(t){return parseInt(n(t)["offsetParent"in n.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(t){return n(t).height()},settings:
{adjustOldDeltas:!0}};n.fn.extend({mousewheel:function(n){return n?this.bind("mousewheel",n):this.trigger("mousewheel")},unmousewheel:function(n){return this.unbind("mousewheel",n)}})}),function(n){typeof module!="undefined"&&module.exports?module.exports=n:n(jQuery,window,document)}(function(n){(function(t){var i=typeof define=="function"&&define.amd,r=typeof module!="undefined"&&module.exports,u="https:"==document.location.protocol?"https:":"http:";i||(r?require("jquery-mousewheel")(n):n.event.special.mousewheel||n("head").append(decodeURI("%3Cscript src="+u+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.12/jquery.mousewheel.min.js%3E%3C/script%3E")));t()})(function(){var h="mCustomScrollbar",t="mCS",tt=".mCustomScrollbar",et={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:
{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:!0},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},vt=0,w={},y=window.attachEvent&&!window.addEventListener?1:0,f=!1,c,i=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],s={init:function(r){var r=n.extend(!0,{},et,r),e=a.call(this),u,f;if(r.live){if(u=r.liveSelector||this.selector||tt,f=n(u),r.live==="off"){b(u);return}w[u]=setTimeout(function(){f.mCustomScrollbar(r);r.live==="once"&&f.length&&b(u)},500)}else
b(u);return r.setWidth=r.set_width?r.set_width:r.setWidth,r.setHeight=r.set_height?r.set_height:r.setHeight,r.axis=r.horizontalScroll?"x":yt(r.axis),r.scrollInertia=r.scrollInertia>0&&r.scrollInertia<17?17:r.scrollInertia,typeof r.mouseWheel!="object"&&r.mouseWheel==!0&&(r.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),r.mouseWheel.scrollAmount=r.mouseWheelPixels?r.mouseWheelPixels:r.mouseWheel.scrollAmount,r.mouseWheel.normalizeDelta=r.advanced.normalizeMouseWheelDelta?r.advanced.normalizeMouseWheelDelta:r.mouseWheel.normalizeDelta,r.scrollButtons.scrollType=pt(r.scrollButtons.scrollType),ot(r),n(e).each(function(){var u=n(this);if(!u.data(t)){u.data(t,{idx:++vt,opt:r,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:u.css("direction"),cbOffsets:null,trigger:null});var e=u.data(t),f=e.opt,o=u.data("mcs-axis"),h=u.data("mcs-scrollbar-position"),c=u.data("mcs-theme");
o&&(f.axis=o);h&&(f.scrollbarPosition=h);c&&(f.theme=c,ot(f));wt.call(this);n("#mCSB_"+e.idx+"_container img:not(."+i[2]+")").addClass(i[2]);s.update.call(null,u)}})},update:function(r,f){var e=r||a.call(this);return n(e).each(function(){var s=n(this),c;if(s.data(t)){var e=s.data(t),r=e.opt,h=n("#mCSB_"+e.idx+"_container"),l=[n("#mCSB_"+e.idx+"_dragger_vertical"),n("#mCSB_"+e.idx+"_dragger_horizontal")];if(!h.length)return;e.tweenRunning&&o(s);s.hasClass(i[3])&&s.removeClass(i[3]);s.hasClass(i[4])&&s.removeClass(i[4]);dt.call(this);bt.call(this);r.axis==="y"||r.advanced.autoExpandHorizontalScroll||h.css("width",st(h.children()));e.overflowed=ti.call(this);ht.call(this);r.autoDraggerLength&&gt.call(this);ni.call(this);ii.call(this);c=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)];r.axis!=="x"&&(e.overflowed[0]?l[0].height()>l[0].parent().height()?v.call(this):(u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),e.contentReset.y=null):(v.call(this),r.axis==="y"?d.call(this):r.axis==="yx"&&e.overflowed[1]&&
u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"})));r.axis!=="y"&&(e.overflowed[1]?l[1].width()>l[1].parent().width()?v.call(this):(u(s,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),e.contentReset.x=null):(v.call(this),r.axis==="x"?d.call(this):r.axis==="yx"&&e.overflowed[0]&&u(s,c[0].toString(),{dir:"y",dur:0,overwrite:"none"})));f&&e&&(f===2&&r.callbacks.onImageLoad&&typeof r.callbacks.onImageLoad=="function"?r.callbacks.onImageLoad.call(this):f===3&&r.callbacks.onSelectorChange&&typeof r.callbacks.onSelectorChange=="function"?r.callbacks.onSelectorChange.call(this):r.callbacks.onUpdate&&typeof r.callbacks.onUpdate=="function"&&r.callbacks.onUpdate.call(this));ft.call(this)}})},scrollTo:function(i,r){if(typeof i!="undefined"&&i!=null){var f=a.call(this);return n(f).each(function(){var s=n(this);if(s.data(t)){var o=s.data(t),h=o.opt,c={trigger:"external",scrollInertia:h.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},f=n.extend(!0,
{},c,r),e=ut.call(this,i),l=f.scrollInertia>0&&f.scrollInertia<17?17:f.scrollInertia;e[0]=ct.call(this,e[0],"y");e[1]=ct.call(this,e[1],"x");f.moveDragger&&(e[0]*=o.scrollRatio.y,e[1]*=o.scrollRatio.x);f.dur=l;setTimeout(function(){e[0]!==null&&typeof e[0]!="undefined"&&h.axis!=="x"&&o.overflowed[0]&&(f.dir="y",f.overwrite="all",u(s,e[0].toString(),f));e[1]!==null&&typeof e[1]!="undefined"&&h.axis!=="y"&&o.overflowed[1]&&(f.dir="x",f.overwrite="none",u(s,e[1].toString(),f))},f.timeout)}})}},stop:function(){var i=a.call(this);return n(i).each(function(){var i=n(this);i.data(t)&&o(i)})},disable:function(r){var u=a.call(this);return n(u).each(function(){var u=n(this),f;u.data(t)&&(f=u.data(t),ft.call(this,"remove"),d.call(this),r&&v.call(this),ht.call(this,!0),u.addClass(i[3]))})},destroy:function(){var r=a.call(this);return n(r).each(function(){var f=n(this);if(f.data(t)){var u=f.data(t),e=u.opt,s=n("#mCSB_"+u.idx),o=n("#mCSB_"+u.idx+"_container"),c=n(".mCSB_"+u.idx+"_scrollbar");e.live&&b(e.liveSelector||n(r).
selector);ft.call(this,"remove");d.call(this);v.call(this);f.removeData(t);l(this,"mcs");c.remove();o.find("img."+i[2]).removeClass(i[2]);s.replaceWith(o.contents());f.removeClass(h+" _"+t+"_"+u.idx+" "+i[6]+" "+i[7]+" "+i[5]+" "+i[3]).addClass(i[4])}})}},a=function(){return typeof n(this)!="object"||n(this).length<1?tt:this},ot=function(t){t.autoDraggerLength=n.inArray(t.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"])>-1?!1:t.autoDraggerLength;t.autoExpandScrollbar=n.inArray(t.theme,["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"])>-1?!1:t.autoExpandScrollbar;t.scrollButtons.enable=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!1:t.scrollButtons.enable;t.autoHideScrollbar=n.inArray(t.theme,["minimal","minimal-dark"])>-1?!0:t.autoHideScrollbar;t.scrollbarPosition=n.inArray(t.theme,["minimal","minimal-dark"])>-1?"outside":t.scrollbarPosition},b=function(n){w[n]&&(clearTimeout(w[n]),l(w,n))}
,yt=function(n){return n==="yx"||n==="xy"||n==="auto"?"yx":n==="x"||n==="horizontal"?"x":"y"},pt=function(n){return n==="stepped"||n==="pixels"||n==="step"||n==="click"?"stepped":"stepless"},wt=function(){var f=n(this),u=f.data(t),r=u.opt,l=r.autoExpandScrollbar?" "+i[1]+"_expand":"",o=["<div id='mCSB_"+u.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_vertical"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>","<div id='mCSB_"+u.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+u.idx+"_scrollbar mCS-"+r.theme+" mCSB_scrollTools_horizontal"+l+"'><div class='"+i[12]+"'><div id='mCSB_"+u.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /><\/div><div class='mCSB_draggerRail' /><\/div><\/div>"],
v=r.axis==="yx"?"mCSB_vertical_horizontal":r.axis==="x"?"mCSB_horizontal":"mCSB_vertical",a=r.axis==="yx"?o[0]+o[1]:r.axis==="x"?o[1]:o[0],y=r.axis==="yx"?"<div id='mCSB_"+u.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",p=r.autoHideScrollbar?" "+i[6]:"",w=r.axis!=="x"&&u.langDir==="rtl"?" "+i[7]:"",c,s,e;r.setWidth&&f.css("width",r.setWidth);r.setHeight&&f.css("height",r.setHeight);r.setLeft=r.axis!=="y"&&u.langDir==="rtl"?"989999px":r.setLeft;f.addClass(h+" _"+t+"_"+u.idx+p+w).wrapInner("<div id='mCSB_"+u.idx+"' class='mCustomScrollBox mCS-"+r.theme+" "+v+"'><div id='mCSB_"+u.idx+"_container' class='mCSB_container' style='position:relative; top:"+r.setTop+"; left:"+r.setLeft+";' dir="+u.langDir+" /><\/div>");c=n("#mCSB_"+u.idx);s=n("#mCSB_"+u.idx+"_container");r.axis==="y"||r.advanced.autoExpandHorizontalScroll||s.css("width",st(s.children()));r.scrollbarPosition==="outside"?(f.css("position")==="static"&&f.css("position","relative"),f.css("overflow","visible"),c.addClass("mCSB_outside").after(
a)):(c.addClass("mCSB_inside").append(a),s.wrap(y));kt.call(this);e=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")];e[0].css("min-height",e[0].height());e[1].css("min-width",e[1].width())},st=function(t){return Math.max.apply(Math,t.map(function(){return n(this).outerWidth(!0)}).get())},bt=function(){var f=n(this),r=f.data(t),u=r.opt,i=n("#mCSB_"+r.idx+"_container");u.advanced.autoExpandHorizontalScroll&&u.axis!=="y"&&i.css({position:"absolute",width:"auto"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),position:"relative"}).unwrap()},kt=function(){var s=n(this),o=s.data(t),u=o.opt,h=n(".mCSB_"+o.idx+"_scrollbar:first"),f=nt(u.scrollButtons.tabindex)?"tabindex='"+u.scrollButtons.tabindex+"'":"",r=["<a href='#' class='"+i[13]+"' oncontextmenu='return false;' "+f+" />","<a href='#' class='"+i[14]+"' oncontextmenu='return false;' "+
f+" />","<a href='#' class='"+i[15]+"' oncontextmenu='return false;' "+f+" />","<a href='#' class='"+i[16]+"' oncontextmenu='return false;' "+f+" />"],e=[u.axis==="x"?r[2]:r[0],u.axis==="x"?r[3]:r[1],r[2],r[3]];u.scrollButtons.enable&&h.prepend(e[0]).append(e[1]).next(".mCSB_scrollTools").prepend(e[2]).append(e[3])},dt=function(){var i=n(this),f=i.data(t),e=n("#mCSB_"+f.idx),r=i.css("max-height")||"none",o=r.indexOf("%")!==-1,s=i.css("box-sizing"),u;r!=="none"&&(u=o?i.parent().height()*parseInt(r)/100:parseInt(r),s==="border-box"&&(u-=i.innerHeight()-i.height()+(i.outerHeight()-i.innerHeight())),e.css("max-height",Math.round(u)))},gt=function(){var s=n(this),u=s.data(t),f=n("#mCSB_"+u.idx),e=n("#mCSB_"+u.idx+"_container"),r=[n("#mCSB_"+u.idx+"_dragger_vertical"),n("#mCSB_"+u.idx+"_dragger_horizontal")],o=[f.height()/e.outerHeight(!1),f.width()/e.outerWidth(!1)],i=[parseInt(r[0].css("min-height")),Math.round(o[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(o[1]*r[1].parent().width())],h=
y&&i[1]<i[0]?i[0]:i[1],c=y&&i[3]<i[2]?i[2]:i[3];r[0].css({height:h,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":i[0]+"px"});r[1].css({width:c,"max-width":r[1].parent().width()-10})},ni=function(){var s=n(this),i=s.data(t),u=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),r=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e=[f.outerHeight(!1)-u.height(),f.outerWidth(!1)-u.width()],o=[e[0]/(r[0].parent().height()-r[0].height()),e[1]/(r[1].parent().width()-r[1].width())];i.scrollRatio={y:o[0],x:o[1]}},k=function(n,t,r){var f=r?i[0]+"_expanded":"",u=n.closest(".mCSB_scrollTools");t==="active"?(n.toggleClass(i[0]+" "+f),u.toggleClass(i[1]),n[0]._draggable=n[0]._draggable?0:1):n[0]._draggable||(t==="hide"?(n.removeClass(i[0]),u.removeClass(i[1])):(n.addClass(i[0]),u.addClass(i[1])))},ti=function(){var f=n(this),i=f.data(t),u=n("#mCSB_"+i.idx),r=n("#mCSB_"+i.idx+"_container"),e=i.overflowed==null?r.height():r.outerHeight(!1),o=i.overflowed==null?
r.width():r.outerWidth(!1);return[e>u.height(),o>u.width()]},v=function(){var r=n(this),i=r.data(t),f=i.opt,c=n("#mCSB_"+i.idx),s=n("#mCSB_"+i.idx+"_container"),h=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],e;o(r);(f.axis!=="x"&&!i.overflowed[0]||f.axis==="y"&&i.overflowed[0])&&(h[0].add(s).css("top",0),u(r,"_resetY"));(f.axis!=="y"&&!i.overflowed[1]||f.axis==="x"&&i.overflowed[1])&&(e=dx=0,i.langDir==="rtl"&&(e=c.width()-s.outerWidth(!1),dx=Math.abs(e/i.scrollRatio.x)),s.css("left",e),h[1].css("left",dx),u(r,"_resetX"))},ii=function(){var u=n(this),r=u.data(t),i=r.opt,e;if(!r.bindEvents){if(ri.call(this),i.contentTouchScroll&&ui.call(this),fi.call(this),i.mouseWheel.enable){function f(){e=setTimeout(function(){n.event.special.mousewheel?(clearTimeout(e),ei.call(u[0])):f()},100)}f()}si.call(this);ci.call(this);i.advanced.autoScrollOnFocus&&hi.call(this);i.scrollButtons.enable&&li.call(this);i.keyboard.enable&&ai.call(this);r.bindEvents=!0}},d=function(){var u=n(this),r=u.data(
t),f=r.opt,e=t+"_"+r.idx,o=".mCSB_"+r.idx+"_scrollbar",s=n("#mCSB_"+r.idx+",#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,"+o+" ."+i[12]+",#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal,"+o+">a"),h=n("#mCSB_"+r.idx+"_container");f.advanced.releaseDraggableSelectors&&s.add(n(f.advanced.releaseDraggableSelectors));r.bindEvents&&(n(document).unbind("."+e),s.each(function(){n(this).unbind("."+e)}),clearTimeout(u[0]._focusTimeout),l(u[0],"_focusTimeout"),clearTimeout(r.sequential.step),l(r.sequential,"step"),clearTimeout(h[0].onCompleteTimeout),l(h[0],"onCompleteTimeout"),r.bindEvents=!1)},ht=function(r){var h=n(this),u=h.data(t),o=u.opt,c=n("#mCSB_"+u.idx+"_container_wrapper"),f=c.length?c:n("#mCSB_"+u.idx+"_container"),e=[n("#mCSB_"+u.idx+"_scrollbar_vertical"),n("#mCSB_"+u.idx+"_scrollbar_horizontal")],s=[e[0].find(".mCSB_dragger"),e[1].find(".mCSB_dragger")];o.axis!=="x"&&(u.overflowed[0]&&!r?(e[0].add(s[0]).add(e[0].children("a")).css("display","block"),f.removeClass(i[8]+" "+
i[10])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[0].css("display","none"),f.removeClass(i[10])):(e[0].css("display","none"),f.addClass(i[10])),f.addClass(i[8])));o.axis!=="y"&&(u.overflowed[1]&&!r?(e[1].add(s[1]).add(e[1].children("a")).css("display","block"),f.removeClass(i[9]+" "+i[11])):(o.alwaysShowScrollbar?(o.alwaysShowScrollbar!==2&&s[1].css("display","none"),f.removeClass(i[11])):(e[1].css("display","none"),f.addClass(i[11])),f.addClass(i[9])));u.overflowed[0]||u.overflowed[1]?h.removeClass(i[5]):h.addClass(i[5])},r=function(n){var r=n.type,t,i;switch(r){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return n.target.ownerDocument!==document?[n.originalEvent.screenY,n.originalEvent.screenX,!1]:[n.originalEvent.pageY,n.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":return t=n.originalEvent.touches[0]||n.originalEvent.changedTouches[0],i=n.originalEvent.touches.length||n.originalEvent.changedTouches.length,
n.target.ownerDocument!==document?[t.screenY,t.screenX,i>1]:[t.pageY,t.pageX,i>1];default:return[n.pageY,n.pageX,!1]}},ri=function(){function b(n){var t=w.find("iframe"),i;t.length&&(i=n?"auto":"none",t.css("pointer-events",i))}function d(n,t,r,f){var e,o;w[0].idleTimer=h.scrollInertia<233?250:0;i.attr("id")===a[1]?(e="x",o=(i[0].offsetLeft-t+f)*s.scrollRatio.x):(e="y",o=(i[0].offsetTop-n+r)*s.scrollRatio.y);u(l,o.toString(),{dir:e,drag:!0})}var l=n(this),s=l.data(t),h=s.opt,e=t+"_"+s.idx,a=["mCSB_"+s.idx+"_dragger_vertical","mCSB_"+s.idx+"_dragger_horizontal"],w=n("#mCSB_"+s.idx+"_container"),v=n("#"+a[0]+",#"+a[1]),i,c,p,g=h.advanced.releaseDraggableSelectors?v.add(n(h.advanced.releaseDraggableSelectors)):v;v.bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),at(t)){f=!0;y&&(document.onselectstart=function(){return!1});b(!1);o(l);i=n(this);var u=i.offset(),e=r(t)[0]-u.top,s=r(t)[1]-u.left,a=i.height()+u.top,v=i.width()+u.
left;e<a&&e>0&&s<v&&s>0&&(c=e,p=s);k(i,"active",h.autoExpandScrollbar)}}).bind("touchmove."+e,function(n){n.stopImmediatePropagation();n.preventDefault();var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;d(c,p,u,f)});n(document).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(n){if(i){var t=i.offset(),u=r(n)[0]-t.top,f=r(n)[1]-t.left;if(c===u)return;d(c,p,u,f)}}).add(g).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){i&&(k(i,"active",h.autoExpandScrollbar),i=null);f=!1;y&&(document.onselectstart=null);b(!0)})},ui=function(){function bt(n){if(!g(n)||f||r(n)[2]){c=0;return}c=1;ut=0;ft=0;var t=w.offset();b=r(n)[0]-t.top;k=r(n)[1]-t.left;a=[r(n)[0],r(n)[1]]}function kt(n){var c,l,v,y;if(g(n)&&!f&&!r(n)[2]&&(n.stopImmediatePropagation(),!ft||ut)){yt=p();var o=d.offset(),t=r(n)[0]-o.top,u=r(n)[1]-o.left,h="mcsLinearOut";tt.push(t);rt.push(u);a[2]=Math.abs(r(n)[0]-a[0]);a[3]=Math.abs(r(n)[1]-a[1]);i.overflowed[0]&&(c=nt[0].parent().height()-nt[0].height(),l=b-t>0&&t-b>
-(c*i.scrollRatio.y)&&(a[3]*2<a[2]||e.axis==="yx"));i.overflowed[1]&&(v=nt[1].parent().width()-nt[1].width(),y=k-u>0&&u-k>-(v*i.scrollRatio.x)&&(a[2]*2<a[3]||e.axis==="yx"));l||y?(n.preventDefault(),ut=1):ft=1;s=e.axis==="yx"?[b-t,k-u]:e.axis==="x"?[null,k-u]:[b-t,null];w[0].idleTimer=250;i.overflowed[0]&&et(s[0],pt,h,"y","all",!0);i.overflowed[1]&&et(s[1],pt,h,"x",ct,!0)}}function dt(n){if(!g(n)||f||r(n)[2]){c=0;return}c=1;n.stopImmediatePropagation();o(ot);vt=p();var t=d.offset();lt=r(n)[0]-t.top;at=r(n)[1]-t.left;tt=[];rt=[]}function gt(n){var t,u,h;if(g(n)&&!f&&!r(n)[2]){n.stopImmediatePropagation();ut=0;ft=0;st=p();var c=d.offset(),a=r(n)[0]-c.top,y=r(n)[1]-c.left;if(!(st-yt>30)){l=1e3/(st-vt);var b="mcsEaseOut",o=l<2.5,k=o?[tt[tt.length-2],rt[rt.length-2]]:[0,0];v=o?[a-k[0],y-k[1]]:[a-lt,y-at];t=[Math.abs(v[0]),Math.abs(v[1])];l=o?[Math.abs(v[0]/4),Math.abs(v[1]/4)]:[l,l];u=[Math.abs(w[0].offsetTop)-v[0]*ni(t[0]/l[0],l[0]),Math.abs(w[0].offsetLeft)-v[1]*ni(t[1]/l[1],l[1])];s=e.axis==="yx"?[u[0],u[1]]:e.
axis==="x"?[null,u[1]]:[u[0],null];ht=[t[0]*4+e.scrollInertia,t[1]*4+e.scrollInertia];h=parseInt(e.contentTouchScroll)||0;s[0]=t[0]>h?s[0]:0;s[1]=t[1]>h?s[1]:0;i.overflowed[0]&&et(s[0],ht[0],b,"y",ct,!1);i.overflowed[1]&&et(s[1],ht[1],b,"x",ct,!1)}}}function ni(n,t){var i=[t*1.5,t*2,t/1.5,t/2];return n>90?t>4?i[0]:i[3]:n>60?t>3?i[3]:i[2]:n>30?t>8?i[1]:t>6?i[0]:t>4?t:i[2]:t>8?t:i[3]}function et(n,t,i,r,f,e){n&&u(ot,n.toString(),{dur:t,scrollEasing:i,dir:r,overwrite:f,drag:e})}var ot=n(this),i=ot.data(t),e=i.opt,h=t+"_"+i.idx,d=n("#mCSB_"+i.idx),w=n("#mCSB_"+i.idx+"_container"),nt=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],b,k,lt,at,tt=[],rt=[],vt,yt,st,v,l,s,pt=0,ht,ct=e.axis==="yx"?"none":"all",a=[],ut,ft,wt=w.find("iframe"),y=["touchstart."+h+" pointerdown."+h+" MSPointerDown."+h,"touchmove."+h+" pointermove."+h+" MSPointerMove."+h,"touchend."+h+" pointerup."+h+" MSPointerUp."+h];w.bind(y[0],function(n){bt(n)}).bind(y[1],function(n){kt(n)});d.bind(y[0],function(n){dt(n)}).
bind(y[2],function(n){gt(n)});wt.length&&wt.each(function(){n(this).load(function(){it(this)&&n(this.contentDocument||this.contentWindow.document).bind(y[0],function(n){bt(n);dt(n)}).bind(y[1],function(n){kt(n)}).bind(y[2],function(n){gt(n)})})})},fi=function(){function y(){return window.getSelection?window.getSelection().toString():document.selection&&document.selection.type!="Control"?document.selection.createRange().text:0}function e(n,t,i){h.type=i&&u?"stepped":"stepless";h.scrollAmount=10;rt(a,n,t,"mcsLinearOut",i?60:null)}var a=n(this),i=a.data(t),v=i.opt,h=i.sequential,l=t+"_"+i.idx,o=n("#mCSB_"+i.idx+"_container"),s=o.parent(),u;o.bind("mousedown."+l,function(){c||u||(u=1,f=!0)}).add(document).bind("mousemove."+l,function(n){if(!c&&u&&y()){var l=o.offset(),t=r(n)[0]-l.top+o[0].offsetTop,f=r(n)[1]-l.left+o[0].offsetLeft;t>0&&t<s.height()&&f>0&&f<s.width()?h.step&&e("off",null,"stepped"):(v.axis!=="x"&&i.overflowed[0]&&(t<0?e("on",38):t>s.height()&&e("on",40)),v.axis!=="y"&&i.overflowed[1]&&(f<0?e("on",
37):f>s.width()&&e("on",39)))}}).bind("mouseup."+l,function(){c||(u&&(u=0,e("off",null)),f=!1)})},ei=function(){function l(t,h){var a;if(o(s),!oi(s,t.target)){if(a=r.mouseWheel.deltaFactor!=="auto"?parseInt(r.mouseWheel.deltaFactor):y&&t.deltaFactor<100?100:t.deltaFactor||100,r.axis==="x"||r.mouseWheel.axis==="x")var v="x",l=[Math.round(a*i.scrollRatio.x),parseInt(r.mouseWheel.scrollAmount)],w=r.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.width()?e.width()*.9:l[0],b=Math.abs(n("#mCSB_"+i.idx+"_container")[0].offsetLeft),p=f[1][0].offsetLeft,k=f[1].parent().width()-f[1].width(),c=t.deltaX||t.deltaY||h;else var v="y",l=[Math.round(a*i.scrollRatio.y),parseInt(r.mouseWheel.scrollAmount)],w=r.mouseWheel.scrollAmount!=="auto"?l[1]:l[0]>=e.height()?e.height()*.9:l[0],b=Math.abs(n("#mCSB_"+i.idx+"_container")[0].offsetTop),p=f[0][0].offsetTop,k=f[0].parent().height()-f[0].height(),c=t.deltaY||h;(v!=="y"||i.overflowed[0])&&(v!=="x"||i.overflowed[1])&&(r.mouseWheel.invert&&(c=-c),r.mouseWheel.normalizeDelta&&(c=c<0?-1:
1),(c>0&&p!==0||c<0&&p!==k||r.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),u(s,(b-c*w).toString(),{dir:v}))}}var s=n(this),i=s.data(t),r=i.opt,h=t+"_"+i.idx,e=n("#mCSB_"+i.idx),f=[n("#mCSB_"+i.idx+"_dragger_vertical"),n("#mCSB_"+i.idx+"_dragger_horizontal")],c=n("#mCSB_"+i.idx+"_container").find("iframe");i&&(c.length&&c.each(function(){n(this).load(function(){it(this)&&n(this.contentDocument||this.contentWindow.document).bind("mousewheel."+h,function(n,t){l(n,t)})})}),e.bind("mousewheel."+h,function(n,t){l(n,t)}))},it=function(n){var t=null,i;try{i=n.contentDocument||n.contentWindow.document;t=i.body.innerHTML}catch(r){}return t!==null},oi=function(i,r){var u=r.nodeName.toLowerCase(),f=i.data(t).opt.mouseWheel.disableOver;return n.inArray(u,f)>-1&&!(n.inArray(u,["select","textarea"])>-1&&!n(r).is(":focus"))},si=function(){var s=n(this),e=s.data(t),r=t+"_"+e.idx,h=n("#mCSB_"+e.idx+"_container"),c=h.parent(),l=n(".mCSB_"+e.idx+"_scrollbar ."+i[12]);l.bind("touchstart."+r+" pointerdown."+
r+" MSPointerDown."+r,function(){f=!0}).bind("touchend."+r+" pointerup."+r+" MSPointerUp."+r,function(){f=!1}).bind("click."+r,function(t){var r,f;if(n(t.target).hasClass(i[12])||n(t.target).hasClass("mCSB_draggerRail")){if(o(s),r=n(this),f=r.find(".mCSB_dragger"),r.parent(".mCSB_scrollTools_horizontal").length>0){if(!e.overflowed[1])return;var a="x",l=t.pageX>f.offset().left?-1:1,v=Math.abs(h[0].offsetLeft)-l*c.width()*.9}else{if(!e.overflowed[0])return;var a="y",l=t.pageY>f.offset().top?-1:1,v=Math.abs(h[0].offsetTop)-l*c.height()*.9}u(s,v.toString(),{dir:a,scrollEasing:"mcsEaseInOut"})}})},hi=function(){var i=n(this),s=i.data(t),f=s.opt,c=t+"_"+s.idx,r=n("#mCSB_"+s.idx+"_container"),h=r.parent();r.bind("focusin."+c,function(){var t=n(document.activeElement),c=r.find(".mCustomScrollBox").length,s=0;t.is(f.advanced.autoScrollOnFocus)&&(o(i),clearTimeout(i[0]._focusTimeout),i[0]._focusTimer=c?(s+17)*c:0,i[0]._focusTimeout=setTimeout(function(){var n=[e(t)[0],e(t)[1]],o=[r[0].offsetTop,r[0].offsetLeft],c=[o[0]+
n[0]>=0&&o[0]+n[0]<h.height()-t.outerHeight(!1),o[1]+n[1]>=0&&o[0]+n[1]<h.width()-t.outerWidth(!1)],l=f.axis==="yx"&&!c[0]&&!c[1]?"none":"all";f.axis==="x"||c[0]||u(i,n[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s});f.axis==="y"||c[1]||u(i,n[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:l,dur:s})},i[0]._focusTimer))})},ci=function(){var u=n(this),i=u.data(t),f=t+"_"+i.idx,r=n("#mCSB_"+i.idx+"_container").parent();r.bind("scroll."+f,function(){(r.scrollTop()!==0||r.scrollLeft()!==0)&&n(".mCSB_"+i.idx+"_scrollbar").css("visibility","hidden")})},li=function(){var o=n(this),r=o.data(t),e=r.opt,u=r.sequential,i=t+"_"+r.idx,s=".mCSB_"+r.idx+"_scrollbar",h=n(s+">a");h.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i+" mouseup."+i+" touchend."+i+" pointerup."+i+" MSPointerUp."+i+" mouseout."+i+" pointerout."+i+" MSPointerOut."+i+" click."+i,function(t){function s(n,t){u.scrollAmount=e.snapAmount||e.scrollButtons.scrollAmount;rt(o,n,t)}if(t.preventDefault(
),at(t)){var i=n(this).attr("class");u.type=e.scrollButtons.scrollType;switch(t.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if(u.type==="stepped")return;f=!0;r.tweenRunning=!1;s("on",i);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if(u.type==="stepped")return;f=!1;u.dir&&s("off",i);break;case"click":if(u.type!=="stepped"||r.tweenRunning)return;s("on",i)}}})},ai=function(){function y(t){function w(n,t){(s.type=r.keyboard.scrollType,s.scrollAmount=r.snapAmount||r.keyboard.scrollAmount,s.type==="stepped"&&i.tweenRunning)||rt(e,n,t)}var c,y,p,a,v;switch(t.type){case"blur":i.tweenRunning&&s.dir&&w("off",null);break;case"keydown":case"keyup":if(c=t.keyCode?t.keyCode:t.which,y="on",r.axis!=="x"&&(c===38||c===40)||r.axis!=="y"&&(c===37||c===39)){if((c===38||c===40)&&!i.overflowed[0]||(c===37||c===39)&&!i.overflowed[1])return;t.type==="keyup"&&(y="off");n(document.activeElement).is(l)||(t.preventDefault(),t.stopImmediatePropagation(
),w(y,c))}else c===33||c===34?((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(o(e),p=c===34?-1:1,r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(a="x",v=Math.abs(f[0].offsetLeft)-p*h.width()*.9):(a="y",v=Math.abs(f[0].offsetTop)-p*h.height()*.9),u(e,v.toString(),{dir:a,scrollEasing:"mcsEaseInOut"}))):(c===35||c===36)&&(n(document.activeElement).is(l)||((i.overflowed[0]||i.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),t.type==="keyup"&&(r.axis==="x"||r.axis==="yx"&&i.overflowed[1]&&!i.overflowed[0]?(a="x",v=c===35?Math.abs(h.width()-f.outerWidth(!1)):0):(a="y",v=c===35?Math.abs(h.height()-f.outerHeight(!1)):0),u(e,v.toString(),{dir:a,scrollEasing:"mcsEaseInOut"}))))}}var e=n(this),i=e.data(t),r=i.opt,s=i.sequential,c=t+"_"+i.idx,p=n("#mCSB_"+i.idx),f=n("#mCSB_"+i.idx+"_container"),h=f.parent(),l="input,textarea,select,datalist,keygen,[contenteditable='true']",a=f.find("iframe"),v=["blur."+c+" keydown."+c+" keyup."+c];
a.length&&a.each(function(){n(this).load(function(){it(this)&&n(this.contentDocument||this.contentWindow.document).bind(v[0],function(n){y(n)})})});p.attr("tabindex","0").bind(v[0],function(n){y(n)})},rt=function(r,f,e,s,h){function y(n){var i=c.type!=="stepped",f=h?h:n?i?b/1.5:k:1e3/60,e=n?i?7.5:40:2.5,t=[Math.abs(p[0].offsetTop),Math.abs(p[0].offsetLeft)],o=[a.scrollRatio.y>10?10:a.scrollRatio.y,a.scrollRatio.x>10?10:a.scrollRatio.x],v=c.dir[0]==="x"?t[1]+c.dir[1]*o[1]*e:t[0]+c.dir[1]*o[0]*e,w=c.dir[0]==="x"?t[1]+c.dir[1]*parseInt(c.scrollAmount):t[0]+c.dir[1]*parseInt(c.scrollAmount),l=c.scrollAmount!=="auto"?w:v,d=s?s:n?i?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",g=n?!0:!1;if(n&&f<17&&(l=c.dir[0]==="x"?t[1]:t[0]),u(r,l.toString(),{dir:c.dir[0],scrollEasing:d,dur:f,onComplete:g}),n){c.dir=!1;return}clearTimeout(c.step);c.step=setTimeout(function(){y()},f)}function d(){clearTimeout(c.step);l(c,"step");o(r)}var a=r.data(t),v=a.opt,c=a.sequential,p=n("#mCSB_"+a.idx+"_container"),w=c.type==="stepped"?!0:!1,b=v.
scrollInertia<26?26:v.scrollInertia,k=v.scrollInertia<1?17:v.scrollInertia;switch(f){case"on":if(c.dir=[e===i[16]||e===i[15]||e===39||e===37?"x":"y",e===i[13]||e===i[15]||e===38||e===37?-1:1],o(r),nt(e)&&c.type==="stepped")return;y(w);break;case"off":d();(w||a.tweenRunning&&c.dir)&&y(!0)}},ut=function(i){var u=n(this).data(t).opt,r=[];return typeof i=="function"&&(i=i()),i instanceof Array?r=i.length>1?[i[0],i[1]]:u.axis==="x"?[null,i[0]]:[i[0],null]:(r[0]=i.y?i.y:i.x||u.axis==="x"?null:i,r[1]=i.x?i.x:i.y||u.axis==="y"?null:i),typeof r[0]=="function"&&(r[0]=r[0]()),typeof r[1]=="function"&&(r[1]=r[1]()),r},ct=function(i,r){var o,f;if(i!=null&&typeof i!="undefined"){var h=n(this),c=h.data(t),v=c.opt,u=n("#mCSB_"+c.idx+"_container"),l=u.parent(),y=typeof i;r||(r=v.axis==="x"?"x":"y");var p=r==="x"?u.outerWidth(!1):u.outerHeight(!1),a=r==="x"?u[0].offsetLeft:u[0].offsetTop,w=r==="x"?"left":"top";switch(y){case"function":return i();case"object":return(f=i.jquery?i:n(i),!f.length)?void 0:r==="x"?e(f)[1]:e(f)[0];case"string":
case"number":if(nt(i))return Math.abs(i);if(i.indexOf("%")!==-1)return Math.abs(p*parseInt(i)/100);if(i.indexOf("-=")!==-1)return Math.abs(a-parseInt(i.split("-=")[1]));if(i.indexOf("+=")!==-1)return o=a+parseInt(i.split("+=")[1]),o>=0?0:Math.abs(o);if(i.indexOf("px")!==-1&&nt(i.split("px")[0]))return Math.abs(i.split("px")[0]);if(i==="top"||i==="left")return 0;if(i==="bottom")return Math.abs(l.height()-u.outerHeight(!1));if(i==="right")return Math.abs(l.width()-u.outerWidth(!1));if(i==="first"||i==="last")return f=u.find(":"+i),r==="x"?e(f)[1]:e(f)[0];if(n(i).length)return r==="x"?e(n(i))[1]:e(n(i))[0];u.css(w,i);s.update.call(null,h[0]);return}}},ft=function(r){function g(){clearTimeout(u[0].autoUpdate);u[0].autoUpdate=setTimeout(function(){if(f.advanced.updateOnSelectorChange&&(p=tt(),p!==k)){y(3);k=p;return}f.advanced.updateOnContentResize&&(e=[u.outerHeight(!1),u.outerWidth(!1),c.height(),c.width(),v()[0],v()[1]],(e[0]!==o[0]||e[1]!==o[1]||e[2]!==o[2]||e[3]!==o[3]||e[4]!==o[4]||e[5]!==o[5])&&(y(e[0]!==o[
0]||e[1]!==o[1]),o=e));f.advanced.updateOnImageLoad&&(w=nt(),w!==d&&(u.find("img").each(function(){it(this)}),d=w));(f.advanced.updateOnSelectorChange||f.advanced.updateOnContentResize||f.advanced.updateOnImageLoad)&&g()},60)}function nt(){var n=0;return f.advanced.updateOnImageLoad&&(n=u.find("img").length),n}function it(t){function u(n,t){return function(){return t.apply(n,arguments)}}function f(){this.onload=null;n(t).addClass(i[2]);y(2)}if(n(t).hasClass(i[2])){y();return}var r=new Image;r.onload=u(r,f);r.src=t.src}function tt(){f.advanced.updateOnSelectorChange===!0&&(f.advanced.updateOnSelectorChange="*");var t=0,i=u.find(f.advanced.updateOnSelectorChange);return f.advanced.updateOnSelectorChange&&i.length>0&&i.each(function(){t+=n(this).height()+n(this).width()}),t}function y(n){clearTimeout(u[0].autoUpdate);s.update.call(null,b[0],n)}var b=n(this),h=b.data(t),f=h.opt,u=n("#mCSB_"+h.idx+"_container");if(r){clearTimeout(u[0].autoUpdate);l(u[0],"autoUpdate");return}var c=u.parent(),a=[n("#mCSB_"+h.idx+"_scrollbar_vertical"),
n("#mCSB_"+h.idx+"_scrollbar_horizontal")],v=function(){return[a[0].is(":visible")?a[0].outerHeight(!0):0,a[1].is(":visible")?a[1].outerWidth(!0):0]},k=tt(),p,o=[u.outerHeight(!1),u.outerWidth(!1),c.height(),c.width(),v()[0],v()[1]],e,d=nt(),w;g()},vi=function(n,t,i){return Math.round(n/t)*t-i},o=function(i){var r=i.data(t),u=n("#mCSB_"+r.idx+"_container,#mCSB_"+r.idx+"_container_wrapper,#mCSB_"+r.idx+"_dragger_vertical,#mCSB_"+r.idx+"_dragger_horizontal");u.each(function(){yi.call(this)})},u=function(i,r,u){function h(n){return f&&e.callbacks[n]&&typeof e.callbacks[n]=="function"}function et(){return[e.callbacks.alwaysTriggerOffsets||w>=l[0]+v,e.callbacks.alwaysTriggerOffsets||w<=-y]}function a(){var n=[o[0].offsetTop,o[0].offsetLeft],t=[c[0].offsetTop,c[0].offsetLeft],r=[o.outerHeight(!1),o.outerWidth(!1)],f=[p.height(),p.width()];i[0].mcs={content:o,top:n[0],left:n[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(n[0])/(Math.abs(r[0])-f[0])),leftPct:Math.round(100*Math.abs(n[1])/(Math.abs(
r[1])-f[1])),direction:u.dir}}var f=i.data(t),e=f.opt,it={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:e.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},u=n.extend(it,u),d=[u.dur,u.drag?0:u.dur],p=n("#mCSB_"+f.idx),o=n("#mCSB_"+f.idx+"_container"),b=o.parent(),g=e.callbacks.onTotalScrollOffset?ut.call(i,e.callbacks.onTotalScrollOffset):[0,0],nt=e.callbacks.onTotalScrollBackOffset?ut.call(i,e.callbacks.onTotalScrollBackOffset):[0,0];if(f.trigger=u.trigger,(b.scrollTop()!==0||b.scrollLeft()!==0)&&(n(".mCSB_"+f.idx+"_scrollbar").css("visibility","visible"),b.scrollTop(0).scrollLeft(0)),r!=="_resetY"||f.contentReset.y||(h("onOverflowYNone")&&e.callbacks.onOverflowYNone.call(i[0]),f.contentReset.y=1),r!=="_resetX"||f.contentReset.x||(h("onOverflowXNone")&&e.callbacks.onOverflowXNone.call(i[0]),f.contentReset.x=1),r!=="_resetY"&&r!=="_resetX"){(f.contentReset.y||!i[0].mcs)&&f.overflowed[0]&&(h("onOverflowY")&&e.callbacks.onOverflowY.call(i[0]),f.contentReset.x=null);
(f.contentReset.x||!i[0].mcs)&&f.overflowed[1]&&(h("onOverflowX")&&e.callbacks.onOverflowX.call(i[0]),f.contentReset.x=null);e.snapAmount&&(r=vi(r,e.snapAmount,e.snapOffset));switch(u.dir){case"x":var c=n("#mCSB_"+f.idx+"_dragger_horizontal"),tt="left",w=o[0].offsetLeft,l=[p.width()-o.outerWidth(!1),c.parent().width()-c.width()],s=[r,r===0?0:r/f.scrollRatio.x],v=g[1],y=nt[1],rt=v>0?v/f.scrollRatio.x:0,ft=y>0?y/f.scrollRatio.x:0;break;case"y":var c=n("#mCSB_"+f.idx+"_dragger_vertical"),tt="top",w=o[0].offsetTop,l=[p.height()-o.outerHeight(!1),c.parent().height()-c.height()],s=[r,r===0?0:r/f.scrollRatio.y],v=g[0],y=nt[0],rt=v>0?v/f.scrollRatio.y:0,ft=y>0?y/f.scrollRatio.y:0}(s[1]<0||s[0]===0&&s[1]===0?s=[0,0]:s[1]>=l[1]?s=[l[0],l[1]]:s[0]=-s[0],i[0].mcs||(a(),h("onInit")&&e.callbacks.onInit.call(i[0])),clearTimeout(o[0].onCompleteTimeout),!f.tweenRunning&&(w===0&&s[0]>=0||w===l[0]&&s[0]<=l[0]))||(lt(c[0],tt,Math.round(s[1]),d[1],u.scrollEasing),lt(o[0],tt,Math.round(s[0]),d[0],u.scrollEasing,u.overwrite,{onStart:
function(){u.callbacks&&u.onStart&&!f.tweenRunning&&(h("onScrollStart")&&(a(),e.callbacks.onScrollStart.call(i[0])),f.tweenRunning=!0,k(c),f.cbOffsets=et())},onUpdate:function(){u.callbacks&&u.onUpdate&&h("whileScrolling")&&(a(),e.callbacks.whileScrolling.call(i[0]))},onComplete:function(){if(u.callbacks&&u.onComplete){e.axis==="yx"&&clearTimeout(o[0].onCompleteTimeout);var n=o[0].idleTimer||0;o[0].onCompleteTimeout=setTimeout(function(){h("onScroll")&&(a(),e.callbacks.onScroll.call(i[0]));h("onTotalScroll")&&s[1]>=l[1]-rt&&f.cbOffsets[0]&&(a(),e.callbacks.onTotalScroll.call(i[0]));h("onTotalScrollBack")&&s[1]<=ft&&f.cbOffsets[1]&&(a(),e.callbacks.onTotalScrollBack.call(i[0]));f.tweenRunning=!1;o[0].idleTimer=0;k(c,"hide")},n)}}}))}},lt=function(n,t,i,r,u,f,e){function y(){o.stop||(s||b.call(),s=p()-g,w(),s>=o.time&&(o.time=s>o.time?s+h-(s-o.time):s+h-1,o.time<s+1&&(o.time=s+1)),o.time<r?o.id=l(y):d.call())}function w(){r>0?(o.currVal=it(o.time,c,v,r,u),a[t]=Math.round(o.currVal)+"px"):a[t]=i+"px";k.call()}function nt(
){h=1e3/60;o.time=s+h;l=window.requestAnimationFrame?window.requestAnimationFrame:function(n){return w(),setTimeout(n,.01)};o.id=l(y)}function tt(){o.id!=null&&(window.requestAnimationFrame?window.cancelAnimationFrame(o.id):clearTimeout(o.id),o.id=null)}function it(n,t,i,r,u){switch(u){case"linear":case"mcsLinear":return i*n/r+t;case"mcsLinearOut":return n/=r,n--,i*Math.sqrt(1-n*n)+t;case"easeInOutSmooth":return(n/=r/2,n<1)?i/2*n*n+t:(n--,-i/2*(n*(n-2)-1)+t);case"easeInOutStrong":return(n/=r/2,n<1)?i/2*Math.pow(2,10*(n-1))+t:(n--,i/2*(-Math.pow(2,-10*n)+2)+t);case"easeInOut":case"mcsEaseInOut":return(n/=r/2,n<1)?i/2*n*n*n+t:(n-=2,i/2*(n*n*n+2)+t);case"easeOutSmooth":return n/=r,n--,-i*(n*n*n*n-1)+t;case"easeOutStrong":return i*(-Math.pow(2,-10*n/r)+1)+t;case"easeOut":case"mcsEaseOut":default:var f=(n/=r)*n,e=f*n;return t+i*(.499999999999997*e*f+-2.5*f*f+5.5*e+-6.5*f+4*n)}}var v;n._mTween||(n._mTween={top:{},left:{}});var e=e||{},b=e.onStart||function(){},k=e.onUpdate||function(){},d=e.onComplete||function(){}
,g=p(),h,s=0,c=n.offsetTop,a=n.style,l,o=n._mTween[t];t==="left"&&(c=n.offsetLeft);v=i-c;o.stop=0;f!=="none"&&tt();nt()},p=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},yi=function(){var n=this,r,i,t;for(n._mTween||(n._mTween={top:{},left:{}}),r=["top","left"],i=0;i<r.length;i++)t=r[i],n._mTween[t].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(n._mTween[t].id):clearTimeout(n._mTween[t].id),n._mTween[t].id=null,n._mTween[t].stop=1)},l=function(n,t){try{delete n[t]}catch(i){n[t]=null}},at=function(n){return!(n.which&&n.which!==1)},g=function(n){var t=n.originalEvent.pointerType;return!(t&&t!=="touch"&&t!==2)},nt=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},e=function(n){var t=n.parents(".mCSB_container");return[n.offset().top-t.offset().top,n.offset().left-t.offset().left]};n.fn[h]=function(t){if(s[t])return s[t].apply(this,Array.
prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h]=function(t){if(s[t])return s[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error("Method "+t+" does not exist");else return s.init.apply(this,arguments)};n[h].defaults=et;window[h]=!0;n(window).load(function(){n(tt)[h]();n.extend(n.expr[":"],{mcsInView:n.expr[":"].mcsInView||function(t){var i=n(t),u=i.parents(".mCSB_container"),f,r;if(u.length)return f=u.parent(),r=[u[0].offsetTop,u[0].offsetLeft],r[0]+e(i)[0]>=0&&r[0]+e(i)[0]<f.height()-i.outerHeight(!1)&&r[1]+e(i)[1]>=0&&r[1]+e(i)[1]<f.width()-i.outerWidth(!1)},mcsOverflow:n.expr[":"].mcsOverflow||function(i){var r=n(i).data(t);if(r)return r.overflowed[0]||r.overflowed[1]}})})})}),function(n){var t=function(){function n(){var i=document.documentElement.classList.contains("desktop"),n,t;if(i&&(n=document.querySelector(".content-header"),t=document.querySelector(".inner-container"),
n&&t)){var r=n.getBoundingClientRect(),u=r.top+document.body.scrollTop,f=n.offsetHeight,e=u+f,o=window.getComputedStyle(n.parentNode).width;n.style.width=o;t.style["padding-top"]=e+"px"}}return n}();n.ContentHeaderPreload=t}(PageElements||(PageElements={}));contentHeaderPreload=new PageElements.ContentHeaderPreload,function(n){var t=function(){function n(n,t){this.id=n;this.callback=t}return n}(),i=function(){function n(n){this.message=n;this._subscriptions=[];this._nextId=0}return n.prototype.subscribe=function(n){var i=new t(this._nextId++,n);return this._subscriptions[i.id]=i,i.id},n.prototype.unSubscribe=function(n){this._subscriptions[n]=undefined},n.prototype.isPromiseLike=function(n){return n&&typeof n.then=="function"},n.prototype.notify=function(n,t){for(var u,f=[],r=this._subscriptions.slice(0),i=0;i<r.length;i++)r[i]&&(u=r[i].callback(n,t),this.isPromiseLike(u)&&f.push(u));return $.when.apply($,f)},n}(),r=function(){function n(){this.id=n.id++;this._messages={}}return n.prototype.subscribe=function(
n,t){var r;return r=this._messages[n]||(this._messages[n]=new i(n)),r.subscribe(t)},n.prototype.subscribeMultiple=function(n){var r=[],t,i,u;if(!n)return r;for(t=0;t<n.length;t++)i=n[t],u=this.subscribe(i.message,i.callback),r.push({message:i.message,id:u});return r},n.prototype.unSubscribeMultiple=function(n){var t,i;if(n)for(t=0;t<n.length;t++)i=n[t],this.unSubscribe(i.message,i.id)},n.prototype.unSubscribe=function(n,t){this._messages[n]&&this._messages[n].unSubscribe(t)},n.prototype.publish=function(n,t,i){return this._messages[n]?this._messages[n].notify(t,i):$.Deferred().resolve().promise()},n.id=0,n}();n.EventAggregator=r}(Common||(Common={}));eventAggregator=new Common.EventAggregator,function(n){var t=function(){function n(){}return n.getInstance=function(){return n.instance||(n.instance=new n)},n.prototype.prefixComponentName=function(t){return n.componentPrefix+t},n.prototype.getPrefixedNameForComponent=function(n){return this.prefixComponentName(n.componentName)},n.componentPrefix="ds-component-",
n}();n.ComponentHelper=t}(DS||(DS={})),function(n){var t=function(){function n(){this.lut=[];for(var n=0;n<256;n++)this.lut[n]=(n<16?"0":"")+n.toString(16)}return n.getInstance=function(){return n.instance||(n.instance=new n)},n.prototype.generate=function(){var n=Math.random()*4294967295|0,t=Math.random()*4294967295|0,i=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return this.lut[n&255]+this.lut[n>>8&255]+this.lut[n>>16&255]+this.lut[n>>24&255]+"-"+this.lut[t&255]+this.lut[t>>8&255]+"-"+this.lut[t>>16&15|64]+this.lut[t>>24&255]+"-"+this.lut[i&63|128]+this.lut[i>>8&255]+"-"+this.lut[i>>16&255]+this.lut[i>>24&255]+this.lut[r&255]+this.lut[r>>8&255]+this.lut[r>>16&255]+this.lut[r>>24&255]},n}();n.TokenGenerator=t}(DS||(DS={})),function(n){var o=function(){function n(){}return n.typeName="Component",n.componentName="",n.query="",n}(),t,i,r,u,f,e;n.Component=o;t=function(){function n(){}return n.typeName="Controller",n}();n.Controller=t;i=function(){function n(){}return n.typeName="Rebuilder",n}();n.Rebuilder=
i;r=function(){function n(){}return n.typeName="Factory",n}();n.Factory=r;u=function(){function n(){}return n.typeName="Singleton",n}();n.Singleton=u;f=function(){function n(){}return n.typeName="Configuration",n}();n.Configuration=f;e=function(){function n(){}return n.typeName="Run",n}();n.Run=e}(DS||(DS={})),function(n){var t=function(){function n(n,t,i){this.origin=n;this.elements=t;this.customNamespaces=i}return n.prototype.setUp=function(t,i){var r=this.origin.setUpElements[i||this.origin.eventNamespace];return this.origin.setUpElements[i||this.origin.eventNamespace]=r?r.add(t):t,new n(this.origin,t,i)},Object.defineProperty(n.prototype,"namespaces",{get:function(){return typeof this.customNamespaces=="string"?this.customNamespaces:this.origin.eventNamespace},enumerable:!0,configurable:!0}),n.prototype.on=function(n,t,i,r){return this.bindEvents(this.elements.dsOn,n,t,i,r)},n.prototype.one=function(n,t,i,r){return this.bindEvents(this.elements.dsOne,n,t,i,r)},n.prototype.bindEvents=function(n,t,i,r,u){return n.
apply(this.elements,this.prepareNamespacesIn([t,i,r,u])),this},n.prototype.prepareNamespacesIn=function(n){var t;return typeof n[1]=="object"?t=1:typeof n[2]=="object"&&(t=2),t?typeof n[t].namespaces!="string"&&(n[t].namespaces=this.namespaces):n=this.addNewDataArgWithNamespacesTo(n),n},n.prototype.addNewDataArgWithNamespacesTo=function(n){var t;return t=typeof n[1]=="function"?1:typeof n[2]=="function"?2:3,n.splice(t,0,{namespaces:this.namespaces}),n},n}();n.OriginBindingContainer=t}(DS||(DS={})),function(n){var t=function(){function t(n,t){this.id=n.generate();this.eventNamespace="."+this.id;this.setUpElements={};t&&t.length&&(this.domContext=t.length?t[0]:undefined,this.contextQuery=t)}return t.prototype.setUp=function(t,i){var r=this.setUpElements[i||this.eventNamespace];return this.setUpElements[i||this.eventNamespace]=r?r.add(t):t,new n.OriginBindingContainer(this,t,i)},t.prototype.tearDown=function(){var n=this;Object.keys(this.setUpElements).forEach(function(t){n.setUpElements[t].off(t)})},t.prototype.
selfDestruct=function(){return LifeCycleSystem.remove(this.contextQuery)},t.typeName="Origin",t}();n.Origin=t}(DS||(DS={})),function(n){var t=function(){function n(){}return n.getInstance=function(){return n.instance||(n.instance=new n)},n.prototype.isBoolean=function(n){return typeof n=="boolean"},n.prototype.isString=function(n){return typeof n=="string"},n.prototype.isEmptyString=function(n){return n===""},n.prototype.isNonEmptyString=function(n){return!!n&&this.isString(n)},n.prototype.isObject=function(n){return n instanceof Object},n.prototype.isNullOrObject=function(n){return typeof n=="object"},n.prototype.isFunction=function(n){return typeof n=="function"},n.prototype.isArray=function(n){return Array.isArray(n)},n.prototype.isEmptyArray=function(n){return this.isArray(n)&&n.length===0},n.prototype.isFilledArray=function(n){return this.isArray(n)&&n.length>0},n.prototype.isNull=function(n){return n===null},n.prototype.isNotNull=function(n){return n!==null},n.prototype.isDefined=function(n){return typeof
n!="undefined"},n.prototype.isUndefined=function(n){return typeof n=="undefined"},n.prototype.isUndefinedOrNull=function(n){return this.isUndefined(n)||this.isNull(n)},n.prototype.isNeitherUndefinedNorNull=function(n){return this.isDefined(n)&&this.isNotNull(n)},n.prototype.getFunctionName=function(n){var t=this.isFunction(n),i=t&&(n.name&&["",n.name]||n.toString().match(/^function\s+([\w\$]+)\s*\(/));return!t&&"not a function"||i&&i[1]||"anonymous"},n}();n.CommonTypesValidator=t}(DS||(DS={})),function(n){var t=function(){function t(t){t===void 0&&(t=n.CommonTypesValidator.getInstance());this.commonTypesValidator=t}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.isOrigin=function(t){return this.commonTypesValidator.isFunction(t)&&this.commonTypesValidator.isString(t.typeName)&&t.typeName===n.Origin.typeName},t.prototype.isComponent=function(t){return this.commonTypesValidator.isDefined(t)&&t.recipe.systemType===n.Component.typeName},t.prototype.isController=function(t){return this.
commonTypesValidator.isDefined(t)&&t.recipe.systemType===n.Controller.typeName},t.prototype.isRebuilder=function(t){return this.commonTypesValidator.isDefined(t)&&t.recipe.systemType===n.Rebuilder.typeName},t.prototype.isFactory=function(t){return this.commonTypesValidator.isFunction(t)&&t.recipe.systemType===n.Factory.typeName},t.prototype.isSingleton=function(t){return this.commonTypesValidator.isFunction(t)&&t.recipe.systemType===n.Singleton.typeName},t.prototype.isConfiguration=function(t){return this.commonTypesValidator.isFunction(t)&&t.recipe.systemType===n.Configuration.typeName},t.prototype.isRun=function(t){return this.commonTypesValidator.isFunction(t)&&t.recipe.systemType===n.Run.typeName},t.prototype.isOriginInstance=function(n){return this.commonTypesValidator.isObject(n)&&this.isOrigin(n.constructor)},t.prototype.isComponentInstance=function(n){return this.commonTypesValidator.isObject(n)&&this.commonTypesValidator.isString(n.componentName)&&this.commonTypesValidator.isString(n.query)&&this.commonTypesValidator.
isObject(n.origin)&&this.commonTypesValidator.isObject(n.controller)&&this.commonTypesValidator.isObject(n.rebuilder)},t.prototype.hasDependencies=function(n){return this.commonTypesValidator.isDefined(n)&&this.commonTypesValidator.isDefined(n.recipe)&&this.commonTypesValidator.isFilledArray(n.recipe.dependencies)},t.prototype.hasRecipe=function(n){return this.commonTypesValidator.isFunction(n)&&this.commonTypesValidator.isDefined(n.recipe)&&this.commonTypesValidator.isString(n.recipe.name)&&this.commonTypesValidator.isString(n.recipe.systemType)&&this.commonTypesValidator.isArray(n.recipe.dependencies)},t.prototype.isSystemType=function(n){return this.isComponent(n)||this.isController(n)||this.isFactory(n)||this.isSingleton(n)||this.isConfiguration(n)||this.isRun(n)||this.isOrigin(n)},t}();n.SystemTypesValidator=t}(DS||(DS={})),function(n){var t=function(){function t(t,i){t===void 0&&(t=n.CommonTypesValidator.getInstance());i===void 0&&(i=n.SystemTypesValidator.getInstance());this.commonTypesValidator=t;this.
systemTypesValidator=i;this.components=[];this.configurations=[];this.runs=[];this.magicReferences={}}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.register=function(n,t){this.systemTypesValidator.isComponent(n)?this.components.push(n):this.systemTypesValidator.isConfiguration(n)?this.configurations.push(n):this.systemTypesValidator.isRun(n)?this.runs.push(n):this.commonTypesValidator.isNonEmptyString(t)&&(this.magicReferences[t]=n)},t}();n.Index=t}(DS||(DS={})),function(n){var t=function(){function t(t){t===void 0&&(t=n.CommonTypesValidator.getInstance());this.commonTypesValidator=t}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.decorate=function(t){return this.commonTypesValidator.isFunction(t.prototype.update)||(t.prototype.update=function(n,t){return LifeCycleSystem.replace(n.contextQuery,t.newContext)}),t.prototype.setUpEventSubscription=function(n){this.componentName=n;this.eventToken=eventAggregator.subscribe("rebuild."+this.componentName,
this.updateIfResponsible.bind(this))},t.prototype.destroyEventSubscription=function(){this.eventToken>=0&&this.componentName&&eventAggregator.unSubscribe("rebuild."+this.componentName,this.eventToken)},t.prototype.updateIfResponsible=function(t){var r=this.isResponsible(this.origin,t),i;return n.CommonTypesValidator.getInstance().isFunction(r)?i=r:r===!0&&(i=this.update),$.when(i&&i.call(this,this.origin,t))},t},t}();n.RebuilderDecorator=t}(DS||(DS={})),function(n){var t=function(){function t(t,i,r){t===void 0&&(t=n.CommonTypesValidator.getInstance());i===void 0&&(i=n.SystemTypesValidator.getInstance());r===void 0&&(r=n.RebuilderDecorator.getInstance());this.commonTypesValidator=t;this.systemTypesValidator=i;this.rebuilderDecorator=r}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.addBasicRecipe=function(n,t){this.commonTypesValidator.isUndefined(n.recipe)&&(n.recipe={});n.recipe.name=this.commonTypesValidator.getFunctionName(n);n.recipe.systemType=t.typeName;this.commonTypesValidator.
isUndefined(n.recipe.dependencies)&&(n.recipe.dependencies=[])},t.prototype.defineSystemType=function(n,t){this.addBasicRecipe(n,t);this.systemTypesValidator.isRebuilder(n)&&this.rebuilderDecorator.decorate(n)},t.prototype.defineDependencies=function(n,t){if(this.systemTypesValidator.hasRecipe(n))n.recipe.dependencies=t;else throw new Error("The system type of "+this.commonTypesValidator.getFunctionName(n)+" is not defined yet. Please define the type before trying to define dependencies again.");},t}();n.Injector=t;t.getInstance().defineSystemType(n.Origin,n.Origin)}(DS||(DS={})),function(n){var t=function(){function n(n){this.origin=n}return n.prototype.isResponsible=function(n,t){return t.oldContext?n.contextQuery.is(t.oldContext):!0},n}();n.DefaultRebuilder=t;n.Injector.getInstance().defineSystemType(t,n.Rebuilder);n.Injector.getInstance().defineDependencies(t,[n.Origin])}(DS||(DS={})),function(n){var t=function(){function n(n){this.origin=n}return n.prototype.isResponsible=function(n,t){return n.contextQuery.
data("group-id")===t.newContext.data("group-id")},n}();n.GroupIdRebuilder=t;n.Injector.getInstance().defineSystemType(t,n.Rebuilder);n.Injector.getInstance().defineDependencies(t,[n.Origin])}(DS||(DS={})),function(n){var t=function(){function t(t,i,r,u,f){t===void 0&&(t=n.CommonTypesValidator.getInstance());i===void 0&&(i=n.SystemTypesValidator.getInstance());r===void 0&&(r=n.TokenGenerator.getInstance());u===void 0&&(u=n.Index.getInstance());f===void 0&&(f=n.ComponentHelper.getInstance());this.commonTypesValidator=t;this.systemTypesValidator=i;this.tokenGenerator=r;this.index=u;this.componentHelper=f}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.queryAndResolveComponents=function(n,t){var i=this,r=[],u=this.commonTypesValidator.isDefined(t)&&t.length?t.find(n.query).addBack(n.query):$(n.query);return u.each(function(t,u){var f=$(u),o=i.componentHelper.getPrefixedNameForComponent(n),s=f.data(o),e=i.commonTypesValidator.isUndefinedOrNull(s)?i.resolveComponent(n,f):undefined;
i.commonTypesValidator.isDefined(e)&&r.push(e)}),r},t.prototype.resolveOtherTypes=function(t,i){var r,u=this.resolveDependencies(t,i);switch(t.recipe.systemType){case n.Controller.typeName:case n.Factory.typeName:r=this.construct(t,u);break;case n.Configuration.typeName:case n.Run.typeName:case n.Singleton.typeName:r=this.commonTypesValidator.isFunction(t.getInstance)?t.getInstance.apply(null,u):t.instance||(t.instance=this.construct(t,u));break;case n.Origin.typeName:r=new n.Origin(this.tokenGenerator,i)}return r},t.prototype.resolveComponent=function(t,i){var f=this.resolveDependencies(t),r=this.construct(t,f),u;return r.componentName=t.componentName,r.query=t.query,r.origin=new n.Origin(this.tokenGenerator,i),r.controller=t.controller&&this.resolveValueInContext(t.controller,i)||null,u=this.commonTypesValidator.isFunction(t.rebuilder)?t.rebuilder:n.DefaultRebuilder,r.rebuilder=this.resolveRebuilder(u,i,r.componentName),r},t.prototype.resolveRebuilder=function(t,i,r){var f=this.resolveDependencies(t,i),u=this.
construct(t,f);return this.systemTypesValidator.isOriginInstance(u.origin)||(u.origin=new n.Origin(this.tokenGenerator,i)),u.setUpEventSubscription(r),u},t.prototype.resolveDependencies=function(n,t){return this.systemTypesValidator.hasDependencies(n)?this.resolveDependencyList(n.recipe.dependencies,t):[]},t.prototype.resolveDependencyList=function(n,t){for(var i,u,f=[],r=0,e=n;r<e.length;r++)i=e[r],u=this.commonTypesValidator.isArray(i)?this.resolveDependencyList(i):this.resolveValueInContext(i,t),this.commonTypesValidator.isDefined(u)&&f.push(u);return f},t.prototype.construct=function(n,t){var i=Function.prototype.bind.apply(n,[null].concat(t));return new i},t.prototype.resolveValueInContext=function(n,t){var i,u,r;return this.hasStartedResolving=!0,i=n,this.commonTypesValidator.isNonEmptyString(n)&&(r=this.index.magicReferences[n],this.commonTypesValidator.isFunction(r)&&(i=r)),this.systemTypesValidator.hasRecipe(i)&&this.systemTypesValidator.isSystemType(i)?this.systemTypesValidator.isComponent(i)?this.queryAndResolveComponents(
i,t):this.resolveOtherTypes(i,t):i},t.prototype.resolveAllComponents=function(t){return this.index.components.reduce(function(i,r){return i.concat(n.FluentApi.getInstance().resolve(r,t).andBindItToDom())},[])},t.prototype.resolveAllConfigurations=function(){var n=this;this.index.configurations.forEach(function(t){n.resolveValueInContext(t,undefined)})},t.prototype.resolveAllRuns=function(){var n=this,t=this.index.runs.map(function(t){var i=n.resolveValueInContext(t,undefined);return $.when(i.run&&i.run())});return $.when.apply(null,t)},t}();n.Resolver=t}(DS||(DS={})),function(n){var t=function(){function t(t,i,r,u){t===void 0&&(t=n.CommonTypesValidator.getInstance());i===void 0&&(i=n.SystemTypesValidator.getInstance());r===void 0&&(r=n.Index.getInstance());u===void 0&&(u=n.ComponentHelper.getInstance());this.commonTypesValidator=t;this.systemTypesValidator=i;this.index=r;this.componentHelper=u}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.bindComponent=function(n){var i=this,
t=this.componentHelper.getPrefixedNameForComponent(n),r=n.origin.contextQuery.data(t);if(this.commonTypesValidator.isUndefinedOrNull(r))n.origin.contextQuery.data(t,n).on("destroyed",{component:n},function(n,t){i.removeComponent(t.component,t.component.origin.contextQuery)})},t.prototype.bindComponents=function(n){var f=this.commonTypesValidator.isArray(n),u=!0,r="",t,i;if(f){for(t=0;t<this.length;t++)if(!this.systemTypesValidator.isComponent(this[t])){u=!1;r="as not all items of the list are components.";break}}else r=", as it is not an array.";if(u)for(i=0;i<n.length;i++)this.bindComponent(n[i]);else throw new Error("Can not bind resolved content "+this.commonTypesValidator.getFunctionName(n)+r);},t.prototype.removeComponent=function(n,t){var e=this,o=this.componentHelper.getPrefixedNameForComponent(n),i=t.data(o),r=this.commonTypesValidator.isNeitherUndefinedNorNull(i),s=r&&this.commonTypesValidator.isNeitherUndefinedNorNull(i.controller),f=r&&this.commonTypesValidator.isNeitherUndefinedNorNull(i.rebuilder),
h=r&&s&&this.commonTypesValidator.isFunction(i.controller.destroy)&&$.when(i.controller.destroy()),c=r&&f&&this.commonTypesValidator.isFunction(i.rebuilder.destroy)&&$.when(i.rebuilder.destroy()),u;return f&&i.rebuilder.destroyEventSubscription(),u={type:n,contextQuery:t},$.when(h,c).then(function(){var n=e.componentHelper.prefixComponentName(u.type.componentName);u.contextQuery.data(n,null)})},t.prototype.removeComponents=function(n,t){var u=this,r,i;if(this.systemTypesValidator.hasRecipe(n)&&this.systemTypesValidator.isComponent(n))return r=this.commonTypesValidator.isDefined(t)&&t.length?t.find(n.query).addBack(n.query):$(n.query),i=[],r.each(function(t,r){var f=$(r);i.push(u.removeComponent(n,f))}),$.when.apply($,i);throw new Error("Can not remove "+this.commonTypesValidator.getFunctionName(n)+", as it is not defined as component.");},t.prototype.removeAllComponents=function(n){var t=this,i=this.index.components.map(function(i){return t.removeComponents(i,n)});return $.when.apply(null,i)},t}();n.DomManipulator=
t}(DS||(DS={})),function(n){var t=function(){function t(){}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.decorate=function(t,i){t.meetsConditions=i;t.andBindItToDom=function(){return this.meetsConditions&&n.DomManipulator.getInstance().bindComponents(this),this};t.then=function(t){var r=this,i=undefined;return n.CommonTypesValidator.getInstance().isArray(this)&&(i=this.map(function(n){return n.controller&&n.controller.constructing})),$.when.apply(null,i).then(function(){return $.when(t.call(null,r))})};t.postConstruct=function(){var n=this;return this.then(function(t){n.meetsConditions||(t=[]);var i=t.map(function(n){return $.when(n.controller&&n.controller.postConstruct&&n.controller.postConstruct())});return $.when.apply(null,i).then(function(){return t})})}},t}();n.ComponentsContainerDecorator=t}(DS||(DS={})),function(n){var t=function(){function t(t,i,r){t===void 0&&(t=n.CommonTypesValidator.getInstance());i===void 0&&(i=n.Resolver.getInstance());r===void 0&&(r=n.ComponentsContainerDecorator.
getInstance());this.commonTypesValidator=t;this.resolver=i;this.componentsContainerDecorator=r}return t.createInstance=function(){return new t},t.prototype.resolve=function(n,t,i){return i===void 0&&(i=!0),this.meetsConditions=i,this.typeDefinition=n,this.meetsConditions&&(this.resolvedContent=this.resolver.resolveValueInContext(this.typeDefinition,t)),this.commonTypesValidator.isArray(this.resolvedContent)&&this.componentsContainerDecorator.decorate(this.resolvedContent,this.meetsConditions),this.resolvedContent},t.prototype.resolveAllComponents=function(n){return this.resolvedContent=this.resolver.resolveAllComponents(n),this.componentsContainerDecorator.decorate(this.resolvedContent,!0),this.resolvedContent},t.prototype.resolveAllConfigurations=function(){return this.resolver.resolveAllConfigurations(),DependencySystem},t.prototype.resolveAllRuns=function(){return this.resolver.resolveAllRuns()},t}();n.ResolvingContainer=t}(DS||(DS={})),function(n){var t=function(){function t(t,i){t===void 0&&(t=n.Injector.
getInstance());i===void 0&&(i=n.Index.getInstance());this.injector=t;this.index=i}return t.createInstance=function(){return new t},t.prototype.define=function(n,t){return this.meetsConditions=t,this.meetsConditions&&(this.typeDefintion=n),this},t.prototype.as=function(n,t){return this.meetsConditions&&(this.injector.defineSystemType(this.typeDefintion,n),this.index.register(this.typeDefintion,t)),this},t.prototype.andInject=function(n){return this.meetsConditions&&this.injector.defineDependencies(this.typeDefintion,n),this},Object.defineProperty(t.prototype,"and",{get:function(){return DependencySystem},enumerable:!0,configurable:!0}),t.prototype.andResolveIt=function(t){return n.ResolvingContainer.createInstance().resolve(this.typeDefintion,t,this.meetsConditions)},t}();n.DefiningContainer=t}(DS||(DS={})),function(n){var t=function(){function t(t){t===void 0&&(t=n.Injector.getInstance());this.injector=t}return t.createInstance=function(){return new t},t.prototype.inject=function(n,t){return this.meetsConditions=
t,this.meetsConditions&&(this.typeDefinition=n),this},t.prototype.with=function(n){return this.meetsConditions&&this.injector.defineDependencies(this.typeDefinition,n),this},Object.defineProperty(t.prototype,"and",{get:function(){return DependencySystem},enumerable:!0,configurable:!0}),t.prototype.andResolveIt=function(t){return n.ResolvingContainer.createInstance().resolve(this.typeDefinition,t,this.meetsConditions)},t}();n.InjectingContainer=t}(DS||(DS={})),function(n){var t=function(){function t(t){t===void 0&&(t=n.DomManipulator.getInstance());this.domManipulator=t}return t.createInstance=function(){return new t},t.prototype.remove=function(n){return this.typeDefintion=n,this},t.prototype.from=function(n){return this.domManipulator.removeComponents(this.typeDefintion,n)},t.prototype.fromDom=function(){return this.from(undefined)},t.prototype.removeAllComponents=function(n){return this.domManipulator.removeAllComponents(n)},t}();n.RemovingContainer=t}(DS||(DS={})),function(n){var t=function(){function t(){
this.meetsConditions=!0}return t.createInstance=function(){return new t},t.prototype.when=function(n){return this.meetsConditions=n.every(function(n){return n}),this},t.prototype.define=function(t){return n.DefiningContainer.createInstance().define(t,this.meetsConditions)},t.prototype.inject=function(t){return n.InjectingContainer.createInstance().inject(t,this.meetsConditions)},t}();n.ConditionalContainer=t}(DS||(DS={})),function(n){var t=function(){function t(){}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.when=function(t){return n.ConditionalContainer.createInstance().when(t)},t.prototype.define=function(t){return n.DefiningContainer.createInstance().define(t,!0)},t.prototype.inject=function(t){return n.InjectingContainer.createInstance().inject(t,!0)},t.prototype.resolve=function(t,i){return n.ResolvingContainer.createInstance().resolve(t,i)},t.prototype.remove=function(t){return n.RemovingContainer.createInstance().remove(t)},t.prototype.removeAllComponents=function(
t){return n.RemovingContainer.createInstance().removeAllComponents(t)},t.prototype.resolveAllComponents=function(t){return n.ResolvingContainer.createInstance().resolveAllComponents(t)},t.prototype.resolveAllConfigurations=function(){return n.ResolvingContainer.createInstance().resolveAllConfigurations()},t.prototype.resolveAllRuns=function(){return n.ResolvingContainer.createInstance().resolveAllRuns()},t}();n.FluentApi=t}(DS||(DS={})),function(n){var t=DS.FluentApi.getInstance();n.when=t.when.bind(t);n.define=t.define.bind(t);n.inject=t.inject.bind(t);n.resolve=t.resolve.bind(t);n.resolveInContext=t.resolve.bind(t);n.remove=t.remove.bind(t);n.resolveAllComponents=t.resolveAllComponents.bind(t);n.resolveAllConfigurations=t.resolveAllConfigurations.bind(t);n.resolveAllRuns=t.resolveAllRuns.bind(t);n.removeAllComponents=t.removeAllComponents.bind(t)}(DependencySystem||(DependencySystem={}));DependencySystem.define(DS.CommonTypesValidator).as(DS.Singleton).and.define(DS.TokenGenerator).as(DS.Singleton),function(
n){var t=function(){function n(){if(n.instance)throw new Error("Instantiation of AppActivity failed: Use AppActivity.getInstance() instead of new AppActivity()");this.loadingDOM=$.Deferred();this.loadingResouces=$.Deferred();this.resolvingMainConfigurations=$.Deferred();this.resolvingInitialComponents=$.Deferred();this.resolvingPostConfigurations=$.Deferred();this.initializing=$.Deferred();this.digesting=$.Deferred()}return n.getInstance=function(){return n.instance||(n.instance=new n)},n}();n.AppActivity=t}(LCS||(LCS={})),function(n){var t=function(){function t(){if(t.instance)throw new Error("Instantiation of App failed: Use App.getInstance() instead of new App()");this.activity=n.AppActivity.getInstance()}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.initialize=function(){var n=this;$(document).ready(function(){n.activity.loadingDOM.resolve();n.applyMainConfigurations();n.resolveInitialComponents().always(function(){n.applyPostConfigurations()})});$(window).load(function(
){n.activity.loadingResouces.resolve()});$.when(this.activity.resolvingPostConfigurations,this.activity.loadingResouces).then(function(){n.activity.initializing.resolve()})},t.prototype.digest=function(){var n=this;return this.activity.digesting.notify("Digesting started"),DependencySystem.resolveAllComponents().andBindItToDom().postConstruct().always(function(){n.activity.digesting.notify("Digesting finished")}).then(function(){return undefined})},t.prototype.applyMainConfigurations=function(){DependencySystem.resolveAllConfigurations();this.activity.resolvingMainConfigurations.resolve()},t.prototype.resolveInitialComponents=function(){var n=this;return DependencySystem.resolveAllComponents().andBindItToDom().postConstruct().always(function(){n.activity.resolvingInitialComponents.resolve()})},t.prototype.applyPostConfigurations=function(){var n=this;return DependencySystem.resolveAllRuns().always(function(){n.activity.resolvingPostConfigurations.resolve()})},t}();n.App=t}(LCS||(LCS={})),function(n){var t=function(
){function t(){if(t.instance)throw new Error("Instantiation of DomManipulator failed: Use DomManipulator.getInstance() instead of new DomManipulator()");this.app=n.App.getInstance()}return t.getInstance=function(){return t.instance||(t.instance=new t)},t.prototype.html=function(n,t){var i=this;return DependencySystem.removeAllComponents(n).then(function(){return n.html(t),i.app.digest()})},t.prototype.replace=function(n,t){var i=this;return DependencySystem.removeAllComponents(n).then(function(){return n.replaceWith(t),i.app.digest()})},t.prototype.remove=function(n,t){return DependencySystem.removeAllComponents(t?n.filter(t):n).then(function(){n.remove(t)})},t.prototype.append=function(n,t){return(t?t:$("body")).append(n),this.app.digest()},t}();n.DomManipulator=t}(LCS||(LCS={})),function(n){var i=LCS.App.getInstance(),t;n.boot=i.initialize.bind(i);n.digest=i.digest.bind(i);n.activity=i.activity;t=LCS.DomManipulator.getInstance();n.replace=t.replace.bind(t);n.html=t.html.bind(t);n.remove=t.remove.bind(t);n.append=
t.append.bind(t)}(LifeCycleSystem||(LifeCycleSystem={}));LifeCycleSystem.boot(),function(n){var t=function(){function n(){}return n.prototype.replaceElement=function(n,t,i){var r=this.getElementFromAjaxResponse(n,t,i);return $(n).replaceWith(r),r},n.prototype.insertElementAfter=function(n,t,i,r,u){var f=this.getAndShowHideElement(n,i,r,u);return $(t).after(f),f},n.prototype.insertElementBefore=function(n,t,i,r,u){var f=this.getAndShowHideElement(n,i,r,u);return $(t).before(f),f},n.prototype.getAndShowHideElement=function(n,t,i,r){var u=this.getElementFromAjaxResponse(n,t,i);return r&&this.hideElement(u),u},n.prototype.getElementFromAjaxResponse=function(n,t,i){var r=this.getNamedObjectValueFromArray(i,t);return this.getDomElement(n,r)},n.prototype.getNamedObjectValueFromArray=function(n,t){var i=null;return $.each(t,function(t,r){r[n]&&(i=r[n])}),i},n.prototype.getNamedObjectValuesFromArray=function(n,t){var i;return $.each(t,function(t,r){r[n]&&(i?i+=r[n]:i=r[n])}),i},n.prototype.getDomElement=function(n,t){
var i=$(t);return i.filter(n)},n.prototype.hideElement=function(n){n.css({position:"absolute",visibility:"hidden"})},n.prototype.showElement=function(n){n.css({position:"",visibility:"visible"})},n}();n.AjaxDomHelper=t}(Common||(Common={}));ajaxDomHelper=new Common.AjaxDomHelper,function(n){var t=function(){function n(){}return n.getSwiperInitCallback=function(){var n=this;return function(t){n.slideLineBreakFix(t)}},n.slideLineBreakFix=function(n){var t=$(n.container[0]).find(".swiper-wrapper"),u,i,f,r;for(t.removeClass("inithelper"),u=t.innerWidth(),i=0,t.find(".swiper-slide").each(function(n,t){$(t).outerHeight()>i&&(i=$(t).outerHeight())}),f=i/2,r=0;t.innerHeight()-f>i&&r<10;)t.css("width","+=1px"),r++;r>0&&t.innerWidth()>u&&(n.params.slidesOffsetAfter=t.innerWidth()-u,n.updateContainerSize())},n}();n.Swiper3Fixes=t}(Common||(Common={})),function(n){var t=function(){function n(){if(this.jqWindow=$(window),this.jqHtml=$("html"),this.jqBody=this.jqHtml.find("body"),this.jqDocument=$(document),n.instance)throw new
Error("Instantiation of ElementRepository failed: Use ElementRepository.getInstance() instead of new ElementRepository()");}return n.getInstance=function(){return n.instance||(this.instance=new n),n.instance},n.prototype.window=function(){return this.jqWindow},n.prototype.html=function(){return this.jqHtml},n.prototype.body=function(){return this.jqBody},n.prototype.meta=function(n){var t=this.jqHtml.find("head meta");return n?t.filter('[name = "'+n+'" ]'):t},n.prototype.document=function(){return this.jqDocument},n.prototype.shopcontent=function(){return this.elementIsNotInitialized(this.jqShopcontent)&&(this.jqShopcontent=this.body().find("section.shopcontent")),this.jqShopcontent},n.prototype.topNavigation=function(){return this.elementIsNotInitialized(this.jqTopNavigation)&&(this.jqTopNavigation=this.body().find("header.top-navigation")),this.jqTopNavigation},n.prototype.pageFooterOffset=function(){return this.body().hasClass("startpage")?58:30},Object.defineProperty(n.prototype,"windowAspectRatio",{get:function(
){return this.window().width()/this.window().height()},enumerable:!0,configurable:!0}),n.prototype.elementIsNotInitialized=function(n){return!n||!n.length},n}();n.ElementRepository=t;DependencySystem.define(t).as(DS.Singleton)}(Common||(Common={})),function(n){var t=function(){function n(){if(this.window=$(window),n.instance)throw new Error("Instantiation of WindowValues failed: Use WindowValues.getInstance() instead of new WindowValues()");this.update()}return n.prototype.update=function(){this.windowHeight=this.window.height();this.windowWidth=this.window.width();this.windowScrollTop=this.window.scrollTop();this.windowScrollLeft=this.window.scrollLeft()},Object.defineProperty(n.prototype,"height",{get:function(){return this.windowHeight},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"width",{get:function(){return this.windowWidth},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"scrollTop",{get:function(){return this.windowScrollTop},enumerable:!0,configurable:!0}),Object.
defineProperty(n.prototype,"scrollLeft",{get:function(){return this.windowScrollLeft},enumerable:!0,configurable:!0}),n}();n.WindowProperties=t;DependencySystem.define(t).as(DS.Singleton)}(Common||(Common={})),function(n){var t=function(){function n(){this.registeredComponents=[]}return n.prototype.registerComponent=function(n){this.containsComponent(n)||this.registeredComponents.push(n)},n.prototype.registerAndInitComponent=function(n){this.registerComponent(n);n.initialize()},n.prototype.containsComponent=function(n){return $.inArray(n,this.registeredComponents)!=-1},n.prototype.removeComponent=function(n){if(this.containsComponent(n)){var t=$.inArray(n,this.registeredComponents);this.registeredComponents.splice(t,1)}},n.prototype.initializeAll=function(){$.each(this.registeredComponents,function(n,t){t.initialize()})},n.prototype.initializeAllInContext=function(n){$.each(this.registeredComponents,function(t,i){i.initializeInContext(n)})},n}();n.ComponentManager=t}(Common||(Common={}));componentManager=new Common.
ComponentManager,function(n){var t=function(){function n(){}return n.DebugError="debug.error",n.DebugReady="debug.ready",n.FooterToTopButtonPressed="footerToTopButtonPressed",n.FooterToTopButtonAnimationFinished="footerToTopButtonAnimationFinished",n.VideoLoadedMetaData="videoLoadedMetaData",n.StartVideoIn="startVideoIn",n.StopAllVideos="stopAllVideos",n.VideoInViewStateChanged="video.in-view-state.changed",n.VideoInView="video.in-view-state.shown",n.VideoOutOfView="video.in-view-state.hidden",n.VideoPlay="video.play",n.VideoPause="video.pause",n.VideoSeek="video.seek",n.VideoSeekPause="video.seek.pause",n.VideoStop="video.stop",n.VideoReplay="video.replay",n.VideoStateReady="video.state.ready",n.VideoStatePlay="video.state.play",n.VideoStatePause="video.state.pause",n.VideoStateSeek="video.state.seek",n.VideoStateStop="video.state.stop",n.VideoStateStall="video.state.stall",n.VideoStateFinish="video.state.finish",n.VideoStateUnload="video.state.unload",n.VideoStateProgress="video.state.progress",n.TrackVideoAction=
"video.tracking.genericAction",n.TimelinrPlay="timelinr.play",n.TimelinrPause="timelinr.pause",n.TimelinrSeek="timelinr.seek",n.TimelinrSeekPause="timelinr.seek.pause",n.TimelinrStop="timelinr.stop",n.TimelinrReplay="timelinr.replay",n.TimelinrStatePlay="timelinr.state.play",n.TimelinrStatePause="timelinr.state.pause",n.TimelinrStateStop="timelinr.state.stop",n.TimelinrStateFinish="timelinr.state.finish",n.FilterBarFilterTabSetVisibility="filterBarFilterTabSetVisibility",n.FilterBarProductFinderResetButtonSetState="filterBarProductFinderResetButtonSetState",n.ArticlesFilterOpen="articles.filter.open",n.ArticlesFilterClose="articles.filter.close",n.ArticlesFilterCloseComplete="articles.filter.close.complete",n.ArticlesFilterSetLeftScrollPosition="articles.filter.setLeftScrollPosition",n.ArticlesFilterSetRightScrollPosition="articles.filter.setRightScrollPosition",n.ArticlesFilterSelectDimension="articles.filter.selectDimension",n.ArticlesFilterToggleCriteria="articles.filter.toggleCriteria",n.ArticlesFilterResetCriteria=
"articles.filter.resetCriteria",n.ArticlesFilterChangeIsOpen="articles.filter.change.isOpen",n.ArticlesFilterChangeLeftScrollPosition="articles.filter.change.leftScrollPosition",n.ArticlesFilterChangeRightScrollPosition="articles.filter.change.rightScrollPosition",n.ArticlesFilterChangeDimension="articles.filter.change.dimension",n.ArticlesFilterChangeCriteria="articles.filter.change.criteria",n.ArticlesFilterNoChangeCriteria="articles.filter.no-change.criteria",n.ArticlesFilterKioskFilterChanged="articles.filter.kiosk-filter.changed",n.ModalTouchedInside="modal.touched.inside",n.ModalOpened="modal.opened",n.ModalClosed="modal.closed",n.ModalAnchorClicked="modal.anchor.clicked",n.ArticlesSortAddCriteria="articles.sort.addCriteria",n.ArticlesSortRemoveCriteria="articles.sort.removeCriteria",n.ArticlesSortResetCriteria="articles.sort.resetCriteria",n.ArticlesSortChange="articles.sort.change",n.ArticlesSortNoChange="articles.sort.no-change",n.PageScrollToArticleList="PageScrollToArticleList",n.TooltipVisibilityChanged=
"tooltipVisibilityChanged",n.TooltipShowError="tooltipShowError",n.TooltipRemoveError="tooltipRemoveError",n.TooltipHideAll="tooltipHideAll",n.TooltipUpdateContent="tooltipUpdateContent",n.TooltipUpdateScope="tooltipUpdateScope",n.HideErrors="hideErrors",n.ParallaxViewportSizeChanged="parallaxScreenSizeChanged",n.ParallaxSkrollrScroll="parallaxSkrollrScroll",n.LegacyESWFParallaxSkrollrScroll="Legacy.ESWF.parallaxSkrollrScroll",n.ParallaxScreenScrolledIntoView="parallax.screen.scrolledIntoView",n.ArticleTileUpdated="articleTileUpdated",n.HeadSliderFadedOut="fadedOut.headerSlider",n.NavigationContextChanged="navigationContextChanged",n.NavigationContextRequested="navigationContextRequested",n.ContentRevealed="contentRevealed",n.ContentIsAboutToBeHidden="contentIsAboutToBeHidden",n.ContentIsAboutToBeRemovedFromDOM="contentIsAboutToBeRemovedFromDOM",n.ContentAddedToDOM="contentAdedToDOM",n.CollapseContentInContext="content.collapseInContent",n.JobFilterFormResetRequested="jobFilterFormResetRequested",n.JobFilterFormEditRequested=
"jobFilterFormEditRequested",n.JobFilterFormVisibilityChangeRequested="jobFilterFormVisibilityChangeRequested",n.JobOfferDetailsLoadNext="jobOfferDetailsLoadNext",n.JobOfferDetailsLoadPrevious="jobOfferDetailsLoadPrevious",n.JobOfferDetailsReceived="jobOfferDetailsReceived",n.JobOfferDetailsOpen="job-offer-details.open",n.JobOfferDetailsClosed="jobOfferDetailsClosed",n.JobOfferDetailsRequestJobCount="jobOfferDetailsRequestJobCount",n.JobOffersResponseReceived="jobOffersResponseReceived",n.JobOffersHideDetailsBackside="jobOffersHideDetailsBackside",n.FooterStartKeyframeTriggered="footerStartKeyframeTriggered",n.SliderOpen="slider.open",n.SliderClose="slider.close",n.ShortlistUpdatedItem="shortlist.updated.item",n.ArticleTemplatesUpdateVat="article-templates.update.vat",n.ArticleTemplatesUpdatedVat="article-templates.updated.vat",n.ArticleTemplatesUpdateSizes="article-templates.update.sizes",n.ArticleTemplatesUpdatedSizes="article-templates.updated.sizes",n.ArticleTemplatesUpdateArticle="article-templates.update.article",
n.ArticleTemplatesUpdatedArticle="article-templates.updated.article",n.ArticleTemplatesAddedToBasket="article-templates.added-to-basket",n.ArticleTemplatesDescriptionSwitchTab="article-templates.description.switch-tab",n.ArticleTemplatesDescriptionShownTab="article-templates.description.shown-tab",n.ArticleDetailsSizesFadeInAndOutFittingAccuracy="article.description.sizes.FittingAccuracy.fadeInOut",n.ArticleTemplatesMixAndMatchDisable="article-templates.mix-and-match.disable",n.ArticleTemplatesMixAndMatchInitialized="article-templates.mix-and-match.initialize",n.ImagemapSlideShowStopAll="imagemapSlideShowStopAll",n.ImagemapSlideShowStartAll="imagemapSlideShowStartAll",n.StageStopAll="stageStopAll",n.StageStartAll="stageStartAll",n.GalleryStopAll="galleryStopAll",n.GalleryStartAll="galleryStartAll",n.ComponentManagerResizeAll="componentManager.resizeAll",n.UnveilTrigger="Images.Unveil.trigger",n.AddressCountryChanged="address.country.changed",n.MandatoryGroupFieldCleanUp="form.mandatoryGroupField.cleanup",n.MandatoryGroupFieldTriggerUpdate=
"form.mandatoryGroupField.update",n.TrackActionControlEvent="actionControl.genericAction",n.TrackActionForSubject="actionControl.subjectAction",n.TogglePreparationsStarted="toggle.preparing",n.ToggleTransitionStarted="toggle.started",n.ToggleTransitionEnded="toggle.ended",n.ToggleTransitionAborted="toggle.aborted",n.FilterPanelHasSelectedCriteria="filter-panel.has-selected-criteria",n.FilterPanelHasNoSelectedCriteria="filter-panel.has-no-selected-criteria",n.FilterPanelResetSelectedCriteria="filter-panel.reset-selected-criteria",n.Rebuild="rebuild.",n.OrderTableCheckAllButtonShown="ordertable.checkallbutton.shown",n.OrderTableItemDeleted="ordertable.item.deleted",n.PageLayoutChanged="pageLayoutChanged",n.WindowSizeChanged="window.resized",n.WindowScrolled="window.scrolled",n.OrientationHasChanged="window.orientation-changed",n.ScrollToElement="scrollToElement",n.CustomerNoteMinify="customer-note.minify",n.CustomertypeOptionSelected="customertype.optionSelected",n.SustainabilityDetailsOpen="sustainability-details.open",
n.SustainabilityDetailsClose="sustainability-details.close",n.ScreenContentSwitcherHideScreen="screen-content-switcher.hide.screen",n.ScreenContentSwitcherShownScreen="screen-content-switcher.shown.screen",n.FreezerFreeze="freezer.freeze",n.FreezerUnfreeze="freezer.unfreeze",n.UpdatedDateRange="updated-date-range",n.ArticleListExpand="article-list.expand",n.ArticleListUpdate="article-list.update",n.ArticleListUpdateFinished="article-list.update.finished",n.SetArticleTileToSoldOut="article-tile.change-state.to-sold-out",n.PriceModeChanged="priceModeChanged",n.ArticleTileReplacedByHover="ArticleTileReplacedByHover",n.ArticleTileOpened="ArticleTileOpened",n.TriggerArticleTileIsInProximity="TriggerArticleTileIsInProximity",n.ArticleTilePrepare="ArticleTilePrepare",n.AvailableSizesClose="availablesizes.close",n.FsiViewerResume="fsi-viewer.resume",n.FsiViewerPause="fsi-viewer.pause",n.OHClearDateRangePicker="oh-clear-date-range-picker",n.AnchorJump="anchor-jump",n.SubmitButtonRebind="submit-button.rebind",n.PageTitleUpdated=
"page-title.updated",n.TriggerFocusAndBlur="trigger-focus-and-blur",n.ESSABasketFlyoutItemRemoved="ESSA.BasketFlyout.BasketFlyoutItemRemoved",n.ESSABasketFlyoutBasketItemCountChanged="ESSA.BasketFlyout.BasketItemCountChanged",n.ShowSubtitleBehindLink="link.show-subtitle-behind-link",n.ESPP2AlternativeArticlesServiceUpdate="ESPP2.AlternativeArticles.Service.Update",n.ESPP2AlternativeArticlesServiceUpdateFinished="ESPP2.AlternativeArticles.Service.UpdateFinished",n.ManualProductComparisonUpdateTouchPoints="ManualProductComparison.UpdateTouchPoints",n.ManualProductComparisonCreateScaleIconTouchPoints="ManualProductComparison.CreateScaleIconTouchPoints",n.ManualProductComparisonCreateCompareButtonTouchPoints="ManualProductComparison.CreateCompareButtonTouchPoints",n.ManualProductComparisonCloseFlyouts="ManualProductComparison.CloseFlyouts",n.ProductFinderOpen="ProductFinder.Open",n.ProductFinderReset="ProductFinder.Reset",n.ResponsiveLayoutHelperScaleChanged="responsive-layout-helper.scale-changed",n.FilterAndSortAllowedShowHoverContent=
"ESPP.FilterAndSort.AllowedShowHoverContent",n.FilterAndSortBlockShowHoverContent="ESPP.FilterAndSort.BlockShowHoverContent",n.FilterAndSortShouldCloseHoverContent="ESPP.FilterAndSort.ShouldCloseHoverContent",n.FilterAndSortPageShouldScrollToTop="ESPP.FilterAndSort.ShouldScrollToTop",n}();n.EventNames=t}(Common||(Common={})),function(n){var t=function(){function n(){}return n.LEFT=1,n.MIDDLE=2,n.RIGHT=3,n}();n.MouseButtons=t}(Common||(Common={})),function(n){var t=function(){function n(){}return n.FilterUrlRemoval=$("html").hasClass("FilterUrlRemoval"),n.View3dHtml5only=$("html").hasClass("3DViewHTML5only"),n.ABTestsEnabled=$("html").hasClass("EnableABTests"),n.ProductComparisonFlyout=$("html").hasClass("ProductComparisonFlyout"),n.ShowAlternativeArticles=$("html").hasClass("ShowAlternativeArticles"),n.HeadRUseResponsiveMetaViewport=$("html").hasClass("HeadRUseResponsiveMetaViewport"),n.PostalCodeUpdatedOnCitySelection=$("html").hasClass("PostalCodeUpdatedOnCitySelection"),n.FilterAndSortRewrite=$("html").hasClass(
"FilterAndSortRewrite"),n.LogoUpdateEssential=$("html").hasClass("LogoUpdateEssential"),n.LogoUpdateNiceToHave=$("html").hasClass("LogoUpdateNiceToHave"),n.LogoUpdateSecondary=$("html").hasClass("LogoUpdateSecondary"),n}();n.FeatureToggle=t}(Common||(Common={})),function(n){var t=function(){function n(){this.isIOS=!1;this.isAndroid=!1;this.isPhone=!1;this.isTablet=!1;this.isDesktop=!1;this.isIPad=!1;this.isAndroidTablet=!1;this.isMsie=!1;this.isIe11=!1;this.isIe10=!1;this.isIe9=!1;this.isIe8=!1;this.isIe7=!1;this.isLtIe10=!1;this.isLtIe9=!1;this.isLtIe8=!1;this.isEdge=!1;this.isOpera=!1;this.isWebkit=!1;this.isChrome=!1;this.isPhantom=!1;this.isTouchpad=!1;this.isSilk=!1;this.isMobile=!1;this.isHandheld=!1;this.isSafari=!1;this.isGecko=!1;this.isMozilla=!1;this.isFirefox=!1;this.isSeamonkey=!1;this.isGalaxyTab=!1;this.isGalaxyTabS=!1;this.isTouch=!1;this.isKioskDevice=!1;this.ua="";this.name="";this.version="";this.htmlElement=$("html");this.checkedFlashVersion=!1;this.detect()}return n.prototype.detect=function(
){var i,t,n;if(this.ua=navigator.userAgent,i=$("#sniff").html(),i!==undefined){t=$.parseJSON(i);for(n in t)t.hasOwnProperty(n)&&this.hasOwnProperty(n)&&(this[n]=t[n]);this.isMsie&&this.htmlElement.addClass("isMsie");this.isMsie&&parseInt(this.version)<12&&this.htmlElement.addClass("lt-ie12");this.isMsie&&parseInt(this.version)<11&&this.htmlElement.addClass("lt-ie11");this.isEdge&&this.htmlElement.addClass("isEdge");this.isOpera&&this.htmlElement.addClass("isOpera");this.isChrome&&this.htmlElement.addClass("isChrome");this.isSafari&&this.htmlElement.addClass("isSafari");this.isFirefox&&this.htmlElement.addClass("isFirefox");this.isWebkit&&this.htmlElement.addClass("isWebkit")}},n.prototype.hasFlash=function(){return(this.checkedFlashVersion||(swfobject.testPlayerVersion(),this.checkedFlashVersion=!0),swfobject.hasFlashPlayerVersion("7.0.0"))?!0:!1},n.prototype.usingParallax=function(){return utils.isParallaxpage()&&!this.htmlElement.hasClass("low-end")},n}();n.Sniff=t}(Common||(Common={}));sniff=new Common.Sniff,
function(n){var t=function(){function n(){this.jqBody=$("body")}return n.prototype.iPadPositionFixedWithKeyboard=function(n){var t=this;n.filter(":not(.quantity, .article)").on("blur",function(){_.delay(function(){n.filter(":focus").length||t.jqBody.removeClass("fix-fixed")},10)})},n.prototype.forceElementRepaint=function(n){n.css("display")!=="none"&&n.hide().show(0)},n.prototype.updateNewsletterTableBackgrounds=function(){$(".NewsletterInjection table[bgcolor]").each(function(n,t){var i=$(t);i.css("background-color",i.attr("bgcolor"))})},n}();n.Fixes=t}(Common||(Common={}));fixes=new Common.Fixes;$(document).ready(function(){fixes.updateNewsletterTableBackgrounds()}),function(n){var i=function(){function t(){this.domPrefixes=["webkit","moz","o","ms"];this.jqBody=$("body")}return t.prototype.htmlEncode=function(n){var t=document.createElement("textarea");return t.innerHTML=n,t.innerHTML},t.prototype.htmlDecode=function(n){var t=document.createElement("textarea");return t.innerHTML=n,t.value},t.prototype.isModifierKeyPressed=
function(n){return n.metaKey||n.ctrlKey||n.button===1?!0:!1},t.prototype.redirectOrHashNavigate=function(n,t){typeof hashManager!="undefined"?hashManager.handleLinkClick(n,t):this.redirect(n,t)},t.prototype.redirect=function(n,t){t&&this.isModifierKeyPressed(t)?window.open(n):window.location.href=n},t.prototype.reloadOrOpenLocation=function(n,t){if(utils.getBoolean(n)){window.location.reload();return}t&&(window.location.href=t,sniff.isIe11&&t.charAt(0)==="#"&&$(window).trigger("hashchange"))},t.prototype.getUrlParameter=function(n){for(var i,u=window.location.search.substring(1),r=u.split("&"),t=0;t<r.length;t++)if(i=r[t].split("="),i[0]==n)return i[1]},t.prototype.serializeUrlParameter=function(){for(var t,i={},u=window.location.search.substring(1),r=u.split("&"),n=0;n<r.length;n++)t=r[n].split("="),i[t[0]]=t[1].replace(/%2c/g,",");return i},t.prototype.getSecondAndToplevelDomain=function(){var t=document.location.hostname.split("."),n=t.length;return n>=2?t[n-2].length===2&&n>=3?t[n-3]+"."+t[n-2]+"."+t[n-1]:
t[n-2]+"."+t[n-1]:""},t.prototype.isFullscreenCapable=function(n){n===void 0&&(n=document);for(var t=0;t<this.domPrefixes.length;t++)if(n[this.domPrefixes[t]+"EnterFullScreen"])return this.requestFullscreenMethod=this.domPrefixes[t]+"EnterFullScreen",this.exitFullscreenMethod=this.domPrefixes[t]+"ExitFullScreen",!0;return!!n.requestFullScreen||!1},t.prototype.requestFullscreen=function(n){if(n===void 0&&(n=document),this.requestFullscreenMethod){n[this.requestFullscreenMethod]();return}n.requestFullScreen()},t.prototype.exitFullscreen=function(n){if(n===void 0&&(n=document),this.exitFullscreenMethod){n[this.exitFullscreenMethod]();return}n.exitFullScreen()},t.prototype.isStartpage=function(){return this.isOnStartpage==undefined&&(this.isOnStartpage=this.jqBody.hasClass("startpage")),this.isOnStartpage},t.prototype.isParallaxpage=function(){return this.isOnParallaxpage==undefined&&(this.isOnParallaxpage=this.jqBody.hasClass("parallax")),this.isOnParallaxpage},t.prototype.isPrintpage=function(){return this.isOnPrintpage==
undefined&&(this.isOnPrintpage=this.jqBody.hasClass("print")),this.isOnPrintpage},t.prototype.isCompanypage=function(){return this.isOnCompanypage==undefined&&(this.isOnCompanypage=this.jqBody.hasClass("company")||this.jqBody.hasClass("company-rewrite")),this.isOnCompanypage},t.prototype.isPresspage=function(){return this.isOnPresspage==undefined&&(this.isOnPresspage=this.jqBody.hasClass("press")||this.jqBody.hasClass("press-rewrite")),this.isOnPresspage},t.prototype.isMyshopPage=function(){return this.isOnMyshoppage==undefined&&(this.isOnMyshoppage=this.jqBody.hasClass("page-myshop")),this.isOnMyshoppage},t.prototype.isPlainHiddenFooterpage=function(){return this.isOnPlainHiddenFooterpage==undefined&&(this.isOnPlainHiddenFooterpage=this.jqBody.hasClass("plain")&&this.jqBody.hasClass("hidden-footer")),this.isOnPlainHiddenFooterpage},t.prototype.enableZoomingOnHandheld=function(){this.setZoomingOnHandhelds(!0)},t.prototype.preventZoomingOnHandheld=function(){this.setZoomingOnHandhelds(!1)},t.prototype.setZoomingOnHandhelds=
function(t){var i,r,u,f;n.FeatureToggle.HeadRUseResponsiveMetaViewport||sniff.isHandheld&&(i="",r="",modalManager.isModalOpen()&&(r=",maximum-scale=5.0",i=",maximum-scale=1.5"),u=$("#viewport"),f=t?"width=1000,user-scalable=yes"+r:"width=1000,user-scalable=no"+i,u.attr("content",f),sniff.isFirefox&&($("#viewport2").remove(),u.append('<meta id="viewport2" name="viewport" content="'+f+'">')))},t.prototype.escapeRegexpChars=function(n){return n.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},t.prototype.getBoolean=function(n){return _.isUndefined(n)?!1:n.toString().toLowerCase()=="true"?!0:!1},t.prototype.getOptionalBoolean=function(n){if(!n)return null;var t=n.toLowerCase();return t==="true"?!0:t==="false"?!1:null},t.prototype.getImageProperties=function(t){var r,i,u;if(!t.length)return $.Deferred().fail();r=$.Deferred();i=new Image;$(i).on("load",function(){var t=new n.ImageProperties;t.width=i.width;t.height=i.height;r.resolve(t)});return u=t.attr("src"),i.src=u,r},t.prototype.getKeyCode=function(n){return n.keyCode?
n.keyCode:n.charCode?n.charCode:n.which},t.prototype.getWindowWidth=function(){return top.window.innerWidth||document.documentElement.clientWidth||screen.availWidth},t.prototype.getWindowHeight=function(){return window.innerHeight||document.documentElement.clientHeight||screen.availHeight},t.prototype._parseCapabilities=function(){var i=this,r=$("body"),n,t;(this.capabilities={},n=r.data("cap"),n!=null)&&(t=n.split(","),$.each(t,function(n,t){var r=t.split("=");i.capabilities[r[0]]=r[1]}))},t.prototype.generateJsonpCallbackFunctionName=function(n,t){var r,i,u,f;if(this.capabilities==undefined&&this._parseCapabilities(),r="cb_"+n.replace(/[^a-zA-Z0-9_]+/g,""),i="",t.length)for(u in t)f=t[u],i+=this.capabilities[f];return i&&(r+="_caps_"+i),r},t.prototype.replaceState=function(t){_.isUndefined(history.replaceState)||(history.replaceState(null,null,t),n.UrlCleanupService.createInstance().cleanupUrl())},t.prototype.stripShy=function(n){return n.replace(/(&#173;|&#xad;|&shy;|­)/g,"")},t.prototype.setHtmlTitle=function(
n){document.title=this.stripShy(n)},t.prototype.isVelocityAnimating=function(n){return n&&n.hasClass("velocity-animating")},t.prototype.hasInitializedSimplebar=function(n){return n.find(".simplebar-scrollbar").length>0},t.prototype.getLocation=function(){return location},t.prototype.getCurrentUrlWithoutHash=function(){return window.location.href.replace(window.location.hash,"")},t.prototype.isNavigationLinkToCurrentPage=function(n,t,i){var r,u;return t===void 0&&(t=this.getCurrentUrlWithoutHash()),i===void 0&&(i=window.location.pathname),r=n&&n.length>0,r&&n[0]!=="#"&&(u=n.indexOf("#"),r=u>0&&(n.indexOf(t)===0&&u===t.length||n.indexOf(i)===0&&u===i.length)),r},t.prototype.preventEnterKeyForInputs=function(n){var t=this;n.on("keydown",function(n){var i=t.getKeyCode(n);i==Key.ENTER&&n.preventDefault()})},t.prototype.disableElementFocusOnTabKey=function(n,t){n.find(t).attr("tabindex","-1")},t.prototype.getHjaxTarget=function(n){var t=n.data("hjaxtarget");return t?this.decodeHjax(t):n.data("ajaxtarget")},t.prototype.
getModalHjaxTarget=function(n){var t=n.data("modal-hjaxtarget");return t?this.decodeHjax(t):n.data("modal-ajaxtarget")},t.prototype.decodeHjax=function(n){return n?(n=atob(n),decodeURIComponent(n)):null},t.prototype.encodeHjax=function(n){return n?(n=encodeURIComponent(n),btoa(n)):null},t}(),t;n.Utils=i;t=function(){function n(){}return n.prototype.aspectRatio=function(){return this.width/this.height},n}();n.ImageProperties=t}(Common||(Common={}));utils=new Common.Utils,function(n){var t=function(){function t(){}return t.prototype.reloadComponents=function(){this.carouselComponents=[carouselManager,carouselCrosssellingHandler,salesTeaserHandler];this.videoComponents=[videoHandlers,videoOverlayResizer]},t.prototype.stopSlideshows=function(){eventAggregator.publish(n.EventNames.ImagemapSlideShowStopAll);eventAggregator.publish(n.EventNames.StageStopAll);eventAggregator.publish(n.EventNames.GalleryStopAll);console.log("slideshows stopped")},t.prototype.startSlideshows=function(){eventAggregator.publish(n.EventNames.
ImagemapSlideShowStartAll);eventAggregator.publish(n.EventNames.StageStartAll);eventAggregator.publish(n.EventNames.GalleryStartAll);console.log("slideshows started")},t.prototype.stopCarousels=function(){this.reloadComponents();$.each(this.carouselComponents,function(n,t){t.stopAll()});console.log("carousels stopped")},t.prototype.startCarousels=function(){this.reloadComponents();$.each(this.carouselComponents,function(n,t){t.startAll()});console.log("carousels started")},t.prototype.stopVideos=function(){this.reloadComponents();$.each(this.videoComponents,function(n,t){t.stopAll()});console.log("videos stopped")},t.prototype.startVideos=function(){this.reloadComponents();$.each(this.videoComponents,function(n,t){t.startAll()});console.log("videos started")},t.prototype.stopAll=function(){this.stopSlideshows();this.stopCarousels();this.stopVideos()},t.prototype.startAll=function(){this.startSlideshows();this.startCarousels();this.startVideos()},t.prototype.deleteLocalStorage=function(){localStorage.clear();sessionStorage.
clear()},t}();n.Debug=t}(Common||(Common={}));$(document).ready(function(){debugTools=new Common.Debug}),function(n){var t=function(){function n(){this.isEnabledBeforePostbackProperty="is-enabled-before-postback"}return n.prototype.disableInvisibleInputs=function(n){var t=this;return n.find("input:not( [data-submit-when-hidden] ), select:not( [data-submit-when-hidden] ), textarea:not( [data-submit-when-hidden] )").each(function(n,i){var r=$(i);r.parents(":hidden").length&&!r.prop(t.isEnabledBeforePostbackProperty)&&r.prop(t.isEnabledBeforePostbackProperty,!r.prop("disabled")).prop("disabled",!0)})},n.prototype.reEnableInvisibleInputs=function(n){var t=this;n&&n.each(function(n,i){var r=$(i);r.prop(t.isEnabledBeforePostbackProperty)&&r.prop("disabled",!1);r.removeProp(t.isEnabledBeforePostbackProperty)})},n.prototype.initializeDisablingOnForm=function(n){var t=this;n.off(".input-disabling-helper").on("submit.input-disabling-helper",function(){var i=t.disableInvisibleInputs(n);_.delay(function(){return t.reEnableInvisibleInputs(
i)},100)})},n}();n.InputDisablingHelper=t;DependencySystem.define(t).as(DS.Factory)}(Common||(Common={})),function(n){var t=function(){function t(){var t=this;this.currentHash=window.location.hash;this.currentHashTargetSelector="body:not(.parallax) header + div :target";this.anchorLinksSelector='body:not(.parallax) *[href^="#"]';this.elements=n.ElementRepository.getInstance();this.anchorOffset=this.getAnchorOffset();this.elements.html().on("click",this.anchorLinksSelector,function(n){var i=$(n.currentTarget).attr("href");i==t.currentHash&&(n.preventDefault(),t.jumpToHashTarget())});sniff.isIPad?this.elements.document().ready(this.handlePageReloadJump.bind(this)):this.elements.window().load(this.handlePageReloadJump.bind(this))}return t.prototype.handlePageReloadJump=function(){var n=this;window.location.hash===""||!this.currentHash||utils.isParallaxpage()||utils.isMyshopPage()||(sniff.isMsie||(window.location.href=this.currentHash),this.jumpToHashTarget());this.elements.window().on("hashchange",function(){return n.
handleHashChange()})},t.prototype.handleHashChange=function(){this.currentHash=window.location.hash;this.jumpToHashTarget()},t.prototype.jumpToHashTarget=function(){var t=this,i=$(this.currentHashTargetSelector);i.length&&_.delay(function(){var r=t.elements.window().scrollTop(),u;r===0&&sniff.isIPad&&(u=i.offset().top,u>t.anchorOffset&&(r=u));t.elements.window().scrollTop(r-t.anchorOffset);eventAggregator.publish(n.EventNames.AnchorJump,i)},1)},t.prototype.getAnchorOffset=function(){var n=$(document).find(".scope-breadcrumb"),t,i;return n.length>0?(t=n.outerHeight()+10,i=$(document).find(".mkt-scope-headr ").outerHeight(),t+i):sniff.isDesktop?110:40},t}();n.HashHandler=t}(Common||(Common={}));new Common.HashHandler,function(n){var t=function(){function n(){this.readState()}return n.prototype.readState=function(){this.stateLoaded||(this.stateObject=_.isObject(history.state)?history.state:{},this.stateLoaded=!0)},n.prototype.persistState=function(){history.replaceState(this.stateObject,null)},n.prototype.setValue=
function(n,t,i){_.isUndefined(this.stateObject[n])&&(this.stateObject[n]={});this.stateObject[n][t]=i;this.persistState()},n.prototype.getValue=function(n,t){return _.isUndefined(this.stateObject[n])||_.isUndefined(this.stateObject[n][t])?null:this.stateObject[n][t]},n.prototype.setNamespace=function(n,t){this.stateObject[n]=t;this.persistState()},n.prototype.getNamespace=function(n){return _.isUndefined(this.stateObject[n])?{}:this.stateObject[n]},n.prototype.replaceUrl=function(n){var t=null;_.isEmpty(this.stateObject)||(t=this.stateObject);history.replaceState(t,null,n)},n}();n.HistoryState=t;DependencySystem.define(t).as(DS.Singleton)}(Common||(Common={})),function(n){var t=function(){function n(){this.initializeStorageObject()}return n.prototype.initializeStorageObject=function(){var t=!0,n;try{n="__test__";localStorage.setItem(n,n);localStorage.removeItem(n)}catch(i){t=!1}this.storageObject=t?localStorage:{}},n.prototype.setValue=function(n,t,i){var r=this.getNamespace(n);r[t]=i;this.setNamespace(n,r)},
n.prototype.getValue=function(n,t){var i=this.getNamespace(n);return _.isUndefined(i[t])?null:i[t]},n.prototype.setNamespace=function(n,t){this.storageObject[n]=JSON.stringify(t)},n.prototype.getNamespace=function(n){if(_.isUndefined(this.storageObject[n]))return{};try{return JSON.parse(this.storageObject[n])}catch(t){return{}}},n}();n.LocalStorage=t;DependencySystem.define(t).as(DS.Singleton)}(Common||(Common={})),function(n){var t=function(){function t(){this.addEvents();this.status=[]}return t.prototype.addEvents=function(){var t=this;eventAggregator.subscribe(n.EventNames.MandatoryGroupFieldCleanUp,function(n){t.removeElement(n)})},t.prototype.triggerChange=function(t,i){var r={groupName:t,isMandatory:i};eventAggregator.publish(n.EventNames.MandatoryGroupFieldTriggerUpdate,r)},t.prototype.removeElement=function(n){var t=this.status.indexOf(n);t!=-1&&this.status.splice(t,1)},t.prototype.updateAndCheckForFilledElements=function(n){var t=!1;return this.status.forEach(function(i){n.groupName==i.groupName&&(n.
elementId==i.elementId&&(i.isFilled=n.isFilled),i.isFilled&&(t=!0))}),t},t.prototype.checkForFilledElements=function(n){var t=!1;this.status.forEach(function(i){n==i.groupName&&i.isFilled&&(t=!0)});t&&this.triggerChange(n,!0)},t.prototype.register=function(n,t,i){if(_.isUndefined(n))return null;var r={groupName:n,elementId:t,isFilled:i};return this.status.push(r),r},t.prototype.checkChangedInput=function(n,t){if(!n||!t.isFilled){t.isFilled=!!n;var i=this.updateAndCheckForFilledElements(t);(t.isFilled||!i)&&this.triggerChange(t.groupName,i)}},t}();n.MandatoryGroupService=t;DependencySystem.define(t).as(DS.Singleton).andResolveIt()}(Common||(Common={})),function(n){var t=function(){function t(){this.frozenCount=0}return t.createInstance=function(){return DependencySystem.resolve(t)},t.prototype.introduce=function(n,t,i,r){if(!i||!t||!r)throw new Error("Freezer: One or more callback functions are falsy values.");var u=utils.getBoolean(n.data("resume-in-background"));u||(this.boundElement=n,this.onFreezing=t,this.
onUnfreezing=i,this.shouldBeFrozen=r,this.bindEvents())},Object.defineProperty(t.prototype,"isFrozen",{get:function(){return this.frozenCount>0},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},t.prototype.bindEvents=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:n.EventNames.FreezerFreeze,callback:this.freeze.bind(this)},{message:n.EventNames.FreezerUnfreeze,callback:this.unfreeze.bind(this)}])},t.prototype.freeze=function(n){var t=this;this.doesNotFulfillFreezingRequirements(n)||(this.isFrozen?this.frozenCount++:$.when(this.onFreezing()).then(function(){t.frozenCount++}))},t.prototype.unfreeze=function(n){this.doesNotFulfillUnfreezingRequirements(n)||(this.frozenCount--,this.isFrozen||this.onUnfreezing())},t.prototype.doesNotFulfillFreezingRequirements=function(n){return n===void 0&&(n=function(){return!0}),!this.shouldBeFrozen()||!n(this.boundElement[0])},t.prototype.doesNotFulfillUnfreezingRequirements=function(
n){return n===void 0&&(n=function(){return!0}),!this.isFrozen||!n(this.boundElement[0])},t}();n.Freezer=t;DependencySystem.define(t).as(DS.Factory)}(Common||(Common={})),function(n){var t=function(){function n(n){this.body=n.body()}return n.prototype.introduce=function(n,t,i){if(!t||!n||!i)throw new Error("Simple Freezer: One or more callback functions are falsy values.");i()&&(this.onFreezing=n,this.onUnfreezing=t,this.bindEvents())},n.prototype.bindEvents=function(){var n=_.throttle(this.freeze.bind(this),100,{trailing:!1}),t=_.throttle(this.unfreeze.bind(this),100,{trailing:!1});this.body.on("shown.bs.modal.simplefreezer shown.headerflyout.simplefreezer",n.bind(this));this.body.on("hide.bs.modal.simplefreezer hide.headerflyout.simplefreezer",t.bind(this))},n.prototype.freeze=function(){this.isFrozen||(this.onFreezing(),this.isFrozen=!0)},n.prototype.unfreeze=function(){this.isFrozen&&(this.onUnfreezing(),this.isFrozen=!1)},n.prototype.destroy=function(){this.body.off(".simplefreezer")},n}();n.SimpleFreezer=
t;DependencySystem.define(t).as(DS.Factory).andInject([n.ElementRepository])}(Common||(Common={})),function(n){var t=function(){function n(n){this.historyState=n;this.cleanupUrl()}return n.createInstance=function(){return DependencySystem.resolve(n)},n.prototype.cleanupUrl=function(){var i,t,n;if(!utils.isMyshopPage()&&(i=$('head meta[name = "hidden-query-params"]').attr("content"),!_.isUndefined(i))){var f=i.split(","),e=window.location.hash,r=window.location.href.split("#")[0].split("?");if(r.length===2){t=r[1].split("&");$.each(f,function(n,i){t=t.filter(function(n){return!n.match("^"+$.trim(i)+"(?==)")})});n="";$.each(t,function(t,i){n=t===0?"?"+i:n+"&"+i});try{this.historyState.replaceUrl(r[0]+n+e)}catch(u){typeof u.message=="string"}}}},n}();n.UrlCleanupService=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.HistoryState]).andResolveIt()}(Common||(Common={})),function(n){var t=function(){function n(){}return n.prototype.rebuildUrl=function(n,t){var u=n.split("#"),f=u[0].split("?"),r=f[0],i=[];
return f.length===2&&$.merge(i,f[1].split("&")),t&&$.merge(i,t.split("&")),i.length&&(i.sort(),r+="?",r+=i.join("&")),u.length===2&&(r+="#"+u[1]),r},n}();n.QueryParamHelper=t;DependencySystem.define(t).as(DS.Singleton)}(Common||(Common={})),function(n){var t=function(){function t(n){this.linkSelector="[href][data-params]";this.queryParamHelper=n;this.delegateRebuildHandling()}return t.prototype.delegateRebuildHandling=function(){n.ElementRepository.getInstance().body().on("mouseover touchstart",this.linkSelector,this.rebuildHrefCallback.bind(this))},t.prototype.rebuildHrefCallback=function(n){this.rebuildHref($(n.target))},t.prototype.rebuildHref=function(n){var t,i;return n.length?(t=n.attr("href")&&n.data("params")?n:n.closest(this.linkSelector),!t.length)?n:(i=this.queryParamHelper.rebuildUrl(t.attr("href"),t.data("params")),t.attr("rel","nofollow").removeAttr("data-params").data("params",null).attr("href",i)):n},t}();n.HrefRebuildService=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.QueryParamHelper]).
andResolveIt()}(Common||(Common={})),function(n){var t=function(){function n(){}return n.prototype.initializeFor=function(t,i){this.domContext=t;var r=$.extend({},n.defaultSettings,i);return t.isotope(r),this.layOut()},n.prototype.rearrange=function(n,t){this.checkThatIsotopeIsInitialized();var i=$.Deferred();return this.domContext.isotope("once","layoutComplete",function(){i.resolve()}),n?this.domContext.isotope("reloadItems").isotope(t):this.domContext.isotope(t),i.promise()},n.prototype.reloadItems=function(){this.checkThatIsotopeIsInitialized();var n=$.Deferred();return this.domContext.isotope("reloadItems"),n.resolve().promise()},n.prototype.remove=function(n,t){this.checkThatIsotopeIsInitialized();var i=$.Deferred();return n.length?(this.domContext.isotope("once","removeComplete",function(){LifeCycleSystem.remove(n).then(function(){i.resolve()})}),t?this.domContext.isotope("reloadItems").isotope("remove",n):this.domContext.isotope("remove",n)):i.resolve(),i.promise()},n.prototype.addItems=function(n){this.
checkThatIsotopeIsInitialized();var t=$.Deferred();return n.length?(this.domContext.append(n),this.domContext.isotope("addItems",n),t.resolve()):t.resolve(),t.promise()},n.prototype.insert=function(n,t){this.checkThatIsotopeIsInitialized();var i=$.Deferred();return n.length?(this.domContext.isotope("once","layoutComplete",function(){i.resolve()}),t?this.domContext.isotope("reloadItems").isotope("insert",n):this.domContext.isotope("insert",n)):i.resolve(),i.promise()},n.prototype.layOut=function(){this.checkThatIsotopeIsInitialized();var n=$.Deferred();return this.domContext.isotope("once","layoutComplete",function(){n.resolve()}),this.domContext.isotope("layout"),n.promise()},n.prototype.destroy=function(){this.domContext&&(this.domContext.isotope("destroy"),this.domContext=undefined)},n.prototype.checkThatIsotopeIsInitialized=function(){if(!this.domContext)throw new Error("You have yet to initialize isotope for a container. Use the <initializeFor> method!");},n.defaultSettings={transitionDuration:sniff.isHandheld?
"0ms":"400ms",layoutMode:"fitRows",initLayout:!1},n}();n.IsotopeLayout=t;DependencySystem.define(t).as(DS.Factory)}(Common||(Common={})),function(n){var t=function(){function t(n){this.htmlElementPriceModeNetClass="current-pricemode-net";this.htmlElementPriceModeGrossClass="current-pricemode-gross";this.currentPriceMode=n.meta("current-pricemode");this.htmlElement=n.html();this.initializeChangeEvent()}return Object.defineProperty(t.prototype,"currentPriceModeValue",{get:function(){return this.currentPriceMode.attr("content")},enumerable:!0,configurable:!0}),t.prototype.initializeChangeEvent=function(){var t=this;this.priceModeChangedEvent=eventAggregator.subscribe(n.EventNames.PriceModeChanged,function(n){t.currentPriceMode.attr("content",n);t.updateCurrentPriceModeOnHtml(n)})},t.prototype.updateCurrentPriceModeOnHtml=function(n){n=n.toLowerCase();this.htmlElement.toggleClass(this.htmlElementPriceModeGrossClass,n==="gross").toggleClass(this.htmlElementPriceModeNetClass,n==="net")},t.prototype.destroy=function(
){eventAggregator.unSubscribe(n.EventNames.PriceModeChanged,this.priceModeChangedEvent)},t}();n.PriceModeUpdater=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.ElementRepository]).andResolveIt()}(Common||(Common={})),function(n){var t=function(){function t(){this.subscribe()}return t.prototype.subscribe=function(){var t=eventAggregator;t.subscribe(n.EventNames.PriceModeChanged,this.priceModeChangedCallback.bind(this))},t.prototype.priceModeChangedCallback=function(n){window.shell&&window.shell.publishTo("PriceModeChanged",n)},t}();n.PriceModeAppShellBridgeService=t;DependencySystem.define(t).as(DS.Singleton).andResolveIt()}(Common||(Common={})),function(n){var t=function(){function n(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.dictionary={};this.flushCaches();this.keysCacheIsObsolete=!1;this.valuesCacheIsObsolete=!1;this.keyValuePairsCacheIsObsolete=!1;t.length&&this.add.apply(this,t)}return n.prototype.add=function(n,t){var i=this;return typeof n=="string"?this.dictionary[n]=
t:Array.isArray(n)?n.forEach(function(n){i.dictionary[n.key]=n.value}):n.keys.forEach(function(t){i.dictionary[t]=n[t]}),this.markCachesAsObsolete(),this},n.prototype.removeByKey=function(n,t){var i=this;return t===void 0&&(t=!1),typeof n=="string"?delete this.dictionary[n]:n.forEach(function(n){delete i.dictionary[n]}),t&&this.flushCaches(),this.markCachesAsObsolete(),this},n.prototype.contains=function(n){return!!this.dictionary[n]},n.prototype.get=function(n){return this.dictionary[n]},Object.defineProperty(n.prototype,"keys",{get:function(){return this.keysCacheIsObsolete&&this.refreshKeysCache(),this._keys},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"values",{get:function(){return this.valuesCacheIsObsolete&&this.refreshValuesCache(),this._values},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"keyValuePairs",{get:function(){return this.keyValuePairsCacheIsObsolete&&this.refreshKeyValuePairsCache(),this._keyValuePairs},enumerable:!0,configurable:!0}),Object.defineProperty(
n.prototype,"length",{get:function(){return this.keys.length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isEmpty",{get:function(){return!this.length},enumerable:!0,configurable:!0}),n.prototype.refreshKeysCache=function(){this._keys=Object.keys(this.dictionary);this.keysCacheIsObsolete=!1},n.prototype.refreshValuesCache=function(){var n=this;this._values=this.keys.map(function(t){return n.dictionary[t]});this.valuesCacheIsObsolete=!1},n.prototype.refreshKeyValuePairsCache=function(){var n=this;this._keyValuePairs=this.keys.map(function(t){return{key:t,value:n.dictionary[t]}});this.keyValuePairsCacheIsObsolete=!1},n.prototype.flushCaches=function(){this._keys=[];this._values=[];this._keyValuePairs=[]},n.prototype.markCachesAsObsolete=function(){this.keysCacheIsObsolete=!0;this.valuesCacheIsObsolete=!0;this.keyValuePairsCacheIsObsolete=!0},n}();n.Dictionary=t;DependencySystem.define(t).as(DS.Factory)}(Common||(Common={})),function(n){var t=function(){function n(){this.collection=[]}return n.
prototype.push=function(n){this.collection.unshift(n)},n.prototype.pop=function(){return this.collection.pop()},n.prototype.peek=function(){return this.collection[this.count-1]},Object.defineProperty(n.prototype,"count",{get:function(){return this.collection.length},enumerable:!0,configurable:!0}),n}();n.Queue=t;DependencySystem.define(t).as(DS.Factory)}(Common||(Common={})),function(n){var t=function(){function n(){this.collection=[]}return n.prototype.push=function(n){this.collection.push(n)},n.prototype.pop=function(){return this.collection.pop()},n.prototype.peek=function(){return this.collection[this.count-1]},Object.defineProperty(n.prototype,"count",{get:function(){return this.collection.length},enumerable:!0,configurable:!0}),n}();n.Stack=t;DependencySystem.define(t).as(DS.Factory)}(Common||(Common={})),function(n){var t;(function(n){n[n.width=0]="width";n[n.height=1]="height";n[n.innerWidth=2]="innerWidth";n[n.innerHeight=3]="innerHeight";n[n.outerWidth=4]="outerWidth";n[n.outerHeight=5]="outerHeight"}
)(t=n.ActualMethod||(n.ActualMethod={}))}(JQueryPlugins||(JQueryPlugins={})),function(n){n.fn.actual=function(t,i){function h(){var t={absolute:!1,includeMargin:!1,display:"block"};return n.extend(t,i)}function c(){return f.toArray().map(function(t){return n(t).attr("style")})}function l(){f.each(function(t,i){n(i).attr("style",e[t]?e[t]+";"+o:o)})}function a(){return JQueryPlugins.ActualMethod[t].indexOf("outer")!==-1?u[JQueryPlugins.ActualMethod[t]](r.includeMargin):u[JQueryPlugins.ActualMethod[t]]()}function v(){f.each(function(t,i){var r=n(i),u=e[t];u?r.attr("style",u):r.removeAttr("style")})}var r=h(),u=this.first(),f=u.parents().addBack().filter(":hidden"),e=c(),o="visibility: hidden !important; display: "+r.display+" !important; "+(r.absolute?"position: absolute !important; ":""),s;return l(),s=a(),v(),s}}(jQuery),function(n){n.fn.use=function(n){return n.install(this),this}}(jQuery),function(n){n.fn.ddCss=function(n,t,i){return sniff.isDesktop&&this.find(i.desktop).css(n,t),sniff.isHandheld&&this.find(
i.handheld).css(n,t),this}}(jQuery),function(n){n.expr[":"]["white-spaces-only"]=function(t){var i=n(t);return!i.children().length&&!i.text().match(/\S/)}}(jQuery),function(n){n.fn.positionF=function(){var t=this.css("display"),i=this.css("opacity"),n;return this.css({display:"block",opacity:0}),n=this.position(),this.css({display:t,opacity:i}),n}}(jQuery),function(n){n.fn.orientation=function(){if(_.isUndefined(window.orientation)){if(!_.isUndefined(window.matchMedia))return window.matchMedia("(orientation: portrait)").matches?0:90}else return window.orientation;return 0}}(jQuery),function(n){var t=function(t,i){var r=n.Deferred(),f=setTimeout(function(){i?r.resolve(i):r.resolve()},t),u=r.promise();return u.abort=function(n){clearTimeout(f);var t=typeof n=="string"?", because of: "+n:"";return r.reject("promise and resulting operations aborted"+t),u},u.skip=function(){return i?r.resolve(i):r.resolve(),clearTimeout(f),u},u};n.wait=function(n){return t(n)};n.fn.wait=function(n){return t(n,this)}}(jQuery),function(
n){n.fn.overlapsWith=function(t){function u(n){var t=n.offset();return{minX:t.left,minY:t.top,maxX:t.left+n.outerWidth(),maxY:t.top+n.outerHeight()}}function i(n,t){return{direction:n,overlap:t}}function e(n,t){if(n.minY<=t.minY)return i("bottom",n.maxY-t.minY);if(n.maxY<=t.maxY){var r=n.maxY-n.minY+(t.maxY-n.maxY);return i("full",r)}return i("top",t.maxY-n.minY)}function o(n,t){if(n.minX<=t.minX)return i("right",n.maxX-t.minX);if(n.maxX<=t.maxX){var r=n.maxX-n.minX+(t.maxX-n.maxX);return i("full",r)}return i("left",t.maxX-n.minX)}var f=this,r=[];return t?(f.each(function(i,f){var h=n(f),s=u(h);t.not(h).each(function(t,i){var h=n(i),f=u(h),c;if(s.minX>=f.maxX||s.maxX<=f.minX||s.minY>=f.maxY||s.maxY<=f.minY)return!0;c={element:h,overlapX:o(s,f),overlapY:e(s,f)};r.push(c)})}),r):r}}(jQuery),function(n){n.event.special["delta-scroll"]={delegateType:"scroll",bindType:"scroll",handle:function(n){var t=n.handleObj,r=t.data.xThreshold,u=t.data.yThreshold,e;if(!(!r||r<0)||!(!u||u<0)){var i=n.target,f=i===document,o=t.
handler.__left||(f?i.documentElement.scrollLeft+i.body.scrollLeft:i.scrollLeft),s=t.handler.__top||(f?i.documentElement.scrollTop+i.body.scrollTop:i.scrollTop);t.handler.__left=f?i.documentElement.scrollLeft+i.body.scrollLeft:i.scrollLeft;t.handler.__top=f?i.documentElement.scrollTop+i.body.scrollTop:i.scrollTop;var h=t.handler.__xDelta||0,c=t.handler.__yDelta||0,l=Math.abs(t.handler.__left-o),a=Math.abs(t.handler.__top-s);return t.handler.__xDelta=h+l,t.handler.__yDelta=c+a,r>0&&r<=t.handler.__xDelta||u>0&&u<=t.handler.__yDelta?(n.type=t.origType,e=t.handler.apply(this,arguments),n.type=t.type,t.handler.__xDelta=0,t.handler.__yDelta=0,e):void 0}}}}(jQuery),function(n,t){function i(n){var t=r(n),i=s(t.data,t.events),f=u(t.eventHandler,t.data);return[i,t.selector,t.data,f].filter(function(n){return typeof n!="undefined"})}function r(n){var r,i,t;return typeof n[1]=="string"?(r=n[1],typeof n[2]=="object"?(i=n[2],t=n[3]):t=n[2]):typeof n[1]=="object"?(i=n[1],t=n[2]):t=n[1],{events:n[0],selector:r,data:i,eventHandler:
t}}function u(n,i){if(!i)return n;var r,u,s;return i.delay>=0?r=f(n,i):i.debounce>=0?r=t.debounce(n,i.debounce,i.immediate):i.throttle>=0&&(r=t.throttle(n,i.throttle,{leading:i.leading,trailing:i.trailing})),typeof i.conditions=="function"&&(u=e(r||n,i)),(i.preventDefault||i.stopPropagation)&&(s=o(u||r||n,i)),s||u||r||n}function f(n,i){return function(){for(var f,u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];f=[n,i.delay].concat(u);t.delay.apply(t,f)}}function e(n,t){return function(i){t.conditions(i)&&n.apply(this,arguments)}}function o(n,t){return function(i){t.preventDefault&&i.preventDefault();t.stopPropagation&&i.stopPropagation();n.apply(this,arguments)}}function s(n,t){return n&&n.namespaces?t.split(" ").map(function(t){return t+n.namespaces}).join(" "):t}n.fn.dsOn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.on.apply(this,i(t))};n.fn.dsOne=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.one.apply(this,i(t))}}(jQuery,_),function(n)
{function t(t,i,r){var f=n.extend({overall:0},r),u;try{u=t.getBoundingClientRect()}catch(e){return!1}return i(u,f)}function r(n,t){return n.top===0&&n.right===0&&n.bottom===0&&n.left===0&&n.width===0&&n.height===0?!1:n.top>=0+(t.top||t.overall)&&n.right<=i.width()-(t.right||t.overall)&&n.bottom<=i.height()-(t.bottom||t.overall)&&n.left>=0+(t.left||t.overall)}function u(n,t){return n.top===0&&n.right===0&&n.bottom===0&&n.left===0&&n.width===0&&n.height===0?!1:n.top<i.height()-(t.top||t.overall)&&n.right>0+(t.left||t.overall)&&n.bottom>0+(t.top||t.overall)&&n.left<i.width()-(t.right||t.overall)}var i=n(window);n.fn.minPartlyInsideViewport=function(n){return this.filter(function(i,r){return t(r,u,n)})};n.fn.completelyInsideViewport=function(n){return this.filter(function(i,u){return t(u,r,n)})};n.fn.minPartlyOutsideViewport=function(n){return this.filter(function(i,u){return!t(u,r,n)})};n.fn.completelyOutsideViewport=function(n){return this.filter(function(i,r){return!t(r,u,n)})};n.fn.isMinPartlyInsideViewport=function(
n){return this.length===this.minPartlyInsideViewport(n).length};n.fn.isCompletelyInsideViewport=function(n){return this.length===this.completelyInsideViewport(n).length};n.fn.isMinPartlyOutsideViewport=function(n){return this.length===this.minPartlyOutsideViewport(n).length};n.fn.isCompletelyOutsideViewport=function(n){return this.length===this.completelyOutsideViewport(n).length};n.expr[":"]["min-partly-inside-viewport"]=function(n){return t(n,u)};n.expr[":"]["completely-inside-viewport"]=function(n){return t(n,r)};n.expr[":"]["min-partly-outside-viewport"]=function(n){return!t(n,r)};n.expr[":"]["completely-outside-viewport"]=function(n){return!t(n,u)}}(jQuery),function(n){n.fn.findIncludingSelf=function(n){return this.find(n).addBack(n)};n.fn.closestIncludingSelf=function(n){return this.closest(n).addBack(n)}}(jQuery),function(n){function i(n,t){var i=btoa(encodeURIComponent(t));return n.data("htarget",i)}function r(n){var i=n.data("htarget");return i?encodeURI(t(atob(i))):n.prop("href")}function u(n,t){var
i=btoa(encodeURIComponent(t));return n.data("hjaxtarget",i)}function f(n){var t=n.data("hjaxtarget");return t?decodeURIComponent(atob(t)):n.data("ajaxtarget")}function t(n){var i=n;try{i=decodeURIComponent(n);i!==decodeURIComponent(i)&&(i=t(i))}finally{return i}}n.fn.href=function(n){return n?this.prop("href",n):this.prop("href")};n.fn.target=function(n){return n?this.data("target",n):this.data("target")};n.fn.hTarget=function(n){return n?i(this,n):r(this)};n.fn.ajaxTarget=function(n){return n?this.data("ajaxtarget",n):this.data("ajaxtarget")};n.fn.hjaxTarget=function(n){return n?u(this,n):f(this)}}(jQuery),function(n){var t=function(){function n(){this.tooltipSpace=2;this.debounceRate=100;this.updateSubscription=eventAggregator.subscribe(Common.EventNames.TooltipVisibilityChanged,_.debounce(this.updateSpacingForTipsInContainer.bind(this),this.debounceRate,!1))}return n.prototype.updateSpacingForTipsInContainer=function(n){var r=this,i,t;n.length&&(i=n.find(".qtip:visible"),t=n.find(".tooltip-align-container"),
t.each(function(n,u){var f=$(u);r.updateElementSpacing(f,n,i,t)}))},n.prototype.updateElementSpacing=function(n,t,i,r){var f=this,s=parseInt(n.css("margin-top"));if(_.isUndefined(n.data("original-top-margin"))&&n.data("original-top-margin",s),!n.hasClass("has-open-tooltip")){this.animateTooltipSpacing(n);return}var h=n.find(".qtip"),e=n.data("original-top-margin"),o=n.data("tooltip-position"),u=e;h.each(function(s,h){var a=$(h),p=i.index(a),l;if(p>0){var v=parseInt(n.css("margin-top")),y=parseInt(r.eq(t-1).css("margin-bottom")),c=f.getSpacingToPreviousTip(a,n,i);o!=="down"&&(c!==0||v===e)?c-=f.tooltipSpace:o==="down"&&c===0&&(c=f.getContainerSpacingToPreviousTip(n.find(".tooltip-target"),i));c-=c<0?y:0;c===-y&&(c-=f.tooltipSpace);l=v-c;l>u&&(u=l)}});u<e&&(u=e);this.animateTooltipSpacing(n,u)},n.prototype.getContainerSpacingToPreviousTip=function(n,t){for(var r=n.overlapsWith(t),u=0,i=0;i<r.length;i++)r[i].overlapY.direction==="top"&&(u=-r[i].overlapY.overlap);return u},n.prototype.getSpacingToPreviousTip=function(
n,t,i){for(var s,u,f,h,c,e=n.overlapsWith(i),o=0,r=0;r<e.length;r++)e[r].overlapY.direction==="top"&&(o=-e[r].overlapY.overlap);if(o<=0)return o;for(s=i.index(n),u=s;u>=1;u--)if(f=i.eq(u),!$.contains(t.get(0),f.get(0)))return h=f.offset().top+f.outerHeight(!0),c=n.offset().top,c-h;return 0},n.prototype.animateTooltipSpacing=function(n,t){var i=t||n.data("original-top-margin");n.velocity("stop").velocity({"margin-top":i},null,"linear");return},n}();n.TooltipSpacing=t;DependencySystem.define(t).as(DS.Singleton)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.fadeDuration=40;this.errorTipClass="qtip-red ";this.regularTipClass="qtip-light ";this.origin=n;this.tooltipTarget=this.origin.contextQuery;this.parentForm=this.tooltipTarget.closest("form");this.initializeContainer();this.initializePositionConfig();this.setUpToolTip();this.subscribeEvents()}return n.prototype.initializeContainer=function(){var n,t;this.typeaheadContainer=this.tooltipTarget.parent(".twitter-typeahead");this.
alignmentContainer=this.tooltipTarget.closest(".tooltip-align-container");n=this.getTargetElementContainer();this.errorContent=n.siblings(".errorContainer").first();this.errorContent.length||(this.errorContent=n.closest(".input-clear-container").siblings(".errorContainer").first());this.tooltipContent=n.siblings(".tooltipContainer").first();this.tooltipContent.length||(this.tooltipContent=n.closest(".input-clear-container").siblings(".tooltipContainer").first());t=this.tooltipTarget.data("tooltipid");t&&(this.scopedContents=this.alignmentContainer.find('.scoped-tooltip[data-tooltip-input="'+t+'"]'))},n.prototype.subscribeEvents=function(){this.eventSubscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.HideErrors,callback:this.removeErrorCallback.bind(this)},{message:Common.EventNames.TooltipRemoveError,callback:this.removeErrorCallback.bind(this)},{message:Common.EventNames.TooltipShowError,callback:this.showErrorCallback.bind(this)},{message:Common.EventNames.TooltipHideAll,callback:this.
hideAllCallback.bind(this)},{message:Common.EventNames.TooltipUpdateContent,callback:this.updateTooltipContentCallback.bind(this)},{message:Common.EventNames.TooltipUpdateScope,callback:this.updateTooltipScopeCallback.bind(this)}])},n.prototype.initializePositionConfig=function(){var n=this.positionConfiguration={};this.tooltipTarget.hasClass("tooltip-left")?(n.tipMy="center right",n.tipAt="bottom left",n.offsetX=-5,n.offsetY=this.tooltipTarget.attr("type")==="checkbox"?-7:-10):this.tooltipTarget.hasClass("tooltip-down")?(n.tipMy="top left",n.tipAt="center left",n.offsetX=4,n.offsetY=13):(n.tipMy="center left",n.tipAt="center right",n.offsetX=5,n.offsetY=0)},n.prototype.getTargetElementContainer=function(){return this.typeaheadContainer.length>0?this.typeaheadContainer:this.tooltipTarget},n.prototype.hasErrorToolTip=function(){return this.errorContent.length>0&&this.errorContent.html().trim().length>0},n.prototype.hasRegularTooltip=function(){return this.tooltipContent.length>0&&this.tooltipContent.html().trim(
).length>0},n.prototype.getTooltipApi=function(){return this.tooltipTarget.qtip("api")},n.prototype.isInside=function(n){return!n||n.is(this.alignmentContainer)||n.is(this.tooltipTarget)||$.contains(n.get(0),this.tooltipTarget.get(0))},n.prototype.removeErrorCallback=function(n){this.errorTooltipApi&&this.isInside(n)&&(this.errorTooltipApi.destroy(!0),eventAggregator.publish(Common.EventNames.TooltipVisibilityChanged,this.parentForm))},n.prototype.hideAllCallback=function(n){if(this.errorTooltipApi&&this.isInside(n)){var t=this.getTooltipApi();t&&t.hide()}},n.prototype.showErrorCallback=function(n){var i=this,t,r;this.isInside(n.container)&&(t=this.getTooltipApi(),t&&t.destroy(!0),r=$.Deferred(),_.delay(function(){i.tooltipTarget.qtip(i.getErrorConfiguration(r,n.content))},100))},n.prototype.updateTooltipContentCallback=function(n){if(this.isInside(n.container)){var t=this.getTooltipApi();t?n.content&&n.content.length?t.set("content.text",n.content):t.destroy(!0):n.content&&this.tooltipTarget.qtip(this.getTooltipConfiguration(
n.content))}},n.prototype.updateTooltipScopeCallback=function(n){var t=this;this.isInside(n.container)&&this.scopedContents&&this.scopedContents.length&&this.scopedContents.each(function(i,r){var u=$(r),e=u.data("scope"),f;if(n.scopes.indexOf(e)>-1){f={container:n.container,content:u.clone()};t.updateTooltipContentCallback(f);return}})},n.prototype.getBaseConfiguration=function(){var n=this.fadeDuration;return{content:{text:""},show:{event:!1,ready:!1,effect:function(){$(this).fadeIn(n)}},hide:{event:!1,effect:function(){$(this).fadeOut(n)}},position:{my:this.positionConfiguration.tipMy,at:this.positionConfiguration.tipAt,adjust:{x:this.positionConfiguration.offsetX,y:this.positionConfiguration.offsetY},target:this.getTargetElementContainer(),container:this.alignmentContainer},style:{classes:"qtip-rounded ",tip:{mimic:"center",width:20,height:10,border:.5}},events:{render:this.callbackRender.bind(this),visible:this.callbackVisible.bind(this),hidden:this.callbackHidden.bind(this)}}},n.prototype.getErrorConfiguration=
function(n,t){var r=this,i=this.getBaseConfiguration(),u=function(t,i){r.errorTooltipApi=i;r.callbackRender(t,i);n.resolve()},f=function(n,t){r.errorTooltipApi=null;r.callbackHidden(n,t,!0)};return i.events.render=u.bind(this),i.events.hidden=f.bind(this),i.style.classes+=this.errorTipClass,_.isObject(t)?i.content=t:_.isUndefined(t)?(i.content=this.errorContent,i.style.classes+=this.errorContent.data("type")+" "):i.content={text:t},i.show.ready=!0,i.hide.event="focus",this.tooltipContent.parents("footer").length>0&&(i.position.adjust.scroll=!1),i},n.prototype.getTooltipConfiguration=function(n){var t=this.getBaseConfiguration(),i,r;return t.style.classes+=this.regularTipClass,_.isObject(n)?t.content=n:_.isUndefined(n)?(t.content=this.tooltipContent,t.style.classes+=this.tooltipContent.data("type")+" "):t.content={text:n},i=this.tooltipContent.data("show-delay"),i!==null&&i!==undefined&&(t.show.delay=i),t.show.event="focus",r=this.tooltipContent.data("hide-delay"),r!==null&&r!==undefined&&(t.hide.delay=r),t.hide.
event="blur",t},n.prototype.callbackVisible=function(n,t){this.alignmentContainer.addClass("has-open-tooltip");this.adjustLeftPosition(t.elements.tooltip);eventAggregator.publish(Common.EventNames.TooltipVisibilityChanged,this.parentForm)},n.prototype.callbackRender=function(n,t){sniff.isHandheld&&this.handheldRenderFix(t)},n.prototype.adjustLeftPosition=function(n){var t=parseFloat(n.css("left")),i=Math.round(t);n.css("left",i)},n.prototype.handheldRenderFix=function(n){var i=n.elements.tooltip.find(".qtip-tip"),t;i.length&&(t=i.clone().empty(),t.css("backgroundColor","").css("backgroundColor",i.parent().css("backgroundColor")).addClass("renderfix"),t.css({width:"3px",height:t.height()-4,"margin-top":function(n,t){return parseInt(t)+2||2}}),isNaN(parseInt(t.css("right")))?isNaN(parseInt(t.css("left")))||t.css({left:"-1px"}):t.css({right:"-1px"}),t.insertAfter(i))},n.prototype.callbackHidden=function(n,t,i){i===void 0&&(i=!1);i&&t.destroy(!0);this.alignmentContainer.find(".qtip:visible").length<1&&this.alignmentContainer.
removeClass("has-open-tooltip");eventAggregator.publish(Common.EventNames.TooltipVisibilityChanged,this.parentForm)},n.prototype.showErrorTooltipIfNeeded=function(){var n=$.Deferred();return this.hasErrorToolTip()?this.tooltipTarget.qtip(this.getErrorConfiguration(n)):n.resolve(),n.promise()},n.prototype.initializeRegularTooltipIfNeeded=function(){this.hasRegularTooltip()&&this.tooltipTarget.removeData("qtip").qtip(this.getTooltipConfiguration())},n.prototype.setUpToolTip=function(){var n=this;this.showErrorTooltipIfNeeded().done(function(){n.initializeRegularTooltipIfNeeded()})},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.eventSubscriptions);var n=this.getTooltipApi();n&&n.destroy(!0)},n}();n.TooltipController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.TooltipSpacing])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="tooltip-target",t.query=".tooltip-target",t.controller=n.TooltipController,t}();n.TooltipComponent=
t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){this.delayedErrors=[];this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.DebugError,callback:this.storeError.bind(this)},{message:Common.EventNames.DebugReady,callback:this.sendOutErrorsAndDestroy.bind(this)}])}return n.prototype.storeError=function(n){this.delayedErrors.push(n)},n.prototype.publishError=function(n){eventAggregator.publish(Common.EventNames.DebugError,n)},n.prototype.sendOutErrorsAndDestroy=function(){_.forEach(this.delayedErrors,this.publishError);eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.DebugErrorMessenger=t}(Debug||(Debug={}));new Debug.DebugErrorMessenger,function(n){var t=function(){function n(){if(this.blurImage=$(".blur-image-container"),n.instance)throw new Error("Instantiation of Service failed: Use Service.getInstance() instead of new Service()");}return n.getInstance=function(){return n.instance},n.prototype.isUseable=
function(){return this.blurImage.length===1},n.prototype.fadeOutBlurImage=function(n){var t=this;return this.isUseable()?(this.blurImage.css("visibility","visible").css("opacity",1),this.fadeBlurImage(this.blurImage,0,n).then(function(){t.blurImage.css("visibility","hidden")})):$.Deferred().reject("Blur transitions are not useable.").promise()},n.prototype.fadeInThenOutBlurImage=function(n){var t=this;return this.isUseable()?(this.blurImage.css("visibility","visible"),this.fadeBlurImage(this.blurImage,1,n).then(function(){return t.fadeBlurImage(t.blurImage,0,n)}).then(function(){t.blurImage.css("visibility","hidden")})):$.Deferred().reject("Blur transitions are not useable.").promise()},n.prototype.calcStepPositions=function(n,t,i){var r=n>t?n-i:n+i,u=n>t?t+i:t-i;return{firstStep:r,secondStep:u,lastStep:t}},n.prototype.fadeBlurImage=function(n,t,i){return n.velocity({opacity:t},{duration:i,easing:"linear"}).promise()},n.instance=new n,n}();n.BlurTransitions=t}(Navigation||(Navigation={})),function(n){var t=function(
){function t(){if(this.blurTransitions=n.BlurTransitions.getInstance(),this.SKROLLR_ERRORS={instance:"There is no instance of skrollr available.",animateTo:"The scrolling was interrupted."},t.instance)throw new Error("Instantiation of Service failed: Use Service.getInstance() instead of new Service()");}return t.getInstance=function(){return t.instance},t.prototype.jumpTo=function(n){var i=skrollr.get(),t=$.Deferred();return i?(i.setScrollTop(n.position,!0),t.resolve()):t.reject(this.SKROLLR_ERRORS.instance),t.promise()},t.prototype.animateTo=function(n){var t=skrollr.get();return t?this.executeAnimationStep(n.position,n.duration,t):$.Deferred().reject(this.SKROLLR_ERRORS.instance).promise()},t.prototype.blurTo=function(n){var t,r,i;return this.blurTransitions.isUseable()?(t=skrollr.get(),t?(r=t.getScrollTop(),i=this.blurTransitions.calcStepPositions(r,n.position,n.animationDistance),sniff.isDesktop?this.blurOnDesktop(n,i,t):this.blurOnTablet(n,i,t)):$.Deferred().reject(this.SKROLLR_ERRORS.instance).promise()):
this.animateTo(n)},t.prototype.blurOnDesktop=function(n,t,i){var u=this,r=n.duration/2,f=this.blurTransitions.fadeInThenOutBlurImage(r),e=this.executeAnimationStep(t.firstStep,r,i).then(function(){return i.setScrollTop(t.secondStep,!0),u.executeAnimationStep(t.lastStep,r,i)});return $.when(f,e)},t.prototype.blurOnTablet=function(n,t,i){var u=this.blurTransitions.fadeOutBlurImage(n.duration),r;return i.setScrollTop(t.secondStep,!0),r=this.executeAnimationStep(t.lastStep,n.duration,i),$.when(u,r)},t.prototype.executeAnimationStep=function(n,t,i){var u=this,r=$.Deferred();return i.animateTo(n,{duration:t,done:function(n){n?r.reject(u.SKROLLR_ERRORS.animateTo):r.resolve()}}),r.promise()},t.instance=new t,t}();n.SkrollrTransitions=t}(Navigation||(Navigation={})),function(n){var t=Common.ElementRepository,i=function(){function i(){if(this.elements=t.getInstance(),this.blurTransitions=n.BlurTransitions.getInstance(),i.instance)throw new Error("Instantiation of Service failed: Use Service.getInstance() instead of new Service()");
}return i.getInstance=function(){return i.instance},i.prototype.jumpTo=function(n){return this.elements.window().scrollTop(n.position).promise()},i.prototype.animateTo=function(n){return this.elements.html().velocity("scroll",{offset:n.position,duration:n.duration,easing:n.easing?n.easing:"easeInOutQuint",mobileHA:!1}).promise()},i.prototype.blurTo=function(n){var r=this;if(!this.blurTransitions.isUseable())return this.animateTo(n);var t=n.duration/2,u=this.elements.window().scrollTop(),i=this.blurTransitions.calcStepPositions(u,n.position,n.animationDistance),f=this.blurTransitions.fadeInThenOutBlurImage(t),e=this.executeAnimationStep(i.firstStep,t).then(function(){return r.elements.window().scrollTop(i.secondStep),r.executeAnimationStep(i.lastStep,t)});return $.when(f,e)},i.prototype.executeAnimationStep=function(n,t){return this.elements.html().velocity("scroll",{offset:n,duration:t,easing:"linear",mobileHA:!1}).promise()},i.instance=new i,i}();n.VelocityTransitions=i}(Navigation||(Navigation={})),function(
n){var t;(function(n){n[n.Animate=0]="Animate";n[n.Auto=1]="Auto";n[n.Blur=2]="Blur";n[n.Jump=3]="Jump"})(t=n.TransitionType||(n.TransitionType={}))}(Navigation||(Navigation={})),function(n){var t;(function(){function s(i){l(i);t.type=i.type;t.type===n.TransitionType.Auto&&a(i.position,i.minBlurDistance);t.inProgress=!0;eventAggregator.publish("screen-navigation.started");var r=v(),u=y(r);u(i).then(function(){c()},function(n){h(n)})}function h(n){t.inProgress=!1;eventAggregator.publish("screen-navigation.interrupted",n)}function c(){t.inProgress=!1;eventAggregator.publish("screen-navigation.finished")}function u(){return r.window().height()}function l(n){n.duration=n.duration||i.duration;n.minBlurDistance=n.minBlurDistance||i.minBlurDistance();n.animationDistance=n.animationDistance||i.animationDistance();n.type=n.type||i.type}function a(i,u){var f,e,o;f=sniff.usingParallax()&&(e=skrollr.get())?e.getScrollTop():r.window().scrollTop();o=Math.abs(f-i);t.type=o<=u?n.TransitionType.Animate:n.TransitionType.Blur}function v(
){return t.isParallax?o:e}function y(i){var r;return r=t.type===n.TransitionType.Jump?i.jumpTo:t.type===n.TransitionType.Animate?i.animateTo:t.type===n.TransitionType.Blur?i.blurTo:function(){return $.Deferred().reject("Could not resolve unknown navigation type.").promise()},r.bind(i)}var f=Common.ElementRepository,i={duration:600,minBlurDistance:function(){return u()*2},animationDistance:u,type:n.TransitionType.Auto},t={inProgress:!1,isParallax:sniff.usingParallax(),type:i.type},r=f.getInstance(),e=n.VelocityTransitions.getInstance(),o=n.SkrollrTransitions.getInstance();eventAggregator.subscribe("screen-navigation.start",s)})(t=n.DistanceNavigator||(n.DistanceNavigator={}))}(Navigation||(Navigation={})),function(n){var t=function(){function n(n,t,i){this.container=n;this.applyConfiguration(t);this.applyIScrollOptions(i);this.initialize();$(window).on("resize orientationchange",this.refresh.bind(this))}return n.prototype.applyConfiguration=function(n){this.configuration={refreshScrollerOnContentHeightChange:!1,
disableIScrollWhenNotNeeded:!1,setUpScrollingContainers:!0};$.extend(this.configuration,n);this.configuration.useSpecificScrollingContainer&&(this.scrollingContainer=this.container.find(this.configuration.useSpecificScrollingContainer))},n.prototype.applyIScrollOptions=function(n){this.iScrollOptions={bounce:!0,momentum:!0,click:!0,deceleration:.0005,bindToWrapper:!0,mouseWheel:!0,scrollbars:!0,interactiveScrollbars:!0};$.extend(this.iScrollOptions,n)},n.prototype.scrollTo=function(n,t,i,r){this.iScroll.scrollTo(n,t,i,r)},n.prototype.scrollBy=function(n,t,i,r){this.iScroll.scrollBy(n,t,i,r)},n.prototype.initialize=function(){if(this.configuration.snapToElementSelector&&!this.container.find(this.configuration.snapToElementSelector).length)throw new Error("Could not initialize IScroll: "+this.configuration.snapToElementSelector+" was not found inside the given container.");this.configuration.setUpScrollingContainers&&this.setupContainerForIScroll();this.requestAvailableHeightFromOuterContainer().then(this.setContainerHeight.
bind(this));this.iScroll=new IScroll(this.scrollingContainer[0],this.iScrollOptions);this.configuration.refreshScrollerOnContentHeightChange&&this.observeScrollingContainerHeight(1e3);this.container.data("scroller",this);this.addScrollRail();this.configuration.disableIScrollWhenNotNeeded&&this.disableIScrollWhenNotNeeded();this.preventHighEndParallaxScrolling();this.fixMouseDraggingBug()},n.prototype.refresh=function(){var n=this;this.container.is(":visible")&&this.requestAvailableHeightFromOuterContainer().then(function(t){n.setContainerHeight(t);n.configuration.disableIScrollWhenNotNeeded&&n.disableIScrollWhenNotNeeded();n.iScroll.refresh()})},n.prototype.setupContainerForIScroll=function(){this.container.wrapInner('<div class="scrolling-container" />').wrapInner('<div class="scrolling-box" />');this.scrollingContainer=this.container.find(".scrolling-container")},n.prototype.addScrollRail=function(){this.container.find(".iScrollIndicator").after('<div class="iScrollRail"><\/div>')},n.prototype.preventHighEndParallaxScrolling=
function(){var n=this;if(sniff.isTablet&&utils.isParallaxpage()&&!parallax.isLowEnd)this.container.on("touchstart touchmove touchend",function(t){n.iScroll.enabled&&t.stopPropagation()})},n.prototype.disableIScrollWhenNotNeeded=function(){var n=this.iScroll.indicators&&this.iScroll.indicators[0].visible===1;n?this.iScroll.enable():this.iScroll.disable()},n.prototype.setContainerHeight=function(n){_.isUndefined(n)?this.container.css("max-height",""):this.container.css("max-height",n)},n.prototype.fixMouseDraggingBug=function(){var n=this;this.container.on("mouseleave",function(){var t=document.createEvent("MouseEvents");t.initEvent("mouseup",!0,!0);n.container[0].dispatchEvent(t)})},n.prototype.destroy=function(){(this.iScroll.destroy(),this.iScroll=undefined,_.isUndefined(this.oberserverInterval))||clearInterval(this.oberserverInterval)},n.prototype.observeScrollingContainerHeight=function(n){var t=this;this.oberserverInterval=setInterval(function(){var n=t.scrollingContainer.height();t.scrollingContainerHeight!==
n&&(t.scrollingContainerHeight=n,t.iScroll.refresh())},n)},n.prototype.requestAvailableHeightFromOuterContainer=function(){var t=this,n=$.Deferred();return _.isUndefined(this.configuration.requestNewHeightFor)?n.reject():(this.configuration.requestNewHeightFor(this.container,function(i){t.cachedHeight===i?n.reject():(t.cachedHeight=i,n.resolve(i))}),n.promise())},n}();n.IScrollAdjuster=t}(Scrolling||(Scrolling={})),function(n){var t;(function(n){n[n.Both=0]="Both";n[n.Bottom=1]="Bottom";n[n.Top=2]="Top"})(t=n.Gradients||(n.Gradients={}))}(Scrolling||(Scrolling={})),function(n){var t=function(){function n(){}return n.prototype.install=function(n){var t=$(n).data("simplebar"),i;sniff.isFirefox&&t&&!n.is(":visible")&&(n.find(".simplebar-scroll-content").css("height",""),this.SCROLLBAR_WIDTH=this.scrollbarWidth(),i=this,t.resizeScrollContent=function(){this.scrollDirection==="vert"?this.$scrollContentEl.width(this.$el.actual(JQueryPlugins.ActualMethod.outerWidth)+i.SCROLLBAR_WIDTH):this.$scrollContentEl.width(this.
$el.actual(JQueryPlugins.ActualMethod.outerWidth))},n.simplebar("recalculate"))},n.prototype.scrollbarWidth=function(){var n=$('<div class="scrollbar-width-tester" style="width:50px;height:50px;overflow-y:scroll;top:-200px;left:-200px;"><div style="height:100px;"><\/div>'),t=0,i=0;return $("body").append(n),t=$(n).innerWidth(),i=$("div",n).innerWidth(),n.remove(),t-i},n}();n.FirefoxHotfix=t}(Scrolling||(Scrolling={})),function(n){var t=function(){function n(){}return n.prototype.install=function(n){var t=$(n).data("simplebar"),i;sniff.isFirefox&&t&&!n.is(":visible")&&(i=this,n.find(".simplebar-scroll-content").css("height",""),t.resizeScrollContent=function(){var n=i.scrollbarWidth();this.scrollDirection==="vert"?this.$scrollContentEl.width(this.$el.width()+n):this.$scrollContentEl.width(this.$el.width())})},n.prototype.scrollbarWidth=function(){var n=$('<div class="scrollbar-width-tester" style="width:50px;height:50px;overflow-y:scroll;top:-200px;left:-200px;"><div style="height:100px;"><\/div>'),t=0,i=0;return $(
"body").append(n),t=$(n).innerWidth(),i=$("div",n).innerWidth(),n.remove(),t-i},n}();n.SimplebarFirefoxResizeFix=t}(Scrolling||(Scrolling={})),function(n){var t=function(){function n(n){this.forceDesktopMode=n===!0}return n.prototype.install=function(n){if((sniff.isDesktop||this.forceDesktopMode)&&!utils.hasInitializedSimplebar(n)){var t=$(n).data("simplebar");t.init=function(){if((this.$el.data("simplebar-direction")==="horizontal"||this.$el.hasClass("simplebar horizontal"))&&(this.scrollDirection="horiz",this.scrollOffsetAttr="scrollLeft",this.sizeAttr="width",this.scrollSizeAttr="scrollWidth",this.offsetAttr="left"),this.options.wrapContent&&this.$el.wrapInner('<div class="simplebar-scroll-content"><div class="simplebar-content"><\/div><\/div>'),this.$contentEl=this.$el.find(".simplebar-content"),this.$el.prepend('<div class="simplebar-track"><div class="simplebar-scrollbar"><\/div><\/div>'),this.$track=this.$el.find(".simplebar-track"),this.$scrollbar=this.$el.find(".simplebar-scrollbar"),this.$scrollContentEl=
this.$el.find(".simplebar-scroll-content"),this.resizeScrollContent(),this.options.autoHide)this.$el.on("mouseenter",$.proxy(this.flashScrollbar,this));this.$scrollbar.on("mousedown",$.proxy(this.startDrag,this));this.$scrollContentEl.on("scroll",$.proxy(this.startScroll,this));this.resizeScrollbar();this.options.autoHide||this.showScrollbar()};t.resizeScrollbar=function(){var t=this.$contentEl[0][this.scrollSizeAttr],f=this.$scrollContentEl[this.scrollOffsetAttr](),n=this.$track[this.sizeAttr](),i=n/t,r=Math.round(i*f)+2,u=Math.floor(i*(n-2))-2;n<t?(this.scrollDirection==="vert"?this.$scrollbar.css({top:r,height:u}):this.$scrollbar.css({left:r,width:u}),this.$track.show()):this.$track.hide()};t.init()}},n}();n.DesktopEmulationModeFix=t}(Scrolling||(Scrolling={})),function(n){var t=function(){function t(n,t,i){this.events=i;this.animationDuration=t;this.topGradient=n.find(".gradient-white.top");this.bottomGradient=n.find(".gradient-white.bottom");this.isTopGradientShown=this.topGradient.is(":visible");this.isBottomGradientShown=
this.bottomGradient.is(":visible")}return t.prototype.install=function(){this.eventSubscriptions=this.events.subscribeMultiple([{message:n.Scrollbar.has(n.State.ReachedTop),callback:this.showOnlyBottom.bind(this)},{message:n.Scrollbar.has(n.State.ReachedBottom),callback:this.showOnlyTop.bind(this)},{message:n.Scrollbar.has(n.State.Scrolled),callback:this.showAll.bind(this)},{message:n.Scrollbar.has(n.State.Hidden),callback:this.hideAll.bind(this)},{message:n.Scrollbar.has(n.State.Shown),callback:this.showNecessaryGradients.bind(this)}])},t.prototype.dispose=function(){this.events.unSubscribeMultiple(this.eventSubscriptions)},t.prototype.showOnlyTop=function(){this.isDisabled||(this.showTop(),this.hideBottom())},t.prototype.showTop=function(){this.isDisabled||this.isTopGradientShown||(this.topGradient.velocity("stop").velocity("fadeIn",this.animationDuration),this.isTopGradientShown=!0)},t.prototype.hideTop=function(){this.isDisabled||this.isTopGradientShown&&(this.topGradient.velocity("stop").velocity("fadeOut"),
this.topGradient.hide(),this.isTopGradientShown=!1)},t.prototype.showOnlyBottom=function(){this.isDisabled||(this.hideTop(),this.showBottom())},t.prototype.showBottom=function(){this.isDisabled||this.isBottomGradientShown||(this.bottomGradient.velocity("stop").velocity("fadeIn",this.animationDuration),this.isBottomGradientShown=!0)},t.prototype.hideBottom=function(){this.isDisabled||this.isBottomGradientShown&&(this.bottomGradient.velocity("stop").velocity("fadeOut"),this.isBottomGradientShown=!1)},t.prototype.showAll=function(){this.isDisabled||(this.showTop(),this.showBottom())},t.prototype.hideAll=function(){this.isDisabled||(this.topGradient.hide(),this.bottomGradient.hide(),this.isBottomGradientShown=this.isTopGradientShown=!1)},t.prototype.disable=function(){this.hideAll();this.isDisabled=!0},t.prototype.enable=function(){this.isDisabled=!1},t.prototype.showNecessaryGradients=function(t){switch(t){case n.Gradients.Top:this.showOnlyTop();break;case n.Gradients.Bottom:this.showOnlyBottom();break;case n.Gradients.
Both:this.showAll()}},t}();n.GradientsController=t}(Scrolling||(Scrolling={})),function(n){var t=Common.ElementRepository,i=function(){function i(n,i){this.events=n;this.elements=t.getInstance();this.forceDesktopMode=i===!0}return i.prototype.install=function(n){var t=this;if(n===null||n===undefined)throw Error("ScrollStateDisptacher could not be installed: element is not defined");if(this.simplebarContainer=n,this.scrollingArea=n.simplebar("getScrollElement"),this.previousScrollbarVisibility=this.getScrollbarVisibility(),this.observeVisibility(n.find(".simplebar-track")),this.forceDesktopMode||sniff.isDesktop&&!sniff.isMsie)this.observeScrolling(n.find(".simplebar-scrollbar"));else n.on("scroll",this.onScrollCallback.bind(this));this.resizeHandler=_.throttle(function(){return t.simplebarContainer.simplebar("recalculate")},300);this.orientationChangeHandler=function(){return t.simplebarContainer.simplebar("recalculate")};this.elements.window().on("resize",this.resizeHandler).on("orientationchange",this.orientationChangeHandler)}
,i.prototype.dispose=function(){this.elements.window().off("resize",this.resizeHandler).off("orientationchange",this.orientationChangeHandler)},i.prototype.observeVisibility=function(t){this.getScrollbarVisibility()||this.events.publish(n.Scrollbar.has(n.State.Hidden));t.attrchange({trackValues:!0,callback:this.determineVisibility.bind(this)})},i.prototype.determineVisibility=function(t){var i;if(t.attributeName==="style"){var r=$(t.target).is(":visible"),u=this.previousScrollbarVisibility&&!r,f=!this.previousScrollbarVisibility&&r;u?this.events.publish(n.Scrollbar.has(n.State.Hidden)):f&&(this.scrollPosition=this.scrollingArea.scrollTop(),this.maxScrollY=this.scrollingArea[0].scrollHeight-this.scrollingArea.outerHeight(),i=n.Gradients.Both,this.scrollPosition===0?i=n.Gradients.Bottom:this.scrollPosition===this.maxScrollY&&(i=n.Gradients.Top),this.events.publish(n.Scrollbar.has(n.State.Shown),i));this.previousScrollbarVisibility=r}},i.prototype.observeScrolling=function(n){n.attrchange({trackValues:!0,callback:
this.determineScrollMovement.bind(this)})},i.prototype.determineScrollMovement=function(n){n.attributeName==="style"&&this.onScrollCallback()},i.prototype.onScrollCallback=function(){var t,i;this.previousScrollbarVisibility&&(this.scrollPosition=this.scrollingArea.scrollTop(),t=this.scrollingArea[0].getBoundingClientRect(),_.isUndefined(t.height)?this.maxScrollY=this.scrollingArea[0].scrollHeight-this.scrollingArea.outerHeight():(i=this.scrollingArea[0].scrollHeight+(parseInt(t.height.toFixed(0))-t.height),this.maxScrollY=Math.floor(i)-this.scrollingArea.outerHeight()),this.currentEvent=this.scrollPosition===0?n.Scrollbar.has(n.State.ReachedTop):this.scrollPosition>=this.maxScrollY?n.Scrollbar.has(n.State.ReachedBottom):n.Scrollbar.has(n.State.Scrolled),this.events.publish(this.currentEvent))},i.prototype.getScrollbarVisibility=function(){if(!sniff.isDesktop&&!this.forceDesktopMode)return this.simplebarContainer.height()<this.simplebarContainer[0].scrollHeight;var n=this.simplebarContainer.find(".simplebar-track");
return n.length?n.is(":visible"):!1},i.prototype.forceResizeCheck=function(){var t=this.getScrollbarVisibility();this.previousScrollbarVisibility=t;t?this.onScrollCallback():this.events.publish(n.Scrollbar.has(n.State.Hidden))},i}();n.ScrollStateDispatcher=i}(Scrolling||(Scrolling={})),function(n){var t,i;(function(n){n[n.ReachedTop=0]="ReachedTop";n[n.ReachedBottom=1]="ReachedBottom";n[n.Scrolled=2]="Scrolled";n[n.Hidden=3]="Hidden";n[n.Shown=4]="Shown"})(t=n.State||(n.State={}));i=function(){function n(){}return n.has=function(n){return t[n]},n}();n.Scrollbar=i}(Scrolling||(Scrolling={})),function(n){var t=function(){function n(n,t,i){n===void 0&&(n=1e3);this.interval=n;this.callback=t;this.enableOnHandheld=i===!0}return n.prototype.install=function(n){var t=this,i,r;n.data("simplebar")&&(!sniff.isHandheld||this.enableOnHandheld)&&(i=n.find(".simplebar-scroll-content"),r=n.find(".simplebar-content"),this.observer=setInterval(function(){var u=r.height(),f=i.height();(t.pastHeight!==u||t.pastScrollContainerHeight!==
f)&&(t.pastHeight=u,t.pastScrollContainerHeight=f,n.simplebar("recalculate"),typeof t.callback=="function"&&t.callback(n,i,r))},this.interval))},n.prototype.uninstall=function(){clearInterval(this.observer)},n}();n.SimplebarHeightAdjuster=t}(Scrolling||(Scrolling={})),function(n){var t=function(){function n(){}return n.prototype.install=function(n){var t=$(n).data("simplebar");t&&t.$track&&t.$scrollbar&&t.$contentEl&&t.$scrollContentEl&&t.sizeAttr&&t.scrollSizeAttr&&t.scrollOffsetAttr&&t.scrollDirection&&(t.resizeScrollbar=function(){var n=this.$track.parent()[this.sizeAttr](),i=this.$contentEl[0][this.scrollSizeAttr],o=this.$track[this.sizeAttr](),s=this.$scrollContentEl[this.scrollOffsetAttr](),r=n/i,h=r*s,c=r*n,u=o/n,f=Math.round(u*h)+2,e=Math.floor(u*(c-2))-2,t=this.$track.data("attrchange-obs");t&&t.takeRecords&&t.takeRecords();n<i?(this.scrollDirection==="vert"?this.$scrollbar.css({top:f,height:e}):this.$scrollbar.css({left:f,width:e}),this.$track.show()):this.$track.hide()})},n}();n.SimplebarScrollbarAdjuster=
t}(Scrolling||(Scrolling={})),function(n){var t=Common.ElementRepository,i=function(){function n(n){this.elements=t.getInstance();this.container=n}return n.prototype.install=function(n){this.container&&this.container.length||(this.container=n);sniff.isDesktop&&this.preventOutsideScrollingForDesktop(n)},n.prototype.preventOutsideScrollingForDesktop=function(n){var t=this,i=n.find(".simplebar-scroll-content");this.container.off(".bodyScrollingController");this.container.on("mouseenter.bodyScrollingController",function(){i[0].addEventListener("wheel",t.preventOutsideScrolling.bind(t))}).on("mouseleave.bodyScrollingController",function(){i[0].removeEventListener("wheel",t.preventOutsideScrolling.bind(t))})},n.prototype.preventOutsideScrolling=function(n){var t=this.getPositionDeltaForDesktop(n);this.preventScrollingIfNecessary(n,t)},n.prototype.getPositionDeltaForDesktop=function(n){var t=0,i;switch(n.deltaMode){case 0:t=-n.deltaY;break;case 1:i=parseInt($(n.target).closest(".simplebar-scroll-content").css("font-size").
replace("px",""));t=-n.deltaY*i}return t},n.prototype.preventScrollingIfNecessary=function(n,t){var i=$(n.target).closest(".simplebar-scroll-content"),r=i[0].scrollTop,u=i[0].scrollHeight,e=i.height(),f=t>0;!f&&-t>u-e-r?(n.preventDefault(),n.stopPropagation(),i.scrollTop(u)):f&&t>r&&(n.preventDefault(),n.stopPropagation(),i.scrollTop(0))},n}();n.BodyScrollingController=i}(Scrolling||(Scrolling={})),function(n){var t=function(){function n(n){this.container=n}return n.prototype.install=function(n){var t=$(n).data("simplebar"),i=!window.skrollr||!window.skrollr.get();if(!sniff.isDesktop&&t&&!i){this.container&&this.container.length||(this.container=n);this.container.off(".simplebarSkrollHotfix").on("touchstart.simplebarSkrollHotfix touchmove.simplebarSkrollHotfix touchend.simplebarSkrollHotfix",function(n){n.stopPropagation()})}},n}();n.SimplebarSkrollrHotfix=t}(Scrolling||(Scrolling={})),function(n){var t=Scrolling.IScrollAdjuster,i=function(){function n(){}return n.prototype.initScrollBar=function(t,i){var s=this,
h={scrollableContentSelector:undefined,gradientTargetSelector:undefined,deferred:function(){},initialized:function(){}},u=$.extend(h,i),f=t.find(u.scrollableContentSelector),r=f.length?f:t,e=$("<div />").addClass("scrollbar-gradient"),o=$.Deferred();r.mCustomScrollbar({advanced:{autoScrollOnFocus:!1},callbacks:{whileScrolling:function(){var n,i;this.mcs.topPct>0&&this.mcs.topPct<100&&(n=t.find(".scrollbar-gradient.top"),n.css("display")!="block"&&n.velocity("fadeIn",{duration:"fast"}),i=t.find(".scrollbar-gradient.bottom"),i.css("display")!="block"&&i.velocity("fadeIn",{duration:"fast"}))},onTotalScrollBack:function(){var n=t.find(".scrollbar-gradient.top");n.velocity("fadeOut",{duration:"fast"})},onTotalScroll:function(){var n=t.find(".scrollbar-gradient.bottom");n.velocity("fadeOut",{duration:"fast"})},onOverflowY:function(){n.updateGradientVisibility(t)},onOverflowYNone:function(){n.updateGradientVisibility(t)},onInit:function(){o.resolve()},onUpdate:function(){r.data("mcs-initialized",!0);r.trigger("mCustomScrollbar.updated",
[r])}}});r.hasClass("mCS_no_scrollbar")&&u.deferred.call(r);o.then(function(){var n=u.gradientTargetSelector?r.find(u.gradientTargetSelector):r;return n.prepend(e.clone(!0).addClass("top")).append(e.clone(!0).addClass("bottom")),s.initGradientVisibility(r)}).then(function(){u.initialized.call(r)})},n.prototype.destroyScrollBar=function(n,t){var i=n.find(t);this.destroyGradientVisibility(i);i.mCustomScrollbar("destroy")},n.prototype.updateScrollBar=function(n,t,i){var u={aborted:function(){},updated:function(){}},r;if($.extend(u,i),r=n.find(t),!r.length||!this.isScrollbarInitialized(r)){u.aborted.call(n);return}n.one("mCustomScrollbar.updated",function(){u.updated.call(r)});r.mCustomScrollbar("update")},n.prototype.isScrollbarInitialized=function(n){return _.isUndefined(n.data("mcs-initialized"))?!1:n.data("mcs-initialized")},n.prototype.initGradientVisibility=function(n){var t=this.makeId(),i=$.Deferred();n.data("gradient-id",t);$(window).on("resize."+t,{scrollableElement:n},this.scrollbarGradientVisibilityHandler);
return $(window).trigger("resize."+t,[function(){i.resolve()}]),i.promise()},n.prototype.destroyGradientVisibility=function(n){var t=n.data("gradient-id");$(window).off("resize."+t,this.scrollbarGradientVisibilityHandler);n.find(".scrollbar-gradient").remove()},n.prototype.scrollbarGradientVisibilityHandler=function(t,i){i===void 0&&(i=function(){});var r=t.data.scrollableElement;_.delay(function(){n.updateGradientVisibility(r).done(function(){i.call(r)})},300)},n.updateGradientVisibility=function(n){var i=n.find(".scrollbar-gradient.top"),r=n.find(".scrollbar-gradient.bottom"),o=n.find(".mCSB_container"),e,t,u,f;return!n.hasClass("mCS_no_scrollbar")&&o.outerHeight()>n.height()?(e=parseInt(o.css("top")),t=$.Deferred(),e<0&&i.css("display")!=="block"?i.velocity("fadeIn",{duration:"fast",complete:function(){t.resolve()}}):e===0&&r.css("display")!=="block"?r.velocity("fadeIn",{duration:"fast",complete:function(){t.resolve()}}):t.resolve(),t.promise()):(u=$.Deferred(),f=$.Deferred(),i.css("display")==="block"?i.velocity(
"fadeOut",{duration:"fast",complete:function(){u.resolve()}}):u.resolve(),r.css("display")==="block"?r.velocity("fadeOut",{duration:"fast",complete:function(){f.resolve()}}):f.resolve(),$.when(u,f))},n.prototype.makeId=function(){for(var n="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<10;i++)n+=t.charAt(Math.floor(Math.random()*t.length));return n},n.prototype.collapseGradientDisplayHelper=function(n){var i=n.find(".scrollbar-gradient.top"),u=i.css("display"),r=n.find(".scrollbar-gradient.bottom"),f=r.css("display"),e=!n.hasClass("mCS_no_scrollbar"),t;e&&n.get()[0].mcs?(t=n.get()[0].mcs.topPct,t===0&&u==="block"&&i.velocity("fadeOut",{duration:"fast"}),t>0&&u!=="block"&&i.velocity("fadeIn",{duration:"fast"}),t<100&&f!=="block"&&r.velocity("fadeIn",{duration:"fast"}),t===100&&r.velocity("fadeOut",{duration:"fast"})):(u==="block"&&i.velocity("fadeOut",{duration:"fast"}),f==="block"&&r.velocity("fadeOut",{duration:"fast"}))},n.prototype.updateScrollbarPosition=function(n,t,i){var r,
u;(i===void 0&&(i=0),r=n.find(t),r.length)&&(u=Math.max(0,r.position().top-i),n.mCustomScrollbar("scrollTo",u))},n.prototype.initIScroll=function(n,i){i===void 0&&(i=!1);var r=$(n);new t(r,{refreshScrollerOnContentHeightChange:!0,disableIScrollWhenNotNeeded:!0})},n}();n.ScrollbarHandler=i}(PageElements||(PageElements={})),function(n){var t=function(){function n(){this.on="on";this.off="off"}return n.prototype.isOn=function(n){return n.hasClass(this.on)},n.prototype.isOff=function(n){return n.hasClass(this.off)},n.prototype.turnOn=function(n){n.removeClass(this.off).addClass(this.on)},n.prototype.turnOff=function(n){n.removeClass(this.on).addClass(this.off)},n}();n.TriggerToggle=t;DependencySystem.define(t).as(DS.Factory)}(Toggles||(Toggles={})),function(n){var t,i;(function(n){n[n.On=0]="On";n[n.Off=1]="Off";n[n.Inconsistent=2]="Inconsistent";n[n.NoChange=3]="NoChange";n[n.Opposite=4]="Opposite"})(t=n.EState||(n.EState={}));i=function(){function n(){}return n.newState=function(n){var i=function(){return n};return i[
t[t.On]]=i()===t.On,i[t[t.Off]]=i()===t.Off,i[t[t.Inconsistent]]=i()===t.Inconsistent,i[t[t.NoChange]]=i()===t.NoChange,i[t[t.Opposite]]=i()===t.Opposite,i.Name=t[i()],i},n.On=n.newState(t.On),n.Off=n.newState(t.Off),n.Inconsistent=n.newState(t.Inconsistent),n.NoChange=n.newState(t.NoChange),n.Opposite=n.newState(t.Opposite),n}();n.State=i}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.crawl=function(n){var t=[],i=n.data("toggle-group");i&&(t=i.split(/\s+/).filter(function(n){return n.length!==0}));var r=this.findGroupMembers(t),u=this.findGroupSiblings(r,n),f=this.findSiblingsGroups(r,t),e=this.findSiblingsDescendents(u),o=$('[data-toggle-id="'+n.data("toggle-group")+'"]'),s=this.findDescendants(n);return{origin:n,groupsIds:t,siblings:u,siblingsGroups:f,siblingsDescendants:e,parent:o,descendants:s}},n.prototype.findSiblingsGroups=function(n,t){for(var e,u,o,r,i=[],s,h=[],f=0;f<n.length;f++)for(e=n[f],u=0;u<e.length;u++)o=$(e[u]).data("toggle-group"),o&&(i=i.concat(o.split(
/\s+/).filter(function(n){return n.length!==0})));for(i=i.filter(function(n,r){return i.indexOf(n)===r&&t.indexOf(n)===-1}),r=0;r<i.length;r++)s={group:$("[data-toggle-group~= "+i[r]+"]"),id:i[r]},h.push(s);return h},n.prototype.findSiblingsDescendents=function(n){for(var r=this,i=[],t=0;t<n.length;t++)i.push(n[t].get().map(function(n){return r.findDescendants($(n))}));return i},n.prototype.findGroupSiblings=function(n,t){for(var r=[],i=0;i<n.length;i++)r.push(n[i].not(t));return r},n.prototype.findGroupMembers=function(n){for(var i=[],t=0;t<n.length;t++)i.push($("[data-toggle-group~= "+n[t]+"]"));return i},n.prototype.findAncestors=function(n){var i=n.data("toggle-group"),t,r;return i?(t=$('[data-toggle-id="'+i+'"]'),r=t.add(this.findAncestors(t)),r):$(undefined)},n.prototype.findDescendants=function(n){var u=this,r=n.data("toggle-id"),i,t;return r?(i=$("[data-toggle-id][data-toggle-group~="+r+"]"),t=i,i.each(function(n,i){t=t.add(u.findDescendants($(i)))}),t):$(undefined)},n}();n.TriggerCrawler=t;DependencySystem.
define(t).as(DS.Factory)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.map=function(n){return $.extend({},n,this.mapConfig(n))},n.prototype.mapConfig=function(n){return{velocityDuration:n.slideDuration,velocityInDuration:n.slideDownDuration,velocityOutDuration:n.slideUpDuration}},n}();n.SlideVelocityConfigurationMapper=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.map=function(n){return $.extend({},n,this.mapConfig(n))},n.prototype.mapConfig=function(n){return{velocityDuration:n.fadeDuration,velocityInDuration:n.fadeInDuration,velocityOutDuration:n.fadeOutDuration}},n}();n.FadeVelocityConfigurationMapper=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.provide=function(t,i){return $.extend({},n.defaultConfig,i,this.analyzeTriggerConfig(t))},n.prototype.analyzeTriggerConfig=function(n){var t={},f=n.data("turn-off-siblings"),
i,r,u;return this.dataEqualsTrue(f)?t.turnOffSiblings=!0:this.dataEqualsFalse(f)&&(t.turnOffSiblings=!1),i=n.data("turn-off-descendants"),this.dataEqualsTrue(i)?t.turnOffDescendantsOnTurnOff=!0:this.dataEqualsFalse(i)&&(t.turnOffDescendantsOnTurnOff=!1),r=n.data("turn-on-single-child"),this.dataEqualsTrue(r)?t.turnOnSingleChildOnTurnOn=!0:this.dataEqualsFalse(r)&&(t.turnOnSingleChildOnTurnOn=!1),u=n.data("trigger-cannot-turn-off"),this.dataEqualsTrue(u)?t.originTriggerCannotTurnOff=!0:this.dataEqualsFalse(u)&&(t.originTriggerCannotTurnOff=!1),t},n.prototype.dataEqualsTrue=function(n){return n===!0||typeof n=="string"&&n.toLocaleLowerCase()==="true"},n.prototype.dataEqualsFalse=function(n){return n===!1||typeof n=="string"&&n.toLocaleLowerCase()==="false"},n.defaultConfig={turnOffSiblings:!0,turnOffDescendantsOnTurnOff:!0,turnOnSingleChildOnTurnOn:!0,originTriggerCannotTurnOff:!1},n}();n.AccordionConfigurationProvider=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(
){function n(){}return n.prototype.provide=function(t,i){return $.extend({},n.defaultConfig,i,this.analyzeTriggerConfig(t))},n.prototype.analyzeTriggerConfig=function(n){var t={},i=n.data("hover-out-delay"),r,u;return typeof i=="number"&&i>=0&&(t.hoverOutDelay=i),r=n.data("on-hover-in-only"),this.dataEqualsTrue(r)?t.onHoverInOnly=!0:this.dataEqualsFalse(r)&&(t.onHoverInOnly=!1),u=n.data("on-hover-out-only"),this.dataEqualsTrue(u)?t.onHoverOutOnly=!0:this.dataEqualsFalse(u)&&(t.onHoverOutOnly=!1),t},n.prototype.dataEqualsTrue=function(n){return n===!0||typeof n=="string"&&n.toLocaleLowerCase()==="true"},n.prototype.dataEqualsFalse=function(n){return n===!1||typeof n=="string"&&n.toLocaleLowerCase()==="false"},n.defaultConfig={hoverOutDelay:0,onHoverInOnly:!1,onHoverOutOnly:!1},n}();n.HoverConfigurationProvider=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.provide=function(t,i){return $.extend({},n.defaultConfig,i,this.analyzeTriggerConfig(
t))},n.prototype.analyzeTriggerConfig=function(n){var t={},u=n.data("slide-duration"),i,r;return typeof u=="number"&&u>=0&&(t.slideDuration=u),i=n.data("slide-down-duration"),typeof i=="number"&&i>=0&&(t.slideDownDuration=i),r=n.data("slide-up-duration"),typeof r=="number"&&r>=0&&(t.slideUpDuration=r),t},n.defaultConfig={slideDuration:250,slideDownDuration:undefined,slideUpDuration:undefined},n}();n.SlideConfigurationProvider=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.provide=function(t,i){return $.extend({},n.defaultConfig,i,this.analyzeTriggerConfig(t))},n.prototype.analyzeTriggerConfig=function(n){var t={},u=n.data("fade-duration"),i,r;return typeof u=="number"&&u>=0&&(t.fadeDuration=u),i=n.data("fade-in-duration"),typeof i=="number"&&i>=0&&(t.fadeInDuration=i),r=n.data("fade-out-duration"),typeof r=="number"&&r>=0&&(t.slideUpDuration=r),t},n.defaultConfig={fadeDuration:250,fadeInDuration:undefined,fadeOutDuration:undefined},
n}();n.FadeConfigurationProvider=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function n(n){this.configurationProviders=n}return n.prototype.provide=function(n,t){var i=t;return this.configurationProviders.forEach(function(t){i=t.provide(n,i)}),i},n}();n.ConfigurationProvider=t;DependencySystem.define(t).as(DS.Singleton).andInject([[n.AccordionConfigurationProvider,n.HoverConfigurationProvider,n.SlideConfigurationProvider,n.FadeConfigurationProvider]])}(Toggles||(Toggles={})),function(n){var t=function(){function n(){this.triggerType="click";this.setups=[{eventName:"click"}]}return n}();n.ClickTrigger=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){this.triggerType="hover";this.setups=[{eventName:"mouseenter",setup:this.setupMouseenter},{eventName:"mouseleave",setup:this.setupMouseleave}]}return n.prototype.setupMouseenter=function(n,t,i){if(i.origin.hasClass("hovered")){var r=i.origin.data("hover-trigger");
return r&&clearTimeout(r.timeoutId),$.Deferred().reject().promise()}if(i.origin.addClass("hovered"),t.onHoverOutOnly&&!t.onHoverInOnly)return $.Deferred().reject().promise();t.turnOffSiblings&&i.siblings.forEach(function(n){n.each(function(n,t){var r=$(t),i=r.data("hover-trigger");i&&(clearTimeout(i.timeoutId),i.deferral.reject(),r.data("hover-trigger",undefined))})})},n.prototype.setupMouseleave=function(n,t,i){var r=$.Deferred(),u=setTimeout(function(){i.origin.removeClass("hovered");var n=i.origin.hasClass("off");t.onHoverInOnly&&!t.onHoverOutOnly||n?r.reject():r.resolve()},i.origin.data("hover-out-delay")||t.hoverOutDelay||0);return i.origin.data("hover-trigger",{timeoutId:u,deferral:r}),r.promise()},n}();n.HoverTrigger=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){this.triggerType="empty-input";this.setups=[{eventName:"input",setup:this.checkIfEmptyInput}]}return n.prototype.checkIfEmptyInput=function(n){return n.val().length>0&&n.hasClass(
"on")||n.val().length===0&&n.hasClass("off")?null:$.Deferred().reject().promise()},n}();n.EmptyInputTrigger=t;DependencySystem.define(t).as(DS.Singleton)}(Toggles||(Toggles={})),function(n){var t=function(){function t(n){this.triggerToggle=n}return t.prototype.process=function(t,i){var r={};return r.origin=this.processOrigin(t,i),r.parent=this.configureOne(t.parent,n.State.NoChange),r.descendants=this.processDescendants(t.descendants,r.origin,i),r.siblings=this.processSiblings(t.siblings,r.origin,i),r.siblingsDescendants=this.processSiblingsDescendants(t.siblingsDescendants,r.siblings,i),r.originGroups=this.transformTriggersToGroup(r.siblings,r.origin,t.groupsIds),r.siblingsGroups=this.processSiblingsGroups(t.siblingsGroups,i),r.descendantsGroups=this.processGroups(r.descendants),r.siblingsDescendantsGroups=this.processGroups(r.siblingsDescendants),r.originPair=this.mergeToPair(r.parent,r.originGroups),r.descendantsPairs=this.processDescendantsPairs(r.descendants,r.origin,r.descendantsGroups),r.siblingsDescendantsPairs=
this.processSiblingsDescendantsPairs(r.siblings,r.siblingsDescendants,r.siblingsDescendantsGroups),r},t.prototype.processSiblingsGroups=function(t,i){var u,f,e=[],r;if(i.turnOffSiblings)for(r=0;r<t.length;r++)u=this.configureMany(t[r].group,n.State.Off),f={id:t[r].id,collection:u,states:this.analyzeStatesFor(u)},e.push(f);return{collection:e}},t.prototype.processSiblingsDescendantsPairs=function(n,t,i){for(var f,e=this,u=[],r=0;r<n.collection.length;r++)f=n.collection[r].concat(t.collection[r]),f.map(function(n){var t=n.query.data("toggle-id"),r=i.collection.filter(function(n){return n.collection.some(function(n){var i=$.inArray(t,n.query.data("toggle-group").split(/\s+/));return i!==-1?!0:!1})});r.length>0&&u.push(e.mergeToPair(n,{collection:r},t))});return{collection:u}},t.prototype.processOrigin=function(t,i){var r=i.originTriggerCannotTurnOff&&this.triggerToggle.isOn(t.origin)?n.State.NoChange:n.State.Opposite;return this.configureOne(t.origin,r)},t.prototype.processDescendant=function(t,i,r){return i.states.
willBe.Off&&r.turnOffDescendantsOnTurnOff?this.configureMany(t,n.State.Off):i.states.willBe.On&&t.length===1&&r.turnOnSingleChildOnTurnOn?[this.configureOne(t,n.State.On)]:this.configureMany(t,n.State.NoChange)},t.prototype.processSiblings=function(t,i,r){var f=this,u=[];return r.turnOffSiblings?t.forEach(function(t){u.push(f.configureMany(t,n.State.Off))}):t.forEach(function(t){u.push(f.configureMany(t,n.State.NoChange))}),{collection:u}},t.prototype.processDescendants=function(n,t,i){var r=[];return r.push(this.processDescendant(n,t,i)),{collection:r}},t.prototype.processSiblingsDescendants=function(n,t,i){var u=this,r=[];return n.forEach(function(n,f){var e=[];n.forEach(function(n,r){var o=u.processDescendant(n,t.collection[f][r],i);e=e.concat(o)});r.push(e)}),{collection:r}},t.prototype.transformTriggersToGroup=function(n,t,i){for(var e,f=[],u,r=0;r<n.collection.length;r++)n.collection[r].push(t),u={id:i[r],collection:n.collection[r],states:this.analyzeStatesFor(n.collection[r])},f.push(u);return n.collection.
length===0&&(e=$.makeArray(t),u={id:t.query.data("toggle-group"),collection:e,states:this.analyzeStatesFor(e)},f.push(u)),{collection:f}},t.prototype.processGroups=function(n){for(var r=this,t=[],i=0;i<n.collection.length;i++)n.collection[i].forEach(function(n){for(var r=n.query.data("toggle-group").split(/\s+/),i=0;i<r.length;i++)t[r[i]]=t[r[i]]?{id:undefined,collection:[n]}:{id:r[i],collection:[n]}});return t=Object.keys(t).map(function(n){return t[n].states=r.analyzeStatesFor(t[n].collection),t[n]}),{collection:t}},t.prototype.mergeToPair=function(n,t,i){return i===void 0&&(i=n.query.data("toggle-id")),{id:i,single:n,groups:t}},t.prototype.processDescendantsPairs=function(n,t,i){for(var f,e=this,u=[],r=0;r<n.collection.length;r++)f=n.collection[r].concat(t),f.map(function(n){var t=n.query.data("toggle-id"),r=i.collection.filter(function(n){return n.collection.some(function(n){var i=$.inArray(t,n.query.data("toggle-group").split(/\s+/));return i!==-1?!0:!1})});r.length>0&&u.push(e.mergeToPair(n,{collection:
r},t))});return{collection:u}},t.prototype.configureOne=function(t,i){var f=this.triggerToggle.isOn(t),r=f?n.State.On:n.State.Off,u;return u=i.NoChange?r:i.Opposite?f?n.State.Off:n.State.On:i,{id:t.data("toggle-id"),query:t,states:{was:r,willBe:u,hasToChange:r()!==u()}}},t.prototype.configureMany=function(n,t){var i=this;return n.get().map(function(n){return i.configureOne($(n),t)})},t.prototype.analyzeStatesFor=function(n){var t=n.some(function(n){return n.states.was.On}),i=n.some(function(n){return n.states.was.Off}),r=n.some(function(n){return n.states.willBe.On}),u=n.some(function(n){return n.states.willBe.Off});return{was:this.determineState(t,i),willBe:this.determineState(r,u),hasToChange:n.some(function(n){return n.states.hasToChange})}},t.prototype.determineState=function(t,i){return t&&i?n.State.Inconsistent:t?n.State.On:n.State.Off},t}();n.TriggerProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([n.TriggerToggle])}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.
prototype.crawl=function(n){return{origin:this.crawlDirectTargetsForOne(n.origin),descendants:this.crawlTargetsForMany(n.descendants.collection,this.crawlDirectTargetsForOne),siblings:this.crawlTargetsForMany(n.siblings.collection,this.crawlDirectTargetsForOne),siblingsDescendants:this.crawlTargetsForMany(n.siblingsDescendants.collection,this.crawlDirectTargetsForOne),originGroups:this.crawlGroupTargetsForOne(n.originGroups),siblingsGroups:this.crawlGroupTargetsForOne(n.siblingsGroups),descendantsGroups:this.crawlTargetsForGroups(n.descendantsGroups,this.crawlGroupTargetsForOne),siblingsDescendantsGroups:this.crawlTargetsForGroups(n.siblingsDescendantsGroups,this.crawlGroupTargetsForOne),originPair:this.crawlPairTargetsForOne(n.originPair),descendantsPairs:this.crawlTargetsForGroups(n.descendantsPairs,this.crawlPairTargetsForOne),siblingsDescendantsPairs:this.crawlTargetsForGroups(n.siblingsDescendantsPairs,this.crawlPairTargetsForOne)}},n.prototype.crawlTargetsForGroups=function(n,t){var r=this,i={toTurnOn:$(
undefined),toTurnOff:$(undefined)};return n.collection.forEach(function(n){var u=t.call(r,n);i.toTurnOn=i.toTurnOn.add(u.toTurnOn);i.toTurnOff=i.toTurnOff.add(u.toTurnOff)}),i},n.prototype.crawlDirectTargetsForOne=function(n){if(!n.states.hasToChange)return{toTurnOn:$(undefined),toTurnOff:$(undefined)};var t="[data-target-for-group], [data-inverse-target-for-group]",i=$('[data-target-for="'+n.id+'"]').not(t),r=$('[data-inverse-target-for="'+n.id+'"]').not(t),u=n.states.willBe.On;return{toTurnOn:n.states.hasToChange&&u?i:r,toTurnOff:n.states.hasToChange&&u?r:i}},n.prototype.crawlGroupTargetsForOne=function(n){for(var r,s="[data-target-for], [data-inverse-target-for]",c="[data-show-for-one-trigger-in-group], [data-inverse-show-for-one-trigger-in-group]",u,f,e,o,t=$([]),i=$([]),h=0;h<n.collection.length;h++)r=n.collection[h],u=$('[data-show-for-one-trigger-in-group="'+r.id+'"]').not(s),f=$('[data-target-for-group~="'+r.id+'"]').not(s).not(c),e=$('[data-inverse-show-for-one-trigger-in-group="'+r.id+'"]'),o=$('[data-inverse-target-for-group="'+
r.id+'"]').not(s).not(c),r.states.hasToChange&&(r.states.willBe.On?(t=t.add(f),i=i.add(o),t=t.add(u),i=i.add(e)):r.states.willBe.Off?(t=t.add(o),i=i.add(f),t=t.add(e),i=i.add(u)):r.states.willBe.Inconsistent&&(t=t.add(u),i=i.add(e),t=t.add(o),i=i.add(f)));return{toTurnOn:t,toTurnOff:i}},n.prototype.crawlPairTargetsForOne=function(n){var t=$(undefined),i=$(undefined),r=$('[data-target-for="'+n.id+'"][data-target-for-group="'+n.id+'"]'),u=$('[data-target-for="'+n.id+'"][data-inverse-target-for-group="'+n.id+'"]'),f=$('[data-inverse-target-for="'+n.id+'"][data-target-for-group="'+n.id+'"]'),e=$('[data-inverse-target-for="'+n.id+'"][data-inverse-target-for-group="'+n.id+'"]');return n.groups&&n.groups.collection.forEach(function(o){(n.single.states.hasToChange||o.states.hasToChange)&&(n.single.states.willBe.On&&o.states.willBe.On?t=r:n.single.states.willBe.On&&o.states.willBe.Off?t=u:n.single.states.willBe.Off&&o.states.willBe.On?t=f:n.single.states.willBe.Off&&o.states.willBe.Off&&(t=e),n.single.states.was.On&&o.
states.was.On?i=r:n.single.states.was.On&&o.states.was.Off?i=u:n.single.states.was.Off&&o.states.was.On?i=f:n.single.states.was.Off&&o.states.was.Off&&(i=e))}),{toTurnOn:t,toTurnOff:i}},n.prototype.crawlTargetsForMany=function(n,t){var r=this,i={toTurnOn:$(undefined),toTurnOff:$(undefined)};return n.forEach(function(n){var u=n;n.collection?u=n.collection:n.groups&&(u=n.groups.collection);u.forEach(function(n){var u=t.call(r,n);i.toTurnOn=i.toTurnOn.add(u.toTurnOn);i.toTurnOff=i.toTurnOff.add(u.toTurnOff)})}),i},n}();n.TriggerTargetsCrawler=t;DependencySystem.define(t).as(DS.Factory)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.process=function(n,t,i){return i===void 0&&(i=!1),{triggers:this.collectTriggers(n),ordinaryTargets:i?{toTurnOn:$(undefined),toTurnOff:$(undefined)}:this.collectOrdinaryTargets(t),instantTargets:i?this.collectAllTargets(t):this.collectInstantTargets(t)}},n.prototype.collectTriggers=function(n){for(var i,r,f={toTurnOn:$(undefined),toTurnOff:$(undefined)},
t=[n.origin],u=0;u<n.descendants.collection.length;u++)t=t.concat(n.descendants.collection[u]);for(i=0;i<n.siblings.collection.length;i++)t=t.concat(n.siblings.collection[i]);for(r=0;r<n.siblingsDescendants.collection.length;r++)t=t.concat(n.siblingsDescendants.collection[r]);return t.reduce(function(n,t){return t.states.hasToChange&&(t.states.willBe.On?n.toTurnOn=n.toTurnOn.add(t.query):n.toTurnOff=n.toTurnOff.add(t.query)),n},f)},n.prototype.collectOrdinaryTargets=function(n){var t=[n.origin,n.siblings,n.originGroups,n.siblingsGroups,n.originPair];return this.collectTargets(t)},n.prototype.collectInstantTargets=function(n){var t=[n.descendants,n.siblingsDescendants,n.descendantsGroups,n.siblingsDescendantsGroups,n.descendantsPairs,n.siblingsDescendantsPairs];return this.collectTargets(t)},n.prototype.collectAllTargets=function(n){var t=this.collectOrdinaryTargets(n),i=this.collectInstantTargets(n);return{toTurnOn:t.toTurnOn.add(i.toTurnOn),toTurnOff:t.toTurnOff.add(i.toTurnOff)}},n.prototype.collectTargets=
function(n){return n.reduce(function(n,t){return n.toTurnOn=n.toTurnOn.add(t.toTurnOn),n.toTurnOff=n.toTurnOff.add(t.toTurnOff),n})},n}();n.CrawledDataProcessor=t;DependencySystem.define(t).as(DS.Factory)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){this.toggleType="display";this.on="shown";this.off="hidden"}return n.prototype.turnOn=function(n){n.removeClass(this.off).addClass(this.on)},n.prototype.turnOff=function(n){n.removeClass(this.on).addClass(this.off)},n}();n.DisplayToggle=t;DependencySystem.define(t).as(DS.Factory)}(Toggles||(Toggles={})),function(n){var t=function(){function n(){}return n.prototype.turnOn=function(n,t,i,r){return t?$.when(this.turnOnSync(n,r)):this.turnOnAsync(n,i,r)},n.prototype.turnOnSync=function(n,t){n.removeClass(t.off+" "+t.inBetween).addClass(t.on)},n.prototype.turnOnAsync=function(n,t,i){return n.velocity(t.velocityToggleTransitions.transitioningIn,{duration:typeof t.velocityInDuration=="number"&&t.velocityInDuration||t.velocityDuration,begin:function(n)
{$(n).removeClass(i.off).addClass(i.inBetween)}}).promise().then(function(){n.removeClass(i.inBetween).addClass(i.on)})},n.prototype.turnOff=function(n,t,i,r){return t?$.when(this.turnOffSync(n,r)):this.turnOffAsync(n,i,r)},n.prototype.turnOffSync=function(n,t){n.removeClass(t.on+" "+t.inBetween).addClass(t.off)},n.prototype.turnOffAsync=function(n,t,i){return n.velocity(t.velocityToggleTransitions.transitioningOut,{duration:typeof t.velocityOutDuration=="number"&&t.velocityOutDuration||t.velocityDuration,begin:function(n){$(n).removeClass(i.on).addClass(i.inBetween)}}).promise().then(function(){n.removeClass(i.inBetween).addClass(i.off)})},n}();n.VelocityToggle=t;DependencySystem.define(t).as(DS.Factory)}(Toggles||(Toggles={})),function(n){var t=function(){function n(n,t){this.toggleType="slide";this.velocityToggle=n;this.velocityConfigMapper=t}return n.prototype.turnOn=function(t,i,r){return this.velocityToggle.turnOn(t,i,this.prepareVelocityConfig(r),n.toggleClasses)},n.prototype.turnOff=function(t,i,r){return this.
velocityToggle.turnOff(t,i,this.prepareVelocityConfig(r),n.toggleClasses)},n.prototype.prepareVelocityConfig=function(t){return $.extend({velocityToggleTransitions:n.toggleTransitions},this.velocityConfigMapper.map(t))},n.toggleClasses={on:"slided-down",inBetween:"sliding",off:"slided-up"},n.toggleTransitions={transitioningIn:"slideDown",transitioningOut:"slideUp"},n}();n.SlideToggle=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.VelocityToggle,n.SlideVelocityConfigurationMapper])}(Toggles||(Toggles={})),function(n){var t=function(){function n(n,t){this.toggleType="fade";this.velocityToggle=n;this.velocityConfigMapper=t}return n.prototype.turnOn=function(t,i,r){return this.velocityToggle.turnOn(t,i,this.prepareVelocityConfig(r),n.toggleClasses)},n.prototype.turnOff=function(t,i,r){return this.velocityToggle.turnOff(t,i,this.prepareVelocityConfig(r),n.toggleClasses)},n.prototype.prepareVelocityConfig=function(t){return $.extend({velocityToggleTransitions:n.toggleTransitions},this.velocityConfigMapper.
map(t))},n.toggleClasses={on:"faded-in",inBetween:"fading",off:"faded-out"},n.toggleTransitions={transitioningIn:"fadeIn",transitioningOut:"fadeOut"},n}();n.FadeToggle=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.VelocityToggle,n.FadeVelocityConfigurationMapper])}(Toggles||(Toggles={})),function(n){var t=function(){function n(n,t){this.specificToggles=n;this.triggerToggle=t}return n.prototype.toggle=function(n,t){return this.toggleTriggers(n),this.toggleTargets(n,t)},n.prototype.toggleTriggers=function(n){var t=this;n.triggers.toTurnOn.each(function(n,i){t.triggerToggle.turnOn($(i))});n.triggers.toTurnOff.each(function(n,i){t.triggerToggle.turnOff($(i))})},n.prototype.toggleTargets=function(n,t){var i=this,r=this.specificToggles.map(function(r){var u=i.toggleTargetsFor(r,n.ordinaryTargets,!1,t).concat(i.toggleTargetsFor(r,n.instantTargets,!0,t));return $.when.apply(null,u)});return $.when.apply(null,r)},n.prototype.toggleTargetsFor=function(n,t,i,r){var u=t.toTurnOn.filter('[data-toggle-type="'+
n.toggleType+'"]'),f=t.toTurnOff.filter('[data-toggle-type="'+n.toggleType+'"]');return $.map(u,function(t){return $.when(n.turnOn($(t),i,r))}).concat($.map(f,function(t){return $.when(n.turnOff($(t),i,r))}))},n}();n.Toggle=t;DependencySystem.define(t).as(DS.Factory).andInject([[n.SlideToggle,n.FadeToggle,n.DisplayToggle],n.TriggerToggle])}(Toggles||(Toggles={})),function(n){var t=function(){function n(n,t,i,r,u,f){this.triggerCrawler=n;this.configProvider=t;this.triggerProcessor=i;this.triggerTargetsCrawler=r;this.crawledDataProcessor=u;this.toggle=f}return n.prototype.triggerOrigin=function(n,t,i,r){var o=this,u,f,e;return t===void 0&&(t=!1),r===void 0&&(r=undefined),u=n,eventAggregator.publish(Common.EventNames.TogglePreparationsStarted,u),f=this.configProvider.provide(u,i),e=this.triggerCrawler.crawl(u),this.verifyingAnyRemainingPreconditions(r,f,u,e).then(function(){return o.toggleTargets(u,e,f,t)},function(){eventAggregator.publish(Common.EventNames.ToggleTransitionAborted,u)})},n.prototype.triggerRelay=
function(n,t,i,r){var s=this,u,o;t===void 0&&(t=!1);r===void 0&&(r=undefined);u=n;eventAggregator.publish(Common.EventNames.TogglePreparationsStarted,u);var h=u.data("relay-to"),e=$("[data-toggle-id="+h+"]"),f=this.configProvider.provide(e,i);return f=this.configProvider.provide(e,f),o=this.triggerCrawler.crawl(e),this.verifyingAnyRemainingPreconditions(r,f,u,o).then(function(){return s.toggleTargets(u,o,f,t)},function(){eventAggregator.publish(Common.EventNames.ToggleTransitionAborted,u)})},n.prototype.verifyingAnyRemainingPreconditions=function(n,t,i,r){return $.when(n&&n.setup&&n.setup(i,t,r))},n.prototype.toggleTargets=function(n,t,i,r){var u=this.prepareTargets(i,t,r),f={trigger:n,triggers:t,targets:u};return eventAggregator.publish(Common.EventNames.ToggleTransitionStarted,f),this.toggle.toggle(u,i).then(function(){eventAggregator.publish(Common.EventNames.ToggleTransitionEnded,f)})},n.prototype.prepareTargets=function(n,t,i){var r=this.triggerProcessor.process(t,n),u=this.triggerTargetsCrawler.crawl(r);
return this.crawledDataProcessor.process(r,u,i)},n}();n.ManualToggles=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.TriggerCrawler,n.ConfigurationProvider,n.TriggerProcessor,n.TriggerTargetsCrawler,n.CrawledDataProcessor,n.Toggle])}(Toggles||(Toggles={})),function(n){var t=function(){function n(n,t,i){this.origin=n;this.specificTriggers=t;this.manualToggles=i;this.contexts=[]}return n.prototype.setup=function(n,t){this.contexts.push(n);this.setupDefaultTrigger(n,t);this.setupSpecificTriggersFor(this.defaultTriggerAttributeSelector,n,t);sniff.isDesktop?this.setupSpecificTriggersFor(this.desktopTriggerAttributeSelector,n,t):this.setupSpecificTriggersFor(this.handheldTriggerAttributeSelector,n,t)},n.prototype.destroy=function(){var n=this;this.contexts.forEach(function(t){t.off(n.origin.eventNamespace)})},n.prototype.defaultTriggerAttributeSelector=function(n){return'[data-trigger-type="'+n+'"]:not([data-desktop-trigger-type], [data-handheld-trigger-type])'},n.prototype.desktopTriggerAttributeSelector=
function(n){return'[data-desktop-trigger-type="'+n+'"]:not([data-trigger-type])'},n.prototype.handheldTriggerAttributeSelector=function(n){return'[data-handheld-trigger-type="'+n+'"]:not([data-trigger-type])'},n.prototype.setupDefaultTrigger=function(t,i){var r=this.specificTriggers.filter(function(t){return t.triggerType===n.defaultTriggerType}).shift();this.setupTriggerFor(n.defaultSelector,r,t,i)},n.prototype.setupSpecificTriggersFor=function(n,t,i){var r=this;this.specificTriggers.forEach(function(u){var f=n(u.triggerType);r.setupTriggerFor(f,u,t,i)})},n.prototype.setupTriggerFor=function(n,t,i,r){var u=this;t.setups.forEach(function(t){i.on(t.eventName+u.origin.eventNamespace,"[data-relay-to]"+n,function(n){u.manualToggles.triggerRelay($(n.currentTarget),!1,r,t)});i.on(t.eventName+u.origin.eventNamespace,"[data-toggle-id]"+n,function(n){u.manualToggles.triggerOrigin($(n.currentTarget),!1,r,t)})})},n.defaultTriggerType="click",n.defaultSelector=":not([data-trigger-type], [data-desktop-trigger-type], [data-handheld-trigger-type])",
n}();n.AutomatedToggles=t;DependencySystem.define(t).as(DS.Singleton).andInject([DS.Origin,[n.ClickTrigger,n.HoverTrigger,n.EmptyInputTrigger],n.ManualToggles])}(Toggles||(Toggles={})),function(n){var t=function(){function n(n,t,i){this.processorFn=n;this.processorFnArgs=t;this.processorFnResolveValues=i;this.deferral=$.Deferred();this.deferral.promise(this)}return n.prototype.execute=function(){var n=this;return $.when(this.processorFn.apply(null,this.processorFnArgs)).then(function(){n.deferral.resolve.apply(null,n.processorFnResolveValues)},function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];n.deferral.resolve.apply(null,i)})},n}();n.Process=t}(Toggles||(Toggles={})),function(n){var t=function(){function t(){}return t.prototype.executeOneAfterAnother=function(t){var i=[],r;for(t.forEach(function(t,r){i.push(new n.Process(t.fn,t.args,[r]))}),r=0;r<i.length;r++)r===0?i[0].execute():i[r-1].then(function(n){var t=n+1;i[t].execute()});return $.when.apply(null,i)},t}();n.ProcessChaining=t;DependencySystem.
define(t).as(DS.Factory)}(Toggles||(Toggles={})),function(n){var t=function(){function n(n,t,i){this.automatedToggles=n;this.manualToggles=t;this.processChaining=i}return n.prototype.setup=function(n,t){this.automatedToggles.setup(n,t)},n.prototype.triggerOrigin=function(n,t,i){return t===void 0&&(t=!1),this.trigger(this.manualToggles.triggerOrigin.bind(this.manualToggles),n,t,i)},n.prototype.triggerRelay=function(n,t,i){return t===void 0&&(t=!1),this.trigger(this.manualToggles.triggerRelay.bind(this.manualToggles),n,t,i)},n.prototype.destroy=function(){this.automatedToggles.destroy()},n.prototype.trigger=function(n,t,i,r){var u=t.toArray().map(function(t){return{fn:n,args:[$(t),i,r]}});return this.processChaining.executeOneAfterAnother(u)},n}();n.TogglesSetup=t;DependencySystem.define(t).as(DS.Singleton).andInject([n.AutomatedToggles,n.ManualToggles,n.ProcessChaining])}(Toggles||(Toggles={})),function(n){var t=function(){function n(){this.segmentName="basket-items-count"}return n.prototype.process=function(n)
{var t=n.Count;window.shell&&window.shell.publishTo(Common.EventNames.ESSABasketFlyoutBasketItemCountChanged,t)},n}();n.BasketItemsCountProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n;this.segmentName="customer-note"}return n.prototype.process=function(n){var t=$(n),i=t.attr("id"),r=this.elements.body().find("#"+i);return LifeCycleSystem.replace(r,t).then(function(){inputTypesHandler.initializeInContext(t);modalManager.initializeInContext(t)})},n}();n.CustomerNoteProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n;this.segmentName="debug-links";this.currentDebugLinksDetails=this.elements.body().find(".debug-links-details")}return n.prototype.process=function(n){var t=$(n).filter(".debug-links-details");this.currentDebugLinksDetails.replaceWith(t);debugInfoHandler.updateDebugLinksDetails(t);this.currentDebugLinksDetails=
t},n}();n.DebugLinksProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n;this.segmentName="iframe"}return n.prototype.process=function(n){var t=$(n);this.elements.body().append(t);iframeHandler.initializeInContext(t)},n}();n.IFrameProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(){this.segmentName="close-modals"}return Object.defineProperty(n.prototype,"modalService",{get:function(){return DependencySystem.resolve(Modals.Service)},enumerable:!0,configurable:!0}),n.prototype.process=function(){var n=$.Deferred();return modalManager.closeModals({completed:function(){n.resolve()}}),n.promise()},n}();n.CloseModalsProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(){this.segmentName="modal"}return Object.defineProperty(n.prototype,
"modalService",{get:function(){return DependencySystem.resolve(Modals.Service)},enumerable:!0,configurable:!0}),n.prototype.process=function(n){var t=$(n),i=$.Deferred();return modalManager.openModal(t,{completed:function(){i.resolve()}}),i.promise().then(function(){ajaxFormHandler.initializeInContext(t);inputClearButtons.initializeInContext(t);tooltipBoxHandler.initializeInContext(t)})},n}();n.ModalProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(){this.segmentName="redirect"}return n.prototype.process=function(n){var t=n.Reload,i=n.Location;utils.reloadOrOpenLocation(t,i)},n}();n.RedirectProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(){this.segmentName="replace-state"}return n.prototype.process=function(n){var t=n.NewUrl;utils.replaceState(t)},n}();n.ReplaceStateProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(
n){this.elements=n;this.segmentName="basket-form"}return n.prototype.process=function(n){var t=$(n),i=t.attr("id");if(i)return LifeCycleSystem.replace(this.elements.body().find("#"+i),t).then(function(){return tooltipBoxHandler.initializeInContext(t),selectBoxHandler.initializeInContext(t),inputDataTypesHandler.initializeInContext(t),eventAggregator.publish(Common.EventNames.SubmitButtonRebind+"."+i,t),modalManager.initialize(),_.isUndefined(inputClearButtons)||inputClearButtons.initializeInContext(t),eventAggregator.publish(Common.EventNames.PageLayoutChanged)})},n}();n.BasketFormProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n;this.segmentName="quickorder-form"}return n.prototype.process=function(n){var t=$(n),i=t.attr("id");if(i)return LifeCycleSystem.replace(this.elements.body().find("#"+i),t).then(function(){return tooltipBoxHandler.initializeInContext(t),selectBoxHandler.initializeInContext(
t),inputDataTypesHandler.initializeInContext(t),modalManager.initialize(),_.isUndefined(inputClearButtons)||inputClearButtons.initializeInContext(t),eventAggregator.publish(Common.EventNames.PageLayoutChanged)})},n}();n.QuickorderFormProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(){this.segmentName="sustainability-details"}return n.prototype.process=function(n){var t=$(n);return LifeCycleSystem.append(t.addClass("should-animate").removeClass("open")).then(function(){eventAggregator.publish(Common.EventNames.ContentAddedToDOM,t)})},n}();n.SustainabilityDetailsProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n;this.segmentName="page-title"}return n.prototype.process=function(n){var t=$(n).html(),i=this.elements.html().find("head > title");i.text(t);eventAggregator.publish(Common.EventNames.PageTitleUpdated)},n}();n.PageTitleProcessor=
t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n;this.segmentName="order-history-header"}return n.prototype.process=function(n){var t=$(n),i=this.elements.body().find(".order-history-header").first();return LifeCycleSystem.replace(i,t).then(function(){inputTypesHandler.initializeInContext(t)})},n}();n.OrderDetailsHeaderProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n;this.segmentName="order-cancellation"}return n.prototype.process=function(n){var t=$(n),i=t.attr("id"),r=this.elements.body().find("#"+i);return LifeCycleSystem.replace(r,t).then(function(){modalManager.initializeInContext(t)})},n}();n.OrderCancellationProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(){this.
segmentName="serverside-logs"}return n.prototype.process=function(n){var t,i,r;if(typeof Debug!="undefined"&&typeof Debug.PageValidatorContainer!="undefined"){t=n.Logs;for(i in t)t.hasOwnProperty(i)&&(r={message:i,lines:t[i]},eventAggregator.publish(Common.EventNames.DebugError,r))}},n}();n.ServersideLogsProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(n,t,i){this.number=n;this.processor=i;this.data=t[i.segmentName];this.deferral=$.Deferred();this.deferral.promise(this)}return n.prototype.execute=function(){var n=this;return $.when(this.processor.process(this.data)).then(function(){n.deferral.resolve(n.number)},function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];i.unshift(n.number);n.deferral.resolve.apply(null,i)})},n}();n.ProcessingStep=t}(WebData||(WebData={})),function(n){var t=function(){function n(){}return n.prototype.generate=function(n,t){for(var u,r={},i=0;i<n.length;i++)u=t.some(function(t){return t.processor.segmentName===
n[i].segmentName}),r[n[i].segmentName]=u;return r},n}();n.ResponseProcessingReportGenerator=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elementRepository=n}return n.prototype.submit=function(n){this.elementRepository.body().append(n).find(n).submit()},n}();n.AutoSubmitForm=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.segmentName="auto-submit-form";this.autoSubmitForm=n}return n.prototype.process=function(n){this.autoSubmitForm.submit($(n))},n}();n.AutoSubmitProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([PageElements.AutoSubmitForm])}(WebData||(WebData={})),function(n){var t=function(){function n(){this.segmentName="exceptions"}return n.prototype.process=function(n){var t=$(n);t.each(function(n,t){var i=$(t).find(".simplebar").html(),r;i&&(r={details:i},eventAggregator.publish(Common.EventNames.DebugError,
r))})},n}();n.ExceptionsProcessor=t;DependencySystem.define(t).as(DS.Factory)}(WebData||(WebData={})),function(n){var t=function(){function t(n,t){this.responseSegmentProcessors=n;this.reportGenerator=t}return t.prototype.process=function(n,t){var i=this,r=this.splitResponse(n,$.extend({},t)),u=this.prepareAllProcessingSteps(r.relevantSegments);return this.executeAllProcessingSteps(u,r.relevantSegments).then(function(){var n=i.reportGenerator.generate(i.responseSegmentProcessors,u);return i.reviseResponse(r.irrelevantSegments,n)})},t.prototype.splitResponse=function(n,t){for(var r={relevantSegments:[],irrelevantSegments:[]},i=0;i<n.length;i++)this.isRelevantResponseSegment(n[i],t)?r.relevantSegments.push(n[i]):r.irrelevantSegments.push(n[i]);return r},t.prototype.isRelevantResponseSegment=function(n,t){for(var u,f,r=!1,i=0;i<this.responseSegmentProcessors.length;i++)if(u=typeof n[this.responseSegmentProcessors[i].segmentName]!="undefined",f=!t[this.responseSegmentProcessors[i].segmentName],u&&f){r=!0;break}return r}
,t.prototype.prepareAllProcessingSteps=function(t){for(var r,u=[],i=0;i<t.length;i++)(r=this.selectResponseSegmentProcessor(t[i]),r)&&u.push(new n.ProcessingStep(i,t[i],r));return u},t.prototype.selectResponseSegmentProcessor=function(n){for(var t=0;t<this.responseSegmentProcessors.length;t++)if(n.hasOwnProperty(this.responseSegmentProcessors[t].segmentName))return this.responseSegmentProcessors[t]},t.prototype.executeAllProcessingSteps=function(n){for(var t=0;t<n.length;t++)t===0?n[0].execute():n[t-1].then(function(t){var i=t+1;n[i].execute()});return $.when.apply(null,n)},t.prototype.reviseResponse=function(n,t){return $.extend(n,{preprocessingReport:t})},t}();n.AjaxResponseProcessor=t;DependencySystem.define(t).as(DS.Factory).andInject([[n.BasketItemsCountProcessor,n.OrderCancellationProcessor,n.CustomerNoteProcessor,n.DebugLinksProcessor,n.IFrameProcessor,n.CloseModalsProcessor,n.ModalProcessor,n.RedirectProcessor,n.ReplaceStateProcessor,n.ResponseProcessingReportGenerator,n.AutoSubmitProcessor,n.ServersideLogsProcessor,
n.ExceptionsProcessor,n.BasketFormProcessor,n.QuickorderFormProcessor,n.SustainabilityDetailsProcessor,n.PageTitleProcessor,n.OrderDetailsHeaderProcessor],n.ResponseProcessingReportGenerator])}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.openRequestsQueue=n;this.maxConcurrentRunningRequests=4;this.runningRequests=0}return n.prototype.throttle=function(n,t,i){var r=$.Deferred(),u={deferral:r,request:n,settings:t,exceptions:i};return this.runningRequests<this.maxConcurrentRunningRequests?this.runRequest(u):this.openRequestsQueue.push(u),r.promise()},n.prototype.runRequest=function(n){var t=this;this.runningRequests++;n.request(n.settings,n.exceptions).then(function(t){n.deferral.resolve(t)},function(){n.deferral.reject()}).always(function(){if(t.runningRequests--,t.openRequestsQueue.count){var n=t.openRequestsQueue.pop();t.runRequest(n)}})},n}();n.AjaxThrottling=t;DependencySystem.define(t).as(DS.Singleton).andInject([Common.Queue])}(WebData||(WebData={})),function(n){var t=function()
{function n(n,t){this.preprocessor=n;this.ajaxThrottling=t}return n.prototype.throttle=function(n,t,i){return this.ajaxThrottling.throttle(n.bind(this),t,i)},n.prototype.get=function(t,i){var r=$.extend({},n.getJsonDefaultSettings,t);return this.requestAndProcess(r,i)},n.prototype.getJsonp=function(t,i){var r=$.extend({},n.getJsonpDefaultSettings,t);return this.requestAndProcess(r,i)},n.prototype.post=function(t,i){var r=$.extend({},n.postJsonDefaultSettings,t);return this.requestAndProcess(r,i)},n.prototype.submit=function(t,i,r,u){var f=this,e={url:t},o=r?{type:r}:{},s=$.extend({},n.submitJsonDefaultSettings,e,o);return i.ajaxSubmit(s).data("jqxhr").then(function(n,t,i){return f.preprocessResponse(n,t,i,u)})},n.prototype.doRequest=function(n,t){if(n.method==="GET")return this.get(n,t);if(n.method==="POST")return this.post(n,t);throw new Error("Invalid request method.\n\nYou tried to do a request of type:\n - "+n.method+"\nbut only the methods/types:\n - GET\n - POST\nare supported");},n.prototype.requestAndProcess=
function(n,t){var i=this;return $.ajax(n).then(function(n,r,u){return i.preprocessResponse(n,r,u,t)})},n.prototype.preprocessResponse=function(n,t,i,r){return this.preprocessor.process(n,r).then(function(n){return $.Deferred().resolve(n,t,i).promise()})},n.getJsonDefaultSettings={method:"GET",dataType:"json"},n.getJsonpDefaultSettings={method:"GET",dataType:"jsonp",jsonp:"jsonpCallback"},n.postJsonDefaultSettings={method:"POST",dataType:"json"},n.submitJsonDefaultSettings={dataType:"json"},n}();n.Ajax=t;DependencySystem.define(t).as(DS.Factory).andInject([n.AjaxResponseProcessor,n.AjaxThrottling])}(WebData||(WebData={})),function(n){var t=function(){function n(n){this.elements=n}return n.prototype.submit=function(n){var t=this.createForm(n);this.elements.body().append(t);t.submit()},n.prototype.createForm=function(n){var t=$("<form><\/form>").attr("action",n.action).attr("method",n.method).attr("name",n.name);return n.acceptCharset&&t.attr("accept-charset",n.acceptCharset),n.autocomplete&&t.attr("autocomplete",
n.autocomplete),n.enctype&&t.attr("enctype",n.enctype),n.novalidate&&t.attr("novalidate",n.novalidate.toString()),n.target&&t.attr("target",n.target),this.addHiddenInputs(t,n)},n.prototype.addHiddenInputs=function(n,t){return t.data.serializeArray().reduce(function(n,i){var r=t.pretty?n.children('[name="'+i.name+'"]'):$(undefined),u;return r.length?r.attr("value",r.attr("value")+","+i.value):(u=$("<input />").attr("type","hidden").attr("name",i.name).attr("value",i.value).attr("autocomplete","off").attr("autocorrect","off").attr("autocapitalize","off").attr("spellcheck","false"),n.append(u)),n},n)},n}();n.Form=t;DependencySystem.define(t).as(DS.Singleton).andInject([Common.ElementRepository])}(WebData||(WebData={})),function(n){var t=function(){function n(){}return n.prototype.orderUpdate=function(n,t,i){var r=[],u=[],f=typeof i=="function"?i:this.getBasicRebuildDto;return t.forEach(function(n){Array.isArray(n)?u.push(n):r.push(n)}),$.when(this.queryAndRequestUpdate(n,u,f),this.onlyRequestUpdate(n,r,f))},n.prototype.
queryAndRequestUpdate=function(n,t,i){var u=this,r=[];return t.forEach(function(t){var f=u.getObjectSegment(t[0]&&t[0].componentName,n),e=Array.isArray(t[1])?t[1]:[];e.forEach(function(n){f.find(n.query).each(function(t,u){r.push(eventAggregator.publish(Common.EventNames.Rebuild+n.componentName,i($(u),n)))})})}),$.when.apply(null,r)},n.prototype.onlyRequestUpdate=function(n,t,i){var u=this,r=[];return t.forEach(function(t){u.getObjectSegment(t.componentName,n).each(function(n,u){r.push(eventAggregator.publish(Common.EventNames.Rebuild+t.componentName,i($(u),t)))})}),$.when.apply(null,r)},n.prototype.getBasicRebuildDto=function(n){return{newContext:n}},n.prototype.getObjectSegment=function(n,t){return $(t.reduce(function(t,i){return typeof i[n]=="string"&&i[n]!==""&&t.push(i[n]),t},[]).join())},n}();n.UpdateInstructor=t;DependencySystem.define(t).as(DS.Singleton)}(WebData||(WebData={})),function(n){var t=function(){function n(){}return n.Landing="Landing",n.ScrollDown="ScrollDown",n.ScrollUp="ScrollUp",n.PlayContentStart=
"PlayContentStart",n.PlayContentEnd="PlayContentEnd",n.PlayContentStop="PlayContentStop",n.AudioPlayerLoaded="AudioPlayerLoaded",n.SongPlayed="SongPlayed",n.SongDownloaded="SongDownloaded",n}();n.ActionControlTypes=t}(Common||(Common={})),function(n){var i=function(){function n(t,i){if(this.actions=[],n.instance)throw new Error("Instantiation of ActionControlHandler failed: Use ActionControlHandler.getInstance() instead of new ActionControlHandler()");else this.elementRepository=t,this.ajax=i,this.init()}return n.getInstance=function(t,i){return n.instance||(n.instance=new n(t,i))},n.prototype.init=function(){var n=this;if(!this.isInitialized&&(this.isInitialized=!0,this.actionControlAjaxTarget=$('head meta[name = "action-control-ajax-target"]').attr("content"),this.pageViewLogDataId=this.elementRepository.html().data("page-view-log-data-id"),this.isEnabled=!_.isEmpty(this.pageViewLogDataId)&&typeof this.actionControlAjaxTarget!="undefined"&&!_.isEmpty(this.actionControlAjaxTarget),this.isEnabled)){this.setupTimeout(
);this.elementRepository.window().on("unload",function(){return n.sendActions(!0)});this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.TrackActionControlEvent,callback:this.trackActionControlEventCallback.bind(this)},{message:Common.EventNames.TrackActionForSubject,callback:this.trackActionForSubjectCallback.bind(this)}])}},n.prototype.trackActionControlEventCallback=function(i){!this.isEnabled||_.isEmpty(i.actionSubject)||_.isEmpty(i.actionType)||(this.actions.push(new t(i.actionSubject,i.actionType,this.pageViewLogDataId)),(i.forceSend||this.actions.length>=n.SendAfterQueueReachesLength)&&this.sendActions(i.forceSend))},n.prototype.trackActionForSubjectCallback=function(i){var u=this.getSubject(i.actionSubject),r=i.actionType;_.isEmpty(u)||(r||(r=i.actionSubject.data(n.ActionTypeDataAttributeName)),this.actions.push(new t(u,r,this.pageViewLogDataId)),(i.forceSend||this.actions.length>=n.SendAfterQueueReachesLength)&&this.sendActions(i.forceSend))},n.prototype.getSubject=function(
t){var i=null;return t&&t.length===1&&(i=t.data(n.SubjectDataAttributeName)),i},n.prototype.setupTimeout=function(){var t=this;clearTimeout(this.timeoutHandle);this.timeoutHandle=setTimeout(function(){return t.sendActions(!1)},n.SendEveryNumberOfSeconds*1e3)},n.prototype.sendActions=function(n){var t=this,i;(n||!this.isSending)&&this.actions.length>0?(this.isSending=!0,i=this.actions,this.actions=[],this.ajax.post({url:this.actionControlAjaxTarget,contentType:"application/json",data:JSON.stringify({Actions:i})}).always(function(){t.isSending=!1;t.setupTimeout()}).fail(function(){t.actions=i.concat(t.actions)})):this.isSending||this.setupTimeout()},n.prototype.getActionControlSubjects=function(t){return t.filter(n.SubjectDataAttributeSelector)},n.prototype.contextHasActionControlSubjects=function(n){return this.getActionControlSubjects(n).length>0},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n.SendEveryNumberOfSeconds=10,n.SendAfterQueueReachesLength=10,n.SubjectDataAttributeName=
"action-control-subject",n.ActionTypeDataAttributeName="action-control-type",n.SubjectDataAttributeSelector="[data-"+n.SubjectDataAttributeName+"]",n}(),t;n.ActionControlHandler=i;t=function(){function n(n,t,i){this.Subject=n;this.ActionType=t;this.Time=(new Date).toJSON();this.PageViewLogDataId=i}return n}();DependencySystem.define(i).as(DS.Singleton).andInject([Common.ElementRepository,WebData.Ajax])}(PageElements||(PageElements={}));$(document).ready(function(){DependencySystem.resolve(PageElements.ActionControlHandler)}),function(n){var t=function(){function n(n){this.origin=n;this.bindEvents()}return n.prototype.bindEvents=function(){var n=this;this.origin.setUp(this.origin.contextQuery).on("mouseup",function(t){t.which===Common.MouseButtons.MIDDLE&&(n.mouseUpTimeoutHandle=setTimeout(function(){n.sendAction($(t.currentTarget))},100))}).on("click",function(t){clearTimeout(n.mouseUpTimeoutHandle);n.sendAction($(t.currentTarget))})},n.prototype.destroy=function(){this.origin.tearDown()},n.prototype.sendAction=
function(t){var i={actionSubject:t,actionType:t.data(n.ActionTypeDataAttributeName),forceSend:!0};eventAggregator.publish(Common.EventNames.TrackActionForSubject,i)},n.ActionTypeDataAttributeName="action-control-type",n}();n.ActionControlSubjectController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="action-control-subject",t.query="a[data-action-control-subject]",t.controller=n.ActionControlSubjectController,t}();n.ActionControlSubjectComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){this.managers=[];this.isParallaxPage=utils.isParallaxpage()}return n.prototype.bindTo=function(n){this.isParallaxPage?this.moveTouchAreaAndRegisterGestures(n):this.registerGestures(n)},n.prototype.unbindFrom=function(n){var t,i,r,u;n.length&&(t=this.managers.filter(function(t){return t.slideshow===n}),t.length)&&(i=t[0],r=i.manager,
this.isParallaxPage?this.unregisterParallaxGestures(r):this.unregisterGestures(r),u=this.managers.indexOf(i),this.managers.splice(u,1))},n.prototype.moveTouchAreaAndRegisterGestures=function(n){var i=n.closest(".screen"),t,r,u,f;if(!i.length){this.registerGestures(n);return}t=new Hammer.Manager(i.get(0));this.managers.push({slideshow:i,manager:t});r=new Hammer.Pan({direction:Hammer.DIRECTION_HORIZONTAL,treshold:0});u=new Hammer.Swipe({direction:Hammer.DIRECTION_HORIZONTAL});r.recognizeWith(u);t.add([r,u]);f=function(t){if(t.deltaTime<250&&t.type=="pan"){t.srcEvent.stopPropagation();t.srcEvent.preventDefault();event.preventDefault();return}if(t.type=="swipe"){var i=Math.abs(t.angle);i>=0&&i<=45?(n.cycle("prev"),n.trigger("trigger.scrollTo")):i>=135&&i<=180&&(n.cycle("next"),n.trigger("trigger.scrollTo"))}};t.on("pan swipe",f)},n.prototype.registerGestures=function(n){var i,t,r,u;if(n.length){i=new Hammer.Swipe({direction:Hammer.DIRECTION_HORIZONTAL});t=new Hammer.Manager(n.get(0));this.managers.push({slideshow:
n,manager:t});t.add(i);r=function(){n.cycle("next")};u=function(){n.cycle("prev")};t.on("swipeleft",r);t.on("swiperight",u)}},n.prototype.unregisterParallaxGestures=function(n){n.remove("pan");n.remove("swipe")},n.prototype.unregisterGestures=function(n){n.remove("swipeleft");n.remove("swiperight")},n}();n.Gestures=t;DependencySystem.define(t).as(DS.Singleton)}(Slideshows||(Slideshows={})),function(n){var t=function(){function n(){this.isParallaxPage=utils.isParallaxpage();this.determineSomeDefaultOptions()}return n.prototype.configure=function(n,t){var i=$.extend({},this.prepareDefaultConfig(),this.processCustomConfig(n));return t&&$.extend(i,this.prepareDefaultPagerConfig()),i.swipe=!1,i},n.prototype.determineSomeDefaultOptions=function(){this.defaultTransitionType=this.isParallaxPage||sniff.isDesktop?"fade":"scrollHorz";this.defaultTimeout=utils.isStartpage()?16e3:6e3},n.prototype.prepareDefaultConfig=function(){return{pauseOnHover:!1,paused:!1,slides:"> .slide",speed:300,loader:"wait",timeout:this.defaultTimeout,
log:!1,fx:this.defaultTransitionType}},n.prototype.prepareDefaultPagerConfig=function(){return{pager:"> .pager > .slideshowpager",pagerActiveClass:"active",pagerTemplate:"<li><\/li>"}},n.prototype.processCustomConfig=function(n){return this.isParallaxPage?n.fx=undefined:n.fx==="slide"&&(n.fx="scrollHorz"),n},n}();n.Cycle2ConfigurationProvider=t;DependencySystem.define(t).as(DS.Singleton)}(Slideshows||(Slideshows={})),function(n){var t=function(){function n(n,t,i,r){this.origin=n;this.freezer=t;this.cycle2ConfigurationProvider=i;this.gestures=r;this.pausesOnHover=utils.isStartpage()}return n.createInstance=function(){return DependencySystem.resolve(n)},n.prototype.initializeFor=function(n,t,i,r){var u=this;return this.analyizeSlideshow(n,i),r&&(this.needToWaitForFirstStart=!0,r.done(function(){u.needToWaitForFirstStart=!1})),this.shouldHavePager&&this.addPager(),this.initializeCycle2(t).then(function(){u.domContext.find(".slide").css("display","block");u.introduceFreezer();sniff.isTouch&&u.gestures.bindTo(u.domContext);
u.shouldHavePager&&u.pagerContainer.find(".slideshowpager").css("display","block");u.pausesOnHover&&u.pauseOnHover();u.isInitialized=!0})},n.prototype.pause=function(){this.checkInitialisation();this.domContext.cycle("pause")},n.prototype.goTo=function(n){this.checkInitialisation();this.domContext.cycle("goto",n)},n.prototype.resume=function(){this.domContext.data("animation-delay")!==0&&((this.checkInitialisation(),this.freezer.isFrozen)||this.needToWaitForFirstStart||this.domContext.cycle("resume"))},n.prototype.stop=function(){this.checkInitialisation();this.domContext.cycle("stop")},n.prototype.destroy=function(){var n=this;return this.isInitialized?(this.stop(),this.freezer.destroy(),sniff.isTouch&&this.gestures.unbindFrom(this.domContext),this.destroyCycle2().then(function(){n.domContext.off(n.origin.eventNamespace);n.pagerContainer.off(n.origin.eventNamespace)})):$.Deferred().reject()},n.prototype.analyizeSlideshow=function(n,t){this.domContext=n;this.pagerContainer=n.find(".pager");var i=this.domContext.
find(".slide").length;this.shouldHavePager=i>1;_.isBoolean(t)&&(this.pausesOnHover=t)},n.prototype.addPager=function(){var n=$('<ul class="slideshowpager"/>');this.pagerContainer.on("click"+this.origin.eventNamespace,".slideshowpager > li",this.stop.bind(this)).append(n)},n.prototype.initializeCycle2=function(n){var i=this,t=$.Deferred(),r=this.cycle2ConfigurationProvider.configure(n,this.shouldHavePager);return this.domContext.one("cycle-initialized"+this.origin.eventNamespace,function(){t.resolve()}).one("cycle-destroyed"+this.origin.eventNamespace,function(){t.reject()}).on("cycle-before"+this.origin.eventNamespace,function(n,t){i.domContext.find(".slideshowpager li").removeClass("active");var r=".slideshowpager li:nth-child("+(t.nextSlide+1).toString()+")";i.domContext.find(r).addClass("active")}).cycle(r),t.promise()},n.prototype.pauseOnHover=function(){var n=this;this.domContext.hover(function(){n.pause()},function(){n.resume()})},n.prototype.introduceFreezer=function(){this.freezer.introduce(this.domContext,
this.pause.bind(this),this.resume.bind(this),this.shouldBeFrozen.bind(this))},n.prototype.shouldBeFrozen=function(){var n=!this.domContext.hasClass("cycle-paused"),t=this.pausesOnHover?this.domContext.is(":hover"):!1;return n||t},Object.defineProperty(n.prototype,"isHovered",{get:function(){return this.domContext.is(":hover")},enumerable:!0,configurable:!0}),n.prototype.activeSlideHasAjaxTarget=function(){return this.domContext.find(".cycle-slide-active .image[data-modal-ajaxtarget]").length>0},n.prototype.destroyCycle2=function(){var n=$.Deferred();return this.pagerContainer.empty(),this.domContext.one("cycle-destroyed",function(){n.resolve()}).cycle("destroy"),n.promise()},n.prototype.checkInitialisation=function(){if(!this.isInitialized)throw new Error('Cycle2Slideshow: Must be initialized with ".initializeFor" before first use of public methods!');},n}();n.Cycle2Slideshow=t;DependencySystem.define(t).as(DS.Factory).andInject([DS.Origin,Common.Freezer,n.Cycle2ConfigurationProvider,n.Gestures])}(Slideshows||
(Slideshows={})),function(n){var t=function(){function n(n,t){t.setup(n.body())}return n}();n.AppConfiguration=t;DependencySystem.define(t).as(DS.Configuration).andInject([Common.ElementRepository,Toggles.TogglesSetup])}(App||(App={})),function(n){var t=function(){function n(n){n.body().on("click","span[data-htarget]",function(n){var t=$(n.currentTarget);location.href=t.hTarget()})}return n}();n.LinksConfiguration=t;DependencySystem.define(t).as(DS.Configuration).andInject([Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){n.body().on("shown.bs.modal shown.headerflyout",this.freeze.bind(this)).on("hide.bs.modal hide.headerflyout",this.unfreeze.bind(this));eventAggregator.subscribeMultiple([{message:Common.EventNames.SustainabilityDetailsOpen,callback:this.freeze.bind(this)},{message:Common.EventNames.SustainabilityDetailsClose,callback:this.unfreeze.bind(this)},{message:Common.EventNames.JobOfferDetailsOpen,callback:this.freeze.bind(this)},{message:Common.
EventNames.JobOfferDetailsClosed,callback:this.unfreeze.bind(this)},{message:Common.EventNames.SliderOpen,callback:this.unfreezeContentOnly.bind(this)},{message:Common.EventNames.SliderClose,callback:this.freezeContentOnly.bind(this)},{message:Common.EventNames.ScreenContentSwitcherHideScreen,callback:this.freezeContentOnly.bind(this)},{message:Common.EventNames.ScreenContentSwitcherShownScreen,callback:this.unfreezeContentOnly.bind(this)}])}return n.prototype.freeze=function(){eventAggregator.publish(Common.EventNames.FreezerFreeze)},n.prototype.unfreeze=function(){eventAggregator.publish(Common.EventNames.FreezerUnfreeze)},n.prototype.freezeContentOnly=function(n){n&&n.length&&eventAggregator.publish(Common.EventNames.FreezerFreeze,function(t){return $.contains(n[0],t)})},n.prototype.unfreezeContentOnly=function(n){n&&n.length&&eventAggregator.publish(Common.EventNames.FreezerUnfreeze,function(t){return $.contains(n[0],t)})},n}();n.Freezing=t;DependencySystem.define(t).as(DS.Configuration).andInject([Common.
ElementRepository])}(App||(App={})),function(n){var t=function(){function t(t,i,r){var u=this;this.origin=t;this.elements=i;this.window=r;this.elements=i;this.previousWindowOrientation=this.elements.window().orientation();this.previousWindowHeight=this.elements.window().width();this.origin.setUp(this.elements.window()).on("orientationchange",function(){u.orientationChanged&&eventAggregator.publish(n.EventNames.OrientationHasChanged)}).on("resize",{throttle:250},function(){eventAggregator.publish(n.EventNames.WindowSizeChanged);u.orientationChanged&&eventAggregator.publish(n.EventNames.OrientationHasChanged)}).on("scroll",{throttle:125},function(){eventAggregator.publish(n.EventNames.WindowScrolled)}).on("scroll resize orientationchange",{throttle:125},function(){u.window.update()})}return Object.defineProperty(t.prototype,"orientationChanged",{get:function(){var n=this.elements.window().orientation(),t=this.elements.window().height();return n!==this.previousWindowOrientation&&t!==this.previousWindowHeight?(this.
previousWindowOrientation=n,this.previousWindowHeight=t,!0):!1},enumerable:!0,configurable:!0}),t}();n.WindowTracking=t;DependencySystem.define(t).as(DS.Configuration).andInject([DS.Origin,n.ElementRepository,n.WindowProperties])}(Common||(Common={})),function(n){var t=function(){function n(){}return n.prototype.supportsEnablingSubmitOnInputChanges=function(n,t){var i=t.attr("id"),r=!!n.find("[data-enable-onchange-id="+i+"]").length;return!!i&&r},n.prototype.supportsPreventingImplicitSubmit=function(n){return n.find("input:not([type=hidden]):not([type=button]):not([type=submit])").length===1},n}();n.FormAnalyzer=t;DependencySystem.define(t).as(DS.Singleton)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;this.forms=t}return n.prototype.preventSubmitOnKeyEnter=function(n){if(this.manipulationsCanBeSaved(n)){if(this.manipulationIsApplied("preventSubmitOnKeyEnter",n))return;this.saveManipulation("preventSubmitOnKeyEnter",n)}this.origin.setUp(n).on("keydown.prevent-submit-on-key-enter",
"input:not([type=hidden]):not([type=button]):not([type=submit])",function(n){var t=utils.getKeyCode(n);t===Key.ENTER&&n.preventDefault()})},n.prototype.enableSubmitOnInputChanges=function(n,t){var i=t.attr("id");if(i){if(this.manipulationsCanBeSaved(n)){if(this.manipulationIsApplied("enableSubmitOnInputChanges",n))return;this.saveManipulation("enableSubmitOnInputChanges",n)}t.addClass("disabled dimmed");this.origin.setUp(n).on("input.enable-submit-on-input-changes","[data-enable-onchange-id="+i+"]",function(){t.removeClass("disabled dimmed")})}},n.prototype.removeManipulationsFromForm=function(n){var t=this.forms.get(n);t&&(t.form.off(".prevent-submit-on-key-enter"+this.origin.eventNamespace),t.preventSubmitOnKeyEnter=!1,t.form.off(".enable-submit-on-input-changes"+this.origin.eventNamespace),t.enableSubmitOnInputChanges=!1,this.forms.removeByKey(n))},n.prototype.manipulationsCanBeSaved=function(n){return!!n.attr("id")},n.prototype.manipulationIsApplied=function(n,t){var r=t.attr("id"),i=this.forms.get(r);return!!i&&
!!i[n]},n.prototype.saveManipulation=function(n,t){var i=t.attr("id"),r=this.forms.get(i);r?r[n]=!0:this.saveInitialFormManipulation(n,t,i)},n.prototype.saveInitialFormManipulation=function(n,t,i){var u=this,r={form:t};r[n]=!0;this.forms.add(i,r);t.on("destroyed",function(){u.removeManipulationsFromForm(i)})},n}();n.FormsManipulator=t;DependencySystem.define(t).as(DS.Singleton).andInject([DS.Origin,Common.Dictionary])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){this.origin=n;this.elementRepository=i;this.inputDisablingHelper=t;this.disableHiddenInputOnSubmit()}return n.prototype.disableHiddenInputOnSubmit=function(){var n=this.origin.contextQuery;this.inputDisablingHelper.initializeDisablingOnForm(n)},n}();n.FormController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.InputDisablingHelper,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="form",t.query="form",t.controller=
n.FormController,t}();n.FormComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){this.origin=n;this.formsManipulator=t;this.formAnalyzer=i;this.target=this.origin.contextQuery.attr("formaction");this.ajaxTarget=this.origin.contextQuery.data("ajaxtarget");this.associatedFormId=this.origin.contextQuery.data("formid");this.setupAndBind();this.rebindEventToken=eventAggregator.subscribe(Common.EventNames.SubmitButtonRebind+"."+this.associatedFormId,this.rebindAssociatedForm.bind(this))}return n.prototype.setupAndBind=function(n){var t,i;if(this.associatedFormId&&(t="form#"+this.associatedFormId,_.isUndefined(n)?this.associatedForm=$(t):(i=$(n),this.associatedForm=i.is(t)?i:i.find(t))),this.associatedForm.length){this.onchangeEnabledInputsExist=this.formAnalyzer.supportsEnablingSubmitOnInputChanges(this.associatedForm,this.origin.contextQuery);this.onchangeEnabledInputsExist&&this.formsManipulator.enableSubmitOnInputChanges(this.associatedForm,
this.origin.contextQuery);this.formAnalyzer.supportsPreventingImplicitSubmit(this.associatedForm)&&this.formsManipulator.preventSubmitOnKeyEnter(this.associatedForm);this.origin.setUp(this.origin.contextQuery).on("click",{preventDefault:!0,debounce:3e3,immediate:!0},this.submitAssociatedForm.bind(this))}},n.prototype.rebindAssociatedForm=function(n){this.origin.contextQuery.off(this.origin.eventNamespace);this.setupAndBind(n)},n.prototype.destroy=function(){this.origin.contextQuery.off(this.origin.eventNamespace);eventAggregator.unSubscribe(Common.EventNames.SubmitButtonRebind,this.rebindEventToken)},n.prototype.submitAssociatedForm=function(){var n,t;this.target||this.ajaxTarget?this.ajaxTarget?ajaxFormHandler.loadAndProcessNewFormContents(this.ajaxTarget,this.associatedForm,this.origin.contextQuery,this.onchangeEnabledInputsExist):(t=this.associatedForm.attr("action"),this.associatedForm.attr("action",this.target).submit().attr("action",t)):(n=this.associatedForm.data("ajaxtarget"),n?ajaxFormHandler.loadAndProcessNewFormContents(
n,this.associatedForm,this.origin.contextQuery,this.onchangeEnabledInputsExist):this.associatedForm.submit())},n}();n.SubmitButtonController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.FormsManipulator,n.FormAnalyzer])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="submit",t.query="button[type=submit].submit-button[data-formid]",t.controller=n.SubmitButtonController,t}();n.SubmitButtonComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;this.elements=t;this.styleContainer=this.origin.contextQuery;this.elements.window().on("resize"+this.origin.eventNamespace,_.throttle(this.setBackgroundSizeValue,500).bind(this))}return n.prototype.setBackgroundSizeValue=function(){var n=this.elements.window().height();this.styleContainer.html("html.desktop > body { background-size: auto "+n+"px; }")},n.prototype.destroy=function(){this.elements.window().
off(this.origin.eventNamespace)},n}();n.BackgroundImageScalingController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="background-image-scaling",t.query="#background-image-scaling",t.controller=n.BackgroundImageScalingController,t}();n.BackgroundImageScalingComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function t(n,t,i,r){this.ajax=n;this.updateInstructor=t;this.inputDisablingHelper=r;this.elements=i}return t.prototype.serialize=function(n){var t=$('form[data-group-id="'+n+'"]');return this.inputs=this.inputDisablingHelper.disableInvisibleInputs(t),t.toArray().map(function(n){return $(n).serialize()}).join("&")},t.prototype.postThenUpdate=function(t,i){var r=this;return this.ajax.post({url:t,data:i}).then(function(t){return r.updateInstructor.orderUpdate(t,[[n.ContentHeaderComponent,[n.FilterPanelComponent,
n.SortMenuComponent,n.SearchComponent,n.SearchResultInfoComponent]],n.PressMediaGalleryComponent,n.PressMediaListComponent,n.PressReleaseListComponent])}).always(function(){r.inputDisablingHelper.reEnableInvisibleInputs(r.inputs)}).then(function(){r.elements.window().resize()})},t}();n.ItemsDescription=t;DependencySystem.define(t).as(DS.Singleton).andInject([WebData.Ajax,WebData.UpdateInstructor,Common.ElementRepository,Common.InputDisablingHelper])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.filterTab=this.origin.contextQuery.find(".filter");this.eventIds=eventAggregator.subscribeMultiple([{message:Common.EventNames.FilterPanelHasSelectedCriteria,callback:this.markAsHasSelectedCriteria.bind(this)},{message:Common.EventNames.FilterPanelHasNoSelectedCriteria,callback:this.unmarkAsHasSelectedCriteria.bind(this)},{message:Common.EventNames.ToggleTransitionEnded,callback:this.propagateLayoutChangeOnFilterOpenCloseChange.bind(this)}]);this.origin.contextQuery.on(
"click",".filter .reset-button",function(){eventAggregator.publish(Common.EventNames.FilterPanelResetSelectedCriteria)})}return n.prototype.markAsHasSelectedCriteria=function(){this.filterTab.addClass("has-selected-criteria")},n.prototype.unmarkAsHasSelectedCriteria=function(){this.filterTab.removeClass("has-selected-criteria")},n.prototype.propagateLayoutChangeOnFilterOpenCloseChange=function(n){n.triggers.origin.filter(".tab-link").parent(".filter.tab").length&&eventAggregator.publish(Common.EventNames.PageLayoutChanged)},n}();n.ToolbarController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="toolbar",t.query=".toolbar-element",t.controller=n.ToolbarController,t}();n.ToolbarComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var i=Scrolling.ScrollStateDispatcher,r=Scrolling.GradientsController,u=Scrolling.BodyScrollingController,f=Scrolling.
FirefoxHotfix,e=Scrolling.SimplebarHeightAdjuster,o=Scrolling.SimplebarScrollbarAdjuster,s=Scrolling.DesktopEmulationModeFix,t=function(){function n(n,t,i,r){var u=this;this.origin=n;this.toggles=t;this.itemsDescription=i;this.elements=r;this.constructing=$.Deferred();this.isAlive=!0;this.itemGroupId=this.origin.contextQuery.data("group-id");this.updateTarget=this.origin.contextQuery.data("ajaxtarget");this.closeButton=this.origin.contextQuery.find(".close-button");this.criteriaResetButton=this.origin.contextQuery.find(".buttons .filter-reset");this.initScrollbars();this.eventIds=eventAggregator.subscribeMultiple([{message:Common.EventNames.ToggleTransitionStarted,callback:this.optionallyRemoveSelectedCriteriaSummaryOnToggle},{message:Common.EventNames.ToggleTransitionEnded,callback:this.optionallyAddSelectedCriteriaSummaryOnToggle.bind(this)},{message:Common.EventNames.FilterPanelResetSelectedCriteria,callback:this.resetAllCriteria.bind(this)}]);this.origin.contextQuery.on("change"+this.origin.eventNamespace,
'.criterion > input[type="checkbox"]',function(){u.publishWhetherCriteriaAreSelected();u.applyFilterChange()}).on("click"+this.origin.eventNamespace,".buttons .filter-reset",this.resetAllCriteria.bind(this)).on("click"+this.origin.eventNamespace,".toggle-dimension",this.scrollCriteriaToTop.bind(this));this.elements.window().on("delta-scroll"+this.origin.eventNamespace,{yThreshold:sniff.isDesktop?400:160},_.throttle(this.optionallyCloseFilterPanelViaCloseButton,250).bind(this));this.optionallyAddSelectedCriteriaSummary();this.preselectTopLevelDimensionIfOnlyOne().then(function(){u.constructing.resolve()})}return n.prototype.postConstruct=function(){this.publishWhetherCriteriaAreSelected()},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.eventIds);this.origin.contextQuery.off(this.origin.eventNamespace);this.elements.window().off(this.origin.eventNamespace);this.isAlive=!1},n.prototype.preselectTopLevelDimensionIfOnlyOne=function(){var n=this.origin.contextQuery.find(".top-level > .dimension > .toggle-dimension");
return $.when(n.length===1&&n.hasClass("off")?this.toggles.triggerOrigin(n,!0):undefined)},n.prototype.initScrollbars=function(){var n=this.origin.contextQuery.find(".dimensions"),t=this.origin.contextQuery.find(".criteria"),i=n.find(".simplebar");this.criteriaSimplebarContainer=t.find(".simplebar");this.initScrollbarFor(n,i);this.initScrollbarFor(t,this.criteriaSimplebarContainer)},n.prototype.initScrollbarFor=function(n,t){var h=new Common.EventAggregator;t.simplebar({autoHide:!1}).use(new s).use(new f).use(new r(n,200,h)).use(new u).use(new e).use(new o).use(new i(h))},n.prototype.scrollCriteriaToTop=function(){this.criteriaSimplebarContainer.find(".simplebar-scroll-content").scrollTop(0)},n.prototype.applyFilterChange=function(){var n=this,t=this.origin.contextQuery.data("targetFor"),i=this.itemsDescription.serialize(this.itemGroupId);this.origin.contextQuery.find(".loader").addClass("show");this.itemsDescription.postThenUpdate(this.updateTarget,i).then(function(){n.isAlive&&n.origin.contextQuery.data("targetFor")===
t&&(LifeCycleSystem.remove(n.origin.contextQuery),LifeCycleSystem.remove($(".filter.tab")))},function(){n.origin.contextQuery.find(".loader").removeClass("show")})},n.prototype.optionallyAddSelectedCriteriaSummary=function(){var n=this,t=this.origin.contextQuery.find(".dimensions .simplebar-content > ul > .dimension > .toggle-dimension");t.each(function(t,i){var r=$(i),u=r.siblings(".sub-dimensions").find(".toggle-dimension");n.addSelectedCriteriaSummary(r,u)})},n.prototype.optionallyAddSelectedCriteriaSummaryOnToggle=function(n){!n.triggers.origin.hasClass("on")&&n.triggers.origin.hasClass("toggle-dimension")&&n.triggers.descendants.length&&this.addSelectedCriteriaSummary(n.triggers.origin,n.triggers.descendants)},n.prototype.optionallyRemoveSelectedCriteriaSummaryOnToggle=function(n){!n.triggers.origin.hasClass("on")&&n.triggers.origin.hasClass("toggle-dimension")&&n.triggers.descendants.length&&n.triggers.origin.siblings(".selected-criteria").remove()},n.prototype.addSelectedCriteriaSummary=function(n,t){var
i=this.cloneSelectedCriteriaFor(t),r;i.length&&(r=$('<div class="selected-criteria"><\/div>').prepend(i),n.siblings(".dimension-name").after(r))},n.prototype.cloneSelectedCriteriaFor=function(n){return n.filter(function(n,t){return!$(t).siblings(".sub-dimensions").find(".dimension.panel").length}).siblings(".selected-criteria").children(".selected-criterion").clone()},n.prototype.publishWhetherCriteriaAreSelected=function(){var n=this.hasSelectedCriteria();!this.hadSelectedCriteria&&n?(this.enableCriteriaResetButton(),eventAggregator.publish(Common.EventNames.FilterPanelHasSelectedCriteria)):this.hadSelectedCriteria&&!n&&(this.disableCriteriaResetButton(),eventAggregator.publish(Common.EventNames.FilterPanelHasNoSelectedCriteria));this.hadSelectedCriteria=n},n.prototype.hasSelectedCriteria=function(){return this.origin.contextQuery.find('.criterion > input[type="checkbox"]').toArray().some(function(n){return!!$(n).prop("checked")})},n.prototype.resetAllCriteria=function(){this.origin.contextQuery.find('.criterion > input[type="checkbox"]').
prop("checked",!1);this.disableCriteriaResetButton();eventAggregator.publish(Common.EventNames.FilterPanelHasNoSelectedCriteria);this.applyFilterChange()},n.prototype.enableCriteriaResetButton=function(){this.criteriaResetButton.prop("disabled",!1).removeClass("disabled")},n.prototype.disableCriteriaResetButton=function(){this.criteriaResetButton.prop("disabled",!0).addClass("disabled")},n.prototype.optionallyCloseFilterPanelViaCloseButton=function(n){!$(n.target).closest(".filter-panel").length&&$('[data-toggle-id="'+this.closeButton.data("relay-to")+'"]').hasClass("on")&&this.toggles.triggerRelay(this.closeButton)},n}();n.FilterPanelController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Toggles.TogglesSetup,n.ItemsDescription,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.toggles=n}return n.prototype.isResponsible=function(n,t){return n.contextQuery.data("group-id")===t.newContext.data("group-id")},n.prototype.update=function(
n,t){var i=this;this.preserveClasses(n,t);this.preserveToggleIds(n,t);var r=n.contextQuery.find(".toggle-dimension.on").parent("[data-dimension-name]"),u=n.contextQuery.find(".dimensions .simplebar-scroll-content").scrollTop(),f=n.contextQuery.find(".criteria .simplebar-scroll-content").scrollTop();return LifeCycleSystem.replace(n.contextQuery,t.newContext).then(function(){return i.preserveSelectedDimensions(r,t)}).then(function(){i.preserveScrollPositions(u,f,t)})},n.prototype.preserveClasses=function(n,t){var i=n.contextQuery.attr("class");t.newContext.removeClass().addClass(i)},n.prototype.preserveToggleIds=function(n,t){var i=n.contextQuery.data("target-for");t.newContext.attr("data-target-for",i).find(".close-panel, .close-button, .filter-result").attr("data-relay-to",i)},n.prototype.preserveSelectedDimensions=function(n,t){var r=this,i=$(undefined);return n.toArray().reduce(function(n,t){var r=n.find('[data-dimension-name="'+$(t).data("dimension-name")+'"]').children(".toggle-dimension");return i=i.add(
r),r.siblings(".sub-dimensions")},t.newContext.find(".dimension.panel").first().parent()),this.toggles.triggerOrigin(t.newContext.find(".toggle-dimension.on"),!0,{turnOffSiblings:!1,turnOffDescendantsOnTurnOff:!1,turnOnSingleChildOnTurnOn:!1}).then(function(){return r.toggles.triggerOrigin(i,!0,{turnOnSingleChildOnTurnOn:!1})})},n.prototype.preserveScrollPositions=function(n,t,i){i.newContext.find(".dimensions .simplebar-scroll-content").scrollTop(n);i.newContext.find(".criteria .simplebar-scroll-content").scrollTop(t)},n}();n.FilterPanelRebuilder=t;DependencySystem.define(t).as(DS.Rebuilder).andInject([Toggles.TogglesSetup])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="filter-panel",t.query=".filter-panel",t.controller=n.FilterPanelController,t.rebuilder=n.FilterPanelRebuilder,t}();n.FilterPanelComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;this.itemsDescription=
t;this.itemGroupId=this.origin.contextQuery.data("group-id");this.updateTarget=this.origin.contextQuery.data("ajaxtarget");this.origin.contextQuery.on("change"+this.origin.eventNamespace,".criterion > .toggle-state",this.applySortChange.bind(this))}return n.prototype.destroy=function(){this.origin.contextQuery.off(this.origin.eventNamespace)},n.prototype.applySortChange=function(){var n=this.itemsDescription.serialize(this.itemGroupId);this.itemsDescription.postThenUpdate(this.updateTarget,n)},n}();n.SortMenuController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.ItemsDescription])}(PageElements||(PageElements={})),function(n){var t=function(){function n(){}return n.prototype.isResponsible=function(n,t){return n.contextQuery.data("group-id")===t.newContext.data("group-id")},n.prototype.update=function(n,t){var i=n.contextQuery.data("target-for"),r=n.contextQuery.attr("class");return t.newContext.removeClass().addClass(r).attr("data-target-for",i).find(".close-panel, .close-button").attr(
"data-relay-to",i),sniff.isDesktop&&t.newContext.attr("data-relay-to",i),LifeCycleSystem.replace(n.contextQuery,t.newContext)},n}();n.SortMenuRebuilder=t;DependencySystem.define(t).as(DS.Rebuilder)}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="sort-menu",t.query=".sort-menu",t.controller=n.SortMenuController,t.rebuilder=n.SortMenuRebuilder,t}();n.SortMenuComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){}return n.prototype.isResponsible=function(n,t){return n.contextQuery.data("group-id")===t.newContext.data("group-id")},n.prototype.update=function(n,t){return LifeCycleSystem.replace(n.contextQuery,t.newContext).then(function(){modalManager.initializeInContext(t.newContext)})},n}();n.GroupIdAndModalRebuilder=t;DependencySystem.define(t).as(DS.Rebuilder)}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="press-media-gallery",t.
query=".press-media-gallery",t.rebuilder=n.GroupIdAndModalRebuilder,t}();n.PressMediaGalleryComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="press-media-list",t.query=".press-media-list",t.rebuilder=n.GroupIdAndModalRebuilder,t}();n.PressMediaListComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="press-release-list",t.query=".press-release-list",t.rebuilder=n.GroupIdAndModalRebuilder,t}();n.PressReleaseListComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){(this.expanderTarget=n.contextQuery.find(".expander-target"),this.sushibar=n.contextQuery.find(".media-wrapper"),this.sushibar.length&&!this.sushibar.hasClass("vertical"))&&(this.swiper=new Swiper(this.sushibar.get(0),{slidesPerView:"auto",height:90,roundLengths:!0,nextButton:
".pager-arrows.right",prevButton:".pager-arrows.left"}),this.initalizeEvents())}return n.prototype.initalizeEvents=function(){var n=this;this.sushibar.find(".pager-arrows.right").on("click",this.nagivateRight.bind(this));this.sushibar.find(".pager-arrows.left").on("click",this.navigateLeft.bind(this));this.toggleEvent=eventAggregator.subscribe(Common.EventNames.ToggleTransitionEnded,function(){n.expanderTarget.hasClass("slided-down")&&n.swiper.update()})},n.prototype.navigateLeft=function(){var n=this.swiper.activeIndex-1;this.swiper.slideTo(n)},n.prototype.nagivateRight=function(){var n=this.swiper.activeIndex+1;this.swiper.slideTo(n)},n.prototype.destroy=function(){this.sushibar.find(".pager-arrows.right").off();this.sushibar.find(".pager-arrows.right").off();eventAggregator.unSubscribe(Common.EventNames.ToggleTransitionEnded,this.toggleEvent)},n}();n.ExpanderSwiperController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){
function t(){}return t.componentName="expander-swiper",t.query=".expander-group .expander",t.controller=n.ExpanderSwiperController,t}();n.ExpanderSwiperComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){if(this.mainMenuMaxWidth=10,this.mainMenuMinWidth=10,this.defaultVelocityOptions={queue:!1,duration:500,mobileHA:!1},n.instance)throw new Error("Instantiation of Service failed: Use Service.getInstance() instead of new Service()");else this.calcMainMenuMaxWidth()}return n.getInstance=function(){return n.instance},n.prototype.mainMenuIn=function(n,t){var i,r;return(t===void 0&&(t=!1),i=$.Deferred(),n.width()===this.mainMenuMaxWidth)?i.resolve().promise():(r=this.velocityOptionsWithPromise(i),t&&_.extend(r,{duration:0}),n.velocity({width:this.mainMenuMaxWidth},r),i.promise().then(function(){n.addClass("semi-open")}))},n.prototype.mainMenuOut=function(n){var t=$.Deferred();return n.width()===this.mainMenuMinWidth||parseInt(n.css("right"))>
0?t.resolve().promise():(n.velocity({width:this.mainMenuMinWidth},this.velocityOptionsWithPromise(t)),t.promise().then(function(){n.removeClass("semi-open")}))},n.prototype.subMenusIn=function(n,t,i){var r=$.Deferred(),u=$.Deferred();return parseInt(n.css("right"))!==-i?$.Deferred().resolve().promise():(n.velocity({right:0},this.velocityOptionsWithPromise(r)),t.velocity("stop").velocity({right:i},this.velocityOptionsWithPromise(u)),$.when(r,u).then(function(){t.addClass("full-open")}))},n.prototype.subMenusOut=function(n,t,i){var r=$.Deferred(),u=$.Deferred();return parseInt(n.css("right"))!==0?$.Deferred().resolve().promise():(n.velocity({right:-i},this.velocityOptionsWithPromise(r)),t.removeClass("full-open").velocity({right:0},this.velocityOptionsWithPromise(u)),$.when(r,u))},n.prototype.currentlyRunningOn=function(n){return n.hasClass("velocity-animating")},n.prototype.velocityOptionsWithPromise=function(n){var t={complete:function(){n.resolve()}};return _.extend(t,this.defaultVelocityOptions)},n.prototype.
calcMainMenuMaxWidth=function(){var n=this,t=$(".sidebar-navigation ul.menu > li.panel > div.panel-heading");t.each(function(t,i){n.mainMenuMaxWidth=Math.max(n.mainMenuMaxWidth,$(i).outerWidth())})},n.instance=new n,n}();n.Animations=t}(Sidebar||(Sidebar={})),function(n){var t=Common.EventNames,i=Common.ElementRepository,r=Common.EventAggregator,u=Scrolling.ScrollStateDispatcher,f=Scrolling.GradientsController,e=Scrolling.BodyScrollingController,o=Scrolling.FirefoxHotfix,s=Scrolling.DesktopEmulationModeFix,h=Scrolling.SimplebarSkrollrHotfix,c=Scrolling.SimplebarHeightAdjuster,l=Scrolling.SimplebarScrollbarAdjuster,a=function(){function a(){this.openClass="open";this.highlightedClass="highlighted";this.sideNavSelector=".sidebar-navigation";this.topSubMenuSelector=".top-sub-menu";this.mainMenuSelector="ul.menu";this.panelSelector=".panel";this.highlightedPanelSelector=".panel.highlighted";this.panelWithOpenMenuSelector=this.panelSelector+".is-menu.open";this.hoverAreaSelector=".hover-area";this.subMenuMaxWidth=
0;this.linkDefaultHeight=30;this.elements=i.getInstance();this.animations=n.Animations.getInstance()}return a.prototype.initialize=function(){this.initializeInContext(this.elements.body())},a.prototype.initializeInContext=function(n){var i=this;(this.sideNav=n.find(this.sideNavSelector),this.sideNav.length)&&(this.mainMenu=this.sideNav.find(this.mainMenuSelector),this.topSubMenus=this.sideNav.find(this.topSubMenuSelector),this.subMenus=this.sideNav.find(".sub-menu:not(.panel-collapse)"),this.keepOpen=this.sideNav.data("keep-open"),this.removeObsoleteEventHandlers(),sniff.isKioskDevice&&this.prepareSubMenus(),this.topSubMenus.each(function(n,t){var i=$(t),v=i.find(".gradient-container"),a=new r;i.find(".simplebar").simplebar().use(new s).use(new f(v,200,a)).use(new e).use(new o).use(new h).use(new c).use(new l).use(new u(a))}),sniff.isKioskDevice||this.prepareSubMenus(),this.advertise().then(function(){return i.bindUserActions()}),eventAggregator.subscribe(t.NavigationContextChanged,function(n){n&&(i.updateHighlighting(
n),i.preOpenSubmenu())}))},a.prototype.removeObsoleteEventHandlers=function(){this.elements.window().off(".sidebar-navigation");this.elements.body().off(".sidebar-navigation");this.sideNav.off(".sidebar-navigation")},a.prototype.bindUserActions=function(){var n=this.mainMenuSelector+" > "+this.panelSelector+" > div.panel-heading > .arrow";this.sideNav.on("click.sidebar-navigation",n,this.openTopSubMenu.bind(this)).on("click.sidebar-navigation","div.close-menu",this.closeMenu.bind(this));sniff.isDesktop?this.bindDesktopEvents():this.bindHandheldEvents()},a.prototype.openTopSubMenu=function(n){var t=$(n.currentTarget).closest(this.panelSelector);t.addClass(this.openClass);this.mainMenu.children(this.panelWithOpenMenuSelector).not(t).removeClass(this.openClass);eventAggregator.publish("screen-navigation.topSubMenuOpened");this.animations.subMenusIn(this.topSubMenus,this.mainMenu,this.subMenuMaxWidth)},a.prototype.closeMenu=function(){var n=this;this.animations.subMenusOut(this.topSubMenus,this.mainMenu,this.subMenuMaxWidth).
then(function(){if(!n.keepOpen)return n.animations.mainMenuOut(n.mainMenu)}).then(function(){n.mainMenu.children(n.panelWithOpenMenuSelector).removeClass(n.openClass);eventAggregator.publish("screen-navigation.menuClosed");n.preOpenSubmenu()})},a.prototype.closeMenuOnOutsideAction=function(n){if(!this.keepOpen&&this.isOpen()){var t=$(n.target).closest(this.sideNavSelector),i=t.length===0;i&&this.closeMenu()}},a.prototype.bindDesktopEvents=function(){var n=this,t=!1,r=_.debounce(function(){t||n.closeMenu()},1e3),u=_.throttle(function(t){n.closeMenuOnOutsideAction(t)},300),i=this.mainMenuSelector+" > "+this.panelSelector;this.sideNav.on("mouseenter.sidebar-navigation",i+","+this.hoverAreaSelector,function(){(t=!0,n.animations.currentlyRunningOn(n.mainMenu))||n.animations.mainMenuIn(n.mainMenu)}).on("mouseleave.sidebar-navigation",i+","+this.hoverAreaSelector,function(){t=!1;r()});this.elements.body().on("click.sidebar-navigation",this.closeMenuOnOutsideAction.bind(this));this.elements.window().on("scroll.sidebar-navigation",
u.bind(this))},a.prototype.bindHandheldEvents=function(){var n=this.mainMenuSelector+" > "+this.panelSelector;this.sideNav.on("touchstart.sidebar-navigation",n+","+this.hoverAreaSelector,this.openMainMenuOnTouch.bind(this)).on("touchend.sidebar-navigation touchmove.sidebar-navigation",n+","+this.hoverAreaSelector,this.touchEndPreventCallback.bind(this));this.elements.body().on("touchstart.sidebar-navigation",this.closeMenuOnOutsideAction.bind(this))},a.prototype.touchEndPreventCallback=function(n){this.mainMenu.hasClass("semi-open")||(n.preventDefault(),n.stopPropagation())},a.prototype.openMainMenuOnTouch=function(n){this.mainMenu.hasClass("semi-open")||(n.preventDefault(),n.stopPropagation(),this.animations.mainMenuIn(this.mainMenu))},a.prototype.prepareSubMenus=function(){var n=this,t=this.subMenus.find(".panel-collapse").not(".in");t.addClass("in");this.topSubMenus.each(function(t,i){n.subMenuMaxWidth=Math.max(n.subMenuMaxWidth,$(i).outerWidth())});this.setMultiLineClass();t.removeClass("in");this.topSubMenus.
css({right:-this.subMenuMaxWidth,width:this.subMenuMaxWidth})},a.prototype.setMultiLineClass=function(){var n=this,t=this.subMenus.find("a.title");t.each(function(t,i){var r=$(i);r.height()>n.linkDefaultHeight&&r.addClass("multiline")})},a.prototype.preOpenSubmenu=function(){var n=this.topSubMenus.find(this.highlightedPanelSelector).parentsUntil(this.topSubMenuSelector,".panel-collapse"),t=n.closest(".sub-menu").find("> .is-menu > .panel-collapse"),i=n.not(".in"),r=this.topSubMenus.find(".panel-collapse.in");r.not(t).add(i).siblings(".panel-heading").children("button.toggle-sub-menu").click()},a.prototype.updateHighlighting=function(n){var t=this.sideNav.find('[data-context="'+n+'"]').closest(this.panelSelector),i=t.parent("ul.sub-menu").length>0;this.mainMenu.find(this.highlightedPanelSelector).removeClass(this.highlightedClass);i?t.addClass(this.highlightedClass).closest(this.topSubMenuSelector).parent(this.panelSelector).addClass(this.highlightedClass):t.addClass(this.highlightedClass)},a.prototype.advertise=
function(){var n=this;return this.animations.mainMenuIn(this.mainMenu,!0).then(function(){var t=$.Deferred();return _.delay(function(){n.animations.currentlyRunningOn(n.mainMenu)?t.reject():n.keepOpen?t.resolve():n.animations.mainMenuOut(n.mainMenu).then(function(){t.resolve()})},1e3),t.promise()})},a.prototype.isOpen=function(){return this.mainMenu.hasClass("semi-open")||this.sideNav.hasClass("full-open")},a}();n.SidebarNavigation=a}(Sidebar||(Sidebar={}));$(document).ready(function(){sidebarNavigation=new Sidebar.SidebarNavigation;componentManager.registerAndInitComponent(sidebarNavigation)}),function(n){var t=function(){function n(){}return n.prototype.publishEmptyModalIdError=function(){eventAggregator.publish(Common.EventNames.DebugError,{message:"The modal ID is invalid as is empty",identifyer:"empty-modal-id-error"})},n.prototype.publishModalIdFormatError=function(n){var t={message:"The modal ID format is invalid!",lines:[n.name+": "+n.message],identifyer:"modal-id-format-error"};eventAggregator.publish(
Common.EventNames.DebugError,t)},n}();n.ModalIdErrorPublisher=t;DependencySystem.define(t).as(DS.Singleton)}(Debug||(Debug={})),function(n){var r=Common.EventNames,t=Common.MouseButtons,u=function(){function u(){this.modalOpeningQueue=[];this.modalMaxHeight=780;this.jqWindow=$(window);this.jqHtml=$("html");this.jqBody=this.jqHtml.find("body");Debug&&Debug.ModalIdErrorPublisher&&(this.modalIdErrorPublisher=DependencySystem.resolve(Debug.ModalIdErrorPublisher))}return u.prototype.getAjax=function(){return DependencySystem.resolve(WebData.Ajax)},u.prototype.initialize=function(){this.initializeAppShellEvents();this.initModalLinks()},u.prototype.initializeInContext=function(n){this.initModalLinks(n)},u.prototype.openModal=function(n,t){var u=this,k={closingOnBackdropClick:!1,ignoreOpeningPrevent:!0,aborted:function(){},shown:function(){var t=n.data("modal-shown-ajax-target");t&&$.post(t)},completed:function(){}},r=$.extend(new i,k,t),e=$.Deferred(),o=$.Deferred(),s=$.Deferred(),h=$.Deferred(),b=$.Deferred(),c=$.Deferred(
),l=$.Deferred(),a=$.Deferred();if(this.isVideoOverlay(n)&&videoHandlers.stopAll(),n=this.checkAndSetDataWidth(n),n=this.handleVideoInModal(n,{aborted:function(){e.resolve();c.resolve()},initialized:function(){e.resolve()},disposed:function(){c.resolve()}}),this.bindToggleOverlayBackdrop(n,{aborted:function(){o.resolve();l.resolve()},shown:function(){o.resolve()},hidden:function(){l.resolve()}}),this.initializeVideoOverlayResizer(n,{aborted:function(){s.resolve()},initialized:function(){s.resolve()}}),this.isMediaOverlay(n))h.resolve(),a.resolve(),r=$.extend(r,{closingOnBackdropClick:!0,keyboard:!1});else{this.jqHtml.hasClass("no-csstransforms3d")&&n.removeClass("fade");var v=$.Deferred(),y=$.Deferred(),f=$.Deferred(),p=$.Deferred(),w=$.Deferred();this.handleModalMaxHeight(n,{aborted:function(){v.resolve();y.resolve();p.resolve()},prepared:function(){v.resolve()},initialized:function(){y.resolve()},finalized:function(){p.resolve()}});this.handleModalLinks(n);this.reloadOnHide(n);this.handleScrollbars(n,{aborted:
function(){f.resolve();w.resolve()},deferred:function(){f.resolve()},initialized:function(){f.resolve()},disposed:function(){w.resolve()}});$.when(v,y,f).done(function(){h.resolve()});$.when(p,w).done(function(){a.resolve()})}this.fixIPadKeyboardBehaviorInModals(n);this.jqBody.find(".auto-open-modal-preview").remove();this.preventZoomingForOpenModals(n);this.preventJumpingAndScrollingForIOS(n);n.one("shown.bs.modal",function(){b.resolve();r.shown.call(n);u.setUpOrderModal(n);u.fixHandheldModalScrollingOnParallaxPages(n);n.imagesLoaded().always(function(){sniff.isDesktop&&u.reCalculateModalPositionAndHeight(n)});eventAggregator.publish(Common.EventNames.ModalOpened)}).modal(r);this.handleNoHistoryLinks(n);this.fixIe7Overflow(n);r.closingOnBackdropClick||this.removeClickEventsOnBackdrop(n);this.fixModalBackgroundInAndroidFirefox(n);this.addAnchorHandlingBinding();$.when(e,o,s,h,b).done(function(){u.isVideoOverlay(n)&&(videoOverlayResizer.resize(),videoOverlayAutoplay.initializeInContext(n));LifeCycleSystem.digest(
).then(function(){r.completed.call(n)})});n.data("cleanedUp",$.when(c,l,a))},u.prototype.reCalculateModalPositionAndHeight=function(n){var i=n.attr("id");if(!this.isOverlay(n)&&i!=="AddLogoModal"&&i!=="merge-basket-popup"){var t=parseInt(n.css("height")),f=t/-2,r=n.find(".modal-inner-content"),e=parseInt(r.css("height")),o=(this.jqWindow.height()-t)/2,u=this.jqWindow.height()-o-20,s=u-(t-e);n.css("top","50%").css("margin-top",f);n.find(".modal-inner").css("max-height",u);r.css("max-height",s)}},u.prototype.preventJumpingAndScrollingForIOS=function(n){var t=this;if(!modalManager.isModalOpen()&&sniff.isHandheld&&!sniff.usingParallax())n.one("show.bs.modal",function(){t.scrollPosition=t.jqWindow.scrollTop();t.jqBody.addClass("modal-open-fixed").css({top:-t.scrollPosition})}).one("hidden.bs.modal",function(){t.jqBody.removeClass("modal-open-fixed").css({top:""});t.jqWindow.scrollTop(t.scrollPosition)})},u.prototype.preventZoomingForOpenModals=function(n){if(sniff.isHandheld&&!sniff.usingParallax())n.one("shown.bs.modal",
function(){utils.preventZoomingOnHandheld()}).one("hidden.bs.modal",function(){utils.enableZoomingOnHandheld()})},u.prototype.checkAndSetDataWidth=function(n){if(n.attr("data-width"))return n;var t=n.outerWidth();return t>0&&n.attr("data-width",t),n},u.prototype.handleVideoInModal=function(t,i){var r={aborted:function(){},initialized:function(){},disposed:function(){}},e,u,o,s,f;if($.extend(r,i),e=t.filter(".modal").find(".video-element").length>0,!e)return r.aborted.call(t),t;u=t.clone();o=t.attr("id")+"-copy";u.attr("id",o);t=u;t.one("show.bs.modal",function(){s=new n.VideoHandler(t.find(".video-element"),{initialized:function(){r.initialized.call(t)}})}).one("hide.bs.modal",function(){f=t.find(".mejs-container").attr("id")}).one("hidden.bs.modal",function(){s=null;mejs.players[f]&&mejs.players[f].remove();r.disposed.call(t)});return t},u.prototype.bindToggleOverlayBackdrop=function(n,t){var r=this,i={aborted:function(){},shown:function(){},hidden:function(){}};if($.extend(i,t),!this.isOverlay(n)){i.aborted.
call(n);return}n.one("show.bs.modal",function(){r.toggleOverlayBackdrop(n);i.shown.call(n)}).one("hidden.bs.modal",function(){r.toggleOverlayBackdrop(n);i.hidden.call(n)})},u.prototype.initializeVideoOverlayResizer=function(n,t){var i={aborted:function(){},initialized:function(){}};if($.extend(i,t),!this.isVideoOverlay(n)){i.aborted.call(n);return}n.one("shown.bs.modal",function(){videoOverlayResizer.initializeInContext(n,{aborted:i.aborted.call(n),initialized:i.initialized.call(n)})})},u.prototype.handleModalMaxHeight=function(n,t){var r=this,i={aborted:function(){},prepared:function(){},initialized:function(){},updated:function(){},finalized:function(){}};if($.extend(i,t),sniff.isHandheld||this.isVideoOverlay(n)){i.aborted.call(n);return}n.one("show.bs.modal",function(){r.prepareModalMaxHeightForResize(n,function(){i.updated.call(n)});i.prepared.call(n)}).one("shown.bs.modal",function(){r.setModalMaxHeight(n).done(function(){i.initialized.call(n)})}).one("hidden.bs.modal",function(){r.destroyModalMaxHeight(
);i.finalized.call(n)})},u.prototype.handleModalLinks=function(n){var t=this;n.one("shown.bs.modal",function(){t.initModalLinks(n)}).one("hidden.bs.modal",function(){t.removeModalLinks(n)})},u.prototype.reloadOnHide=function(n){n.one("hidden.bs.modal",function(){var t=n.data("reload-on-close");t&&location.reload()})},u.prototype.handleScrollbars=function(n,t){var r=this,i={aborted:function(){},deferred:function(){},initialized:function(){},disposed:function(){}};if($.extend(i,t),this.isVideoOverlay(n)){i.aborted.apply(n);return}n.one("shown.bs.modal",function(){try{r.delegateScrollbarHandler("init",n,{aborted:function(){i.aborted.call(n)},deferred:function(){i.deferred.call(n)},initialized:function(){i.initialized.call(n)}})}catch(t){_.delay(function(){r.delegateScrollbarHandler("init",n,{aborted:function(){i.aborted.call(n)},deferred:function(){i.deferred.call(n)},initialized:function(){i.initialized.call(n)}})},1e3)}}).one("hidden.bs.modal",function(){r.delegateScrollbarHandler("destroy",n);i.disposed.call(
n)})},u.prototype.fixIPadKeyboardBehaviorInModals=function(n){var r=this;if(sniff.isIPad){var t="input, textarea",u="modal-open",f=500,i;n.on("touchend.input-modal",t,function(){i=!0;_.delay(function(){i=!1},f)}).on("blur.input-modal",t,function(){i||_.delay(function(){r.jqBody.removeClass(u);r.jqBody.addClass(u)},f)}).one("hidden.bs.modal",function(){n.off("touchend.input-modal blur.input-modal",t)})}},u.prototype.fixHandheldModalScrollingOnParallaxPages=function(n){if(sniff.isHandheld&&sniff.usingParallax()){var t=n.parent(".modal-scrollable");if(t.length)t.on("touchstart touchmove touchend",function(n){n.stopPropagation();eventAggregator.publish(r.ModalTouchedInside)})}},u.prototype.fixIe7Overflow=function(n){var i=this,t;if(sniff.isIe7){t="modal-overflow-hidden";this.jqHtml.addClass(t);n.on("hidden.bs.modal",function(){i.jqHtml.removeClass(t)})}},u.prototype.removeClickEventsOnBackdrop=function(n){n.find("button.close").length||n.closest(".modal-scrollable").unbind("click")},u.prototype.fixModalBackgroundInAndroidFirefox=
function(){if(sniff.isAndroid&&sniff.isFirefox){var n=utils.isStartpage()?150:50,t=utils.isStartpage()?this.jqWindow.height():this.jqHtml.height();$(".modal-backdrop").height(t+n)}},u.prototype.findAutoOpenModals=function(){return _.isUndefined(this.jqAutoOpenModals)&&(this.jqAutoOpenModals=$(".modal-autoopen")),this.jqAutoOpenModals},u.prototype.containsAutoOpenModals=function(){return this.findAutoOpenModals().length>0},u.prototype.autoOpenModals=function(){var n=this;this.findAutoOpenModals().each(function(t,i){var r=$(i);r.on("hidden.bs.modal",function(){n.openNextQueuedModal()});n.enqueueOpenModal(r)});_.delay(function(){n.openNextQueuedModal()},1e3)},u.prototype.enqueueOpenModal=function(n){var t=this;t.modalOpeningQueue.push(function(){return t.openModal(n)})},u.prototype.openNextQueuedModal=function(){var n=this,t;n.modalOpeningQueue.length!=0&&(t=n.modalOpeningQueue.shift(),setTimeout(t,500))},u.prototype.closeModals=function(n){var t={hidden:function(){},completed:function(){}},i,u,r;$.extend(t,n);i=
$(".modal.in, .media-overlay.in");i.length?(u=i.data("cleanedUp")?i.data("cleanedUp"):$.Deferred().resolve(),r=$.Deferred(),i.one("hidden.bs.modal",function(){t.hidden();r.resolve()}).modal("hide"),$.when(u,r).done(function(){t.completed()})):(t.hidden(),t.completed())},u.prototype.delegateScrollbarHandler=function(t,i,r){var u={aborted:function(){},deferred:function(){},initialized:function(){},updated:function(){}},f;if($.extend(u,r),!sniff.isDesktop){u.aborted.call(i);return}typeof this.scrollbarHandler=="undefined"&&(this.scrollbarHandler=new n.ScrollbarHandler);f=".modal-inner-content";i.find(".workwearstore-availability").length&&(f=".workwearstore-availability");switch(t){case"init":this.scrollbarHandler.initScrollBar(i,{scrollableContentSelector:f,deferred:function(){u.deferred.call(i)},initialized:function(){u.initialized.call(i)}});break;case"update":this.scrollbarHandler.updateScrollBar(i,f,{aborted:function(){u.aborted.call(i)},updated:function(){u.updated.call(i)}});i.find(".mCustomScrollBox").css(
"max-height",i.find(".modal-inner-content").css("max-height"));break;case"destroy":this.scrollbarHandler.destroyScrollBar(i,f)}},u.prototype.prepareModalMaxHeightForResize=function(n,t){var i=this;this.jqWindow.on("resize.modalmaxheight",_.throttle(function(){i.setModalMaxHeight(n).done(function(){t&&t.call(n)})},150))},u.prototype.setModalMaxHeight=function(n){var u=$.Deferred(),r=n.find(".modal-inner"),t=r.find(".modal-body"),v=t.find(".modal-headline"),y=t.find(".modal-inner-content"),i=0,f=t.find(".bottomline"),e,o;f.length&&(i+=f.outerHeight(!0),i+=f.prev("hr").outerHeight(!0));e=t.find(".modal-inner-content-bottom");e.length&&(i+=e.outerHeight(!0));o=t.find(".modal-inner-content-top");o.length&&(i+=o.outerHeight(!0));var s=this.jqWindow.height()-40,h=n.css("max-height")!=="none"?parseInt(n.css("max-height")):this.modalMaxHeight,p=h>s?s:h,w=parseInt(n.css("border-top-width")),b=parseInt(n.css("border-bottom-width")),c=p-w-b,k=parseInt(r.css("padding-top")),d=parseInt(r.css("padding-bottom")),l=c-k-d,g=v.
outerHeight(!0),nt=parseInt(t.css("padding-top")),tt=parseInt(t.css("padding-bottom")),a=l-nt-tt-g-2;return a-=i,r.css("max-height",c),t.css("max-height",l),y.css("max-height",a),this.delegateScrollbarHandler("update",n,{aborted:function(){u.resolve()},updated:function(){u.resolve()}}),u.promise()},u.prototype.destroyModalMaxHeight=function(){this.jqWindow.off("resize.modalmaxheight")},u.prototype.initModalLinks=function(n,t){var i=this,r,u;t===void 0&&(t="a, area, input[type='radio'], img");r=_.isUndefined(n)?this.jqBody:n;u=r.filter(t);u=u.add(r.find(t));u.each(function(n,t){var u=$(t),s=u.data("ajaxtarget"),h=u.data("modal-ajaxtarget")||u.data("modal-hjaxtarget")||u.data("dlp-modal-ajaxtarget")||u.data("dlp-modal-hjaxtarget")||u.data("tfr-modal-ajaxtarget")||u.data("tfr-modal-hjaxtarget"),o,f,e;if(!_.isUndefined(h)){i.bindAjaxModalLink(u);return}if(o=u[0].hasAttribute("data-modalid"),!o)return!0;if(f=u.data("modalid"),_.isUndefined(f))return Debug&&Debug.ModalIdErrorPublisher&&i.modalIdErrorPublisher.publishEmptyModalIdError(
),!0;try{e=r.find("#"+f).addBack("#"+f)}catch(c){return Debug&&Debug.ModalIdErrorPublisher&&i.modalIdErrorPublisher.publishModalIdFormatError(c),!0}e.length||(e=$("#"+f).first());e.length?i.bindModalLink(u,f,e,s):i.bindAjaxModalLink(u)})},u.prototype.bindAjaxModalLink=function(n){var r=this,i;n.on("mousedown",function(n){i=n.which}).on("click",function(u){var f,e;n.hasClass("prevent-modal-handling")||(f=n.data("modal-ajaxtarget")||n.data("dlp-modal-ajaxtarget")||n.attr("data-tfr-modal-ajaxtarget"),f||(f=n.data("ajaxtarget")),f||(e=n.data("modal-hjaxtarget")||n.data("dlp-modal-hjaxtarget")||n.attr("data-tfr-modal-hjaxtarget"),e&&(f=utils.decodeHjax(e))),i===t.MIDDLE||i===t.LEFT&&u.ctrlKey)||(u.preventDefault(),r.openModalByAjax(f))})},u.prototype.bindModalLink=function(n,i,r,u){var e=this,f;if(n.parents().filter("#"+i).length){n.on("click touch",function(n){n.preventDefault()});n.attr("data-dismiss","modal")}else n.on("mousedown",function(n){f=n.which}).on("click",function(i){f===t.MIDDLE||f===t.LEFT&&i.ctrlKey||
n.hasClass("prevent-modal-handling")||(i.preventDefault(),e.openModal(r),u!=undefined&&e.openModalByAjax(u))})},u.prototype.removeModalLinks=function(n){n.find("a").unbind("click")},u.prototype.openModalByAjax=function(n){var t=this,i;this.isModalAjaxPending||(this.isModalAjaxPending=!0,this.disableMainContainer(),i=!0,sniff.isMsie&&(i=!1),this.getAjax().getJsonp({url:n,jsonpCallback:"openModalCallback",cache:i},{modal:!0}).then(function(n){if(!n.preprocessingReport||!n.preprocessingReport["sustainability-details"]){var i=ajaxDomHelper.getNamedObjectValueFromArray("modal",n);i||(i=ajaxDomHelper.getNamedObjectValueFromArray("media-overlay",n));i&&t.handleModalResponse(i)}}).always(function(){t.enableMainContainer();t.isModalAjaxPending=!1}))},u.prototype.handleModalResponse=function(t){var r=this,i=$(t);ajaxFormHandler.initializeInContext(i);tooltipBoxHandler.initializeInContext(i);DependencySystem.resolveInContext(n.WorkwearStoreAvailabilityComponent,i).andBindItToDom().postConstruct();_.isUndefined(inputClearButtons)||
inputClearButtons.initializeInContext(i);this.openModal(i,{completed:function(){selectBoxHandler.initializeInContext(i);r.isModalAjaxPending=!1}});this.initModalLinks(i)},u.prototype.setUpOrderModal=function(n){n.find(".articledetails.modal-order").each(function(n,t){new ArticleDetails.OrderModal($(t))})},u.prototype.handleNoHistoryLinks=function(n){var t=n.find("a.no-history");t.each(function(n,t){var i=$(t);i.on("click",function(n){n.preventDefault();window.location.replace($(n.currentTarget).attr("href"))})})},u.prototype.disableMainContainer=function(){this.jqBody.append('<div id="disabled"><\/div>')},u.prototype.enableMainContainer=function(){this.jqBody.find("> #disabled").remove()},u.prototype.toggleOverlayBackdrop=function(n){var r=n.hasClass("video-overlay"),t=r?"video-overlay-backdrop":"media-overlay-backdrop",i=t+" overlay-backdrop";this.jqBody.hasClass(t)?this.jqBody.removeClass(i):this.jqBody.addClass(i)},u.prototype.isOverlay=function(n){return this.isVideoOverlay(n)||this.isMediaOverlay(n)},u.prototype.
isMediaOverlay=function(n){return n.hasClass("media-overlay")},u.prototype.isVideoOverlay=function(n){return n.hasClass("video-overlay")},u.prototype.toggleFullscreen=function(n){var t="fullscreen",i=n.closest(".modal");i.hasClass(t)?i.removeClass(t):i.addClass(t)},u.prototype.isInsideModal=function(n){return n.closest(".modal").length>0},u.prototype.isModalOpen=function(){var n=this.jqBody.hasClass("modal-open"),t=parseInt(this.jqBody.css("top"),10)<1&&this.jqBody.css("position")==="fixed"&&!(utils.isParallaxpage()&&sniff.isIPad);return n||t},u.prototype.addAnchorHandlingBinding=function(){eventAggregator.subscribe(Common.EventNames.ModalAnchorClicked,function(n){var t=n.closest(".mCustomScrollbar");t.length>0?t.mCustomScrollbar("scrollTo",n.attr("href")):document.location.hash=n.attr("href")})},u.prototype.initializeAppShellEvents=function(){var n=this;window.shell&&window.shell.subscribeTo("mpc.close-modal",function(){n.closeModals()},undefined)},u}(),i;n.ModalManager=u;i=function(){function n(){this.closingOnBackdropClick=
!1;this.ignoreOpeningPrevent=!1;this.attentionAnimation="none";this.aborted=void{};this.shown=void{};this.completed=void{}}return n}();n.OpenModalOptions=i}(PageElements||(PageElements={}));__extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),function(n){var t=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return __extends(t,n),t.prototype.bindCustomEvents=function(){this.businessDivisionPopUpBindEvents()},t.prototype.businessDivisionPopUpBindEvents=function(){var n=this,t=$("#BusinessDivision");t.find("a").bind("click touch",function(i){var r=$(i.currentTarget);n.businessDivisionPopUpAppendInputValuesToUrls(r,t);n.businessDivisionPopUpHandleAjax(r,i)})},t.prototype.businessDivisionPopUpAppendInputValuesToUrls=
function(n,t){var i=this.getCheckboxValuesAsString(t);this.appendInputValueStringToHrefAndAjaxtarget(n,i)},t.prototype.businessDivisionPopUpHandleAjax=function(n,t){var i=n.data("ajaxtarget");i&&(n.attr("data-dismiss","modal"),t.preventDefault(),$.get(i))},t.prototype.appendInputValueStringToHrefAndAjaxtarget=function(n,t){var i=n.attr("href"),r=i.indexOf("#"),f,u;r!=-1?(f=i.slice(r),i=i.slice(0,r)+(t+f)):i+=t;n.attr("href",i);u=n.data("ajaxtarget");u&&n.data("ajaxtarget",u+t)},t.prototype.getCheckboxValuesAsString=function(n){var t="";return n.find("input[type=checkbox]").each(function(n,i){t+="&"+$(i).attr("name")+"="+$(i).is(":checked")}),t},t}(n.ModalManager);n.ModalManagerBusinessDivision=t}(PageElements||(PageElements={}));$.fn.modalmanager.defaults.backdropLimit=1;modalManager=new PageElements.ModalManagerBusinessDivision;modalManager.bindCustomEvents();modalManager.autoOpenModals();componentManager.registerAndInitComponent(modalManager);eventAggregator.subscribe(Common.EventNames.ContentAddedToDOM,function(
n){return modalManager.initializeInContext(n)}),function(n){var t=function(){function n(n){var t=this;this.pauseOnHover=!0;this.slideshow=Slideshows.Cycle2Slideshow.createInstance();this.slideshowElement=n;typeof this.slideshowElement!="undefined"&&this.initSlideshow().then(function(){t.bindImageSourceChangeSubscription(n)})}return n.prototype.bindImageSourceChangeSubscription=function(n){var t=this,i;n.hasClass("is-inside-closed-slider")&&(this.stop(),i=eventAggregator.subscribe(Common.EventNames.SliderOpen,function(r){var u=r.find(".slider");n.is(u)&&(t.changeImageSource(u),eventAggregator.unSubscribe(Common.EventNames.SliderOpen,i),t.start())}))},n.prototype.changeImageSource=function(n){n.find("img.image").each(function(n,t){var i=$(t);i.attr("src",i.data("src"))})},n.prototype.initSlideshow=function(){var n={};return this.slideshowElement.hasClass("slow")&&(n={speed:800,timeout:2800}),this.slideshow.initializeFor(this.slideshowElement,n,this.pauseOnHover)},n.prototype.stop=function(){this.slideshow.pause(
)},n.prototype.start=function(){this.slideshow.resume()},n}(),i;n.CategorySlideshow=t;i=function(){function n(){this.stageContainer=[];this.subscribeToEventaggregator()}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){var i=this;n.find(".stages .slider").each(function(n,r){i.add(new t($(r)))})},n.prototype.add=function(n){this.containsStage(n)||this.stageContainer.push(n)},n.prototype.containsStage=function(n){return $.inArray(n,this.stageContainer)!=-1},n.prototype.stopAll=function(){$.each(this.stageContainer,function(n,t){t.stop()})},n.prototype.startAll=function(){$.each(this.stageContainer,function(n,t){t.start()})},n.prototype.subscribeToEventaggregator=function(){var n=this;eventAggregator.subscribe(Common.EventNames.StageStopAll,function(){n.stopAll()});eventAggregator.subscribe(Common.EventNames.StageStartAll,function(){n.startAll()})},n}();n.StageCollection=i}(PageElements||(PageElements={}));$(document).ready(function(){stageCollection=
new PageElements.StageCollection;componentManager.registerAndInitComponent(stageCollection)}),function(n){var t=Common.EventNames,i=function(){function n(n){var t=this,i,r;this.animationDuration=300;this.startingScreenHeight=900;this.startingThumbnailHeight=150;this.startingThumbnailBorderWidth=20;this.cinemagraphSelector=".cinemagraph";this.mediaSwitcher=n;i=n.closest(".screen");this.mediaLocation=i.find(".screen-media");this.screenContentsToHideWhenVideoIsShown=i.find(".screen-content").not(n.closest(".screen-content"));r=n.find(".media-switcher-element");this.mediaLocation.prepend(r);this.currentlyShownMedia=r.not(".hidden");this.currentlyShownMediaId=this.currentlyShownMedia.attr("id");this.thumbnails=n.find(".media-switcher-thumbnail").on("click",function(n){t.showMediaFor($(n.currentTarget),$(n.target));t.mediaSwitcher.trigger("trigger.scrollTo")});this.currentlyHiddenThumbnailImage=this.thumbnails.find(".behind");this.thumbnailImages=this.thumbnails.find(".thumbnail-img");this.horizontallyCenteredThumbnailContainer=
n.find(".bottom-center");this.thumbnailContainers=n.find(".thumbnail-container");eventAggregator.subscribe(Common.EventNames.ParallaxViewportSizeChanged,function(n){return t.manageWindowResize(n)})}return n.prototype.showMediaFor=function(n,i){var r=this,h;if(!this.isAnimating()){var c=n.data("id"),u=this.mediaLocation.find('[id="'+c+'"]'),v=n.find(".thumbnail-img").not(".behind"),f=this.currentlyShownMedia.data("is-video"),e=n.find(".video"),o=e.is(":visible"),s=u.prevAll("#"+this.currentlyShownMediaId).length!==0,l=s?u:this.currentlyShownMedia,a=s?"fadeIn":"fadeOut",y=i.hasClass("video");n.data("id",this.currentlyShownMediaId);this.currentlyShownMediaId=c;unveilHandler.unveilImagesIn(u);f&&eventAggregator.publish(t.StopAllVideos);this.currentlyShownMedia.find(this.cinemagraphSelector).hide();this.currentlyAnimatingMedia=l;u.css({opacity:s?0:1}).removeClass("hidden");h={duration:this.animationDuration,mobileHA:!1,display:"block"};l.velocity(a,h).promise().done(function(){u.find(r.cinemagraphSelector).show();
var n=u.find(".imagemap");n.length&&imageMapHandler.activateResizeableImageMap(n);a=="fadeIn"?(r.currentlyAnimatingMedia=r.currentlyShownMedia,r.currentlyShownMedia.velocity("fadeOut",h).promise().done(function(){r.currentlyShownMedia.addClass("hidden");r.currentlyShownMedia=u})):(r.currentlyShownMedia.addClass("hidden"),r.currentlyShownMedia=u)});f&&!o?e.removeClass("hidden").velocity("fadeIn"):!f&&o&&e.velocity("fadeOut");this.currentlyHiddenThumbnailImage.appendTo(n).velocity("fadeIn",{duration:this.animationDuration,display:"inline-block"}).promise().done(function(){r.currentlyHiddenThumbnailImage.removeClass("behind");r.currentlyHiddenThumbnailImage=v.hide().addClass("behind")});o?this.screenContentsToHideWhenVideoIsShown.hide():this.screenContentsToHideWhenVideoIsShown.show();y&&eventAggregator.publish(t.StartVideoIn,u)}},n.prototype.isAnimating=function(){return utils.isVelocityAnimating(this.currentlyHiddenThumbnailImage)||utils.isVelocityAnimating(this.currentlyShownMedia)||utils.isVelocityAnimating(
this.currentlyAnimatingMedia)},n.prototype.manageWindowResize=function(n){if(this.lastViewportHeight!=n.height){this.lastViewportHeight=n.height;var i=n.height/this.startingScreenHeight,r=Math.round(i*this.startingThumbnailHeight),t=Math.round(i*this.startingThumbnailBorderWidth);this.thumbnailBorderWidth=t;this.thumbnailImages.css({height:r});this.thumbnailContainers.css({padding:t,"padding-left":0});this.thumbnails.css({"margin-left":t})}this.horizontallyCenteredThumbnailContainer.length>0&&this.lastViewportWidth!=n.width&&(this.lastViewportWidth=n.width,this.horizontallyCenteredThumbnailContainer.each(function(t,i){var r=$(i),u=r.outerWidth();r.css({left:(n.width-u)/2})}))},n}();n.MediaSwitcher=i}(PageElements||(PageElements={}));$(document).ready(function(){$(".media-switcher").each(function(n,t){new PageElements.MediaSwitcher($(t))})}),function(n){var t=function(){function n(){this.jqHtml=$("html")}return n.prototype.videoIsInSlider=function(n){return this.closestVideo(n,".sliderelement").length>0},n.prototype.
videoInSliderIsVisible=function(n){return this.closestVideo(n,".sliderelement").hasClass("open")},n.prototype.videoIsInModal=function(n){return this.closestVideo(n,".modal-inner").length>0},n.prototype.videoIsVideoOverlay=function(n){return this.closestVideo(n,".video-overlay").length>0},n.prototype.isFullscreenVideo=function(n){return this.findVideo(n,"> .video-fullscreen").length>0},n.prototype.isFitToViewportVideo=function(n){return this.findVideo(n,"> .video-fit-to-viewport").length>0},n.prototype.isFullscreenExitKeyPressed=function(n){return n==Key.ESCAPE||n==Key.LEFT_WINDOW_KEY||n==Key.RIGHT_WINDOW_KEY},n.prototype.isFullScreenActive=function(){return this.jqHtml.hasClass("mejs-fullscreen")},n.prototype.findVideo=function(n,t){return $("#"+n).find(t)},n.prototype.closestVideo=function(n,t){return $("#"+n).closest(t)},n}();n.VideoHandlerHelper=t}(PageElements||(PageElements={})),function(n){var i=Common.ElementRepository,t=Common.EventNames,r=function(){function r(n,r){var u=this,e,o,f;if(this.initializationStarted=
!1,this.fitToViewportFullHeightClass="full-height",this.fitToViewportThresholdAspectRatio=16/9,this.retryCount=0,this.previousPercentage=0,e={aborted:function(){},onlyHacksLeft:function(){},initialized:function(){}},$.extend(e,r),this.elementRepository=i.getInstance(),this.freezer=Common.Freezer.createInstance(),this.video=n,this.videoElement=this.video.find("video"),this.videoposter=this.video.find(".videoposter"),this.isLoaded=!1,this.isMuted=utils.getBoolean(this.videoElement.data("mute")),this.preload=utils.getBoolean(this.videoElement.data("preload")),this.controls=this.video.attr("data-controls"),this.hideControls=!(this.controls&&this.controls!=="hide"||sniff.isAndroidTablet),this.showTimeline=utils.getBoolean(this.video.attr("data-showtimeline")),this.allowFullscreen=utils.getBoolean(this.videoElement.data("allow-fullscreen")),this.autoplay=utils.getBoolean(this.videoElement.data("autoplay")),this.pauseOffscreen=utils.getBoolean(this.videoElement.data("pause-offscreen")),this.loop=utils.getBoolean(this.
videoElement.data("loop")),this.videoId=n.attr("id"),this.videoWidth=this.videoElement.attr("width"),this.videoHeight=this.videoElement.attr("height"),this.buffer=this.preload?90:10,o=this.videoposter.find("> img"),f=function(){u.initAfterVideoLoaded({onlyHacksLeft:function(){e.onlyHacksLeft()},initialized:function(){e.initialized()}});_.isNumber(u.contentRevealedHandle)&&(eventAggregator.unSubscribe(t.ContentRevealed,u.contentRevealedHandle),u.contentRevealedHandle=null)},this.contentRevealedHandle=eventAggregator.subscribe(t.ContentRevealed,function(n){!u.initializationStarted&&n.has(u.video[0])&&f()}),videoHandlerHelper.videoIsInModal(this.videoId))this.video.closest(".modal").on("shown.bs.modal",function(){f()});else o.length&&o.attr("src")&&utils.getImageProperties(o).done(function(n){u.videoposterImageProperties=n;f()});this.elementRepository.window().one("load",function(){f()});eventAggregator.subscribe(t.ScreenContentSwitcherShownScreen,this.autoplayOnShownScreen.bind(this))}return r.prototype.autoplayOnShownScreen=
function(n){this.initialized&&n.has(this.video[0]).length&&this.autoplay&&this.mejsContainer.isMinPartlyInsideViewport()&&this.resumeVideo()},r.prototype.initAfterVideoLoaded=function(n){var t=this,i={aborted:function(){},onlyHacksLeft:function(){},initialized:function(){}};if($.extend(i,n),this.initializationStarted){i.aborted.call(this.videoElement);return}this.initializationStarted=!0;this.initVideo().then(function(n,r,u,f){return videoHandlerHelper.isFitToViewportVideo(t.videoId)&&t.setPreliminaryFittingMode(),t.bindPauseOffscreenBehavior(),t.freezer.introduce(t.video,t.stopVideo.bind(t),function(){},function(){return!t.playerElement.paused}),i.onlyHacksLeft.call(t.videoElement),t.applyPostInitHacks(n,r,u,f)}).then(function(){videoHandlerHelper.isFitToViewportVideo(t.videoId)&&t.bindChangeFittingMode();t.video.removeClass("not-initialized");t.initialized=!0;sniff.isHandheld||t.autoplay&&!videoHandlerHelper.videoIsVideoOverlay(t.videoId)&&(videoHandlerHelper.videoIsInSlider(t.videoId)?loadingResources.then(
function(){videoHandlerHelper.videoInSliderIsVisible(t.videoId)&&!$("body").hasClass("modal-open")&&t.mejsContainer.isMinPartlyInsideViewport()&&t.startVideo()}):t.mejsContainer.isMinPartlyInsideViewport()&&t.startVideo());i.initialized.call(t.videoElement)}).then(function(){if(sniff.isAndroidTablet){t.setControlVisibilityBehavior()||t.video.find("div.mejs-controls").addClass("force-hide");var n=t.video.closest(".video-element");n.on("click",function(t){var i=$(t.target);i.hasClass("mejs-volume-slider")||i.hasClass("mejs-overlay-button")||i.attr("type")=="button"||n.find(".mejs-button.mejs-playpause-button").trigger("click")});n.find(".mejs-volume-slider").on("touchstart",function(t){t.preventDefault();var i=jQuery.Event("mousedown");i.pageX=t.originalEvent.touches[0].pageX;i.pageY=t.originalEvent.touches[0].pageY;n.find(".mejs-volume-slider").trigger(i)});n.find(".mejs-volume-slider").on("touchmove.vol",_.debounce(function(t){t.preventDefault();var i=jQuery.Event("mousemove.vol");i.pageX=t.originalEvent.touches[
0].pageX;i.pageY=t.originalEvent.touches[0].pageY;n.find(".mejs-volume-slider").trigger(i)},10));n.find(".mejs-volume-slider").on("touchend",function(t){t.preventDefault();var i=jQuery.Event("mouseup.vol");n.find(".mejs-volume-slider").trigger(i)})}})},r.prototype.initAvailableActions=function(){var n=this;$(this.playerElement).on("play",function(){var t={actionSubject:n.video,actionType:Common.ActionControlTypes.PlayContentStart};eventAggregator.publish(Common.EventNames.TrackActionForSubject,t)}).on("pause",function(){if(!n.playerElement.ended){var t={actionSubject:n.video,actionType:Common.ActionControlTypes.PlayContentStop};eventAggregator.publish(Common.EventNames.TrackActionForSubject,t)}}).on("ended",function(){var t={actionSubject:n.video,actionType:Common.ActionControlTypes.PlayContentEnd};eventAggregator.publish(Common.EventNames.TrackActionForSubject,t)})},r.prototype.getVideoId=function(){return this.videoId==="undefined"?null:this.videoId},r.prototype.stopVideo=function(){this.playerElement.pause(
)},r.prototype.resumeVideo=function(){this.freezer.isFrozen||this.playerElement.play()},r.prototype.startVideo=function(n){var t=this,i;this.freezer.isFrozen||(this.preload&&(this.video.find(".loadingprogress").removeClass("hidden display-none"),this.video.find(".mejs-overlay-play").hide(),this.videoposter.addClass("hidden")),i=this.isMuted?0:.5,_.delay(function(){sniff.isHandheld?t.playerElement.play():t.checkAndStartVideo(t.playerElement,i,t.isMuted)},n?0:1e3))},r.prototype.initVideo=function(){var i=this,f=$.Deferred(),r=this.isMuted?0:.5,h=this.setControlVisibilityBehavior(),e=this.videoHeight!=="auto",o=this.videoWidth!=="auto",s=this.videoElement.outerHeight(),u=this.getSizeOptions(e,o,s);if($.extend(u,{startVolume:r,alwaysShowControls:h,hideVolumeOnTouchDevices:!1,features:this.evaluateFeatures(),autoRewind:!1,autosizeProgress:!1,loop:this.loop,success:function(u){i.playerElement=u;i.playerElement.addEventListener("loadedmetadata",function(){eventAggregator.publish(t.VideoLoadedMetaData,i.video)},!1);i.
hideControls||i.updateTextHintsForControls();i.video.find(".mejs-overlay-loading").remove();var h=DependencySystem.resolve(n.ActionControlHandler);h.contextHasActionControlSubjects(i.video)&&i.initAvailableActions();f.resolve(r,o,e,s)}}),this.video.children(".video-fullscreen.external").length&&$.extend(u,{youtubeIframeVars:{showinfo:0,rel:0,modestbranding:1}}),this.videoElement.mediaelementplayer(u),sniff.isHandheld){this.checkAndInitFullscreen();this.video.on("click",".mejs-overlay-play",function(n){n.preventDefault();_.delay(function(){i.video.find(".mejs-playpause-button.mejs-play").trigger("click")},500)})}if(!sniff.isHandheld)$(this.playerElement).on("loadeddata",function(){i.isLoaded||(i.playerElement.player.setVolume(r),i.isMuted&&i.playerElement.player.setMuted(!0),i.video.find(".mejs-overlay-play").css("z-index","0"))});return this.mejsContainer=this.video.find(".mejs-container"),this.bindSetDefaultVolumeToUnmuteButton(),this.bindToggleFullscreen(),f.promise()},r.prototype.evaluateFeatures=function(
){var n=[];return this.hideControls?n:(n.push("playpause"),sniff.isIOS||n.push("volume"),sniff.isHandheld)?n:(this.allowFullscreen&&n.push("fullscreen"),this.showTimeline&&n.push("progress"),n)},r.prototype.getSizeOptions=function(n,t,i){return n&&t?{videoWidth:this.videoWidth,videoHeight:this.videoHeight}:n&&!t?{videoWidth:"100%"}:!n&&t&&i!=0?{videoHeight:i}:{videoWidth:"100%",videoHeight:"100%"}},r.prototype.updateTextHintsForControls=function(){this.updateControlText(".mejs-playpause-button","playpause-text");this.updateControlText(".mejs-volume-button","volume-text");this.updateControlText(".mejs-fullscreen-button","fullscreen-text")},r.prototype.updateControlText=function(n,t){this.video.find(n+" button").attr("title",this.video.data(t))},r.prototype.applyPostInitHacks=function(n,t,i,r){var u=this,f=$.Deferred();return this.postInitHacksDelay=_.delay(function(){u.playerElement.setVolume(n+.01);u.playerElement.setVolume(n);!i&&t&&r!==0&&u.recalculateVideoHeightAfterInitialization();f.resolve()},2e3),f.promise(
)},r.prototype.cleanUp=function(){clearTimeout(this.postInitHacksDelay)},r.prototype.bindSetDefaultVolumeToUnmuteButton=function(){var n=this;this.video.on("click",".mejs-controls .mejs-button.mejs-unmute",function(){n.playerElement||n.playerElement.player.setVolume(.5)})},r.prototype.bindToggleFullscreen=function(){$("body").off("click",".modal .mejs-unfullscreen, .modal .mejs-fullscreen").on("click",".modal .mejs-unfullscreen, .modal .mejs-fullscreen",function(n){var t=$(n.currentTarget);modalManager.toggleFullscreen(t)})},r.prototype.bindPauseOffscreenBehavior=function(){var n=this;if(this.playerElement&&this.pauseOffscreen){this.trackVideoVisibility();this.video.on("hidden.trackvideovisibility",function(){n.playerElement.paused||n.playerElement.pause()}).on("visible.trackvideovisibility",function(){n.playerElement.paused&&n.autoplay&&n.playerElement.play()})}},r.prototype.bindChangeFittingMode=function(){var n=this,t;this.fitToViewportThresholdAspectRatio=parseInt(this.videoElement.attr("width"))/parseInt(
this.videoElement.attr("height"));t=_.throttle(function(){n.getWindowAspectRatio()>n.fitToViewportThresholdAspectRatio?n.mejsContainer.addClass(n.fitToViewportFullHeightClass):n.mejsContainer.removeClass(n.fitToViewportFullHeightClass)},500);t();this.elementRepository.window().on("resize orientationchange",t)},r.prototype.setPreliminaryFittingMode=function(){this.getWindowAspectRatio()>this.fitToViewportThresholdAspectRatio&&this.mejsContainer.addClass(this.fitToViewportFullHeightClass)},r.prototype.getWindowAspectRatio=function(){return this.elementRepository.window().width()/this.elementRepository.window().height()},r.prototype.recalculateVideoHeightAfterInitialization=function(){var n=this.videoElement.outerHeight(),t,i;this.video.outerHeight()<n&&(t=this.mejsContainer.attr("id"),i=mejs.players[t],i.height=n,this.elementRepository.window().resize())},r.prototype.trackVideoVisibility=function(){var n=this,t=this.mejsContainer.isMinPartlyInsideViewport(),i=function(){var i=n.mejsContainer.isMinPartlyInsideViewport(
);i!=t&&(n.mejsContainer.trigger("change.trackvideovisibility"),i?n.mejsContainer.trigger("visible.trackvideovisibility"):n.mejsContainer.trigger("hidden.trackvideovisibility"));t=i};if(sniff.usingParallax())eventAggregator.subscribe(Common.EventNames.ParallaxSkrollrScroll,function(){i()});else this.elementRepository.window().on("scroll",i)},r.prototype.checkAndStartVideo=function(n,t,i){var u=this,f=!1,r=0,e,o;try{_.isObject(n.buffered)&&n.buffered!=null&&n.buffered.length>0&&(e=n.buffered.end(0),o=n.duration,r=100*e/o,r==this.previousPercentage||_.isNaN(r)?this.retryCount++:this.retryCount=0,this.previousPercentage=r,f=this.retryCount<10,this.video.find(".percentprogress").css("width",parseInt(r.toString())));r>this.buffer||!f?(this.retryCount=0,this.previousPercentage=0,this.isLoaded=!0,this.video.find(".loadingprogress").addClass("hidden"),this.videoposter.addClass("hidden"),this.video.find("video").removeClass("hidden"),n.play(),n.setVolume(t),this.isMuted&&this.playerElement.setMuted(!0)):(this.retryCount++,
_.delay(function(){u.checkAndStartVideo(n,t,i)},500))}catch(s){_.delay(function(){u.checkAndStartVideo(n,t,i)},500)}},r.prototype.checkAndInitFullscreen=function(n){var i=this,t;if(n===void 0&&(n=this.video.find("video")),t=n[0],utils.isFullscreenCapable(t))n.on("play",_.debounce(function(){utils.requestFullscreen(t);i.elementRepository.body().addClass("fullscreen-mode-active")},1e3,!0)).on("pause ended",function(){utils.exitFullscreen(t);i.elementRepository.body().removeClass("fullscreen-mode-active")})},r.prototype.setControlVisibilityBehavior=function(){return this.controls&&this.controls==="show"},r.initializeIn=function(n){n.find(".video-element").each(function(n,t){videoHandlerHelper.videoIsInModal($(t).attr("id"))||videoHandlers.add(new r($(t)))})},r}();n.VideoHandler=r}(PageElements||(PageElements={}));loadingResources=$.Deferred();$(window).load(function(){loadingResources.resolve()}),function(n){var t=function(){function n(){this.handlers=[]}return n.prototype.add=function(n){this.containsVideoHandler(
n)||this.handlers.push(n)},n.prototype.remove=function(n){this.handlers=$.grep(this.handlers,function(t){var i=t.getVideoId()!==n;return i||t.cleanUp(),i})},n.prototype.containsVideoHandler=function(n){return $.inArray(n,this.handlers)!=-1},n.prototype.stopAll=function(){$.each(this.handlers,function(n,t){try{t.stopVideo()}catch(i){}})},n.prototype.startAll=function(){$.each(this.handlers,function(n,t){try{t.resumeVideo()}catch(i){}})},n.prototype.stop=function(n){var t=this.getHandlerById(n);_.isUndefined(t)||t.stopVideo()},n.prototype.getHandlerById=function(n){return _.findWhere(this.handlers,{videoId:n})},n.prototype.start=function(n,t){var i=this.getHandlerById(n);_.isUndefined(i)||i.startVideo(t)},n.prototype.triggerAutostart=function(n){n.length&&utils.getBoolean(n.find("video").data("autoplay"))&&this.start(n.attr("id"))},n}();n.VideoHandlers=t}(PageElements||(PageElements={}));videoHandlers=new PageElements.VideoHandlers;videoHandlerHelper=new PageElements.VideoHandlerHelper;eventAggregator.subscribe(
Common.EventNames.StartVideoIn,function(n){var t=n.find(".video-element").attr("id");t&&videoHandlers.start(t)});eventAggregator.subscribe(Common.EventNames.ContentIsAboutToBeHidden,function(n){n.find(".video-element").trigger("hidden.trackvideovisibility")});eventAggregator.subscribe(Common.EventNames.ContentIsAboutToBeRemovedFromDOM,function(n){n.find(".video-element[id]").each(function(n,t){videoHandlers.remove(t.id)})});eventAggregator.subscribe(Common.EventNames.StopAllVideos,function(){videoHandlers.stopAll()});$(document).ready(function(){PageElements.VideoHandler.initializeIn(Common.ElementRepository.getInstance().body());eventAggregator.subscribe(Common.EventNames.ContentAddedToDOM,function(n){PageElements.VideoHandler.initializeIn(n)})}),function(n){var t=function(){function n(n){var t=this,i;this.origin=n;i=this.origin.contextQuery.find('button[type="submit"]');this.origin.setUp(i).on("click",function(){var n={startDate:t.origin.contextQuery.find("input.startdate").val(),endDate:t.origin.contextQuery.
find("input.enddate").val()};eventAggregator.publish(Common.EventNames.UpdatedDateRange,n)})}return n.prototype.destroy=function(){this.origin.tearDown()},n}();n.DateControlController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="date-control",t.query=".orderhistory_date_control_modal",t.controller=n.DateControlController,t}();n.DateControlComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.timeMachine=n;this.timeMachine.length>0&&this.initTimeMachine()}return n.prototype.initTimeMachine=function(){var t=this,n=this.timeMachine.find('input[type="text"]');n.datetimepicker({setLocale:"de",format:"d.m.Y H:i"});n.attr("placeholder","Timemachine");this.timeMachine.find(".timemachine-container").click(function(){typeof debugInfoHandler.closeAllDebugInfos=="function"&&debugInfoHandler.closeAllDebugInfos();t.timeMachine.
find(".timemachineform").slideToggle(200)})},n}();n.TimeMachineHandler=t}(Debug||(Debug={}));timeMachineHandler=new Debug.TimeMachineHandler($(".timemachine")),function(n){var t=Common.EventNames,i=function(){function n(){this.tooltipBox=$("<div><\/div>").addClass("tooltip-box hidden")}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){var i=this,r,u;this.elementRepository=Common.ElementRepository.getInstance();this.tooltipAreas=n.find(".tooltip-area:not(.tooltip-native)");r="mouseenter";sniff.isHandheld&&(r="click");this.tooltipAreas.on(r,function(n){var t=$(n.target).closest(".tooltip-area"),r=t.find(".tooltip-content").first(),u;i.initTooltipProperties(t);i.addBoxStyles();u=i.calculateBoxPosition(t,r,n);i.displayTooltip(r,u)});if(sniff.isHandheld){u=_.debounce(function(){i.clearInvalidTooltips()},200,!0);this.elementRepository.body().on("touchstart",function(){u()});eventAggregator.subscribe(t.ModalTouchedInside,function(){u()})}else this.
tooltipAreas.on("mouseleave",function(){i.clearInvalidTooltips()});this.bindElementIds(this.tooltipAreas);eventAggregator.subscribe(Common.EventNames.ArticleTemplatesAddedToBasket,function(){i.clearInvalidTooltips()})},n.prototype.bindElementIds=function(n){var t=this,i;this.elementRepository.html().on("mouseenter",".tooltip-box",function(n){$("#"+t.currentToolTipArea).hasClass("below-cursor")?t.tooltipBox.css({left:n.pageX-15+"px",top:n.pageY-15+"px"}):($(n.currentTarget).addClass("should-be-displayed"),t.currentTooltipId=t.currentToolTipArea)}).on("mouseleave",".tooltip-box",function(i){$(i.currentTarget).removeClass("should-be-displayed");t.clearInvalidTooltips();n.trigger("mouseleave")});n.each(function(n,r){var f=$(r),e,o,u;if(i=f.data("triggering-element-ids"),!_.isEmpty(i)){e=$("#"+i.replace(",",", #"));f.hasClass("below-cursor")&&e.addClass("below-cursor");o=$(".below-cursor#"+i.replace(",",", .below-cursor#"));u="mouseenter";sniff.isHandheld&&(u="click");e.on(u,function(n){t.xMousePosition=n.pageX;t.
yMousePosition=n.pageY;t.currentToolTipArea=$(n.currentTarget).attr("id");_.delay(function(){t.currentTooltipId=t.currentToolTipArea;f.trigger(u)},10)}).on("mouseleave",function(){$(".tooltip-box").removeClass("should-be-displayed");t.clearInvalidTooltips()}).on("mouseover",function(){t.currentToolTipArea==t.currentTooltipId&&$(".tooltip-box").addClass("should-be-displayed")});o.on("mousemove",function(n){$("#"+t.currentToolTipArea).hasClass("below-cursor")&&t.tooltipBox.css({left:n.pageX+15+"px",top:n.pageY+15+"px"})})}})},n.prototype.initTooltipProperties=function(n){this.tooltipBoxProperties={shiftX:this.getShiftX(n),shiftY:this.getShiftY(n),arrowWidth:0,arrowHeight:0,styleClass:n.data("tooltip-style")||"",alignment:n.data("tooltip-alignment")||"",direction:n.data("tooltip-direction")||"",showArrow:n.data("tooltip-arrow")||!1};n.closest(".modal").length>0&&(this.tooltipBoxProperties.styleClass+=" modal-tooltip")},n.prototype.getShiftX=function(n){return(sniff.isDesktop?n.data("tooltip-desktop-shift-x"):n.data(
"tooltip-handheld-shift-x"))||n.data("tooltip-shift-x")||6},n.prototype.getShiftY=function(n){return(sniff.isDesktop?n.data("tooltip-desktop-shift-y"):n.data("tooltip-handheld-shift-y"))||n.data("tooltip-shift-y")||0},n.prototype.calculateBoxPosition=function(n,t,i){var r={x:0,y:0},u=n.find(".tooltip-icon");return u.length==0&&(u=n),n.hasClass("below-cursor")&&_.isUndefined(i.pageX)?(r.x=this.xMousePosition,r.y=this.yMousePosition):(r.x=u.offset().left+u.outerWidth()+this.tooltipBoxProperties.shiftX,r.y=u.offset().top+u.outerHeight()+this.tooltipBoxProperties.shiftY),this.tooltipBoxProperties.alignment=="above"&&(r=this.positionAbove(r,n,u)),this.tooltipBoxProperties.alignment=="below"?r=this.positionBelow(r,n,u):this.tooltipBoxProperties.alignment=="top"?r.y=this.positionTop(n,u):this.tooltipBoxProperties.alignment!="middle"||n.hasClass("below-cursor")||(r.y=this.positionMiddle(n,u)),this.tooltipBoxProperties.direction=="left"&&(r.x=this.positionLeft(n,u)),n.closest(".modal").length&&(this.isOutsideViewportBottom(
r.y,n)&&(r.y=this.positionTop(n,u)),this.elementRepository.body().css("position")==="fixed"&&(r.y+=Math.abs(this.elementRepository.body().offset().top))),sniff.isHandheld&&this.tooltipBoxProperties.alignment==="filter-criterium-info"&&(r=this.adjustPositionForFilterCriterion(r,u,t)),r},n.prototype.positionAbove=function(n,t,i){n.x-=i.outerWidth();var r=t.find(".tooltip-content").first();return r.addClass(this.tooltipBoxProperties.styleClass),n.y=i.offset().top-this.tooltipBoxProperties.shiftY-r.outerHeight(),r.removeClass(this.tooltipBoxProperties.styleClass),this.tooltipBoxProperties.showArrow&&(this.insertArrow(t.find(".tooltip-content").first()),n.x-=this.tooltipBoxProperties.arrowWidth/2,n.y-=this.tooltipBoxProperties.arrowHeight),n},n.prototype.positionBelow=function(n,t,i){var r=t.find(".tooltip-content").first();return n.x-=t.width(),r.addClass(this.tooltipBoxProperties.styleClass),n.y=i.offset().top,r.hasClass("shipping-info")&&(n.x-=300,n.y=i.offset().top-5),r.removeClass(this.tooltipBoxProperties.styleClass),
this.tooltipBoxProperties.showArrow&&(this.insertArrow(t.find(".tooltip-content").first()),n.x-=this.tooltipBoxProperties.arrowWidth/2,n.y+=this.tooltipBoxProperties.arrowHeight*3),n},n.prototype.positionLeft=function(n,t){var r=0,i=n.find(".tooltip-content").first();return this.tooltipBoxProperties.showArrow&&!n.data("tooltip-shift-x")&&(this.tooltipBoxProperties.shiftX=0),i.addClass(this.tooltipBoxProperties.styleClass),r=t.offset().left-i.outerWidth()-this.tooltipBoxProperties.shiftX-this.tooltipBoxProperties.arrowWidth,i.removeClass(this.tooltipBoxProperties.styleClass),r},n.prototype.positionTop=function(n,t){var r=0,i=n.find(".tooltip-content").first();return i.addClass(this.tooltipBoxProperties.styleClass),r=t.offset().top+t.outerHeight()-this.tooltipBoxProperties.shiftY-i.outerHeight(),i.removeClass(this.tooltipBoxProperties.styleClass),r},n.prototype.positionMiddle=function(n,t){var r=0,i=n.find(".tooltip-content").first();return i.addClass(this.tooltipBoxProperties.styleClass),r=t.offset().top+t.outerHeight(
)/2+this.tooltipBoxProperties.shiftY-i.outerHeight()/2,this.tooltipBoxProperties.showArrow&&this.insertArrow(i),i.removeClass(this.tooltipBoxProperties.styleClass),r},n.prototype.adjustPositionForFilterCriterion=function(n,t,i){var r=i.outerWidth(),u=n.x+r;return this.elementRepository.window().width()<u&&(n.x=t.offset().left-r-this.tooltipBoxProperties.shiftX),n},n.prototype.insertArrow=function(n){var i=0,t=$("<div><\/div>");this.tooltipBoxProperties.alignment=="above"?(n.append(t),t.addClass("bottomside"),this.tooltipBoxProperties.arrowWidth=t.width(),this.tooltipBoxProperties.arrowHeight=t.height(),this.tooltipBox.append(t)):this.tooltipBoxProperties.alignment=="below"?(n.append(t),t.addClass("topside"),this.tooltipBoxProperties.arrowWidth=t.width(),this.tooltipBoxProperties.arrowHeight=t.height(),this.tooltipBox.append(t)):this.tooltipBoxProperties.direction=="left"?(t.css("height",n.height()+"px"),n.append(t),t.addClass("rightside"),this.tooltipBoxProperties.arrowWidth=t.width(),this.tooltipBox.append(t),
i=-this.tooltipBoxProperties.arrowWidth,t.css("right",i+"px")):(t.css("height",n.height()+"px"),n.prepend(t),t.addClass("leftside"),this.tooltipBoxProperties.arrowWidth=t.width(),this.tooltipBox.prepend(t),i=-this.tooltipBoxProperties.arrowWidth,t.css("left",i+"px"))},n.prototype.addBoxStyles=function(){this.tooltipBoxProperties.styleClass&&this.tooltipBox.addClass(this.tooltipBoxProperties.styleClass)},n.prototype.displayTooltip=function(n,t){if(this.tooltipBox.hasClass("hidden")&&n.html().length>0){var i=0,r=n.closest(".tooltip-area");r.hasClass("below-cursor")&&(i=15);this.tooltipBox.css({left:t.x+i+"px",top:t.y+i+"px"});n.clone().removeClass("hidden").appendTo(this.tooltipBox);this.tooltipBox.removeClass("hidden");this.tooltipBox.appendTo("body")}},n.prototype.clearInvalidTooltips=function(){var n=this;this.tooltipBox.hasClass("hidden")||_.delay(function(){$(".tooltip-box").hasClass("should-be-displayed")||n.clearTooltips()},5)},n.prototype.clearTooltips=function(){this.tooltipBox.hasClass("hidden")||this.
tooltipBox.removeClass(this.tooltipBoxProperties.styleClass).addClass("hidden").empty().detach()},n.prototype.isOutsideViewportBottom=function(n,t){var i=t.find(".tooltip-content").first();return(i.addClass(this.tooltipBoxProperties.styleClass),n+i.outerHeight()>$(window).height()+$(document).scrollTop())?(i.removeClass(this.tooltipBoxProperties.styleClass),!0):(i.removeClass(this.tooltipBoxProperties.styleClass),!1)},n}();n.TooltipBox=i}(PageElements||(PageElements={}));tooltipBoxHandler=new PageElements.TooltipBox;$(document).ready(function(){componentManager.registerAndInitComponent(tooltipBoxHandler)}),function(n){var t=Common.EventNames,i=function(){function n(n){var t=this;this.lockedClick=!1;this.lockLink=!1;this.elementRepository=Common.ElementRepository.getInstance();this.imageMaps=n;this.images=n.find("img");this.fadeDuration=n.data("animation-duration");this.fadeDuration||this.fadeDuration===0||(this.fadeDuration=1e3);this.resizeContentOnLoad();this.addElementAction();this.addObfuscatedLinkHandler(
);this.scrollCheck();n.find(".areasource, .imagemapHover").each(function(n,i){t.addHover($(i))})}return n.prototype.addElementAction=function(){this.imageMaps.on("click",".has-element-action",function(n){var t=$(n.currentTarget);eventAggregator.publish(t.data("element-action"),t.data("element-action-data"))})},n.prototype.resizeContentOnLoad=function(){var n=this,t;this.imageMaps.each(function(t,i){var r=$(i);r.imagesLoaded().always(function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged);n.activateResizeableImageMap(r)})});t=_.debounce(function(){n.imageMaps.each(function(t,i){n.activateResizeableImageMap($(i))})},800);this.elementRepository.window().on("resize",function(){t()});eventAggregator.subscribe(Common.EventNames.ParallaxViewportSizeChanged,function(){t()})},n.prototype.addHover=function(n){var t=this;if(sniff.isHandheld){n.on("click",function(i){if(t.activateHoverImage(n,i),!n.hasClass("hover")&&t.imageMaps.hasClass("hover-on-first-tap")&&!n.hasClass("area-hidden"))return i.preventDefault(
),t.imageMaps.find(".areasource").removeClass("hover"),n.addClass("hover"),n.hasClass("area-hidden-on-non-main-image")||t.disableMarkedAreasOfMainImage(n.parent()),t.enableAreaGroups(n.attr("data-enable-area-groups")),!1;t.imageMaps.hasClass("hover-on-first-tap")&&n.hasClass("hover")&&n.hasClass("has-modal")&&(n.removeClass("hover"),i.preventDefault(),n.data("modalid")?modalManager.openModal($("#"+n.data("modalid"))):modalManager.openModalByAjax(n.data("modal-ajaxtarget")))});this.elementRepository.html().on("click",function(){n.removeClass("hover");t.closeHover();t.enableMarkedAreasOfMainImage(n.parent());t.disableAreaGroups()})}else if(this.imageMaps.hasClass("follow-target-on-hover")&&!_.isUndefined(n.attr("href"))){n.hover(function(){t.followTarget(n)});n.on("mouseenter",function(){n.addClass("hover")});n.on("mouseleave",function(){n.removeClass("hover")})}else n.hover(function(i){t.activateHoverImage(n,i)})},n.prototype.scrollCheck=function(){var n=this;if(this.imageMaps.hasClass("follow-target-on-hover"))
{this.imageMaps.on("mousemove",function(){n.lockLink=!1});this.elementRepository.window().on("scroll",function(){n.lockLink=!0})}},n.prototype.activateHoverImage=function(n,i){var o=this,f,u,e,r;(this.lockedClick=!0,_.delay(function(){o.lockedClick=!1},100),f=n.data("imageid"),u=n.data("areaid"),this.openedHoverImage&&(this.openedHoverImage.velocity("stop").velocity("fadeOut",{duration:this.fadeDuration}),e=u==this.clickedAreaId||!sniff.isHandheld,this.openedHoverImage=null,this.clickedAreaId=null,e))||i.type!="mouseleave"&&(r=$("#"+f),this.openedHoverImage=r,this.clickedAreaId=u,eventAggregator.publish(t.ContentRevealed,r),eventAggregator.publish(t.UnveilTrigger,r),r.velocity("stop").velocity("fadeIn",{duration:this.fadeDuration}))},n.prototype.followTarget=function(n){this.lockLink||_.delay(function(){n.hasClass("hover")&&n.trigger("click")},800)},n.prototype.closeHover=function(){var n=this;this.lockedClick||(this.lockedClick=!0,_.delay(function(){n.lockedClick=!1},100),this.openedHoverImage&&(this.openedHoverImage.
velocity("stop").velocity("fadeOut",{duration:this.fadeDuration}),this.openedHoverImage=null,this.clickedAreaId=null))},n.prototype.linkAreaResize=function(n){var s=n.find(".resizeMap.transparent"),r=n.find(".resizeMap.image"),f,e,o,i,t,h,u;if(s.css({width:r.width(),height:r.height()}),n.hasClass("fill")){if(f=n.closest(".imagemap-slideshow"),f.length>0?(e=f.parent().width(),o=f.parent().height()):(e=n.parent().width(),o=n.parent().height()),i=e,t=o,n.find(".resizeMap.hoverimage").css({width:"100%",height:t}),s.css({width:"100%",height:t}),r.css({width:"100%",height:t}),Modernizr.objectfit)return;h=i/t;u=new Image;u.src=r.attr("src");u.onload=function(){var a=u.width,v=u.height,f=a/v,c=0,l=0;h<f&&(i=t*f,l=(i-e)/2);h>f&&(t=i/f,c=(t-o)/2);n.find(".resizeMap.hoverimage").css({width:i,height:t,top:-c,"margin-left":-l});s.css({width:i,height:t,top:-c,"margin-left":-l});r.css({width:i,height:t,top:-c,"margin-left":-l,position:"relative"})}}},n.prototype.addObfuscatedLinkHandler=function(){this.imageMaps.on("touchstart mouseover",
".obfuscated",function(n){var t=$(n.currentTarget);!t.attr("href")&&t.attr("data-href")&&t.attr("href",utils.htmlDecode(window.deobs(t.attr("data-href"))))})},n.prototype.activateResizeableImageMap=function(n){n.addClass("visible-imagemap");n.filter(":visible").length?this.runActivateRwdImageMaps(n):this.delayedActivateRwdImageMaps(n);n.removeClass("visible-imagemap")},n.prototype.runActivateRwdImageMaps=function(n){var t=this,i=n.find("img.resizeMap.image");this.linkAreaResize(n);this.activateRwdImageMaps(i).then(function(){return t.updateAreaCoordinates(n)})},n.prototype.delayedActivateRwdImageMaps=function(n){var t=this;_.isUndefined(this.visibilityCheckInterval)&&(this.visibilityCheckInterval=setInterval(function(){n.filter(":visible").length&&(t.runActivateRwdImageMaps(n),clearInterval(t.visibilityCheckInterval),t.visibilityCheckInterval=undefined)},1e3))},n.prototype.activateRwdImageMaps=function(n){var u=this,t=$.Deferred(),i,r;return n.css("visibility")!="visible"?(t.resolve(),t.promise()):(i=new Image,
i.src=n.attr("src"),r=$(i),r.imagesLoaded().done(function(){u.activateRwdImageMapsCalculate(i,n);t.resolve()}),t.promise())},n.prototype.activateRwdImageMapsCalculate=function(n,t,i){var o=this,f,e,r;if(i===void 0&&(i=!1),f=n.width,e=n.height,(f==0||e==0)&&i==!1){_.delay(function(){o.activateRwdImageMapsCalculate(n,t,!0)},1e3);return}var u=t.parents(".imagemap"),s=u.data("unscaled-width"),h=u.data("unscaled-height");s&&h&&(f=s,e=h);r=new Image;r.src=t.attr("src");r.onload=function(){var n=t.width(),i=t.height(),l=0,a=0,c;if(u.hasClass("fill")){var w=r.width,b=r.height,h=w/b,v=n/i;v<h&&(n=i*h,a=(n-t.width())/2);v>h&&(i=n/h,l=(i-t.height())/2)}var y=n/r.width,p=i/r.height,k=y<=p?y:p,d=t.attr("usemap").replace("#",""),s="coords";$('map[name="'+d+'"]').find("area").each(function(t,r){var u=$(r),c,h,o;for(u.data(s)||u.data(s,u.attr(s)),c=u.data(s).split(","),h=new Array(c.length),o=0;o<h.length;++o)h[o]=u.attr("shape")==="circle"&&o>1?c[o]*k:o%2==0?Math.round(c[o]/f*n)-a:Math.round(c[o]/e*i-l);h.toString().indexOf(
"NaN")==-1&&h.toString().indexOf("Infinity")==-1&&(sniff.isHandheld&&u.attr("data-coords-backup",h.toString()),u.hasClass("area-hidden")?u.attr(s,0):u.attr(s,h.toString()))});sniff.isHandheld&&(c=u.find("area.hover"),c.length>0&&(o.enableAreaGroups(c.data("enable-areas")),o.disableMarkedAreasOfMainImage(u)))}},n.prototype.enableAreaGroups=function(n){var t;this.disableAreaGroups();n!=null&&(t=$.map(n.toString().split(","),$.trim),this.imageMaps.find(".areasource").each(function(n,i){var r=$(i);t.forEach(function(n){r.attr("data-area-group-id")===n&&r.attr("coords",r.attr("data-coords-backup"))})}))},n.prototype.disableAreaGroups=function(){this.imageMaps.find(".area-hidden").attr("coords",0)},n.prototype.enableMarkedAreasOfMainImage=function(n){n.find(".area-hidden-on-non-main-image").each(function(n,t){var i=$(t);i.attr("coords",i.attr("data-coords-backup"))})},n.prototype.disableMarkedAreasOfMainImage=function(n){n.find(".area-hidden-on-non-main-image").each(function(n,t){$(t).attr("coords",0)})},n.prototype.
updateAreaCoordinates=function(n){var t=n.find("img.resizeMap").width(),i=n.find("img.resizeMap").height();t>0&&i>0&&(n.find(".areasource.completelink").attr("coords","0,0,"+t+","+i),n.find(".areasource.completelink").attr("data-coords","0,0,"+t+","+i),n.find(".areasource.completelink").attr("data-coords-backup","0,0,"+t+","+i))},n.initializeIn=function(t){t.find(".imagemap").each(function(t,i){imageMapHandler=new n($(i))})},n}();n.ImageMapInitializer=i}(PageElements||(PageElements={}));$(document).ready(function(){PageElements.ImageMapInitializer.initializeIn(Common.ElementRepository.getInstance().body());eventAggregator.subscribe(Common.EventNames.ContentAddedToDOM,function(n){PageElements.ImageMapInitializer.initializeIn(n)});eventAggregator.subscribe(Common.EventNames.ContentRevealed,function(n){imageMapHandler&&n.find(".imagemap").each(function(n,t){return imageMapHandler.activateResizeableImageMap($(t))})})}),function(n){var t=function(){function t(n){var t=this;this.tabPanelSelector='[data-toggle="tab"]';
this.xSellingCarouselSelector=".carousel-crossselling";this.ajax=DependencySystem.resolve(WebData.Ajax);this.elementRepository=Common.ElementRepository.getInstance();this.tabContainer=n;this.bindDelegates();$.when(this.checkSourceTabId()).then(function(){t.loadFirstTab()})}return t.prototype.bindDelegates=function(){var n=this;this.tabContainer.on("show.bs.tab",this.tabPanelSelector,function(t){var i=$(t.target),r=i.data("ajaxtarget");if(n.tabHasCarousel($(t.relatedTarget)))try{carouselCrosssellingHandler.pauseSwipers()}catch(u){throw new Error(u);}if(n.tabHasCarousel(i))try{carouselCrosssellingHandler.startAll()}catch(u){throw new Error(u);}r&&n.loadAjaxContent(r,i)})},t.prototype.tabHasCarousel=function(n){return this.tabContainer.find(n.attr("href")).find(this.xSellingCarouselSelector).length>0},t.prototype.loadAjaxContent=function(t,i){var u=this,r=this.tabContainer.find(i.attr("href"));i.removeData("ajaxtarget").removeAttr("data-ajaxtarget");this.ajax.get({url:t}).then(function(t){var f=ajaxDomHelper.getNamedObjectValueFromArray(
"tab",t);if(r.html(f),u.tabHasCarousel(i))try{DependencySystem.resolveInContext(n.PriceModeDependantElementComponent,r);carouselCrosssellingHandler.initializeInContext(r)}catch(e){throw new Error(e);}})},t.prototype.checkSourceTabId=function(){var n=this.tabContainer.find("[data-source-tab-id]");return n.length?$.when(this.replaceCurrentTabWithSourceTab(n)):$.Deferred().resolve()},t.prototype.replaceCurrentTabWithSourceTab=function(n){var t=this,i=[];return n.each(function(n,r){var h=$.Deferred(),u=$(r),e=u.data("current-tab-id"),c=u.find(".lastline").length>0,l=t.tabContainer.find("#"+e),o=u.data("source-tab-id"),s=t.elementRepository.body().find("#"+o).clone().removeClass("active"),a,f;if(i.push(h),!s.length){eventAggregator.publish(Common.EventNames.DebugError,{message:'Element with source-tab-id="'+o+'" could not be found and will be removed.'});c&&t.makePreviousTabLast(u,o);u.remove();l.remove();h.resolve();return}a=u.hasClass("active");f=t.getSourceTab(o);a&&(f.addClass("active"),s.addClass("active"));f.
children('[role="tab"]').attr({"aria-controls":e,href:"#"+e});s.attr("id",e);t.changeDividerStyle(f,c);u.replaceWith(f);l.replaceWith(s);h.resolve()}),$.when.apply($,i)},t.prototype.makePreviousTabLast=function(n,t){var i=n.prev();if(!i.length){eventAggregator.publish(Common.EventNames.DebugError,{message:'The tab-container for tab with source-tab-id="'+t+'" will be empty!'});return}this.changeDividerStyle(i,!0)},t.prototype.changeDividerStyle=function(n,t){var i=t?"linesplitter":"lastline",u=t?"lastline":"linesplitter",r=n.find("."+i);r.removeClass(i).addClass(u).empty();t||r.html("|")},t.prototype.getSourceTab=function(n){return this.elementRepository.body().find("#"+n).closest(".tab-container").find('[aria-controls="'+n+'"]').parent().clone().removeClass("active")},t.prototype.loadFirstTab=function(){var n=this.tabContainer.find("ul li:first a"),t=n.data("ajaxtarget");t&&this.loadAjaxContent(t,n)},t}(),i;n.TabsHandler=t;i=function(){function n(){this.elementRepository=Common.ElementRepository.getInstance()}
return n.prototype.initialize=function(){this.initializeInContext(this.elementRepository.body())},n.prototype.initializeInContext=function(n){n.find(".tab-container").each(function(n,i){new t($(i))})},n}();n.InitTabsHandler=i}(PageElements||(PageElements={}));initTabsHandler=new PageElements.InitTabsHandler;initTabsHandler.initialize(),function(n){var t=function(){function n(n){this.ajax=DependencySystem.resolve(WebData.Ajax);this.addToBasketForm=n;this.setAjaxLink();this.initPluralLabel();this.initPreSelect();this.initRestoreOnBlur();this.amountInput=this.addToBasketForm.find('.articleinput input[name = "amount"]');this.amountInput.attr("type")!=="tel"&&this.amountInput.attr("type","tel");window.shell&&window.shell.publishTo(Common.EventNames.ManualProductComparisonCreateCompareButtonTouchPoints,this.addToBasketForm[0])}return n.prototype.setAjaxLink=function(){var t=this,i=this.addToBasketForm.find("form").data("ajaxtarget");if(i!=""){var n=this.addToBasketForm.find('button[type = "submit"]'),r=_.debounce(function(
){return t.ajaxCall(i,n)},3e3,!0),u=_.debounce(function(){return t.addToBasketLogging()},3e3,!0);n.off("click.add-to-basket").on("click.add-to-basket",function(t){t.preventDefault();n.hasClass("disabled")||(r(),u())})}},n.prototype.ajaxCall=function(n,t){var i={},r=this.addToBasketForm.find('input[type = "tel"]').attr("name"),u=this.addToBasketForm.find('input[type = "tel"]').val();i[r]=u;this.addToBasketForm.find("input").filter('[type = "hidden"], [type = "tel"]').each(function(n,t){var r=$(t);i[r.attr("name")]=r.val()});t.addClass("disabled");this.ajax.post({url:n,data:i},{modal:!0}).always(function(){return t.removeClass("disabled")}).then(function(n){var t=$(ajaxDomHelper.getNamedObjectValueFromArray("modal",n));t.length&&modalManager.closeModals({completed:function(){eventAggregator.publish(Common.EventNames.ArticleTemplatesAddedToBasket);modalManager.openModal(t);ajaxFormHandler.initializeInContext(t)}})})},n.prototype.initPluralLabel=function(){var n=this.addToBasketForm.find(".articleinput .input label"),
t=this.addToBasketForm.find(".articleinput .input input");t.on("keyup blur",function(){var i=t.val();t.val()=="1"||_.isEmpty(i)?n.html(n.data("label")):n.html(n.data("plurallabel"))})},n.prototype.initPreSelect=function(){var n=this.addToBasketForm.find('.articleinput input[name = "amount"]');n.on("focus",function(){$(this).one("mouseup",function(n){n.preventDefault()}).select()})},n.prototype.initRestoreOnBlur=function(){var t=this.addToBasketForm.find('.articleinput input[name = "amount"]'),n;t.on("focus",function(){n=this.value}).on("blur",function(){this.value==""&&(this.value=n)})},n.prototype.addToBasketLogging=function(){var n=this.amountInput.val(),t=this.addToBasketForm.find('input[name = "MasterArticleNo"]').val(),i=this.addToBasketForm.find('input[name = "SalesArticleVariantKey"]').val(),r={actionSubject:n+"/"+t+"/"+i,actionType:"AddToBasket"};eventAggregator.publish(Common.EventNames.TrackActionControlEvent,r)},n}(),i;n.AddToBasketForm=t;i=function(){function n(){}return n.prototype.initAddToBasket=
function(n){n===void 0&&(n=$("body"));n.find(".add-to-basket-form:not( .wrapper )").each(function(n,i){new t($(i))})},n}();n.InitializeAddToBasketHandler=i}(PageElements||(PageElements={}));$(document).ready(function(){var n=new PageElements.InitializeAddToBasketHandler;n.initAddToBasket()}),function(n){var t=function(){function n(n){this.freezer=n}return n.prototype.initializeFor=function(n){var t=this,r,i;return this.domContext=n,this.pagerContainer=n.find(".pager"),r=this.domContext.find(".slide").length,this.shouldHavePager=r>1,i=$.Deferred(),this.pausedSlideshow=this.domContext.data("paused"),this.domContext.one("cycle-initialized",function(){t.pauseOnHover();t.introduceFreezer();i.resolve()}).one("cycle-destroyed",function(){i.reject()}).cycle(this.setUpOptions()),i.then(function(){if(t.shouldHavePager){t.pagerContainer.on("click.gallery-slideshow",".slideshowpager > li",function(){t.stop()});t.pagerContainer.css("display","block")}sniff.isHandheld&&t.domContext.hammer({recognizers:[[Hammer.Swipe,{direction:
Hammer.DIRECTION_HORIZONTAL}]]})})},n.prototype.pauseOnHover=function(){var n=this;this.isHovered&&this.pause();this.domContext.hover(function(){n.pause()},function(){n.resume()})},n.prototype.introduceFreezer=function(){var n=this;this.freezer.introduce(this.domContext,function(){n.pause()},function(){n.resume()},function(){return n.shouldBeFrozen})},Object.defineProperty(n.prototype,"shouldBeFrozen",{get:function(){var n=!this.domContext.hasClass("cycle-paused");return n||this.isHovered},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isHovered",{get:function(){return this.domContext.is(":hover")},enumerable:!0,configurable:!0}),n.prototype.setUpOptions=function(){var n,t,i;return this.pausedSlideshow&&(n={continueAuto:!1,paused:!0}),this.shouldHavePager&&(t={pager:".slideshowpager",pagerActiveClass:"active",pagerTemplate:""}),sniff.isHandheld&&(i={fx:"scrollHorz"}),$.extend({pauseOnHover:!1,slides:"> .slide",speed:300,loader:!1,swipe:!0,swipeFx:"scrollHorz",timeout:6e3,log:!1,centerHorz:
!1,centerVert:!1,autoHeight:"600:466"},n,t,i)},n.prototype.activeSlideHasAjaxTarget=function(){return this.domContext.find(".cycle-slide-active .image[data-modal-ajaxtarget]").length>0},n.prototype.pause=function(){this.domContext.cycle("pause")},n.prototype.resume=function(){this.freezer.isFrozen||this.domContext.cycle("resume")},n.prototype.stop=function(){this.domContext.cycle("stop")},n.prototype.destroy=function(){var t=this,n;return this.stop(),this.freezer.destroy(),this.shouldHavePager&&this.pagerContainer.css("display","none"),n=$.Deferred(),this.domContext.one("cycle-destroyed",function(){n.resolve()}).cycle("destroy"),n.then(function(){t.domContext.off(".gallery-slideshow")})},n}();n.GallerySlideshow=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.Freezer])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){var r=this;this.isPaused=!1;this.origin=n;this.slideshow=t;this.elements=i;this.mediaOverlayOpener=this.origin.contextQuery.find(".media-overlay-opener");
this.slideshow.initializeFor(this.origin.contextQuery).then(function(){r.showHideMediaOverlayOpener();r.setupDomBindings()});this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.GalleryStopAll,callback:function(){r.pause(!0)}},{message:Common.EventNames.GalleryStartAll,callback:function(){r.resume(!0)}}])}return n.prototype.setupDomBindings=function(){var n=this;this.origin.contextQuery.on("cycle-after"+this.origin.eventNamespace,function(){n.showHideMediaOverlayOpener()});this.mediaOverlayOpener.on("click"+this.origin.eventNamespace,function(){n.getImageClickElement()})},n.prototype.getImageClickElement=function(){if(!this.isPaused){var n=this.origin.contextQuery.find(".cycle-slide-active .image[data-modal-ajaxtarget]");n.trigger("click")}},n.prototype.showHideMediaOverlayOpener=function(){this.slideshow.activeSlideHasAjaxTarget()?this.mediaOverlayOpener.removeClass("hidden"):this.mediaOverlayOpener.addClass("hidden")},n.prototype.pause=function(n){n&&(this.isPaused=!0);this.slideshow.
pause()},n.prototype.resume=function(n){n&&(this.isPaused=!1);this.slideshow.resume()},n.prototype.destroy=function(){return this.elements.body().off(this.origin.eventNamespace),this.origin.contextQuery.off(this.origin.eventNamespace),this.mediaOverlayOpener.off(this.origin.eventNamespace),eventAggregator.unSubscribeMultiple(this.subscriptions),this.slideshow.destroy()},n}();n.GalleryCtrl=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.GallerySlideshow,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="gallery-component",t.query=".gallery",t.controller=n.GalleryCtrl,t}();n.GalleryComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){t===void 0&&(t=0);i===void 0&&(i=0);this.horizontalContainerMargin=t;this.verticalContainerMargin=i;this.videoElement=n}return n.prototype.initialize=function(n,t){var r=parseInt(this.videoElement.attr(
"width")),u=parseInt(this.videoElement.attr("height")),f,i;return this.videoElement.is("iframe")?(this.videoAspectRatio=isNaN(r)||isNaN(u)?16/9:r/u,this.videoContainer=this.videoElement.closest(".video-overlay"),f=this.videoElement.parent(),i=this.videoElement.hasClass("media-element-resizer-initialized"),i||this.videoElement.detach(),this.resize(n,t),i||this.videoElement.addClass("media-element-resizer-initialized").appendTo(f),$.Deferred().resolve().promise()):$.Deferred().resolve().promise()},n.prototype.resize=function(n,t){if(!_.isUndefined(this.videoAspectRatio)&&n!==0&&t!==0){var r=n-this.horizontalContainerMargin,i=Math.floor(r/this.videoAspectRatio);i+this.verticalContainerMargin>t&&(i=t-this.verticalContainerMargin,r=Math.floor(i*this.videoAspectRatio));this.videoElement.attr("width",r).attr("height",i)}},n}();n.VideoIFrameResizer=t}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){t===void 0&&(t=0);i===void 0&&(i=0);this.timelineHorizontalMargin=20;this.horizontalContainerMargin=
t;this.verticalContainerMargin=i;this.videoElement=n}return n.prototype.initialize=function(n,t){var i=this,r;return(this.videoId=this.videoElement.attr("id"),r=this.videoElement.find(".videoposter > img"),!r.length)?$.Deferred().resolve().promise():utils.getImageProperties(r).done(function(r){i.videoAspectRatio=r.aspectRatio();i.resize(n,t);i.videoElement.addClass("media-element-resizer-initialized")})},n.prototype.resize=function(n,t){var i,r,u,f;_.isUndefined(this.videoAspectRatio)||n===0||t===0||(this.checkAndGetResizeElements(),i=n-this.horizontalContainerMargin,r=Math.floor(i/this.videoAspectRatio),r+this.verticalContainerMargin>t&&(r=t-this.verticalContainerMargin,i=Math.floor(r*this.videoAspectRatio)),this.videoElement.css({width:i,height:r}),this.videoElements.attr("width",i).attr("height",r),this.videoContainers.css({width:i,height:r}),this.timeline.css({width:i}),u=i-this.timelineHorizontalMargin,this.timelineInner.css({width:u}),f=r-this.videoControlsContainer.height(),this.playIconOverlay.css({width:
i,height:f}))},n.prototype.checkAndGetResizeElements=function(){this.isElementNotInitialized(this.videoElements)&&(this.videoElements=this.videoElement.find("video"));this.isElementNotInitialized(this.videoContainers)&&(this.videoContainers=this.videoElement.find(".mejs-overlay:not( .mejs-overlay-play ), .mejs-container, .mejs-poster"),this.videoContainers=this.videoContainers.add(this.videoElement.closest(".video-overlay")));this.isElementNotInitialized(this.timeline)&&(this.timeline=this.videoElement.find(".mejs-time-rail"));this.isElementNotInitialized(this.timelineInner)&&(this.timelineInner=this.timeline.find("a.mejs-time-total"));this.isElementNotInitialized(this.playIconOverlay)&&(this.playIconOverlay=this.videoElement.find(".mejs-overlay-play"));this.isElementNotInitialized(this.videoControlsContainer)&&(this.videoControlsContainer=this.videoElement.find(".mejs-controls"))},n.prototype.isElementNotInitialized=function(n){return _.isUndefined(n)||!n.length},n}();n.MediaElementResizer=t}(PageElements||(PageElements=
{})),function(n){var t=function(){function n(){}return n.prototype.getPreSelectedSlide=function(n){var t=0,i;return n?(i=n.find(".slide"),i.each(function(n,i){if(utils.getBoolean($(i).attr("data-is-selected")))return t=n,!1}),t):t},n.prototype.isActiveSlide3DView=function(n){var t=n.hasClass("cycle-slide-active")?n:n.find(".cycle-slide-active");return Common.FeatureToggle.View3dHtml5only?t.find("showcase-viewer").length>0:t.find(".gallery3d").length>0},n}();n.MediaOverlayService=t;DependencySystem.define(t).as(DS.Singleton)}(PageElements||(PageElements={})),function(n){var t=function(){function t(n){this.mediaOverlayService=n}return t.prototype.initializeFor=function(n,t){n.length&&(this.galleryElement=n,this.fsiGallery=t,this.setElements(n),this.isInitialized=!0)},t.prototype.resize=function(n){var t=this;(n===void 0&&(n=!1),this.isInitialized)&&setTimeout(function(){t.setDimensions(n)},120)},t.prototype.setElements=function(){this.videoElements=this.galleryElement.find(".video-element");this.fsiContainer=this.
galleryElement.find(".gallery3d");this.setGallery3DFlashElement()},t.prototype.setDimensions=function(n){var t,i,r;n===void 0&&(n=!1);t=this.galleryElement.width();i=this.galleryElement.height();this.mediaElementResizers&&this.mediaElementResizers.length?this.resizeMediaElements(t,i):this.initializeMediaElementResizers(t,i);this.gallery3DFlashElement.length<1&&this.setGallery3DFlashElement();this.gallery3DFlashElement.attr("width",this.fsiContainer.width()).attr("height",this.fsiContainer.height());r=this.mediaOverlayService.isActiveSlide3DView(this.galleryElement)&&this.fsiContainer.find("#FSIModule").length>0;!Common.FeatureToggle.View3dHtml5only&&r&&(!sniff.isHandheld||n)&&this.fsiGallery.debouncedInitialize()},t.prototype.initializeMediaElementResizers=function(t,i){var r=this;this.mediaElementResizers=[];this.videoElements.each(function(u,f){var e=new n.MediaElementResizer($(f));e.initialize(t,i);r.mediaElementResizers.push(e)})},t.prototype.resizeMediaElements=function(n,t){$.each(this.mediaElementResizers,
function(i,r){r.resize(n,t)})},t.prototype.setGallery3DFlashElement=function(){this.gallery3DFlashElement=this.fsiContainer.find("object")},t}();n.MediaOverlayGalleryResizerFactory=t;DependencySystem.define(t).as(DS.Factory).andInject([n.MediaOverlayService])}(PageElements||(PageElements={})),function(n){var t=function(){function t(n){this.mediaOverlayService=n}return t.prototype.initializeFor=function(n){var t=this;n.length&&(this.gallery3DElement=n,this.containingSlide=n.closest(".slide"),this.debouncedInitialize=_.debounce(function(n){n===void 0&&(n=function(){});t.initialize().done(function(){n()})},500,!0),this.isInitialized=!0)},t.prototype.initialize=function(){if(sniff.isHandheld&&this.gallery3DElement.find(".overlay").show(),!this.mediaOverlayService.isActiveSlide3DView(this.containingSlide))return $.Deferred().resolve().promise();var i=this.gallery3DElement.find("#FSIModule").length>0,r=this.gallery3DElement.find("object#fsiviewer").length>0,t=$.Deferred();return this.gallery3DElement.find("div#fsiviewer #FSIModule").
remove(),i||!r?n.Gallery3DHandler.initializeAll(this.gallery3DElement.width(),this.gallery3DElement.height(),{onFsiStarted:function(){t.resolve()}}):t.resolve(),t},t}();n.MediaOverlay3DGalleryFactory=t;DependencySystem.define(t).as(DS.Factory).andInject([n.MediaOverlayService])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.mediaOverlayService=n}return n.prototype.initializeFor=function(n){var t=$.Deferred(),i;this.mediaOverlayElement=n;this.galleryElement=n.find(".media-overlay-gallery .images-container");this.galleryElement.on("cycle-initialized",function(){t.resolve()});return i={paused:!0,slides:"> .slide",next:"",prev:"",speed:300,loader:!1,fx:"scrollHorz",swipe:!1,log:!1,allowWrap:!1,autoHeight:"auto",startingSlide:this.mediaOverlayService.getPreSelectedSlide(this.galleryElement)},this.galleryElement.cycle(i),this.bindPrevNext(),t.promise()},n.prototype.bindPrevNext=function(){var n=this;this.mediaOverlayElement.on("click.prevNext",this.getSelector(".right"),function()
{n.galleryElement.cycle("next")}).on("click.prevNext",this.getSelector(".left"),function(){n.galleryElement.cycle("prev")})},n.prototype.getSelector=function(n){return".media-overlay-gallery .arrowwrapper"+n+", .media-overlay-thumbnails "+n},n.prototype.destroy=function(){this.galleryElement.find(".cycle-slide").length&&this.galleryElement.cycle("destroy");this.galleryElement.off("touchstart",".coudzoom");this.mediaOverlayElement.off(".prevNext")},n}();n.MediaOverlayGalleryFactory=t;DependencySystem.define(t).as(DS.Factory).andInject([n.MediaOverlayService])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.maxVisibleSlides=9;this.mediaOverlayService=n}return n.prototype.initializeFor=function(n,t){var r=this,i;return this.thumbnailElement=n,this.arrows=t,this.slides=n.find(".slide"),this.slidesLength=this.slides.length,this.visibleSlides=Math.min(this.slidesLength,this.maxVisibleSlides),i=this.registerPostInitialisation(),this.initializeCycle(),i.then(function(){r.hideThumbnailArrows(
)})},n.prototype.initializeCycle=function(){var n={paused:!0,slides:"> .slide",speed:300,loader:!1,log:!1,fx:"carousel",carouselVisible:this.visibleSlides,carouselFluid:!1,allowWrap:!1,autoHeight:"auto",carouselVertical:!1,carouselSlideDimension:90,carouselOffset:0,retainStylesOnDestroy:!0};this.thumbnailElement.cycle(n)},n.prototype.registerPostInitialisation=function(){var n=this,t=$.Deferred();this.thumbnailElement.one("cycle-initialized",function(){n.slides.css("opacity","1");n.setContainerWidth();n.goToPreSelectedSlide().always(function(){t.resolve()})});return $.when(t)},n.prototype.setContainerWidth=function(){if(!(this.slidesLength>this.maxVisibleSlides)){var n=this.visibleSlides*this.slides.outerWidth(!0)+60;this.thumbnailElement.parent(".images-container").css("width",n)}},n.prototype.goToPreSelectedSlide=function(){var n=this;return $.wait(50).then(function(){var t=n.mediaOverlayService.getPreSelectedSlide(n.thumbnailElement);n.thumbnailElement.cycle("goto",t)})},n.prototype.hideThumbnailArrows=function(
){this.slidesLength<=this.maxVisibleSlides&&this.arrows.hideThumbnailsArrows()},n.prototype.destroy=function(){this.thumbnailElement.find(".cycle-slide").length&&this.thumbnailElement.cycle("destroy")},n}();n.MediaOverlayThumbnailsFactory=t;DependencySystem.define(t).as(DS.Factory).andInject([n.MediaOverlayService])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.gallery=this.origin.contextQuery;this.bindOnPinch();this.bindModalAjaxTargets()}return n.prototype.bindModalAjaxTargets=function(){var n=this.gallery.find("div.image, .teaser-3d");modalManager.initModalLinks(n,"[data-modal-ajaxtarget]")},n.prototype.bindOnPinch=function(){if(sniff.isHandheld)this.gallery.on("gesturestart"+this.origin.eventNamespace,"div.image",function(n){n.preventDefault();$(n.currentTarget).trigger("click")})},n.prototype.destroy=function(){this.gallery.off(this.origin.eventNamespace)},n}();n.MediaOverlayOpenerController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}
(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="media-overlay-opener",t.query=".gallery",t.controller=n.MediaOverlayOpenerController,t}();n.MediaOverlayOpenerComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){}return n.prototype.initializeFor=function(n){(this.iconButtonLists=n.find(".icon-button-list-wrapper"),this.iconButtonLists&&this.iconButtonLists.length)&&(this.fillSlideIds(n),this.isInitialized=!0)},n.prototype.updateVisibility=function(n){this.isInitialized&&(this.hideVisibleList(),this.showListOfActiveSlide(n))},n.prototype.fillSlideIds=function(n){var t=this,i=n.find(".slide");this.slideIds=[];i.each(function(n,i){var r=$(i).data("slide-id");t.slideIds.push(r)})},n.prototype.hideVisibleList=function(){var n=this.iconButtonLists.filter(":not(.hidden)");n.addClass("hidden")},n.prototype.showListOfActiveSlide=function(n){var t=this.slideIds[n-1],i=this.iconButtonLists.filter(
"[data-slide-id="+t+"]");i.removeClass("hidden")},n}();n.MediaOverlayIconButtonListsFactory=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){}return n.prototype.initializeFor=function(n){this.arrowGalleryLeft=n.find(".media-overlay-gallery .arrow.left");this.arrowGalleryRight=n.find(".media-overlay-gallery .arrow.right");this.arrowThumbnailsLeft=n.find(".media-overlay-thumbnails .arrow.left");this.arrowThumbnailsRight=n.find(".media-overlay-thumbnails .arrow.right");this.isInitialized=!0},n.prototype.show=function(){this.checkInitialisation();this.showLeft();this.showRight()},n.prototype.showLeft=function(){this.checkInitialisation();this.arrowGalleryLeft.add(this.arrowThumbnailsLeft).removeClass("invisible")},n.prototype.showRight=function(){this.checkInitialisation();this.arrowGalleryRight.add(this.arrowThumbnailsRight).removeClass("invisible")},n.prototype.hideLeft=function(){this.checkInitialisation();this.arrowGalleryLeft.add(this.arrowThumbnailsLeft).
addClass("invisible")},n.prototype.hideRight=function(){this.checkInitialisation();this.arrowGalleryRight.add(this.arrowThumbnailsRight).addClass("invisible")},n.prototype.hideThumbnailsArrows=function(){this.checkInitialisation();this.arrowThumbnailsLeft.add(this.arrowThumbnailsRight).addClass("hidden")},n.prototype.checkInitialisation=function(){if(!this.isInitialized)throw new Error('MediaOverlayArrowsFactory has to be initialized with "initialiezeFor(mediaOverlayElement)" before first use of public methods.');},n}();n.MediaOverlayArrowsFactory=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.prototype.initializeFor=function(t){var r=$.Deferred(),i=DependencySystem.resolveInContext(n.Teaser3DComponent,t).andBindItToDom(),u=i&&i.length&&i[0].controller;return this.teaser3D=u?i[0].controller:undefined,r.resolve()},t.prototype.resume=function(){this.teaser3D&&this.teaser3D.resume()},t.prototype.pause=function(){this.teaser3D&&this.
teaser3D.pause(!0)},t}();n.MediaOverlayTeaser3DFactory=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var i=Common.EventNames,t=function(){function t(){}return t.prototype.initializeFor=function(t){var i=[],r=[];return this.videoElements=t.find(".video-element"),this.videoElements.each(function(t,u){var f=$.Deferred(),e=$.Deferred();i.push(f);r.push(e);videoHandlers.add(new n.VideoHandler($(u),{onlyHacksLeft:function(){f.resolve()},initialized:function(){e.resolve()}}))}),$.when.apply($,i)},t.prototype.destroy=function(){eventAggregator.publish(i.StopAllVideos);this.videoElements.each(function(n,t){var r=$(t),u=r.attr("id"),i=r.find(".mejs-container").attr("id");videoHandlers.remove(u);mejs.players[i]?mejs.players[i].remove():delete mejs.players[i]})},t}();n.MediaOverlayVideosFactory=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var t=Common.EventNames,i=function(){function n(n,t,i,r,u,f,e,o,s,h){var a=this,c,l;this.exitingFsiViewerFullScreen=
!1;this.constructing=$.Deferred();this.origin=n;this.mediaOverlayService=t;this.galleryResizer=i;this.arrows=r;this.videos=u;this.gallery=f;this.thumbnails=e;this.fsiGallery=o;this.teaser3D=s;this.iconButtonLists=h;this.mediaOverlayElement=this.origin.contextQuery;this.mediaOverlayBody=$(".media-overlay-backdrop.overlay-backdrop.modal-open");this.galleryElement=this.mediaOverlayElement.find(".media-overlay-gallery .images-container");c=this.galleryElement.find(".gallery3d");this.thumbnailElement=this.mediaOverlayElement.find(".media-overlay-thumbnails .images");l=this.thumbnailElement.find(".slide.teaser-3d-container");this.arrows.initializeFor(this.mediaOverlayElement);Common.FeatureToggle.View3dHtml5only||this.fsiGallery.initializeFor(c);this.galleryResizer.initializeFor(this.galleryElement,this.fsiGallery);this.iconButtonLists.initializeFor(this.mediaOverlayElement);this.bindMediaOverlayEvents();this.bindFullscreenChange();$.when(this.videos.initializeFor(this.galleryElement),this.gallery.initializeFor(this.
mediaOverlayElement),this.thumbnails.initializeFor(this.thumbnailElement,this.arrows),this.teaser3D.initializeFor(l)).then(function(){a.constructing.resolve()})}return n.prototype.postConstruct=function(){this.galleryResizer.resize();var n=this.galleryElement.data("cycle.opts");this.showHideGalleryArrows(n.currSlide,n.slideCount);this.iconButtonLists.updateVisibility(n.currSlide+1);this.bindGalleryAndThumbnailsCycles();this.bindVideoInteractions();this.bindSwipeOnGallery();this.bindGalleryCycleAfterEvent();this.toggle3DGalleryAndTeaser();this.resizeHandheldHack();this.bindCloseOnEsc()},n.prototype.bindMediaOverlayEvents=function(){var n=this;this.mediaOverlayElement.one("show.bs.modal",function(){n.galleryResizer.resize()});this.preventZoomingOnHandhelds();$(window).on("resize"+this.origin.eventNamespace,function(){n.galleryResizer.resize(!0)})},n.prototype.preventZoomingOnHandhelds=function(){this.mediaOverlayElement.one("show.bs.modal",function(){utils.preventZoomingOnHandheld()}).one("hidden.bs.modal",function(
){utils.enableZoomingOnHandheld()})},n.prototype.bindGalleryCycleAfterEvent=function(){var n=this;this.galleryElement.on("cycle-after"+this.origin.eventNamespace,function(t,i){n.showHideGalleryArrows(i.nextSlide,i.slideCount);n.iconButtonLists.updateVisibility(i.slideNum);n.toggle3DGalleryAndTeaser()})},n.prototype.bindVideoInteractions=function(){this.galleryElement.on("cycle-next"+this.origin.eventNamespace+" cycle-prev"+this.origin.eventNamespace+" cycle-before"+this.origin.eventNamespace,function(){eventAggregator.publish(t.StopAllVideos)});this.thumbnailElement.on("click"+this.origin.eventNamespace,".slide",function(){eventAggregator.publish(t.StopAllVideos)})},n.prototype.toggle3DGalleryAndTeaser=function(){this.mediaOverlayService.isActiveSlide3DView(this.galleryElement)?(Common.FeatureToggle.View3dHtml5only?eventAggregator.publish(Common.EventNames.FsiViewerResume):this.fsiGallery.debouncedInitialize(),this.teaser3D.pause()):(Common.FeatureToggle.View3dHtml5only&&eventAggregator.publish(Common.EventNames.
FsiViewerPause),this.teaser3D.resume())},n.prototype.bindSwipeOnGallery=function(){var t=this,n;if(sniff.isTouch){n=Common.FeatureToggle.View3dHtml5only?"container":"gallery3d";this.mediaOverlayElement.hammer({domEvents:!0,recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_HORIZONTAL}]]}).on("swipeleft"+this.origin.eventNamespace,".slide:not(:has(."+n+"))",function(){t.galleryElement.cycle("next")}).on("swiperight"+this.origin.eventNamespace,".slide:not(:has(."+n+"))",function(){t.galleryElement.cycle("prev")});this.hammerManager=this.mediaOverlayElement.data("hammer")}},n.prototype.bindGalleryAndThumbnailsCycles=function(){var n=this;this.galleryElement.on("cycle-next"+this.origin.eventNamespace+" cycle-prev"+this.origin.eventNamespace,function(t,i){n.thumbnailElement.cycle("goto",i.currSlide)});this.thumbnailElement.on("cycle-next"+this.origin.eventNamespace+" cycle-prev"+this.origin.eventNamespace,function(t,i){n.galleryElement.cycle("goto",i.currSlide)});this.thumbnailElement.on("click"+this.origin.eventNamespace,
".slide",function(t){var i=n.thumbnailElement.data("cycle.API").getSlideIndex(t.currentTarget);n.galleryElement.cycle("goto",i);n.thumbnailElement.cycle("goto",i)})},n.prototype.showHideGalleryArrows=function(n,t){var r=n===0,i=n===t-1;r||i?i?(this.arrows.hideRight(),this.arrows.showLeft()):(this.arrows.showRight(),this.arrows.hideLeft()):this.arrows.show()},n.prototype.resizeHandheldHack=function(){var n=this;sniff.isHandheld&&_.delay(function(){n.galleryResizer.resize()},1500)},n.prototype.bindCloseOnEsc=function(){var n=this;this.mediaOverlayBody.on("keyup.dismiss.modal",function(t){var i=utils.getKeyCode(t);i!==Key.ESCAPE||n.exitingFsiViewerFullScreen||modalManager.closeModals();n.exitingFsiViewerFullScreen=!1})},n.prototype.bindFullscreenChange=function(){var n=this;$(document).on("MSFullscreenChange",function(){var t=document.msFullscreenElement||null;t==null&&(n.exitingFsiViewerFullScreen=!0)})},n.prototype.destroy=function(){$(window).off(this.origin.eventNamespace);this.mediaOverlayElement.off(this.origin.
eventNamespace);this.galleryElement.off(this.origin.eventNamespace);this.thumbnailElement.off(this.origin.eventNamespace);this.hammerManager&&this.hammerManager.destroy();this.videos.destroy();this.gallery.destroy();this.thumbnails.destroy()},n}();n.MediaOverlayController=i;DependencySystem.define(i).as(DS.Controller).andInject([DS.Origin,n.MediaOverlayService,n.MediaOverlayGalleryResizerFactory,n.MediaOverlayArrowsFactory,n.MediaOverlayVideosFactory,n.MediaOverlayGalleryFactory,n.MediaOverlayThumbnailsFactory,n.MediaOverlay3DGalleryFactory,n.MediaOverlayTeaser3DFactory,n.MediaOverlayIconButtonListsFactory])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="media-overlay",t.query=".media-overlay, .media-dialog",t.controller=n.MediaOverlayController,t}();n.MediaOverlayComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.teaser=n;this.addFunctionalAccordionEvents(this.teaser)}return n.
prototype.addFunctionalAccordionEvents=function(){var n=this;this.teaser.hasClass("functional-accordion")&&(this.currentTeasertooltip=$(this.teaser).find(".teasertooltip"),this.teaser.hover(function(){n.currentTeasertooltip.removeClass("hide");var t=$(".inner-container").offset().left+parseInt($(".inner-container").css("width")),i=n.currentTeasertooltip.offset().left+parseInt(n.currentTeasertooltip.css("width"));t-60<i&&n.currentTeasertooltip.css("right","0px")},function(){n.currentTeasertooltip.addClass("hide")}),setTimeout(function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged)},50))},n}();n.TeaserHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){var n=$(".teaser"),t;n.each(function(n,t){new PageElements.TeaserHandler($(t))});t=_.debounce(function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged)},500);n.each(function(n,i){$(i).find("img").one("load",function(){t()})})}),function(n){var t=function(){function n(){$("body").on("click",".back-button",function(
n){var t=$(n.target);t.attr("href")||window.history.go(-1)})}return n}();n.BackButtonHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){new PageElements.BackButtonHandler}),function(n){var t=function(){function n(n){var t=this;this.contentContainer=n.children(".content");this.navigationContainer=n.children(".navigation");n.find(".navigation-item").on("click",function(n){t.handleNavigationItemClick($(n.target))})}return n.prototype.handleNavigationItemClick=function(n){this.navigationContainer.find(".navigation-item.active").removeClass("active");n.addClass("active");this.contentContainer.find(".block.active").removeClass("active");$("#"+n.data("target")).addClass("active")},n}();n.ContentSwitcherHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){$(".content-switcher").each(function(n,t){new PageElements.ContentSwitcherHandler($(t))})}),function(n){var t=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.
initializeInContext=function(n){var t=this,i,u,r;this.radioGroupAccordion=n.find(".radiogroup-accordion");r=200;eventAggregator.subscribe(Common.EventNames.AddressCountryChanged,this.checkDeliverTo.bind(this));this.radioGroupAccordion.children().children(":not(.radio-item-accordion)").find("input[type = radio]").each(function(n,f){var e=$(f);e.on("change",function(n){var e=$(n.target),h=t.radioGroupAccordion.find("label.active"),c=t.radioGroupAccordion.find(".radio-item-accordion.active"),f,s,o;c.velocity("slideUp",{duration:r,complete:function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged)}}).removeClass("active");h.removeClass("active");f=e.parent();u=t.escapeId(e.attr("id"));i=t.radioGroupAccordion.find("#radio-item-accordion"+u);i.velocity("slideDown",{duration:r,complete:function(){var n=e.parents().filter(".modal.in"),t;n.length>0&&n.css("margin-top")!=="0px"&&(t=n.height()/-2,n.velocity({"margin-top":t},{duration:r}));eventAggregator.publish(Common.EventNames.PageLayoutChanged)}}).addClass(
"active");f.addClass("active");s=setTimeout(function(){clearInterval(s);eventAggregator.publish(Common.EventNames.PageLayoutChanged)},70);f.hasClass("iframe-loader")&&(o=f.attr("ajaxtarget"),o&&buttonHandler.callIFrame(o))});e.prop("checked")&&(u=t.escapeId(e.attr("id")),i=t.radioGroupAccordion.find("#radio-item-accordion"+u),i.css("display","block"),i.velocity("slideDown",{duration:r,complete:function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged)}}),i.addClass("active"))})},n.prototype.escapeId=function(n){return n.replace(/(:|\.|\[|\])/g,"\\$1")},n.prototype.checkDeliverTo=function(n){var i=this.radioGroupAccordion.find(".invoice-address-radio-group"),f=i.find("label"),r=i.find("input"),e=i.find(".disabled-note"),u=this.radioGroupAccordion.find(".invoice-address-pickup-point-radio-group").closest(".radio-group-accordion-option-container"),t=this.radioGroupAccordion.find(".radio-group-accordion-option-container:not(.invoice-address-radio-group):not(.invoice-address-pickup-point-radio-group) > label").
first().find("input");_.isUndefined(n.deliveryAllowed)||(n.deliveryAllowed.toString().toLowerCase()==="true"?(f.removeClass("disabled"),r.removeAttr("disabled"),e.addClass("hidden")):(r.prop("checked")&&t&&t.click(),f.addClass("disabled"),r.attr("disabled","disabled"),e.removeClass("hidden")));_.isUndefined(n.invoicePickupPointAllowed)||(n.invoicePickupPointAllowed.toString().toLowerCase()==="true"?u.removeClass("hidden"):(u.find("label input").prop("checked")&&t&&t.click(),u.addClass("hidden")))},n}();n.RadioGroupAccordionHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){radioGroupAccordionHandler=new PageElements.RadioGroupAccordionHandler;componentManager.registerAndInitComponent(radioGroupAccordionHandler)}),function(n){var t=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){var i=200,t=n.find(".payment-types .payment-type"),r=function(n){sniff.isDesktop&&sniff.isSafari&&fixes.forceElementRepaint(
n)};typeof tooltipBoxHandler!="undefined"&&tooltipBoxHandler.initializeInContext(t);t.find(".description input:not(:disabled)").addClass("is-submittable");t.not(".selected").find(".is-submittable").prop("disabled",!0);t.each(function(n,u){var f=$(u);f.on("click",function(n){var u=$(n.currentTarget),f;u.hasClass("selected")||(u.find("input[type=radio]").prop("checked",!0),t.filter(".selected").removeClass("selected").find(".description").velocity("slideUp",{duration:i,queue:!1}).find(".is-submittable").prop("disabled",!0),u.addClass("selected").find(".description").velocity("slideDown",{duration:i,complete:function(){r(u)}}).find(".is-submittable").prop("disabled",!1),u.hasClass("iframe-loader")&&(f=u.attr("ajaxtarget"),f&&buttonHandler.callIFrame(f)))})});t.filter(".selected").find(".description").css("display","block")},n}();n.PaymentTypes=t}(PageElements||(PageElements={}));paymentTypesHandler=new PageElements.PaymentTypes;$(document).ready(function(){componentManager.registerAndInitComponent(paymentTypesHandler)}
),function(n){var t=function(){function n(n,t){this.origin=n;this.input=this.origin.contextQuery;this.mandatoryGroupService=t;this.label=this.input.find("label");this.initInput();this.addIpadFixes();this.modalInner=this.input.find(".modal-inner");this.inputsAndTextareas=this.input.find("input, textarea");this.groupName=this.inputsAndTextareas.data("mandatory-group");this.errorElement=this.input.find(".tooltip-target").closest(".error");this.addBindings();this.addEventBindings();this.mandatoryGroupElement=this.mandatoryGroupService.register(this.groupName,this.origin.id,this.inputsAndTextareas.val()!="");this.initPlaceholderToggling()}return n.prototype.postConstruct=function(){this.mandatoryGroupService.checkForFilledElements(this.groupName)},n.prototype.initInput=function(){this.initializeScaleBack();utils.disableElementFocusOnTabKey(this.input,".sbToggle, .sbSelector");this.fixTextareaValueForAllBrowsers()},n.prototype.addIpadFixes=function(){if(sniff.isIPad&&(typeof fixes.iPadPositionFixedWithKeyboard=="function"&&
fixes.iPadPositionFixedWithKeyboard(this.input.find("input")),sniff.isChrome))this.modalInner.on("click"+this.origin.eventNamespace+" blur"+this.origin.eventNamespace,"input",function(){_.delay(function(){$(document).scrollTop($(document).scrollTop())},250)})},n.prototype.initializeScaleBack=function(){var n=this;_.delay(function(){if(sniff.isHandheld&&!(sniff.isAndroid&&sniff.isSafari))n.inputsAndTextareas.on("blur"+n.origin.eventNamespace+" focus"+n.origin.eventNamespace,function(){modalManager.isModalOpen()||(utils.preventZoomingOnHandheld(),_.delay(function(){utils.enableZoomingOnHandheld()},1e3))});if(sniff.isAndroid)n.inputsAndTextareas.on("click"+n.origin.eventNamespace,function(n){_.delay(function(){$(".modal-scrollable").scrollTo(n.target);_.delay(function(){$(".modal-scrollable").scrollTop($(".modal-scrollable").scrollTop()-30)},20)},1e3)})},100)},n.prototype.fixTextareaValueForAllBrowsers=function(){var n=this.input.find("textarea");n.length&&n.each(function(n,t){$(t).val(t.defaultValue)})},n.prototype.
selectAndHideError=function(n){n.filter(this.input)&&(eventAggregator.publish(Common.EventNames.TooltipRemoveError,this.input),this.errorElement.removeClass("error"))},n.prototype.addBindings=function(){var n=this;if(this.groupName)this.inputsAndTextareas.on("keyup"+this.origin.eventNamespace+" change"+this.origin.eventNamespace+" paste"+this.origin.eventNamespace,function(){n.mandatoryGroupService.checkChangedInput(n.inputsAndTextareas.val(),n.mandatoryGroupElement)})},n.prototype.addEventBindings=function(){var n=this;this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.HideErrors,callback:function(t){n.selectAndHideError(t)}},{message:Common.EventNames.MandatoryGroupFieldTriggerUpdate,callback:function(t){n.inputsAndTextareas.data("mandatory-group")==t.groupName&&(n.label.toggleClass("mandatory-by-group",t.isMandatory),t.isMandatory||n.selectAndHideError(n.input))}}])},n.prototype.initPlaceholderToggling=function(){var n=this,t;if(this.input.hasClass("replace-placeholder")){t=this.
inputsAndTextareas.attr("placeholder");this.inputsAndTextareas.on("focus"+this.origin.eventNamespace,function(){n.inputsAndTextareas.attr("placeholder","")}).on("blur"+this.origin.eventNamespace,function(){n.inputsAndTextareas.attr("placeholder",t)})}else return},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions);this.modalInner.off(this.origin.eventNamespace);this.inputsAndTextareas.off(this.origin.eventNamespace);this.groupName&&eventAggregator.publish(Common.EventNames.MandatoryGroupFieldCleanUp,this.mandatoryGroupElement)},n}();n.InputController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.MandatoryGroupService])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="input-element",t.query=".input-element",t.controller=n.InputController,t}();n.InputComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;
this.dropdown=this.origin.contextQuery;this.mandatoryGroupService=t;this.label=this.dropdown.find("label");this.selectElement=this.dropdown.find(".selectbox");this.errorElement=this.dropdown.find(".tooltip-target").closest(".error");this.addBindings();this.addEventBindings();this.groupName=this.selectElement.data("mandatory-group");this.mandatoryGroupElement=this.mandatoryGroupService.register(this.groupName,this.origin.id,this.dropdownIsSet)}return n.prototype.postConstruct=function(){this.mandatoryGroupService.checkForFilledElements(this.groupName)},Object.defineProperty(n.prototype,"dropdownIsSet",{get:function(){return!!this.selectElement.find("option:selected").attr("value")},enumerable:!0,configurable:!0}),n.prototype.addBindings=function(){var n=this;this.selectElement.on("change"+this.origin.eventNamespace,function(){n.groupName&&n.mandatoryGroupService.checkChangedInput(n.selectElement.find("option:selected").attr("value"),n.mandatoryGroupElement)})},n.prototype.addEventBindings=function(){var n=this;
this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.HideErrors,callback:function(t){n.selectAndHideError(t)}},{message:Common.EventNames.MandatoryGroupFieldTriggerUpdate,callback:function(t){n.selectElement.data("mandatory-group")==t.groupName&&(n.label.toggleClass("mandatory-by-group",t.isMandatory),t.isMandatory||n.selectAndHideError(n.dropdown))}}])},n.prototype.selectAndHideError=function(n){n.filter(this.dropdown)&&(eventAggregator.publish(Common.EventNames.TooltipRemoveError,this.dropdown),this.errorElement.removeClass("error"))},n.prototype.destroy=function(){_.isUndefined(this.groupName)||(eventAggregator.publish(Common.EventNames.MandatoryGroupFieldCleanUp,this.mandatoryGroupElement),this.selectElement.off(this.origin.eventNamespace));eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.DropdownController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.MandatoryGroupService])}(PageElements||(PageElements={})),function(n){var t=function(
){function t(){}return t.componentName="dropdown",t.query=".dropdown",t.controller=n.DropdownController,t}();n.DropdownComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){this.relatedContainerIds=[];this.selectedContainerIds=[];this.selectedScopes=[]}return n}();n.CustomertypeData=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){}return n.prototype.updateLabels=function(n,t){var i=n.find(".scoped");i.removeClass("show").each(function(n,i){var r=$(i),u=r.data("scope");t.indexOf(u)!=-1&&r.addClass("show")})},n}();n.ScopedInput=t;DependencySystem.define(t).as(DS.Factory)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.container=n.contextQuery;this.containerId=this.container.attr("id");this.scopedInputService=t;this.subscribeCustomerTypeOptionSelectedEvent()}return n.prototype.subscribeCustomerTypeOptionSelectedEvent=function(){var
n=this;this.customertypeOptionSelectedEvent=eventAggregator.subscribe(Common.EventNames.CustomertypeOptionSelected,function(t){t.relatedContainerIds.indexOf(n.containerId)!==-1&&n.updateContainer(t)})},n.prototype.updateContainer=function(n){this.updateAfterFirstEventExecution&&this.resetErrors();this.updateContainerVisibility(n.selectedContainerIds);this.scopedInputService.updateLabels(this.container,n.selectedScopes);var t={container:this.container,scopes:n.selectedScopes};eventAggregator.publish(Common.EventNames.TooltipUpdateScope,t);this.updateAfterFirstEventExecution=!0},n.prototype.resetErrors=function(){eventAggregator.publish(Common.EventNames.TooltipRemoveError,this.container);this.container.find(".tooltip-target").each(function(n,t){var i=$(t),r=i.closest(".error");r.removeClass("error")})},n.prototype.updateContainerVisibility=function(n){n.indexOf(this.containerId)==-1?this.container.removeClass("show"):this.container.addClass("show")},n.prototype.destroy=function(){eventAggregator.unSubscribe(Common.
EventNames.CustomertypeOptionSelected,this.customertypeOptionSelectedEvent)},n}();n.CustomertypeContainerController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.ScopedInput])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="customertype-container",t.query=".customertype-container",t.controller=n.CustomertypeContainerController,t}();n.CustomertypeContainerComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.eventNamespace=n.eventNamespace;this.customertypeSelect=n.contextQuery;this.customertypeData=t;this.optionGroup=this.customertypeSelect.find(".customertype-option");this.getAssociatedContainerIds();this.updateCustomerTypeData();this.toggleContainers();this.initializeChangeEvent()}return n.prototype.initializeChangeEvent=function(){var n=this;this.customertypeSelect.on("change"+this.eventNamespace,".customertype-option",function(){n.updateCustomerTypeData(
);n.toggleContainers()})},n.prototype.getAssociatedContainerIds=function(){var n=this;this.optionGroup.each(function(t,i){var r=$(i);n.customertypeData.relatedContainerIds=n.customertypeData.relatedContainerIds.concat(r.data("containerids").split(","))})},n.prototype.updateCustomerTypeData=function(){var n=this.optionGroup.filter(":checked");_.isUndefined(n)&&(n=this.optionGroup.last(),n.prop("checked",!0));this.customertypeData.selectedContainerIds=n.data("containerids").split(",");this.customertypeData.selectedScopes=n.data("scope").split(",")},n.prototype.toggleContainers=function(){eventAggregator.publish(Common.EventNames.CustomertypeOptionSelected,this.customertypeData)},n.prototype.destroy=function(){this.customertypeSelect.off(this.eventNamespace)},n}();n.CustomertypeSelectController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.CustomertypeData])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="customertype-select",t.query=".customertype-select",
t.controller=n.CustomertypeSelectController,t}();n.CustomertypeSelectComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){var i=this,t;this.slideDuration=500;this.bottomSlider=n;this.closeAreas=this.bottomSlider.find('area[href="#close"]');this.contentArea=this.bottomSlider.find(".innercontent");this.openButton=this.bottomSlider.find(".opener img");this.openDivElement=this.bottomSlider.find(".opener");this.closeButton=this.bottomSlider.find(".closer img");this.closeDivElement=this.bottomSlider.find(".closer");this.previewTime=parseInt(this.bottomSlider.data("previewtime"));this.shouldOpenByHover=!0;this.isOpen=!1;utils.getBoolean(this.bottomSlider.data("hover"))&&this.initializeOpenHoverEvent();this.openButton.on("click",function(){i.openBottomSlider()});this.closeButton.on("click",function(){i.closeBottomSlider()});this.closeAreas.on("click",function(){i.closeBottomSlider()});this.addHoverEffects();this.previewTime&&this.bottomSlider.
attr("id")&&!this.hasSeenHeader()?(t=this,t.openBottomSlider(function(){setTimeout(function(){t.closeBottomSlider()},t.previewTime)})):this.openButton.removeClass("hidden")}return n.prototype.addHoverEffects=function(){var n=this,r=this.openDivElement.data("imgsrc"),t=this.openDivElement.data("hover-imgsrc"),u=this.closeDivElement.data("imgsrc"),i=this.closeDivElement.data("hover-imgsrc");if(t!=undefined){this.openButton.on("mouseover",function(){n.openButton.attr("src",t)});this.openButton.on("mouseout",function(){n.openButton.attr("src",r)})}if(i!=undefined){this.closeButton.on("mouseover",function(){n.closeButton.attr("src",i)});this.closeButton.on("mouseout",function(){n.closeButton.attr("src",u)})}},n.prototype.openBottomSlider=function(n){var t=this;n===void 0&&(n=function(){});this.isOpen=!0;this.shouldOpenByHover=!1;this.openButton.css({bottom:0}).velocity("stop").velocity({bottom:-this.openButton.height(),opacity:0},{duration:this.slideDuration,complete:function(){t.openButton.addClass("hidden")}});this.
showContentArea(n)},n.prototype.showContentArea=function(n){var t=this;this.contentArea.css({marginBottom:-1e3,opacity:0}).removeClass("hidden");this.contentArea.css({"margin-bottom":-this.contentArea.height()});this.contentArea.velocity("stop").velocity({marginBottom:0,opacity:1},{duration:this.slideDuration,complete:function(){t.reInitImagemap();n()}})},n.prototype.reInitImagemap=function(){var n=this.bottomSlider.find(".imagemap");n!=undefined&&imageMapHandler.activateResizeableImageMap(n)},n.prototype.hideContentArea=function(){var n=this;this.contentArea.css({marginBottom:0}).velocity("stop").velocity({marginBottom:-this.contentArea.height(),opacity:0},{duration:this.slideDuration,complete:function(){n.contentArea.addClass("hidden")}})},n.prototype.closeBottomSlider=function(){var n=this,t;this.isOpen&&(t=function(){n.isOpen=!1;_.delay(function(){n.shouldOpenByHover=!0},300)},this.hideContentArea(),this.openButton.css({bottom:-1e3,opacity:0}).removeClass("hidden"),this.openButton.css({bottom:-this.openButton.
height()}).velocity("stop").velocity({bottom:0,opacity:1},{duration:this.slideDuration,complete:function(){t()}}))},n.prototype.initializeOpenHoverEvent=function(){var n=this;this.openButton.mouseenter(function(t){n.shouldOpenByHover&&t.relatedTarget!=null&&n.openBottomSlider()})},n.prototype.hasSeenHeader=function(){var n=this.bottomSlider.attr("id"),t,i,r;if(n==undefined||modalManager.containsAutoOpenModals())return!0;t=amplify.store();i=!1;for(r in t)if(t[r]==n){i=!0;break}return i?!0:(amplify.store(n,n),!1)},n}();n.BottomSliderHandler=t}(PageElements||(PageElements={}));bottomSliderHandlers=[];$(document).ready(function(){$(".bottom-slider").each(function(n,t){bottomSliderHandlers.push(new PageElements.BottomSliderHandler($(t)))})}),function(n){var i=Common.ElementRepository,t=function(){function n(n,t){var i,r;this.handheldHideDelay=2e3;this.subscriptions=[];this.origin=n;this.sizesElement=n.contextQuery;this.elementRepository=t;this.fitAccuracyElement=this.sizesElement.find(".fit-accuracy");this.setSizeWidth(
this.sizesElement.find(".sizegroups.selected"));i=this.sizesElement.find(".size.selected");this.setFitAccuracy(i.data("scale-index"),i.data("pos"));r=this.sizesElement.closest("[data-guid-for-sizes]");this.guid=r.length?r.data("guid-for-sizes"):"";this.bindEvents()}return n.prototype.postconstruct=function(){this.showHideFittingAccuracy()},n.prototype.setSizeWidth=function(n){var t=n.find(".size"),i=t.clone(),u=t.first().css("font-size"),r;i.css({visibility:"hidden",width:"",float:"left",fontSize:u}).appendTo(this.elementRepository.body());r=Math.max.apply(Math,i.map(function(n,t){return $(t).width()}));i.remove();t.width(r)},n.prototype.setFitAccuracy=function(n,t){var i=this.sizesElement.find(".fit-accuracy-scale"),r=i.width()*n+i.width()*t;this.fitAccuracyElement.find(".marker").css("margin-left",r)},n.prototype.bindEvents=function(){sniff.isHandheld?this.bindHandheldEvents():this.bindDesktopEvents()},n.prototype.bindDesktopEvents=function(){var n=this,t=".size:not(.notavailable)";this.sizesElement.on("mouseenter."+
this.origin.eventNamespace,t,function(t){n.showFittingAccuracy($(t.currentTarget))}).on("mouseleave."+this.origin.eventNamespace,t,function(t){n.hideFittingAccuracy($(t.currentTarget))})},n.prototype.bindHandheldEvents=function(){var n=this;this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleDetailsSizesFadeInAndOutFittingAccuracy,callback:this.showFittingAccuracyHandheld.bind(this)},{message:Common.EventNames.ShortlistUpdatedItem,callback:this.showFittingAccuracyHandheld.bind(this)}]);this.sizesElement.on("click."+this.origin.eventNamespace,".size.selected",function(){n.showHideFittingAccuracy()})},n.prototype.showFittingAccuracyHandheld=function(n){this.guid===n&&this.showHideFittingAccuracy()},n.prototype.showHideFittingAccuracy=function(){var t=this,n=this.sizesElement.find(".size.selected");this.showFittingAccuracy(n,0);_.delay(function(){t.hideFittingAccuracy(n,!0)},this.handheldHideDelay)},n.prototype.showFittingAccuracy=function(n,t){var i=this;t===void 0&&(t=500);n.
data("timeout",setTimeout(function(){var t=n.data("pos");_.isUndefined(t)||(i.setFitAccuracy(n.data("scale-index"),t),i.fitAccuracyElement.css({opacity:"0",display:"block"}).fadeTo(300,1))},t))},n.prototype.hideFittingAccuracy=function(n,t){var i=this;clearTimeout(n.data("timeout"));t?this.fitAccuracyElement.fadeTo(300,0,function(){i.fitAccuracyElement.css("display","none")}):this.fitAccuracyElement.css("display","none")},n.prototype.destroy=function(){this.sizesElement.off(this.origin.eventNamespace);eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.SizesController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,i])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="sizes",t.query=".sizes",t.controller=n.SizesController,t}();n.SizesComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var i=function(){function n(n){this.selector=n}return n.prototype.initialize=function(){this.initializeInContext(
$("body"))},n.prototype.initializeInContext=function(n){n.find(this.selector).each(function(n,i){new t($(i))})},n}(),t;n.SelectBoxHandler=i;t=function(){function n(n){this.selectbox=n;this.initSelectbox()}return n.prototype.initSelectbox=function(){var n=this;this.selectbox.selectbox({onChange:function(t){n.selectbox.find("option").each(function(i,r){var u=$(r);n.escapeValueLikeSelectboxScriptDoes(u.attr("value"))!=t?u.removeAttr("selected"):(u.attr("selected","selected"),u.change());eventAggregator.publish(Common.EventNames.TooltipHideAll,n.selectbox)})},onClose:function(){sniff.isHandheld&&fixes.forceElementRepaint(n.selectbox.parent())}});this.selectbox.data("disabled")&&utils.getBoolean(this.selectbox.data("disabled"))&&this.selectbox.selectbox("disable")},n.prototype.escapeValueLikeSelectboxScriptDoes=function(n){return n?n.replace(/\'/g,"\\'"):n},n}()}(PageElements||(PageElements={}));selectBoxHandler=new PageElements.SelectBoxHandler('.selectbox:not(".typeahead")');componentManager.registerAndInitComponent(
selectBoxHandler),function(n){var t=function(){function t(n){this.ajax=DependencySystem.resolve(WebData.Ajax);this.swiperElement=n;this.swiperContainer=this.swiperElement.find(".swiper-container");this.currentArticlePrice=this.swiperElement.find(".current-article-price");this.initCarousel();this.loadAjaxContent();this.pauseOnHover()}return t.prototype.initCarousel=function(){var n=this.swiperElement.find(".swiper-slide"),t=3,i=!1,r;n.length<3&&(t=1);n.length===2&&this.swiperElement.addClass("one-per-view");r=n.length!==1;n.length===1&&(i=!0,LifeCycleSystem.html(this.currentArticlePrice,n.find(".articeldetails").html()));var u={loop:r,speed:800,slidesPerView:t,centeredSlides:!0,noSwiping:i,autoplay:4800,autoHeight:!0,loopAdditionalSlides:1,autoplayDisableOnInteraction:!1,freeMode:!1,preloadImages:!0,setWrapperSize:!0,onSlideChangeStart:this.changeArticle.bind(this),onInit:this.onInit.bind(this),onImagesReady:this.onImagesReady.bind(this),width:this.swiperContainer.width(),height:this.swiperContainer.height()},
f=this.swiperContainer.closest(".carousel-crossselling"),e=f.find(".arrow.arrow-left"),o=f.find(".arrow.arrow-right");e.length&&o.length&&$.extend(u,{nextButton:o,prevButton:e});this.swiper=new Swiper(this.swiperContainer,u);this.swiperElement.removeClass("display-none")},t.prototype.initializeFreezer=function(){var n=this;this.freezer=Common.Freezer.createInstance();this.freezer.introduce(this.swiperElement,function(){n.pause()},function(){n.start()},function(){return n.swiper.autoplaying||n.isHovered})},t.prototype.pauseOnHover=function(){var n=this;this.swiperElement.on("mouseover.carousel-crossselling",function(){n.pause()}).on("mouseleave.carousel-crossselling",function(){n.start()})},Object.defineProperty(t.prototype,"isHovered",{get:function(){return this.swiperElement.is(":hover")},enumerable:!0,configurable:!0}),t.prototype.onInit=function(t){t.update();this.initializeFreezer();DependencySystem.resolveInContext(n.PriceModeDependantElementComponent,this.swiperContainer)},t.prototype.onImagesReady=function(
n){n.update()},t.prototype.changeArticle=function(t){this.currentArticlePrice.html("");var i;_.isUndefined(t)?_.isUndefined(this.swiper)||(i=this.swiper):i=t;LifeCycleSystem.html(this.currentArticlePrice,$(i.slides[i.activeIndex]).find(".articeldetails").html());DependencySystem.resolveInContext(n.PriceModeDependantElementComponent,this.currentArticlePrice)},t.prototype.loadAjaxContent=function(){var t=this,i=this.swiperContainer.data("ajaxtarget");this.swiperContainer.data("ajaxtarget","");i&&this.ajax.get({url:i}).then(function(i){var u=ajaxDomHelper.getNamedObjectValueFromArray("carousel",i),r=$(u).find(".swiper-container").html();r&&(t.swiper.destroy(!0,!1),t.swiperContainer.html(r),t.initCarousel());DependencySystem.resolveInContext(n.PriceModeDependantElementComponent,t.swiperContainer)})},t.prototype.equals=function(n){return this.swiper===n},t.prototype.pause=function(){this.swiper.stopAutoplay()},t.prototype.start=function(){this.freezer.isFrozen||this.swiper.startAutoplay()},t.prototype.update=function(
){this.swiper.update()},t.prototype.destroy=function(){this.swiper.destroy(!0,!1);this.freezer.destroy()},t}(),i;n.CarouselCrossselling=t;i=function(){function n(){this.swiperSelector=".carousel-crossselling";this.swipers=[];this.shopcontentSelector=".shopcontent";this.swiperContainerSelector=".swiper-container";this.shopcontent=$(this.shopcontentSelector);this.initialize()}return n.prototype.initialize=function(){this.initializeInContext(this.shopcontent)},n.prototype.initializeInContext=function(n){var i=this;n.find($(this.swiperSelector)).each(function(n,r){var u=$(r);_.isUndefined(u.find(i.swiperContainerSelector)[0].swiper)&&i.swipers.push(new t(u))})},n.prototype.resizeFixSwiper=function(n){_.isUndefined(n)||$.each(this.swipers,function(t,i){i.equals(n)&&i.update()})},n.prototype.resizeFixSwipers=function(){$.each(this.swipers,function(n,t){t.update()})},n.prototype.pauseSwiper=function(n){_.isUndefined(n)||$.each(this.swipers,function(t,i){i.equals(n)&&i.pause()})},n.prototype.pauseSwipers=function(){$.
each(this.swipers,function(n,t){t.pause()})},n.prototype.stopAll=function(){var n=this;$.each(this.swipers,function(t,i){i.pause();n.shopcontent.off("mouseover.carousel-crossselling").off("mouseleave.carousel-crossselling")})},n.prototype.startSwiper=function(n){_.isUndefined(n)||$.each(this.swipers,function(t,i){i.equals(n)&&i.start()})},n.prototype.startAll=function(){$.each(this.swipers,function(n,t){t.start()})},n.prototype.clearAll=function(){var n=this;$.each(this.swipers,function(n,t){t.destroy()});$.each(this.swipers,function(){n.swipers.pop()})},n.prototype.clearSingle=function(n){var r=this,i=n[0].swiper,t;_.isUndefined(i)||(t=[],$.each(this.swipers,function(n,r){r.equals(i)&&(r.destroy(),t.push(n))}),$.each(t,function(n,t){r.swipers.splice(t,1)}))},n}();n.CarouselCrosssellingHandler=i}(PageElements||(PageElements={}));$().ready(function(){carouselCrosssellingHandler=new PageElements.CarouselCrosssellingHandler}),function(n){var t=function(){function n(){if(this.appShellSubscriptions=[{topic:"AAS.updateFinished",
callback:this.initOrderModalLinks,signature:"AlternativeArticlesUpdater"}],n.instance)throw new Error("Instantiation of AlternativeArticles failed: Use AlternativeArticles.getInstance() instead of new AlternativeArticles()");this.setUpSubscriptions();this.setUpSubscriptionsAppShell()}return n.getInstance=function(){return n.instance||(this.instance=new n),n.instance},n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.triggerAasUpdate.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.triggerAasUpdate.bind(this)}])},n.prototype.setUpSubscriptionsAppShell=function(){this.appShellSubscriptions.forEach(function(n){window.shell.subscribeTo(n.topic,n.callback,n.signature)})},n.prototype.initOrderModalLinks=function(n){modalManager.initializeInContext($(n.detail.queryString))},n.prototype.triggerAasUpdate=function(n){var t,r,i,u;$(".articledetails.modal-order").length||(
t=n.savKey,t)&&(r=$(".articledetails:not(.modal-order)"),i=this.getCurrentSavKeyFrom(r),i)&&(u={detail:{savKeyToReplace:i,savKeyToLoad:t}},window.shell.publishTo("AAS.update",u))},n.prototype.getCurrentSavKeyFrom=function(n){var i=n.find(".scope-aas"),t;return i.length?(t=i.data("sav-key"),t?t:""):""},n.prototype.destroy=function(){this.appShellSubscriptions.forEach(function(n){window.shell.unsubscribeFrom(n.topic,n.signature)})},n}();n.AlternativeArticlesUpdater=t;DependencySystem.when([Common.FeatureToggle.ShowAlternativeArticles]).define(t).as(DS.Singleton)}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(){}return n.prototype.processTemplates=function(n){var t=$(ajaxDomHelper.getNamedObjectValueFromArray("article-details",n));return{classification:t.attr("class"),crossSelling:this.queryAndTransform(".cross-selling.details",t),mixAndMatchCrossSelling:this.queryAndTransform(".cross-selling.mix-and-match",t),details:this.queryAndTransform(".product-details",t),additionalDescription:
this.queryAndTransform(".article-additional-description",t),gallery:this.queryAndTransform(".gallery-container",t),mixAndMatchTab:this.queryAndTransform(".tab-pane.mix-and-match",t),mixAndMatchOpener:this.queryAndTransform(".mix-and-match-opener",t),onlineCatalog:this.queryAndTransform(".onlinekat-container.details",t),mixAndMatchOnlineCatalog:this.queryAndTransform(".onlinekat-container.mix-and-match",t),poster3D:this.queryAndTransform(".poster-3D",t),priceBlock:this.queryAndTransform(".priceblock",t),saleImage:this.queryAndTransform(".saleimage",t),selection:this.queryAndTransform(".articlesummary",t),medialinks:this.queryAndTransform(".linklist-detailpage",t),descriptionTabs:this.queryAndTransform('.article-description-tabs ul[role="tablist"]',t),productAdditionalModules:this.queryAndTransform(".product-additional-modules",t)}},n.prototype.queryAndTransform=function(n,t){return t.find(n).not(":white-spaces-only").html()||""},n}();n.ArticleProcessor=t}(ArticleTemplates||(ArticleTemplates={})),function(n){var
t=function(){function n(){}return n.prototype.getAjax=function(){return DependencySystem.resolve(WebData.Ajax)},n.prototype.getArticleTemplatesFrom=function(n){return this.getAjax().get({url:n})},n.prototype.getMixAndMatchFrom=function(n){return this.getAjax().getJsonp({url:n,jsonpCallback:utils.generateJsonpCallbackFunctionName(n,["IsHandheld","IsLowendDevice"]),cache:!0})},n.prototype.saveTabState=function(n){return this.getAjax().post({url:n})},n}();n.Ajax=t}(ArticleTemplates||(ArticleTemplates={})),function(n){function f(n){i.getArticleTemplatesFrom(n.ajax).then(function(i){var u=r.processTemplates(i);t[n.articleNo]=$.extend({},t[n.articleNo],u,n);eventAggregator.publish(Common.EventNames.ArticleTemplatesUpdatedVat,n)})}function e(n){i.getArticleTemplatesFrom(n.ajax).then(function(i){var u=r.processTemplates(i);t[n.articleNo]=$.extend({},t[n.articleNo],u,n);eventAggregator.publish(Common.EventNames.ArticleTemplatesUpdatedSizes,n)})}function o(n){i.getArticleTemplatesFrom(n.ajax).then(function(i){var u=r.processTemplates(
i);t[n.articleNo]=$.extend({},t[n.articleNo],u,n);eventAggregator.publish(Common.EventNames.ArticleTemplatesUpdatedArticle,n)})}function s(n){return $.extend({},t[n])}function h(){return u++}var u=0,t={},i=new n.Ajax,r=new n.ArticleProcessor;eventAggregator.subscribe(Common.EventNames.ArticleTemplatesUpdateVat,f);eventAggregator.subscribe(Common.EventNames.ArticleTemplatesUpdateSizes,e);eventAggregator.subscribe(Common.EventNames.ArticleTemplatesUpdateArticle,o);n.getTemplatesFor=s;n.getNextArticleNumber=h}(ArticleTemplates||(ArticleTemplates={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".cross-selling.details");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildCrossSelling.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedVat,callback:this.rebuildCrossSelling.bind(this)},{message:Common.EventNames.
ArticleTemplatesUpdatedSizes,callback:this.rebuildCrossSelling.bind(this)},{message:Common.EventNames.ArticleTemplatesDescriptionShownTab,callback:this.toggleAutoplay.bind(this)}])},n.prototype.rebuildCrossSelling=function(n){var i=n.articleNo,t;this.articleNo===i&&(this.clearSwipers(),t=ArticleTemplates.getTemplatesFor(i).crossSelling,this.domContext.html(t),t?this.domContext.removeClass("empty-template"):this.domContext.addClass("empty-template"),initTabsHandler||carouselCrosssellingHandler)&&(DependencySystem.resolveInContext(PageElements.PriceModeDependantElementComponent,this.domContext),initTabsHandler.initializeInContext(this.domContext),carouselCrosssellingHandler.initializeInContext(this.domContext))},n.prototype.clearSwipers=function(){carouselCrosssellingHandler&&this.domContext.find(".swiper-container").each(function(n,t){carouselCrosssellingHandler.clearSingle($(t))})},n.prototype.toggleAutoplay=function(){this.domContext.closest(".tab-pane.active").length?this.resumeCrossSelling():this.pauseCrossSelling(
)},n.prototype.pauseCrossSelling=function(){carouselCrosssellingHandler&&this.domContext.find(".swiper-container").each(function(n,t){var i=$(t)[0].swiper;carouselCrosssellingHandler.pauseSwiper(i)})},n.prototype.resumeCrossSelling=function(){carouselCrosssellingHandler&&this.domContext.find(".swiper-container").each(function(n,t){var i=$(t)[0].swiper;carouselCrosssellingHandler.resizeFixSwiper(i);carouselCrosssellingHandler.startSwiper(i)})},n.prototype.destroy=function(){this.clearSwipers();eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.CrossSelling=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".product-details");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildDetails.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.rebuildDetails.
bind(this)}])},n.prototype.rebuildDetails=function(n){var t=n.articleNo,i,r;this.articleNo===t&&(i=ArticleTemplates.getTemplatesFor(t).details,this.domContext.html(i),r=new PageElements.InitTabsHandler,r.initialize())},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.Details=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.parentDomContext=n;this.additionalDescriptionDomContext=n.find(".article-additional-description");this.additionalModuleDomContext=n.find(".product-additional-modules");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildAdditionalDescription.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.rebuildAdditionalDescription.bind(this)}])},n.prototype.rebuildAdditionalDescription=function(n){var t=n.articleNo;
if(this.articleNo===t){var i=ArticleTemplates.getTemplatesFor(t).additionalDescription,r=ArticleTemplates.getTemplatesFor(t).productAdditionalModules,u=!i.length&&this.additionalDescriptionDomContext.length>0,f=i.length&&!this.additionalDescriptionDomContext.length;if(u){this.removeNodesFromDom();return}f&&this.addNodesToDom(r.length>0);this.additionalDescriptionDomContext.html(i);this.additionalModuleDomContext.html(r);DependencySystem.resolveAllComponents(this.additionalDescriptionDomContext);DependencySystem.resolveAllComponents(this.additionalModuleDomContext)}},n.prototype.removeNodesFromDom=function(){this.additionalDescriptionDomContext.remove();this.additionalDescriptionDomContext=$();this.additionalModuleDomContext.remove();this.additionalModuleDomContext=$()},n.prototype.addNodesToDom=function(n){this.additionalDescriptionDomContext=$('<div class="custom-row cols-1 article-additional-description"/>');this.parentDomContext.append(this.additionalDescriptionDomContext);n&&(this.additionalModuleDomContext=
$('<div class="custom-row cols-2 product-additional-modules"/>'),this.parentDomContext.append(this.additionalModuleDomContext))},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.AdditionalDescription=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n){var i=n.find(".scope-aas"),t;this.savKey=i.attr("data-sav-key");this.compareDetailButton=n.find(".aas-compare-detail-btn");t=!!n.findIncludingSelf('.scope-aas[data-content="full"]').length;t&&(this.triggerFullContextAjaxLoad(),this.bindEvent(),this.compareDetailButton.removeClass("hidden"))}return n.prototype.triggerFullContextAjaxLoad=function(){var n={detail:{savKeyToReplace:this.savKey,savKeyToLoad:this.savKey,content:"full"}};window.shell.publishTo("AAS.update",n)},n.prototype.bindEvent=function(){if(this.compareDetailButton.length)this.compareDetailButton.on("click",function(){eventAggregator.publish(Common.EventNames.ArticleTemplatesDescriptionSwitchTab,"alternative-articles")})},
n.prototype.destroy=function(){},n}();n.AlternativeArticles=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".gallery-container");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildGallery.bind(this)}])},n.prototype.rebuildGallery=function(n){var t=n.articleNo,i;this.articleNo===t&&(i=ArticleTemplates.getTemplatesFor(t).gallery,LifeCycleSystem.html(this.domContext,i).then(function(){PageElements.Gallery3DHandler.initializeAll()}))},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.GallerySection=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".linklist-detailpage");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.
subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildMedialinks.bind(this)}])},n.prototype.rebuildMedialinks=function(n){var t=n.articleNo,i;this.articleNo===t&&(i=ArticleTemplates.getTemplatesFor(t).medialinks,LifeCycleSystem.html(this.domContext,i),linklistHandler.initializeInContext(this.domContext),modalManager.initializeInContext(this.domContext))},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.Medialinks=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".mix-and-match-opener");this.articleNo=t;this.setUpSubscriptions();this.domContext.on("click",this.switchToMixAndMatch)}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildOpener.bind(this)},{message:Common.EventNames.ArticleTemplatesMixAndMatchInitialized,callback:this.showOpener.
bind(this)},{message:Common.EventNames.ArticleTemplatesMixAndMatchDisable,callback:this.hideOpener.bind(this)}])},n.prototype.rebuildOpener=function(n){var i=n.articleNo,t;this.articleNo===i&&(t=ArticleTemplates.getTemplatesFor(i).mixAndMatchOpener,this.domContext.html(t),t?this.domContext.removeClass("empty-template"):this.domContext.addClass("empty-template"))},n.prototype.showOpener=function(){this.domContext.show()},n.prototype.hideOpener=function(){this.domContext.hide()},n.prototype.switchToMixAndMatch=function(n){var t=$(n.currentTarget).data("reference-tab");eventAggregator.publish(Common.EventNames.ArticleTemplatesDescriptionSwitchTab,t)},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.MixAndMatchOpener=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function t(n,t){this.ajax=new ArticleTemplates.Ajax;this.domContext=n.findIncludingSelf(".tab-pane.mix-and-match");this.articleNo=t;this.isFadeAnimated=this.domContext.hasClass("fade");this.
setUpSubscriptions();this.setUpMixAndMatch()}return t.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildMixAndMatch.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.rebuildMixAndMatch.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedVat,callback:this.rebuildMixAndMatch.bind(this)}])},t.prototype.setUpMixAndMatch=function(){var n=this;this.mixAndMatchElements=[];this.mixAndMatchContainer=this.domContext.find(".mix-and-match-container");this.mixAndMatchContainer.each(function(t,i){n.setupMixAndMatchContainer(i)})},t.prototype.setupMixAndMatchContainer=function(t){var i=$(t),r=i.data("ajaxtarget"),u;r?this.setupMixAndMatchAjaxCall(i,r):(u=this.domContext.find(".mix-and-match-special-items").detach(),this.mixAndMatchElements.push(new n.MixAndMatchElement(i,u,this.articleNo)))},t.prototype.setupMixAndMatchAjaxCall=function(n,t){var i=this;this.ajax.
getMixAndMatchFrom(t).then(function(t){if(!t.length){i.disableMixAndMatchTab(n);return}i.processMixAndMatchAjaxResponse(t,n)},function(){i.disableMixAndMatchTab(n)})},t.prototype.processMixAndMatchAjaxResponse=function(t,i){var e,c=ajaxDomHelper.getNamedObjectValueFromArray("onlinekat",t),o,s,r,h,u,f;for(c&&(e=$('<div class="onlinekat-container"/>').append(c)),o=$(ajaxDomHelper.getNamedObjectValueFromArray("mix-and-match-teasers",t)),s=!1,r=0;r<t.length;r++)if(h=t[r]["mix-and-match"],!_.isUndefined(h)){if(u=$(h),!u.find(".mix-and-match-items").length){this.disableMixAndMatchTab(i);return}f=this.domContext.find(".mix-and-match-special-items").detach();f.length||!(e||o)||s||(f=$('<div class="mix-and-match-special-items"/>').append(e,o),s=!0);i.before(u);this.mixAndMatchElements.push(new n.MixAndMatchElement(u,f,this.articleNo))}i.remove()},t.prototype.disableMixAndMatchTab=function(n){if(eventAggregator.publish(Common.EventNames.ArticleTemplatesMixAndMatchDisable,this.articleNo),this.isFadeAnimated)this.domContext.
one("webkitTransitionEnd transitionend",function(){n.remove()});else n.remove()},t.prototype.rebuildMixAndMatch=function(n){var t=n.articleNo,i;this.articleNo===t&&(this.removeMixAndMatchElements(),i=ArticleTemplates.getTemplatesFor(t).mixAndMatchTab,this.domContext.html(i),DependencySystem.resolveInContext(PageElements.PriceModeDependantElementComponent,this.domContext).andBindItToDom(),this.setUpMixAndMatch())},t.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions);this.removeMixAndMatchElements()},t.prototype.removeMixAndMatchElements=function(){for(var t,n=0;n<this.mixAndMatchElements.length;n++)t=this.mixAndMatchElements[n].destroy,typeof t=="function"&&t.call(this.mixAndMatchElements[n]),this.mixAndMatchElements[n]=undefined},t}();n.MixAndMatchTab=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function t(n,t,i){var r=this;this.pages=[];this.baseSelector=".mix-and-match";this.stampSelector=this.baseSelector+"-stamp";this.itemsContainerSelector=this.baseSelector+
"-items";this.itemsSelector=this.baseSelector+"-item";this.pagerSelector=this.baseSelector+"-pager";this.hiddenClassName="visually-hidden";this.paginationThreshold=15;this.controllers=[];this.mixAndMatchElement=n;this.specialItems=t;this.articleNo=i;this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesDescriptionShownTab,callback:this.shownTab.bind(this)}]);this.itemsContainer=this.mixAndMatchElement.find(this.itemsContainerSelector);this.items=this.itemsContainer.find(this.itemsSelector);this.pager=this.mixAndMatchElement.find(this.pagerSelector);this.loaderElement=this.mixAndMatchElement.find(".loading-indicator");this.initModalLinks();this.prepareDom();this.initIsotope().done(function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged);r.togglePaging();eventAggregator.publish(Common.EventNames.ArticleTemplatesMixAndMatchInitialized,r.articleNo)})}return t.prototype.shownTab=function(n){n==="mix-and-match"&&(this.itemsContainer.css("height","").isotope(
"layout"),this.setPagerTopPosition(),eventAggregator.unSubscribe(this.subscriptions[0].message,this.subscriptions[0].id))},t.prototype.initModalLinks=function(){modalManager&&modalManager.initializeInContext(this.mixAndMatchElement)},t.prototype.prepareDom=function(){this.prepareSpecialItems();this.prepareAdditional();this.preparePaging()},t.prototype.prepareSpecialItems=function(){if(this.getMixAndMatchCarousel(),this.specialItems.length){var n=this.specialItems.find(".onlinekat-container:not(.empty-template)"),t=this.specialItems.find(".cross-selling:not(.empty-template)"),i=this.specialItems.find(".mix-and-match-teaser:not(.empty-template)");this.injectOnlinekatOrActionImage(n);this.injectCarousel(t,n.length);this.injectTeaser(i)}},t.prototype.getMixAndMatchCarousel=function(){var n=this.mixAndMatchElement.find(".cross-selling.mix-and-match").detach();if(n.length){if(this.mixAndMatchElement.hasClass("additional")){eventAggregator.publish(Common.EventNames.DebugError,{message:"Carousel found in additional mix-and-match-element. Only the first mix-and-match-element supports carousel."});
return}this.specialItems.append(n)}},t.prototype.injectOnlinekatOrActionImage=function(t){var f=this.itemsContainer.closest(this.baseSelector+"-container").hasClass("additional"),i,r,u;t.length?(i=$('<div class="mix-and-match-stamp onlinekat-container"/>').append(t),this.itemsContainer.prepend(i),this.controllers.push(new n.MixAndMatchOnlineCatalog(i,this.articleNo))):f||(r=this.getHighresActionImage(),u=$('<div class="mix-and-match-stamp action-image"/>').append(r),this.items=this.items.slice(1),this.itemsContainer.prepend(u))},t.prototype.getHighresActionImage=function(){var n=this.items.first().detach(),t=n.find(".mix-and-match-image").data("wide-image");return n.find(".image").attr("src",t),n.children()},t.prototype.injectCarousel=function(t,i){if(t.length){var r=$('<div class="mix-and-match-stamp carousel-container"/>').append(t);i||r.addClass("no-onlinekat");this.itemsContainer.prepend(r);this.controllers.push(new n.MixAndMatchCrossSelling(r,this.articleNo))}},t.prototype.injectTeaser=function(n){var t,
i;if(n.length){t=$('<div class="mix-and-match-item teaser-3d-container" />').append(n);n.on("click",function(){eventAggregator.publish(Common.EventNames.ArticleTemplatesDescriptionSwitchTab,n.data("reference-tab"))});t.insertBefore(this.items.eq(2));i=n.children(".teaser-3d").length>0;i&&DependencySystem.resolveInContext(PageElements.Teaser3DComponent,n).andBindItToDom()}},t.prototype.prepareAdditional=function(){var n=this;this.mixAndMatchElement.is(".additional")&&(this.mixAndMatchElement.is(".title-left")&&this.items.each(function(t,i){n.items.parent().prepend(i)}),this.itemsContainer.children(this.itemsSelector).eq(1).addClass("wide-col"))},t.prototype.preparePaging=function(){if(!(this.items.length<=this.paginationThreshold)){var n=this.items.slice(this.paginationThreshold);n.detach();this.populatePages(n)}},t.prototype.populatePages=function(n){if(n.length>=this.paginationThreshold){var t=n.slice(0,this.paginationThreshold);n=n.slice(this.paginationThreshold);this.pages.push(t);n.length&&this.populatePages(
n)}else this.pages.push(n)},t.prototype.togglePaging=function(){(this.pager.addClass("hidden"),this.pages.length)&&(this.setPagerTopPosition(),this.pager.removeClass("hidden"),this.bindPagerClick())},t.prototype.setPagerTopPosition=function(){var n=this.getPagerTopPosition();this.pages.length&&!isNaN(n)&&this.pager.css("top",n)},t.prototype.getPagerTopPosition=function(){var n=this.items.filter(".wide-col").last();if(!n.length)return NaN;var t=n.position().top,i=n.height(),r=t+i;return r+10},t.prototype.bindPagerClick=function(){var n=this;this.mixAndMatchElement.one("click",this.pagerSelector,function(){n.addItems()})},t.prototype.addItems=function(){var t=this,n=this.pages[0];this.pages.splice(0,1);n.addClass(this.hiddenClassName);this.itemsContainer.append(n);this.itemsContainer.isotope("appended",n);Modernizr.csstransitions?n.each(function(n,i){_.delay(function(){$(i).removeClass(t.hiddenClassName)},n*70)}):(n.removeClass(this.hiddenClassName),fixes.forceElementRepaint(n));this.togglePaging()},t.prototype.
initIsotope=function(){var n=this,t=$.Deferred();return this.mixAndMatchElement.imagesLoaded().always(function(){var i=n.getIsotopeOptions();n.loaderElement.remove();n.itemsContainer.isotope(i);_.delay(function(){n.itemsContainer.removeClass(n.hiddenClassName);n.mixAndMatchElement.removeClass("loading");t.resolve()},250)}),$.when(t)},t.prototype.getIsotopeOptions=function(){var t={itemSelector:this.itemsSelector,stamp:this.stampSelector,transitionDuration:0,isResizeBound:!1},i={layoutMode:"masonry",isOriginTop:!1,masonry:{columnWidth:".grid-sizer",gutter:10}},n={};return this.mixAndMatchElement.is(".additional.title-right")?_.extend(n,t,i):this.mixAndMatchElement.is(".additional.title-left")?_.extend(n,t,i,{isOriginLeft:!1}):_.extend(n,t,{layoutMode:"mixandmatch",mixandmatch:{columnWidth:".grid-sizer",gutter:10,wideColThreshold:600,wideColClass:"wide-col"}}),n},t.prototype.destroy=function(){var i=this,n,t;for(this.itemsContainer.data("isotope")&&this.itemsContainer.isotope("destroy"),DependencySystem.removeAllComponents(
this.mixAndMatchElement).then(function(){i.mixAndMatchElement.remove()}),eventAggregator.unSubscribeMultiple(this.subscriptions),n=0;n<this.controllers.length;n++)t=this.controllers[n].destroy,t.call(this.controllers[n]),this.controllers[n]=undefined},t}();n.MixAndMatchElement=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".onlinekat-container.mix-and-match");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedVat,callback:this.rebuildCatalog.bind(this)}])},n.prototype.rebuildCatalog=function(n){var t=n.articleNo,i;this.articleNo===t&&(i=ArticleTemplates.getTemplatesFor(t).mixAndMatchOnlineCatalog,this.domContext.html(i))},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.MixAndMatchOnlineCatalog=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(
){function n(n,t){this.domContext=n.find(".cross-selling.mix-and-match");this.articleNo=t;this.setUpCrossSelling();this.setUpSubscriptions()}return n.prototype.setUpCrossSelling=function(){this.initTabs();this.applyStyling()},n.prototype.initTabs=function(){(initTabsHandler||carouselCrosssellingHandler)&&(DependencySystem.resolveInContext(PageElements.PriceModeDependantElementComponent,this.domContext),initTabsHandler.initializeInContext(this.domContext),carouselCrosssellingHandler.initializeInContext(this.domContext))},n.prototype.applyStyling=function(){this.domContext.children(".tab-container.carousels").addClass("mix-and-match")},n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesDescriptionShownTab,callback:this.toggleAutoplay.bind(this)}])},n.prototype.clearSwipers=function(){carouselCrosssellingHandler&&this.domContext.find(".swiper-container").each(function(n,t){carouselCrosssellingHandler.clearSingle($(t))})},n.prototype.
toggleAutoplay=function(){this.domContext.closest(".tab-pane.active").length?this.resumeCrossSelling():this.pauseCrossSelling()},n.prototype.pauseCrossSelling=function(){carouselCrosssellingHandler&&this.domContext.find(".swiper-container").each(function(n,t){var i=$(t)[0].swiper;carouselCrosssellingHandler.pauseSwiper(i)})},n.prototype.resumeCrossSelling=function(){carouselCrosssellingHandler&&this.domContext.find(".swiper-container").each(function(n,t){var i=$(t)[0].swiper;i.animating=!1;carouselCrosssellingHandler.resizeFixSwiper(i);carouselCrosssellingHandler.startSwiper(i)})},n.prototype.destroy=function(){this.clearSwipers();eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.MixAndMatchCrossSelling=t}(ArticleDetails||(ArticleDetails={}));
/*!
 * classie v1.0.1
 * class helper functions
 * from bonzo https://github.com/ded/bonzo
 * MIT license
 *
 * classie.has( elem, 'my-class' ) -> true/false
 * classie.add( elem, 'my-new-class' )
 * classie.remove( elem, 'my-unwanted-class' )
 * classie.toggle( elem, 'my-class' )
 */
(function(n){function f(n){return new RegExp("(^|\\s+)"+n+"(\\s+|$)")}function e(n,u){var f=t(n,u)?r:i;f(n,u)}var t,i,r,u;"classList"in document.documentElement?(t=function(n,t){return n.classList.contains(t)},i=function(n,t){n.classList.add(t)},r=function(n,t){n.classList.remove(t)}):(t=function(n,t){return f(t).test(n.className)},i=function(n,i){t(n,i)||(n.className=n.className+" "+i)},r=function(n,t){n.className=n.className.replace(f(t)," ")});u={hasClass:t,addClass:i,removeClass:r,toggleClass:e,has:t,add:i,remove:r,toggle:e};typeof define=="function"&&define.amd?define("classie/classie",u):typeof exports=="object"?module.exports=u:n.classie=u})(window);
/*!
 * By CID, based on
 * Masonry v3.1.5
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
(function(n){function t(n,t){var r=n.create("mixandmatch");return r.prototype._resetLayout=function(){this.getSize();this._getMeasurement("columnWidth","outerWidth");this._getMeasurement("gutter","outerWidth");this.measureColumns();var n=this.cols;for(this.colYs=[];n--;)this.colYs.push(0);this.maxY=0},r.prototype.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var n=this.items[0],i=n&&n.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}this.columnWidth+=this.gutter;this.cols=Math.floor((this.containerWidth+this.gutter)/this.columnWidth);this.cols=Math.max(this.cols,1)},r.prototype.getContainerWidth=function(){var i=this.options.isFitWidth?this.element.parentNode:this.element,n=t(i);this.containerWidth=n&&n.innerWidth},r.prototype._getItemLayoutPosition=function(n){var t;n.getSize();var e=n.size.outerWidth%this.columnWidth,h=e&&e<1?"round":"ceil",r=Math[h](n.size.outerWidth/this.columnWidth);r=Math.min(r,this.cols);var u=this._getColGroup(r),f=Math.min.apply(Math,u),o=i(
u,f),s=this.columnWidth*o;this.options.wideColThreshold&&this.options.wideColClass&&s>=this.options.wideColThreshold&&(classie.add(n.element,this.options.wideColClass),n.getSize());var c={x:s,y:f},l=f+n.size.outerHeight,a=this.cols+1-u.length;for(t=0;t<a;t++)this.colYs[o+t]=l;return c},r.prototype._getColGroup=function(n){var i,r,t,u;if(n<2)return this.colYs;for(i=[],r=this.cols+1-n,t=0;t<r;t++)u=this.colYs.slice(t,t+n),i[t]=Math.max.apply(Math,u);return i},r.prototype._manageStamp=function(n){var e=t(n),u=this._getElementOffset(n),o=this.options.isOriginLeft?u.left:u.right,s=o+e.outerWidth,f=Math.floor(o/this.columnWidth),i,h,r;for(f=Math.max(0,f),i=Math.floor(s/this.columnWidth),i-=s%this.columnWidth?0:1,i=Math.min(this.cols-1,i),h=(this.options.isOriginTop?u.top:u.bottom)+e.outerHeight,r=f;r<=i;r++)this.colYs[r]=Math.max(h,this.colYs[r])},r.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var n={height:this.maxY};return this.options.isFitWidth&&(n.width=this._getContainerFitWidth(
)),n},r.prototype._getContainerFitWidth=function(){for(var n=0,t=this.cols;--t;){if(this.colYs[t]!==0)break;n++}return(this.cols-n)*this.columnWidth-this.gutter},r.prototype.needsResizeLayout=function(){var n=this.containerWidth;return this.getContainerWidth(),n!==this.containerWidth},r}var i=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var u,i=0,r=n.length;i<r;i++)if(u=n[i],u===t)return i;return-1};typeof define=="function"&&define.amd?define("mixandmatch/mixandmatch",["outlayer/outlayer","get-size/get-size"],t):n.MixAndMatch=t(n.Outlayer,n.getSize)})(window);
/*!
 * MixAndMatch layout mode
 * sub-classes MixAndMatch
 */
(function(n){function i(n,t){for(var i in t)n[i]=t[i];return n}function t(n,t){var r=n.create("mixandmatch"),e=r.prototype._getElementOffset,o=r.prototype.layout,s=r.prototype._getMeasurement,u,f;return i(r.prototype,t.prototype),r.prototype._getElementOffset=e,r.prototype.layout=o,r.prototype._getMeasurement=s,u=r.prototype.measureColumns,r.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;u.call(this)},f=r.prototype._manageStamp,r.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;f.apply(this,arguments)},r}typeof define=="function"&&define.amd?define("isotope/js/layout-modes/mixandmatch",["../layout-mode","mixandmatch/mixandmatch"],t):t(n.Isotope.LayoutMode,n.MixAndMatch)})(window),function(n){var t=function(){function n(n,t){this.domContext=n.find(".onlinekat-container.details");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=
eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildCatalog.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedVat,callback:this.rebuildCatalog.bind(this)}])},n.prototype.rebuildCatalog=function(n){var i=n.articleNo,t;this.articleNo===i&&(t=ArticleTemplates.getTemplatesFor(i).onlineCatalog,this.domContext.html(t),DependencySystem.resolveInContext(PageElements.PriceModeDependantElementComponent,this.domContext).andBindItToDom(),t?this.domContext.removeClass("empty-template"):this.domContext.addClass("empty-template"))},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.OnlineCatalog=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){var r=this,i;this.domContext=n.find(".poster-3D");this.articleNo=t;this.setUpSubscriptions();i=DependencySystem.resolveInContext(PageElements.Teaser3DComponent,this.domContext).andBindItToDom();i&&i.length&&i[0].controller&&(this.teaser3D=
i[0].controller,this.teaser3D.isInitialized.fail(function(){r.domContext.find(".teaser-3d").remove()}).done(function(){r.setLineHeight()}))}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildPoster3D.bind(this)}])},n.prototype.setLineHeight=function(){var i=this.domContext.parent().next(".custom-col"),n=this.domContext.find(".teaser-3d").height(),t=i.height(),r=n<t?t:n;this.domContext.css("line-height",r+"px")},n.prototype.rebuildPoster3D=function(n){var t=this,i=n.articleNo;this.articleNo===i&&DependencySystem.remove(PageElements.GalleryComponent).from(this.domContext).then(function(){var r=ArticleTemplates.getTemplatesFor(i).poster3D,n;t.domContext.html(r);n=DependencySystem.resolveInContext(PageElements.Teaser3DComponent,t.domContext).andBindItToDom();n&&n.length&&n[0].controller&&(t.teaser3D=n[0].controller,t.teaser3D.isInitialized.fail(function(){t.domContext.find(".teaser-3d").
remove()}).done(function(){t.setLineHeight()}))})},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions);DependencySystem.remove(PageElements.Teaser3DComponent).from(this.domContext)},n}();n.Poster3D=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".saleimage");this.articleNo=t;this.setUpSubscriptions()}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildSaleImage.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.rebuildSaleImage.bind(this)}])},n.prototype.rebuildSaleImage=function(n){var i=n.articleNo,t;this.articleNo===i&&(t=ArticleTemplates.getTemplatesFor(i).saleImage,this.domContext.html(t),t?this.domContext.removeClass("empty-template"):this.domContext.addClass("empty-template"))},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions)}
,n}();n.SaleImage=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function n(n,t){this.domContext=n.find(".articlesummary");this.articleNo=t;this.throttledUpdate=_.throttle(function(n,t){eventAggregator.publish(n,t)},1e3);this.setUpSubscriptions();this.domContext.on("click",".colors a:not(.selected) > div",this.selectNewColorOnClick.bind(this)).on("change",".sizes .dropdown select, .model-switcher .dropdown select",this.selectNewArticleOnChange.bind(this)).on("click",".sizegroups-selector",this.selectNewSizeGroup.bind(this)).on("click",".sizegroups .sizelink .size:not(.selected)",this.selectNewSizeOnClick.bind(this)).on("click",".model-container .modellink .model:not(.selected)",this.selectNewModelOnClick.bind(this)).on("click",".sizegroups .sizelink .selected, .colors .selected > div",this.preventRedirection.bind(this)).on("click",".article-status .additional-links a",this.checkAvailability.bind(this)).find(".article-status .additional-links a").off("click touch");initializeModelSwitcherHandler.
initializeInContext(this.domContext);this.initializeAddToBasketHandler=new PageElements.InitializeAddToBasketHandler;this.initializeAddToBasketHandler.initAddToBasket(this.domContext)}return n.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.rebuildSelection.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.rebuildSelection.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedVat,callback:this.rebuildPriceBlock.bind(this)}])},n.prototype.rebuildSelection=function(n,t,i,r){var u=this,f,e,o;(t===void 0&&(t=!1),i===void 0&&(i=!1),r===void 0&&(r=""),f=n.articleNo,t=n.triggeredOnSize||t,r=n.containerGuid||r,this.articleNo===f)&&(e=ArticleTemplates.getTemplatesFor(f).selection,o=this.domContext.find(".compare-button-wrapper"),LifeCycleSystem.html(this.domContext,e).then(function(){u.reinsertCompareButton(o,u.domContext);selectBoxHandler.initializeInContext(u.domContext);
initializeModelSwitcherHandler.initializeInContext(u.domContext);u.initializeAddToBasketHandler.initAddToBasket(u.domContext);tooltipBoxHandler.initializeInContext(u.domContext);modalManager.initializeInContext(u.domContext);u.domContext.find(".article-status .additional-links a").off("click touch");sniff.isHandheld&&t&&eventAggregator.publish(Common.EventNames.ArticleDetailsSizesFadeInAndOutFittingAccuracy,r)}))},n.prototype.reinsertCompareButton=function(n,t){t.find('div[data-service-call="mpc-compare-button"]').before(n)},n.prototype.rebuildPriceBlock=function(n){var t=n.articleNo,i;this.articleNo===t&&(i=ArticleTemplates.getTemplatesFor(t).priceBlock,this.domContext.find(".priceblock").html(i),selectBoxHandler.initializeInContext(this.domContext),modalManager.initializeInContext(this.domContext),tooltipBoxHandler.initializeInContext(this.domContext),this.domContext.find(".article-status .additional-links a").off("click touch"))},n.prototype.selectNewColorOnClick=function(n){if(n.preventDefault(),!utils.isModifierKeyPressed(
n)){sniff.isHandheld&&this.domContext.find(".colors a.selected").removeClass("selected");var t=$(n.currentTarget),i={ajax:utils.getHjaxTarget(t),href:t.closest("a").attr("href"),articleNo:this.articleNo,savKey:t.data("savkey")};this.throttledUpdate(Common.EventNames.ArticleTemplatesUpdateArticle,i)}},n.prototype.selectNewArticleOnChange=function(n){n.preventDefault();var t=$(n.target),i={ajax:utils.getHjaxTarget(t),href:"",articleNo:this.articleNo,savKey:t.data("savkey")};i.ajax&&eventAggregator.publish(Common.EventNames.ArticleTemplatesUpdateArticle,i)},n.prototype.selectNewSizeGroup=function(n){if(!utils.isModifierKeyPressed(n)){var t=$(n.currentTarget),i={ajax:utils.getHjaxTarget(t),href:"",articleNo:this.articleNo,savKey:t.data("savkey")};i.ajax&&this.throttledUpdate(Common.EventNames.ArticleTemplatesUpdateSizes,i)}},n.prototype.selectNewSizeOnClick=function(n){var i,t,r,u;(n.preventDefault(),i="",utils.isModifierKeyPressed(n))||(t=$(n.currentTarget),sniff.isHandheld&&(this.domContext.find(".sizegroups .sizelink .selected").
removeClass("selected"),t.addClass("selected"),t.parent(".size-outerline").addClass("selected"),r=t.closest("[data-guid-for-sizes]"),i=r.length?r.data("guid-for-sizes"):""),u={ajax:utils.getHjaxTarget(t),href:"",articleNo:this.articleNo,triggeredOnSize:!0,containerGuid:i,savKey:t.data("savkey")},this.throttledUpdate(Common.EventNames.ArticleTemplatesUpdateSizes,u))},n.prototype.selectNewModelOnClick=function(n){if(n.preventDefault(),!utils.isModifierKeyPressed(n)){sniff.isHandheld&&this.domContext.find(".model-container a div.selected").removeClass("selected");var t=$(n.currentTarget),i={ajax:utils.getHjaxTarget(t),href:t.data("href"),articleNo:this.articleNo,savKey:t.data("savkey")};this.throttledUpdate(Common.EventNames.ArticleTemplatesUpdateArticle,i)}},n.prototype.preventRedirection=function(n){n.preventDefault()},n.prototype.checkAvailability=function(n){n.preventDefault();var t=utils.getHjaxTarget($(n.currentTarget));modalManager.openModalByAjax(t)},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(
this.subscriptions)},n}();n.Selection=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function t(t,i){this.ajax=new ArticleTemplates.Ajax;this.isAasTabSelected=!1;this.domContext=t.find(".article-description");this.articleNo=i;this.elementRepository=Common.ElementRepository.getInstance();this.mixAndMatchTarget=this.domContext.data("mix-and-match-ajaxtarget");this.productDetailsTarget=this.domContext.data("product-details-ajaxtarget");this.publishShownTab();this.bindScrollOnSwitchTabs();this.setUpSubscriptions();var r=this.domContext.find(".article-description-tabs > .tab-content > .tab-pane.details"),u=this.domContext.find(".article-description-tabs > .tab-content > .tab-pane.mix-and-match");this.controllers=[new n.Details(r,this.articleNo),new n.OnlineCatalog(r,this.articleNo),new n.CrossSelling(r,this.articleNo),new n.MixAndMatchOpener(r,this.articleNo),new n.AdditionalDescription(r,this.articleNo)];u.length&&(this.controllers.push(new n.MixAndMatchTab(u,this.articleNo)),this.initialTab=
this.domContext.find('.article-description-tabs > ul[role="tablist"] li.active a').data("referred-tab"));Common.FeatureToggle.ShowAlternativeArticles&&(this.aasTeaserContext=this.domContext.find(".aas-teaser-content"),this.controllers.push(new n.AlternativeArticles(this.domContext,this.articleNo)),this.initAlternativeArticlesTab())}return t.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesDescriptionSwitchTab,callback:this.switchTabs.bind(this)},{message:Common.EventNames.ArticleTemplatesMixAndMatchInitialized,callback:this.showMixAndMatchTab.bind(this)},{message:Common.EventNames.ArticleTemplatesMixAndMatchDisable,callback:this.hideMixAndMatchTab.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.switchToPreselectedTab.bind(this)}])},t.prototype.initAlternativeArticlesTab=function(){var n=this.domContext.find('[data-referred-tab="alternative-articles"]').parent(),t=this.domContext.find(".article-description-tabs > .tab-content > .tab-pane.alternative-articles");
t.length&&t.children().length&&(n.removeClass("hidden"),n.closest(".article-description-tabs").removeClass("single-tab"))},t.prototype.switchToPreselectedTab=function(n){var i=this,r=n.articleNo,u,t;if(this.articleNo===r){if(u=$(ArticleTemplates.getTemplatesFor(r).descriptionTabs),t=u.filter("li.active").children("a").data("referred-tab"),_.isUndefined(t)){if(_.isUndefined(this.initialTab))return;t=this.initialTab}this.isAasTabSelected?this.switchTabs("alternative-articles",!1):t==="product-details"?this.switchTabs(t,!1):this.waitForMixAndMatchInitToken=eventAggregator.subscribe(Common.EventNames.ArticleTemplatesMixAndMatchInitialized,function(){eventAggregator.unSubscribe(Common.EventNames.ArticleTemplatesMixAndMatchInitialized,i.waitForMixAndMatchInitToken);i.switchTabs(t,!1)})}},t.prototype.switchTabs=function(n,t){var i=this.domContext.find('[data-referred-tab="'+n+'"]');i.trigger("click",t)},t.prototype.showMixAndMatchTab=function(){var n=this.domContext.find('[data-referred-tab="mix-and-match"]').parent(
);n.closest(".article-description-tabs").removeClass("single-tab");n.removeClass("hidden")},t.prototype.hideMixAndMatchTab=function(){var n=this.domContext.find('[data-referred-tab="mix-and-match"]').parent(),t=this.domContext.find('[data-referred-tab="alternative-articles"]').parent();(!t.length||t.hasClass("hidden"))&&n.closest(".article-description-tabs").addClass("single-tab");n.addClass("hidden");this.isAasTabSelected?this.switchTabs("alternative-articles",!1):this.switchTabs("product-details",!1);_.isUndefined(this.waitForMixAndMatchInitToken)||eventAggregator.unSubscribe(Common.EventNames.ArticleTemplatesMixAndMatchInitialized,this.waitForMixAndMatchInitToken)},t.prototype.publishShownTab=function(){var n=this;this.domContext.off("shown.bs.tab").on("shown.bs.tab",function(t){var i=$(t.target).data("referred-tab");eventAggregator.publish(Common.EventNames.ArticleTemplatesDescriptionShownTab,i);n.triggerAlternativeArticlesActionControlEvent(i)})},t.prototype.handleAasTeaserForTab=function(n){if(this.aasTeaserContext.
length){var t=n.data("referred-tab");t==="alternative-articles"?this.aasTeaserContext.hasClass("hidden")||this.aasTeaserContext.addClass("hidden"):this.aasTeaserContext.hasClass("hidden")&&this.aasTeaserContext.removeClass("hidden")}},t.prototype.bindScrollOnSwitchTabs=function(){var n=this,t=0,i=this.elementRepository.body().find(".shopcontent > .sticky-overlay-gradient"),r=parseInt(this.domContext.find('li[role="presentation"].active').css("margin-top"));i.length&&!sniff.isHandheld&&(t=-i.get(0).getBoundingClientRect().bottom-r);sniff.isHandheld&&(t-=10);this.elementRepository.body().on("click",'.article-description-tabs > ul[role="tablist"] [data-toggle="tab"]',function(i,r){var u,f;return(r===void 0&&(r=!0),u=$(i.target),Common.FeatureToggle.ShowAlternativeArticles&&n.handleAasTeaserForTab(u),u.closest('li[role="presentation"]').hasClass("active"))?!1:(f=n.domContext.get(0).getBoundingClientRect().top,r&&n.saveTabState(u),f===Math.abs(t)||!r)?(u.tab("show"),!1):(n.domContext.velocity("scroll",{offset:t,complete:
function(){_.delay(function(){u.tab("show")},50)}}),!1)})},t.prototype.saveTabState=function(n){var t=n.data("referred-tab"),i;(this.isAasTabSelected=t==="alternative-articles",this.mixAndMatchTarget&&this.productDetailsTarget)&&(i=t==="mix-and-match"?this.mixAndMatchTarget:this.productDetailsTarget,this.ajax.saveTabState(i))},t.prototype.triggerAlternativeArticlesActionControlEvent=function(n){if(n==="alternative-articles")eventAggregator.publish(Common.EventNames.TrackActionControlEvent,{actionSubject:"alternative",actionType:"open"})},t.prototype.destroy=function(){var n,t;for(eventAggregator.unSubscribeMultiple(this.subscriptions),n=0;n<this.controllers.length;n++)t=this.controllers[n].destroy,typeof t=="function"&&t.call(this.controllers[n]),this.controllers[n]=undefined},t}();n.Tabs=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function t(t){var i=this;this.elementRepository=Common.ElementRepository.getInstance();this.domContext=t;this.articleNo=ArticleTemplates.getNextArticleNumber(
);this.setUpSubscriptions();this.controllers=[new n.Poster3D(this.domContext,this.articleNo),new n.Selection(this.domContext,this.articleNo),new n.SaleImage(this.domContext,this.articleNo)];t.imagesLoaded().always(function(){i.elementRepository.window().trigger("resize.modalmaxheight")});t.on("destroyed",function(){i.destroy()})}return t.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.updateClassification.bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.updateClassification.bind(this)}])},t.prototype.updateClassification=function(n){var t=n.articleNo,i;this.articleNo===t&&(i=ArticleTemplates.getTemplatesFor(t).classification,this.domContext.attr("class",i))},t.prototype.destroy=function(){var n,t;for(eventAggregator.unSubscribeMultiple(this.subscriptions),n=0;n<this.controllers.length;n++)t=this.controllers[n].destroy,typeof t=="function"&&t.call(this.controllers[
n]),this.controllers[n]=undefined},t}();n.OrderModal=t}(ArticleDetails||(ArticleDetails={})),function(n){var t=function(){function t(t){Common.FeatureToggle.ShowAlternativeArticles&&(this.alternativeArticlesUpdater=n.AlternativeArticlesUpdater.getInstance());this.domContext=t;var i=this.articleNo=ArticleTemplates.getNextArticleNumber();this.setUpSubscriptions();this.controllers=[new n.GallerySection(t,i),new n.Selection(t,i),new n.Medialinks(t,i),new n.SaleImage(t,i)];this.domContext.find(".article-description").length?this.controllers.push(new n.Tabs(t,i)):[].push.apply(this.controllers,[new n.Details(t,i),new n.OnlineCatalog(t,i),new n.CrossSelling(t,i)]);this.domContext.hasClass("black-edition")&&[].push.apply(this.controllers,[new n.AdditionalDescription(t,i),new n.MixAndMatchTab(t,i),new n.AlternativeArticles(t,i)])}return t.prototype.setUpSubscriptions=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTemplatesUpdatedArticle,callback:this.updateClassification.
bind(this)},{message:Common.EventNames.ArticleTemplatesUpdatedSizes,callback:this.updateClassification.bind(this)}])},t.prototype.updateClassification=function(n){var i=n.articleNo,t;this.articleNo===i&&(t=ArticleTemplates.getTemplatesFor(i),this.domContext.attr("class",t.classification),this.updateBrowserUrl(t.href))},t.prototype.updateBrowserUrl=function(n){history.replaceState&&n&&(history.replaceState(null,null,n),Common.UrlCleanupService.createInstance().cleanupUrl())},t.prototype.destroy=function(){var n,t;for(eventAggregator.unSubscribeMultiple(this.subscriptions),n=0;n<this.controllers.length;n++)t=this.controllers[n].destroy,typeof t=="function"&&t.call(this.controllers[n]),this.controllers[n]=undefined},t}();n.Page=t}(ArticleDetails||(ArticleDetails={}));$(document).ready(function(){var n=Common.ElementRepository.getInstance().shopcontent().find(".articledetails:not(.modal-order)");n.length===1&&(detailsPage=new ArticleDetails.Page(n))}),function(n){var t=function(){function n(){this.defaultTileHeight=
166;this.extraSpaceForButton=sniff.isHandheld?36:26}return n.prototype.initialize=function(){this.initializeInContext($("body"));this.resizeTiles()},n.prototype.initializeInContext=function(n){var r=this,t,i,f,e,u;if(this.tileContainer=n.find(".slide-container"),this.initializeCycle(),t=this.tileContainer.find(".address-option.active").first(),i=t.closest(".radio-item-accordion"),i.length>0){i.hasClass(".active")&&this.showModal(t);f=i.attr("id").replace("radio-item-accordion","");e=$("#"+f);e.on("change",function(){r.showModal(t)})}u=this.tileContainer.find(".address-option");u.find("input[type=radio]").on("change",function(n){var i=$(n.target),t;r.tileContainer.find(".address-option.active").removeClass("active");t=i.parent();t.addClass("active");r.showModal(t)});u.on("click",function(n){var t=$(n.target),i=t.hasClass("address-option")?t:t.parents(".address-option"),r;i.hasClass("active")||(r=i.children("input[type=radio]"),r.prop("checked",!0).trigger("change"))})},n.prototype.showModal=function(n){var i=n.
data("modalid"),t;i!=null&&(t=$("#"+n.data("modalid")),t!=null&&modalManager.openModal(t))},n.prototype.resizeTiles=function(){var r=this,n=this.defaultTileHeight,t=this.tileContainer.find(".address-option"),i=$(".radio-item-accordion, .address-option");i.addClass("show");t.each(function(t,i){var f=$(i),u=f.height()+r.extraSpaceForButton;n=u>n?u:n});i.removeClass("show");this.defaultTileHeight>n&&(n=this.defaultTileHeight);t.height(n)},n.prototype.initializeCycle=function(){$(".slide-container").cycle({timeout:0,slides:"> div.page",fx:"scrollHorz",swipe:!0,swipeFx:"scrollHorz",prev:".lr-button-container.prev",next:".lr-button-container.next",pager:".cycle-pager",pagerTemplate:"<span>{{slideNum}}<\/span>",log:!1})},n}();n.AddressSelectHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){addressSelect=new PageElements.AddressSelectHandler;componentManager.registerAndInitComponent(addressSelect)}),function(n){var i=function(){function i(t,i,r){var u=this;this.fakeOptionVal="#";this.typeaheadData=
[];this.origin=t;this.addressContainer=this.origin.contextQuery;this.mandatoryGroupService=i;this.ajax=r;this.countrySelector=this.addressContainer.find(".country-selector");this.postcodeInput=this.addressContainer.find(".postalcode");this.citySelector=this.addressContainer.find(".city-selector");this.cityInput=this.addressContainer.find(".cityinput");this.districtInput=this.addressContainer.find(".district-input");this.districtCode=this.addressContainer.find(".districtcode");this.streetInput=this.addressContainer.find(".street-input[name]");this.streetCode=this.addressContainer.find(".streetcode");this.houseNoInput=this.addressContainer.find(".houseno");this.building=this.addressContainer.find(".building");this.postalCodeWrapper=this.addressContainer.find(".postalcode-wrapper");this.countryGroupName=this.countrySelector.data("mandatory-group");this.countryLabel=this.addressContainer.find(".country-label");this.postalcodeLabel=this.addressContainer.find(".postalcode-label");this.cityLabel=this.addressContainer.
find(".city-label");this.districtLabel=this.addressContainer.find(".district-label");this.streetLabel=this.addressContainer.find(".street-label");this.housenoLabel=this.addressContainer.find(".houseno-label");this.buildingLabel=this.addressContainer.find(".building-label");this.setReadonlyBehavior(this.countrySelector,this.countrySelector.children().length==1);this.isStateInitialized=!0;this.setupPostalCodeUpperCasing();this.handleCountryChange();this.handleCityChange();this.updateCitySelectbox(!1);this.citySelector.on("change"+this.origin.eventNamespace,function(){u.streetInput.focus()});this.handleCitySelectBoxInit();this.addEventBindings();this.initializeState();this.dtoCountry=this.mandatoryGroupService.register(this.countryGroupName,this.origin.id,this.countryIsSet);this.streetsTypeahead=new n.DropdownTypeahead(this.addressContainer.find(".street .dropdown"),!1);this.isAutocompletionEnabled()&&this.postcodeInput.val()&&this.loadCitiesAndStreetsForPrefilledForm();DependencySystem.resolveInContext(n.TooltipComponent,
this.addressContainer).andBindItToDom();new n.PickupPointsHandler(this.postcodeInput,this.countrySelector);this.cityInput.removeClass("display-none")}return i.prototype.handleCitySelectBoxInit=function(){if(this.isAutocompletionEnabled()){var n=this.citySelector.find(":selected").first();n!=undefined&&(n.val()&&n.val()!=this.fakeOptionVal?(this.cityInput.val(n.text()),this.fillDistrictFromCity(n,!0)):this.cityInput.val(""))}},i.prototype.setupPostalCodeUpperCasing=function(){var n=this;this.postcodeInput.on("blur"+this.origin.eventNamespace,function(){n.postcodeInput.val(n.postcodeInput.val().toUpperCase())}).on("keydown"+this.origin.eventNamespace,function(t){var i=t.which===13;i&&n.postcodeInput.val(n.postcodeInput.val().toUpperCase())})},i.prototype.loadCitiesAndStreetsForPrefilledForm=function(){var n=this;this.citySelector.val()==this.fakeOptionVal?this.loadCities():(this.streetsAjaxTargetFromCitiesElement=this.citySelector.data("cityajaxtarget"),this.loadStreets(function(){n.streetInput.change();n.streetInput.
blur()}))},i.prototype.postConstruct=function(){this.mandatoryGroupService.checkForFilledElements(this.countryGroupName)},Object.defineProperty(i.prototype,"countryIsSet",{get:function(){return!!this.countrySelector.find("option:selected").attr("value")},enumerable:!0,configurable:!0}),i.prototype.handleStreetChange=function(){var n=this;this.streetInput.on("change"+this.origin.eventNamespace,function(){for(var t,i=n.streetInput.val(),u=n.districtInput.val(),f=!1,r=0;r<n.typeaheadData.length;r++)t=n.typeaheadData[r],t.Text===i&&n.fillDistrictInfo(t),(t.Street===i&&t.DistrictName===u||t.Street===i&&u===""&&t.DistrictName===n.cityInput.val())&&(f=!0);!f&&n.typeaheadData.length>0&&(n.resetDistrict(),n.streetCode.val(""))})},i.prototype.handleCityChange=function(){var n=this;this.citySelector.on("change"+this.origin.eventNamespace,function(){var t,i;(n.resetDistrict(),n.resetStreetAndHouseNo(),t=n.citySelector.find(":selected").first(),t!=undefined)&&(t.text()&&(i=n.addressContainer.find(".city-wrapper"),eventAggregator.
publish(Common.EventNames.TooltipRemoveError,i),i.removeClass("error")),t.val()&&t.val()!=n.fakeOptionVal?(n.cityInput.val(t.text()),n.fillDistrictFromCity(t,!1),n.loadStreets()):n.cityInput.val(""))})},i.prototype.handleCountryChange=function(){var n=this;if(this.countrySelector.length!=0)this.countrySelector.on("change"+this.origin.eventNamespace,function(t){var f;n.isStateInitialized=!1;var i=$(t.currentTarget),r=i.data("countryajaxtarget"),u=i.closest(".address[id]");if(u.length&&(f={addressId:u.attr("id"),selectedCountry:t.currentTarget.value,deliveryAllowed:n.countrySelector.find("option:selected").first().data("delivery-allowed"),invoicePickupPointAllowed:n.countrySelector.find("option:selected").first().data("invoice-pickup-point-allowed")},eventAggregator.publish(Common.EventNames.AddressCountryChanged,f)),r!==""){var o=i.attr("name"),s=i.val(),e={};e[o]=s;n.ajax.post({url:r,data:e}).then(function(t){var i,r;t.preprocessingReport.modal&&$(".modal.in").attr("data-width",400);i=ajaxDomHelper.getNamedObjectValueFromArray(
"address",t);i&&(r=$(i),LifeCycleSystem.html(n.addressContainer,r.html()),selectBoxHandler.initializeInContext(n.addressContainer),typeof inputClearButtons!="undefined"&&inputClearButtons.initializeInContext(n.addressContainer))})}else n.configurePostcodeInput();n.countryGroupName&&n.mandatoryGroupService.checkChangedInput(n.countrySelector.find("option:selected").attr("value"),n.dtoCountry)})},i.prototype.addEventBindings=function(){var n=this;this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.HideErrors,callback:function(t){n.selectAndHideError(t)}},{message:Common.EventNames.MandatoryGroupFieldTriggerUpdate,callback:this.updateMandatoryGroupFields.bind(this)}])},i.prototype.updateMandatoryGroupFields=function(n){this.updateMandatoryGroupField(n,this.countrySelector,this.countryLabel);this.updateMandatoryGroupField(n,this.cityInput,this.cityLabel);this.updateMandatoryGroupField(n,this.districtInput,this.districtLabel);this.updateMandatoryGroupField(n,this.streetInput,this.streetLabel);
this.updateMandatoryGroupField(n,this.postcodeInput,this.postalcodeLabel);this.updateMandatoryGroupField(n,this.houseNoInput,this.housenoLabel);this.updateMandatoryGroupField(n,this.building,this.buildingLabel)},i.prototype.updateMandatoryGroupField=function(n,t,i){n.groupName==t.data("mandatory-group")&&this.updateMandatory(i,n.isMandatory)},i.prototype.updateMandatory=function(n,t){n.toggleClass("mandatory-by-group",t)},i.prototype.isAutocompletionEnabled=function(){var n=this.countrySelector.find(":selected").first();return utils.getBoolean(n.data("autocompletion"))},i.prototype.initializeState=function(){this.configurePostcodeInput();this.isAutocompletionEnabled()?this.enableAutocompletion():this.disableAutocompletion()},i.prototype.enableAutocompletion=function(){var n=this;this.handleStreetChange();this.postcodeInput.on("focus"+this.origin.eventNamespace,function(){n.resetFields()});this.postcodeInput.on("blur"+this.origin.eventNamespace,function(){n.loadCities()});this.postcodeInput.on("keyup"+this.origin.
eventNamespace,function(){n.postcodeInput.val().length==n.postcodeInput.attr("maxlength")&&(n.citySelector.empty(),n.citySelector.prop("disabled",!0),n.resetDistrict(),n.resetStreetAndHouseNo(),n.streetInput.focus())});this.postcodeInput.removeClass("no-validation");this.citySelector.removeClass("hide");this.citySelector.prop("disabled",!0);this.cityInput.addClass("hide");this.setReadonlyBehavior(this.districtInput,!0);utils.disableElementFocusOnTabKey(this.addressContainer,".district-input");this.citySelector.prop("disabled",this.citySelector.children().length<=0);this.setReadonlyBehavior(this.citySelector,this.citySelector.children().length==1)},i.prototype.loadStreets=function(n){var i=this,r;if(n===void 0&&(n=undefined),r=this.streetsAjaxTargetFromCitiesElement,r!==""){var o={PostCode:this.postcodeInput.val(),CityName:this.cityInput.val(),CountryCode:this.countrySelector.find(":selected").first().val(),CityCode:this.citySelector.find(":selected").first().val()},u=!1,f,e=parseInt(this.streetInput.attr("maxlength"));
this.ajax.get({url:r,data:o}).then(function(r){i.streetInput.html("");i.typeaheadData=[];var o=ajaxDomHelper.getNamedObjectValueFromArray("streets",r);o&&(o.Entries.length===1&&(u=!0),$.each(o.Entries,function(n,r){var o=r.Text,u;r.IsUnique||(o+=" ("+r.DistrictText+")");u=new t;u.Text=o;u.Street=r.Text;e&&(u.Street=u.Street.substr(0,e));u.Value=r.Value;u.DistrictName=r.DistrictText;u.DistrictValue=r.DistrictValue;f=u;i.typeaheadData.push(u)}));u&&i.fillDistrictInfo(f);i.streetsTypeahead.fillLookupObjectAjax(i.typeaheadData);n&&n();i.origin.setUp(i.streetsTypeahead.typeaheadElement).on("typeahead:selected",function(n,t){i.fillDistrictInfo(t)}).on("typeahead:autocomplete",function(n,t){i.fillDistrictInfo(t);i.streetsTypeahead.typeaheadElement.typeahead("close")})})}},i.prototype.fillDistrictInfo=function(n){n.DistrictName&&n.DistrictName!==this.cityInput.val().trim()?(this.districtInput.val(n.DistrictName),this.districtCode.val(n.DistrictValue)):this.resetDistrict();this.streetInput.val(n.Street);this.streetCode.
val(n.Value);this.streetsTypeahead.typeaheadElement.typeahead("val",utils.htmlDecode(n.Street))},i.prototype.fillDistrictFromCity=function(n,t){if(_.isEmpty(n.data("district-name"))||n.data("district-name")==="")t||this.resetDistrict();else{this.districtInput.val(n.data("district-name"));var i=this.citySelector.closest(".city-wrapper");i.find(".sbSelector").text(n.data("city-name"));this.citySelector.val(n.data("city-value"));this.cityInput.text(n.data("city-name"));this.cityInput.val(n.data("city-value"))}},i.prototype.loadCities=function(){var n=this,u=this.citySelector.closest(".city-wrapper"),i,t,r;(u.closest(".error").removeClass("error"),i=this.postcodeInput.val(),t=this.postcodeInput.data("postcodeajaxtarget"),i&&t!=="")&&(r={PostCode:this.postcodeInput.val(),CountryCode:this.countrySelector.find(":selected").first().val()},this.ajax.get({url:t,data:r}).then(function(t){var r=ajaxDomHelper.getNamedObjectValueFromArray("cities",t),f,u,i,e;(n.streetsAjaxTargetFromCitiesElement=r.Ajaxtarget,r)&&(r.Entries.
length>1&&(f=$("<option/>").val(n.fakeOptionVal).text(""),n.citySelector.append(f)),$.each(r.Entries,function(t,i){var r=i.Text,u=i.Value,f;_.isEmpty(i.District)||i.District===""||(r+=" ("+i.District+")",u+=i.District);f=$("<option/>").val(u).text(r).data("district-name",i.District).data("city-name",i.Text).data("city-value",i.Value);n.citySelector.append(f)}),u=r.Entries.length>1,n.citySelector.prop("disabled",r.Entries.length<1),n.updateCitySelectbox(u),n.setReadonlyBehavior(n.citySelector,u),i=ajaxDomHelper.getNamedObjectValueFromArray("postalcode",t),r.Entries.length===0&&n.isStateInitialized?(i&&i.Error&&i.Error.Text&&(e={container:n.postcodeInput,content:i.Error.Text},eventAggregator.publish(Common.EventNames.TooltipShowError,e)),n.postalCodeWrapper.addClass("error")):(eventAggregator.publish(Common.EventNames.TooltipRemoveError,n.postcodeInput),n.postalCodeWrapper.removeClass("error"),!Common.FeatureToggle.PostalCodeUpdatedOnCitySelection||i.Error&&i.Error.Text||n.postcodeInput.val(i.Value)),n.isStateInitialized=
!0,n.citySelector.change())}))},i.prototype.updateCitySelectbox=function(t){var i,r;this.citySelector.selectbox("detach");selectBoxHandler.initializeInContext(this.citySelector.closest(".dropdown-wrapper"));this.citySelector.selectbox(t||this.citySelector.find("option").length>0?"enable":"disable");i=this.citySelector.closest(".city-wrapper");i.hasClass("error")&&(t=!0,i.find(".sbSelector").empty());t&&(this.citySelector.selectbox("open"),r=this.citySelector.attr("sb"),$("#sbOptions_"+r).find('[rel="#"]').addClass("dummy"));DependencySystem.resolveInContext(n.TooltipComponent,this.citySelector).andBindItToDom();utils.disableElementFocusOnTabKey(this.citySelector.parent(),".sbToggle, .sbSelector")},i.prototype.disableAutocompletion=function(){var n=this;this.postcodeInput.add(this.districtInput).add(this.streetInput).off(this.origin.eventNamespace);this.citySelector.addClass("hide");this.citySelector.prop("disabled",!0);this.cityInput.removeClass("hide");this.setReadonlyBehavior(this.districtInput,!1);setTimeout(
function(){n.citySelector.selectbox("detach")},50);this.postcodeInput.addClass("no-validation")},i.prototype.configurePostcodeInput=function(){var t=this.countrySelector.find(":selected").first(),i=t.data("postcode-maxlength"),r=i||10,u=t.data("postcode-itype"),f=u||"text";this.postcodeInput.attr("maxlength",r).attr("type",f);DependencySystem.resolveInContext(n.TooltipComponent,this.postcodeInput.parent()).andBindItToDom();sniff.isIPad&&typeof fixes.iPadPositionFixedWithKeyboard=="function"&&fixes.iPadPositionFixedWithKeyboard(this.postcodeInput)},i.prototype.resetFields=function(){this.postcodeInput.val("");this.postcodeInput.trigger("change");this.citySelector.empty();this.citySelector.prop("disabled",!0);this.updateCitySelectbox(!1);this.cityInput.val("");this.cityInput.trigger("change");this.resetStreetAndHouseNo();this.resetDistrict()},i.prototype.resetDistrict=function(){this.districtInput.val("");this.districtCode.val("");this.districtCode.trigger("change")},i.prototype.resetStreetAndHouseNo=function()
{this.streetCode.val("");this.streetInput.val("");this.houseNoInput.val("");this.streetsTypeahead.typeaheadElement.typeahead("val","");this.streetsTypeahead.fillLookupObjectAjax([]);this.streetInput.trigger("change");this.streetCode.trigger("change");this.houseNoInput.trigger("change")},i.prototype.setReadonlyBehavior=function(n,t){if(t){n.attr("readonly","readonly");n.on("focus"+this.origin.eventNamespace,function(){n.blur()});n.on("mousedown"+this.origin.eventNamespace,function(){return!1})}else n.removeAttr("readonly"),n.off("focus"+this.origin.eventNamespace),n.off("mousedown"+this.origin.eventNamespace)},i.prototype.selectAndHideError=function(n){var t=n.find(this.addressContainer),i;n.filter(t)&&(i=".city-selector, .district-input, .houseno, .street-input, .street-selector, .building, .postalcode, .cityinput",t.find(i).each(function(n,t){var i=$(t);eventAggregator.publish(Common.EventNames.TooltipRemoveError,i);i.closest(".error").removeClass("error")}))},i.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(
this.subscriptions);this.citySelector.off(this.origin.eventNamespace);this.streetInput.off(this.origin.eventNamespace);this.countrySelector.off(this.origin.eventNamespace);this.postcodeInput.off(this.origin.eventNamespace);this.districtInput.off(this.origin.eventNamespace);this.streetsTypeahead.typeaheadElement.off(this.origin.eventNamespace);this.countryGroupName&&(eventAggregator.publish(Common.EventNames.MandatoryGroupFieldCleanUp,this.dtoCountry),this.countrySelector.off(this.origin.eventNamespace))},i}(),t;n.AddressController=i;t=function(){function n(){}return n}();n.AddressTypeaheadData=t;DependencySystem.define(i).as(DS.Controller).andInject([DS.Origin,Common.MandatoryGroupService,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="address",t.query=".address",t.controller=n.AddressController,t}();n.AddressComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.
origin=n;this.addressId=n.contextQuery.data("address-id");this.countriesWithSalesTaxNos=(n.contextQuery.data("visible-countries")||"").split(",");this.subscriptionId=eventAggregator.subscribe(Common.EventNames.AddressCountryChanged,this.toggleElement.bind(this))}return n.prototype.destroy=function(){eventAggregator.unSubscribe(Common.EventNames.AddressCountryChanged,this.subscriptionId)},n.prototype.toggleElement=function(n){if(n.addressId===this.addressId){var t=this.countriesWithSalesTaxNos.some(function(t){return t===n.selectedCountry});this.origin.contextQuery.addClass(t?"visible":"hidden").removeClass(t?"hidden":"visible").find("input").prop("disabled",!t).val(undefined)}},n}();n.SalesTaxNoInputController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="sales-tax-no",t.query=".sales-tax-no.input",t.controller=n.SalesTaxNoInputController,t}();n.SalesTaxNoInputComponent=t;DependencySystem.
define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.addressId=n.contextQuery.data("address-id");this.subscription=eventAggregator.subscribe(Common.EventNames.AddressCountryChanged,this.toggleTooltip.bind(this))}return n.prototype.destroy=function(){eventAggregator.unSubscribe(Common.EventNames.AddressCountryChanged,this.subscription)},n.prototype.toggleTooltip=function(n){var t={container:this.origin.contextQuery,content:this.getTooltipTextOf(n.selectedCountry)};eventAggregator.publish(Common.EventNames.TooltipUpdateContent,t)},n.prototype.getTooltipTextOf=function(n){var t="";return this.origin.contextQuery.find(".tooltip").each(function(i,r){if(n===$(r).data("country"))return t=$(r).text(),!1}),t},n}();n.TradeRegisterNoInputController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="trade-register-no",t.query=".trade-register-no.input",
t.controller=n.TradeRegisterNoInputController,t}();n.TradeRegisterNoInputComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){var i=this;this.currentSelectedStoreElement=null;this.origin=n;this.ajax=t;this.workwearStoreAvailability=n.contextQuery;this.addEvents();this.setAjaxLinks();this.workwearStoreAvailability.parentsUntil("#WWSAvailability").bind("transitionend",function(){return _.delay(function(){return i.setRightSideWidth()},100)})}return n.prototype.setRightSideWidth=function(){var n=40,t=this.workwearStoreAvailability.find(".availabilitytextblock");n+=Math.max.apply(Math,t.map(function(n,t){return $(t).width()}));t.width(n)},n.prototype.addEvents=function(){var n=this;this.workwearStoreAvailability.find(".store").each(function(t,i){var r=$(i);r.on("click"+n.origin.eventNamespace,".information-title",{currentStoreElement:r},function(t){n.showMoreInformation($(t.delegateTarget));_.delay(function(){$(window).trigger("resize")}
,100)});r.on("click"+n.origin.eventNamespace,".availability-check",{currentStoreElement:r},function(t){n.showDimensions($(t.delegateTarget));_.delay(function(){$(window).trigger("resize")},100)})})},n.prototype.showMoreInformation=function(n){this.currentSelectedStoreElement=n;this.workwearStoreAvailability.find(".more-infos, .wws-line, .dimensions").addClass("display-none");n.find(".more-infos, .wws-line").removeClass("display-none");this.preparePrintButton(n)},n.prototype.showDimensions=function(n){this.currentSelectedStoreElement=n;this.workwearStoreAvailability.find(".more-infos, .wws-line, .dimensions").addClass("display-none");n.find(".dimensions, .wws-line").removeClass("display-none");this.preparePrintButton(n)},n.prototype.preparePrintButton=function(n){var t=$("#print-store");LifeCycleSystem.html(t,this.workwearStoreAvailability.find('.store[id="'+n.attr("id")+'"] .printbutton').html())},n.prototype.setAjaxLinks=function(){var n=this,t=this.workwearStoreAvailability.find(".size, .colors a > div, .sizegroups-selector, .model");
t.each(function(t,i){var r=$(i),u=utils.getHjaxTarget(r);if(u){r.off("click");r.on("click",function(t){t.preventDefault();sniff.isHandheld&&(n.workwearStoreAvailability.find(".size-outerline, .size-outerline .size").removeClass("selected"),r.addClass("selected"),r.parent().addClass("selected"));n.ajaxCall(u)})}})},n.prototype.ajaxCall=function(n){var t=this;this.ajax.get({url:n},{modal:!0}).then(function(n){var f=ajaxDomHelper.getNamedObjectValueFromArray("modal",n),r,i,u;f&&(r=$(f),u=[],t.workwearStoreAvailability.find(".store").each(function(n,t){var f=$(t);i=f.attr("id");var e=r.find('.store[id="'+i+'"] .dimensions'),o=r.find('.store[id="'+i+'"] .rightside'),s=r.find('.store[id="'+i+'"] .printbutton');u.push(LifeCycleSystem.html(f.find(".dimensions"),e.html()));u.push(LifeCycleSystem.replace(f.find(".rightside"),o));u.push(LifeCycleSystem.replace(f.find(".printbutton"),s))}),$.when.apply($,u).then(function(){i=t.currentSelectedStoreElement.attr("id");var n=r.find(".wws-title"),u=t.workwearStoreAvailability.
find('.store[id="'+i+'"] .printbutton');LifeCycleSystem.replace(t.workwearStoreAvailability.find(".wws-title"),n);LifeCycleSystem.html($("#print-store"),u.html());t.initializeWorkwearstore()}))})},n.prototype.initializeWorkwearstore=function(){this.setAjaxLinks()},n.prototype.destroy=function(){},n}();n.WorkwearStoreAvailabilityController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="workwearstore-availability",t.query=".workwearstore-availability",t.controller=n.WorkwearStoreAvailabilityController,t}();n.WorkwearStoreAvailabilityComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return Object.defineProperty(t.prototype,"ajax",{get:function(){return DependencySystem.resolve(WebData.Ajax)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formsManipulator",{get:function(){return DependencySystem.
resolve(n.FormsManipulator)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formAnalyzer",{get:function(){return DependencySystem.resolve(n.FormAnalyzer)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modalService",{get:function(){return DependencySystem.resolve(Modals.Service)},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){this.initializeInContext($("body"))},t.prototype.initializeInContext=function(n){var t=this,i=this,r;r=n.is("form")?n:n.find("form.ajaxform");r.each(function(n,r){var u=$(r),s=u.attr("action"),h=u.data("ajaxtarget"),f=u.find("button[type = submit]:not( [data-formid] ).submit-button"),o=f.data("disableUntilFormLoads"),e;o&&o.toLowerCase()==="true"&&f.removeClass("disabled").removeAttr("disabled");e=t.formAnalyzer.supportsEnablingSubmitOnInputChanges(u,f);e&&t.formsManipulator.enableSubmitOnInputChanges(u,f);f.on("click",function(n){var c;if(f.hasClass("disabled"))return!1;f.addClass("disabled");var t=f.attr("formaction"),r=f.data(
"ajaxtarget"),o=r?r:h;return!t&&o?(n.preventDefault(),c=_.debounce(function(n){i.loadAndProcessNewFormContents(o,u,n,e)},3e3,!0),c(f),!1):(i.showLoader(u),n.preventDefault(),u.attr("action",t),u.submit(),u.attr("action",s),!1)})})},t.prototype.loadAndProcessNewFormContents=function(n,t,i,r){var f=this,u,e;r===void 0&&(r=!1);this.showLoader(t);u=new Common.InputDisablingHelper;e=u.disableInvisibleInputs(t);this.ajax.doRequest({method:t.attr("method")||"POST",url:n,data:t.serialize()},{modal:!0}).always(function(){u.reEnableInvisibleInputs(e)}).then(function(n){f.processNewFormContents(t,n,i,r)},function(u){f.processFormContentLoadingFailure(t,n,u,i,r)})},t.prototype.processNewFormContents=function(n,t,i,r){var f=this,u=ajaxDomHelper.getNamedObjectValueFromArray("ajaxform",t),e=ajaxDomHelper.getNamedObjectValueFromArray("modal",t),o=u?!1:!0;this.closeModalsIfNecessary(o).then(function(){u&&f.rebuildAjaxform(n,$(u));e&&f.openAjaxFormModal($(e));var i=t.preprocessingReport.iframe||t.preprocessingReport.modal||typeof
u!="undefined";i&&f.hideLoader(n)});$("input[name = previousStatusCode]").remove();t.preprocessingReport.redirect||this.handleButtonVisibility(i,r)},t.prototype.processFormContentLoadingFailure=function(n,t,i,r,u){var f=this;this.handleButtonVisibility(r,u);this.addPreviousStatusIndicator(n,i.status);i.status===449?setTimeout(function(){f.loadAndProcessNewFormContents(t,n,r)},5e3):this.hideLoader(n)},t.prototype.handleButtonVisibility=function(n,t){t?n.addClass("dimmed"):setTimeout(function(){n.removeClass("disabled")},1e3)},t.prototype.closeModalsIfNecessary=function(n){if(!n)return $.Deferred().resolve().promise();var t=$.Deferred();return modalManager.closeModals({completed:function(){t.resolve()}}),t.promise()},t.prototype.rebuildAjaxform=function(t,i){var r=this;t.html(i.html());selectBoxHandler.initializeInContext(t);radioGroupAccordionHandler.initializeInContext(t);DependencySystem.resolveInContext(n.AddressComponent,t).andBindItToDom().postConstruct();paymentTypesHandler.initializeInContext(t);DependencySystem.
resolveInContext(n.SubmitButtonComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.InputComponent,t).andBindItToDom().postConstruct();inputDataTypesHandler.initializeInContext(t);inputTypesHandler.initializeInContext(t);DependencySystem.resolveInContext(n.CustomertypeContainerComponent,t).andBindItToDom();DependencySystem.resolveInContext(n.CustomertypeSelectComponent,t).andBindItToDom();DependencySystem.resolveInContext(n.MailToComponent,t).andBindItToDom();typeof inputClearButtons!="undefined"&&inputClearButtons.initializeInContext(t);DependencySystem.resolveInContext(n.DropdownGroupComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.DropdownComponent,t).andBindItToDom().postConstruct();dropdownTypeaheadHandler.initializeInContext(t);scrollableBlock.initializeInContext(t);buttonHandler.initializeInContext(t);DependencySystem.resolveInContext(n.CatalogSelector,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.SalesTaxNoInputComponent,
t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.TradeRegisterNoInputComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.CheckboxPullDownComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.CopyTemplateAddButtonComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.CopyTemplateRemoveButtonComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.TooltipComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.NewsletterEmailInputComponent,t).andBindItToDom().postConstruct();DependencySystem.resolveInContext(n.DateSelectorComponent,t).andBindItToDom().postConstruct();addressSelect.initializeInContext(t);modalManager.initModalLinks(t);this.initializeInContext(t);formFieldBinder.initialize();t.parents("footer").length===0&&_.delay(function(){r.scrollToFirstError(t)},300)},t.prototype.openAjaxFormModal=function(n){modalManager.openModal(n);this.initializeInContext(
n)},t.prototype.scrollToFirstError=function(n){if(n.find(".error").length>0&&!modalManager.isInsideModal(n)){var t=n.find(".error:visible").first(),i=t.find(".qtip-red"),r={duration:500,offset:-230};i.length>0?i.velocity("scroll",r):t.velocity("scroll",r)}},t.prototype.addPreviousStatusIndicator=function(n,t){$("input[name = previousStatusCode]").length==0&&n.append('<input type="hidden" name="previousStatusCode" />');$("input[name = previousStatusCode]").val(t.toString())},t.prototype.showLoader=function(n){var t=n.data("loader-text");this.isShowLoader(n)&&loadingSpinner.show("lightmodal",!0,t)},t.prototype.hideLoader=function(n){this.isShowLoader(n)&&loadingSpinner.hide()},t.prototype.isShowLoader=function(n){return utils.getBoolean(n.data("show-loader"))},t}();n.AjaxFormHandler=t}(PageElements||(PageElements={}));ajaxFormHandler=new PageElements.AjaxFormHandler;$(document).ready(function(){componentManager.registerAndInitComponent(ajaxFormHandler)}),function(n){var t=function(){function n(n,t,i,r){t===void
0&&(t=500);i===void 0&&(i=450);this.gallery3DElement=n;this.width=t;this.height=i;this.flashTarget=this.gallery3DElement.data("flashtarget");this.fsiTarget=this.gallery3DElement.data("fsitarget");this.culture=this.gallery3DElement.data("culture");this.fsiId=this.gallery3DElement.data("fsiid");this.elementRepository=Common.ElementRepository.getInstance();this.startFsi().done(function(){r&&r()})}return n.prototype.startFsi=function(){return this.gallery3DElement.removeClass("display-none"),this.elementRepository.html().hasClass("3DViewHTML5only")?this.showHtmlFsi():sniff.hasFlash()&&sniff.isDesktop?this.showFlashFsi():this.showHtmlFsi()},n.prototype.showFlashFsi=function(){var t=this,n=$.Deferred(),i=function(i){t.swfLoadingHandler(i,function(){n.resolve()},function(){n.resolve()})};return swfobject.switchOffAutoHideShow(),swfobject.embedSWF(this.flashTarget,"fsiviewer",this.width,this.height,"7.0.0","",{},{wmode:"transparent",allowFullScreen:"true"},{},i),n.promise()},n.prototype.showHtmlFsi=function(){var r=this,
i=$.Deferred(),n=FSIModule.getInstance(),t;if(n.isInit=!1,n.fsiContainerWidth=this.width,n.fsiContainerHeight=this.height,t=this.gallery3DElement.find(".fsiviewer"),t.css({height:this.height+"px",width:this.width+"px",position:"relative"}),n.init(t[0],"FSIModule"),n.configBaseLanguage=this.culture,sniff.isHandheld){t.one("rotationStarted",function(){r.fsiRotationStarted().done(function(){i.resolve()})});this.gallery3DElement.find(".overlay .icon3d").click(function(){r.fsiStartRotation()})}else t.one("rotationStarted",function(){i.resolve()});return n.showFSI({id:this.fsiTarget}),i.promise()},n.prototype.fsiRotationStarted=function(){var t=this,n=$.Deferred(),i=FSIModule.getInstance();return i.stopRotation(),setTimeout(function(){t.fsiStartRotation().done(function(){n.resolve()})},1e3),n.promise()},n.prototype.fsiStartRotation=function(){var n=$.Deferred(),t=FSIModule.getInstance();this.gallery3DElement.one("rotationStarted",function(){n.resolve()});return t.startRotation(),this.gallery3DElement.find(".overlay").
hide(),n.promise()},n.prototype.swfLoadingHandler=function(n,t,i){if(!n.success||!n.ref)return i(),!1;_.delay(function(){if(typeof n.ref.PercentLoaded=="function"&&n.ref.PercentLoaded())var r=setInterval(function(){try{n.ref.PercentLoaded()===100&&(t(),clearInterval(r))}catch(i){typeof n.ref.PercentLoaded!="function"&&clearInterval(r)}},1500);else i()},200)},n.initializeAll=function(t,i,r){var u,f;t===void 0&&(t=500);i===void 0&&(i=450);u={onFsiStarted:function(){},onEachFsiStarted:function(){}};$.extend(u,r);f=[];$(".gallery3d").each(function(r,e){var c=$(e).closest(".gallery-container").length>0,h=$.Deferred(),o,s;f.push(h);o=t;s=i;c&&(o=600,s=466);new n($(e),o,s,function(){u.onEachFsiStarted();h.resolve()})});$.when.apply($,f).done(function(){u.onFsiStarted()})},n}();n.Gallery3DHandler=t}(PageElements||(PageElements={}));$().ready(function(){PageElements.Gallery3DHandler.initializeAll()}),function(n){var t=function(){function n(n){this.modelSwitcherElement=n;this.setModelSwitcherWidth(this.modelSwitcherElement)}
return n.prototype.setModelSwitcherWidth=function(n){var t=0,i=n.find(".model"),r;i.each(function(n,i){var u=$(i),r;u.css("width","");r=u.width();t<r&&(t=r)});r=4;t=t+r;i.width(t)},n}(),i;n.ModelSwitcherHandler=t;i=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){n.find(".model-switcher").each(function(n,i){new t($(i))})},n}();n.InitializeModelSwitcherHandler=i}(PageElements||(PageElements={}));initializeModelSwitcherHandler=new PageElements.InitializeModelSwitcherHandler;initializeModelSwitcherHandler.initialize(),function(n){var t=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){var i=this,t=$(),u=n.find("[data-inputtypes]"),r;u.each(function(n,i){var r=$(i);t=t.add(r.find("input").data("type",r.data("inputtypes")))});r=n.find("input[data-type], input[pattern]");t=t.add(r);t.each(function(n,t){var r=$(t),u=r.data("type"),
f=r.attr("pattern");if(u!=""||f!=""){if(f=="[0-9]*"){i.handlePositiveNumbers(r);return}switch(u){case"positive-numbers":i.handlePositiveNumbers(r)}}})},n.prototype.handlePositiveNumbers=function(n){var t=this;n.on("keydown",function(n){var i=utils.getKeyCode(n);t.isAllowedSpecialKey(i)||t.isNumberKey(i)||n.preventDefault();n.ctrlKey==!1&&i==Key.V&&n.preventDefault()});n.on("keypress",function(n){var i=utils.getKeyCode(n);t.isAllowedSpecialKey(i)||t.isNumberKey(i)||n.preventDefault();(n.charCode==Key.LEFT_ARROW||n.ctrlKey==!1&&i==Key.V)&&n.preventDefault()})},n.prototype.isNumberKey=function(n){return n>=Key._0&&n<=Key._9||n>=Key.NUM_PAD_0&&n<=Key.NUM_PAD_9},n.prototype.isAllowedSpecialKey=function(n){return n==Key.ENTER||n==Key.ESCAPE||n==Key.LEFT_ARROW||n==Key.RIGHT_ARROW||n==Key.BACKSPACE||n==Key.DELETE||n==Key.INSERT||n==Key.TAB||n==Key.V||n==Key.SHIFT},n}();n.InputDataTypesHandler=t}(PageElements||(PageElements={}));inputDataTypesHandler=new PageElements.InputDataTypesHandler;$(document).ready(function(){
componentManager.registerAndInitComponent(inputDataTypesHandler)}),function(n){var t=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext(Common.ElementRepository.getInstance().body())},n.prototype.initializeInContext=function(n){n.find("textarea").each(function(n,t){sniff.isIPad&&typeof fixes.iPadPositionFixedWithKeyboard=="function"&&fixes.iPadPositionFixedWithKeyboard($(t))})},n}();n.InputTypesHandler=t}(PageElements||(PageElements={}));inputTypesHandler=new PageElements.InputTypesHandler;$(document).ready(function(){componentManager.registerAndInitComponent(inputTypesHandler)}),function(n){var t=function(){function n(){var n=$("body");this.handleAjaxTarget(n)}return n.prototype.handleAjaxTarget=function(n){n.on("change",".radiogroup input[type=radio]",function(n){var t=$(n.target).data("ajaxtarget");t&&$.get(t)})},n}();n.Radiogroup=t}(PageElements||(PageElements={}));new PageElements.Radiogroup,function(n){var t=function(){function n(n){this.footerClosedHeight=38;this.
isStartPage=utils.isStartpage();this.isCompanyPage=utils.isCompanypage();this.isParallaxPage=utils.isParallaxpage();this.isPrintPage=utils.isPrintpage();this.contentContainer=n;this.elements=Common.ElementRepository.getInstance();this.isStartPage||(this.isCompanyPage&&sniff.isHandheld&&(this.companySideNav=this.contentContainer.find(".category-subnav"),this.companyInnerContent=this.contentContainer.find(".custom-col + .custom-col")),this.delayedResize(),this.initPositionFooter())}return n.prototype.initialize=function(){},n.prototype.initializeInContext=function(){},n.prototype.delayedResize=function(){setTimeout(function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged)},50)},n.prototype.resize=function(){this.isCompanyPage&&sniff.isHandheld&&this.companyInnerContent.css("height","");this.contentContainer.css("min-height","");this.contentHeight=this.contentContainer.outerHeight();this.positionFooter()},n.prototype.initPositionFooter=function(){var t=this,n;this.contentContainerMarginTop=parseInt(
this.contentContainer.css("margin-top"))||0;this.contentHeight=this.contentContainer.outerHeight();this.footerHeight=$("footer .bottom-navigation-vertical").outerHeight()||0;this.isCompanyPage&&(this.contentTop=this.contentContainer.find(".content-top"),this.scrollableBlock=this.contentContainer.find(".block.scrollable.company-content"));this.positionFooter();n=_.debounce(function(){t.resize()},20);this.elements.window().on("resize",function(){n()});eventAggregator.subscribe(Common.EventNames.PageLayoutChanged,n.bind(this))},n.prototype.positionFooter=function(){this.isParallaxPage||this.isPrintPage||(this.windowHeight=this.elements.window().height(),this.isCompanyPage?this.calculateCompanyValues():this.calculateCommonValues())},n.prototype.calculateCommonValues=function(){this.contentHeight+this.footerHeight<this.windowHeight&&(this.newContentHeight=this.windowHeight-this.footerHeight-this.contentContainerMarginTop,this.contentContainer.css("min-height",this.newContentHeight));this.contentHeight>this.windowHeight&&
this.contentContainer.css("min-height","")},n.prototype.calculateCompanyValues=function(){var i,n,t;sniff.isHandheld?this.companyInnerContent.height()<this.companySideNav.height()&&this.companyInnerContent.css("height",this.companySideNav.height()):(i=this.contentTop.outerHeight(),n=this.windowHeight-parseInt(this.contentContainer.css("padding-top"))-i-this.footerClosedHeight,sniff.isIPad&&(n-=20),t=parseInt(this.scrollableBlock.css("margin-top")),this.scrollableBlock.css("height",n-(t?t:0)))},n}();n.FooterPositionHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){footerPositionHandler=new PageElements.FooterPositionHandler($("body > .container > .inner-container"));componentManager.registerComponent(footerPositionHandler)}),function(n){var t=function(){function t(){(this.isStartpage=utils.isStartpage(),this.isCompanypage=utils.isCompanypage(),this.isPlainHiddenFooterpage=utils.isPlainHiddenFooterpage(),this.stickyOverlay=$('<div class="sticky-overlay"><\/div>'),this.stickyOverlayGradient=
$('<div class="sticky-overlay-gradient"><\/div>'),this.hasFilterBar=!1,this.hasNonStickyFilterBar=!1,this.isAwareness=!1,this.headerSliderIsOpen=!1,this.hasHeaderSlider=!1,this.hasContentTop=!1,this.hasAccordion=!1,this.hasStickyOverlay=!1,this.headerSliderMarginOpen=47,this.headerSliderMarginClosed=37,this.filterBarPinningOffsetWithSlider=75,this.filterBarHeadImageMargin=10,this.handheldFilterBarTopValue=130,this.flyoutOffset=39,this.elementRepository=n.ElementRepository.getInstance(),this.hasNoClaim=this.elementRepository.html().hasClass("no-claim"),this.pageContent=this.elementRepository.body().find(".container > .inner-container"),this.subscribeToEventaggregator(),this.isStartpage||this.isCompanypage||this.isPlainHiddenFooterpage||sniff.isHandheld)||(this.initialize(),this.initPageScrolling())}return t.prototype.subscribeToEventaggregator=function(){var t=this;eventAggregator.subscribe(n.EventNames.PageScrollToArticleList,function(){t.scrollToArticleList()});eventAggregator.subscribe(n.EventNames.PageLayoutChanged,
function(){t.resize()})},t.prototype.initialize=function(){this.isStartpage||this.isCompanypage||this.isPlainHiddenFooterpage||sniff.isHandheld||(this.updateScrollableElements(),this.updateScrollableElementVariables(),this.elementRepository.window().trigger("scroll"))},t.prototype.initializeInContext=function(){},t.prototype.resize=function(){this.isStartpage||this.isCompanypage||sniff.isHandheld||(this.updateContentMargins(),this.updateScrollableElementVariables())},t.prototype.initPageScrolling=function(){var t=this;this.hasFilterBar&&!this.isAwareness&&((this.generateBackgroundGradient(),this.hasNoClaim)||(this.setInitialTopValues(),this.desktopScrollingHandler(),this.elementRepository.window().trigger("scroll"),eventAggregator.subscribe(n.EventNames.HeadSliderFadedOut,function(){t.pageContent.css("padding-top","")})))},t.prototype.updateScrollableElements=function(){this.filterBarElement=this.pageContent.find("section.filter-bar:not(.awareness,.non-sticky)");this.hasNonStickyFilterBar=this.pageContent.find(
"section.filter-bar.non-sticky").length>0;this.hasFilterBar=this.filterBarElement.length>0;this.isAwareness=this.filterBarElement.filter(".awareness, .non-sticky").length>0;this.accordionElement=this.pageContent.find("section.filter-bar-options:not( .productfilter, .non-sticky )");this.hasAccordion=this.accordionElement.length>0;this.headerSliderElement=this.pageContent.find(".shopcontent > .sliderelement");this.hasHeaderSlider=this.headerSliderElement.length>0;this.contentTop=this.pageContent.find(".content-top");this.hasContentTop=this.contentTop.length>0},t.prototype.updateScrollableElementVariables=function(){this.hasFilterBar&&(this.filterBarElementHeight=this.filterBarElement.height(),this.stickyOverlayHeightExtension=parseInt(this.filterBarElement.data("filter-height-extension")),this.filterBarPinningOffset=parseInt(this.filterBarElement.data("filter-bar-pinning-offset")),this.scrollToFilterCorrection=parseInt(this.filterBarElement.data("scroll-to-filter-correction")),this.defaultScrollTopFactor=parseFloat(
this.filterBarElement.data("default-scroll-top-factor")),this.defaultScrollTopRatio=parseFloat(this.filterBarElement.data("default-scroll-top-ratio")),this.fixDockingCorrection=parseFloat(this.filterBarElement.data("fix-docking-correction")),this.headerSliderHeightAdjust=parseInt(this.filterBarElement.data("header-slider-height-adjust")));this.hasAccordion&&(this.accordionElementHeight=this.accordionElement.height(),this.flyoutOffset=parseInt(this.accordionElement.data("flyout-offset")));this.hasHeaderSlider&&(this.headerSliderMarginOpen=parseInt(this.headerSliderElement.data("header-slider-margin-open")),this.filterBarHeadImageMargin=parseInt(this.headerSliderElement.data("filter-bar-head-image-margin")),this.filterBarPinningOffsetWithSlider=this.headerSliderElement.data("filter-bar-pinning-offset-with-slider"),this.handheldFilterBarTopValue=this.headerSliderElement.data("handheld-filter-bar-top-value"),this.headerSliderElementHeight=this.headerSliderElement.height(),this.headerSliderIsOpen=this.headerSliderElement.
hasClass("open"),this.headerSliderMargin=this.headerSliderIsOpen?this.headerSliderMarginOpen:this.headerSliderMarginClosed);this.hasContentTop&&(this.contentTopHeight=this.contentTop.height());this.filterTab=this.pageContent.find(".filter-bar .tab.filter")},t.prototype.setInitialTopValues=function(){this.initialPageContentPadding=parseInt(this.pageContent.css("padding-top"));this.initialStickyOverlayGradientTop=parseInt(this.stickyOverlayGradient.css("top"));this.initialStickyOverlayHeight=parseInt(this.stickyOverlay.css("height"));this.initialFilterBarTop=parseInt(this.filterBarElement.css("top"));this.hasHeaderSlider&&this.headerSliderElement.hasClass("loader-visible")&&(this.initialFilterBarTop=this.handheldFilterBarTopValue);this.hasAccordion&&(this.initialFilterTop=parseInt(this.accordionElement.css("top")))},t.prototype.desktopScrollingHandler=function(){var n=this;this.elementRepository.window().on("scroll",function(){n.scrollTop=n.elementRepository.document().scrollTop();n.gradientScrolling();n.elementScrolling(
n.filterBarElement,n.initialFilterBarTop,0,n.defaultScrollTopFactor,n.defaultScrollTopRatio);(n.hasContentTop||n.hasHeaderSlider||n.hasAccordion)&&n.contentPaddingScrolling();n.hasAccordion&&n.elementScrolling(n.accordionElement,n.initialFilterTop,n.flyoutOffset,n.defaultScrollTopFactor,n.defaultScrollTopRatio);n.handleFilterTab()})},t.prototype.handleFilterTab=function(){typeof filterbarAccordionHandler!="undefined"&&(this.handleFilterTabSetVariables(),eventAggregator.publish(n.EventNames.FilterBarFilterTabSetVisibility))},t.prototype.handleFilterTabSetVariables=function(){var t=0,n;this.hasNonStickyFilterBar?n=!0:this.headerSliderIsOpen?(t=this.headerSliderElementHeight+this.filterBarHeadImageMargin+this.initialPageContentPadding,n=this.scrollTop<=t):n=this.scrollTop==0;filterbarAccordionHandler.pageScrollOffset=t;this.filterIsScrolledIn=n},t.prototype.isFilterScrolledIn=function(){return sniff.isHandheld?!0:(_.isUndefined(this.filterIsScrolledIn)&&this.handleFilterTabSetVariables(),this.filterIsScrolledIn)}
,t.prototype.gradientScrolling=function(){if(this.scrollTop>this.filterBarPinningOffset*this.defaultScrollTopFactor-this.fixDockingCorrection){this.filterBarElement.hasClass("fixed")||(this.stickyOverlayGradient.css("top",this.filterBarPinningOffset+this.stickyOverlayHeightExtension),this.stickyOverlayGradient.addClass("fixed"),this.stickyOverlay.css("height",this.filterBarPinningOffset+this.stickyOverlayHeightExtension),this.stickyOverlay.addClass("fixed"));return}this.stickyOverlayGradient.removeClass("fixed");this.stickyOverlay.removeClass("fixed");this.stickyOverlayGradient.css("top",this.initialStickyOverlayGradientTop+Math.round(this.scrollTop/this.defaultScrollTopRatio));this.stickyOverlay.css("height",this.initialStickyOverlayHeight+Math.round(this.scrollTop/this.defaultScrollTopRatio));sniff.isWebkit&&_.isFunction(fixes.forceElementRepaint)&&fixes.forceElementRepaint(this.stickyOverlayGradient)},t.prototype.contentPaddingScrolling=function(){var n=this.accordionElement.hasClass("open"),t=this.filterBarElement.
hasClass("fixed");if(this.hasContentTop||this.headerSliderIsOpen||n){if(this.scrollTop<this.filterBarPinningOffset*this.defaultScrollTopFactor){this.hasHeaderSlider&&(this.headerSliderIsOpen&&this.pageContent.css("padding-top",this.initialPageContentPadding+Math.round(this.scrollTop/this.defaultScrollTopRatio)),this.headerSliderElement.css("margin-bottom",this.headerSliderMargin));!n||this.hasHeaderSlider&&this.headerSliderIsOpen||this.pageContent.css("padding-top",this.initialPageContentPadding);return}if(t||(this.headerSliderElement.css("margin-bottom",this.headerSliderMargin),this.pageContent.css("padding-top",this.initialPageContentPadding+(this.initialPageContentPadding-this.filterBarElementHeight-this.filterBarHeadImageMargin))),this.headerSliderIsOpen&&t&&n){this.headerSliderElement.css("margin-bottom",this.headerSliderMargin);return}if(t&&n){this.pageContent.css("padding-top",this.initialPageContentPadding+this.accordionElementHeight);return}}else(this.hasAccordion&&!n||this.hasHeaderSlider&&!this.headerSliderIsOpen)&&
this.headerSliderElement.css("margin-bottom",this.headerSliderMargin)},t.prototype.elementScrolling=function(n,t,i,r,u){var f=0,e=this.filterBarPinningOffset*r,o=Math.round(this.scrollTop/u),s;if(this.headerSliderIsOpen&&(f=this.headerSliderElementHeight+this.filterBarHeadImageMargin,this.scrollTop>e&&(o=this.filterBarPinningOffsetWithSlider+this.filterBarElementHeight),f+=this.headerSliderHeightAdjust,e+=this.headerSliderElementHeight+this.filterBarHeadImageMargin),this.scrollTop>e-this.fixDockingCorrection){n.hasClass("fixed")||(s=this.filterBarPinningOffset+i,n.css("top",s),n.addClass("fixed"));return}n.removeClass("fixed");this.headerSliderIsOpen&&n.css("position")=="relative"&&(o=0,f=0);n.css("top",t+f+o)},t.prototype.updateContentMargins=function(){this.hasAccordion&&this.hasHeaderSlider&&this.headerSliderIsOpen&&this.headerSliderElement.css("margin-bottom",this.headerSliderMargin+this.accordionElement.height())},t.prototype.generateBackgroundGradient=function(){var n,i,r,t,u;for(this.filterBarElement.after(
this.stickyOverlay).after(this.stickyOverlayGradient),n=[this.stickyOverlay.css("background-image"),this.stickyOverlay.css("background-color")],i=$('<div class="body-bg" />').css("background-color",n[1]),n[0]!="none"&&i.css("background-image",n[0]),r=this.stickyOverlayGradient.height(),t=0;t<r;t++)u=1-t*(1/r),this.stickyOverlayGradient.append(i.clone().css("opacity",u));this.hasStickyOverlay=!0},t.prototype.positionFilterBarWithHeaderSlider=function(n,t){t?(this.updateScrollableElementVariables(),this.filterBarElement.removeClass("fixed"),this.elementRepository.window().trigger("scroll")):this.filterBarElement.css("top",this.initialFilterBarTop+n)},t.prototype.scrollToArticleList=function(){var n=this.elementRepository.shopcontent().find(".articlelist").offset().top;sniff.isHandheld||(n-=this.scrollToFilterCorrection);this.elementRepository.html().velocity("scroll",{offset:n,duration:1500,easing:"easeInOutQuart",mobileHA:!1})},t}();n.PageScrollingHandler=t}(Common||(Common={}));pageScrollingHandler=new Common.
PageScrollingHandler;componentManager.registerComponent(pageScrollingHandler),function(n){var t=function(){function t(n){this.autoplay=3e3;this.ajax=DependencySystem.resolve(WebData.Ajax);this.removedSlides=[];this.carouselSwiper=n;this.swiperContainer=n.find(".swiper-container");this.nextButton=this.swiperContainer.find(".arrow.arrow-right");this.prevButton=this.swiperContainer.find(".arrow.arrow-left");this.carouselSwiperOptions={loop:!0,slidesPerView:4,slidesPerGroup:4,speed:4230,autoplay:this.autoplay,noSwiping:!1,onTouchStart:function(n){n.params.speed=1e3},onTransitionEnd:function(n){n.params.speed=4230},onInit:this.initializeFreezer(),nextButton:this.nextButton,prevButton:this.prevButton,autoplayDisableOnInteraction:!1};this.carousel3Col={loop:!0,slidesPerView:3,slidesPerGroup:3,speed:3e3,autoplay:this.autoplay,noSwiping:!1,onTouchStart:function(n){n.params.speed=1e3},onTransitionEnd:function(n){n.params.speed=3e3},onInit:this.initializeFreezer(),nextButton:this.nextButton,prevButton:this.prevButton,autoplayDisableOnInteraction:
!1};this.firstStart();this.pauseOnHover()}return t.prototype.pauseOnHover=function(){var n=this;this.carouselSwiper.on("mouseover.carousel",function(){n.stop()}).on("mouseleave.carousel",function(){n.start()})},Object.defineProperty(t.prototype,"isHovered",{get:function(){return this.carouselSwiper.is(":hover")},enumerable:!0,configurable:!0}),t.prototype.initializeFreezer=function(){var n=this;this.freezer=Common.Freezer.createInstance();this.freezer.introduce(this.carouselSwiper,function(){n.stop()},function(){n.start()},function(){return n.swiperElement.autoplaying||n.isHovered})},t.prototype.firstStart=function(){var n=this,t=this.swiperContainer.find(".swiper-wrapper").data("ajaxtarget");this.initCarousel();t!=""&&_.delay(function(){n.loadAjaxContent(n.swiperContainer,t)},1e3);this.start()},t.prototype.isThreeColMode=function(){return this.swiperContainer.find(".swiper-wrapper").hasClass("functional-accordion")||$("html").hasClass("sidenav-pinned")},t.prototype.initCarousel=function(){this.recreateCorrectSlideCountForGroupCount(
this.isThreeColMode()?3:4);this.swiperElement=new Swiper(this.swiperContainer,this.isThreeColMode()?this.carousel3Col:this.carouselSwiperOptions);this.swiperContainer.on("mousemove",this.mouseMoveFixCallback.bind(this));eventAggregator.subscribe(Common.EventNames.ArticlesFilterCloseComplete,this.stuckAnimationFix.bind(this))},t.prototype.mouseMoveFixCallback=function(n){var t=n.clientX==this.lastMouseX&&n.clientY==this.lastMouseY;this.lastMouseX=n.clientX;this.lastMouseY=n.clientY;t&&(n.preventDefault(),n.stopPropagation())},t.prototype.loadAjaxContent=function(t,i){var r=this;(t.find(".swiper-wrapper").data("ajaxtarget",""),typeof i!="undefined")&&i&&this.ajax.get({url:i}).then(function(t){var f=ajaxDomHelper.getNamedObjectValueFromArray("carousel",t),i,u;f&&(i=$(f),r.swiperContainer.find(".swiper-wrapper").append(i.find(".swiper-wrapper .swiper-slide")),DependencySystem.resolveInContext(n.PriceModeDependantElementComponent,r.swiperContainer),r.reInitInPlace(),u=i.find(".swiper-wrapper").data("ajaxtarget"),u!==
""&&_.delay(function(){r.loadAjaxContent(i,u)},1e3))})},t.prototype.stop=function(){this.swiperElement&&this.swiperElement.stopAutoplay()},t.prototype.start=function(){this.swiperElement&&!this.freezer.isFrozen&&this.swiperElement.startAutoplay()},t.prototype.startIfVisible=function(){this.swiperElement&&this.swiperContainer.is(":visible")&&!this.freezer.isFrozen&&this.swiperElement.startAutoplay()},t.prototype.getRealActiveIndex=function(){return $(this.swiperElement.slides[this.swiperElement.activeIndex]).data("swiper-slide-index")},t.prototype.recreateCorrectSlideCountForGroupCount=function(n){var o=this,r,t,e;if(this.swiperContainer.find(".swiper-slide-duplicate").remove(),r=this.swiperContainer.find(".swiper-wrapper"),this.removedSlides.length>0){for(t=0;t<this.removedSlides.length;t++)r.append(this.removedSlides[t]);this.removedSlides=[]}var u=this.swiperContainer.find(".swiper-slide"),i=u.length,f=i%n;return f===0||i<n?i-this.removedSlides.length:(e=u.slice(f*-1),e.each(function(n,t){o.removedSlides.push(
t.outerHTML);$(t).remove()}),i-this.removedSlides.length)},t.prototype.changeCarouselMode=function(n){var r,t,i,u;this.swiperElement&&(r=this.getRealActiveIndex(),this.swiperElement.destroy(!0,!0),i=this.recreateCorrectSlideCountForGroupCount(n),n==4?(this.swiperContainer.removeClass("small-carousel"),this.carouselSwiper.removeClass("small-carousel-position"),t=this.updateCarousel4ColOptions(i,n)):(this.swiperContainer.addClass("small-carousel"),this.carouselSwiper.addClass("small-carousel-position"),t=this.updateCarousel3ColOptions(i,n)),this.swiperElement=new Swiper(this.swiperContainer,n==3?this.carousel3Col:this.carouselSwiperOptions),u=this.swiperContainer.find('[data-swiper-slide-index="'+r+'"]:not(.swiper-slide-duplicate)').index(),this.swiperElement.slideTo(u,0,!1),t?this.stop():this.start(),this.initializeFreezer())},t.prototype.updateCarousel3ColOptions=function(n,t){return t==3&&n==t?(this.carousel3Col.nextButton=null,this.carousel3Col.prevButton=null,this.carousel3Col.simulateTouch=!1,this.carousel3Col.
autoplay=null,this.carouselSwiper.addClass("dissable-hover"),!0):(this.carousel3Col.nextButton=this.nextButton,this.carousel3Col.prevButton=this.prevButton,this.carousel3Col.simulateTouch=!0,this.carousel3Col.autoplay=this.autoplay,this.carouselSwiper.removeClass("dissable-hover"),!1)},t.prototype.updateCarousel4ColOptions=function(n,t){return n<=t?(this.carouselSwiperOptions.nextButton=null,this.carouselSwiperOptions.prevButton=null,this.carouselSwiperOptions.simulateTouch=!1,this.carouselSwiperOptions.autoplay=null,this.carouselSwiper.addClass("dissable-hover"),!0):(this.carouselSwiperOptions.nextButton=this.nextButton,this.carouselSwiperOptions.prevButton=this.prevButton,this.carouselSwiperOptions.simulateTouch=!0,this.carouselSwiperOptions.autoplay=this.autoplay,this.carouselSwiper.removeClass("dissable-hover"),!1)},t.prototype.reInitInPlace=function(){this.changeCarouselMode(this.swiperContainer.hasClass("small-carousel")?3:4)},t.prototype.stuckAnimationFix=function(){this.swiperElement.animating&&this.reInitInPlace(
)},t}(),i;n.Carousel=t;i=function(){function n(){this.shopcontentSelector=".shopcontent";this.carouselSwiperSelector=".carousel-swiper";this.carousels=[]}return n.prototype.initialize=function(){this.shopcontent=$(this.shopcontentSelector);this.initializeInContext(this.shopcontent)},n.prototype.initializeInContext=function(n){var i=this;n.find(this.carouselSwiperSelector).each(function(n,r){i.carousels.push(new t($(r)))})},n.prototype.updateCarousels=function(){$.each(this.carousels,function(n,t){t.swiperElement.update()})},n.prototype.pauseAll=function(){$.each(this.carousels,function(n,t){t.stop()})},n.prototype.stopAll=function(){var n=this;$.each(this.carousels,function(t,i){i.stop();n.shopcontent.off("mouseover.carousel").off("mouseleave.carousel")})},n.prototype.changeCarouselMode=function(n){$.each(this.carousels,function(t,i){i.changeCarouselMode(n)})},n.prototype.startAll=function(){$.each(this.carousels,function(n,t){t.stop();t.start()})},n.prototype.startAllVisible=function(){$.each(this.carousels,
function(n,t){t.stop();t.startIfVisible()})},n}();n.CarouselManager=i}(PageElements||(PageElements={}));$().ready(function(){carouselManager=new PageElements.CarouselManager;componentManager.registerAndInitComponent(carouselManager)}),function(n){var t=function(){function n(){this.columns=3}return n.prototype.prepareAwareness=function(n){(this.isAwareness=n.closest(".articlelist").hasClass("awareness"),this.isAwareness)&&(this.awarenessMenuHeight=n.closest(".container-area").find(".filter-bar .awareness-keywords").height(),this.addTileMargins(n.find(".article-tile")))},n.prototype.addTileMargins=function(n){for(var i=n.first().outerHeight(!0),r=Math.ceil((this.awarenessMenuHeight-4)/i),t=0;t<r;t++)$(n[t*(this.columns-1)]).addClass("skip-one-column")},n}();n.ArticleListAwarenessMenuService=t;DependencySystem.define(t).as(DS.Singleton)}(Category||(Category={})),function(n){var t=function(){function n(n){this.elementRepository=n;this.articleListSelector=".articlelist";this.pricemodeDataAttributeName="data-pricemode-par";
this.pricemodeDataName="pricemode-par";this.readPricemodeParameter()}return n.prototype.readPricemodeParameter=function(){var t=this.elementRepository.shopcontent().find(this.articleListSelector+"["+this.pricemodeDataAttributeName+"]"),n;t.length&&(n=t.data(this.pricemodeDataName),n&&(this.pricemodeParameter=n))},Object.defineProperty(n.prototype,"pricemodeParameterName",{get:function(){return this.pricemodeParameter},enumerable:!0,configurable:!0}),n}();n.ArticleListDataService=t;DependencySystem.define(t).as(DS.Singleton).andInject([Common.ElementRepository])}(Category||(Category={})),function(n){var t=function(){function n(){this.soldoutImageSelector=".articlelist .soldout-image";this.soldoutImage=$(this.soldoutImageSelector)}return Object.defineProperty(n.prototype,"image",{get:function(){return this.soldoutImage.clone(!1).removeClass("hidden")},enumerable:!0,configurable:!0}),n}();n.ArticleListSoldoutImageService=t;DependencySystem.define(t).as(DS.Singleton)}(Category||(Category={})),function(n){var t=function(
){function n(){this.openedTileSelector=".article-tile.hovercontent-open"}return n.prototype.initialize=function(n){this.articleList=n},Object.defineProperty(n.prototype,"openedArticleId",{get:function(){return this.articleList.find(this.openedTileSelector).attr("id")},enumerable:!0,configurable:!0}),n}();n.ArticleListOpenedTileDetectionService=t;DependencySystem.define(t).as(DS.Singleton)}(Category||(Category={})),function(n){var t=function(){function n(){this.columns=3}return n.prototype.determineTilePositionInGridRow=function(n){var t=n.position().left;(this.maxPos===-1||sniff.isKioskDevice||sniff.isHandheld)&&this.analyzePossibleTilePositions(n.closest(".articlelist").find(".article-tile"));t!==this.minPos||n.hasClass("skip-one-column")?t!==this.maxPos||this.rowNotFilled?n.removeClass("left right"):n.addClass("right").removeClass("left"):n.addClass("left").removeClass("right")},n.prototype.analyzePossibleTilePositions=function(n){var t,i;if(!(n.length<1))for(this.rowNotFilled=n.length<this.columns,this.minPos=
n.first().position().left,this.maxPos=-1,t=1;t<n.length;t++){if(i=n.eq(t).position().left,this.minPos===i)break;i>this.maxPos&&(this.maxPos=i)}},n}();n.ArticleListTilePositionService=t;DependencySystem.define(t).as(DS.Singleton)}(Category||(Category={})),function(n){var t=function(){function n(n,t,i,r,u){this.origin=n;this.layout=t;this.tilePositionService=i;this.awarenessMenuService=r;this.articleListOpenedTileDetection=u;this.articleWrapperSelector=".article-wrapper";this.articleTileSelector=".article-tile";this.paginationSelector=".pages-container";this.infoTextSelector=".row-fluid.richtext.red";this.articleWrapper=this.origin.contextQuery.find(this.articleWrapperSelector);this.awarenessMenuService.prepareAwareness(this.origin.contextQuery);this.articleListOpenedTileDetection.initialize(this.origin.contextQuery);this.setArticleTiles();this.subscribeToEvents();this.tilePositionService.analyzePossibleTilePositions(this.articleTiles)}return n.prototype.subscribeToEvents=function(){var n=this;this.subscriptions=
eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleListExpand,callback:function(t){n.expand(t)}},{message:Common.EventNames.WindowSizeChanged,callback:function(){n.tilePositionService.analyzePossibleTilePositions(n.articleTiles)}},{message:Common.EventNames.OrientationHasChanged,callback:function(){n.tilePositionService.analyzePossibleTilePositions(n.articleTiles)}},{message:Common.EventNames.ArticleListUpdate,callback:function(t){n.update(t)}}]);typeof window!="undefined"&&typeof shell!="undefined"&&window.shell.subscribeTo("ESPP.FilterAndSort.NewArticles",function(t){n.update(t)},"ESPP.FilterAndSort.NewArticles")},n.prototype.updatePagination=function(n){var t=this.origin.contextQuery.find(this.paginationSelector);t.length>0?t.replaceWith(n):LifeCycleSystem.append(n,this.origin.contextQuery)},n.prototype.updateInfoText=function(n){var t=this.origin.contextQuery.find(this.infoTextSelector);n.length>0?t.length>0?t.replaceWith(n):LifeCycleSystem.append(n,this.origin.contextQuery):t.length>0&&
LifeCycleSystem.remove(t)},n.prototype.expand=function(n){this.articleWrapper.expand({style:{marginBottom:n.offset},duration:n.duration})},n.prototype.update=function(n){var t=this;this.setArticleTiles();LifeCycleSystem.remove(this.articleTiles).then(function(){var i="";return n.articles.forEach(function(n){i=i.concat(n.article.rendered.trim())}),LifeCycleSystem.append($(i),t.articleWrapper)}).then(function(){t.setArticleTiles();t.tilePositionService.analyzePossibleTilePositions(t.articleTiles);modalManager.initModalLinks(t.articleTiles,"a");eventAggregator.publish(Common.EventNames.ArticleListUpdateFinished)});this.updatePagination($(n.pagination.rendered));this.updateInfoText($(n.infotext.rendered))},n.prototype.setArticleTiles=function(){this.articleTiles=this.origin.contextQuery.find(this.articleTileSelector)},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions);this.origin.tearDown();this.layout.destroy()},n}();n.ArticleListController=t;DependencySystem.define(t).as(DS.Controller).
andInject([DS.Origin,Common.IsotopeLayout,n.ArticleListTilePositionService,n.ArticleListAwarenessMenuService,n.ArticleListOpenedTileDetectionService])}(Category||(Category={})),function(n){var t=function(){function t(){}return t.componentName="articlelist",t.query=".articlelist",t.controller=n.ArticleListController,t}();n.ArticleListComponent=t;DependencySystem.define(t).as(DS.Component)}(Category||(Category={})),function(n){var t=Scrolling.ScrollStateDispatcher,i=Scrolling.GradientsController,r=Scrolling.BodyScrollingController,u=Scrolling.FirefoxHotfix,f=Scrolling.DesktopEmulationModeFix,e=Scrolling.SimplebarSkrollrHotfix,o=Scrolling.SimplebarHeightAdjuster,s=Scrolling.SimplebarScrollbarAdjuster,h=Common.EventNames,c=function(){function n(){this.highlightedPanelSelector=".panel.highlighted";this.subCategoriesSelector=".sub-categories";this.subMenuSelector="ul.sub-menu";this.elements=Common.ElementRepository.getInstance();this.menuTrigger=$(".sidenav-trigger");this.menu=$(".sidenav");this.subCategories=this.
menu.find(".sub-categories");this.menuAndTrigger=$().add(this.menu).add(this.menuTrigger);this.pastMaxHeight=0;this.setPanelLink();var c=this.menu.find(".gradient-container"),h=new Common.EventAggregator,n=this.menu.hasClass("handheld-enable");this.menu.find(".simplebar").simplebar({autoHide:!1}).use(new f(n)).use(new i(c,200,h)).use(new r).use(new u).use(new e).use(new o(1e3,null,n)).use(new s).use(new t(h,n));this.removeObsoleteEventHandlers();this.checkAnimatedHamburger();this.bindUserActions();this.preOpenDeepSubmenu();this.observeHeight();sniff.isHandheld&&this.menu.find(".simplebar-track").hide()}return n.prototype.checkAnimatedHamburger=function(){var t=utils.getBoolean(this.menuTrigger.data("animated-icon")),n;if(t&&!utils.isPresspage()&&(n=amplify.store("hasSeenSubburger"),!n))this.menuTrigger.addClass("animated").on("click.sidenav-trigger mouseenter.sidenav-trigger",this.setAnimatedHamburgerLocalStorage.bind(this))},n.prototype.setAnimatedHamburgerLocalStorage=function(){amplify.store("hasSeenSubburger",
!0,{expires:2592e6});this.menuTrigger.removeClass("animated")},n.prototype.removeObsoleteEventHandlers=function(){this.menuTrigger.off(".sidenav");this.menu.off(".sidenav")},n.prototype.bindUserActions=function(){var n={over:this.open.bind(this),out:this.closeIfNotPinnedAndNotHovered.bind(this),timeout:800,interval:50};this.menuTrigger.on("click.sidenav",this.toggle.bind(this));this.menu.on("click.sidenav",".close-menu",this.closeAndUnpin.bind(this)).on("click.sidenav",".pin-menu",this.pin.bind(this));sniff.isHandheld||(this.menuTrigger.hoverIntent(n),this.menu.hoverIntent(n))},n.prototype.toggle=function(){this.menuTrigger.hasClass("open")?this.closeAndUnpin():this.open()},n.prototype.open=function(){this.menuAndTrigger.addClass("open");sniff.isHandheld&&this.menu.find(".simplebar-track").show()},n.prototype.close=function(){this.menuAndTrigger.removeClass("open");sniff.isHandheld&&this.menu.find(".simplebar-track").hide()},n.prototype.closeIfNotPinnedAndNotHovered=function(){var n=this.menuTrigger.parent()[
0];if(!n){this.close();return}var t=n.querySelector(":hover"),i=t!==this.menuTrigger[0]&&t!==this.menu[0],r=!this.menu.hasClass("is-pinned");r&&i&&this.close()},n.prototype.closeAndUnpin=function(){this.close();this.menu.hasClass("is-pinned")&&this.unpin()},n.prototype.pin=function(){this.menu.addClass("is-pinned");typeof tileAnimationHandler!="undefined"&&tileAnimationHandler.getColumnModeValue()===4&&(tileAnimationHandler.toggleColLayout(!0),this.savePinningState(!0))},n.prototype.unpin=function(){this.menu.removeClass("is-pinned");typeof tileAnimationHandler!="undefined"&&tileAnimationHandler.getColumnModeValue()===3&&(tileAnimationHandler.toggleColLayout(!1),this.savePinningState(!1))},n.prototype.savePinningState=function(n){var t=this.menu.find(".pin-menu"),i=t.data("ajaxtarget"),r=t.data("ajaxpar")+"="+n;$.get(i,r)},n.prototype.preOpenDeepSubmenu=function(){var n=this.subCategories.find(this.highlightedPanelSelector),i=n.children(".panel-collapse"),t=n.parentsUntil(this.subCategoriesSelector,".panel-collapse").
add(i),r=t.closest(this.subMenuSelector+", "+this.subCategoriesSelector).find("> .is-menu > .panel-collapse"),u=t.not(".in"),f=this.subCategories.find(".panel-collapse.in");f.not(r).add(u).siblings(".panel-heading").children("button.toggle-sub-menu").click()},n.prototype.observeHeight=function(){var n=this,t=350,r=_.debounce(function(){n.adjustMaxHeightIfNeeded()},t,!1),i=_.throttle(function(){n.adjustMaxHeightIfNeeded()},t,{leading:!1});this.adjustMaxHeightIfNeeded();this.elements.window().on("scroll",r.bind(this)).on("resize",i.bind(this));eventAggregator.subscribe(h.PageLayoutChanged,i.bind(this))},n.prototype.adjustMaxHeightIfNeeded=function(){var n=this;this.evaluateMaxHeight().then(function(t){return n.applyNewMaxHeight(t),n.adjustScrollPosition()})},n.prototype.evaluateMaxHeight=function(){var n=$("footer"),t=0,i=this.elements.window().height();n.length&&(t=Math.max(0,i-n[0].getBoundingClientRect().top));var u=this.menu[0].getBoundingClientRect().top,f=t+25,e=this.menu.innerHeight()-this.menu.height(),
r=Math.max(100,i-e-u-f);return this.pastMaxHeight!==r?$.Deferred().resolve(r).promise():$.Deferred().reject().promise()},n.prototype.applyNewMaxHeight=function(n){this.menu.find(".simplebar-scroll-content").css("max-height",n);this.pastMaxHeight=n},n.prototype.adjustScrollPosition=function(){var t=this.menu.find(".highlighted"),i=this.menu.find(".simplebar-scroll-content"),n=$.Deferred();return!t.length||!i.length?n.reject().promise():(i.simplebar("getScrollElement").scrollTo(t,1500,{offset:-20,onAfter:n.resolve.bind(n)}),n.promise())},n.prototype.setPanelLink=function(){this.menu.on("click touch",".panel-link-container",function(n){utils.redirect($(n.currentTarget).find("a").attr("href"),n)})},n}();n.SideNav=c}(PageElements||(PageElements={}));$(document).ready(function(){$(".sidenav").length&&(sideNav=new PageElements.SideNav)}),function(n){var t=function(){function n(){}return n.prototype.highlight=function(n,t,i,r){for(var e,s,p=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").split(" ").filter(function(n){return n}
).join("|"),w=RegExp(p,"gi"),c=[],o=0,l=t;o<l.length;o++){for(var u=l[o],a=void 0,f=[];(a=w.exec(u))!==null;)f.push(a);for(f=f.reverse(),e=0,s=f;e<s.length;e++){var h=s[e],v=h.index,y=h.index+h[0].length;u=u.slice(0,y)+r+u.slice(y);u=u.slice(0,v)+i+u.slice(v)}c.push(u)}return c},n}();n.SearchHighlighterService=t;DependencySystem.define(t).as(DS.Singleton)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){this.origin=n;this.ajax=t;this.searchHighlighter=i;this.resetDataSetsVariables()}return n.prototype.setUpFor=function(n,t,i){if(this.isBound)throw new Error("This service is already bound to an input. You have to properly clean up, before binding it to a new input element.");this.isBound=!0;this.searchInput=n;this.searchUrl=this.searchInput.data("ajax-target");this.queryParamName=this.searchInput.data("ajax-par");this.groupId=i;this.finalizeConfiguration(t);this.searchInput.on("typeahead:render"+this.origin.eventNamespace,this.updateSuggestion.bind(this)).on("typeahead:select"+this.
origin.eventNamespace,this.redirectToSuggestion.bind(this)).typeahead(this.configuration.typeaheadConfig,this.createDataSets()).parent().on("click"+this.origin.eventNamespace,".tt-selectable a",function(n){n.preventDefault()})},n.prototype.destroy=function(){this.currentRequest&&this.currentRequest.state()==="pending"&&this.currentRequest.abort();this.searchInput.off(this.origin.eventNamespace).typeahead("destroy").parent().off(this.origin.eventNamespace);this.resetDataSetsVariables();this.isBound=!1},n.prototype.resetDataSetsVariables=function(){this.currentHeadlines=[];this.currentErrors=[];this.currentStyles=[];this.pastStyles=[];this.suggestionLists=[];this.suggestionsRendered=0},n.prototype.finalizeConfiguration=function(t){this.configuration={typeaheadConfig:$.extend({},n.defaultTypeaheadConfig,t?t.typeaheadConfig:undefined),dataSetConfig:$.extend({},n.defaultDataSetConfig,t?t.dataSetConfig:undefined)}},n.prototype.updateSuggestion=function(){var t=this.searchInput.parent().find(".tt-dataset").eq(this.suggestionsRendered);
t.find("."+n.titleTemplateName).text(this.currentHeadlines[this.suggestionsRendered]);this.pastStyles[this.suggestionsRendered]&&t.removeClass(this.pastStyles[this.suggestionsRendered]);this.currentStyles[this.suggestionsRendered]&&t.addClass(this.currentStyles[this.suggestionsRendered]);this.currentErrors[this.suggestionsRendered]?t.find("."+n.notFoundTemplateName).text(this.currentErrors[this.suggestionsRendered]):t.find("."+n.notFoundTemplateName).remove();++this.suggestionsRendered===this.configuration.dataSetConfig.quantity&&(this.pastStyles=this.currentStyles.slice(0));this.highlightSuggests(t)},n.prototype.redirectToSuggestion=function(n,t){t.Target&&(this.searchInput.blur(),utils.redirect(t.Target,n))},n.prototype.querySuggestions=function(n){var t=this;return function(i,r,u){if(!(n>0)&&t.searchUrl.length){t.currentRequest&&t.currentRequest.state()==="pending"&&t.currentRequest.abort();var f=t.groupId?$('form[data-group-id="'+t.groupId+'"]').serialize():t.queryParamName+"="+encodeURIComponent(i),e=t.searchUrl+
"?"+f,o={url:e,crossDomain:!0,beforeSend:function(n){t.currentRequest=n}};t.ajax.getJsonp(o).then(function(i){t.suggestionsRendered=0;t.createAllSuggestionLists(i);u(t.suggestionLists[n])})}}},n.prototype.showSuggestionList=function(n){var t=this;return function(i,r,u){n!==0&&t.currentRequest.then(function(){u(t.suggestionLists[n])})}},n.prototype.createAllSuggestionLists=function(n){var t=this,i=$(ajaxDomHelper.getNamedObjectValuesFromArray("search-suggests",n));i.each(function(n,i){var r=$(i),u=r.find(".item");t.currentHeadlines[n]=r.data("headline");t.currentErrors[n]=r.data("error");t.currentStyles[n]=r.data("style");t.suggestionLists[n]=[];u.each(function(i,r){var u=$(r),f={Text:utils.htmlDecode(u.text()),Target:u.data("target")};t.suggestionLists[n].push(f)})})},n.prototype.createDataSets=function(){for(var i,t=[],n=0;n<this.configuration.dataSetConfig.quantity;n++)i=n===0?this.querySuggestions(n):this.showSuggestionList(n),t.push(this.createDataSet(i)),this.suggestionLists[n]=[];return t},n.prototype.createDataSet=
function(t){var i={displayKey:"Text",updateOnAsync:!0,source:t,limit:10,templates:{header:'<div class="'+n.titleTemplateName+'"><\/div><div class="divider"><\/div>',suggestion:function(n){return'<div><a href="'+n.Target+'">'+n.Text+"<\/a><\/div>"}}};return this.configuration.dataSetConfig.renderErrors&&(i.templates.notFound='<span class="'+n.notFoundTemplateName+'"><\/span>'),i},n.prototype.highlightSuggests=function(n){var i=this.searchInput.val(),t=n.find(".tt-suggestion a"),r=t.toArray().map(function(n){return n.innerText}),u=this.searchHighlighter.highlight(i,r,'<strong class="tt-highlight">',"<\/strong>");t.each(function(n,t){t.innerHTML=u[n]})},n.defaultTypeaheadConfig={highlight:!1,hint:!1,minLength:1,classNames:{menu:"suggest-layer"}},n.defaultDataSetConfig={quantity:1,renderErrors:!1},n.titleTemplateName="suggests-title",n.notFoundTemplateName="not-found",n}();n.SearchAhead=t;DependencySystem.define(t).as(DS.Factory).andInject([DS.Origin,WebData.Ajax,n.SearchHighlighterService])}(PageElements||(PageElements=
{})),function(n){var t=function(){function n(n,t,i){this.origin=n;this.form=t;this.searchAhead=i;this.initVariables();this.initJQueryEvents();this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.TriggerFocusAndBlur,callback:this.triggerFocusAndBlur.bind(this)}]);var r=this.searchContainer.hasClass("press")?{dataSetConfig:{quantity:2,renderErrors:!0}}:undefined;this.searchAhead.setUpFor(this.searchInput,r,this.groupId)}return n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions);this.searchForm.off(this.origin.eventNamespace);this.searchInput.off(this.origin.eventNamespace);this.searchAhead.destroy()},n.prototype.initVariables=function(){this.searchForm=this.origin.contextQuery;this.groupId=this.searchForm.data("group-id");this.searchContainer=this.searchForm.closest(".search");this.searchInput=this.searchForm.find(".searchbox");this.searchIcon=this.searchForm.find(".icon");this.deleteIconTooltip=this.searchIcon.attr("title");this.queryParamName=this.
searchInput.data("ajax-par")},n.prototype.initJQueryEvents=function(){var t=this;this.searchForm.on("submit"+this.origin.eventNamespace,this.submit.bind(this)).on(n.iconClickEvent+this.origin.eventNamespace,".icon:not([title])",this.submit.bind(this)).on(n.iconClickEvent+this.origin.eventNamespace,".icon[title]",this.reset.bind(this)).on("mouseenter"+this.origin.eventNamespace,".icon",function(){t.searchInput.addClass("hovered")}).on("mouseleave"+this.origin.eventNamespace,".icon",function(){t.searchInput.removeClass("hovered")}).on("keydown"+this.origin.eventNamespace,function(n){n.keyCode===Key.ENTER&&t.submit(n)});this.searchInput.on("focus"+this.origin.eventNamespace,function(){t.optionallyRemovePresetQuery();sniff.isIOS&&_.delay(function(){fixes.forceElementRepaint(t.searchInput)},410)}).on("blur"+this.origin.eventNamespace,this.optionallyAddPresetQuery.bind(this))},n.prototype.submit=function(n){n.preventDefault();this.isValidQuery()?this.form.submit({action:this.searchForm.attr("action"),data:this.groupId?
$('form[data-group-id="'+this.groupId+'"]'):this.searchForm,method:this.searchForm.attr("method"),name:"search-"+this.origin.id,pretty:!0}):this.notifyIsInvalidQuery()},n.prototype.reset=function(){var n=utils.serializeUrlParameter();delete n[this.queryParamName];window.location.search=jQuery.param(n)?"?"+jQuery.param(n):""},n.prototype.optionallyAddPresetQuery=function(){this.searchInput.typeahead("val")||(this.searchInput.typeahead("val",this.searchInput.data("preset")),this.searchIcon.attr("title",this.deleteIconTooltip))},n.prototype.optionallyRemovePresetQuery=function(){this.searchInput.typeahead("val").toString()===this.searchInput.data("preset").toString()&&(this.searchInput.typeahead("val",""),this.searchIcon.removeAttr("title"))},n.prototype.isValidQuery=function(){return!this.searchForm.data("modalid")||!!this.searchInput.val()},n.prototype.notifyIsInvalidQuery=function(){var n=this.searchForm.data("modalid");modalManager.openModal($("#"+n))},n.prototype.triggerFocusAndBlur=function(){this.searchInput.
focus().blur()},n.iconClickEvent=sniff.isHandheld?"touchstart":"mousedown",n}();n.SearchController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Form,n.SearchAhead])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="search",t.query=".search-form",t.controller=n.SearchController,t.rebuilder=DS.GroupIdRebuilder,t}();n.SearchComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){}return n.componentName="search-result-info",n.query=".search-result-info",n.rebuilder=DS.GroupIdRebuilder,n}();n.SearchResultInfoComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){this.linklistSelector=".linklist";this.fadeDuration=200;this.delayDuration=800}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){var t=this;n.find(this.linklistSelector).
each(function(n,i){t.checkYourStyleLinkVisibility($(i));t.addBindings($(i));var r=$(i).find(".linklist.panel");r.length!==0&&t.setWidth(r)})},n.prototype.checkYourStyleLinkVisibility=function(n){var t=n.find("a.yourstyle");t.length&&!sniff.hasFlash()&&t.parent().css("display","none")},n.prototype.addBindings=function(n){var i=this,t,r=".panel .panelicon, .panel .paneltitle, .panel .panel-wrapper",u=".panel .panelicon, .panel .paneltitle";n.hasClass("media-links")&&(r=".linklist.panel",u=".linklist.panel");n.find(r).hover(function(n){t=$(n.target).closestIncludingSelf(".linklist.panel");t.addClass("hovered");t.find(".panel-wrapper").hasClass("open")||i.openPanel(t)},function(n){t=$(n.target).closestIncludingSelf(".linklist.panel");t.removeClass("hovered");i.closePanelIfNotHovered(t)});n.find(u).on("click",function(n){t=$(n.target).closestIncludingSelf(".linklist.panel");t.hasClass("recently-opend")||(t.find(".panel-wrapper").hasClass("open")?i.closePanel(t):i.openPanel(t))});n.find(".options-close").on("click",
function(n){n.stopPropagation();t=$(n.target).closest(".linklist.panel");i.closePanel(t)})},n.prototype.closePanelIfNotHovered=function(n){var t=this;_.delay(function(){n.hasClass("hovered")||t.closePanel(n)},this.delayDuration)},n.prototype.closePanel=function(n){n.find(".panel-wrapper").velocity("stop").velocity("fadeOut",{duration:this.fadeDuration,mobileHA:!1}).removeClass("open")},n.prototype.openPanel=function(n){n.addClass("recently-opend");_.delay(function(){n.removeClass("recently-opend")},this.delayDuration);n.find(".panel-wrapper").velocity("stop").velocity("fadeIn",{duration:this.fadeDuration,mobileHA:!1}).addClass("open");var t=(n.find(".panel-wrapper").width()-n.width())/2;n.offset().left<t?(n.find(".panel-wrapper").addClass("align-left"),n.find(".arrow-up").css("left",n.width()/2)):(n.find(".panel-wrapper").removeClass("align-left"),n.find(".arrow-up").css("left","50%"))},n.prototype.setWidth=function(n){var t=2*Math.ceil((n.find(".panel-wrapper").width()+20)/2);n.find(".panel-wrapper").width(t)}
,n}();n.Linklist=t}(PageElements||(PageElements={}));linklistHandler=new PageElements.Linklist;$(document).ready(function(){componentManager.registerAndInitComponent(linklistHandler)}),function(n){var i=function(){function n(n,t){var i,r,u;t===void 0&&(t=!0);this.elementLookup=[];this.selectedOption=null;this.typeaheadElement=n.find("input.typeahead").first();this.typeaheadElement.attr("maxlength")&&(this.maxLength=parseInt(this.typeaheadElement.attr("maxlength")));i=this.typeaheadElement.data("related-input-id");i&&(this.relatedInput=$('div[data-input-id="'+i+'"]'));r=n.find(".dropdown-wrapper").first();u=n.find(".typeahead-value-holder");this.fillLookupObject(r);this.initTypeahead(this.typeaheadElement,u,t)}return n.prototype.fillLookupObject=function(n){var i=this;n.find("option").each(function(n,r){var u=$(r),f=new t,e;f.Value=u.val();f.Text=u.text();e=utils.getBoolean(u.data("related-input-mandatory"));f.IsRelatedInputMandatory=e;u.attr("selected")=="selected"&&(i.selectedOption=new t,i.selectedOption.Value=
u.val(),i.selectedOption.Text=u.text(),i.selectedOption.IsRelatedInputMandatory=e);i.elementLookup.push(f)}).end().detach()},n.prototype.fillLookupObjectAjax=function(n){this.elementLookup=n},n.prototype.initTypeahead=function(n,i,r){var u=this,f=this,e=function(){return function(n,t){var i=[],u=[],e=[];n=utils.htmlEncode(utils.escapeRegexpChars(n));var o="^"+n,s=new RegExp(o,"i"),h=new RegExp(n,"i");$.each(f.elementLookup,function(n,t){s.test(t.Text)?i.push(t):h.test(t.Text)?u.push(t):r&&e.push(t)});t(i.concat(u).concat(e))}};n.on("typeahead:selected",function(t,r){if(u.maxLength&&r.Text.length>u.maxLength){var f=r.Text.substr(0,u.maxLength);n.val(f);n.typeahead("val",f)}i.val(r.Value);u.updateMandatoryFieldsFromTypeahead(r)}).typeahead({hint:!1,highlight:!0,classNames:{menu:"tt-dropdown-menu"}},{displayKey:"Text",limit:1e3,source:e(),display:function(n){return utils.htmlDecode(n.Text)}});this.selectedOption!=null&&(n.typeahead("val",this.selectedOption.Text),i.val(this.selectedOption.Value),this.updateMandatoryFieldsFromTypeahead(
this.selectedOption));n.on("blur",function(){n.val()||u.updateMandatoryFieldsFromTypeahead(new t)}).on("textchange",function(){n.parent().find("+ .typeahead-value-holder").val("")}).on("focus",function(){n.typeahead("close")});utils.disableElementFocusOnTabKey(this.typeaheadElement.parent(),".typeahead.tt-hint");n.parent().find(".tt-hint").removeClass("tooltip-target")},n.prototype.updateMandatoryFieldsFromTypeahead=function(n){if(this.relatedInput){var t=this.relatedInput.find("label").first();t&&(n.IsRelatedInputMandatory?t.addClass("mandatory"):t.removeClass("mandatory"))}},n}(),t,r;n.DropdownTypeahead=i;t=function(){function n(){}return n}();n.TypeaheadData=t;r=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){n.find(".dropdown").has("select.typeahead").each(function(n,t){new i($(t))})},n}();n.DropdownTypeaheadHandler=r}(PageElements||(PageElements={}));dropdownTypeaheadHandler=new PageElements.DropdownTypeaheadHandler;
$(document).ready(function(){componentManager.registerAndInitComponent(dropdownTypeaheadHandler)}),function(n){var t=function(){function n(n,t){var i=this;this.origin=n;this.freezer=t;this.innerContainer=n.contextQuery.children("div");this.isInitialized=this.initializeWcoImageAnimation().then(function(){i.isAnimating=!0;i.freezer.introduce(i.origin.contextQuery,i.pause.bind(i),i.resume.bind(i),function(){return i.isAnimating})})}return n.prototype.pause=function(n){var t=this,i;return n===void 0&&(n=!1),i=function(){if(!t.innerContainer.data("wcoImageAnimation"))return $.Deferred().reject().promise();(n||t.isAnimating)&&(t.innerContainer.wcoimageanimation("stopAnimation"),t.isAnimating=!1)},this.isInitialized.then(function(){return i()},function(){return i()})},n.prototype.resume=function(n){var t=this;return(n===void 0&&(n=!1),this.freezer.isFrozen)?$.Deferred().reject().promise():this.isInitialized.then(function(){if(!t.innerContainer.data("wcoImageAnimation"))return $.Deferred().reject().promise();(n||!t.isAnimating)&&
(t.innerContainer.wcoimageanimation("startAnimation"),t.isAnimating=!0)})},n.prototype.destroy=function(){return this.freezer.destroy(),this.isInitialized.state()==="pending"?$.when(this.cleanUpPendingTeaser()):this.cleanUpInitializedTeaser()},n.prototype.initializeWcoImageAnimation=function(){var n=$.Deferred();return this.innerContainer.wcoimageanimation({xmlFile:this.origin.contextQuery.data("fsitarget"),autoplay:!0,animationSpeed:400,animationWidth:this.origin.contextQuery.data("width"),animationHeight:this.origin.contextQuery.data("height"),animationLoadingImg:this.origin.contextQuery.data("loader"),callbacks:{onFailure:function(){n.reject()},onInit:function(){n.resolve()}}}),n.promise()},n.prototype.cleanUpPendingTeaser=function(){this.innerContainer.data("wcoImageAnimation")&&this.innerContainer.wcoimageanimation("destroy")},n.prototype.cleanUpInitializedTeaser=function(){var n=this;return this.isInitialized.then(function(){return eventAggregator.unSubscribeMultiple(n.subscriptions),n.pause()},function(
){return n.pause()}).then(undefined,function(){return $.Deferred().resolve().promise()}).then(function(){n.innerContainer.data("wcoImageAnimation",undefined)})},n}();n.Teaser3DCtrl=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.Freezer])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="teaser-3d-component",t.query=".teaser-3d",t.controller=n.Teaser3DCtrl,t}();n.Teaser3DComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;this.service=t;t.submit(n.contextQuery)}return n}();n.AutoSumbitFormController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.AutoSubmitForm])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="auto-submit-form-component",t.query=".auto-submit-form",t.controller=n.AutoSumbitFormController,t}();n.AutoSubmitFormComponent=t;DependencySystem.define(t).
as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=Common.EventNames,i=function(){function n(n){var i=this,r;if(this.cssVerticalTranslation=0,this.lastBodyHeight=0,this.footerBottomPosition=0,n.length!=0){if(this.footerContainer=n,this.jqWindow=$(window),this.jqHtml=$("html"),this.bodyElement=$("body"),this.isStickyAndScrollingDisabled=this.bodyElement.filter(".startpage, .company, .company-rewrite").length>0,this.shouldOpenOnScrollOrSwipe=this.bodyElement.filter(".startpage").length>0,this.didScroll=!1,this.lastScrollPosition=0,this.scrollDirection="up",this.isAnimationInProgress=!1,this.isOpen=!1,this.hasFooter=!0,sniff.isHandheld&&this.jqHtml.hasClass("csstransforms")&&(this.cssVerticalTranslation=2),this.shouldOpenOnScrollOrSwipe){r=$("body > .content, footer");r.on("mousewheel",function(n,t){t===0||i.isVideoOverlayOpened()||(i.didScroll=!0,i.scrollDirection=t>0?"up":"down",n.preventDefault())})}utils.isCompanypage()&&sniff.isHandheld&&(this.isStickyAndScrollingDisabled=!1);this.isStickyAndScrollingDisabled&&
sniff.isHandheld||this.jqWindow.scroll(function(){var n=i.jqWindow.scrollTop(),t=!0;n==i.lastScrollPosition?(t=!1,i.adjustFooterLeftPosition(i)):i.scrollDirection=n<i.lastScrollPosition?"up":"down";i.didScroll=!modalManager.isModalOpen()&&(i.didScroll||t);i.lastScrollPosition=n;i.handleFooterControlsStickiness(i)});this.initHandheldTouchHooks();this.initFooterControls();this.repaintPaymentTypesInfo();sniff.usingParallax()&&this.subscribeToFooterStartKeyframeEvent();window.shell.subscribeTo(t.FilterAndSortPageShouldScrollToTop,function(){i.toTopButtonClicked()},t.FilterAndSortPageShouldScrollToTop)}}return n.prototype.toTopButtonClicked=function(){var n,i,r;eventAggregator.publish(t.FooterToTopButtonPressed);this.isOpen&&this.handleFooterVisibility(this,!0);n=this.jqWindow.height();i=utils.isParallaxpage()?{position:0,animationDistance:n*1.7,minBlurDistance:n*3.4}:{position:0,type:Navigation.TransitionType.Animate};eventAggregator.publish("screen-navigation.start",i);r=eventAggregator.subscribe("screen-navigation.finished",
function(){eventAggregator.unSubscribe("screen-navigation.finished",r);eventAggregator.publish(t.FooterToTopButtonAnimationFinished);window.shell.publishTo(t.FooterToTopButtonAnimationFinished)})},n.prototype.initHandheldTouchHooks=function(){var n=this,t;if(sniff.isTouch&&sniff.isHandheld&&(!sniff.isHandheld||this.isStickyAndScrollingDisabled)){t=_.throttle(function(t){switch(t.gesture.direction){case Hammer.DIRECTION_UP:n.shouldOpenOnScrollOrSwipe&&!n.isOpen&&n.showFooter(500);break;case Hammer.DIRECTION_DOWN:n.isOpen&&n.hideFooter(500)}},200,{trailing:!1});$(".content").hammer({recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_VERTICAL}]]}).on("swipeup swipedown",t);$("footer").hammer({recognizers:[[Hammer.Swipe,{direction:Hammer.DIRECTION_ALL}]]}).on("swipe",t)}},n.prototype.initFooterControls=function(){var n=this,t;this.footerControlsDefaultLocation=$(".footer-controls-default-location");this.footerControls=this.bodyElement.find(".footer-controls");this.footerContent=this.footerContainer.find(".footer-content");
this.footerButtons=this.footerControls.children(".buttons");this.showFooterButton=this.footerButtons.children(".show-footer");this.hideFooterButton=this.footerButtons.children(".hide-footer");this.toTopButton=this.footerButtons.children(".btn-to-top");this.stickyPageOpenButton=this.footerContainer.find(".open-button");this.stickyPageCloseButton=this.footerContainer.find(".close-button");this.stickyFooterHeight=this.jqWindow.height()-this.footerContainer.position().top;this.footer=this.footerContainer.parentsUntil(".container").filter("footer");this.documentHeight=this.getDocumentHeight();this.toTopButton.on("click",function(){n.toTopButtonClicked()});this.hideFooterButton.on("click",function(i){i.stopPropagation();t=!0;n.handleFooterVisibility(n,t)});this.showFooterButton.on("click",function(i){i.stopPropagation();t=!1;n.handleFooterVisibility(n,t)});this.stickyPageOpenButton.on("click",function(i){i.stopPropagation();t=!1;n.handleFooterVisibility(n,t)});this.stickyPageCloseButton.on("click",function(i){i.stopPropagation(
);t=!0;n.handleFooterVisibility(n,t)});this.bodyElement.on("click",function(t){n.clickOutsideOfHideFooterButtonHandler(n,t)});window.setInterval(function(){n.handleFooterVisibilityOnScrolling(n);n.handleFooterVisibilityOnBodyHeightChange()},250);this.footerControls.removeClass("display-none attached");this.jqWindow.on("resize",function(t,i){if(i!="simulatedResize"){if(n.isStickyAndScrollingDisabled){$(".imagemap-slideshow img.resizeMap").height(n.jqWindow.height());$(".imagemap-slideshow.not-initialized").removeClass("not-initialized");return}n.didScroll=!modalManager.isModalOpen();n.handleFooterVisibilityOnScrolling(n);sniff.isSafari&&fixes.forceElementRepaint(n.footerControls)}});this.handleFooterControlsStickiness(this);this.handleToTopButtonVisibility(this,this.getScrollTop());this.adjustFooterLeftPosition(this)},n.prototype.handleFooterVisibilityOnBodyHeightChange=function(){var n=this.bodyElement.height();n!=this.lastBodyHeight&&(this.lastBodyHeight=n,this.handleFooterControlsStickiness(this))},n.prototype.
handleFooterVisibilityOnScrolling=function(n){!n.didScroll||this.footerContainer.hasClass("open-animation")||modalManager.isModalOpen()||sniff.isIPad&&utils.isParallaxpage()||(n.didScroll=!1,n.updateFooterVisibility())},n.prototype.updateFooterVisibility=function(){var n=!0;this.handleToTopButtonVisibility(this,this.getScrollTop());this.isStickyAndScrollingDisabled&&this.scrollDirection=="down"&&this.shouldOpenOnScrollOrSwipe&&(n=!1);this.handleFooterVisibility(this,n)},n.prototype.handleFooterVisibility=function(n,t){if(n.isOpen==t&&this.hasFooter){var i=500;if(t)_.delay(function(){n.hideFooter(i)},250);else{if(n.isStickyAndScrollingDisabled){bottomSliderHandlers.forEach(function(n){n.closeBottomSlider()});window.setTimeout(function(){n.showFooter(i)},300);return}n.showFooter(i)}}},n.prototype.hideFooter=function(n){var i=this,t;this.isOpen=!1;t=this.getAnimateToPosition(!0);this.showFooterButton.show();this.hideFooterButton.hide();sniff.isPhone?(this.footerContainer.css("bottom",t),this.hideFooterCompleted(
n)):this.footerContainer.velocity("stop").velocity({bottom:t},{duration:n,complete:function(){i.hideFooterCompleted(n)}})},n.prototype.hideFooterCompleted=function(n){this.footerContainer.removeClass("fixed");this.footer.addClass("relative");this.footerContainer.removeAttr("style");this.isStickyAndScrollingDisabled?(this.stickyPageOpenButton.velocity("fadeIn",{duration:n}),this.stickyPageCloseButton.velocity("stop").velocity("fadeOut",{duration:n})):sniff.usingParallax()?this.handleFooterControlSticknessOnParallaxPage(!1):this.handleFooterControlsStickiness(this)},n.prototype.showFooter=function(n){var r=this,t,i;this.isOpen=!0;t=this.getAnimateToPosition(!1);this.showFooterButton.hide();this.hideFooterButton.show();sniff.isPhone||this.repaintFooter();i=this.footerContainer.hasClass("fixed");i||this.isStickyAndScrollingDisabled||(this.footerContainer.addClass("fixed open-animation"),this.footer.removeClass("relative"),sniff.usingParallax()?this.handleFooterControlSticknessOnParallaxPage(!0):this.handleFooterControlsStickiness(
this));sniff.isPhone?(this.footerContainer.css("bottom",t),this.showFooterCompleted(n)):this.footerContainer.velocity("stop").velocity({bottom:t},{duration:n,complete:function(){r.showFooterCompleted(n)}})},n.prototype.showFooterCompleted=function(n){var t=this;this.isStickyAndScrollingDisabled?(this.stickyPageCloseButton.velocity("fadeIn",{duration:n}),this.stickyPageOpenButton.velocity("stop").velocity("fadeOut",{duration:n,complete:function(){t.footerContainer.removeClass("open-animation");t.didScroll=!1}})):(this.footerContainer.removeClass("open-animation"),this.didScroll=!1)},n.prototype.handleToTopButtonVisibility=function(n,t){this.hasFooter&&(t<=0?n.toTopButton.addClass("invisible"):n.toTopButton.removeClass("invisible"))},n.prototype.adjustFooterLeftPosition=function(n){var t=n.getScrollLeft();n.footerContent.css("left",0-t)},n.prototype.clickOutsideOfHideFooterButtonHandler=function(n,t){var i=$(t.target),r=i.parents().andSelf(),e=i.closest(n.footerContainer).length===0,o=r.hasClass("modal")||r.hasClass(
"modal-scrollable"),u,f;u=n.isStickyAndScrollingDisabled?n.stickyPageCloseButton.is(":visible"):n.hideFooterButton.is(":visible");u&&e&&!o&&(t.preventDefault(),f=!0,n.handleFooterVisibility(n,f))},n.prototype.getScrollBottom=function(){return this.jqWindow.scrollTop()+this.jqWindow.height()},n.prototype.getScrollTop=function(){return this.jqWindow.scrollTop()},n.prototype.getScrollLeft=function(){return this.jqWindow.scrollLeft()},n.prototype.getShowFooterHeightTrigger=function(n){return n.documentHeight-n.footerContainer.outerHeight()},n.prototype.getDocumentHeight=function(){return Math.max($(document).height(),this.jqWindow.height(),document.documentElement.clientHeight)},n.prototype.handleFooterControlsStickiness=function(n){if(!sniff.usingParallax()&&!modalManager.isModalOpen())if(n.documentHeight=n.getDocumentHeight(),n.stickFooterControlsToFooter(n)){var t=n.getScrollBottom()-n.getShowFooterHeightTrigger(n);this.attachFooterControlsToFooter();t>0&&this.showToTopFooterControlOnly()}else this.detachFooterControlsFromFooter(
)},n.prototype.handleFooterControlSticknessOnParallaxPage=function(n,t){t===void 0&&(t=!1);this.documentHeight=this.getDocumentHeight();n?(this.attachFooterControlsToFooter(),t&&this.showToTopFooterControlOnly()):this.detachFooterControlsFromFooter()},n.prototype.attachFooterControlsToFooter=function(){this.footerControls.detach().prependTo(this.footerContainer).addClass("attached");this.footerButtons.addClass("attached");this.footer.removeClass("enable-transformation")},n.prototype.detachFooterControlsFromFooter=function(){this.footer.addClass("enable-transformation");this.footerControls.detach().prependTo(this.footerControlsDefaultLocation).removeClass("attached");this.footerButtons.removeClass("attached").removeClass("bottom")},n.prototype.showToTopFooterControlOnly=function(){this.footerButtons.addClass("bottom")},n.prototype.subscribeToFooterStartKeyframeEvent=function(){var n=this;eventAggregator.subscribe(Common.EventNames.FooterStartKeyframeTriggered,function(t){n.handleFooterControlSticknessOnParallaxPage(
t,!0)})},n.prototype.stickFooterControlsToFooter=function(n){var t=n.footerContainer.offset().top-this.cssVerticalTranslation,i=n.getScrollBottom();return n.isOpen||i>=t},n.prototype.getAnimateToPosition=function(n){return n?this.footerContainer.outerHeight()*-1+$(".open-button").height():this.footerBottomPosition},n.prototype.isVideoOverlayOpened=function(){return this.bodyElement.find(".modal-scrollable .video-overlay.in").length>0},n.prototype.toggleCustomClassForFooterButtons=function(n,t){this.footerButtons.toggleClass(n,t)},n.prototype.repaintPaymentTypesInfo=function(){fixes.forceElementRepaint(this.footerContainer.find(".payment-logo"))},n.prototype.repaintFooter=function(){fixes.forceElementRepaint(this.footer)},n}();n.FooterHandler=i}(PageElements||(PageElements={}));footerHandler=new PageElements.FooterHandler($("footer .bottom-navigation-vertical")),function(n){var t=Common.EventNames,i=function(){function i(n){this.jqBody=$("body");this.textareaSelector=".shopcontent .shortlist textarea";this.ajax=
DependencySystem.resolve(WebData.Ajax);this.shortlist=n;this.initDeleteButton();tooltipBoxHandler.initializeInContext(this.shortlist);this.initVariantSelection();sniff.isHandheld||this.initializeScrollbarForTextarea()}return i.prototype.initVariantSelection=function(){var n=this,t=this.shortlist.find(".variants-panel");t.addClass("in").removeClass("collapse");initializeModelSwitcherHandler.initialize();t.removeClass("in").addClass("collapse");this.shortlist.on("shown.bs.collapse",".variants-panel",function(t){n.getButtonArrow(t).removeClass("closed")}).on("hide.bs.collapse",".variants-panel",function(t){n.getButtonArrow(t).addClass("closed")});this.shortlist.on("click",".colors > a:not(.selected) > div, .size:not(.selected, .notavailable), .model-switcher .model, .sizes .dropdown option",function(t){n.getDataAndRefreshShortlistItem(t)}).on("change",".sizes .dropdown option",function(t){n.getDataAndRefreshShortlistItem(t)});this.shortlist.on("click",".sizegroups-selector",function(t){var i=$(t.currentTarget),r=
i.closest(".variants-panel"),u=r.closest(".shortlist-item"),f=utils.getHjaxTarget(i);(sniff.isGalaxyTab&&t.preventDefault(),utils.isModifierKeyPressed(t))||(t.preventDefault(),sniff.isHandheld&&(r.find(".sizegroups a .selected").removeClass("selected"),i.addClass("selected")),n.refreshShortlistItem(u,f,t))})},i.prototype.getButtonArrow=function(n){var t=$(n.currentTarget);return t.closest(".variants-selection").find("button.light .arrow")},i.prototype.getDataAndRefreshShortlistItem=function(n){var t=utils.getHjaxTarget($(n.currentTarget)),i=$(n.currentTarget).closest(".shortlist-item");this.refreshShortlistItem(i,t,n)},i.prototype.refreshShortlistItem=function(i,r){var e=this,f,o,u;r&&(f=i.closest("[data-guid-for-sizes]"),o=f.length?f.data("guid-for-sizes"):"",this.ajax.get({url:r}).then(function(n){return(u=ajaxDomHelper.getElementFromAjaxResponse(".shortlist",n,"shortlist").find(".shortlist-item"),!u.length)?$.Deferred().reject().promise():(u.find(".variants-panel").addClass("in").removeClass("collapse"),u.
find(".variants-selection").find("button.light .arrow").removeClass("closed"),LifeCycleSystem.replace(i,u))}).then(function(){initializeModelSwitcherHandler.initializeInContext(u);selectBoxHandler.initializeInContext(u);var i=new n.InitializeAddToBasketHandler;i.initAddToBasket();ajaxFormHandler.initializeInContext(u);selectBoxHandler.initializeInContext(u);e.initDeleteButton();tooltipBoxHandler.initializeInContext(u);sniff.isHandheld||e.initializeScrollbarForTextarea();eventAggregator.publish(t.ShortlistUpdatedItem,o)}))},i.prototype.initDeleteButton=function(){var n=this,t=this.shortlist.find(".shortlist-item");t.each(function(t,i){n.bindClickEventForDeleteButton($(i))})},i.prototype.bindClickEventForDeleteButton=function(n){var t=this,i=n.find(".delete-button");i.off("click").one("click",function(){var r=utils.getHjaxTarget(i);t.ajax.get({url:r}).then(function(t){t.length===0&&n.remove()},function(){t.bindClickEventForDeleteButton(n)})})},i.prototype.initializeScrollbarForTextarea=function(){var i=this,t=$(
this.textareaSelector).wrap('<div class="textarea-wrapper" />'),r=t.parent(".textarea-wrapper"),n=$("<div>").addClass("hidden-mCSB-container");r.mCustomScrollbar({scrollInertia:0,mouseWheel:!0,advanced:{autoScrollOnFocus:!1}});this.jqBody.prepend(n);t.off("keyup").on("keyup",function(t){var f=$(t.target),e=f.parents(".textarea-wrapper"),r=f.val(),u=i.getCursorPosition(f),o,s;r="<span>"+utils.htmlEncode(r.substr(0,u))+"<\/span>"+utils.htmlEncode(r.substr(u,r.length));r=r.replace(/\n/g,"<br />");n.html(r+"<br />");f.css("height",n.height()+4);e.mCustomScrollbar("update");o=n.children("span").height()-10;s=parseInt(n.css("min-height"));u=Math.round(o+e.find(".mCSB_container").position().top);(u>s||u<0)&&(o>0?e.mCustomScrollbar("scrollTo",o):e.mCustomScrollbar("scrollTo","top"))}).trigger("keyup");this.jqBody.on("mousewheel",".textarea-wrapper:not(.mCS_no_scrollbar)",function(n){return n.preventDefault(),!1})},i.prototype.getCursorPosition=function(n){var t=0;return n.prop("selectionStart")&&(t=n.prop("selectionStart")),
t},i}();n.Shortlist=i}(PageElements||(PageElements={}));$(document).ready(function(){$(".shopcontent .shortlist").has(".shortlist-table").each(function(n,t){new PageElements.Shortlist($(t))})}),function(n){var i=function(){function n(n){this.fileUploadElement=n;this.inputFileElement=this.fileUploadElement.find(".tooltip-target");this.inputField=this.fileUploadElement.find("input");this.inputFile=this.inputField[0]}return n.prototype.isValidFileType=function(){var n=this.inputFile.files[0].name,t=!1,r=n.substring(n.lastIndexOf(".")+1,n.length).toLowerCase(),u=this.inputField.data("allowed-file-types").split(","),i;return $.inArray(r,u)>=0&&(t=!0),t?!0:(i={container:this.inputFileElement,content:this.inputField.data("file-type-error-text")},eventAggregator.publish(Common.EventNames.TooltipShowError,i),!1)},n.prototype.isValidFileSize=function(){var n=this.inputField.data("allowed-file-size"),t;return n==""?!0:parseInt(n)<this.inputFile.files[0].size?(t={container:this.inputFileElement,content:this.inputField.data(
"file-size-error-text")},eventAggregator.publish(Common.EventNames.TooltipShowError,t),!1):!0},n.prototype.checkFile=function(){return(eventAggregator.publish(Common.EventNames.TooltipRemoveError,this.inputFileElement),this.inputFile.files==undefined)?!0:this.inputFile.files.length&&this.isValidFileType()&&this.isValidFileSize()},n}(),t,r;n.FileUpload=i;t=function(){function n(){var n=this;eventAggregator.subscribe(Common.EventNames.HideErrors,function(t){n.selectAndHideError(t)})}return n.prototype.selectAndHideError=function(n){n||(n=$("body"));n.find(".file-upload input").each(function(n,t){var i=$(t);i.closest(".error").removeClass("error")})},n}();n.FileUploadHandler=t;r=new t}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.duration=300;this.fadeInOpacity=.8;this.fadeOutOpacity=0;this.selector=n}return n.prototype.initialize=function(){var n=this;$(this.selector).each(function(t,i){var e=$(i),u=e.find(".textarea").first(),r=e.find(".clickarea").first(),f,o;r.on("mouseover",
function(){n.enableAnimationOnHover||n.fadeIn(u)});r.on("mouseleave",function(){n.enableAnimationOnHover||n.fadeOut(u)});r.on("click",function(){n.onClick(u)});f=e.find("img").first();o=function(){var i=r.width(),n=f.width(),t,e,o,s,h;n<i&&(i=n,r.css("width",n));t=f.position();e=t.left+n-i;e!=r.position().left&&r.css("left",t.left+n-i);o=t.top;o!=r.position().top&&r.css("top",t.top);s=r.position().left-u.width();h=r.position().top;u.css("left",s);u.css("top",h);u.css("z-index",1e3)};f.width()<=0?f.load(function(){o()}):o()})},n.prototype.fadeIn=function(n){n.velocity("stop").show().velocity({opacity:this.fadeInOpacity},{duration:this.duration})},n.prototype.fadeOut=function(n){n.velocity("stop").velocity({opacity:this.fadeOutOpacity},{duration:this.duration,complete:function(){n.hide()}})},n.prototype.onClick=function(n){this.enableAnimationOnHover=!this.enableAnimationOnHover;this.enableAnimationOnHover?this.fadeIn(n):this.fadeOut(n)},n}(),i;n.LogoserviceTeaserHandler=t;$(document).ready(function(){i=new t(".teaser.logoservice");
i.initialize()})}(PageElements||(PageElements={})),function(n){var t=function(){function t(){this.scrollbarHandler=new n.ScrollbarHandler}return t.prototype.initialize=function(){this.initializeInContext($("body"))},t.prototype.initializeInContext=function(n){var t=this;sniff.isHandheld||n.find(".block.scrollable").each(function(n,i){var r=$(i);t.scrollbarHandler.initScrollBar(r)})},t}();n.ScrollableBlock=t}(PageElements||(PageElements={}));scrollableBlock=new PageElements.ScrollableBlock;$(document).ready(function(){componentManager.registerAndInitComponent(scrollableBlock)}),function(n){var t=Common.EventNames,i=function(){function n(n){var t=this;this.jqDoc=$(document);this.hoverAreaHeight=90;this.maxInitialHeaderShowAttempts=300;this.contentHeight=0;this.contentLoaded=!1;this.sliderElement=n;this.initSlider();$(window).one("load",function(){_.delay(function(){t.recalculateContentHeight()},100)})}return n.prototype.getAjax=function(){return DependencySystem.resolve(WebData.Ajax)},n.prototype.initSlider=function(
){var n=this;this.openButton=this.sliderElement.find(".opener");this.closeButton=this.sliderElement.find(".closer");this.sliderContent=this.sliderElement.find(".slider-content");this.innerContent=this.sliderElement.find(".innercontent");this.isOpenOnInit=utils.getBoolean(this.sliderElement.data("is-open-by-application"));this.ajaxTarget=this.sliderElement.data("ajaxtarget");this.isOpenOnInit&&this.sliderElement.addClass("is-open-by-application");this.openButton.on("click",_.debounce(function(t){n.scrollToTopHandler("in",t);eventAggregator.publish(Common.EventNames.SliderOpen,n.sliderElement)},1500,!0));this.closeButton.on("click",_.debounce(function(t){n.scrollToTopHandler("out",t);eventAggregator.publish(Common.EventNames.SliderClose,n.sliderElement)},1500,!0));this.headerIsOpen=!1;this.animationComplete=!0;(this.isOpenOnInit||Modernizr.localstorage&&!this.hasSeenHeader())&&this.showHeadImageSlider();this.headerAreaHoverHandler()},n.prototype.calculateContentHeight=function(){if(this.contentHeight=this.sliderContent.
height(),this.contentHeight<=170){this.contentHeight=this.sliderElement.height();return}this.contentLoaded=!0;this.rawContentHeight=this.contentHeight;this.contentHeight+=this.hoverAreaHeight},n.prototype.recalculateContentHeight=function(){this.contentHeight!==0&&(this.calculateContentHeight(),this.sliderElement.css({height:this.contentHeight}),eventAggregator.publish(Common.EventNames.PageLayoutChanged),$(window).trigger("scroll"))},n.prototype.scrollToTopHandler=function(n,t){var i=this,r=this.jqDoc.scrollTop(),u;r>0?(u=$(t.target).offset().top,$("html").velocity("scroll",{offset:0,duration:Math.ceil(400*(r/u)),complete:function(){n=="in"?i.fadeInHeadImageSlider():i.fadeOutHeadImageSlider()}})):n=="in"?this.fadeInHeadImageSlider():this.fadeOutHeadImageSlider()},n.prototype.headerAreaHoverHandler=function(){var n=this;this.sliderElement.hover(function(){n.sliderElement.hasClass("closed")&&n.openButton.velocity("stop").velocity("fadeIn",{duration:200})},function(){n.sliderElement.hasClass("closed")&&n.openButton.
velocity("stop").velocity("fadeOut",{duration:200})})},n.prototype.showHeadImageSlider=function(){var n=this;if(!this.headerIsOpen){if(this.calculateContentHeight(),!this.contentLoaded){typeof pageScrollingHandler!="undefined"&&pageScrollingHandler.positionFilterBarWithHeaderSlider(this.contentHeight+10,!0);this.maxInitialHeaderShowAttempts-->0&&_.delay(function(){n.showHeadImageSlider()},100);return}this.sliderElement.css({height:this.contentHeight});this.sliderElement.removeClass("closed loader-visible").addClass("open");this.sliderContent.removeClass("display-none");this.closeButton.css("display","block");this.animationComplete=!0;this.headerIsOpen=!0;typeof footerPositionHandler!="undefined"&&footerPositionHandler.positionFooter();typeof pageScrollingHandler!="undefined"&&pageScrollingHandler.positionFilterBarWithHeaderSlider(this.rawContentHeight+10,!0);modalManager.containsAutoOpenModals()||(this.hasSeenHeader(),this.ajaxTarget&&this.getAjax().post({url:this.ajaxTarget}));eventAggregator.publish(Common.
EventNames.PageLayoutChanged)}},n.prototype.fadeInHeadImageSlider=function(){var n=this;this.headerIsOpen||(this.animationComplete=!1,this.calculateContentHeight(),this.sliderContent.velocity("fadeIn",{duration:500}),this.openButton.velocity("fadeOut",{duration:200}),this.closeButton.velocity("fadeIn",{duration:400,delay:400}),this.sliderElement.removeClass("closed").addClass("open"),this.sliderElement.velocity({height:this.contentHeight},{easing:"linear",progress:function(t,i){typeof footerPositionHandler.positionFooter=="function"&&footerPositionHandler.positionFooter();typeof pageScrollingHandler.positionFilterBarWithHeaderSlider=="function"&&pageScrollingHandler.positionFilterBarWithHeaderSlider(Math.ceil(i*n.rawContentHeight)+Math.ceil(10*i))},complete:function(){n.animationComplete=!0;n.headerIsOpen=!0;typeof footerPositionHandler.positionFooter=="function"&&footerPositionHandler.positionFooter();typeof pageScrollingHandler.positionFilterBarWithHeaderSlider=="function"&&pageScrollingHandler.positionFilterBarWithHeaderSlider(
n.rawContentHeight+10,!0);eventAggregator.publish(Common.EventNames.PageLayoutChanged)}}),this.hasSeenHeader())},n.prototype.fadeOutHeadImageSlider=function(){var n=this;this.animationComplete=!1;this.headerIsOpen?(this.sliderContent.velocity("fadeOut",{duration:500}),this.closeButton.velocity("fadeOut",{duration:200}),this.sliderElement.velocity({height:this.hoverAreaHeight},{easing:"linear",progress:function(t,i){typeof footerPositionHandler.positionFooter=="function"&&footerPositionHandler.positionFooter();typeof pageScrollingHandler.positionFilterBarWithHeaderSlider=="function"&&pageScrollingHandler.positionFilterBarWithHeaderSlider(Math.abs(Math.ceil(n.rawContentHeight*i-n.rawContentHeight)))},complete:function(){n.animationComplete=!0;n.headerIsOpen=!1;n.sliderElement.removeClass("open").addClass("closed");typeof footerPositionHandler.positionFooter=="function"&&footerPositionHandler.positionFooter();typeof pageScrollingHandler.positionFilterBarWithHeaderSlider=="function"&&pageScrollingHandler.positionFilterBarWithHeaderSlider(
0,!0);$(window).trigger("scroll");eventAggregator.publish(t.HeadSliderFadedOut);eventAggregator.publish(Common.EventNames.PageLayoutChanged)}})):this.animationComplete=!0},n.prototype.hasSeenHeader=function(){var n=this.sliderElement.attr("id"),r=!1,t,i,u;if(typeof modalManager!="undefined"&&(r=modalManager.containsAutoOpenModals()),n==undefined||r)return!0;t=amplify.store();i=!1;for(u in t)if(t[u]==n){i=!0;break}return i?!0:(amplify.store(n,n),!1)},n.prototype.outerHeight=function(){return this.sliderElement.height()},n.prototype.isOpen=function(){return this.sliderElement.hasClass("open")},n}();n.SliderHandler=i}(PageElements||(PageElements={}));$().ready(function(){sliderHandler=new PageElements.SliderHandler($(".sliderelement").first())}),function(n){var t=function(){function n(){this.ajax=DependencySystem.resolve(WebData.Ajax)}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){var t=this;n.find(".button-link").each(function(n,i){var r=
$(i),u;if(r.data("ajaxtarget")&&r.hasClass("iframe-loader")){u=_.debounce(function(n){t.onIFrameButtonClick(n)},3e3,!0);r.on("click",function(n){u(n)})}})},n.prototype.onIFrameButtonClick=function(n){var t=$(n.target),i=t.parents("a").data("ajaxtarget");this.callIFrame(i)},n.prototype.callIFrame=function(n){this.ajax.get({url:n})},n}();n.ButtonHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){buttonHandler=new PageElements.ButtonHandler;componentManager.registerAndInitComponent(buttonHandler)}),function(n){var t=function(){function n(){this.fadeInDuration=600;this.iframeSelector=".accountservice-iframe, .contact-iframe, .login-iframe"}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(n){var t=this,i=n.find(this.iframeSelector);i.each(function(n,i){var r=$(i);t.initSource(r);t.initMessages(r);r.velocity("fadeIn",{duration:t.fadeInDuration})})},n.prototype.sendMessageToIframeOnLoad=function(n,t){var i=n.get(0).contentWindow;
i.postMessage(t,"*");n.on("load",function(){var i=n.get(0).contentWindow;i.postMessage(t,"*")})},n.prototype.initSource=function(n){n.data("src")&&n.attr("src",n.data("src"))},n.prototype.initMessages=function(n){sniff.isIOS?this.sendMessageToIframeOnLoad(n,"isIOS"):sniff.isHandheld&&this.sendMessageToIframeOnLoad(n,"isTablet")},n}();n.IFrameHandler=t}(PageElements||(PageElements={}));iframeHandler=new PageElements.IFrameHandler;iframeHandler.initialize(),function(n){var t=function(){function n(n,t){var r=this,f,u,i,e,o;if((this.ajax=DependencySystem.resolve(WebData.Ajax),this.postalCode=n,this.country=t,f=n.data("postcodeajaxtarget"),u=n.data("pickup-points-id"),u)&&(i=$("#"+u),i.length)){this.updateLabelVisibility(i);this.pickupPoints=i;this.pupRadiogroupName=i.data("name");this.collectorInputs=i.find("input[type=text]");this.note=i.find(".note");n.on("blur",function(){var i=n.val(),u=t.find(":selected").first().val();i&&u&&r.loadPickupPoints(f,i,u)});n.on("focus",function(){n.val("");r.pickupPoints.find(".note").
show();r.pickupPoints.find(".radiogroup").remove();r.setInputReadonlyState(!0)});e=i.closest(".radio-item-accordion").attr("id").substr(20);o=$('label[for="'+e+'"]');o.on("click",function(){var f=i.find("input.pickup-point-personid"),e=i.find("input.pickup-point-collector-name"),r=$(".customertype-container.show"),n,t,u;f.val()||f.val(r.find("input.personid").val());e.val()||(n=r.find("input.first-name").val(),t=r.find("input.last-name").val(),n=n==undefined?"":n.trim(),t=t==undefined?"":t.trim(),u=(n+" "+t).trim(),u&&e.val(u))})}}return n.prototype.updateLabelVisibility=function(){$("#Invoice").find(".radiogroup-label").text("")},n.prototype.updateRadiogroupItemsName=function(n){var t=n.find("input[type=radio]");t.attr("name",this.pupRadiogroupName)},n.prototype.loadPickupPoints=function(n,t,i){var r=this,u;n&&(u={PostCode:t,CountryCode:i},this.ajax.get({url:n,data:u}).then(function(n){for(var e,o,i,u,f,t=0;t<n.length;t++){e=n[t];for(o in e){i=$(e[o]);switch(o){case"pickup-points":u=i.find(".note");f=i.find(
".radiogroup");u.length&&(r.note=u,r.pickupPoints.find(".note").remove(),r.pickupPoints.prepend(u),r.setInputReadonlyState(!0));r.pickupPoints.find(".radiogroup").remove();f.length?(r.note.hide(),r.updateRadiogroupItemsName(f),r.pickupPoints.prepend(f),r.setInputReadonlyState(!1)):r.note.show();r.updateLabelVisibility(i)}}}}))},n.prototype.setInputReadonlyState=function(n){n?this.collectorInputs.attr("readonly","readonly"):this.collectorInputs.removeAttr("readonly")},n}();n.PickupPointsHandler=t}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){n===void 0&&(n=null);this._carouselManager=n;this.contentTopContents=$("div.content-top")}return Object.defineProperty(n.prototype,"carouselManager",{get:function(){return this._carouselManager||carouselManager},enumerable:!0,configurable:!0}),n.prototype.show=function(){try{this.carouselManager.startAll()}catch(n){}},n.prototype.hide=function(){try{this.carouselManager.pauseAll()}catch(n){}},n.prototype.setHeight=function(){var r=this;if(this.
contentTopContents.length!=0){var n=0,t={},i={};this.contentTopContents.css("display")!="block"&&(t={display:"block",visibility:"hidden"},i={display:"none",visibility:""});this.contentTopContents.css(t).children().each(function(t,i){n+=$(i).outerHeight(!0)}).promise().done(function(){r.contentTopContents.css(i).height(n)})}},n}();n.ContentTopHandler=t}(PageElements||(PageElements={}));contentTopHandler=new PageElements.ContentTopHandler,function(n){var t=function(){function n(n){this.ajax=n;this.availableSizesObjectName="availablesizes"}return n.prototype.load=function(n){var t=this;return this.ajax.get({url:n}).then(function(n){return ajaxDomHelper.getNamedObjectValueFromArray(t.availableSizesObjectName,n)})},n}();n.AvailableSizesLoaderService=t;DependencySystem.define(t).as(DS.Singleton).andInject([WebData.Ajax])}(Category||(Category={})),function(n){var t=function(){function n(){this.sizesWrapperSelector=".sizes-column > .sizes-wrapper";this.firstSizesColumnSelector=".first-table .sizes-column div";this.headerColumnOneSelector=
".table-header .th-col1";this.notavailableSelector=".notavailable"}return n.prototype.setWidth=function(n,t){var i=n.find(this.sizesWrapperSelector);this.setupTable(n,t,i);this.setupTableHeader(n)},n.prototype.setupTable=function(n,t,i){var r=this.getMaxRowWidth(i),o=n.width(),f=o-i.first().width(),s=f+r,u,h=t.width,e=n.find(this.notavailableSelector).first();e.length>0&&(r+=parseInt(e.css("padding-right")));u=3*h+t.availableSizesShadowAndMargin;u<s&&(r=u-f);i.css("width",Math.round(r))},n.prototype.getMaxRowWidth=function(n){var t=0;return n.each(function(n,i){var r=0,u=$(i).find("div");u.each(function(n,t){r+=$(t).outerWidth(!0)});t=Math.max(t,r)}),t},n.prototype.setupTableHeader=function(n){var t=n.find(this.firstSizesColumnSelector).first(),i=n.find(this.headerColumnOneSelector).first(),r=t.position().left;i.css("width",r)},n}();n.AvailableSizesResizerService=t;DependencySystem.define(t).as(DS.Singleton)}(Category||(Category={})),function(n){var i=function(){function n(){this.arrowMarginBottom=5;this.arrowSelector=
".arrow";this.initialized=!1}return n.prototype.introduceFor=function(n){this.availableSizes=n;this.availableSizesWidth=this.availableSizes.innerWidth();this.arrow=this.availableSizes.find(this.arrowSelector).first();this.arrowWidth=this.arrow.innerWidth();this.initialized=!0},n.prototype.setPosition=function(n){this.initialized&&(this.setArrowPosition(n),this.setAvailableSizesPosition(n))},n.prototype.setArrowPosition=function(n){var t=this.getArrowPosition(n);this.arrow.css({left:t.left,right:t.right,float:t.float})},n.prototype.setAvailableSizesPosition=function(n){var t=this.getAvailableSizesPosition(n);this.availableSizes.css({left:t.left,right:t.right,top:t.top})},n.prototype.getArrowPosition=function(n){var i=new t,r=this.getArrowXPos(n);return n.tilePosition==="right"?(i.right=r,i.float="right"):i.left=r,i},n.prototype.getArrowXPos=function(n){var t=n.tilePosition==="left"||n.tilePosition==="right"?n.tileWidth:this.availableSizesWidth;return Math.round((t-this.arrowWidth)/2)},n.prototype.getAvailableSizesPosition=
function(n){var i=new t;return n.tilePosition==="left"?i.left=-1:n.tilePosition==="right"?(i.left="auto",i.right=-1):i.left=Math.round((this.availableSizesWidth-n.tileWidth)/-2),i.top=n.linkPosition+n.linkHeight+this.arrowMarginBottom,i},n}(),t;n.AvailableSizesPositionService=i;t=function(){function n(){this._right="";this._left="";this._float="";this._top=""}return Object.defineProperty(n.prototype,"right",{get:function(){return this._right},set:function(n){this._right=this.suffixUnity(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"left",{get:function(){return this._left},set:function(n){this._left=this.suffixUnity(n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"float",{get:function(){return this._float},set:function(n){this._float=n},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"top",{get:function(){return this._top},set:function(n){this._top=this.suffixUnity(n)},enumerable:!0,configurable:!0}),n.prototype.suffixUnity=function(n){return isNaN(
n)?n:n.toString()+"px"},n}();n.AvailableSizesPosition=t;DependencySystem.define(i).as(DS.Factory)}(Category||(Category={})),function(n){var i=Scrolling.ScrollStateDispatcher,r=Scrolling.GradientsController,u=Scrolling.DesktopEmulationModeFix,f=Scrolling.BodyScrollingController,e=Common.EventAggregator,t=function(){function n(){this.sizeTableSelector=".sizetable";this.firstTableSelector=".first-table";this.gradientSelector=".gradient-container";this.scrollcontentSelector=".simplebar-scroll-content"}return n.prototype.init=function(n){if(this.availableSizes=n,this.sizeTable=this.availableSizes.find(this.sizeTableSelector),this.firstTable=this.sizeTable.find(this.firstTableSelector),!(this.sizeTable.height()>=this.firstTable.height())){var o=n.find(this.gradientSelector),t=new e;this.scrollStateDispatcher=new i(t);this.gradientController=new r(o,200,t);this.sizeTable.simplebar().use(new u).use(this.scrollStateDispatcher).use(this.gradientController).use(new f);this.gradientController.showBottom();this.resize()}}
,n.prototype.resize=function(){(!sniff.isHandheld||sniff.isKioskDevice)&&(this.sizeTable.width(this.firstTable.outerWidth(!0)).height(this.firstTable.height()).simplebar("recalculate"),this.availableSizes.find(this.scrollcontentSelector).width(this.sizeTable.width()+35))},n.prototype.destroy=function(){this.gradientController&&this.gradientController.disable();this.scrollStateDispatcher&&this.scrollStateDispatcher.dispose()},n}();n.AvailableSizesScrollingService=t;DependencySystem.define(t).as(DS.Factory)}(Category||(Category={})),function(n){var i=Common.EventNames,t=function(){function n(n,t,i,r){this.origin=n;this.position=t;this.resizer=i;this.scrolling=r;this.closeButtonSelector="button.close";this.linkSelector=".available a";this.animationEasingMode="linear";this.fadeDuration=200;this.initialized=!1;this.visible=!1}return n.prototype.initializeFor=function(n,t){if(n.length){this.articleTile=t;this.availableSizesElement=n;this.closeButton=this.availableSizesElement.find(this.closeButtonSelector);this.closeButton.
on("click"+this.origin.eventNamespace,function(){eventAggregator.publish(Common.EventNames.AvailableSizesClose,!1)});this.bindRedirect();this.resizer.setWidth(this.availableSizesElement,this.articleTile);this.scrolling.init(this.availableSizesElement);this.position.introduceFor(this.availableSizesElement);this.initialized=!0}},Object.defineProperty(n.prototype,"isVisible",{get:function(){return this.initialized&&this.visible},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isInitialized",{get:function(){return this.initialized},enumerable:!0,configurable:!0}),n.prototype.show=function(n){var t=this,i=$.Deferred();return this.initialized?this.isInitialized?(this.position.setPosition(n),this.availableSizesElement.velocity({opacity:1},{begin:function(){eventAggregator.publish(Common.EventNames.AvailableSizesClose,t.articleTile.isOnLastRow);t.publishArticleListExpand(t.availableSizesElement.height(),t.fadeDuration);t.availableSizesElement.show()},easing:this.animationEasingMode,duration:this.fadeDuration,
complete:function(){t.visible=!0;i.resolve();t.availableSizesElement.scrollIntoView({duration:t.fadeDuration})}}),i):i.reject():i.reject()},n.prototype.hide=function(n,t){var r=this,i,u;return(n===void 0&&(n=!1),t===void 0&&(t=!1),i=$.Deferred(),!this.initialized)?i.reject():!this.isInitialized||!this.isVisible?i.reject():(u=n?this.fadeDuration:0,this.availableSizesElement.velocity({opacity:0},{duration:u,begin:function(){t||r.publishArticleListExpand(0,750)},complete:function(){r.availableSizesElement.removeClass("visible");r.availableSizesElement.hide();r.visible=!1;i.resolve()}}),i)},n.prototype.bindRedirect=function(){this.availableSizesElement.on("tap"+this.origin.eventNamespace,this.linkSelector,function(n){utils.redirect($(n.currentTarget).attr("href"),n)})},n.prototype.publishArticleListExpand=function(n,t){if(this.articleTile.isOnLastRow){var r={offset:n,duration:t};eventAggregator.publish(i.ArticleListExpand,r)}},n.prototype.destroy=function(){this.initialized&&(this.closeButton.off(this.origin.eventNamespace),
this.availableSizesElement.off(this.origin.eventNamespace),this.scrolling.destroy())},n}();n.AvailableSizesService=t;DependencySystem.define(t).as(DS.Factory).andInject([DS.Origin,n.AvailableSizesPositionService,n.AvailableSizesResizerService,n.AvailableSizesScrollingService])}(Category||(Category={})),function(n){var t=function(){function n(){}return n.prototype.doFix=function(n){if(sniff.isMsie){var t=n.find("> .content > .colors:first"),i=t.find("> .colors-column"),u=0;if(i.length){var e=i.find(".color"),o=e.outerWidth(!0)+9,s=o*i.length;u=s+(parseInt(t.css("padding-left"))+parseInt(t.css("padding-right")))+(parseInt(t.css("border-left-width"))+parseInt(t.css("border-right-width")))+(parseInt(t.css("margin-left"))+parseInt(t.css("margin-right")))}var r=n.find(".content"),h=r.hasClass("has-slideshow")?n.find(".slideshow-wrapper").width():0,c=n.find(".article-information-container").width(),l=parseInt(r.css("border-left-width"))+parseInt(n.find(".content").css("border-right-width")),f=n.find(".panel-separator"),
a=f.width()*f.length,v=u+h+c+l+a;r.css("width",v)}},n.prototype.undo=function(n){sniff.isMsie&&n.find(".content").css("width","")},n}();n.ArticleTileIeFixService=t;DependencySystem.define(t).as(DS.Singleton)}(Category||(Category={})),function(n){var t=function(){function n(n,t){this.origin=n;this.elements=t;this.mouseover=!1;this.applied=!1;this.onHoverPrepareCallbacks=[];this.hoverDelay=$.wait(0);this.hoverRejectCounter=0;this.hoverRejectThreshold=6;this.hoverContentOpen=!1}return n.prototype.apply=function(n,t,i){if(t===void 0&&(t=function(){}),i===void 0&&(i=function(){}),this.applied)throw new Error("UnmovingHoverTracking is already tracking an element. As a tracker instance can only track one element \nat a time, you have to use a new instance instead.");this.applied=!0;this.articleTile=n;this.onHoverOut=i;this.onHoverIn=t;this.subscribeToEvents();sniff.isDesktop?this.applyTrackingForDesktop():this.applyTrackingForHandheld()},Object.defineProperty(n.prototype,"isHoverContentOpen",{get:function(){return this.
hoverContentOpen},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isMouseOverTile",{get:function(){return this.mouseover},enumerable:!0,configurable:!0}),n.prototype.registerHoverPrepareCallback=function(n){this.onHoverPrepareCallbacks.push(n)},n.prototype.subscribeToEvents=function(){var n=this;this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ArticleTileOpened,callback:function(t){t.id!==n.articleTile.attr("id")&&(n.abortHoverDelay(),n.hoverContentOpen&&n.endHover())}},{message:Common.EventNames.ArticleTilePrepare,callback:function(t){t.id!==n.articleTile.attr("id")&&(n.abortHoverDelay(),n.hoverContentOpen&&n.endHover())}},{message:Common.EventNames.ArticleTileReplacedByHover,callback:function(t){if(t.id===n.articleTile.attr("id"))if(n.mouseover=!0,sniff.isDesktop){var i=1e3-t.ajaxDuration;i>0?n.setHoverDelay(function(){n.mouseover&&n.initHoverAndNotify()},i):n.initHoverAndNotify()}else n.initHoverAndNotify()}}])},n.prototype.destroy=function(){this.applied&&
(eventAggregator.unSubscribeMultiple(this.subscriptions),this.origin.tearDown(),this.abortHoverDelay())},n.prototype.applyTrackingForDesktop=function(){var t=this;this.origin.setUp(this.articleTile).on("mousemove",function(i){if(n.lastKnownMouseX!==i.clientX||n.lastKnownMouseY!==i.clientY)if(n.lastKnownMouseX=i.clientX,n.lastKnownMouseY=i.clientY,t.mouseover=!0,t.articleTile.hasClass("placeholder")){for(var r=0;r<t.onHoverPrepareCallbacks.length;r++)t.onHoverPrepareCallbacks[r]();eventAggregator.publish(Common.EventNames.ArticleTilePrepare,{id:t.articleTile.attr("id")})}else t.hoverContentOpen?t.abortHoverDelay():t.setHoverDelay(function(){t.initHoverAndNotify()},1e3)}).on("mouseleave",function(i){if(t.mouseover=!1,n.lastKnownMouseX===i.clientX&&n.lastKnownMouseY===i.clientY){t.endHover();return}n.lastKnownMouseX=i.clientX;n.lastKnownMouseY=i.clientY;t.hoverRejectCounter=0;t.isHoverContentOpen?t.setHoverDelay(function(){t.endHover()},500):t.abortHoverDelay()}).on("mousewheel",{debounce:1e3,immediate:!0},function(
){t.hoverRejectCounter=0;!t.mouseover&&t.isHoverContentOpen?t.endHover():t.abortHoverDelay()})},n.prototype.applyTrackingForHandheld=function(){var n=this;this.origin.setUp(this.articleTile.find(".handheld-hover-trigger")).on("tap click",function(){n.mouseover=!0;n.articleTile.hasClass("placeholder")?$.when.apply($,n.onHoverPrepareCallbacks.map(function(n){return n()})).then(function(){n.initHoverAndNotify()}):n.initHoverAndNotify()}).setUp(this.elements.body()).on("tap click",{conditions:this.trackedArticleTileWasNotHit.bind(this)},function(){n.endHover()}).setUp(this.articleTile.find(".close-button")).on("tap click",function(){n.endHover()})},n.prototype.trackedArticleTileWasNotHit=function(n){var i=$(n.target),t=i.closest(".article-tile");return!t.length||!t.is(this.articleTile)},n.prototype.initHoverAndNotify=function(){this.hoverContentOpen=!0;this.onHoverIn();eventAggregator.publish(Common.EventNames.ArticleTileOpened,{id:this.articleTile.attr("id")})},n.prototype.endHover=function(){this.mouseover=!1;this.
hoverContentOpen=!1;this.onHoverOut()},n.prototype.abortHoverDelay=function(){this.hoverDelay.abort()},n.prototype.setHoverDelay=function(n,t){this.abortHoverDelay();this.hoverDelay=$.wait(t);this.hoverDelay.then(n)},n}();n.ArticleTileHoverTracking=t;DependencySystem.define(t).as(DS.Factory).andInject([DS.Origin,Common.ElementRepository])}(Category||(Category={})),function(n){var t=function(){function n(n){this.window=n;this.eventIds=[];this.isNotYetApplied=!0;this.proximityModifyer=2}return n.prototype.apply=function(n,t,i){if(!this.isNotYetApplied)throw new Error("PositionTracking is already tracking an element. As a tracker instance can only track one element \nat a time, you have to use a new instance instead.");this.articleTile=n;this.tileWidth=n.outerWidth();this.tileHeight=n.outerHeight();this.subscribeToEvents(t,i);this.isNotYetApplied=!1;this.wasInCloseProximity=this.isInCloseProximity(this.articleTile,0);this.wasInCloseProximity&&t()},n.prototype.isInCloseProximity=function(n,t){if(n===void 0&&(n=this.
articleTile),t===void 0&&(t=this.proximityModifyer),this.isNotYetApplied)throw new Error("PositionTracking is not yet tracking any element. You have to apply(...) it to an element.");var r=this.getTileBoundary(),i=this.getViewportBoundary();return t>0&&(i=this.getCloseProximityBoundary(i,t)),r.bottom>i.top&&r.top<i.bottom&&r.left<i.right&&r.right>i.left},n.prototype.destroy=function(){this.isNotYetApplied||eventAggregator.unSubscribeMultiple(this.eventIds)},n.prototype.subscribeToEvents=function(n,t){var i=this;this.eventIds=eventAggregator.subscribeMultiple([{message:Common.EventNames.WindowScrolled,callback:function(){i.checkPositioning(n,t);_.delay(function(){i.checkPositioning(n,t,0)},500)}},{message:Common.EventNames.WindowSizeChanged,callback:function(){i.checkPositioning(n,t)}},{message:Common.EventNames.TriggerArticleTileIsInProximity,callback:function(){i.checkIsInCloseProximity(n)}}])},n.prototype.getTileBoundary=function(){var n=this.articleTile.position().top,t=this.articleTile.position().left;return{
top:n,left:t,bottom:n+this.tileHeight,right:t+this.tileWidth}},n.prototype.getViewportBoundary=function(){var n=this.window.scrollTop,t=this.window.scrollLeft;return{top:n,left:t,bottom:n+this.window.height,right:t+this.window.width}},n.prototype.getCloseProximityBoundary=function(n,t){return{top:n.top-t*this.tileHeight,left:n.left-t*this.tileWidth,bottom:n.bottom+t*this.tileHeight,right:n.right+t*this.tileWidth}},n.prototype.checkIsInCloseProximity=function(n){n===void 0&&(n=function(){});var t=this.isInCloseProximity();t&&n()},n.prototype.checkPositioning=function(n,t,i){n===void 0&&(n=function(){});t===void 0&&(t=function(){});var r=i?this.isInCloseProximity(this.articleTile,i):this.isInCloseProximity();r!==this.wasInCloseProximity&&(r?n():t());this.wasInCloseProximity=r},n}();n.ArticleTilePositionTracking=t;DependencySystem.define(t).as(DS.Factory).andInject([Common.WindowProperties])}(Category||(Category={})),function(n){var t=function(){function n(n,t,i){this.ajax=n;this.articlelistData=t;this.pricemode=
i;this.imageSelector=".main-image";this.secondaryImageSelector=".secondary-image";this.loaderSelector=".loader";this.loadingInProgress=!1}return n.prototype.loadArticle=function(n){return!n.hasClass("placeholder")||this.loadingInProgress?$.Deferred().reject().promise():(this.loadingInProgress=!0,this.articleTilePlaceholder=n,this.loader=this.articleTilePlaceholder.find(this.loaderSelector),this.showLoaderImage(),this.loadData())},n.prototype.showArticleImage=function(n){var i=n.find(this.imageSelector),r=n.find(this.secondaryImageSelector),u=i.data("src"),f=r.data("src"),t;u&&(t=utils.decodeHjax(u),i.attr("src",t).removeClass("hidden").removeData("src").removeAttr("data-src"));f&&(t=utils.decodeHjax(f),r.attr("src",t).removeClass("hidden").removeData("src").removeAttr("data-src"))},n.prototype.showLoaderImage=function(){this.loader.removeClass("hidden")},n.prototype.loadData=function(){var i=this,n=utils.getHjaxTarget(this.articleTilePlaceholder),t;return n?(n=this.setPricemodeQueryParameter(n),t=utils.generateJsonpCallbackFunctionName(
n,["IsHandheld","IsLowendDevice"]),this.ajax.getJsonp({url:n,jsonpCallback:t,crossDomain:!0,cache:!0}).then(function(n){return i.loader.addClass("hidden"),n})):$.Deferred().reject().promise()},n.prototype.setPricemodeQueryParameter=function(n){var i=this.articlelistData.pricemodeParameterName,r=this.pricemode.currentPriceModeValue,t;return!i||!r?n:(t=n,t+=t.indexOf("?")===-1?"?":"&",t+(i+"="+r))},n}();n.ArticleTileContentLoader=t;DependencySystem.define(t).as(DS.Factory).andInject([WebData.Ajax,n.ArticleListDataService,Common.PriceModeUpdater])}(Category||(Category={})),function(n){var t=function(){function n(n,t,i){this.slideshow=n;this.videoApiProvider=t;this.ieFixService=i;this.firstVideoStopped=!1;this.slideSelector=".slide:not(.cycle-sentinel)";this.playButtonSelector=".video-play-button";this.posterImageSelector=".video-poster-image";this.videoSelector=".video";this.slideVideosSelector=this.slideSelector+" .video";this.videoApis={};this.modelSubSlideshows={}}return n.prototype.introduceFor=function(n){var
t=this,i,r,u;return this.introduced?$.Deferred().resolve().promise():(this.cycleContainer=n.find(".slideshow-container"),i=this.cycleContainer.find(this.slideSelector),!i.length)?$.Deferred().resolve().promise():(this.slideshowWrapper=n,this.tile=this.slideshowWrapper.closest(".article-tile"),this.content=this.tile.find(".content"),this.slideshowSeparator=this.content.find(".panel-separator-slideshow"),this.isVideoGallery=this.cycleContainer.hasClass("video-gallery"),this.isShoeGallery=!this.isVideoGallery&&this.cycleContainer.hasClass("shoe-gallery"),this.isModelGallery=!this.isShoeGallery&&this.cycleContainer.hasClass("model-gallery"),r=!1,i.length===1&&(r=!0),i.each(function(n,t){var i=$(t).find("img.slide-image[data-image-src]"),r;i.length&&(r=i.data("image-src"),r&&i.attr("src",r).removeData("image-src").removeAttr("data-image-src"))}),this.cycleContainer.find(this.slideSelector+" "+this.playButtonSelector).click(function(){return t.handlePlayVideoVideoButton()}),this.shoeSoleImage=n.find(".shoesole-image"),
u={slides:this.slideSelector,fx:"fade",paused:!0,loop:-1,autoHeight:!1,loader:!1,timeout:3e3},this.slideshow.initializeFor(this.cycleContainer,u,!1).then(function(){t.introduced=!0;t.goToDefaultSlide();t.isVideoGallery&&t.prepareVideos();t.isModelGallery&&t.prepareModelSubSlideshows(r)}))},n.prototype.prepareModelSubSlideshows=function(n){var t=this,i=this.cycleContainer.find(".model-sub-slideshow");return $.when.apply($,i.map(function(){var i=$(this),r=Slideshows.Cycle2Slideshow.createInstance(),u=i.closest(".slide").data("colorid"),e=i.parent(".default-slide").length>0,f;return(n||e)&&(t.activeSubSlideshow=u),t.modelSubSlideshows[u]=r,f={slides:".subslide",fx:"fade",paused:!0,loop:-1,autoHeight:!1,loader:!1,timeout:3e3},r.initializeFor(i,f,!1)}))},n.prototype.prepareVideos=function(){var n=this;this.slideshow.pause();this.initialVideoScripts=this.cycleContainer.find(this.slideSelector+" .video-script").clone();this.initialVideoContainers=this.cycleContainer.find(this.slideVideosSelector).clone();this.slideshowWrapper.
on("click",this.slideVideosSelector,function(t){var u=$(t.currentTarget).attr("id"),i=n.videoApiProvider.get(u),r;i.splash||i.poster||i.finished||(t.stopPropagation(),r=n.cycleContainer.find(".articlelink").attr("href"),utils.redirect(r,t))})},n.prototype.gotoSlideWithColorId=function(n){var t=this,i;this.introduced&&(i=this.getIndex(function(i,r){var e=$(r),o=$(r).data("colorid"),u,f;return o==n?(t.isShoeGallery&&(u=e.find(".slide-image"),u.length&&(f=u.data("sole-image-src"),t.shoeSoleImage.attr("src",f),t.shoeSoleImage.attr("alt",u.data("sole-image-alt")))),t.isVideoGallery&&setTimeout(function(){t.stopCurrentVideo()}),t.isModelGallery&&(t.modelSubSlideshows[t.activeSubSlideshow].goTo(0),t.modelSubSlideshows[t.activeSubSlideshow].pause(),t.activeSubSlideshow=n,t.modelSubSlideshows[t.activeSubSlideshow].resume()),!0):!1}),i>=0?(this.stopCurrentVideo(),this.setSlideshowVisibility(!0),this.cycleContainer.cycle("goto",i)):this.setSlideshowVisibility(!1),this.slideshow.pause())},n.prototype.setSlideshowVisibility=
function(n){n?(this.slideshowWrapper.removeClass("hidden"),this.slideshowSeparator.removeClass("hidden"),this.content.addClass("has-slideshow")):(this.slideshowWrapper.addClass("hidden"),this.slideshowSeparator.addClass("hidden"),this.content.removeClass("has-slideshow"));this.ieFixService.doFix(this.tile)},n.prototype.handlePlayVideoVideoButton=function(){this.initializeActiveVideo();this.resumeVideo()},n.prototype.notAutoplayable=function(){return sniff.isHandheld&&(sniff.isAndroid||sniff.isIOS&&parseInt(sniff.version)<10)},n.prototype.resume=function(){this.introduced&&(this.isVideoGallery?this.initializeActiveVideo(!0):this.isModelGallery?this.modelSubSlideshows[this.activeSubSlideshow].resume():this.slideshow.resume())},n.prototype.destroy=function(){if(this.slideshow.destroy(),this.isModelGallery)for(var n in this.modelSubSlideshows)this.modelSubSlideshows.hasOwnProperty(n)&&this.modelSubSlideshows[n].destroy()},n.prototype.resetAndStop=function(){this.introduced&&(this.isVideoGallery&&(this.stopCurrentVideo(
),this.resetVideoContainers()),this.setSlideshowVisibility(!0),this.goToDefaultSlide(),this.slideshow.pause(),this.isModelGallery&&(this.modelSubSlideshows[this.activeSubSlideshow].goTo(0),this.modelSubSlideshows[this.activeSubSlideshow].pause()))},n.prototype.resetVideoContainers=function(){var n=this;this.cycleContainer.find(this.slideVideosSelector).each(function(t,i){var r=$(i);r.before(n.initialVideoScripts[t]);LifeCycleSystem.replace(r,$(n.initialVideoContainers[t]).clone())})},n.prototype.stopCurrentVideo=function(){var t=this.cycleContainer.find(this.slideSelector+".cycle-slide-active"),n=t.find(this.videoSelector),r,u,f,i;n.length&&(r=t.find(this.posterImageSelector),r.removeClass("hidden"),u=t.find(this.playButtonSelector),u.removeClass("hidden"),f=n.attr("id"),i=this.videoApis[f],!this.firstVideoStopped&&this.notAutoplayable()&&(n.find(".fp-player").removeAttr("style"),n.find(".fp-play").removeAttr("style"),this.firstVideoStopped=!0),i&&i.stop(),n.addClass("hidden"))},n.prototype.goToDefaultSlide=function(
){var n=this.getIndex(function(n,t){return $(t).hasClass("default-slide")});n>=0&&this.slideshow.goTo(n)},n.prototype.getIndex=function(n){var i=this.cycleContainer.find(this.slideSelector),t=-1;return i.each(function(i,r){n(i,r)&&(t=i)}),t},n.prototype.initializeActiveVideo=function(n){var t=this;n===void 0&&(n=!1);this.cycleContainer.find(".cycle-slide-active .video").removeClass("flowplayer-unloaded").addClass("flowplayer");LifeCycleSystem.digest().then(function(){var i=t.cycleContainer.find(".cycle-slide-active .video"),u=i.attr("id"),r=t.videoApiProvider.get(u);n&&t.notAutoplayable()?(i.find(".fp-player").css("background","none"),i.find(".fp-play").css({display:"block",visibility:"visible"})):r.splash&&r.load();t.videoApis[u]=r})},n.prototype.resumeVideo=function(){var r=this,t=this.cycleContainer.find(".cycle-slide-active"),i=t.find(".video"),u=i.attr("id"),n=this.videoApiProvider.get(u);if(n.ready)n.resume(),this.switchVisibilityFromPosterImageToVideo(t,i);else n.one("ready",function(){n.resume();r.switchVisibilityFromPosterImageToVideo(
t,i)})},n.prototype.switchVisibilityFromPosterImageToVideo=function(n,t){var r=n.find(this.posterImageSelector),i;r.addClass("hidden");i=n.find(this.playButtonSelector);i.addClass("hidden");t.removeClass("hidden")},n}();n.ArticleTileGalleryService=t;DependencySystem.define(t).as(DS.Factory).andInject([Slideshows.Cycle2Slideshow,"Video2ApiProvider",n.ArticleTileIeFixService])}(Category||(Category={})),function(n){var t=function(){function n(n,t){this.origin=n;this.slideshow=t;this.mainAndSecondaryImageClass="main-and-secondary-image-present";this.isIntroduced=!1;this.canUseSlideshow=sniff.isTouch&&sniff.isHandheld;this.options={slides:"> img",fx:"scrollHorz",paused:!0,autoHeight:!1,loader:!1}}return n.prototype.introduceFor=function(n){this.imageContainer=n;this.mainImage=this.imageContainer.find("img.main-image");this.secondaryImage=this.imageContainer.find("img.secondary-image");this.hasMainAndSecondaryImage&&this.canUseSlideshow&&this.initializeSlideshow();this.isIntroduced=!0},n.prototype.initializeSlideshow=
function(){var n=this;this.slideshow.initializeFor(this.imageContainer,this.options,!1).then(function(){n.slideshowInitialized=!0})},n.prototype.secondaryImagePresenter=function(){var n=this;if(!sniff.isKioskDevice&&(!sniff.isHandheld||!sniff.isTouch))this.imageContainer.on("mouseleave"+this.origin.eventNamespace,function(){n.showMainHideSecondary()}).on("mouseenter"+this.origin.eventNamespace,function(){n.showSecondaryHideMain()})},n.prototype.showMainHideSecondary=function(){this.hasMainAndSecondaryImage&&(this.mainImage.css("display","block"),this.secondaryImage.css("display","none"))},n.prototype.showSecondaryHideMain=function(){this.hasMainAndSecondaryImage&&(this.mainImage.css("display","none"),this.secondaryImage.css("display","block"))},n.prototype.update=function(n,t){this.isIntroduced&&(this.mainImage.attr("src",n),t?(this.secondaryImage.removeClass("hidden").attr("src",t),this.imageContainer.addClass(this.mainAndSecondaryImageClass)):(this.secondaryImage.addClass("hidden"),this.imageContainer.removeClass(
this.mainAndSecondaryImageClass)),this.canUseSlideshow&&this.UpdateSecondaryImageForSlideShow(t))},n.prototype.UpdateSecondaryImageForSlideShow=function(n){var t=this;n?this.secondaryImage.addClass("slide"):this.secondaryImage.removeClass("slide");this.hasMainAndSecondaryImage?this.slideshowInitialized||this.initializeSlideshow():this.slideshowInitialized&&this.slideshow.destroy().then(function(){t.slideshowInitialized=!1})},Object.defineProperty(n.prototype,"hasMainAndSecondaryImage",{get:function(){return this.imageContainer.hasClass(this.mainAndSecondaryImageClass)},enumerable:!0,configurable:!0}),n.prototype.destroy=function(){var n=this;this.isIntroduced&&(this.showMainHideSecondary(),this.imageContainer.off(this.origin.eventNamespace),this.slideshow.destroy().then(function(){n.slideshowInitialized=!1}))},n}();n.ArticleTileImageService=t;DependencySystem.define(t).as(DS.Factory).andInject([DS.Origin,Slideshows.Cycle2Slideshow])}(Category||(Category={})),function(n){var t=function(){function n(n,t,i,r,u){
this.origin=n;this.availableSizesService=t;this.availableSizesLoader=i;this.listPositionService=r;this.articleListOpenedTileDetection=u;this.availableSizesLinkSelector=".available-sizes-link .link[data-ajaxtarget]";this.onTopAvailableSizesClassName="ontop-available-sizes"}return n.prototype.introduceFor=function(n){this.articleTile=n;this.articleId=n.attr("id");this.subscribeToEvents();this.bindAvailableSizesLink()},n.prototype.bindAvailableSizesLink=function(){this.origin.setUp(this.articleTile).on("click",this.availableSizesLinkSelector,{stopPropagation:!0,debounce:1e3,immediate:!0},this.toggleAvailableSizes.bind(this))},Object.defineProperty(n.prototype,"width",{get:function(){return this.articleTile.outerWidth()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"isOnLastRow",{get:function(){return this.articleTile.onLastRow()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"availableSizesShadowAndMargin",{get:function(){return parseInt(this.articleTile.css("margin-right"))}
,enumerable:!0,configurable:!0}),n.prototype.toggleAvailableSizes=function(){var n=this;if(this.availableSizesLink||(this.availableSizesLink=this.articleTile.find(this.availableSizesLinkSelector)),this.availableSizesService.isVisible){this.hideAvailableSizes();return}this.availableSizesService.isInitialized?this.showAvailableSizes():this.injectAndInitializeAvailableSizes().then(function(){n.showAvailableSizes()})},n.prototype.injectAndInitializeAvailableSizes=function(){var t=this,n=$.Deferred(),i=String(this.availableSizesLink.data("ajaxtarget"));return this.availableSizesLoader.load(i).then(function(n){t.processAjaxResult(n)}).then(function(){n.resolve()}),n},n.prototype.processAjaxResult=function(n){if(!n){eventAggregator.publish(Common.EventNames.SetArticleTileToSoldOut,this.articleTile);return}var t=$(n);this.availableSizesLink.after(t);this.availableSizesService.initializeFor(t,this)},n.prototype.showAvailableSizes=function(){var i=this,n,t;this.articleTile.addClass(this.onTopAvailableSizesClassName);this.
listPositionService.determineTilePositionInGridRow(this.origin.contextQuery);this.getTilePosition()==null?(n=0,t=function(){i.isHovercontentOpen()||n>4?i.callAvailableSizesService():(n++,setTimeout(t,500))},t()):this.callAvailableSizesService()},n.prototype.hideAvailableSizes=function(n,t){var i=this;n===void 0&&(n=!0);t===void 0&&(t=!1);this.availableSizesService.hide(n,t).done(function(){i.articleTile.removeClass(i.onTopAvailableSizesClassName)})},Object.defineProperty(n.prototype,"position",{get:function(){var n=this.articleTile.find(".article-information-container").innerWidth();return this.getTilePosition()==null&&this.isHovercontentOpen()&&(n+=this.articleTile.find(".colors").innerWidth()*2),{tileWidth:n,tilePosition:this.getTilePosition(),linkPosition:this.availableSizesLink.position().top,linkHeight:this.availableSizesLink.outerHeight()}},enumerable:!0,configurable:!0}),n.prototype.isHovercontentOpen=function(){return this.articleTile.hasClass("hovercontent-open")?!0:!1},n.prototype.callAvailableSizesService=
function(){var n=this;if(this.articleListOpenedTileDetection.openedArticleId&&this.articleId!==this.articleListOpenedTileDetection.openedArticleId){this.articleTile.removeClass(this.onTopAvailableSizesClassName);return}this.availableSizesService.show(this.position).done(function(){n.articleTile.hasClass("off")&&n.hideAvailableSizes()})},n.prototype.getTilePosition=function(){return this.articleTile.hasClass("left")?"left":this.articleTile.hasClass("right")?"right":null},n.prototype.subscribeToEvents=function(){var n=this;this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.AvailableSizesClose,callback:function(t){n.hideAvailableSizes(!1,t)}},{message:Common.EventNames.ArticleTileOpened,callback:function(t){n.articleId!==t.id&&n.hideAvailableSizes(!0)}}])},n.prototype.destroy=function(){this.origin.tearDown();this.availableSizesService.destroy();eventAggregator.unSubscribeMultiple(this.subscriptions)},n}();n.ArticleTileAvailableSizesLinkService=t;DependencySystem.define(t).as(DS.Factory).
andInject([DS.Origin,n.AvailableSizesService,n.AvailableSizesLoaderService,n.ArticleListTilePositionService,n.ArticleListOpenedTileDetectionService])}(Category||(Category={})),function(n){var t=function(){function n(n){this.origin=n;this.isIntroduced=!1;this.colorContainerSelector=".colors";this.colorItemSelector=".color:not(.filtered-out)";this.selectedClass="selected";this.articlelinkSelector=".articlelink"}return n.prototype.introduceFor=function(n,t,i,r){var f=n.find(this.colorContainerSelector),u=n.find(this.colorItemSelector);u.length&&(this.colorContainer=f,this.colorItems=u,this.articlelink=n.find(this.articlelinkSelector),this.orderlink=n.find(".order-link .link"),this.imageService=t,this.gallery=i,this.hoverTracking=r,this.bindEvents(),this.isIntroduced=!0)},n.prototype.bindEvents=function(){var n=this;if(sniff.isHandheld&&sniff.isTouch)this.colorContainer.on("tap click",this.colorItemSelector,function(t){n.onClick(t)});else this.colorContainer.hoverIntent({over:function(t){n.onMouseEnter(t)},out:function(
){},timeout:400,selector:this.colorItemSelector})},n.prototype.onMouseEnter=function(n){if(this.hoverTracking.isHoverContentOpen){var t=$(n.currentTarget);this.changeVariant(t)}},n.prototype.onClick=function(n){var t=$(n.currentTarget);t.hasClass(this.selectedClass)||(n.preventDefault(),this.changeVariant(t))},n.prototype.changeVariant=function(n){if(!n.hasClass(this.selectedClass)){var t=this.readVariantData(n);this.updateSelected(n);this.imageService.update(t.imageSrc,t.hoverImageSrc);this.updateArticleLink(t.detailPageLink,t.directOrderModalHjaxTarget,t.directOrderModalAjaxTarget);this.gallery.gotoSlideWithColorId(t.colorId);this.notifyMpc(t.colorId)}},n.prototype.readVariantData=function(n){var t=n.find("a"),r=n.find("img"),i=t.data("hover-image"),u=i?i.toString():null;return{detailPageLink:t,colorId:r.data("colorid").toString(),imageSrc:t.data("preview-image").toString(),hoverImageSrc:u,directOrderModalHjaxTarget:t.data("directordermodal-hjaxtarget"),directOrderModalAjaxTarget:t.data("directordermodal-ajaxtarget")}}
,n.prototype.updateSelected=function(n){this.colorItems.removeClass(this.selectedClass);n.addClass(this.selectedClass)},n.prototype.notifyMpc=function(n){window.shell&&window.shell.publishTo(Common.EventNames.ManualProductComparisonUpdateTouchPoints,n)},n.prototype.destroy=function(){this.origin.tearDown();this.colorContainer&&this.colorContainer.unbind("mouseenter").unbind("mouseleave")},n.prototype.updateArticleLink=function(n,t,i){t?this.orderlink.data("modal-hjaxtarget",t):i&&this.orderlink.data("modal-ajaxtarget",i);this.articlelink.prop("href",n.prop("href")).removeAttr("data-params");n.attr("rel")?this.articlelink.attr("rel",n.attr("rel")):this.articlelink.removeAttr("rel")},n.prototype.resetToDefaultVariant=function(){if(this.isIntroduced){var n=this.colorItems.filter(".default-selected");this.changeVariant(n)}},n}();n.ArticleTileVariantChangeService=t;DependencySystem.define(t).as(DS.Factory).andInject([DS.Origin])}(Category||(Category={})),function(n){var t=function(){function n(n){this.shopcontent=
n.shopcontent();this.windowElement=n.window();this.initialPageContentPadding=parseInt(this.shopcontent.parent(".inner-container").css("padding-top"))}return n.prototype.toVisible=function(n){var t=Common.FeatureToggle.FilterAndSortRewrite?this.shopcontent.find(".scope-breadcrumb"):this.shopcontent.find(".filter-bar"),i=$.Deferred(),r;return t.length?(r={offsetTop:sniff.isHandheld?0:t[0].getBoundingClientRect().top+t.height(),offsetBottom:this.getOffsetBottom(t),onFirstRow:n.onFirstRow(),scrollTop:this.scrollToTop(),complete:function(){i.resolve()}},n.scrollIntoView(r)):i.reject(),i.promise()},n.prototype.getOffsetBottom=function(n){var t=25,i=this.windowElement.scrollTop(),u=n.siblings(".sliderelement.open"),r;return sniff.isHandheld||i>=this.initialPageContentPadding||n.hasClass("fixed")||!u.length?t:(r=i/2,this.initialPageContentPadding-r-t)},n.prototype.scrollToTop=function(){return!this.shopcontent.find(".content-top:visible").length&&!this.shopcontent.find(".productfilter.open").length&&!this.shopcontent.
find(".sliderelement.open").length},n}();n.ArticleTileScrollService=t;DependencySystem.define(t).as(DS.Singleton).andInject([Common.ElementRepository])}(Category||(Category={})),function(n){var t=function(){function n(){var n=this;this.isAllowedShowHoverContent=!0;window.shell&&(window.shell.subscribeTo(Common.EventNames.FilterAndSortAllowedShowHoverContent,function(){n.isAllowedShowHoverContent=!0},null),window.shell.subscribeTo(Common.EventNames.FilterAndSortBlockShowHoverContent,function(){n.isAllowedShowHoverContent=!1;eventAggregator.publish(Common.EventNames.FilterAndSortShouldCloseHoverContent)},null))}return n.prototype.destroy=function(){window.shell&&(window.shell.unsubscribeFrom(Common.EventNames.FilterAndSortAllowedShowHoverContent,null),window.shell.unsubscribeFrom(Common.EventNames.FilterAndSortBlockShowHoverContent,null))},n}();n.AllowedShowHoverContentService=t;DependencySystem.define(t).as(DS.Singleton)}(Category||(Category={})),function(n){var t=function(){function n(n,t,i,r){var u=this;this.
origin=n;this.positionTracking=t;this.hoverTracking=i;this.contentLoader=r;this.articleTilePlaceholder=this.origin.contextQuery;this.positionTracking.apply(this.articleTilePlaceholder,function(){u.contentLoader.showArticleImage(u.articleTilePlaceholder)});this.hoverTracking.registerHoverPrepareCallback(function(){var n=(new Date).getTime();return u.contentLoader.loadArticle(u.articleTilePlaceholder).then(function(t){if(t.length){var i=(new Date).getTime();u.transformIntoInStockArticleTile(t,i-n)}else u.transformIntoSoldOldArticleTile();u.destroy()})});this.hoverTracking.apply(this.articleTilePlaceholder)}return n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.eventIds);this.origin.tearDown();this.positionTracking.destroy();this.hoverTracking.destroy()},n.prototype.transformIntoInStockArticleTile=function(n,t){var r=this.hoverTracking.isMouseOverTile,i=$(ajaxDomHelper.getNamedObjectValueFromArray("article",n));window.shell&&window.shell.publishTo(Common.EventNames.ManualProductComparisonCreateScaleIconTouchPoints,
i[0]);this.preserveArticleTilePlaceholderAttributes(i);i.removeClass("placeholder");this.preservePrice(i);this.preserveEyeCatcher(i);this.preserveOrderLinkText(i);this.markFilteredOutColors(i);LifeCycleSystem.replace(this.articleTilePlaceholder,i).then(function(){r&&eventAggregator.publish(Common.EventNames.ArticleTileReplacedByHover,{id:i.attr("id"),ajaxDuration:t});modalManager.initModalLinks(i,".order-link .link")})},n.prototype.preserveArticleTilePlaceholderAttributes=function(n){var t=this.articleTilePlaceholder.attr("id"),i=this.articleTilePlaceholder.attr("data-position"),r=this.articleTilePlaceholder.attr("style"),u=this.articleTilePlaceholder.attr("class"),f=this.articleTilePlaceholder.attr("data-stm"),e=this.articleTilePlaceholder.find(".has-comparison-price").length?"has-comparison-price":"";n.attr("id",t).attr("data-position",i).attr("style",r).attr("data-stm",f).addClass(u);n.find(".article-information-container").addClass(e)},n.prototype.preserveOrderLinkText=function(n){var t=this.articleTilePlaceholder.
find(".order-link .link").attr("data-text");n.find(".order-link .link").attr("data-text",t)},n.prototype.markFilteredOutColors=function(n){var i=this.articleTilePlaceholder.attr("data-filtered-out-color-codes"),t,r;i&&(t=i.split(","),t.length)&&(r=n.find(".colors"),t.forEach(function(n){r.find('.color[data-color-code="'+n+'"]').addClass("filtered-out")}))},n.prototype.preservePrice=function(n){var t=this.articleTilePlaceholder.find(".articlelink .priceinfo"),i=n.find(".article-information-container .articlelink");i.append(t)},n.prototype.preserveEyeCatcher=function(n){var t=this.articleTilePlaceholder.find(".eye-catchers"),i=n.find(".eye-catchers");i.replaceWith(t)},n.prototype.transformIntoSoldOldArticleTile=function(){this.articleTilePlaceholder.removeClass("placeholder").addClass("sold-out");LifeCycleSystem.digest()},n}();n.ArticleTilePlaceholderController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.ArticleTilePositionTracking,n.ArticleTileHoverTracking,n.ArticleTileContentLoader])}
(Category||(Category={})),function(n){var t=function(){function t(){}return t.componentName="article-tile-placeholder",t.query=".article-tile.placeholder",t.controller=n.ArticleTilePlaceholderController,t}();n.ArticleTilePlaceholderComponent=t;DependencySystem.define(t).as(DS.Component)}(Category||(Category={})),function(n){var t=function(){function n(n,t){this.origin=n;this.soldoutImage=t;this.articleLink=n.contextQuery.find(".articlelink");this.deactivateArticleLink();this.setToSoldout()}return n.prototype.destroy=function(){this.origin.tearDown()},n.prototype.deactivateArticleLink=function(){this.origin.setUp(this.articleLink).on("click tap",{stopPropagation:!0},function(){})},n.prototype.setToSoldout=function(){this.origin.contextQuery.find(".content").append(this.soldoutImage.image)},n}();n.SoldOutArticleTileController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.ArticleListSoldoutImageService])}(Category||(Category={})),function(n){var t=function(){function t(){}return t.componentName=
"sold-out-article-tile",t.query=".article-tile.sold-out",t.controller=n.SoldOutArticleTileController,t}();n.SoldOutArticleTileComponent=t;DependencySystem.define(t).as(DS.Component)}(Category||(Category={})),function(n){var t=function(){function n(n,t,i,r,u,f,e,o,s,h){var c=this;this.origin=n;this.hoverTracking=t;this.availableSizesLink=i;this.imageService=r;this.gallery=u;this.variantChange=f;this.listPositionService=e;this.scroll=o;this.ieFix=s;this.showHoverService=h;this.componentsArePrepared=!1;this.deferredImgSrcAttr="deferred-img-src";this.articleImageContainerSelector=".article-image-container";this.availableSizesLink.introduceFor(this.origin.contextQuery);this.hoverTracking.apply(this.origin.contextQuery,this.openHoverContent.bind(this),this.closeHoverContent.bind(this));eventAggregator.subscribe(Common.EventNames.FilterAndSortShouldCloseHoverContent,function(){c.hoverTracking.isHoverContentOpen&&c.closeHoverContent(!1)})}return n.prototype.destroy=function(){this.hoverTracking.destroy();this.availableSizesLink.
destroy();this.imageService.destroy();this.gallery.destroy();this.variantChange.destroy();this.origin.tearDown()},n.prototype.openHoverContent=function(){var n=this;this.prepareForOpeningOfHoverContent().then(function(){n.showHoverService.isAllowedShowHoverContent&&(n.listPositionService.determineTilePositionInGridRow(n.origin.contextQuery),n.origin.contextQuery.addClass("animating hovercontent-open").delay(0).queue(function(){n.origin.contextQuery.removeClass("animating").dequeue()}),n.ieFix.doFix(n.origin.contextQuery),n.scroll.toVisible(n.origin.contextQuery),n.gallery.resume(),n.imageService.secondaryImagePresenter())})},n.prototype.closeHoverContent=function(n){var t=this,i=n?0:250;this.origin.contextQuery.addClass("animating").delay(i).queue(function(){t.origin.contextQuery.removeClass("animating hovercontent-open").dequeue();t.ieFix.undo(t.origin.contextQuery)});this.variantChange.resetToDefaultVariant();this.gallery.resetAndStop();this.availableSizesLink.hideAvailableSizes();this.imageService.destroy(
);this.componentsArePrepared=!1},n.prototype.prepareForOpeningOfHoverContent=function(){var n=this;return this.componentsArePrepared?$.Deferred().resolve().promise():(this.loadHiddenImages(),this.prepareHoverContentComponents().then(function(){n.componentsArePrepared=!0}))},n.prototype.loadHiddenImages=function(){var n=this,t="data-"+this.deferredImgSrcAttr;this.origin.contextQuery.find("["+t+"]").each(function(i,r){var u=$(r),f=u.data(n.deferredImgSrcAttr);u.attr("src",f).removeData(n.deferredImgSrcAttr).removeAttr(t)})},n.prototype.prepareHoverContentComponents=function(){var n=this.origin.contextQuery.find(".slideshow-wrapper"),t=this.gallery.introduceFor(n),i=this.origin.contextQuery.find(this.articleImageContainerSelector);return this.imageService.introduceFor(i),this.variantChange.introduceFor(this.origin.contextQuery,this.imageService,this.gallery,this.hoverTracking),t},n}();n.InStockArticleTileController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,n.ArticleTileHoverTracking,n.ArticleTileAvailableSizesLinkService,
n.ArticleTileImageService,n.ArticleTileGalleryService,n.ArticleTileVariantChangeService,n.ArticleListTilePositionService,n.ArticleTileScrollService,n.ArticleTileIeFixService,n.AllowedShowHoverContentService])}(Category||(Category={})),function(n){var t=function(){function t(){}return t.componentName="in-stock-article-tile",t.query=".article-tile.in-stock",t.controller=n.InStockArticleTileController,t}();n.InStockArticleTileComponent=t;DependencySystem.define(t).as(DS.Component)}(Category||(Category={})),function(n){var t=function(){function n(n){this.imageMapSelector="#functional-accordion";this.imageMapAreaSelector=".areasource";this.collapseItemSelector=".panel-collapse";this.collapsePanelSelector=".panel";this.headingImageSelector=".heading-image";this.headingImages={};this.scrollOffset=150;this.collapseElement=n;this.imageMapElement=$(this.imageMapSelector);this.scrollBody=$("html");this.initCollapse()}return n.prototype.initCollapse=function(){this.preloadHeadingImages();this.bindDelegates();this.openPanelOnLoad(
)},n.prototype.preloadHeadingImages=function(){var n=this;this.collapseElement.find(this.headingImageSelector).each(function(t,i){var r=$(i);n.headingImages[r.parent().attr("href")+"Closed"]=r.data("closed");n.headingImages[r.parent().attr("href")+"Open"]=r.data("open")});this.preloadImages(this.headingImages)},n.prototype.bindDelegates=function(){var n=this;this.collapseElement.on("show.bs.collapse",this.collapseItemSelector,function(t){n.setHeadingImage($(t.target),"open")}).on("shown.bs.collapse",this.collapseItemSelector,function(){try{carouselManager.updateCarousels();carouselManager.startAllVisible()}catch(n){}eventAggregator.publish(Common.EventNames.PageLayoutChanged)}).on("hide.bs.collapse",this.collapseItemSelector,function(){try{carouselManager.pauseAll()}catch(n){}}).on("hidden.bs.collapse",this.collapseItemSelector,function(t){n.setHeadingImage($(t.target),"closed");eventAggregator.publish(Common.EventNames.PageLayoutChanged)}).on("click",this.headingImageSelector,function(t){return n.openLayer(t)}
);this.imageMapElement.on("click",this.imageMapAreaSelector,function(t){return n.openLayer(t)})},n.prototype.openLayer=function(n){var u=this,t,i,r;if(n.preventDefault(),t=$(n.target),t.hasClass("heading-image")&&(t=t.parent()),i=t.attr("href"),r=this.collapseElement.find(this.collapseItemSelector+".in"),r.filter(i).length>0){this.scrollToPanel(i);return}r.collapse("hide");this.openPanelById(i).done(function(){u.scrollToPanel(i)})},n.prototype.openPanelOnLoad=function(){var n=this,t=window.location.hash;switch(t){case"":_.delay(function(){n.openPanelById("#Layer0");_.delay(function(){n.closePanelById("#Layer0")},3e3)},1e3);break;case"#Layer4":_.delay(function(){$.when(n.openPanelById("#Layer2"),n.openPanelById("#Layer3")).done(function(){n.scrollToPanel("#Layer3")})},1e3);this.collapseElement.one("click.bs.collapse",'[href="#Layer2"], [href="#Layer3"]',function(t){t.preventDefault();t.stopPropagation();n.closePanelById("#Layer2");n.closePanelById("#Layer3")});break;default:_.delay(function(){n.openPanelById(t);
n.scrollToPanel(t)},1e3);this.collapseElement.on("click.bs.collapse",function(i){$(i.target).hasClass("panel-collapse")&&(i.preventDefault(),n.closePanelById(t))})}},n.prototype.preloadImages=function(n){var r=[],t,i;for(t in n)n.hasOwnProperty(t)&&(i=new Image,i.src=n[t],r.push(i))},n.prototype.setHeadingImage=function(n,t){n.closest(this.collapsePanelSelector).find(this.headingImageSelector).attr("src",function(){return $(this).data(t)})},n.prototype.openPanelById=function(n){var t=$.Deferred();return this.collapseElement.find(n).one("shown.bs.collapse",function(){t.resolve()}).collapse("show"),t.promise()},n.prototype.closePanelById=function(n){this.collapseElement.find(n).collapse("hide")},n.prototype.scrollToPanel=function(n){this.scrollBody.velocity("scroll",{offset:this.collapseElement.find(n).prev().offset().top-this.scrollOffset})},n}();n.FunctionalAccordion=t}(PageElements||(PageElements={}));$(document).ready(function(){$(".functional-accordion-container").each(function(n,t){new PageElements.FunctionalAccordion(
$(t))})}),function(n){var t=function(){function n(){this.postMessageCallbacks={};this.postMessageListener();this.initExternalCallbacks()}return n.prototype.addPostMessageCallback=function(n,t){this.postMessageCallbacks[n]=t},n.prototype.removePostMessageCallback=function(n){delete this.postMessageCallbacks[n]},n.prototype.postMessageListener=function(){var n=this;$(window).on("message",function(t){n.handleMessage(t)})},n.prototype.handleMessage=function(n){if(!_.isUndefined(n.originalEvent.data)&&_.isString(n.originalEvent.data)){var t=n.originalEvent.data;_.has(this.postMessageCallbacks,t)&&this.postMessageCallbacks[t]()}},n.prototype.initExternalCallbacks=function(){this.addPostMessageCallback("iframeInputFocus",function(){sniff.isIPad&&$("body").addClass("fix-fixed")});this.addPostMessageCallback("iframeInputBlur",function(){sniff.isIPad&&$("body").removeClass("fix-fixed")});this.addPostMessageCallback("permanentIframeInputFocus",function(){sniff.isIPad&&($("body").addClass("fix-fixed").css("position","fixed").
css("top","-10px").hide().show(),$("#simplemodal-overlay").css("height","100%"),$("iframe").css({height:"100%","margin-top":0}))});this.addPostMessageCallback("closeModals",function(){modalManager.closeModals()})},n}();n.PostMessageHelper=t}(PageElements||(PageElements={}));postMessageHelper=new PageElements.PostMessageHelper,function(n){var t=function(){function n(n){this.shopContentSelector=".shopcontent";this.ajax=DependencySystem.resolve(WebData.Ajax);this.hrefRebuildService=DependencySystem.resolve(Common.HrefRebuildService);this.carouselSalesTeaser=n;this.salesTeaserContainer=this.carouselSalesTeaser.find(".salesteaser-container");this.initialize();this.loadAjaxContent()}return n.prototype.initialize=function(){var n=this.salesTeaserContainer.find(".cycle-slide");this.bindDelegates();n.length>1&&this.initSlideshow()},n.prototype.initializeFreezers=function(){var n=this;this.freezer=Common.Freezer.createInstance();this.freezer.introduce(this.carouselSalesTeaser,function(){n.stop()},function(){n.start()},
function(){return n.shouldBeFrozen})},Object.defineProperty(n.prototype,"shouldBeFrozen",{get:function(){return!this.salesTeaserContainer.hasClass("cycle-paused")||this.salesTeaserContainer.is(":hover")},enumerable:!0,configurable:!0}),n.prototype.bindDelegates=function(){this.initColorPreview()},n.prototype.initSlideshow=function(){var n=this;this.salesTeaserContainer.on("cycle-initialized",function(){n.initializeFreezers()});this.salesTeaserContainer.cycle({pauseOnHover:!0,slides:"> .cycle-slide",speed:500,loader:"wait",timeout:5e3,log:!1})},n.prototype.loadAjaxContent=function(){var n=this,t=this.salesTeaserContainer.data("ajaxtarget");this.salesTeaserContainer.data("ajaxtarget","");t&&this.ajax.get({url:t}).then(function(t){var r=ajaxDomHelper.getNamedObjectValueFromArray("carousel",t),i=$(r).find(".salesteaser-container .cycle-slide").addClass("display-none");i.length&&(n.salesTeaserContainer.append(i),n.initSlideshow())})},n.prototype.initColorPreview=function(){var n=this;$(this.shopContentSelector).on(
"mouseenter",".salesteaser-container .colors a[data-preview-image]",function(t){var i=$(t.currentTarget),u=i.data("preview-image"),f=n.hrefRebuildService.rebuildHref(i).attr("href"),r=i.closest(".cycle-slide");r.find("img.thumb").attr("src",u);r.find(".articlelink").attr("href",f)})},n.prototype.stop=function(){this.salesTeaserContainer.cycle("pause")},n.prototype.start=function(){this.freezer.isFrozen||this.salesTeaserContainer.cycle("resume")},n}(),i;n.SalesTeaser=t;i=function(){function n(n){var i=this;this.salesTeaserContainers=[];n.each(function(n,r){i.add(new t($(r)))})}return n.prototype.add=function(n){this.containsSalesTeaser(n)||this.salesTeaserContainers.push(n)},n.prototype.containsSalesTeaser=function(n){return $.inArray(n,this.salesTeaserContainers)!=-1},n.prototype.stopAll=function(){$.each(this.salesTeaserContainers,function(n,t){t.stop()})},n.prototype.startAll=function(){$.each(this.salesTeaserContainers,function(n,t){t.start()})},n}();n.SalesTeaserHandler=i}(PageElements||(PageElements={}));
$().ready(function(){salesTeaserHandler=new PageElements.SalesTeaserHandler($(".carousel-salesteaser"))}),function(n){var t=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext($(".handheld body"))},n.prototype.initializeInContext=function(n){n.find("input.show-clear-button").each(function(n,t){var i=$(t),r,u;i.wrap($("<div />").addClass("input-clear-container"));r=!1;u=$("<div />").addClass("input-clear-button").append($("<i><\/i>").addClass("icon-clear")).insertAfter(i).on("click",function(n){i.val("").trigger("change");i.hasClass("tt-query")&&i.typeahead("setQuery",i.val());n.preventDefault();n.stopPropagation()}).on("mouseenter",function(){r=!0}).on("mouseleave",function(){r=!1}).on("mousedown",function(n){n.preventDefault()});i.on("focus keyup change",function(){u[i.val()&&!i.prop("readonly")?"show":"hide"]()});i.on("blur",function(){r||u.hide()});i.blur()})},n}();n.InputClearButtons=t}(PageElements||(PageElements={}));inputClearButtons=new PageElements.InputClearButtons;
$(document).ready(function(){componentManager.registerAndInitComponent(inputClearButtons)}),function(n){var i=function(){function n(n,t){this.Selector=n;this.Options=t}return n}(),t;n.ChildWindowLink=i;t=function(){function n(n){this.links=n}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=function(){var n=new Common.ChildWindowHelper;_.forEach(this.links,function(t){n.initialize(t.Selector,t.Options)})},n}();n.LinksWithChildWindowHandler=t}(PageElements||(PageElements={}));$(document).ready(function(){var n=[new PageElements.ChildWindowLink("a.yourstyle","width=1050, height=700, resizable=yes"),new PageElements.ChildWindowLink("a.equalizer-window","")];linksWithChildWindowHandler=new PageElements.LinksWithChildWindowHandler(n);componentManager.registerAndInitComponent(linksWithChildWindowHandler)}),function(n){var t=function(){function n(){}return n.prototype.initialize=function(){this.initializeInContext($("body"))},n.prototype.initializeInContext=
function(n){var t=this,i=n.find('.binded, [bind-to-input-by-id="true"]');i.each(function(n,i){var r=$(i),u=r.attr("id"),f;if(u&&(f=$('input[name="'+u+'"]'),f.length)){f.val(t.getElementValue(r,u));r.on("change",function(){f.val(t.getElementValue(r,u))})}})},n.prototype.getElementValue=function(n){return n.find("input:checked").addBack("input:checked").val()},n}();n.FormFieldBindings=t}(PageElements||(PageElements={}));formFieldBinder=new PageElements.FormFieldBindings;$(document).ready(function(){componentManager.registerAndInitComponent(formFieldBinder)}),function(n){var t=function(){function t(t,i){t===void 0&&(t=null);this.window=t||window;this.elementRepository=i||n.ElementRepository.getInstance()}return t.prototype.getOptionsFromLinkAttributes=function(n){var t=[];return n.attr("data-width")&&t.push("width="+n.data("width")),n.attr("data-height")&&t.push("height="+n.data("height")),n.attr("data-resizable")&&t.push("resizable="+n.data("resizable")),n.attr("data-scrollbars")&&t.push("scrollbars="+n.data("scrollbars")),
t.join(", ")},t.prototype.initialize=function(n,t){var i=this;t===void 0&&(t="width=1050, height=700, resizable=yes");this.elementRepository.body().on("click",n,function(n){var r;n.preventDefault();r=$(n.target).closest("a");t===""&&(t=i.getOptionsFromLinkAttributes(r));var u=r.attr("href"),f=r.find(".linktext").text(),e=i.window.open(u,f,t);return e.focus(),!1})},t}();n.ChildWindowHelper=t}(Common||(Common={})),function(n){var t=function(){function n(){var n=this;this.jqWindow=$(window);this.highresSource="data-highres-source";this.unveilSelector="img.unveil";this.unveilImagesIn($("body"));eventAggregator.subscribe(Common.EventNames.ContentRevealed,function(t){n.unveilImagesIn(t)});eventAggregator.subscribe(Common.EventNames.UnveilTrigger,function(t){t.trigger("unveil");n.images&&(n.images=n.images.not(t))})}return n.prototype.unveil=function(){this.loaded=this.images.minPartlyInsideViewport().trigger("unveil");this.images=this.images.not(this.loaded)},n.prototype.unveilImagesIn=function(n){var i=this,r=n,t,
u;if(n.is(this.unveilSelector)||(r=n.find(this.unveilSelector)),t=r.filter(function(n,t){return!!t.getAttribute(i.highresSource)}),t.length!==0){t.one("unveil",function(n){var t=$(n.target),r=t.attr(i.highresSource);t.one("load",function(){t.trigger("unveiled");t.attr("src")===r&&t.removeClass("unveil").removeAttr(i.highresSource)}).attr("src",r)});this.images=this.images?this.images.add(t):t;u=_.throttle(function(){i.unveil()},250);this.jqWindow.on("scroll.unveil resize.unveil lookup.unveil",function(){u()});this.unveil()}},n}();n.Unveil=t}(Images||(Images={}));$(document).ready(function(){unveilHandler=new Images.Unveil}),function(n){var t=function(){function n(){this.videoOverlaySelector=".video-overlay.modal"}return n.prototype.initialize=function(){this.initializeInContext($(this.videoOverlaySelector))},n.prototype.initializeInContext=function(n){var t=this;sniff.isDesktop&&utils.getBoolean(n.data("autoplay"))&&(this.videoOverlay=n,this.videoElement=this.getVideoElement(),this.isIframe=this.videoElement.
is("iframe"),this.isIframe&&this.videoElement.attr("src",this.enableJsApiForUrl(this.videoElement.attr("src"))),_.delay(function(){t.playVideoInOverlay()},this.isIframe?1e3:0))},n.prototype.getVideoElement=function(){var n=this.videoOverlay.find(".video-element");return n.length||(n=this.videoOverlay.find("iframe")),n},n.prototype.enableJsApiForUrl=function(n){for(var r=n.split("?"),f=r[0],e=r[1]||"",i,o=/\+/g,s=/([^&=]+)=?([^&]*)/g,u=function(n){return decodeURIComponent(n.replace(o," "))},t={};i=s.exec(e);)t[u(i[1])]=u(i[2]);return t.autoplay=0,t.enablejsapi=1,f+"?"+$.param(t)},n.prototype.playVideoInOverlay=function(){try{if(this.isIframe)this.videoElement.get(0).contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else{var n=this.videoElement.find(".mejs-video").attr("id");mejs.players[n].media.paused&&mejs.players[n].play()}}catch(t){}},n}();n.VideoOverlayAutoplay=t}(PageElements||(PageElements={}));$(document).ready(function(){videoOverlayAutoplay=new PageElements.VideoOverlayAutoplay}
),function(n){var t=function(){function t(){this.videoOverlaySelector=".video-overlay.modal";this.jqWindow=$(window);this.videoOverlayVerticalMargin=80}return t.prototype.initialize=function(){var n=$(this.videoOverlaySelector);this.initializeInContext(n)},t.prototype.initializeInContext=function(n,t){var f=this,i={aborted:function(){},initialized:function(){}},r,u;if($.extend(i,t),!n.length){i.aborted.call(n);return}this.jqWindow.off("resize.videoOverlay");this.videoOverlay=n;r=this.videoOverlay.find("button.close").width();this.videoOverlayHorizontalMargin=r*2+20;this.initializeMediaElementResizer().done(function(){i.initialized.call(n)});u=_.debounce(function(){f.resize()},500);this.jqWindow.on("resize.videoOverlay",function(){return u()})},t.prototype.resize=function(){this.videoOverlay&&this.videoOverlay.length&&this.mediaElementResizer.resize(utils.getWindowWidth(),utils.getWindowHeight())},t.prototype.initializeMediaElementResizer=function(){var t=this.videoOverlay.find(".video-element");if(t.length||(
t=this.videoOverlay.find("iframe")),t.is("iframe")){this.mediaElementResizer=new n.VideoIFrameResizer(t,this.videoOverlayHorizontalMargin,this.videoOverlayVerticalMargin);this.videoOverlay.one("hidden.bs.modal",function(){t.removeClass("media-element-resizer-initialized")})}else this.mediaElementResizer=new n.MediaElementResizer(t,this.videoOverlayHorizontalMargin,this.videoOverlayVerticalMargin);return this.mediaElementResizer.initialize(utils.getWindowWidth()||0,utils.getWindowHeight()||0)},t.prototype.stopAll=function(){this.videoOverlay&&this.videoOverlay.length&&this.videoOverlay.find(".video-element").each(function(n,t){try{t.pause()}catch(i){}})},t.prototype.startAll=function(){this.videoOverlay&&this.videoOverlay.length&&this.videoOverlay.find(".video-element").each(function(n,t){try{t.play()}catch(i){}})},t}();n.VideoOverlayResizer=t}(PageElements||(PageElements={}));$(document).ready(function(){videoOverlayResizer=new PageElements.VideoOverlayResizer}),function(n){var t=function(){function n(n){this.
origin=n;this.dropdownGroup=this.origin.contextQuery;this.shopContent=$("section.shopcontent");this.initDropDownGroup();this.registerActionsOnOptionChange();this.errorElement=this.dropdownGroup.find(".error")}return n.prototype.initDropDownGroup=function(){this.dropdownGroup.find(".sub-dropdown-container:not(.corresponding-dropdown) select").each(function(n,t){$(t).prop("disabled",!0)});this.highlightMandatoryInputs(this.dropdownGroup)},n.prototype.registerActionsOnOptionChange=function(){var n=this;this.shopContent.on("change"+this.origin.eventNamespace,".dropdown-group select",function(t){var i=$(t.target).closest(".dropdown-group");n.showCorrespondingSelectBox(i);eventAggregator.publish(Common.EventNames.HideErrors,i.closest("form"))})},n.prototype.showCorrespondingSelectBox=function(n){eventAggregator.publish(Common.EventNames.TooltipRemoveError,this.dropdownGroup);this.errorElement.removeClass("error");var r=n.find(".dropdown-group-selectbox option:selected").data("corresponding-dropdown"),t=n.find(".sub-dropdown-container.corresponding-dropdown"),
i=n.find('*[data-corresponding-dropdown-id="'+r+'"]');t.data("corresponding-dropdown-id")!=i.attr("corresponding-dropdown-id")&&(t.removeClass("corresponding-dropdown").find("select").each(function(n,t){$(t).prop("disabled",!0)}),i.addClass("corresponding-dropdown").find("select").each(function(n,t){$(t).prop("disabled",!1)}),this.highlightMandatoryInputs(n))},n.prototype.highlightMandatoryInputs=function(n){var r=n.closest("form"),i=[],u=n.find("select > option:selected"),t;for(u.each(function(n,t){var r=$.trim($(t).data("mandatory-inputs"));r&&r!=""&&i.push(r)}),this.removeHighlightClassToMandatoryInputs(r),t=0;t<i.length;t++)this.setHighlightClassToMandatoryInputs(r,i[t])},n.prototype.setHighlightClassToMandatoryInputs=function(n,t){for(var r,e,u=t.split(","),f="",i=0;i<u.length;i++)r=u[i],f+=(i==0?"":", ")+'*[data-input-id="'+r+'"], *[data-label-input-id="'+r+'"]';e=n.find(f);e.each(function(n,t){$(t).addClass("dropdown-group-mandatory")})},n.prototype.removeHighlightClassToMandatoryInputs=function(n){n.find(
"*[data-input-id], *[data-label-input-id]").each(function(n,t){$(t).removeClass("dropdown-group-mandatory")})},n.prototype.destroy=function(){this.shopContent.off(this.origin.eventNamespace)},n}();n.DropdownGroupController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="dropdown-group",t.query=".dropdown-group",t.controller=n.DropdownGroupController,t}();n.DropdownGroupComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(){this.requestIsRunning=!1}return n.prototype.initialize=function(){(this.ajax=DependencySystem.resolve(WebData.Ajax),typeof Payone!="undefined")&&(this.elementRepository=Common.ElementRepository.getInstance(),this.initializeInContext(this.elementRepository.body()))},n.prototype.initializeInContext=function(n){var e=this,s,h;if(this.payoneIFrame=n.find(".payone-iframes-container"),this.payoneIFramesForm=
this.payoneIFrame.closest("form"),this.creditCardType=n.find(".credit-card-type"),this.payoneIFramesForm.length){var t=" height: "+(sniff.isHandheld?this.payoneIFrame.data("height-tablet"):this.payoneIFrame.data("height"))+";",i=" background-color: "+this.payoneIFrame.data("background-color")+";",r=" color: "+this.payoneIFrame.data("text-color")+";",u=" border: "+this.payoneIFrame.data("border")+";",f=" border: "+this.payoneIFrame.data("border-selectbox")+";",o=sniff.isFirefox?"padding: 0px 5px 1px;":"padding: 2px 5px;";this.config={fields:{cardpan:{selector:"card-pan-input",type:"text",style:"font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; width: 195px; border-radius: 0; padding: 2px 5px;"+i+r+u+t},cardcvc2:{selector:"card-cvc-input",type:"text",style:"font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; width: 195px; border-radius: 0; padding: 2px 5px;"+i+r+u+t,size:"4",maxlength:"4"},cardexpiremonth:{selector:"card-expire-month-input",type:"select",size:"2",maxlength:"2",style:
"font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; width: 70px; border-radius: 0;"+i+r+f+o+t,iframe:{width:"90px"}},cardexpireyear:{selector:"card-expire-year-input",type:"select",style:"font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; width: 100px; border-radius: 0;"+i+r+f+o+t,iframe:{width:"110px"}}},defaultStyle:{input:"font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; width: 175px; border-radius: 0; padding: 2px 5px;"+i+r+u+t,select:"font-family: Verdana,Arial,Helvetica,sans-serif; font-size: 10px; border-radius: 0; padding: 2px 5px;"+i+r+f+t,iframe:{height:"33px",width:"200px"}}};this.errorAjaxTarget=this.payoneIFramesForm.find(".payone-iframes-container").data("error-ajaxtarget");this.invalidDataModalId=this.payoneIFramesForm.find(".payone-iframes-container").data("error-modalid");this.request={};this.payoneIFramesForm.find("input.api-attribute").each(function(n,t){var i=$(t);e.request[i.attr("name")]=i.val()});this.iframes=new window.Payone.ClientApi.HostedIFrames(
this.config,this.request);s=_.throttle(function(){e.check()},1e3,{trailing:!1});this.initializeCreditCardTypeEvent();h=this.payoneIFramesForm.find('button[type="submit"]');h.on("click",function(n){s();n.preventDefault()})}},n.prototype.checkCallback=function(n){n.status==="VALID"?(this.payoneIFramesForm.find(".payone-pseudo-card-pan > input").val(n.pseudocardpan),this.payoneIFramesForm.find(".payone-truncated-card-pan > input").val(n.truncatedcardpan),this.payoneIFramesForm.submit()):this.showErrorModal(n.errorcode);clearTimeout(this.payoneTimeoutTimer);this.requestIsRunning=!1},n.prototype.showErrorModal=function(n){if(_.isUndefined(this.errorAjaxTarget)){loadingSpinner.hide();return}var t=this.payoneIFramesForm.find('button[type="submit"]');t.addClass("disabled");this.ajax.post({url:this.errorAjaxTarget,data:{code:n}}).always(function(){t.removeClass("disabled");loadingSpinner.hide()})},n.prototype.initializeCreditCardTypeEvent=function(){var n=this;this.creditCardType.on("click","input",function(){n.iframes.
setCardType(n.creditCardType.find("input:checked").val())})},n.prototype.timeoutOccuredCallback=function(){loadingSpinner.hide();this.requestIsRunning=!1},n.prototype.showIncompleteDataErrorModal=function(){this.invalidDataModalId&&modalManager.openModal($("#"+this.invalidDataModalId).first())},n.prototype.inputFieldsValid=function(){var n=!0;return this.payoneIFramesForm.find("input:text").each(function(t,i){var r=$(i),u=r.val().trim(),f=parseInt(r.attr("maxlength"));(u==""||!isNaN(f)&&u.length>f)&&(n=!1)}),n},n.prototype.check=function(){if(this.requestIsRunning)return!1;if(this.iframes.isComplete()&&this.inputFieldsValid()){var n=this.payoneIFramesForm.find(".payone-iframes-container").data("loader-text");this.requestIsRunning=!0;loadingSpinner.show("lightmodal",!0,n);this.payoneTimeoutTimer=_.delay(this.timeoutOccuredCallback.bind(this),15e3);this.iframes.creditCardCheck("payoneIFrameCheckCallBack")}else this.showIncompleteDataErrorModal();return!1},n}();n.PayoneIFrames=t}(PageElements||(PageElements={}));
payoneIFrames=new PageElements.PayoneIFrames;$(document).ready(function(){componentManager.registerAndInitComponent(payoneIFrames)}),function(n){function r(){eventAggregator.publish(n.EventNames.NavigationContextChanged,i)}var t=n.ElementRepository.getInstance(),i=t.body().data("navigation-context");eventAggregator.subscribe(n.EventNames.NavigationContextChanged,function(n){i=n});eventAggregator.subscribe(n.EventNames.NavigationContextRequested,function(){r()});t.document().ready(function(){_.delay(r,100)})}(Common||(Common={})),function(n){var i=Common.EventNames,r=function(){function n(n){this.ajax=DependencySystem.resolve(WebData.Ajax);this.elementRepository=Common.ElementRepository.getInstance();this.jobFilterFormWrapper=n;this.jobFilterForm=this.jobFilterFormWrapper.find(".job-filter-form");this.summaryAjaxTarget=this.jobFilterForm.data("summary-ajaxtarget");this.listAjaxTarget=this.jobFilterForm.data("list-ajaxtarget");this.dimensions=this.jobFilterForm.find(".dimension");this.resultsPanel=this.jobFilterForm.
find(".results-panel");this.dimensionsAndResultsPanel=this.jobFilterForm.find(".dimension:not(.inside-result-panel), .results-panel");this.dimensionAnimationDuration=500;this.dimensionAnimationDelay=200;this.bindClickOnCheckboxLabels();this.bindClickOnResultsPanel();this.bindClickOnResultsPanelDimension();this.subscribeToResetFilterButton();this.subscribeToEditFilterButton();this.bindClickToCloseFilter();this.initiallySerializedForm=this.jobFilterForm.serialize()}return n.prototype.bindClickOnResultsPanel=function(){var n=this;if(this.jobFilterForm.data("type")=="list")this.resultsPanel.on("click",function(t){if(!utils.isModifierKeyPressed(t)&&n.listAjaxTarget){var i=n.jobFilterForm.serialize();if(t.preventDefault(),n.resultsPanelDisabled||$(t.target).hasClass("label"))return!1;i!==n.initiallySerializedForm&&n.submitFormToGetJobOffers(i)}})},n.prototype.bindClickOnResultsPanelDimension=function(){var n=this;this.resultsPanel.on("click",".option .has-toggle-values",function(t){var i=$(t.target).parent().find("label.has-toggle-values").
attr("data-toggle-values").split(",");n.resultsPanel.find(".toggle-inputs").each(function(n,t){var r=$(t);i.forEach(function(n){r.val()===n&&r.parent().find("label").click()})})})},n.prototype.submitFormToGetJobOffers=function(n){var r=this,t,i;this.initiallySerializedForm=n;t=new Common.InputDisablingHelper;i=t.disableInvisibleInputs(this.jobFilterForm);n=this.jobFilterForm.serialize();this.ajax.post({url:this.listAjaxTarget,data:n}).then(function(n){var t=ajaxDomHelper.getNamedObjectValueFromArray("job-offers",n);r.publishEventToUpdateJobOffers(t)}).always(function(){t.reEnableInvisibleInputs(i)})},n.prototype.publishEventToUpdateJobOffers=function(n){eventAggregator.publish(i.JobOffersResponseReceived,n)},n.prototype.bindClickOnCheckboxLabels=function(){var n=this;if(this.summaryAjaxTarget)this.dimensions.on("click",".option .label, .all-options .label",function(t){var i=$(t.currentTarget),r=i.parent().hasClass("all-options");(n.handleCheckboxes(i,r),$(t.currentTarget).hasClass("has-toggle-values"))||n.submitFormToGetSummary(
)})},n.prototype.submitFormToGetSummary=function(){var n=this,t=new Common.InputDisablingHelper,i=t.disableInvisibleInputs(this.jobFilterForm);this.ajax.post({url:this.summaryAjaxTarget,data:this.jobFilterForm.serialize()}).then(function(t){var r=t[0],i,u;r&&(i=r["job-filter-summary"],i&&(u=n.resultsPanel.find(".job-filter-summary"),u.find(".count").text(i.Count),i.Target?(n.resultsPanelDisabled=!1,n.resultsPanel.removeClass("disabled").attr("href",i.Target)):(n.resultsPanelDisabled=!0,n.resultsPanel.addClass("disabled").removeAttr("href"))))}).always(function(){t.reEnableInvisibleInputs(i)})},n.prototype.isLabelIndicatedAsChecked=function(n){return n.hasClass("checked")},n.prototype.handleCheckboxes=function(n,t){t===void 0&&(t=!1);var i=this.isLabelIndicatedAsChecked(n),r=n.closest(".dimension");if(t){if(i)return;this.toggleCheckboxState(n,!0);this.controlStateOfOptionCheckboxes(r,!1)}else this.toggleCheckboxState(n,!i),this.controlStateOfSelectAllCheckbox(r)},n.prototype.toggleCheckboxState=function(n,t){(
!t||!this.isLabelIndicatedAsChecked(n))&&(t||this.isLabelIndicatedAsChecked(n))&&(n.siblings(".checkbox").prop("checked",t),n.toggleClass("checked",t))},n.prototype.controlStateOfOptionCheckboxes=function(n,t){var i=this;n.find(".option .label").each(function(n,r){var u=$(r);i.toggleCheckboxState(u,t)})},n.prototype.controlStateOfSelectAllCheckbox=function(n){var t=n.find(".option .label"),i=this.getCountOfIndicatedAsCheckedOptionLabels(t),r=this.getSelectAllLabel(n);t.length==i?(this.toggleCheckboxState(r,!0),this.controlStateOfOptionCheckboxes(n,!1)):this.toggleCheckboxState(r,i==0)},n.prototype.getCountOfIndicatedAsCheckedOptionLabels=function(n){var i=this,t=0;return n.each(function(n,r){i.isLabelIndicatedAsChecked($(r))&&t++}),t},n.prototype.getSelectAllLabel=function(n){return n.find(".all-options .label")},n.prototype.selectAllFilterOptions=function(){var n=this;this.dimensions.each(function(t,i){n.handleCheckboxes(n.getSelectAllLabel($(i)),!0)})},n.prototype.resetToggleButton=function(){this.resultsPanel.
find("label.has-toggle-values").each(function(n,t){var i=$(t);i.hasClass("checked")&&i.click()})},n.prototype.subscribeToResetFilterButton=function(){var n=this;eventAggregator.subscribe(Common.EventNames.JobFilterFormResetRequested,function(){n.selectAllFilterOptions();n.resetToggleButton();n.submitFormToGetJobOffers(n.jobFilterForm.serialize());n.submitFormToGetSummary()})},n.prototype.subscribeToEditFilterButton=function(){var n=this;eventAggregator.subscribe(Common.EventNames.JobFilterFormEditRequested,function(){n.isAnimationInProgress||n.isFilterVisible()||n.animateDimensions(!0)})},n.prototype.setStartingAnimationPositionForDimensions=function(){var n=this;this.dimensionsAndResultsPanel.each(function(t,i){var r=$(i);r.css("top",n.getTopPositionForAnimation(r,!0))})},n.prototype.getTopPositionForAnimation=function(n,t){var i=this.elementRepository.window().height(),r=n.outerHeight(),u=t?1:-1;return(i/2+r/2)*u},n.prototype.animateDimensions=function(n){var r=this,u={duration:this.dimensionAnimationDuration,
delay:0},f=0,t,i;for(n&&(this.setStartingAnimationPositionForDimensions(),this.toggleFilterVisibility(n)),this.isAnimationInProgress=!0,t=0;t<this.dimensionsAndResultsPanel.length;t++)i=$(this.dimensionsAndResultsPanel[t]),t&&(u.delay=this.dimensionAnimationDelay*t),n||(f=this.getTopPositionForAnimation(i,!1)),i.velocity({top:f},u);this.dimensionsAndResultsPanel.promise().done(function(){r.isAnimationInProgress=!1;n||r.toggleFilterVisibility(n)})},n.prototype.isFilterVisible=function(){return!this.jobFilterFormWrapper.hasClass("invisible")},n.prototype.bindClickToCloseFilter=function(){var n=this;this.elementRepository.document().on("click",function(t){var i=!$(t.target).closest(".dimension").length;!n.isAnimationInProgress&&n.isFilterVisible()&&i&&n.animateDimensions(!1)})},n.prototype.toggleFilterVisibility=function(n){this.jobFilterFormWrapper.toggleClass("invisible",!n);eventAggregator.publish(Common.EventNames.JobFilterFormVisibilityChangeRequested,n)},n}(),t;n.JobFilterForm=r;t=function(){function n(){}
return n}();n.JobFilterSummary=t}(PageElements||(PageElements={}));$(document).ready(function(){$(".job-filter-form-wrapper").each(function(n,t){new PageElements.JobFilterForm($(t))})}),function(n){var t=Common.EventNames,i=function(){function n(){this.jobListWrapperSelector=".job-list-wrapper";this.jobTilesContainerSelector=".job-tiles-container";this.jobListItemSelector=".job-list-item";this.jobOfferTileSelector=".job-offer-tile, .speculative-application-tile";this.backsideContainerSelector=".backside-container";this.backsideContentWrapperSelector=".backside-content-wrapper";this.backsideContentSelector=".backside-content";this.jobOfferDetailsCache={}}return n.prototype.initialize=function(){this.ajax=DependencySystem.resolve(WebData.Ajax);this.initializeInContext($(".shopcontent"))},n.prototype.initializeInContext=function(n){(this.jobListWrapper=n.find(this.jobListWrapperSelector),this.jobListWrapper.length)&&(this.jobTilesContainer=this.jobListWrapper.find(this.jobTilesContainerSelector),this.backsideContainer=
this.jobListWrapper.find(this.backsideContainerSelector),this.backsideContentWrapper=this.backsideContainer.find(this.backsideContentWrapperSelector),this.backsideContent=this.backsideContainer.find(this.backsideContentSelector),this.elementRepository=Common.ElementRepository.getInstance(),this.initIsotope(),this.bindEvents())},n.prototype.initIsotope=function(){var n=this;this.jobTilesContainer.isotope({layoutMode:"packery",itemSelector:this.jobListItemSelector,transitionDuration:0,packery:{gutter:5,ignoreColumnsHeight:!0,columns:4}});this.jobTilesContainer.removeClass("invisible");this.jobTilesContainer.imagesLoaded().always(function(){n.jobTilesContainer.isotope()})},n.prototype.bindEvents=function(){var n=this,i=function(){n.backsideContainer.css({visibility:"hidden"});n.backsideContent.css({visibility:"hidden",opacity:0})};this.jobListWrapper.on("click",this.jobOfferTileSelector,function(t){t.preventDefault();var r=$(t.currentTarget),f=r.data("ajaxtarget"),u=n.showBackside(r),e=n.requestJobOfferDetails(f).
fail(function(){u.then(i)});$.when(e,u).then(function(t){var i=t[0];n.showJobOfferDetails(r,i)})});eventAggregator.subscribe(t.JobOfferDetailsClosed,i);this.elementRepository.body().on("mousewheel",this.backsideContainerSelector,function(n){return n.preventDefault(),!1});eventAggregator.subscribe(Common.EventNames.JobOfferDetailsLoadPrevious,function(t){if(!n.isGettingDetails){var r=n.jobTilesContainer.find(n.jobOfferTileSelector),i=r.filter('[data-slug="'+t+'"]').prevAll(n.jobOfferTileSelector).first();i.length||(i=r.last());n.requestAndShowJobOfferDetails(i)}});eventAggregator.subscribe(Common.EventNames.JobOfferDetailsLoadNext,function(t){if(!n.isGettingDetails){var r=n.jobTilesContainer.find(n.jobOfferTileSelector),i=r.filter('[data-slug="'+t+'"]').nextAll(n.jobOfferTileSelector).first();i.length||(i=r.first());n.requestAndShowJobOfferDetails(i)}});eventAggregator.subscribe(Common.EventNames.JobOffersResponseReceived,function(t){var i=$(t),r=i.find(n.jobListItemSelector);n.updateJobList(r)});eventAggregator.
subscribe(Common.EventNames.JobOffersHideDetailsBackside,function(){n.backsideContainer.css({visibility:"hidden"})});eventAggregator.subscribe(Common.EventNames.JobOfferDetailsRequestJobCount,function(t){t.setJobOfferCount(n.jobTilesContainer.find(n.jobOfferTileSelector).length)})},n.prototype.updateJobList=function(n){var t=this;this.jobTilesContainer.isotope("remove",this.jobTilesContainer.find(this.jobListItemSelector));this.jobTilesContainer.isotope("insert",n).isotope("reloadItems");n.imagesLoaded().always(function(){t.jobTilesContainer.isotope("layout")})},n.prototype.showBackside=function(n){eventAggregator.publish(Common.EventNames.JobOfferDetailsOpen);var t=n.get(0).getBoundingClientRect(),i=n.data("color");return this.setBacksideStyles(t,i),this.animateBacksideIn()},n.prototype.setBacksideStyles=function(n,t){this.backsideContentWrapper.css({top:n.top,left:n.left,right:n.right,bottom:n.bottom,width:n.right-n.left,height:n.bottom-n.top,"background-color":t})},n.prototype.animateBacksideIn=function(){
var n=this,t=$.Deferred(),i=function(){n.fadeInBacksideContent(t);n.backsideContentWrapper.css({width:"auto",height:"auto"})},r=this.elementRepository.window(),u={top:0,left:0,right:0,bottom:0,width:r.width(),height:r.height()},f={duration:500,easing:"easeInOutCubic",complete:i},e,o;return Modernizr.csstransforms3d&&(e={rotateY:"180deg",visibility:"hidden"},o={duration:1e3,complete:function(t){n.backsideContentWrapper.velocity({rotateY:"0deg"},{duration:0});i(t)}},_.extend(u,e),_.extend(f,o)),this.backsideContainer.css("visibility","visible"),this.backsideContentWrapper.velocity(u,f),t.promise()},n.prototype.fadeInBacksideContent=function(n){this.backsideContent.css("visibility","visible").show();this.backsideContent.velocity({opacity:1},{duration:200,complete:function(){n.resolve()}})},n.prototype.requestJobOfferDetails=function(n){var t=this;return this.jobOfferDetailsCache[n]||(this.isGettingDetails=!0,this.jobOfferDetailsCache[n]=this.ajax.get({url:n}).always(function(){t.isGettingDetails=!1}).fail(function(
){t.jobOfferDetailsCache[n]=undefined})),this.jobOfferDetailsCache[n]},n.prototype.requestAndShowJobOfferDetails=function(n){var t=this;this.requestJobOfferDetails(n.data("ajaxtarget")).then(function(i){return t.showJobOfferDetails(n,i)})},n.prototype.showJobOfferDetails=function(n,t){eventAggregator.publish(Common.EventNames.JobOfferDetailsReceived,t);utils.replaceState(n.attr("href"))},n}();n.JobListing=i}(PageElements||(PageElements={}));jobListing=new PageElements.JobListing;$(document).ready(function(){componentManager.registerAndInitComponent(jobListing)}),function(n){var i=Scrolling.ScrollStateDispatcher,r=Scrolling.GradientsController,u=Scrolling.FirefoxHotfix,f=Scrolling.DesktopEmulationModeFix,t=Common.EventNames,e=Common.FeatureToggle,o=function(){function o(n){var r=this,i;this.elements=Common.ElementRepository.getInstance();i=!1;o.current?(i=!0,n.velocity("fadeIn",{duration:300,begin:function(){return n.css("opacity","0").css("visibility","visible")},complete:function(){o.current&&o.current.details&&
o.current.details.velocity("fadeOut",{duration:200,complete:function(){o.current&&o.current.remove();o.current=r}})}})):(n.css("visibility","visible"),o.current=this);this.details=n;this.jobContent=n.find(".job-content");this.items=this.jobContent.find(".item");this.sushibarContent=n.find(".sushibar-content");this.sushibarItems=this.sushibarContent.find(".item");this.contentBackground=n.find(".content-area .background");this.header=n.find(".header");this.contentTitle=this.header.find(".content-title");this.contentSubtitle=this.header.find(".content-subtitle");this.slug=n.data("slug");this.btnDown=n.find(".down");this.btnUp=n.find(".up");utils.setHtmlTitle(n.data("html-title"));this.disableScrollingBehindDetails();this.initScrollbar();this.bindEvents();this.fixSizeAndInitSizeChangeEvents(i);this.sushibarScrollingFix();eventAggregator.publish(Common.EventNames.JobOffersHideDetailsBackside);eventAggregator.publish(t.JobOfferDetailsRequestJobCount,this)}return o.prototype.disableScrollingBehindDetails=function(){
if(!this.elements.body().hasClass("disable-vertical-scrolling")){var n=this.elements.document().scrollTop();this.elements.body().addClass("disable-vertical-scrolling").css("top",-n)}},o.prototype.initScrollbar=function(){var n=new Common.EventAggregator;this.scrollStateDispatcher=new i(n);this.gradientsController=new r(this.details.find(".gradient-container"),400,n);this.firefoxHotfix=new u;this.desktopEmulationModeFix=new f;this.jobContent.simplebar().use(this.desktopEmulationModeFix).use(this.scrollStateDispatcher).use(this.gradientsController).use(this.firefoxHotfix);this.simplebarScrollContent=this.jobContent.simplebar("getScrollElement")},o.prototype.fixSizeAndInitSizeChangeEvents=function(n){var t=this,u,r,i;this.jobContent.css("margin-bottom",0);u=_.throttle(function(){return t.resize()},200);this.resizeHandler=function(){return u()};r="resize";sniff.isIPad||(r+=" orientationchange");this.elements.window().on(r,this.resizeHandler);this.resize();this.sushibarItems.find("img").one("load",this.resizeHandler);
if(this.scrollStateDispatcher.forceResizeCheck(),!e.HeadRUseResponsiveMetaViewport&&sniff.isIOS){i=$("#viewport");this.orientationChangeIpadFix=function(){var n=window.orientation;n===180||n===0?(i.attr("content",t.getViewportScaleString(.76)),_.delay(function(){return i.attr("content",t.getViewportScaleString(.75))})):i.attr("content",t.getViewportScaleString(1));t.resize()};this.elements.window().on("orientationchange",this.orientationChangeIpadFix);n||this.orientationChangeIpadFix()}},o.prototype.getViewportScaleString=function(n){return"width=1000,user-scalable=no,initial-scale="+n+",maximum-scale="+n+",minimum-scale="+n},o.prototype.isAnimating=function(){return utils.isVelocityAnimating(this.details)||utils.isVelocityAnimating(o.current.details)},o.prototype.sushibarScrollingFix=function(){sniff.isAndroidTablet&&sniff.isWebkit&&!sniff.isChrome&&(this.sushibarContent.css("overflow-y","scroll"),this.sushibarNativeScrolling=!0)},o.prototype.bindEvents=function(){var n=this,r,i;this.details.find(".sushibar .item").
on("click",function(t){return n.showJobItem(t)});this.details.find(".left > div").on("click",function(){return n.loadPreviousJobOffer()});this.details.find(".right > div").on("click",function(){return n.loadNextJobOffer()});this.details.find(".video-container").on("click",function(t){$(t.target).closest("div.video-element").length||n.close()});this.details.on("mousedown",function(n){return r=n.target});this.details.on("click",function(t){if(t.target==r){var i=$(t.target);i.closest(".content-area, .icons, .left, .right, .up, .down, .sushibar-content .item, div.video-element").length||n.close()}});this.btnUp.on("click",function(){return n.sushibarContent.scrollTo("-=120px",200)});this.btnDown.on("click",function(){return n.sushibarContent.scrollTo("+=120px",200)});this.sushibarContent.on("mousewheel",function(t){return n.sushibarContent.scrollTo(t.deltaY>0?"-=30px":"+=30px")});if(i=0,sniff.isTouch&&!this.sushibarNativeScrolling)this.sushibarContent.hammer({recognizers:[[Hammer.Pan,{direction:Hammer.DIRECTION_VERTICAL}]]}).
on("panstart",function(){i=n.sushibarContent.scrollTop()}).on("pan",function(t){var r=i-t.gesture.deltaY;n.sushibarContent.scrollTop(r)});if(sniff.isTouch){var t=0,u=Scrolling.Scrollbar.has(Scrolling.State.ReachedTop),f=Scrolling.Scrollbar.has(Scrolling.State.ReachedBottom);this.details.on("touchstart",function(n){t=n.originalEvent.touches[0].clientY}).on("touchmove",function(i){var r=i.originalEvent.touches[0].clientY;$(i.target).closest(".job-content").length?(r>t&&u==n.scrollStateDispatcher.currentEvent||r<t&&f==n.scrollStateDispatcher.currentEvent)&&i.preventDefault():i.preventDefault();t=r})}},o.prototype.showJobItem=function(i){var r=$(i.currentTarget),f=r.data("target"),h=r.data("is-link-item"),e=r.data("is-video-item"),c=r.data("content-title")||"",l=r.data("content-subtitle")||"",o=this.items.filter(".selected"),u=this.items.eq(r.index()),s;f?h?window.location.href=f:window.open(f):u.hasClass("selected")||(this.sushibarItems.removeClass("selected"),r.addClass("selected"),e?(this.gradientsController.disable(
),this.contentBackground.hide(),this.header.hide()):(this.gradientsController.enable(),this.contentBackground.show(),this.header.show(),this.simplebarScrollContent.scrollTop(0)),this.contentTitle.text(c),this.contentSubtitle.text(l),eventAggregator.publish(t.ContentIsAboutToBeHidden,o),o.removeClass("selected"),u.addClass("selected"),eventAggregator.publish(t.ContentRevealed,u),e&&(s=new n.MediaElementResizer(u.find(".video-element")),s.initialize(u.width(),u.height())),this.jobContent.simplebar("resizeScrollbar"))},o.prototype.close=function(){var n,i;eventAggregator.publish(t.JobOfferDetailsClosed);this.remove();n=this.elements.body();n.hasClass("disable-vertical-scrolling")&&(i=-parseInt(n.css("top")),n.removeClass("disable-vertical-scrolling"),n.css("top","0"),this.elements.document().scrollTop(i));o.current=null;utils.enableZoomingOnHandheld()},o.prototype.remove=function(){eventAggregator.publish(t.ContentIsAboutToBeRemovedFromDOM,this.details);this.details.remove();this.elements.window().off("resize orientationchange",
this.resizeHandler);this.orientationChangeIpadFix&&this.elements.window().off("orientationchange",this.orientationChangeIpadFix);this.scrollStateDispatcher.dispose();this.gradientsController.dispose();o.current=null},o.prototype.loadPreviousJobOffer=function(){this.isAnimating()||eventAggregator.publish(t.JobOfferDetailsLoadPrevious,this.slug)},o.prototype.loadNextJobOffer=function(){this.isAnimating()||eventAggregator.publish(t.JobOfferDetailsLoadNext,this.slug)},o.prototype.resize=function(){var i=this.elements.window().height(),t,n;this.jobContent.height(i-this.header.height()-parseInt(this.jobContent.css("margin-bottom")));t=this.btnDown.is(":visible");t||this.btnDown.show();n=this.btnDown.position().top-this.sushibarContent.position().top;t||this.btnDown.hide();this.sushibarContent.height(n);n>0&&n<this.sushibarContent[0].scrollHeight?(this.btnUp.show(),this.btnDown.show()):(this.btnUp.hide(),this.btnDown.hide());this.jobContent.simplebar("recalculate")},o.prototype.setJobOfferCount=function(n){n<=1&&this.
details.find(".left, .right").css("visibility","hidden")},o}();n.JobOfferDetails=o}(PageElements||(PageElements={}));$(document).ready(function(){function n(n){n.length&&(new PageElements.JobOfferDetails(n),eventAggregator.publish(Common.EventNames.ContentRevealed,n))}n(Common.ElementRepository.getInstance().body().find(".job-offer-details"));eventAggregator.subscribe(Common.EventNames.JobOfferDetailsReceived,function(t){var i=$(t[0]["job-offer-details"]).css("visibility","hidden");Common.ElementRepository.getInstance().body().append(i);eventAggregator.publish(Common.EventNames.ContentAddedToDOM,i);DependencySystem.resolveInContext(PageElements.MailToComponent,i).andBindItToDom();n(i)})}),function(n){var t=function(){function n(n){var t=this;this.jobOffers=n;this.jobOfferTilesContainer=this.jobOffers.find(".job-list-wrapper");this.jobOffersBar=this.jobOffers.find(".job-offers-bar");this.jobOffersBarCounter=this.jobOffersBar.find(".count-information");this.jobOffersBarResetButton=this.jobOffersBar.find(".reset-button");
this.jobOffersBarEditButton=this.jobOffersBar.find(".edit-button");this.bindJobOffersBarButtonEvents();this.subscribeToJobFilterFormVisibilityChangeRequest();this.subscribeToJobFilterFormUpdateRequest();eventAggregator.subscribe(Common.EventNames.JobOfferDetailsClosed,function(){utils.replaceState(t.jobOffers.data("url"));utils.setHtmlTitle(t.jobOffers.data("html-title"))})}return n.prototype.bindJobOffersBarButtonEvents=function(){var n=this;this.jobOffersBar.on("click",".reset-button",function(){n.isJobFilterBarActive()&&eventAggregator.publish(Common.EventNames.JobFilterFormResetRequested)}).on("click",".edit-button",function(){n.isJobFilterBarActive()&&eventAggregator.publish(Common.EventNames.JobFilterFormEditRequested)}).on("click",".go-back-button",function(){n.isJobFilterBarActive()&&history.back()})},n.prototype.subscribeToJobFilterFormVisibilityChangeRequest=function(){var n=this;eventAggregator.subscribe(Common.EventNames.JobFilterFormVisibilityChangeRequested,function(t){n.toggleTransparency(n.jobOfferTilesContainer,
t);n.toggleTransparency(n.jobOffersBar,t)})},n.prototype.subscribeToJobFilterFormUpdateRequest=function(){var n=this;eventAggregator.subscribe(Common.EventNames.JobOffersResponseReceived,function(t){var i=$(t),r=i.find(".job-offers-bar");n.updateJobOffersBar(r);n.updateBrowserUrl(i.data("url"))})},n.prototype.toggleTransparency=function(n,t){n.toggleClass("transparent",t)},n.prototype.updateJobOffersBar=function(n){var t=n.find(".count-information").text(),i=n.find(".reset-button").html(),r=n.find(".edit-button").html();this.jobOffersBarCounter.html(t);this.jobOffersBarResetButton.html(i);this.jobOffersBarEditButton.html(r);this.jobOffersBar.toggleClass("unfiltered",n.hasClass("unfiltered"))},n.prototype.updateBrowserUrl=function(n){this.jobOffers.data("url",n);utils.replaceState(n)},n.prototype.isJobFilterBarActive=function(){return!this.jobOffersBar.hasClass("transparent")},n}();n.JobOffers=t}(PageElements||(PageElements={}));$(document).ready(function(){$(".job-offers").each(function(n,t){new PageElements.
JobOffers($(t))})}),function(n){var t=function(){function n(n){(this.logoOpacitySteps=30,this.logoFadeoutStart=0,this.logoFadeoutOffset=75,this.totalFadeoutPercent=1.5,this.jqDoc=$(document),this.jqWindow=$(window),this.isStartpage=utils.isStartpage(),this.isCompanyPage=utils.isCompanypage(),this.hasNoClaim=this.jqDoc.find("html").hasClass("no-claim"),this.logoContainer=n,sniff.isHandheld&&this.initHandheldHandler(),this.isStartpage||this.isCompanyPage||this.hasNoClaim||sniff.isHandheld)||(this.logoNameAndClaim=this.logoContainer.find(".name, .claim"),this.initLogoScrolling())}return n.prototype.initLogoScrolling=function(){this.desktopScrollingHandler();this.jqWindow.trigger("scroll")},n.prototype.desktopScrollingHandler=function(){var n=this;this.jqWindow.on("scroll",function(){var t=($(window).scrollTop()-n.logoFadeoutStart)/n.logoFadeoutOffset,i=n.jqDoc.scrollTop();t<=0?n.logoContainer.attr("class",function(n,t){return t.replace(/\s\bstep-\S+/g,"")}).addClass("step-0"):t>0&&t<=n.totalFadeoutPercent?n.logoContainer.
attr("class",function(n,t){return t.replace(/\s\bstep-\S+/g,"")}).addClass("step-"+Math.round(t/(1/n.logoOpacitySteps))):t>n.totalFadeoutPercent&&!n.isLogoClaimHidden()&&n.logoContainer.attr("class",function(n,t){return t.replace(/\s\bstep-\S+/g,"")}).addClass("step-"+Math.round(n.logoOpacitySteps*n.totalFadeoutPercent));i<=0?n.logoNameAndClaim.css("top",0):i>0&&i<n.logoFadeoutOffset*2&&n.logoNameAndClaim.css("top",0-Math.round(i/10))});eventAggregator.subscribe("screen-navigation.topSubMenuOpened",function(){n.logoContainer.attr("class",function(n,t){return t.replace(/\s\bstep-\S+/g,"")}).addClass("step-"+Math.round(n.logoOpacitySteps*n.totalFadeoutPercent))});eventAggregator.subscribe("screen-navigation.menuClosed",function(){n.jqWindow.trigger("scroll")})},n.prototype.initHandheldHandler=function(){var n=this;eventAggregator.subscribe("screen-navigation.topSubMenuOpened",function(){n.logoContainer.attr("class",function(n,t){return t.replace(/\s\bstep-\S+/g,"")}).addClass("step-"+Math.round(n.logoOpacitySteps*
n.totalFadeoutPercent))});eventAggregator.subscribe("screen-navigation.menuClosed",function(){n.logoContainer.attr("class",function(n,t){return t.replace(/\s\bstep-\S+/g,"")})})},n.prototype.isLogoClaimHidden=function(){return this.logoContainer.hasClass("step-"+Math.round(this.logoOpacitySteps*this.totalFadeoutPercent))},n}();n.LogoClaimFadeHandler=t}(PageElements||(PageElements={}));logoClaimFadeHandler=new PageElements.LogoClaimFadeHandler($("header.top-navigation .logocontainer")),function(n){var t=function(){function n(){this.loadingSpinnerIsShown=!1}return n.prototype.show=function(n,t,i){var u=this,r;(n===void 0&&(n="lightmodal"),t===void 0&&(t=!0),i===void 0&&(i=""),this.loadingSpinnerIsShown)||(r=Common.ElementRepository.getInstance(),this.loadingSpinnerIsShown=!0,this.loaderContent=$('<div class="ajax-loader-wrapper">    <div class="ajax-loader-content">         <div class="ajax-loader '+n+'"><\/div>         <div class="loader-text">'+i+"<\/div>     <\/div><\/div>"),t&&(this.loaderBackdrop=$('<div class="ajax-loader-backdrop bd-fade"><\/div>'),
r.body().append(this.loaderBackdrop),_.delay(function(){u.loaderBackdrop.addClass("in")},10)),r.body().append(this.loaderContent))},n.prototype.hide=function(){var n=this;this.loaderContent.detach();this.loaderBackdrop.removeClass("in");_.delay(function(){n.loaderBackdrop.detach();n.loadingSpinnerIsShown=!1},200)},n}();n.LoadingSpinner=t}(PageElements||(PageElements={}));loadingSpinner=new PageElements.LoadingSpinner,function(n){var t=function(){function n(n){this.swiper=new Swiper(n.find(".swiper-container"),{slidesPerView:"auto",calculateHeight:!0,roundLengths:!0,nextButton:".navigation-right",prevButton:".navigation-left"});n.find(".navigation-right").on("click",this.nagivateRight.bind(this));n.find(".navigation-left").on("click",this.navigateLeft.bind(this))}return n.prototype.navigateLeft=function(){var n=this.swiper.activeIndex-2;this.swiper.slideTo(n)},n.prototype.nagivateRight=function(){var n=this.swiper.activeIndex+2;this.swiper.slideTo(n)},n}(),i;n.SushibarSwiper=t;i=function(){function n(){}return n.
prototype.initialize=function(){this.elementRepository=Common.ElementRepository.getInstance();this.initializeInContext(this.elementRepository.body())},n.prototype.initializeInContext=function(n){n.find(".sushibar-swiper").each(function(n,i){new t($(i))})},n}();n.SushibarSwiperCollection=i}(PageElements||(PageElements={}));$().ready(function(){var n=new PageElements.SushibarSwiperCollection;componentManager.registerAndInitComponent(n)}),function(n){var t=function(){function n(n,t){if((this.animationDuration=300,this.mainContainer=n,this.mainContainer.length)&&(this.sushiBarSwiperContainer=this.mainContainer.find(".sushibar-swiper-container"),this.contentSliderContainer=this.mainContainer.find(".content-swiper-container"),this.navigationTabsContainer=this.mainContainer.find(".tab-container"),this.sushiBarSwiperContainer.length||this.contentSliderContainer.length)){this.animationDelay=parseInt(this.mainContainer.data("animation-delay"));var i=parseInt(this.mainContainer.data("animation-duration"));i>0&&(this.animationDuration=
i);this.pauseAfterInteraction=this.mainContainer.data("pause-after-interaction")===!0;this.collapseContentOnSwipe=this.mainContainer.data("collapse-on-swipe")===!0;this.carouselMode=this.mainContainer.data("carousel-mode")===!0;this.sushiBarSwiperContainer.length&&this.initializeSushibarSwiper();this.navigationTabsContainer.length&&this.initializeNavigationTabs();this.contentSliderContainer.length&&(this.addIndexedSwiperButtonClass(this.contentSliderContainer.find(".swiper-button-next, .swiper-button-prev"),t),this.initializeContentSwiper(t));this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ToggleTransitionStarted,callback:this.scrollOnToggleTransition.bind(this)}])}}return n.prototype.initializeFreezer=function(){var n=this;this.freezer=Common.Freezer.createInstance();this.freezer.introduce(this.mainContainer,function(){n.pause()},function(){n.start()},function(){return n.contentSlider.autoplaying})},n.prototype.scrollOnToggleTransition=function(n){$.contains(this.mainContainer[
0],n.trigger[0])&&this.scrollToSlider()},n.prototype.addIndexedSwiperButtonClass=function(n,t){n.each(function(n,i){$(i).addClass("content-slider-index-"+t)})},n.prototype.initializeContentSwiper=function(n){var t=".content-slider-index-"+n,i;this.contentSlider=new Swiper(this.contentSliderContainer.get(0),{slidesPerView:1,centeredSlides:!0,setWrapperSize:!0,loop:this.carouselMode,loopAdditionalSlides:0,loopedSlides:this.carouselMode?1:0,speed:this.animationDuration,autoplay:this.animationDelay,autoplayDisableOnInteraction:this.pauseAfterInteraction,nextButton:".swiper-button-next"+t,prevButton:".swiper-button-prev"+t,slidesOffsetAfter:1,onSlideChangeEnd:this.contentSlideChangeCallback.bind(this),onImagesReady:this.updateSwiperCallback.bind(this),onInit:this.onInit.bind(this)});i=this.contentSliderContainer.find(".swiper-slide-duplicate");modalManager.initializeInContext(i);this.contentSlideChangeCallback(this.contentSlider,!1)},n.prototype.onInit=function(n){var t=Common.Swiper3Fixes.getSwiperInitCallback();
t(n);this.initializeFreezer()},n.prototype.updateSwiperCallback=function(n){n.update()},n.prototype.contentSlideChangeCallback=function(n,t){t===void 0&&(t=!0);var i=$(n.slides[n.activeIndex]).data("slide-index");t&&(this.collapseContent(),this.scrollToSlider());this.sushiBarSwiper&&this.contentSlideChangeCallbackSushiBar(i);this.navigationTabsContainer.length&&this.contentSlideChangeCallbackTabs(i)},n.prototype.collapseContent=function(){this.collapseContentOnSwipe&&eventAggregator.publish(Common.EventNames.CollapseContentInContext,this.mainContainer)},n.prototype.scrollToSlider=function(){this.collapseContentOnSwipe&&eventAggregator.publish(Common.EventNames.ScrollToElement,this.mainContainer)},n.prototype.contentSlideChangeCallbackSushiBar=function(n){var t,r,i;this.sushiBarSwiper&&(t=this.sushiBarSwiperContainer.find(".swiper-slide"),t.removeClass("selected"),r=t.filter('[data-slide-index="'+n+'"]'),r.addClass("selected"),i=t.index(r),i>0&&(i-=1),this.sushiBarSwiper.slideTo(i,this.animationDuration,!1))},
n.prototype.contentSlideChangeCallbackTabs=function(n){this.navigationTabsContainer.length&&(this.navigationTabsContainer.find(".tab-col").removeClass("selected"),this.navigationTabsContainer.find('[data-tab-index="'+n+'"]').addClass("selected"))},n.prototype.initializeSushibarSwiper=function(){var n=this.sushiBarSwiperContainer.data("item-space").toString();this.sushiBarSpaceBetweenSwiperSlides=n==="none"?0:20;this.sushiBarSwiper=new Swiper(this.sushiBarSwiperContainer.get(0),{slidesPerView:"auto",centeredSlides:!1,setWrapperSize:!0,loop:!1,freeMode:!0,freeModeMomentum:!1,spaceBetween:this.sushiBarSpaceBetweenSwiperSlides,slidesOffsetAfter:0,slidesOffsetBefore:0,onClick:this.sushibarClickedCallback.bind(this),onImagesReady:this.updateSwiperCallback.bind(this),onInit:Common.Swiper3Fixes.getSwiperInitCallback()})},n.prototype.sushibarClickedCallback=function(n,t){var f;if(this.contentSlider){var i=$(t.target).closest(".swiper-slide"),e=parseInt(i.data("slide-index")),r=this.contentSliderContainer.find(".swiper-slide"),
u=r.filter('[data-slide-index="'+e+'"]');u.length&&(this.sushiBarSwiperContainer.find(".swiper-slide").removeClass("selected"),i.addClass("selected"),f=r.index(u),this.contentSlider.slideTo(f,this.animationDuration,!1),this.collapseContent(),this.scrollToSlider())}},n.prototype.initializeNavigationTabs=function(){var n=this;if(this.navigationTabsContainer.length)this.navigationTabsContainer.find(".tab-col").on("click",function(t){var r=$(t.target).closest(".tab-col"),i=parseInt(r.data("tab-index"));n.contentSlider.slideTo(i,n.animationDuration,!1);n.contentSlideChangeCallbackTabs(i)})},n.prototype.pause=function(){this.contentSlider.stopAutoplay()},n.prototype.start=function(){this.freezer.isFrozen||this.contentSlider.startAutoplay()},n}(),i;n.ContentSlider=t;i=function(){function n(){this.contentSliderContainer=[]}return n.prototype.initialize=function(){this.elementRepository=Common.ElementRepository.getInstance();this.initializeInContext(this.elementRepository.body())},n.prototype.initializeInContext=function(
n){var i=this;n.find(".content-slider").each(function(n,r){i.add(new t($(r),n))})},n.prototype.add=function(n){this.contentSliderContainer.push(n)},n}();n.ContentSliderCollection=i}(PageElements||(PageElements={}));$(document).ready(function(){componentManager.registerAndInitComponent(new PageElements.ContentSliderCollection)}),function(n){var t=function(){function n(n){this.eventName="change.checkbox-pulldown";this.origin=n;this.initialize()}return n.prototype.checkboxChangedCallback=function(){this.getCheckBoxElement().prop("checked")?this.getContentContainerElement().slideDown():this.getContentContainerElement().slideUp()},n.prototype.getCheckBoxElement=function(){return this.origin.contextQuery.find('.checkbox-container input[type="checkbox"]').first()},n.prototype.getContentContainerElement=function(){return this.origin.contextQuery.children(".checkbox-pulldown-content")},n.prototype.initialize=function(){this.getCheckBoxElement().on(this.eventName,this.checkboxChangedCallback.bind(this))},n.prototype.destroy=
function(){this.getCheckBoxElement().off(this.eventName)},n}();n.CheckboxPullDownController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="checkbox-pulldown",t.query=".checkbox-pulldown",t.controller=n.CheckboxPullDownController,t}();n.CheckboxPullDownComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(t){var i=t.contextQuery.data(n.subjectDataAttributeName),r;_.isEmpty(i)||(r={actionSubject:i,actionType:Common.ActionControlTypes.AudioPlayerLoaded},eventAggregator.publish(Common.EventNames.TrackActionControlEvent,r))}return n.subjectDataAttributeName="playerloaded-action-control-subject",n}();n.AudioPlayerController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="audio-player",t.query=".audio-player",
t.controller=n.AudioPlayerController,t}();n.AudioPlayerComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;this.audio=n.contextQuery;this.audioElement=this.audio.find("audio");this.audioElementObject=this.audioElement.get(0);this.playPauseButton=this.audio.find(".play-pause");this.elementRepository=t;this.initPlayerTracking();this.initAudio().then(this.bindCallbacks.bind(this))}return n.prototype.initAudio=function(){var n=$.Deferred();return this.audioElement.mediaelementplayer({features:["playpause","progress"],pauseOtherPlayers:!0,success:function(){n.resolve()}}),n.promise()},n.prototype.initPlayerTracking=function(){this.actionControlSubject=this.audio.data(n.subjectDataAttributeName)},n.prototype.bindCallbacks=function(){this.audioElement.on("play",this.playCallBack.bind(this));this.audioElement.on("pause ended",this.pauseCallback.bind(this));this.audio.find(".play-pause").on("click.audiocontroller",this.playPauseButtonCallback.
bind(this));this.audio.find(".download a").on("click.audiocontroller",this.downloadClickCallback.bind(this))},n.prototype.downloadClickCallback=function(){if(!this.hasDownloaded&&this.actionControlSubject){this.hasDownloaded=!0;var n={actionSubject:this.actionControlSubject,actionType:Common.ActionControlTypes.SongDownloaded};eventAggregator.publish(Common.EventNames.TrackActionControlEvent,n)}},n.prototype.pausePlayback=function(){this.audioElementObject.pause()},n.prototype.startPlayback=function(){if(!this.hasPlayed&&this.actionControlSubject){this.hasPlayed=!0;var n={actionSubject:this.actionControlSubject,actionType:Common.ActionControlTypes.SongPlayed};eventAggregator.publish(Common.EventNames.TrackActionControlEvent,n)}this.audioElementObject.play()},n.prototype.playPauseButtonCallback=function(){this.audioElementObject.paused?this.startPlayback():this.pausePlayback()},n.prototype.playCallBack=function(){this.playPauseButton.removeClass("icon-mediaplayer-play").addClass("icon-mediaplayer-stop")},n.prototype.
pauseCallback=function(){this.playPauseButton.removeClass("icon-mediaplayer-stop").addClass("icon-mediaplayer-play")},n.prototype.destroy=function(){this.audioElement.off("play");this.audioElement.off("pause ended");this.audio.find(".play-pause, .download a").off("click.audiocontroller")},n.subjectDataAttributeName="audiofile-action-control-subject",n}();n.AudioFileController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="audio-file",t.query=".audio-file",t.controller=n.AudioFileController,t}();n.AudioFileComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){(this.hasNoteClassName="has-note",this.origin=n,this.ajax=t,this.note=this.origin.contextQuery,this.buttonAjaxTarget(),this.note.hasClass("minimal"))||(this.basketItemCols=this.note.siblings(".basketitem").find(".has-customer-note"),
this.bindCallbacks(),this.setupBasketItemCols())}return n.prototype.bindCallbacks=function(){var n=this;this.origin.setUp(this.note).on("click",".note-edit",this.openEditModal.bind(this)).on("click",".note-delete",this.openDeleteModal.bind(this)).on("click",".note-text",{conditions:function(){return n.note.siblings(".ohl-row").length>0}},this.openEditModal.bind(this)).on("click",".note-heading",{conditions:function(){return!n.note.hasClass(n.hasNoteClassName)}},this.openEditModal.bind(this))},n.prototype.setupBasketItemCols=function(){this.basketItemCols.toggleClass(this.hasNoteClassName,this.note.hasClass(this.hasNoteClassName))},n.prototype.openEditModal=function(){var n=null;(n=this.note.data("modal-ajaxtarget"),n)&&modalManager.openModalByAjax(n)},n.prototype.openDeleteModal=function(){var n=null;(n=this.note.data("delete-ajaxtarget"),n)&&modalManager.openModalByAjax(n)},n.prototype.buttonAjaxTarget=function(){var n=this;this.note.find(".button-link").each(function(t,i){var r=$(i),u=r.data("ajaxtarget");if(
r.data("ajaxtarget"))r.on("click",function(){n.ajax.post({url:u})})})},n.prototype.destroy=function(){this.origin.tearDown()},n}();n.CustomerNoteController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="customer-note",t.query=".customer-note",t.controller=n.CustomerNoteController,t}();n.CustomerNoteComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.catalogSelector=n.contextQuery;this.cutureCatalogs=this.catalogSelector.find(".catalog-list");this.lastSelectedCulture=this.catalogSelector.find(".language-group-selector .language-selector.active input:radio").val();this.initCatalogSelector()}return n.prototype.setCultureCatalog=function(n,t){var i=this.cutureCatalogs.filter('[data-culture="'+n+'"]');t?i.removeClass("hidden"):i.addClass("hidden")},n.prototype.initCatalogSelector=function(){var n=
this;this.catalogSelector.on("click",".language-group-selector .language-selector",function(t){var i=$(t.target).find("input:radio").val();n.lastSelectedCulture.match(i)||(n.setCultureCatalog(i,!0),n.setCultureCatalog(n.lastSelectedCulture,!1),n.lastSelectedCulture=i)})},n}();n.CatalogSelectorController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="catalog-selector",t.query=".catalog-selector",t.controller=n.CatalogSelectorController,t}();n.CatalogSelector=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function t(n,t){(this.observeTimeout=1500,this.endPositionOffset=75,this.scrolledDistance=50,this.defaultScrollTopRatio=2.9,sniff.isHandheld)||(this.origin=n,this.elements=t,this.contentHeader=n.contextQuery,this.backdrop=this.contentHeader.prev(".content-header-backdrop"),this.initialOffset=this.contentHeader.offset().top,this.
initialTopValue=parseInt(this.contentHeader.css("top")),this.elementHeight=this.contentHeader.height(),this.setDimensions(),this.shiftContentBelowHeader(),this.bindCallbacks())}return t.prototype.setDimensions=function(){var n=this.contentHeader.parent().innerWidth();this.contentHeader.width(n);this.backdrop.width(n)},t.prototype.shiftContentBelowHeader=function(){var n=this.initialOffset+this.elementHeight+1;this.contentHeader.closest(".inner-container").css("padding-top",n)},t.prototype.bindCallbacks=function(){this.elements.window().on("scroll."+this.origin.eventNamespace,this.pageScrollingCallback.bind(this));this.pageScrollingCallback();this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ToggleTransitionStarted,callback:this.toggleTransitionStartedCallback.bind(this)},{message:Common.EventNames.ToggleTransitionEnded,callback:this.toggleTransitionEndedCallback.bind(this)},{message:Common.EventNames.PageLayoutChanged,callback:this.processDimensionUpdate.bind(this)}])},t.prototype.
pageScrollingCallback=function(){var n=this.elements.document().scrollTop(),t=this.initialTopValue+Math.round(n/this.defaultScrollTopRatio),i=this.scrolledDistance+t-n;i<=this.endPositionOffset?(this.contentHeader.addClass("fixed").css("top",this.endPositionOffset),this.backdrop.height(this.endPositionOffset+this.contentHeader.outerHeight(!0))):(this.contentHeader.removeClass("fixed").css("top",t),this.backdrop.height(i+this.contentHeader.outerHeight(!0)))},t.prototype.toggleTransitionStartedCallback=function(n){if("targets"in n){var t=n.targets;(this.isInsideContentHeader(t.ordinaryTargets.toTurnOn)||this.isInsideContentHeader(t.ordinaryTargets.toTurnOff))&&this.startObserveContentDimensions()}},t.prototype.toggleTransitionEndedCallback=function(n){if("targets"in n){var t=n.targets;(this.isInsideContentHeader(t.ordinaryTargets.toTurnOn)||this.isInsideContentHeader(t.ordinaryTargets.toTurnOff))&&(this.observeHeight=!1,clearTimeout(this.observeTimeoutHandler))}},t.prototype.isInsideContentHeader=function(t){return t
instanceof jQuery?t.closest(n.ContentHeaderComponent.query).length>0:!1},t.prototype.processDimensionUpdate=function(){var n=this.contentHeader.height();n!==this.elementHeight&&(this.elementHeight=n,this.pageScrollingCallback(),this.shiftContentBelowHeader())},t.prototype.startObserveContentDimensions=function(){var n=this;this.observeHeight||(this.observeHeight=!0,this.observeTimeoutHandler=_.delay(function(){n.observeHeight=!1},this.observeTimeout),window.requestAnimationFrame(this.dimensionsCheckCallback.bind(this)))},t.prototype.dimensionsCheckCallback=function(){this.processDimensionUpdate();this.observeHeight&&window.requestAnimationFrame(this.dimensionsCheckCallback.bind(this))},t}();n.ContentHeaderController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="content-header",t.query=".content-header",t.controller=n.ContentHeaderController,t}();n.ContentHeaderComponent=
t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function t(n){this.origin=n;this.subject=this.origin.contextQuery;var t=$("#"+this.subject.data("copy-template-id"));this.template=t.find(".copy-template-template");this.content=t.find(".copy-template-content");this.indexReplacementPatternRegExp=new RegExp(this.template.data("copy-template-index-replacement-pattern"),"g");this.bindCallbacks()}return t.prototype.bindCallbacks=function(){var i=this;this.subject.on("click"+this.origin.eventNamespace,function(){var u=i.template.data(t.nextIndexAttribute),f=u||u===0?u:i.content.children().length,e=i.template.children().clone().html().replace(i.indexReplacementPatternRegExp,f.toString()),r=$("<div><\/div>").addClass("copy-template-item").append(e);i.content.append(r);i.template.data(t.nextIndexAttribute,++f);DependencySystem.resolveInContext(n.CopyTemplateRemoveButtonComponent,r).andBindItToDom();DependencySystem.resolveInContext(n.CopyTemplateAddButtonComponent,
r).andBindItToDom();DependencySystem.resolveInContext(n.InputComponent,r).andBindItToDom()})},t.nextIndexAttribute="copy-template-next-index",t}();n.CopyTemplateAddButtonController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="copy-template-add-button",t.query=".copy-template-add-button",t.controller=n.CopyTemplateAddButtonController,t}();n.CopyTemplateAddButtonComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;var t=this.origin.contextQuery;this.bindCallbacks(t)}return n.prototype.bindCallbacks=function(n){n.on("click"+this.origin.eventNamespace,function(){n.parents(".copy-template-item").first().remove()})},n}();n.CopyTemplateRemoveButtonController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(
){}return t.componentName="copy-template-remove-button",t.query=".copy-template-remove-button",t.controller=n.CopyTemplateRemoveButtonController,t}();n.CopyTemplateRemoveButtonComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i,r){this.debounceTimeout=3e3;this.origin=n;this.ajax=t;this.elements=i;this.inputDisablingHelper=r;this.orderTable=n.contextQuery;this.parentForm=this.orderTable.closest("form");this.checkAllButtonContainer=this.orderTable.find(".ot-row.check-all-button");this.checkAllButton=this.checkAllButtonContainer.find(".check-all");this.ajaxTarget=this.orderTable.data("ajaxtarget");this.initialize()}return n.prototype.initialize=function(){this.initEventSubscription();this.initArticleAmountForm();this.initCatalogRequest();this.handleDeleteButtons();this.handleQuickOrderCheckButtons();this.handleOrderVariantSelect();this.handleSelfServiceModalButtons();this.handleCatalogSelect();this.preventSubmittingOnEnterInOrderForm(
)},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.eventSubscribtionIds)},n.prototype.initEventSubscription=function(){if(window.shell)window.shell.subscribeTo(Common.EventNames.ESSABasketFlyoutItemRemoved,this.refreshBasket.bind(this),"ESSA.BasketFlyout")},n.prototype.preventSubmittingOnEnterInOrderForm=function(){var n=this.orderTable.find(".order-form .orderinputs input");utils.preventEnterKeyForInputs(n)},n.prototype.initArticleAmountForm=function(){var n=this,t=this.orderTable.find(".article-amount-form"),i=t.find("input");t.each(function(t,i){var r=$(i),c=r.find("input"),f=r.data("ajaxtarget"),e="POST",o=!1,u,s,h;f||(o=!0,f=n.parentForm.data("ajaxtarget"),n.parentForm.attr("method")&&(e=n.parentForm.attr("method")));u=r.find(".submit.tooltip-area");s=u.find("button");c.on("keyup",function(n){var t=$(n.target);t.val()?u.removeClass("hidden"):u.addClass("hidden")});h=_.debounce(function(){u.addClass("hidden");var t,i;o?(i=n.inputDisablingHelper.disableInvisibleInputs(n.parentForm),
t=n.parentForm.serialize()):(i=n.inputDisablingHelper.disableInvisibleInputs(r),t=r.find("input").serialize());n.ajax.doRequest({method:e,url:f,data:t}).always(function(){n.inputDisablingHelper.reEnableInvisibleInputs(i)})},n.debounceTimeout,!0);s.on("click",function(n){n.preventDefault();h()})});utils.preventEnterKeyForInputs(i)},n.prototype.handleDeleteButtons=function(){var n=this,t=this.orderTable.find(".delete-button");t.each(function(t,i){var r=$(i),u=r.data("ajaxtarget");r.one("click",function(t){if(_.isUndefined(u))t.preventDefault(),r.closest(".ot-row").remove(),eventAggregator.publish(Common.EventNames.OrderTableItemDeleted);else{var i=n.inputDisablingHelper.disableInvisibleInputs(n.parentForm);n.ajax.post({url:u,data:n.parentForm.serialize()}).then(function(){tooltipBoxHandler.clearTooltips()}).always(function(){n.inputDisablingHelper.reEnableInvisibleInputs(i)})}})})},n.prototype.initCatalogRequest=function(){var r=this,u=this.orderTable.find(".catalog-request"),f=u.find(".radiogroup input"),i=u.find(
".catalog-area"),n=i.find(".catalog-list"),t=i.find(".dropdown select");t.length?this.preSelectCatalog(n.filter('[data-culture="'+this.getCurrentCulture(t)+'"]')):this.preSelectCatalog(n);f.on("click",function(u){var f=$(u.target);f.attr("value")==="true"?(r.updateSelectedCatalogLanguage(i,t,n),r.showCatalogs(t,n)):i.addClass("hidden");eventAggregator.publish(Common.EventNames.PageLayoutChanged)});t.on("change",function(){n.addClass("hidden");var i=n.filter('[data-culture="'+r.getCurrentCulture(t)+'"]');i.removeClass("hidden");r.preSelectCatalog(i)});i.hasClass("hidden")||(this.updateSelectedCatalogLanguage(i,t,n),this.showCatalogs(t,n))},n.prototype.preSelectCatalog=function(n){n.find(".catalog-item").each(function(n,t){var i=$(t);i.data("pre-checked")===!0&&i.removeData("pre-checked").removeAttr("data-pre-checked").find('input[type = "checkbox"]').prop("checked",!0)})},n.prototype.showCatalogs=function(n,t){n.length>0?n.trigger("change"):this.showCatalogsWithoutLanguageDropdown(t)},n.prototype.showCatalogsWithoutLanguageDropdown=
function(n){n.removeClass("hidden")},n.prototype.updateSelectedCatalogLanguage=function(n,t,i){n.removeClass("hidden");var r=t.find("option[selected]");r.length==0&&t.find("option").first().attr("selected","selected");i.filter('[data-culture="'+this.getCurrentCulture(t)+'"]').removeClass("hidden")},n.prototype.getCurrentCulture=function(n){return n.find("option[selected]").val()},n.prototype.postParentForm=function(n){var i=this,t;n||(n=this.parentForm.data("ajaxtarget"));t=this.inputDisablingHelper.disableInvisibleInputs(this.parentForm);this.ajax.post({url:n,data:this.parentForm.serialize()}).always(function(){i.inputDisablingHelper.reEnableInvisibleInputs(t)})},n.prototype.handleQuickOrderCheckButtons=function(){var n=this,t;this.handleQuickOrderCheckAllButton();t=this.orderTable.find(".ot-row.orderinputs");t.find("div.status.invalid").length>0&&this.showCheckAllButton();t.each(function(t,i){var u=$(i),f=u.find("input.article, input.quantity"),r,e;utils.preventEnterKeyForInputs(f);r=u.find(".submit");f.each(
function(t,i){var u=$(i);u.on("keyup input propertychange",function(){u.val()&&(r.removeClass("hidden"),n.showCheckAllButton())})});e=_.debounce(n.postParentForm.bind(n),n.debounceTimeout,!0);r.find("button").on("click",function(n){n.preventDefault();e()})})},n.prototype.handleOrderVariantSelect=function(){var n=this,t=this.orderTable.find(".ot-row.orderselect");t.each(function(t,i){var r=$(i),f=r.find("select.selectbox"),u;f.on("change",function(){n.postParentForm()});u=r.find(".ot-column-1 input");u.on("keyup",function(){n.showCheckAllButton()})})},n.prototype.handleQuickOrderCheckAllButton=function(){var n=_.debounce(this.postParentForm.bind(this),this.debounceTimeout,!0);this.checkAllButton.on("click",function(t){t.preventDefault();n()})},n.prototype.showCheckAllButton=function(){this.checkAllButtonContainer.removeClass("empty");this.checkAllButton.css("display","block");eventAggregator.publish(Common.EventNames.OrderTableCheckAllButtonShown);eventAggregator.publish(Common.EventNames.PageLayoutChanged)},n.
prototype.handleSelfServiceModalButtons=function(){var i=this,n="a[data-ajaxtarget]:not([data-formid])",t="#SelfServiceBan "+n;this.elements.body().undelegate(t,"click.quickorderSelfServiceBan").delegate(t,"click.quickorderSelfServiceBan",function(t){t.preventDefault();var r=$(t.target).closest(n),u=r.data("ajaxtarget");modalManager.closeModals();i.postParentForm(u)})},n.prototype.handleCatalogSelect=function(){var r=this,t=this.orderTable.find(".catalog-area"),i=t.data("ajaxtarget"),n;if(!_.isUndefined(i)){n=t.find("input[type=checkbox]");n.on("click.catalog-checkboxes",function(){r.ajax.doRequest({method:"POST",url:i,data:n.serialize()})})}},n.prototype.refreshBasket=function(){_.isUndefined(this.ajaxTarget)||this.ajax.doRequest({url:this.ajaxTarget,method:"GET",data:{"no-basket-icon":!0}})},n}();n.OrdertableController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax,Common.ElementRepository,Common.InputDisablingHelper])}(PageElements||(PageElements={})),function(n){var t=function(
){function t(){}return t.componentName="order-table",t.query=".ordertable",t.controller=n.OrdertableController,t}();n.OrdertableComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.input=this.origin.contextQuery.find(".newsletter-email-input-field");this.tooltip=this.origin.contextQuery.find(".tooltipContainer");this.modalAjaxTarget=utils.getModalHjaxTarget(this.input);sniff.isHandheld?this.bindOpenModalOnInputFocusEvent():this.bindInputOnFocusAnBlurEvents()}return n.prototype.bindOpenModalOnInputFocusEvent=function(){var n=this;this.input.on("focus",function(){modalManager.openModalByAjax(n.modalAjaxTarget);n.input.trigger("blur")})},n.prototype.bindInputOnFocusAnBlurEvents=function(){var n=this;this.input.on("focus",function(){n.input.addClass("focus")});this.input.on("blur",function(){_.delay(function(){n.input.removeClass("focus")},n.input.data("shrink-delay"))})},n.prototype.destroy=function(){},n}();n.NewsletterEmailInputController=
t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="newsletter-email-input",t.query=".newsletter-email-input",t.controller=n.NewsletterEmailInputController,t}();n.NewsletterEmailInputComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){this.origin=n;this.ajax=t;this.inputDisablingHelper=i;this.basketForm=n.contextQuery;this.initialize()}return n.prototype.initialize=function(){this.initVoucherForm();this.handleRefreshBasketButton();this.handleSubmitForm();this.handleFormActionButtons()},n.prototype.handleFormActionButtons=function(){var n=this;this.basketForm.find("button[formaction].submit-button.highlighted").each(function(t,i){var r=$(i);r.on("click",function(t){t.preventDefault();var i=n.basketForm.attr("action");return n.basketForm.attr("action",r.attr("formaction")),n.basketForm.submit(),n.basketForm.attr(
"action",i),!1})})},n.prototype.handleSubmitForm=function(){var n=this,t=this.basketForm.find(".send-form"),i=_.debounce(function(t,i){var r=t.data("ajaxtarget"),u;if(r){i.preventDefault();u=n.inputDisablingHelper.disableInvisibleInputs(n.basketForm);n.ajax.doRequest({method:n.basketForm.attr("method")||"POST",url:r,data:n.basketForm.serialize()}).always(function(){n.inputDisablingHelper.reEnableInvisibleInputs(u)});return}},3e3,!0);t.on("click",function(n){i($(n.currentTarget),n)})},n.prototype.handleRefreshBasketButton=function(){var n=this,t=this.basketForm.find(".inner-content .container-wrapper .container-area > button:not( [data-target] ):not( [formaction] )"),i=this.basketForm.data("ajaxtarget"),r=_.debounce(function(){t.addClass("disabled");var r=n.inputDisablingHelper.disableInvisibleInputs(n.basketForm),u=n.basketForm.serialize();n.ajax.post({url:i,data:u}).always(function(){t.removeClass("disabled");n.inputDisablingHelper.reEnableInvisibleInputs(r)})},3e3,!0);t.on("click",function(n){n.preventDefault(
);r()})},n.prototype.initVoucherForm=function(){var n=this.basketForm.find(".voucher-form");utils.preventEnterKeyForInputs(n.find("input"));this.handleVoucherSubmit(n)},n.prototype.handleVoucherSubmit=function(n){var i=this,t=n.find("button"),r=t.attr("formaction"),u=_.debounce(function(){var u=i.inputDisablingHelper.disableInvisibleInputs(n),f=n.find("input").serialize();i.ajax.post({url:r,data:f}).always(function(){t.removeClass("disabled");i.inputDisablingHelper.reEnableInvisibleInputs(u)})},3e3,!0);t.on("click",function(n){n.preventDefault();t.addClass("disabled");u()})},n}();n.BasketFormController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax,Common.InputDisablingHelper])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="basket-form",t.query=".basket-form",t.controller=n.BasketFormController,t}();n.BasketFormComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(
){function t(t,i){this.origin=t;this.ajax=i;this.selector=n.PersonalizationComponent.query;this.personalizationChooserElements=t.contextQuery;this.initializePersonalizationChooseHandler()}return t.prototype.initializePersonalizationChooseHandler=function(){var n=this;this.personalizationChooserElements.each(function(t,i){var u=$(i),f=u.find(".personalization.right"),r=u.find(".personalization input"),e=r.data("ajaxtarget");r.on("click",function(t){var i,u;(t.preventDefault(),n.personalizationModalRequestInitiated)||(n.personalizationModalRequestInitiated=!0,i=r.val(),t.target.checked||(i=""),u=r.attr("name")+"="+i,n.openPersonalizationModal(e,u,r,f))})})},t.prototype.initializeAjaxForm=function(t,i,r,u){var f=this,o,e;u===void 0&&(u=undefined);o="form[data-ajaxtarget]:not([target])";e=t.find(o);e.length||(e=t.filter(o));e.each(function(t,e){var o=$(e),l=o.data("ajaxtarget"),h=_.debounce(function(){f.postForm(l,o,i,r)},500,!0),c=function(t){t.on("click",function(t){$(t.target).val("").off("change").one("change",
function(t){var u=new n.FileUpload(o.find(".file-upload")),i,r;if(u.checkFile())return f.savedFileInput=$(t.target),f.sendFileData=!0,f.updateSpinner(o,!0),t.preventDefault(),h(),!1;f.sendFileData=!1;i=o.find('input[type="file"]');i.val("");r=i.parentsUntil(".radio-item-accordion");r.siblings().find('button[type="submit"]').addClass("disabled").removeClass("highlighted").prop("disabled",!0)})})},s;o.find("button[type=submit]").on("click",function(n){return n.preventDefault(),h(),!1});if(s=o.find('input[type="file"]').first(),f.savedFileInput!=null&&f.savedFileInput.length===1?(f.copyAttributes(s,f.savedFileInput),f.sendFileData=!1,s.replaceWith(f.savedFileInput),c(f.savedFileInput)):c(s),$('<div class="loader hidden-spinner"><\/div>').appendTo(o.find(".image")),typeof u!="undefined")o.find('a[data-modalid="'+u+'"]').on("click",function(){i.prop("checked",!1);r.removeClass("visible");f.personalizationModalRequestInitiated=!1});radioGroupAccordionHandler.initialize();DependencySystem.resolveInContext(n.InputComponent,
o).andBindItToDom();DependencySystem.resolveInContext(n.TooltipComponent,o).andBindItToDom()})},t.prototype.copyAttributes=function(n,t){var r=this,i=t.prop("attributes");$.each(i,function(n,t){t!=null&&t.name!=="type"&&t.name!=="name"&&t.name!=="value"&&r.savedFileInput.removeAttr(t.name)});i=n.prop("attributes");$.each(i,function(n,t){t!=null&&t.name!=="type"&&t.name!=="name"&&t.name!=="value"&&r.savedFileInput.attr(t.name,t.value)})},t.prototype.updateSpinner=function(n,t){var i=n.find(".loader");t?i.removeClass("hidden-spinner"):i.addClass("hidden-spinner")},t.prototype.handleResponse=function(n,t,i,r){var u,e,f;if(!n.length){modalManager.closeModals();this.savedFileInput=null;this.personalizationModalRequestInitiated=!1;return}if(u=ajaxDomHelper.getNamedObjectValueFromArray("ajaxform",n),u){i.prop("checked",!0);r.addClass("visible");t?t.html(u):t=$(u);this.initializeAjaxForm(t,i,r);return}e=ajaxDomHelper.getNamedObjectValueFromArray("modal",n);e&&(f=$(e),modalManager.openModal(f),this.initializeAjaxForm(
f,i,r,f.attr("id")))},t.prototype.openPersonalizationModal=function(n,t,i,r){var u=this;this.ajax.post({url:n,data:t},{modal:!0}).then(function(n){if(!n.length){i.prop("checked",!1);r.removeClass("visible");u.personalizationModalRequestInitiated=!1;return}u.handleResponse(n,null,i,r)})},t.prototype.postForm=function(n,t,i,r){var u=this;this.sendFileData||t.find('input[type="file"]').prop("disabled",!0);this.ajax.submit(n,t,"POST",{modal:!0}).then(function(n){u.handleResponse(n,t,i,r);$('input[name="ProcessWithLogo"]').on("click",function(){$(".qtip").remove()})},function(){var n=t.find('input[type="file"]'),r,i;n.val("");r=n.parentsUntil(".radio-item-accordion");r.siblings().find('button[type="submit"]').addClass("disabled").removeClass("highlighted").prop("disabled",!0);i=t.find(".modal");i.length&&modalManager.openModal(i,{ignoreOpeningPrevent:!0});u.updateSpinner(t,!1);u.personalizationModalRequestInitiated=!1;u.savedFileInput=null;eventAggregator.publish(Common.EventNames.TooltipRemoveError,n)})},t}();n.PersonalizationController=
t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="personalization",t.query=".ot-row",t.controller=n.PersonalizationController,t}();n.PersonalizationComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var r=Scrolling.ScrollStateDispatcher,u=Scrolling.GradientsController,t=Scrolling.SimplebarHeightAdjuster,f=Scrolling.SimplebarScrollbarAdjuster,e=Scrolling.DesktopEmulationModeFix,o=Scrolling.SimplebarFirefoxResizeFix,i=function(){function n(n,t){this.origin=n;this.ajax=t;this.orderHistoryDetails=this.origin.contextQuery;this.handleColorIconErrors();this.initCollapseAllButtons();this.initSubarticleScrolling();this.initCollapseEvents();this.initRequestInvoiceButton();eventAggregator.subscribe(Common.EventNames.OrderTableItemDeleted,this.closeReorderModal)}return n.prototype.initCollapseAllButtons=function(){this.collapseAllButtons=this.
orderHistoryDetails.find(".collapse-button");this.collapseAllText=this.collapseAllButtons.first().data("collapse-all");this.expandAllText=this.collapseAllButtons.first().data("expand-all");this.orderHistoryDetails.on("click.order-history-details",".collapse-button",this.toggleGlobalCollapse.bind(this))},n.prototype.initCollapseEvents=function(){this.orderHistoryDetails.find(".panel-collapse").on("shown.bs.collapse hidden.bs.collapse",this.updateCollapseAllButtons.bind(this))},n.prototype.initRequestInvoiceButton=function(){this.orderHistoryDetails.find(".request-invoice-button").on("click.open-request-invoice-modal",this.handleRequestInvoiceButton.bind(this))},n.prototype.updateCollapseAllButtons=function(){var n=this.orderHistoryDetails.find(".bundle-name.collapsed, .packet-name.collapsed");n.length===0?this.collapseAllButtons.removeClass("collapsed").children("span").text(this.collapseAllText):this.collapseAllButtons.addClass("collapsed").children("span").text(this.expandAllText)},n.prototype.toggleGlobalCollapse=
function(n){var r=this,i=this.collapseAllButtons.first(),t;if(i.hasClass("is-collapsing")){n.preventDefault();return}t=i.hasClass("collapsed");this.collapseAllButtons.addClass("is-collapsing").toggleClass("collapsed",!t).children("span").text(t?this.collapseAllText:this.expandAllText);(t?this.expandAll():this.collapseAll()).then(function(){return r.collapseAllButtons.removeClass("is-collapsing")})},n.prototype.expandAll=function(){var t=this,n=$.Deferred(),i=this.orderHistoryDetails.find("a.packet-name.collapsed"),r=this.orderHistoryDetails.find("a.bundle-name.collapsed");return this.showCollapses(i).then(function(){return t.showCollapses(r)}).done(function(){return n.resolve()}),n.promise()},n.prototype.collapseAll=function(){var n=$.Deferred(),t=this.orderHistoryDetails.find("a.bundle-name:not(.collapsed), a.packet-name:not(.collapsed)");return this.hideCollapses(t).then(function(){return n.resolve()}),n.promise()},n.prototype.showCollapses=function(n){var t=$.Deferred(),i=[];return n.removeClass("collapsed").
each(function(n,t){var u=t.getAttribute("href"),r=$.Deferred();i.push(r);$(u).collapse("show").one("shown.bs.collapse",function(){return r.resolve()})}),$.when.apply($,i).done(function(){return t.resolve()}),t.promise()},n.prototype.hideCollapses=function(n){var t=$.Deferred(),i=[];return n.addClass("collapsed").each(function(n,t){var u=t.getAttribute("href"),r=$.Deferred();i.push(r);$(u).collapse("hide").one("hidden.bs.collapse",function(){return r.resolve()})}),$.when.apply($,i).done(function(){return t.resolve()}),t.promise()},n.prototype.initSubarticleScrolling=function(){this.orderHistoryDetails.find(".subarticles .panel-collapse").each(function(n,i){var s=$(i),h=s.find(".simplebar-wrapper"),a=s.find(".gradient-container"),c=new Common.EventAggregator,l=new r(c);h.simplebar({autoHide:!1}).use(new e).use(new o).use(new t).use(new u(a,200,c)).use(new t).use(new f).use(l);s.on("shown.bs.collapse",function(){h.simplebar("recalculate");l.forceResizeCheck()})})},n.prototype.closeReorderModal=function(){var n=$(
".oh-reorder-modal .ordertable .basketitem");_.isUndefined(n)||n.length!==0||modalManager.closeModals()},n.prototype.handleColorIconErrors=function(){var n=this.orderHistoryDetails.find(".coloricon-wrapper img");n.each(function(n,t){var i=$(t);$("<img>").attr("src",i.attr("src")).on("error",function(){i.remove()})})},n.prototype.handleRequestInvoiceButton=function(n){var t=$(n.currentTarget).attr("data-modal-ajaxtarget");this.ajax.get({url:t})},n.prototype.destroy=function(){this.orderHistoryDetails.off("click.order-history-details")},n}();n.OrderHistoryDetailsController=i;DependencySystem.define(i).as(DS.Controller).andInject([DS.Origin,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="order-history-details",t.query=".order-history-details",t.controller=n.OrderHistoryDetailsController,t}();n.OrderHistoryDetailsComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function t(n,t,i,
r,u,f,e){this.toggles=t;this.origin=n;this.orderHistoryList=this.origin.contextQuery;this.inputDisablingHelper=e;this.namespacedClick="click"+this.origin.eventNamespace;this.ajax=i;this.updateInstructor=r;this.historyState=u;this.localStorage=f;this.orderHistoryListHeader=this.orderHistoryList.find(".ohl-header");this.groupId=this.orderHistoryListHeader.data("group-id");this.filterTogglesGroup=this.orderHistoryListHeader.find(".ohl-arrow").first().data("toggle-group");this.favoriteFilterContainer=this.orderHistoryListHeader.find(".ohl-width-icon .ohl-filter-container");this.dateFilterContainer=this.orderHistoryListHeader.find(".ohl-width-date-time .ohl-filter-container");this.collapseButton=this.orderHistoryList.find(".collapse-button");this.monthGroups=this.orderHistoryList.find(".ohl-group");sniff.isHandheld||this.initStickyFilterHeader();this.initFavoriteIconToggle();this.initOrderNoToggling();this.initVatToggling();this.initFilterPanels();this.enableFilledCheckboxes();this.reinitializeOrderGroupState();this.
initCollapseButton();this.eventIds=eventAggregator.subscribeMultiple([{message:Common.EventNames.ToggleTransitionEnded,callback:this.toggleChangedCallback.bind(this)},{message:Common.EventNames.PriceModeChanged,callback:this.priceModeChangedCallback.bind(this)},{message:Common.EventNames.UpdatedDateRange,callback:this.updateFilterPanelRequest.bind(this)}])}return t.prototype.destroy=function(){this.orderHistoryList.off(this.namespacedClick);eventAggregator.unSubscribeMultiple(this.eventIds);this.unbindCloseOverlay()},t.prototype.setToggleState=function(n,t,i){i===void 0&&(i=!1);n.hasClass("on")!==t&&this.toggles.triggerOrigin(n,i)},t.prototype.reinitializeOrderGroupState=function(){var t=this,r=utils.getBoolean(this.orderHistoryList.data("all-order-groups-opened")),i=this.historyState.getNamespace(n.OrderHistoryListComponent.componentName);this.monthGroups.each(function(n,u){var e=$(u),f=e.attr("id"),o=e.find("[data-toggle-id="+f+"]");r?t.setToggleState(o,!0):_.isUndefined(i[f])||t.setToggleState(o,i[f])})},t.
prototype.bindCloseOverlay=function(){$("body").on("click.closeFilter",this.closeOverlayToggle.bind(this))},t.prototype.unbindCloseOverlay=function(){$("body").off("click.closeFilter")},t.prototype.closeOverlayToggle=function(n){var t=$(n.target),i=".ohl-header [data-toggle-group="+this.filterTogglesGroup+"], .ohl-header .ohl-filter-container";t.closest(i).length||t.is(i)||this.toggles.triggerOrigin(this.orderHistoryList.find(".ohl-header .ohl-arrow.on"))},t.prototype.toggleChangedCallback=function(t){eventAggregator.publish(Common.EventNames.PageLayoutChanged);sniff.isHandheld&&t.triggers.groupsIds.indexOf(this.filterTogglesGroup)!==-1&&(t.targets.triggers.toTurnOn.length?this.bindCloseOverlay():t.targets.triggers.toTurnOff.length&&this.unbindCloseOverlay());var i=t.trigger.closest(".ohl-group").attr("id");this.orderHistoryList.find("#"+i).length&&(this.historyState.setValue(n.OrderHistoryListComponent.componentName,i,t.trigger.hasClass("on")),this.checkGroupsStates())},t.prototype.initFavoriteIconToggle=function(
){var n=this,t=this.orderHistoryList.data("favorite-ajaxtarget"),i=this.orderHistoryList.data("favorite-tooltip"),r=this.orderHistoryList.data("no-favorite-tooltip");this.orderHistoryList.on(this.namespacedClick,".ohl-group .icon-favorite, .ohl-group .icon-not-favorite",function(u){var e=$(u.target),o=e.parent(),f=!utils.getBoolean(o.data("favorite")),h=o.data("order-id"),s;e.toggleClass("icon-favorite icon-not-favorite").attr("title",f?i:r);f||(s=e.closest(".ohl-row").next(),eventAggregator.publish(Common.EventNames.CustomerNoteMinify,s.attr("id")));n.updateFavorteCounts(f);o.data("favorite",f);n.ajax.post({url:t,data:{orderId:h,favorite:f}})})},t.prototype.updateFavorteCounts=function(n){this.changeFavoriteFilterCount(".favorite",n);this.changeFavoriteFilterCount(".notfavorite",!n)},t.prototype.changeFavoriteFilterCount=function(n,t){var i=this.favoriteFilterContainer.find(n),r=i.find(".text .count"),u=t?+r.html()+1:+r.html()-1;r.html(u.toString());i.hasClass("disabled")&&u!==0?(i.removeClass("disabled"),i.
find("input").removeAttr("disabled")):u===0&&(i.addClass("disabled"),i.find("input").attr("disabled","disabled"))},t.prototype.orderNoColToggleCallback=function(t){var r=$(t.target),i;r.hasClass("selected")||(i=r.data("targetmode"),this.localStorage.setValue(n.OrderHistoryListComponent.componentName,"orderNoCol",i),this.toggleOrderNoCol(i))},t.prototype.toggleOrderNoCol=function(n){this.orderHistoryList.find(".ohl-group .ohl-width-order-num."+n).length!==0&&(this.orderHistoryList.find(".ohl-header .ohl-width-order-num .ohl-filter-group .type-filter").removeClass("selected").filter('[data-targetmode="'+n+'"]').addClass("selected"),this.orderHistoryList.find(".ohl-group .ohl-width-order-num").addClass("hidden").filter("."+n).removeClass("hidden"))},t.prototype.initOrderNoToggling=function(){this.orderHistoryList.find(".ohl-header .ohl-width-order-num").on("click",".type-filter",this.orderNoColToggleCallback.bind(this));var t=this.localStorage.getValue(n.OrderHistoryListComponent.componentName,"orderNoCol");t&&this.
toggleOrderNoCol(t)},t.prototype.initVatToggling=function(){var n=this;this.orderHistoryList.find(".ohl-header .ohl-width-price").on("click",".type-filter",function(t){var i=$(t.target),r,u;i.closest(".ohl-filter-group").find(".type-filter").removeClass("selected");i.addClass("selected");r=i.data("ajaxtarget");u=i.data("targetmode");n.ajax.get({url:r});eventAggregator.publish(Common.EventNames.PriceModeChanged,u)})},t.prototype.priceModeChangedCallback=function(n){this.orderHistoryList.find(".ohl-group .ohl-width-price").addClass("hidden").filter("."+n).removeClass("hidden")},t.prototype.showLoadingSpinner=function(){this.orderHistoryList.find(".ohl-group").css("opacity",0);this.orderHistoryList.find(".loading-spinner").removeClass("hidden")},t.prototype.initFilterPanels=function(){var n=this;this.orderHistoryList.on("click",".ohl-reset-icon",this.resetFilterIcon.bind(this)).find(".ohl-header .ohl-filter-container").on("change","input",this.updatePanelGroupCallback.bind(this)).on("click","li",function(t){if(n.
blockFilterPanels){t.preventDefault();return}var i=$(t.target),r=i.closest("li").find("input");i.is("input")||r.is(":disabled")||(i.parents(".ohl-width-date-time").length>0&&!r.data("modalid")&&eventAggregator.publish(Common.EventNames.OHClearDateRangePicker),r.trigger("click"))})},t.prototype.enableFilledCheckboxes=function(){this.orderHistoryList.find("input").each(function(n,t){var i=$(t);i.prop("checked")===!0&&i.prop("disabled")===!0&&i.prop("disabled",!1)})},t.prototype.resetFilterIcon=function(n){var t=$(n.currentTarget).parent();t.hasClass("ohl-width-date-time")?t.find('input[value=""]').closest("li").click():t.find("li.all-items").click()},t.prototype.updatePanelGroupCallback=function(n){var t=$(n.target);if(t.is('[type = "checkbox"]')){var i=t.closest(".ohl-filter-container"),r=i.find("input:not( .reset )"),f=i.find("input.reset"),e=r.filter(":checked").length,u=t.hasClass("reset")||e===0;u&&r.prop("checked",!1);f.prop("checked",u)}t.parents(".ohl-width-date-time").length!==0&&this.resetDateRangeInputValues(
);this.updateFilterPanelRequest()},t.prototype.updateFilterPanelRequest=function(t){var r=this,u,i,f;_.isUndefined(t)||this.setDateRangeInputValues(t);u=!!this.groupId&&_.isString(this.groupId);this.blockFilterPanels=!0;this.showLoadingSpinner();i=u?$('form[data-group-id="'+this.groupId+'"]'):this.orderHistoryList.find("form");f=this.inputDisablingHelper.disableInvisibleInputs(i);this.ajax.post({url:this.orderHistoryList.find(".ohl-header").data("ajaxtarget"),data:i.serialize()},{modal:!0}).then(function(t){return r.updateInstructor.orderUpdate(t,[n.OrderHistoryListComponent])}).always(function(){r.inputDisablingHelper.reEnableInvisibleInputs(f)})},t.prototype.resetDateRangeInputValues=function(){this.setDateRangeInputValues({startDate:"",endDate:""})},t.prototype.setDateRangeInputValues=function(n){this.orderHistoryListHeader.find("input.startdate").val(n.startDate);this.orderHistoryListHeader.find("input.enddate").val(n.endDate)},t.prototype.initStickyFilterHeader=function(){var r=this,n=this.orderHistoryList.
find(".ohl-header-wrapper"),t=100,i=n.position().top-t;n.css("top",t);n.css("width",$(".shopcontent").width());this.stickHeader(i);$(document).scroll(function(){return r.stickHeader(i)})},t.prototype.stickHeader=function(n){$(document).scrollTop()>n?this.orderHistoryList.addClass("fixed-header"):this.orderHistoryList.removeClass("fixed-header")},t.prototype.initCollapseButton=function(){this.collapseButton.on("click.collapse-button",this.onCollapseButtonClick.bind(this))},t.prototype.onCollapseButtonClick=function(){this.collapseButton.hasClass("collapsed")?this.toggleGroups(".ohl-row-group.off",!1):this.toggleGroups(".ohl-row-group.on",!0)},t.prototype.toggleGroups=function(n,t){var i=this;this.changeCollapseButtonState(t);this.monthGroups.each(function(t,r){var u=$(r).find(n);_.isUndefined(u)||i.toggles.triggerOrigin(u)})},t.prototype.changeCollapseButtonState=function(n){n?this.collapseButton.addClass("collapsed").children("span").text(this.collapseButton.data("expand-all")):this.collapseButton.removeClass(
"collapsed").children("span").text(this.collapseButton.data("collapse-all"))},t.prototype.checkGroupsStates=function(){this.monthGroups.find(".ohl-row-group.off").length!==0?this.changeCollapseButtonState(!0):this.changeCollapseButtonState(!1)},t}();n.OrderHistoryListController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Toggles.TogglesSetup,WebData.Ajax,WebData.UpdateInstructor,Common.HistoryState,Common.LocalStorage,Common.InputDisablingHelper])}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.toggles=n}return n.prototype.isResponsible=function(n,t){return n.contextQuery.data("group-id")===t.newContext.data("group-id")},n.prototype.update=function(n,t){var i=this,r=n.contextQuery.find(".ohl-header span.ohl-arrow.on").data("group-name");return LifeCycleSystem.replace(n.contextQuery,t.newContext).then(function(){if(modalManager.initModalLinks(t.newContext),!_.isUndefined(r)){var n=t.newContext.find('[data-group-name="'+r+'"]'),u=t.newContext.find('[data-target-for="'+
n.data("toggle-id")+'"]');n.hasClass("on")||(i.toggles.triggerOrigin(n,!0),n.addClass("hovered"),_.delay(function(){var t=$(u.selector+":hover").length>0,r=$(n.selector+":hover").length>0;t||r||u.hasClass("off")||i.toggles.triggerOrigin(n).then(function(){n.removeClass("hovered")})},200))}})},n}();n.OrderHistoryListRebuilder=t;DependencySystem.define(t).as(DS.Rebuilder).andInject([Toggles.TogglesSetup])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="order-history-list",t.query=".order-history-list",t.controller=n.OrderHistoryListController,t.rebuilder=n.OrderHistoryListRebuilder,t}();n.OrderHistoryListComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i,r){var f=this,u;this.origin=n;this.ajax=t;this.webForm=i;this.inputDisablingHelper=r;this.form=n.contextQuery;this.showConfirmationDialog=!1;this.addToBasketModalButton=this.form.find(".showmodal");this.addToBasketProceedButton=
this.form.find(".proceed");u=".button-link.clear-orderform[data-modalid]:not(a[href])";this.emptyFormButton=this.form.find(u);this.debounceTimeout=3e3;this.form.on("submit",this.submit.bind(this)).on("click",u,this.empty.bind(this));this.addToBasketModalButton.on("click",this.disableModalForEmptyForm.bind(this));this.eventIds=eventAggregator.subscribeMultiple([{message:Common.EventNames.OrderTableCheckAllButtonShown,callback:function(){f.updateAddToBasketButton(!0)}},{message:Common.EventNames.OrderTableItemDeleted,callback:this.update.bind(this)}]);this.updateAddToBasketButton()}return n.prototype.update=function(){this.updateAddToBasketButton()},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.eventIds)},n.prototype.submit=function(n){(n.preventDefault(),this.addToBasketProceedButton.hasClass("disabled"))||(this.webForm.submit({action:this.addToBasketProceedButton.prop("formAction"),data:this.form,method:this.form.prop("method")}),this.addToBasketProceedButton.prop("disabled",!0))},n.
prototype.empty=function(){var i=this,r=this.emptyFormButton.data("modalid"),t=$("#"+r),n;if(t.length){n=t.find("a[href]");n.on("click",function(t){t.preventDefault();var r=n.attr("href");modalManager.closeModals();i.post(r)})}},n.prototype.post=function(n){var t=this,i=this.inputDisablingHelper.disableInvisibleInputs(this.form);this.ajax.doRequest({method:this.form.attr("method"),url:n,data:this.form.serialize()}).always(function(){t.inputDisablingHelper.reEnableInvisibleInputs(i)})},n.prototype.disableModalForEmptyForm=function(n){this.hasFilledArticleNumbers()||this.hasOrderSelects()||n.stopPropagation()},n.prototype.updateAddToBasketButton=function(n){n===void 0&&(n=!1);this.showConfirmationDialog=n||this.hasOrderSelects()||!this.hasFilledArticleNumbers()&&!this.hasOrderItems();this.showConfirmationDialog?(this.addToBasketProceedButton.addClass("hide"),this.addToBasketModalButton.removeClass("hide"),this.updateDisabledButtonPointer()):(this.addToBasketModalButton.addClass("hide"),this.addToBasketProceedButton.
removeClass("hide"))},n.prototype.updateDisabledButtonPointer=function(){this.hasFilledArticleNumbers()||this.hasOrderSelects()?this.addToBasketModalButton.css("cursor","pointer"):this.addToBasketModalButton.css("cursor","default")},n.prototype.hasOrderItems=function(){return this.form.find(".quickorder.ordertable .orderitem").length>0},n.prototype.hasOrderSelects=function(){return this.form.find(".quickorder.ordertable .orderselect").length>0},n.prototype.hasFilledArticleNumbers=function(){var n;return this.form.find(".quickorder.ordertable .orderinputs input.article").each(function(t,i){var r=$(i);r.val()&&!r.prop("disabled")&&(n=!0)}),n},n}();n.QuickorderFormController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax,WebData.Form,Common.InputDisablingHelper])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="quickorder-form",t.query=".quickorder-form",t.controller=n.QuickorderFormController,t}();n.QuickorderFormComponent=t;DependencySystem.
define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.orderTable=n.contextQuery;this.initialize()}return n.prototype.initialize=function(){tooltipBoxHandler.initializeInContext(this.orderTable)},n}();n.QuickorderTableController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="quickorder-table",t.query=".quickorder.ordertable",t.controller=n.QuickorderTableController,t}();n.QuickorderTableComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;this.autoOpen=n.contextQuery;this.hrefRebuildService=t;this.initialize()}return n.prototype.initialize=function(){this.hrefRebuildService.rebuildHref(this.autoOpen).click();var n=this.autoOpen.attr("href");_.isEmpty(n)||this.autoOpen.data("modal-ajaxtarget")!=null||this.autoOpen.data("modalid")!=
null||(window.location.href=n)},n}();n.AutoOpenController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.HrefRebuildService])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="auto-open",t.query="a.auto-open, a.link.autoopen",t.controller=n.AutoOpenController,t}();n.AutoOpenComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.scrollOffset=sniff.isHandheld?-10:-80;this.origin=n;this.transitions=Navigation.VelocityTransitions.getInstance();this.richtextElement=this.origin.contextQuery.find(".content-bottom .richtext");this.arrowElement=this.origin.contextQuery.find(".arrow");this.sustainabilityGradient=this.origin.contextQuery.find(".sustainability-gradient");this.topBracket=this.origin.contextQuery.find(".line-top");this.getHeights();this.heightExpanded>this.heightCollapsed?this.arrowElement.removeClass("arrow-invisible"):this.sustainabilityGradient.
addClass("expanded");this.bindEvents()}return n.prototype.getHeights=function(){var n=this.richtextElement.clone(),t;n.css({visibility:"hidden",height:"auto"}).insertAfter(this.richtextElement);t=50;this.heightExpanded=n.height()+t;n.remove();this.heightCollapsed=parseInt(this.richtextElement.css("height"))},n.prototype.bindEvents=function(){var n=this;this.arrowElement.on("click"+this.origin.eventNamespace,function(){n.richtextElement.hasClass("expanded")?n.collapse():n.expand();n.scrollTopBracketInView();n.richtextElement.on("transitionend"+n.origin.eventNamespace+" webkitTransitionEnd"+n.origin.eventNamespace,function(){eventAggregator.publish(Common.EventNames.PageLayoutChanged)})})},n.prototype.collapse=function(){this.elements().removeClass("expanded");this.richtextElement.css("height",this.heightCollapsed+"px")},n.prototype.expand=function(){this.elements().addClass("expanded");this.richtextElement.css("height",this.heightExpanded+"px")},n.prototype.scrollTopBracketInView=function(){this.transitions.animateTo(
{position:this.topBracket.offset().top+this.scrollOffset,duration:500,easing:"linear"})},n.prototype.elements=function(){return this.richtextElement.add(this.sustainabilityGradient).add(this.arrowElement)},n.prototype.destroy=function(){this.arrowElement.off(this.origin.eventNamespace);this.richtextElement.off(this.origin.eventNamespace)},n}();n.SustainabilityHeaderController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="sustainability-header",t.query=".sustainability-header",t.controller=n.SustainabilityHeaderController,t}();n.SustainabilityHeaderComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){var i=this;eventAggregator.publish(Common.EventNames.SustainabilityDetailsOpen);this.origin=n;this.elementRepository=t;this.details=this.origin.contextQuery;this.container=this.details.find(".sustainability-container");
this.content=this.container.find(".sustainability-content");this.closeTitle=this.details.data("close-title")||document.title;this.closeUrl=this.details.data("close-url")||window.location.href;this.disableScrollingBehindDetails();this.details.hasClass("should-animate")?this.animateDetails().then(function(){return i.initialize()}):this.initialize()}return n.prototype.animateDetails=function(){var t=$.Deferred(),n=this.elementRepository.window(),i=[{e:this.details,p:{opacity:[1,0]},o:{duration:100,easing:"linear"}},{e:this.container,p:{opacity:1,top:[n.height()/2,n.height()/2],left:[n.width()/2,n.width()/2],width:[300,0],height:[20,0],"margin-left":[-150,0],"margin-top":[-10,0]},o:{duration:500,easing:"linear"}},{e:this.container,p:{top:0,left:0,width:n.width(),height:n.height(),"margin-left":0,"margin-top":0},o:{duration:400,easing:"ease-out",complete:function(){t.resolve()}}}];if(Modernizr.csstransforms3d&&Modernizr.cssanimations){this.details.addClass("slit-animation");this.details.one("animationend webkitAnimationEnd",
function(){t.resolve()})}else $.Velocity.RunSequence(i);return t.promise()},n.prototype.initialize=function(){this.details.addClass("open").removeClass("slit-animation");this.setStateAndTitle(this.details.data("open-url"),this.details.data("open-title"));this.bindEvents();this.initScrollbar();this.initCloseButtons()},n.prototype.bindEvents=function(){var t=this,n;this.details.on("mousedown",function(t){n=t.target}).on("click",function(i){if(i.target==n){var r=$(i.target);r.closest(".sustainability-content").length||t.closeDetails()}})},n.prototype.initScrollbar=function(){this.firefoxHotfix=new Scrolling.FirefoxHotfix;this.desktopEmulationModeFix=new Scrolling.DesktopEmulationModeFix;this.content.simplebar().use(this.desktopEmulationModeFix).use(this.firefoxHotfix)},n.prototype.initCloseButtons=function(){var n=this.container.find(".close-button"),t=n.filter(".outside");n.one("click",this.closeDetails.bind(this));t.detach().appendTo(this.content)},n.prototype.setStateAndTitle=function(n,t){n&&t&&(utils.replaceState(
n),utils.setHtmlTitle(t))},n.prototype.closeDetails=function(){var n=this;if(this.setStateAndTitle(this.closeUrl,this.closeTitle),Modernizr.csstransforms3d)this.details.addClass("closing").one("transitionend webkitTransitionEnd",function(){n.details.remove()});else this.details.remove()},n.prototype.disableScrollingBehindDetails=function(){if(!this.elementRepository.body().hasClass("disable-vertical-scrolling")){var n=this.elementRepository.document().scrollTop();this.elementRepository.body().addClass("disable-vertical-scrolling").css("top",-n)}},n.prototype.enableScrollingBehindDetails=function(){if(this.elementRepository.body().hasClass("disable-vertical-scrolling")){var n=-parseInt(this.elementRepository.body().css("top"));this.elementRepository.body().removeClass("disable-vertical-scrolling").css("top","0");this.elementRepository.document().scrollTop(n)}},n.prototype.destroy=function(){eventAggregator.publish(Common.EventNames.SustainabilityDetailsClose);this.enableScrollingBehindDetails()},n}();n.SustainabilityDetailsController=
t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="sustainability-details",t.query=".sustainability-details",t.controller=n.SustainabilityDetailsController,t}();n.SustainabilityDetailsComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(t,i){var r=this;if(this.origin=t,this.slideshow=i,this.slideshowContainer=t.contextQuery,this.slider=this.slideshowContainer.find(n.ImageMapSliderSelector),utils.isParallaxpage()){this.addSlideShowArrows();this.slider.filter(n.FullscreenSelector).on("cycle-initialized",function(){r.addParallaxScreenHeight()})}if(utils.isStartpage())this.slider.on("cycle-initialized",function(){r.hideStartpagePreload()});this.pauseAfterInteraction=utils.getBoolean(this.slider.data("pause-after-interaction"));this.startWhenVisible=utils.isParallaxpage()&&utils.getBoolean(this.slider.
data("start-when-visible"));this.parentScreen=this.slideshowContainer.closest(".screen");this.beginPaused=utils.getBoolean(this.slider.data("paused"));this.initSlideshow();this.initBackground();this.setCompleteLink();this.setContainerSizeEvents();this.finishInitalize();this.bindSlideEvents();this.subscribeToEventAggregator()}return n.prototype.subscribeToEventAggregator=function(){this.subscriptions=eventAggregator.subscribeMultiple([{message:Common.EventNames.ImagemapSlideShowStopAll,callback:this.slideshow.pause.bind(this.slideshow)},{message:Common.EventNames.ImagemapSlideShowStartAll,callback:this.slideshow.resume.bind(this.slideshow)}]);utils.isParallaxpage()&&(this.parallaxSubscription=eventAggregator.subscribe(Common.EventNames.ParallaxScreenScrolledIntoView,this.reachedAnchorPositionCallback.bind(this)))},n.prototype.addSlideShowArrows=function(){this.slideshowContainer.filter(".fullscreen").find(".slideshow-arrow-right, .slideshow-arrow-left").detach().appendTo(this.slideshowContainer.closest(".screen"))}
,n.prototype.initSlideshow=function(){var r=this,u=!utils.getOptionalBoolean(this.slider.data("no-pause-on-hover")),t=this.slideshowContainer.hasClass("is-inside-closed-slider"),i,n;(t||this.startWhenVisible&&!this.hasReachedVisiblePosition)&&(this.beginPaused=!0);i={speed:parseInt(this.slider.data("animation-duration"))||undefined,timeout:parseInt(this.slider.data("animation-delay"))||undefined,fx:this.slider.data("transition-type"),paused:this.beginPaused};n=$.Deferred();(!this.startWhenVisible||this.hasReachedVisiblePosition)&&n.resolve();this.reachedVisiblePositionDeferred=n;this.slideshow.initializeFor(this.slider,i,u,this.reachedVisiblePositionDeferred.promise()).then(function(){t&&r.finalizeInitialisationOnSliderOpen()})},n.prototype.finalizeInitialisationOnSliderOpen=function(){var n=this,t=eventAggregator.subscribe(Common.EventNames.SliderOpen,function(i){var r=i.find(".imagemap-slider");n.slider.is(r)&&(n.setContainerSize(),eventAggregator.unSubscribe(Common.EventNames.SliderOpen,t),n.slideshow.resume(
))})},n.prototype.initBackground=function(){var n=this;this.slider.on("cycle-after",function(){n.setCompleteLink();n.slideshowContainer.find(".cycle-slide-active map").length&&imageMapHandler.activateResizeableImageMap(n.slideshowContainer.find(".cycle-slide-active"))})},n.prototype.setContainerSizeEvents=function(){var n=this;this.setContainerSize();this.slider.on("cycle-initialized",function(){n.setContainerSize();n.slider.find(".slide").css("display","block")})},n.prototype.bindSlideEvents=function(){var n=this,t=utils.isParallaxpage()&&this.slideshowContainer.hasClass("fullscreen")?this.slideshowContainer.closest(".screen"):this.slideshowContainer;t.on("click",".slideshow-arrow-right",function(){n.slider.cycle("next");n.slider.trigger("trigger.scrollTo");n.slideChangeTriggeredByUserCallback()}).on("click",".slideshow-arrow-left",function(){n.slider.cycle("prev");n.slider.trigger("trigger.scrollTo");n.slideChangeTriggeredByUserCallback()});this.slider.on("cycle-pager-activated",function(){n.slideChangeTriggeredByUserCallback(
)})},n.prototype.slideChangeTriggeredByUserCallback=function(){this.pauseAfterInteraction&&this.slideshow.stop()},n.prototype.finishInitalize=function(){this.slideshowContainer.removeClass("not-initialized")},n.prototype.addParallaxScreenHeight=function(){this.slider.find("div.slide img").addClass("screen-height viewport-height")},n.prototype.setContainerSize=function(){utils.isStartpage()||utils.isParallaxpage()||this.slideshowContainer.find(".imagemap").each(function(n,t){var i=$(t);i.has("fill")||i.find(".imagemap-container").width(i.find(".image").width())})},n.prototype.hideStartpagePreload=function(){var n=this.slider.data("cycle.opts").animationDelay;_.delay(function(){$(".startpage .preload").hide()},n)},n.prototype.setCompleteLink=function(){var n=this,t=setTimeout(function(){var i,r;clearTimeout(t);var u=n.slideshowContainer.find(".resizeMap.image"),f=u.width(),e=u.height();f>0&&e>0&&(i=n.slideshowContainer.find(".areasource.completelink"),r="0,0,"+f+","+e,i.attr("coords",r),i.attr("data-coords",r))}
,1e3)},n.isSmallSlideshow=function(t){var i=t.closest(n.ImageMapSliderSelector);return i.length?!i.is(n.FullscreenSelector):!1},n.prototype.reachedAnchorPositionCallback=function(n){!this.startWhenVisible||this.parentScreen.length<1||this.hasReachedVisiblePosition||n.id!==this.parentScreen.attr("id")||(this.hasReachedVisiblePosition=!0,this.reachedVisiblePositionDeferred.resolve(),this.slideshow.resume())},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.subscriptions);eventAggregator.unSubscribe(Common.EventNames.ParallaxScreenScrolledIntoView,this.parallaxSubscription);eventAggregator.unSubscribeMultiple(this.startpageSubscriptions);this.slideshow.destroy()},n.ImageMapSliderSelector=".imagemap-slider",n.FullscreenSelector=".fullscreen",n}();n.ImagemapSlideshowController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Slideshows.Cycle2Slideshow])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="imagemap-slideshow",
t.query=".imagemap-slideshow",t.controller=n.ImagemapSlideshowController,t}();n.ImagemapSlideshowComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.origin=n;this.ajax=t;this.targetElements=this.origin.contextQuery.find("span[data-ajaxtarget]");this.targetElements.on("click.switcher touchstart.switcher",this.optionClickCallback.bind(this));this.subscription=eventAggregator.subscribe(Common.EventNames.PriceModeChanged,this.priceModeChangedCallback.bind(this))}return n.prototype.optionClickCallback=function(n){var t=$(n.target),i,r;t.hasClass("selected")||(i=t.data("price-mode"),eventAggregator.publish(Common.EventNames.PriceModeChanged,i),r=$(n.target).data("ajaxtarget"),this.ajax.get({url:r}))},n.prototype.priceModeChangedCallback=function(n){this.targetElements.removeClass("selected").filter('[data-price-mode="'+n+'"]').addClass("selected")},n.prototype.destroy=function(){this.targetElements.off(".switcher");eventAggregator.
unSubscribe(Common.EventNames.PriceModeChanged,this.subscription)},n}();n.SwitcherController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="switcher",t.query=".switcher.ajax",t.controller=n.SwitcherController,t}();n.SwitcherComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){(this.jqElement=n.contextQuery,this.priceMode=this.jqElement.data("pricemode"),_.isUndefined(this.priceMode)||this.priceMode==="")||(this.subscription=eventAggregator.subscribe(Common.EventNames.PriceModeChanged,this.priceModeChangedCallback.bind(this)))}return n.prototype.priceModeChangedCallback=function(n){n===this.priceMode?this.jqElement.removeClass("hidden"):this.jqElement.addClass("hidden")},n.prototype.destroy=function(){eventAggregator.unSubscribe(Common.EventNames.PriceModeChanged,this.subscription)},n}();n.PriceModeDependantElementController=
t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="pricemode-dependant-element",t.query=".pricemode-dependant-element",t.controller=n.PriceModeDependantElementController,t}();n.PriceModeDependantElementComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){if(this.origin=n,this.videoRemote=this.origin.contextQuery,this.videoId=this.videoRemote.data("video-id"),this.videoAction=this.videoRemote.data("action"),this.videoId&&this.videoAction)this.origin.setUp(this.videoRemote).on("click",this.evaluateAction.bind(this))}return n.prototype.evaluateAction=function(){switch(this.videoAction){case"play":videoHandlers.start(this.videoId,!0)}},n.prototype.destroy=function(){this.videoRemote.off(this.origin.eventNamespace)},n}();n.VideoRemoteController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||
(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="video-remote",t.query=".video-remote",t.controller=n.VideoRemoteController,t}();n.VideoRemoteComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.qrCodeElement=n.contextQuery;this.initQRCode()}return n.prototype.initQRCode=function(){this.qrCodeElement.data("error-correction-level")!=null&&(this.erLevel=this.qrCodeElement.data("error-correction-level").toString().toUpperCase());this.erLevel!="L"&&this.erLevel!="M"&&this.erLevel!="H"&&this.erLevel!="Q"&&(this.erLevel="M");this.qrCodeSize=this.qrCodeElement.hasClass("kiosk-basket-handover")?120:this.qrCodeElement.parent().width()>0?this.qrCodeElement.parent().width():200;this.options={render:"div",ecLevel:this.erLevel,fill:"#000",background:null,text:this.qrCodeElement.data("qr-text"),size:this.qrCodeSize,radius:0,quiet:0,mode:0,mSize:.1,mPosX:.5,mPosY:.5,label:"no label",fontname:
"sans",fontcolor:"#000",image:null};this.qrCodeElement.find(".qr-code-container").qrcode(this.options)},n.prototype.destroy=function(){},n}();n.QRCodeController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="qr-code",t.query=".qr-code",t.controller=n.QRCodeController,t}();n.QRCodeComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.linkr=this.origin.contextQuery;this.linkrSourceId=this.linkr.data("source-id");this.linkrTarget=this.linkr.data("target");this.linkrEvent=this.linkr.data("event");this.linkrDelay=this.linkr.data("delay")||0;this.eventIds=eventAggregator.subscribeMultiple([{message:this.linkrEvent,callback:this.linkrCallback.bind(this)}])}return n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.eventIds)},n.prototype.linkrCallback=function(n,t){var i=this;this.
linkrSourceId&&this.linkrSourceId!==t||_.delay(function(){utils.reloadOrOpenLocation("",i.linkrTarget)},this.linkrDelay)},n}();n.LinkrController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="linkr",t.query=".linkr",t.controller=n.LinkrController,t}();n.LinkrComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t,i){this.contentElement=n.contextQuery;this.contentTrigger=this.contentElement.children(".link.expander-container");this.window=t.window();this.scrollOffset=this.getAnchorOffset();this.toggles=i;this.initalizeHashEvent()}return n.prototype.initalizeHashEvent=function(){var n=this;this.anchorJumpEvent=eventAggregator.subscribe(Common.EventNames.AnchorJump,function(t){n.processHash(t)})},n.prototype.processHash=function(n){n.length&&n.closest(".category-content-bottom")&&this.navigateToAnchor(n)},n.prototype.
navigateToAnchor=function(n){var t=this;this.toggleElement(this.contentTrigger,!0).then(function(){t.toggleElement(n.find("> [data-toggle-id]"),!0).then(function(){t.window.scrollTop(n.offset().top-t.scrollOffset)})})},n.prototype.toggleElement=function(n,t){return n.data("toggle-id")&&(t&&!n.hasClass("on")||!t&&!n.hasClass("off"))?this.toggles.triggerOrigin(n,!1):$.Deferred().resolve().promise()},n.prototype.getAnchorOffset=function(){var n=$(document).find(".scope-breadcrumb"),t,i;return n.length>0?(t=n.outerHeight()+10,i=$(document).find(".mkt-scope-headr ").outerHeight(),t+i):sniff.isDesktop?110:40},n.prototype.destroy=function(){eventAggregator.unSubscribe(Common.EventNames.AnchorJump,this.anchorJumpEvent)},n}();n.CategoryContentBottomController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.ElementRepository,Toggles.TogglesSetup])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="category-content-bottom",t.query=".category-content-bottom",
t.controller=n.CategoryContentBottomController,t}();n.CategoryContentBottomComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){this.ajax=t;this.iterationLimit=1e3;this.ajaxTarget=n.contextQuery.data("ajaxtarget");this.interval=+n.contextQuery.data("interval");this.initialize()}return n.prototype.initialize=function(){var n=this,t=0;this.intervalId=setInterval(function(){n.ajax.get({url:n.ajaxTarget}).then(function(t){t.preprocessingReport.modal&&n.stop()});t++;t>=n.iterationLimit&&n.stop()},this.interval)},n.prototype.stop=function(){clearInterval(this.intervalId)},n.prototype.destroy=function(){this.stop()},n}();n.OrderHistoryStatusCheckerController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,WebData.Ajax])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="order-history-status-checker",t.query=".oh-status-checker",t.controller=n.OrderHistoryStatusCheckerController,
t}();n.OrderHistoryStatusCheckerComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.slidesPerView=3;this.articleSlider=this.origin.contextQuery;this.articleSliderViewport=this.articleSlider.find(".article-slider-viewport");this.articleIndices=this.articleSlider.find(".article-index");this.slides=this.articleSliderViewport.find(".swiper-slide");this.setupIDangerous()}return n.prototype.setupIDangerous=function(){var n={slidesPerView:this.slidesPerView,slidesPerGroup:this.slidesPerView,spaceBetween:12,setWrapperSize:!0,noSwiping:!1,nextButton:this.articleSlider.find(".swiper-button-next"),prevButton:this.articleSlider.find(".swiper-button-prev"),width:this.articleSliderViewport.width(),height:this.articleSliderViewport.height(),onSlideChangeEnd:this.updateSlideSelectionBySlideChange.bind(this)};this.iDangerousSlider=new Swiper(this.articleSliderViewport,n)},n.prototype.updateSlideSelectionBySlideChange=function()
{this.updateArticleIndex(this.iDangerousSlider.activeIndex+2)},n.prototype.updateArticleIndex=function(n){this.articleIndices.addClass("hidden");$(this.articleIndices[n]).removeClass("hidden")},n.prototype.destroy=function(){this.iDangerousSlider.destroy(!0,!1)},n}();n.ArticleSliderController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="article-slider",t.query=".article-slider-element",t.controller=n.ArticleSliderController,t}();n.ArticleSliderComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n,t){var i=this;this.headerBaseWidth=1e3;this.origin=n;this.elements=t;this.body=this.origin.contextQuery;this.footerHeightContainer=this.body.find(".not-responsive-footer.handheld .bottom-navigation-vertical");this.footerContent=this.footerHeightContainer.find(".footer-elements-wrapper .footer-content");this.footerBaseWidth=
parseInt(this.footerContent.css("width"),10);this.footerBaseHeight=parseInt(this.footerHeightContainer.css("height"),10);this.footerBaseInnerTopPadding=parseInt(this.footerHeightContainer.css("padding-top"),10);$("head").append('<style type="text/css" id="responsive_helper_styles"><\/style>');this.scriptBlock=this.elements.html().find("#responsive_helper_styles");this.adaptHeaderFooterAndModals();this.headerFooterandModalsSubscription=eventAggregator.subscribe(Common.EventNames.WindowSizeChanged,function(){i.adaptHeaderFooterAndModals()})}return n.prototype.resetModalScaling=function(){this.scriptBlock.empty()},n.prototype.scaleModals=function(){var n=this.currentScaleFactor.toFixed(2);this.scriptBlock.empty().append(".modal-scrollable .modal.handheld .modal-inner {transform-origin: center center;}.modal-scrollable .modal.handheld.modal-overflow .modal-inner {transform-origin: top center;}.modal-scrollable .modal.handheld .modal-inner {transform: scale("+n+");}.modal-scrollable .modal.handheld .modal-inner > button.close {margin-top: 0;}")}
,n.prototype.scaleDownFooter=function(n){var t,i;if(this.footerContent.length){var r=this.currentScaleFactor.toFixed(2),u=this.currentScaleFactor*this.footerBaseWidth,f=(n-u)/2;this.footerContent.css("transform-origin","top left").css("transform","scale("+r+")").css("margin-left",f.toFixed(0)+"px");t=this.currentScaleFactor*this.footerBaseHeight;this.footerHeightContainer.css("height",t.toFixed(0)+"px");i=this.currentScaleFactor*this.footerBaseInnerTopPadding;this.footerHeightContainer.css("padding-top",i.toFixed(0)+"px")}},n.prototype.scaleUpFooter=function(){this.footerContent.length&&(this.footerContent.css("transform-origin","").css("transform","").css("margin-left","auto"),this.footerHeightContainer.css("height",this.footerBaseHeight.toFixed(0)+"px"),this.footerHeightContainer.css("padding-top",this.footerBaseInnerTopPadding.toFixed(0)+"px"))},n.prototype.adaptHeaderFooterAndModals=function(){var t=this.elements.window().width(),n=t/this.headerBaseWidth;sniff.isKioskDevice&&(n=1);this.currentScaleFactor=
n;n>=1?(this.scaleUpFooter(),this.resetModalScaling()):(this.scaleDownFooter(t),this.scaleModals())},n.prototype.destroy=function(){eventAggregator.unSubscribeMultiple(this.headerSubscriptions);eventAggregator.unSubscribe(Common.EventNames.WindowSizeChanged,this.headerFooterandModalsSubscription)},n}();n.ResponsiveLayoutHelperController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin,Common.ElementRepository])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="responsiveLayoutHelper",t.query=".use-responsive-helper",t.controller=n.ResponsiveLayoutHelperController,t}();n.ResponsiveLayoutHelperComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.linkElement=this.origin.contextQuery;this.ShowSubtitleBehindLink();this.addAnchorHandling();this.addOpenerRedirectHandling();this.addAppShellHandling()}return n.prototype.ShowSubtitleBehindLink=function(
){eventAggregator.subscribe(Common.EventNames.ShowSubtitleBehindLink,function(n){n.find(".subtitle").insertAfter(n)})},n.prototype.addAnchorHandling=function(){var t=this,n=this.linkElement.attr("href");if(n&&n.indexOf("#")===0&&n.length>1&&modalManager.isInsideModal(this.linkElement))this.linkElement.on("click.anchor",function(n){n.preventDefault();eventAggregator.publish(Common.EventNames.ModalAnchorClicked,t.linkElement)})},n.prototype.addOpenerRedirectHandling=function(){var n=this;if(this.linkElement.hasClass("opener-redirect")&&window.opener)this.linkElement.on("click.openerRedirect",function(t){t.preventDefault();!window.opener||window.opener.closed?window.open(n.linkElement.attr("href"),"_blank"):window.opener.location.href=n.linkElement.attr("href");window.close()})},n.prototype.addAppShellHandling=function(){var n=this.linkElement.attr("data-appshell-message");if(!_.isEmpty(n)&&window.shell)this.linkElement.on("click",function(t){t.preventDefault();window.shell.publishTo(n)})},n.prototype.destroy=function(
){this.linkElement.off("click.anchor");this.linkElement.off("click.openerRedirect")},n}();n.LinkController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName=".link",t.query=".link",t.controller=n.LinkController,t}();n.LinkComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.abTastyContainerClass=".ABTastyOptoutSuccess";this.abTastyOptOutValue="ABTastyOptout=1";this.googleAnalyticsDisable="ga-disable-UA-102753058-1";this.origin=n;this.optoutCheck=this.origin.contextQuery;this.initializeOptOutTest();this.addEvents()}return n.prototype.initializeOptOutTest=function(){var n=this;document.cookie.indexOf(this.googleAnalyticsDisable+"=true")>-1&&(window[this.googleAnalyticsDisable]=!0);eventAggregator.subscribe(Common.EventNames.ModalOpened,function(){n.displayOptOutMessages()})},n.prototype.displayOptOutMessages=function(
){var n=this;this.displayGoogleAnalyticsOptoutMessage();Common.FeatureToggle.ABTestsEnabled&&setTimeout(function(){n.displayABTestOptoutMessage()},500)},n.prototype.addEvents=function(){this.optoutCheck.on("click.analyticsSuccess",".analyticsSuccess",this.setGoogleAnalyticsOptOutAndShowMessage.bind(this));this.optoutCheck.on("click.ABTastyOptoutSuccess",this.abTastyContainerClass,this.setAbTastyOptOutAndShowMessage.bind(this))},n.prototype.displayABTestOptoutMessage=function(){this.aBtastyOptOutActivated()&&this.showSubtitlesForElementsOf(this.abTastyContainerClass)},n.prototype.showSubtitlesForElementsOf=function(n){this.optoutCheck.find(n).each(function(n,t){eventAggregator.publish(Common.EventNames.ShowSubtitleBehindLink,$(t))})},n.prototype.setGoogleAnalyticsOptOutAndShowMessage=function(n){if(n.preventDefault(),!(document.cookie.indexOf(this.googleAnalyticsDisable+"=true")>-1)){this.setNeverExpiringCookieForCurrentDomain(this.googleAnalyticsDisable+"=true");window[this.googleAnalyticsDisable]=!0;var t=$(
n.target).closest(".analyticsSuccess");eventAggregator.publish(Common.EventNames.ShowSubtitleBehindLink,t)}},n.prototype.setAbTastyOptOutAndShowMessage=function(n){this.optOutAbTestTool(n,this.aBtastyOptOutActivated(),this.abTastyContainerClass)},n.prototype.aBtastyOptOutActivated=function(){return document.cookie.toLowerCase().indexOf(this.abTastyOptOutValue.toLowerCase())>-1},n.prototype.optOutAbTestTool=function(n,t,i){if(n.preventDefault(),!t){var r=$(n.target).closest(i);eventAggregator.publish(Common.EventNames.ShowSubtitleBehindLink,r);this.setNeverExpiringCookieForCurrentDomain(this.abTastyOptOutValue+";secure")}},n.prototype.setNeverExpiringCookieForCurrentDomain=function(n){document.cookie=n+"; domain=."+utils.getSecondAndToplevelDomain()+"; expires=Thu, 31 Dec 2099 23:59:59 UTC; path=/"},n.prototype.displayGoogleAnalyticsOptoutMessage=function(){document.cookie.indexOf(this.googleAnalyticsDisable+"=true")>-1&&this.optoutCheck.find(".analyticsSuccess").each(function(n,t){eventAggregator.publish(Common.
EventNames.ShowSubtitleBehindLink,$(t))})},n.prototype.postConstruct=function(){this.displayOptOutMessages()},n.prototype.destroy=function(){this.optoutCheck.off("click.analyticsSuccess");this.optoutCheck.off("click.ABTastyOptoutSuccess")},n}();n.OptOutCheckController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName=".optout-check",t.query=".optout-check",t.controller=n.OptOutCheckController,t}();n.OptOutCheckComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){var i,t;this.container=n.contextQuery.find(".item-container");this.container&&(i=this.container.find(".item-wrapper"),i.width()>this.container.width()+1&&(t=this.container.find(".gradient"),t!=undefined&&t.removeClass("hidden")))}return n}();n.BreadcrumbController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements=
{})),function(n){var t=function(){function t(){}return t.componentName="breadcrumb-component",t.query=".breadcrumb-content",t.controller=n.BreadcrumbController,t}();n.BreadcrumbComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.origin=n;this.multilineButton=this.origin.contextQuery;this.bindTriggerReload()}return n.prototype.bindTriggerReload=function(){if(this.multilineButton.attr("data-reload")&&this.multilineButton.attr("data-reload").toLowerCase()==="true")this.multilineButton.on("click",function(n){n.preventDefault();location.reload()})},n}();n.MultilineButtonController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="multiline-button",t.query=".multiline-button",t.controller=n.MultilineButtonController,t}();n.MultilineButtonComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements=
{})),function(n){var t=function(){function n(n){this.origin=n;this.shipperSelection=this.origin.contextQuery;this.options=this.shipperSelection.find(".shipper-option");this.ajaxTarget=this.shipperSelection.data("ajaxtarget");this.ajaxParameter=this.shipperSelection.data("ajaxpar");this.updateSelection()}return n.prototype.updateSelection=function(){var n=this;this.options.find("input[type = radio]").each(function(t,i){var r=$(i);r.on("change",function(t){var i=$(t.target);$.ajax({type:"POST",url:n.ajaxTarget,data:n.ajaxParameter+"="+i.val()})})})},n}();n.ShipperSelectionController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="shipper-selection",t.query=".shipper-selection",t.controller=n.ShipperSelectionController,t}();n.ShipperSelectionComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){var t=n.contextQuery,
i=t.data("recipient"),f=i?encodeURIComponent(i):"",r=t.data("subject"),e=r?encodeURIComponent(r):"",u=t.data("body"),o=u?encodeURIComponent(u):"",s="mailto:?to="+f+"&subject="+e+"&body="+o;t.attr("href",s)}return n}();n.MailToController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function n(){}return n}();t.componentName="mailTo";t.query=".mail-to";t.controller=n.MailToController;n.MailToComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={})),function(n){var t=function(){function n(n){this.dateSelector=n.contextQuery;this.hideTooltipOnFocus()}return n.prototype.hideTooltipOnFocus=function(){var n=this;this.dateSelector.find(".dropdown-wrapper").each(function(t,i){$(i).on("click.hide-date-selector-error",function(){$(i).siblings(".qtip-red").length&&eventAggregator.publish(Common.EventNames.TooltipRemoveError,n.dateSelector)})})},n.prototype.destroy=function(){this.dateSelector.find(".dropdown-wrapper").
forEach(function(n){n.off("click.hide-date-selector-error")})},n}();n.DateSelectorController=t;DependencySystem.define(t).as(DS.Controller).andInject([DS.Origin])}(PageElements||(PageElements={})),function(n){var t=function(){function t(){}return t.componentName="date-selector",t.query=".date-selector",t.controller=n.DateSelectorController,t}();n.DateSelectorComponent=t;DependencySystem.define(t).as(DS.Component)}(PageElements||(PageElements={}))