function avia_cookie_check_sessionStorage(){var sessionBlocked=!1;try
{var test=sessionStorage.getItem('aviaCookieRefused')!=null}catch(e){sessionBlocked=!0}
var aviaCookieRefused=!sessionBlocked?sessionStorage.getItem('aviaCookieRefused'):null;var html=document.getElementsByTagName('html')[0];if(sessionBlocked||aviaCookieRefused){if(html.className.indexOf('av-cookies-session-refused')<0){html.className+=' av-cookies-session-refused'}}
if(sessionBlocked||aviaCookieRefused||document.cookie.match(/aviaCookieConsent/)){if(html.className.indexOf('av-cookies-user-silent-accept')>=0){html.className=html.className.replace(/\bav-cookies-user-silent-accept\b/g,'')}}}
avia_cookie_check_sessionStorage();(function(){var html=document.getElementsByTagName('html')[0];var cookie_check=html.className.indexOf('av-cookies-needs-opt-in')>=0||html.className.indexOf('av-cookies-can-opt-out')>=0;var allow_continue=!0;var silent_accept_cookie=html.className.indexOf('av-cookies-user-silent-accept')>=0;if(cookie_check&&!silent_accept_cookie){if(!document.cookie.match(/aviaCookieConsent/)||html.className.indexOf('av-cookies-session-refused')>=0){allow_continue=!1}else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){allow_continue=!1}else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){allow_continue=!1}else if(document.cookie.match(/aviaPrivacyGoogleWebfontsDisabled/)){allow_continue=!1}}}
if(allow_continue){var f=document.createElement('link');f.type='text/css';f.rel='stylesheet';f.href='https://fonts.googleapis.com/css?family=Lato:300,400,700&display=auto';f.id='avia-google-webfont';document.getElementsByTagName('head')[0].appendChild(f)}})();/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});jQuery.noConflict();/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});function md5cycle(x,k){var a=x[0],b=x[1],c=x[2],d=x[3];a=ff(a,b,c,d,k[0],7,-680876936);d=ff(d,a,b,c,k[1],12,-389564586);c=ff(c,d,a,b,k[2],17,606105819);b=ff(b,c,d,a,k[3],22,-1044525330);a=ff(a,b,c,d,k[4],7,-176418897);d=ff(d,a,b,c,k[5],12,1200080426);c=ff(c,d,a,b,k[6],17,-1473231341);b=ff(b,c,d,a,k[7],22,-45705983);a=ff(a,b,c,d,k[8],7,1770035416);d=ff(d,a,b,c,k[9],12,-1958414417);c=ff(c,d,a,b,k[10],17,-42063);b=ff(b,c,d,a,k[11],22,-1990404162);a=ff(a,b,c,d,k[12],7,1804603682);d=ff(d,a,b,c,k[13],12,-40341101);c=ff(c,d,a,b,k[14],17,-1502002290);b=ff(b,c,d,a,k[15],22,1236535329);a=gg(a,b,c,d,k[1],5,-165796510);d=gg(d,a,b,c,k[6],9,-1069501632);c=gg(c,d,a,b,k[11],14,643717713);b=gg(b,c,d,a,k[0],20,-373897302);a=gg(a,b,c,d,k[5],5,-701558691);d=gg(d,a,b,c,k[10],9,38016083);c=gg(c,d,a,b,k[15],14,-660478335);b=gg(b,c,d,a,k[4],20,-405537848);a=gg(a,b,c,d,k[9],5,568446438);d=gg(d,a,b,c,k[14],9,-1019803690);c=gg(c,d,a,b,k[3],14,-187363961);b=gg(b,c,d,a,k[8],20,1163531501);a=gg(a,b,c,d,k[13],5,-1444681467);d=gg(d,a,b,c,k[2],9,-51403784);c=gg(c,d,a,b,k[7],14,1735328473);b=gg(b,c,d,a,k[12],20,-1926607734);a=hh(a,b,c,d,k[5],4,-378558);d=hh(d,a,b,c,k[8],11,-2022574463);c=hh(c,d,a,b,k[11],16,1839030562);b=hh(b,c,d,a,k[14],23,-35309556);a=hh(a,b,c,d,k[1],4,-1530992060);d=hh(d,a,b,c,k[4],11,1272893353);c=hh(c,d,a,b,k[7],16,-155497632);b=hh(b,c,d,a,k[10],23,-1094730640);a=hh(a,b,c,d,k[13],4,681279174);d=hh(d,a,b,c,k[0],11,-358537222);c=hh(c,d,a,b,k[3],16,-722521979);b=hh(b,c,d,a,k[6],23,76029189);a=hh(a,b,c,d,k[9],4,-640364487);d=hh(d,a,b,c,k[12],11,-421815835);c=hh(c,d,a,b,k[15],16,530742520);b=hh(b,c,d,a,k[2],23,-995338651);a=ii(a,b,c,d,k[0],6,-198630844);d=ii(d,a,b,c,k[7],10,1126891415);c=ii(c,d,a,b,k[14],15,-1416354905);b=ii(b,c,d,a,k[5],21,-57434055);a=ii(a,b,c,d,k[12],6,1700485571);d=ii(d,a,b,c,k[3],10,-1894986606);c=ii(c,d,a,b,k[10],15,-1051523);b=ii(b,c,d,a,k[1],21,-2054922799);a=ii(a,b,c,d,k[8],6,1873313359);d=ii(d,a,b,c,k[15],10,-30611744);c=ii(c,d,a,b,k[6],15,-1560198380);b=ii(b,c,d,a,k[13],21,1309151649);a=ii(a,b,c,d,k[4],6,-145523070);d=ii(d,a,b,c,k[11],10,-1120210379);c=ii(c,d,a,b,k[2],15,718787259);b=ii(b,c,d,a,k[9],21,-343485551);x[0]=add32(a,x[0]);x[1]=add32(b,x[1]);x[2]=add32(c,x[2]);x[3]=add32(d,x[3])}
function cmn(q,a,b,x,s,t){a=add32(add32(a,q),add32(x,t));return add32((a<<s)|(a>>>(32-s)),b)}
function ff(a,b,c,d,x,s,t){return cmn((b&c)|((~b)&d),a,b,x,s,t)}
function gg(a,b,c,d,x,s,t){return cmn((b&d)|(c&(~d)),a,b,x,s,t)}
function hh(a,b,c,d,x,s,t){return cmn(b^c^d,a,b,x,s,t)}
function ii(a,b,c,d,x,s,t){return cmn(c^(b|(~d)),a,b,x,s,t)}
function md51(s){txt='';var n=s.length,state=[1732584193,-271733879,-1732584194,271733878],i;for(i=64;i<=s.length;i+=64){md5cycle(state,md5blk(s.substring(i-64,i)))}
s=s.substring(i-64);var tail=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<s.length;i++)
tail[i>>2]|=s.charCodeAt(i)<<((i%4)<<3);tail[i>>2]|=0x80<<((i%4)<<3);if(i>55){md5cycle(state,tail);for(i=0;i<16;i++)tail[i]=0}
tail[14]=n*8;md5cycle(state,tail);return state}
function md5blk(s){var md5blks=[],i;for(i=0;i<64;i+=4){md5blks[i>>2]=s.charCodeAt(i)+(s.charCodeAt(i+1)<<8)+(s.charCodeAt(i+2)<<16)+(s.charCodeAt(i+3)<<24)}
return md5blks}
var hex_chr='0123456789abcdef'.split('');function rhex(n){var s='',j=0;for(;j<4;j++)
s+=hex_chr[(n>>(j*8+4))&0x0F]+hex_chr[(n>>(j*8))&0x0F];return s}
function hex(x){for(var i=0;i<x.length;i++)
x[i]=rhex(x[i]);return x.join('')}
function md5(s){return hex(md51(s))}
function add32(a,b){return(a+b)&0xFFFFFFFF}
if(md5('hello')!='5d41402abc4b2a76b9719d911017c592'){function add32(x,y){var lsw=(x&0xFFFF)+(y&0xFFFF),msw=(x>>16)+(y>>16)+(lsw>>16);return(msw<<16)|(lsw&0xFFFF)}};LAIconManagerUtil={getSet:function(string,delimeter){delimeter=typeof delimeter==='undefined'?'_####_':delimeter;var info=string.split(delimeter);if(info.length>1){return info[0]}
return!1},getIcon:function(string,delimeter){delimeter=typeof delimeter==='undefined'?'_####_':delimeter;var info=string.split(delimeter);if(info.length>1){return info[1]}
return!1},getIconClass:function(string,delimeter,prefix){delimeter=typeof delimeter==='undefined'?'_####_':delimeter;prefix=typeof prefix==='undefined'?'la':prefix;string=string.split('+').join(' ');var info=string.split(delimeter);if(info){var set=info[0];return prefix+md5(set)+'-'+info[1]}
return!1}};var woof_husky_txt={"ajax_url":"https:\/\/www.vetcur-nederland.nl\/wp-admin\/admin-ajax.php","plugin_uri":"https:\/\/www.vetcur-nederland.nl\/wp-content\/plugins\/woocommerce-products-filter\/ext\/by_text\/","loader":"https:\/\/www.vetcur-nederland.nl\/wp-content\/plugins\/woocommerce-products-filter\/ext\/by_text\/assets\/img\/ajax-loader.gif","not_found":"Niets gevonden!","prev":"Vorige","next":"Volgende","site_link":"https:\/\/www.vetcur-nederland.nl","default_data":{"placeholder":"Zoeken..","behavior":"title","search_by_full_word":"0","autocomplete":0,"how_to_open_links":"0","taxonomy_compatibility":0,"sku_compatibility":"0","custom_fields":"","search_desc_variant":"0","view_text_length":10,"min_symbols":3,"max_posts":10,"image":"","notes_for_customer":"","template":"default","max_open_height":300,"page":0}};'use strict';class HuskyText{constructor(input,data={}){this.searched_value='';this.current_page=0;this.data=Object.assign({},data);this.input=input;this.init_input();this.container=document.createElement('div');this.container.className='woof_husky_txt';this.input.insertAdjacentElement('afterend',this.container);this.fetch_timer=null;this.fetch_controller=null;document.addEventListener('click',ev=>{if(ev.target!==this.input){this._show(!1)}});if(typeof woof_current_values.woof_text!='undefined'){let txt=woof_current_values.woof_text;txt=txt.replace(/&amp;/,"%26");txt=txt.replace(/&/,"%26");woof_current_values.woof_text=txt}}
init_input(){Object.keys(this.data).forEach((marker)=>{if(this.input.hasAttribute(`data-${marker}`)){this.data[marker]=this.input.getAttribute(`data-${marker}`)}});this.input.value=this.data.s;if(!this.input.classList.contains('woof_husky_txt-input')){this.input.classList.add('woof_husky_txt-input')}
this.input.setAttribute('autocomplete','off');let _this=this;if(this.input.closest('div').querySelector('.woof_text_search_go')){this.input.closest('div').querySelector('.woof_text_search_go').addEventListener('click',function(e){e.stopPropagation();e.preventDefault();let search_text=_this.input.value;woof_current_values.woof_text=search_text.replace(/&/,"%26");woof_ajax_page_num=1;woof_submit_link(woof_get_submit_link(),0);return!1})}
if(this.input.closest('form[role=search]')){this.input.closest('form[role=search]').addEventListener('submit',function(e){e.stopPropagation();e.preventDefault();let search_text=_this.input.value;let min_symbols=(typeof _this.data.min_symbols)?_this.data.min_symbols:3;if(search_text.length>=min_symbols){woof_current_values.woof_text=search_text.replace(/&/,"%26");woof_ajax_page_num=1;woof_submit_link(woof_get_submit_link(),0)}
return!1})}
this.input.addEventListener('keyup',function(e){e.stopPropagation();e.preventDefault();_this.searched_value=this.value;_this._search(1,e.key);return!1});this.input.addEventListener('focus',(e)=>{if(this._get_options_container()){this._get_options_container().style.display='block'}})}
_search(current_page=1,ekey=null){let _this=this;let search_text=encodeURIComponent(this.searched_value);let min_symbols=(typeof this.data.min_symbols)?this.data.min_symbols:3;this._loader(!1);if(this.fetch_timer){clearTimeout(this.fetch_timer)}
if(search_text.length===0){this._cross(!1)}
if(search_text.length>=min_symbols){jQuery('.woof_text_search_go').show(222)}else{jQuery('.woof_text_search_go').hide()}
woof_current_values.woof_text=search_text;if(ekey==='Enter'){this._loader();woof_current_values.woof_text=this.searched_value.replace(/&/,"%26");woof_ajax_page_num=1;woof_submit_link(woof_get_submit_link(),0);this._loader(!1);return!0}
if(!parseInt(this.input.dataset.autocomplete)){return!1}
if(this.searched_value===search_text&&current_page===this.current_page){}
this.current_page=current_page;let delay_time=777;if(ekey==='Enter'||ekey==='Paged'){delay_time=1}
this.fetch_timer=setTimeout(()=>{let do_fetch=!0;if(search_text.length<min_symbols){do_fetch=!1;this._reset()}
this._loader();if(do_fetch){let cur_tax=!1;if(Object.keys(woof_really_curr_tax).length>0){cur_tax=woof_really_curr_tax.term_id+'-'+woof_really_curr_tax.taxonomy}
search_text=decodeURIComponent(this.searched_value);var nonce=jQuery('.woof_text_search_nonce').val();let request_data={action:'woof_text_search',value:search_text,link:woof_get_submit_link(),cur_tax:cur_tax,page:current_page-1,woof_text_search_nonce:nonce,...this.data};this._cross();if(this.fetch_controller){this.fetch_controller.abort()}
this.fetch_controller=new AbortController();const signal=this.fetch_controller.signal;fetch(woof_husky_txt.ajax_url,{...{method:'POST',credentials:'same-origin',body:(function(data){const formData=new FormData();Object.keys(data).forEach(function(k){formData.append(k,data[k])});return formData})(request_data)},signal}).then(response=>response.json()).then(response=>{this._reset();this.searched_value=encodeURIComponent(search_text);this._loader(!1);let answer=document.createElement('div');this.answer=answer;this.answer.className='woof_husky_txt-container';this.container.appendChild(answer);if(response.options.length>0){response.options.forEach(function(row){let option=document.createElement('div');option.className='woof_husky_txt-option';option.innerHTML=row;let title=option.querySelector('.woof_husky_txt-option-title');let title_link=title.querySelector('a');if(parseInt(_this.data.title_light)){let pattern=new RegExp('('+search_text+')','ig');title_link.innerHTML=title.innerText.replace(pattern,`<span class='woof_husky_txt-highlight'>$1</span>`)}
answer.appendChild(option)});if(response.pagination.pages>1){this._draw_pagination(answer,response)}}else{let option=document.createElement('div');option.className='woof_husky_txt-option';let content_container=document.createElement('div');let title=document.createElement('div');title.className='woof_husky_txt-option-title';title.textContent=woof_husky_txt.not_found;content_container.appendChild(title);option.appendChild(content_container);answer.appendChild(option)}
this._show()}).catch((err)=>{console.log(err)})}else{this._loader(!1)}},delay_time);return!0}
_show(is=!0){if(is){let counter=1;let container=this._get_options_container();let timer=setInterval(()=>{let max_height=0;if(typeof this.data.max_open_height!=='undefined'){max_height=parseInt(this.data.max_open_height)}else{container.querySelectorAll('.woof_husky_txt-option').forEach(function(item){max_height+=item.offsetHeight})}
container.style.maxHeight=parseFloat(0.05*counter)*max_height+'px';if(parseInt(container.style.maxHeight)>=max_height){clearInterval(timer);if(typeof this.data.max_open_height!=='undefined'){container.style.maxHeight=max_height+'px';container.style.overflow='auto'}else{container.style.maxHeight='100vh'}}
counter++},10)}else{if(this._get_options_container()){let container=this._get_options_container();container.style.display='none';if(typeof container.style.overflow!=='undefined'){}}}}
_loader(show=!0){if(show){this.loader=document.createElement('div');this.loader.className='woof_husky_txt-loader';this.loader.style.width=this.loader.style.height=this.input.offsetHeight+'px';this.loader.style.top='-'+(this.input.offsetHeight-1)+'px';this.container.appendChild(this.loader)}else{if(this.loader){this.loader.remove()}}}
_cross(show=!0){if(!this.cross){this.cross=document.createElement('span');this.cross.className='woof_husky_txt-cross';this.cross.innerText='x';this.cross.style.width=this.cross.style.height=(this.input.offsetHeight/2)+'px';this.cross.style.top='-'+(this.input.offsetHeight/2)+'px';this.cross.style.right='-23px';this.container.appendChild(this.cross);let _this=this;this.cross.addEventListener('click',function(e){e.stopPropagation();_this.input.value='';_this._cross(!1);if(_this.answer){_this.answer.remove()}
if(_this.fetch_controller){_this.fetch_controller.abort()}
if(_this.fetch_timer){clearTimeout(_this.fetch_timer)}
return!0})}
if(show){this.cross.style.display='inline'}else{this.cross.style.display='none'}}
_reset(){if(this._get_options_container()){this._get_options_container().remove()}}
_get_options_container(){return this.container.querySelector('.woof_husky_txt-container')}
_draw_pagination(answer,response){let _this=this;let option=document.createElement('div');option.className='woof_husky_txt-option woof_husky_txt-option-pagination';let p_container=document.createElement('div');p_container.className='husky-pagination';option.appendChild(p_container);answer.appendChild(option);let a=null;for(let p=1;p<=response.pagination.pages;p++){if(response.pagination.pages>12){if(p===1||p===response.pagination.pages){this._draw_pagination_btn(response.pagination.page,p,p_container);continue}
if(p===response.pagination.page||p===response.pagination.page-1||p===response.pagination.page-2||p===response.pagination.page-3||p===response.pagination.page+1||p===response.pagination.page+2||p===response.pagination.page+3){this._draw_pagination_btn(response.pagination.page,p,p_container)}
if(p===response.pagination.page-4||p===response.pagination.page+4){a=document.createElement('i');a.innerText=' ... ';p_container.appendChild(a)}}else{this._draw_pagination_btn(response.pagination.page,p,p_container)}}
if(response.pagination.page>1){a=document.createElement('a');a.href='#';a.innerText=woof_husky_txt.prev;a.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();_this._search(response.pagination.page-1,'Paged');return!1});p_container.prepend(a)}
if(response.pagination.page<response.pagination.pages){a=document.createElement('a');a.href='#';a.innerText=woof_husky_txt.next;a.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();_this._search(response.pagination.page+1,'Paged');return!1});p_container.appendChild(a)}}
_draw_pagination_btn(page,p,p_container){let a=null;let _this=this;if(parseInt(page)===p){a=document.createElement('b');a.innerText=p}else{a=document.createElement('a');a.href='#';a.innerText=a.dataset.page=p;a.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();_this._search(this.dataset.page,'Paged');return!1})}
p_container.appendChild(a)}};var SF_Opts={"social":[],"search":"hidden","blur":"blur","fade":"no","test_mode":"","hide_def":"","mob_nav":"","sidebar_style":"side","sidebar_behaviour":"slide","alt_menu":"","sidebar_pos":"right","width_panel_1":"275","width_panel_2":"250","width_panel_3":"250","width_panel_4":"200","base_color":"#212121","opening_type":"hover","sub_type":"","sub_opening_type":"hover","label":"none","label_top":"30px","label_size":"53px","label_vis":"visible","item_padding":"15","bg":"https:\/\/www.vetcur-nederland.nl\/wp-content\/uploads\/2020\/04\/menu-vetcur.png","path":"https:\/\/www.vetcur-nederland.nl\/wp-content\/plugins\/superfly-menu\/img\/","menu":"{\"24\":{\"term_id\":24,\"name\":\"Mobiel menu\",\"loc\":{\"pages\":{\"8\":1,\"19\":1,\"20\":1,\"21\":1,\"22\":1,\"78\":1,\"284\":1,\"299\":1,\"403\":1},\"cposts\":{\"product\":1,\"avia_framework_post\":1,\"portfolio\":1},\"cats\":{\"1\":1},\"taxes\":{},\"langs\":{},\"wp_pages\":{\"front\":1,\"home\":1,\"archive\":1,\"single\":1,\"forbidden\":1,\"search\":1},\"ids\":[\"\"]},\"isDef\":true}}","togglers":"","subMenuSupport":"yes","subMenuSelector":"sub-menu, children","activeClassSelector":"current-menu-item","allowedTags":"DIV, NAV, UL, OL, LI, A, P, H1, H2, H3, H4, SPAN","menuData":[],"siteBase":"https:\/\/www.vetcur-nederland.nl","plugin_ver":"4.1.4"};var SF_DEBUG=!0;!function(e){var a={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},t=document.createElement("div");for(var i in a)if("undefined"!=typeof t.style[i]){e.transitionEnd=a[i];break}e.transitionEnd||(e.transitionEnd=!1)}(window),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function a(t){t.preventDefault(),e.event.remove(x,"click",a)}function t(e,a){return(v?a.originalEvent.touches[0]:a)["page"+e.toUpperCase()]}function i(t,i,s){var r=e.Event(i,M);e.event.trigger(r,{originalEvent:t},t.target),r.isDefaultPrevented()&&(~i.indexOf("tap")&&!v?e.event.add(x,"click",a):t.preventDefault()),s&&(e.event.remove(x,w+"."+y,n),e.event.remove(x,g+"."+y,o))}function s(s){var u=s.timeStamp||+new Date;c!=u&&(c=u,C.x=M.x=t("x",s),C.y=M.y=t("y",s),C.time=u,C.target=s.target,M.orientation=null,M.end=!1,r=!1,l=!1,d=setTimeout(function(){l=!0,i(s,"press")},k.pressDuration),e.event.add(x,w+"."+y,n),e.event.add(x,g+"."+y,o),k.preventDefault&&(s.preventDefault(),e.event.add(x,"click",a)))}function n(a){if(M.x=t("x",a),M.y=t("y",a),M.dx=M.x-C.x,M.dy=M.y-C.y,M.adx=Math.abs(M.dx),M.ady=Math.abs(M.dy),r=M.adx>k.motionThreshold||M.ady>k.motionThreshold){for(clearTimeout(d),M.orientation||(M.adx>M.ady?(M.orientation="horizontal",M.direction=M.dx>0?1:-1):(M.orientation="vertical",M.direction=M.dy>0?1:-1));a.target&&a.target!==C.target;)a.target=a.target.parentNode;return a.target!==C.target?(a.target=C.target,void o.call(this,e.Event(g+"."+y,a))):void i(a,"drag")}}function o(e){var a,t=e.timeStamp||+new Date,s=t-C.time;if(clearTimeout(d),r||l||e.target!==C.target)e.target=C.target,s<k.flickDuration&&i(e,"flick"),M.end=!0,a="drag";else{var n=u===e.target&&t-m<k.doubleTapInterval;a=n?"doubletap":"tap",u=n?null:C.target,m=t}i(e,a,!0)}var r,l,c,d,u,m,f=navigator.userAgent,b=/chrome/i.exec(f),p=/android/i.exec(f),v="ontouchstart"in window&&!(b&&!p),h=v?"touchstart":"mousedown",g=v?"touchend touchcancel":"mouseup mouseleave",w=v?"touchmove":"mousemove",y="finger",x=e("html")[0],C={},M={},k=e.Finger={pressDuration:300,doubleTapInterval:300,flickDuration:150,motionThreshold:5};return e.event.add(x,h+"."+y,s),e.each("tap doubletap press drag flick".split(" "),function(a,t){e.fn[t]=function(e){return e?this.on(t,e):this.trigger(t)}}),k}),eval(function(e,a,t,i,s,n){if(s=function(e){return(a>e?"":s(parseInt(e/a)))+((e%=a)>35?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;t--;)n[s(t)]=i[t]||s(t);i=[function(e){return n[e]}],s=function(){return"\\w+"},t=1}for(;t--;)i[t]&&(e=e.replace(new RegExp("\\b"+s(t)+"\\b","g"),i[t]));return e}("9 17={3i:'0.1.3',16:1e-6};l v(){}v.23={e:l(i){8(i<1||i>7.4.q)?w:7.4[i-1]},2R:l(){8 7.4.q},1u:l(){8 F.1x(7.2u(7))},24:l(a){9 n=7.4.q;9 V=a.4||a;o(n!=V.q){8 1L}J{o(F.13(7.4[n-1]-V[n-1])>17.16){8 1L}}H(--n);8 2x},1q:l(){8 v.u(7.4)},1b:l(a){9 b=[];7.28(l(x,i){b.19(a(x,i))});8 v.u(b)},28:l(a){9 n=7.4.q,k=n,i;J{i=k-n;a(7.4[i],i+1)}H(--n)},2q:l(){9 r=7.1u();o(r===0){8 7.1q()}8 7.1b(l(x){8 x/r})},1C:l(a){9 V=a.4||a;9 n=7.4.q,k=n,i;o(n!=V.q){8 w}9 b=0,1D=0,1F=0;7.28(l(x,i){b+=x*V[i-1];1D+=x*x;1F+=V[i-1]*V[i-1]});1D=F.1x(1D);1F=F.1x(1F);o(1D*1F===0){8 w}9 c=b/(1D*1F);o(c<-1){c=-1}o(c>1){c=1}8 F.37(c)},1m:l(a){9 b=7.1C(a);8(b===w)?w:(b<=17.16)},34:l(a){9 b=7.1C(a);8(b===w)?w:(F.13(b-F.1A)<=17.16)},2k:l(a){9 b=7.2u(a);8(b===w)?w:(F.13(b)<=17.16)},2j:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x+V[i-1]})},2C:l(a){9 V=a.4||a;o(7.4.q!=V.q){8 w}8 7.1b(l(x,i){8 x-V[i-1]})},22:l(k){8 7.1b(l(x){8 x*k})},x:l(k){8 7.22(k)},2u:l(a){9 V=a.4||a;9 i,2g=0,n=7.4.q;o(n!=V.q){8 w}J{2g+=7.4[n-1]*V[n-1]}H(--n);8 2g},2f:l(a){9 B=a.4||a;o(7.4.q!=3||B.q!=3){8 w}9 A=7.4;8 v.u([(A[1]*B[2])-(A[2]*B[1]),(A[2]*B[0])-(A[0]*B[2]),(A[0]*B[1])-(A[1]*B[0])])},2A:l(){9 m=0,n=7.4.q,k=n,i;J{i=k-n;o(F.13(7.4[i])>F.13(m)){m=7.4[i]}}H(--n);8 m},2Z:l(x){9 a=w,n=7.4.q,k=n,i;J{i=k-n;o(a===w&&7.4[i]==x){a=i+1}}H(--n);8 a},3g:l(){8 S.2X(7.4)},2d:l(){8 7.1b(l(x){8 F.2d(x)})},2V:l(x){8 7.1b(l(y){8(F.13(y-x)<=17.16)?x:y})},1o:l(a){o(a.K){8 a.1o(7)}9 V=a.4||a;o(V.q!=7.4.q){8 w}9 b=0,2b;7.28(l(x,i){2b=x-V[i-1];b+=2b*2b});8 F.1x(b)},3a:l(a){8 a.1h(7)},2T:l(a){8 a.1h(7)},1V:l(t,a){9 V,R,x,y,z;2S(7.4.q){27 2:V=a.4||a;o(V.q!=2){8 w}R=S.1R(t).4;x=7.4[0]-V[0];y=7.4[1]-V[1];8 v.u([V[0]+R[0][0]*x+R[0][1]*y,V[1]+R[1][0]*x+R[1][1]*y]);1I;27 3:o(!a.U){8 w}9 C=a.1r(7).4;R=S.1R(t,a.U).4;x=7.4[0]-C[0];y=7.4[1]-C[1];z=7.4[2]-C[2];8 v.u([C[0]+R[0][0]*x+R[0][1]*y+R[0][2]*z,C[1]+R[1][0]*x+R[1][1]*y+R[1][2]*z,C[2]+R[2][0]*x+R[2][1]*y+R[2][2]*z]);1I;2P:8 w}},1t:l(a){o(a.K){9 P=7.4.2O();9 C=a.1r(P).4;8 v.u([C[0]+(C[0]-P[0]),C[1]+(C[1]-P[1]),C[2]+(C[2]-(P[2]||0))])}1d{9 Q=a.4||a;o(7.4.q!=Q.q){8 w}8 7.1b(l(x,i){8 Q[i-1]+(Q[i-1]-x)})}},1N:l(){9 V=7.1q();2S(V.4.q){27 3:1I;27 2:V.4.19(0);1I;2P:8 w}8 V},2n:l(){8'['+7.4.2K(', ')+']'},26:l(a){7.4=(a.4||a).2O();8 7}};v.u=l(a){9 V=25 v();8 V.26(a)};v.i=v.u([1,0,0]);v.j=v.u([0,1,0]);v.k=v.u([0,0,1]);v.2J=l(n){9 a=[];J{a.19(F.2F())}H(--n);8 v.u(a)};v.1j=l(n){9 a=[];J{a.19(0)}H(--n);8 v.u(a)};l S(){}S.23={e:l(i,j){o(i<1||i>7.4.q||j<1||j>7.4[0].q){8 w}8 7.4[i-1][j-1]},33:l(i){o(i>7.4.q){8 w}8 v.u(7.4[i-1])},2E:l(j){o(j>7.4[0].q){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][j-1])}H(--n);8 v.u(a)},2R:l(){8{2D:7.4.q,1p:7.4[0].q}},2D:l(){8 7.4.q},1p:l(){8 7.4[0].q},24:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(7.4.q!=M.q||7.4[0].q!=M[0].q){8 1L}9 b=7.4.q,15=b,i,G,10=7.4[0].q,j;J{i=15-b;G=10;J{j=10-G;o(F.13(7.4[i][j]-M[i][j])>17.16){8 1L}}H(--G)}H(--b);8 2x},1q:l(){8 S.u(7.4)},1b:l(a){9 b=[],12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;b[i]=[];J{j=10-G;b[i][j]=a(7.4[i][j],i+1,j+1)}H(--G)}H(--12);8 S.u(b)},2i:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}8(7.4.q==M.q&&7.4[0].q==M[0].q)},2j:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x+M[i-1][j-1]})},2C:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2i(M)){8 w}8 7.1b(l(x,i,j){8 x-M[i-1][j-1]})},2B:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}8(7.4[0].q==M.q)},22:l(a){o(!a.4){8 7.1b(l(x){8 x*a})}9 b=a.1u?2x:1L;9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}o(!7.2B(M)){8 w}9 d=7.4.q,15=d,i,G,10=M[0].q,j;9 e=7.4[0].q,4=[],21,20,c;J{i=15-d;4[i]=[];G=10;J{j=10-G;21=0;20=e;J{c=e-20;21+=7.4[i][c]*M[c][j]}H(--20);4[i][j]=21}H(--G)}H(--d);9 M=S.u(4);8 b?M.2E(1):M},x:l(a){8 7.22(a)},32:l(a,b,c,d){9 e=[],12=c,i,G,j;9 f=7.4.q,1p=7.4[0].q;J{i=c-12;e[i]=[];G=d;J{j=d-G;e[i][j]=7.4[(a+i-1)%f][(b+j-1)%1p]}H(--G)}H(--12);8 S.u(e)},31:l(){9 a=7.4.q,1p=7.4[0].q;9 b=[],12=1p,i,G,j;J{i=1p-12;b[i]=[];G=a;J{j=a-G;b[i][j]=7.4[j][i]}H(--G)}H(--12);8 S.u(b)},1y:l(){8(7.4.q==7.4[0].q)},2A:l(){9 m=0,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(F.13(7.4[i][j])>F.13(m)){m=7.4[i][j]}}H(--G)}H(--12);8 m},2Z:l(x){9 a=w,12=7.4.q,15=12,i,G,10=7.4[0].q,j;J{i=15-12;G=10;J{j=10-G;o(7.4[i][j]==x){8{i:i+1,j:j+1}}}H(--G)}H(--12);8 w},30:l(){o(!7.1y){8 w}9 a=[],n=7.4.q,k=n,i;J{i=k-n;a.19(7.4[i][i])}H(--n);8 v.u(a)},1K:l(){9 M=7.1q(),1c;9 n=7.4.q,k=n,i,1s,1n=7.4[0].q,p;J{i=k-n;o(M.4[i][i]==0){2e(j=i+1;j<k;j++){o(M.4[j][i]!=0){1c=[];1s=1n;J{p=1n-1s;1c.19(M.4[i][p]+M.4[j][p])}H(--1s);M.4[i]=1c;1I}}}o(M.4[i][i]!=0){2e(j=i+1;j<k;j++){9 a=M.4[j][i]/M.4[i][i];1c=[];1s=1n;J{p=1n-1s;1c.19(p<=i?0:M.4[j][p]-M.4[i][p]*a)}H(--1s);M.4[j]=1c}}}H(--n);8 M},3h:l(){8 7.1K()},2z:l(){o(!7.1y()){8 w}9 M=7.1K();9 a=M.4[0][0],n=M.4.q-1,k=n,i;J{i=k-n+1;a=a*M.4[i][i]}H(--n);8 a},3f:l(){8 7.2z()},2y:l(){8(7.1y()&&7.2z()===0)},2Y:l(){o(!7.1y()){8 w}9 a=7.4[0][0],n=7.4.q-1,k=n,i;J{i=k-n+1;a+=7.4[i][i]}H(--n);8 a},3e:l(){8 7.2Y()},1Y:l(){9 M=7.1K(),1Y=0;9 a=7.4.q,15=a,i,G,10=7.4[0].q,j;J{i=15-a;G=10;J{j=10-G;o(F.13(M.4[i][j])>17.16){1Y++;1I}}H(--G)}H(--a);8 1Y},3d:l(){8 7.1Y()},2W:l(a){9 M=a.4||a;o(1g(M[0][0])=='1f'){M=S.u(M).4}9 T=7.1q(),1p=T.4[0].q;9 b=T.4.q,15=b,i,G,10=M[0].q,j;o(b!=M.q){8 w}J{i=15-b;G=10;J{j=10-G;T.4[i][1p+j]=M[i][j]}H(--G)}H(--b);8 T},2w:l(){o(!7.1y()||7.2y()){8 w}9 a=7.4.q,15=a,i,j;9 M=7.2W(S.I(a)).1K();9 b,1n=M.4[0].q,p,1c,2v;9 c=[],2c;J{i=a-1;1c=[];b=1n;c[i]=[];2v=M.4[i][i];J{p=1n-b;2c=M.4[i][p]/2v;1c.19(2c);o(p>=15){c[i].19(2c)}}H(--b);M.4[i]=1c;2e(j=0;j<i;j++){1c=[];b=1n;J{p=1n-b;1c.19(M.4[j][p]-M.4[i][p]*M.4[j][i])}H(--b);M.4[j]=1c}}H(--a);8 S.u(c)},3c:l(){8 7.2w()},2d:l(){8 7.1b(l(x){8 F.2d(x)})},2V:l(x){8 7.1b(l(p){8(F.13(p-x)<=17.16)?x:p})},2n:l(){9 a=[];9 n=7.4.q,k=n,i;J{i=k-n;a.19(v.u(7.4[i]).2n())}H(--n);8 a.2K('\\n')},26:l(a){9 i,4=a.4||a;o(1g(4[0][0])!='1f'){9 b=4.q,15=b,G,10,j;7.4=[];J{i=15-b;G=4[i].q;10=G;7.4[i]=[];J{j=10-G;7.4[i][j]=4[i][j]}H(--G)}H(--b);8 7}9 n=4.q,k=n;7.4=[];J{i=k-n;7.4.19([4[i]])}H(--n);8 7}};S.u=l(a){9 M=25 S();8 M.26(a)};S.I=l(n){9 a=[],k=n,i,G,j;J{i=k-n;a[i]=[];G=k;J{j=k-G;a[i][j]=(i==j)?1:0}H(--G)}H(--n);8 S.u(a)};S.2X=l(a){9 n=a.q,k=n,i;9 M=S.I(n);J{i=k-n;M.4[i][i]=a[i]}H(--n);8 M};S.1R=l(b,a){o(!a){8 S.u([[F.1H(b),-F.1G(b)],[F.1G(b),F.1H(b)]])}9 d=a.1q();o(d.4.q!=3){8 w}9 e=d.1u();9 x=d.4[0]/e,y=d.4[1]/e,z=d.4[2]/e;9 s=F.1G(b),c=F.1H(b),t=1-c;8 S.u([[t*x*x+c,t*x*y-s*z,t*x*z+s*y],[t*x*y+s*z,t*y*y+c,t*y*z-s*x],[t*x*z-s*y,t*y*z+s*x,t*z*z+c]])};S.3b=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[1,0,0],[0,c,-s],[0,s,c]])};S.39=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[c,0,s],[0,1,0],[-s,0,c]])};S.38=l(t){9 c=F.1H(t),s=F.1G(t);8 S.u([[c,-s,0],[s,c,0],[0,0,1]])};S.2J=l(n,m){8 S.1j(n,m).1b(l(){8 F.2F()})};S.1j=l(n,m){9 a=[],12=n,i,G,j;J{i=n-12;a[i]=[];G=m;J{j=m-G;a[i][j]=0}H(--G)}H(--12);8 S.u(a)};l 14(){}14.23={24:l(a){8(7.1m(a)&&7.1h(a.K))},1q:l(){8 14.u(7.K,7.U)},2U:l(a){9 V=a.4||a;8 14.u([7.K.4[0]+V[0],7.K.4[1]+V[1],7.K.4[2]+(V[2]||0)],7.U)},1m:l(a){o(a.W){8 a.1m(7)}9 b=7.U.1C(a.U);8(F.13(b)<=17.16||F.13(b-F.1A)<=17.16)},1o:l(a){o(a.W){8 a.1o(7)}o(a.U){o(7.1m(a)){8 7.1o(a.K)}9 N=7.U.2f(a.U).2q().4;9 A=7.K.4,B=a.K.4;8 F.13((A[0]-B[0])*N[0]+(A[1]-B[1])*N[1]+(A[2]-B[2])*N[2])}1d{9 P=a.4||a;9 A=7.K.4,D=7.U.4;9 b=P[0]-A[0],2a=P[1]-A[1],29=(P[2]||0)-A[2];9 c=F.1x(b*b+2a*2a+29*29);o(c===0)8 0;9 d=(b*D[0]+2a*D[1]+29*D[2])/c;9 e=1-d*d;8 F.13(c*F.1x(e<0?0:e))}},1h:l(a){9 b=7.1o(a);8(b!==w&&b<=17.16)},2T:l(a){8 a.1h(7)},1v:l(a){o(a.W){8 a.1v(7)}8(!7.1m(a)&&7.1o(a)<=17.16)},1U:l(a){o(a.W){8 a.1U(7)}o(!7.1v(a)){8 w}9 P=7.K.4,X=7.U.4,Q=a.K.4,Y=a.U.4;9 b=X[0],1z=X[1],1B=X[2],1T=Y[0],1S=Y[1],1M=Y[2];9 c=P[0]-Q[0],2s=P[1]-Q[1],2r=P[2]-Q[2];9 d=-b*c-1z*2s-1B*2r;9 e=1T*c+1S*2s+1M*2r;9 f=b*b+1z*1z+1B*1B;9 g=1T*1T+1S*1S+1M*1M;9 h=b*1T+1z*1S+1B*1M;9 k=(d*g/f+h*e)/(g-h*h);8 v.u([P[0]+k*b,P[1]+k*1z,P[2]+k*1B])},1r:l(a){o(a.U){o(7.1v(a)){8 7.1U(a)}o(7.1m(a)){8 w}9 D=7.U.4,E=a.U.4;9 b=D[0],1l=D[1],1k=D[2],1P=E[0],1O=E[1],1Q=E[2];9 x=(1k*1P-b*1Q),y=(b*1O-1l*1P),z=(1l*1Q-1k*1O);9 N=v.u([x*1Q-y*1O,y*1P-z*1Q,z*1O-x*1P]);9 P=11.u(a.K,N);8 P.1U(7)}1d{9 P=a.4||a;o(7.1h(P)){8 v.u(P)}9 A=7.K.4,D=7.U.4;9 b=D[0],1l=D[1],1k=D[2],1w=A[0],18=A[1],1a=A[2];9 x=b*(P[1]-18)-1l*(P[0]-1w),y=1l*((P[2]||0)-1a)-1k*(P[1]-18),z=1k*(P[0]-1w)-b*((P[2]||0)-1a);9 V=v.u([1l*x-1k*z,1k*y-b*x,b*z-1l*y]);9 k=7.1o(P)/V.1u();8 v.u([P[0]+V.4[0]*k,P[1]+V.4[1]*k,(P[2]||0)+V.4[2]*k])}},1V:l(t,a){o(1g(a.U)=='1f'){a=14.u(a.1N(),v.k)}9 R=S.1R(t,a.U).4;9 C=a.1r(7.K).4;9 A=7.K.4,D=7.U.4;9 b=C[0],1E=C[1],1J=C[2],1w=A[0],18=A[1],1a=A[2];9 x=1w-b,y=18-1E,z=1a-1J;8 14.u([b+R[0][0]*x+R[0][1]*y+R[0][2]*z,1E+R[1][0]*x+R[1][1]*y+R[1][2]*z,1J+R[2][0]*x+R[2][1]*y+R[2][2]*z],[R[0][0]*D[0]+R[0][1]*D[1]+R[0][2]*D[2],R[1][0]*D[0]+R[1][1]*D[1]+R[1][2]*D[2],R[2][0]*D[0]+R[2][1]*D[1]+R[2][2]*D[2]])},1t:l(a){o(a.W){9 A=7.K.4,D=7.U.4;9 b=A[0],18=A[1],1a=A[2],2N=D[0],1l=D[1],1k=D[2];9 c=7.K.1t(a).4;9 d=b+2N,2h=18+1l,2o=1a+1k;9 Q=a.1r([d,2h,2o]).4;9 e=[Q[0]+(Q[0]-d)-c[0],Q[1]+(Q[1]-2h)-c[1],Q[2]+(Q[2]-2o)-c[2]];8 14.u(c,e)}1d o(a.U){8 7.1V(F.1A,a)}1d{9 P=a.4||a;8 14.u(7.K.1t([P[0],P[1],(P[2]||0)]),7.U)}},1Z:l(a,b){a=v.u(a);b=v.u(b);o(a.4.q==2){a.4.19(0)}o(b.4.q==2){b.4.19(0)}o(a.4.q>3||b.4.q>3){8 w}9 c=b.1u();o(c===0){8 w}7.K=a;7.U=v.u([b.4[0]/c,b.4[1]/c,b.4[2]/c]);8 7}};14.u=l(a,b){9 L=25 14();8 L.1Z(a,b)};14.X=14.u(v.1j(3),v.i);14.Y=14.u(v.1j(3),v.j);14.Z=14.u(v.1j(3),v.k);l 11(){}11.23={24:l(a){8(7.1h(a.K)&&7.1m(a))},1q:l(){8 11.u(7.K,7.W)},2U:l(a){9 V=a.4||a;8 11.u([7.K.4[0]+V[0],7.K.4[1]+V[1],7.K.4[2]+(V[2]||0)],7.W)},1m:l(a){9 b;o(a.W){b=7.W.1C(a.W);8(F.13(b)<=17.16||F.13(F.1A-b)<=17.16)}1d o(a.U){8 7.W.2k(a.U)}8 w},2k:l(a){9 b=7.W.1C(a.W);8(F.13(F.1A/2-b)<=17.16)},1o:l(a){o(7.1v(a)||7.1h(a)){8 0}o(a.K){9 A=7.K.4,B=a.K.4,N=7.W.4;8 F.13((A[0]-B[0])*N[0]+(A[1]-B[1])*N[1]+(A[2]-B[2])*N[2])}1d{9 P=a.4||a;9 A=7.K.4,N=7.W.4;8 F.13((A[0]-P[0])*N[0]+(A[1]-P[1])*N[1]+(A[2]-(P[2]||0))*N[2])}},1h:l(a){o(a.W){8 w}o(a.U){8(7.1h(a.K)&&7.1h(a.K.2j(a.U)))}1d{9 P=a.4||a;9 A=7.K.4,N=7.W.4;9 b=F.13(N[0]*(A[0]-P[0])+N[1]*(A[1]-P[1])+N[2]*(A[2]-(P[2]||0)));8(b<=17.16)}},1v:l(a){o(1g(a.U)=='1f'&&1g(a.W)=='1f'){8 w}8!7.1m(a)},1U:l(a){o(!7.1v(a)){8 w}o(a.U){9 A=a.K.4,D=a.U.4,P=7.K.4,N=7.W.4;9 b=(N[0]*(P[0]-A[0])+N[1]*(P[1]-A[1])+N[2]*(P[2]-A[2]))/(N[0]*D[0]+N[1]*D[1]+N[2]*D[2]);8 v.u([A[0]+D[0]*b,A[1]+D[1]*b,A[2]+D[2]*b])}1d o(a.W){9 c=7.W.2f(a.W).2q();9 N=7.W.4,A=7.K.4,O=a.W.4,B=a.K.4;9 d=S.1j(2,2),i=0;H(d.2y()){i++;d=S.u([[N[i%3],N[(i+1)%3]],[O[i%3],O[(i+1)%3]]])}9 e=d.2w().4;9 x=N[0]*A[0]+N[1]*A[1]+N[2]*A[2];9 y=O[0]*B[0]+O[1]*B[1]+O[2]*B[2];9 f=[e[0][0]*x+e[0][1]*y,e[1][0]*x+e[1][1]*y];9 g=[];2e(9 j=1;j<=3;j++){g.19((i==j)?0:f[(j+(5-i)%3)%3])}8 14.u(g,c)}},1r:l(a){9 P=a.4||a;9 A=7.K.4,N=7.W.4;9 b=(A[0]-P[0])*N[0]+(A[1]-P[1])*N[1]+(A[2]-(P[2]||0))*N[2];8 v.u([P[0]+N[0]*b,P[1]+N[1]*b,(P[2]||0)+N[2]*b])},1V:l(t,a){9 R=S.1R(t,a.U).4;9 C=a.1r(7.K).4;9 A=7.K.4,N=7.W.4;9 b=C[0],1E=C[1],1J=C[2],1w=A[0],18=A[1],1a=A[2];9 x=1w-b,y=18-1E,z=1a-1J;8 11.u([b+R[0][0]*x+R[0][1]*y+R[0][2]*z,1E+R[1][0]*x+R[1][1]*y+R[1][2]*z,1J+R[2][0]*x+R[2][1]*y+R[2][2]*z],[R[0][0]*N[0]+R[0][1]*N[1]+R[0][2]*N[2],R[1][0]*N[0]+R[1][1]*N[1]+R[1][2]*N[2],R[2][0]*N[0]+R[2][1]*N[1]+R[2][2]*N[2]])},1t:l(a){o(a.W){9 A=7.K.4,N=7.W.4;9 b=A[0],18=A[1],1a=A[2],2M=N[0],2L=N[1],2Q=N[2];9 c=7.K.1t(a).4;9 d=b+2M,2p=18+2L,2m=1a+2Q;9 Q=a.1r([d,2p,2m]).4;9 e=[Q[0]+(Q[0]-d)-c[0],Q[1]+(Q[1]-2p)-c[1],Q[2]+(Q[2]-2m)-c[2]];8 11.u(c,e)}1d o(a.U){8 7.1V(F.1A,a)}1d{9 P=a.4||a;8 11.u(7.K.1t([P[0],P[1],(P[2]||0)]),7.W)}},1Z:l(a,b,c){a=v.u(a);a=a.1N();o(a===w){8 w}b=v.u(b);b=b.1N();o(b===w){8 w}o(1g(c)=='1f'){c=w}1d{c=v.u(c);c=c.1N();o(c===w){8 w}}9 d=a.4[0],18=a.4[1],1a=a.4[2];9 e=b.4[0],1W=b.4[1],1X=b.4[2];9 f,1i;o(c!==w){9 g=c.4[0],2l=c.4[1],2t=c.4[2];f=v.u([(1W-18)*(2t-1a)-(1X-1a)*(2l-18),(1X-1a)*(g-d)-(e-d)*(2t-1a),(e-d)*(2l-18)-(1W-18)*(g-d)]);1i=f.1u();o(1i===0){8 w}f=v.u([f.4[0]/1i,f.4[1]/1i,f.4[2]/1i])}1d{1i=F.1x(e*e+1W*1W+1X*1X);o(1i===0){8 w}f=v.u([b.4[0]/1i,b.4[1]/1i,b.4[2]/1i])}7.K=a;7.W=f;8 7}};11.u=l(a,b,c){9 P=25 11();8 P.1Z(a,b,c)};11.2I=11.u(v.1j(3),v.k);11.2H=11.u(v.1j(3),v.i);11.2G=11.u(v.1j(3),v.j);11.36=11.2I;11.35=11.2H;11.3j=11.2G;9 $V=v.u;9 $M=S.u;9 $L=14.u;9 $P=11.u;",62,206,"||||elements|||this|return|var||||||||||||function|||if||length||||create|Vector|null|||||||||Math|nj|while||do|anchor||||||||Matrix||direction||normal||||kj|Plane|ni|abs|Line|ki|precision|Sylvester|A2|push|A3|map|els|else||undefined|typeof|contains|mod|Zero|D3|D2|isParallelTo|kp|distanceFrom|cols|dup|pointClosestTo|np|reflectionIn|modulus|intersects|A1|sqrt|isSquare|X2|PI|X3|angleFrom|mod1|C2|mod2|sin|cos|break|C3|toRightTriangular|false|Y3|to3D|E2|E1|E3|Rotation|Y2|Y1|intersectionWith|rotate|v12|v13|rank|setVectors|nc|sum|multiply|prototype|eql|new|setElements|case|each|PA3|PA2|part|new_element|round|for|cross|product|AD2|isSameSizeAs|add|isPerpendicularTo|v22|AN3|inspect|AD3|AN2|toUnitVector|PsubQ3|PsubQ2|v23|dot|divisor|inverse|true|isSingular|determinant|max|canMultiplyFromLeft|subtract|rows|col|random|ZX|YZ|XY|Random|join|N2|N1|D1|slice|default|N3|dimensions|switch|liesIn|translate|snapTo|augment|Diagonal|trace|indexOf|diagonal|transpose|minor|row|isAntiparallelTo|ZY|YX|acos|RotationZ|RotationY|liesOn|RotationX|inv|rk|tr|det|toDiagonalMatrix|toUpperTriangular|version|XZ".split("|"),0,{}));var _T={rotate:function(e){var a=parseFloat(e)*(Math.PI/180),t=Math.cos(a),i=Math.sin(a),s=t,n=i,o=-i,r=t;return $M([[s,o,0],[n,r,0],[0,0,1]])},skew:function(e,a){var t=parseFloat(e)*(Math.PI/180),i=parseFloat(a)*(Math.PI/180),s=Math.tan(t),n=Math.tan(i);return $M([[1,s,0],[n,1,0],[0,0,1]])},translate:function(e,a){var t=e||0,i=a||0;return $M([[1,0,t],[0,1,i],[0,0,1]])},scale:function(e,a){var t=e||0,i=a||0;return $M([[t,0,0],[0,i,0],[0,0,1]])},toString:function(e){var a,t,i="matrix(";for(t=1;3>=t;t++)for(a=1;2>=a;a++)i+=e.e(a,t)+", ";return i=i.substr(0,i.length-2)+")"},fromString:function(e){var a=/^matrix\((\S*), (\S*), (\S*), (\S*), (\S*), (\S*)\)$/g.exec(e),t=parseFloat(a?a[1]:1),i=parseFloat(a?a[2]:0),s=parseFloat(a?a[3]:0),n=parseFloat(a?a[4]:1),o=parseFloat(a?a[5]:0),r=parseFloat(a?a[6]:0);return $M([[t,s,o],[i,n,r],[0,0,1]])}};!function(e){function a(e){if(document.body){var a=document.createElement("style");a.type="text/css",/WebKit|MSIE/i.test(navigator.userAgent)?a.styleSheet?a.styleSheet.cssText=e:a.innerText=e:a.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(a)}else document.write('<style type="text/css">'+e+"</style>")}function t(e){var a,t,i=["Moz","Webkit","O","ms"],s=document.createElement("div"),n=e.charAt(0).toUpperCase()+e.substr(1);if(e in s.style)return e;for(t=0;t<i.length;++t)if(a=i[t]+n,a in s.style)return a;this.div=null}function i(e){var a,t,i,s,n,o={};if("?"===e.slice(0,1)&&(e=e.slice(1)),""!==e)for(a=e.split("&"),t=0;t<a.length;t+=1)i=a[t].split("="),s=decodeURIComponent(i[0]),n=i.length>1?decodeURIComponent(i[1]):void 0,o[s]=n;return o}var s=window.console&&window.SF_DEBUG?window.console:{log:function(){}},n=location.href.replace(/\#.?/,"");e.fn.hasClasses=function(a){var t=a.replace(/\s/g,"").split(","),i=this;for(var s in t)if(e(i).hasClass(t[s]))return!0;return!1},e.fn.addClasses=function(a){var t=a.replace(/\s/g,"").split(","),i=this;for(var s in t)e(i).addClass(t[s]);return this},jQuery(document).one("sfm_doc_body_arrived",function(){var o=e(window),r=e("html"),l=e("body"),c=document.write,d=window.SF_Opts;document.write=function(){s.log("Superfly plugin debug: using document.write is bad practice and not supported")},l.prepend(window.SFM_template),document.write=c;var u=d.alt_menu?e:setTimeout;u(function(){var c=window.LM||function(){function u(){ee.build(),A.parent().is("body")||l.prepend(e("#sfm-body-bg, .sfm-rollback, #sfm-sidebar, #sfm-mob-navbar, #sfm-overlay-wrapper"));for(var a=Math.min(1+A.find(".sfm-view").length,4),t=1;a>=t;t++)se+=parseInt(d["width_panel_"+t]);"always"===d.sidebar_behaviour?A.on("mouseenter "+_,".sfm-menu li:not(.sfm-chapter)",v):"full"===d.sidebar_style?A.on(_,".sfm-menu li:not(.sfm-chapter)",v):A.bind(window.transitionEnd,function(a){if(e(a.target).is(A))if(A.is(".sfm-sidebar-exposed")&&"off"===ie)A.on("mouseenter "+_,".sfm-menu li:not(.sfm-chapter)",v),ie="on";else if(!A.is(".sfm-sidebar-exposed")&&(A.off("mouseenter "+_,".sfm-menu-level-0 > li, .sfm-view ul > li"),ie="off",q.css("visibility","hidden"),"push"===d.sidebar_behaviour)){var t=e(".sfm-inner-fixed");J||t.each(y),t.removeClass("sfm-inner-fixed")}}),re&&A.on("mouseenter",".sfm-menu-level-0 > li:not(.sfm-chapter), .sfm-view ul > li:not(.sfm-chapter)",v),e(".sfm-view").mouseenter(function(){clearTimeout(X)}),H.on("hover"!==d.sub_opening_type||S||"yes"===d.sub_type?_:"mouseenter",function(){O=this}),"hover"!==d.opening_type||S?("click"===d.opening_type||S||"yes"===d.sub_type)&&(e("#sfm-overlay").on(_,p),"hover"===d.sub_opening_type&&A.mouseleave(function(e){setTimeout(function(){l.removeClass("sfm-view-pushed-custom sfm-view-pushed-1 sfm-view-visible-1 sfm-view-pushed-2 sfm-view-visible-2 sfm-view-pushed-3 sfm-view-visible-3"),m(!0),A.find(".sfm-active-item").removeClass("sfm-active-item"),"always"===d.sidebar_behaviour&&setTimeout(function(){q.css("visibility","hidden")},400)},250)})):("always"!==d.sidebar_behaviour&&j.mouseenter(function(a){e(a.relatedTarget).is(".sfm-sidebar-close")||b()}),A.mouseleave(function(e){setTimeout(function(){p()},250)})),d.togglers&&l.on(_,d.togglers,function(e){return M?void 0:(M=setTimeout(function(){M=null},10),e.preventDefault(),e.stopImmediatePropagation(),"hidden"===te?b():p(),!1)}),A.on("click",".sfm-menu a",function(e){s.log("preventing"),re||e.preventDefault()}),o.on("resize orientationchange",g),A.on("touchmove",function(){ne=!0}),A.on("touchend",function(){ne=!1}),j.find(".sfm-navicon-button").add("#sfm-mob-navbar .sfm-navicon-button, .sfm-sidebar-close").on(_,function(a){return"hidden"===te?(b(),e(this).addClass("sfm-open")):(p(),e(this).removeClass("sfm-open")),!1}),e("#sfm-sidebar .sfm-search-form span").on(_,function(){s.log("yo"),e(this).closest("form").submit()}),S&&(/iPad|iPhone/.test(navigator.userAgent)&&A.on("focus","input",function(a){l.css("overflowX","visible"),A.css({position:"absolute",top:"-62px"}),e(document).scrollTop(0)}).on("blur","input",function(){A.css("position",""),l.css("overflowX","hidden")}),C()),x(d.social);var i="full"==d.sidebar_style?"full":d.sidebar_behaviour,n="superfly-on sfm-style-"+d.sidebar_style+" sfm-sidebar-"+i+" sfm-toggle-"+d.opening_type+("blur"===d.blur?" sfm-blur":"");return s.log(n),l.addClass(n),e(document).ajaxComplete(function(){setTimeout(function(){l.is(".superfly-on")||l.addClass(n)},0)}),setTimeout(function(){"always"===d.sidebar_behaviour?setTimeout(function(){g(),A.css("opacity","1")},300):A.css("opacity","1")},0),"yes"===d.test_mode&&A.addClass("sfm-test-mode"),e(".sfm-close").bind(_,function(){H.removeClass("sfm-modal");var e={opacity:"",visibility:""};H.css(e),H.find(".sfm-active").removeClass("sfm-active")}),e(function(){setTimeout(function(){var a=e("#sfm-sidebar .wpcf7 form");if(a.length){var t=e._data(e("#sfm-sidebar .wpcf7 form")[0],"events");t||e("div.wpcf7 > form").wpcf7InitForm()}},0)}),c.init=function(){},this}function m(e){if(F){var a={opacity:"",visibility:"",transProp:"",backgroundColor:""};e?(a[z]=W,a.width=""):a[z]=H.data("startPos")||W,H.css(a),H.find(".sfm-active").removeClass("sfm-active")}}function f(){var a=window.innerHeight||document.documentElement.offsetHeight||document.documentElement.clientHeight,t=a-e(".sfm-logo").outerHeight()-e(".sfm-social").outerHeight()-60,t=a-(e(".sfm-logo img").length?80:0)-(e(".sfm-social").children().length?85:0)-30,i=A.find(".sfm-nav .sfm-menu li > a"),s=i.length,n=t/s,o=Math.min(n-2*d.item_padding,S?45:65);i.css({fontSize:o,lineHeight:n-d.item_padding+"px"})}function b(){var e;if("hidden"===te)return clearTimeout(X),g(),A.addClass("sfm-sidebar-exposed"),j.find(".sfm-navicon-button").add("#sfm-mob-navbar .sfm-navicon-button").addClass("sfm-open"),q.css("visibility","visible"),l.addClass("sfm-body-pushed"),"push"===d.sidebar_behaviour&&"full"!=d.sidebar_style&&(e=l.children().not("[id*=sfm-], script, style"),e.find("*").each(function(e,a){w(e,a,o.scrollTop(),o.scrollLeft())})),te="open",!1}function p(){clearTimeout(X),J&&"push"===d.sidebar_behaviour&&e(".sfm-inner-fixed").each(y),"always"!==d.sidebar_behaviour&&"full"!==d.sidebar_style||setTimeout(function(){q.css("visibility","hidden")},400),A.find(".sfm-active-item").removeClass("sfm-active-item"),m(!0),l.removeClass("sfm-body-pushed sfm-view-pushed-custom sfm-view-pushed-1 sfm-view-pushed-2 sfm-view-pushed-3  sfm-view-pushed-4 sfm-view-visible-1 sfm-view-visible-2 sfm-view-visible-3 sfm-view-visible-4"),A.removeClass("sfm-sidebar-exposed"),j.find(".sfm-navicon-button").add("#sfm-mob-navbar .sfm-navicon-button").removeClass("sfm-open"),te="hidden"}function v(a){function t(){var a,t,i=o.find("a"),s=i.prop("href"),r="_blank"===i.attr("target"),c=i.prop("hash"),u=c&&c.length>0&&s==n+c;if(u)p(),"#"!==c&&(t=e(c),t.length||(t=e('[name="'+c.replace("#","")+'"]'))),a=t&&t.length?t.offset().top:0,e("html, body").stop().animate({scrollTop:a},600);else if(r)window.open(s,"_blank");else if("yes"===d.fade){if(-1!==s.indexOf("#")&&""===c)return;l.fadeOut(200,function(){location.href=s})}else location.href=s}if(!M){M=setTimeout(function(){M=null},10),a.stopImmediatePropagation();var i,o=e(this);if(a.type===_)"mouseenter"===Q?t():(i=e(a.target),i.closest(".sfm-sm-indicator").length||S||"yes"===d.sub_type||"full"===d.sidebar_style?(s.log("ev 1",a.target),h(o,a)):(a.stopImmediatePropagation(),t()));else{if(a.type!==Q)return;var r=this;setTimeout(function(){r===O&&h(o,a)},225);O=this}}}function h(a,t){if(!ne){s.log("event for"),oe=!1,clearTimeout(X);var i,o,r,c,u,f,b,v,h,g,w,y,x,C=parseInt((a.closest("ul").attr("class")||"0").match(/\d/)[0])+1,M=a.siblings(".sfm-active-item"),k=a.find("a"),j=Y,P=Z;if(m(ae>=C),a.is(".sfm-has-child-menu"))if(i=a.children(".sfm-child-menu").first(),i.length)if(j>se&&!S&&"yes"!==d.sub_type&&"full"!==d.sidebar_style){if(oe=!0,l.is(".sfm-view-pushed-"+C)&&!M.length&&(oe=!1),M.removeClass("sfm-active-item"),l.removeClass("sfm-view-pushed-custom sfm-view-pushed-"+(C+1)+" sfm-view-visible-"+(C+1)+" sfm-view-pushed-"+(C+2)+" sfm-view-visible-"+(C+2)),!A.is(".sfm-sidebar-exposed")&&"always"!==d.sidebar_behaviour)return;e(".sfm-view-level-"+C).attr("class",function(e,a){return a.replace(/(^|\s)sfm-current-\S+/g,"")}).html('<ul class="sfm-menu-level-'+C+' sfm-menu">'+i.html()+"</ul>").addClass("sfm-current-"+a.data("sfmId")),X=setTimeout(function(){l.addClass("sfm-view-pushed-"+C),"always"===d.sidebar_behaviour&&q.css("visibility","visible"),ae=C},25),a.addClass("sfm-active-item")}else{o=e(t.target),c=k.attr("href");var f=k.prop("hash");(o.closest(".sfm-sm-indicator").length||"#"===f||"#"===c||"/"===c)&&(a.is(".sfm-submenu-visible")?k.length&&t.type===_&&(a.removeClass("sfm-submenu-visible"),i.slideUp(),oe=!0):(s.log("sub",i),a.siblings().filter(".sfm-submenu-visible").removeClass("sfm-submenu-visible").find("> ul").slideUp(),a.addClass("sfm-submenu-visible"),i.slideDown(),oe=!0))}else if(g=a.attr("data-extra-width"),y=a.attr("data-bg"),w=parseInt(g||d["width_panel_"+(C+1)]),D[C-1]+w<j&&"full"!==d.sidebar_style){if(oe=!0,x=H.find("#sfm-cc-"+a.attr("data-sfm-id")),l.is(".sfm-view-pushed-"+C)&&!M.length&&(oe=!1),M.removeClass("sfm-active-item"),l.removeClass("sfm-view-pushed-custom sfm-view-pushed-"+C+" sfm-view-visible-"+C+" sfm-view-pushed-"+(C+1)+" sfm-view-visible-"+(C+1)).addClass("sfm-view-pushed-custom"),!A.is(".sfm-sidebar-exposed")&&"always"!==d.sidebar_behaviour)return;"always"===d.sidebar_behaviour&&q.css("visibility","visible"),a.addClass("sfm-active-item"),S||"yes"===d.sub_type?(h=_T.toString(_T.translate(0)),s.log(h)):h=_T.toString(_T.translate("right"===d.sidebar_pos?D[C-1]-D[0]:D[C-1]-w)),r={opacity:1,visibility:"visible",backgroundColor:y,width:w},r[z]=h,H.css(r).data("startPos",h),H.find(".sfm-active").removeClass("sfm-active"),x.width(w),P>x.outerHeight()?x.addClass("sfm-vert-align sfm-active"):x.removeClass("sfm-vert-align").addClass("sfm-active"),setTimeout(function(){S||"yes"===d.sub_type?H.css(z,_T.toString(_T.translate(D[0]))):H.css(z,_T.toString(_T.translate("right"===d.sidebar_pos?-w-(D[C-1]-D[0]):D[C-1])))},0),F=!0}else o=e(t.target),(o.closest(".sfm-sm-indicator").length||S||"yes"===d.sub_type)&&(a.is(".sfm-submenu-visible")||(s.log("sub",i),y=a.attr("data-bg"),a.siblings().filter(".sfm-submenu-visible").removeClass("sfm-submenu-visible").find("> ul").slideUp(),H.addClass("sfm-modal"),r={opacity:1,visibility:"visible",backgroundColor:y,width:j},H.find(".sfm-active").removeClass("sfm-active"),H.find("#sfm-cc-"+a.attr("data-sfm-id")).addClass("sfm-active"),H.css(r),oe=!0));else j+200>se&&(a.siblings(".sfm-active-item").removeClass("sfm-active-item"),X=setTimeout(function(){l.removeClass("sfm-view-pushed-custom sfm-view-pushed-"+C+" sfm-view-visible-"+C+" sfm-view-pushed-"+(C+1)+" sfm-view-visible-"+(C+1)+" sfm-view-pushed-"+(C+2)+" sfm-view-visible-"+(C+2))},50));var T=re?"mouseenter":_;!k.length||t.type!==T||oe||re||(c=k.prop("href"),u="_blank"===k.attr("target"),f=k.prop("hash"),b=f&&f.length>1&&c==n+f,v,b?(p(),a.addClass("sfm-active-item"),v="#"===k.prop("hash")?0:e(k.prop("hash")).offset().top,e("html, body").stop().animate({scrollTop:v},600)):u?window.open(c,"_blank"):location.href=c)}}function g(e){Z=window.innerHeight?window.innerHeight:o.height(),Y=window.innerWidth?window.innerWidth:o.width();var a=!g.cache;a&&A.addClass("sfm-compact");var t=2*parseInt(d.item_padding);g.cache=g.cache||{hh:N.is(":empty")?0:N.outerHeight()+70+t,sh:P.is(":empty")?0:145+t,ch:k.outerHeight()},a&&A.removeClass("sfm-compact");var i=g.cache.ch,s=g.cache.hh,n=g.cache.sh,r=(Z-i)/2,l="",c="";s>r||n>r||S||"yes"===d.sub_type?"full"!==d.sidebar_style&&(l="sfm-compact",s>r&&(l+=" sfm-compact-header",r>n&&(c="sfm-compact-footer")),n>r&&(l+=" sfm-compact-footer",r>s&&(c="sfm-compact-header"))):c="sfm-compact",se>Y||S||"yes"===d.sub_type||"full"===d.sidebar_style?(l+=" sfm-vertical-nav",Q=_):(c+=" sfm-vertical-nav",Q="mouseenter"),-1!=navigator.appVersion.indexOf("Mac")&&(l+=" sfm-mac"),l&&A.addClass(l),c&&!a&&A.removeClass(c),"full"===d.sidebar_style&&f(Z)}function w(a,t,i,s,n,r){var c,d,u,m,f,b,p,v,h,g,w=e(t);if("fixed"===w.css("position"))if(w.addClass("sfm-inner-fixed"),J)d=w.css(z),"none"!==d?(w.data("sfm-old-matrix",d),d=_T.fromString(d),u=d.x(E),w.css(z,_T.toString(u)).data("sfm-transformed",1)):w.css(z,_T.toString(E)).data("sfm-transformed",1);else{for(c=w;(c=c.parent())&&(g=c.css("webkitTransform"),!(g&&"none"!==g||c.is("body"))););m=c.offset(),f=m.left,b=m.top,K&&w.is(":visible")&&w.hide().data("sfm-ff-hidden",1),p={left:w.css("left"),right:w.css("right"),top:w.css("top"),bottom:w.css("bottom")},K&&w.data("sfm-ff-hidden")&&w.show(),v={},h=parseInt(p.bottom),h=isNaN(h)?0:h,"auto"!==p.left?(p.toChangeHor="left",v[p.toChangeHor]="-="+(f-s)):"auto"!==p.right?(p.toChangeHor="right",v[p.toChangeHor]="-="+(f-s)):p.toChangeHor="left","auto"!==p.top?(p.toChangeVert="top",v[p.toChangeVert]=b-i>0?parseInt(p.top)-(b-i):parseInt(p.top)+(i-b)):"auto"!==p.bottom?(p.toChangeVert="bottom",v[p.toChangeVert]=l.height()+B.top+B.bottom+h-o.height()-i+"px"):(p.toChangeVert="top",v[p.toChangeVert]=i),w.css(v).data("sfm-old-pos",p)}}function y(a,t){var i,s,n=e(t);J?n.data("sfm-old-matrix")?n.css(z,n.data("sfm-old-matrix")).data("sfm-old-matrix",""):n.css(z,W).data("sfm-transformed",""):(i=n.data("sfm-old-pos"),s={},i?(s[i.toChangeHor]=i[i.toChangeHor],s[i.toChangeVert]=i[i.toChangeVert],"bottom"===i.toChangeVert&&(s.top=""),n.css(s),n.data("sfm-old-pos","")):n.css({left:"",top:"",bottom:"",right:""}))}function x(a){var t;for(t in a)a.hasOwnProperty(t)&&("skype"===t?e('<li class="sfm-icon-'+t+'"><a href="skype:'+a[t]+'?call"></a></li>').appendTo(P):"email"===t?e('<li class="sfm-icon-'+t+'"><a href="mailto:'+a[t]+'"></a></li>').appendTo(P):e('<li class="sfm-icon-'+t+'"><a href="'+a[t]+'" target="_blank"></a></li>').appendTo(P))}function C(){var e,a,t,i,s;A.add(q).bind("touchstart",function(i){"open"===te&&(t=(new Date).getTime(),e=i.originalEvent.touches[0].pageX,a=i.originalEvent.touches[0].clientY)}).bind("touchmove",function(e){"open"===te&&(i=e.originalEvent.touches[0].pageX,s=e.originalEvent.touches[0].clientY)}).bind("touchend",function(){if("open"===te){var n=i>e?"right":"left",o=s-a>30||-30>s-a,r=i-e>60||-60>i-e,l=(new Date).getTime();if(!(l-t>200||o)&&r)switch(n){case"left":"left"===I?p():b();break;case"right":"left"===I?b():p()}}})}var M,k,S=window.SFM_is_mobile,_=S?e.mobile?"vclick":"tap":"click",j=e(".sfm-rollback"),A=e("#sfm-sidebar"),q=e("#sfm-overlay-wrapper"),P=e(".sfm-social",A),T=e(d.alt_menu?d.alt_menu:"#sfm-nav"),H=e(".sfm-view-level-custom"),F=!1,N=e(".sfm-logo"),D=[];D.push(parseInt(d.width_panel_1)),D.push(D[0]+parseInt(d.width_panel_2)),D.push(D[1]+parseInt(d.width_panel_3)),D.push(D[2]+parseInt(d.width_panel_4)),d.alt_menu&&T.length?e("#sfm-nav").remove():T=e("#sfm-nav");var R,V,G,I=d.sidebar_pos,U="sfm",J=/msie|trident.*rv\:11\./.test(navigator.userAgent.toLowerCase()),K=/firefox/.test(navigator.userAgent.toLowerCase()),z=t("transform"),E=_T.translate("left"===I?d.width_panel_1:-d.width_panel_1,0),W=_T.toString(_T.translate(0,0)),B={top:parseInt(r.css("marginTop")),bottom:parseInt(r.css("marginBottom"))},Q="mouseenter",L=l.css("backgroundImage");"push"===d.sidebar_behaviour&&"none"!==L&&(l.prepend('<div id="sfm-body-bg"></div>'),V=e("#sfm-body-bg"),R={backgroundColor:l.css("backgroundColor"),backgroundImage:l.css("backgroundImage"),backgroundAttachment:l.css("backgroundAttachment"),backgroundSize:l.css("backgroundSize"),backgroundPosition:l.css("backgroundPosition"),backgroundRepeat:l.css("backgroundRepeat"),backgroundOrigin:l.css("backgroundOrigin"),backgroundClip:l.css("backgroundClip")},(R.backgroundColor.indexOf("(0, 0, 0, 0")+1||R.backgroundColor.indexOf("transparent")+1)&&(R.backgroundColor="#fff"),G=l.children().not("#sfm-body-bg, #sfm-fixed-container, script, style"),(parseInt(G.first().css("marginTop"))||parseInt(G.last().css("marginBottom")))&&l.addClass("sfm-body-float"),"fixed"===R.backgroundAttachment&&(R.position="fixed",R.backgroundAttachment="scroll"),V.css(R),a("body > * {position: relative} body {overflow-x:hidden!important}"));var O,X,Y,Z,$={search:d.search,addHomeLink:"yes"===d.addHomeLink,addHomeText:d.addHomeText||"Home",subMenuSupport:"yes"===d.subMenuSupport,subMenuSelector:d.subMenuSelector,activeClassSelector:d.activeClassSelector||"",allowedTags:"DIV, NAV, UL, OL, LI, A, P, H1, H2, H3, H4, SPAN, STRONG",transitionDuration:300,extra:d.menuData},ee={unique:1,build:function(){var a;a=T.clone().removeAttr("id class"),a=this.processDefMenu(a),T.remove(),$.addHomeLink&&a.prepend('<li><a href="http://'+window.location.hostname+'">'+$.addHomeText+"</a></li>"),"UL"===a.prop("tagName")?a.addClass(U+"-menu-level-0"):a.find("ul").first().addClass(U+"-menu-level-0").siblings("ul").addClass(U+"-menu-level-0"),$.subMenuSelector&&$.subMenuSupport?this.buildSubMenus(a):this.removeSubMenus(a),a.find("a").each(function(){var a=e(this);a.children("span").length||e(this).wrapInner(e("<span/>")),$.subMenuSupport&&a.parent().is(".sfm-has-child-menu")&&a.append('<ins class="sfm-sm-indicator"><i></i></ins>')}),$.extra&&this.attachExtraTo(a.find("[class*=menu-item]")),a.prependTo(".sfm-nav .sfm-va-middle").show(),"show"===$.search&&e(".sfm-va-middle").prepend('<form role="search" method="get" class="sfm-search-form" action="'+d.siteBase+'"><input type="text" class="search-field" placeholder="" value="" name="s"><span></span><input type="submit" class="search-submit" value="Search"></form>'),k=e("."+U+"-nav"),a.removeClass(U+"-has-child-menu").addClass("sfm-menu")},processDefMenu:function(a){var t=$.activeClassSelector?$.activeClassSelector:"",i=$.subMenuSelector?$.subMenuSelector:"",s=$.allowedTags.replace(/\s/g,"").split(","),n=a.find("[class*=menu-item]");return a.find('.skip-link, .menu-toggle, a[title*="Skip to content"]').remove(),n.each(function(){var a=this.id?this.id.replace("menu-item-",""):this.className.match(/menu-item-(\d+):?\b/)?this.className.match(/menu-item-(\d+):?\b/)[1]:"";e(this).data("sfm-id",a)}),a.find("*").each(function(){var a=e(this),n=a.prop("tagName");a.prop("className");return-1===s.indexOf(n)||""===e.trim(a.text())||a.is(".uber-close")?a.remove():(a.hasClasses(i)?a.removeAttr("class id").addClass(i.split(",").join(" ")):a.hasClasses(t)?a.removeAttr("class id").addClass(U+"-active-class"):a.removeAttr("class id"),a.removeAttr("style"),void("LI"===n&&a.addClass("sfm-menu-item-"+a.data("sfm-id"))))}),a},buildSubMenus:function(a){for(var t=$.subMenuSelector.replace(/\s/g,"").split(","),i=0,s=t.length;s>i;i++)a.find("."+t[i]).each(function(){var a=e(this);a.removeAttr("id class").addClass(U+"-child-menu ").parent().addClass(U+"-has-child-menu")});this.detectLevel(a)},attachExtraTo:function(a){var t="https:"===location.protocol;a.each(function(){var a,s=e(this),n=s.data("sfm-id");if($.extra[n]){if(a=i($.extra[n]),a.hidemob&&S)return void s.remove();if(a.img)"right"==I&&"skew"==d.sidebar_style?s.find("> a").append('<img src="'+(t?a.img.replace("http:","https:"):a.img)+'"/>'):s.find("> a").prepend('<img src="'+(t?a.img.replace("http:","https:"):a.img)+'"/>');else if(a.icon){var o=a.icon_color?"color: "+a.icon_color+";":"",r=a.icon,l=LAIconManagerUtil.getSet(r)?LAIconManagerUtil.getSet(r):"Font Awesome";"####"===l?(r=LAIconManagerUtil.getIcon(r),"right"==I&&"skew"==d.sidebar_style?s.find("> a").append('<i style="background-image:url('+r+')" class="la_icon la_icon_manager_custom">'):s.find("> a").prepend('<i style="background-image:url('+r+')" class="la_icon la_icon_manager_custom">')):(r=-1!==r.indexOf("fa-")?"la"+md5("Font Awesome")+"-"+r.substr(3):LAIconManagerUtil.getIconClass(r),"right"==I&&"skew"==d.sidebar_style?s.find("> a").append('<i style="'+o+'" class="la_icon '+r+'">'):s.find("> a").prepend('<i style="'+o+'" class="la_icon '+r+'">'))}a.sline&&s.find("> a span").append('<br><i class="sfm-sl">'+a.sline.replace(/\+/g," ")+"</i>"),a.chapter&&s.before('<li class="sfm-chapter"><div>'+a.chapter.replace(/\+/g," ")+"</div></li>"),a.content&&!s.find(".sfm-sm-indicator").length&&$.subMenuSupport&&(s.addClass(U+"-has-child-menu"),s.find(" > a").append('<ins class="sfm-sm-indicator"><i></i></ins>')),s.data("sfm-extra",a),a.width&&s.attr("data-extra-width",a.width),a.bg&&s.attr("data-bg",a.bg),s.attr("data-sfm-id",n)}})},detectLevel:function(a){a.find("."+U+"-child-menu").each(function(){var a=e(this),t=a.parents("."+U+"-child-menu").length+1;a.addClass(U+"-menu-level-"+t),A.find("."+U+"-view-level-"+t).length||A.append(e('<div class="sfm-view '+U+"-view-level-"+t+'"></div>'))})},removeSubMenus:function(a){if(!$.subMenuSupport)return a.children().each(function(){e(this).find("ul").remove()});var t=$.subMenuSelector.replace(/\s/g,"").split(",");for(var i in t)a.find("."+t[i]).each(function(){e(this).remove()})},toggleActiveClasses:function(a){a.find("."+U+"-has-child-menu").each(function(){var a=e(this);a.find("*").children("."+U+"-active-class").length>0&&(a.toggleClass(U+"-child-menu-open"),setTimeout(function(){a.addClass(U+"-child-menu-open"),a.find("."+U+"-child-menu").first().show()},$.transitionDuration))})}},ae=0,te="hidden",ie="off",se=0,ne=!1,oe=!1,re=/MSIE 9/.test(navigator.userAgent);return{init:u,showSidebar:b,hideSidebar:p,getState:function(){return te}}}();window.LM=c.init()},0)}),window.SFM_EVENT_DISPATCHED&&e(document).trigger("sfm_doc_body_arrived")}(window.jQuery);/*! js-cookie v3.0.5 | MIT */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}return function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(f){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"})});jQuery(function(e){if("undefined"==typeof wc_cart_fragments_params)return!1;var t=!0,r=wc_cart_fragments_params.cart_hash_key;try{t="sessionStorage"in window&&null!==window.sessionStorage,window.sessionStorage.setItem("wc","test"),window.sessionStorage.removeItem("wc"),window.localStorage.setItem("wc","test"),window.localStorage.removeItem("wc")}catch(f){t=!1}function n(){t&&sessionStorage.setItem("wc_cart_created",(new Date).getTime())}function o(e){t&&(localStorage.setItem(r,e),sessionStorage.setItem(r,e))}var a={url:wc_cart_fragments_params.wc_ajax_url.toString().replace("%%endpoint%%","get_refreshed_fragments"),type:"POST",data:{time:(new Date).getTime()},timeout:wc_cart_fragments_params.request_timeout,success:function(r){r&&r.fragments&&(e.each(r.fragments,function(t,r){e(t).replaceWith(r)}),t&&(sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(r.fragments)),o(r.cart_hash),r.cart_hash&&n()),e(document.body).trigger("wc_fragments_refreshed"))},error:function(){e(document.body).trigger("wc_fragments_ajax_error")}};function s(){e.ajax(a)}if(t){var i=null;e(document.body).on("wc_fragment_refresh updated_wc_div",function(){s()}),e(document.body).on("added_to_cart removed_from_cart",function(e,t,a){var s=sessionStorage.getItem(r);null!==s&&s!==undefined&&""!==s||n(),sessionStorage.setItem(wc_cart_fragments_params.fragment_name,JSON.stringify(t)),o(a)}),e(document.body).on("wc_fragments_refreshed",function(){clearTimeout(i),i=setTimeout(s,864e5)}),e(window).on("storage onstorage",function(e){r===e.originalEvent.key&&localStorage.getItem(r)!==sessionStorage.getItem(r)&&s()}),e(window).on("pageshow",function(t){t.originalEvent.persisted&&(e(".widget_shopping_cart_content").empty(),e(document.body).trigger("wc_fragment_refresh"))});try{var c=JSON.parse(sessionStorage.getItem(wc_cart_fragments_params.fragment_name)),_=sessionStorage.getItem(r),g=Cookies.get("woocommerce_cart_hash"),m=sessionStorage.getItem("wc_cart_created");if(null!==_&&_!==undefined&&""!==_||(_=""),null!==g&&g!==undefined&&""!==g||(g=""),_&&(null===m||m===undefined||""===m))throw"No cart_created";if(m){var d=1*m+864e5,w=(new Date).getTime();if(d<w)throw"Fragment expired";i=setTimeout(s,d-w)}if(!c||!c["div.widget_shopping_cart_content"]||_!==g)throw"No fragment";e.each(c,function(t,r){e(t).replaceWith(r)}),e(document.body).trigger("wc_fragments_loaded")}catch(f){s()}}else s();Cookies.get("woocommerce_items_in_cart")>0?e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show():e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").hide(),e(document.body).on("adding_to_cart",function(){e(".hide_cart_widget_if_empty").closest(".widget_shopping_cart").show()}),"undefined"!=typeof wp&&wp.customize&&wp.customize.selectiveRefresh&&wp.customize.widgetsPreview&&wp.customize.widgetsPreview.WidgetPartial&&wp.customize.selectiveRefresh.bind("partial-content-rendered",function(){s()})});/*!
 * jQuery blockUI plugin
 * Version 2.70.0-2014.11.23
 * Requires jQuery v1.7 or later
 *
 * Examples at: http://malsup.com/jquery/block/
 * Copyright (c) 2007-2013 M. Alsup
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 * Thanks to Amir-Hossein Sobhi for some excellent contributions!
 */
!function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('<div class="growlUI"></div>');t&&s.append("<h1>"+t+"</h1>"),o&&s.append("<h2>"+o+"</h2>"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e('<iframe class="blockUI" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+c.iframeSrc+'"></iframe>'):e('<div class="blockUI" style="display:none"></div>'),v=c.theme?e('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+U+++';display:none"></div>'):e('<div class="blockUI blockOverlay" style="z-index:'+U+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),c.theme&&h?(w='<div class="blockUI '+c.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:fixed">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):c.theme?(w='<div class="blockUI '+c.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(U+10)+';display:none;position:absolute">',c.title&&(w+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(c.title||"&nbsp;")+"</div>"),w+='<div class="ui-widget-content ui-dialog-content"></div>',w+="</div>"):w=h?'<div class="blockUI '+c.blockMsgClass+' blockPage" style="z-index:'+(U+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+c.blockMsgClass+' blockElement" style="z-index:'+(U+10)+';display:none;position:absolute"></div>',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();jQuery(function(t){if("undefined"==typeof wc_add_to_cart_params)return!1;var a=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),this.$liveRegion=this.createLiveRegion(),t(document.body).on("click",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},this.onAddToCart).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("added_to_cart",{addToCartHandler:this},this.onAddedToCart).on("removed_from_cart",{addToCartHandler:this},this.onRemovedFromCart).on("ajax_request_not_sent.adding_to_cart",this.updateButton)};a.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},a.prototype.run=function(){var a=this,e=a.requests[0].complete;a.requests[0].complete=function(){"function"==typeof e&&e(),a.requests.shift(),a.requests.length>0&&a.run()},t.ajax(this.requests[0])},a.prototype.onAddToCart=function(a){var e=t(this);if(e.is(".ajax_add_to_cart")){if(!e.attr("data-product_id"))return!0;if(a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),e.removeClass("added"),e.addClass("loading"),!1===t(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[e]))return t(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,e]),!0;var r={};t.each(e.data(),function(t,a){r[t]=a}),t.each(e[0].dataset,function(t,a){r[t]=a}),t(document.body).trigger("adding_to_cart",[e,r]),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:r,success:function(a){a&&(a.error&&a.product_url?window.location=a.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,e]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},a.prototype.onRemoveFromCart=function(a){var e=t(this),r=e.closest(".woocommerce-mini-cart-item");a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),r.block({message:null,overlayCSS:{opacity:.6}}),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:e.data("cart_item_key")},success:function(a){a&&a.fragments?t(document.body).trigger("removed_from_cart",[a.fragments,a.cart_hash,e]):window.location=e.attr("href")},error:function(){window.location=e.attr("href")},dataType:"json"})},a.prototype.updateButton=function(a,e,r,d){if(d=void 0!==d&&d){if(d.removeClass("loading"),e&&d.addClass("added"),e&&!wc_add_to_cart_params.is_cart&&0===d.parent().find(".added_to_cart").length){var o=document.createElement("a");o.href=wc_add_to_cart_params.cart_url,o.className="added_to_cart wc-forward",o.title=wc_add_to_cart_params.i18n_view_cart,o.textContent=wc_add_to_cart_params.i18n_view_cart,d.after(o)}t(document.body).trigger("wc_cart_button_updated",[d])}},a.prototype.updateFragments=function(a,e){e&&(t.each(e,function(a){t(a).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),t.each(e,function(a,e){t(a).replaceWith(e),t(a).stop(!0).css("opacity","1").unblock()}),t(document.body).trigger("wc_fragments_loaded"))},a.prototype.alertCartUpdated=function(t,a,e,r){if(r=void 0!==r&&r){var d=r.data("success_message");if(!d)return;t.data.addToCartHandler.$liveRegion.delay(1e3).text(d).attr("aria-relevant","all")}},a.prototype.createLiveRegion=function(){var a=t(".widget_shopping_cart_live_region");return a.length?a:t('<div class="widget_shopping_cart_live_region screen-reader-text" role="status"></div>').appendTo("body")},a.prototype.onAddedToCart=function(t,a,e,r){t.data.addToCartHandler.updateButton(t,a,e,r),t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},a.prototype.onRemovedFromCart=function(t,a,e,r){t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},new a});function focus_populate_live_region(){var e=["woocommerce-message","woocommerce-error","wc-block-components-notice-banner"].map(function(e){return"."+e+'[role="alert"]'}).join(", "),o=document.querySelectorAll(e);if(0!==o.length){var t=o[0];t.setAttribute("tabindex","-1");var n=setTimeout(function(){t.focus(),clearTimeout(n)},500)}}function refresh_sorted_by_live_region(){var e=document.querySelector('.woocommerce-result-count[data-is-sorted-by="true"]');if(e)var o=e.innerHTML,t=setTimeout(function(){e.innerHTML="",e.innerHTML=o,clearTimeout(t)},1e3)}function on_document_ready(){focus_populate_live_region(),refresh_sorted_by_live_region()}jQuery(function(e){e(".woocommerce-ordering").on("change","select.orderby",function(){e(this).closest("form").trigger("submit")}),e("input.qty:not(.product-quantity input.qty)").each(function(){var o=parseFloat(e(this).attr("min"));o>=0&&parseFloat(e(this).val())<o&&e(this).val(o)});var o="store_notice"+(e(".woocommerce-store-notice").data("noticeId")||"");"hidden"===Cookies.get(o)?e(".woocommerce-store-notice").hide():e(".woocommerce-store-notice").show(),e(".woocommerce-store-notice__dismiss-link").on("click",function(t){Cookies.set(o,"hidden",{path:"/"}),e(".woocommerce-store-notice").hide(),t.preventDefault()}),e(".woocommerce-input-wrapper span.description").length&&e(document.body).on("click",function(){e(".woocommerce-input-wrapper span.description:visible").prop("aria-hidden",!0).slideUp(250)}),e(".woocommerce-input-wrapper").on("click",function(e){e.stopPropagation()}),e(".woocommerce-input-wrapper :input").on("keydown",function(o){var t=e(this).parent().find("span.description");if(27===o.which&&t.length&&t.is(":visible"))return t.prop("aria-hidden",!0).slideUp(250),o.preventDefault(),!1}).on("click focus",function(){var o=e(this).parent(),t=o.find("span.description");o.addClass("currentTarget"),e(".woocommerce-input-wrapper:not(.currentTarget) span.description:visible").prop("aria-hidden",!0).slideUp(250),t.length&&t.is(":hidden")&&t.prop("aria-hidden",!1).slideDown(250),o.removeClass("currentTarget")}),e.scroll_to_notices=function(o){o.length&&e("html, body").animate({scrollTop:o.offset().top-100},1e3)},e('.woocommerce form .woocommerce-Input[type="password"]').wrap('<span class="password-input"></span>'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").append('<span class="show-password-input"></span>'),e(".show-password-input").on("click",function(){e(this).hasClass("display-password")?e(this).removeClass("display-password"):e(this).addClass("display-password"),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password")}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})})}),document.addEventListener("DOMContentLoaded",on_document_ready);var aviaJS=aviaJS||{};(function(){'use strict';if(!aviaJS.aviaJSHelpers){class aviaJSHelpers{constructor(){this.wpHooks()};debounce(callback,wait,immediate){var i;return function(){var e=this,s=arguments,t=function(){i=null;if(!immediate){callback.apply(e,s)}},l=immediate&&!i;clearTimeout(i);i=setTimeout(t,wait);if(l){callback.apply(e,s)}}};wpHooks(){if(window.wp&&wp.hooks){return};if(!window.wp){window.wp={hooks:{}}};let obj=window.wp.hooks;obj.applyFilters=this.wpHooks_applyFilters;obj.doAction=this.wpHooks_applyFilters;obj.hasFilter=this.wpHooks_hasFilters;obj.hasAction=this.wpHooks_hasFilters};wpHooks_applyFilters(handle,value){return value};wpHooks_hasFilters(handle,namespace){return!1}};aviaJS.aviaJSHelpers=new aviaJSHelpers()};if(!aviaJS.aviaPlugins){class aviaPlugins{plugins=[];defaultPlugin={classFactory:null,selector:''};constructor(){this.plugins=[]};register(classFactory,selector){if('function'!=typeof classFactory){return!1};let newPlugin=Object.assign({},this.defaultPlugin);if('string'!=typeof selector){selector='body'};newPlugin.classFactory=classFactory;newPlugin.selector=selector;this.plugins.push(newPlugin);this.check_bind()};check_bind(){if(document.readyState==='complete'){this.bind_plugins()}else{document.addEventListener('readystatechange',this.bind_plugins.bind(this))}};bind_plugins(e){if(document.readyState!=='complete'){return};let plugins=this.plugins;this.plugins=[];for(let plugin of plugins){let elements=document.querySelectorAll(plugin.selector);for(let element of elements){plugin.classFactory(element)}}}};aviaJS.aviaPlugins=new aviaPlugins()}})();var SFM_is_mobile=(function(){var n=navigator.userAgent;var reg=new RegExp('Android\s([0-9\.]*)')
var match=n.toLowerCase().match(reg);var android=match?parseFloat(match[1]):!1;if(android&&android<3.6)return
return n.match(/Android|BlackBerry|IEMobile|iPhone|iPad|iPod|Opera Mini/i)})();var SFM_skew_disabled=(function($){var window_width=$(window).width();var sfm_width=275;if(sfm_width*2>=window_width){return!0}
return!1})(jQuery);(function(){var mob_bar='';var pos='right';var iconbar='';var classes=SFM_is_mobile?(mob_bar?'sfm-mobile sfm-mob-nav':'sfm-mobile'):'sfm-no-mobile';classes+=' sfm-pos-'+pos;classes+=iconbar?' sfm-bar':'';classes+=SFM_skew_disabled?' sfm-skew-disabled':'';document.getElementsByTagName('html')[0].className=document.getElementsByTagName('html')[0].className+' '+classes})();(function(){var insertListener=function(event){if(event.animationName=="bodyArrived"){afterContentArrived()}}
var timer,_timer;var transition='';if(document.addEventListener&&!1){document.addEventListener("animationstart",insertListener,!1);document.addEventListener("MSAnimationStart",insertListener,!1);document.addEventListener("webkitAnimationStart",insertListener,!1)}else{timer=setInterval(function(){if(document.body){clearInterval(timer);afterContentArrived()}},14)}
function afterContentArrived(){clearTimeout(_timer);if(window.jQuery){jQuery('body').fadeIn();jQuery(document).trigger('sfm_doc_body_arrived');window.SFM_EVENT_DISPATCHED=!0}else{_timer=setTimeout(function(){afterContentArrived()},14)}}})();'use strict';var avia_is_mobile=!1;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart' in document.documentElement){avia_is_mobile=!0;document.documentElement.className+=' avia_mobile '}else{document.documentElement.className+=' avia_desktop '};document.documentElement.className+=' js_active ';(function(){var e=['-webkit-','-moz-','-ms-',''],n='',o=!1,a=!1;for(var t in e){if(e[t]+'transform' in document.documentElement.style){o=!0;n=e[t]+'transform'};if(e[t]+'perspective' in document.documentElement.style){a=!0}};if(o){document.documentElement.className+=' avia_transform '};if(a){document.documentElement.className+=' avia_transform3d '};if(typeof document.getElementsByClassName=='function'&&typeof document.documentElement.getBoundingClientRect=='function'&&avia_is_mobile==!1){if(n&&window.innerHeight>0){setTimeout(function(){var e=0,o={},a=0,t=document.getElementsByClassName('av-parallax'),i=window.pageYOffset||document.documentElement.scrollTop;for(e=0;e<t.length;e++){t[e].style.top='0px';o=t[e].getBoundingClientRect();a=Math.ceil((window.innerHeight+i-o.top)*0.3);t[e].style[n]='translate(0px, '+a+'px)';t[e].style.top='auto';t[e].className+=' enabled-parallax '}},50)}}})();jQuery(window).load(function(){jQuery('a').removeAttr('title');jQuery('img').removeAttr('title')});(function(){var c=document.body.className;c=c.replace(/woocommerce-no-js/,'woocommerce-js');document.body.className=c})();(()=>{var t={353:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,i="millisecond",r="second",o="minute",a="hour",s="day",l="week",c="month",u="quarter",d="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},_=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},y={s:_,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),r=n%60;return(e<=0?"+":"-")+_(i,2,"0")+":"+_(r,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),r=e.clone().add(i,c),o=n-r<0,a=e.clone().add(i+(o?-1:1),c);return+(-(i+(n-r)/(o?r-a:a-r))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:d,w:l,d:s,D:p,h:a,m:o,s:r,ms:i,Q:u}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",v={};v[b]=g;var w=function(t){return t instanceof E},T=function(t,e,n){var i;if(!t)return b;if("string"==typeof t)v[t]&&(i=t),e&&(v[t]=e,i=t);else{var r=t.name;v[r]=t,i=r}return!n&&i&&(b=i),i||!n&&b},S=function(t,e){if(w(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},A=y;A.l=T,A.i=w,A.w=function(t,e){return S(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function g(t){this.$L=T(t.locale,null,!0),this.parse(t)}var _=g.prototype;return _.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(m);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},_.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},_.$utils=function(){return A},_.isValid=function(){return!(this.$d.toString()===f)},_.isSame=function(t,e){var n=S(t);return this.startOf(e)<=n&&n<=this.endOf(e)},_.isAfter=function(t,e){return S(t)<this.startOf(e)},_.isBefore=function(t,e){return this.endOf(e)<S(t)},_.$g=function(t,e,n){return A.u(t)?this[e]:this.set(n,t)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(t,e){var n=this,i=!!A.u(e)||e,u=A.p(t),f=function(t,e){var r=A.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?r:r.endOf(s)},m=function(t,e){return A.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},h=this.$W,g=this.$M,_=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return i?f(1,0):f(31,11);case c:return i?f(1,g):f(0,g+1);case l:var b=this.$locale().weekStart||0,v=(h<b?h+7:h)-b;return f(i?_-v:_+(6-v),g);case s:case p:return m(y+"Hours",0);case a:return m(y+"Minutes",1);case o:return m(y+"Seconds",2);case r:return m(y+"Milliseconds",3);default:return this.clone()}},_.endOf=function(t){return this.startOf(t,!1)},_.$set=function(t,e){var n,l=A.p(t),u="set"+(this.$u?"UTC":""),f=(n={},n[s]=u+"Date",n[p]=u+"Date",n[c]=u+"Month",n[d]=u+"FullYear",n[a]=u+"Hours",n[o]=u+"Minutes",n[r]=u+"Seconds",n[i]=u+"Milliseconds",n)[l],m=l===s?this.$D+(e-this.$W):e;if(l===c||l===d){var h=this.clone().set(p,1);h.$d[f](m),h.init(),this.$d=h.set(p,Math.min(this.$D,h.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},_.set=function(t,e){return this.clone().$set(t,e)},_.get=function(t){return this[A.p(t)]()},_.add=function(i,u){var p,f=this;i=Number(i);var m=A.p(u),h=function(t){var e=S(f);return A.w(e.date(e.date()+Math.round(t*i)),f)};if(m===c)return this.set(c,this.$M+i);if(m===d)return this.set(d,this.$y+i);if(m===s)return h(1);if(m===l)return h(7);var g=(p={},p[o]=e,p[a]=n,p[r]=t,p)[m]||1,_=this.$d.getTime()+i*g;return A.w(_,this)},_.subtract=function(t,e){return this.add(-1*t,e)},_.format=function(t){var e=this;if(!this.isValid())return f;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),r=this.$locale(),o=this.$H,a=this.$m,s=this.$M,l=r.weekdays,c=r.months,u=function(t,i,r,o){return t&&(t[i]||t(e,n))||r[i].substr(0,o)},d=function(t){return A.s(o%12||12,t,"0")},p=r.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:A.s(s+1,2,"0"),MMM:u(r.monthsShort,s,c,3),MMMM:u(c,s),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:u(r.weekdaysMin,this.$W,l,2),ddd:u(r.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:A.s(o,2,"0"),h:d(1),hh:d(2),a:p(o,a,!0),A:p(o,a,!1),m:String(a),mm:A.s(a,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:i};return n.replace(h,(function(t,e){return e||m[t]||i.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(i,p,f){var m,h=A.p(p),g=S(i),_=(g.utcOffset()-this.utcOffset())*e,y=this-g,b=A.m(this,g);return b=(m={},m[d]=b/12,m[c]=b,m[u]=b/3,m[l]=(y-_)/6048e5,m[s]=(y-_)/864e5,m[a]=y/n,m[o]=y/e,m[r]=y/t,m)[h]||y,f?b:A.a(b)},_.daysInMonth=function(){return this.endOf(c).$D},_.$locale=function(){return v[this.$L]},_.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=T(t,e,!0);return i&&(n.$L=i),n},_.clone=function(){return A.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),$=E.prototype;return S.prototype=$,[["$ms",i],["$s",r],["$m",o],["$H",a],["$W",s],["$M",c],["$y",d],["$D",p]].forEach((function(t){$[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),S.extend=function(t,e){return t.$i||(t(e,E,S),t.$i=!0),S},S.locale=T,S.isDayjs=w,S.unix=function(t){return S(1e3*t)},S.en=v[b],S.Ls=v,S.p={},S}()},522:function(t){t.exports=function(){"use strict";var t,e,n=1e3,i=6e4,r=36e5,o=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,l=2592e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:l,days:o,hours:r,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof y},p=function(t,e,n){return new y(t,n,e.$l)},f=function(t){return e.p(t)+"s"},m=function(t){return t<0},h=function(t){return m(t)?Math.ceil(t):Math.floor(t)},g=function(t){return Math.abs(t)},_=function(t,e){return t?m(t)?{negative:!0,format:""+g(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},y=function(){function m(t,e,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return p(t*u[f(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){i.$d[f(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var r=t.match(c);if(r){var o=r.slice(2).map((function(t){return Number(t)}));return this.$d.years=o[0],this.$d.months=o[1],this.$d.weeks=o[2],this.$d.days=o[3],this.$d.hours=o[4],this.$d.minutes=o[5],this.$d.seconds=o[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=h(t/s),t%=s,this.$d.months=h(t/l),t%=l,this.$d.days=h(t/o),t%=o,this.$d.hours=h(t/r),t%=r,this.$d.minutes=h(t/i),t%=i,this.$d.seconds=h(t/n),t%=n,this.$d.milliseconds=t},g.toISOString=function(){var t=_(this.$d.years,"Y"),e=_(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=_(n,"D"),r=_(this.$d.hours,"H"),o=_(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=_(a,"S"),l=t.negative||e.negative||i.negative||r.negative||o.negative||s.negative,c=r.format||o.format||s.format?"T":"",u=(l?"-":"")+"P"+t.format+e.format+i.format+c+r.format+o.format+s.format;return"P"===u||"-P"===u?"P0D":u},g.toJSON=function(){return this.toISOString()},g.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(t,e){return e||String(i[t])}))},g.as=function(t){return this.$ms/u[f(t)]},g.get=function(t){var e=this.$ms,n=f(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?h(e/u[n]):this.$d[n],0===e?0:e},g.add=function(t,e,n){var i;return i=e?t*u[f(e)]:d(t)?t.$ms:p(t,this).$ms,p(this.$ms+i*(n?-1:1),this)},g.subtract=function(t,e){return this.add(t,e,!0)},g.locale=function(t){var e=this.clone();return e.$l=t,e},g.clone=function(){return p(this.$ms,this)},g.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},m}();return function(n,i,r){t=r,e=r().$utils(),r.duration=function(t,e){var n=r.locale();return p(t,{$l:n},e)},r.isDuration=d;var o=i.prototype.add,a=i.prototype.subtract;i.prototype.add=function(t,e){return d(t)&&(t=t.asMilliseconds()),o.bind(this)(t,e)},i.prototype.subtract=function(t,e){return d(t)&&(t=t.asMilliseconds()),a.bind(this)(t,e)}}}()},569:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,r){var o,a=function(t,n,i){void 0===i&&(i={});var r=new Date(t);return function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",r=t+"|"+i,o=e[r];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[r]=o),o}(n,i).formatToParts(r)},s=function(e,n){for(var i=a(e,n),o=[],s=0;s<i.length;s+=1){var l=i[s],c=l.type,u=l.value,d=t[c];d>=0&&(o[d]=parseInt(u,10))}var p=o[3],f=24===p?0:p,m=o[0]+"-"+o[1]+"-"+o[2]+" "+f+":"+o[4]+":"+o[5]+":000",h=+e;return(r.utc(m).valueOf()-(h-=h%1e3))/6e4},l=i.prototype;l.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),s=Math.round((i-new Date(a))/1e3/60),l=r(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-s,!0);if(e){var c=l.utcOffset();l=l.add(n-c,"minute")}return l.$x.$timezone=t,l},l.offsetName=function(t){var e=this.$x.$timezone||r.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var c=l.startOf;l.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return c.call(this,t,e);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return c.call(n,t,e).tz(this.$x.$timezone,!0)},r.tz=function(t,e,n){var i=n&&e,a=n||e||o,l=s(+r(),a);if("string"!=typeof t)return r(t).tz(a);var c=function(t,e,n){var i=t-60*e*1e3,r=s(i,n);if(e===r)return[i,e];var o=s(i-=60*(r-e)*1e3,n);return r===o?[i,r]:[t-60*Math.min(r,o)*1e3,Math.max(r,o)]}(r.utc(t,i).valueOf(),l,a),u=c[0],d=c[1],p=r(u).utcOffset(d);return p.$x.$timezone=a,p},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(t){o=t}}}()},826:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,r,o){var a=r.prototype;o.utc=function(t){return new r({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=o(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var l=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var c=a.utcOffset;a.utcOffset=function(i,r){var o=this.$utils().u;if(o(i))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof i&&null===(i=function(t){void 0===t&&(t="");var i=t.match(e);if(!i)return null;var r=(""+i[0]).match(n)||["-",0,0],o=r[0],a=60*+r[1]+ +r[2];return 0===a?0:"+"===o?a:-a}(i)))return this;var a=Math.abs(i)<=16?60*i:i,s=this;if(r)return s.$offset=a,s.$u=0===i,s;if(0!==i){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,t)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var u=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return p.call(this,t,e,n);var i=this.local(),r=o(t).local();return p.call(i,r,e,n)}}}()}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(353),e=n.n(t),i=n(826),r=n.n(i),o=n(522),a=n.n(o),s=n(569),l=n.n(s);e().extend(r()),e().extend(a()),e().extend(l());const c=e(),u=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],d=function(t){const e=(t||"").split(":");return 2==e.length?{hour:e[0],minute:e[1]}:null},p=function(t){const e=(t||"").split(":");if(e.length>=2){return{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}}return null},f=function(t,e){const n=p(t),i=p(e),r=n.minutes+60*n.hours,o=i.minutes+60*i.hours;return r===o?0:r>o?1:-1},m=function(t,e,n){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var r="expires="+i.toUTCString();document.cookie=t+"="+e+";"+r+";path=/"},h=function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(e))return r.substring(e.length,r.length)}return""},g=function(t,e){let n;if("ON"===t.isAlwaysAvailable)return"online";var i;i=e.timezone,n=/\d/.test(i)?c().utcOffset(function(t){const e=t.split(":");let n,i;return 2===e.length?(n=parseInt(e[0]),i=parseInt(e[1])):(n=parseInt(e[0]),i=0),-1!==t.indexOf("-")?-(60*Math.abs(n)+i):60*n+i}(e.timezone)):c(c()).tz(e.timezone);const r=u[n.get("day")],o=t.daysOfWeekWorking[r];if("OFF"===o.isWorkingOnDay)return t.dayOffsText;for(let i=0;i<o.workHours.length;i++){const r=n.get("hour")+":"+n.get("minute"),l=o.workHours[i].startTime,u=o.workHours[i].endTime;if(-1===f(r,l)){const i=p(l),r=(a={hour:i.hours,minute:i.minutes},s={hour:n.get("hour"),minute:n.get("minute")},1e3*(3600*(a.hour-s.hour)+60*(a.minute-s.minute))),o=c.duration(r),u=d(e.options.display.time_symbols),f=` ${o.get("hours")}${u.hour}:${o.get("minutes")}${u.minute} `;return t.willBeBackText.replace(/\[njwa_time_work\]/gi,f)}if(0===f(r,l)||0===f(r,u))return"online";if(1===f(r,l)&&-1===f(r,u))return"online"}var a,s;return t.dayOffsText},_=function(t,e){if("ON"==e.enabledFacebook||"ON"==e.enabledGoogle){var n=t.href,i=n.indexOf("phone=")+6,r=n.indexOf("&text=");-1===r&&(r=n.length);var o=n.substring(i,r),a="NinjaTeam WhatsApp",s="Phone Number: "+o,l=document.title;if("ON"===e.enabledFacebook&&"undefined"!=typeof fbq&&fbq("trackCustom","NinjaTeam WhatsApp",{phone:o,label:l}),"ON"===e.enabledGoogle){if("undefined"!=typeof gtag)"ON"===e.enabledGoogleGA4?gtag("event","NinjaTeam WhatsApp",{number:o,title:l,url:window.location.href}):gtag("event",s,{event_category:a,event_label:l});else if("undefined"!=typeof ga&&void 0!==ga.getAll){ga.getAll()[0].send("event",a,s,l)}else"undefined"!=typeof __gaTracker&&__gaTracker("send","event",a,s,l);"undefined"!=typeof dataLayer&&dataLayer.push({event:"NinjaTeam WhatsApp",number:o,title:l,url:window.location.href,event_category:a,event_label:l,event_action:s})}}},{entries:y,setPrototypeOf:b,isFrozen:v,getPrototypeOf:w,getOwnPropertyDescriptor:T}=Object;let{freeze:S,seal:A,create:E}=Object,{apply:$,construct:x}="undefined"!=typeof Reflect&&Reflect;S||(S=function(t){return t}),A||(A=function(t){return t}),$||($=function(t,e,n){return t.apply(e,n)}),x||(x=function(t,e){return new t(...e)});const N=F(Array.prototype.forEach),M=F(Array.prototype.pop),D=F(Array.prototype.push),O=F(String.prototype.toLowerCase),k=F(String.prototype.toString),C=F(String.prototype.match),L=F(String.prototype.replace),R=F(String.prototype.indexOf),z=F(String.prototype.trim),I=F(Object.prototype.hasOwnProperty),H=F(RegExp.prototype.test),P=(U=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return x(U,e)});var U;function F(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return $(t,e,i)}}function Y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;b&&b(t,null);let i=e.length;for(;i--;){let r=e[i];if("string"==typeof r){const t=n(r);t!==r&&(v(e)||(e[i]=t),r=t)}t[r]=!0}return t}function j(t){for(let e=0;e<t.length;e++){I(t,e)||(t[e]=null)}return t}function W(t){const e=E(null);for(const[n,i]of y(t)){I(t,n)&&(Array.isArray(i)?e[n]=j(i):i&&"object"==typeof i&&i.constructor===Object?e[n]=W(i):e[n]=i)}return e}function G(t,e){for(;null!==t;){const n=T(t,e);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}t=w(t)}return function(){return null}}const B=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Z=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),J=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),K=S(["#text"]),Q=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),tt=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),et=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nt=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),it=A(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rt=A(/<%[\w\W]*|[\w\W]*%>/gm),ot=A(/\$\{[\w\W]*}/gm),at=A(/^data-[\-\w.\u00B7-\uFFFF]+$/),st=A(/^aria-[\-\w]+$/),lt=A(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ct=A(/^(?:\w+script|data):/i),ut=A(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dt=A(/^html$/i),pt=A(/^[a-z][.\w]*(-[.\w]+)+$/i);var ft=Object.freeze({__proto__:null,ARIA_ATTR:st,ATTR_WHITESPACE:ut,CUSTOM_ELEMENT:pt,DATA_ATTR:at,DOCTYPE_NAME:dt,ERB_EXPR:rt,IS_ALLOWED_URI:lt,IS_SCRIPT_OR_DATA:ct,MUSTACHE_EXPR:it,TMPLIT_EXPR:ot});const mt=1,ht=3,gt=7,_t=8,yt=9,bt=function(){return"undefined"==typeof window?null:window};var vt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:bt();const n=e=>t(e);if(n.version="3.2.3",n.removed=[],!e||!e.document||e.document.nodeType!==yt)return n.isSupported=!1,n;let{document:i}=e;const r=i,o=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=e,h=c.prototype,g=G(h,"cloneNode"),_=G(h,"remove"),b=G(h,"nextSibling"),v=G(h,"childNodes"),w=G(h,"parentNode");if("function"==typeof s){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let T,A="";const{implementation:$,createNodeIterator:x,createDocumentFragment:U,getElementsByTagName:F}=i,{importNode:j}=r;let it={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof y&&"function"==typeof w&&$&&void 0!==$.createHTMLDocument;const{MUSTACHE_EXPR:rt,ERB_EXPR:ot,TMPLIT_EXPR:at,DATA_ATTR:st,ARIA_ATTR:ct,IS_SCRIPT_OR_DATA:ut,ATTR_WHITESPACE:pt,CUSTOM_ELEMENT:vt}=ft;let{IS_ALLOWED_URI:wt}=ft,Tt=null;const St=Y({},[...B,...q,...Z,...V,...K]);let At=null;const Et=Y({},[...Q,...tt,...et,...nt]);let $t=Object.seal(E(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),xt=null,Nt=null,Mt=!0,Dt=!0,Ot=!1,kt=!0,Ct=!1,Lt=!0,Rt=!1,zt=!1,It=!1,Ht=!1,Pt=!1,Ut=!1,Ft=!0,Yt=!1,jt=!0,Wt=!1,Gt={},Bt=null;const qt=Y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Zt=null;const Xt=Y({},["audio","video","img","source","image","track"]);let Vt=null;const Jt=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kt="http://www.w3.org/1998/Math/MathML",Qt="http://www.w3.org/2000/svg",te="http://www.w3.org/1999/xhtml";let ee=te,ne=!1,ie=null;const re=Y({},[Kt,Qt,te],k);let oe=Y({},["mi","mo","mn","ms","mtext"]),ae=Y({},["annotation-xml"]);const se=Y({},["title","style","font","a","script"]);let le=null;const ce=["application/xhtml+xml","text/html"];let ue=null,de=null;const pe=i.createElement("form"),fe=function(t){return t instanceof RegExp||t instanceof Function},me=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!de||de!==t){if(t&&"object"==typeof t||(t={}),t=W(t),le=-1===ce.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ue="application/xhtml+xml"===le?k:O,Tt=I(t,"ALLOWED_TAGS")?Y({},t.ALLOWED_TAGS,ue):St,At=I(t,"ALLOWED_ATTR")?Y({},t.ALLOWED_ATTR,ue):Et,ie=I(t,"ALLOWED_NAMESPACES")?Y({},t.ALLOWED_NAMESPACES,k):re,Vt=I(t,"ADD_URI_SAFE_ATTR")?Y(W(Jt),t.ADD_URI_SAFE_ATTR,ue):Jt,Zt=I(t,"ADD_DATA_URI_TAGS")?Y(W(Xt),t.ADD_DATA_URI_TAGS,ue):Xt,Bt=I(t,"FORBID_CONTENTS")?Y({},t.FORBID_CONTENTS,ue):qt,xt=I(t,"FORBID_TAGS")?Y({},t.FORBID_TAGS,ue):{},Nt=I(t,"FORBID_ATTR")?Y({},t.FORBID_ATTR,ue):{},Gt=!!I(t,"USE_PROFILES")&&t.USE_PROFILES,Mt=!1!==t.ALLOW_ARIA_ATTR,Dt=!1!==t.ALLOW_DATA_ATTR,Ot=t.ALLOW_UNKNOWN_PROTOCOLS||!1,kt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Ct=t.SAFE_FOR_TEMPLATES||!1,Lt=!1!==t.SAFE_FOR_XML,Rt=t.WHOLE_DOCUMENT||!1,Ht=t.RETURN_DOM||!1,Pt=t.RETURN_DOM_FRAGMENT||!1,Ut=t.RETURN_TRUSTED_TYPE||!1,It=t.FORCE_BODY||!1,Ft=!1!==t.SANITIZE_DOM,Yt=t.SANITIZE_NAMED_PROPS||!1,jt=!1!==t.KEEP_CONTENT,Wt=t.IN_PLACE||!1,wt=t.ALLOWED_URI_REGEXP||lt,ee=t.NAMESPACE||te,oe=t.MATHML_TEXT_INTEGRATION_POINTS||oe,ae=t.HTML_INTEGRATION_POINTS||ae,$t=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&fe(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($t.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&fe(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($t.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&($t.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ct&&(Dt=!1),Pt&&(Ht=!0),Gt&&(Tt=Y({},K),At=[],!0===Gt.html&&(Y(Tt,B),Y(At,Q)),!0===Gt.svg&&(Y(Tt,q),Y(At,tt),Y(At,nt)),!0===Gt.svgFilters&&(Y(Tt,Z),Y(At,tt),Y(At,nt)),!0===Gt.mathMl&&(Y(Tt,V),Y(At,et),Y(At,nt))),t.ADD_TAGS&&(Tt===St&&(Tt=W(Tt)),Y(Tt,t.ADD_TAGS,ue)),t.ADD_ATTR&&(At===Et&&(At=W(At)),Y(At,t.ADD_ATTR,ue)),t.ADD_URI_SAFE_ATTR&&Y(Vt,t.ADD_URI_SAFE_ATTR,ue),t.FORBID_CONTENTS&&(Bt===qt&&(Bt=W(Bt)),Y(Bt,t.FORBID_CONTENTS,ue)),jt&&(Tt["#text"]=!0),Rt&&Y(Tt,["html","head","body"]),Tt.table&&(Y(Tt,["tbody"]),delete xt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw P('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=t.TRUSTED_TYPES_POLICY,A=T.createHTML("")}else void 0===T&&(T=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return t.createPolicy(r,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(m,o)),null!==T&&"string"==typeof A&&(A=T.createHTML(""));S&&S(t),de=t}},he=Y({},[...q,...Z,...X]),ge=Y({},[...V,...J]),_e=function(t){D(n.removed,{element:t});try{w(t).removeChild(t)}catch(e){_(t)}},ye=function(t,e){try{D(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){D(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Ht||Pt)try{_e(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},be=function(t){let e=null,n=null;if(It)t="<remove></remove>"+t;else{const e=C(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===le&&ee===te&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const r=T?T.createHTML(t):t;if(ee===te)try{e=(new f).parseFromString(r,le)}catch(t){}if(!e||!e.documentElement){e=$.createDocument(ee,"template",null);try{e.documentElement.innerHTML=ne?A:r}catch(t){}}const o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),ee===te?F.call(e,Rt?"html":"body")[0]:Rt?e.documentElement:o},ve=function(t){return x.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},we=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Te=function(t){return"function"==typeof l&&t instanceof l};function Se(t,e,i){N(t,(t=>{t.call(n,e,i,de)}))}const Ae=function(t){let e=null;if(Se(it.beforeSanitizeElements,t,null),we(t))return _e(t),!0;const i=ue(t.nodeName);if(Se(it.uponSanitizeElement,t,{tagName:i,allowedTags:Tt}),t.hasChildNodes()&&!Te(t.firstElementChild)&&H(/<[/\w]/g,t.innerHTML)&&H(/<[/\w]/g,t.textContent))return _e(t),!0;if(t.nodeType===gt)return _e(t),!0;if(Lt&&t.nodeType===_t&&H(/<[/\w]/g,t.data))return _e(t),!0;if(!Tt[i]||xt[i]){if(!xt[i]&&$e(i)){if($t.tagNameCheck instanceof RegExp&&H($t.tagNameCheck,i))return!1;if($t.tagNameCheck instanceof Function&&$t.tagNameCheck(i))return!1}if(jt&&!Bt[i]){const e=w(t)||t.parentNode,n=v(t)||t.childNodes;if(n&&e){for(let i=n.length-1;i>=0;--i){const r=g(n[i],!0);r.__removalCount=(t.__removalCount||0)+1,e.insertBefore(r,b(t))}}}return _e(t),!0}return t instanceof c&&!function(t){let e=w(t);e&&e.tagName||(e={namespaceURI:ee,tagName:"template"});const n=O(t.tagName),i=O(e.tagName);return!!ie[t.namespaceURI]&&(t.namespaceURI===Qt?e.namespaceURI===te?"svg"===n:e.namespaceURI===Kt?"svg"===n&&("annotation-xml"===i||oe[i]):Boolean(he[n]):t.namespaceURI===Kt?e.namespaceURI===te?"math"===n:e.namespaceURI===Qt?"math"===n&&ae[i]:Boolean(ge[n]):t.namespaceURI===te?!(e.namespaceURI===Qt&&!ae[i])&&!(e.namespaceURI===Kt&&!oe[i])&&!ge[n]&&(se[n]||!he[n]):!("application/xhtml+xml"!==le||!ie[t.namespaceURI]))}(t)?(_e(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!H(/<\/no(script|embed|frames)/i,t.innerHTML)?(Ct&&t.nodeType===ht&&(e=t.textContent,N([rt,ot,at],(t=>{e=L(e,t," ")})),t.textContent!==e&&(D(n.removed,{element:t.cloneNode()}),t.textContent=e)),Se(it.afterSanitizeElements,t,null),!1):(_e(t),!0)},Ee=function(t,e,n){if(Ft&&("id"===e||"name"===e)&&(n in i||n in pe))return!1;if(Dt&&!Nt[e]&&H(st,e));else if(Mt&&H(ct,e));else if(!At[e]||Nt[e]){if(!($e(t)&&($t.tagNameCheck instanceof RegExp&&H($t.tagNameCheck,t)||$t.tagNameCheck instanceof Function&&$t.tagNameCheck(t))&&($t.attributeNameCheck instanceof RegExp&&H($t.attributeNameCheck,e)||$t.attributeNameCheck instanceof Function&&$t.attributeNameCheck(e))||"is"===e&&$t.allowCustomizedBuiltInElements&&($t.tagNameCheck instanceof RegExp&&H($t.tagNameCheck,n)||$t.tagNameCheck instanceof Function&&$t.tagNameCheck(n))))return!1}else if(Vt[e]);else if(H(wt,L(n,pt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!Zt[t]){if(Ot&&!H(ut,L(n,pt,"")));else if(n)return!1}return!0},$e=function(t){return"annotation-xml"!==t&&C(t,vt)},xe=function(t){Se(it.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||we(t))return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:At,forceKeepAttr:void 0};let r=e.length;for(;r--;){const o=e[r],{name:a,namespaceURI:s,value:l}=o,c=ue(a);let u="value"===a?l:z(l);if(i.attrName=c,i.attrValue=u,i.keepAttr=!0,i.forceKeepAttr=void 0,Se(it.uponSanitizeAttribute,t,i),u=i.attrValue,!Yt||"id"!==c&&"name"!==c||(ye(a,t),u="user-content-"+u),Lt&&H(/((--!?|])>)|<\/(style|title)/i,u)){ye(a,t);continue}if(i.forceKeepAttr)continue;if(ye(a,t),!i.keepAttr)continue;if(!kt&&H(/\/>/i,u)){ye(a,t);continue}Ct&&N([rt,ot,at],(t=>{u=L(u,t," ")}));const d=ue(t.nodeName);if(Ee(d,c,u)){if(T&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(d,c)){case"TrustedHTML":u=T.createHTML(u);break;case"TrustedScriptURL":u=T.createScriptURL(u)}try{s?t.setAttributeNS(s,a,u):t.setAttribute(a,u),we(t)?_e(t):M(n.removed)}catch(t){}}}Se(it.afterSanitizeAttributes,t,null)},Ne=function t(e){let n=null;const i=ve(e);for(Se(it.beforeSanitizeShadowDOM,e,null);n=i.nextNode();)Se(it.uponSanitizeShadowNode,n,null),Ae(n),xe(n),n.content instanceof a&&t(n.content);Se(it.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,c=null;if(ne=!t,ne&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Te(t)){if("function"!=typeof t.toString)throw P("toString is not a function");if("string"!=typeof(t=t.toString()))throw P("dirty is not a string, aborting")}if(!n.isSupported)return t;if(zt||me(e),n.removed=[],"string"==typeof t&&(Wt=!1),Wt){if(t.nodeName){const e=ue(t.nodeName);if(!Tt[e]||xt[e])throw P("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)i=be("\x3c!----\x3e"),o=i.ownerDocument.importNode(t,!0),o.nodeType===mt&&"BODY"===o.nodeName||"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!Ht&&!Ct&&!Rt&&-1===t.indexOf("<"))return T&&Ut?T.createHTML(t):t;if(i=be(t),!i)return Ht?null:Ut?A:""}i&&It&&_e(i.firstChild);const u=ve(Wt?t:i);for(;s=u.nextNode();)Ae(s),xe(s),s.content instanceof a&&Ne(s.content);if(Wt)return t;if(Ht){if(Pt)for(c=U.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(At.shadowroot||At.shadowrootmode)&&(c=j.call(r,c,!0)),c}let d=Rt?i.outerHTML:i.innerHTML;return Rt&&Tt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&H(dt,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),Ct&&N([rt,ot,at],(t=>{d=L(d,t," ")})),T&&Ut?T.createHTML(d):d},n.setConfig=function(){me(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),zt=!0},n.clearConfig=function(){de=null,zt=!1},n.isValidAttribute=function(t,e,n){de||me({});const i=ue(t),r=ue(e);return Ee(i,r,n)},n.addHook=function(t,e){"function"==typeof e&&D(it[t],e)},n.removeHook=function(t){return M(it[t])},n.removeHooks=function(t){it[t]=[]},n.removeAllHooks=function(){it={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();void 0===String.prototype.njtReplaceAll&&(String.prototype.njtReplaceAll=function(t,e){return this.replace(new RegExp(t,"g"),(()=>e))});const wt=(St=!1,Tt=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(Tt)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(Tt.substr(0,4)))&&(St=!0),St);var Tt,St;const At=function(t,e){let n="",i=t.predefinedText;if(i=i.njtReplaceAll(/\[njwa_page_title\]/gi,encodeURIComponent(document.title)),i=i.njtReplaceAll(/\[njwa_page_url\]/gi,window.location.href),i=i.njtReplaceAll(/\n/gi,"%0A"),-1!==t.number.indexOf("chat.whatsapp.com"))n+=t.number;else{let r=e.urlSettings[wt?"onMobile":"onDesktop"];if(r||(r="api"),"protocol"===r)return"whatsapp://send?phone="+t.number.replace(/[^0-9]/gi,"");n+="https://"+r+".whatsapp.com/send?phone=",n+=t.number.replace(/[^0-9]/gi,""),n+=t.predefinedText?"&text="+i:""}return n};window.njtWhatsApp={createButton:function(t,e){const n=Object.assign({},e),i=n.info,r=g(i,n);let o="";o+="round"==n.styles.type?" wa__r_button":" wa__sq_button",o+="online"==r?" wa__stt_online":" wa__stt_offline",o+=n.avatar?" wa__btn_w_img":" wa__btn_w_icon",o+=n.name?"":" wa__button_text_only";let a=At(i,n);const s=document.createElement("div");s.setAttribute("class",n.avatar?"wa__cs_img":"wa__btn_icon"),s.appendChild((()=>{if(n.avatar){const t=document.createElement("div");return t.setAttribute("class","wa__cs_img_wrap"),t.setAttribute("style",`background: url(${n.avatar}) center center no-repeat; background-size: cover`),t}{const t=document.createElement("img");return t.setAttribute("alt","img"),t.setAttribute("src",n.defaultAvatar),t}})());const l=document.createElement("div");l.setAttribute("class","wa__btn_txt"),l.appendChild(n.name?(()=>{const t=document.createElement("div");return t.className="wa__cs_info",t.appendChild((()=>{const t=document.createElement("div");return t.setAttribute("class","wa__cs_name"),t.setAttribute("style","online"==r?`color: ${"#fff"==n.styles.textColor||"#ffffff"==n.styles.textColor?"#d5f0d9":n.styles.textColor}; opacity: ${"#fff"==n.styles.textColor||"#ffffff"==n.styles.textColor?1:.8}`:""),t.innerHTML=vt.sanitize(n.name),t})()),t.appendChild((()=>{const t=document.createElement("div");return t.setAttribute("class","wa__cs_status"),t.innerHTML="online"===r?vt.sanitize(n.i18n.online):vt.sanitize(n.i18n.offline),t})()),t})():document.createTextNode("")),l.appendChild((()=>{const t=document.createElement("div");return t.setAttribute("class","wa__btn_title"),t.setAttribute("style","online"==r?"color: "+n.styles.textColor:""),t.innerHTML=vt.sanitize(n.styles.label),t})()),l.appendChild((()=>{if("online"!=r){const t=document.createElement("div");return t.setAttribute("class","wa__btn_status"),t.innerHTML=vt.sanitize(r),t}return document.createTextNode("")})());const c=document.createElement("div");c.setAttribute("class","nta-wa-gdpr"),c.appendChild((()=>{const t=document.createElement("input");t.setAttribute("id","nta-wa-gdpr"),t.setAttribute("type","checkbox"),t.setAttribute("value","accept"),t.onchange=function(t){if(t.target.checked&&(m("nta-wa-gdpr","accept",30),""!=h("nta-wa-gdpr"))){const t=document.querySelectorAll(".nta-wa-gdpr");c.style.opacity=0,setTimeout((()=>{t.forEach((t=>t.style.display="none"))}),400);document.querySelectorAll(".wa__popup_content_item").forEach((t=>t.classList.remove("pointer-disable")))}};const e=document.createElement("span");e.appendChild(t),e.appendChild((()=>{const t=document.createElement("span");return t.innerHTML=vt.sanitize(n.options.styles.gdprContent.njtReplaceAll(/\r\n\r\n/gm,"<br/>")),t})());const i=document.createElement("label");return i.setAttribute("for","nta-wa-gdpr"),i.appendChild(e),i})());const u=document.createElement("a");u.setAttribute("target","ON"==n.urlSettings.openInNewTab?"_blank":"_self"),u.setAttribute("href",a),u.setAttribute("rel","nofollow noopener noreferrer"),u.setAttribute("class","wa__button"+o),u.onclick=function(t){if(n.gdprStatus&&!h("nta-wa-gdpr"))return t.preventDefault(),c.style.background="red",void(c.style.color="#fff");_(this,{enabledFacebook:n.options.analytics.enabledFacebook,enabledGoogle:n.options.analytics.enabledGoogle,enabledGoogleGA4:n.options.analytics.enabledGoogleGA4})},"online"==r&&(u.style.backgroundColor=n.styles.backgroundColor),u.appendChild(s),u.appendChild(l),t.appendChild(u),n.gdprStatus&&"accept"!=h("nta-wa-gdpr")&&t.appendChild(c),t._isWaButton=!0},createWidget:function(t,e){const n=Object.assign({accounts:[],timezone:"",defaultAvatar:"",gdprStatus:!1,options:{display:{},styles:{},analytics:{}},urlSettings:{}},e);if("OFF"==n.options.display.showOnDesktop&&!wt)return;if("OFF"==n.options.display.showOnMobile&&wt)return;const i=n.options.styles;t.classList.add("wa__widget_container");const r=document.createElement("div");r.setAttribute("class","wa__btn_popup_txt"),r.appendChild((()=>{const t=document.createElement("span");return t.innerHTML=vt.sanitize(i.btnLabel),t})()),r.style.display="ON"==i.isShowBtnLabel?"block":"none",r.style.left="left"==i.btnPosition?"100%":"unset",r.style.right="right"==i.btnPosition?"100%":"unset",r.style.marginRight="right"==i.btnPosition?"7px":"0px",r.style.marginLeft="left"==i.btnPosition?"7px":"0px",r.style.width=i.btnLabelWidth+"px";const o=document.createElement("div");o.setAttribute("class","wa__btn_popup_icon"),o.style.background=i.backgroundColor;const a=document.createElement("div");a.setAttribute("class","wa__btn_popup"),a.onclick=function(){let t,e;const n=document.querySelector(".wa__popup_chat_box"),i=document.querySelector(".wa__btn_popup");n.classList.contains("wa__active")?(n.classList.remove("wa__active"),i.classList.remove("wa__active"),clearTimeout(e),n.classList.contains("wa__lauch")&&(t=setTimeout((function(){n.classList.remove("wa__pending"),n.classList.remove("wa__lauch")}),400))):(n.classList.add("wa__pending"),n.classList.add("wa__active"),i.classList.add("wa__active"),clearTimeout(t),n.classList.contains("wa__lauch")||(e=setTimeout((function(){n.classList.add("wa__lauch")}),100)))},a.appendChild(r),a.appendChild(o),a.style.left="left"==i.btnPosition?parseInt(i.btnLeftDistance)+"px":"unset",a.style.right="right"==i.btnPosition?parseInt(i.btnRightDistance)+"px":"unset",a.style.bottom=parseInt(i.btnBottomDistance)+"px",t.appendChild(a);const s=document.createElement("div");s.setAttribute("class","wa__popup_heading"),s.style.background=i.backgroundColor,s.append((()=>{const t=document.createElement("div");return t.className="wa__popup_title",t.innerHTML=vt.sanitize(i.title),t.style.color=i.textColor,t.style.fontSize=i.titleSize+"px",t})()),s.append((()=>{const t=document.createElement("div");return t.className="wa__popup_intro",t.innerHTML=vt.sanitize(i.description.njtReplaceAll(/\r\n\r\n/gm,"<br/>")),t.style="#fff"==i.textColor||"#ffffff"==i.textColor?"color: #D9EBC6":"color: "+i.textColor+"; opacity: 0.8",t.style.fontSize=i.descriptionTextSize+"px",t})());const l=document.createElement("div");l.className="nta-wa-gdpr",l.appendChild((()=>{const t=document.createElement("input");t.setAttribute("id","nta-wa-gdpr"),t.setAttribute("type","checkbox"),t.setAttribute("value","accept"),t.onchange=function(t){if(t.target.checked&&(m("nta-wa-gdpr","accept",30),""!=h("nta-wa-gdpr"))){const t=document.querySelectorAll(".nta-wa-gdpr");l.style.opacity=0,setTimeout((()=>{t.forEach((t=>t.style.display="none"))}),400);document.querySelectorAll(".wa__popup_content_item").forEach((t=>t.classList.remove("pointer-disable")))}};const e=document.createElement("span");e.appendChild(t),e.appendChild((()=>{const t=document.createElement("span");return t.innerHTML=vt.sanitize(n.options.styles.gdprContent.njtReplaceAll(/\r\n\r\n/gm,"<br/>")),t})());const i=document.createElement("label");return i.setAttribute("for","nta-wa-gdpr"),i.appendChild(e),i})());const c=document.createElement("div");c.className="wa__popup_content wa__popup_content_left",c.appendChild((()=>{const t=document.createElement("div");return t.className="wa__popup_notice",t.innerHTML=vt.sanitize(i.responseText.njtReplaceAll(/\r\n\r\n/gm,"<br/>")),t.style.fontSize=i.regularTextSize+"px",t})()),c.appendChild("ON"==i.isShowGDPR&&1==n.gdprStatus&&"accept"!=h("nta-wa-gdpr")?l:document.createTextNode("")),c.appendChild((()=>{const t=document.createElement("div");var e;return t.className="wa__popup_content_list",t.onclick=function(){""==h("nta-wa-gdpr")&&(l.style.background="red",l.style.color="#fff")},e=t,n.accounts.forEach((t=>{const r=g(t,n);let o=At(t,n);const a=document.createElement("div");a.className="wa__popup_avatar"+(t.avatar?"":" nta-default-avt"),a.appendChild((()=>{if(t.avatar){const e=document.createElement("div");return e.className="wa__cs_img_wrap",e.style=`background: url(${t.avatar}) center center no-repeat; background-size: cover;`,e}return document.createRange().createContextualFragment(n.defaultAvatar)})());const s=document.createElement("div");s.className="wa__popup_content_item"+(n.gdprStatus?" pointer-disable":""),s.appendChild((()=>{const e=document.createElement("a");return e.setAttribute("target","ON"==n.urlSettings.openInNewTab?"_blank":"_self"),e.setAttribute("href",o),e.setAttribute("rel","nofollow noopener noreferrer"),e.className="wa__stt"+("online"===r?" wa__stt_online":" wa__stt_offline"),e.onclick=function(){_(this,{enabledFacebook:n.options.analytics.enabledFacebook,enabledGoogle:n.options.analytics.enabledGoogle,enabledGoogleGA4:n.options.analytics.enabledGoogleGA4})},e.appendChild(a),e.appendChild((()=>{const e=document.createElement("div");e.className="wa__popup_txt";let n="";return n+=`<div class="wa__member_name" style='font-size:${i.accountNameSize}px'>${t.accountName}</div>`,n+=`<div class="wa__member_duty" style='font-size:${i.regularTextSize}px'>${t.title}</div>`,n+="online"!=r?`<div class="wa__member_status">${r}</div>`:"",e.innerHTML=vt.sanitize(n),e})()),e})()),e.appendChild(s)})),t})());var u='<a target="_blank" href="https://ninjateam.org/whatsapp-chat-wordpress/"><svg role="img" aria-label="NinjaTeam WhatsApp for WordPress" class="wa__popup_icon-ninja" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 500 500" style="enable-background:new 0 0 500 500;" xml:space="preserve"><g> <path class="st0" fill="#a9a9a9" d="M286.3,67C238,67,194,85.3,160.8,115.2l0-0.1l-13.2-27.8L84.9,49.2l8.5,66.4l27.1,21.1l-31.8-19.9l-60,8.9   l40.2,46.1l48.9,0.3C105.6,197,98.7,225,98.7,254.6c0,103.6,84,187.6,187.6,187.6s187.6-84,187.6-187.6S389.9,67,286.3,67z    M285.8,346.3c-111,0-171.9-63.2-171.9-92.5s62.2-91.5,171.9-91.5c109.5,0,172.8,62.1,172.8,91.5   C458.6,283.2,398.4,346.3,285.8,346.3z"/> <ellipse fill="#a9a9a9" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -77.6656 328.6796)" class="st1" cx="357.9" cy="258.1" rx="20.6" ry="20.6"/> <ellipse fill="#a9a9a9" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -119.8129 226.9269)" class="st1" cx="214" cy="258.1" rx="20.6" ry="20.6"/></g></svg></a>',d='<div class="wa__popup_powered_content">'+u+'<span class="wa__popup_tooltiptext"><svg class="wa__popup_icon-tooltip" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36"><path fill="#FFAC33" d="M32.938 15.651C32.792 15.26 32.418 15 32 15H19.925L26.89 1.458c.219-.426.106-.947-.271-1.243C26.437.071 26.218 0 26 0c-.233 0-.466.082-.653.243L18 6.588 3.347 19.243c-.316.273-.43.714-.284 1.105S3.582 21 4 21h12.075L9.11 34.542c-.219.426-.106.947.271 1.243.182.144.401.215.619.215.233 0 .466-.082.653-.243L18 29.412l14.653-12.655c.317-.273.43-.714.285-1.106z"/></svg> Powered by <span class="wa__popup_tooltiptext-ninja">NinjaTeam</span></span></div>',p='<span class="wa__popup_tooltiptext_mb"> POWERED BY'+u+'<span class="wa__popup_tooltiptext-ninja-mb">NINJATEAM</span></span>';"ON"===i.isShowPoweredBy&&c.appendChild((()=>{const t=document.createElement("div");return t.className=wt?"wa__popup_powered_mb":"wa__popup_powered",t.innerHTML=wt?vt.sanitize(p):vt.sanitize(d),t})()),"ON"===i.isShowScroll&&(c.style.maxHeight=parseInt(i.scrollHeight)+"px",c.style.overflow="auto");const f=document.createElement("div");f.className="wa__popup_chat_box",f.appendChild(s),f.style.left="left"==i.btnPosition?parseInt(i.btnLeftDistance)+"px":"unset",f.style.right="right"==i.btnPosition?parseInt(i.btnRightDistance)+"px":"unset",f.style.bottom=parseInt(i.btnBottomDistance)+72+"px",f.appendChild(c),t.appendChild(f)},ready:function(t){return(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?t():document.addEventListener("DOMContentLoaded",t)}}})()})();(function(){njtWhatsApp.ready(function(){const init=function(){document.querySelectorAll(".nta_wa_button").forEach(function(element){if(element._isWaButton)return
const info=JSON.parse(element.getAttribute('data-info'))
njtWhatsApp.createButton(element,{...info,timezone:njt_wa_global.timezone,i18n:njt_wa_global.i18n,urlSettings:njt_wa_global.urlSettings,})})};init();if(window.jQuery){if(typeof(Riode)!=='undefined'&&typeof(jQuery)!=='undefined'){Riode.$window.on('riode_load',function(){init()})
jQuery(document).ajaxComplete((e,xhs,req)=>{try{if(req.data.indexOf('riode_quickview')>-1){init()}}catch(e){console.log("error")}})}
jQuery(document).ajaxComplete((e,xhs,req)=>{try{if(req.data.indexOf('action=porto_lazyload_menu')>-1){init()}}catch(e){}})}})})();!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)a(n[s]);return a}({1:[function(e,t,r){"use strict";var n=e("./init"),a={init:function(e){this.get=n(e),e&&e.callback&&"function"==typeof e.callback&&e.callback(this.get)}};t.exports=a},{"./init":6}],2:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/utils"),i={containers:{current:"sbjs_current",current_extra:"sbjs_current_add",first:"sbjs_first",first_extra:"sbjs_first_add",session:"sbjs_session",udata:"sbjs_udata",promocode:"sbjs_promo"},service:{migrations:"sbjs_migrations"},delimiter:"|||",aliases:{main:{type:"typ",source:"src",medium:"mdm",campaign:"cmp",content:"cnt",term:"trm",id:"id",platform:"plt",format:"fmt",tactic:"tct"},extra:{fire_date:"fd",entrance_point:"ep",referer:"rf"},session:{pages_seen:"pgs",current_page:"cpg"},udata:{visits:"vst",ip:"uip",agent:"uag"},promo:"code"},pack:{main:function(e){return i.aliases.main.type+"="+e.type+i.delimiter+i.aliases.main.source+"="+e.source+i.delimiter+i.aliases.main.medium+"="+e.medium+i.delimiter+i.aliases.main.campaign+"="+e.campaign+i.delimiter+i.aliases.main.content+"="+e.content+i.delimiter+i.aliases.main.term+"="+e.term+i.delimiter+i.aliases.main.id+"="+e.id+i.delimiter+i.aliases.main.platform+"="+e.platform+i.delimiter+i.aliases.main.format+"="+e.format+i.delimiter+i.aliases.main.tactic+"="+e.tactic},extra:function(e){return i.aliases.extra.fire_date+"="+a.setDate(new Date,e)+i.delimiter+i.aliases.extra.entrance_point+"="+document.location.href+i.delimiter+i.aliases.extra.referer+"="+(document.referrer||n.none)},user:function(e,t){return i.aliases.udata.visits+"="+e+i.delimiter+i.aliases.udata.ip+"="+t+i.delimiter+i.aliases.udata.agent+"="+navigator.userAgent},session:function(e){return i.aliases.session.pages_seen+"="+e+i.delimiter+i.aliases.session.current_page+"="+document.location.href},promo:function(e){return i.aliases.promo+"="+a.setLeadingZeroToInt(a.randomInt(e.min,e.max),e.max.toString().length)}}};t.exports=i},{"./helpers/utils":5,"./terms":9}],3:[function(e,t,r){"use strict";var n=e("../data").delimiter;t.exports={useBase64:!1,setBase64Flag:function(e){this.useBase64=e},encodeData:function(e){return encodeURIComponent(e).replace(/\!/g,"%21").replace(/\~/g,"%7E").replace(/\*/g,"%2A").replace(/\'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")},decodeData:function(e){try{return decodeURIComponent(e).replace(/\%21/g,"!").replace(/\%7E/g,"~").replace(/\%2A/g,"*").replace(/\%27/g,"'").replace(/\%28/g,"(").replace(/\%29/g,")")}catch(t){try{return unescape(e)}catch(r){return""}}},set:function(e,t,r,n,a){var i,s;if(r){var o=new Date;o.setTime(o.getTime()+60*r*1e3),i="; expires="+o.toGMTString()}else i="";s=n&&!a?";domain=."+n:"";var c=this.encodeData(t);this.useBase64&&(c=btoa(c).replace(/=+$/,"")),document.cookie=this.encodeData(e)+"="+c+i+s+"; path=/"},get:function(e){for(var t=this.encodeData(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var a=r[n];" "===a.charAt(0);)a=a.substring(1,a.length);if(0===a.indexOf(t)){var i=a.substring(t.length,a.length);if(/^[A-Za-z0-9+/]+$/.test(i))try{i=atob(i.padEnd(4*Math.ceil(i.length/4),"="))}catch(s){}return this.decodeData(i)}}return null},destroy:function(e,t,r){this.set(e,"",-1,t,r)},parse:function(e){var t=[],r={};if("string"==typeof e)t.push(e);else for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);for(var i=0;i<t.length;i++){var s;r[this.unsbjs(t[i])]={},s=this.get(t[i])?this.get(t[i]).split(n):[];for(var o=0;o<s.length;o++){var c=s[o].split("="),u=c.splice(0,1);u.push(c.join("=")),r[this.unsbjs(t[i])][u[0]]=this.decodeData(u[1])}}return r},unsbjs:function(e){return e.replace("sbjs_","")}}},{"../data":2}],4:[function(e,t,r){"use strict";t.exports={parse:function(e){for(var t=this.parseOptions,r=t.parser[t.strictMode?"strict":"loose"].exec(e),n={},a=14;a--;)n[t.key[a]]=r[a]||"";return n[t.q.name]={},n[t.key[12]].replace(t.q.parser,function(e,r,a){r&&(n[t.q.name][r]=a)}),n},parseOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},getParam:function(e){for(var t={},r=(e||window.location.search.substring(1)).split("&"),n=0;n<r.length;n++){var a=r[n].split("=");if("undefined"==typeof t[a[0]])t[a[0]]=a[1];else if("string"==typeof t[a[0]]){var i=[t[a[0]],a[1]];t[a[0]]=i}else t[a[0]].push(a[1])}return t},getHost:function(e){return this.parse(e).host.replace("www.","")}}},{}],5:[function(e,t,r){"use strict";t.exports={escapeRegexp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},setDate:function(e,t){var r=e.getTimezoneOffset()/60,n=e.getHours(),a=t||0===t?t:-r;return e.setHours(n+r+a),e.getFullYear()+"-"+this.setLeadingZeroToInt(e.getMonth()+1,2)+"-"+this.setLeadingZeroToInt(e.getDate(),2)+" "+this.setLeadingZeroToInt(e.getHours(),2)+":"+this.setLeadingZeroToInt(e.getMinutes(),2)+":"+this.setLeadingZeroToInt(e.getSeconds(),2)},setLeadingZeroToInt:function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r},randomInt:function(e,t){return Math.floor(Math.random()*(t-e+1))+e}}},{}],6:[function(e,t,r){"use strict";var n=e("./data"),a=e("./terms"),i=e("./helpers/cookies"),s=e("./helpers/uri"),o=e("./helpers/utils"),c=e("./params"),u=e("./migrations");t.exports=function(e){var t,r,p,f,m,d,l,g,h,y,_,v,b,x=c.fetch(e),k=s.getParam(),w=x.domain.host,q=x.domain.isolate,I=x.lifetime;function j(e){switch(e){case a.traffic.utm:t=a.traffic.utm,r="undefined"!=typeof k.utm_source?k.utm_source:"undefined"!=typeof k.gclid?"google":"undefined"!=typeof k.yclid?"yandex":a.none,p="undefined"!=typeof k.utm_medium?k.utm_medium:"undefined"!=typeof k.gclid?"cpc":"undefined"!=typeof k.yclid?"cpc":a.none,f="undefined"!=typeof k.utm_campaign?k.utm_campaign:"undefined"!=typeof k[x.campaign_param]?k[x.campaign_param]:"undefined"!=typeof k.gclid?"google_cpc":"undefined"!=typeof k.yclid?"yandex_cpc":a.none,m="undefined"!=typeof k.utm_content?k.utm_content:"undefined"!=typeof k[x.content_param]?k[x.content_param]:a.none,l=k.utm_id||a.none,g=k.utm_source_platform||a.none,h=k.utm_creative_format||a.none,y=k.utm_marketing_tactic||a.none,d="undefined"!=typeof k.utm_term?k.utm_term:"undefined"!=typeof k[x.term_param]?k[x.term_param]:function(){var e=document.referrer;if(k.utm_term)return k.utm_term;if(!(e&&s.parse(e).host&&s.parse(e).host.match(/^(?:.*\.)?yandex\..{2,9}$/i)))return!1;try{return s.getParam(s.parse(document.referrer).query).text}catch(t){return!1}}()||a.none;break;case a.traffic.organic:t=a.traffic.organic,r=r||s.getHost(document.referrer),p=a.referer.organic,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.referral:t=a.traffic.referral,r=r||s.getHost(document.referrer),p=p||a.referer.referral,f=a.none,m=s.parse(document.referrer).path,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;case a.traffic.typein:t=a.traffic.typein,r=x.typein_attributes.source,p=x.typein_attributes.medium,f=a.none,m=a.none,d=a.none,l=a.none,g=a.none,h=a.none,y=a.none;break;default:t=a.oops,r=a.oops,p=a.oops,f=a.oops,m=a.oops,d=a.oops,l=a.oops,g=a.oops,h=a.oops,y=a.oops}var i={type:t,source:r,medium:p,campaign:f,content:m,term:d,id:l,platform:g,format:h,tactic:y};return n.pack.main(i)}function R(e){var t=document.referrer;switch(e){case a.traffic.organic:return!!t&&H(t)&&function(e){var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp("yandex")+"\\..{2,9}$"),n=new RegExp(".*"+o.escapeRegexp("text")+"=.*"),a=new RegExp("^(?:www\\.)?"+o.escapeRegexp("google")+"\\..{2,9}$");if(s.parse(e).query&&s.parse(e).host.match(t)&&s.parse(e).query.match(n))return r="yandex",!0;if(s.parse(e).host.match(a))return r="google",!0;if(!s.parse(e).query)return!1;for(var i=0;i<x.organics.length;i++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.organics[i].host)+"$","i"))&&s.parse(e).query.match(new RegExp(".*"+o.escapeRegexp(x.organics[i].param)+"=.*","i")))return r=x.organics[i].display||x.organics[i].host,!0;if(i+1===x.organics.length)return!1}}(t);case a.traffic.referral:return!!t&&H(t)&&function(e){if(!(x.referrals.length>0))return r=s.getHost(e),!0;for(var t=0;t<x.referrals.length;t++){if(s.parse(e).host.match(new RegExp("^(?:.*\\.)?"+o.escapeRegexp(x.referrals[t].host)+"$","i")))return r=x.referrals[t].display||x.referrals[t].host,p=x.referrals[t].medium||a.referer.referral,!0;if(t+1===x.referrals.length)return r=s.getHost(e),!0}}(t);default:return!1}}function H(e){if(x.domain){if(q)return s.getHost(e)!==s.getHost(w);var t=new RegExp("^(?:.*\\.)?"+o.escapeRegexp(w)+"$","i");return!s.getHost(e).match(t)}return s.getHost(e)!==s.getHost(document.location.href)}function D(){i.set(n.containers.current_extra,n.pack.extra(x.timezone_offset),I,w,q),i.get(n.containers.first_extra)||i.set(n.containers.first_extra,n.pack.extra(x.timezone_offset),I,w,q)}return i.setBase64Flag(x.base64),u.go(I,w,q),i.set(n.containers.current,function(){var e;if("undefined"!=typeof k.utm_source||"undefined"!=typeof k.utm_medium||"undefined"!=typeof k.utm_campaign||"undefined"!=typeof k.utm_content||"undefined"!=typeof k.utm_term||"undefined"!=typeof k.utm_id||"undefined"!=typeof k.utm_source_platform||"undefined"!=typeof k.utm_creative_format||"undefined"!=typeof k.utm_marketing_tactic||"undefined"!=typeof k.gclid||"undefined"!=typeof k.yclid||"undefined"!=typeof k[x.campaign_param]||"undefined"!=typeof k[x.term_param]||"undefined"!=typeof k[x.content_param])D(),e=j(a.traffic.utm);else if(R(a.traffic.organic))D(),e=j(a.traffic.organic);else if(!i.get(n.containers.session)&&R(a.traffic.referral))D(),e=j(a.traffic.referral);else{if(i.get(n.containers.first)||i.get(n.containers.current))return i.get(n.containers.current);D(),e=j(a.traffic.typein)}return e}(),I,w,q),i.get(n.containers.first)||i.set(n.containers.first,i.get(n.containers.current),I,w,q),i.get(n.containers.udata)?(_=parseInt(i.parse(n.containers.udata)[i.unsbjs(n.containers.udata)][n.aliases.udata.visits])||1,_=i.get(n.containers.session)?_:_+1,v=n.pack.user(_,x.user_ip)):(_=1,v=n.pack.user(_,x.user_ip)),i.set(n.containers.udata,v,I,w,q),i.get(n.containers.session)?(b=parseInt(i.parse(n.containers.session)[i.unsbjs(n.containers.session)][n.aliases.session.pages_seen])||1,b+=1):b=1,i.set(n.containers.session,n.pack.session(b),x.session_length,w,q),x.promocode&&!i.get(n.containers.promocode)&&i.set(n.containers.promocode,n.pack.promo(x.promocode),I,w,q),i.parse(n.containers)}},{"./data":2,"./helpers/cookies":3,"./helpers/uri":4,"./helpers/utils":5,"./migrations":7,"./params":8,"./terms":9}],7:[function(e,t,r){"use strict";var n=e("./data"),a=e("./helpers/cookies");t.exports={go:function(e,t,r){var i,s=this.migrations,o={l:e,d:t,i:r};if(a.get(n.containers.first)||a.get(n.service.migrations)){if(!a.get(n.service.migrations))for(i=0;i<s.length;i++)s[i].go(s[i].id,o)}else{var c=[];for(i=0;i<s.length;i++)c.push(s[i].id);var u="";for(i=0;i<c.length;i++)u+=c[i]+"=1",i<c.length-1&&(u+=n.delimiter);a.set(n.service.migrations,u,o.l,o.d,o.i)}},migrations:[{id:"1418474375998",version:"1.0.0-beta",go:function(e,t){var r=e+"=1",i=e+"=0",s=function(e,t,r){return t||r?e:n.delimiter};try{var o=[];for(var c in n.containers)n.containers.hasOwnProperty(c)&&o.push(n.containers[c]);for(var u=0;u<o.length;u++)if(a.get(o[u])){var p=a.get(o[u]).replace(/(\|)?\|(\|)?/g,s);a.destroy(o[u],t.d,t.i),a.destroy(o[u],t.d,!t.i),a.set(o[u],p,t.l,t.d,t.i)}a.get(n.containers.session)&&a.set(n.containers.session,n.pack.session(0),t.l,t.d,t.i),a.set(n.service.migrations,r,t.l,t.d,t.i)}catch(f){a.set(n.service.migrations,i,t.l,t.d,t.i)}}}]}},{"./data":2,"./helpers/cookies":3}],8:[function(e,t,r){"use strict";var n=e("./terms"),a=e("./helpers/uri");t.exports={fetch:function(e){var t=e||{},r={};if(r.lifetime=this.validate.checkFloat(t.lifetime)||6,r.lifetime=parseInt(30*r.lifetime*24*60),r.session_length=this.validate.checkInt(t.session_length)||30,r.timezone_offset=this.validate.checkInt(t.timezone_offset),r.base64=t.base64||!1,r.campaign_param=t.campaign_param||!1,r.term_param=t.term_param||!1,r.content_param=t.content_param||!1,r.user_ip=t.user_ip||n.none,t.promocode?(r.promocode={},r.promocode.min=parseInt(t.promocode.min)||1e5,r.promocode.max=parseInt(t.promocode.max)||999999):r.promocode=!1,t.typein_attributes&&t.typein_attributes.source&&t.typein_attributes.medium?(r.typein_attributes={},r.typein_attributes.source=t.typein_attributes.source,r.typein_attributes.medium=t.typein_attributes.medium):r.typein_attributes={source:"(direct)",medium:"(none)"},t.domain&&this.validate.isString(t.domain)?r.domain={host:t.domain,isolate:!1}:t.domain&&t.domain.host?r.domain=t.domain:r.domain={host:a.getHost(document.location.hostname),isolate:!1},r.referrals=[],t.referrals&&t.referrals.length>0)for(var i=0;i<t.referrals.length;i++)t.referrals[i].host&&r.referrals.push(t.referrals[i]);if(r.organics=[],t.organics&&t.organics.length>0)for(var s=0;s<t.organics.length;s++)t.organics[s].host&&t.organics[s].param&&r.organics.push(t.organics[s]);return r.organics.push({host:"bing.com",param:"q",display:"bing"}),r.organics.push({host:"yahoo.com",param:"p",display:"yahoo"}),r.organics.push({host:"about.com",param:"q",display:"about"}),r.organics.push({host:"aol.com",param:"q",display:"aol"}),r.organics.push({host:"ask.com",param:"q",display:"ask"}),r.organics.push({host:"globososo.com",param:"q",display:"globo"}),r.organics.push({host:"go.mail.ru",param:"q",display:"go.mail.ru"}),r.organics.push({host:"rambler.ru",param:"query",display:"rambler"}),r.organics.push({host:"tut.by",param:"query",display:"tut.by"}),r.referrals.push({host:"t.co",display:"twitter.com"}),r.referrals.push({host:"plus.url.google.com",display:"plus.google.com"}),r},validate:{checkFloat:function(e){return!(!e||!this.isNumeric(parseFloat(e)))&&parseFloat(e)},checkInt:function(e){return!(!e||!this.isNumeric(parseInt(e)))&&parseInt(e)},isNumeric:function(e){return!isNaN(e)},isString:function(e){return"[object String]"===Object.prototype.toString.call(e)}}}},{"./helpers/uri":4,"./terms":9}],9:[function(e,t,r){"use strict";t.exports={traffic:{utm:"utm",organic:"organic",referral:"referral",typein:"typein"},referer:{referral:"referral",organic:"organic",social:"social"},none:"(none)",oops:"(Houston, we have a problem)"}},{}]},{},[1])(1)});var wc_order_attribution={"params":{"lifetime":1.0e-5,"session":30,"base64":!1,"ajaxurl":"https:\/\/www.vetcur-nederland.nl\/wp-admin\/admin-ajax.php","prefix":"wc_order_attribution_","allowTracking":!0},"fields":{"source_type":"current.typ","referrer":"current_add.rf","utm_campaign":"current.cmp","utm_source":"current.src","utm_medium":"current.mdm","utm_content":"current.cnt","utm_id":"current.id","utm_term":"current.trm","utm_source_platform":"current.plt","utm_creative_format":"current.fmt","utm_marketing_tactic":"current.tct","session_entry":"current_add.ep","session_start_time":"current_add.fd","session_pages":"session.pgs","session_count":"udata.vst","user_agent":"udata.uag"}};!function(t){"use strict";const e=t.params,n=(document.querySelector.bind(document),(t,e)=>e.split(".").reduce((t,e)=>t&&t[e],t)),i=()=>null,s=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).__internalSetExtensionData("woocommerce/order-attribution",t,!0)}function r(){return"undefined"!=typeof sbjs}function c(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),a(t.getAttributionData())},o)}}t.getAttributionData=function(){const s=e.allowTracking&&r()?n:i,o=r()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,s(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!r())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const i=t.getAttributionData();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(i),a(i)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c):c(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const i=document.createElement("input");i.type="hidden",i.name=`${e.prefix}${n}`,i.value=s(this.values&&this.values[n]||""),t.appendChild(i)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=s(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '<wc-order-attribution-inputs>' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);var AviaPrivacyCookieConsent={"?":"Gebruik onbekend","aviaCookieConsent":"Gebruik en opslag van cookies is geaccepteerd - beperkingen ingesteld in andere cookies","aviaPrivacyRefuseCookiesHideBar":"Cookie-berichtenbalk verbergen op volgende pagina's en cookies weigeren indien niet toegestaan - aviaPrivacyEssentialCookiesEnabled moet zijn ingesteld","aviaPrivacyEssentialCookiesEnabled":"Sta opslag van essenti\u00eble cookies van de site en andere cookies toe en het gebruik van functies indien niet opt-out","aviaPrivacyVideoEmbedsDisabled":"Sta niet toe dat video's ingesloten kunnen worden","aviaPrivacyGoogleTrackingDisabled":"cookie _gat_ (Slaat informatie op die nodig is voor Google Analytics) moest worden verwijderd","aviaPrivacyGoogleWebfontsDisabled":"Sta niet toe dat Google Webfonts worden gebruikt","aviaPrivacyGoogleMapsDisabled":"Sta niet toe dat Google Maps wordt gebruikt","aviaPrivacyGoogleReCaptchaDisabled":"Sta niet toe dat Google reCAPTCHA wordt gebruikt","aviaPrivacyMustOptInSetting":"Instellingen zijn voor gebruikers die zich moeten aanmelden voor cookies en services","PHPSESSID":"Interne cookie van operationele site - Houdt uw sessie bij","XDEBUG_SESSION":"Interne cookie van operationele site - PHP debugger sessie cookie","wp-settings*":"Interne cookie van operationele site","wordpress*":"Interne cookie van operationele site","tk_ai*":"Interne cookie van winkel","woocommerce*":"Interne cookie van winkel","wp_woocommerce*":"Interne cookie van winkel","wp-wpml*":"Nodig voor het beheer van verschillende talen","_ga":"Slaat informatie op die nodig is voor Google Analytics","_gid":"Slaat informatie op die nodig is voor Google Analytics","_gat_*":"Slaat informatie op die nodig is voor Google Analytics"};var AviaPrivacyCookieAdditionalData={"cookie_refuse_button_alert":"When refusing all cookies this site might not be able to work as expected. Please check our settings page and opt out for cookies or functions you do not want to use and accept cookies. You will be shown this message every time you open a new window or a new tab.\n\nAre you sure you want to continue?","no_cookies_found":"Geen toegankelijke cookies gevonden in domein","admin_keep_cookies":["PHPSESSID","wp-*","wordpress*","XDEBUG*"],"remove_custom_cookies":{"1":{"cookie_name":"_ga","cookie_path":"\/","cookie_content":"Google Analytics Cookie","cookie_info_desc":"Slaat informatie op die nodig is voor Google Analytics","cookie_compare_action":"","avia_cookie_name":"aviaPrivacyGoogleTrackingDisabled"},"2":{"cookie_name":"_gid","cookie_path":"\/","cookie_content":"Google Analytics Cookie","cookie_info_desc":"Slaat informatie op die nodig is voor Google Analytics","cookie_compare_action":"","avia_cookie_name":"aviaPrivacyGoogleTrackingDisabled"},"3":{"cookie_name":"_gat_","cookie_path":"\/","cookie_content":"Google Analytics Cookie","cookie_info_desc":"Slaat informatie op die nodig is voor Google Analytics","cookie_compare_action":"starts_with","avia_cookie_name":"aviaPrivacyGoogleTrackingDisabled"}},"no_lightbox":"We hebben een lightbox nodig om de modale pop-up te tonen. Schakel de ingebouwde lightbox in op het tabblad Thema-opties of neem uw eigen plug-in voor modaal venster op.\\n\\nU moet deze plug-in in JavaScript laden met callback wrapper-functies - zie avia_cookie_consent_modal_callback in bestand enfold\\js\\avia-snippet-cookieconsent.js "};"use strict";!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.7",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&false:c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]));var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1]),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]}),"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a});var woof_filter_titles={"by_text":"by_text","product_cat":"Productcategorie\u00ebn"};var woof_ext_filter_titles={"woof_author":"Op auteur","stock":"Op voorraad","onsales":"Aanbieding","byrating":"Op waardering","woof_text":"Op tekst"};"use strict";var woof_redirect='';var woof_reset_btn_action=!1;var woof_additional_fields={};jQuery(function(){try
{woof_current_values=JSON.parse(woof_current_values)}catch(e){woof_current_values=null}
if(woof_current_values==null||woof_current_values.length==0){woof_current_values={}}});if(typeof woof_lang_custom=='undefined'){var woof_lang_custom={};/*!!important*/
}
if(typeof woof_ext_filter_titles!='undefined'){woof_lang_custom=Object.assign({},woof_lang_custom,woof_ext_filter_titles)}
jQuery(function($){jQuery('body').append('<div id="woof_html_buffer" class="woof_info_popup" style="display: none;"></div>');jQuery.extend(jQuery.fn,{within:function(pSelector){return this.filter(function(){return jQuery(this).closest(pSelector).length})}});let forms=document.querySelectorAll('.woof[data-slug]');if(forms.length){forms.forEach(f=>{if(f.dataset.slug.length>0){swoof_search_slug=f.dataset.slug}})}
if(jQuery('#woof_results_by_ajax').length>0){woof_is_ajax=1}
woof_autosubmit=parseInt(jQuery('.woof').eq(0).data('autosubmit'),10);woof_ajax_redraw=parseInt(jQuery('.woof').eq(0).data('ajax-redraw'),10);woof_ext_init_functions=JSON.parse(woof_ext_init_functions);woof_init_native_woo_price_filter();jQuery('body').on('price_slider_change',function(event,min,max){if(woof_autosubmit&&!woof_show_price_search_button&&jQuery('.price_slider_wrapper').length<3){jQuery('.woof .widget_price_filter form').trigger('submit')}else{var min_price=jQuery(this).find('.price_slider_amount #min_price').val();var max_price=jQuery(this).find('.price_slider_amount #max_price').val();woof_current_values.min_price=min_price;woof_current_values.max_price=max_price}});jQuery('body').on('change','.woof_price_filter_dropdown',function(){var val=jQuery(this).val();if(parseInt(val,10)==-1){delete woof_current_values.min_price;delete woof_current_values.max_price}else{var val=val.split("-");woof_current_values.min_price=val[0];woof_current_values.max_price=val[1]}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}});woof_recount_text_price_filter();jQuery('body').on('change','.woof_price_filter_txt',function(){var from=parseInt(jQuery(this).parent().find('.woof_price_filter_txt_from').val(),10);var to=parseInt(jQuery(this).parent().find('.woof_price_filter_txt_to').val(),10);if(to<from||from<0){delete woof_current_values.min_price;delete woof_current_values.max_price}else{if(typeof woocs_current_currency!=='undefined'){from=Math.ceil(from/parseFloat(woocs_current_currency.rate));to=Math.ceil(to/parseFloat(woocs_current_currency.rate))}
woof_current_values.min_price=from;woof_current_values.max_price=to}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}});jQuery('body').on('click','.woof_open_hidden_li_btn',function(){var state=jQuery(this).data('state');var type=jQuery(this).data('type');if(state=='closed'){jQuery(this).parents('.woof_list').find('.woof_hidden_term').addClass('woof_hidden_term2');jQuery(this).parents('.woof_list').find('.woof_hidden_term').removeClass('woof_hidden_term');if(type=='image'){jQuery(this).find('img').attr('src',jQuery(this).data('opened'))}else{jQuery(this).html(jQuery(this).data('opened'))}
jQuery(this).data('state','opened')}else{jQuery(this).parents('.woof_list').find('.woof_hidden_term2').addClass('woof_hidden_term');jQuery(this).parents('.woof_list').find('.woof_hidden_term2').removeClass('woof_hidden_term2');if(type=='image'){jQuery(this).find('img').attr('src',jQuery(this).data('closed'))}else{jQuery(this).text(jQuery(this).data('closed'))}
jQuery(this).data('state','closed')}
return!1});woof_open_hidden_li();jQuery('.widget_rating_filter li.wc-layered-nav-rating a').on('click',function(){var is_chosen=jQuery(this).parent().hasClass('chosen');var parsed_url=woof_parse_url(jQuery(this).attr('href'));var rate=0;if(parsed_url.query!==undefined){if(parsed_url.query.indexOf('min_rating')!==-1){var arrayOfStrings=parsed_url.query.split('min_rating=');rate=parseInt(arrayOfStrings[1],10)}}
jQuery(this).parents('ul').find('li').removeClass('chosen');if(is_chosen){delete woof_current_values.min_rating}else{woof_current_values.min_rating=rate;jQuery(this).parent().addClass('chosen')}
woof_submit_link(woof_get_submit_link());return!1});jQuery('body').on('click','.woof_start_filtering_btn',function(){var shortcode=jQuery(this).parents('.woof').data('shortcode');jQuery(this).html(woof_lang_loading);jQuery(this).addClass('woof_start_filtering_btn2');jQuery(this).removeClass('woof_start_filtering_btn');var data={action:"woof_draw_products",page:1,shortcode:'woof_nothing',woof_shortcode:shortcode,nonce_filter:woof_front_nonce};jQuery.post(woof_ajaxurl,data,function(content){content=JSON.parse(content);jQuery('div.woof_redraw_zone').replaceWith(jQuery(content.form).find('.woof_redraw_zone'));woof_mass_reinit();woof_init_tooltip()});return!1});window.addEventListener("pageshow",function(event){var woof_check_history=event.persisted||(typeof window.performance!="undefined"&&window.performance.navigation.type===2);if(woof_check_history){woof_hide_info_popup();woof_submit_link_locked=!1}});var str=window.location.href;window.onpopstate=function(event){try{if(Object.keys(woof_current_values).length){var temp=str.split('?');var get1="";if(temp[1]!=undefined){get1=temp[1].split('#')}
var str2=window.location.href;var temp2=str2.split('?');if(temp2[1]==undefined){var get2={0:"",1:""}}else{var get2=temp2[1].split('#')}
if(get2[0]!=get1[0]){woof_show_info_popup(woof_lang_loading);window.location.reload()}
return!1}}catch(e){console.log(e)}};woof_init_ion_sliders();woof_init_show_auto_form();woof_init_hide_auto_form();woof_remove_empty_elements();woof_unblur_filter();woof_init_search_form();woof_init_pagination();woof_init_orderby();woof_init_reset_button();woof_init_beauty_scroll();woof_draw_products_top_panel();woof_shortcode_observer();woof_init_tooltip();woof_init_mobile_filter();if(!woof_is_ajax){woof_redirect_init()}
woof_init_toggles()});function woof_redirect_init(){try{if(jQuery('.woof').length){if(undefined!==jQuery('.woof').val()){woof_redirect=jQuery('.woof').eq(0).data('redirect');if(woof_redirect.length>0){woof_shop_page=woof_current_page_link=woof_redirect}
return woof_redirect}}}catch(e){console.log(e)}}
function woof_init_orderby(){jQuery('body').on('submit','form.woocommerce-ordering',function(){if(!jQuery("#is_woo_shortcode").length){return!1}});jQuery('body').on('change','form.woocommerce-ordering select.orderby',function(){if(!jQuery("#is_woo_shortcode").length){woof_current_values.orderby=jQuery(this).val();woof_ajax_page_num=1;woof_submit_link(woof_get_submit_link(),0);return!1}})}
function woof_init_reset_button(){jQuery('body').on('click','.woof_reset_search_form',function(){woof_ajax_page_num=1;woof_ajax_redraw=0;woof_reset_btn_action=!0;if(woof_is_permalink){woof_current_values={};woof_submit_link(woof_get_submit_link().split("page/")[0])}else{var link=woof_shop_page;if(woof_current_values.hasOwnProperty('page_id')){link=location.protocol+'//'+location.host+"/?page_id="+woof_current_values.page_id;woof_current_values={'page_id':woof_current_values.page_id};woof_get_submit_link()}
woof_submit_link(link);if(woof_is_ajax){history.pushState({},"",link);if(woof_current_values.hasOwnProperty('page_id')){woof_current_values={'page_id':woof_current_values.page_id}}else{woof_current_values={}}}}
return!1})}
function woof_init_pagination(){if(woof_is_ajax===1){jQuery('body').on('click','.woocommerce-pagination a.page-numbers',function(){var l=jQuery(this).attr('href');if(woof_ajax_first_done){var res=l.split("paged=");if(typeof res[1]!=='undefined'){woof_ajax_page_num=parseInt(res[1])}else{woof_ajax_page_num=1}
var res2=l.split("product-page=");if(typeof res2[1]!=='undefined'){woof_ajax_page_num=parseInt(res2[1])}}else{var res=l.split("page/");if(typeof res[1]!=='undefined'){woof_ajax_page_num=parseInt(res[1])}else{woof_ajax_page_num=1}
var res2=l.split("product-page=");if(typeof res2[1]!=='undefined'){woof_ajax_page_num=parseInt(res2[1])}}
{woof_submit_link(woof_get_submit_link(),0)}
return!1})}}
function woof_init_search_form(){woof_init_checkboxes();woof_init_mselects();woof_init_radios();woof_price_filter_radio_init();woof_init_selects();if(woof_ext_init_functions!==null){jQuery.each(woof_ext_init_functions,function(type,func){eval(func+'()')})}
jQuery('.woof_submit_search_form').on('click',function(){if(woof_ajax_redraw){woof_ajax_redraw=0;woof_is_ajax=0}
woof_submit_link(woof_get_submit_link());return!1});jQuery('ul.woof_childs_list').parent('li').addClass('woof_childs_list_li');woof_remove_class_widget();woof_checkboxes_slide();document.dispatchEvent(new CustomEvent('woof_init_search_form',{detail:{}}))}
var woof_submit_link_locked=!1;function woof_submit_link(link,ajax_redraw){if(woof_submit_link_locked){return}
if(typeof WoofTurboMode!='undefined'){WoofTurboMode.woof_submit_link(link);return}
if(typeof ajax_redraw=='undefined'){ajax_redraw=woof_ajax_redraw}
woof_submit_link_locked=!0;woof_show_info_popup(woof_lang_loading);if(woof_is_ajax===1&&!ajax_redraw){woof_ajax_first_done=!0;var data={action:"woof_draw_products",link:link,page:woof_ajax_page_num,shortcode:jQuery('#woof_results_by_ajax').data('shortcode'),woof_shortcode:jQuery('div.woof').data('shortcode'),nonce_filter:woof_front_nonce};jQuery.post(woof_ajaxurl,data,function(content){content=JSON.parse(content);woof_before_ajax_form_redrawing();if(jQuery('.woof_results_by_ajax_shortcode').length){if(typeof content.products!="undefined"){jQuery('#woof_results_by_ajax').replaceWith(content.products);var found_count=jQuery('.woof_found_count');jQuery(found_count).show();if(found_count.length>0){var count_prod=jQuery("#woof_results_by_ajax").data('count');if(typeof count_prod!="undefined"){jQuery(found_count).text(count_prod)}}}}else{if(typeof content.products!="undefined"){jQuery('.woof_shortcode_output').replaceWith(content.products)}}
if(typeof content.additional_fields!="undefined"){jQuery.each(content.additional_fields,function(selector,html_data){if(typeof woof_additional_fields[selector]=='undefined'){woof_additional_fields[selector]=jQuery(selector)}
jQuery(selector).replaceWith(html_data)});jQuery.each(woof_additional_fields,function(selector,html_data_old){if(typeof content.additional_fields[selector]=='undefined'){jQuery(selector).replaceWith(html_data_old)}})}
jQuery('div.woof_redraw_zone').replaceWith(jQuery(content.form).find('.woof_redraw_zone'));woof_draw_products_top_panel();woof_mass_reinit();woof_submit_link_locked=!1;jQuery.each(jQuery('#woof_results_by_ajax'),function(index,item){if(index==0){return}
jQuery(item).removeAttr('id')});jQuery('.woof').removeClass('woof_show_filter_for_mobile');woof_infinite();woof_js_after_ajax_done();woof_change_link_addtocart();woof_init_tooltip();document.dispatchEvent(new CustomEvent('woof-ajax-form-redrawing',{detail:{link:link}}))})}else{if(ajax_redraw){var data={action:"woof_draw_products",link:link,page:1,shortcode:'woof_nothing',woof_shortcode:jQuery('div.woof').eq(0).data('shortcode'),nonce_filter:woof_front_nonce};jQuery.post(woof_ajaxurl,data,function(content){woof_before_ajax_form_redrawing();content=JSON.parse(content);jQuery('div.woof_redraw_zone').replaceWith(jQuery(content.form).find('.woof_redraw_zone'));woof_mass_reinit();woof_submit_link_locked=!1;woof_init_tooltip();document.dispatchEvent(new CustomEvent('woof-ajax-form-redrawing',{detail:{link:link}}))})}else{window.location=link;woof_show_info_popup(woof_lang_loading)}}}
function woof_remove_empty_elements(){jQuery.each(jQuery('.woof_container select'),function(index,select){var size=jQuery(select).find('option').length;if(size===0){jQuery(select).parents('.woof_container').remove()}});jQuery.each(jQuery('ul.woof_list'),function(index,ch){var size=jQuery(ch).find('li').length;if(size===0){jQuery(ch).parents('.woof_container').remove()}});jQuery.each(jQuery('.woof_container .woof_list_sd'),function(index,ch){var size=jQuery(ch).find('.woof-sd-ie').length;if(size===0){jQuery(ch).parents('.woof_container').remove()}})}
function woof_get_submit_link(){if(woof_is_ajax){woof_current_values.page=woof_ajax_page_num}
if(Object.keys(woof_current_values).length>0){jQuery.each(woof_current_values,function(index,value){if(index==swoof_search_slug){delete woof_current_values[index]}
if(index=='s'){delete woof_current_values[index]}
if(index=='product'){delete woof_current_values[index]}
if(index=='really_curr_tax'){delete woof_current_values[index]}})}
if(Object.keys(woof_current_values).length===2){if(('min_price' in woof_current_values)&&('max_price' in woof_current_values)){woof_current_page_link=woof_current_page_link.replace(new RegExp(/page\/(\d+)/),"");var l=woof_current_page_link+'?min_price='+woof_current_values.min_price+'&max_price='+woof_current_values.max_price;if(woof_is_ajax){history.pushState({},"",l)}
return l}}
if(Object.keys(woof_current_values).length===0){if(woof_is_ajax){history.pushState({},"",woof_current_page_link)}
return woof_current_page_link}
if(Object.keys(woof_really_curr_tax).length>0){woof_current_values.really_curr_tax=woof_really_curr_tax.term_id+'-'+woof_really_curr_tax.taxonomy}
var link=woof_current_page_link+"?"+swoof_search_slug+"=1";if(!woof_is_permalink){if(woof_redirect.length>0){link=woof_redirect+"?"+swoof_search_slug+"=1";if(woof_current_values.hasOwnProperty('page_id')){delete woof_current_values.page_id}}else{link=location.protocol+'//'+location.host+"?"+swoof_search_slug+"=1"}}
var woof_exclude_accept_array=['path'];if(Object.keys(woof_current_values).length>0){jQuery.each(woof_current_values,function(index,value){if(index=='page'&&woof_is_ajax){index='paged'}
if(index=="product-page"){return}
if(typeof value!=='undefined'){if((typeof value&&value.length>0)||typeof value=='number'){if(jQuery.inArray(index,woof_exclude_accept_array)==-1){link=link+"&"+index+"="+value}}}})}
link=link.replace(new RegExp(/page\/(\d+)/),"");if(woof_is_ajax){history.pushState({},"",link)}
return link}
function woof_show_info_popup(text){if(woof_overlay_skin=='default'){jQuery("#woof_html_buffer").text(text);jQuery("#woof_html_buffer").fadeTo(200,0.9)}else{switch(woof_overlay_skin){case 'loading-balls':case 'loading-bars':case 'loading-bubbles':case 'loading-cubes':case 'loading-cylon':case 'loading-spin':case 'loading-spinning-bubbles':case 'loading-spokes':jQuery('body').plainOverlay('show',{progress:function(){return jQuery('<div id="woof_svg_load_container"><img style="height: 100%; width: 100%" src="'+woof_link+'img/loading-master/'+woof_overlay_skin+'.svg" alt=""></div>')}});break;default:jQuery('body').plainOverlay('show',{duration:-1});break}}}
function woof_hide_info_popup(){if(woof_overlay_skin=='default'){window.setTimeout(function(){jQuery("#woof_html_buffer").fadeOut(400)},200)}else{jQuery('body').plainOverlay('hide')}}
function woof_draw_products_top_panel(){if(woof_is_ajax){jQuery('#woof_results_by_ajax').prev('.woof_products_top_panel').remove()}
var panel=jQuery('.woof_products_top_panel');panel.html('');if(Object.keys(woof_current_values).length>0){panel.show();panel.html('<ul></ul>');panel.find('ul').attr('class','woof_products_top_panel_ul');var is_price_in=!1;jQuery.each(woof_current_values,function(index,value){if(jQuery.inArray(index,woof_accept_array)==-1&&jQuery.inArray(index.replace("rev_",""),woof_accept_array)==-1){return}
if((index=='min_price'||index=='max_price')&&is_price_in){return}
if((index=='min_price'||index=='max_price')&&!is_price_in){is_price_in=!0;index='price';value=woof_lang_pricerange}
var is_range=!1;var range_txt=jQuery("input[data-anchor='woof_n_"+index+"_all_range']").val();if(typeof range_txt!='undefined'){is_range=!0}
value=value.toString().trim();if(value.search(',')){value=value.split(',')}
if(!is_range){jQuery.each(value,function(i,v){if(index=='page'){return}
if(index=='post_type'){return}
var txt=v;if(index=='orderby'){if(woof_lang[v]!==undefined){txt=woof_lang.orderby+': '+woof_lang[v]}else{txt=woof_lang.orderby+': '+v}}else if(index=='perpage'){txt=woof_lang.perpage}else if(index=='price'){txt=woof_lang.pricerange}else{var is_in_custom=!1;if(Object.keys(woof_lang_custom).length>0){jQuery.each(woof_lang_custom,function(i,tt){if(i==index){is_in_custom=!0;txt=tt;if(index=='woof_sku'){txt+=" "+v}}})}
if(!is_in_custom){try{txt=jQuery("input[data-anchor='woof_n_"+index+'_'+v+"']").val()}catch(e){console.log(e)}
if(typeof txt==='undefined'){txt=v}}}
if(typeof woof_filter_titles[index]!='undefined'){var cont_item=panel.find('ul.woof_products_top_panel_ul li ul[data-container='+index+']');if(cont_item.length){cont_item.append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug',v).append(jQuery('<span>').attr('class','woof_remove_ppi').append(txt))))}else{panel.find('ul.woof_products_top_panel_ul').append(jQuery('<li>').append(jQuery('<ul>').attr('data-container',index).append(jQuery('<li>').text(woof_filter_titles[index]+":")).append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug',v).append(jQuery('<span>').attr('class','woof_remove_ppi').append(txt))))))}}else{panel.find('ul.woof_products_top_panel_ul').append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug',v).append(jQuery('<span>').attr('class','woof_remove_ppi').append(txt))))}})}else{if(typeof woof_filter_titles[index]!='undefined'){var cont_item=panel.find('ul.woof_products_top_panel_ul li ul[data-container='+index+']');if(cont_item.length){cont_item.append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug','all_range').append(jQuery('<span>').attr('class','woof_remove_ppi').append(range_txt))))}else{panel.find('ul.woof_products_top_panel_ul').append(jQuery('<li>').append(jQuery('<ul>').attr('data-container',index).append(jQuery('<li>').text(woof_filter_titles[index]+":")).append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug','all_range').append(jQuery('<span>').attr('class','woof_remove_ppi').append(range_txt))))))}}else{panel.find('ul.woof_products_top_panel_ul').append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug','all_range').append(jQuery('<span>').attr('class','woof_remove_ppi').append(range_txt))))}}})}
if(jQuery(panel).find('li').length==0||!jQuery('.woof_products_top_panel').length){panel.hide()}else{panel.find('ul.woof_products_top_panel_ul').prepend(jQuery('<li>').append(jQuery('<button>').attr('class',"woof_reset_button_2").append(woof_lang.clear_all)))}
jQuery('.woof_reset_button_2').on('click',function(){woof_ajax_page_num=1;woof_ajax_redraw=0;woof_reset_btn_action=!0;if(woof_is_permalink){woof_current_values={};woof_submit_link(woof_get_submit_link().split("page/")[0])}else{var link=woof_shop_page;if(woof_current_values.hasOwnProperty('page_id')){link=location.protocol+'//'+location.host+"/?page_id="+woof_current_values.page_id;woof_current_values={'page_id':woof_current_values.page_id};woof_get_submit_link()}
woof_submit_link(link);if(woof_is_ajax){history.pushState({},"",link);if(woof_current_values.hasOwnProperty('page_id')){woof_current_values={'page_id':woof_current_values.page_id}}else{woof_current_values={}}}}
return!1});jQuery('.woof_remove_ppi').parent().on('click',function(event){event.preventDefault();var tax=jQuery(this).data('tax');var name=jQuery(this).data('slug');if(name=='all_range'){delete woof_current_values[tax]}else if(tax!='price'){var values=woof_current_values[tax];values=values.split(',');var tmp=[];jQuery.each(values,function(index,value){if(value!=name){tmp.push(value)}});values=tmp;if(values.length){woof_current_values[tax]=values.join(',')}else{delete woof_current_values[tax]}}else{delete woof_current_values.min_price;delete woof_current_values.max_price}
woof_ajax_page_num=1;woof_reset_btn_action=!0;{woof_submit_link(woof_get_submit_link())}
jQuery('.woof_products_top_panel').find("[data-tax='"+tax+"'][href='"+name+"']").hide(333);return!1})}
function woof_shortcode_observer(){var redirect=!0;if(jQuery('.woof_shortcode_output').length||(jQuery('.woocommerce .products').length&&!jQuery('.single-product').length)){redirect=!1}
if(jQuery('.woocommerce .woocommerce-info').length){redirect=!1}
if(typeof woof_not_redirect!=='undefined'&&woof_not_redirect==1){redirect=!1}
if(jQuery('.woot-data-table').length){redirect=!1}
if(!redirect){woof_current_page_link=location.protocol+'//'+location.host+location.pathname}
if(jQuery('#woof_results_by_ajax').length){woof_is_ajax=1}}
function woof_init_beauty_scroll(){if(woof_use_beauty_scroll){try{var anchor=".woof_section_scrolled, .woof_sid_auto_shortcode .woof_container";jQuery(""+anchor).addClass('woof_use_beauty_scroll')}catch(e){console.log(e)}}}
function woof_remove_class_widget(){jQuery('.woof_container_inner').find('.widget').removeClass('widget')}
function woof_init_show_auto_form(){jQuery('.woof_show_auto_form').off('click');if(jQuery('.woof_show_auto_form.woof_btn').length){jQuery('.woof_btn_default').remove()}
jQuery('.woof_show_auto_form').on('click',function(){var _this=this;jQuery(_this).addClass('woof_hide_auto_form').removeClass('woof_show_auto_form');jQuery(_this).parent().find(".woof_auto_show").show().animate({height:(jQuery(_this).parent().find(".woof_auto_show_indent").height()+20)+"px",opacity:0.96},377,function(){woof_init_hide_auto_form();jQuery(_this).parent().find('.woof_auto_show').removeClass('woof_overflow_hidden');jQuery(_this).parent().find('.woof_auto_show_indent').removeClass('woof_overflow_hidden');jQuery(_this).parent().find(".woof_auto_show").height('auto')});return!1})}
document.addEventListener('click',function(e){let opened=document.querySelectorAll('.woof_auto_show');let target=e.target;let close=!target.classList.contains('woof_sid');if(close){close=!target.closest('.woof_sid')}
if(target.classList.contains('woof_show_auto_form')){return!0}
if(close&&Array.from(opened).length>0){Array.from(opened).forEach(function(item){if(item.parentNode.querySelector('.woof_hide_auto_form')){item.parentNode.querySelector('.woof_hide_auto_form').click()}})}
return!0});function woof_init_hide_auto_form(){jQuery('.woof_hide_auto_form').off('click');jQuery('.woof_hide_auto_form').on('click',function(){var _this=this;jQuery(_this).addClass('woof_show_auto_form').removeClass('woof_hide_auto_form');jQuery(_this).parent().find(".woof_auto_show").show().animate({height:"1px",opacity:0},377,function(){jQuery(_this).parent().find('.woof_auto_show').addClass('woof_overflow_hidden');jQuery(_this).parent().find('.woof_auto_show_indent').addClass('woof_overflow_hidden');woof_init_show_auto_form()});return!1})}
function woof_checkboxes_slide(){if(woof_checkboxes_slide_flag){var childs=jQuery('ul.woof_childs_list');if(childs.length){jQuery.each(childs,function(index,ul){if(jQuery(ul).parents('.woof_no_close_childs').length){return}
if(jQuery(ul).find('input').length==0){return}
var span_class='woof_is_closed';if(woof_supports_html5_storage()){var preulstate=localStorage.getItem(jQuery(ul).closest('li').attr("class"));if(preulstate&&preulstate=='woof_is_opened'){var span_class='woof_is_opened';jQuery(ul).show()}
jQuery(ul).parent('li').children('label').after('<a href="javascript:void(0);" class="woof_childs_list_opener" title="'+woof_lang.list_opener+'" ><span class="'+span_class+'"></span></a>')}else{if(jQuery(ul).find('input[type=checkbox],input[type=radio]').is(':checked')){jQuery(ul).show();span_class='woof_is_opened'}
jQuery(ul).parent('li').children('label').after('<a href="javascript:void(0);" class="woof_childs_list_opener" title="'+woof_lang.list_opener+'" ><span class="'+span_class+'"></span></a>')}});jQuery.each(jQuery('a.woof_childs_list_opener span'),function(index,a){jQuery(a).on('click',function(){var span=jQuery(this);var this_=jQuery(this).parent(".woof_childs_list_opener");if(span.hasClass('woof_is_closed')){jQuery(this_).parent().find('ul.woof_childs_list').first().show(333);span.removeClass('woof_is_closed');span.addClass('woof_is_opened')}else{jQuery(this_).parent().find('ul.woof_childs_list').first().hide(333);span.removeClass('woof_is_opened');span.addClass('woof_is_closed')}
if(woof_supports_html5_storage()){var ullabel=jQuery(this_).closest('li').attr("class");var ullstate=jQuery(this_).children("span").attr("class");localStorage.setItem(ullabel,ullstate)}
return!1})})}}}
function woof_init_ion_sliders(){jQuery.each(jQuery('.woof_range_slider'),function(index,input){try{jQuery(input).ionRangeSlider({min:jQuery(input).data('min'),max:jQuery(input).data('max'),from:jQuery(input).data('min-now'),to:jQuery(input).data('max-now'),type:'double',prefix:jQuery(input).data('slider-prefix'),postfix:jQuery(input).data('slider-postfix'),prettify:!0,prettify_separator:',',prettify_enabled:!0,hideMinMax:!1,hideFromTo:!1,grid:!0,step:jQuery(input).data('step'),onFinish:function(ui){var tax=jQuery(input).data('taxes');woof_current_values.min_price=(parseFloat(ui.from,10)/tax);woof_current_values.max_price=(parseFloat(ui.to,10)/tax);if(typeof woocs_current_currency!=='undefined'){woof_current_values.min_price=woof_current_values.min_price/parseFloat(woocs_current_currency.rate);woof_current_values.max_price=woof_current_values.max_price/parseFloat(woocs_current_currency.rate)}
woof_ajax_page_num=1;if(woof_autosubmit||jQuery(input).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}
return!1},onChange:function(data){if(jQuery('.woof_price_filter_txt')){var tax=jQuery(input).data('taxes');jQuery('.woof_price_filter_txt_from').val(parseInt(data.from,10)/tax);jQuery('.woof_price_filter_txt_to').val(parseInt(data.to,10)/tax);if(typeof woocs_current_currency!=='undefined'){jQuery('.woof_price_filter_txt_from').val(Math.ceil(jQuery('.woof_price_filter_txt_from').val()/parseFloat(woocs_current_currency.rate)));jQuery('.woof_price_filter_txt_to').val(Math.ceil(jQuery('.woof_price_filter_txt_to').val()/parseFloat(woocs_current_currency.rate)))}}},})}catch(e){}})}
function woof_init_native_woo_price_filter(){jQuery('.widget_price_filter form').off('submit');jQuery('.widget_price_filter form').on('submit',function(){var min_price=jQuery(this).find('.price_slider_amount #min_price').val();var max_price=jQuery(this).find('.price_slider_amount #max_price').val();woof_current_values.min_price=min_price;woof_current_values.max_price=max_price;woof_ajax_page_num=1;woof_submit_link(woof_get_submit_link());return!1})}
function woof_reinit_native_woo_price_filter(){if(typeof woocommerce_price_slider_params==='undefined'){return!1}
jQuery('input#min_price, input#max_price').hide();jQuery('.price_slider, .price_label').show();var min_price=jQuery('.price_slider_amount #min_price').data('min'),max_price=jQuery('.price_slider_amount #max_price').data('max'),current_min_price=parseInt(min_price,10),current_max_price=parseInt(max_price,10);if(woof_current_values.hasOwnProperty('min_price')){current_min_price=parseInt(woof_current_values.min_price,10);current_max_price=parseInt(woof_current_values.max_price,10)}else{if(woocommerce_price_slider_params.min_price){current_min_price=parseInt(woocommerce_price_slider_params.min_price,10)}
if(woocommerce_price_slider_params.max_price){current_max_price=parseInt(woocommerce_price_slider_params.max_price,10)}}
var currency_symbol=woocommerce_price_slider_params.currency_symbol;if(typeof currency_symbol=='undefined'){currency_symbol=woocommerce_price_slider_params.currency_format_symbol}
jQuery(document.body).on('price_slider_create price_slider_slide',function(event,min,max){if(typeof woocs_current_currency!=='undefined'){var label_min=min;var label_max=max;if(typeof currency_symbol=='undefined'){currency_symbol=woocs_current_currency.symbol}
if(woocs_current_currency.rate!==1){label_min=Math.ceil(label_min*parseFloat(woocs_current_currency.rate));label_max=Math.ceil(label_max*parseFloat(woocs_current_currency.rate))}
label_min=woof_front_number_format(label_min,2,'.',',');label_max=woof_front_number_format(label_max,2,'.',',');if(jQuery.inArray(woocs_current_currency.name,woocs_array_no_cents)||woocs_current_currency.hide_cents==1){label_min=label_min.replace('.00','');label_max=label_max.replace('.00','')}
if(woocs_current_currency.position==='left'){jQuery('.price_slider_amount span.from').html(currency_symbol+label_min);jQuery('.price_slider_amount span.to').html(currency_symbol+label_max)}else if(woocs_current_currency.position==='left_space'){jQuery('.price_slider_amount span.from').html(currency_symbol+" "+label_min);jQuery('.price_slider_amount span.to').html(currency_symbol+" "+label_max)}else if(woocs_current_currency.position==='right'){jQuery('.price_slider_amount span.from').html(label_min+currency_symbol);jQuery('.price_slider_amount span.to').html(label_max+currency_symbol)}else if(woocs_current_currency.position==='right_space'){jQuery('.price_slider_amount span.from').html(label_min+" "+currency_symbol);jQuery('.price_slider_amount span.to').html(label_max+" "+currency_symbol)}}else{if(woocommerce_price_slider_params.currency_pos==='left'){jQuery('.price_slider_amount span.from').html(currency_symbol+min);jQuery('.price_slider_amount span.to').html(currency_symbol+max)}else if(woocommerce_price_slider_params.currency_pos==='left_space'){jQuery('.price_slider_amount span.from').html(currency_symbol+' '+min);jQuery('.price_slider_amount span.to').html(currency_symbol+' '+max)}else if(woocommerce_price_slider_params.currency_pos==='right'){jQuery('.price_slider_amount span.from').html(min+currency_symbol);jQuery('.price_slider_amount span.to').html(max+currency_symbol)}else if(woocommerce_price_slider_params.currency_pos==='right_space'){jQuery('.price_slider_amount span.from').html(min+' '+currency_symbol);jQuery('.price_slider_amount span.to').html(max+' '+currency_symbol)}}
jQuery(document.body).trigger('price_slider_updated',[min,max])});jQuery('.price_slider').slider({range:!0,animate:!0,min:min_price,max:max_price,values:[current_min_price,current_max_price],create:function(){jQuery('.price_slider_amount #min_price').val(current_min_price);jQuery('.price_slider_amount #max_price').val(current_max_price);jQuery(document.body).trigger('price_slider_create',[current_min_price,current_max_price])},slide:function(event,ui){jQuery('input#min_price').val(ui.values[0]);jQuery('input#max_price').val(ui.values[1]);jQuery(document.body).trigger('price_slider_slide',[ui.values[0],ui.values[1]])},change:function(event,ui){jQuery(document.body).trigger('price_slider_change',[ui.values[0],ui.values[1]])}});woof_init_native_woo_price_filter()}
function woof_mass_reinit(){woof_remove_empty_elements();woof_open_hidden_li();woof_init_search_form();woof_hide_info_popup();woof_init_beauty_scroll();woof_init_ion_sliders();woof_reinit_native_woo_price_filter();woof_recount_text_price_filter();woof_draw_products_top_panel();woof_unblur_filter()}
function woof_unblur_filter(){jQuery('.woof_redraw_zone.woof_blur_redraw_zone').removeClass('woof_blur_redraw_zone')}
function woof_recount_text_price_filter(){if(typeof woocs_current_currency!=='undefined'){jQuery.each(jQuery('.woof_price_filter_txt_from, .woof_price_filter_txt_to'),function(i,item){jQuery(this).val(Math.ceil(jQuery(this).data('value')))})}}
function woof_init_toggles(){jQuery('body').off('click','.woof_front_toggle');jQuery('body').on('click','.woof_front_toggle',function(){if(jQuery(this).data('condition')=='opened'){jQuery(this).removeClass('woof_front_toggle_opened');jQuery(this).addClass('woof_front_toggle_closed');jQuery(this).data('condition','closed');if(woof_toggle_type=='text'){jQuery(this).text(woof_toggle_closed_text)}else{jQuery(this).find('img').prop('src',woof_toggle_closed_image)}}else{jQuery(this).addClass('woof_front_toggle_opened');jQuery(this).removeClass('woof_front_toggle_closed');jQuery(this).data('condition','opened');if(woof_toggle_type=='text'){jQuery(this).text(woof_toggle_opened_text)}else{jQuery(this).find('img').prop('src',woof_toggle_opened_image)}}
jQuery(this).parents('.woof_container_inner').find('.woof_block_html_items').slideToggle(500);var is_chosen_here=jQuery(this).parents('.woof_container_inner').find('.chosen-container');if(is_chosen_here.length&&jQuery(this).hasClass('woof_front_toggle_opened')){jQuery(this).parents('.woof_container_inner').find('select').chosen('destroy').trigger("liszt:updated");jQuery(this).parents('.woof_container_inner').find('select').chosen()}
if(jQuery(this).hasClass('woof_front_toggle_opened')){woof_reinit_selects()}
return!1})}
function woof_open_hidden_li(){if(jQuery('.woof_open_hidden_li_btn').length>0){jQuery.each(jQuery('.woof_open_hidden_li_btn'),function(i,b){if(jQuery(b).parents('ul').find('li.woof_hidden_term input[type=checkbox],li.woof_hidden_term input[type=radio]').is(':checked')){jQuery(b).trigger('click')}})}}
function $_woof_GET(q,s){s=(s)?s:window.location.search;var re=new RegExp('&'+q+'=([^&]*)','i');return(s=s.replace(/^\?/,'&').match(re))?s=s[1]:s=''}
function woof_parse_url(url){var pattern=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");var matches=url.match(pattern);return{scheme:matches[2],authority:matches[4],path:matches[5],query:matches[7],fragment:matches[9]}}
function woof_price_filter_radio_init(){if(icheck_skin!='none'){jQuery('.woof_price_filter_radio').iCheck('destroy');let icheck_selector='.woof_price_filter_radio';let skin=jQuery(icheck_selector).parents('.woof_redraw_zone').eq(0).data('icheck-skin');if(skin){skin=skin.split('_');jQuery(icheck_selector).iCheck({radioClass:'iradio_'+skin[0]+'-'+skin[1]})}else{jQuery(icheck_selector).iCheck({radioClass:'iradio_'+icheck_skin.skin+'-'+icheck_skin.color})}
jQuery('.woof_price_filter_radio').siblings('div').removeClass('checked');jQuery('.woof_price_filter_radio').off('ifChecked');jQuery('.woof_price_filter_radio').on('ifChecked',function(event){jQuery(this).attr("checked",!0);jQuery('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_price_reset').hide();jQuery(this).parents('li').eq(0).find('.woof_radio_price_reset').eq(0).addClass('woof_radio_term_reset_visible');var val=jQuery(this).val();if(parseInt(val,10)==-1){delete woof_current_values.min_price;delete woof_current_values.max_price;jQuery(this).removeAttr('checked');jQuery(this).siblings('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible')}else{var val=val.split("-");woof_current_values.min_price=val[0];woof_current_values.max_price=val[1];jQuery(this).siblings('.woof_radio_price_reset').addClass('woof_radio_term_reset_visible');jQuery(this).attr("checked",!0)}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}})}else{jQuery('body').on('change','.woof_price_filter_radio',function(){var val=jQuery(this).val();jQuery('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible');if(parseInt(val,10)==-1){delete woof_current_values.min_price;delete woof_current_values.max_price;jQuery(this).removeAttr('checked');jQuery(this).siblings('.woof_radio_price_reset').removeClass('woof_radio_term_reset_visible')}else{var val=val.split("-");woof_current_values.min_price=val[0];woof_current_values.max_price=val[1];jQuery(this).siblings('.woof_radio_price_reset').addClass('woof_radio_term_reset_visible');jQuery(this).attr("checked",!0)}
if(woof_autosubmit||jQuery(this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}})}
jQuery('.woof_radio_price_reset').on('click',function(){delete woof_current_values.min_price;delete woof_current_values.max_price;jQuery(this).siblings('div').removeClass('checked');jQuery(this).parents('.woof_list').find('input[type=radio]').removeAttr('checked');jQuery(this).removeClass('woof_radio_term_reset_visible');if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}
return!1})}
function woof_serialize(serializedString){var str=decodeURI(serializedString);var pairs=str.split('&');var obj={},p,idx,val;for(var i=0,n=pairs.length;i<n;i++){p=pairs[i].split('=');idx=p[0];if(idx.indexOf("[]")==(idx.length-2)){var ind=idx.substring(0,idx.length-2)
if(obj[ind]===undefined){obj[ind]=[]}
obj[ind].push(p[1])}else{obj[idx]=p[1]}}
return obj}
function woof_infinite(){if(typeof yith_infs_premium!=='undefined'&&yith_infs_premium.options){woof_change_ajax_next_link();return!1}
if(typeof yith_infs==='undefined'){return}
var infinite_scroll1={'nextSelector':'.woocommerce-pagination li .next','navSelector':yith_infs.navSelector,'itemSelector':yith_infs.itemSelector,'contentSelector':yith_infs.contentSelector,'loader':'<img src="'+yith_infs.loader+'">','is_shop':yith_infs.shop};woof_change_ajax_next_link();jQuery(window).off("yith_infs_start"),jQuery(yith_infs.contentSelector).yit_infinitescroll(infinite_scroll1)}
function woof_change_ajax_next_link(){if(!jQuery('.woocommerce-pagination li .next').length){return!1}
var curr_l=window.location.href;var curr_link=curr_l.split('?');var get="";if(curr_link[1]!=undefined){var temp=woof_serialize(curr_link[1]);delete temp.paged;get=decodeURIComponent(jQuery.param(temp))}
var page_link=jQuery('.woocommerce-pagination li .next').attr("href");if(page_link==undefined){page_link=curr_link+"page/1/"}
var ajax_link=page_link.split('?');var page="";if(ajax_link[1]!=undefined){var temp1=woof_serialize(ajax_link[1]);if(temp1.paged!=undefined){page="/page/"+temp1.paged+"/"}}
page_link=curr_link[0].replace(/\/$/,"")+page+'?'+get;jQuery('.woocommerce-pagination li .next').attr('href',page_link)}
function woof_change_link_addtocart(){if(!woof_is_ajax){return}
jQuery(".add_to_cart_button").each(function(i,elem){var link=jQuery(elem).attr('href');if(link){var link_items=link.split("?");var site_link_items=window.location.href.split("?");if(link_items[1]!=undefined){link=site_link_items[0]+"?"+link_items[1];jQuery(elem).attr('href',link)}}})}
function woof_front_number_format(number,decimals,dec_point,thousands_sep){number=(number+'').replace(/[^0-9+\-Ee.]/g,'');var n=!isFinite(+number)?0:+number,prec=!isFinite(+decimals)?0:Math.abs(decimals),sep=(typeof thousands_sep==='undefined')?',':thousands_sep,dec=(typeof dec_point==='undefined')?'.':dec_point,s='',toFixedFix=function(n,prec){var k=Math.pow(10,prec);return''+(Math.round(n*k)/k).toFixed(prec)};s=(prec?toFixedFix(n,prec):''+Math.round(n)).split('.');if(s[0].length>3){s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep)}
if((s[1]||'').length<prec){s[1]=s[1]||'';s[1]+=new Array(prec-s[1].length+1).join('0')}
return s.join(dec)}
function woof_supports_html5_storage(){try{return'localStorage' in window&&window.localStorage!==null}catch(e){return!1}}
function woof_init_tooltip(){var tooltips=jQuery(".woof_tooltip_header");if(tooltips.length){jQuery(tooltips).tooltipster({theme:'tooltipster-noir',side:'right',trigger:'click'})}}
function woof_before_ajax_form_redrawing(){if(woof_select_type=='selectwoo'){try{jQuery("select.woof_mselect").selectWoo('destroy');jQuery("select.woof_meta_mselect").selectWoo('destroy')}catch(e){return!1}}}
function woof_reinit_selects(){if(woof_select_type=='chosen'){try{jQuery("select.woof_select, select.woof_mselect").chosen('destroy').trigger("liszt:updated");jQuery("select.woof_select, select.woof_mselect").chosen();jQuery("select.woof_meta_select, select.woof_meta_mselect").chosen('destroy').trigger("liszt:updated");jQuery("select.woof_meta_select, select.woof_meta_mselect").chosen()}catch(e){}}else if(woof_select_type=='selectwoo'){try{jQuery("select.woof_select, select.woof_mselect").selectWoo('destroy');jQuery("select.woof_select, select.woof_mselect").selectWoo();jQuery("select.woof_meta_select, select.woof_meta_mselect").selectWoo('destroy');jQuery("select.woof_meta_select, select.woof_meta_mselect").selectWoo()}catch(e){}}}
function woof_init_mobile_filter(){var show_btn=jQuery('.woof_show_mobile_filter');var show_btn_container=jQuery('.woof_show_mobile_filter_container');var def_container=jQuery(woof_m_b_container);if(!show_btn_container.length){show_btn_container=def_container}
if(show_btn&&show_btn_container){jQuery(show_btn_container).append(show_btn)}
jQuery('.woof_show_mobile_filter').on('click',function(e){var sid=jQuery(this).data('sid');if(jQuery('.woof.woof_sid_front_builder').length>0){sid='front_builder';jQuery('.woof.woof_sid_'+sid).toggleClass('woof_show_filter_for_mobile')}else{jQuery('.woof.woof_sid_'+sid).toggleClass('woof_show_filter_for_mobile')}
setTimeout(function(){try{jQuery('.woof.woof_sid_'+sid).find("select.woof_mselect").chosen('destroy');jQuery('.woof.woof_sid_'+sid).find("select.woof_select").chosen('destroy');jQuery('.woof.woof_sid_'+sid).find("select.woof_mselect").chosen();jQuery('.woof.woof_sid_'+sid).find("select.woof_select").chosen()}catch(e){}},300)});jQuery('.woof_hide_mobile_filter').on('click',function(e){jQuery(this).parents('.woof').toggleClass('woof_show_filter_for_mobile')})};"use strict";function woof_init_radios(){if(icheck_skin!='none'){jQuery('.woof_radio_term').iCheck('destroy');let skin=jQuery('.woof_radio_term').parents('.woof_redraw_zone').eq(0).data('icheck-skin');if(skin){skin=skin.split('_');jQuery('.woof_radio_term').iCheck({radioClass:'iradio_'+skin[0]+'-'+skin[1]})}else{jQuery('.woof_radio_term').iCheck({radioClass:'iradio_'+icheck_skin.skin+'-'+icheck_skin.color})}
jQuery('.woof_radio_term').off('ifChecked');jQuery('.woof_radio_term').on('ifChecked',function(event){jQuery(this).attr("checked",!0);jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');var slug=jQuery(this).data('slug');var name=jQuery(this).attr('name');var term_id=jQuery(this).data('term-id');woof_radio_direct_search(term_id,name,slug)})}else{jQuery('.woof_radio_term').on('change',function(event){jQuery(this).attr("checked",!0);var slug=jQuery(this).data('slug');var name=jQuery(this).attr('name');var term_id=jQuery(this).data('term-id');jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').removeClass('woof_radio_term_reset_visible');jQuery(this).parents('.woof_list').find('.woof_radio_term_reset').hide();jQuery(this).parents('li').eq(0).find('.woof_radio_term_reset').eq(0).addClass('woof_radio_term_reset_visible');woof_radio_direct_search(term_id,name,slug)})}
jQuery('.woof_radio_term_reset').on('click',function(){woof_radio_direct_search(jQuery(this).data('term-id'),jQuery(this).attr('data-name'),0);jQuery(this).parents('.woof_list').find('.checked').removeClass('checked');jQuery(this).parents('.woof_list').find('input[type=radio]').removeAttr('checked');jQuery(this).removeClass('woof_radio_term_reset_visible');return!1})}
function woof_radio_direct_search(term_id,name,slug){jQuery.each(woof_current_values,function(index,value){if(index==name){delete woof_current_values[name];return}});if(slug!=0){woof_current_values[name]=slug;jQuery('a.woof_radio_term_reset_'+term_id).hide();jQuery('woof_radio_term_'+term_id).filter(':checked').parents('li').find('a.woof_radio_term_reset').show();jQuery('woof_radio_term_'+term_id).parents('ul.woof_list').find('label').css({'fontWeight':'normal'});jQuery('woof_radio_term_'+term_id).filter(':checked').parents('li').find('label.woof_radio_label_'+slug).css({'fontWeight':'bold'})}else{jQuery('a.woof_radio_term_reset_'+term_id).hide();jQuery('woof_radio_term_'+term_id).attr('checked',!1);jQuery('woof_radio_term_'+term_id).parent().removeClass('checked');jQuery('woof_radio_term_'+term_id).parents('ul.woof_list').find('label').css({'fontWeight':'normal'})}
woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}};"use strict";function woof_init_checkboxes(){if(icheck_skin!='none'){jQuery('.woof_checkbox_term').iCheck('destroy');let icheck_selector='.woof_checkbox_term';let skin=jQuery(icheck_selector).parents('.woof_redraw_zone').eq(0).data('icheck-skin');if(skin){skin=skin.split('_');jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+skin[0]+'-'+skin[1]})}else{jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+icheck_skin.skin+'-'+icheck_skin.color})}
jQuery('.woof_checkbox_term').off('ifChecked');jQuery('.woof_checkbox_term').on('ifChecked',function(event){jQuery(this).attr("checked",!0);woof_checkbox_process_data(this,!0)});jQuery('.woof_checkbox_term').off('ifUnchecked');jQuery('.woof_checkbox_term').on('ifUnchecked',function(event){jQuery(this).attr("checked",!1);woof_checkbox_process_data(this,!1)});jQuery('.woof_checkbox_label').off();jQuery('label.woof_checkbox_label').on('click',function(){if(jQuery(this).prev().find('.woof_checkbox_term').is(':disabled')){return!1}
if(typeof jQuery(this).prev().find('.woof_checkbox_term').attr('checked')!='undefined'){jQuery(this).prev().find('.woof_checkbox_term').trigger('ifUnchecked');jQuery(this).prev().removeClass('checked')}else{jQuery(this).prev().find('.woof_checkbox_term').trigger('ifChecked');jQuery(this).prev().addClass('checked')}})}else{jQuery('.woof_checkbox_term').on('change',function(event){if(jQuery(this).is(':checked')){jQuery(this).attr("checked",!0);woof_checkbox_process_data(this,!0)}else{jQuery(this).attr("checked",!1);woof_checkbox_process_data(this,!1)}})}}
function woof_checkbox_process_data(_this,is_checked){var tax=jQuery(_this).data('tax');var name=jQuery(_this).attr('name');var term_id=jQuery(_this).data('term-id');woof_checkbox_direct_search(term_id,name,tax,is_checked)}
function woof_checkbox_direct_search(term_id,name,tax,is_checked){var values='';var checked=!0;if(is_checked){if(tax in woof_current_values){woof_current_values[tax]=woof_current_values[tax]+','+name}else{woof_current_values[tax]=name}
checked=!0}else{values=woof_current_values[tax];values=values.split(',');var tmp=[];jQuery.each(values,function(index,value){if(value!=name){tmp.push(value)}});values=tmp;if(values.length){woof_current_values[tax]=values.join(',')}else{delete woof_current_values[tax]}
checked=!1}
jQuery('.woof_checkbox_term_'+term_id).attr('checked',checked);woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}};"use strict";function woof_init_selects(){if(woof_select_type=='chosen'){jQuery("select.woof_select, select.woof_price_filter_dropdown").chosen()}else if(woof_select_type=='selectwoo'){jQuery("select.woof_select, select.woof_price_filter_dropdown").selectWoo()}
jQuery('.woof_select').change(function(){var slug=jQuery(this).val();var name=jQuery(this).attr('name');woof_select_direct_search(this,name,slug)});var containers=jQuery('.woof_hide_empty_container');jQuery.each(containers,function(i,item){var selector=jQuery(item).val();if(selector){jQuery(selector).hide()}})}
function woof_select_direct_search(_this,name,slug){jQuery.each(woof_current_values,function(index,value){if(index==name){delete woof_current_values[name];return}});if(slug!=0){woof_current_values[name]=slug}
woof_ajax_page_num=1;if(woof_autosubmit||jQuery(_this).within('.woof').length==0){woof_submit_link(woof_get_submit_link())}};"use strict";function woof_init_mselects(){if(woof_select_type=='chosen'){jQuery('select.woof_mselect').chosen()}else if(woof_select_type=='selectwoo'){try{jQuery('select.woof_mselect').selectWoo()}catch(e){console.log(e)}}
jQuery('.woof_mselect').change(function(a){var slug=jQuery(this).val();var name=jQuery(this).attr('name');if(woof_select_type=='chosen'){var vals=jQuery(this).chosen().val();jQuery('.woof_mselect[name='+name+'] option:selected').removeAttr("selected");jQuery('.woof_mselect[name='+name+'] option').each(function(i,option){var v=jQuery(this).val();if(jQuery.inArray(v,vals)!==-1){jQuery(this).prop("selected",!0)}})}
woof_mselect_direct_search(name,slug);return!0});var containers=jQuery('.woof_hide_empty_container_ms');jQuery.each(containers,function(i,item){var selector=jQuery(item).val();if(selector){jQuery(selector).hide()}})}
function woof_mselect_direct_search(name,slug){var values=[];jQuery('.woof_mselect[name='+name+'] option:selected').each(function(i,v){values.push(jQuery(this).val())});values=values.filter(function(item,pos){return values.indexOf(item)==pos});values=values.join(',');if(values.length){woof_current_values[name]=values}else{delete woof_current_values[name]}
woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}};"use strict";function woof_init_author(){if(icheck_skin!='none'){jQuery('.woof_checkbox_author').iCheck('destroy');let icheck_selector='.woof_checkbox_author';let skin=jQuery(icheck_selector).parents('.woof_redraw_zone').eq(0).data('icheck-skin');if(skin){skin=skin.split('_');jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+skin[0]+'-'+skin[1]})}else{jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+icheck_skin.skin+'-'+icheck_skin.color})}
jQuery('.woof_checkbox_author').on('ifChecked',function(event){jQuery(this).attr("checked",!0);woof_current_values.woof_author=get_current_checked(this);woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}});jQuery('.woof_checkbox_author').on('ifUnchecked',function(event){jQuery(this).attr("checked",!1);jQuery(this).removeAttr("checked");woof_current_values.woof_author=get_current_checked(this);woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}})}else{jQuery('.woof_checkbox_author').on('change',function(event){if(jQuery(this).is(':checked')){jQuery(this).attr("checked",!0);woof_current_values.woof_author=get_current_checked(this);woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}else{jQuery(this).attr("checked",!1);woof_current_values.woof_author=get_current_checked(this);woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}})}
function get_current_checked(_this){var values=[];jQuery(_this).parents('.woof_authors').find('.woof_checkbox_author').each(function(i,el){if(jQuery(this).attr("checked")=='checked'){values.push(jQuery(this).val())}});values=values.filter((v,i,a)=>a.indexOf(v)===i);return values.join(',')}};"use strict";function woof_init_instock(){if(icheck_skin!='none'){jQuery('.woof_checkbox_instock').iCheck('destroy');let icheck_selector='.woof_checkbox_instock';let skin=jQuery(icheck_selector).parents('.woof_redraw_zone').eq(0).data('icheck-skin');if(skin){skin=skin.split('_');jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+skin[0]+'-'+skin[1]})}else{jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+icheck_skin.skin+'-'+icheck_skin.color})}
jQuery('.woof_checkbox_instock, .woof_checkbox_instock2').on('ifChecked',function(event){jQuery(this).attr("checked",!0);woof_current_values.stock='instock';woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}});jQuery('.woof_checkbox_instock, .woof_checkbox_instock2').on('ifUnchecked',function(event){jQuery(this).attr("checked",!1);delete woof_current_values.stock;woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}})}else{jQuery('.woof_checkbox_instock').on('change',function(event){if(jQuery(this).is(':checked')){jQuery(this).attr("checked",!0);woof_current_values.stock='instock';woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}else{jQuery(this).attr("checked",!1);delete woof_current_values.stock;woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}})}
jQuery('.woof_checkbox_instock_as_switcher').on('change',function(event){if(jQuery(this).is(':checked')){jQuery(this).attr("checked",!0);woof_current_values.stock='instock';woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}else{jQuery(this).attr("checked",!1);delete woof_current_values.stock;woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}})};"use strict";function woof_init_onsales(){if(icheck_skin!='none'){jQuery('.woof_checkbox_sales').iCheck('destroy');let icheck_selector='.woof_checkbox_sales';let skin=jQuery(icheck_selector).parents('.woof_redraw_zone').eq(0).data('icheck-skin');if(skin){skin=skin.split('_');jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+skin[0]+'-'+skin[1]})}else{jQuery(icheck_selector).iCheck({checkboxClass:'icheckbox_'+icheck_skin.skin+'-'+icheck_skin.color})}
jQuery('.woof_checkbox_sales').on('ifChecked',function(event){jQuery(this).attr("checked",!0);woof_current_values.onsales='salesonly';woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}});jQuery('.woof_checkbox_sales').on('ifUnchecked',function(event){jQuery(this).attr("checked",!1);delete woof_current_values.onsales;woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}})}else{jQuery('.woof_checkbox_sales').on('change',function(event){if(jQuery(this).is(':checked')){jQuery(this).attr("checked",!0);woof_current_values.onsales='salesonly';woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}else{jQuery(this).attr("checked",!1);delete woof_current_values.onsales;woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}})}
jQuery('.woof_checkbox_sales_as_switcher').on('change',function(event){if(jQuery(this).is(':checked')){jQuery(this).attr("checked",!0);woof_current_values.onsales='salesonly';woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}else{jQuery(this).attr("checked",!1);delete woof_current_values.onsales;woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}}})};'use strict';function woof_init_text(){(function($){let sparams=(new URL(window.location.href)).searchParams;let data={};data={...data,...woof_husky_txt.default_data};delete data.page;[].forEach.call($.querySelectorAll('input.woof_husky_txt-input'),function(input){let txt=jQuery(input).val();data.s=txt;new HuskyText(input,data)});if(!1){if($.querySelectorAll('form[role=search] input[type=search]').length){[].forEach.call($.querySelectorAll('form[role=search] input[type=search]'),function(input){if(input.classList.contains('husky-input')){return}
if(input.closest('form[role=search]').querySelector('input[type=submit]')){input.closest('form[role=search]').querySelector('input[type=submit]').remove()}
let clone=input.cloneNode(!0);input.insertAdjacentElement('afterend',clone);input.remove();new HuskyText(clone,data)})}}})(document)};"use strict";function woof_init_labels(){jQuery('.woof_label_term').on('click',function(){var checkbox=jQuery(this).find('input.woof_label_term').eq(0);if(jQuery(checkbox).is(':checked')){jQuery(checkbox).attr("checked",!1);jQuery(this).removeClass("checked");woof_label_process_data(checkbox,!1)}else{jQuery(checkbox).attr("checked",!0);jQuery(this).addClass("checked");woof_label_process_data(checkbox,!0)}})}
function woof_label_process_data(_this,is_checked){var tax=jQuery(_this).data('tax');var name=jQuery(_this).attr('name');var term_id=jQuery(_this).data('term-id');woof_label_direct_search(term_id,name,tax,is_checked)}
function woof_label_direct_search(term_id,name,tax,is_checked){var values='';var checked=!0;if(is_checked){if(tax in woof_current_values){woof_current_values[tax]=woof_current_values[tax]+','+name}else{woof_current_values[tax]=name}
checked=!0}else{values=woof_current_values[tax];values=values.split(',');var tmp=[];jQuery.each(values,function(index,value){if(value!=name){tmp.push(value)}});values=tmp;if(values.length){woof_current_values[tax]=values.join(',')}else{delete woof_current_values[tax]}
checked=!1}
jQuery('.woof_label_term_'+term_id).attr('checked',checked);woof_ajax_page_num=1;if(woof_autosubmit){woof_submit_link(woof_get_submit_link())}};"use strict";function woof_sections_html_items(){var sections=jQuery('.woof_section_tab');var request=woof_current_values.replace(/(\\)/,'');request=JSON.parse(request);jQuery.each(sections,function(e,item){var _this=this;jQuery.each(request,function(k,val){var selected=jQuery(_this).find(".woof_container_"+k);if(jQuery(selected).length){if(!jQuery(_this).prev('label').prev("input:checked").length){jQuery(_this).prev('label').trigger('click')}}})});woof_sections_check_empty_items()}
function woof_sections_check_empty_items(){var sections=jQuery('.woof_section_tab');jQuery.each(sections,function(e,item){setTimeout(function(){var filters=jQuery(item).find('.woof_container');var hidden_filter=0;jQuery.each(filters,function(e,filter){if(jQuery(filter).is(":hidden")){hidden_filter++}});if(filters.length==hidden_filter||filters.length==0){jQuery(item).prev('.woof_section_tab_label').hide();jQuery(item).hide()}},1500)})}
document.addEventListener('woof-ajax-form-redrawing',(e)=>{woof_sections_check_empty_items()});woof_sections_html_items();"use strict";jQuery(function($){$(document).on('click',function(e){if(!$(e.target).parents().hasClass("woof_select_radio_check")){$(".woof_select_radio_check dd ul").hide(200);$(".woof_select_radio_check_opened").removeClass('woof_select_radio_check_opened')}})});function woof_init_select_radio_check(){jQuery(".woof_select_radio_check dt a.woof_select_radio_check_opener").on('click',function(){var _this=this;jQuery.each(jQuery(".woof_select_radio_check_opener"),function(i,sel){if(sel!==_this){jQuery(this).parents('.woof_select_radio_check').find("dd ul").hide();jQuery(this).parents('.woof_select_radio_check').find('.woof_select_radio_check_opened').removeClass('woof_select_radio_check_opened')}});jQuery(this).parents('.woof_select_radio_check').find("dd ul").slideToggle(200);if(jQuery(this).parent().hasClass('woof_select_radio_check_opened')){jQuery(this).parent().removeClass('woof_select_radio_check_opened')}else{jQuery(this).parent().addClass('woof_select_radio_check_opened')}});if(Object.keys(woof_current_values).length>0){jQuery.each(woof_current_values,function(index,value){if(!jQuery('.woof_hida_'+index).length){return}
value=value.toString().trim();if(value.search(',')){value=value.split(',')}
var txt_results=new Array();var v_results=new Array();jQuery.each(value,function(i,v){var txt=v;var is_in_custom=!1;if(Object.keys(woof_lang_custom).length>0){jQuery.each(woof_lang_custom,function(i,tt){if(i==index){is_in_custom=!0;txt=tt}})}
if(!is_in_custom){try{txt=jQuery("input[data-anchor='woof_n_"+index+'_'+v+"']").val()}catch(e){console.log(e)}
if(typeof txt==='undefined'){txt=v}}
txt_results.push(txt);v_results.push(v)});if(txt_results.length){jQuery('.woof_hida_'+index).addClass('woof_hida_small');jQuery('.woof_hida_'+index).html('<div class="woof_products_top_panel2"></div>');var panel=jQuery('.woof_hida_'+index).find('.woof_products_top_panel2');panel.show();panel.html('<ul></ul>');jQuery.each(txt_results,function(i,txt){panel.find('ul').append(jQuery('<li>').append(jQuery('<a>').attr('href',"").attr('data-tax',index).attr('data-slug',v_results[i]).append(jQuery('<span>').attr('class','woof_remove_ppi').append(txt))))})}else{jQuery('.woof_hida_'+index).removeClass('woof_hida_small');jQuery('.woof_hida_'+index).html(jQuery('.woof_hida_'+index).data('title'))}})}
jQuery.each(jQuery('.woof_mutliSelect'),function(i,txt){if(parseInt(jQuery(this).data('height'),10)>0){jQuery(this).find('ul.woof_list:first-child').eq(0).css('max-height',jQuery(this).data('height'))}else{jQuery(this).find('ul.woof_list:first-child').eq(0).css('max-height',100)}})};document.addEventListener('woof_init_search_form',function(){woof_sd_slide_list()});function woof_sd_slide_list(){if(woof_checkboxes_slide_flag){let childs=jQuery('.woof-sd-ie-childs');if(childs.length){jQuery.each(childs,function(index,child){if(jQuery(child).parents('.woof_no_close_childs').length){return}
let span_class='woof_is_closed';if(woof_supports_html5_storage()){let preulstate=localStorage.getItem(jQuery(child).prev().attr('class'));if(preulstate&&preulstate==='woof_is_opened'){span_class='woof_is_opened';jQuery(child).show()}else{if(jQuery(child).find('input[type=checkbox],input[type=radio]').is(':checked')){jQuery(child).show();span_class='woof_is_opened'}else{jQuery(child).hide()}}}
jQuery(child).prev().find('woof-sd-list-opener').html('<a href="javascript:void(0);" class="woof_childs_list_opener" ><span class="'+span_class+'"></span></a>')});jQuery.each(jQuery('woof-sd-list-opener a.woof_childs_list_opener span'),function(index,a){jQuery(a).on('click',function(){let span=jQuery(this);let this_=span.parent();if(span.hasClass('woof_is_closed')){jQuery(this_).closest('.woof-sd-ie').next().show(333);span.removeClass('woof_is_closed');span.addClass('woof_is_opened')}else{jQuery(this_).closest('.woof-sd-ie').next().hide(333);span.removeClass('woof_is_opened');span.addClass('woof_is_closed')}
if(woof_supports_html5_storage()){let ullabel=jQuery(this_).closest('.woof-sd-ie').attr('class');let ullstate=jQuery(this_).children('span').attr('class');localStorage.setItem(ullabel,ullstate)}
return!1})})}}};/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com

Version WOOF Custom
Full source at https://github.com/harvesthq/chosen
Copyright (c) Harvest http://getharvest.com

MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
This file is generated by `grunt build`, do not edit it by hand.
*/
"use strict";(function(){var $,AbstractChosen,Chosen,SelectParser,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},extend=function(child,parent){for(var key in parent){if(hasProp.call(parent,key))child[key]=parent[key]}function ctor(){this.constructor=child}ctor.prototype=parent.prototype;child.prototype=new ctor();child.__super__=parent.prototype;return child},hasProp={}.hasOwnProperty;SelectParser=(function(){function SelectParser(){this.options_index=0;this.parsed=[]}
SelectParser.prototype.add_node=function(child){if(child.nodeName.toUpperCase()==="OPTGROUP"){return this.add_group(child)}else{return this.add_option(child)}};SelectParser.prototype.add_group=function(group){var group_position,i,len,option,ref,results1;group_position=this.parsed.length;this.parsed.push({array_index:group_position,group:!0,label:group.label,title:group.title?group.title:void 0,children:0,disabled:group.disabled,classes:group.className});ref=group.childNodes;results1=[];for(i=0,len=ref.length;i<len;i++){option=ref[i];results1.push(this.add_option(option,group_position,group.disabled))}
return results1};SelectParser.prototype.add_option=function(option,group_position,group_disabled){if(option.nodeName.toUpperCase()==="OPTION"){if(option.text!==""){if(group_position!=null){this.parsed[group_position].children+=1}
this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:option.value,text:option.text,html:option.innerHTML,title:option.title?option.title:void 0,selected:option.selected,disabled:group_disabled===!0?group_disabled:option.disabled,group_array_index:group_position,group_label:group_position!=null?this.parsed[group_position].label:null,classes:option.className,style:option.style.cssText})}else{this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0})}
return this.options_index+=1}};return SelectParser})();SelectParser.select_to_array=function(select){var child,i,len,parser,ref;parser=new SelectParser();ref=select.childNodes;for(i=0,len=ref.length;i<len;i++){child=ref[i];parser.add_node(child)}
return parser.parsed};AbstractChosen=(function(){function AbstractChosen(form_field,options1){this.form_field=form_field;this.options=options1!=null?options1:{};this.label_click_handler=bind(this.label_click_handler,this);if(!AbstractChosen.browser_is_supported()){return}
this.is_multiple=this.form_field.multiple;this.set_default_text();this.set_default_values();this.setup();this.set_up_html();this.register_observers();this.on_ready()}
AbstractChosen.prototype.set_default_values=function(){this.click_test_action=(function(_this){return function(evt){return _this.test_active_click(evt)}})(this);this.activate_action=(function(_this){return function(evt){return _this.activate_field(evt)}})(this);this.active_field=!1;this.mouse_on_container=!1;this.results_showing=!1;this.result_highlighted=null;this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className);this.allow_single_deselect=(this.options.allow_single_deselect!=null)&&(this.form_field.options[0]!=null)&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1;this.disable_search_threshold=this.options.disable_search_threshold||0;this.disable_search=this.options.disable_search||!1;this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:!0;this.group_search=this.options.group_search!=null?this.options.group_search:!0;this.search_contains=this.options.search_contains||!1;this.single_backstroke_delete=this.options.single_backstroke_delete!=null?this.options.single_backstroke_delete:!0;this.max_selected_options=this.options.max_selected_options||Infinity;this.inherit_select_classes=this.options.inherit_select_classes||!1;this.display_selected_options=this.options.display_selected_options!=null?this.options.display_selected_options:!0;this.display_disabled_options=this.options.display_disabled_options!=null?this.options.display_disabled_options:!0;this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1;this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY;this.case_sensitive_search=this.options.case_sensitive_search||!1;return this.hide_results_on_select=this.options.hide_results_on_select!=null?this.options.hide_results_on_select:!0};AbstractChosen.prototype.set_default_text=function(){if(this.form_field.getAttribute("data-placeholder")){this.default_text=this.form_field.getAttribute("data-placeholder")}else if(this.is_multiple){this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||AbstractChosen.default_multiple_text}else{this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||AbstractChosen.default_single_text}
this.default_text=this.escape_html(this.default_text);return this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||AbstractChosen.default_no_result_text};AbstractChosen.prototype.choice_label=function(item){if(this.include_group_label_in_selected&&(item.group_label!=null)){return"<b class='group-name'>"+(this.escape_html(item.group_label))+"</b>"+item.html}else{return item.html}};AbstractChosen.prototype.mouse_enter=function(){return this.mouse_on_container=!0};AbstractChosen.prototype.mouse_leave=function(){return this.mouse_on_container=!1};AbstractChosen.prototype.input_focus=function(evt){if(this.is_multiple){if(!this.active_field){return setTimeout(((function(_this){return function(){return _this.container_mousedown()}})(this)),50)}}else{if(!this.active_field){return this.activate_field()}}};AbstractChosen.prototype.input_blur=function(evt){if(!this.mouse_on_container){this.active_field=!1;return setTimeout(((function(_this){return function(){return _this.blur_test()}})(this)),100)}};AbstractChosen.prototype.label_click_handler=function(evt){if(this.is_multiple){return this.container_mousedown(evt)}else{return this.activate_field()}};AbstractChosen.prototype.results_option_build=function(options){var content,data,data_content,i,len,ref,shown_results;content='';shown_results=0;ref=this.results_data;for(i=0,len=ref.length;i<len;i++){data=ref[i];data_content='';if(data.group){data_content=this.result_add_group(data)}else{data_content=this.result_add_option(data)}
if(data_content!==''){shown_results++;content+=data_content}
if(options!=null?options.first:void 0){if(data.selected&&this.is_multiple){this.choice_build(data)}else if(data.selected&&!this.is_multiple){this.single_set_selected_text(this.choice_label(data))}}
if(shown_results>=this.max_shown_results){break}}
return content};AbstractChosen.prototype.result_add_option=function(option){var classes,option_el;if(!option.search_match){return''}
if(!this.include_option_in_results(option)){return''}
classes=[];if(!option.disabled&&!(option.selected&&this.is_multiple)){classes.push("active-result")}
if(option.disabled&&!(option.selected&&this.is_multiple)){classes.push("disabled-result")}
if(option.selected){classes.push("result-selected")}
if(option.group_array_index!=null){classes.push("group-option")}
if(option.classes!==""){classes.push(option.classes)}
option_el=document.createElement("li");option_el.className=classes.join(" ");if(option.style){option_el.style.cssText=option.style}
option_el.setAttribute("data-option-array-index",option.array_index);option_el.innerHTML=option.highlighted_html||option.html;if(option.title){option_el.title=option.title}
return this.outerHTML(option_el)};AbstractChosen.prototype.result_add_group=function(group){var classes,group_el;if(!(group.search_match||group.group_match)){return''}
if(!(group.active_options>0)){return''}
classes=[];classes.push("group-result");if(group.classes){classes.push(group.classes)}
group_el=document.createElement("li");group_el.className=classes.join(" ");group_el.innerHTML=group.highlighted_html||this.escape_html(group.label);if(group.title){group_el.title=group.title}
return this.outerHTML(group_el)};AbstractChosen.prototype.results_update_field=function(){this.set_default_text();if(!this.is_multiple){this.results_reset_cleanup()}
this.result_clear_highlight();this.results_build();if(this.results_showing){return this.winnow_results()}};AbstractChosen.prototype.reset_single_select_options=function(){var i,len,ref,result,results1;ref=this.results_data;results1=[];for(i=0,len=ref.length;i<len;i++){result=ref[i];if(result.selected){results1.push(result.selected=!1)}else{results1.push(void 0)}}
return results1};AbstractChosen.prototype.results_toggle=function(){if(this.results_showing){return this.results_hide()}else{return this.results_show()}};AbstractChosen.prototype.results_search=function(evt){if(this.results_showing){return this.winnow_results()}else{return this.results_show()}};AbstractChosen.prototype.winnow_results=function(options){var escapedQuery,fix,i,len,option,prefix,query,ref,regex,results,results_group,search_match,startpos,suffix,text;this.no_results_clear();results=0;query=this.get_search_text();escapedQuery=query.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");regex=this.get_search_regex(escapedQuery);ref=this.results_data;for(i=0,len=ref.length;i<len;i++){option=ref[i];option.search_match=!1;results_group=null;search_match=null;option.highlighted_html='';if(this.include_option_in_results(option)){if(option.group){option.group_match=!1;option.active_options=0}
if((option.group_array_index!=null)&&this.results_data[option.group_array_index]){results_group=this.results_data[option.group_array_index];if(results_group.active_options===0&&results_group.search_match){results+=1}
results_group.active_options+=1}
text=option.group?option.label:option.text;if(!(option.group&&!this.group_search)){search_match=this.search_string_match(text,regex);option.search_match=search_match!=null;if(option.search_match&&!option.group){results+=1}
if(option.search_match){if(query.length){startpos=search_match.index;prefix=text.slice(0,startpos);fix=text.slice(startpos,startpos+query.length);suffix=text.slice(startpos+query.length);option.highlighted_html=(this.escape_html(prefix))+"<em>"+(this.escape_html(fix))+"</em>"+(this.escape_html(suffix))}
if(results_group!=null){results_group.group_match=!0}}else if((option.group_array_index!=null)&&this.results_data[option.group_array_index].search_match){option.search_match=!0}}}}
this.result_clear_highlight();if(results<1&&query.length){this.update_results_content("");return this.no_results(query)}else{this.update_results_content(this.results_option_build());if(!(options!=null?options.skip_highlight:void 0)){return this.winnow_results_set_highlight()}}};AbstractChosen.prototype.get_search_regex=function(escaped_search_string){var regex_flag,regex_string;regex_string=this.search_contains?escaped_search_string:"(^|\\s|\\b)"+escaped_search_string+"[^\\s]*";if(!(this.enable_split_word_search||this.search_contains)){regex_string="^"+regex_string}
regex_flag=this.case_sensitive_search?"":"i";return new RegExp(regex_string,regex_flag)};AbstractChosen.prototype.search_string_match=function(search_string,regex){var match;match=regex.exec(search_string);if(!this.search_contains&&(match!=null?match[1]:void 0)){match.index+=1}
return match};AbstractChosen.prototype.choices_count=function(){var i,len,option,ref;if(this.selected_option_count!=null){return this.selected_option_count}
this.selected_option_count=0;ref=this.form_field.options;for(i=0,len=ref.length;i<len;i++){option=ref[i];if(option.selected){this.selected_option_count+=1}}
return this.selected_option_count};AbstractChosen.prototype.choices_click=function(evt){evt.preventDefault();this.activate_field();if(!(this.results_showing||this.is_disabled)){return this.results_show()}};AbstractChosen.prototype.keydown_checker=function(evt){var ref,stroke;stroke=(ref=evt.which)!=null?ref:evt.keyCode;this.search_field_scale();if(stroke!==8&&this.pending_backstroke){this.clear_backstroke()}
switch(stroke){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:if(this.results_showing&&!this.is_multiple){this.result_select(evt)}
this.mouse_on_container=!1;break;case 13:if(this.results_showing){evt.preventDefault()}
break;case 27:if(this.results_showing){evt.preventDefault()}
break;case 32:if(this.disable_search){evt.preventDefault()}
break;case 38:evt.preventDefault();this.keyup_arrow();break;case 40:evt.preventDefault();this.keydown_arrow();break}};AbstractChosen.prototype.keyup_checker=function(evt){var ref,stroke;stroke=(ref=evt.which)!=null?ref:evt.keyCode;this.search_field_scale();switch(stroke){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0){this.keydown_backstroke()}else if(!this.pending_backstroke){this.result_clear_highlight();this.results_search()}
break;case 13:evt.preventDefault();if(this.results_showing){this.result_select(evt)}
break;case 27:if(this.results_showing){this.results_hide()}
break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search();break}};AbstractChosen.prototype.clipboard_event_checker=function(evt){if(this.is_disabled){return}
return setTimeout(((function(_this){return function(){return _this.results_search()}})(this)),50)};AbstractChosen.prototype.container_width=function(){if(this.options.width!=null){return this.options.width}else{return this.form_field.offsetWidth+"px"}};AbstractChosen.prototype.include_option_in_results=function(option){if(this.is_multiple&&(!this.display_selected_options&&option.selected)){return!1}
if(!this.display_disabled_options&&option.disabled){return!1}
if(option.empty){return!1}
return!0};AbstractChosen.prototype.search_results_touchstart=function(evt){this.touch_started=!0;return this.search_results_mouseover(evt)};AbstractChosen.prototype.search_results_touchmove=function(evt){this.touch_started=!1;return this.search_results_mouseout(evt)};AbstractChosen.prototype.search_results_touchend=function(evt){if(this.touch_started){return this.search_results_mouseup(evt)}};AbstractChosen.prototype.outerHTML=function(element){var tmp;if(element.outerHTML){return element.outerHTML}
tmp=document.createElement("div");tmp.appendChild(element);return tmp.innerHTML};AbstractChosen.prototype.get_single_html=function(){return"<a class=\"chosen-single chosen-default\">\n  <span>"+this.default_text+"</span>\n  <div><b></b></div>\n</a>\n<div class=\"chosen-drop\">\n  <div class=\"chosen-search\">\n    <input class=\"chosen-search-input\" type=\"text\" autocomplete=\"off\" />\n  </div>\n  <ul class=\"chosen-results\"></ul>\n</div>"};AbstractChosen.prototype.get_multi_html=function(){return"<ul class=\"chosen-choices\">\n  <li class=\"search-field\">\n    <input class=\"chosen-search-input\" type=\"text\" autocomplete=\"off\" value=\""+this.default_text+"\" />\n  </li>\n</ul>\n<div class=\"chosen-drop\">\n  <ul class=\"chosen-results\"></ul>\n</div>"};AbstractChosen.prototype.get_no_results_html=function(terms){return"<li class=\"no-results\">\n  "+this.results_none_found+" <span>"+(this.escape_html(terms))+"</span>\n</li>"};AbstractChosen.browser_is_supported=function(){if("Microsoft Internet Explorer"===window.navigator.appName){return document.documentMode>=8}
if(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent)){}
return!0};AbstractChosen.default_multiple_text="Select Some Options";AbstractChosen.default_single_text="Select an Option";AbstractChosen.default_no_result_text="No results match";return AbstractChosen})();$=jQuery;$.fn.extend({chosen:function(options){if(!AbstractChosen.browser_is_supported()){return this}
return this.each(function(input_field){var $this,chosen;$this=$(this);chosen=$this.data('chosen');if(options==='destroy'){if(chosen instanceof Chosen){chosen.destroy()}
return}
if(!(chosen instanceof Chosen)){$this.data('chosen',new Chosen(this,options))}})}});Chosen=(function(superClass){extend(Chosen,superClass);function Chosen(){return Chosen.__super__.constructor.apply(this,arguments)}
Chosen.prototype.setup=function(){this.form_field_jq=$(this.form_field);return this.current_selectedIndex=this.form_field.selectedIndex};Chosen.prototype.set_up_html=function(){var container_classes,container_props;container_classes=["chosen-container"];container_classes.push("chosen-container-"+(this.is_multiple?"multi":"single"));if(this.inherit_select_classes&&this.form_field.className){container_classes.push(this.form_field.className)}
if(this.is_rtl){container_classes.push("chosen-rtl")}
container_props={'class':container_classes.join(' '),'title':this.form_field.title};if(this.form_field.id.length){container_props.id=this.form_field.id.replace(/[^\w]/g,'_')+"_chosen"}
this.container=$("<div />",container_props);this.container.width(this.container_width());if(this.is_multiple){this.container.html(this.get_multi_html())}else{this.container.html(this.get_single_html())}
this.form_field_jq.hide().after(this.container);this.dropdown=this.container.find('div.chosen-drop').first();this.search_field=this.container.find('input').first();this.search_results=this.container.find('ul.chosen-results').first();this.search_field_scale();this.search_no_results=this.container.find('li.no-results').first();if(this.is_multiple){this.search_choices=this.container.find('ul.chosen-choices').first();this.search_container=this.container.find('li.search-field').first()}else{this.search_container=this.container.find('div.chosen-search').first();this.selected_item=this.container.find('.chosen-single').first()}
this.results_build();this.set_tab_index();return this.set_label_behavior()};Chosen.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})};Chosen.prototype.register_observers=function(){this.container.on('touchstart.chosen',(function(_this){return function(evt){_this.container_mousedown(evt)}})(this));this.container.on('touchend.chosen',(function(_this){return function(evt){_this.container_mouseup(evt)}})(this));this.container.on('mousedown.chosen',(function(_this){return function(evt){_this.container_mousedown(evt)}})(this));this.container.on('mouseup.chosen',(function(_this){return function(evt){_this.container_mouseup(evt)}})(this));this.container.on('mouseenter.chosen',(function(_this){return function(evt){_this.mouse_enter(evt)}})(this));this.container.on('mouseleave.chosen',(function(_this){return function(evt){_this.mouse_leave(evt)}})(this));this.search_results.on('mouseup.chosen',(function(_this){return function(evt){_this.search_results_mouseup(evt)}})(this));this.search_results.on('mouseover.chosen',(function(_this){return function(evt){_this.search_results_mouseover(evt)}})(this));this.search_results.on('mouseout.chosen',(function(_this){return function(evt){_this.search_results_mouseout(evt)}})(this));this.search_results.on('mousewheel.chosen DOMMouseScroll.chosen',(function(_this){return function(evt){_this.search_results_mousewheel(evt)}})(this));this.search_results.on('touchstart.chosen',(function(_this){return function(evt){_this.search_results_touchstart(evt)}})(this));this.search_results.on('touchmove.chosen',(function(_this){return function(evt){_this.search_results_touchmove(evt)}})(this));this.search_results.on('touchend.chosen',(function(_this){return function(evt){_this.search_results_touchend(evt)}})(this));this.form_field_jq.on("chosen:updated.chosen",(function(_this){return function(evt){_this.results_update_field(evt)}})(this));this.form_field_jq.on("chosen:activate.chosen",(function(_this){return function(evt){_this.activate_field(evt)}})(this));this.form_field_jq.on("chosen:open.chosen",(function(_this){return function(evt){_this.container_mousedown(evt)}})(this));this.form_field_jq.on("chosen:close.chosen",(function(_this){return function(evt){_this.close_field(evt)}})(this));this.search_field.on('blur.chosen',(function(_this){return function(evt){_this.input_blur(evt)}})(this));this.search_field.on('keyup.chosen',(function(_this){return function(evt){_this.keyup_checker(evt)}})(this));this.search_field.on('keydown.chosen',(function(_this){return function(evt){_this.keydown_checker(evt)}})(this));this.search_field.on('focus.chosen',(function(_this){return function(evt){_this.input_focus(evt)}})(this));this.search_field.on('cut.chosen',(function(_this){return function(evt){_this.clipboard_event_checker(evt)}})(this));this.search_field.on('paste.chosen',(function(_this){return function(evt){_this.clipboard_event_checker(evt)}})(this));if(this.is_multiple){return this.search_choices.on('click.chosen',(function(_this){return function(evt){_this.choices_click(evt)}})(this))}else{return this.container.on('click.chosen',function(evt){evt.preventDefault()})}};Chosen.prototype.destroy=function(){$(this.container[0].ownerDocument).off('click.chosen',this.click_test_action);if(this.form_field_label.length>0){this.form_field_label.off('click.chosen')}
if(this.search_field[0].tabIndex){this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex}
this.container.remove();this.form_field_jq.removeData('chosen');return this.form_field_jq.show()};Chosen.prototype.search_field_disabled=function(){this.is_disabled=this.form_field.disabled||this.form_field_jq.parents('fieldset').is(':disabled');this.container.toggleClass('chosen-disabled',this.is_disabled);this.search_field[0].disabled=this.is_disabled;if(!this.is_multiple){this.selected_item.off('focus.chosen',this.activate_field)}
if(this.is_disabled){return this.close_field()}else if(!this.is_multiple){return this.selected_item.on('focus.chosen',this.activate_field)}};Chosen.prototype.container_mousedown=function(evt){var ref;if(this.is_disabled){return}
if(evt&&((ref=evt.type)==='mousedown'||ref==='touchstart')&&!this.results_showing){evt.preventDefault()}
if(!((evt!=null)&&($(evt.target)).hasClass("search-choice-close"))){if(!this.active_field){if(this.is_multiple){this.search_field.val("")}
$(this.container[0].ownerDocument).on('click.chosen',this.click_test_action);this.results_show()}else if(!this.is_multiple&&evt&&(($(evt.target)[0]===this.selected_item[0])||$(evt.target).parents("a.chosen-single").length)){evt.preventDefault();this.results_toggle()}
return this.activate_field()}};Chosen.prototype.container_mouseup=function(evt){if(evt.target.nodeName==="ABBR"&&!this.is_disabled){return this.results_reset(evt)}};Chosen.prototype.search_results_mousewheel=function(evt){var delta;if(evt.originalEvent){delta=evt.originalEvent.deltaY||-evt.originalEvent.wheelDelta||evt.originalEvent.detail}
if(delta!=null){evt.preventDefault();if(evt.type==='DOMMouseScroll'){delta=delta*40}
return this.search_results.scrollTop(delta+this.search_results.scrollTop())}};Chosen.prototype.blur_test=function(evt){if(!this.active_field&&this.container.hasClass("chosen-container-active")){return this.close_field()}};Chosen.prototype.close_field=function(){$(this.container[0].ownerDocument).off("click.chosen",this.click_test_action);this.active_field=!1;this.results_hide();this.container.removeClass("chosen-container-active");this.clear_backstroke();this.show_search_field_default();this.search_field_scale();return this.search_field.blur()};Chosen.prototype.activate_field=function(){if(this.is_disabled){return}
this.container.addClass("chosen-container-active");this.active_field=!0;this.search_field.val(this.search_field.val());return this.search_field.focus()};Chosen.prototype.test_active_click=function(evt){var active_container;active_container=$(evt.target).closest('.chosen-container');if(active_container.length&&this.container[0]===active_container[0]){return this.active_field=!0}else{return this.close_field()}};Chosen.prototype.results_build=function(){this.parsing=!0;this.selected_option_count=null;this.results_data=SelectParser.select_to_array(this.form_field);if(this.is_multiple){this.search_choices.find("li.search-choice").remove()}else{this.single_set_selected_text();if(this.disable_search||this.form_field.options.length<=this.disable_search_threshold){this.search_field[0].readOnly=!0;this.container.addClass("chosen-container-single-nosearch")}else{this.search_field[0].readOnly=!1;this.container.removeClass("chosen-container-single-nosearch")}}
this.update_results_content(this.results_option_build({first:!0}));this.search_field_disabled();this.show_search_field_default();this.search_field_scale();return this.parsing=!1};Chosen.prototype.result_do_highlight=function(el){var high_bottom,high_top,maxHeight,visible_bottom,visible_top;if(el.length){this.result_clear_highlight();this.result_highlight=el;this.result_highlight.addClass("highlighted");maxHeight=parseInt(this.search_results.css("maxHeight"),10);visible_top=this.search_results.scrollTop();visible_bottom=maxHeight+visible_top;high_top=this.result_highlight.position().top+this.search_results.scrollTop();high_bottom=high_top+this.result_highlight.outerHeight();if(high_bottom>=visible_bottom){return this.search_results.scrollTop((high_bottom-maxHeight)>0?high_bottom-maxHeight:0)}else if(high_top<visible_top){return this.search_results.scrollTop(high_top)}}};Chosen.prototype.result_clear_highlight=function(){if(this.result_highlight){this.result_highlight.removeClass("highlighted")}
return this.result_highlight=null};Chosen.prototype.results_show=function(){if(this.is_multiple&&this.max_selected_options<=this.choices_count()){this.form_field_jq.trigger("chosen:maxselected",{chosen:this});return!1}
this.container.addClass("chosen-with-drop");this.results_showing=!0;this.search_field.focus();this.search_field.val(this.get_search_field_value());this.winnow_results();return this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this})};Chosen.prototype.update_results_content=function(content){return this.search_results.html(content)};Chosen.prototype.results_hide=function(){if(this.results_showing){this.result_clear_highlight();this.container.removeClass("chosen-with-drop");this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})}
return this.results_showing=!1};Chosen.prototype.set_tab_index=function(el){var ti;if(this.form_field.tabIndex){ti=this.form_field.tabIndex;this.form_field.tabIndex=-1;return this.search_field[0].tabIndex=ti}};Chosen.prototype.set_label_behavior=function(){this.form_field_label=this.form_field_jq.parents("label");if(!this.form_field_label.length&&this.form_field.id.length){this.form_field_label=$("label[for='"+this.form_field.id+"']")}
if(this.form_field_label.length>0){return this.form_field_label.on('click.chosen',this.label_click_handler)}};Chosen.prototype.show_search_field_default=function(){if(this.is_multiple&&this.choices_count()<1&&!this.active_field){this.search_field.val(this.default_text);return this.search_field.addClass("default")}else{this.search_field.val("");return this.search_field.removeClass("default")}};Chosen.prototype.search_results_mouseup=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target.length){this.result_highlight=target;this.result_select(evt);return this.search_field.focus()}};Chosen.prototype.search_results_mouseover=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target){return this.result_do_highlight(target)}};Chosen.prototype.search_results_mouseout=function(evt){if($(evt.target).hasClass("active-result")||$(evt.target).parents('.active-result').first()){return this.result_clear_highlight()}};Chosen.prototype.choice_build=function(item){var choice,close_link;choice=$('<li />',{"class":"search-choice"}).html("<span>"+(this.choice_label(item))+"</span>");if(item.disabled){choice.addClass('search-choice-disabled')}else{close_link=$('<a />',{"class":'search-choice-close','data-option-array-index':item.array_index});close_link.on('click.chosen',(function(_this){return function(evt){return _this.choice_destroy_link_click(evt)}})(this));choice.append(close_link)}
return this.search_container.before(choice)};Chosen.prototype.choice_destroy_link_click=function(evt){evt.preventDefault();evt.stopPropagation();if(!this.is_disabled){return this.choice_destroy($(evt.target))}};Chosen.prototype.choice_destroy=function(link){if(this.result_deselect(link[0].getAttribute("data-option-array-index"))){if(this.active_field){this.search_field.focus()}else{this.show_search_field_default()}
if(this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1){this.results_hide()}
link.parents('li').first().remove();return this.search_field_scale()}};Chosen.prototype.results_reset=function(){this.reset_single_select_options();this.form_field.options[0].selected=!0;this.single_set_selected_text();this.show_search_field_default();this.results_reset_cleanup();this.trigger_form_field_change();if(this.active_field){return this.results_hide()}};Chosen.prototype.results_reset_cleanup=function(){this.current_selectedIndex=this.form_field.selectedIndex;return this.selected_item.find("abbr").remove()};Chosen.prototype.result_select=function(evt){var high,item;if(this.result_highlight){high=this.result_highlight;this.result_clear_highlight();if(this.is_multiple&&this.max_selected_options<=this.choices_count()){this.form_field_jq.trigger("chosen:maxselected",{chosen:this});return!1}
if(this.is_multiple){high.removeClass("active-result")}else{this.reset_single_select_options()}
high.addClass("result-selected");item=this.results_data[high[0].getAttribute("data-option-array-index")];item.selected=!0;this.form_field.options[item.options_index].selected=!0;this.selected_option_count=null;if(this.is_multiple){this.choice_build(item)}else{this.single_set_selected_text(this.choice_label(item))}
if(this.is_multiple&&(!this.hide_results_on_select||(evt.metaKey||evt.ctrlKey))){if(evt.metaKey||evt.ctrlKey){this.winnow_results({skip_highlight:!0})}else{this.search_field.val("");this.winnow_results()}}else{this.results_hide();this.show_search_field_default()}
if(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex){this.trigger_form_field_change({selected:this.form_field.options[item.options_index].value})}
this.current_selectedIndex=this.form_field.selectedIndex;evt.preventDefault();return this.search_field_scale()}};Chosen.prototype.single_set_selected_text=function(text){if(text==null){text=this.default_text}
if(text===this.default_text){this.selected_item.addClass("chosen-default")}else{this.single_deselect_control_build();this.selected_item.removeClass("chosen-default")}
return this.selected_item.find("span").html(text)};Chosen.prototype.result_deselect=function(pos){var result_data;result_data=this.results_data[pos];if(!this.form_field.options[result_data.options_index].disabled){result_data.selected=!1;this.form_field.options[result_data.options_index].selected=!1;this.selected_option_count=null;this.result_clear_highlight();if(this.results_showing){this.winnow_results()}
this.trigger_form_field_change({deselected:this.form_field.options[result_data.options_index].value});this.search_field_scale();return!0}else{return!1}};Chosen.prototype.single_deselect_control_build=function(){if(!this.allow_single_deselect){return}
if(!this.selected_item.find("abbr").length){this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>")}
return this.selected_item.addClass("chosen-single-with-deselect")};Chosen.prototype.get_search_field_value=function(){return this.search_field.val()};Chosen.prototype.get_search_text=function(){return this.get_search_field_value().trim()};Chosen.prototype.escape_html=function(text){return $('<div/>').text(text).html()};Chosen.prototype.winnow_results_set_highlight=function(){var do_high,selected_results;selected_results=!this.is_multiple?this.search_results.find(".result-selected.active-result"):[];do_high=selected_results.length?selected_results.first():this.search_results.find(".active-result").first();if(do_high!=null){return this.result_do_highlight(do_high)}};Chosen.prototype.no_results=function(terms){var no_results_html;no_results_html=this.get_no_results_html(terms);this.search_results.append(no_results_html);return this.form_field_jq.trigger("chosen:no_results",{chosen:this})};Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()};Chosen.prototype.keydown_arrow=function(){var next_sib;if(this.results_showing&&this.result_highlight){next_sib=this.result_highlight.nextAll("li.active-result").first();if(next_sib){return this.result_do_highlight(next_sib)}}else{return this.results_show()}};Chosen.prototype.keyup_arrow=function(){var prev_sibs;if(!this.results_showing&&!this.is_multiple){return this.results_show()}else if(this.result_highlight){prev_sibs=this.result_highlight.prevAll("li.active-result");if(prev_sibs.length){return this.result_do_highlight(prev_sibs.first())}else{if(this.choices_count()>0){this.results_hide()}
return this.result_clear_highlight()}}};Chosen.prototype.keydown_backstroke=function(){var next_available_destroy;if(this.pending_backstroke){this.choice_destroy(this.pending_backstroke.find("a").first());return this.clear_backstroke()}else{next_available_destroy=this.search_container.siblings("li.search-choice").last();if(next_available_destroy.length&&!next_available_destroy.hasClass("search-choice-disabled")){this.pending_backstroke=next_available_destroy;if(this.single_backstroke_delete){return this.keydown_backstroke()}else{return this.pending_backstroke.addClass("search-choice-focus")}}}};Chosen.prototype.clear_backstroke=function(){if(this.pending_backstroke){this.pending_backstroke.removeClass("search-choice-focus")}
return this.pending_backstroke=null};Chosen.prototype.search_field_scale=function(){var div,i,len,style,style_block,styles,width;if(!this.is_multiple){return}
style_block={position:'absolute',left:'-1000px',top:'-1000px',display:'none',whiteSpace:'pre'};styles=['fontSize','fontStyle','fontWeight','fontFamily','lineHeight','textTransform','letterSpacing'];for(i=0,len=styles.length;i<len;i++){style=styles[i];style_block[style]=this.search_field.css(style)}
div=$('<div />').css(style_block);div.text(this.get_search_field_value());$('body').append(div);width=div.width()+25;div.remove();if(this.container.is(':visible')){width=Math.min(this.container.outerWidth()-10,width)}
return this.search_field.width(width)};Chosen.prototype.trigger_form_field_change=function(extra){this.form_field_jq.trigger("input",extra);return this.form_field_jq.trigger("change",extra)};return Chosen})(AbstractChosen)}).call(this);!function(i){"undefined"!=typeof jQuery&&jQuery||"function"!=typeof define||!define.amd?"undefined"!=typeof jQuery&&jQuery||"object"!=typeof exports?i(jQuery,document,window,navigator):i(require("jquery"),document,window,navigator):define(["jquery"],function(t){return i(t,document,window,navigator)})}(function(a,c,l,t,_){"use strict";var i,s,o=0,e=(i=t.userAgent,s=/msie\s\d+/i,0<i.search(s)&&s.exec(i).toString().split(" ")[1]<9&&(a("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(o){var e=this,h=[].slice;if("function"!=typeof e)throw new TypeError;var r=h.call(arguments,1),n=function(){if(this instanceof n){var t=function(){};t.prototype=e.prototype;var i=new t,s=e.apply(i,r.concat(h.call(arguments)));return Object(s)===s?s:i}return e.apply(o,r.concat(h.call(arguments)))};return n}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,i){var s;if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),e=o.length>>>0;if(0==e)return-1;var h=+i||0;if(Math.abs(h)===1/0&&(h=0),e<=h)return-1;for(s=Math.max(0<=h?h:e-Math.abs(h),0);s<e;){if(s in o&&o[s]===t)return s;s++}return-1});function h(t,i,s){this.VERSION="2.3.1",this.input=t,this.plugin_count=s,this.current_plugin=0,this.calc_count=0,this.update_tm=0,this.old_from=0,this.old_to=0,this.old_min_interval=null,this.raf_id=null,this.dragging=!1,this.force_redraw=!1,this.no_diapason=!1,this.has_tab_index=!0,this.is_key=!1,this.is_update=!1,this.is_start=!0,this.is_finish=!1,this.is_active=!1,this.is_resize=!1,this.is_click=!1,i=i||{},this.$cache={win:a(l),body:a(c.body),input:a(t),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var o,e,h,r=this.$cache.input,n=r.prop("value");for(h in o={skin:"flat",type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==r[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",r[0]),(e={skin:r.data("skin"),type:r.data("type"),min:r.data("min"),max:r.data("max"),from:r.data("from"),to:r.data("to"),step:r.data("step"),min_interval:r.data("minInterval"),max_interval:r.data("maxInterval"),drag_interval:r.data("dragInterval"),values:r.data("values"),from_fixed:r.data("fromFixed"),from_min:r.data("fromMin"),from_max:r.data("fromMax"),from_shadow:r.data("fromShadow"),to_fixed:r.data("toFixed"),to_min:r.data("toMin"),to_max:r.data("toMax"),to_shadow:r.data("toShadow"),prettify_enabled:r.data("prettifyEnabled"),prettify_separator:r.data("prettifySeparator"),force_edges:r.data("forceEdges"),keyboard:r.data("keyboard"),grid:r.data("grid"),grid_margin:r.data("gridMargin"),grid_num:r.data("gridNum"),grid_snap:r.data("gridSnap"),hide_min_max:r.data("hideMinMax"),hide_from_to:r.data("hideFromTo"),prefix:r.data("prefix"),postfix:r.data("postfix"),max_postfix:r.data("maxPostfix"),decorate_both:r.data("decorateBoth"),values_separator:r.data("valuesSeparator"),input_values_separator:r.data("inputValuesSeparator"),disable:r.data("disable"),block:r.data("block"),extra_classes:r.data("extraClasses")}).values=e.values&&e.values.split(","),e)e.hasOwnProperty(h)&&(e[h]!==_&&""!==e[h]||delete e[h]);n!==_&&""!==n&&((n=n.split(e.input_values_separator||i.input_values_separator||";"))[0]&&n[0]==+n[0]&&(n[0]=+n[0]),n[1]&&n[1]==+n[1]&&(n[1]=+n[1]),i&&i.values&&i.values.length?(o.from=n[0]&&i.values.indexOf(n[0]),o.to=n[1]&&i.values.indexOf(n[1])):(o.from=n[0]&&+n[0],o.to=n[1]&&+n[1])),a.extend(o,i),a.extend(o,e),this.options=o,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()}h.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){var t='<span class="irs irs--'+this.options.skin+" js-irs-"+this.plugin_count+" "+this.options.extra_classes+'"></span>';this.$cache.input.before(t),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar irs-bar--single"></span><span class="irs-shadow shadow-single"></span><span class="irs-handle single"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-bar"></span><span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-handle from"><i></i><i></i><i></i></span><span class="irs-handle to"><i></i><i></i><i></i></span>'),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var t=this.options.min,i=this.options.max,s=this.options.from,o=this.options.to;t<s&&o===i?this.$cache.s_from.addClass("type_last"):o<i&&this.$cache.s_to.addClass("type_last")},changeLevel:function(t){switch(t){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),e&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),e&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){var i,s;this.target||(i=(s="single"===this.options.type?this.$cache.single:this.$cache.from).offset().left,i+=s.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:i}))},pointerMove:function(t){if(this.dragging){var i=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;this.coords.x_pointer=i-this.coords.x_gap,this.calc()}},pointerUp:function(t){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,e&&a("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(a.contains(this.$cache.cont[0],t.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(t,i){i.preventDefault();var s=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&("both"===t&&this.setTempMinInterval(),t=t||(this.target||"from"),this.current_plugin=this.plugin_count,this.target=t,this.is_active=!0,this.dragging=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=s-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(t),e&&a("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,i){i.preventDefault();var s=i.pageX||i.originalEvent.touches&&i.originalEvent.touches[0].pageX;2!==i.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(s-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,i){if(!(this.current_plugin!==this.plugin_count||i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)){switch(i.which){case 83:case 65:case 40:case 37:i.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:i.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var i=this.coords.p_pointer,s=(this.options.max-this.options.min)/100;s=this.options.step/s,t?i+=s:i-=s,this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*i),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options){if(this.options.hide_min_max)return this.$cache.min[0].style.display="none",void(this.$cache.max[0].style.display="none");if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var t=this._prettify(this.options.min),i=this._prettify(this.options.max);this.result.min_pretty=t,this.result.max_pretty=i,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(i,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&(this.calc_count++,10!==this.calc_count&&!t||(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){this.calcPointerPercent();var i=this.getHandleX();switch("both"===this.target&&(this.coords.p_gap=0,i=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,i=this.getHandleX(),this.options.drag_interval?this.target="both_one":this.target=this.chooseHandle(i)),this.target){case"base":var s=(this.options.max-this.options.min)/100,o=(this.result.from-this.options.min)/s,e=(this.result.to-this.options.min)/s;this.coords.p_single_real=this.toFixed(o),this.coords.p_from_real=this.toFixed(o),this.coords.p_to_real=this.toFixed(e),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(i),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(i),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(i),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;i=this.toFixed(i+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(i)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(i)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(this.options.from_fixed||this.options.to_fixed)break;var h=this.convertToRealPercent(i),r=this.result.from_percent,n=this.result.to_percent-r,a=n/2,c=h-a,l=h+a;c<0&&(l=(c=0)+n),100<l&&(c=(l=100)-n),this.coords.p_from_real=this.calcWithStep(c),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(l),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)},getHandleX:function(){var t=100-this.coords.p_handle,i=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return i<0?i=0:t<i&&(i=t),i},calcHandlePercent:function(){"single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(t){return"single"===this.options.type?"single":this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2<=t?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),this.coords.w_rs===this.coords.w_rs_old&&!this.force_redraw||(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?(this.$cache.bar[0].style.left=0,this.$cache.bar[0].style.width=this.coords.p_bar_w+this.coords.p_bar_x+"%",this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%"):(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",this.old_from===this.result.from&&!this.force_redraw||(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),this.old_to===this.result.to&&!this.force_redraw||(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_key=!1,this.is_click=!1,this.callOnFinish()),this.is_update=!1,this.is_resize=!1,this.is_finish=!1),this.is_start=!1,this.is_key=!1,this.is_click=!1,this.force_redraw=!1))},drawLabels:function(){if(this.options){var t,i,s,o,e,h=this.options.values.length,r=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)t=h?this.decorate(r[this.result.from]):(o=this._prettify(this.result.from),this.decorate(o,this.result.from)),this.$cache.single.html(t),this.calcLabels(),this.labels.p_single_left<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible";else{s=h?(this.options.decorate_both?(t=this.decorate(r[this.result.from]),t+=this.options.values_separator,t+=this.decorate(r[this.result.to])):t=this.decorate(r[this.result.from]+this.options.values_separator+r[this.result.to]),i=this.decorate(r[this.result.from]),this.decorate(r[this.result.to])):(o=this._prettify(this.result.from),e=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(o,this.result.from),t+=this.options.values_separator,t+=this.decorate(e,this.result.to)):t=this.decorate(o+this.options.values_separator+e,this.result.to),i=this.decorate(o,this.result.from),this.decorate(e,this.result.to)),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(s),this.calcLabels();var n=Math.min(this.labels.p_single_left,this.labels.p_from_left),a=this.labels.p_single_left+this.labels.p_single_fake,c=this.labels.p_to_left+this.labels.p_to_fake,l=Math.max(a,c);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",l=this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",c):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(a,c))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),n<this.labels.p_min+1?this.$cache.min[0].style.visibility="hidden":this.$cache.min[0].style.visibility="visible",l>100-this.labels.p_max-1?this.$cache.max[0].style.visibility="hidden":this.$cache.max[0].style.visibility="visible"}}},drawShadow:function(){var t,i,s,o,e=this.options,h=this.$cache,r="number"==typeof e.from_min&&!isNaN(e.from_min),n="number"==typeof e.from_max&&!isNaN(e.from_max),a="number"==typeof e.to_min&&!isNaN(e.to_min),c="number"==typeof e.to_max&&!isNaN(e.to_max);"single"===e.type?e.from_shadow&&(r||n)?(t=this.convertToPercent(r?e.from_min:e.min),i=this.convertToPercent(n?e.from_max:e.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,h.shad_single[0].style.display="block",h.shad_single[0].style.left=t+"%",h.shad_single[0].style.width=i+"%"):h.shad_single[0].style.display="none":(e.from_shadow&&(r||n)?(t=this.convertToPercent(r?e.from_min:e.min),i=this.convertToPercent(n?e.from_max:e.max)-t,t=this.toFixed(t-this.coords.p_handle/100*t),i=this.toFixed(i-this.coords.p_handle/100*i),t+=this.coords.p_handle/2,h.shad_from[0].style.display="block",h.shad_from[0].style.left=t+"%",h.shad_from[0].style.width=i+"%"):h.shad_from[0].style.display="none",e.to_shadow&&(a||c)?(s=this.convertToPercent(a?e.to_min:e.min),o=this.convertToPercent(c?e.to_max:e.max)-s,s=this.toFixed(s-this.coords.p_handle/100*s),o=this.toFixed(o-this.coords.p_handle/100*o),s+=this.coords.p_handle/2,h.shad_to[0].style.display="block",h.shad_to[0].style.left=s+"%",h.shad_to[0].style.width=o+"%"):h.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,i){var s,o=this.options.max-this.options.min,e=o/100;return o?(s=(i?t:t-this.options.min)/e,this.toFixed(s)):(this.no_diapason=!0,0)},convertToValue:function(t){var i,s,o=this.options.min,e=this.options.max,h=o.toString().split(".")[1],r=e.toString().split(".")[1],n=0,a=0;if(0===t)return this.options.min;if(100===t)return this.options.max;h&&(n=i=h.length),r&&(n=s=r.length),i&&s&&(n=s<=i?i:s),o<0&&(o=+(o+(a=Math.abs(o))).toFixed(n),e=+(e+a).toFixed(n));var c,l=(e-o)/100*t+o,_=this.options.step.toString().split(".")[1];return l=_?+l.toFixed(_.length):(l/=this.options.step,+(l*=this.options.step).toFixed(0)),a&&(l-=a),(c=_?+l.toFixed(_.length):this.toFixed(l))<this.options.min?c=this.options.min:c>this.options.max&&(c=this.options.max),c},calcWithStep:function(t){var i=Math.round(t/this.coords.p_step)*this.coords.p_step;return 100<i&&(i=100),100===t&&(i=100),this.toFixed(i)},checkMinInterval:function(t,i,s){var o,e,h=this.options;return h.min_interval?(o=this.convertToValue(t),e=this.convertToValue(i),"from"===s?e-o<h.min_interval&&(o=e-h.min_interval):o-e<h.min_interval&&(o=e+h.min_interval),this.convertToPercent(o)):t},checkMaxInterval:function(t,i,s){var o,e,h=this.options;return h.max_interval?(o=this.convertToValue(t),e=this.convertToValue(i),"from"===s?e-o>h.max_interval&&(o=e-h.max_interval):o-e>h.max_interval&&(o=e+h.max_interval),this.convertToPercent(o)):t},checkDiapason:function(t,i,s){var o=this.convertToValue(t),e=this.options;return"number"!=typeof i&&(i=e.min),"number"!=typeof s&&(s=e.max),o<i&&(o=i),s<o&&(o=s),this.convertToPercent(o)},toFixed:function(t){return+(t=t.toFixed(20))},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){return t.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,i){return this.options.force_edges&&(t<0?t=0:100-i<t&&(t=100-i)),this.toFixed(t)},validate:function(){var t,i,s=this.options,o=this.result,e=s.values,h=e.length;if("string"==typeof s.min&&(s.min=+s.min),"string"==typeof s.max&&(s.max=+s.max),"string"==typeof s.from&&(s.from=+s.from),"string"==typeof s.to&&(s.to=+s.to),"string"==typeof s.step&&(s.step=+s.step),"string"==typeof s.from_min&&(s.from_min=+s.from_min),"string"==typeof s.from_max&&(s.from_max=+s.from_max),"string"==typeof s.to_min&&(s.to_min=+s.to_min),"string"==typeof s.to_max&&(s.to_max=+s.to_max),"string"==typeof s.grid_num&&(s.grid_num=+s.grid_num),s.max<s.min&&(s.max=s.min),h)for(s.p_values=[],s.min=0,s.max=h-1,s.step=1,s.grid_num=s.max,s.grid_snap=!0,i=0;i<h;i++)t=+e[i],t=isNaN(t)?e[i]:(e[i]=t,this._prettify(t)),s.p_values.push(t);"number"==typeof s.from&&!isNaN(s.from)||(s.from=s.min),"number"==typeof s.to&&!isNaN(s.to)||(s.to=s.max),"single"===s.type?(s.from<s.min&&(s.from=s.min),s.from>s.max&&(s.from=s.max)):(s.from<s.min&&(s.from=s.min),s.from>s.max&&(s.from=s.max),s.to<s.min&&(s.to=s.min),s.to>s.max&&(s.to=s.max),this.update_check.from&&(this.update_check.from!==s.from&&s.from>s.to&&(s.from=s.to),this.update_check.to!==s.to&&s.to<s.from&&(s.to=s.from)),s.from>s.to&&(s.from=s.to),s.to<s.from&&(s.to=s.from)),("number"!=typeof s.step||isNaN(s.step)||!s.step||s.step<0)&&(s.step=1),"number"==typeof s.from_min&&s.from<s.from_min&&(s.from=s.from_min),"number"==typeof s.from_max&&s.from>s.from_max&&(s.from=s.from_max),"number"==typeof s.to_min&&s.to<s.to_min&&(s.to=s.to_min),"number"==typeof s.to_max&&s.from>s.to_max&&(s.to=s.to_max),o&&(o.min!==s.min&&(o.min=s.min),o.max!==s.max&&(o.max=s.max),(o.from<o.min||o.from>o.max)&&(o.from=s.from),(o.to<o.min||o.to>o.max)&&(o.to=s.to)),("number"!=typeof s.min_interval||isNaN(s.min_interval)||!s.min_interval||s.min_interval<0)&&(s.min_interval=0),("number"!=typeof s.max_interval||isNaN(s.max_interval)||!s.max_interval||s.max_interval<0)&&(s.max_interval=0),s.min_interval&&s.min_interval>s.max-s.min&&(s.min_interval=s.max-s.min),s.max_interval&&s.max_interval>s.max-s.min&&(s.max_interval=s.max-s.min)},decorate:function(t,i){var s="",o=this.options;return o.prefix&&(s+=o.prefix),s+=t,o.max_postfix&&(o.values.length&&t===o.p_values[o.max]?(s+=o.max_postfix,o.postfix&&(s+=" ")):i===o.max&&(s+=o.max_postfix,o.postfix&&(s+=" "))),o.postfix&&(s+=o.postfix),s},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,i,s,o,e,h,r=this.options,n=r.max-r.min,a=r.grid_num,c=0,l=4,_="";for(this.calcGridMargin(),r.grid_snap&&(a=n/r.step),50<a&&(a=50),s=this.toFixed(100/a),4<a&&(l=3),7<a&&(l=2),14<a&&(l=1),28<a&&(l=0),t=0;t<a+1;t++){for(o=l,100<(c=this.toFixed(s*t))&&(c=100),e=((this.coords.big[t]=c)-s*(t-1))/(o+1),i=1;i<=o&&0!==c;i++)_+='<span class="irs-grid-pol small" style="left: '+this.toFixed(c-e*i)+'%"></span>';_+='<span class="irs-grid-pol" style="left: '+c+'%"></span>',h=this.convertToValue(c),_+='<span class="irs-grid-text js-grid-text-'+t+'" style="left: '+c+'%">'+(h=r.values.length?r.p_values[h]:this._prettify(h))+"</span>"}this.coords.big_num=Math.ceil(a+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(_),this.cacheGridLabels()}},cacheGridLabels:function(){var t,i,s=this.coords.big_num;for(i=0;i<s;i++)t=this.$cache.grid.find(".js-grid-text-"+i),this.$cache.grid_labels.push(t);this.calcGridLabels()},calcGridLabels:function(){var t,i,s=[],o=[],e=this.coords.big_num;for(t=0;t<e;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),s[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),o[t]=this.toFixed(s[t]+this.coords.big_p[t]);for(this.options.force_edges&&(s[0]<-this.coords.grid_gap&&(s[0]=-this.coords.grid_gap,o[0]=this.toFixed(s[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),o[e-1]>100+this.coords.grid_gap&&(o[e-1]=100+this.coords.grid_gap,s[e-1]=this.toFixed(o[e-1]-this.coords.big_p[e-1]),this.coords.big_x[e-1]=this.toFixed(this.coords.big_p[e-1]-this.coords.grid_gap))),this.calcGridCollision(2,s,o),this.calcGridCollision(4,s,o),t=0;t<e;t++)i=this.$cache.grid_labels[t][0],this.coords.big_x[t]!==Number.POSITIVE_INFINITY&&(i.style.marginLeft=-this.coords.big_x[t]+"%")},calcGridCollision:function(t,i,s){var o,e,h,r=this.coords.big_num;for(o=0;o<r&&!(r<=(e=o+t/2));o+=t)h=this.$cache.grid_labels[e][0],s[o]<=i[e]?h.style.visibility="visible":h.style.visibility="hidden"},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&("single"===this.options.type?this.coords.w_handle=this.$cache.s_single.outerWidth(!1):this.coords.w_handle=this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(t){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=a.extend(this.options,t),this.validate(),this.updateResult(t),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),a.data(this.input,"ionRangeSlider",null),this.remove(),this.input=null,this.options=null)}},a.fn.ionRangeSlider=function(t){return this.each(function(){a.data(this,"ionRangeSlider")||a.data(this,"ionRangeSlider",new h(this,t,o++))})},function(){for(var h=0,t=["ms","moz","webkit","o"],i=0;i<t.length&&!l.requestAnimationFrame;++i)l.requestAnimationFrame=l[t[i]+"RequestAnimationFrame"],l.cancelAnimationFrame=l[t[i]+"CancelAnimationFrame"]||l[t[i]+"CancelRequestAnimationFrame"];l.requestAnimationFrame||(l.requestAnimationFrame=function(t,i){var s=(new Date).getTime(),o=Math.max(0,16-(s-h)),e=l.setTimeout(function(){t(s+o)},o);return h=s+o,e}),l.cancelAnimationFrame||(l.cancelAnimationFrame=function(t){clearTimeout(t)})}()});"use strict";(function($){$.fn.tabSlideOut=function(callerSettings){function heightAsString(node){return parseInt(node.outerHeight()+1,10)+'px'}
function widthAsString(node){return parseInt(node.outerWidth()+1,10)+'px'}
function borderWidth(element,edge){return parseInt(element.css('border-'+edge+'-width'),10)}
function calculatePanelSize(){var available=$(window).height();if(edge==='top'||edge==='bottom'){available=$(window).width()}
return available-parseInt(settings.otherOffset)-parseInt(settings.offset)}
var panel=this;function isOpen(){return panel.hasClass('ui-slideouttab-open')}
if(typeof callerSettings=='string'){switch(callerSettings){case 'open':this.trigger('open');return this;case 'close':this.trigger('close');return this;case 'isOpen':return isOpen();case 'toggle':this.trigger('toggle');return this;case 'bounce':this.trigger('bounce');return this;default:throw "Invalid tabSlideOut command"}}else{var settings=$.extend({tabLocation:'left',tabHandle:'.handle',action:'click',hoverTimeout:5000,offset:'200px',offsetReverse:!1,otherOffset:null,handleOffset:null,handleOffsetReverse:!1,bounceDistance:'50px',bounceTimes:4,bounceSpeed:300,tabImage:null,tabImageHeight:null,tabImageWidth:null,onLoadSlideOut:!1,clickScreenToClose:!0,clickScreenToCloseFilters:['.ui-slideouttab-panel'],onOpen:function(){},onClose:function(){},onSlide:function(){},onBeforeOpen:function(){return!0},onBeforeClose:function(){return!0},onBeforeSlide:function(){return!0}},callerSettings||{});var edge=settings.tabLocation;var handle=settings.tabHandle=$(settings.tabHandle,panel);panel.addClass('ui-slideouttab-panel').addClass('ui-slideouttab-'+edge);if(settings.offsetReverse)
panel.addClass('ui-slideouttab-panel-reverse');handle.addClass('ui-slideouttab-handle');if(settings.handleOffsetReverse)
handle.addClass('ui-slideouttab-handle-reverse');settings.toggleButton=$(settings.toggleButton);if(settings.tabImage!==null){var imageHeight=0;var imageWidth=0;if(settings.tabImageHeight!==null&&settings.tabImageWidth!==null){imageHeight=settings.tabImageHeight;imageWidth=settings.tabImageWidth}else{var img=new Image();img.src=settings.tabImage;imageHeight=img.naturalHeight;imageWidth=img.naturalWidth}
handle.addClass('ui-slideouttab-handle-image');handle.css({'background':'url('+settings.tabImage+') no-repeat','width':imageWidth,'height':imageHeight})}
if(edge==='top'||edge==='bottom'){settings.panelOffsetFrom=settings.offsetReverse?'right':'left';settings.handleOffsetFrom=settings.handleOffsetReverse?'right':'left'}else{settings.panelOffsetFrom=settings.offsetReverse?'bottom':'top';settings.handleOffsetFrom=settings.handleOffsetReverse?'bottom':'top'}
if(settings.handleOffset===null){settings.handleOffset='-'+borderWidth(panel,settings.handleOffsetFrom)+'px'}
if(edge==='top'||edge==='bottom'){panel.css(settings.panelOffsetFrom,settings.offset);handle.css(settings.handleOffsetFrom,settings.handleOffset);if(settings.otherOffset!==null){panel.css('width',calculatePanelSize()+'px');$(window).resize(function(){panel.css('width',calculatePanelSize()+'px')})}
if(edge==='top'){handle.css({'bottom':'-'+heightAsString(handle)})}else{handle.css({'top':'-'+heightAsString(handle)})}}else{panel.css(settings.panelOffsetFrom,settings.offset);handle.css(settings.handleOffsetFrom,settings.handleOffset);if(settings.otherOffset!==null){panel.css('height',calculatePanelSize()+'px');$(window).resize(function(){panel.css('height',calculatePanelSize()+'px')})}
if(edge==='left'){handle.css({'right':'0'})}else{handle.css({'left':'0'})}}
handle.on('click',function(event){event.preventDefault()});settings.toggleButton.on('click',function(event){event.preventDefault()});panel.addClass('ui-slideouttab-ready');var close=function(){if(settings.onBeforeSlide()&&settings.onBeforeClose()){panel.removeClass('ui-slideouttab-open').trigger('slideouttabclose');settings.onSlide();settings.onClose()}};var open=function(){if(settings.onBeforeSlide()&&settings.onBeforeOpen()){panel.addClass('ui-slideouttab-open').trigger('slideouttabopen');settings.onSlide();settings.onOpen()}};var toggle=function(){if(isOpen()){close()}else{open()}};var moveIn=[];moveIn[edge]='-='+settings.bounceDistance;var moveOut=[];moveOut[edge]='+='+settings.bounceDistance;var bounceIn=function(){var temp=panel;for(var i=0;i<settings.bounceTimes;i++){temp=temp.animate(moveIn,settings.bounceSpeed).animate(moveOut,settings.bounceSpeed)}
panel.trigger('slideouttabbounce')};var bounceOut=function(){var temp=panel;for(var i=0;i<settings.bounceTimes;i++){temp=temp.animate(moveOut,settings.bounceSpeed).animate(moveIn,settings.bounceSpeed)}
panel.trigger('slideouttabbounce')};if(settings.clickScreenToClose){$(document).on('click',function(event){if(isOpen()&&!panel[0].contains(event.target)){var clicked=$(event.target);for(var i=0;i<settings.clickScreenToCloseFilters.length;i++){var filter=settings.clickScreenToCloseFilters[i];if(typeof filter==='string'){if(clicked.is(filter)||clicked.parents().is(filter)){return}}else if(typeof filter==='function'){if(filter.call(panel,event))
return}}
close()}})};if(settings.action==='click'){handle.on('click',function(event){toggle()})}else if(settings.action==='hover'){var timer=null;panel.hover(function(){if(!isOpen()){open()}
timer=null},function(){if(isOpen()&&timer===null){timer=setTimeout(function(){if(timer)
close();timer=null},settings.hoverTimeout)}});handle.on('click',function(event){if(isOpen()){close()}})}
if(settings.onLoadSlideOut){open();setTimeout(open,500)}
panel.on('open',function(event){if(!isOpen()){open()}});panel.on('close',function(event){if(isOpen()){close()}});panel.on('toggle',function(event){toggle()});panel.on('bounce',function(event){if(isOpen()){bounceIn()}else{bounceOut()}})}
return this}})(jQuery);"use strict";jQuery(document).ready(function(){jQuery(function(){if(!document.querySelector('.woof-slide-out-div')){return}
document.querySelector('.woof-slide-out-div').removeAttribute('style');jQuery('.woof-slide-out-div').css('opacity',0.95);jQuery.each(jQuery('.woof-slide-out-div'),function(i,item){var key=jQuery(item).data("key");jQuery(item).tabSlideOut({tabHandle:'.woof-handle.'+key,tabImage:jQuery(item).data('image'),tabImageHeight:jQuery(item).data('image_h')+'px',tabImageWidth:jQuery(item).data('image_w')+'px',tabLocation:jQuery(item).data('location'),bounceSpeed:jQuery(item).data('speed'),action:jQuery(item).data('action'),offset:jQuery(item).data('toppos'),onLoadSlideOut:jQuery(item).data('onloadslideout')});if(woof_slideout_screenHeight()-jQuery(item).position().top<jQuery(item).height()){var height=0;if(jQuery(item).data('location')=="top"||jQuery(item).data('location')=="bottom"){height=woof_slideout_screenHeight()-jQuery('.woof-handle.'+key).height()-10}else{height=woof_slideout_screenHeight()-jQuery(item).position().top-15}
if(height){jQuery(item).find(".woof-slide-content").css("height",height)}}
if(woof_slideout_screenWidth()<=jQuery(item).width()){var width=0;if(jQuery(item).data('location')=="right"||jQuery(item).data('location')=="left"){var width=woof_slideout_screenWidth()-jQuery('.woof-handle.'+key).width()-20;jQuery(item).find(".woof-slide-content").css("width",width)}}})})});function woof_slideout_screenHeight(){return jQuery(window).height()}
function woof_slideout_screenWidth(){return jQuery(window).width()};var AviaPrivacyCookieConsent={"?":"Gebruik onbekend","aviaCookieConsent":"Gebruik en opslag van cookies is geaccepteerd - beperkingen ingesteld in andere cookies","aviaPrivacyRefuseCookiesHideBar":"Cookie-berichtenbalk verbergen op volgende pagina's en cookies weigeren indien niet toegestaan - aviaPrivacyEssentialCookiesEnabled moet zijn ingesteld","aviaPrivacyEssentialCookiesEnabled":"Sta opslag van essenti\u00eble cookies van de site en andere cookies toe en het gebruik van functies indien niet opt-out","aviaPrivacyVideoEmbedsDisabled":"Sta niet toe dat video's ingesloten kunnen worden","aviaPrivacyGoogleTrackingDisabled":"cookie _gat_ (Slaat informatie op die nodig is voor Google Analytics) moest worden verwijderd","aviaPrivacyGoogleWebfontsDisabled":"Sta niet toe dat Google Webfonts worden gebruikt","aviaPrivacyGoogleMapsDisabled":"Sta niet toe dat Google Maps wordt gebruikt","aviaPrivacyGoogleReCaptchaDisabled":"Sta niet toe dat Google reCAPTCHA wordt gebruikt","aviaPrivacyMustOptInSetting":"Instellingen zijn voor gebruikers die zich moeten aanmelden voor cookies en services","PHPSESSID":"Interne cookie van operationele site - Houdt uw sessie bij","XDEBUG_SESSION":"Interne cookie van operationele site - PHP debugger sessie cookie","wp-settings*":"Interne cookie van operationele site","wordpress*":"Interne cookie van operationele site","tk_ai*":"Interne cookie van winkel","woocommerce*":"Interne cookie van winkel","wp_woocommerce*":"Interne cookie van winkel","wp-wpml*":"Nodig voor het beheer van verschillende talen","_ga":"Slaat informatie op die nodig is voor Google Analytics","_gid":"Slaat informatie op die nodig is voor Google Analytics","_gat_*":"Slaat informatie op die nodig is voor Google Analytics"};var AviaPrivacyCookieAdditionalData={"cookie_refuse_button_alert":"When refusing all cookies this site might not be able to work as expected. Please check our settings page and opt out for cookies or functions you do not want to use and accept cookies. You will be shown this message every time you open a new window or a new tab.\n\nAre you sure you want to continue?","no_cookies_found":"Geen toegankelijke cookies gevonden in domein","admin_keep_cookies":["PHPSESSID","wp-*","wordpress*","XDEBUG*"],"remove_custom_cookies":{"1":{"cookie_name":"_ga","cookie_path":"\/","cookie_content":"Google Analytics Cookie","cookie_info_desc":"Slaat informatie op die nodig is voor Google Analytics","cookie_compare_action":"","avia_cookie_name":"aviaPrivacyGoogleTrackingDisabled"},"2":{"cookie_name":"_gid","cookie_path":"\/","cookie_content":"Google Analytics Cookie","cookie_info_desc":"Slaat informatie op die nodig is voor Google Analytics","cookie_compare_action":"","avia_cookie_name":"aviaPrivacyGoogleTrackingDisabled"},"3":{"cookie_name":"_gat_","cookie_path":"\/","cookie_content":"Google Analytics Cookie","cookie_info_desc":"Slaat informatie op die nodig is voor Google Analytics","cookie_compare_action":"starts_with","avia_cookie_name":"aviaPrivacyGoogleTrackingDisabled"}},"no_lightbox":"We hebben een lightbox nodig om de modale pop-up te tonen. Schakel de ingebouwde lightbox in op het tabblad Thema-opties of neem uw eigen plug-in voor modaal venster op.\\n\\nU moet deze plug-in in JavaScript laden met callback wrapper-functies - zie avia_cookie_consent_modal_callback in bestand enfold\\js\\avia-snippet-cookieconsent.js "};/*!
Waypoints - 4.0.1
Copyright © 2011-2016 Caleb Troughton
Licensed under the MIT license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
*/
!function(){"use strict";var t=0,e={};function i(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=i.Adapter.extend({},i.defaults,o),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=[];for(var o in e)i.push(e[o]);for(var n=0,r=i.length;n<r;n++)i[n][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=i}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,i={},o=window.Waypoint,n=window.onload;function r(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),o=this.element==this.element.window;t&&e&&!o&&(this.adapter.off(".waypoints"),delete i[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,o.requestAnimationFrame(e))}))},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",(function(){t.didScroll&&!o.isTouch||(t.didScroll=!0,o.requestAnimationFrame(e))}))},r.prototype.handleResize=function(){o.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll<s.triggerPoint,l=o.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},r.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;o<n;o++)t[o].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,c,u=this.waypoints[r][a],d=u.options.offset,f=u.triggerPoint,w=0,y=null==f;u.element!==u.element.window&&(w=u.adapter.offset()[s.offsetProp]),"function"==typeof d?d=d.apply(u):"string"==typeof d&&(d=parseFloat(d),u.options.offset.indexOf("%")>-1&&(d=Math.ceil(s.contextDimension*d/100))),l=s.contextScroll-s.contextOffset,u.triggerPoint=Math.floor(w+l-d),h=f<s.oldScroll,p=u.triggerPoint>=s.oldScroll,c=!h&&!p,!y&&(h&&p)?(u.queueTrigger(s.backward),n[u.group.id]=u.group):(!y&&c||y&&s.oldScroll>=u.triggerPoint)&&(u.queueTrigger(s.forward),n[u.group.id]=u.group)}}return o.requestAnimationFrame((function(){for(var t in n)n[t].flushTriggers()})),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in i)i[t].refresh()},r.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){n&&n(),r.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},o=window.Waypoint;function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;r<s;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},o.Group=n}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,o){i[o]=t[o]})),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],o=arguments[0];return"function"==typeof arguments[0]&&((o=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var n=e.extend({},o,{element:this});"string"==typeof n.context&&(n.context=e(this).closest(n.context)[0]),i.push(new t(n))})),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}();if(!Array.isArray){Array.isArray=function(e){return Object.prototype.toString.call(e)==='[object Array]'}}(function(e){'use strict';const opt={'bubbles':!0,'cancelable':!0};e(window).on('av-height-change',function(e){const event=new CustomEvent('avia_height_change',opt);window.dispatchEvent(event)});e('body').on('av_resize_finished',function(e){const event=new CustomEvent('avia_resize_finished',opt);document.body.dispatchEvent(event)})})(jQuery);(function(e){'use strict';e(function(){e.avia_utilities=e.avia_utilities||{};o('html');s('html');c();i();new e.AviaTooltip({'class':'avia-search-tooltip',data:'avia-search-tooltip',event:'click',position:'bottom',scope:'body',attach:'element',within_screen:!0,close_keys:27});new e.AviaTooltip({'class':'avia-related-tooltip',data:'avia-related-tooltip',scope:'.related_posts, .av-share-box',attach:'element',delay:0});new e.AviaAjaxSearch({scope:'#header, .avia_search_element'});if(e.fn.avia_iso_sort){e('.grid-sort-container').avia_iso_sort()};a();e.avia_utilities.avia_ajax_call();e.avia_utilities.postSwipeSupport()});e.avia_utilities=e.avia_utilities||{};e.avia_utilities.postSwipeSupport=function(){if(!e.fn.avia_swipe_trigger){return};const body=document.getElementsByTagName('body'),methods={};methods.beforeTrigger=function(t,i){const loader=e.avia_utilities.loading();loader.show()};methods.afterTrigger=function(e,t){let body=document.getElementsByTagName('body');if(!body.length){return};let dir=t=='prev'?'swiped-ltr':'swiped-rtl';body[0].classList.add('av-post-swiped-overlay',dir)};if(!body.length||!body[0].classList.contains('avia-post-nav-swipe-enabled')){return};let single=document.querySelector('.single #main');if(single==null){return};let prev=document.querySelector('#wrap_all .avia-post-nav.avia-post-prev'),next=document.querySelector('#wrap_all .avia-post-nav.avia-post-next'),param={prev:prev,next:next,delay_trigger:!0,event:{prev:'native_click',next:'native_click'},beforeTrigger:methods.beforeTrigger,afterTrigger:methods.afterTrigger};e(single).avia_swipe_trigger(param)};e.avia_utilities.avia_ajax_call=function(t){if(typeof t=='undefined'){t='body'};e('a.avianolink').on('click',function(e){e.preventDefault()});e('a.aviablank').attr('target','_blank');if(e.fn.avia_activate_lightbox){e(t).avia_activate_lightbox()};if(e.fn.avia_scrollspy){if(t=='body'){e('body').avia_scrollspy({target:'.main_menu .menu li > a'})}else{e('body').avia_scrollspy('refresh')}};if(e.fn.avia_smoothscroll){e('a[href*="#"]',t).avia_smoothscroll(t)};l(t);n(t);r(t);if(e.fn.avia_html5_activation&&e.fn.mediaelementplayer){e('.avia_video, .avia_audio',t).avia_html5_activation({ratio:'16:9'})}};e.avia_utilities.log=function(e,t,i){if(typeof console=='undefined'){return};if(typeof t=='undefined'){t='log'};t='AVIA-'+t.toUpperCase();console.log('['+t+'] '+e);if(typeof i!='undefined'){console.log(i)}};function i(){var n=e(window),i=e('html').is('.html_header_sidebar')?'#main':'#header',a=e(i),r=a.parents('div').eq(0),l=e(i+' .container').first(),t='',o=function(){var i='',o=Math.round(l.width()),s=Math.round(a.width()),n=Math.round(r.width());i+=' #header .three.units{width:'+(o*0.25)+'px;}';i+=' #header .six.units{width:'+(o*0.50)+'px;}';i+=' #header .nine.units{width:'+(o*0.75)+'px;}';i+=' #header .twelve.units{width:'+(o)+'px;}';i+=' .av-framed-box .av-layout-tab-inner .container{width:'+(n)+'px;}';i+=' .html_header_sidebar .av-layout-tab-inner .container{width:'+(s)+'px;}';i+=' .boxed .av-layout-tab-inner .container{width:'+(s)+'px;}';i+=' .av-framed-box#top .av-submenu-container{width:'+(n)+'px;}';try{t.text(i)}catch(d){t.remove();var c=e('head').first();t=e('<style type=\'text/css\' id=\'av-browser-width-calc\'>'+i+'</style>').appendTo(c)}};if(e('.avia_mega_div').length>0||e('.av-layout-tab-inner').length>0||e('.av-submenu-container').length>0){var s=e('head').first();t=e('<style type=\'text/css\' id=\'av-browser-width-calc\'></style>').appendTo(s);n.on('debouncedresize',o);o()}};function a(){var t=e('.sidebar_shadow#top #main .sidebar'),i=e('.sidebar_shadow .content');if(t.height()>=i.height()){t.addClass('av-enable-shadow')}else{i.addClass('av-enable-shadow')}};function t(t,a){var i=this,n=i.process.bind(i),o=i.refresh.bind(i),r=e(t).is('body')?e(window):e(t),s;i.$body=e('body');i.$win=e(window);i.options=e.extend({},e.fn.avia_scrollspy.defaults,a);i.selector=(i.options.target||((s=e(t).attr('href'))&&s.replace(/.*(?=#[^\s]+$)/,''))||'');i.activation_true=!1;if(i.$body.find(i.selector+'[href*=\'#\']').length){i.$scrollElement=r.on('scroll.scroll-spy.data-api',n);i.$win.on('av-height-change',o);i.$body.on('av_resize_finished',o);i.activation_true=!0;i.checkFirst();setTimeout(function(){i.refresh();i.process()},100)}};t.prototype={constructor:t,checkFirst:function(){var e=window.location.href.split('#')[0],t=this.$body.find(this.selector+'[href=\''+e+'\']').attr('href',e+'#top')},refresh:function(){if(!this.activation_true)return;var t=this,i;this.offsets=e([]);this.targets=e([]);i=this.$body.find(this.selector).map(function(){var s=e(this),n=s.data('target')||s.attr('href'),i=this.hash,i=i.replace(/\//g,''),a=/^#\w/.test(i)&&e(i),o=t.$scrollElement.get(0),r=o!=null&&o===o.window;return(a&&a.length&&[[a.position().top+(!r&&t.$scrollElement.scrollTop()),n]])||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})},process:function(){if(!this.offsets)return;if(isNaN(this.options.offset))this.options.offset=0;var i=this.$scrollElement.scrollTop()+this.options.offset,s=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=s-this.$scrollElement.height(),t=this.offsets,a=this.targets,o=this.activeTarget,e;if(i>=n){return o!=(e=a.last()[0])&&this.activate(e)};for(e=t.length;e--;){o!=a[e]&&i>=t[e]&&(!t[e+1]||i<=t[e+1])&&this.activate(a[e])}},activate:function(t){var i,a;this.activeTarget=t;e(this.selector).parent('.'+this.options.applyClass).removeClass(this.options.applyClass);a=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]';i=e(a).parent('li').addClass(this.options.applyClass);if(i.parent('.sub-menu').length){i=i.closest('li.dropdown_ul_available').addClass(this.options.applyClass)};i.trigger('activate')}};e.fn.avia_scrollspy=function(i){return this.each(function(){var o=e(this),a=o.data('scrollspy'),s=typeof i=='object'&&i;if(!a)o.data('scrollspy',(a=new t(this,s)));if(typeof i=='string')a[i]()})};e.fn.avia_scrollspy.Constructor=t;e.fn.avia_scrollspy.calc_offset=function(){var t=(parseInt(e('.html_header_sticky #main').data('scroll-offset'),10))||0,i=(e('.html_header_sticky:not(.html_top_nav_header) #header_main_alternate').outerHeight())||0,a=(e('.html_header_sticky.html_header_unstick_top_disabled #header_meta').outerHeight())||0,o=1,s=parseInt(e('html').css('margin-top'),10)||0,n=parseInt(e('.av-frame-top ').outerHeight(),10)||0;return t+i+a+o+s+n};e.fn.avia_scrollspy.defaults={offset:e.fn.avia_scrollspy.calc_offset(),applyClass:'current-menu-item'};function o(t){var i={},n=function(e){e=e.toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf('trident')>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf('compatible')<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[5]||t[3]||t[1]||'',version:t[2]||t[4]||'0',versionNumber:t[4]||t[2]||'0'}};var o=n(navigator.userAgent);if(o.browser){i.browser=o.browser;i[o.browser]=!0;i.version=o.version};if(i.chrome){i.webkit=!0}else if(i.webkit){i.safari=!0};if(typeof(i)!=='undefined'){var a='',s=i.version?parseInt(i.version):'';if(i.msie||i.rv||i.iemobile){a+='avia-msie'}else if(i.webkit){a+='avia-webkit'}else if(i.mozilla){a+='avia-mozilla'};if(i.version)a+=' '+a+'-'+s+' ';if(i.browser)a+=' avia-'+i.browser+' avia-'+i.browser+'-'+s+' '};if(t){e(t).addClass(a)};return a};function s(t){var i=[];e.avia_utilities.isTouchDevice='ontouchstart' in window||window.DocumentTouch&&document instanceof window.DocumentTouch||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0;i.push(e.avia_utilities.isTouchDevice?'touch-device':'no-touch-device');e.avia_utilities.pointerDevices=[];if(typeof window.matchMedia!='function'){e.avia_utilities.pointerDevices.push('undefined');i.push('pointer-device-undefined')}else{var a=!1;if(window.matchMedia('(any-pointer: fine)')){i.push('pointer-device-fine');e.avia_utilities.pointerDevices.push('fine');a=!0};if(window.matchMedia('(any-pointer: coarse)')){i.push('pointer-device-coarse');e.avia_utilities.pointerDevices.push('coarse');if(!a){i.push('pointer-device-coarse-only')}};if(!e.avia_utilities.pointerDevices.length){i.push('pointer-device-none');e.avia_utilities.pointerDevices.push('none')}};if('undefined'==typeof e.avia_utilities.isMobile){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart' in document.documentElement){e.avia_utilities.isMobile=!0}else{e.avia_utilities.isMobile=!1}};e(t).addClass(i.join(' '))};e.fn.avia_html5_activation=function(t){var i={ratio:'16:9'};var t=e.extend(i,t);this.each(function(){var t=e(this),s='#'+t.attr('id'),o=t.attr('poster'),i=['playpause','progress','current','duration','tracks','volume'],a=t.closest('.avia-video');if(a.length>0&&a.hasClass('av-html5-fullscreen-btn')){i.push('fullscreen')};if(!e(this).prop('controls')){i=[]};t.mediaelementplayer({defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,audioWidth:400,audioHeight:30,startVolume:0.8,loop:!1,enableAutosize:!1,features:i,alwaysShowControls:!1,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,enableKeyboard:!0,pauseOtherPlayers:!1,poster:o,success:function(i,a,o){e.AviaVideoAPI.players[t.attr('id').replace(/_html5/,'')]=o;setTimeout(function(){if(i.pluginType=='flash'){i.addEventListener('canplay',function(){t.trigger('av-mediajs-loaded')},!1)}else{t.trigger('av-mediajs-loaded').addClass('av-mediajs-loaded')};i.addEventListener('ended',function(){t.trigger('av-mediajs-ended')},!1);var a=document.getElementById(e(i).attr('id')+'_html5');if(a&&a!==i){i.addEventListener('ended',function(){e(a).trigger('av-mediajs-ended')})}},10)},error:function(){},keyActions:[]})})};function n(t){if(e.avia_utilities.isMobile){return};if(e('body').hasClass('av-disable-avia-hover-effect')){return};var o='',a=e.avia_utilities.supports('transition'),i=[];if(t=='body'){i=e('#main a img').parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('#main .avia-hover-fx')}else{i=e('a img',t).parents('a').not('.noLightbox, .noLightbox a, .avia-gallery-thumb a, .ls-wp-container a, .noHover, .noHover a, .av-logo-container .logo a').add('.avia-hover-fx',t)};i.each(function(t){var o=e(this),r=o.find('img').first();if(r.hasClass('alignleft')){o.addClass('alignleft').css({float:'left',margin:0,padding:0})};if(r.hasClass('alignright')){o.addClass('alignright').css({float:'right',margin:0,padding:0})};if(r.hasClass('aligncenter')){o.addClass('aligncenter').css({float:'none','text-align':'center',margin:0,padding:0})};if(r.hasClass('alignnone')){o.addClass('alignnone').css({margin:0,padding:0});if(!o.css('display')||o.css('display')=='inline'){o.css({display:'inline-block'})}};if(!o.css('position')||o.css('position')=='static'){o.css({position:'relative',overflow:'hidden'})};var l=o.attr('href'),s='overlay-type-video',d=o.data('opacity')||0.7,c=5,n=o.find('.image-overlay');if(l){if(l.match(/(jpg|gif|jpeg|png|tif)/)){s='overlay-type-image'};if(!l.match(/(jpg|gif|jpeg|png|\.tif|\.mov|\.swf|vimeo\.com|youtube\.com)/)){s='overlay-type-extern'}};if(!n.length){n=e('<span class=\'image-overlay '+s+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(o)};o.on('mouseenter',function(t){var i=o.find('img').first(),r=i.get(0),l=i.outerHeight(),f=i.outerWidth(),h=i.position(),p=o.css('display'),n=o.find('.image-overlay');if(l>100){if(!n.length){n=e('<span class=\'image-overlay '+s+'\'><span class=\'image-overlay-inside\'></span></span>').appendTo(o)};if(o.height()==0){o.addClass(r.className);r.className=''};if(!p||p=='inline'){o.css({display:'block'})};n.css({left:(h.left-c)+parseInt(i.css('margin-left'),10),top:h.top+parseInt(i.css('margin-top'),10)}).css({overflow:'hidden',display:'block','height':l,'width':(f+(2*c))});if(a===!1){n.stop().animate({opacity:d},400)}}else{n.css({display:'none'})}}).on('mouseleave',i,function(){if(n.length){if(a===!1){n.stop().animate({opacity:0},400)}}})})}(function(e){e.fn.avia_smoothscroll=function(t){if(!this.length){return};var a=e(window),p=e('#header'),f=e('.html_header_top.html_header_sticky #main').not('.page-template-template-blank-php #main'),u=e('.html_header_top.html_header_unstick_top_disabled #header_meta'),v=e('.html_header_top:not(.html_top_nav_header) #header_main_alternate'),m=e('.html_header_top.html_top_nav_header'),l=e('.html_header_top.html_header_shrinking').length,c=e('.av-frame-top'),i=0,d=e.avia_utilities.isMobile,o=e('.sticky_placeholder').first(),h=function(){if(p.css('position')=='fixed'){var t=parseInt(f.data('scroll-offset'),10)||0,a=parseInt(u.outerHeight(),10)||0,o=parseInt(v.outerHeight(),10)||0;if(t>0&&l){t=(t/2)+a+o}else{t=t+a+o};t+=parseInt(e('html').css('margin-top'),10);i=t}else{i=parseInt(e('html').css('margin-top'),10)};if(c.length){i+=c.height()};if(m.length){i=e('.html_header_sticky #header_main_alternate').height()+parseInt(e('html').css('margin-top'),10)};if(d){i=0}};if(d){l=!1};h();a.on('debouncedresize av-height-change',h);var s=window.location.hash.replace(/\//g,'');if(i>0&&s&&t=='body'&&s.charAt(1)!='!'&&s.indexOf('=')===-1){var n=e(s),r=0;if(n.length){a.on('scroll.avia_first_scroll',function(){setTimeout(function(){if(o.length&&n.offset().top>o.offset().top){r=o.outerHeight()-3};a.off('scroll.avia_first_scroll').scrollTop(n.offset().top-i-r)},10)})}};return this.each(function(){e(this).on('click',function(t){var n=this.hash.replace(/\//g,''),d=e(this),r=d.data(),u=!1,b='undefined'!=typeof r.no_scroll_in_viewport&&r.no_scroll_in_viewport==1,T='undefined'!=typeof r.ignore_hash&&r.ignore_hash==1;if(n!=''&&n!='#'&&n!='#prev'&&n!='#next'&&!d.is('.comment-reply-link, #cancel-comment-reply-link, .no-scroll')){var s='',f='';if('#next-section'==n){f=n;var w=d.parents('.container_wrap').eq(0).nextAll('.container_wrap');w.each(function(){var t=e(this);if(t.css('display')=='none'||t.css('visibility')=='hidden'){return};s=t;return!1});if('object'==typeof s&&s.length>0){n='#'+s.attr('id')}}else{s=e(this.hash.replace(/\//g,''))};if(s.length&&b){const rect=s[0].getBoundingClientRect();if(rect.top>i&&(rect.top<(window.innerHeight||document.documentElement.clientHeight))){u=!0}};if(s.length&&!u){var h=a.scrollTop(),p=s.offset().top,l=p-i,c=window.location.hash,c=c.replace(/\//g,''),v=window.location.href.replace(c,''),m=this,g=r.duration||1200,y=r.easing||'easeInOutQuint';if(o.length&&p>o.offset().top){l-=o.outerHeight()-3};if('undefined'!=typeof r.scroll_top_offset&&Number.isInteger(r.scroll_top_offset)){l-=r.scroll_top_offset};if(v+n==m||f){if(h!=l){if(!(h==0&&l<=0)){a.trigger('avia_smooth_scroll_start');e('html:not(:animated),body:not(:animated)').animate({scrollTop:l},g,y,function(){a.trigger('avia_smooth_scroll_end');if(!T){if(window.history.replaceState){window.history.replaceState('','',n)}}})}};t.preventDefault()}}}})})}})(jQuery);function r(e){var t=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame)',e),i=jQuery('iframe[src*="youtube.com"]:not(.av_youtube_frame) object, iframe[src*="youtube.com"]:not(.av_youtube_frame) embed',e).attr('wmode','opaque');t.each(function(){var t=jQuery(this),e=t.attr('src');if(e){if(e.indexOf('?')!==-1){e+='&wmode=opaque&rel=0'}else{e+='?wmode=opaque&rel=0'};t.attr('src',e)}})};function l(e){if(!e)e=document;var a=jQuery(window),t=jQuery('.avia-iframe-wrap iframe:not(.avia-slideshow iframe):not(iframe.no_resize):not(.avia-video iframe):not(.wp-embedded-content)',e),i=function(){t.each(function(){var t=jQuery(this),i=t.parent(),e=56.25;if(this.width&&this.height){e=(100/this.width)*this.height;i.css({'padding-bottom':e+'%'})}})};i()};function c(){var i=e(window),o=!1,t=e('#scroll-top-link'),a=function(){var e=i.scrollTop();if(e<500){t.removeClass('avia_pop_class')}else if(!t.is('.avia_pop_class')){t.addClass('avia_pop_class')}};i.on('scroll',function(){window.requestAnimationFrame(a)});a()};e.AviaAjaxSearch=function(t){var i={delay:300,minChars:3,scope:'body'};this.options=e.extend({},i,t);this.scope=e(this.options.scope);this.timer=!1;this.lastVal='';this.bind_events()};e.AviaAjaxSearch.prototype={bind_events:function(){this.scope.on('keyup','#s:not(".av_disable_ajax_search #s")',this.try_search.bind(this));this.scope.on('click','#s.av-results-parked',this.reset.bind(this))},try_search:function(t){var i=e(t.currentTarget).parents('form').eq(0),a=i.find('.ajax_search_response');clearTimeout(this.timer);if(t.keyCode===27){this.reset(t);return};if(t.currentTarget.value.length>=this.options.minChars&&this.lastVal!=t.currentTarget.value.trim()){this.timer=setTimeout(this.do_search.bind(this,t),this.options.delay)}else if(t.currentTarget.value.length==0){this.timer=setTimeout(this.reset.bind(this,t),this.options.delay)}},reset:function(t){var i=e(t.currentTarget).parents('form').eq(0),a=i.find('.ajax_search_response'),o=e(i.attr('data-ajaxcontainer')).find('.ajax_search_response'),s=e(t.currentTarget);if(e(t.currentTarget).hasClass('av-results-parked')){a.show();o.show();e('body > .ajax_search_response').show()}else{a.remove();o.remove();s.val('');e('body > .ajax_search_response').remove()}},do_search:function(t){var w=this,l=e(t.currentTarget).attr('autocomplete','off'),c=e(t.currentTarget).parents('.av_searchform_wrapper').eq(0),h=c.offset(),m=c.outerWidth(),g=c.outerHeight(),i=l.parents('form').eq(0),y=i.find('#searchsubmit'),s=i,a=s.find('.ajax_search_response'),p=e('<div class="ajax_load"><span class="ajax_load_inner"></span></div>'),n=i.attr('action'),d=i.serialize(),f=i.data('element_id'),u=i.data('custom_color');d+='&action=avia_ajax_search';if(!a.length){a=e('<div class="ajax_search_response" style="display:none;"></div>')};if('undefined'!=typeof f){a.addClass(f)};if('undefined'!=typeof u&&u!=''){a.addClass('av_has_custom_color')};if(i.attr('id')=='searchform_element'){a.addClass('av_searchform_element_results')};if(n.indexOf('?')!=-1){n=n.split('?');d+='&'+n[1]};if(i.attr('data-ajaxcontainer')){var r=i.attr('data-ajaxcontainer');if(e(r).length){e(r).find('.ajax_search_response').remove();s=e(r)}};o={};if(i.hasClass('av_results_container_fixed')){e('body').find('.ajax_search_response').remove();s=e('body');var o={top:h.top+g,left:h.left,width:m};a.addClass('main_color');e(window).resize(function(){a.remove();this.reset.bind(this);l.val('')})};if(i.attr('data-results_style')){var v=JSON.parse(i.attr('data-results_style'));o=Object.assign(o,v);if('color' in o){a.addClass('av_has_custom_color')}};a.css(o);if(s.hasClass('avia-section')){a.addClass('container')};a.appendTo(s);if(a.find('.ajax_not_found').length&&t.currentTarget.value.indexOf(this.lastVal)!=-1){return};this.lastVal=t.currentTarget.value;e.ajax({url:avia_framework_globals.ajaxurl,type:'POST',data:d,beforeSend:function(){p.insertAfter(y);i.addClass('ajax_loading_now')},success:function(e){if(e==0){e=''};a.html(e).show()},complete:function(){p.remove();i.removeClass('ajax_loading_now')}});e(document).on('click',function(t){if(!e(t.target).closest(i).length){if(e(a).is(':visible')){e(a).hide();l.addClass('av-results-parked')}}})}};e.AviaTooltip=function(t){var a={delay:1500,delayOut:300,delayHide:0,'class':'avia-tooltip',scope:'body',data:'avia-tooltip',attach:'body',event:'mouseenter',position:'top',extraClass:'avia-tooltip-class',permanent:!1,within_screen:!1,close_keys:null};this.options=e.extend({},a,t);var i='';if(this.options.close_keys!=null){if(!Array.isArray(this.options.close_keys)){this.options.close_keys=[this.options.close_keys]};i=' data-close-keys="'+this.options.close_keys.join(',')+'" '};this.body=e('body');this.scope=e(this.options.scope);this.tooltip=e('<div class="'+this.options['class']+' avia-tt"'+i+'><span class="avia-arrow-wrap"><span class="avia-arrow"></span></span></div>');this.inner=e('<div class="inner_tooltip"></div>').prependTo(this.tooltip);this.open=!1;this.timer=!1;this.active=!1;this.bind_events()};e.AviaTooltip.openTTs=[];e.AviaTooltip.openTT_Elements=[];e.AviaTooltip.prototype={bind_events:function(){var i='.av-permanent-tooltip [data-'+this.options.data+']',t='[data-'+this.options.data+']:not( .av-permanent-tooltip [data-'+this.options.data+'])';this.scope.on('av_permanent_show',i,this.display_tooltip.bind(this));e(i).addClass('av-perma-tooltip').trigger('av_permanent_show');this.scope.on(this.options.event+' mouseleave',t,this.start_countdown.bind(this));if(this.options.event!='click'){this.scope.on('mouseleave',t,this.hide_tooltip.bind(this));this.scope.on('click',t,this.hide_on_click_tooltip.bind(this))}else{this.body.on('mousedown',this.hide_tooltip.bind(this))};if(this.options.close_keys!=null){this.body.on('keyup',this.close_on_keyup.bind(this))}},start_countdown:function(t){clearTimeout(this.timer);var a=this.options.event=='click'?t.target:t.currentTarget,o=e(a);if(t.type==this.options.event){var i=this.options.event=='click'?0:this.open?0:this.options.delay;this.timer=setTimeout(this.display_tooltip.bind(this,t),i)}else if(t.type=='mouseleave'){if(!o.hasClass('av-close-on-click-tooltip')){this.timer=setTimeout(this.stop_instant_open.bind(this,t),this.options.delayOut)}};t.preventDefault()},reset_countdown:function(e){clearTimeout(this.timer);this.timer=!1},display_tooltip:function(t){var y=this,w=this.options.event=='click'?t.target:t.currentTarget,i=e(w),d=i.data(this.options.data),u=i.data('avia-created-tooltip'),v=i.data('avia-tooltip-class'),p=this.options.attach=='element'?i:this.body,n=this.options.attach=='element'?i.position():i.offset(),c=i.data('avia-tooltip-position'),h=i.data('avia-tooltip-alignment'),m=!1,a=!1,g=!1;d='string'==typeof d?d.trim():'';if(i.is('.av-perma-tooltip')){n={top:0,left:0};p=i;m=!0};if(d==''){return};if(c==''||typeof c=='undefined'){c=this.options.position};if(h==''||typeof h=='undefined'){h='center'};if(typeof u!='undefined'){a=e.AviaTooltip.openTTs[u]}else{this.inner.html(d);a=this.tooltip.clone();g=!0;if(this.options.attach=='element'&&m!==!0){a.insertAfter(p)}else{a.appendTo(p)};if(v!=''){a.addClass(v)}};if(this.open&&this.active==a){return};if(i.hasClass('av-close-on-click-tooltip')){this.hide_all_tooltips()};this.open=!0;this.active=a;if((a.is(':animated:visible')&&t.type=='click')||i.is('.'+this.options['class'])||i.parents('.'+this.options['class']).length!=0){return};var r={},l={},s='',o='';if(c=='top'||c=='bottom'){switch(h){case'left':o=n.left;break;case'right':o=n.left+i.outerWidth()-a.outerWidth();break;default:o=(n.left+(i.outerWidth()/2))-(a.outerWidth()/2);break};if(y.options.within_screen){var f=i.offset().left+(i.outerWidth()/2)-(a.outerWidth()/2)+parseInt(a.css('margin-left'),10);if(f<0){o=o-f}}}else{switch(h){case'top':s=n.top;break;case'bottom':s=n.top+i.outerHeight()-a.outerHeight();break;default:s=(n.top+(i.outerHeight()/2))-(a.outerHeight()/2);break}};switch(c){case'top':s=n.top-a.outerHeight();r={top:s-10,left:o};l={top:s};break;case'bottom':s=n.top+i.outerHeight();r={top:s+10,left:o};l={top:s};break;case'left':o=n.left-a.outerWidth();r={top:s,left:o-10};l={left:o};break;case'right':o=n.left+i.outerWidth();r={top:s,left:o+10};l={left:o};break};r.display='block';r.opacity=0;l.opacity=1;a.css(r).stop().animate(l,200);a.find('input, textarea').trigger('focus');if(g){e.AviaTooltip.openTTs.push(a);e.AviaTooltip.openTT_Elements.push(i);i.data('avia-created-tooltip',e.AviaTooltip.openTTs.length-1)}},hide_on_click_tooltip:function(t){if(this.options.event=='click'){return};var i=e(t.currentTarget);if(!i.hasClass('av-close-on-click-tooltip')){return};if(!i.find('a')){t.preventDefault()};var o=i.data('avia-created-tooltip');if('undefined'!=typeof o){var a=e.AviaTooltip.openTTs[o];if('undefined'!=typeof a&&a==this.active){this.hide_all_tooltips()}}},close_on_keyup:function(t){if(this.options.close_keys==null){return};if(e.inArray(t.keyCode,this.options.close_keys)<0){return};this.hide_all_tooltips(t.keyCode)},hide_all_tooltips:function(t){var o,s,n,r='undefined'!=typeof t?t+'':null;for(var a=0;a<e.AviaTooltip.openTTs.length;++a){o=e.AviaTooltip.openTTs[a];n=e.AviaTooltip.openTT_Elements[a];s=n.data('avia-tooltip-position');if(r!=null){var i=o.data('close-keys');if('undefined'==typeof i){continue};i=i+'';i=i.split(',');if(e.inArray(r,i)<0){continue}};this.animate_hide_tooltip(o,s)};this.open=!1;this.active=!1},hide_tooltip:function(t){var i=e(t.currentTarget),a,n,o=i.data('avia-tooltip-position'),s=i.data('avia-tooltip-alignment'),a=!1;if(o==''||typeof o=='undefined'){o=this.options.position};if(s==''||typeof s=='undefined'){s='center'};if(this.options.event=='click'){i=e(t.target);if(!i.is('.'+this.options['class'])&&i.parents('.'+this.options['class']).length==0){if(this.active.length){a=this.active;this.active=!1}}}else{if(!i.hasClass('av-close-on-click-tooltip')){a=i.data('avia-created-tooltip');a=typeof a!='undefined'?e.AviaTooltip.openTTs[a]:!1}};this.animate_hide_tooltip(a,o)},animate_hide_tooltip:function(e,t){if(e){var i={opacity:0};switch(t){case'top':i.top=parseInt(e.css('top'),10)-10;break;case'bottom':i.top=parseInt(e.css('top'),10)+10;break;case'left':i.left=parseInt(e.css('left'),10)-10;break;case'right':i.left=parseInt(e.css('left'),10)+10;break};e.animate(i,200,function(){e.css({display:'none'})})}},stop_instant_open:function(e){this.open=!1}}})(jQuery);(function(e){'use strict';e(function(){e.event.special.touchstart={setup:function(e,t,i){this.addEventListener('touchstart',i,{passive:!t.includes('noPreventDefault')})}};e.event.special.touchmove={setup:function(e,t,i){this.addEventListener('touchmove',i,{passive:!t.includes('noPreventDefault')})}};e.event.special.wheel={setup:function(e,t,i){this.addEventListener('wheel',i,{passive:!0})}};e.event.special.mousewheel={setup:function(e,t,i){this.addEventListener('mousewheel',i,{passive:!0})}}})})(jQuery);(function(){var i=0,t=['ms','moz','webkit','o'];for(var e=0;e<t.length&&!window.requestAnimationFrame;++e){window.requestAnimationFrame=window[t[e]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[t[e]+'CancelAnimationFrame']||window[t[e]+'CancelRequestAnimationFrame']};if(!window.requestAnimationFrame)window.requestAnimationFrame=function(e,t){var a=new Date().getTime(),o=Math.max(0,16-(a-i)),s=window.setTimeout(function(){e(a+o)},o);i=a+o;return s};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=function(e){clearTimeout(e)}}());jQuery.expr.pseudos.regex=function(e,t,i){var a=i[3].split(','),o=/^(data|css):/,s={method:a[0].match(o)?a[0].split(':')[0]:'attr',property:a.shift().replace(o,'')},n='ig',r=new RegExp(a.join('').replace(/^\s+|\s+$/g,''),n);return r.test(jQuery(e)[s.method](s.property))};(function(i){"use strict";i(function(){i.avia_utilities=i.avia_utilities||{};if("undefined"==typeof i.avia_utilities.isMobile){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&"ontouchstart" in document.documentElement){i.avia_utilities.isMobile=!0}else{i.avia_utilities.isMobile=!1}};if(i.fn.avia_mobile_fixed){i(".avia-bg-style-fixed").avia_mobile_fixed()};if(i.fn.avia_browser_height){i(".av-minimum-height, .avia-fullscreen-slider, .av-cell-min-height").avia_browser_height()};if(i.fn.avia_container_height){i(".av-column-min-height-pc").avia_container_height()};if(i.fn.avia_video_section){i(".av-section-with-video-bg").avia_video_section()};new i.AviaTooltip({"class":"avia-tooltip",data:"avia-tooltip",delay:0,scope:"body"});new i.AviaTooltip({"class":"avia-tooltip avia-icon-tooltip",data:"avia-icon-tooltip",delay:0,scope:"body"});i.avia_utilities.activate_shortcode_scripts();if(i.fn.layer_slider_height_helper){i(".avia-layerslider").layer_slider_height_helper()};if(i.fn.avia_portfolio_preview){i(".grid-links-ajax").avia_portfolio_preview()};if(i.fn.avia_masonry){i(".av-masonry").avia_masonry()};if(i.fn.aviaccordion){i(".aviaccordion").aviaccordion()};if(i.fn.avia_textrotator){i(".av-rotator-container").avia_textrotator()};if(i.fn.avia_sc_tab_section){i(".av-tab-section-container").avia_sc_tab_section()};if(i.fn.avia_hor_gallery){i(".av-horizontal-gallery").avia_hor_gallery()};if(i.fn.avia_link_column){i(".avia-link-column").avia_link_column()};if(i.fn.avia_delayed_animation_in_container){i(".av-animation-delay-container").avia_delayed_animation_in_container()}});i.avia_utilities=i.avia_utilities||{};i.avia_utilities.activate_shortcode_scripts=function(e){if(typeof e=="undefined"){e="body"};if(i.fn.avia_ajax_form){i(".avia_ajax_form:not( .avia-disable-default-ajax )",e).avia_ajax_form()};n(e);if(i.fn.aviaVideoApi){i(".avia-slideshow iframe[src*=\"youtube.com\"], .av_youtube_frame, .av_vimeo_frame, .avia-slideshow video").aviaVideoApi({},"li")};if(i.fn.avia_sc_toggle){i(".togglecontainer",e).avia_sc_toggle()};if(i.fn.avia_sc_tabs){i(".top_tab",e).avia_sc_tabs();i(".sidebar_tab",e).avia_sc_tabs({sidebar:!0})};if(i.fn.avia_sc_gallery){i(".avia-gallery",e).avia_sc_gallery()};if(i.fn.avia_sc_animated_number){i(".avia-animated-number",e).avia_sc_animated_number()};if(i.fn.avia_sc_animation_delayed){i(".av_font_icon",e).avia_sc_animation_delayed({delay:100});i(".avia-image-container",e).avia_sc_animation_delayed({delay:100});i(".av-hotspot-image-container",e).avia_sc_animation_delayed({delay:100});i(".av-animated-generic",e).avia_sc_animation_delayed({delay:100});i(".av-animated-when-visible",e).avia_sc_animation_delayed({delay:100});i(".av-animated-when-almost-visible",e).avia_sc_animation_delayed({delay:100});i(".av-animated-when-visible-95",e).avia_sc_animation_delayed({delay:100})};if(i.fn.avia_sc_iconlist){i(".avia-icon-list.av-iconlist-big.avia-iconlist-animate",e).avia_sc_iconlist()};if(i.fn.avia_sc_progressbar){i(".avia-progress-bar-container",e).avia_sc_progressbar()};if(i.fn.avia_sc_testimonial){i(".avia-testimonial-wrapper",e).avia_sc_testimonial()};if(i.fn.aviaFullscreenSlider){i(".avia-slideshow.av_fullscreen",e).aviaFullscreenSlider()};if(i.fn.aviaSlider){i(".avia-slideshow:not(.av_fullscreen)",e).aviaSlider();i(".avia-content-slider-active",e).aviaSlider({wrapElement:".avia-content-slider-inner",slideElement:".slide-entry-wrap",fullfade:!0});i(".avia-slider-testimonials",e).aviaSlider({wrapElement:".avia-testimonial-row",slideElement:".avia-testimonial",fullfade:!0})};if(i.fn.aviaMagazine){i(".av-magazine-tabs-active",e).aviaMagazine()};if(i.fn.aviaHotspots){i(".av-hotspot-image-container",e).aviaHotspots()};if(i.fn.aviaCountdown){i(".av-countdown-timer",e).aviaCountdown()};if(i.fn.aviaPlayer){i(".av-player",e).aviaPlayer()};if(i.fn.aviaIconCircles){i(".av-icon-circles-container").aviaIconCircles()};if(i.fn.avia_sc_icongrid){i(".avia-icon-grid-container").avia_sc_icongrid()}};function n(e){if(i.fn.avia_waypoints){if(typeof e=="undefined"){e="body"};i(".avia_animate_when_visible",e).avia_waypoints();i(".avia_animate_when_almost_visible",e).avia_waypoints({offset:"80%"});i(".av-animated-when-visible",e).avia_waypoints();i(".av-animated-when-almost-visible",e).avia_waypoints({offset:"80%"});i(".av-animated-when-visible-95",e).avia_waypoints({offset:"95%"});var t=i("*[class*=\"av-custom-animated-top-\"]",e);t.each(function(){var n=i(this),t=n[0].className.split(/\s+/);for(var e=0;e<t.length;e++){if(t[e].indexOf("av-custom-animated-top-")==0){var a=parseInt(t[e].replace("av-custom-animated-top-",""));if(!isNaN(a)&&a<100){n.avia_waypoints({offset:a+"%"})}}}});var a=i("body").hasClass("avia-mobile-no-animations");if(e=="body"&&a){e=".avia_desktop body"};i(".av-animated-generic",e).avia_waypoints({offset:"95%"})}};i.fn.avia_mobile_fixed=function(e){var a=i.avia_utilities.isMobile;if(!a){return};return this.each(function(){var a=i(this).addClass("av-parallax-section"),n=a.attr("style"),e=a.data("section-bg-repeat"),t="";if(e=="stretch"||e=="no-repeat"){e=" avia-full-stretch"}else{e=""};t="<div class='av-parallax "+e+"' data-avia-parallax-ratio='0.0' style = '"+n+"' ></div>";a.prepend(t);a.attr("style","")})};i.fn.avia_sc_animation_delayed=function(e){var a=0,n=e.delay||50,t=10,o=setTimeout(function(){t=20},500);return this.each(function(){var e=i(this);e.on("avia_start_animation",function(){var e=i(this);if(a<t){a++};setTimeout(function(){e.addClass("avia_start_delayed_animation");if(a>0){a--}},(a*n))})})};i.fn.avia_delayed_animation_in_container=function(e){return this.each(function(){var e=i(this);e.on("avia_start_animation_if_current_slide_is_active",function(){var e=i(this),a=e.find(".avia_start_animation_when_active");a.addClass("avia_start_animation").trigger("avia_start_animation")});e.on("avia_remove_animation",function(){var e=i(this),a=e.find(".avia_start_animation_when_active, .avia_start_animation");a.removeClass("avia_start_animation avia_start_delayed_animation")})})};i.fn.avia_browser_height=function(){if(!this.length){return this};var e=i(window),c=i("html"),n=i("head").first(),r=i("#wpadminbar, #header.av_header_top:not(.html_header_transparency #header), #main>.title_container"),a=i("<style type='text/css' id='av-browser-height'></style>").appendTo(n),o=i(".html_header_sidebar #top #header_main"),l=i(".html_header_sidebar .avia-fullscreen-slider.avia-builder-el-0.avia-builder-el-no-sibling").addClass("av-solo-full"),t=[25,50,75],s=function(){let css="",wh100=e.height(),ww100=e.width(),wh100_mod=wh100,whCover=(wh100/9)*16,wwCover=(ww100/16)*9,solo=0;if(o.length){solo=o.height()};r.each(function(){wh100_mod-=this.offsetHeight-1});let whCoverMod=(wh100_mod/9)*16;css+=".avia-section.av-minimum-height .container{opacity: 1; }\n";css+=".av-minimum-height-100:not(.av-slideshow-section) .container, .avia-fullscreen-slider .avia-slideshow, #top.avia-blank .av-minimum-height-100 .container, .av-cell-min-height-100 > .flex_cell{height: 100vh;}\n";css+=".av-minimum-height-100vw:not(.av-slideshow-section) .container, #top.avia-blank .av-minimum-height-100vw .container, .av-cell-min-height-100vw > .flex_cell{height: 100vw;}\n";css+=".av-minimum-height-100.av-slideshow-section .container { height:unset; }\n";css+=".av-minimum-height-100vw.av-slideshow-section .container { height:unset; }\n";css+=".av-minimum-height-100.av-slideshow-section {min-height: 100vh;}\n";css+=".av-minimum-height-100vw.av-slideshow-section {min-height: 100vw;}\n";i.each(t,function(i,e){css+=".av-minimum-height-"+e+":not(.av-slideshow-section) .container, .av-cell-min-height-"+e+" > .flex_cell	{height:"+e+"vh;}\n";css+=".av-minimum-height-"+e+".av-slideshow-section {min-height:"+e+"vh;}\n";css+=".av-minimum-height-"+e+"vw:not(.av-slideshow-section) .container, .av-cell-min-height-"+e+"vw > .flex_cell	{height:"+e+"vw;}\n";css+=".av-minimum-height-"+e+"vw.av-slideshow-section {min-height:"+e+"vw;}\n"});css+=".avia-builder-el-0.av-minimum-height-100:not(.av-slideshow-section) .container, .avia-builder-el-0.avia-fullscreen-slider .avia-slideshow, .avia-builder-el-0.av-cell-min-height-100 > .flex_cell{height:"+wh100_mod+"px;}\n";css+="#top .av-solo-full .avia-slideshow {min-height:"+solo+"px;}\n";if(ww100/wh100<16/9){css+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{width:"+whCover+"px; left: -"+(whCover-ww100)/2+"px;}\n"}else{css+="#top .av-element-cover iframe, #top .av-element-cover embed, #top .av-element-cover object, #top .av-element-cover video{height:"+wwCover+"px; top: -"+(wwCover-wh100)/2+"px;}\n"};if(ww100/wh100_mod<16/9){css+="#top .avia-builder-el-0 .av-element-cover iframe, #top .avia-builder-el-0 .av-element-cover embed, #top .avia-builder-el-0 .av-element-cover object, #top .avia-builder-el-0 .av-element-cover video{width:"+whCoverMod+"px; left: -"+(whCoverMod-ww100)/2+"px;}\n"}else{css+="#top .avia-builder-el-0 .av-element-cover iframe, #top .avia-builder-el-0 .av-element-cover embed, #top .avia-builder-el-0 .av-element-cover object, #top .avia-builder-el-0 .av-element-cover video{height:"+wwCover+"px; top: -"+(wwCover-wh100_mod)/2+"px;}\n"};try{a.text(css)}catch(s){a.remove();a=i("<style type='text/css' id='av-browser-height'>"+css+"</style>").appendTo(n)};setTimeout(function(){e.trigger("av-height-change")},100)};this.each(function(e){let container=i(this),height=container.data("av_minimum_height_pc");if("number"!=typeof height){return this};height=parseInt(height);if((-1==i.inArray(height,t))&&(height!=100)){t.push(height)};return this});e.on("debouncedresize",s);s()};i.fn.avia_container_height=function(){if(!this.length){return this};var e=i(window),a=function(){var a=i(this),s=a.data("av-column-min-height"),n=parseInt(s["column-min-pc"],10),t=null,r=0,o=0;if(isNaN(n)||n==0){return};t=a.closest(".avia-section");if(!t.length){t=a.closest(".av-gridrow-cell")};if(!t.length){t=a.closest(".av-layout-tab")};r=t.length?t.outerHeight():e.height();o=r*(n/100.0);if(!s["column-equal-height"]){a.css("min-height",o+"px");a.css("height","auto")}else{a.css("height",o+"px")};setTimeout(function(){e.trigger("av-height-change")},100)};this.each(function(t){var n=i(this),o=n.data("av-column-min-height");if("object"!=typeof o){return this};e.on("debouncedresize",a.bind(n));a.call(n);return this})};i.fn.avia_video_section=function(){if(!this.length)return;var o=this.length,e="",s=i(window),t=i("head").first(),a=i("<style type='text/css' id='av-section-height'></style>").appendTo(t),n=function(n,s){if(s===0){e=""};var c="",r="#"+n.attr("id"),l=n.height(),u=n.width(),d=n.data("sectionVideoRatio").split(":"),v=d[0],f=d[1],h=(l/f)*v,m=(u/v)*f;if(u/l<v/f){c+="#top "+r+" .av-section-video-bg iframe, #top "+r+" .av-section-video-bg embed, #top "+r+" .av-section-video-bg object, #top "+r+" .av-section-video-bg video{width:"+h+"px; left: -"+(h-u)/2+"px;}\n"}else{c+="#top "+r+" .av-section-video-bg iframe, #top "+r+" .av-section-video-bg embed, #top "+r+" .av-section-video-bg object, #top "+r+" .av-section-video-bg video{height:"+m+"px; top: -"+(m-l)/2+"px;}\n"};e=e+c;if(o==s+1){try{a.text(e)}catch(p){a.remove();a=i("<style type='text/css' id='av-section-height'>"+e+"</style>").appendTo(t)}}};return this.each(function(e){var a=i(this);s.on("debouncedresize",function(){n(a,e)});n(a,e)})};i.fn.avia_link_column=function(){return this.each(function(){i(this).on("click",function(e){if("undefined"!==typeof e.target&&"undefined"!==typeof e.target.href){return};var t=i(this),a=t.data("link-column-url"),o=t.data("link-column-target"),r=window.location.hostname+window.location.pathname;if("undefined"===typeof a||"string"!==typeof a){return};if("undefined"!==typeof o||"_blank"==o){var n=document.createElement("a");n.href=a;n.target="_blank";n.rel="noopener noreferrer";n.click();return!1}else{if(t.hasClass("av-cell-link")||t.hasClass("av-column-link")){var s=t.hasClass("av-cell-link")?t.prev("a.av-screen-reader-only").first():t.find("a.av-screen-reader-only").first();a=a.trim();if((0==a.indexOf("#"))||((a.indexOf(r)>=0)&&(a.indexOf("#")>0))){s.trigger("click");if("undefined"==typeof o||"_blank"!=o){window.location.href=a};return}};window.location.href=a};e.preventDefault();return})})};i.fn.avia_waypoints=function(e){if(!i("html").is(".avia_transform")){return};var a={offset:"bottom-in-view",triggerOnce:!0},t=i.extend({},a,e),n=i.avia_utilities.isMobile;return this.each(function(){var e=i(this),a=e.hasClass("animate-all-devices"),o=i("body").hasClass("avia-mobile-no-animations");setTimeout(function(){if(n&&o&&!a){e.addClass("avia_start_animation").trigger("avia_start_animation")}else{e.waypoint(function(e){var t=i(this.element),a=t.parents(".av-animation-delay-container").eq(0);if(a.length){t.addClass("avia_start_animation_when_active").trigger("avia_start_animation_when_active")};if(!a.length||(a.length&&a.is(".__av_init_open"))||(a.length&&a.is(".av-active-tab-content"))){t.addClass("avia_start_animation").trigger("avia_start_animation")}},t)}},100)})};var t=i.event,e,a;e=t.special.debouncedresize={setup:function(){i(this).on("resize",e.handler)},teardown:function(){i(this).off("resize",e.handler)},handler:function(i,n){var s=this,r=arguments,o=function(){i.type="debouncedresize";t.dispatch.apply(s,r)};if(a){clearTimeout(a)};n?o():a=setTimeout(o,e.threshold)},threshold:150}})(jQuery);(function(i){"use strict";i.avia_utilities=i.avia_utilities||{};i.avia_utilities.loading=function(e,t){var a={active:!1,show:function(){if(a.active===!1){a.active=!0;a.loading_item.css({display:"block",opacity:0})};a.loading_item.stop().animate({opacity:1})},hide:function(){if(typeof t==="undefined"){t=600};a.loading_item.stop().delay(t).animate({opacity:0},function(){a.loading_item.css({display:"none"});a.active=!1})},attach:function(){if(typeof e==="undefined"){e="body"};a.loading_item=i("<div class=\"avia_loading_icon\"><div class=\"av-siteloader\"></div></div>").css({display:"none"}).appendTo(e)}};a.attach();return a};i.avia_utilities.playpause=function(e,t){var a={active:!1,to1:"",to2:"",set:function(i){a.loading_item.removeClass("av-play av-pause");a.to1=setTimeout(function(){a.loading_item.addClass("av-"+i)},10);a.to2=setTimeout(function(){a.loading_item.removeClass("av-"+i)},1500)},attach:function(){if(typeof e==="undefined"){e="body"};a.loading_item=i("<div class=\"avia_playpause_icon\"></div>").css({display:"none"}).appendTo(e)}};a.attach();return a};i.avia_utilities.preload=function(e){new i.AviaPreloader(e)};i.AviaPreloader=function(e){this.win=i(window);this.defaults={container:"body",maxLoops:10,trigger_single:!0,single_callback:function(){},global_callback:function(){}};this.options=i.extend({},this.defaults,e);this.preload_images=0;this.load_images()};i.AviaPreloader.prototype={load_images:function(){var e=this;if(typeof e.options.container==="string"){e.options.container=i(e.options.container)};e.options.container.each(function(){var a=i(this);a.images=a.find("img");a.allImages=a.images;e.preload_images+=a.images.length;setTimeout(function(){e.checkImage(a)},10)})},checkImage:function(i){var e=this;i.images.each(function(){if(this.complete===!0){i.images=i.images.not(this);e.preload_images-=1}});if(i.images.length&&e.options.maxLoops>=0){e.options.maxLoops-=1;setTimeout(function(){e.checkImage(i)},500)}else{e.preload_images=e.preload_images-i.images.length;e.trigger_loaded(i)}},trigger_loaded:function(i){var e=this;if(e.options.trigger_single!==!1){e.win.trigger("avia_images_loaded_single",[i]);e.options.single_callback.call(i)};if(e.preload_images===0){e.win.trigger("avia_images_loaded");e.options.global_callback.call()}}};i.avia_utilities.css_easings={linear:"linear",swing:"ease-in-out",bounce:"cubic-bezier(0.0, 0.35, .5, 1.3)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.04)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.55)",easeInOutBounce:"cubic-bezier(0.580, -0.365, 0.490, 1.365)",easeOutBounce:"cubic-bezier(0.760, 0.085, 0.490, 1.365)"};i.avia_utilities.supported={};i.avia_utilities.supports=(function(){var e=document.createElement("div"),i=["Khtml","Ms","Moz","Webkit"];return function(a,t){if(e.style[a]!==undefined){return""};if(t!==undefined){i=t};a=a.replace(/^[a-z]/,function(i){return i.toUpperCase()});var n=i.length;while(n--){if(e.style[i[n]+a]!==undefined){return"-"+i[n].toLowerCase()+"-"}};return!1}}());i.fn.avia_animate=function(e,a,t,n){if(typeof a==="function"){n=a;a=!1};if(typeof t==="function"){n=t;t=!1};if(typeof a==="string"){t=a;a=!1};if(n===undefined||n===!1){n=function(){}};if(t===undefined||t===!1){t="easeInQuad"};if(a===undefined||a===!1){a=400};if(i.avia_utilities.supported.transition===undefined){i.avia_utilities.supported.transition=i.avia_utilities.supports("transition")};if(i.avia_utilities.supported.transition!==!1){var c=i.avia_utilities.supported.transition+"transition",s={},l={},u=document.body.style,o=(u.WebkitTransition!==undefined)?"webkitTransitionEnd":(u.OTransition!==undefined)?"oTransitionEnd":"transitionend";t=i.avia_utilities.css_easings[t];s[c]="all "+(a/1000)+"s "+t;o=o+".avia_animate";for(var r in e){if(e.hasOwnProperty(r)){l[r]=e[r]}};e=l;this.each(function(){var t=i(this),v=!1,r,u;for(r in e){if(e.hasOwnProperty(r)){u=t.css(r);if(e[r]!=u&&e[r]!=u.replace(/px|%/g,"")){v=!0;break}}};if(v){if(!(i.avia_utilities.supported.transition+"transform" in e)){e[i.avia_utilities.supported.transition+"transform"]="translateZ(0)"};var l=!1;t.on(o,function(i){if(i.target!=i.currentTarget)return!1;if(l==!0)return!1;l=!0;s[c]="none";t.off(o);t.css(s);setTimeout(function(){n.call(t)})});setTimeout(function(){if(!l&&!avia_is_mobile&&i("html").is(".avia-safari")){t.trigger(o);i.avia_utilities.log("Safari Fallback "+o+" trigger")}},a+100);setTimeout(function(){t.css(s)},10);setTimeout(function(){t.css(e)},20)}else{setTimeout(function(){n.call(t)})}})}else{this.animate(e,a,t,n)};return this}})(jQuery);(function(i){"use strict";i.fn.avia_keyboard_controls=function(e){var t={37:".prev-slide",39:".next-slide"},a={mousebind:function(i){i.on("mouseenter",function(){i.mouseover=!0}).on("mouseleave",function(){i.mouseover=!1})},keybind:function(e){i(document).on("keydown",function(i){if(e.mouseover&&typeof e.options[i.keyCode]!=="undefined"){var a;if(typeof e.options[i.keyCode]==="string"){a=e.find(e.options[i.keyCode])}else{a=e.options[i.keyCode]};if(a.length){a.trigger("click",["keypress"]);return!1}}})}};return this.each(function(){var n=i(this);n.options=i.extend({},t,e);n.mouseover=!1;a.mousebind(n);a.keybind(n)})};i.fn.avia_swipe_trigger=function(e){var r=i(window),t=i.avia_utilities.isMobile,n=i.avia_utilities.isTouchDevice,a=i("body"),o={prev:".prev-slide",next:".next-slide",delay_trigger:!1,event:{prev:"click",next:"click"},beforeTrigger:null,afterTrigger:null,afterDelayedTrigger:null},s={activate_touch_control:function(i){var e,t,n;i.touchPos={};i.hasMoved=!1;i.on("touchstart",function(e){i.touchPos.X=e.originalEvent.touches[0].clientX;i.touchPos.Y=e.originalEvent.touches[0].clientY});i.on("touchend",function(e){i.touchPos={};if(i.hasMoved){e.preventDefault()};i.hasMoved=!1});i.on("touchmove",function(o){if(a.hasClass("avia-swipe-executed")){return};if(!i.touchPos.X){i.touchPos.X=o.originalEvent.touches[0].clientX;i.touchPos.Y=o.originalEvent.touches[0].clientY}else{t=o.originalEvent.touches[0].clientX-i.touchPos.X;n=o.originalEvent.touches[0].clientY-i.touchPos.Y;if(Math.abs(t)>Math.abs(n)){if(i.touchPos!==o.originalEvent.touches[0].clientX){if(Math.abs(t)>50){e=t>0?"prev":"next";let element=i.options[e];if(element==null){return};if(typeof i.options.beforeTrigger=="function"){i.options.beforeTrigger(i,e)};if(typeof i.options[e]==="string"){i.find(i.options[e]).trigger(i.options.event[e],["swipe"])}else{if(typeof element.jquery=="string"){element.trigger(i.options.event[e],["swipe"])}else{let action=i.options.event[e];if(action.indexOf("native_")<0){element.dispatchEvent(new Event(action))}else{let func_action=action.replace("native_","");if(typeof element[func_action]=="function"){if(i.options.delay_trigger){setTimeout(function(){element[func_action]();if(typeof i.options.afterDelayedTrigger=="function"){i.options.afterDelayedTrigger(i,e)}},50)}else{element[func_action]()}}else{element.dispatchEvent(new Event(action))}}}};if(typeof i.options.afterTrigger=="function"){i.options.afterTrigger(i,e)};o.preventDefault();o.stopImmediatePropagation();a.addClass("avia-swipe-executed");setTimeout(function(){a.removeClass("avia-swipe-executed")},300);i.hasMoved=!0;i.touchPos={};return!1}}}}})}};return this.each(function(){if(t||n){var a=i(this);a.options=i.extend({},o,e);s.activate_touch_control(a)}})}}(jQuery));(function(i){if(typeof i.easing!=="undefined"){i.easing.jswing=i.easing.swing};var e=Math.pow,n=Math.sqrt,a=Math.sin,c=Math.cos,t=Math.PI,o=1.70158,s=o*1.525,l=o+1,u=(2*t)/3,v=(2*t)/4.5;function r(i){var a=7.5625,e=2.75;if(i<1/e){return a*i*i}else if(i<2/e){return a*(i-=(1.5/e))*i+.75}else if(i<2.5/e){return a*(i-=(2.25/e))*i+.9375}else{return a*(i-=(2.625/e))*i+.984375}};i.extend(i.easing,{def:"easeOutQuad",swing:function(e){return i.easing[i.easing.def](e)},easeInQuad:function(i){return i*i},easeOutQuad:function(i){return 1-(1-i)*(1-i)},easeInOutQuad:function(i){return i<0.5?2*i*i:1-e(-2*i+2,2)/2},easeInCubic:function(i){return i*i*i},easeOutCubic:function(i){return 1-e(1-i,3)},easeInOutCubic:function(i){return i<0.5?4*i*i*i:1-e(-2*i+2,3)/2},easeInQuart:function(i){return i*i*i*i},easeOutQuart:function(i){return 1-e(1-i,4)},easeInOutQuart:function(i){return i<0.5?8*i*i*i*i:1-e(-2*i+2,4)/2},easeInQuint:function(i){return i*i*i*i*i},easeOutQuint:function(i){return 1-e(1-i,5)},easeInOutQuint:function(i){return i<0.5?16*i*i*i*i*i:1-e(-2*i+2,5)/2},easeInSine:function(i){return 1-c(i*t/2)},easeOutSine:function(i){return a(i*t/2)},easeInOutSine:function(i){return-(c(t*i)-1)/2},easeInExpo:function(i){return i===0?0:e(2,10*i-10)},easeOutExpo:function(i){return i===1?1:1-e(2,-10*i)},easeInOutExpo:function(i){return i===0?0:i===1?1:i<0.5?e(2,20*i-10)/2:(2-e(2,-20*i+10))/2},easeInCirc:function(i){return 1-n(1-e(i,2))},easeOutCirc:function(i){return n(1-e(i-1,2))},easeInOutCirc:function(i){return i<0.5?(1-n(1-e(2*i,2)))/2:(n(1-e(-2*i+2,2))+1)/2},easeInElastic:function(i){return i===0?0:i===1?1:-e(2,10*i-10)*a((i*10-10.75)*u)},easeOutElastic:function(i){return i===0?0:i===1?1:e(2,-10*i)*a((i*10-0.75)*u)+1},easeInOutElastic:function(i){return i===0?0:i===1?1:i<0.5?-(e(2,20*i-10)*a((20*i-11.125)*v))/2:e(2,-20*i+10)*a((20*i-11.125)*v)/2+1},easeInBack:function(i){return l*i*i*i-o*i*i},easeOutBack:function(i){return 1+l*e(i-1,3)+o*e(i-1,2)},easeInOutBack:function(i){return i<0.5?(e(2*i,2)*((s+1)*2*i-s))/2:(e(2*i-2,2)*((s+1)*(i*2-2)+s)+2)/2},easeInBounce:function(i){return 1-r(1-i)},easeOutBounce:r,easeInOutBounce:function(i){return i<0.5?(1-r(1-2*i))/2:(1+r(2*i-1))/2}})}(jQuery));(function(e){'use strict';e.fn.avia_sc_gallery=function(a){return this.each(function(){var t=e(this),r=t.find('img'),a=t.find('.avia-gallery-big'),s=t.find('.avia-slideshow-arrows .prev-slide'),n=t.find('.avia-slideshow-arrows .next-slide'),i=t.find('.avia-gallery-thumb a'),o=t.hasClass('no-hover-effect');if(n.length){t.avia_swipe_trigger({prev:'.prev-slide',next:'.next-slide'})};t.on('avia_start_animation',function(){r.each(function(a){var t=e(this);setTimeout(function(){t.addClass('avia_start_animation')},(a*110))})});if(t.hasClass('deactivate_avia_lazyload')){t.trigger('avia_start_animation')};if(a.length){t.on('mouseenter','.avia-gallery-thumb a',function(){var i=e(this),c=i.attr('data-prev-img'),r=a.find('img'),l=r.attr('src');if(o){if(!t.hasClass('av-force-img-change')){return}};t.removeClass('av-force-img-change');if(c==l){return};a.height(a.height());a.attr('data-onclick',i.attr('data-onclick'));a.attr('href',i.attr('href'));a.attr('title',i.attr('title'));if('undefined'==typeof i.data('srcset')){a.removeAttr('data-srcset');a.removeData('srcset')}else{a.data('srcset',i.data('srcset'));a.attr('data-srcset',i.data('srcset'))};if('undefined'==typeof i.data('sizes')){a.removeAttr('data-sizes');a.removeData('sizes')}else{a.data('sizes',i.data('sizes'));a.attr('data-sizes',i.data('sizes'))};var n=i.find('.big-prev-fake img').clone(!0);if(n.length==0){var s=new Image();s.src=c;n=e(s)};if(a.hasClass('avia-gallery-big-no-crop-thumb')){n.css({'height':'auto','width':'auto','max-height':'100%','max-width':'100%'})};a.stop().animate({opacity:0},function(){n.insertAfter(r);r.remove();a.animate({opacity:1})})});n.on('click',function(n){n.preventDefault();if(!a.length){return};let current=a[0].dataset.onclick,next_index=current;if(next_index>=i.length){next_index=0};t.addClass('av-force-img-change');e(i[next_index]).trigger('mouseenter')});s.on('click',function(n){n.preventDefault();if(!a.length){return};let current=a[0].dataset.onclick,prev_index=current-2;if(prev_index<0){prev_index=i.length-1};t.addClass('av-force-img-change');e(i[prev_index]).trigger('mouseenter')});a.on('click',function(a){a.preventDefault();var e=t.find('.avia-gallery-thumb a').eq(this.getAttribute('data-onclick')-1);if(e&&!e.hasClass('aviaopeninbrowser')){e.trigger('click')}else if(e){var i=e.attr('href'),n=e.hasClass('custom_link')?'noopener,noreferrer':'';if(e.hasClass('aviablank')&&i!=''){window.open(i,'_blank',n)}else if(i!=''){window.open(i,'_self',n)}};return!1});e(window).on('debouncedresize',function(){a.height('auto')})}})}}(jQuery));(function(i){'use strict';i.fn.avia_sc_iconlist=function(n){return this.each(function(){var n=i(this),t=n.find('>li');n.on('avia_start_animation',function(){t.each(function(n){var t=i(this);setTimeout(function(){t.addClass('avia_start_animation')},(n*350))})})})}}(jQuery));(function(i){'use strict';i.AviaSlider=function(s,t){var e=this;this.$win=i(window);this.$slider=i(t);this.isMobile=i.avia_utilities.isMobile;this.isTouchDevice=i.avia_utilities.isTouchDevice,this._prepareSlides(s);i.avia_utilities.preload({container:this.$slider,single_callback:function(){e._init(s)}})};i.AviaSlider.defaults={interval:5,autoplay:!1,autoplay_stopper:!1,loop_autoplay:'once',loop_manual:'manual-endless',stopinfiniteloop:!1,noNavigation:!1,animation:'slide',transitionSpeed:900,easing:'easeInOutQuart',wrapElement:'>ul',slideElement:'>li',hoverpause:!1,bg_slider:!1,show_slide_delay:0,fullfade:!1,keep_padding:!1,carousel:'no',carouselSlidesToShow:3,carouselSlidesToScroll:1,carouselResponsive:[]};i.AviaSlider.prototype={_init:function(s){this.options=this._setOptions(s);this.$sliderUl=this.$slider.find(this.options.wrapElement);this.$slides=this.$sliderUl.find(this.options.slideElement);this.slide_arrows=this.$slider.find('.avia-slideshow-arrows');this.gotoButtons=this.$slider.find('.avia-slideshow-dots a');this.permaCaption=this.$slider.find('>.av-slideshow-caption');this.itemsCount=this.$slides.length;this.current=0;this.currentCarousel=0;this.slideWidthCarousel='240';this.loopCount=0;this.isAnimating=!1;this.browserPrefix=i.avia_utilities.supports('transition');this.cssActive=this.browserPrefix!==!1?!0:!1;this.css3DActive=document.documentElement.className.indexOf('avia_transform3d')!==-1?!0:!1;if(this.options.bg_slider==!0){this.imageUrls=[];this.loader=i.avia_utilities.loading(this.$slider);this._bgPreloadImages()}else{this._kickOff()};if(this.options.carousel==='yes'){this.options.animation='carouselslide'}},_setOptions:function(s){var o=this.$slider.data('slideshow-options');if('object'==typeof o){var t=i.extend({},i.AviaSlider.defaults,s,o);if('undefined'!=typeof t.transition_speed){t.transitionSpeed=t.transition_speed};return t};var t=i.extend(!0,{},i.AviaSlider.defaults,s),a=this.$slider.data();for(var e in a){var n=('transition_speed'!=e)?e:'transitionSpeed';if(typeof a[e]==='string'||typeof a[e]==='number'||typeof a[e]==='boolean'){t[n]=a[e]};if('undefined'!=typeof t.autoplay_stopper&&t.autoplay_stopper==1){t.autoplay_stopper=!0}};return t},_prepareSlides:function(s){var t=this.$slider.find('.avia-multi-slideshow-button');if(t.length){t.on('click',function(s){s.stopPropagation();var t=i.avia_utilities.loading(i(this));t.show()})};if(this.isMobile){var e=this.$slider.find('.av-mobile-fallback-image');e.each(function(){var t=i(this).removeClass('av-video-slide').data({'avia_video_events':!0,'video-ratio':0}),n=t.data('mobile-img'),e=t.data('fallback-link'),a=t.find('.avia-slide-wrap');t.find('.av-click-overlay, .mejs-mediaelement, .mejs-container').remove();if(!n){i('<p class="av-fallback-message"><span>Please set a mobile device fallback image for this video in your wordpress backend</span></p>').appendTo(a)};if(s&&s.bg_slider){t.data('img-url',n);if(e!=''){if(a.is('a')){a.attr('href',e)}else{a.replaceWith(function(){var s=i(this);return i('<a>').attr({'data-rel':s.data('rel'),'class':s.attr('class'),'href':e}).append(i(this).contents())});a=t.find('.avia-slide-wrap')};if(i.fn.avia_activate_lightbox){t.parents('#main').avia_activate_lightbox()}}}else{var o='<img src="'+n+'" alt="" title="" />',l=!1;if('string'==typeof e&&e.trim()!=''){if(a.is('a')){a.attr('href',e)}else{var r=e.match(/\.(jpg|jpeg|gif|png)$/i)!=null?' rel="lightbox" ':'';o='<a href="'+e.trim()+'"'+r+'>'+o+'</a>'};l=!0};t.find('.avia-slide-wrap').append(o);if(l&&i.fn.avia_activate_lightbox){t.parents('#main').avia_activate_lightbox()}}})};if(i('html').is('.pointer-device-fine')){if(i('body').is('.avia-slider-video-controls-fix-support')){avia_slider_video_controls_fix(this)}}},_bgPreloadImages:function(i){this._getImageURLS();this._preloadSingle(0,function(){this._kickOff();this._preloadNext(1)})},_getImageURLS:function(){var s=this;this.$slides.each(function(t){s.imageUrls[t]=[];s.imageUrls[t].url=i(this).data('img-url');if(typeof s.imageUrls[t].url=='string'){s.imageUrls[t].status=!1}else{s.imageUrls[t].status=!0}})},_preloadSingle:function(s,t){var e=this,a=new Image();if(typeof e.imageUrls[s].url=='string'){i(a).on('load error',function(){e.imageUrls[s].status=!0;e.$slides.eq(s).css('background-image','url('+e.imageUrls[s].url+')');if(typeof t=='function'){t.apply(e,[a,s])}});if(e.imageUrls[s].url!=''){a.src=e.imageUrls[s].url}else{i(a).trigger('error')}}else{if(typeof t=='function'){t.apply(e,[a,s])}}},_preloadNext:function(i){if(typeof this.imageUrls[i]!='undefined'){this._preloadSingle(i,function(){this._preloadNext(i+1)})}},_bindEvents:function(){var t=this,s=i(window);this.$slider.on('click','.next-slide',this.next.bind(this));this.$slider.on('click','.prev-slide',this.previous.bind(this));this.$slider.on('click','.goto-slide',this.go2.bind(this));if(this.options.hoverpause){this.$slider.on('mouseenter',this.pause.bind(this));this.$slider.on('mouseleave',this.resume.bind(this))};if(this.permaCaption.length){this.permaCaption.on('click',this._routePermaCaptionClick);this.$slider.on('avia_slider_first_slide avia_slider_last_slide avia_slider_navigate_slide',this._setPermaCaptionPointer.bind(this))};if(this.options.stopinfiniteloop&&this.options.autoplay){if(this.options.stopinfiniteloop=='last'){this.$slider.on('avia_slider_last_slide',this._stopSlideshow.bind(this))}else if(this.options.stopinfiniteloop=='first'){this.$slider.on('avia_slider_first_slide',this._stopSlideshow.bind(this))}};if(this.options.carousel==='yes'){if(!this.isMobile){s.on('debouncedresize',this._buildCarousel.bind(this))}}else{s.on('debouncedresize.aviaSlider',this._setSize.bind(this))};if(!this.options.noNavigation){if(!this.isMobile){this.$slider.avia_keyboard_controls()};if(this.isMobile||this.isTouchDevice){this.$slider.avia_swipe_trigger()}};t._attach_video_events()},_kickOff:function(){var s=this,t=s.$slides.eq(0),e=t.data('video-ratio');s._bindEvents();s._set_slide_arrows_visibility();this.$slider.removeClass('av-default-height-applied');if(e){s._setSize(!0)}else{if(this.options.keep_padding!=!0){s.$sliderUl.css('padding',0);s.$win.trigger('av-height-change')}};s._setCenter();if(this.options.carousel==='no'){t.addClass('next-active-slide');t.css({visibility:'visible',opacity:0}).avia_animate({opacity:1},function(){var t=i(this).addClass('active-slide');if(s.permaCaption.length){s.permaCaption.addClass('active-slide')}})};s.$slider.trigger('avia_slider_first_slide');if(s.options.autoplay){s._startSlideshow()};if(s.options.carousel==='yes'){s._buildCarousel()};s.$slider.trigger('_kickOff')},_set_slide_arrows_visibility:function(){if(this.options.carousel=='yes'){if(0==this.currentCarousel){this.slide_arrows.removeClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}else if(this.currentCarousel+this.options.carouselSlidesToShow>=this.itemsCount){this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.removeClass('av-visible-next')}else{this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')};return};if('endless'==this.options.loop_autoplay||'manual-endless'==this.options.loop_manual){this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}else if(0==this.current){this.slide_arrows.removeClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}else if(this.current+1>=this.itemsCount){this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.removeClass('av-visible-next')}else{this.slide_arrows.addClass('av-visible-prev');this.slide_arrows.addClass('av-visible-next')}},_buildCarousel:function(){var r=this,a=this.$slider.outerWidth(),s=parseInt(a/this.options.carouselSlidesToShow),l=window.innerWidth||i(window).width();if(this.options.carouselResponsive&&this.options.carouselResponsive.length&&this.options.carouselResponsive!==null){for(var e in this.options.carouselResponsive){var n=this.options.carouselResponsive[e].breakpoint,t=this.options.carouselResponsive[e].settings.carouselSlidesToShow;if(n>=l){s=parseInt(a/t);this.options.carouselSlidesToShow=t}}};this.slideWidthCarousel=s;this.$slides.each(function(t){i(this).width(s)});var o=s*this.itemsCount;this.$sliderUl.width(o).css('transform','translateX(0px)');if(this.options.carouselSlidesToShow>=this.itemsCount){this.$slider.find('.av-timeline-nav').hide()}},_navigate:function(i,s){if(this.isAnimating||this.itemsCount<2 ||!this.$slider.is(':visible')){return!1};this.isAnimating=!0;this.prev=this.current;if(s!==undefined){this.current=s;i=this.current>this.prev?'next':'prev'}else if(i==='next'){this.current=this.current<this.itemsCount-1?this.current+1:0;if(this.current===0&&this.options.autoplay_stopper&&this.options.autoplay){this.isAnimating=!1;this.current=this.prev;this._stopSlideshow();return!1};if(0===this.current){if('endless'!=this.options.loop_autoplay&&'manual-endless'!=this.options.loop_manual){this.isAnimating=!1;this.current=this.prev;return!1}}}else if(i==='prev'){this.current=this.current>0?this.current-1:this.itemsCount-1;if(this.itemsCount-1===this.current){if('endless'!=this.options.loop_autoplay&&'manual-endless'!=this.options.loop_manual){this.isAnimating=!1;this.current=this.prev;return!1}}};this.gotoButtons.removeClass('active').eq(this.current).addClass('active');this._set_slide_arrows_visibility();if(this.options.carousel==='no'){this._setSize()};if(this.options.bg_slider==!0){if(this.imageUrls[this.current].status==!0){this['_'+this.options.animation].call(this,i)}else{this.loader.show();this._preloadSingle(this.current,function(){this['_'+this.options.animation].call(this,i);this.loader.hide()})}}else{this['_'+this.options.animation].call(this,i)};if(this.current==0){this.loopCount++;this.$slider.trigger('avia_slider_first_slide')}else if(this.current==this.itemsCount-1){this.$slider.trigger('avia_slider_last_slide')}else{this.$slider.trigger('avia_slider_navigate_slide')}},_setSize:function(i){if(this.options.bg_slider==!0){return};var n=this,s=this.$slides.eq(this.current),r=s.find('img'),a=Math.floor(this.$sliderUl.height()),o=s.data('video-ratio'),t=o?this.$sliderUl.width()/o:Math.floor(s.height()),e=s.data('video-height'),l=s.data('video-toppos');this.$sliderUl.height(a).css('padding',0);if(t!=a){if(i==!0){this.$sliderUl.css({height:t});this.$win.trigger('av-height-change')}else{this.$sliderUl.avia_animate({height:t},function(){n.$win.trigger('av-height-change')})}};this._setCenter();if(e&&e!='set'){s.find('iframe, embed, video, object, .av_youtube_frame').css({height:e+'%',top:l+'%'});s.data('video-height','set')}},_setCenter:function(){var e=this.$slides.eq(this.current),o=e.find('img'),i=parseInt(o.css('min-width'),10),s=e.width(),a=e.find('.av-slideshow-caption'),t=((s-i)/2);if(a.length){if(a.is('.caption_left')){t=((s-i)/1.5)}else if(a.is('.caption_right')){t=((s-i)/2.5)}};if(s>=i){t=0};o.css({left:t})},_carouselmove:function(){var i=this.slideWidthCarousel*this.currentCarousel;this.$sliderUl.css('transform','translateX(-'+i+'px)')},_carouselslide:function(i){console.log('_carouselslide:',i,this.currentCarousel);if(i==='next'){if(this.options.carouselSlidesToShow+this.currentCarousel<this.itemsCount){this.currentCarousel++;this._carouselmove()}}else if(i==='prev'){if(this.currentCarousel>0){this.currentCarousel--;this._carouselmove()}};this._set_slide_arrows_visibility();this.isAnimating=!1},_slide:function(i){var l=!1,h=l==!0?2:1,r=this.$slider.width(),d=i==='next'?-1:1,s=this.browserPrefix+'transform',a={},t={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){s=this.browserPrefix+'transform';if(this.css3DActive){a[s]='translate3d('+o+'px, 0, 0)';t[s]='translate3d('+n+'px, 0, 0)';e[s]='translate3d(0,0,0)'}else{a[s]='translate('+o+'px,0)';t[s]='translate('+n+'px,0)';e[s]='translate(0,0)'}}else{a.left=o;t.left=n;e.left=0};if(l){t['z-index']='1';e['z-index']='2'};this._slide_animate(a,t,e)},_slide_up:function(i){var l=!0,h=l==!0?2:1,r=this.$slider.height(),d=i==='next'?-1:1,s=this.browserPrefix+'transform',a={},t={},e={},o=(r*d*-1),n=(r*d)/h;if(this.cssActive){s=this.browserPrefix+'transform';if(this.css3DActive){a[s]='translate3d( 0,'+o+'px, 0)';t[s]='translate3d( 0,'+n+'px, 0)';e[s]='translate3d(0,0,0)'}else{a[s]='translate( 0,'+o+'px)';t[s]='translate( 0,'+n+'px)';e[s]='translate(0,0)'}}else{a.top=o;t.top=n;e.top=0};if(l){t['z-index']='1';e['z-index']='2'};this._slide_animate(a,t,e)},_slide_animate:function(i,e,a){var t=this,s=this.$slides.eq(this.current),o=this.$slides.eq(this.prev);o.trigger('pause');if(!s.data('disableAutoplay')){if(s.hasClass('av-video-lazyload')&&!s.hasClass('av-video-lazyload-complete')){s.find('.av-click-to-play-overlay').trigger('click')}else{s.trigger('play')}};s.css({visibility:'visible',zIndex:4,opacity:1,left:0,top:0});s.css(i);o.avia_animate(e,this.options.transitionSpeed,this.options.easing);var n=function(){t.isAnimating=!1;s.addClass('active-slide');o.css({visibility:'hidden'}).removeClass('active-slide next-active-slide');t.$slider.trigger('avia-transition-done')};if(t.options.show_slide_delay>0){setTimeout(function(){s.addClass('next-active-slide');s.avia_animate(a,t.options.transitionSpeed,t.options.easing,n)},t.options.show_slide_delay)}else{s.addClass('next-active-slide');s.avia_animate(a,t.options.transitionSpeed,t.options.easing,n)}},_fade:function(){var s=this,i=this.$slides.eq(this.current),t=this.$slides.eq(this.prev),e={visibility:'visible',zIndex:3,opacity:0},a=function(){s.isAnimating=!1;i.addClass('active-slide');t.css({visibility:'hidden',zIndex:2}).removeClass('active-slide next-active-slide');s.$slider.trigger('avia-transition-done')};t.trigger('pause');if(!i.data('disableAutoplay')){if(i.hasClass('av-video-lazyload')&&!i.hasClass('av-video-lazyload-complete')){i.find('.av-click-to-play-overlay').trigger('click')}else{i.trigger('play')}};i.addClass('next-active-slide');if(s.options.fullfade==!0){t.avia_animate({opacity:0},200,'linear',function(){i.css(e).avia_animate({opacity:1},s.options.transitionSpeed,'linear',a)})}else{if(s.current===0){t.avia_animate({opacity:0},s.options.transitionSpeed/2,'linear');i.css(e).avia_animate({opacity:1},s.options.transitionSpeed/2,'linear',a)}else{i.css(e).avia_animate({opacity:1},s.options.transitionSpeed/2,'linear',function(){t.avia_animate({opacity:0},200,'linear',a)})}}},_attach_video_events:function(){var s=this,t=i('html');s.$slides.each(function(t){var n=i(this),r=n.find('.caption_fullwidth, .av-click-overlay'),d=n.find('.mejs-mediaelement'),l=n.hasClass('av-video-lazyload')?!0:!1;if(n.data('avia_video_events')!=!0){n.data('avia_video_events',!0);n.on('av-video-events-bound',{slide:n,wrap:d,iteration:t,self:s,lazyload:l},e);n.on('av-video-ended',{slide:n,self:s},a);n.on('av-video-play-executed',function(){setTimeout(function(){s.pause()},100)});r.on('click',{slide:n},o);if(n.is('.av-video-events-bound')){n.trigger('av-video-events-bound')};if(l&&t===0&&!n.data('disableAutoplay')){n.find('.av-click-to-play-overlay').trigger('click')}}});function e(i){if(i.data.iteration===0){i.data.wrap.css('opacity',0);if(!i.data.self.isMobile&&!i.data.slide.data('disableAutoplay')){i.data.slide.trigger('play')}; ;setTimeout(function(){i.data.wrap.avia_animate({opacity:1},400)},50)}else if(t.is('.avia-msie')&&!i.data.slide.is('.av-video-service-html5')){if(!i.data.slide.data('disableAutoplay')){i.data.slide.trigger('play')}};if(i.data.slide.is('.av-video-service-html5')&&i.data.iteration!==0){i.data.slide.trigger('pause')};if(i.data.lazyload){i.data.slide.addClass('av-video-lazyload-complete');i.data.slide.trigger('play')}};function a(i){if(!i.data.slide.is('.av-single-slide')&&!i.data.slide.is('.av-loop-video')){i.data.slide.trigger('reset');s._navigate('next');s.resume()};if(i.data.slide.is('.av-loop-video')&&i.data.slide.is('.av-video-service-html5')){if(t.is('.avia-safari-8')){setTimeout(function(){i.data.slide.trigger('play')},1)}}};function o(i){if(i.target.tagName!='A'){i.data.slide.trigger('toggle')}}},_timer:function(i,s,o){var t=this,e,a=s;t.timerId=0;this.pause=function(){window.clearTimeout(t.timerId);a-=new Date()-e};this.resume=function(){e=new Date();t.timerId=window.setTimeout(i,a)};this.destroy=function(){window.clearTimeout(t.timerId)};this.resume(!0)},_startSlideshow:function(){var i=this;this.isPlaying=!0;this.slideshow=new this._timer(function(){i._navigate('next');if(i.options.autoplay){i._startSlideshow()}},(this.options.interval*1000))},_stopSlideshow:function(){if(this.options.autoplay){this.slideshow.destroy();this.isPlaying=!1;this.options.autoplay=!1};this.options.autoplay=!1;this.options.loop_autoplay='once';this.$slider.removeClass('av-slideshow-autoplay').addClass('av-slideshow-manual');this.$slider.removeClass('av-loop-endless').addClass('av-loop-once')},_setPermaCaptionPointer:function(s){if(!this.permaCaption.length){return};var t=i(this.$slides[this.current]).find('a').length;this.permaCaption.css('cursor',t?'pointer':'default')},_routePermaCaptionClick:function(s){var t=i(this).siblings('.avia-slideshow-inner').find('>.active-slide a');if(t.length){s.preventDefault();t[0].click()}},next:function(i){i.preventDefault();this._stopSlideshow();this._navigate('next')},previous:function(i){i.preventDefault();this._stopSlideshow();this._navigate('prev')},go2:function(i){if(isNaN(i)){i.preventDefault();i=i.currentTarget.hash.replace('#','')};i-=1;if(i===this.current||i>=this.itemsCount||i<0){return!1};this._stopSlideshow();this._navigate(!1,i)},play:function(){if(!this.isPlaying){this.isPlaying=!0;this._navigate('next');this.options.autoplay=!0;this._startSlideshow()}},pause:function(){if(this.isPlaying){this.slideshow.pause()}},resume:function(){if(this.isPlaying){this.slideshow.resume()}},destroy:function(i){this.slideshow.destroy(i)}};i.fn.aviaSlider=function(s){return this.each(function(){var t=i.data(this,'aviaSlider');if(!t){t=i.data(this,'aviaSlider',new i.AviaSlider(s,this))}})}})(jQuery);(function(e){'use strict';e.AviaVideoAPI=function(i,t,o){this.videoElement=t;this.$video=e(t);this.$option_container=o?e(o):this.$video;this.load_btn=this.$option_container.find('.av-click-to-play-overlay');this.video_wrapper=this.$video.parents('ul').eq(0);this.lazy_load=this.video_wrapper.hasClass('av-show-video-on-click')?!0:!1;this.isMobile=e.avia_utilities.isMobile;this.fallback=this.isMobile?this.$option_container.is('.av-mobile-fallback-image'):!1;if(this.fallback){return};this._init(i)};e.AviaVideoAPI.defaults={loop:!1,mute:!1,controls:!1,events:'play pause mute unmute loop toggle reset unload'};e.AviaVideoAPI.apiFiles={youtube:{loaded:!1,src:'https://www.youtube.com/iframe_api'}};e.AviaVideoAPI.players={};e.AviaVideoAPI.prototype={_init:function(i){this.options=this._setOptions(i);this.type=this._getPlayerType();this.player=!1;this._bind_player();this.eventsBound=!1;this.playing=!1;this.$option_container.addClass('av-video-paused');this.pp=e.avia_utilities.playpause(this.$option_container)},_setOptions:function(i){var n=e.extend(!0,{},e.AviaVideoAPI.defaults,i),o=this.$option_container.data(),t='';for(t in o){if(o.hasOwnProperty(t)&&(typeof o[t]==='string'||typeof o[t]==='number'||typeof o[t]==='boolean')){n[t]=o[t]}};return n},_getPlayerType:function(){var e=this.$video.get(0).src||this.$video.data('src');if(this.$video.is('video')){return'html5'};if(this.$video.is('.av_youtube_frame')){return'youtube'};if(e.indexOf('vimeo.com')!=-1){return'vimeo'};if(e.indexOf('youtube.com')!=-1){return'youtube'}},_bind_player:function(){var t=this,o=e('html').hasClass('av-cookies-needs-opt-in')||e('html').hasClass('av-cookies-can-opt-out'),i=!0,n=e('html').hasClass('av-cookies-user-silent-accept'),a='html5'==this.type;if(o&&!n&&!a){if(!document.cookie.match(/aviaCookieConsent/)||e('html').hasClass('av-cookies-session-refused')){i=!1}else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){i=!1}else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){i=!1}else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){i=!1}}};if(window.wp&&wp.hooks){i=wp.hooks.applyFilters('aviaCookieConsent_allow_continue',i)};let allow_class=i?'avia-video-cookie-allowed':'avia-video-cookie-not-allowed';e('html').addClass(allow_class);if(!i){this._use_external_link();return};if(this.lazy_load&&this.load_btn.length&&this.type!='html5'){this.$option_container.addClass('av-video-lazyload');this.load_btn.on('click',function(){t.load_btn.remove();t._setPlayer()})}else{this.lazy_load=!1;this._setPlayer()}},_use_external_link:function(){this.$option_container.addClass('av-video-lazyload');this.load_btn.on('click',function(i){if(i.originalEvent===undefined)return;var t=e(this).parents('.avia-slide-wrap').find('div[data-original_url]').data('original_url');if(t)window.open(t,'_blank')})},_setPlayer:function(){var t=this;switch(this.type){case'html5':this.player=this.$video.data('mediaelementplayer');if(!this.player){this.$video.data('mediaelementplayer',e.AviaVideoAPI.players[this.$video.attr('id').replace(/_html5/,'')]);this.player=this.$video.data('mediaelementplayer')};this._playerReady();break;case'vimeo':var i=document.createElement('iframe');var o=e(i);i.onload=function(){t.player=Froogaloop(i);t._playerReady();t.$option_container.trigger('av-video-loaded')};i.setAttribute('src',this.$video.data('src'));o.insertAfter(this.$video);this.$video.remove();this.$video=i;break;case'youtube':this._getAPI(this.type);e('body').on('av-youtube-iframe-api-loaded',function(){t._playerReady()});break}},_getAPI:function(i){if(e.AviaVideoAPI.apiFiles[i].loaded===!1){e.AviaVideoAPI.apiFiles[i].loaded=!0;var t=document.createElement('script'),o=document.getElementsByTagName('script')[0];t.src=e.AviaVideoAPI.apiFiles[i].src;o.parentNode.insertBefore(t,o)}},_playerReady:function(){var i=this;this.$option_container.on('av-video-loaded',function(){i._bindEvents()});switch(this.type){case'html5':this.$video.on('av-mediajs-loaded',function(){i.$option_container.trigger('av-video-loaded')});this.$video.on('av-mediajs-ended',function(){i.$option_container.trigger('av-video-ended')});break;case'vimeo':i.player.addEvent('ready',function(){i.$option_container.trigger('av-video-loaded');i.player.addEvent('finish',function(){i.$option_container.trigger('av-video-ended')})});break;case'youtube':var t=i.$video.data();if(i._supports_video()){t.html5=1};i.player=new YT.Player(i.$video.attr('id'),{videoId:t.videoid,height:i.$video.attr('height'),width:i.$video.attr('width'),playerVars:t,events:{'onReady':function(){i.$option_container.trigger('av-video-loaded')},'onError':function(i){e.avia_utilities.log('YOUTUBE ERROR:','error',i)},'onStateChange':function(e){if(e.data===YT.PlayerState.ENDED){var t=i.options.loop!=!1?'loop':'av-video-ended';i.$option_container.trigger(t)}}}});break};setTimeout(function(){if(i.eventsBound==!0||typeof i.eventsBound=='undefined'||i.type=='youtube'){return};e.avia_utilities.log('Fallback Video Trigger "'+i.type+'":','log',i);i.$option_container.trigger('av-video-loaded')},2000)},_bindEvents:function(){if(this.eventsBound==!0||typeof this.eventsBound=='undefined'){return};var e=this,i='unmute';this.eventsBound=!0;this.$option_container.on(this.options.events,function(i){e.api(i.type)});if(!e.isMobile){if(this.options.mute!=!1){i='mute'};if(this.options.loop!=!1){e.api('loop')};e.api(i)};setTimeout(function(){e.$option_container.trigger('av-video-events-bound').addClass('av-video-events-bound')},50)},_supports_video:function(){return!!document.createElement('video').canPlayType},api:function(e){if(this.isMobile&&!this.was_started())return;if(this.options.events.indexOf(e)===-1)return;this.$option_container.trigger('av-video-'+e+'-executed');if(typeof this['_'+this.type+'_'+e]=='function'){this['_'+this.type+'_'+e].call(this)};if(typeof this['_'+e]=='function'){this['_'+e].call(this)}},was_started:function(){if(!this.player)return!1;switch(this.type){case'html5':if(this.player.getCurrentTime()>0){return!0};break;case'vimeo':if(this.player.api('getCurrentTime')>0){return!0};break;case'youtube':if(this.player.getPlayerState()!==-1){return!0};break};return!1},_play:function(){this.playing=!0;this.$option_container.addClass('av-video-playing').removeClass('av-video-paused')},_pause:function(){this.playing=!1;this.$option_container.removeClass('av-video-playing').addClass('av-video-paused')},_loop:function(){this.options.loop=!0},_toggle:function(){var e=this.playing==!0?'pause':'play';this.api(e);this.pp.set(e)},_vimeo_play:function(){this.player.api('play')},_vimeo_pause:function(){this.player.api('pause')},_vimeo_mute:function(){this.player.api('setVolume',0)},_vimeo_unmute:function(){this.player.api('setVolume',0.7)},_vimeo_loop:function(){},_vimeo_reset:function(){this.player.api('seekTo',0)},_vimeo_unload:function(){this.player.api('unload')},_youtube_play:function(){this.player.playVideo()},_youtube_pause:function(){this.player.pauseVideo()},_youtube_mute:function(){this.player.mute()},_youtube_unmute:function(){this.player.unMute()},_youtube_loop:function(){if(this.playing==!0)this.player.seekTo(0)},_youtube_reset:function(){this.player.stopVideo()},_youtube_unload:function(){this.player.clearVideo()},_html5_play:function(){if(this.player){this.player.options.pauseOtherPlayers=!1;this.player.play()}},_html5_pause:function(){if(this.player)this.player.pause()},_html5_mute:function(){if(this.player)this.player.setMuted(!0)},_html5_unmute:function(){if(this.player)this.player.setVolume(0.7)},_html5_loop:function(){if(this.player)this.player.options.loop=!0},_html5_reset:function(){if(this.player)this.player.setCurrentTime(0)},_html5_unload:function(){this._html5_pause();this._html5_reset()}};e.fn.aviaVideoApi=function(i,t){return this.each(function(){var o=this;if(t){o=e(this).parents(t).get(0)};var n=e.data(o,'aviaVideoApi');if(!n){n=e.data(o,'aviaVideoApi',new e.AviaVideoAPI(i,this,o))}})}})(jQuery);window.onYouTubeIframeAPIReady=function(){jQuery('body').trigger('av-youtube-iframe-api-loaded')};var Froogaloop=(function(){function i(e){return new i.fn.init(e)};var e={},d=!1,t=!1,p=Array.prototype.slice,o='*';i.fn=i.prototype={element:null,init:function(e){if(typeof e==='string'){e=document.getElementById(e)};this.element=e;return this},api:function(e,i){if(!this.element||!e){return!1};var o=this,t=o.element,l=t.id!==''?t.id:null,u=!r(i)?i:null,a=r(i)?i:null;if(a){s(e,a,l)};n(e,u,t);return o},addEvent:function(e,i){if(!this.element){return!1};var a=this,o=a.element,r=o.id!==''?o.id:null;s(e,i,r);if(e!='ready'){n('addEventListener',e,o)}else if(e=='ready'&&t){i.call(null,r)};return a},removeEvent:function(e){if(!this.element){return!1};var t=this,i=t.element,o=i.id!==''?i.id:null,a=u(e,o);if(e!='ready'&&a){n('removeEventListener',e,i)}}};function n(e,i,t){if(!t.contentWindow.postMessage){return!1};var n=JSON.stringify({method:e,value:i});t.contentWindow.postMessage(n,o)};function a(e){var i,r;try{i=JSON.parse(e.data);r=i.event||i.method}catch(p){};if(r=='ready'&&!t){t=!0};if(!(/^https?:\/\/player.vimeo.com/).test(e.origin)){return!1};if(o==='*'){o=e.origin};var u=i.value,d=i.data,a=a===''?null:i.player_id,s=l(r,a),n=[];if(!s){return!1};if(u!==undefined){n.push(u)};if(d){n.push(d)};if(a){n.push(a)};return n.length>0?s.apply(null,n):s.call()};function s(i,t,o){if(o){if(!e[o]){e[o]={}};e[o][i]=t}else{e[i]=t}};function l(i,t){if(t&&e[t]&&e[t][i]){return e[t][i]}else{return e[i]}};function u(i,t){if(t&&e[t]){if(!e[t][i]){return!1};e[t][i]=null}else{if(!e[i]){return!1};e[i]=null};return!0};function r(e){return!!(e&&e.constructor&&e.call&&e.apply)};function h(e){return toString.call(e)==='[object Array]'};i.fn.init.prototype=i.fn;if(window.addEventListener){window.addEventListener('message',a,!1)}else{window.attachEvent('onmessage',a)};return(window.Froogaloop=window.$f=i)})();(function(t){'use strict';t.fn.avia_sc_tabs=function(e){var a={heading:'.tab',content:'.tab_content',active:'active_tab',sidebar:!1};var i=t(window),e=t.extend(a,e);return this.each(function(){var a=t(this),c=t('<div class="tab_titles" role="tablist"></div>').prependTo(a),n=t(e.heading,a),r=t(e.content,a),o=!1,d=!1;o=n.clone();d=n.addClass('fullsize-tab').attr({'aria-hidden':!0,'aria-selected':!1,id:'',role:'','aria-controls':'',tabindex:0});n=o;n.prependTo(c).each(function(e){var a=t(this),i=!1;if(o){i=d.eq(e)};a.addClass('tab_counter_'+e).attr({tab_counter:e}).on('click',function(){l(a,e,i);return!1});a.on('keydown',function(t){if(t.keyCode===13){a.trigger('click')}});if(o){i.on('click',function(){l(i,e,a);return!1});i.on('keydown',function(t){if(t.keyCode===13){i.trigger('click')}})}});s();f(!1);i.on('debouncedresize',s);t('a').on('click',function(){var e=t(this).attr('href');if(typeof e!='undefined'&&e){e=e.replace(/^.*?#/,'');f('#'+e)}});function s(){if(!e.sidebar){return};r.css({'min-height':c.outerHeight()+1})};function l(n,l,o){if(!n.is('.'+e.active)){t('.'+e.active,a).removeClass(e.active).attr({'aria-selected':!1,tabindex:0});t('.'+e.active+'_content',a).removeClass(e.active+'_content').attr('aria-hidden',!0);n.addClass(e.active).attr({'aria-selected':!0,tabindex:0});var s=n.data('fake-id');if(typeof s=='string'){window.location.replace(s)};if(o){o.addClass(e.active)};var d=r.eq(l).addClass(e.active+'_content').attr('aria-hidden',!1);if(typeof click_container!='undefined'&&click_container.length){sidebar_shadow.height(d.outerHeight())};var c=d.offset().top,f=c-50-parseInt(t('html').css('margin-top'),10);if(i.scrollTop()>c){t('html:not(:animated),body:not(:animated)').scrollTop(f)}};i.trigger('av-content-el-height-changed',n)};function f(t){if(!t&&window.location.hash){t=window.location.hash};if(!t){return};var e=n.filter('[data-fake-id="'+t+'"]');if(e.length){if(!e.is('.active_tab')){e.trigger('click')};window.scrollTo(0,a.offset().top-70)}}})}}(jQuery));(function(i){'use strict';i('body').on('click','.av-lazyload-video-embed .av-click-to-play-overlay',function(l){var n=i(this),d=i('html').hasClass('av-cookies-needs-opt-in')||i('html').hasClass('av-cookies-can-opt-out'),e=!0,c=i('html').hasClass('av-cookies-user-silent-accept');if(d&&!c){if(!document.cookie.match(/aviaCookieConsent/)||i('html').hasClass('av-cookies-session-refused')){e=!1}else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){e=!1}else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){e=!1}else if(document.cookie.match(/aviaPrivacyVideoEmbedsDisabled/)){e=!1}}};if(window.wp&&wp.hooks){e=wp.hooks.applyFilters('aviaCookieConsent_allow_continue',e)};var a=n.parents('.av-lazyload-video-embed');if(a.hasClass('avia-video-lightbox')&&a.hasClass('avia-video-standard-html')){e=!0};if(!e){if(typeof l.originalEvent=='undefined'){return};var t=a.data('original_url');if(t)window.open(t,'_blank','noreferrer noopener');return};var s=a.find('.av-video-tmpl').html(),o='';if(a.hasClass('avia-video-lightbox')){o=a.find('a.lightbox-link');if(o.length==0){a.append(s);setTimeout(function(){o=a.find('a.lightbox-link');if(i('html').hasClass('av-default-lightbox')){o.addClass('lightbox-added').magnificPopup(i.avia_utilities.av_popup);o.trigger('click')}else{o.trigger('avia-open-video-in-lightbox')}},100)}else{o.trigger('click')}}else{a.html(s)}});i('.av-lazyload-immediate .av-click-to-play-overlay').trigger('click')}(jQuery));jQuery(function(t){cart_improvement_functions();cart_dropdown_improvement();track_ajax_add_to_cart();if(t.fn.avia_sc_slider){t('.shop_slider_yes ul').avia_sc_slider({appendControlls:!1,group:!0,slide:'.product',arrowControll:!0,autorotationInterval:'parent'})};t('body.single-product').on('click','.single-product-main-image .avia-wc-30-product-gallery-lightbox',function(e){e.preventDefault();var i=t(this),n=i.parents('.single-product-main-image'),a=n.find('.flex-active-slide a.lightbox-added').eq(0);if(a.length==0){a=n.find('a.lightbox-added').eq(0)};if(i.hasClass('av-remove-size-attr')){let img_tag=a.find('img').eq(0);if(img_tag.length){img_tag.removeAttr('sizes')}};a.trigger('click')});product_add_to_cart_click();function e(){t('.quantity input[type=number]').each(function(){var a=t(this),c=a.val(),n=a.clone(!0);if(('undefined'==typeof(c))||(''==(c+'').trim())){var i=n.attr('placeholder');i=(('undefined'==typeof(i))||(''==(i+'').trim()))?1:i;n.attr('value',i)};var r=parseFloat(a.attr('max')),o=parseFloat(a.attr('min')),d=parseInt(a.attr('step'),10),e=n.insertAfter(a);e.addClass('no-spin-num');a.remove();setTimeout(function(){var a=null,i=null;if(e.next('.plus').length===0){a=t('<input type="button" value="-" class="minus">').insertBefore(e),i=t('<input type="button" value="+" class="plus">').insertAfter(e)}else{a=e.prev('.minus');i=e.next('.plus')};a.on('click',function(){var t=parseInt(e.val(),10);if(isNaN(t)){t=0};let new_step=parseInt(e.attr('step'),10);if(isNaN(new_step)){new_step=d};t-=new_step;t=t<0?0:t;t=t<o?o:t;e.val(t).trigger('change')});i.on('click',function(){var t=parseInt(e.val(),10);if(isNaN(t)){t=0};let new_step=parseInt(e.attr('step'),10);if(isNaN(new_step)){new_step=d};t+=new_step;t=t>r?r:t;e.val(t).trigger('change')})},10)})};e();t(document).on('updated_cart_totals',e);setTimeout(first_load_amount,10);t('body').on('added_to_cart',update_cart_dropdown);t('body').on('wc_fragments_refreshed',avia_cart_dropdown_changed);t('.avia_mobile .sort-param').on('touchstart',function(){})});function avia_cart_dropdown_changed(){var a=jQuery('html'),i=jQuery('body').is('.woocommerce-cart'),e=jQuery('.cart_dropdown .av-cart-counter'),n=jQuery('.cart_dropdown'),t=0,r=jQuery('body').hasClass('avia-woocommerce-30');if(!i){return};if(!r){n.find('.cart_list li .quantity').each(function(){t+=parseInt(jQuery(this).text(),10)})}else{t=parseInt(e.text(),10)};if(t==0){e.removeClass('av-active-counter').text(t);setTimeout(function(){a.removeClass('html_visible_cart')},200)}else if((e.length>0)&&(t>0)){setTimeout(function(){e.addClass('av-active-counter').text(t);a.addClass('html_visible_cart')},10)};return};function update_cart_dropdown(t){var c=jQuery('html'),r=jQuery('.cart_dropdown'),a=jQuery('.cart_dropdown .av-cart-counter'),s=r.find('.empty'),u=r.data('success'),o=jQuery.extend({name:'Product',price:'',image:''},avia_clicked_product),i=0,d=jQuery('body').hasClass('avia-woocommerce-30');if(a.length==0){return};if((s.length>0)&&('undefined'!=typeof t)){c.addClass('html_visible_cart')};if(typeof t!=='undefined'){var n=jQuery('.html_header_sticky #header_main .cart_dropdown_first, .html_header_sidebar #header_main .cart_dropdown_first'),l=jQuery('.added_to_cart_notification').trigger('avia_hide'),e=jQuery('<div class=\'added_to_cart_notification\'><span class=\'avia-arrow\'></span><div class=\'added-product-text\'><strong>"'+o.name+'"</strong> '+u+'</div> '+o.image+'</div>').css('opacity',0);if(!n.length){n='body'};e.on('mouseenter avia_hide',function(){e.animate({opacity:0,top:parseInt(e.css('top'),10)+15},function(){e.remove()})}).appendTo(n).animate({opacity:1},500);setTimeout(function(){e.trigger('avia_hide')},2500)};if('object'==typeof t&&'added_to_cart'==t.type&&d){return};setTimeout(function(){if(!d){r.find('.cart_list li .quantity').each(function(){i+=parseInt(jQuery(this).text(),10)})}else{i=a.text()};if((a.length>0)&&(i>0)){setTimeout(function(){a.addClass('av-active-counter').text(i)},10)}},300)};var avia_clicked_product={};function track_ajax_add_to_cart(){jQuery('body').on('click','.add_to_cart_button',function(a){var e=jQuery(this).parents('.product').eq(0),t={};t.name=e.find('.woocommerce-loop-product__title').text();t.image=e.find('.thumbnail_container img');t.price=e.find('.price .amount').last().text();if(t.name===''){t.name=e.find('.inner_product_header h3').text()};if(e.length===0){e=jQuery(this);t.name=e.find('.av-cart-update-title').text();t.image=e.find('.av-cart-update-image');t.price=e.find('.av-cart-update-price').text()};if(t.image.length){t.image='<img class=\'added-product-image\' src=\''+t.image.get(0).src+'\' title=\'\' alt=\'\' />'}else{t.image=''};avia_clicked_product=t})};function first_load_amount(){var e=0,i=15,n=500,a=function(){var t=jQuery('.cart_dropdown .dropdown_widget_cart').eq(0).find('.total .amount');if(t.length){update_cart_dropdown()}else{e++;if(e<i){setTimeout(a,n)}}};a();if(jQuery('.av-display-cart-on-load').length&&jQuery('.woocommerce-message').length===0){var t=jQuery('.cart_dropdown');setTimeout(function(){t.trigger('mouseenter')},500);setTimeout(function(){t.trigger('mouseleave')},2500)}};function product_add_to_cart_click(){var e=jQuery('body'),a=jQuery('.av-catalogue-item'),t=!1;if(a.length){t=jQuery.avia_utilities.loading()};e.on('click','.add_to_cart_button',function(e){var i=jQuery(this);i.parents('.product').eq(0).addClass('adding-to-cart-loading').removeClass('added-to-cart-check');if(i.is('.av-catalogue-item')){t.show()};var a=jQuery('html');if(!a.hasClass('html_visible_cart')){a.addClass('html_visible_cart')}});e.on('added_to_cart',function(){jQuery('.adding-to-cart-loading').removeClass('adding-to-cart-loading').addClass('added-to-cart-check');if(t!==!1){t.hide()}})};function cart_improvement_functions(){jQuery('.product_type_downloadable, .product_type_virtual').addClass('product_type_simple');jQuery('.woocommerce-tabs .tabs a').addClass('no-scroll');jQuery('.single-product-main-image>.images a').attr('rel','product_images[grouped]')};function cart_dropdown_improvement(){var t=jQuery('.cart_dropdown'),a=t.find('.cart_dropdown_link'),e=t.find('.dropdown_widget').css({display:'none',opacity:0});a.on('focus',function(){t.trigger('mouseenter')}).on('blur',function(){t.trigger('mouseleave')});t.on('mouseenter',function(){const content=t.find('.widget_shopping_cart_content');if(jQuery.trim(content.html()).length){e.css({display:'block'}).stop().animate({opacity:1})}}).on('mouseleave',function(){e.stop().animate({opacity:0},function(){e.css({display:'none'})})})};(function(e){'use strict';e(function(){e.avia_utilities=e.avia_utilities||{};if('undefined'==typeof e.avia_utilities.isMobile){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&'ontouchstart' in document.documentElement){e.avia_utilities.isMobile=!0}else{e.avia_utilities.isMobile=!1}};i();e(window).trigger('resize')});e.avia_utilities=e.avia_utilities||{};function i(){var m=e('#header'),u=e('#main .av-logo-container'),h=e('#avia-menu'),l=e('.av-burger-menu-main a'),a=e('html').eq(0),n=e('<div class="av-burger-overlay" role="menu" aria-orientation="vertical"></div>'),p=e('<div class="av-burger-overlay-scroll"></div>').appendTo(n),g=e('<div class="av-burger-overlay-inner"></div>').appendTo(p),k=e('<div class="av-burger-overlay-bg"></div>').appendTo(n),r=!1,v={},b=e('.av-logo-container .inner-container'),C=b.find('.main_menu'),d=a.is('.html_av-submenu-display-click.html_av-submenu-clone, .html_av-submenu-display-hover.html_av-submenu-clone'),y=!1,T=0;if(!a.hasClass('html_av-submenu-hidden')){a.addClass('html_av-submenu-visible')};var f=e('#avia_alternate_menu');if(f.length>0){h=f};var c=function(){if(e.avia_utilities.isMobile){p.outerHeight(window.innerHeight)}},o=function(i,u){if(!i){return};var c,s,t,r,v,f,m,a,n;i.each(function(){t=e(this);r=t.find(' > .sub-menu > li');if(r.length==0){r=t.find(' > .children > li')};v=t.find('.avia_mega_div > .sub-menu > li.menu-item');var i=t.find('>a'),c=!0;if(i.length){if(i.get(0).hash=='#'||'undefined'==typeof i.attr('href')||i.attr('href')=='#'){if(r.length>0||v.length>0){c=!1}}};s=i.clone(c).attr('style','');if('undefined'==typeof i.attr('href')){s.attr('href','#')};a=e('<li>').append(s);a.attr('role','menuitem');var l=[];if('undefined'!=typeof t.attr('class')){l=t.attr('class').split(/\s+/);e.each(l,function(e,i){if((i.indexOf('menu-item')!=0)&&(i.indexOf('page-item')<0)&&(i.indexOf('page_item')!=0)&&(i.indexOf('dropdown_ul')<0)){a.addClass(i)};return!0})};if('undefined'!=typeof t.attr('id')&&''!=t.attr('id')){a.addClass(t.attr('id'))}else{e.each(l,function(e,i){if(i.indexOf('page-item-')>=0){a.addClass(i);return!1}})};u.append(a);if(r.length){n=e('<ul class="sub-menu">').appendTo(a);if(d&&(s.get(0).hash!='#'&&s.attr('href')!='#')){a.clone(!0).prependTo(n)};a.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');o(r,n)}else if(v.length){n=e('<ul class="sub-menu">').appendTo(a);if(d&&(s.get(0).hash!='#'&&s.attr('href')!='#')){a.clone(!0).prependTo(n)};v.each(function(i){var v=e(this),t=v.find('> .sub-menu'),s=v.find('> .mega_menu_title'),c=s.find('a').attr('href')||'#',r=t.length>0?t.find('>li'):null,f=!1,l=a.find('>a'),m='';if((r===null)||(r.length==0)){if(c=='#'){m=' style="display: none;"'}};if(i==0)a.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">');if(s.length&&s.text()!=''){f=!0;if(i>0){var u=a.parents('li').eq(0);if(u.length)a=u;n=e('<ul class="sub-menu">').appendTo(a)};a=e('<li'+m+'>').appendTo(n);n=e('<ul class="sub-menu">').appendTo(a);e('<a href="'+c+'"><span class="avia-bullet"></span><span class="avia-menu-text">'+s.text()+'</span></a>').insertBefore(n);l=a.find('>a');if(d&&(t.length>0)&&(l.length&&l.get(0).hash!='#'&&l.attr('href')!='#')){a.clone(!0).addClass('av-cloned-title').prependTo(n)}};if(f&&(t.length>0)){a.addClass('av-width-submenu').find('>a').append('<span class="av-submenu-indicator">')};o(r,n)})}});l.trigger('avia_burger_list_created');return c},s,i;e('body').on('mousewheel DOMMouseScroll touchmove','.av-burger-overlay-scroll',function(e){var n=this.offsetHeight,i=this.scrollHeight,a=e.originalEvent.wheelDelta;if(i!=this.clientHeight){if((this.scrollTop>=(i-n)&&a<0)||(this.scrollTop<=0&&a>0)){e.preventDefault()}}else{e.preventDefault()}});e(document).on('mousewheel DOMMouseScroll touchmove','.av-burger-overlay-bg, .av-burger-overlay-active .av-burger-menu-main',function(e){e.preventDefault()});var t={};e(document).on('touchstart','.av-burger-overlay-scroll',function(e){t.Y=e.originalEvent.touches[0].clientY});e(document).on('touchend','.av-burger-overlay-scroll',function(e){t={}});e(document).on('touchmove','.av-burger-overlay-scroll',function(i){if(!t.Y){t.Y=i.originalEvent.touches[0].clientY};var l=i.originalEvent.touches[0].clientY-t.Y,a=this,n=a.scrollTop,r=a.scrollHeight,o=n+a.offsetHeight,s=l>0?'up':'down';e('body').get(0).scrollTop=t.body;if(n<=0){if(s=='up'){i.preventDefault()}}else if(o>=r){if(s=='down'){i.preventDefault()}}});e(window).on('debouncedresize',function(n){var s=!0;if(e.avia_utilities.isMobile&&a.hasClass('av-mobile-menu-switch-portrait')&&a.hasClass('html_text_menu_active')){var t=e(window).height(),o=e(window).width();if(o<=t){a.removeClass('html_burger_menu')}else{var r=a.hasClass('html_mobile_menu_phone')?768:990;if(t<r){a.addClass('html_burger_menu');s=!1}else{a.removeClass('html_burger_menu')}}};if(s&&i&&i.length){if(!l.is(':visible')){i.filter('.is-active').parents('a').eq(0).trigger('click')}};c()});e('.html_av-overlay-side').on('click','.av-burger-overlay-bg',function(e){e.preventDefault();i.parents('a').eq(0).trigger('click')});e(window).on('avia_smooth_scroll_start',function(){if(i&&i.length){i.filter('.is-active').parents('a').eq(0).trigger('click')}});e('.html_av-submenu-display-hover').on('mouseenter','.av-width-submenu',function(i){e(this).children('ul.sub-menu').slideDown('fast')});e('.html_av-submenu-display-hover').on('mouseleave','.av-width-submenu',function(i){e(this).children('ul.sub-menu').slideUp('fast')});e('.html_av-submenu-display-hover').on('click','.av-width-submenu > a',function(e){e.preventDefault();e.stopImmediatePropagation()});e('.html_av-submenu-display-hover').on('touchstart','.av-width-submenu > a',function(i){var a=e(this);w(a,i)});e('.html_av-submenu-display-click').on('click','.av-width-submenu > a',function(i){var a=e(this);w(a,i)});e('.html_av-submenu-display-click, .html_av-submenu-visible').on('click','.av-burger-overlay a',function(a){var n=window.location.href.match(/(^[^#]*)/)[0],t=e(this).attr('href').match(/(^[^#]*)/)[0];if(t==n){a.preventDefault();a.stopImmediatePropagation();i.parents('a').eq(0).trigger('click');return!1};return!0});function w(e,i){i.preventDefault();i.stopImmediatePropagation();var a=e.parents('li').eq(0);a.toggleClass('av-show-submenu');if(a.is('.av-show-submenu')){a.children('ul.sub-menu').slideDown('fast')}else{a.children('ul.sub-menu').slideUp('fast')}};(function(){if(C.length){return};var i=e('#header .main_menu').clone(!0),t=i.find('ul.av-main-nav'),n=t.attr('id');if('string'==typeof n&&''!=n.trim()){t.attr('id',n+'-'+T++)};i.find('.menu-item:not(.menu-item-avia-special)').remove();i.insertAfter(b.find('.logo').first());var a=e('#header .social_bookmarks').clone(!0);if(!a.length){a=e('.av-logo-container .social_bookmarks').clone(!0)};if(a.length){i.find('.avia-menu').addClass('av_menu_icon_beside');i.append(a)};l=e('.av-burger-menu-main a')}());l.on('click',function(t){if(r){return};i=e(this).find('.av-hamburger'),r=!0;if(!y){y=!0;i.addClass('av-inserted-main-menu');s=e('<ul>').attr({id:'av-burger-menu-ul',class:'','aria-haspopup':'true','aria-controls':'menu2'});var d=h.find('> li:not(.menu-item-avia-special)'),f=o(d,s);s.find('.noMobile').remove();s.appendTo(g);v=g.find('#av-burger-menu-ul > li');if(e.fn.avia_smoothscroll){e('a[href*="#"]',n).avia_smoothscroll(n)}};if(i.is('.is-active')){i.removeClass('is-active');a.removeClass('av-burger-overlay-active-delayed');n.animate({opacity:0},function(){n.css({display:'none'});a.removeClass('av-burger-overlay-active');r=!1})}else{c();var l=u.length?u.outerHeight()+u.position().top:m.outerHeight()+m.position().top;n.appendTo(e(t.target).parents('.avia-menu'));s.css({padding:(l)+'px 0px'});v.removeClass('av-active-burger-items');i.addClass('is-active');a.addClass('av-burger-overlay-active');n.css({display:'block'}).animate({opacity:1},function(){r=!1});setTimeout(function(){a.addClass('av-burger-overlay-active-delayed')},100);v.each(function(i){var a=e(this);setTimeout(function(){a.addClass('av-active-burger-items')},(i+1)*125)})};t.preventDefault()})}})(jQuery);(function(t){'use strict';t.avia_utilities=t.avia_utilities||{};t(function(){if(t.fn.avia_parallax){t('.av-parallax,.av-parallax-object').avia_parallax()}});var i=function(i,e){if(!(this.transform||this.transform3d)){return};this.options=t.extend({},i);this.win=t(window);this.body=t('body');this.isMobile=t.avia_utilities.isMobile,this.winHeight=this.win.height();this.winWidth=this.win.width();this.el=t(e).addClass('active-parallax');this.objectType=this.el.hasClass('av-parallax-object')?'object':'background-image';this.elInner=this.el;this.elBackgroundParent=this.el.parent();this.elParallax=this.el.data('parallax')||{};this.direction='';this.speed=0.5;this.elProperty={};this.ticking=!1,this.isTransformed=!1;if(t.avia_utilities.supported.transition===undefined){t.avia_utilities.supported.transition=t.avia_utilities.supports('transition')};this._init(i)};i.prototype={mediaQueries:{'av-mini-':'(max-width: 479px)','av-small-':'(min-width: 480px) and (max-width: 767px)','av-medium-':'(min-width: 768px) and (max-width: 989px)','av-desktop-':'(min-width: 990px)'},transform:document.documentElement.className.indexOf('avia_transform')!==-1,transform3d:document.documentElement.className.indexOf('avia_transform3d')!==-1,mobileNoAnimation:t('body').hasClass('avia-mobile-no-animations'),defaultSpeed:0.5,defaultDirections:['bottom_top','left_right','right_left','no_parallax'],transformCSSProps:['transform','-webkit-transform','-moz-transform','-ms-transform','-o-transform'],matrixDef:[1,0,0,1,0,0],matrix3dDef:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],_init:function(){var t=this;if(typeof this.el.data('parallax-selector')!='undefined'&&this.el.data('parallax-selector')!==''){this.elInner=this.el.find(this.el.data('parallax-selector'));if(this.elInner.length==0){this.elInner=this.el}};if('background-image'==this.objectType){if(this.isMobile&&this.mobileNoAnimation){return};this.elParallax.parallax='bottom_top';this.elParallax.parallax_speed=parseFloat(this.el.data('avia-parallax-ratio'))||0.5};setTimeout(function(){t._fetchProperties()},30);this.win.on('debouncedresize av-height-change',t._fetchProperties.bind(t));this.body.on('av_resize_finished',t._fetchProperties.bind(t));setTimeout(function(){t.win.on('scroll',t._onScroll.bind(t))},100)},_setParallaxProps:function(){if('background-image'==this.objectType){this.direction=this.elParallax.parallax;this.speed=this.elParallax.parallax_speed;return};var e=this.elParallax.parallax||'',s=this.elParallax.parallax_speed||'',i='',a='',r='all';if(this.defaultDirections.indexOf(e)<0){e='no_parallax'};if(typeof window.matchMedia=='function'){t.each(this.mediaQueries,function(t,i){var e=window.matchMedia(i);if(e.matches){r=t;return!1}})};if('all'==r){this.direction=e;this.speed=''==s?this.defaultSpeed:parseFloat(s)/100.0;return};i=this.elParallax[r+'parallax']||'';a=this.elParallax[r+'parallax_speed']||'';if('inherit'==i){i=e;a=s};if(this.defaultDirections.indexOf(i)<0){i='no_parallax'};this.direction=i;this.speed=''==a?this.defaultSpeed:parseFloat(a)/100.0},_getTranslateObject:function(e){var i={type:'',matrix:[],x:0,y:0,z:0};t.each(this.transformCSSProps,function(t,s){var r=e.css(s);if('string'!=typeof r||'none'==r){return};if(r.indexOf('matrix')>=0){var a=r.match(/matrix.*\((.+)\)/)[1].split(', ');if(r.indexOf('matrix3d')>=0){i.type='3d';i.matrix=a;i.x=a[12];i.y=a[13];i.z=a[14]}else{i.type='2d';i.matrix=a;i.x=a[4];i.y=a[5]};return!1}else{i.type='';var n=r.match(/translateX\((-?\d+\.?\d*px)\)/);if(n){i.x=parseInt(n[1],10)};var l=r.match(/translateY\((-?\d+\.?\d*px)\)/);if(l){i.y=parseInt(l[1],10)}}});return i},_getTranslateMatrix:function(i,r){var s='';t.each(r,function(t,e){i[t]=e});if(this.transform3d){var e=this.matrix3dDef.slice(0);switch(i.type){case'2d':e[0]=i.matrix[0];e[1]=i.matrix[1];e[4]=i.matrix[2];e[5]=i.matrix[3];e[12]=i.x;e[13]=i.y;break;case'3d':e=i.matrix.slice(0);e[12]=i.x;e[13]=i.y;e[14]=i.z;break;default:e[12]=i.x;e[13]=i.y;break};s='matrix3d('+e.join(', ')+')'}else if(this.transform){var a=this.matrixDef.slice(0);switch(i.type){case'2d':a=i.matrix.slice(0);a[4]=i.x;a[5]=i.y;break;case'3d':a[0]=i.matrix[0];a[1]=i.matrix[1];a[2]=i.matrix[4];a[3]=i.matrix[5];a[4]=i.x;a[5]=i.y;break;default:a[4]=i.x;a[5]=i.y;break};s='matrix('+a.join(', ')+')'};return s},_fetchProperties:function(){this._setParallaxProps();this.el.css(t.avia_utilities.supported.transition+'transform','');this.winHeight=this.win.height();this.winWidth=this.win.width();if('background-image'==this.objectType){this.elProperty.top=this.elBackgroundParent.offset().top;this.elProperty.height=this.elBackgroundParent.outerHeight();this.el.height(Math.ceil((this.winHeight*Math.abs(this.speed))+this.elProperty.height))}else{this.elProperty.top=this.elInner.offset().top;this.elProperty.left=this.elInner.offset().left;this.elProperty.height=this.elInner.outerHeight();this.elProperty.width=this.elInner.outerWidth();this.elProperty.bottom=this.elProperty.top+this.elProperty.height;this.elProperty.right=this.elProperty.left+this.elProperty.width;this.elProperty.distanceLeft=this.elProperty.right;this.elProperty.distanceRight=this.winWidth-this.elProperty.left};this.elProperty.translateObj=this._getTranslateObject(this.el);this._parallaxScroll()},_onScroll:function(t){var i=this;if(!i.ticking){i.ticking=!0;window.requestAnimationFrame(i._parallaxRequest.bind(i))}},_inViewport:function(t,i,e,a,r,s,l,n){return!(t>s+10||e<r-10||a>n+10||i<l-10)},_parallaxRequest:function(t){var i=this;setTimeout(i._parallaxScroll.bind(i),0)},_parallaxScroll:function(i){if(('no_parallax'==this.direction||''==this.direction)&&!this.isTransformed){this.ticking=!1;return};var l=this.win.scrollTop(),o=this.win.scrollLeft(),d=o+this.winWidth,s=l+this.winHeight,e=0,a='';if('background-image'==this.objectType){if(this.elProperty.top<s&&l<=this.elProperty.top+this.elProperty.height){e=Math.ceil((s-this.elProperty.top)*this.speed);a=this._getTranslateMatrix(this.elProperty.translateObj,{y:e});this.el.css(t.avia_utilities.supported.transition+'transform',a)};this.ticking=!1;return};if(('no_parallax'==this.direction||''==this.direction)){a=this._getTranslateMatrix(this.elProperty.translateObj,{x:0,y:0});this.el.css(t.avia_utilities.supported.transition+'transform',a);this.ticking=!1;this.isTransformed=!1;return};var x=Math.ceil(this.elProperty.top-l),p=Math.ceil(s-this.elProperty.top),n=0,h=0,r={x:0,y:0};if(this.elProperty.top<this.winHeight){h=Math.ceil(this.winHeight-this.elProperty.top)};if(this.elProperty.top>s){n=0;p=0}else{n=1-(x+h)/this.winHeight};switch(this.direction){case'bottom_top':e=Math.ceil((p-h)*this.speed);r.y=-e;a=this._getTranslateMatrix(this.elProperty.translateObj,{y:-e});break;case'left_right':e=Math.ceil(this.elProperty.distanceRight*n*this.speed);r.x=e;a=this._getTranslateMatrix(this.elProperty.translateObj,{x:e});break;case'right_left':e=Math.ceil(this.elProperty.distanceLeft*n*this.speed);r.x=-e;a=this._getTranslateMatrix(this.elProperty.translateObj,{x:-e});break;default:break};var f=this._inViewport(this.elProperty.top,this.elProperty.right,this.elProperty.bottom,this.elProperty.left,l,s,o,d),c=this._inViewport(this.elProperty.top+r.y,this.elProperty.right+r.x,this.elProperty.bottom+r.y,this.elProperty.left+r.x,l,s,o,d);if(f||c){this.el.css(t.avia_utilities.supported.transition+'transform',a)};this.ticking=!1;this.isTransformed=!0}};t.fn.avia_parallax=function(e){return this.each(function(){var a=t(this),r=a.data('aviaParallax');if(!r){r=a.data('aviaParallax',new i(e,this))}})}})(jQuery);'use strict';var avia_js_shortcodes=avia_js_shortcodes||{};var aviaJS=aviaJS||{};(function(){if(!avia_js_shortcodes.aviaFoldUnfoldSection){class avFoldUnfoldSection{container=null;id='';settings={};button=[];foldContainer=[];folded=!1;preview=!1;innerDimension={};textblock=[];multiColumsTextblock=!1;gridRow=[];colorSection=[];column=[];constructor(container){this.container=container;this.container.avFoldUnfoldSection=this;this.id=container.getAttribute('id');this.init()};init(){this.settings=JSON.parse(this.container.dataset.fold_unfold);this.preview=document.getElementById('av-admin-preview')!=null;this.moveIntoFoldContainer();if(!this.button.length||!this.foldContainer.length||this.checkMissingInnerContainers()){return};if(this.isNested()){this.container.classList.remove('avia-fold-init');this.foldContainer[0].classList.remove('unfolded','folded');this.foldContainer[0].style['max-height']='unset';this.button[0].remove();return};this.foldContainer[0].style['max-height']=this.settings.height+'px';this.foldContainer[0].classList.add('folded');this.foldContainer[0].classList.remove('unfolded');this.folded=!0;this.container.classList.add('avia-fold-init-done');this.getMaxHeight();this.foldChanged();this.bindEvents();this.container.classList.remove('avia-fold-init')};moveIntoFoldContainer(){if(this.container.hasChildNodes()){let children=this.container.childNodes;for(const child of children){if(child.classList){if(child.classList.contains('av-fold-unfold-container')){this.foldContainer[0]=child};if(child.classList.contains('av-fold-button-wrapper')){const btn=child.getElementsByClassName('av-fold-button-container');if(btn.length){this.button[0]=btn[0]}}}}};let move=null;if(this.settings.context=='avia_sc_text'){let el=this.foldContainer[0].nextSibling;while(el){if(el.classList&&el.classList.contains('avia_textblock')){move=el;break};el=el.nextSibling}}else if(this.settings.context=='avia_sc_columns'){let el=this.foldContainer[0].nextSibling;this.column=this.foldContainer[0].getElementsByClassName('av-fold-unfold-inner');if(this.column.length){while(el){if(el.classList&&el.classList.contains('av-fold-button-wrapper')){el=el.nextSibling}else{const next=el.nextSibling;this.column[0].append(el);el=next}}}}else{const el=this.container.nextSibling;if(el){move=el}};if(move){this.foldContainer[0].append(move)}};checkMissingInnerContainers(){let retVal=!1;switch(this.settings.context){case'avia_sc_text':this.textblock=this.container.getElementsByClassName('avia_textblock');if(this.textblock.length==0){retVal=!0}else{this.multiColumsTextblock=this.textblock[0].classList.contains('av_multi_colums')};break;case'avia_sc_grid_row':this.gridRow=this.container.getElementsByClassName('av-layout-grid-container');if(this.gridRow.length==0){retVal=!0};break;case'avia_sc_section':this.colorSection=this.container.getElementsByClassName('avia-section');if(this.colorSection.length==0){retVal=!0};break;case'avia_sc_columns':if(!this.column[0].childNodes.length){retVal=!0};break;default:retVal=!0};return retVal};isNested(){const parent=this.container.parentElement;if(null==parent){return!1};let closest=parent.closest('.avia-fold-unfold-section');if(closest==parent){closest=null};return closest!=null};bindEvents(){this.container.addEventListener('transitionend',this.onTransitionEnd.bind(this));this.container.addEventListener('webkitTransitionEnd',this.onTransitionEnd.bind(this));this.button[0].addEventListener('click',this.onClickFoldUnfold.bind(this));window.addEventListener('avia_fold_unfold_changed',this.onFoldUnfoldChanged.bind(this));window.addEventListener('resize',aviaJS.aviaJSHelpers.debounce(this.onResize.bind(this),200))};getMaxHeight(){switch(this.settings.context){case'avia_sc_text':this.innerDimension=this.textblock[0].getBoundingClientRect();break;case'avia_sc_grid_row':this.innerDimension=this.gridRow[0].getBoundingClientRect();break;case'avia_sc_section':this.innerDimension=this.colorSection[0].getBoundingClientRect();break;case'avia_sc_columns':this.innerDimension=this.column[0].getBoundingClientRect();break}};foldChanged(){let btnText='',btnLink='';if(this.folded){this.foldContainer[0].style['max-height']=this.settings.height+'px';btnText=this.settings.more;btnLink='#'}else{this.getMaxHeight();this.foldContainer[0].style['max-height']=Math.ceil(this.innerDimension.height)+200+'px';btnText=this.settings.less;btnLink+='#'+this.id};this.button[0].setAttribute('href',btnLink);this.button[0].textContent=btnText;this.triggerHeightChange()};onClickFoldUnfold(event){event.preventDefault();event.stopPropagation();if(this.foldContainer[0].classList.contains('folded')){this.foldContainer[0].classList.remove('folded');this.foldContainer[0].classList.add('unfolded');this.folded=!1}else{this.foldContainer[0].classList.remove('unfolded');this.foldContainer[0].classList.add('folded');this.folded=!0};this.foldChanged();let obj=this;setTimeout(function(){const opt={'bubbles':!0,'cancelable':!0,detail:{caller:obj}};const event=new CustomEvent('avia_fold_unfold_changed',opt);obj.container.dispatchEvent(event)},500)};onTransitionEnd(event){this.container.classList.remove('avia-fold-init-done');this.triggerHeightChange()};onResize(event){this.foldChanged()};onFoldUnfoldChanged(event){this.foldChanged()};triggerHeightChange(){const opt={'bubbles':!0,'cancelable':!0};const event=new CustomEvent('avia_height_change',opt);window.dispatchEvent(event)}};avia_js_shortcodes.aviaFoldUnfoldSection=function(t){return new avFoldUnfoldSection(t)};aviaJS.aviaPlugins.register(avia_js_shortcodes.aviaFoldUnfoldSection,'.avia-fold-unfold-section')}})();/*! Magnific Popup - v1.3 - 2022-09-14
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(e){var t,i,n,o,a,r,s="Close",l="BeforeClose",c="MarkupParse",d="Open",p="Change",u="mfp",f="."+u,m="mfp-ready",g="mfp-removing",v="mfp-prevent-close",h=function(){},y=!!window.jQuery,C=e(window),b=function(e,i){t.ev.on(u+e+f,i)},w=function(t,i,n,o){var a=document.createElement("div");return a.className="mfp-"+t,n&&(a.innerHTML=n),o?i&&i.appendChild(a):(a=e(a),i&&a.appendTo(i)),a},I=function(e,i){t.ev.triggerHandler(u+e,i),t.st.callbacks&&(e=e.charAt(0).toLowerCase()+e.slice(1),t.st.callbacks[e]&&t.st.callbacks[e].apply(t,Array.isArray(i)?i:[i]))},x=function(i){return i===r&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=e(t.st.closeMarkup.replace("%title%",t.st.tClose)),r=i),t.currTemplate.closeBtn},k=function(){e.magnificPopup.instance||((t=new h).init(),e.magnificPopup.instance=t)};h.prototype={constructor:h,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener,t.isAndroid=/android/gi.test(i),t.isIOS=/iphone|ipad|ipod/gi.test(i),t.supportsTransition=function(){var e=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(void 0!==e.transition)return!0;for(;t.length;)if(t.pop()+"Transition"in e)return!0;return!1}(),t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),n=e(document),t.popupsCache={}},open:function(i){var o;if(!1===i.isObj){t.items=i.items.toArray(),t.index=0;var r,s=i.items;for(o=0;o<s.length;o++)if((r=s[o]).parsed&&(r=r.el[0]),r===i.el[0]){t.index=o;break}}else t.items=Array.isArray(i.items)?i.items:[i.items],t.index=i.index||0;if(!t.isOpen){t.types=[],a="",i.mainEl&&i.mainEl.length?t.ev=i.mainEl.eq(0):t.ev=n,i.key?(t.popupsCache[i.key]||(t.popupsCache[i.key]={}),t.currTemplate=t.popupsCache[i.key]):t.currTemplate={},t.st=e.extend(!0,{},e.magnificPopup.defaults,i),t.fixedContentPos="auto"===t.st.fixedContentPos?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=w("bg").on("click"+f,(function(){t.close()})),t.wrap=w("wrap").attr("tabindex",-1).on("click"+f,(function(e){t._checkIfClose(e.target)&&t.close()})),t.container=w("container",t.wrap)),t.contentContainer=w("content"),t.st.preloader&&(t.preloader=w("preloader",t.container,t.st.tLoading));var l=e.magnificPopup.modules;for(o=0;o<l.length;o++){var p=l[o];p=p.charAt(0).toUpperCase()+p.slice(1),t["init"+p].call(t)}I("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(b(c,(function(e,t,i,n){i.close_replaceWith=x(n.type)})),a+=" mfp-close-btn-in"):t.wrap.append(x())),t.st.alignTop&&(a+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:C.scrollTop(),position:"absolute"}),(!1===t.st.fixedBgPos||"auto"===t.st.fixedBgPos&&!t.fixedContentPos)&&t.bgOverlay.css({height:n.height(),position:"absolute"}),t.st.enableEscapeKey&&n.on("keyup"+f,(function(e){27===e.keyCode&&t.close()})),C.on("resize"+f,(function(){t.updateSize()})),t.st.closeOnContentClick||(a+=" mfp-auto-cursor"),a&&t.wrap.addClass(a);var u=t.wH=C.height(),g={};if(t.fixedContentPos&&t._hasScrollBar(u)){var v=t._getScrollbarSize();v&&(g.marginRight=v)}t.fixedContentPos&&(t.isIE7?e("body, html").css("overflow","hidden"):g.overflow="hidden");var h=t.st.mainClass;return t.isIE7&&(h+=" mfp-ie7"),h&&t._addClassToMFP(h),t.updateItemHTML(),I("BuildControls"),e("html").css(g),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||e(document.body)),t._lastFocusedEl=document.activeElement,setTimeout((function(){t.content?(t._addClassToMFP(m),t._setFocus()):t.bgOverlay.addClass(m),n.on("focusin"+f,t._onFocusIn)}),16),t.isOpen=!0,t.updateSize(u),I(d),i}t.updateItemHTML()},close:function(){t.isOpen&&(I(l),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(g),setTimeout((function(){t._close()}),t.st.removalDelay)):t._close())},_close:function(){I(s);var i=g+" "+m+" ";if(t.bgOverlay.detach(),t.wrap.detach(),t.container.empty(),t.st.mainClass&&(i+=t.st.mainClass+" "),t._removeClassFromMFP(i),t.fixedContentPos){var o={marginRight:""};t.isIE7?e("body, html").css("overflow",""):o.overflow="",e("html").css(o)}n.off("keyup.mfp focusin"+f),t.ev.off(f),t.wrap.attr("class","mfp-wrap").removeAttr("style"),t.bgOverlay.attr("class","mfp-bg"),t.container.attr("class","mfp-container"),!t.st.showCloseBtn||t.st.closeBtnInside&&!0!==t.currTemplate[t.currItem.type]||t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach(),t.st.autoFocusLast&&t._lastFocusedEl&&e(t._lastFocusedEl).trigger("focus"),t.currItem=null,t.content=null,t.currTemplate=null,t.prevHeight=0,I("AfterClose")},updateSize:function(e){if(t.isIOS){var i=document.documentElement.clientWidth/window.innerWidth,n=window.innerHeight*i;t.wrap.css("height",n),t.wH=n}else t.wH=e||C.height();t.fixedContentPos||t.wrap.css("height",t.wH),I("Resize")},updateItemHTML:function(){var i=t.items[t.index];t.contentContainer.detach(),t.content&&t.content.detach(),i.parsed||(i=t.parseEl(t.index));var n=i.type;if(I("BeforeChange",[t.currItem?t.currItem.type:"",n]),t.currItem=i,!t.currTemplate[n]){var a=!!t.st[n]&&t.st[n].markup;I("FirstMarkupParse",a),t.currTemplate[n]=!a||e(a)}o&&o!==i.type&&t.container.removeClass("mfp-"+o+"-holder");var r=t["get"+n.charAt(0).toUpperCase()+n.slice(1)](i,t.currTemplate[n]);t.appendContent(r,n),i.preloaded=!0,I(p,i),o=i.type,t.container.prepend(t.contentContainer),I("AfterChange")},appendContent:function(e,i){t.content=e,e?t.st.showCloseBtn&&t.st.closeBtnInside&&!0===t.currTemplate[i]?t.content.find(".mfp-close").length||t.content.append(x()):t.content=e:t.content="",I("BeforeAppend"),t.container.addClass("mfp-"+i+"-holder"),t.contentContainer.append(t.content)},parseEl:function(i){var n,o=t.items[i];if(o.tagName?o={el:e(o)}:(n=o.type,o={data:o,src:o.src}),o.el){for(var a=t.types,r=0;r<a.length;r++)if(o.el.hasClass("mfp-"+a[r])){n=a[r];break}o.src=o.el.attr("data-mfp-src"),o.src||(o.src=o.el.attr("href"))}return o.type=n||t.st.type||"inline",o.index=i,o.parsed=!0,t.items[i]=o,I("ElementParse",o),t.items[i]},addGroup:function(e,i){var n=function(n){n.mfpEl=this,t._openClick(n,e,i)};i||(i={});var o="click.magnificPopup";i.mainEl=e,i.items?(i.isObj=!0,e.off(o).on(o,n)):(i.isObj=!1,i.delegate?e.off(o).on(o,i.delegate,n):(i.items=e,e.off(o).on(o,n)))},_openClick:function(i,n,o){if((void 0!==o.midClick?o.midClick:e.magnificPopup.defaults.midClick)||!(2===i.which||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){var a=void 0!==o.disableOn?o.disableOn:e.magnificPopup.defaults.disableOn;if(a)if("function"==typeof a){if(!a.call(t))return!0}else if(C.width()<a)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation()),o.el=e(i.mfpEl),o.delegate&&(o.items=n.find(o.delegate)),t.open(o)}},updateStatus:function(e,n){if(t.preloader){i!==e&&t.container.removeClass("mfp-s-"+i),n||"loading"!==e||(n=t.st.tLoading);var o={status:e,text:n};I("UpdateStatus",o),e=o.status,n=o.text,t.preloader.html(n),t.preloader.find("a").on("click",(function(e){e.stopImmediatePropagation()})),t.container.addClass("mfp-s-"+e),i=e}},_checkIfClose:function(i){if(!e(i).hasClass(v)){var n=t.st.closeOnContentClick,o=t.st.closeOnBgClick;if(n&&o)return!0;if(!t.content||e(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||e.contains(t.content[0],i)){if(n)return!0}else if(o&&e.contains(document,i))return!0;return!1}},_addClassToMFP:function(e){t.bgOverlay.addClass(e),t.wrap.addClass(e)},_removeClassFromMFP:function(e){this.bgOverlay.removeClass(e),t.wrap.removeClass(e)},_hasScrollBar:function(e){return(t.isIE7?n.height():document.body.scrollHeight)>(e||C.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).trigger("focus")},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!e.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,i,n){var o;n.data&&(i=e.extend(n.data,i)),I(c,[t,i,n]),e.each(i,(function(i,n){if(void 0===n||!1===n)return!0;if((o=i.split("_")).length>1){var a=t.find(f+"-"+o[0]);if(a.length>0){var r=o[1];"replaceWith"===r?a[0]!==n[0]&&a.replaceWith(n):"img"===r?a.is("img")?a.attr("src",n):a.replaceWith(e("<img>").attr("src",n).attr("class",a.attr("class"))):a.attr(o[1],n)}}else t.find(f+"-"+i).html(n)}))},_getScrollbarSize:function(){if(void 0===t.scrollbarSize){var e=document.createElement("div");e.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(e),t.scrollbarSize=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return t.scrollbarSize}},e.magnificPopup={instance:null,proto:h.prototype,modules:[],open:function(t,i){return k(),(t=t?e.extend(!0,{},t):{}).isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return e.magnificPopup.instance&&e.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(e.magnificPopup.defaults[t]=i.options),e.extend(this.proto,i.proto),this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},e.fn.magnificPopup=function(i){k();var n=e(this);if("string"==typeof i)if("open"===i){var o,a=y?n.data("magnificPopup"):n[0].magnificPopup,r=parseInt(arguments[1],10)||0;a.items?o=a.items[r]:(o=n,a.delegate&&(o=o.find(a.delegate)),o=o.eq(r)),t._openClick({mfpEl:o},n,a)}else t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1));else i=e.extend(!0,{},i),y?n.data("magnificPopup",i):n[0].magnificPopup=i,t.addGroup(n,i);return n};var T,_,z,P="inline",S=function(){z&&(_.after(z.addClass(T)).detach(),z=null)};e.magnificPopup.registerModule(P,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(P),b(s+"."+P,(function(){S()}))},getInline:function(i,n){if(S(),i.src){var o=t.st.inline,a=e(i.src);if(a.length){var r=a[0].parentNode;r&&r.tagName&&(_||(T=o.hiddenClass,_=w(T),T="mfp-"+T),z=a.after(_).detach().removeClass(T)),t.updateStatus("ready")}else t.updateStatus("error",o.tNotFound),a=e("<div>");return i.inlineElement=a,a}return t.updateStatus("ready"),t._parseMarkup(n,{},i),n}}});var E,O="ajax",M=function(){E&&e(document.body).removeClass(E)},B=function(){M(),t.req&&t.req.abort()};e.magnificPopup.registerModule(O,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){t.types.push(O),E=t.st.ajax.cursor,b(s+"."+O,B),b("BeforeChange."+O,B)},getAjax:function(i){E&&e(document.body).addClass(E),t.updateStatus("loading");var n=e.extend({url:i.src,success:function(n,o,a){var r={data:n,xhr:a};I("ParseAjax",r),t.appendContent(e(r.data),O),i.finished=!0,M(),t._setFocus(),setTimeout((function(){t.wrap.addClass(m)}),16),t.updateStatus("ready"),I("AjaxContentAdded")},error:function(){M(),i.finished=i.loadError=!0,t.updateStatus("error",t.st.ajax.tError.replace("%url%",i.src))}},t.st.ajax.settings);return t.req=e.ajax(n),""}}});var A,L=function(e){if(e.data&&void 0!==e.data.title)return e.data.title;var i=t.st.image.titleSrc;if(i){if("function"==typeof i)return i.call(t,e);if(e.el)return e.el.attr(i)||""}return""};e.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,n=".image";t.types.push("image"),b(d+n,(function(){"image"===t.currItem.type&&i.cursor&&e(document.body).addClass(i.cursor)})),b(s+n,(function(){i.cursor&&e(document.body).removeClass(i.cursor),C.off("resize"+f)})),b("Resize"+n,t.resizeImage),t.isLowIE&&b("AfterChange",t.resizeImage)},resizeImage:function(){var e=t.currItem;if(e&&e.img&&t.st.image.verticalFit){var i=0;t.isLowIE&&(i=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",t.wH-i)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,A&&clearInterval(A),e.isCheckingImgSize=!1,I("ImageHasSize",e),e.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(e){var i=0,n=e.img[0],o=function(a){A&&clearInterval(A),A=setInterval((function(){n.naturalWidth>0?t._onImageHasSize(e):(i>200&&clearInterval(A),3===++i?o(10):40===i?o(50):100===i&&o(500))}),a)};o(1)},getImage:function(i,n){var o=0,a=function(){i&&(i.img[0].complete?(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("ready")),i.hasSize=!0,i.loaded=!0,I("ImageLoadComplete")):++o<200?setTimeout(a,100):r())},r=function(){i&&(i.img.off(".mfploader"),i===t.currItem&&(t._onImageHasSize(i),t.updateStatus("error",s.tError.replace("%url%",i.src))),i.hasSize=!0,i.loaded=!0,i.loadError=!0)},s=t.st.image,l=n.find(".mfp-img");if(l.length){var c=document.createElement("img");if(c.className="mfp-img",i.el&&i.el.find("img").length&&(c.alt=i.el.find("img").attr("alt")),i.img=e(c).on("load.mfploader",a).on("error.mfploader",r),c.src=i.src,e("body").hasClass("responsive-images-lightbox-support")){var d=i.el.data("srcset"),p=i.el.data("sizes");void 0!==d?(c.srcset=d,void 0!==p&&(c.sizes=p)):(void 0!==(d=i.el.find("img").attr("srcset"))&&(c.srcset=d),void 0!==(p=i.el.find("img").attr("sizes"))&&(c.sizes=p))}l.is("img")&&(i.img=i.img.clone()),(c=i.img[0]).naturalWidth>0?i.hasSize=!0:c.width||(i.hasSize=!1)}return t._parseMarkup(n,{title:L(i),img_replaceWith:i.img},i),t.resizeImage(),i.hasSize?(A&&clearInterval(A),i.loadError?(n.addClass("mfp-loading"),t.updateStatus("error",s.tError.replace("%url%",i.src))):(n.removeClass("mfp-loading"),t.updateStatus("ready")),n):(t.updateStatus("loading"),i.loading=!0,i.hasSize||(i.imgHidden=!0,n.addClass("mfp-loading"),t.findImageSize(i)),n)}}});var H;e.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(e){return e.is("img")?e:e.find("img")}},proto:{initZoom:function(){var e,i=t.st.zoom,n=".zoom";if(i.enabled&&t.supportsTransition){var o,a,r=i.duration,c=function(e){var t=e.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),n="all "+i.duration/1e3+"s "+i.easing,o={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},a="transition";return o["-webkit-"+a]=o["-moz-"+a]=o["-o-"+a]=o[a]=n,t.css(o),t},d=function(){t.content.css("visibility","visible")};b("BuildControls"+n,(function(){if(t._allowZoom()){if(clearTimeout(o),t.content.css("visibility","hidden"),!(e=t._getItemToZoom()))return void d();(a=c(e)).css(t._getOffset()),t.wrap.append(a),o=setTimeout((function(){a.css(t._getOffset(!0)),o=setTimeout((function(){d(),setTimeout((function(){a.remove(),e=a=null,I("ZoomAnimationEnded")}),16)}),r)}),16)}})),b(l+n,(function(){if(t._allowZoom()){if(clearTimeout(o),t.st.removalDelay=r,!e){if(!(e=t._getItemToZoom()))return;a=c(e)}a.css(t._getOffset(!0)),t.wrap.append(a),t.content.css("visibility","hidden"),setTimeout((function(){a.css(t._getOffset())}),16)}})),b(s+n,(function(){t._allowZoom()&&(d(),a&&a.remove(),e=null)}))}},_allowZoom:function(){return"image"===t.currItem.type},_getItemToZoom:function(){return!!t.currItem.hasSize&&t.currItem.img},_getOffset:function(i){var n,o=(n=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem)).offset(),a=parseInt(n.css("padding-top"),10),r=parseInt(n.css("padding-bottom"),10);o.top-=e(window).scrollTop()-a;var s={width:n.width(),height:(y?n.innerHeight():n[0].offsetHeight)-r-a};return void 0===H&&(H=void 0!==document.createElement("p").style.MozTransform),H?s["-moz-transform"]=s.transform="translate("+o.left+"px,"+o.top+"px)":(s.left=o.left,s.top=o.top),s}}});var F="iframe",j=function(e){if(t.currTemplate[F]){var i=t.currTemplate[F].find("iframe");i.length&&(e||(i[0].src="//about:blank"),t.isIE8&&i.css("display",e?"block":"none"))}};e.magnificPopup.registerModule(F,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen allow="autoplay; encrypted-media" ></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(F),b("BeforeChange",(function(e,t,i){t!==i&&(t===F?j():i===F&&j(!0))})),b(s+"."+F,(function(){j()}))},getIframe:function(i,n){var o=i.src,a=t.st.iframe;e.each(a.patterns,(function(){if(o.indexOf(this.index)>-1)return this.id&&(o="string"==typeof this.id?o.substr(o.lastIndexOf(this.id)+this.id.length,o.length):this.id.call(this,o)),o=this.src.replace("%id%",o),!1}));var r={};return a.srcAction&&(r[a.srcAction]=o),t._parseMarkup(n,r,i),t.updateStatus("ready"),n}}});var N=function(e){var i=t.items.length;return e>i-1?e-i:e<0?i+e:e},W=function(e,t,i){return e.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};e.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var i=t.st.gallery,o=".mfp-gallery";if(t.direction=!0,!i||!i.enabled)return!1;a+=" mfp-gallery",b(d+o,(function(){i.navigateByImgClick&&t.wrap.on("click"+o,".mfp-img",(function(){if(t.items.length>1)return t.next(),!1})),n.on("keydown"+o,(function(e){37===e.keyCode?t.prev():39===e.keyCode&&t.next()}))})),b("UpdateStatus"+o,(function(e,i){i.text&&(i.text=W(i.text,t.currItem.index,t.items.length))})),b(c+o,(function(e,n,o,a){var r=t.items.length;o.counter=r>1?W(i.tCounter,a.index,r):""})),b("BuildControls"+o,(function(){if(t.items.length>1&&i.arrows&&!t.arrowLeft){var n=i.arrowMarkup,o=t.arrowLeft=e(n.replace(/%title%/gi,i.tPrev).replace(/%dir%/gi,"left")).addClass(v),a=t.arrowRight=e(n.replace(/%title%/gi,i.tNext).replace(/%dir%/gi,"right")).addClass(v);o.on("click",(function(){t.prev()})),a.on("click",(function(){t.next()})),t.container.append(o.add(a))}})),b(p+o,(function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout),t._preloadTimeout=setTimeout((function(){t.preloadNearbyImages(),t._preloadTimeout=null}),16)})),b(s+o,(function(){n.off(o),t.wrap.off("click"+o),t.arrowRight=t.arrowLeft=null}))},next:function(){t.direction=!0,t.index=N(t.index+1),t.updateItemHTML()},prev:function(){t.direction=!1,t.index=N(t.index-1),t.updateItemHTML()},goTo:function(e){t.direction=e>=t.index,t.index=e,t.updateItemHTML()},preloadNearbyImages:function(){var e,i=t.st.gallery.preload,n=Math.min(i[0],t.items.length),o=Math.min(i[1],t.items.length);for(e=1;e<=(t.direction?o:n);e++)t._preloadItem(t.index+e);for(e=1;e<=(t.direction?n:o);e++)t._preloadItem(t.index-e)},_preloadItem:function(i){if(i=N(i),!t.items[i].preloaded){var n=t.items[i];if(n.parsed||(n=t.parseEl(i)),I("LazyLoad",n),"image"===n.type&&(n.img=e('<img class="mfp-img" />').on("load.mfploader",(function(){n.hasSize=!0})).on("error.mfploader",(function(){n.hasSize=!0,n.loadError=!0,I("LazyLoadError",n)})).attr("src",n.src),e("body").hasClass("responsive-images-lightbox-support")&&n.el.length>0)){var o=e(n.el[0]),a=o.data("srcset"),r=o.data("sizes");if(void 0!==a)n.img.attr("srcset",a),void 0!==r&&n.img.attr("sizes",r);else{var s=e(n.el[0]).find("img");void 0!==(a=s.attr("srcset"))&&n.img.attr("srcset",a),void 0!==(r=s.attr("sizes"))&&n.img.attr("sizes",r)}}n.preloaded=!0}}}});var R="retina";e.magnificPopup.registerModule(R,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,(function(e){return"@2x"+e}))},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var e=t.st.retina,i=e.ratio;(i=isNaN(i)?i():i)>1&&(b("ImageHasSize."+R,(function(e,t){t.img.css({"max-width":t.img[0].naturalWidth/i,width:"100%"})})),b("ElementParse."+R,(function(t,n){n.src=e.replaceSrc(n,i)})))}}}}),k()}(jQuery);(function(e){'use strict';e.avia_utilities=e.avia_utilities||{};e.avia_utilities.av_popup={type:'image',mainClass:'avia-popup mfp-zoom-in',tLoading:'',tClose:'',removalDelay:300,closeBtnInside:!0,closeOnContentClick:!1,midClick:!0,autoFocusLast:!1,fixedContentPos:e('html').hasClass('av-default-lightbox-no-scroll'),iframe:{patterns:{youtube:{index:'youtube.com/watch',id:function(e){let m=e.match(/[\\?\\&]v=([^\\?\\&]+)/),id,params;if(!m||!m[1]){return null};id=m[1];params=e.split('/watch');params=params[1];return id+params},src:'//www.youtube.com/embed/%id%'},youtube_shorts:{index:'youtube.com/shorts',id:function(e){let m=e.match(/(?:youtube\.com\/shorts\/)([a-zA-Z0-9_-]*)/),id,params;if(!m||!m[1]){return null};id=m[1];params=e.split('/shorts');params=params[1];return id+params},src:'//www.youtube.com/embed/%id%'},vimeo:{index:'vimeo.com/',id:function(e){let m=e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})\/(\w{6,11})[?]?.*/),params,vid;m=m?m:e.match(/(https?:\/\/)?(www.)?(player.)?vimeo.com\/([a-z]*\/)*([0-9]{6,11})[?]?.*/);if(!m||!m[5]){return null};vid=m[5];params=e.split('?');params=params[1]?'?'+params[1]:'';if(m[6]){vid=vid+(params?params+'&h=':'?h=')+m[6]}else{vid=vid+params};return vid},src:'//player.vimeo.com/video/%id%'}}},image:{titleSrc:function(t){var a=t.el.attr('title');if(!a){a=t.el.find('img').attr('title')};if(!a){a=t.el.parent().next('.wp-caption-text').html()};if(typeof a!='undefined'){return a};if(!e('body').hasClass('avia-mfp-show-alt-text')){return''};var i=t.el.attr('alt');if(typeof i!='undefined'){return i};i=t.el.find('img').attr('alt');if(typeof i!='undefined'){return i};return''}},gallery:{tPrev:'',tNext:'',tCounter:'%curr% / %total%',enabled:!0,preload:[1,1]},callbacks:{beforeOpen:function(){if(this.st.el&&this.st.el.data('fixed-content')){this.fixedContentPos=!0};let elementCustomClass='';if(this.st.el&&this.st.el.data('custom_class')){elementCustomClass=this.st.el.data('custom_class').trim()}else if(this.st.el){let element=e(this.st.el),href=element.attr('href');if((href.indexOf('youtube.com')>=0)&&(href.indexOf('/shorts/')>=0)){elementCustomClass='avia-mfp-is-video avia-mfp-video-9-16'}};if(elementCustomClass){this.st.mainClass+=' '+elementCustomClass}},open:function(){e.magnificPopup.instance.next=function(){var t=this;t.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.next.call(t)},120)};e.magnificPopup.instance.prev=function(){var t=this;t.wrap.removeClass('mfp-image-loaded');setTimeout(function(){e.magnificPopup.proto.prev.call(t)},120)};if(this.st.el&&this.st.el.data('av-extra-class')){this.wrap.addClass(this.currItem.el.data('av-extra-class'))};this.wrap.avia_swipe_trigger({prev:'.mfp-arrow-left',next:'.mfp-arrow-right'})},markupParse:function(t,a,r){if(typeof a.img_replaceWith=='undefined'||typeof a.img_replaceWith.length=='undefined'||a.img_replaceWith.length==0){return};var o=e(a.img_replaceWith[0]);if(typeof o.attr('alt')!='undefined'){return};var i=r.el.attr('alt');if(typeof i=='undefined'){i=r.el.find('img').attr('alt')};if(typeof i!='undefined'){o.attr('alt',i)};return},imageLoadComplete:function(){var e=this;setTimeout(function(){e.wrap.addClass('mfp-image-loaded')},16)},change:function(){if(this.currItem.el){var e=this.currItem.el;this.content.find('.av-extra-modal-content, .av-extra-modal-markup').remove();if(e.data('av-extra-content')){var a=e.data('av-extra-content');this.content.append('<div class=\'av-extra-modal-content\'>'+a+'</div>')};if(e.data('av-extra-markup')){var t=e.data('av-extra-markup');this.wrap.append('<div class=\'av-extra-modal-markup\'>'+t+'</div>')}}}}};e.fn.avia_activate_lightbox=function(t){var i={groups:['.avia-slideshow','.avia-gallery','.av-horizontal-gallery','.av-instagram-pics','.portfolio-preview-image','.portfolio-preview-content','.isotope','.post-entry','.sidebar','#main','.main_menu','.woocommerce-product-gallery'],autolinkElements:'a.lightbox, a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=webp], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="youtube.com/shorts"] , a[href*="screenr.com"], a[href*="iframe=true"]',videoElements:'a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="youtube.com/shorts"] , a[href*="screenr.com"], a[href*="iframe=true"]',exclude:'.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"], .pagination a'},a=e.extend({},i,t),r=!e('html').is('.av-custom-lightbox');if(!r){return this};return this.each(function(){var i=e(this),o=e(a.videoElements,this).not(a.exclude).addClass('mfp-iframe'),r=!i.is('body')&&!i.is('.ajax_slide');for(var t=0;t<a.groups.length;t++){i.find(a.groups[t]).each(function(){var t=e(a.autolinkElements,this);if(r){t.removeClass('lightbox-added')};t.not(a.exclude).addClass('lightbox-added').magnificPopup(e.avia_utilities.av_popup)})}})}})(jQuery);(function(i){'use strict';i(function(){if(i.fn.aviaMegamenu){i('.main_menu .menu').aviaMegamenu({modify_position:!0})}});i.fn.aviaMegamenu=function(n){var e={modify_position:!0,delay:300};var t=i.extend(e,n);return this.each(function(){var f=i('html').first(),g=i('#main .container').first(),l=f.filter('.html_menu_left, .html_logo_center').length,r=i.avia_utilities.isMobile,o=i(this),s=o.find('>li:not(.ignore_menu)'),n=s.find('>div').parent().css({overflow:'hidden'}),d=o.find('>.current-menu-item>a, >.current_page_item>a'),h=s.find('>ul').parent(),p=o.parent(),m=o.parents('.main_menu').eq(0),v=p.width(),e={},a=[];if(!d.length){o.find('.current-menu-ancestor, .current_page_ancestor').eq(0).find('a').eq(0).parent().addClass('active-parent-item')};if(!f.is('.html_header_top')){t.modify_position=!1};s.on('click','a',function(i){if(this.href==window.location.href+'#'||this.href==window.location.href+'/#'){i.preventDefault()}});s.each(function(){var n=i(this),a=n.position(),o=n.find('div').first().css({opacity:0,display:'none'}),s='';if(!o.length){s=n.find('>ul').css({display:'none'})};if(o.length||s.length){var e=n.addClass('dropdown_ul_available').find('>a');e.append('<span class="dropdown_available"></span>');if(typeof e.attr('href')!='string'||e.attr('href')=='#'){e.css('cursor','default').on('click',function(i){i.preventDefault()})}};if(t.modify_position&&o.length){n.on('mouseenter focusin',function(){y(n,a,o,v)})}});function y(i,t,n,e){t=i.position();if(!l){if(t.left+n.width()<e){n.css({right:-n.outerWidth()+i.outerWidth()})}else if(t.left+n.width()>e){n.css({right:-m.outerWidth()+(t.left+i.outerWidth())})}}else{if(n.width()>t.left+i.outerWidth()){n.css({left:(t.left*-1)})}else if(t.left+n.width()>e){n.css({left:(n.width()-t.left)*-1})}}};function c(i){if(e[i]==!0){var t=n.eq(i).css({overflow:'visible'}).find('div').first(),o=n.eq(i).find('a').first();a['check'+i]=!0;t.stop().css('display','block').animate({opacity:1},300);if(t.length){o.addClass('open-mega-a')}}};function u(t){if(e[t]==!1){n.eq(t).find('>a').removeClass('open-mega-a');var o=n.eq(t),s=o.find('div').first();s.stop().css('display','block').animate({opacity:0},300,function(){i(this).css('display','none');o.css({overflow:'hidden'});a['check'+t]=!1})}};if(r){n.each(function(n){i(this).on('click',function(){if(a['check'+n]!=!0){return!1}})})};n.each(function(n){i(this).on('mouseenter',function(){e[n]=!0;setTimeout(function(){c(n)},t.delay)}).on('mouseleave',function(){e[n]=!1;setTimeout(function(){u(n)},t.delay)});i(this).find('a').on('focus',function(){e[n]=!0;setTimeout(function(){c(n)},50)}).on('blur',function(){e[n]=!1;setTimeout(function(){u(n)},50)})});h.find('li').addBack().each(function(){var t=i(this),n=t.find('ul').first(),o=!1;if(n.length){n.css({display:'block',opacity:0,visibility:'hidden'});var e=t.find('>a');e.on('mouseenter',function(){n.stop().css({visibility:'visible'}).animate({opacity:1})});e.on('focus',function(){n.stop().css({visibility:'visible'}).animate({opacity:1});n.find('li').on('focusin',function(){n.stop().css({visibility:'visible'}).animate({opacity:1})}).on('focusout',function(){n.stop().animate({opacity:0},function(){n.css({visibility:'hidden'})})})}).on('focusout',function(){i(this).trigger('mouseleave')});t.on('mouseleave',function(){n.stop().animate({opacity:0},function(){n.css({visibility:'hidden'})})})}})})}})(jQuery);(function(e){'use strict';e(function(){i()});function a(e,i,a){if(e[0].classList){if(i=='add'){e[0].classList.add(a)}else{e[0].classList.remove(a)}}else{if(i=='add'){e.addClass(a)}else{e.removeClass(a)}}};function i(){var d=e(window),i=e('.html_header_top.html_header_sticky #header'),r=e('.av_header_unstick_top');if(!i.length&&!r.length){return};var v=e('#header_main .container .logo img, #header_main .container .logo svg, #header_main .container .logo a'),t=e('#header_main .container:not(#header_main_alternate>.container), #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), #header_main #menu-item-shop .cart_dropdown_link'),n=e(t).first().height(),g=e.avia_utilities.isMobile,p=e('#scroll-top-link'),h=i.is('.av_header_transparency'),s=i.is('.av_header_shrinking'),c=i.data('av_shrink_factor'),o=n/2.0,f=n/2.0,m=i.find('#header_meta'),u=m.length?m.outerHeight():0,l=function(){var l=d.scrollTop(),c=0,m=l;if(r){l-=u};if(l<0){l=0};if(s&&!g){if(l<o){c=n-l;if(l<=0){c=n};a(i,'remove','header-scrolled')}else{c=f;a(i,'add','header-scrolled')};if(l-30<n){a(i,'remove','header-scrolled-full')}else{a(i,'add','header-scrolled-full')};t.css({'height':c+'px','lineHeight':c+'px'});v.css({'maxHeight':c+'px'});e(':root')[0].style.setProperty('--enfold-header-height',c+'px')};if(r.length){if(l<=0){if(m<=0){m=0};r.css({'margin-top':'-'+m+'px'})}else{r.css({'margin-top':'-'+u+'px'})}};if(h){if(l>50){a(i,'remove','av_header_transparency')}else{a(i,'add','av_header_transparency')}}};if(typeof c!='undefined'){const value=parseInt(c);if(!isNaN(value)){o=n*(value/100.0);f=n-o}};if(e('body').is('.avia_deactivate_menu_resize')){s=!1};if(!h&&!s&&!r.length){return};d.on('debouncedresize',function(){n=e(t).attr('style','').first().height();l()});d.on('scroll',function(){window.requestAnimationFrame(l)});l()}})(jQuery);(function(n){'use strict';var r=null,a=null,t=null,i=null,e=null;n(function(){r=n(window);a=n('body');if(a.hasClass('av-curtain-footer')){o();return};return});function o(){i=a.find('.av-curtain-footer-container');if(i.length==0){a.removeClass('av-curtain-footer av-curtain-activated av-curtain-numeric av-curtain-screen');return};t=n('<div id="av-curtain-footer-placeholder"></div>');i.before(t);if(a.hasClass('av-curtain-numeric')){e=i.data('footer_max_height');if('undefined'==typeof e){e=70}else{e=parseInt(e,10);if(isNaN(e)){e=70}}};u();r.on('debouncedresize',u)};function u(){var n=Math.floor(i.outerHeight()),o=r.innerHeight();if(null==e){t.css({height:n+'px'})}else{var u=Math.floor(o*(e/100.0));if(n>u){a.removeClass('av-curtain-activated');t.css({height:''})}else{a.addClass('av-curtain-activated');t.css({height:n+'px'})}}}})(jQuery);(function(t){'use strict';t(function(){t('.avia_auto_toc').each(function(){var f=t(this).attr('id'),r='h1',c=[],e='',i=t(this).find('.avia-toc-container');if(i.length){var n=i.attr('data-level'),o=i.attr('data-exclude');if(typeof n!='undefined'){r=n};if(typeof o!='undefined'){e=o.trim()}};c=r.split(',');t('.entry-content-wrapper').find(r).each(function(){var r=t(this);if(r.hasClass('av-no-toc')){return};if(e!=''&&(r.hasClass(e)||r.parent().hasClass(e))){return};var n=r.attr('id'),l=r.prop('tagName').toLowerCase(),f=r.text(),h=c.indexOf(l);if(typeof n=='undefined'){var o=a(f);r.attr('id',o);n=o};var s='<a href="#'+n+'" class="avia-toc-link avia-toc-level-'+h+'"><span>'+f+'</span></a>';i.append(s)});t('.avia-toc-smoothscroll .avia-toc-link').on('click',function(a){a.preventDefault();var r=t(this).attr('href'),e=50,i=t('.html_header_top.html_header_sticky #header');if(i.length){e=i.outerHeight()+50};t('html,body').animate({scrollTop:t(r).offset().top-e})})})});function a(t){return t.toLowerCase().replace(/[^a-z0-9]+/g,'-').replace(/^-+|-+$/g,'-').replace(/^-+|-+$/g,'')}})(jQuery);(function(e){'use strict';var t=e('.has-background, .has-text-color');t.each(function(s){var t=e(this);if(!(t.hasClass('has-background')||t.hasClass('has-text-color'))){return};var o=t.attr('class').split(/\s+/),a='',r='';if(t.hasClass('has-background')){e.each(o,function(s,e){e=e.trim().toLowerCase();if(0==e.indexOf('has-col-')&&-1!=e.indexOf('-background-color')){a=e.replace('has-col-','');a=a.replace('-background-color','');a=a.replace(/-|[^0-9a-fA-F]/g,'');if(a.length==3||a.length==6){t.css({'background-color':'','border-color':''});r='undefined'!=typeof t.attr('style')?t.attr('style')+';':'';t.attr('style',r+' background-color: #'+a+'; border-color: #'+a+';')}}})};if(t.hasClass('has-text-color')){e.each(o,function(s,e){e=e.trim().toLowerCase();if(0==e.indexOf('has-col-')&&-1==e.indexOf('-background-color')&&-1!=e.indexOf('-color')){var a=e.replace('has-col-','');a=a.replace('-color','');a=a.replace(/-|[^0-9a-fA-F]/g,'');if(a.length==3||a.length==6){t.css('color','');r='undefined'!=typeof t.attr('style')?t.attr('style')+';':'';t.attr('style',r+' color: #'+a+';')}}})}});t=e('[class^="has-fs-"], [class$="-font-size"]');t.each(function(t){var a=e(this),s=a.attr('class').split(/\s+/);e.each(s,function(t,e){e=e.trim().toLowerCase();if(0==e.indexOf('has-fs-')&&-1!=e.indexOf('-font-size')){e=e.replace('has-fs-','');e=e.replace('-font-size','');e=e.split('-');if(e.length!=2){return};var s='undefined'!=typeof a.attr('style')?a.attr('style')+';':'';a.attr('style',s+' font-size:'+e[0]+e[1]+';')}})})})(jQuery);if(typeof window.avia_cookie_consent_modal_callback=='undefined'){window.avia_cookie_consent_modal_callback={init:null,open:null,close:null}};var avia_cookie_consent_modal_callback=window.avia_cookie_consent_modal_callback;(function(e){'use strict';e(function(){var c=!1;try{var N=sessionStorage.getItem('aviaCookieRefused')}catch(C){c=!0};var i=e('html'),d=e('.avia-cookie-consent-wrap'),o=e('.avia-cookie-consent'),n=e('#av-cookie-consent-badge'),b=e('.avia-cookie-consent-button.avia-cookie-close-bar'),u=o.attr('data-contents'),s=r('aviaCookieConsent'),f=!c?sessionStorage.getItem('aviaCookieRefused'):null,w=r('aviaPrivacyRefuseCookiesHideBar'),p=D(),t=i.find('a.avia-privacy-reload-tooltip-link').first(),P=i.hasClass('av-cookies-essential-only');if(c||f){i.addClass('av-cookies-session-refused')};if(P&&s==null){m();k('set');a('aviaCookieConsent','xxxxx||v1.0',365);a('aviaPrivacyMustOptInSetting',!0,365)};if(c||f||document.cookie.match(/aviaCookieConsent/)){i.removeClass('av-cookies-user-silent-accept')};if(t.length>0){new e.AviaTooltip({'class':'avia-privacy-reload-tooltip',data:'avia-privacy-reload-tooltip',event:'click',position:'top',scope:'body',attach:'element',within_screen:!0})};if('undefined'!=typeof e.avia_utilities.av_popup&&'function'!=typeof avia_cookie_consent_modal_callback.init){avia_cookie_consent_modal_callback.init=A;avia_cookie_consent_modal_callback.open=null;avia_cookie_consent_modal_callback.close=x};m();if(i.hasClass('avia-cookie-check-browser-settings')){I()};if(u!=s){s=null};var v=s==null;if(!i.hasClass('av-cookies-consent-message-bar-only')){if(!w){v=!0};if(f){v=!1};if(!(s||f)||v){o.removeClass('cookiebar-hidden');l('show')}}else if(v){o.removeClass('cookiebar-hidden');l('show')};b.on('click',function(s){s.preventDefault();var c=e(this);if(c.hasClass('avia-cookie-select-all')){k('select_all')};a('aviaCookieConsent',u,365);o.addClass('cookiebar-hidden');n.addClass('avia_pop_class');l('hide');if(c.hasClass('avia-cookie-consent-modal-button')){if('function'==typeof avia_cookie_consent_modal_callback.close){avia_cookie_consent_modal_callback.close(this)}};if(i.hasClass('av-cookies-consent-message-bar-only')){return};if(i.hasClass('av-cookies-needs-opt-in')){a('aviaPrivacyMustOptInSetting',!0,365)}else{a('aviaPrivacyMustOptInSetting',!1,-60)};k('set');if(i.hasClass('avia-cookie-reload-accept')){if(t.length>0){t.closest('.avia-privacy-reload-tooltip-link-container').addClass('av-display-tooltip');t.trigger('click')};location.reload(!0)};c.trigger('avia-cookie-settings-changed')});e('.avia-cookie-consent-button.avia-cookie-hide-notification').on('click',function(a){a.preventDefault();var r=e(this);if('undefined'!=typeof AviaPrivacyCookieAdditionalData.cookie_refuse_button_alert&&''!=AviaPrivacyCookieAdditionalData.cookie_refuse_button_alert.trim()){if(!window.confirm(AviaPrivacyCookieAdditionalData.cookie_refuse_button_alert)){return}};if(r.hasClass('avia-cookie-consent-modal-button')){if('function'==typeof avia_cookie_consent_modal_callback.close){avia_cookie_consent_modal_callback.close(this)}};k('reset');if(!c){try{sessionStorage.setItem('aviaCookieRefused',u)}catch(s){avia_log('Info - Session Storage: Browser memory limit reached. Your Browser does not offer session storage to save cookie settings.');avia_log(s)}};i.addClass('av-cookies-session-refused');i.removeClass('av-cookies-user-silent-accept');o.addClass('cookiebar-hidden');n.addClass('avia_pop_class');l('hide');if(i.hasClass('avia-cookie-reload-no-accept')){if(t.length>0){t.closest('.avia-privacy-reload-tooltip-link-container').addClass('av-display-tooltip');t.trigger('click')};location.reload(!0)};r.trigger('avia-cookie-settings-changed')});if('function'==typeof avia_cookie_consent_modal_callback.init){var y={activate:'.avia-cookie-consent-button.avia-cookie-info-btn',source:'#av-consent-extra-info'};avia_cookie_consent_modal_callback.init(y);e('.avia-cookie-consent-button.avia-cookie-info-btn').on('click',function(e){if('function'==typeof avia_cookie_consent_modal_callback.open){avia_cookie_consent_modal_callback.open(this)}})}else{e('.avia-cookie-consent-button.avia-cookie-info-btn').on('click',function(e){e.preventDefault();var i='We need a lightbox to show the modal popup. Please enable the built in lightbox in Theme Options Tab or include your own modal window plugin.\n\nYou need to connect this plugin in JavaScript with callback wrapper functions - see avia_cookie_consent_modal_callback in file enfold\js\avia-snippet-cookieconsent.js',a='string'==typeof AviaPrivacyCookieAdditionalData.no_lightbox?AviaPrivacyCookieAdditionalData.no_lightbox:i;alert(a)})};n.on('click',function(e){e.preventDefault();o.removeClass('cookiebar-hidden');n.removeClass('avia_pop_class');l('show')});function A(i){var a={type:'inline',midClick:!0,closeOnBgClick:!1,enableEscapeKey:!1,closeOnContentClick:!1,overflowY:scroll,items:{src:'#av-consent-extra-info',type:'inline'},callbacks:{open:function(){e('html').css({overflow:'hidden','max-height':'100%'})},close:function(){e('html').css({overflow:'','max-height':''})}}};a=e.extend({},e.avia_utilities.av_popup,a);e('.avia-cookie-info-btn').magnificPopup(a)};function x(){e.magnificPopup.close();i.trigger('avia-cookie-settings-changed','avia_magnificPopup_close')};function D(){var i={};if('undefined'!=typeof AviaPrivacyCookieAdditionalData.remove_custom_cookies){e.each(AviaPrivacyCookieAdditionalData.remove_custom_cookies,function(e,a){var o=a.cookie_path.trim();i[a.cookie_name]=(''!=o)?o:'/'})};return i};function a(e,i,a,o){var t='/';if('string'==typeof o){if(''!=o){t=o}}else if('string'==typeof p[e]){t=p[e]};if(a){var n=new Date();n.setTime(n.getTime()+(a*24*60*60*1000));var s='; expires='+n.toGMTString()}else{var s=''};document.cookie=e+'='+i+s+'; path='+t+'; samesite=strict'};function T(e,i,t){i=('undefined'==typeof i)?'equals':i.trim();var s=[],c=document.cookie.split(';');for(var n=0;n<c.length;n++){var r=c[n],l=r.split('='),a=l[0].trim(),o=!1;switch(i){case'starts_with':o=a.startsWith(e);break;case'contains':if(!a.startsWith('aviaPrivacyCustomCookie')){o=a.indexOf(e)!=-1};break;case'equals':case'':default:o=a==e;break};if(o){s.push({name:a,path:t})}};return s};function r(e){var t=document.cookie.split(';');for(var o=0;o<t.length;o++){var n=t[o],s=n.split('='),a=s[0].trim();if(a==e){a+='=';var i=n.replace(a,'');i=i.trim();return i}};return null};function k(o){var t=e('.av-toggle-switch.av-cookie-disable-external-toggle');t.each(function(){var n=e(this),i=n.find('input'),r=i.attr('name'),t=!0,s=360;if(o=='select_all'){if(!i.prop('checked')){i.trigger('click')};return}else if(o=='set'){if(i.prop('checked')&&n.hasClass('av-cookie-save-unchecked')||!1==i.prop('checked')&&n.hasClass('av-cookie-save-checked')){t=!1;s=-60}}else{var c=i.closest('.av-hidden-escential-sc');if(0==c.length){i.prop('checked',!1)};t=!1;s=-60};a(r,t,s)});if(o=='reset'){a('aviaCookieConsent',!1,-60);a('aviaPrivacyMustOptInSetting',!1,-60)}else if(o=='set'){if(!c){try{sessionStorage.removeItem('aviaCookieRefused')}catch(n){avia_log('Info - Session Storage: Browser refused to clear cookie info.');avia_log(n)}};i.removeClass('av-cookies-session-refused')}};function h(){if(i.hasClass('av-cookies-consent-message-bar-only')){return};var e=document.cookie.match(/aviaCookieConsent/)!=null,o=document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)!=null,n=document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)!=null,a=[];if(!(e&&o&&n)){if(e&&o){a.push('aviaCookieConsent','aviaPrivacyRefuseCookiesHideBar','aviaPrivacyMustOptInSetting')}else if(e){a.push('aviaCookieConsent','aviaPrivacyMustOptInSetting')};S(a)}else{O()};g();window.setTimeout(h,300)};function O(){if('undefined'==typeof AviaPrivacyCookieAdditionalData.remove_custom_cookies){return};e.each(AviaPrivacyCookieAdditionalData.remove_custom_cookies,function(e,i){var n=r(i.avia_cookie_name);if(n!=null){var o=T(i.cookie_name,i.cookie_compare_action,i.cookie_path);for(var e=0;e<o.length;e++){a(o[e].name,!1,-60,o[e].path)}}})};function S(o){if(i.hasClass('av-cookies-user-silent-accept')){return};if(!Array.isArray(o)){o=[]};if(e('body').hasClass('logged-in')&&'undefined'!=typeof AviaPrivacyCookieAdditionalData.admin_keep_cookies){e.merge(o,AviaPrivacyCookieAdditionalData.admin_keep_cookies)};o=o.map(function(e){return e.trim().toLowerCase()});var n=document.cookie.split(';').map(function(e){return e.trim()});e.each(n,function(i,n){if(''==n){return};var r=n.split('='),s=r[0].trim(),c=s.toLowerCase();if(e.inArray(c,o)>=0){return};var t=!0;e.each(o,function(e,i){if(i.indexOf('*')>=0){var a=i.replace('*','');if(c.startsWith(a)){t=!1;return!1}}});if(t){a(s,!1,-60);return}})};function g(){if('undefined'==typeof AviaPrivacyCookieConsent){return};var n=e('.avia-cookie-privacy-cookie-info');if(0==n.length){return};var a=[],i='',o=document.cookie.split(';');o.sort(function(e,i){var e=e.split('='),i=i.split('=');if(e[0]<i[0]){return-1}else if(e[0]>i[0]){return 1};return 0});e.each(o,function(i,o){if(''==o.trim()){return};var s=o.split('='),n=s[0].trim(),r='undefined'!=typeof s[1]?s[1].trim():'',t='';if(n in AviaPrivacyCookieConsent){t+=AviaPrivacyCookieConsent[n]}else{if('?' in AviaPrivacyCookieConsent){t+=AviaPrivacyCookieConsent['?']}else{t+='Usage unknown'};e.each(AviaPrivacyCookieConsent,function(e,i){var s=e.indexOf('*'),o=e.lastIndexOf('*');if(s<0&&o<0){return};if(o==(e.length-1)){e=e.substring(0,e.length-1)}else{o=-1};if(s==0){e=e.replace('*','')}else{s=-1};if(s<0&&o<0){return};var a=-1;if(s>=0&&o>=0){a=n.indexOf(e)}else if(o>=0){a=n.indexOf(e);if(a!=0){a=-1}}else{a=n.lastIndexOf(e);if(a<n.length-e.length){a=-1}};if(a>=0){t=i;return!1}})};var c='<strong>'+n+'</strong> ( '+r+' ) - '+t;a.push(c)});if(a.length>0){i+='<ul>';e.each(a,function(e,a){i+='<li>'+a+'</li>'});i+='</ul>'}else{var t='string'==typeof AviaPrivacyCookieAdditionalData.no_cookies_found?AviaPrivacyCookieAdditionalData.no_cookies_found:'No accessable cookies found in domain';i+='<p><strong>'+t+'</strong></p>'};n.html(i)};function m(){var i=e('#av-consent-extra-info').find('.av-hidden-escential-sc');if(i.length==0){return};if(s==null){return};var a=i.data('hidden_cookies');if('undefined'==typeof a){return};var o=a.split(',');e.each(o,function(e,a){if(null==r(a)){i.find('input.'+a).trigger('click')}})};function I(){if(window.doNotTrack||navigator.doNotTrack||navigator.msDoNotTrack||('undefined'!=typeof window.external&&'msTrackingProtectionEnabled' in window.external)){if(window.doNotTrack=='1'||navigator.doNotTrack=='yes'||navigator.doNotTrack=='1'||navigator.msDoNotTrack=='1'||('undefined'!=typeof window.external&&'msTrackingProtectionEnabled' in window.external&&window.external.msTrackingProtectionEnabled())){var i=e('input.aviaPrivacyGoogleTrackingDisabled');if(i.length>0){if(null==r('aviaPrivacyGoogleTrackingDisabled')){i.trigger('click')};var a=i.closest('.av-toggle-switch'),o=a.data('disabled_by_browser').trim();a.addClass('av-cookie-sc-disabled');a.append('<p><strong>'+o+'</strong></p>');i.attr('disabled','disabled')}}}};function l(e){if('undefined'==typeof e){e='hide'};if('show'!=e){d.attr('aria-hidden','true');d.find('[aria-hidden]').not('#av-cookie-consent-badge').attr('aria-hidden','true')}else{d.attr('aria-hidden','false');d.find('[aria-hidden]').not('#av-cookie-consent-badge').attr('aria-hidden','false')}};g();h();if(i.hasClass('avia-cookie-consent-modal-show-immediately')&&!i.hasClass('av-cookies-consent-message-bar-only')){if(!o.hasClass('cookiebar-hidden')){e('.avia-cookie-info-btn').trigger('click')}};if(n.length>0){if(o.hasClass('cookiebar-hidden')){n.addClass('avia_pop_class')}else{n.removeClass('avia_pop_class')}}})})(jQuery);'use strict';(function(a){var i=null,s=function(){if('undefined'==typeof window.av_google_map||'undefined'==typeof avia_framework_globals){return};if(i!=null){return};i=this;this.document=a(document);this.script_loading=!1;this.script_loaded=!1;this.script_source=avia_framework_globals.gmap_avia_api;this.maps={};this.loading_icon_html='<div class="ajax_load"><span class="ajax_load_inner"></span></div>';this.LoadAviaMapsAPIScript()};s.prototype={LoadAviaMapsAPIScript:function(){this.maps=a('body').find('.avia-google-map-container');if(this.maps.length==0){return};var o=!1;this.maps.each(function(i){var s=a(this);if(s.hasClass('av_gmaps_show_unconditionally')||s.hasClass('av_gmaps_show_delayed')){o=!0;return!1}});if(!o){return};var e=a('html').hasClass('av-cookies-needs-opt-in')||a('html').hasClass('av-cookies-can-opt-out'),i=!0,t=a('html').hasClass('av-cookies-user-silent-accept');if(e&&!t){if(!document.cookie.match(/aviaCookieConsent/)||a('html').hasClass('av-cookies-session-refused')){i=!1}else{if(!document.cookie.match(/aviaPrivacyRefuseCookiesHideBar/)){i=!1}else if(!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)){i=!1}else if(document.cookie.match(/aviaPrivacyGoogleMapsDisabled/)){i=!1}}};if(window.wp&&wp.hooks){i=wp.hooks.applyFilters('aviaCookieConsent_allow_continue',i)};if(!i){a('.av_gmaps_main_wrap').addClass('av-maps-user-disabled');return};if(typeof a.AviaMapsAPI!='undefined'){this.AviaMapsScriptLoaded();return};a('body').on('avia-google-maps-api-script-loaded',this.AviaMapsScriptLoaded.bind(this));this.script_loading=!0;var s=document.createElement('script');s.id='avia-gmaps-api-script';s.type='text/javascript';s.src=this.script_source;document.body.appendChild(s)},AviaMapsScriptLoaded:function(){this.script_loading=!1;this.script_loaded=!0;var i=this;this.maps.each(function(o){var s=a(this);if(s.hasClass('av_gmaps_show_page_only')){return};var e=s.data('mapid');if('undefined'==typeof window.av_google_map[e]){console.log('Map cannot be displayed because no info: '+e);return};if(s.hasClass('av_gmaps_show_unconditionally')){s.aviaMaps()}else if(s.hasClass('av_gmaps_show_delayed')){var t=s.closest('.av_gmaps_main_wrap'),n=t.find('a.av_text_confirm_link');n.on('click',i.AviaMapsLoadConfirmed)}else{console.log('Map cannot be displayed because missing display class: '+e)}})},AviaMapsLoadConfirmed:function(i){i.preventDefault();var s=a(this),o=s.closest('.av_gmaps_main_wrap').find('.avia-google-map-container');o.aviaMaps()}};a(function(){new s()})})(jQuery);function av_privacy_cookie_setter(cookie_name){var cookie_check=jQuery('html').hasClass('av-cookies-needs-opt-in')||jQuery('html').hasClass('av-cookies-can-opt-out');var toggle=jQuery('.'+cookie_name);toggle.each(function(){var container=jQuery(this).closest('.av-toggle-switch');if(cookie_check&&!document.cookie.match(/aviaCookieConsent/)){this.checked=container.hasClass('av-cookie-default-checked')}else if(cookie_check&&document.cookie.match(/aviaCookieConsent/)&&!document.cookie.match(/aviaPrivacyEssentialCookiesEnabled/)&&cookie_name!='aviaPrivacyRefuseCookiesHideBar'){if(cookie_name=='aviaPrivacyEssentialCookiesEnabled'){this.checked=!1}else{this.checked=container.hasClass('av-cookie-default-checked')}}else{if(container.hasClass('av-cookie-save-checked')){this.checked=document.cookie.match(cookie_name)?!0:!1}else{this.checked=document.cookie.match(cookie_name)?!1:!0}}});jQuery('.'+'av-switch-'+cookie_name).addClass('active');toggle.on('click',function(){var check=this.checked;jQuery('.'+cookie_name).each(function(){this.checked=check});var silent_accept_cookie=jQuery('html').hasClass('av-cookies-user-silent-accept');if(!silent_accept_cookie&&cookie_check&&!document.cookie.match(/aviaCookieConsent/)||sessionStorage.getItem('aviaCookieRefused')){return}var container=jQuery(this).closest('.av-toggle-switch');var action='';if(container.hasClass('av-cookie-save-checked')){action=this.checked?'save':'remove'}else{action=this.checked?'remove':'save'}if('remove'==action){document.cookie=cookie_name+'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;'}else{var theDate=new Date();var oneYearLater=new Date(theDate.getTime()+31536000000);document.cookie=cookie_name+'=true; Path=/; Expires='+oneYearLater.toGMTString()+';'}})};av_privacy_cookie_setter('aviaPrivacyRefuseCookiesHideBar');av_privacy_cookie_setter('aviaPrivacyEssentialCookiesEnabled');av_privacy_cookie_setter('aviaPrivacyGoogleTrackingDisabled');av_privacy_cookie_setter('aviaPrivacyGoogleWebfontsDisabled');av_privacy_cookie_setter('aviaPrivacyGoogleMapsDisabled');av_privacy_cookie_setter('aviaPrivacyGoogleReCaptchaDisabled');av_privacy_cookie_setter('aviaPrivacyVideoEmbedsDisabled')