function deepExtend(r){r=r||{};for(var e=arguments.length,n=1;n<e;n++){var t=arguments[n];if(t)for(var a in t)Object.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r}
function getClosest(e,n){for(n=n.toUpperCase();e;){if(e.nodeName===n)return e;e=e.parentNode}return null}
function httpBuildQuery(n){var r=[];for(var t in n){var o=function n(r,t,o){null===t&&(t=""),!0===t?t="1":!1===t&&(t="0");var u=typeof t;if("function"===u)return"";if("object"===u){var e=[];for(let u in t)e.push(n(r+"["+u+"]",t[u],o));return e.join("&")}return r+"="+encodeURIComponent(t)}(t,n[t],r);""!==o&&r.push(o)}return r.join("&")}
function triggerEventCrossBrowser(e,n){var t;return"function"==typeof window.Event?t=new Event(n,{bubbles:!0,cancelable:!0}):(t=document.createEvent("Event")).initEvent(n,!0,!0,!0),e.dispatchEvent(t)}
function ajaxRequest(e){if(e.onTrigger&&("string"==typeof e.onTrigger&&(e.onTrigger=Function(e.onTrigger)),!1===e.onTrigger()))return;var a=e._GET||{},t=e._POST||{};if(e.ajaxparams&&deepExtend(a,e.ajaxparams),e.dataIncludeJS){var n="";"undefined"!=typeof g_arrLoadedJavaScript&&(n=g_arrLoadedJavaScript.join("|")),t._ajaxjs=n}if(e.dataIncludeCSS){let e="";"undefined"!=typeof g_arrLoadedCSS&&(e=g_arrLoadedCSS.join("|")),t._ajaxcss=e}if(e.dataIncludeURL&&!t._ajaxurl){var o=location.href;o=(o=o.substring(o.indexOf("//")+2)).substring(o.indexOf("/")),t._ajaxurl=o}let r=[];if(!1!==e.alwaysPost){let e=document.getElementsByClassName("alwayspost");for(let a=0;a<e.length;a++){let n=e[a],o=n.getAttribute("name"),s=n.form;o&&("radio"!=n.type&&"checkbox"!=n.type||n.checked)&&(s&&-1===r.indexOf(s)&&(triggerEventCrossBrowser(s,"updatevalues"),r.push(s)),"[]"===o.substr(o.length-2)?(void 0===t[o=o.substr(0,o.length-2)]&&(t[o]=[]),t[o].push(n.value)):void 0===t[o]&&(t[o]=n.value))}}if(e.dataIncludeState){var s=e.dataIncludeState;s.data&&s.data("ajaxparams")&&deepExtend(t,s.data("ajaxparams"));var i=getClosest(s,"form");if(i){if(i.getAttribute("action")){var d=document.createElement("div");d.innerHTML=i.getAttribute("action"),t._ajaxurl=d.textContent}else t._ajaxurl||(e.dataIncludeURL=!0);-1===r.indexOf(i)&&triggerEventCrossBrowser(i,"updatevalues");var l=new FormData(i);for(var u in t)!function e(a,t,n){if(t instanceof Array)for(let o=0;o<t.length;o++)e(a+"[]",t[o],n);else if(t instanceof Object)for(let o in t)e(a+"["+o+"]",t[o],n);else n.has(a)&&-1!==a.indexOf("[")?n.append(a,t):n.set(a,t)}(u,t[u],l);t=l}}e.method?e.method=e.method.toUpperCase():e.method="POST","POST"!==e.method&&deepExtend(a,t),(a=httpBuildQuery(a))&&(-1===e.url.indexOf("?")?e.url+="?":"&"!==e.url.substr(-1)&&(e.url+="&"),e.url+=a);let c=new XMLHttpRequest;c.bHasFiredBeforeLoadEvent=!1,c.open(e.method,e.url,void 0===e.async||e.async),c.setRequestHeader("x-requested-with","XMLHttpRequest");let g="",x=0,f=0;function p(){if(!e.precacheOnly){if(!c.bHasFiredBeforeLoadEvent&&c.response.length&&-1!==c.response.indexOf("\n\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\n\n")&&(triggerEventCrossBrowser(window,"loadajaxbeforesuccess"),e.beforeSuccess&&e.beforeSuccess(),c.bHasFiredBeforeLoadEvent=!0),e.evalChunkedResponse){let e=c.response;g+=e.substr(x),x=e.length,f+=ajaxEvalChunkedResponse(g.substr(f))}if(4===c.readyState){let a=function(){e.success&&!c.successHandlerCalled&&(c.successHandlerCalled=!0,e.success(c.response)),e.onSuccessEval&&Function(e.onSuccessEval)(c.response)};!e.evalChunkedResponse&&(e.evalResponse||void 0===e.evalResponse)?ajaxEvalResponse(c.response,a):a()}}}return c.addEventListener("progress",p),c.onload=function(){c.status>=200&&c.status<400?(p(),triggerEventCrossBrowser(window,"loadajax")):e.error&&e.error(c.responseText,c.status,e),ajaxPop(c)},c.onerror=function(){e.error&&e.error(c.responseText,c.status,e),ajaxPop(c)},e.abort&&(c.onabort=e.abort),"GET"===e.method?c.send():(t instanceof FormData||(c.setRequestHeader("Content-type","application/x-www-form-urlencoded"),t=httpBuildQuery(t)),c.send(t)),c.executePrecachedResult=function(){e.precacheOnly=!1,p()},c._showLoading=e.showLoading,g_arrAjaxRequests.push(c),e.showLoading&&ajaxShowLoading(e.showLoadingMessage),c}function ajaxAbort(e){e.abort(),ajaxPop(e)}function ajaxPop(e){var a=g_arrAjaxRequests.length;if(a>1){for(var t=0;t<a;t++)if(g_arrAjaxRequests[t]===e){g_arrAjaxRequests.splice(t,1);break}}else g_arrAjaxRequests=[];g_arrAjaxRequests.length||triggerAjaxDone();let n=!0;for(var t=0;t<g_arrAjaxRequests.length;t++)g_arrAjaxRequests._showLoading&&(n=!1);n&&ajaxHideLoading()}function ajaxAbortAll(){for(var e=0;e<g_arrAjaxRequests.length;e++)g_arrAjaxRequests[e].abort();g_arrAjaxRequests=[],ajaxHideLoading(),triggerAjaxDone()}function ajaxShowLoading(e){ajaxLoadingTimeout||(ajaxLoadingHideTimeout&&(clearTimeout(ajaxLoadingHideTimeout),ajaxLoadingHideTimeout=null),ajaxLoadingTimeout=setTimeout(function(){var a=document.getElementById("ajaxLoading");a&&a.parentNode.removeChild(a),(a=document.createElement("div")).id="ajaxLoading",e&&(a.innerHTML='<div class="ajaxLoadingMessage">'+e+"</div>"),document.body.appendChild(a),a.classList.add("ajaxLoadingShow"),ajaxLoadingTimeout=null},400))}function ajaxHideLoading(){ajaxLoadingTimeout&&(clearTimeout(ajaxLoadingTimeout),ajaxLoadingTimeout=null);var e=document.getElementById("ajaxLoading");e&&(e.classList.add("ajaxLoadingHide"),ajaxLoadingHideTimeout&&clearTimeout(ajaxLoadingHideTimeout),ajaxLoadingHideTimeout=setTimeout(function(){e.parentNode&&e.parentNode.removeChild(e)},500))}function ajaxEvalChunkedResponse(e){let a=0,t=[],n="\n\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\xa4\n\n",o=e.indexOf(n),r=0;for(;-1!==o;){let s=e.indexOf("\n"),i=e.substr(0,s),d=e.substr(s+1,o-s-1);if("js"==i)a?t.push(d):ajaxEvalResponse(d);else if("css"==i){let e=document.createElement("style");e.styleSheet?e.styleSheet.cssText=d:e.appendChild(document.createTextNode(d)),document.getElementsByTagName("head")[0].appendChild(e)}else if("cssRemote"==i){let e=JSON.parse(d);for(let a=0;a<e.length;a++){let t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e[a]),t.addEventListener("load",function(){triggerEventCrossBrowser(window,"loadajaxcss")}),document.getElementsByTagName("head")[0].appendChild(t)}}else if("jsRemote"==i){let e=JSON.parse(d);for(let n=0;n<e.length;n++){a++;let o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");r.onload=function(){if(!--a){for(let e=0;e<t.length;e++)ajaxEvalResponse(t[e]);t=[]}},r.onerror=r.onload,r.setAttribute("src",e[n]),o.appendChild(r)}}r+=o+n.length,o=(e=e.substr(o+n.length)).indexOf(n)}return r}function ajaxEvalResponse(e){if(e)try{window.execScript?window.execScript(e):eval.call(window,e)}catch(a){window.console&&window.console.error&&(console.error(e),console.log(a))}}function triggerAjaxDone(){for(let e in g_arrOnAJAXDone)g_arrOnAJAXDone[e]();g_arrOnAJAXDone=[]}window.ajaxLoadingTimeout=window.ajaxLoadingTimeout||null,window.ajaxLoadingHideTimeout=window.ajaxLoadingHideTimeout||null,window.g_arrAjaxRequests=window.g_arrAjaxRequests||[],window.g_arrOnAJAXDone=window.g_arrOnAJAXDone||[];
let g_arrDialogBoxes,g_iDialogBoxZIndex;function DialogBox(e){this.id=e.id,this.senderId=e.senderId,this.width=e.width,this.noajax=e.noajax,this.closable=e.closable,this.onAjaxComplete=e.onAjaxComplete,this.backdrop=e.backdrop,this._GET=e._GET,this.m_arrAJAXCache={},g_arrDialogBoxes[this.id]=this}g_arrDialogBoxes||(g_arrDialogBoxes={},g_iDialogBoxZIndex=100),DialogBox.prototype.open=function(e){for(let o in e)this[o]=e[o];let o=this,t=document.getElementById(this.id);if(!t)return;t._dialogTableRow&&t._dialogTableRow.classList.remove("tableRow-active");let i=document.getElementById(this.id+"_opened");if(i&&i.classList.add("alwayspost"),this.backdrop&&(!t.previousSibling||"dialogboxoverlay"!==t.previousSibling.nodeName.toLowerCase())){let e=document.createElement("dialogboxoverlay");e.style.zIndex=g_iDialogBoxZIndex,t.parentNode.insertBefore(e,t),e.classList.remove("dialogBoxClose"),e.classList.add("dialogBoxOpen"),o.closable&&e.addEventListener("click",function(){let e=t.getElementsByTagName("form");for(let o=0;o<e.length;o++){let t=e[o].getAttribute("id");if(t&&g_arrForms&&g_arrForms[t]&&g_arrForms[t].isModified())return}o.fnOnClose&&o.fnOnClose(),o.close()})}else{let e=t.previousSibling;e.style.zIndex=g_iDialogBoxZIndex,e.classList.remove("dialogBoxClose"),e.closeTimeout&&clearTimeout(e.closeTimeout)}function a(){requestAnimationFrame(function(){o.width&&"auto"!==o.width&&(!isNaN(parseFloat(o.width))&&isFinite(o.width)&&(o.width+="px"),t.style.width=o.width),t.classList.remove("dialogBoxClose"),t.style.display="block",t.classList.add("dialogBoxOpen"),t.classList.contains("dialogBoxFullScreen")&&t.classList.remove("dialogBoxFullScreen"),t.offsetWidth>window.innerWidth-100&&t.offsetHeight>window.innerHeight-100&&t.classList.add("dialogBoxFullScreen");let e=void 0!==window.scrollY?window.scrollY:document.documentElement.scrollTop,i=Math.round(window.innerHeight/2.5-t.offsetHeight/2.5);if(i+=e,i=Math.max(e,i),t.style.top=i+"px","auto"===o.width&&(t.style.width="auto",t.style.left="auto",t.style.right="auto",t.style.left=window.innerWidth/2-t.offsetWidth/2+"px"),o.closable){t.addEventListener("keydown",function(e){27===e.keyCode&&(o.fnOnClose&&o.fnOnClose(),o.close())});let e=document.createElement("dialogboxclose");t.appendChild(e),e.addEventListener("click",function(){o.fnOnClose&&o.fnOnClose(),o.close()})}triggerEventCrossBrowser(window,"dialogboxopen")})}if(void 0!==this.noajax&&this.noajax)a();else{let e=null;this._GET&&(e=this._GET);let t=null;this.nSender&&(t=this.nSender),this.ajax(this.ajaxparams,e,function(){a(),o.onAjaxComplete&&setTimeout(function(){o.onAjaxComplete()},0)},t)}if(this.nSender){let e=this.nSender;for(;e=e.parentElement;)if(e.classList.contains("tableRow")){e.classList.add("tableRow-active"),t._dialogTableRow=e;break}if(this.nSender.parentNode&&this.nSender.parentNode.parentNode&&this.nSender.parentNode.parentNode._contextMenuTableRow){let e=this.nSender.parentNode.parentNode._contextMenuTableRow;e.classList.add("tableRow-active"),t._dialogTableRow=e}}t.style.zIndex=g_iDialogBoxZIndex+1,g_iDialogBoxZIndex+=2},DialogBox.prototype.close=function(){this.noajax=!1;let e=document.getElementById(this.id);if(!e||!e.classList.contains("dialogBoxOpen"))return;e.classList.remove("dialogBoxOpen"),e.classList.remove("dialogBoxFullScreen"),e.classList.add("dialogBoxClose");let o=document.getElementById(this.id+"_opened");o&&o.classList.remove("alwayspost");let t=e.previousSibling;t&&"dialogboxoverlay"===t.nodeName.toLowerCase()&&(t.classList.add("dialogBoxClose"),t.closeTimeout=setTimeout(function(){t.classList.remove("dialogBoxOpen"),t.parentNode&&t.parentNode.removeChild(t)},100)),setTimeout(function(){e.style.display="",e.innerHTML=""},100),triggerEventCrossBrowser(e,"close"),e._dialogTableRow&&e._dialogTableRow.classList.remove("tableRow-active"),g_iDialogBoxZIndex-=2},DialogBox.prototype.generateCacheKey=function(e,o){let t=this.id;return e&&(t+=httpBuildQuery(e)),o&&(t+=httpBuildQuery(o)),t},DialogBox.prototype.ajax=function(e,o,t,i){let a=this.generateCacheKey(e,o);if(this.m_arrAJAXCache[a]){t&&this.m_arrAJAXCache[a].result?(ajaxEvalChunkedResponse(this.m_arrAJAXCache[a].result),t(this.m_arrAJAXCache[a].result),delete this.m_arrAJAXCache[a],requestAnimationFrame(()=>{document.body.querySelector("#"+this.id+" *[autofocus]")?.focus()})):this.m_arrAJAXCache[a].fnSuccess=t;return}let l={};l.type="POST",l.url="/_public/Controls/Forms/DialogBox/dialogbox.php",l.dataIncludeURL=!0,l.dataIncludeJS=!0,l.dataIncludeCSS=!0,l.dataIncludeState=!0,l.evalResponse=!1,i&&(l.dataIncludeState=i),o&&(l._GET=o),l._POST={},l._POST.dialogid=this.id,l.ajaxparams=e;let s=this;l.success=function(e){s.m_arrAJAXCache[a]&&(s.m_arrAJAXCache[a].fnSuccess?(ajaxEvalChunkedResponse(e),s.m_arrAJAXCache[a].fnSuccess(e),delete s.m_arrAJAXCache[a],requestAnimationFrame(()=>{document.body.querySelector("#"+this.id+" *[autofocus]")?.focus()})):s.m_arrAJAXCache[a].result=e)},this.m_arrAJAXCache[a]={result:null,fnSuccess:t},ajaxRequest(l)},DialogBox.get=function(e){return g_arrDialogBoxes[e]},DialogBox.open=function(e,o){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].open(o)},DialogBox.cache=function(e,o,t){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].ajax(null,o,null,t)},DialogBox.close=function(e){if(!g_arrDialogBoxes[e])throw"Could not find dialog box with id "+e;g_arrDialogBoxes[e].close()},DialogBox.closeClosest=function(e){let o=getClosest(e,"dialogbox");o&&DialogBox.close(o.getAttribute("id"))},DialogBox.isOpen=function(e){if(!g_arrDialogBoxes[e])return!1;let o=document.getElementById(e);return!!o&&o.classList.contains("dialogBoxOpen")},DialogBox.linkCache=function(e){let o=e.getAttribute("data-dialog");DialogBox.cache(o,JSON.parse(e.getAttribute("data-dialogget")),e)},DialogBox.linkOpen=function(e){let o=DialogBox.get(e.getAttribute("data-dialog"));return o._GET=JSON.parse(e.getAttribute("data-dialogget")),o.nSender=e,o.open(),!1},window.addEventListener("ajaxNavigate",function(){for(let e in g_arrDialogBoxes)g_arrDialogBoxes[e].close()});
!function(){var t=/^hsla\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})%\s*,\s*([\d]{1,3})%\s*\,\s*(1|0\.[\d]+)\s*\)$/i,e=/^rgba\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*(1|0\.[\d]+)\s*\)$/i,r=/^rgb\(\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\,\s*([\d]{1,3})\s*\)$/i,i=/^#([\da-f])([\da-f])([\da-f])$/i,a=/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i;function s(t,e,r){function i(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t/=360,r/=100,e/=100){var a,s,n,o=r<.5?r*(1+e):r+e-r*e,l=2*r-o;a=i(l,o,t+1/3),s=i(l,o,t),n=i(l,o,t-1/3)}else a=s=n=r;return{r:Math.round(255*a),g:Math.round(255*s),b:Math.round(255*n)}}function n(t,e,r){var i,a,s=Math.max(t/=255,e/=255,r/=255),n=Math.min(t,e,r),o=(s+n)/2;if(s==n)i=0,a=0;else{var l=s-n;switch(a=o>.5?l/(2-s-n):l/(s+n),s){case t:i=(e-r)/l+(e<r?6:0);break;case e:i=(r-t)/l+2;break;case r:i=(t-e)/l+4}i/=6}return{h:i,s:a,l:o}}function o(t){this.h=0,this.s=0,this.l=0,this.a=1,this.strReadFormat=null,this.setFromString(t)}o.prototype.setFromString=function(s){if(!s||"null"==s)return this.strReadFormat="null",this.h=this.s=this.l=0,this.a=0,!1;if(s.match(t))return this.setHSLAFromString(s),!0;if(s.match(r)||s.match(e))return this.setRGBAFromString(s),!0;if(s.match(i)||s.match(a))return this.setHex(s),!0;let n=window.CSSColorNames.getHexForName(s);return!!n&&(this.setHex(n),!0)},o.prototype.getValue=function(){return"null"===this.strReadFormat?null:"rgba"===this.strReadFormat?this.getRGBAString():"hsla"===this.strReadFormat?this.getHSLAString():this.getHexString()},o.prototype.setHSLA=function(t,e,r,i){this.strReadFormat="hsla",this.h=t,this.s=e,this.l=r,this.a=i},o.prototype.setHSLAFromString=function(e){var r=t.exec(e);if(r)return this.strReadFormat="hsla",this.h=parseInt(r[1]),this.s=parseInt(r[2]),this.l=parseInt(r[3]),this.a=parseFloat(r[4]),!0},o.prototype.getHSLA=function(){return"null"===this.strReadFormat?null:{h:this.h,s:this.s,l:this.l,a:this.a}},o.prototype.getHSLAString=function(){return"null"===this.strReadFormat?null:"hsla("+Math.floor(this.h)+", "+Math.floor(this.s)+"%, "+Math.floor(this.l)+"%, "+this.a+")"},o.prototype.setRGBA=function(t,e,r,i){var a=n(t,e,r);this.strReadFormat="rgba",this.h=a.h,this.s=a.s,this.l=a.l,this.a=i},o.prototype.setRGBAFromString=function(t){t.match(/^rgba/i)?i=e.exec(t):(i=r.exec(t))[4]=1,this.strReadFormat="rgba";var i,a=n(i[1],i[2],i[3]);return this.h=360*a.h,this.s=100*a.s,this.l=100*a.l,this.a=i[4],!0},o.prototype.getRGBA=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return t.a=this.a,t},o.prototype.getRGBAString=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return 1===this.a?"rgb("+t.r+", "+t.g+", "+t.b+")":"rgba("+t.r+", "+t.g+", "+t.b+", "+this.a+")"},o.prototype.setHex=function(t){var e=4==t.length,r=e?i.exec(t):a.exec(t);if(!r)return!1;this.strReadFormat="hex";var s=n(parseInt(e?r[1]+r[1]:r[1],16),parseInt(e?r[2]+r[2]:r[2],16),parseInt(e?r[3]+r[3]:r[3],16));return this.h=360*s.h,this.s=100*s.s,this.l=100*s.l,this.a=1,!0},o.prototype.getHexString=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l);return 1!==this.a?"rgba("+Math.floor(t.r)+","+Math.floor(t.g)+","+Math.floor(t.b)+","+this.a+")":"#"+(16777216+(Math.floor(t.r)<<16)+(Math.floor(t.g)<<8)+Math.floor(t.b)).toString(16).slice(1)},o.prototype.getRelativeLuminance=function(){if("null"===this.strReadFormat)return null;var t=s(this.h,this.s,this.l),e=t.r/255,r=t.g/255,i=t.b/255;return(.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)))*100},o.prototype.hueShift=function(t){this.h=(this.h+t)%360},o.prototype.clone=function(){var t=new o;return t.h=this.h,t.s=this.s,t.l=this.l,t.a=this.a,t.strReadFormat=this.strReadFormat,t},o.prototype.createComplement=function(){if("null"===this.strReadFormat)return null;var t=this.clone();return t.hueShift(180),t},o.prototype.getComplimentaryTextColor=function(){return new o(this.getRelativeLuminance()>=50?"rgba(0,0,0,1)":"rgba(255,255,255,1)")},o.prototype.createGradient=function(){var t=(this.h-25+360)%360,e=Math.min(Math.max(this.s-20,50),100),r=Math.min(Math.max(this.l+10,0),100),i=new o;return i.setHSLA(t,e,r,1),{strStartColor:this.getRGBAString(),strEndColor:i.getRGBAString(),bLightFont:128>this.getRelativeLuminance()}},o.prototype.createAnalogousPallate=function(){let t={},e=this.clone();e.hueShift(-30);let r=this.clone();return r.hueShift(30),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},o.prototype.createTriadicPallate=function(){let t={},e=this.clone();e.hueShift(-120);let r=this.clone();return r.hueShift(120),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},o.prototype.createSplitComplementaryPallate=function(){let t={},e=this.clone();e.hueShift(-72);let r=this.clone();return r.hueShift(72),t.pPrimary=this,t.pSecondary=e,t.pTertiary=r,t},window.Color=o}(),function(){let t={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};window.CSSColorNames={getHexForName:function(e){return e&&t[e.toLowerCase()]||null}}}();
!function(){let t={LIST_ITEM_OPEN:"s8-navigationPrimaryLI-open",MOBILE_CLOSE_SHOW:"s8-navigationPrimary__mobileCloseButton--show",DISPLAY_STATE_MOBILE:"s8-navigationPrimary--displayStateMobile",DISPLAY_STATE_MOBILE_IS_OPEN:"s8-navigationPrimary--displayStateMobile-open"};function e(t,e){this.config={bOpenOnHover:e.bOpenOnHover,strOrientation:e.strOrientation,bPreventWrap:e.bPreventWrap,pMobileMediaQuery:window.matchMedia(`(max-width: ${parseInt(e.iMobileBreakPoint)}px)`)},this.classlicurrent=e.classlicurrent||"active",this.pNavList=new i(t),this.nMobileMenuUL=this.pNavList.getListNode().previousElementSibling,this.mouseoutCloseTimer=null,this.mobileMenuCloseTimer=null,this.init()}function i(t){this.nList=t,this.arrListItems=[],this.init()}function n(t){this.nListItem=t,t._pListItem=this,this.nLink=t.querySelector("a"),this.pSubNavList=null,this.init()}window.PrimaryNavigation=e,e.prototype={init:function(){let t=this.pNavList.getListNode();this.nMobileCloseButton=document.createElement("div"),this.nMobileCloseButton.classList.add("s8-navigationPrimary__mobileCloseButton"),this.nMobileCloseButton.setAttribute("tabindex","0"),t.parentElement.appendChild(this.nMobileCloseButton),this._fixColors(),this._bindInteractions();let e=null;"function"==typeof Event?e=new Event("initialised"):(e=document.createEvent("Event")).initEvent("initialised",!0,!0),t.dispatchEvent(e)},_bindInteractions:function(){for(let t=0,e=Object.keys(this.interactions);t<e.length;t++){let i=e[t],n=this.interactions[i];n.eventTriggers.forEach((function(t){if(t.triggerShouldApply&&!t.triggerShouldApply.call(this))return;let e=t.eventNames;if(!e||!e.length)return;let i=t.getBindTarget.call(this),s=(function(e){t.processEvent?t.processEvent.call(this,e)&&n.handler.call(this,e):n.handler.call(this,e)}).bind(this);for(let n=0;n<e.length;n++)i.addEventListener(e[n],s,t.options)}).bind(this))}},interactions:{preventFirstClick:{handler:function(t){let e=this.pNavList.getClosestListItemToEvent(t);if(e&&!e.isOpen()){let t=(function(e){e.preventDefault();try{let t=new Event("focus");e.target.dispatchEvent(t)}catch(t){}this.pNavList.getListNode().removeEventListener("click",t)}).bind(this);this.pNavList.getListNode().addEventListener("click",t)}},eventTriggers:[{eventNames:["mousedown"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){return!this.config.bOpenOnHover||this.pNavList.inMobileDisplay()},options:{capture:!0,passive:!0}},{eventNames:["touchstart"],getBindTarget:function(){return this.pNavList.getListNode()},options:{capture:!0,passive:!0}}]},openListItemTree:{handler:function(t){this.pNavList.openListItemTree(this.pNavList.getClosestListItemToEvent(t))},eventTriggers:[{eventNames:["focus"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){let e=this.pNavList.getClosestListItemToEvent(t);if(e)return!(this.pNavList.inMobileDisplay()&&e.isOpen())},options:{capture:!0}},{eventNames:["mouseover","mouseenter"],getBindTarget:function(){return this.pNavList.getListNode()},triggerShouldApply:function(){return this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.inMobileDisplay()&&(this.mouseoutCloseTimer=clearTimeout(this.mouseoutCloseTimer),!0)}}]},closeAllListItems:{handler:function(){this.pNavList.closeAll()},eventTriggers:[{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}},{eventNames:["mousedown"],getBindTarget:function(){return document},triggerShouldApply:function(){return!this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.getClosestListItemToEvent(t)}},{eventNames:["mouseout"],getBindTarget:function(){return this.pNavList.getListNode()},triggerShouldApply:function(){return this.config.bOpenOnHover},processEvent:function(t){return!this.pNavList.inMobileDisplay()&&(!this.pNavList.hasOpenListItems()||(this.mouseoutCloseTimer=setTimeout((function(){this.pNavList.closeAll()}).bind(this),500),!1))}}]},openMobileMenu:{handler:function(e){document.body.addEventListener("touchmove",this._disableScroll);let i=window.getComputedStyle(document.body);this._oldBodyMarginRight=i.marginRight,document.body.style.marginRight=parseFloat(this._oldBodyMarginRight)+window.innerWidth-document.documentElement.clientWidth+"px",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",e.preventDefault(),this.nMobileMenuUL.classList.add(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.pNavList.getListNode().classList.add(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.nMobileCloseButton.classList.add(t.MOBILE_CLOSE_SHOW)},eventTriggers:[{eventNames:["click"],getBindTarget:function(){return this.nMobileMenuUL},options:{capture:!0}}]},closeMobileMenu:{handler:function(e){document.body.removeEventListener("touchmove",this._disableScroll),document.body.style.marginRight=this._oldBodyMarginRight,document.body.style.overflow="",document.documentElement.style.overflow="",this.nMobileMenuUL.classList.remove(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.nMobileCloseButton.classList.remove(t.MOBILE_CLOSE_SHOW),this.pNavList.getListNode().classList.remove(t.DISPLAY_STATE_MOBILE_IS_OPEN),this.pNavList.closeAll()},eventTriggers:[{eventNames:["click"],getBindTarget:function(){return this.nMobileCloseButton},processEvent:function(t){return t.preventDefault(),!0}},{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}},{eventNames:["click"],getBindTarget:function(){return this.pNavList.getListNode()},processEvent:function(t){if(!this.config.pMobileMediaQuery.matches)return!1;let e=this.pNavList.getClosestListItemToEvent(t);return!!e&&!!e.nLink.hash}},{eventNames:["resize"],getBindTarget:function(){return window},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation},processEvent:function(t){return!this.config.pMobileMediaQuery.matches}}]},showHideMobileMenu:{handler:function(e){this.pNavList.getListNode().classList.remove(t.DISPLAY_STATE_MOBILE),this.nMobileMenuUL.classList.remove(t.DISPLAY_STATE_MOBILE);let i=this.config.pMobileMediaQuery.matches,n=this.config.bPreventWrap&&this._widthIsTooSmallForListItems();i||n?(this.pNavList.getListNode().classList.add(t.DISPLAY_STATE_MOBILE),this.nMobileMenuUL.classList.add(t.DISPLAY_STATE_MOBILE)):this.interactions.closeMobileMenu.handler.call(this,e)},eventTriggers:[{eventNames:["resize","DOMContentLoaded"],getBindTarget:function(){return window},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation}},{eventNames:["initialised"],getBindTarget:function(){return this.pNavList.getListNode()},options:{passive:!0},triggerShouldApply:function(){return"horizontal"==this.config.strOrientation}},{eventNames:["visibilitychange"],getBindTarget:function(){return document},processEvent:function(t){return"visible"===document.visibilityState}}]},removeHiddenState:{handler:function(e){this.pNavList.getListNode().classList.remove(t.LIST_HIDDEN)},eventTriggers:[{eventNames:["initialised"],getBindTarget:function(){return this.pNavList.getListNode()},options:{passive:!0}}]},setActiveLinkOnAjaxNavigation:{handler:function(){let t=window.location.pathname,e=this.pNavList.getLinkByHref(t);e&&this.pNavList.setActiveLink(e,this.classlicurrent)},eventTriggers:[{eventNames:["ajaxNavigate"],getBindTarget:function(){return window}}]}},_disableScroll:function(t){t.preventDefault()},_fixColors:function(){let t=this.pNavList.getListNode(),e=window.getComputedStyle(t);("rgba(0, 0, 0, 0)"===e.backgroundColor||"transparent"===e.backgroundColor)&&(new Color(e.color).getRelativeLuminance()>50?t.classList.add("s8-navigationPrimary--fallback-bg-black"):t.classList.add("s8-navigationPrimary--fallback-bg-white"));let i=t.querySelector("ul");if(i){let e=window.getComputedStyle(i);("rgba(0, 0, 0, 0)"===e.backgroundColor||"transparent"===e.backgroundColor)&&(new Color(e.color).getRelativeLuminance()>50?t.classList.add("s8-navigationPrimary--fallback-submenus-bg-black"):t.classList.add("s8-navigationPrimary--fallback-submenus-bg-white"))}},_widthIsTooSmallForListItems:function(){let t=this.pNavList.getListNode();return t.scrollWidth>t.clientWidth}},i.prototype={init:function(){for(let t=0;t<this.nList.childNodes.length;t++){let e=this.nList.childNodes[t];"LI"===e.nodeName&&this.arrListItems.push(new n(e))}},getListNode:function(){return this.nList},getClosestListItemToEvent:function(t){let e=t.target;for(;e;){if(e._pListItem)return e._pListItem;e=e.parentNode}return null},openListItemTree:function(t){t&&this.arrListItems.forEach(function(e){e.contains(t)?(e.open(),e.pSubNavList&&e.pSubNavList.openListItemTree(t)):e.close()})},closeAll:function(){this.arrListItems.forEach(function(t){t.close()})},hasOpenListItems:function(){return this.arrListItems.some(function(t){return t.isOpen()||!!t.pSubNavList&&t.pSubNavList.hasOpenListItems()})},getLinkByHref:function(t){let e=null;if(this.arrListItems.some(function(i){return e=i.getLinkByHref(t)}),!e){let i=t.split("/").filter(Boolean);for(;!e&&i.length>0;){i.pop();let t="/"+i.join("/")+"/";this.arrListItems.some(function(i){return e=i.getLinkByHref(t)})}}return e},setActiveLink:function(t,e){this.arrListItems.forEach(function(i){i.nLink===t||i.pSubNavList&&i.pSubNavList.getLinkByHref(t.href)?i.setActive(!0,e):i.setActive(!1,e)})},inMobileDisplay:function(){return this.nList.classList.contains(t.DISPLAY_STATE_MOBILE)}},n.prototype={init:function(){let t=this.nListItem.querySelector("ul");t&&(this.pSubNavList=new i(t))},open:function(){this.isOpen()||this.nListItem.classList.add(t.LIST_ITEM_OPEN)},close:function(){this.isOpen()&&this.nListItem.classList.remove(t.LIST_ITEM_OPEN),this.pSubNavList&&this.pSubNavList.closeAll()},isOpen:function(){return!this.pSubNavList||this.nListItem.classList.contains(t.LIST_ITEM_OPEN)},contains:function(t){return this.nListItem.contains(t.nListItem)},setActive:function(t,e){this.nListItem.classList[t?"add":"remove"](e),this.pSubNavList&&this.pSubNavList.arrListItems.forEach(function(i){i.setActive(t,e)})},getLinkByHref:function(t){return new window.URL(this.nLink.href).pathname===t||this.nLink.href===t?this.nLink:this.pSubNavList?this.pSubNavList.getLinkByHref(t):null}}}();
!function(){window.interpolate||(Object.assign(e,{linear:(e,t,a,i)=>a*e/i+t,easeinquad:(e,t,a,i)=>a*(e/=i)*e+t,easeoutquad:(e,t,a,i)=>-a*(e/=i)*(e-2)+t,easeinoutquad:(e,t,a,i)=>(e/=i/2)<1?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t,easeincubic:(e,t,a,i)=>a*(e/=i)*e*e+t,easeoutcubic:(e,t,a,i)=>(e/=i,a*(--e*e*e+1)+t),easeinoutcubic:(e,t,a,i)=>(e/=i/2)<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t,easeinquart:(e,t,a,i)=>a*(e/=i)*e*e*e+t,easeoutquart:(e,t,a,i)=>(e/=i,-a*(--e*e*e*e-1)+t),easeinoutquart:(e,t,a,i)=>(e/=i/2)<1?a/2*e*e*e*e+t:-a/2*((e-=2)*e*e*e-2)+t,easeinquint:(e,t,a,i)=>a*(e/=i)*e*e*e*e+t,easeoutquint:(e,t,a,i)=>(e/=i,a*(--e*e*e*e*e+1)+t),easeinoutquint:(e,t,a,i)=>(e/=i/2)<1?a/2*e*e*e*e*e+t:a/2*((e-=2)*e*e*e*e+2)+t,easeinsine:(e,t,a,i)=>-a*Math.cos(e/i*(Math.PI/2))+a+t,easeoutsine:(e,t,a,i)=>a*Math.sin(e/i*(Math.PI/2))+t,easeinoutsine:(e,t,a,i)=>-a/2*(Math.cos(Math.PI*e/i)-1)+t,easeinexpo:(e,t,a,i)=>a*Math.pow(2,10*(e/i-1))+t,easeoutexpo:(e,t,a,i)=>a*(-Math.pow(2,-10*e/i)+1)+t,easeinoutexpo:(e,t,a,i)=>(e/=i/2)<1?a/2*Math.pow(2,10*(e-1))+t:a/2*(-Math.pow(2,-10*--e)+2)+t,easeincirc:(e,t,a,i)=>-a*(Math.sqrt(1-(e/=i)*e)-1)+t,easeoutcirc:(e,t,a,i)=>(e/=i,a*Math.sqrt(1- --e*e)+t),easeinoutcirc:(e,t,a,i)=>(e/=i/2)<1?-a/2*(Math.sqrt(1-e*e)-1)+t:a/2*(Math.sqrt(1-(e-=2)*e)+1)+t}),window.interpolate=e);function e(t,a,i,s,u,n="easeoutcubic",o=0){n&&e?.[n]||(n="easeoutcubic");let c=(t-a)/(i-a);c=o+(1-o)*c;let r=e[n](c,0,1,1),h=e[n](o,0,1,1);return s+(u-s)*(r=(r-h)/(1-h))}}();
!function(){if(window.MutationModel)return;let t={},e=new Proxy(t,{set:(t,e,i,o)=>(i.initialisedPromise&&i.initialised(),Reflect.set(t,e,i,o))});function i(i,o,s){if(t[i])return console.warn(`MutationModel: ${i} already added.`),!1;for(let t in this.initialisedPromise=new Promise(t=>this.initialised=t),o)o.hasOwnProperty(t)&&(this[t]=o[t]);this.mutationObserver=new MutationObserver(this._mutationObserverCallback.bind(this)),this._updateState={_callbackQueued:!1,_states:{}},this._update=this._update.bind(this),e[i]=this,o.rootNodeName&&!customElements.get(o.rootNodeName)&&customElements.define(o.rootNodeName,this.getRootElementBaseClass()),s&&s(this)}window.MutationModel=i,i.prototype._mutationObserverCallback=function(t){try{window}catch(t){return}for(let e of t)if("childList"===e.type){for(let t of e.removedNodes)this._removed(t,e.target);for(let t of e.addedNodes)t.isConnected&&this._added(t,e.target)}else"attributes"===e.type&&e.target.isConnected&&this._changed(e.target,e.attributeName,e.oldValue)},i.prototype.getRootElement=function(t){return 1===t.nodeType?t.closest(this.rootNodeName):null},i.prototype.getRootElementBaseClass=function(){let t=this;class e extends HTMLElement{constructor(){super()}connectedCallback(){t.initialisedPromise.then(()=>{t.observe(this)})}getMutationModel(){return t}}return e},i.prototype.observe=function(t){let e=Object.keys(this.attributes).map(t=>this.attributes[t]);this.mutationObserver.observe(t,{attributes:!0,attributeFilter:e,childList:!0,subtree:!0});let i=[{type:"childList",addedNodes:function(t){let e=function t(e){return e.childNodes?[e,...Array.prototype.flatMap.call(e.childNodes,t)]:e}(t);return e===t?[t]:e}(t),removedNodes:[],target:t.parentNode},...e.filter(e=>t.hasAttribute&&t.hasAttribute(e)).map(e=>({type:"attributes",target:t,attributeName:e,oldValue:""}))];this._mutationObserverCallback(i)},i.prototype.update=function(t,e){this._updateState._states[e]||(this._updateState._states[e]=[]),-1==this._updateState._states[e].indexOf(t)&&this._updateState._states[e].push(t),this._updateState._callbackQueued||requestAnimationFrame(this._update),this._updateState._callbackQueued=!0},i.prototype._update=function(t){this._updateState._callbackQueued=!1;let e=Object.keys(this._updateState._states),i=[];for(let t=0;t<e.length;t++)i.push(this._updateState._states[e[t]]),delete this._updateState._states[e[t]];for(let o=0;o<e.length;o++){let s=e[o],n=i[o];for(let e=0;e<n.length;e++){let i=n[e];for(let e=0,o=Object.keys(this.definitions);e<o.length;e++){let n=this.definitions[o[e]];if(n.match(i)){n.onUpdate&&n.onUpdate[s]&&n.onUpdate[s](i,t);break}}}}},i.prototype._added=function(t,e,i=!0){if(1===t.nodeType){t.shadowRoot&&!t.shadowRoot._mutationModelObserving&&(t.shadowRoot._mutationModelObserving=!0,this.observe(t.shadowRoot));for(let i=0,o=Object.keys(this.definitions);i<o.length;i++){let s=this.definitions[o[i]];if(s.match(e)&&e.contains(t)){s.onChildAdded&&s.onChildAdded(e,t),this._emitCustomEvent("childAdded",e,{child:t});break}}for(let i=0,o=Object.keys(this.definitions);i<o.length;i++){let s=this.definitions[o[i]];if(s.match(t)&&e.contains(t)){s.onAdded&&s.onAdded(t,e),this._emitCustomEvent("added",t,{parent:e});break}}t.childNodes&&[...t.childNodes].forEach(t=>{this._added(t,t.parentNode)})}},i.prototype._removed=function(t,e){if(1===t.nodeType){for(let i=0,o=Object.keys(this.definitions);i<o.length;i++){let s=this.definitions[o[i]];if(s.match(e)){s.onChildRemoved&&s.onChildRemoved(e,t),this._emitCustomEvent("childRemoved",e,{child:t});break}}for(let i=0,o=Object.keys(this.definitions);i<o.length;i++){let s=this.definitions[o[i]];if(s.match(t)){s.onRemoved&&s.onRemoved(t,e),this._emitCustomEvent("removed",t,{parent:e});break}}}},i.prototype._changed=function(t,e,i){for(let o=0,s=Object.keys(this.definitions);o<s.length;o++){let n=this.definitions[s[o]];if(n.match(t)){n.onChanged&&n.onChanged(t,e,i);return}}},i.prototype._emitCustomEvent=function(t,e,i){let o=new CustomEvent(t,{detail:i||{}});e.dispatchEvent(o)}}();
!function(){if(window.Rotators)return;let t=new window.MutationModel("Rotators",{rootNodeName:"oncord-rotator",classes:{rotator:"s8-Rotator",slide:"s8-RotatorSlide",item:"s8-RotatorItem",content:"s8-RotatorContent",nav:"s8-RotatorNav",navNext:"s8-RotatorNavNext",navPrev:"s8-RotatorNavPrev",navSlides:"s8-RotatorNavSlides",navSlide:"s8-RotatorNavSlide",navSlideActive:"s8-RotatorNavSlideActive"},attributes:{rotator:"data-s8-rotator",slide:"data-s8-rotator-slide",item:"data-s8-rotator-item",content:"data-s8-rotator-content",nav:"data-s8-rotator-nav",navNext:"data-s8-rotator-nav-next",navPrev:"data-s8-rotator-nav-prev",navSlides:"data-s8-rotator-nav-slides",navSlide:"data-s8-rotator-nav-slide",variant:"data-s8-rotator-variant",navVariant:"data-s8-rotator-nav-variant",minimapVariant:"data-s8-rotator-nav-minimap-variant",arrowVariant:"data-s8-rotator-nav-arrow-variant",position:"data-s8-rotator-position",positionStep:"data-s8-rotator-position-step",spaceBetweenItems:"data-s8-rotator-space-between-items",groupSize:"data-s8-rotator-group-size",alignItems:"data-s8-rotator-align-items",transition:"data-s8-rotator-transition",easing:"data-s8-rotator-transition-easing",speed:"data-s8-rotator-transition-speed",changeAt:"data-s8-rotator-change-at",slideTransition:"data-s8-rotator-slide-transition"},speeds:{fast:200,normal:700,slow:1400},positionSteps:{single:"single",group:"group"},definitions:{rotator:{match:function(e){return 1===e.nodeType&&e.nodeName===t.rootNodeName.toUpperCase()},onAdded:function(e){(function(e){function i(n){if(i._bound&&!i._bound.isConnected||1!==n.buttons){e.removeEventListener("mousemove",i,!0),i._bound=!1;return}let a=i._bound,r=t.nav.getContainer(a),o=t.api.getNavSlide(r),s=null,l=null;for(let t=0,e=0;t<o.childNodes.length;t++){let i=o.childNodes[t];if(1!==i.nodeType)continue;let a=i.getBoundingClientRect();(!s||Math.abs(a.x+a.width/2-n.clientX)<Math.abs(s.x+s.width/2-n.clientX))&&(s=a,l=e),e++}s&&t.api.setPosition(a,l)}function n(i){if(!e.contains(n._bound)){e.removeEventListener("touchmove",n,!0),n._bound=!1,n._traveled=null;return}let r=n._bound;n._traveled.trace.push({clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY,timeStart:i.timeStamp});let o=0,s=0;for(let t=0,e=1;e<n._traveled.trace.length;t++,e++){let i=n._traveled.trace[t],a=n._traveled.trace[e];o+=a.clientX-i.clientX,s+=a.clientY-i.clientY}if(o*=-1,n._traveled.maxTraveledX=Math.max(n._traveled.maxTraveledX,Math.abs(o)),3*Math.abs(s)>n._traveled.maxTraveledX){a();return}let l=o/n._traveled.initialWidth;n._traveled.swipedDistance=l*n._traveled.initialGroupSize;let d=n._traveled.initialPos+n._traveled.swipedDistance;t.api.setPosition(r,d,"instant")}function a(i){if(n._bound){let i=n._bound,a=t.api.getSlide(i),r=t.api.getItems(a),o=t.api.getNormalPosition(r.length,t.api.getTargetPosition(i));if(0!==n._traveled.swipedDistance&&o!==parseInt(o)){let e=parseInt(o)+(n._traveled.swipedDistance>0?0:1),a=n._traveled.swipedDistance>0?1:-1,r=e+(Math.abs(n._traveled.swipedDistance)-Math.floor(Math.abs(n._traveled.swipedDistance))>=.3?a:0);t.api.setPosition(i,r,"slide","normal","easeoutcubic")}e.removeEventListener("touchmove",n,!0),n._bound=!1,n._traveled=null}}e._rotatorEventsBound||(e._rotatorEventsBound=!0,e.addEventListener("click",function(i){if(!e.contains(i.target))return;let n=!1,a=!1,r=1===i.target.nodeType?i.target:i.target.parentNode;for(;r&&1===r.nodeType;){if(n=r.getAttribute(t.attributes.navNext),a=r.getAttribute(t.attributes.navPrev),n||a){i.preventDefault();let e=r.parentNode.parentNode;if(!t.definitions.rotator.match(e))return;let a=t.api.getSlide(e);if(!a)return;let o=t.api.getItems(a).length;if(!o)return;let s=t.api.getTargetPosition(e);s+=Math.min(t.api.getPositionStep(e),o)*(n?1:-1),t.api.setPosition(e,s);return}if(r.getAttribute(t.attributes.navSlide)){i.preventDefault();let e=r,n=e.parentNode,a=n.parentNode.parentNode;if(!t.definitions.rotator.match(a))return;for(let i=0,r=0;i<n.childNodes.length;i++){if(n.childNodes[i]===e){t.api.setPosition(a,r);break}1===n.childNodes[i].nodeType&&n.childNodes[i].getAttribute(t.attributes.navSlide)&&r++}return}r=r.parentNode}},!0),e.addEventListener("mousedown",function(n){if(i._bound)return;let a=1===n.target.nodeType?n.target:n.target.parentNode;for(;a&&1===a.nodeType;){if(a.getAttribute(t.attributes.navSlide)){let n=a.parentNode.parentNode.parentNode;t.definitions.rotator.match(n)&&(e.addEventListener("mousemove",i,!0),i._bound=n);return}a=a.parentNode}},!0),e.addEventListener("keydown",function(i){let n="ArrowRight"===i.key?"."+t.classes.navNext:"ArrowLeft"===i.key?"."+t.classes.navPrev:null,a=n?e.querySelector(n):null;a&&a.dispatchEvent(new Event("click"))},!0),e.addEventListener("mouseup",function(t){i._bound&&(e.removeEventListener("mousemove",i,!0),i._bound=!1)},!0),i._bound=!1,e.addEventListener("touchstart",function(i){if(n._bound)return;let a=1===i.target.nodeType?i.target:i.target.parentNode,r=null;for(;a&&1===a.nodeType;){if(t.definitions.rotator.match(a)){let o=(r=a).getBoundingClientRect();e.addEventListener("touchmove",n,!0),n._bound=r,n._traveled={initialId:i.changedTouches[0].identifier,initialPos:t.api.getTargetPosition(r),initialGroupSize:t.api.getGroupSize(r),initialWidth:o.width,maxTraveledX:0,swipedDistance:0,trace:[{clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY,timeStart:i.timeStamp}]};return}a=a.parentNode}},!0),e.addEventListener("touchend",a,!0),n._bound=!1,n._traveled=null)})(e.getRootNode()),e.classList.add(t.classes.rotator),t.api.setPosition(e,e.getAttribute(t.attributes.position)),t.api.setGroupSize(e,e.getAttribute(t.attributes.groupSize)),t.api.createSlide(e);let i=t.api.getSlide(e),n=t.api.getTargetPosition(e);i&&0!==n&&t.api.setPosition(e,n,"instant")},onRemoved:function(){},onChanged:function(e,i){(i==t.attributes.groupSize||i==t.attributes.position||i==t.attributes.spaceBetweenItems||i==t.attributes.transition||i==t.attributes.slideTransition||i==t.attributes.alignItems)&&(t.update(e,"updateRender"),t.update(e,"updateTransition"))},onChildAdded:function(e,i){if(!t.definitions.slide.match(i)&&!t.definitions.nav.match(i)){i.setAttribute(t.attributes.content,!0);let n=t.api.getSlide(e);n||console.log("no slide"),n&&n.appendChild(i)}},onChildRemoved:null,onUpdate:{updateRender:function(e,i){t.api.createSlide(e);let n=t.api.getSlide(e),a=t.api.getItems(n),r=t.api.getGroupSize(e),o=t.api.getTargetPosition(e),s=t.api.getCurrentTransition(n);t.api._updateGroupSize(e,n,a,r),t.api._updatePosition(e,n,a,o,r,s,i),o=t.api.getTargetPosition(e),s=t.api.getCurrentTransition(n),t.api._updateSpaceBetweenItems(e,n,a,r),t.nav.update(e,n,a,o,r,s);let l=e.getAttribute(t.attributes.alignItems);n.style.alignItems=l},updateTransition:function(e,i){let n=t.api.getSlide(e);if(!n)return;let a=t.api.getCurrentTransition(n);if(!a||null===a.type)return;let r=t.api.getItems(n),o=t.api.getGroupSize(e);t.api.transition.animate[a.type](e,n,r,o,a,i),t.nav.update(e,n,r,t.api.getTargetPosition(e),o,a)}}},slide:{match:function(e){return 1===e.nodeType&&e.parentNode&&e.getAttribute(t.attributes.slide)&&t.definitions.rotator.match(e.parentNode)},onAdded:function(e){let i=e.parentNode,n=[...i.childNodes].filter(i=>i!=e&&!t.definitions.nav.match(i));e.append(...n);let a=i.getAttribute(t.attributes.alignItems);e.style.alignItems=a},onRemoved:null,onChanged:function(e,i){i==t.attributes.slideTransition&&t.update(e.parentNode,"updateTransition")},onChildAdded:null,onChildRemoved:null},item:{match:function(e){return 1===e.nodeType&&e.getAttribute(t.attributes.item)},onAdded:function(e){let i=e.parentNode.parentNode;t.update(i,"updateRender"),t.update(i,"updateTransition")},onRemoved:function(e,i){if(e){let e=i.parentNode;t.update(e,"updateRender")}},onChanged:null,onChildAdded:null,onChildRemoved:null},content:{match:function(e){return 1===e.nodeType&&e.getAttribute(t.attributes.content)||e.parentNode&&(t.definitions.slide.match(e.parentNode)||t.definitions.item.match(e.parentNode))&&!t.definitions.nav.match(e)&&!t.definitions.slide.match(e)&&!t.definitions.item.match(e)},onAdded:function(e){if(t.definitions.slide.match(e.parentNode)){let i=document.createElement("div");i.setAttribute(t.attributes.item,!0),i.classList.add(t.classes.item),e.parentNode.insertBefore(i,e),i.appendChild(e)}e.setAttribute(t.attributes.content,!0),e.classList.add(t.classes.content)},onRemoved:function(t,e){},onChanged:null,onChildAdded:null,onChildRemoved:null},nav:{match:function(e){return 1===e.nodeType&&e.parentNode&&e.getAttribute(t.attributes.nav)&&t.definitions.rotator.match(e.parentNode)},onAdded:null,onRemoved:null,onChanged:null,onChildAdded:null,onChildRemoved:null}},api:{getSlide:function(e){for(let i=0;i<e.childNodes.length;i++)if(t.definitions.slide.match(e.childNodes[i]))return e.childNodes[i];return null},getNav:function(e){for(let i=0;i<e.childNodes.length;i++)if(t.definitions.nav.match(e.childNodes[i]))return e.childNodes[i];return null},getContentNodes:function(e){return[...e.querySelectorAll(`*[${t.attributes.content}]`)]},setGroupSize:function(e,i){if("string"==typeof i&&"none"===i.toLowerCase())return e.setAttribute(t.attributes.groupSize,i.toLowerCase());let n=parseFloat(i);isNaN(n)&&(n=1),e.setAttribute(t.attributes.groupSize,n)},rotateNext:function(e){if(!t.definitions.rotator.match(e))return;let i=t.api.getSlide(e);if(!i)return;let n=t.api.getItems(i).length;if(!n)return;let a=t.api.getTargetPosition(e);a+=Math.min(t.api.getPositionStep(e),n),t.api.setPosition(e,a)},rotatePrevious:function(e){if(!t.definitions.rotator.match(e))return;let i=t.api.getSlide(e);if(!i)return;let n=t.api.getItems(i).length;if(!n)return;let a=t.api.getTargetPosition(e);a+=-1*Math.min(t.api.getPositionStep(e),n),t.api.setPosition(e,a)},setPosition:function(e,i,n,a,r){isNaN(i=parseFloat(i))&&(i=0),n||a||r?e.setAttribute(t.attributes.position,i+" "+(n||null)+" "+(a||null)+" "+(r||null)):e.setAttribute(t.attributes.position,i)},setTransitionEasing:function(e,i){e.setAttribute(t.attributes.easing,i)},getGroupSize:function(e){let i=e.getAttribute(t.attributes.groupSize);if("none"===i.toLowerCase())return 0;if("fade"==t.api.getTransitionStyle(e))return 1;let n=parseFloat(i),a=t.api.getSlide(e),r=t.api.getItems(a).length;return isNaN(n)?1:Math.min(n,r)},getTargetPosition:function(e){let i=parseFloat(e.getAttribute(t.attributes.position).split(" ")[0]);return isNaN(i)?0:i},getPositionStep:function(e){let i=(e.getAttribute(t.attributes.positionStep)||"").toLowerCase();if(t.positionSteps[i]){if("single"==i)return 1;if("group"==i)return t.api.getGroupSize(e)}let n=parseFloat(i);return isNaN(n)&&(n=t.api.getGroupSize(e)),n=Math.max(Math.min(t.api.getGroupSize(e),n),1)},setPositionStep:function(e,i){i=Math.max(Math.min(t.api.getGroupSize(e),i),1),e.setAttribute(t.attributes.positionStep,i)},getSpaceBetweenItems:function(e){let i=e.getAttribute(t.attributes.spaceBetweenItems);return i?parseInt(i):0},getTargetTransition:function(e){let i=e.getAttribute(t.attributes.position).split(" ");return i.length<=1?null:{transitionStyle:i[1]?t.api._filterTransitionStyleAttribute(i[1]):null,transitionSpeed:i[2]?t.api._filterTransitionSpeedAttribute(i[2]):null,transitionEasing:i[3]?t.api._filterTransitionEasingAttribute(i[3]):null}},getNormalPosition:function(t,e){return e>=t&&(e%=t),e<0&&(e=t-(Math.abs(e)%t||t)),e},getTransitionStyle:function(e){return t.api._filterTransitionStyleAttribute(e.getAttribute(t.attributes.transition))},_filterTransitionStyleAttribute:function(e){return e&&"null"!==e||(e="instant"),e=e.toLowerCase(),e=t.api.transition.typeIsValid(e)?e:"instant"},getTransitionSpeed:function(e){return t.api._filterTransitionSpeedAttribute(e.getAttribute(t.attributes.speed))},_filterTransitionSpeedAttribute:function(e){let i;return e&&"null"!==e||(e="normal"),"fast"===(e=e.toLowerCase())?i=t.speeds.fast:"normal"===e?i=t.speeds.normal:"slow"===e?i=t.speeds.slow:(isNaN(i=parseInt(e))||i<0)&&(i=t.speeds.normal),i},getTransitionEasing:function(e){let i=e.getAttribute(t.attributes.easing);return i||t.api.setTransitionEasing(e,"none"),t.api._filterTransitionEasingAttribute(i)},_filterTransitionEasingAttribute:function(t){return t?("none"==t&&(t="linear"),window.interpolate[t])?t:(t=t.toLowerCase().replace(/\s/g,""),window.interpolate[t])?t:(t&&"linear"!==t&&!/^ease/.test(t)&&(t="ease"+t),t&&"linear"!==t&&!/quad$|cubic$|quart$|sine$|expo$|circ$/.test(t)&&(t+="cubic"),window.interpolate[t])?t:"linear":"linear"},getActiveGroup:function(e,i,n){i=t.api.getNormalPosition(e.length,Math.round(i));let a=e.length,r=[i];for(let t=1,e=i+1;t<n&&(e>=a&&(e=0),e!=i);t++,e++)r.push(e);return r},getCurrentItem:function(e){let i=t.api.getSlide(e),n=t.api.getItems(i),a=t.api.getNormalPosition(n.length,Math.round(parseFloat(e.getAttribute(t.attributes.position))));return n[a]},getSlideOverhang:function(t,e,i){return Math.max(0,Math.min(e+i-t.length,e))},_updateGroupSize:function(e,i,n,a){let r=t.api.getSpaceBetweenItems(e),o=a?`0 0 calc(calc(100% - ${(a-1)*r}px)/${a})`:"";for(let t=0;t<n.length;t++)n[t].style.flex=o;i.style.width=a?"100%":"auto"},_updateSpaceBetweenItems:function(e,i,n,a){let r=t.api.getSpaceBetweenItems(e);i.style.gap=r+"px"},_updatePosition:function(e,i,n,a,r,o,s){if(!r&&i.offsetLeft&&(t.api.setPosition(e,0),0===o.current))return;let l=t.api.getTargetTransition(e),d=t.api.getNormalPosition(n.length,a);a!==d?(o&&(null!==o.from&&(o.from=d<a?o.from-n.length:o.from+n.length),null!==o.to&&(o.to=d<a?o.to-n.length:o.to+n.length),null!==o.current&&(o.current=d<a?o.current-n.length:o.current+n.length)),t.api._setCurrentTransition(i,o.type,o.current,o.from,o.to,o.timeStart,o.timeEnd,o.easing,o.timePercentSkip),t.api.setPosition(e,d)):l&&t.api.setPosition(e,d),o&&null!==o.type&&(null===o.to||o.to===d)||t.api.transition.configured(e,i,n,d,l,s)},transition:{configured:function(e,i,n,a,r,o){let s=r&&r.transitionStyle?r.transitionStyle:t.api.getTransitionStyle(e),l=r&&r.transitionSpeed?r.transitionSpeed:t.api.getTransitionSpeed(e),d=r&&r.transitionEasing?r.transitionEasing:t.api.getTransitionEasing(e);t.api.transition[s](i,n,a,l,d,o)},typeIsValid:function(t){return"instant"==t||"fade"==t||"slide"==t||"groupSize"==t},instant:function(e,i,n){t.api._setCurrentTransition(e,"instant",n,n,n)},fade:function(e,i,n,a,r,o){let s=t.api.getCurrentTransition(e);t.api._setCurrentTransition(e,"fade",s.current,s.current,n,null,o+a,r)},slide:function(e,i,n,a,r,o){let s=t.api.getCurrentTransition(e);if("slide"==s.type){let i=s.timePercentSkip,r=i+(1-i)*(o-s.timeStart)/(s.timeEnd-s.timeStart);r>.5&&(r=1-r),t.api._setCurrentTransition(e,"slide",s.current,s.current,n,o,o+a,s.easing,r);return}t.api._setCurrentTransition(e,"slide",s.current,s.current,n,null,a,r,0)},animate:{instant:function(e,i,n,a,r){let o=n.length,s=t.api.getNormalPosition(o,r.current),l=t.api.getSpaceBetweenItems(e),d=Math.min(o,a),u=`calc(-${100*s/d}% - ${s*l/d}px)`;if(a){let e=t.api.getSlideOverhang(n,s,a);i.style.transform="translateX("+u+")";for(let t=0;t<o;t++){let i=n[t];t<Math.ceil(e)?i.style.transform=`translateX(calc(${o}00% + ${o*l}px)`:i.style.transform="none"}}else{let t=Math.floor(s);for(let e=0;e<o;e++)n[e].style.order=e<t?o-(t-e):e-t;let e=n[t].getBoundingClientRect().width*(s-t);i.style.transform="translateX(-"+e+"px)"}"instant"===r.type&&t.api._setCurrentTransition(i,null,s)},fade:function(e,i,n,a,r,o){let s=t.api.getNormalPosition(n.length,r.from),l=t.api.getNormalPosition(n.length,r.to);if(s==l){t.api._setCurrentTransition(i,null);return}let d=n[s],u=n[l];if(!d||!u){t.api._setCurrentTransition(i,null);return}if(null===r.timeStart){for(let t of n)t.classList.remove("s8-RotatorItem--fadeOut"),t.classList.remove("s8-RotatorItem--fadeIn"),t==d&&(t.style.opacity=1,t.classList.add("s8-RotatorItem--fadeOut")),t==u&&(t.style.opacity=0,t.classList.add("s8-RotatorItem--fadeIn"));i.classList.add("s8-RotatorSlide--fade"),r.timeStart=o,r.timePercentSkip=0,t.api._setCurrentTransition(i,"fade",r.to,r.from,r.to,r.timeStart,r.timeEnd,r.easing,r.timePercentSkip)}else if(o<=r.timeEnd){let e=r.timeEnd-(r.timeEnd-r.timeStart)/2,n=1;o<=e&&(n=window.interpolate(o,r.timeStart,e,0,1,r.easing,r.timePercentSkip).toFixed(3));let a=window.interpolate(o,r.timeStart,r.timeEnd,1,0,r.easing,r.timePercentSkip).toFixed(3);u.style.opacity=n,d.style.opacity=a,t.api._setCurrentTransition(i,"fade",r.to,r.from,r.to,r.timeStart,r.timeEnd,r.easing,r.timePercentSkip)}else{for(let t of n)t.style.removeProperty("opacity"),t.classList.remove("s8-RotatorItem--fadeOut"),t.classList.remove("s8-RotatorItem--fadeIn");i.classList.remove("s8-RotatorSlide--fade"),r.current=r.to,t.api._setCurrentTransition(i,null,r.to),t.api.transition.animate.instant(e,i,n,a,r)}},slide:function(e,i,n,a,r,o){null===r.timeStart?(r.current=r.from,r.timeStart=o,r.timeEnd=r.timeStart+r.timeEnd,r.timePercentSkip=0,t.api._setCurrentTransition(i,"slide",r.current,r.from,r.to,r.timeStart,r.timeEnd,r.easing,r.timePercentSkip)):o<=r.timeEnd?(r.current=window.interpolate(o,r.timeStart,r.timeEnd,r.from,r.to,r.easing,r.timePercentSkip),t.api._setCurrentTransition(i,"slide",r.current,r.from,r.to,r.timeStart,r.timeEnd,r.easing,r.timePercentSkip)):(r.current=r.to,t.api._setCurrentTransition(i,null,r.to)),t.api.transition.animate.instant(e,i,n,a,r)}}},getCurrentTransition:function(e){let i=e.getAttribute(t.attributes.slideTransition);if(!i)return{type:null,current:0,from:null,to:null,timeStart:null,timeEnd:null};let n=i.split(" "),a={type:void 0!==n[0]?n[0]:null,current:void 0!==n[1]?parseFloat(n[1]):null,from:void 0!==n[2]?parseFloat(n[2]):null,to:void 0!==n[3]?parseFloat(n[3]):null,timeStart:void 0!==n[4]?parseFloat(n[4]):null,timeEnd:void 0!==n[5]?parseFloat(n[5]):null,easing:void 0!==n[6]?n[6]:null,timePercentSkip:void 0!==n[7]?parseFloat(n[7]):null};return t.api.transition.typeIsValid(a.type)||(a.type=null),isNaN(a.current)&&(a.current=0),isNaN(a.timeStart)&&(a.timeStart=null),isNaN(a.timeEnd)&&(a.timeEnd=null),isNaN(a.from)&&(a.from=null),isNaN(a.to)&&(a.to=null),"_"==a.easing&&(a.easing=null),isNaN(a.timePercentSkip)&&(a.timePercentSkip=null),a},getItems:function(e){let i=[];for(let n=0;n<e.childNodes.length;n++)t.definitions.item.match(e.childNodes[n])&&i.push(e.childNodes[n]);return i},createSlide:function(e){if(t.api.getSlide(e))return;let i=document.createElement("div");i.setAttribute(t.attributes.slide,!0),i.classList.add(t.classes.slide),e.appendChild(i)},getNavSlide:function(e){for(let i=0;i<e.childNodes.length;i++)if(1===e.childNodes[i].nodeType&&e.childNodes[i].getAttribute(t.attributes.navSlides))return e.childNodes[i];return null},getNavNext:function(e){for(let i=0;i<e.childNodes.length;i++)if(1===e.childNodes[i].nodeType&&e.childNodes[i].getAttribute(t.attributes.navNext))return e.childNodes[i];return null},getNavPrev:function(e){for(let i=0;i<e.childNodes.length;i++)if(1===e.childNodes[i].nodeType&&e.childNodes[i].getAttribute(t.attributes.navPrev))return e.childNodes[i];return null},_setCurrentTransition:function(e,i,n,a,r,o,s,l,d){i?(l=l||"_",o=o||"_",s=s||"_",d=d||"_",e.setAttribute(t.attributes.slideTransition,i+" "+n+" "+a+" "+r+" "+o+" "+s+" "+l+" "+d)):e.setAttribute(t.attributes.slideTransition,"none "+n)}},nav:{update:function(e,i,n,a,r,o){let s=t.nav.getContainer(e);s||((s=document.createElement("div")).setAttribute(t.attributes.nav,!0),s.classList.add(t.classes.nav),e.appendChild(s)),t.nav.minimap.update(e,i,s,n,a,r,o),t.nav.arrows.update(e,i,s,n,a,r,o)},getContainer:function(e){for(let i=0;i<e.childNodes.length;i++)if(t.definitions.nav.match(e.childNodes[i]))return e.childNodes[i];return null},arrows:{update:function(e,i,n,a,r,o,s){let l=t.nav.arrows.getVariant(e);if(!l){let e=t.nav.arrows.getPreviousArrow(n);e&&e.remove();let i=t.nav.arrows.getNextArrow(n);e&&i.remove();return}let d=t.nav.arrows.variants[l];t.nav.arrows.getPreviousArrow(n)||d.setPreviousArrow(n),t.nav.arrows.getNextArrow(n)||d.setNextArrow(n)},getPreviousArrow:function(e){for(let i=0;i<e.childNodes.length;i++)if(1===e.childNodes[i].nodeType&&e.childNodes[i].getAttribute(t.attributes.navPrev))return e.childNodes[i];return null},getNextArrow:function(e){for(let i=0;i<e.childNodes.length;i++)if(1===e.childNodes[i].nodeType&&e.childNodes[i].getAttribute(t.attributes.navNext))return e.childNodes[i];return null},getVariant:function(e){let i=e.getAttribute(t.attributes.arrowVariant);return i&&"none"!=i?t.nav.arrows.variants[i]?i:void 0:null},variants:{circle:{setPreviousArrow:function(e){let i=t.nav.arrows.getPreviousArrow(e);if(i)return;let n=document.createElement("template");n.innerHTML=`
								<svg class="${t.classes.navPrev}" draggable="false" viewBox="0 0 46 46" ${t.attributes.navPrev}=true>
									<circle cx="23" cy="23" r="22"></circle>
									<path d="M27 10.5 l-11.5 12.5 l11.5 12.5"></path>
									<path d="M27.5 10 l-12 13 l12 13"></path>
								</svg>
							`,i=n.content.firstElementChild,e.appendChild(i)},setNextArrow:function(e){let i=t.nav.arrows.getNextArrow(e);if(i)return;let n=document.createElement("template");n.innerHTML=`
								<svg class="${t.classes.navNext}" draggable="false" viewBox="0 0 46 46" ${t.attributes.navNext}=true>
									<circle cx="23" cy="23" r="22"></circle>
									<path d="M19 10.5 l11.5 12.5 l-11.5 12.5"></path>
									<path d="M18.5 10 l12 13 l-12 13"></path>
								</svg>
							`,i=n.content.firstElementChild,e.appendChild(i)}}}},minimap:{update:function(e,i,n,a,r,o,s){let l=t.nav.minimap.getVariant(e),d=t.api.getNavSlide(n);if(!l){d&&d.remove();return}let u=t.nav.minimap.variants[l],p=t.nav.minimap.renderers[u.renderer](e,i,n,a,r,o,s);u.applyVariantTo(p)},getVariant:function(e){let i=e.getAttribute(t.attributes.minimapVariant);return i&&"none"!=i?t.nav.minimap.variants[i]?i:void 0:null},renderers:{sequential:function(e,i,n,a,r,o,s){let l=t.api.getNavSlide(n);l||((l=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("class",t.classes.navSlides),l.setAttribute("viewBox","0 0 12 12"),l.setAttribute("draggable","false"),l.setAttribute(t.attributes.navSlides,!0),n.appendChild(l));let d=a.length,u=t.api.getActiveGroup(a,null!==s.current?s.current:r,o),p=0;for(let e=0;e<l.childNodes.length;e++){let i=l.childNodes[e];1===i.nodeType&&i.getAttribute(t.attributes.navSlide)&&(i.setAttribute("class",-1!==u.indexOf(p)?t.classes.navSlideActive:""),++p>d&&(l.removeChild(i),e--,p--))}for(let e=p;e<d;e++){let i=document.createElementNS("http://www.w3.org/2000/svg","rect");i.setAttribute("class",-1!==u.indexOf(e)?t.classes.navSlideActive:""),i.setAttribute("draggable","false"),i.setAttribute(t.attributes.navSlide,!0),i.setAttribute("x",1+16*e),i.setAttribute("y",1),l.appendChild(i)}return l.setAttribute("viewBox","0 0 "+16*d+" 14"),[...l.childNodes]}},variants:{dots:{renderer:"sequential",applyVariantTo:function(t){for(let e of t)e.style.y="1px",e.style.height="12px",e.style.width="12px",e.style.rx="6px",e.style.ry="6px"}},squares:{renderer:"sequential",applyVariantTo:function(t){for(let e of t)e.style.y="1px",e.style.height="12px",e.style.width="12px",e.style.rx="0px",e.style.ry="0px"}},dashes:{renderer:"sequential",applyVariantTo:function(t){for(let e of t)e.style.y="4px",e.style.height="4px",e.style.width="12px",e.style.rx="0px",e.style.ry="0px"}},pills:{renderer:"sequential",applyVariantTo:function(t){for(let e of t)e.style.y="4px",e.style.height="4px",e.style.width="12px",e.style.rx="2px",e.style.ry="2px"}}}}}});window.Rotators=t}();
!function(){if(window.Modal)return;let t=[...document.querySelectorAll('link[href^="/_public/Framework/Assets/CSS/server.php?css="]')],e=(()=>{try{let e=new CSSStyleSheet;for(let o of t)[...o.sheet.rules].map(t=>t.cssText).forEach(e.insertRule,e);return e}catch(t){}return null})(),o=fetch("/_public/Framework/Assets/JavaScript/modal.css").then(t=>t.text()),i=fetch("/_public/Framework/Assets/JavaScript/rotator.css").then(t=>t.text());function n(a,r,l){if(this._ui={},this._root=document.createElement("div"),this._root.classList.add(n.classes.overlay),this._container=this._root,"attachShadow"in this._container){let s=this._root.attachShadow({mode:"open"}),a=[...document.querySelectorAll('link[href^="/_public/Framework/Assets/CSS/server.php?css="]')];"adoptedStyleSheets"in s&&e&&t.length==a.length?s.adoptedStyleSheets=[e]:s.append(...a.map(t=>t.cloneNode(!0)));let r=document.createElement("style");s.append(r),Promise.all([o,i]).then(([t,e])=>r.innerText=t+e),this._container=document.createElement("div"),this._container.classList.add(n.classes.overlay),s.appendChild(this._container)}this._modalRotator=document.createElement(window.Rotators.rootNodeName),this._modalRotator.classList.add(n.classes.modal),a.length>1&&this._modalRotator.setAttribute(window.Rotators.attributes.rotator,!0),this._modalRotator.setAttribute(window.Rotators.attributes.position,r),this._modalRotator.setAttribute(window.Rotators.attributes.groupSize,1),this._modalRotator.setAttribute(window.Rotators.attributes.easing,"inout"),this._modalRotator.setAttribute(window.Rotators.attributes.speed,"normal"),this._modalRotator.setAttribute(window.Rotators.attributes.transition,"slide"),this._modalRotator.setAttribute(window.Rotators.attributes.minimapVariant,"dots"),this._modalRotator.setAttribute(window.Rotators.attributes.arrowVariant,"circle");let d=[];for(let t of a){let e=t.cloneNode(!0),o=e.getAttribute(n.attributes.modalContentAbove),i=e.getAttribute(n.attributes.modalContentBelow);for(let t of(d.push(e.getAttribute(n.attributes.modalTheme)),function(t){let e=function t(e){return e.childNodes?[e,...Array.prototype.flatMap.call(e.childNodes,t)]:e}(t);return e===t?[t]:e}(e)))if(t.nodeType===Node.ELEMENT_NODE){for(let e in t.removeAttribute("id"),t.removeAttribute("data-src"),t.removeAttribute("data-lazy"),t.removeAttribute("data-verylazy"),n.attributes)t.removeAttribute(n.attributes[e]);if(t.getAttribute("src")){for(let e of["width","height","max-width","max-height"])t.style[e]=null;let e=t.getAttribute("src");if(/_\d*x\d*[ac]?\.[a-z]{3,5}$/i.test(e)){let o=e.lastIndexOf("."),i=e.lastIndexOf("_"),n=e.substring(0,i),s=e.substring(o,e.length);if(window._s8Sqips&&window._s8Sqips[n]){for(let t of(e=n,window._s8Sqips[n].sizes))parseInt(screen.width)*window.devicePixelRatio<=t.width&&parseInt(screen.height)*window.devicePixelRatio<=t.height&&(e+=t.suffix);e+=s,t.src=window._s8Sqips[n].sqip,t.setAttribute("data-src",e),t.setAttribute("data-lazy",!0),t.setAttribute("data-verylazy",!0)}}}}let s=document.createElement("div"),a=document.createElement("div");a.classList.add(n.classes.contentAbove),a.classList.add("scroll"),a.innerHTML=o||"",s.appendChild(a);let r=document.createElement("div");r.classList.add(n.classes.contentCenter),s.appendChild(r),r.appendChild(e);let l=document.createElement("div");l.classList.add(n.classes.contentBelow),l.classList.add("scroll"),l.innerHTML=i||"",s.appendChild(l),(e=s).classList.add(n.classes.contentWrapping),e.classList.add(n.classes.content),this._modalRotator.appendChild(e)}let c=new Map;for(let t=0;t<d.length;t++){let e=d[t];if(!e||!((e=e.toLowerCase().trim())in n.themes))continue;c.has(e)||c.set(e,[]);let o=`.${n.classes.modal}[${window.Rotators.attributes.position}="${t}"]`;c.get(e).push(`${o}, ${o} ~ *`)}(l=l?l.toLowerCase().trim():null)in n.themes&&(c.has(l)||c.set(l,[]),c.get(l).push(`.${n.classes.modal}, .${n.classes.modal} ~ *`));let h=[...c].map(([t,e])=>`${e.join(", ")}{${n.themes[t]}}`).join("\n"),m=document.createElement("style");m.innerHTML=h,this._container.appendChild(m),this._container.appendChild(this._modalRotator);let u="http://www.w3.org/2000/svg",p=document.createElementNS(u,"svg");p.setAttribute("viewBox","0 0 46 46");let w=document.createElementNS("http://www.w3.org/2000/svg","circle");w.setAttribute("cx","23"),w.setAttribute("cy","23"),w.setAttribute("r","22"),p.appendChild(w);let b=document.createElementNS(u,"path");b.setAttribute("d","M13.5 13.5 l19 19 M13.5 32.5 l19 -19"),p.appendChild(b),(b=document.createElementNS(u,"path")).setAttribute("d","M13 13 l20 20 M13 33 l20 -20"),p.appendChild(b),p.setAttribute("class",n.classes.close);let v=(function(t){t.target===this._container&&(this._container.removeEventListener("click",v),p.removeEventListener("click",g),this.destroy())}).bind(this);this._container.addEventListener("click",v);let g=(function(t){this._container.removeEventListener("click",v),p.removeEventListener("click",g),this.destroy(),t.stopImmediatePropagation()}).bind(this);p.addEventListener("click",g);let f=null,_=(function(){requestAnimationFrame((function(t){this._container.parentNode&&(f=t,this._container.classList.remove(n.classes.inactiveShort),this._container.classList.remove(n.classes.inactiveLong))}).bind(this))}).bind(this);this._container.addEventListener("mousemove",_),this._container.addEventListener("touchmove",_),this._container.addEventListener("click",_);let y=(function(t){if(this._container.parentNode){f=null===f?t:f;let e=t-f;e>7e3?(this._container.classList.remove(n.classes.inactiveShort),this._container.classList.add(n.classes.inactiveLong)):e>1500&&(this._container.classList.remove(n.classes.inactiveLong),this._container.classList.add(n.classes.inactiveShort)),requestAnimationFrame(y)}}).bind(this);if(requestAnimationFrame(y),this._container.appendChild(p),!this._root.parentNode){let t=window.getComputedStyle(document.body);this._oldBodyMarginRight=t.marginRight,document.body.style.marginRight=parseFloat(this._oldBodyMarginRight)+window.innerWidth-document.documentElement.clientWidth+"px",document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden",document.body.appendChild(this._root),document.body.addEventListener("touchmove",s)}}function s(t){t.preventDefault()}window.Modal=n,n.classes={overlay:"s8-ModalOverlay",modal:"s8-Modal",close:"s8-ModalUiClose",content:"s8-ModalContent",contentWrapping:"s8-ModalContent-Wrapping",contentAbove:"s8-ModalContent-Above",contentCenter:"s8-ModalContent-Center",contentBelow:"s8-ModalContent-Below",inactiveShort:"s8-Modal-Inactive-Short",inactiveLong:"s8-Modal-Inactive-Long"},n.attributes={triggersModal:"data-modal",modalTheme:"data-modal-theme",modalContentAbove:"data-modal-content-above",modalContentBelow:"data-modal-content-below"},n.themes={light:"--modal-bg: #fafafa; --modal-font-color: #555555; --modal-stroke: #555555; --modal-scroll-bg: #a8a8a8;",dark:"--modal-bg: #1e1e1e; --modal-font-color: #EEE; --modal-stroke: #797979; --modal-scroll-bg: #404040;"},n.contentModals=function(t){return 1===t.nodeType&&t.getAttribute(n.attributes.triggersModal)},n.prototype.destroy=function(){this._root.parentNode&&(this._root.parentNode.removeChild(this._root),document.body.style.marginRight=this._oldBodyMarginRight,document.body.style.overflow="",document.documentElement.style.overflow="",document.body.removeEventListener("touchmove",s))},window.addEventListener("click",function(t){let e=t.target,o=window.s8Gallery||null;for(;e.parentNode;){if(n.contentModals(e)){let t=e.parentNode,i=t&&t.parentNode?t.parentNode:null;if(o&&i&&o.definitions.gallery.match(i)){let t=o.api.getContent(o.api.getItems(i));new n(t,t.indexOf(e),o.api.getModalTheme(i));return}let s=[...t.childNodes].filter(t=>n.contentModals(t));console.log(s),new n(s,s.indexOf(e),e.getAttribute(n.attributes.modalTheme)||null);return}e=e.parentNode}},!0)}();
window.ProductGallery||(window.ProductGallery=function(t,e){let n=document.getElementById(t),o=n.querySelector("template");if(o.parentElement.removeChild(o),n.classList.add("s8-ProductGallery"),!o.content){n.innerHTML=o.innerHTML;return}for(o.innerHTML=`
			<div style="position: relative; width: 100%; padding-bottom: 66.666666%;">
				<oncord-rotator id="${t}_preview" data-s8-rotator="true" data-s8-rotator-position="0" data-s8-rotator-group-size="1" data-s8-rotator-transition-easing="inout" data-s8-rotator-transition-speed="normal" data-s8-rotator-transition="instant" class="s8-Rotator" style="position: absolute; width: 100%; height: 100%;">
					${o.innerHTML}
				</oncord-rotator>
			</div>
			<div id="${t}_nav" class="s8-ProductGalleryNav">
				<div class="s8-ProductGalleryNavPos">
					<span id="${t}_nav_pos">1</span>/${o.content.querySelectorAll("img").length}
				</div>
				<div id="${t}_nav_prev" class="s8-ProductGalleryNavButton">
					<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
						<path d="M13.2929 2.29289C13.6834 1.90237 14.3166 1.90237 14.7071 2.29289C15.0976 2.68342 15.0976 3.31658 14.7071 3.70711L13.2929 2.29289ZM7 10L6.29289 10.7071C5.90237 10.3166 5.90237 9.68342 6.29289 9.29289L7 10ZM14.7071 16.2929C15.0976 16.6834 15.0976 17.3166 14.7071 17.7071C14.3166 18.0976 13.6834 18.0976 13.2929 17.7071L14.7071 16.2929ZM14.7071 3.70711L7.70711 10.7071L6.29289 9.29289L13.2929 2.29289L14.7071 3.70711ZM7.70711 9.29289L14.7071 16.2929L13.2929 17.7071L6.29289 10.7071L7.70711 9.29289Z" fill="currentColor"/>
					</svg>
				</div>
				<div id="${t}_nav_next" class="s8-ProductGalleryNavButton">
					<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
						<path d="M7.70711 2.29289C7.31658 1.90237 6.68342 1.90237 6.29289 2.29289C5.90237 2.68342 5.90237 3.31658 6.29289 3.70711L7.70711 2.29289ZM14 10L14.7071 10.7071C15.0976 10.3166 15.0976 9.68342 14.7071 9.29289L14 10ZM6.29289 16.2929C5.90237 16.6834 5.90237 17.3166 6.29289 17.7071C6.68342 18.0976 7.31658 18.0976 7.70711 17.7071L6.29289 16.2929ZM6.29289 3.70711L13.2929 10.7071L14.7071 9.29289L7.70711 2.29289L6.29289 3.70711ZM13.2929 9.29289L6.29289 16.2929L7.70711 17.7071L14.7071 10.7071L13.2929 9.29289Z" fill="currentColor"/>
					</svg>
				</div>
			</div>
			<oncord-rotator id="${t}_thumbs" class="s8-ProductGalleryThumbnails" data-s8-rotator="true" data-s8-rotator-position="0" data-s8-rotator-group-size="none" data-s8-rotator-transition-easing="inout" data-s8-rotator-transition-speed="normal" data-s8-rotator-transition="slide" class="s8-Rotator" style="width: 100%; height: 84px; margin-top: 22px;">
				${o.innerHTML}
			</oncord-rotator>
		`;o.content&&o.content.firstChild;)n.appendChild(o.content.firstChild);let r=document.getElementById(t+"_thumbs"),a=document.getElementById(t+"_preview"),i=r.querySelectorAll("img");for(let t=0;t<i.length;t++)i[t].dataset.s8ProductGalleryItem=t;let l=a.querySelectorAll("img");for(let t=0;t<l.length;t++){let n=l[t];n.addEventListener("click",function(){new window.Modal(l,Array.prototype.indexOf.call(l,n),e||"light")})}!function t(){window.Rotators&&i[0].parentElement&&window.Rotators.definitions.item.match(i[0].parentElement)||requestAnimationFrame(t),i[0].parentElement.classList.add("s8-ProductGalleryThumbnail-Selected")}();let s=document.getElementById(t+"_nav_prev"),d=document.getElementById(t+"_nav_next"),c=document.getElementById(t+"_nav_pos");s.addEventListener("click",function(t){let e=parseInt(r.querySelector(".s8-ProductGalleryThumbnail-Selected>img").dataset.s8ProductGalleryItem),n=e?e-1:i.length-1;t.preventDefault(),i[n].click(),c.innerText=++n}),d.addEventListener("click",function(t){let e=parseInt(r.querySelector(".s8-ProductGalleryThumbnail-Selected>img").dataset.s8ProductGalleryItem),n=e<i.length-1?e+1:0;t.preventDefault(),i[n].click(),c.innerText=++n})},document.addEventListener("click",function(t){let e=window.Rotators.definitions.item.match(t.target)?t.target:t.target.parentElement&&window.Rotators.definitions.item.match(t.target.parentElement)?t.target.parentElement:null;if(!e)return;let n=t.target;for(;!window.Rotators.definitions.rotator.match(n);)n=n.parentElement;if(!n.classList.contains("s8-ProductGalleryThumbnails"))return;t.preventDefault();let o=n.querySelectorAll("img");for(let t=0;t<o.length;t++)o[t].parentElement.classList.remove("s8-ProductGalleryThumbnail-Selected");e.classList.add("s8-ProductGalleryThumbnail-Selected");let r=window.Rotators.api.getTargetPosition(n),a=parseInt(e.firstElementChild.dataset.s8ProductGalleryItem),i=window.Rotators.api.getSlide(n).getBoundingClientRect().width,l=e.getBoundingClientRect().width;i-=l,i*=a/o.length;let s=a-i/l;if(window.Rotators.api.setPosition(document.getElementById(n.id.replace(/_thumbs$/,"_preview")),a),document.getElementById(n.id.replace(/_thumbs$/,"_nav_pos")).innerText=a+1,r!==s)return Math.abs(s-r)<=o.length/2?window.Rotators.api.setPosition(n,s):window.Rotators.api.setPosition(n,r<s?s-o.length:s+o.length)}));
!function(){let e=!1;function t(){if(e)return;e=!0;let t="sw="+screen.width+"&sh="+screen.height+"&ww="+(void 0!==window.innerHeight?window.innerHeight:document.documentElement.offsetHeight)+"&wh="+(void 0!==window.innerWidth?window.innerWidth:document.documentElement.offsetWidth)+"&dpr="+(void 0!==window.devicePixelRatio?window.devicePixelRatio:1);try{t+="&tzo="+encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)}catch(e){}fetch("/_public/Components/Website/t.php?"+t,{priority:"low"}).catch(e=>{})}document.onmousemove=t,document.onscroll=t,document.ontouchstart=t}();
(()=>{let e=Date.now();function t(){let t=Date.now();t-e<25e3||(fetch("/_public/Components/Website/_keepalive").catch(e=>{}),e=t)}document.addEventListener("mousemove",t),document.addEventListener("scroll",t),document.addEventListener("touchstart",t)})();
!function(){let e=/_\d*x\d*[ac]?\.[a-z]{3,5}$/,t=new MutationObserver(d),i="IntersectionObserver"in window?new IntersectionObserver(function(e){e.forEach(function(e){e.isIntersecting&&(o(e.target),i.unobserve(e.target))})},{root:null,rootMargin:"0px 0px 0px 0px",threshold:0}):null,n=[7056,16200,23256,32400,39456,46512,53568,64800,97200,129600,259200,388800,518400,648e3,777600,921600,2073600,3686400,8294400];function s(e){e._imageObserversBound||(e._imageObserversBound=!0,requestAnimationFrame(function(){t.observe(e,{attributes:!1,childList:!0,subtree:!0}),d([{type:"childList",addedNodes:e.body?e.body.childNodes:e.childNodes,removedNodes:[],target:e.body?e.body:e}])}))}function d(e){for(let t=0;t<e.length;t++){let n=e[t];n.addedNodes.length&&function e(t){for(let n=0;n<t.length;n++){let d=t[n];d.isConnected&&1==d.nodeType&&("IMG"==d.nodeName&&d.getAttribute("data-src")&&d.getAttribute("data-lazy")?i&&d.getAttribute("data-verylazy")?i.observe(d):o(d):d.childNodes&&d.childNodes.length&&e(d.childNodes),d.shadowRoot&&s(d.shadowRoot))}}(n.addedNodes)}}function o(t){requestAnimationFrame(function(){!function(t){if(!t.isConnected)return;let s=t.getAttribute("data-src");if(!e.test(s)){let e=t.getBoundingClientRect();if((!e.width||!e.height)&&i)return t.setAttribute("data-verylazy",!0),i.observe(t);let d=s.lastIndexOf("."),o=s.substring(0,d);!function(e,t){if(window._s8Sqips=window._s8Sqips||{},!window._s8Sqips[e]){let i=/viewBox(?:%3D|=)'0\s0\s(\d+)\s(\d+)'/.exec(t);window._s8Sqips[e]={native:{width:parseInt(i[1]),height:parseInt(i[2])},sizes:[],sqip:t};let s=window._s8Sqips[e].native.width,d=window._s8Sqips[e].native.height;if(!s||!d)return;let o=s/d;for(let t=0;t<n.length;t++){let i,r=Math.sqrt(n[t]/o),a=o*r;if(a>=s||r>=d)break;let l=parseInt(a)===a,h=parseInt(r)===r;i=(l&&h?"_"+a+"x"+r:l?"_"+a+"x":h?"_x"+r:o>=1?"_"+Math.ceil(a)+"x":"_x"+Math.ceil(r))+"a",window._s8Sqips[e].sizes.push({width:a,height:r,suffix:i})}}}(o,t.src);let r="",a=window.devicePixelRatio;a>2&&(a=2),e.width<10&&(e.width=400),window.innerWidth<450&&a>1.3&&(a=1.3);let l=parseInt(e.width)*a,h=parseInt(e.height)*a;for(let e=0;e<window._s8Sqips[o].sizes.length;e++){let t=window._s8Sqips[o].sizes[e];if(l<1.3*t.width&&h<1.3*t.height){r=t.suffix;break}}s=o+r+s.substring(d,s.length)}let d=new Image,o=()=>{t.src=s,d.removeEventListener("load",o,!0)};d.addEventListener("load",o,!0),d.src=s}(t)})}"interactive"==document.readyState||"complete"==document.readyState?s(document):window.addEventListener("DOMContentLoaded",()=>s(document),!0)}();
(()=>{if(Object.prototype.hasOwnProperty.call(window,"g_arrAjaxEvents")){console.log("Warning: Reinclusion of window.g_arrAjaxEvents - a possible version upgrade has taken place.");return}window.g_arrAjaxEvents={},window.g_arrAjaxKeyUp={},window.g_arrAjaxEventLastRequest=[],window.triggerEventAjax=function(e,t,n,a,o){if(-1!=n.indexOf(",")){let o=n.split(",");for(let r=0;r<o.length;r++)n=(n=o[r]).replace(/^\s+|\s+$/g,""),window.triggerEventAjax(e,t,n,a);return}if(void 0===window.g_arrAjaxEvents[n]){let e="";for(let t in window.g_arrAjaxEvents)e+=t+"\r\n";"undefined"!=typeof console&&console.log("Could not locate <ajax:event> with id "+n+"\r\nValid events: \r\n"+e);return}let r={};r.showLoading=window.g_arrAjaxEvents[n].showLoading,r.showLoadingMessage=window.g_arrAjaxEvents[n].showLoadingMessage,r.onTrigger=window.g_arrAjaxEvents[n].onTrigger,r.onSuccessEval=window.g_arrAjaxEvents[n].onSuccessEval;let i=function(){window.g_arrAjaxEventLastRequest[t+n]&&ajaxAbort(window.g_arrAjaxEventLastRequest[t+n],!0);let o=e.nodeType?e.id:e;r.url="/_public/Framework/HTTP/AJAX/server.php",r.dataIncludeJS=!0,r.dataIncludeCSS=!0,r.dataIncludeURL=!0,r.dataIncludeState=e,r._POST={},r._POST._ajaxsenderid=o,r._POST._ajaxevent=t,r._POST._ajaxeventid=n,r._POST._ajaxeventparameter=a,r.evalChunkedResponse=!0;let i=null,l={},d=["value","selectionStart","selectionEnd","selectionDirection"],s=null,c=[],u=[];r.beforeSuccess=function(){let t=document.activeElement;if(i=t&&void 0!==t.id?t.id:null,"SELECT"!==t.nodeName&&"checkbox"!==t.type&&"radio"!==t.type)for(let e=0;e<d.length;e++){let n=d[e];try{l[n]=t[n]}catch(e){delete l[n]}}let n=e;for("string"==typeof n&&(n=document.getElementById(n)),n&&!n.isConnected&&n.id&&(n=document.getElementById(n.id));n&&"BODY"!==n.nodeName;){if(!s){let e=n.getAttribute("id");e&&(s=e)}s&&(c.push(n.scrollTop),u.push(n.scrollLeft)),n=n.parentNode}},r.success=function(){if((!document.activeElement||document.activeElement&&document.activeElement.nodeName)&&i){let e=document.getElementById(i);if(e){let r=new CustomEvent("beforeAjaxFocus",{bubbles:!0,cancelable:!0,detail:{ajaxEvent:t,ajaxEventId:n,ajaxEventParameter:a,ajaxSender:o}});if(e.dispatchEvent(r),e.focus(),i===o)for(let t=0;t<d.length;t++){let n=d[t];if(void 0!==l[n])try{e[n]=l[n]}catch(e){}}}i=null,l={}}function e(){if(s){let e=document.getElementById(s),t=0;for(;e&&"BODY"!==e.nodeName&&t<c.length;)e.scrollTo({top:c[t],left:u[t],behavior:"instant"}),e.scrollTop=c[t],e.scrollLeft=u[t],e=e.parentNode,t++}}e(),requestAnimationFrame(e),setTimeout(()=>{e(),s=null,c=null,u=null},1)},window.g_arrAjaxEventLastRequest[t+n]=ajaxRequest(r)};if("onkeyup"==t){if(o&&(27==o.keyCode||13==o.keyCode))return;window.g_arrAjaxKeyUp[n]&&clearTimeout(window.g_arrAjaxKeyUp[n]),window.g_arrAjaxKeyUp[n]=setTimeout(function(){i(),delete window.g_arrAjaxKeyUp[n]},300);return}i()}})();
if(typeof(g_arrLoadedJavaScript) == 'undefined')
	var g_arrLoadedJavaScript = [1870318811];
else
	g_arrLoadedJavaScript.push(1870318811);
if(typeof(g_arrLoadedCSS) == 'undefined')
	var g_arrLoadedCSS = ["163152136"];
else
	g_arrLoadedCSS.push("163152136");
