1window.JSON||(window.JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i)return"null";gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1)h[c]=str(c,i)||"null";return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1)d=rep[c],typeof d=="string"&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}else for(d in i)Object.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e));return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var JSON=window.JSON,cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number")for(d=0;d<c;d+=1)indent+=" ";else typeof c=="string"&&(indent=c);rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number")return str("",{"":a});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object")for(c in e)Object.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c]);return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCo
1deAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(a,b){"use strict";var c=a.History=a.History||{},d=a.jQuery;if(typeof c.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");c.Adapter={bind:function(a,b,c){d(a).bind(b,c)},trigger:function(a,b,c){d(a).trigger(b,c)},extractEventData:function(a,c,d){var e=c&&c.originalEvent&&c.originalEvent[a]||d&&d[a]||b;return e},onDomLoad:function(a){d(a)}},typeof c.init!="undefined"&&c.init()}(window),function(a,b){"use strict";var c=a.document,d=a.setTimeout||d,e=a.clearTimeout||e,f=a.setInterval||f,g=a.History=a.History||{};if(typeof g.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");g.initHtml4=function(){if(typeof g.initHtml4.initialized!="undefined")return!1;g.initHtml4.initialized=!0,g.enabled=!0,g.savedHashes=[],g.isLastHash=function(a){var b=g.getHashByIndex(),c;return c=a===b,c},g.saveHash=function(a){return g.isLastHash(a)?!1:(g.savedHashes.push(a),!0)},g.getHashByIndex=function(a){var b=null;return typeof a=="undefined"?b=g.savedHashes[g.savedHashes.length-1]:a<0?b=g.savedHashes[g.savedHashes.length+a]:b=g.savedHashes[a],b},g.discardedHashes={},g.discardedStates={},g.discardState=function(a,b,c){var d=g.getHashByState(a),e;return e={discardedState:a,backState:c,forwardState:b},g.discardedStates[d]=e,!0},g.discardHash=function(a,b,c){var d={discardedHash:a,backState:c,forwardState:b};return g.discardedHashes[a]=d,!0},g.discardedState=function(a){var b=g.getHashByState(a),c;return c=g.discardedStates[b]||!1,c},g.discardedHash=function(a){var b=g.discardedHashes[a]||!1;return b},g.recycleState=function(a){var b=g.getHashByState(a);return g.discardedState(a)&&delete g.discardedStates[b],!0},g.emulated.hashChange&&(g.hashChangeInit=function(){g.checkerFunction=null;var b="",d,e,h,i;return g.isInternetExplorer()?(d="historyjs-iframe",e=c.createElement("iframe"),e.setAttribute("id",d),e.style.display="none",c.body.appendChild(e),e.contentWindow.document.open(),e.contentWindow.document.close(),h="",i=!1,g.checkerFunction=function(){if(i)return!1;i=!0;var c=g.getHash()||"",d=g.unescapeHash(e.contentWindow.document.location.hash)||"";return c!==b?(b=c,d!==c&&(h=d=c,e.contentWindow.document.open(),e.contentWindow.document.close(),e.contentWindow.document.location.hash=g.escapeHash(c)),g.Adapter.trigger(a,"hashchange")):d!==h&&(h=d,g.setHash(d,!1)),i=!1,!0}):g.checkerFunction=function(){var c=g.getHash();return c!==b&&(b=c,g.Adapter.trigger(a,"hashchange")),!0},g.intervalList.push(f(g.checkerFunction,g.options.hashChangeInterval)),!0},g.Adapter.onDomLoad(g.hashChangeInit)),g.emulated.pushState&&(g.onHashChange=function(b){var d=b&&b.newURL||c.location.href,e=g.getHashByUrl(d),f=null,h=null,i=null,j;return g.isLastHash(e)?(g.busy(!1),!1):(g.doubleCheckComplete(),g.saveHash(e),e&&g.isTraditionalAnchor(e)?(g.Adapter.trigger(a,"anchorchange"),g.busy(!1),!1):(f=g.extractState(g.getFullUrl(e||c.location.href,!1),!0),g.isLastSavedState(f)?(g.busy(!1),!1):(h=g.getHashByState(f),j=g.discardedState(f),j?(g.getHashByIndex(-2)===g.getHashByState(j.forwardState)?g.back(!1):g.forward(!1),!1):(g.pushState(f.data,f.title,f.url,!1),!0))))},g.Adapter.bind(a,"hashchange",g.onHashChange),g.pushState=function(b,d,e,f){if(g.getHashByUrl(e))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&g.busy())return g.pushQueue({scope:g,callback:g.pushState,args:arguments,queue:f}),!1;g.busy(!0);var h=g.createStateObject(b,d,e),i=g.getHashByState(h),j=g.getState(!1),k=g.getHashByState(j),l=g.getHash();return g.storeState(h),g.expectedStateId=h.id,g.recycleState(h),g.setTitle(h),i===k?(g.busy(!1),!1):i!==l&&i!==g.getShortUrl(c.location.href)?(g.setHash(i,!1),!1):(g.saveState(h),g.Adapter.trigger(a,"statechange"),g.busy(!1),!0)},g.replaceState=function(a,b,c,d){if(g.getHashByUrl(c))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(d!==!1&&g.busy())return g.pushQueue({scope:g,callback:g.replaceState,args:arguments,queue:d}),!1;g.busy(!0);var e=g.createStateObject(a,b,c),f=g.getState(!1),h=g.getStateByIndex(-2);return g.discardState(f,e,h),g.pushState(e.data,e.title,e.url,!1),!0}),g.emulated.pushState&&g.getHash()&&!g.emulated.hashChange&&g.Adapter.onDomLoad(function(){g.Adapter.trigger(a,"hashchange")})},typeof g.init!="undefined"&&g.init()}(window),function(a,b){"use strict";var c=a.console||b,d=a.document,e=a.navigator,f=a.sessionStorage||!1,g=a.setTimeout,h=a.clearTimeout,i=a.setInterval,j=a.clearInterval,k=a.JSON,l=a.alert,m=a.History=a.History||{},n=a.history;k.stringify=k.stringify||k.encode,k.parse=k.parse||k.decode;if(typeof m.init!="undefined")throw new Error("History.js Core has already been loaded...");m.init=function(){return typeof m.Adapter=="undefined"?!1:(typeof m.initCore!="undefined"&&m.initCore(),typeof m.initHtml4!="undefined"&&m.initHtml4(),!0)},m.initCore=function(){if(typeof m.initCore.initialized!="undefined")return!1;m.initCore.initialized=!0,m.options=m.options||{}
1,m.options.hashChangeInterval=m.options.hashChangeInterval||100,m.options.safariPollInterval=m.options.safariPollInterval||500,m.options.doubleCheckInterval=m.options.doubleCheckInterval||500,m.options.storeInterval=m.options.storeInterval||1e3,m.options.busyDelay=m.options.busyDelay||250,m.options.debug=m.options.debug||!1,m.options.initialTitle=m.options.initialTitle||d.title,m.intervalList=[],m.clearAllIntervals=function(){var a,b=m.intervalList;if(typeof b!="undefined"&&b!==null){for(a=0;a<b.length;a++)j(b[a]);m.intervalList=null}},m.debug=function(){(m.options.debug||!1)&&m.log.apply(m,arguments)},m.log=function(){var a=typeof c!="undefined"&&typeof c.log!="undefined"&&typeof c.log.apply!="undefined",b=d.getElementById("log"),e,f,g,h,i;a?(h=Array.prototype.slice.call(arguments),e=h.shift(),typeof c.debug!="undefined"?c.debug.apply(c,[e,h]):c.log.apply(c,[e,h])):e="\n"+arguments[0]+"\n";for(f=1,g=arguments.length;f<g;++f){i=arguments[f];if(typeof i=="object"&&typeof k!="undefined")try{i=k.stringify(i)}catch(j){}e+="\n"+i+"\n"}return b?(b.value+=e+"\n-----\n",b.scrollTop=b.scrollHeight-b.clientHeight):a||l(e),!0},m.getInternetExplorerMajorVersion=function(){var a=m.getInternetExplorerMajorVersion.cached=typeof m.getInternetExplorerMajorVersion.cached!="undefined"?m.getInternetExplorerMajorVersion.cached:function(){var a=3,b=d.createElement("div"),c=b.getElementsByTagName("i");while((b.innerHTML="<!--[if gt IE "+ ++a+"]><i></i><![endif]-->")&&c[0]);return a>4?a:!1}();return a},m.isInternetExplorer=function(){var a=m.isInternetExplorer.cached=typeof m.isInternetExplorer.cached!="undefined"?m.isInternetExplorer.cached:Boolean(m.getInternetExplorerMajorVersion());return a}
1,m.emulated={pushState:!Boolean(a.history&&a.history.pushState&&a.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(e.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(e.userAgent)),hashChange:Boolean(!("onhashchange"in a||"onhashchange"in d)||m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8)},m.enabled=!m.emulated.pushState,m.bugs={setHash:Boolean(!m.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),safariPoll:Boolean(!m.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),ieDoubleCheck:Boolean(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(m.isInternetExplorer()&&m.getInternetExplorerMajorVersion()<7)},m.isEmptyObject=function(a){for(var b in a)return!1;return!0},m.cloneObject=function(a){var b,c;return a?(b=k.stringify(a),c=k.parse(b)):c={},c},m.getRootUrl=function(){var a=d.location.protocol+"//"+(d.location.hostname||d.location.host);if(d.location.port||!1)a+=":"+d.location.port;return a+="/",a},m.getBaseHref=function(){var a=d.getElementsByTagName("base"),b=null,c="";return a.length===1&&(b=a[0],c=b.href.replace(/[^\/]+$/,"")),c=c.replace(/\/+$/,""),c&&(c+="/"),c},m.getBaseUrl=function(){var a=m.getBaseHref()||m.getBasePageUrl()||m.getRootUrl();return a},m.getPageUrl=function(){var a=m.getState(!1,!1),b=(a||{}).url||d.location.href,c;return c=b.replace(/\/+$/,"").replace(/[^\/]+$/,function(a,b,c){return/\./.test(a)?a:a+"/"}),c},m.getBasePageUrl=function(){var a=d.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(a,b,c){return/[^\/]$/.test(a)?"":a}).replace(/\/+$/,"")+"/";return a},m.getFullUrl=function(a,b){var c=a,d=a.substring(0,1);return b=typeof b=="undefined"?!0:b,/[a-z]+\:\/\//.test(a)||(d==="/"?c=m.getRootUrl()+a.replace(/^\/+/,""):d==="#"?c=m.getPageUrl().replace(/#.*/,"")+a:d==="?"?c=m.getPageUrl().replace(/[\?#].*/,"")+a:b?c=m.getBaseUrl()+a.replace(/^(\.\/)+/,""):c=m.getBasePageUrl()+a.replace(/^(\.\/)+/,"")),c.replace(/\#$/,"")},m.getShortUrl=function(a){var b=a,c=m.getBaseUrl(),d=m.getRootUrl();return m.emulated.pushState&&(b=b.replace(c,"")),b=b.replace(d,"/"),m.isTraditionalAnchor(b)&&(b="./"+b),b=b.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),b},m.store={},m.idToState=m.idToState||{},m.stateToId=m.stateToId||{},m.urlToId=m.urlToId||{},m.storedStates=m.storedStates||[],m.savedStates=m.savedStates||[],m.normalizeStore=function(){m.store.idToState=m.store.idToState||{},m.store.urlToId=m.store.urlToId||{},m.store.stateToId=m.store.stateToId||{}},m.getState=function(a,b){typeof a=="undefined"&&(a=!0),typeof b=="undefined"&&(b=!0);var c=m.getLastSavedState();return!c&&b&&(c=m.createStateObject()),a&&(c=m.cloneObject(c),c.url=c.cleanUrl||c.url),c},m.getIdByState=function(a){var b=m.extractId(a.url),c;if(!b){c=m.getStateString(a);if(typeof m.stateToId[c]!="undefined")b=m.stateToId[c];else if(typeof m.store.stateToId[c]!="undefined")b=m.store.stateToId[c];else{for(;;){b=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof m.idToState[b]=="undefined"&&typeof m.store.idToState[b]=="undefined")break}m.stateToId[c]=b,m.idToState[b]=a}}return b},m.normalizeState=function(a){var b,c;if(!a||typeof a!="object")a={};if(typeof a.normalized!="undefined")return a;
1if(!a.data||typeof a.data!="object")a.data={};b={},b.normalized=!0,b.title=a.title||"",b.url=m.getFullUrl(m.unescapeString(a.url||d.location.href)),b.hash=m.getShortUrl(b.url),b.data=m.cloneObject(a.data),b.id=m.getIdByState(b),b.cleanUrl=b.url.replace(/\??\&_suid.*/,""),b.url=b.cleanUrl,c=!m.isEmptyObject(b.data);if(b.title||c)b.hash=m.getShortUrl(b.url).replace(/\??\&_suid.*/,""),/\?/.test(b.hash)||(b.hash+="?"),b.hash+="&_suid="+b.id;return b.hashedUrl=m.getFullUrl(b.hash),(m.emulated.pushState||m.bugs.safariPoll)&&m.hasUrlDuplicate(b)&&(b.url=b.hashedUrl),b},m.createStateObject=function(a,b,c){var d={data:a,title:b,url:c};return d=m.normalizeState(d),d},m.getStateById=function(a){a=String(a);var c=m.idToState[a]||m.store.idToState[a]||b;return c},m.getStateString=function(a){var b,c,d;return b=m.normalizeState(a),c={data:b.data,title:a.title,url:a.url},d=k.stringify(c),d},m.getStateId=function(a){var b,c;return b=m.normalizeState(a),c=b.id,c},m.getHashByState=function(a){var b,c;return b=m.normalizeState(a),c=b.hash,c},m.extractId=function(a){var b,c,d;return c=/(.*)\&_suid=([0-9]+)$/.exec(a),d=c?c[1]||a:a,b=c?String(c[2]||""):"",b||!1},m.isTraditionalAnchor=function(a){var b=!/[\/\?\.]/.test(a);return b},m.extractState=function(a,b){var c=null,d,e;return b=b||!1,d=m.extractId(a),d&&(c=m.getStateById(d)),c||(e=m.getFullUrl(a),d=m.getIdByUrl(e)||!1,d&&(c=m.getStateById(d)),!c&&b&&!m.isTraditionalAnchor(a)&&(c=m.createStateObject(null,null,e))),c},m.getIdByUrl=function(a){var c=m.urlToId[a]||m.store.urlToId[a]||b;return c},m.getLastSavedState=function(){return m.savedStates[m.savedStates.length-1]||b},m.getLastStoredState=function(){return m.storedStates[m.storedStates.length-1]||b},m.hasUrlDuplicate=function(a){var b=!1,c;return c=m.extractState(a.url),b=c&&c.id!==a.id,b},m.storeState=function(a){return m.urlToId[a.url]=a.id,m.storedStates.push(m.cloneObject(a)),a},m.isLastSavedState=function(a){var b=!1,c,d,e;return m.savedStates.length&&(c=a.id,d=m.getLastSavedState(),e=d.id,b=c===e),b},m.saveState=function(a){return m.isLastSavedState(a)?!1:(m.savedStates.push(m.cloneObject(a)),!0)},m.getStateByIndex=function(a){var b=null;return typeof a=="undefined"?b=m.savedStates[m.savedStates.length-1]:a<0?b=m.savedStates[m.savedStates.length+a]:b=m.savedStates[a],b},m.getHash=function(){var a=m.unescapeHash(d.location.hash);return a},m.unescapeString=function(b){var c=b,d;for(;;){d=a.unescape(c);if(d===c)break;c=d}return c},m.unescapeHash=function(a){var b=m.normalizeHash(a);return b=m.unescapeString(b),b},m.normalizeHash=function(a){var b=a.replace(/[^#]*#/,"").replace(/#.*/,"");return b},m.setHash=function(a,b){var c,e,f;return b!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.setHash,args:arguments,queue:b}),!1):(c=m.escapeHash(a),m.busy(!0),e=m.extractState(a,!0),e&&!m.emulated.pushState?m.pushState(e.data,e.title,e.url,!1):d.location.hash!==c&&(m.bugs.setHash?(f=m.getPageUrl(),m.pushState(null,null,f+"#"+c,!1)):d.location.hash=c),m)},m.escapeHash=function(b){var c=m.normalizeHash(b);return c=a.escape(c),m.bugs.hashEscape||(c=c.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),c},m.getHashByUrl=function(a){var b=String(a).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return b=m.unescapeHash(b),b},m.setTitle=function(a){var b=a.title,c;b||(c=m.getStateByIndex(0),c&&c.url===a.url&&(b=c.title||m.options.initialTitle));try{d.getElementsByTagName("title")[0].innerHTML=b.replace("<","<").replace(">",">").replace(" & "," & ")}catch(e){}return d.title=b,m},m.queues=[],m.busy=function(a){typeof a!="undefined"?m.busy.flag=a:typeof m.busy.flag=="undefined"&&(m.busy.flag=!1);if(!m.busy.flag){h(m.busy.timeout);var b=function(){var a,c,d;if(m.busy.flag)return;for(a=m.queues.length-1;a>=0;--a){c=m.queues[a];if(c.length===0)continue;d=c.shift(),m.fireQueueItem(d),m.busy.timeout=g(b,m.options.busyDelay)}};m.busy.timeout=g(b,m.options.busyDelay)}return m.busy.flag},m.busy.flag=!1,m.fireQueueItem=function(a){return a.callback.apply(a.scope||m,a.args||[])},m.pushQueue=function(a){return m.queues[a.queue||0]=m.queues[a.queue||0]||[],m.queues[a.queue||0].push(a),m},m.queue=function(a,b){return typeof a=="function"&&(a={callback:a}),typeof b!="undefined"&&(a.queue=b),m.busy()?m.pushQueue(a):m.fireQueueItem(a),m},m.clearQueue=function(){return m.busy.flag=!1,m.queues=[],m},m.stateChanged=!1,m.doubleChecker=!1,m.doubleCheckComplete=function(){return m.stateChanged=!0,m.doubleCheckClear(),m},m.doubleCheckClear=function(){return m.doubleChecker&&(h(m.doubleChecker),m.doubleChecker=!1),m},m.doubleCheck=function(a){return m.stateChanged=!1,m.doubleCheckClear(),m.bugs.ieDoubleCheck&&(m.doubleChecker=g(function(){return m.doubleCheckClear(),m.stateChanged||a(),!0},m.options.doubleCheckInterval)),m},m.safariStatePoll=function(){var b=m.extractState(d.location.href),c;if(!m.isLastSavedState(b))c=b;else return;return c||(c=m.createStateObject()),m.Adapter.trigger(a,"popstate"),m},m.back=function(a){return a!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.back,args:arguments,queue:a}),!1):(m.busy(!0),m.doubleCheck(function(){m.back(!1)}),n.go(-1),!0)},m.forward=function(a){return a!==!1&&m.busy()?(m.pushQueue({scope:m,callback:m.forward,args:arguments,queue:a}),!1):(m.busy(!0),m.doubleCheck(function(){m.forward(!1)}),n.go(1),!0)},m.go=function(a,b){var c;if(a>0)for(c=1;c<=a;++c)m.forward(b);else{if(!(a<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(c=-1;c>=a;--c)m.back(b)}return m};if(m.emulated.pushState){var o=function(){};m.pushState=m.pushState||o,m.replaceState=m.replaceState||o}else m.onPopState=function(b,c){var e=!1,f=!1,g,h;return m.doubleCheckComplete(),g=m.getHash(),g?(h=m.extractState(g||d.location.href,!0),h?m.replaceState(h.data,h.title,h.url,!1):(m.Adapter.trigger(a,"anchorchange"),m.busy(!1)),m.expectedStateId=!1,!1):(e=m.Adapter.extractEventData("state",b,c)||!1,e?f=m.getStateById(e):m.expectedStateId?f=m.getStateById(m.expectedStateId):f=m.extractState(d.location.href),f||(f=m.createStateObject(null,null,d.location.href)),m.expectedStateId=!1,m.isLastSavedState(f)?(m.busy(!1),!1):(m.storeState(f),m.saveState(f),m.setTitle(f),m.Adapter.trigger(a,"statechange"),m.busy(!1),!0))},m.Adapter.bind(a,"popstate",m.onPopState),m.pushState=function(b,c,d,e){if(m.getHashByUrl(d)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.pushState,args:arguments,queue:e}),!1;m.busy(!0);var f=m.createStateObject(b,c,d);return m.isLastSavedState(f)?m.busy(!1):(m.storeState(f),m.expectedStateId=f.id,n.pushState(f.id,f.title,f.url),m.Adapter.trigger(a,"popstate")),!0},m.replaceState=function(b,c,d,e){if(m.getHashByUrl(d)&&m.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&m.busy())return m.pushQueue({scope:m,callback:m.replaceState,args:arguments,queue:e}),!1;m.busy(!0);var f=m.createStateObject(b,c,d);return m.isLastSavedState(f)?m.busy(!1):(m.storeState(f),m.expectedStateId=f.id,n.replaceState(f.id,f.title,f.url),m.Adapter.trigger(a,"popstate")),!0};if(f){try{m.store=k.parse(f.getItem("History.store"))||{}}catch(p){m.store={}}
1m.normalizeStore()}else m.store={},m.normalizeStore();m.Adapter.bind(a,"beforeunload",m.clearAllIntervals),m.Adapter.bind(a,"unload",m.clearAllIntervals),m.saveState(m.storeState(m.extractState(d.location.href,!0))),f&&(m.onUnload=function(){var a,b;try{a=k.parse(f.getItem("History.store"))||{}}catch(c){a={}}a.idToState=a.idToState||{},a.urlToId=a.urlToId||{},a.stateToId=a.stateToId||{};for(b in m.idToState){if(!m.idToState.hasOwnProperty(b))continue;a.idToState[b]=m.idToState[b]}for(b in m.urlToId){if(!m.urlToId.hasOwnProperty(b))continue;a.urlToId[b]=m.urlToId[b]}for(b in m.stateToId){if(!m.stateToId.hasOwnProperty(b))continue;a.stateToId[b]=m.stateToId[b]}m.store=a,m.normalizeStore(),f.setItem("History.store",k.stringify(a))},m.intervalList.push(i(m.onUnload,m.options.storeInterval)),m.Adapter.bind(a,"beforeunload",m.onUnload),m.Adapter.bind(a,"unload",m.onUnload));if(!m.emulated.pushState){m.bugs.safariPoll&&m.intervalList.push(i(m.safariStatePoll,m.options.safariPollInterval));if(e.vendor==="Apple Computer, Inc."||(e.appCodeName||"")==="Mozilla")m.Adapter.bind(a,"hashchange",function(){m.Adapter.trigger(a,"popstate")}),m.getHash()&&m.Adapter.onDomLoad(function(){m.Adapter.trigger(a,"hashchange")})}},m.init()}(window); 2//Version 1.5.5 3(function(window,undefined){ 4 5 // Prepare our Variables 6 var 7 History = window.History, 8 $ = window.jQuery, 9 document = window.document; 10 11 // Check to see if History.js is enabled for our Browser 12 if ( !History.enabled ) return false; 13 14 // Wait for Document 15 $(function(){ 16 // Prepare Variables 17 var 18 // Application Specific Variables 19 rootUrl = aws_data['rootUrl'], 20 contentSelector = '#' + aws_data['container_id'], 21 $content = $(contentSelector), 22 contentNode = $content.get(0), 23 // Application Generic Variables 24 $body = $(document.body), 25 scrollOptions = { 26 duration: 800, 27 easing:'swing' 28 }; 29 30 // Ensure Content 31 if ( $content.length === 0 ) $content = $body; 32 33 // Internal Helper 34 $.expr[':'].internal = function(obj, index, meta, stack){ 35 // Prepare 36 var 37 $this = $(obj), 38 url = $this.attr('href')||'', 39 isInternalLink; 40 41 // Check link 42 isInternalLink = url.substring(0,rootUrl.length) === rootUrl || url.indexOf(':') === -1; 43 44 // Ignore or Keep 45 return isInternalLink; 46 }; 47 48 // HTML Helper 49 var documentHtml = function(html){ 50 // Prepare 51 var result = String(html).replace(/<\!DOCTYPE[^>]*>/i, '') 52 .replace(/<(html|head|body|title|script)([\s\>])/gi,'<div id="document-$1"$2') 53 .replace(/<\/(html|head|body|title|script)\>/gi,'</div>'); 54 // Return 55 return result; 56 }; 57 58 // Ajaxify Helper 59 $.fn.ajaxify = function(){ 60 // Prepare 61 var $this = $(this); 62 63 // Ajaxify 64 $this.find('a:internal:not(.no-ajaxy,[href^="#"],[href*="wp-login"],[href*="wp-admin"],[target^="_blank"])').not('li.no-ajaxy a').on('click', function(event){ 65 // Prepare 66 var 67 $this = $(this), 68 url = $this.attr('href'), 69 urlref = location.href, 70 title = $this.attr('title') || null; 71 72 /* 73 PARSELY.beacon.trackPageView({ 74 url: url, 75 urlref: urlref, 76 js: 1 77 }); 78 */ 79 80 // Continue as normal for cmd clicks etc 81 if ( event.which == 2 || event.metaKey ) return true; 82 83 // Ajaxify this link 84 History.pushState(null,title,url); 85 event.preventDefault(); 86 return false; 87 }); 88 // Chain 89 return $this; 90 }; 91 92 // Ajaxify our Internal Links 93 $body.ajaxify(); 94 95 // Hook into State Changes 96 $(window).bind('statechange',function(){ 97 // Prepare Variables 98 var 99 State = History.getState(), 100 url = State.url, 101 relativeUrl = url.replace(rootUrl,''); 102 103 // Set Loading 104 $body.addClass('loading'); 105 106 // Start Fade Out 107 // Animating to opacity to 0 still keeps the element's height intact 108 // Which prevents that annoying pop bang issue when loading in new content 109 110 if ( '' != aws_data['transition'] ) { 111 $content.animate({opacity:0}
111,800); 112 } 113 if( '' != aws_data['loader'] ) { 114 $content 115 .html('<img src="' + rootUrl + 'wp-content/plugins/ajaxify-wordpress-site/images/' + aws_data['loader'] + '" />') 116 .css('text-align', 'center'); 117 } 118 119 // Ajax Request the Traditional Page 120 $.ajax({ 121 url: url, 122 success: function(data, textStatus, jqXHR){ 123 // Prepare 124 var 125 $data = $(documentHtml(data)), 126 $dataBody = $data.find('#document-body:first ' + contentSelector), 127 bodyClasses = $data.find('#document-body:first').attr('class'), 128 contentHtml, $scripts; 129 130 var $menu_list = $data.find('.' + aws_data['mcdc']); 131 132 //Add classes to body 133 jQuery('body').attr('class', bodyClasses); 134 135 // Fetch the scripts 136 $scripts = $dataBody.find('#document-script'); 137 if ( $scripts.length ) $scripts.detach(); 138 139 140 // Fetch the content 141 contentHtml = $dataBody.html()||$data.html(); 142 143 if ( !contentHtml ) { 144 document.location.href = url; 145 return false; 146 } 147 148 // Update the content 149 $content.stop(true,true); 150 $content.html(contentHtml) 151 .ajaxify() 152 .css('text-align', '') 153 .animate({opacity: 1, visibility: "visible"}); 154 155 //Scroll to the top of ajax container 156 if ( '' != aws_data['scrollTop'] ) { 157 jQuery('html, body').animate({ 158 scrollTop: jQuery(contentSelector).offset().top 159 }, 1000); 160 } 161 162 //Append new menu HTML to provided classs 163 $('.' + aws_data['mcdc']).html($menu_list.html()); 164 $body.ajaxify(); 165 //Adding no-ajaxy class to a tags present under ids provided 166 $(aws_data['ids']).each(function(){ 167 jQuery(this).addClass('no-ajaxy'); 168 }); 169 170 // Update the title 171 document.title = $data.find('#document-title:first').text(); 172 try { 173 document.getElementsByTagName('title')[0].innerHTML = document.title.replace('<','<') 174 .replace('>','>') 175 .replace(' & ',' & '); 176 } 177 catch ( Exception ) { } 178 179 // Add the scripts 180 $scripts.each(function(){ 181 var scriptText = $(this).html(); 182 183 if ( '' != scriptText ) { 184 scriptNode = document.createElement('script'); 185 scriptNode.appendChild(document.createTextNode(scriptText)); 186 contentNode.appendChild(scriptNode); 187 } else { 188 $.getScript( $(this).attr('src') ); 189 } 190 191 // Add special handling for EA script. 192 if ( 'https://static.everyaction.com/ea-actiontag/at.js' === $(this).attr('src') ) { 193 194 // Delete global vars to allow re-init. 195 delete window.nvtag; 196 delete window.nvtag_plugins; 197 } 198 }); 199 200 // BuddyPress Support 201 if ( aws_data['bp_status'] ) { 202 $.getScript(rootUrl + '/wp-content/plugins/buddypress/bp-templates/bp-legacy/js/buddypress.js'); 203 } 204 205 $body.removeClass('loading'); 206 207 // Inform Google Analytics of the change 208 if ( typeof window.pageTracker !== 'undefined' ) window.pageTracker._trackPageview(relativeUrl); 209 210 // Inform ReInvigorate of a state change 211 if ( typeof window.reinvigorate !== 'undefined' && typeof window.reinvigorate.ajax_track !== 'undefined' ) 212 reinvigorate.ajax_track(url);// ^ we use the full url here as that is what reinvigorate supports 213 }, 214 error: function(jqXHR, textStatus, errorThrown){ 215 document.location.href = url; 216 return false; 217 } 218 219 }); // end ajax 220 221 }); // end onStateChange 222 223 }); // end onDomLoad 224 225})(window); // end closure 226 227jQuery(document).ready(function(){ 228 229 //Adding no-ajaxy class to a tags present under ids provided 230 jQuery(aws_data['ids']).each(function(){ 231 jQuery(this).addClass('no-ajaxy'); 232 }); 233 234 //append anchor tag to DOM to make the search in site ajaxify. 235 var searchButtonHtml = '<span id="ajax-search" style="display:none;"><a href=""></a></span>' 236 jQuery("body").prepend(searchButtonHtml); 237 238 //Make the link ajaxify. 239 jQuery("#ajax-search").ajaxify(); 240 241 //After submitting the search form search the post without refreshing the browser. 242 jQuery(aws_data['searchID']).on('submit', 243 function(d){ 244 d.preventDefault(); 245 var host = aws_data['rootUrl'] + "?s="; 246 jQuery("#ajax-search a").attr("href", host + jQuery(this).find('input[type="search"]').val()); 247 jQuery("#ajax-search a").trigger("click"); 248 } 249 ); 250}); 251; 252/*! 253 * @preserve 254 * jquery.scrolldepth.js | v1.0-rx 255 * Copyright (c) 2016 Rob Flaherty (@robflaherty) 256 * Licensed under the MIT and GPL licenses. 257 * This incorporates the gtag modifications from jwahdatehagh 258 * https://github.com/robflaherty/jquery-scrolldepth/commit/794fc523df040be6ee2fb1e80a7ffc54e8906be2 259 */ 260!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){"use strict";var n,t,o,r,i,l={minHeight:0,elements:[],percentage:!0,userTiming:!0,pixelDepth:!0,nonInteraction:!0,gaGlobal:!1,gtmOverride:!1,trackerName:!1,dataLayer:"dataLayer"},a=e(window),c=[],p=!1,u=0;return e.scrollDepth=function(h){var g=+new Date;function s(e,l,a,c){var p=h.trackerName?h.trackerName+".send":"send";i?(i({event:"ScrollDistance",eventCategory:"Scroll Depth",eventAction:e,eventLabel:l,eventValue:1,eventNonInteraction:h.nonInteraction}),h.pixelDepth&&arguments.length>2&&a>u&&(u=a,i({event:"ScrollDistance",eventCategory:"Scroll Depth",eventAction:"Pixel Depth",eventLabel:f(a),eventValue:1,eventNonInteraction:h.nonInteraction})),h.userTiming&&arguments.length>3&&i({event:"ScrollTiming",eventCategory:"Scroll Depth",eventAction:e,eventLabel:l,eventTiming:c}),r&>ag("event","scroll_depth",{event_category:"Scroll Depth",event_label:l,value:a})):(n&&(window[o](p,"event","Scroll Depth",e,l,1,{nonInteraction:h.nonInteraction}),h.pixelDepth&&arguments.length>2&&a>u&&(u=a,window[o](p,"event","Scroll Depth","Pixel Depth",f(a),1,{nonInteraction:h.nonInteraction})),h.userTiming&&arguments.length>3&&window[o](p,"timing","Scroll Depth",e,c,l)),t&&(_gaq.push(["_trackEvent","Scroll Depth",e,l,1,h.nonInteraction]),h.pixelDepth&&arguments.length>2&&a>
260u&&(u=a,_gaq.push(["_trackEvent","Scroll Depth","Pixel Depth",f(a),1,h.nonInteraction])),h.userTiming&&arguments.length>3&&_gaq.push(["_trackTiming","Scroll Depth",e,c,l,100])))}function f(e){return(250*Math.floor(e/250)).toString()}function v(){var n,t,o,r,i,l,u,f;p=!0,a.on("scroll.scrollDepth",(n=function(){var n=e(document).height(),t=window.innerHeight?window.innerHeight:a.height(),o=a.scrollTop()+t,r=function(e){return{"25%":parseInt(.25*e,10),"50%":parseInt(.5*e,10),"75%":parseInt(.75*e,10),"100%":e-5}}(n),i=+new Date-g;if(c.length>=h.elements.length+(h.percentage?4:0))return a.off("scroll.scrollDepth"),void(p=!1);h.elements&&function(n,t,o){e.each(n,function(n,r){-1===e.inArray(r,c)&&e(r).length&&t>=e(r).offset().top&&(s("Elements",r,t,o),c.push(r))})}(h.elements,o,i),h.percentage&&function(n,t,o){e.each(n,function(n,r){-1===e.inArray(n,c)&&t>=r&&(s("Percentage",n,t,o),c.push(n))})}(r,o,i)},t=500,l=null,u=0,f=function(){u=new Date,l=null,i=n.apply(o,r)},function(){var e=new Date;u||(u=e);var a=t-(e-u);return o=this,r=arguments,a<=0?(clearTimeout(l),l=null,u=e,i=n.apply(o,r)):l||(l=setTimeout(f,a)),i}))}h=e.extend({},l,h),e(document).height()<h.minHeight||(h.gaGlobal?(n=!0,o=h.gaGlobal):"function"==typeof gtag?(r=!0,o="gtag"):"function"==typeof ga?(n=!0,o="ga"):"function"==typeof __gaTracker&&(n=!0,o="__gaTracker"),"undefined"!=typeof _gaq&&"function"==typeof _gaq.push&&(t=!0),"function"==typeof h.eventHandler?i=h.eventHandler:void 0===window[h.dataLayer]||"function"!=typeof window[h.dataLayer].push||h.gtmOverride||(i=function(e){window[h.dataLayer].push(e)}),e.scrollDepth.reset=function(){c=[],u=0,a.off("scroll.scrollDepth"),v()},e.scrollDepth.addElements=function(n){void 0!==n&&e.isArray(n)&&(e.merge(h.elements,n),p||v())},e.scrollDepth.removeElements=function(n){void 0!==n&&e.isArray(n)&&e.each(n,function(n,t){var o=e.inArray(t,h.elements),r=e.inArray(t,c);-1!=o&&h.elements.splice(o,1),-1!=r&&c.splice(r,1)})},v())},e.scrollDepth});; 261CLI_ACCEPT_COOKIE_NAME =(typeof CLI_ACCEPT_COOKIE_NAME !== 'undefined' ? CLI_ACCEPT_COOKIE_NAME : 'viewed_cookie_policy'); 262CLI_PREFERNCE_COOKIE =(typeof CLI_PREFERNCE_COOKIE !== 'undefined' ? CLI_PREFERNCE_COOKIE : 'CookieLawInfoConsent'); 263CLI_ACCEPT_COOKIE_EXPIRE =(typeof CLI_ACCEPT_COOKIE_EXPIRE !== 'undefined' ? CLI_ACCEPT_COOKIE_EXPIRE : 365); 264CLI_COOKIEBAR_AS_POPUP=(typeof CLI_COOKIEBAR_AS_POPUP !== 'undefined' ? CLI_COOKIEBAR_AS_POPUP : false); 265var CLI_Cookie={ 266 set: function (name, value, days) { 267 var secure = ""; 268 if ( true === Boolean( Cli_Data.secure_cookies ) ) secure = ";secure"; 269 var domain = ( Cli_Data.cookieDomain !== '' ? ";domain=" + Cli_Data.cookieDomain : '' ); 270 var date = new Date(); 271 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 272 var expires = ";expires=" + date.toGMTString(); 273 if( days < 1 ){ 274 this.eraseCookie(name,expires); 275 } else { 276 document.cookie = name + "=" + value + secure + expires + domain + ";path=/"; 277 } 278 }, 279 read: function (name) { 280 var nameEQ = name + "="; 281 var ca = document.cookie.split(';'); 282 for (var i = 0; i < ca.length; i++) { 283 var c = ca[i]; 284 while (c.charAt(0) == ' ') { 285 c = c.substring(1, c.length); 286 } 287 if (c.indexOf(nameEQ) === 0) { 288 return c.substring(nameEQ.length, c.length); 289 } 290 } 291 return null; 292 }, 293 erase: function (name) { 294 this.set(name, "", -10); 295 }, 296 eraseCookie: function( name, expires, index ){ 297 298 if( this.cookieExist(name) === false ) { 299 return false; 300 } 301 var _hostname = window.location.hostname; 302 var value = ""; 303 if (typeof index === 'undefined') { 304 index = 0; 305 } 306 if( index === 0 ){ 307 _hostname = _hostname.substring(_hostname.lastIndexOf(".", _hostname.lastIndexOf(".")-1)); 308 } 309 else if( index === 1 ){ 310 _hostname = ( Cli_Data.cookieDomain !== '' ? Cli_Data.cookieDomain : '' ); 311 } 312 else if( index === 2 ) { 313 if(_hostname.indexOf("www") != 1) 314 { 315 _hostname = _hostname.replace('www',''); 316 } 317 } 318 index = index + 1; 319 document.cookie = name + "=" + value + expires + ";domain="+ _hostname + ";path=/"; 320 if (index <= 2 ) { 321 this.eraseCookie( name, expires, index); 322 } 323 }, 324 exists: function (name) { 325 return (this.read(name) !== null); 326 }, 327 getallcookies:function() 328 { 329 var pairs = document.cookie.split(";"); 330 var cookieslist = {}; 331 for (var i = 0; i < pairs.length; i++) { 332 var pair = pairs[i].split("="); 333 cookieslist[(pair[0] + '').trim()] = unescape(pair[1]); 334 } 335 return cookieslist; 336 },
337 cookieExist: function( name ){ 338 cookie_pattern = new RegExp("^(.*;)?\\s*"+name+"\\s*=\\s*[^;]+(.*)?$"); 339 if(!document.cookie.match(cookie_pattern)) { 340 return false; 341 } 342 return true; 343 } 344} 345var CLI= 346{ 347 bar_config:{}, 348 consent:{}, 349 allowedCategories:[], 350 showagain_config:{}, 351 set:function(args) 352 { 353 if(typeof JSON.parse !== "function") 354 { 355 console.log("CookieLawInfo requires JSON.parse but your browser doesn't support it"); 356 return; 357 } 358 if(typeof args.settings!=='object') 359 { 360 this.settings = JSON.parse(args.settings); 361 }else 362 { 363 this.settings = args.settings; 364 } 365 this.bar_elm=jQuery(this.settings.notify_div_id); 366 this.showagain_elm = jQuery(this.settings.showagain_div_id); 367 this.banner_heading = jQuery('#wt-cli-cookie-banner-title'); 368 369 //buttons 370 this.main_button = jQuery('.cli-plugin-main-button'); 371 this.main_link = jQuery('.cli-plugin-main-link'); 372 this.reject_link = jQuery('.cookie_action_close_header_reject'); 373 this.settings_link = jQuery('.cli_settings_button'); 374 this.delete_link=jQuery(".cookielawinfo-cookie-delete"); 375 this.accept_all_button = jQuery('.wt-cli-accept-all-btn'); 376 if(this.settings.cookie_bar_as=='popup') 377 { 378 CLI_COOKIEBAR_AS_POPUP=true; 379 } 380 this.cliRenewConsent(); 381 this.configBar(); 382 this.toggleBar(); 383 this.attachDelete(); 384 this.attachEvents(); 385 this.configButtons(); 386 this.addStyleAttribute(); 387 this.settingsPopUp(); 388 this.cookieLawInfoRunCallBacks(); 389 this.acceptPageNavigation(); 390 var cli_hidebar_on_readmore=this.hideBarInReadMoreLink(); 391 if(this.settings.scroll_close===true && cli_hidebar_on_readmore===false) 392 { 393 window.addEventListener("scroll",CLI.closeOnScroll, false); 394 } 395 }, 396 hideBarInReadMoreLink:function() 397 { 398 if(CLI.settings.button_2_hidebar===true && this.main_link.length>0 && this.main_link.hasClass('cli-minimize-bar')) 399 { 400 jQuery('.wt-cli-cookie-bar-container').addClass('wt-cli-hide-bar'); 401 this.hideHeader(); 402 this.showagain_elm.slideDown(this.settings.animate_speed_show); 403 return true; 404 } 405 return false; 406 }, 407 settingsPopUp:function() 408 { 409 jQuery(document).on('click keypress','.cli_settings_button',function(e){ 410 var key = e.which; 411 e.preventDefault(); 412 if(key === 1 || key === 13) { 413 if(CLI.settings.cookie_setting_popup==true) 414 { 415 jQuery('#cliSettingsPopup').addClass("cli-show").css({'opacity':0}).animate({'opacity':1}); 416 jQuery('#cliSettingsPopup').removeClass('cli-blowup cli-out').addClass("cli-blowup"); 417 jQuery('#cliSettingsPopup').attr('aria-hidden', false); 418 jQuery('body').addClass("cli-modal-open"); 419 jQuery(".cli-settings-overlay").addClass("cli-show"); 420 jQuery("#cookie-law-info-bar").css({'opacity':.1}); 421 jQuery("#cliModalClose").focus(); 422 if(!jQuery('.cli-settings-mobile').is(':visible')) 423 { 424 jQuery('#cliSettingsPopup').find('.cli-nav-link:eq(0)').click(); 425 } 426 } 427 else 428 { 429 jQuery('#cookie-law-info-bar .cli-tab-container').slideToggle(CLI.settings.animate_speed_show); 430 } 431 } 432 433 }); 434 jQuery('#cliModalClose').click(function(){ 435 CLI.settingsPopUpClose(); 436 }); 437 jQuery('#cliModalClose').keydown(function(e) { 438 var key = e.which 439 if(key === 9) { 440 if(e.shiftKey === true) { 441 e.preventDefault() 442 jQuery('#wt-cli-privacy-save-btn').focus() 443 } 444 } 445 }); 446 document.addEventListener('keydown', function(e) { 447 var key = e.which; 448 if(key === 27 && jQuery('#cliSettingsPopup').hasClass('cli-show')) { 449 CLI.settingsPopUpClose(); 450 } 451 }); 452 jQuery("#cliSettingsPopup").click(function(e){ 453 if(!(document.getElementsByClassName('cli-modal-dialog')[0].contains(e.target))) 454 { 455 CLI.settingsPopUpClose(); 456 } 457 }); 458 jQuery('.cli_enable_all_btn').click(function(){ 459 var cli_toggle_btn = jQuery(this); 460 var enable_text = cli_toggle_btn.attr('data-enable-text'); 461 var disable_text= cli_toggle_btn.attr('data-disable-text'); 462 if(cli_toggle_btn.hasClass('cli-enabled')){ 463 CLI.disableAllCookies(); 464 cli_toggle_btn.html(enable_text); 465 } 466 else 467 {
468 CLI.enableAllCookies(); 469 cli_toggle_btn.html(disable_text); 470 471 } 472 jQuery(this).toggleClass('cli-enabled'); 473 }); 474 this.settingsTabbedAccordion(); 475 this.toggleUserPreferenceCheckBox(); 476 this.privacyReadmore(); 477 }, 478 settingsTabbedAccordion:function() 479 { 480 jQuery(document).on('click keypress','.cli-tab-header',function(e){ 481 if (!(jQuery(e.target).hasClass('cli-slider') || jQuery(e.target).hasClass('cli-user-preference-checkbox'))) { 482 var key = e.which; 483 e.preventDefault(); 484 if (key === 1 || key === 13) { 485 var currentElement = jQuery(this); 486 var tabLink = currentElement.closest('.cli-tab-header').find('.cli-nav-link'); 487 if (currentElement.hasClass("cli-tab-active")) { 488 currentElement.removeClass("cli-tab-active"); 489 currentElement.siblings(".cli-tab-content").slideUp(200); 490 tabLink.attr('aria-expanded', false); 491 } else { 492 jQuery(".cli-tab-header").removeClass("cli-tab-active"); 493 currentElement.addClass("cli-tab-active"); 494 jQuery(".cli-tab-content").slideUp(200); 495 currentElement.siblings(".cli-tab-content").slideDown(200); 496 tabLink.attr('aria-expanded', true); 497 } 498 } 499 } 500 }); 501 }, 502 settingsPopUpClose:function() 503 { 504 jQuery('#cliSettingsPopup').removeClass('cli-show'); 505 jQuery('#cliSettingsPopup').addClass('cli-out'); 506 jQuery('#cliSettingsPopup').attr('aria-hidden', true); 507 jQuery('body').removeClass("cli-modal-open"); 508 jQuery(".cli-settings-overlay").removeClass("cli-show"); 509 jQuery("#cookie-law-info-bar").css({'opacity':1}); 510 jQuery(".cli_settings_button").focus(); 511 }, 512 toggleUserPreferenceCheckBox:function() 513 { 514 515 jQuery('.cli-user-preference-checkbox').each(function(){ 516 517 var categoryCookie = 'cookielawinfo-'+jQuery(this).attr('data-id'); 518 var categoryCookieValue = CLI_Cookie.read(categoryCookie); 519 if( categoryCookieValue == null ) 520 { 521 if(jQuery(this).is(':checked')) 522 { 523 CLI_Cookie.set(categoryCookie,'yes',CLI_ACCEPT_COOKIE_EXPIRE); 524 }else 525 { 526 CLI_Cookie.set(categoryCookie,'no',CLI_ACCEPT_COOKIE_EXPIRE); 527 } 528 } 529 else 530 { 531 if(categoryCookieValue == "yes") 532 { 533 jQuery(this).prop("checked",true); 534 } 535 else 536 { 537 jQuery(this).prop("checked",false); 538 } 539 540 } 541 542 }); 543 jQuery('.cli-user-preference-checkbox').click(function(){ 544 var dataID = jQuery(this).attr('data-id'); 545 var currentToggleElm = jQuery('.cli-user-preference-checkbox[data-id='+dataID+']'); 546 if(jQuery(this).is(':checked')) 547 { 548 CLI_Cookie.set('cookielawinfo-'+dataID,'yes',CLI_ACCEPT_COOKIE_EXPIRE); 549 currentToggleElm.prop('checked',true); 550 }else 551 { 552 CLI_Cookie.set('cookielawinfo-'+dataID,'no',CLI_ACCEPT_COOKIE_EXPIRE); 553 currentToggleElm.prop('checked',false); 554 } 555 CLI.checkCategories(); 556 CLI.generate_user_preference_cookie(); 557 CLI.generateConsent(); 558 }); 559 }, 560 attachEvents:function() 561 { 562 jQuery(document).on('click keypress','.wt-cli-privacy-btn',function(e){ 563 var key = e.which; 564 e.preventDefault(); 565 if(key === 1 || key === 13) { 566 var action = jQuery(this).attr('data-cli-action'); 567 if( action === 'accept_all') { 568 CLI.enableAllCookies(); 569 } 570 CLI.accept_close(); 571 CLI.saveLog('accept'); 572 CLI.settingsPopUpClose(); 573 } 574 }); 575 jQuery('.wt-cli-privacy-overview-actions').find('a').last().keydown(function(e) { 576 var key = e.which 577 if(key === 9) { 578 if(e.shiftKey === false) { 579 e.preventDefault() 580 jQuery('#cliModalClose').focus() 581 } 582 } 583 }); 584 jQuery(document).on('click keypress','.cli_action_button',function(e){ 585 var key = e.which; 586 e.preventDefault(); 587 if(key === 1 || key === 13) { 588 var elm=jQuery(this); 589 var button_action=elm.attr('data-cli_action'); 590 var open_link=elm[0].hasAttribute("href") && elm.attr("href").charAt(0) !== '#' ? true : false; 591 var new_window=false; 592 if(button_action=='accept') 593 { 594 if (e.originalEvent !== undefined) { 595 596 if(CLI.settings.accept_all==true) 597 { 598 CLI.enableAllCookies(); 599 } 600 601 } 602 else 603 { 604 CLI.settingsPopUpClose(); 605 } 606 CLI.accept_close(); 607 new_window=CLI.settings.button_1_new_win ? true : false;
608 } 609 else if( button_action == 'accept_all') { 610 CLI.enableAllCookies(); 611 CLI.accept_close(); 612 new_window=CLI.settings.button_7_new_win ? true : false; 613 } 614 else if(button_action=='reject') 615 { 616 CLI.disableAllCookies(); 617 CLI.reject_close(); 618 new_window=CLI.settings.button_3_new_win ? true : false; 619 } 620 CLI.saveLog(button_action); 621 if(open_link) 622 { 623 if(new_window) 624 { 625 window.open(elm.attr("href"),'_blank'); 626 }else 627 { 628 window.location.href =elm.attr("href"); 629 } 630 } 631 } 632 }); 633 jQuery(document).on('click','.cli_cookie_close_button',function(e){ 634 e.preventDefault(); 635 var elm=jQuery(this); 636 var button_action=elm.attr('data-cli_action'); 637 if(CLI.settings.accept_all==true) 638 { 639 CLI.enableAllCookies(); 640 } 641 CLI.accept_close(); 642 CLI.saveLog(button_action); 643 }); 644 }, 645 saveLog:function(button_action) 646 { 647 if(CLI.settings.logging_on) 648 { 649 var ccpaOptedOut = cliBlocker.ccpaOptedOut(); 650 cookies = CLI_Cookie.getallcookies(); 651 cookies.ccpaOptout = ccpaOptedOut; 652 jQuery.ajax({ 653 url: log_object.ajax_url, 654 type: 'POST', 655 data:{ 656 action: 'wt_log_visitor_action', 657 wt_clicked_button_id: '', 658 wt_user_action:button_action, 659 cookie_list:cookies 660 }, 661 success:function (response) 662 { 663 664 } 665 }); 666 } 667 }, 668 attachDelete:function() 669 { 670 this.delete_link.click(function () { 671 CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME); 672 for(var k in Cli_Data.nn_cookie_ids) 673 { 674 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 675 } 676 CLI.generate_user_preference_cookie(); 677 CLI.generateConsent(); 678 window.location.reload(); 679 return false; 680 }); 681 }, 682 configButtons:function() 683 { 684 //[cookie_button] 685 this.main_button.css('color',this.settings.button_1_link_colour); 686 if(this.settings.button_1_as_button) 687 { 688 this.main_button.css('background-color',this.settings.button_1_button_colour); 689 this.main_button.hover(function () { 690 jQuery(this).css('background-color',CLI.settings.button_1_button_hover); 691 },function (){ 692 jQuery(this).css('background-color',CLI.settings.button_1_button_colour); 693 }); 694 } 695 696 //[cookie_link] 697 this.main_link.css('color',this.settings.button_2_link_colour); 698 if(this.settings.button_2_as_button) 699 { 700 this.main_link.css('background-color',this.settings.button_2_button_colour); 701 this.main_link.hover(function () { 702 jQuery(this).css('background-color',CLI.settings.button_2_button_hover); 703 },function (){ 704 jQuery(this).css('background-color',CLI.settings.button_2_button_colour); 705 }); 706 } 707 708 709 //[cookie_reject] 710 this.reject_link.css('color',this.settings.button_3_link_colour); 711 if(this.settings.button_3_as_button) 712 { 713 this.reject_link.css('background-color',this.settings.button_3_button_colour); 714 this.reject_link.hover(function () { 715 jQuery(this).css('background-color',CLI.settings.button_3_button_hover); 716 },function () { 717 jQuery(this).css('background-color',CLI.settings.button_3_button_colour); 718 }); 719 } 720 721 //[cookie_settings] 722 this.settings_link.css('color',this.settings.button_4_link_colour); 723 if(this.settings.button_4_as_button) 724 { 725 this.settings_link.css('background-color',this.settings.button_4_button_colour); 726 this.settings_link.hover(function () { 727 jQuery(this).css('background-color',CLI.settings.button_4_button_hover); 728 },function () { 729 jQuery(this).css('background-color',CLI.settings.button_4_button_colour); 730 }); 731 } 732 733 //[cookie_accept_all] 734 this.accept_all_button.css('color',this.settings.button_7_link_colour); 735 if(this.settings.button_7_as_button) 736 { 737 this.accept_all_button.css('background-color',this.settings.button_7_button_colour); 738 this.accept_all_button.hover(function () { 739 jQuery(this).css('background-color',CLI.settings.button_7_button_hover); 740 },function (){ 741 jQuery(this).css('background-color',CLI.settings.button_7_button_colour); 742 }); 743 } 744 745 }, 746 toggleBar:function() 747 { 748 if(CLI_COOKIEBAR_AS_POPUP) 749 { 750 this.barAsPopUp(1); 751 } 752 if(CLI.settings.cookie_bar_as=='widget') 753 { 754 this.barAsWidget(1); 755 } 756 if(this.settings.show_once_yn) 757 { 758 759 setTimeout(function(){ 760 if(!CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) 761 { 762 CLI.close_header(); 763 } 764 },CLI.settings.show_once); 765 } 766 this.showagain_elm.on('click keypress', function (e) { 767 var key = e.which; 768 if(key === 1 || key === 13) { 769 e.preventDefault(); 770 CLI.showagain_elm.slideUp(CLI.settings.animate_speed_hide, function() { 771 CLI.bar_elm.slideDown(CLI.settings.animate_speed_show); 772 CLI.refocusElement(); 773 if(CLI_COOKIEBAR_AS_POPUP) { 774 CLI.showPopupOverlay(); 775 } 776 }); 777 } 778 }); 779 }, 780 configShowAgain:function() 781 { 782 this.showagain_config = { 783 'background-color': this.settings.background, 784 'color':this.settings.text, 785 'position': 'fixed', 786 'font-family': this.settings.font_family 787 }; 788 if(this.settings.border_on) 789 { 790 var border_to_hide = 'border-' + this.settings.notify_position_vertical; 791 this.showagain_config['border'] = '1px solid ' + this.l1hs(this.settings.border); 792 this.showagain_config[border_to_hide] = 'none'; 793 } 794 var cli_win=jQuery(window); 795 var cli_winw=cli_win.width(); 796 var showagain_x_pos=this.settings.showagain_x_position; 797 if(cli_winw<300) 798 { 799 showagain_x_pos=10; 800 this.showagain_config.width=cli_winw-20; 801 }else 802 { 803 this.showagain_config.width='auto'; 804 } 805 var cli_defw=cli_winw>400 ? 500 : cli_winw-20; 806 if(CLI_COOKIEBAR_AS_POPUP) //cookie bar as popup 807 { 808 var sa_pos=this.settings.popup_showagain_position; 809 var sa_pos_arr=sa_pos.split('-'); 810 if(sa_pos_arr[1]=='left') 811 { 812 this.showagain_config.left=showagain_x_pos; 813 }else if(sa_pos_arr[1]=='right') 814 { 815 this.showagain_config.right=showagain_x_pos; 816 } 817 if(sa_pos_arr[0]=='top') 818 { 819 this.showagain_config.top=0; 820 821 }else if(sa_pos_arr[0]=='bottom') 822 { 823 this.showagain_config.bottom=0; 824 } 825 this.bar_config['position'] = 'fixed'; 826 827 }else if(this.settings.cookie_bar_as=='widget') 828 { 829 this.showagain_config.bottom=0; 830 if(this.settings.widget_position=='left') 831 { 832 this.showagain_config.left=showagain_x_pos; 833 }else if(this.settings.widget_position=='right') 834 { 835 this.showagain_config.right=showagain_x_pos; 836 } 837 } 838 else 839 { 840 if(this.settings.notify_position_vertical == "top") 841 { 842 this.showagain_config.top = '0'; 843 } 844 else if(this.settings.notify_position_vertical == "bottom") 845 { 846 this.bar_config['position'] = 'fixed'; 847 this.bar_config['bottom'] = '0'; 848 this.showagain_config.bottom = '0'; 849 } 850 if(this.settings.notify_position_horizontal == "left") 851 { 852 this.showagain_config.left =showagain_x_pos; 853 }else if(this.settings.notify_position_horizontal == "right") 854 { 855 this.showagain_config.right =showagain_x_pos; 856 } 857 } 858 this.showagain_elm.css(this.showagain_config); 859 }, 860 configBar:function() 861 { 862 var templateID = ''; 863 this.bar_config = { 864 'background-color':this.settings.background, 865 'color':this.settings.text, 866 'font-family':this.settings.font_family 867 }; 868 if (jQuery(".wt-cli-template")[0]) 869 { 870 var templateElm = jQuery(".wt-cli-template"); 871 var templateClasses = templateElm.attr('class'); 872 var templateClasses = templateClasses.split(" "); 873 var matchingID = templateClasses.filter(function (value) { 874 875 return value.match(/\bcli-style/); 876 877 }); 878 templateID = matchingID[0]; 879 this.bar_elm.attr('data-template-id',templateID); 880 } 881 if(jQuery(".wt-cli-category-widget")[0]) 882 { 883 this.bar_elm.addClass('wt-cli-category-widget-active'); 884 } 885 if(this.settings.cookie_setting_popup===false) 886 { 887 this.barPopupStyle(); 888 } 889 if(this.settings.notify_position_vertical=="top") 890 { 891 this.bar_config['top'] = '0'; 892 if(this.settings.header_fix === true) 893 { 894 this.bar_config['position'] = 'fixed'; 895 } 896 }else 897 { 898 this.bar_config['bottom'] = '0'; 899 } 900 this.configShowAgain(); 901 this.bar_elm.css(this.bar_config).hide(); 902 }, 903 l1hs:function(str) 904 { 905 if (str.charAt(0) == "#") { 906 str = str.substring(1, str.length); 907 } else { 908 return "#" + str; 909 } 910 return this.l1hs(str); 911 }, 912 close_header:function() 913 { 914 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE); 915 if(CLI.settings.accept_all==true) 916 { 917 CLI.enableAllCookies(); 918 } 919 CLI.accept_close(); 920 this.hideHeader(); 921 CLI.saveLog('accept'); 922 923 }, 924 accept_close:function() 925 { 926 927 this.hidePopupOverlay(); 928 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'yes',CLI_ACCEPT_COOKIE_EXPIRE); 929 if(this.settings.notify_animate_hide) 930 { 931 this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts); 932 }else 933 { 934 this.bar_elm.hide(0,cliBlocker.runScripts); 935 } 936 if(this.settings.showagain_tab) 937 { 938 this.showagain_elm.slideDown(this.settings.animate_speed_show); 939 } 940 this.generate_user_preference_cookie(); 941 this.generateConsent(); 942 CLI.cookieLawInfoRunCallBacks(); 943 if(this.settings.accept_close_reload === true) 944 { 945 this.reload_current_page(); 946 } 947 948 return false;
949 }, 950 reject_close:function() 951 { 952 this.hidePopupOverlay(); 953 for(var k in Cli_Data.nn_cookie_ids) 954 { 955 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 956 } 957 CLI_Cookie.set(CLI_ACCEPT_COOKIE_NAME,'no',CLI_ACCEPT_COOKIE_EXPIRE); 958 if(this.settings.notify_animate_hide) 959 { 960 this.bar_elm.slideUp(this.settings.animate_speed_hide,cliBlocker.runScripts); 961 }else 962 { 963 this.bar_elm.hide(0,cliBlocker.runScripts); 964 } 965 if(this.settings.showagain_tab) 966 { 967 this.showagain_elm.slideDown(this.settings.animate_speed_show); 968 } 969 this.generate_user_preference_cookie(); 970 CLI.generateConsent(); 971 if(this.settings.reject_close_reload === true) 972 { 973 this.reload_current_page(); 974 } 975 return false; 976 }, 977 generate_user_preference_cookie:function() 978 { 979 var cli_user_preference_arr=new Array(); 980 var cli_user_preference_val=''; 981 if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) 982 { 983 cli_user_preference_arr.push('cli-'+CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)); 984 } 985 jQuery('.cli-user-preference-checkbox').each(function(){ 986 if(jQuery(this).is(':checked')) 987 { 988 cli_user_preference_arr.push(jQuery(this).attr('data-id')+'-yes'); 989 }else 990 { 991 cli_user_preference_arr.push(jQuery(this).attr('data-id')+'-no'); 992 } 993 }); 994 if(cli_user_preference_arr.length>0) 995 { 996 cli_user_preference_val=Cli_Data.current_lang+'-'+cli_user_preference_arr.join('-'); 997 } 998 CLI_Cookie.set('cli_user_preference',cli_user_preference_val,CLI_ACCEPT_COOKIE_EXPIRE); 999 }, 1000 isBase64:function(str) { 1001 if (str ==='' || str.trim() ===''){ return false; } 1002 try { 1003 return btoa(atob(str)) == str; 1004 } catch (err) { 1005 return false; 1006 } 1007 }, 1008 generateConsent:function() 1009 { 1010 var preferenceCookie = CLI_Cookie.read(CLI_PREFERNCE_COOKIE); 1011 cliConsent = {}; 1012 if(preferenceCookie !== null) { 1013 if(CLI.isBase64(preferenceCookie)) 1014 { 1015 cliConsent = window.atob(preferenceCookie); 1016 } 1017 else 1018 { 1019 cliConsent = decodeURIComponent(preferenceCookie); 1020 } 1021 cliConsent = JSON.parse(cliConsent); 1022 } 1023 cliConsent.ver = Cli_Data.consentVersion; 1024 categories = []; 1025 jQuery('.cli-user-preference-checkbox').each(function(){ 1026 categoryVal = ''; 1027 cli_chkbox_data_id = jQuery(this).attr('data-id'); 1028 cli_chkbox_data_id = cli_chkbox_data_id.replace('checkbox-',''); 1029 if(jQuery(this).is(':checked')) 1030 { 1031 categoryVal = 'true'; 1032 } 1033 else 1034 { 1035 categoryVal = 'false'; 1036 } 1037 cliConsent[cli_chkbox_data_id] = categoryVal; 1038 1039 }); 1040 cliConsent = JSON.stringify(cliConsent); 1041 cliConsent = window.btoa(cliConsent); 1042 CLI_Cookie.set(CLI_PREFERNCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE); 1043 }, 1044 cliRenewConsent:function() 1045 { 1046 var preferenceCookie = CLI_Cookie.read(CLI_PREFERNCE_COOKIE); 1047 if(preferenceCookie !== null) 1048 { 1049 if(CLI.isBase64(preferenceCookie)) 1050 { 1051 cliConsent = window.atob(preferenceCookie); 1052 } 1053 else 1054 { 1055 cliConsent = decodeURIComponent(preferenceCookie); 1056 } 1057 cliConsent = JSON.parse(cliConsent); 1058 consentCurrentVersion = parseInt(cliConsent.ver); 1059 consentRenewVersion = parseInt(Cli_Data.consentVersion); 1060 if( typeof(cliConsent.ver) !== 'undefined') { 1061 if(cliConsent.ver !== Cli_Data.consentVersion) 1062 { 1063 CLI_Cookie.erase(CLI_ACCEPT_COOKIE_NAME); 1064 CLI_Cookie.erase(CLI_PREFERNCE_COOKIE); 1065 CLI_Cookie.erase('cli_user_preference'); 1066 for(var k in Cli_Data.nn_cookie_ids) 1067 { 1068 CLI_Cookie.erase(Cli_Data.nn_cookie_ids[k]); 1069 } 1070 } 1071 } 1072 } 1073 1074 1075 }, 1076 reload_current_page:function() 1077 { 1078 window.location.reload(); 1079 }, 1080 add_clear_cache_url_query:function() 1081 { 1082 var cli_rand=new Date().getTime()/1000; 1083 var cli_url=window.location.href; 1084 var cli_hash_arr=cli_url.split('#'); 1085 var cli_urlparts= cli_hash_arr[0].split('?'); 1086 if(cli_urlparts.length>=2) 1087 { 1088 var cli_url_arr=cli_urlparts[1].split('&'); 1089 cli_url_temp_arr=new Array(); 1090 for(var cli_i=0; cli_i<cli_url_arr.length; cli_i++) 1091 { 1092 var cli_temp_url_arr=cli_url_arr[cli_i].split('='); 1093 if(cli_temp_url_arr[0]=='cli_action') 1094 { 1095 1096 }else 1097 { 1098 cli_url_temp_arr.push(cli_url_arr[cli_i]); 1099 } 1100 } 1101 cli_urlparts[1]=cli_url_temp_arr.join('&'); 1102 cli_url=cli_urlparts.join('?')+(cli_url_temp_arr.length>0 ? '&': '')+'cli_action='; 1103 }else 1104 { 1105 cli_url=cli_hash_arr[0]+'?cli_action='; 1106 } 1107 cli_url+=cli_rand; 1108 if(cli_hash_arr.length>1) 1109 { 1110 cli_url+='#'+cli_hash_arr[1]; 1111 } 1112 return cli_url; 1113 }, 1114 closeOnScroll:function() 1115 { 1116 if(window.pageYOffset > 100 && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) 1117 { 1118 if(CLI.settings.accept_all==true) 1119 { 1120 CLI.enableAllCookies(); 1121 }
1122 CLI.accept_close(); 1123 CLI.saveLog('accept'); 1124 if(CLI.settings.scroll_close_reload === true) 1125 { 1126 window.location.reload(); 1127 } 1128 window.removeEventListener("scroll",CLI.closeOnScroll,false); 1129 } 1130 }, 1131 displayHeader:function() 1132 { 1133 if(this.settings.notify_animate_show) 1134 { 1135 this.bar_elm.slideDown(this.settings.animate_speed_show); 1136 }else 1137 { 1138 this.bar_elm.show(); 1139 CLI.refocusElement(); 1140 } 1141 this.showagain_elm.hide(); 1142 if(CLI_COOKIEBAR_AS_POPUP) 1143 { 1144 this.showPopupOverlay(); 1145 } 1146 }, 1147 hideHeader:function() 1148 { 1149 if(this.settings.showagain_tab) 1150 { 1151 if(this.settings.notify_animate_show) 1152 { 1153 this.showagain_elm.slideDown(this.settings.animate_speed_show); 1154 } else { 1155 this.showagain_elm.show(); 1156 } 1157 }else 1158 { 1159 this.showagain_elm.hide(); 1160 } 1161 this.bar_elm.slideUp(this.settings.animate_speed_show); 1162 this.hidePopupOverlay(); 1163 }, 1164 hidePopupOverlay:function() 1165 { 1166 1167 jQuery('body').removeClass("cli-barmodal-open"); 1168 jQuery(".cli-popupbar-overlay").removeClass("cli-show"); 1169 }, 1170 showPopupOverlay:function() 1171 { 1172 if( this.bar_elm.length ) { 1173 if(this.settings.popup_overlay) 1174 { 1175 1176 if( ! ( this.main_link.hasClass('cli-minimize-bar') )) { 1177 jQuery('body').addClass("cli-barmodal-open"); 1178 jQuery(".cli-popupbar-overlay").addClass("cli-show"); 1179 } 1180 1181 } 1182 } 1183 1184 }, 1185 barAsWidget:function(a) 1186 { 1187 var cli_elm=this.bar_elm; 1188 cli_elm.attr('data-cli-type','widget'); 1189 var cli_win=jQuery(window); 1190 var cli_winh=cli_win.height()-40; 1191 var cli_winw=cli_win.width(); 1192 var cli_defw=cli_winw>465 ? 445 : cli_winw-60; 1193 cli_elm.css({ 1194 'width':cli_defw,'height':'auto','max-height':cli_winh,'overflow':'auto','position':'fixed','box-shadow':'rgba(0,0,0,.5) 0px 5px 10px','box-sizing':'border-box' 1195 }); 1196 if(this.settings.widget_position=='left') 1197 { 1198 cli_elm.css({ 1199 'left':'30px','right':'auto','bottom':'30px','top':'auto' 1200 }); 1201 }else 1202 { 1203 cli_elm.css({ 1204 'left':'auto','right':'30px','bottom':'30px','top':'auto' 1205 }); 1206 } 1207 if(a) 1208 { 1209 this.setResize(); 1210 } 1211 }, 1212 barAsPopUp:function(a) 1213 { 1214 if(typeof cookie_law_info_bar_as_popup==='function') 1215 { 1216 return false; 1217 } 1218 var cli_elm=this.bar_elm; 1219 cli_elm.attr('data-cli-type','popup'); 1220 var cli_win=jQuery(window); 1221 var cli_winh=cli_win.height(); 1222 var cli_defh = cli_winh > 500 ? 500 : cli_winh; 1223 var cli_winw=cli_win.width(); 1224 var cli_defw=cli_winw>700 ? 500 : cli_winw-20; 1225 //var cli_defw=cli_defw<500 ? 500 : cli_defw; 1226 cli_elm.css({ 1227 'width':cli_defw,'height':'auto','max-height':cli_defh,'bottom':'','top':'50%','left':'50%','transform':'translate(-50%, -50%)','overflow':'auto' 1228 }); 1229 if(a) 1230 { 1231 this.setResize(); 1232 } 1233 }, 1234 setResize:function() 1235 { 1236 var resizeTmr=null; 1237 jQuery(window).resize(function() { 1238 clearTimeout(resizeTmr); 1239 resizeTmr=setTimeout(function() 1240 { 1241 if(CLI_COOKIEBAR_AS_POPUP) 1242 { 1243 CLI.barAsPopUp(); 1244 } 1245 if(CLI.settings.cookie_bar_as=='widget') 1246 { 1247 CLI.barAsWidget(); 1248 } 1249 CLI.configShowAgain(); 1250 },500); 1251 }); 1252 }, 1253 isValidHex:function(color) { 1254 if(!color || typeof color !== 'string') return false; 1255 1256 // Validate hex values 1257 if(color.substring(0, 1) === '#') color = color.substring(1); 1258 1259 switch(color.length) { 1260 case 3: return /^[0-9A-F]{3}$/i.test(color); 1261 case 6: return /^[0-9A-F]{6}$/i.test(color); 1262 case 8: return /^[0-9A-F]{8}$/i.test(color); 1263 default: return false; 1264 } 1265 return false; 1266 }, 1267 ColorLuminance:function(hex, lum) { 1268 // validate hex string 1269 hex = String(hex).replace(/[^0-9a-f]/gi, ''); 1270 if (hex.length < 6) { 1271 hex = hex[0]+hex[0]+hex[1]+hex[1]+hex[2]+hex[2]; 1272 } 1273 lum = lum || 0; 1274 // convert to decimal and change luminosity 1275 var rgb = "#", c, i; 1276 for (i = 0; i < 3; i++) { 1277 c = parseInt(hex.substr(i*2,2), 16); 1278 c = Math.round(Math.min(Math.max(0, c + (c * lum)), 255)).toString(16); 1279 rgb += ("00"+c).substr(c.length); 1280 } 1281 return rgb; 1282 }, 1283 rgb2hex:function(rgb){ 1284 rgb = rgb.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i); 1285 return (rgb && rgb.length === 4) ? "#" + 1286 ("0" + parseInt(rgb[1],10).toString(16)).slice(-2) + 1287 ("0" + parseInt(rgb[2],10).toString(16)).slice(-2) + 1288 ("0" + parseInt(rgb[3],10).toString(16)).slice(-2) : ''; 1289 }, 1290 lightOrDark:function(color) { 1291 1292 // Variables for red, green, blue values 1293 var r, g, b, hsp; 1294 1295 // Check the format of the color, HEX or RGB? 1296 if (color.match(/^rgb/)) { 1297 1298 // If HEX --> store the red, green, blue values in separate variables 1299 color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/); 1300 1301 r = color[1]; 1302 g = color[2]; 1303 b = color[3]; 1304 } 1305 else { 1306 1307 // If RGB --> Convert it to HEX: http://gist.github.com/983661 1308 color = +("0x" + color.slice(1).replace( 1309 color.length < 5 && /./g, '$&$&')); 1310 1311 r = color >> 16; 1312 g = color >> 8 & 255; 1313 b = color & 255; 1314 } 1315 1316 // HSP (Highly Sensitive Poo) equation from http://alienryderflex.com/hsp.html 1317 hsp = Math.sqrt( 1318 0.299 * (r * r) + 1319 0.587 * (g * g) + 1320 0.114 * (b * b) 1321 ); 1322 1323 // Using the HSP value, determine whether the color is light or dark 1324 if (hsp>127.5) { 1325 1326 return 'light'; 1327 } 1328 else { 1329 1330 return 'dark'; 1331 } 1332 }, 1333 barPopupStyle:function() 1334 { 1335 var acceptBtn = jQuery('.cli_action_button[data-cli_action=accept]'); 1336 var primaryColor = this.settings.button_1_button_colour; 1337 var primaryLinkColor = this.settings.button_1_link_colour; 1338 var barColor = this.settings.background; 1339 var extractedStyle = ''; 1340 var primaryBtnStyle = this.settings.button_1_style; 1341 Object.keys(primaryBtnStyle).forEach(function(element) { 1342 extractedStyle+=primaryBtnStyle[element][0]+':'+primaryBtnStyle[element][1]+';'; 1343 }); 1344 var shadeColor; 1345 if(!CLI.isValidHex(barColor)) 1346 { 1347 barColor=CLI.rgb2hex(barColor); 1348 } 1349 if(barColor=="#000000") 1350 { 1351 shadeColor='#191919'; 1352 } 1353 else 1354 { 1355 var intensity=CLI.lightOrDark(barColor); 1356 if(intensity=='light') 1357 { 1358 shadeColor = CLI.ColorLuminance(barColor, -0.05); 1359 } 1360 else 1361 {
1362 shadeColor = CLI.ColorLuminance(barColor, 0.4); 1363 } 1364 } 1365 jQuery("<style>") 1366 .prop("type", "text/css") 1367 .html("\ 1368 #cookie-law-info-bar .cli-switch input:checked + .cli-slider{\ 1369 background-color: "+primaryColor+";\ 1370 }\ 1371 #cookie-law-info-bar .cli-tab-header{\ 1372 background-color: "+shadeColor+"\ 1373 }\ 1374 #cookie-law-info-bar .cli-switch .cli-slider:before{\ 1375 background-color: "+barColor+";\ 1376 }\ 1377 #cookie-law-info-bar .cli-tab-footer .cli-btn{\ 1378 background-color:"+primaryColor+";"+extractedStyle+"\ 1379 }\ 1380 ").appendTo("head"); 1381 1382 }, 1383 enableAllCookies:function() 1384 { 1385 1386 jQuery('.cli-user-preference-checkbox').each(function(){ 1387 var cli_chkbox_elm=jQuery(this); 1388 var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id'); 1389 if(cli_chkbox_data_id!='checkbox-necessary') 1390 { 1391 cli_chkbox_elm.prop('checked',true); 1392 CLI_Cookie.set('cookielawinfo-'+cli_chkbox_data_id,'yes',CLI_ACCEPT_COOKIE_EXPIRE); 1393 } 1394 }); 1395 }, 1396 disableAllCookies:function() 1397 { 1398 jQuery('.cli-user-preference-checkbox').each(function(){ 1399 1400 var cli_chkbox_elm=jQuery(this); 1401 var cli_chkbox_data_id=cli_chkbox_elm.attr('data-id'); 1402 cliCategorySlug = cli_chkbox_data_id.replace('checkbox-',''); 1403 if(Cli_Data.strictlyEnabled.indexOf(cliCategorySlug) === -1) 1404 { 1405 cli_chkbox_elm.prop('checked',false); 1406 CLI_Cookie.set('cookielawinfo-'+cli_chkbox_data_id,'no',CLI_ACCEPT_COOKIE_EXPIRE); 1407 } 1408 }); 1409 }, 1410 privacyReadmore:function() 1411 { 1412 var originalHtml = ''; 1413 1414 Trunc = { 1415 addReadmore:function(textBlock) 1416 { 1417 if(textBlock.html().length > Cli_Data.privacy_length) 1418 { 1419 jQuery('.cli-privacy-readmore').show(); 1420 } 1421 else 1422 { 1423 jQuery('.cli-privacy-readmore').hide(); 1424 } 1425 }, 1426 truncateText : function( textBlock ) { 1427 var strippedText = jQuery('<div />').html(textBlock.html()); 1428 strippedText.find('table').remove(); 1429 textBlock.html(strippedText.html()); 1430 currentText = textBlock.text(); 1431 if(currentText.trim().length > Cli_Data.privacy_length){ 1432 var newStr = currentText.substring(0, Cli_Data.privacy_length); 1433 textBlock.empty().html(newStr).append('...'); 1434 } 1435 }, 1436 replaceText: function ( textBlock, original ){ 1437 return textBlock.html(original); 1438 } 1439 }; 1440 1441 jQuery('.cli-privacy-content .cli-privacy-content-text').each(function () { 1442 var el = jQuery(this); 1443 clone = el.clone(); 1444 originalHtml = clone.html(); 1445 Trunc.addReadmore(el); 1446 Trunc.truncateText(el); 1447 }); 1448 1449 jQuery(document).on('click keypress','a.cli-privacy-readmore',function(e){ 1450 var key = e.which; 1451 e.preventDefault(); 1452 if (key === 1 || key === 13) { 1453 1454 var currentElement = jQuery(this); 1455 var privacyElement = currentElement.closest('.cli-privacy-overview'); 1456 var privacyContent = privacyElement.find('.cli-privacy-content-text'); 1457 1458 if ( privacyElement.hasClass('cli-collapsed') ) { 1459 Trunc.truncateText(privacyContent); 1460 privacyElement.removeClass('cli-collapsed'); 1461 privacyContent.css('height', '100%'); 1462 } 1463 else { 1464 privacyElement.addClass('cli-collapsed'); 1465 Trunc.replaceText(privacyContent, originalHtml); 1466 } 1467 } 1468 }); 1469 }, 1470 checkCategories:function() 1471 { 1472 var cliAllowedCategories = []; 1473 var cli_categories = {}; 1474 jQuery('.cli-user-preference-checkbox').each(function() 1475 { var status=false; 1476 cli_chkbox_elm=jQuery(this); 1477 cli_chkbox_data_id=cli_chkbox_elm.attr('data-id'); 1478 cli_chkbox_data_id=cli_chkbox_data_id.replace('checkbox-',''); 1479 cli_chkbox_data_id_trimmed=cli_chkbox_data_id.replace('-','_') 1480 if(jQuery(cli_chkbox_elm).is(':checked')) 1481 { 1482 status=true; 1483 cliAllowedCategories.push(cli_chkbox_data_id); 1484 } 1485 1486 cli_categories[cli_chkbox_data_id_trimmed]= status; 1487 }); 1488 CLI.allowedCategories = cliAllowedCategories; 1489 CLI.consent=cli_categories; 1490 },
1491 cookieLawInfoRunCallBacks:function() 1492 { 1493 this.checkCategories(); 1494 if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes') 1495 { 1496 if("function" == typeof CookieLawInfo_Accept_Callback){ 1497 CookieLawInfo_Accept_Callback(); 1498 } 1499 } 1500 }, 1501 addStyleAttribute:function() 1502 { 1503 var bar=this.bar_elm; 1504 var styleClass=''; 1505 if(jQuery(bar).find('.cli-bar-container').length > 0) 1506 { 1507 styleClass=jQuery('.cli-bar-container').attr('class'); 1508 styleClass=jQuery.trim(styleClass.replace('cli-bar-container','')); 1509 jQuery(bar).attr('data-cli-style',styleClass); 1510 } 1511 }, 1512 getParameterByName: function( name, url ) { 1513 if (!url) url = window.location.href; 1514 name = name.replace(/[\[\]]/g, '\\$&'); 1515 var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), 1516 results = regex.exec(url); 1517 if (!results) return null; 1518 if (!results[2]) return ''; 1519 return decodeURIComponent(results[2].replace(/\+/g, ' ')); 1520 }, 1521 acceptPageNavigation: function() { 1522 if( Boolean( this.settings.accept_close_page_navigation ) === true && !CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)) { 1523 jQuery(document).on('click','a', function () { 1524 var href = jQuery(this).attr('href'); 1525 if( href !== undefined ) { 1526 CLI.close_header(); 1527 } 1528 }); 1529 } 1530 }, 1531 refocusElement: function() { 1532 if( this.banner_heading.length > 0 ) { 1533 this.banner_heading.focus(); 1534 } else { 1535 this.bar_elm.find('a').first().focus(); 1536 } 1537 } 1538} 1539var cliBlocker = 1540{ 1541 blockingStatus: true, 1542 geoIP: false, 1543 scriptsLoaded: false, 1544 ccpaEnabled : false, 1545 ccpaRegionBased : false, 1546 ccpaApplicable : false, 1547 ccpaBarEnabled: false, 1548 cliShowBar: true , 1549 isBypassEnabled: CLI.getParameterByName('cli_bypass'), 1550 checkPluginStatus:function(callbackA , callbackB ) 1551 { 1552 1553 cliBlocker.ccpaEnabled = Boolean( Cli_Data.ccpaEnabled ); 1554 cliBlocker.ccpaRegionBased = Boolean( Cli_Data.ccpaRegionBased ); 1555 cliBlocker.ccpaBarEnabled = Boolean( Cli_Data.ccpaBarEnabled ); 1556 if( cliBlocker.ccpaEnabled === true ) { 1557 cliBlocker.ccpaApplicable = true; 1558 if( Cli_Data.ccpaType === 'ccpa') { 1559 cliBlocker.blockingStatus = false; 1560 cliBlocker.cliShowBar = false; 1561 if( cliBlocker.ccpaBarEnabled === true ) { 1562 cliBlocker.cliShowBar = true; 1563 cliBlocker.blockingStatus = true; 1564 } 1565 } 1566 } 1567 1568 if(Cli_Data.geoIP === 'enabled' || (cliBlocker.ccpaEnabled === true && cliBlocker.ccpaRegionBased === true ) ) 1569 { 1570 if( Boolean( Cli_Data.use_custom_geolocation_api ) === true ) { 1571 1572 cliBlocker.tryCustomGeoLocationService( callbackA, callbackB ); 1573 1574 } else { 1575 jQuery.getJSON('https://ipapi.co/json/', function(data) 1576 { 1577 cliBlocker.geolocationHandler( data, callbackA, callbackB ); 1578 1579 }).fail(function() { 1580 1581 cliBlocker.tryCustomGeoLocationService( callbackA, callbackB ); 1582 1583 }); 1584 } 1585 1586 } else { 1587 if ( cliBlocker.isBypassEnabled === "1") { 1588 cliBlocker.blockingStatus = false; 1589 } 1590 callbackA(); 1591 callbackB(); 1592 } 1593 1594 }, 1595 tryCustomGeoLocationService: function( callbackA, callbackB ) { 1596 jQuery.getJSON(Cli_Data.custom_geolocation_api, function(data) { 1597 cliBlocker.geolocationHandler( data, callbackA, callbackB ); 1598 }); 1599 }, 1600 geolocationHandler:function( data, callbackA, callbackB ){ 1601 var euCountries = Cli_Data.eu_countries; 1602 if( (data.in_eu === false ) && (euCountries.indexOf(data.country) === -1)) 1603 { 1604 if( Cli_Data.geoIP === 'enabled' ) { 1605 cliBlocker.blockingStatus = false; 1606 cliBlocker.cliShowBar = false; 1607 } 1608 else { 1609 if( Cli_Data.ccpaType !== 'ccpa' ) { 1610 cliBlocker.blockingStatus = true; 1611 cliBlocker.cliShowBar = true; 1612 } 1613 } 1614 } 1615 else 1616 { 1617 jQuery('body').addClass('wt-cli-geoip-on wt-cli-eu-country'); 1618 } 1619 if( cliBlocker.ccpaEnabled === true ) { 1620 if( cliBlocker.ccpaRegionBased === true && data.region_code !== 'CA' ) { 1621 cliBlocker.ccpaApplicable = false; 1622 if( Cli_Data.ccpaType === 'ccpa') { 1623 cliBlocker.cliShowBar = false; 1624 cliBlocker.blockingStatus = false; 1625 } 1626 jQuery('.wt-cli-ccpa-opt-out,.wt-cli-ccpa-checkbox,.wt-cli-ccpa-element').remove(); 1627 } 1628 else { 1629 cliBlocker.ccpaApplicable = true; 1630 if( cliBlocker.ccpaBarEnabled === true ) { 1631 cliBlocker.cliShowBar = true; 1632 } 1633 } 1634 1635 } 1636 if( cliBlocker.blockingStatus === false ) { 1637 1638 if("function" == typeof CookieLawInfo_Accept_Callback){ 1639 CookieLawInfo_Accept_Callback(); 1640 } 1641 jQuery('body').addClass('wt-cli-geoip-on wt-cli-non-eu-country'); 1642 CLI.hidePopupOverlay(); 1643 if( cliBlocker.ccpaApplicable !== true ) { 1644 cliBlocker.removeAllPreferenceCookies(); 1645 jQuery('.wt-cli-geoip-on.wt-cli-non-eu-country').find('.wt-cli-element').remove(); 1646 1647 } 1648 } 1649 callbackA(); 1650 callbackB(); 1651 },
1652 cookieBar: function() 1653 { 1654 if( cliBlocker.cliShowBar === false ) 1655 { 1656 jQuery('.wt-cli-cookie-bar-container').remove(); 1657 } 1658 else 1659 { 1660 jQuery('.wt-cli-cookie-bar-container').show(); 1661 if(!CLI_Cookie.exists(CLI_ACCEPT_COOKIE_NAME)) 1662 { 1663 CLI.displayHeader(); 1664 1665 } 1666 else 1667 { 1668 CLI.hideHeader(); 1669 } 1670 } 1671 }, 1672 removeAllPreferenceCookies : function() 1673 { 1674 cliPreferenceCookies = Cli_Data.cookielist; 1675 for (var key in cliPreferenceCookies ) { 1676 CLI_Cookie.erase('cookielawinfo-checkbox-'+key); 1677 } 1678 }, 1679 removeCookieByCategory : function() 1680 { 1681 1682 if(cliBlocker.blockingStatus === true) 1683 { 1684 if(CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) !== null) 1685 { 1686 var non_necessary_cookies = Cli_Data.non_necessary_cookies; 1687 for (var key in non_necessary_cookies) { 1688 currentCategory = key; 1689 if(CLI.allowedCategories.indexOf(currentCategory) === -1) 1690 { 1691 var nonNecessaryCookies = non_necessary_cookies[currentCategory]; 1692 for(var i=0; i < nonNecessaryCookies.length; i++) 1693 { 1694 if(CLI_Cookie.read(nonNecessaryCookie
1694s[i]) !== null) 1695 { 1696 CLI_Cookie.erase(nonNecessaryCookies[i]); 1697 } 1698 1699 } 1700 } 1701 } 1702 } 1703 } 1704 }, 1705 runScripts:function() 1706 { 1707 srcReplaceableElms = ['iframe','IFRAME','EMBED','embed','OBJECT','object','IMG','img','SOURCE','source']; 1708 var genericFuncs = 1709 { 1710 1711 renderByElement: function(callback) 1712 { 1713 cliScriptFuncs.renderScripts(); 1714 cliHtmlElmFuncs.renderSrcElement(); 1715 callback(); 1716 cliBlocker.scriptsLoaded = true; 1717 }, 1718 reviewConsent : function() 1719 { 1720 jQuery(document).on('click','.cli_manage_current_consent,.wt-cli-manage-consent-link',function(){ 1721 CLI.bar_elm.slideDown(CLI.settings.animate_speed_show); 1722 }); 1723 } 1724 1725 }; 1726 var cliScriptFuncs = 1727 { 1728 // trigger DOMContentLoaded 1729 scriptsDone:function() 1730 { 1731 if( Boolean( Cli_Data.triggerDomRefresh ) === true ) 1732 { 1733 var DOMContentLoadedEvent = document.createEvent('Event') 1734 DOMContentLoadedEvent.initEvent('DOMContentLoaded', true, true) 1735 window.document.dispatchEvent(DOMContentLoadedEvent) 1736 } 1737 }, 1738 seq :function(arr, callback, index) { 1739 // first call, without an index 1740 if (typeof index === 'undefined') { 1741 index = 0 1742 } 1743 1744 arr[index](function () { 1745 index++ 1746 if (index === arr.length) { 1747 callback() 1748 } else { 1749 cliScriptFuncs.seq(arr, callback, index) 1750 } 1751 }) 1752 }, 1753 /* script runner */ 1754 insertScript:function($script,callback) { 1755 1756 var s =''; 1757 var allowedAttributes = [ 1758 'data-cli-class', 1759 'data-cli-label', 1760 'data-cli-placeholder', 1761 'data-cli-script-type', 1762 'data-cli-src' 1763 ]; 1764 var scriptType = $script.getAttribute('data-cli-script-type'); 1765 var elementPosition = $script.getAttribute('data-cli-element-position'); 1766 var isBlock = $script.getAttribute('data-cli-block'); 1767 var blockIfCCPA = $script.getAttribute('data-cli-block-if-ccpa-optout'); 1768 var s = document.createElement('script'); 1769 var ccpaOptedOut = cliBlocker.ccpaOptedOut(); 1770 s.type = 'text/plain'; 1771 if($script.async) 1772 { 1773 s.async = $script.async; 1774 } 1775 if($script.defer) 1776 { 1777 s.defer = $script.defer; 1778 } 1779 if ($script.src) { 1780 s.onload = callback 1781 s.onerror = callback 1782 s.src = $script.src 1783 } else { 1784 s.textContent = $script.innerText 1785 } 1786 if( $script.hasAttribute('data-cli-id') ) { 1787 s.id = $script.getAttribute('data-cli-id'); 1788 } 1789 var attrs = jQuery($script).prop("attributes"); 1790 for (var ii = 0; ii < attrs.length; ++ii) { 1791 if (attrs[ii].nodeName !== 'id') { 1792 s.setAttribute(attrs[ii].nodeName,attrs[ii].value); 1793 } 1794 } 1795 1796 if(cliBlocker.blockingStatus === true) 1797 { 1798 1799 if(( CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes' && CLI.allowedCategories.indexOf(scriptType) !== -1 ) || ( CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null && isBlock==='false') ) 1800 { 1801 s.setAttribute('data-cli-consent','accepted'); 1802 s.type = 'text/javascript'; 1803 1804 } 1805 if( Cli_Data.ccpaType === 'ccpa' && blockIfCCPA !== 'true') 1806 { 1807 s.type = 'text/javascript'; 1808 } 1809 } 1810 else 1811 { 1812 s.type = 'text/javascript'; 1813 } 1814 if( cliBlocker.ccpaApplicable === true && blockIfCCPA === 'true' ) { 1815 if( ccpaOptedOut === true || CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null ) { 1816 s.type = 'text/plain'; 1817 } 1818 } 1819 1820 if($script.type != s.type) 1821 { 1822 $script.parentNode.insertBefore(s,$script); 1823 if (!$script.src) 1824 { 1825 callback() 1826 } 1827 $script.parentNode.removeChild($script); 1828 } 1829 else { 1830 callback(); 1831 } 1832 }, 1833 renderScripts:function() 1834 { 1835 var $scripts = document.querySelectorAll('script[data-cli-class="cli-blocker-script"]'); 1836 if($scripts.length > 0) 1837 { 1838 var runList = [] 1839 var typeAttr 1840 Array.prototype.forEach.call($scripts, function ($script) { 1841 1842 // only run script tags without the type attribute 1843 // or with a javascript mime attribute value 1844 typeAttr = $script.getAttribute('type') 1845 var elmType = $script.tagName; 1846 runList.push(function (callback) { 1847 cliScriptFuncs.insertScript($script, callback) 1848 }) 1849 }) 1850 cliScriptFuncs.seq(runList, cliScriptFuncs.scriptsDone); 1851 } 1852 } 1853 }; 1854 var cliHtmlElmFuncs = { 1855 renderSrcElement: function() 1856 { 1857 var blockingElms = document.querySelectorAll('[data-cli-class="cli-blocker-script"]'); 1858 var ccpaOptedOut = cliBlocker.ccpaOptedOut(); 1859 for (var i = 0; i < blockingElms.length; i++) 1860 { 1861 var currentElm = blockingElms[i]; 1862 var elmType = currentElm.tagName; 1863 if(srcReplaceableElms.indexOf(elmType) !== -1) 1864 { 1865 var elmCategory = currentElm.getAttribute('data-cli-script-type'); 1866 var isBlock = currentElm.getAttribute('data-cli-block'); 1867 var blockIfCCPA = currentElm.getAttribute('data-cli-block-if-ccpa-optout'); 1868 if( cliBlocker.blockingStatus === true ) 1869 { 1870 if((CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME)=='yes' && CLI.allowedCategories.indexOf(elmCategory) !== -1 ) || ( CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null && isBlock==='false') ) 1871 { 1872 if( cliBlocker.ccpaApplicable == true && blockIfCCPA === 'true' && ccpaOptedOut === true) { 1873 this.addPlaceholder(currentElm); 1874 } 1875 else { 1876 this.replaceSrc(currentElm); 1877 } 1878 } 1879 else 1880 { 1881 if( Cli_Data.ccpaType === 'ccpa' && blockIfCCPA !== 'true') 1882 { 1883 this.replaceSrc(currentElm); 1884 } 1885 else { 1886 this.addPlaceholder(currentElm); 1887 } 1888 1889 } 1890 1891 } 1892 else 1893 { 1894 if( cliBlocker.ccpaApplicable == true && blockIfCCPA === 'true' ) { 1895 if( ccpaOptedOut === true || CLI_Cookie.read(CLI_ACCEPT_COOKIE_NAME) == null ) { 1896 this.addPlaceholder(currentElm); 1897 } else { 1898 this.replaceSrc(currentElm); 1899 } 1900 1901 } 1902 else { 1903 this.replaceSrc(currentElm); 1904 } 1905 } 1906 1907 } 1908 } 1909 1910 }, 1911 addPlaceholder:function(htmlElm) 1912 { 1913 if(jQuery(htmlElm).prev('.wt-cli-iframe-placeholder').length === 0) 1914 { 1915 var htmlElemName = htmlElm.getAttribute('data-cli-label'); 1916 var htmlElemType = htmlElm.getAttribute('data-cli-placeholder'); 1917 var htmlElemWidth = htmlElm.getAttribute('width'); 1918 var htmlElemHeight = htmlElm.getAttribute('height'); 1919 if(htmlElemWidth == null) 1920 { 1921 htmlElemWidth = htmlElm.offsetWidth; 1922 } 1923 if(htmlElemHeight == null) 1924 { 1925 htmlElemHeight = htmlElm.offsetHeight; 1926 } 1927 pixelPattern = /px/; 1928 htmlElemWidth = ((pixelPattern.test(htmlElemWidth)) ? htmlElemWidth : htmlElemWidth+'px'); 1929 htmlElemHeight = ((pixelPattern.test(htmlElemHeight)) ? htmlElemHeight : htmlElemHeight+'px'); 1930 var addPlaceholder = '<div style="width:'+htmlElemWidth+'; height:'+htmlElemHeight+';" class="wt-cli-iframe-placeholder"><div class="wt-cli-inner-text">'+htmlElemType+'</div></div>'; 1931 addPlaceholder.width = htmlElemWidth; 1932 addPlaceholder.height = htmlElemHeight; 1933 if(htmlElm.tagName !== 'IMG') 1934 { 1935 jQuery(addPlaceholder).insertBefore(htmlElm); 1936 } 1937 htmlElm.removeAttribute('src'); 1938 htmlElm.style.display = 'none'; 1939 } 1940 }, 1941 replaceSrc: function(htmlElm) 1942 { 1943 if(!htmlElm.hasAttribute('src')) 1944 { 1945 var htmlElemSrc = htmlElm.getAttribute('data-cli-src'); 1946 htmlElm.setAttribute('src',htmlElemSrc); 1947 if(jQuery(htmlElm).prev('.wt-cli-iframe-placeholder').length > 0) 1948 { 1949 jQuery(htmlElm).prev('.wt-cli-iframe-placeholder').remove(); 1950 } 1951 htmlElm.style.display = 'block'; 1952 } 1953 } 1954 }; 1955 1956 genericFuncs.reviewConsent(); 1957 genericFuncs.renderByElement(cliBlocker.removeCookieByCategory); 1958 }, 1959 ccpaOptedOut: function () { 1960 var ccpaOptedOut = false;
1961 var preferenceCookie = CLI_Cookie.read(CLI_PREFERNCE_COOKIE); 1962 if( preferenceCookie !== null ) { 1963 if(CLI.isBase64(preferenceCookie)) 1964 { 1965 cliConsent = window.atob(preferenceCookie); 1966 } 1967 else 1968 { 1969 cliConsent = decodeURIComponent(preferenceCookie); 1970 } 1971 cliConsent = JSON.parse(cliConsent); 1972 if( typeof cliConsent.ccpaOptout !== 'undefined') { 1973 ccpaOptedOut = cliConsent.ccpaOptout; 1974 } 1975 } 1976 return ccpaOptedOut; 1977 } 1978} 1979jQuery(document).ready(function() { 1980 if(typeof cli_cookiebar_settings!='undefined') 1981 { 1982 CLI.set({ 1983 settings:cli_cookiebar_settings 1984 }); 1985 cliBlocker.checkPluginStatus(cliBlocker.cookieBar,cliBlocker.runScripts); 1986 } 1987 else 1988 { 1989 var data = { 1990 action: 'cli_get_settings_json', 1991 }; 1992 jQuery.ajax({ 1993 url: Cli_Data.ajax_url, 1994 data: data, 1995 dataType: 'json', 1996 type: 'GET', 1997 success: function (response) { 1998 CLI.set({ 1999 settings:response 2000 }); 2001 cliBlocker.checkPluginStatus(cliBlocker.cookieBar,cliBlocker.runScripts); 2002 } 2003 }); 2004 } 2005});; 2006(function( $ ) { 2007 'use strict'; 2008 var CCPA = { 2009 ccpaOptedOut: false, 2010 ccpaOptOutConfirmationOpen: false, 2011 set: function() { 2012 this.setCheckboxState(); 2013 jQuery(document).on('click','.wt-cli-ccpa-opt-out-checkbox',function() { 2014 CCPA.ccpaOptedOut = false; 2015 if(this.checked === true ) { 2016 CCPA.ccpaOptedOut = true; 2017 } 2018 CCPA.optOutCcpa(); 2019 }); 2020 jQuery(document).on('click','.wt-cli-ccpa-opt-out:not(.wt-cli-ccpa-opt-out-checkbox)',function(){ 2021 CCPA.showCcpaOptOutConfirmBox(); 2022 }) 2023 }, 2024 setCheckboxState : function() { 2025 var cliConsent = {}; 2026 var preferenceCookie = CLI_Cookie.read(CLI_PREFERNCE_COOKIE); 2027 if( preferenceCookie !== null ) { 2028 cliConsent = CCPA.parseCookie(preferenceCookie); 2029 if( typeof( cliConsent.ccpaOptout ) !== 'undefined') { 2030 2031 if( cliConsent.ccpaOptout === true ) { 2032 jQuery('.wt-cli-ccpa-opt-out-checkbox').prop('checked',true); 2033 } 2034 else { 2035 jQuery('.wt-cli-ccpa-opt-out-checkbox').prop('checked',false); 2036 } 2037 } 2038 2039 } 2040 }, 2041 optOutCcpa: function() { 2042 var preferenceCookie = CLI_Cookie.read(CLI_PREFERNCE_COOKIE); 2043 var cliConsent = {}; 2044 if( preferenceCookie !== null ) { 2045 cliConsent = CCPA.parseCookie(preferenceCookie); 2046 } 2047 cliConsent.ccpaOptout = this.ccpaOptedOut; 2048 cliConsent = JSON.stringify(cliConsent); 2049 cliConsent = window.btoa(cliConsent); 2050 CLI_Cookie.set(CLI_PREFERNCE_COOKIE,cliConsent,CLI_ACCEPT_COOKIE_EXPIRE); 2051 this.setCheckboxState(); 2052 }, 2053 parseCookie: function( preferenceCookie ) { 2054 var cliConsent = {}; 2055 if(CLI.isBase64(preferenceCookie)) 2056 { 2057 cliConsent = window.atob(preferenceCookie); 2058 } 2059 else 2060 { 2061 cliConsent = decodeURIComponent(preferenceCookie); 2062 } 2063 cliConsent = JSON.parse(cliConsent); 2064 return cliConsent; 2065 }, 2066 toggleCCPA: function() { 2067 2068 }, 2069 checkAuthentication: function() { 2070 2071 }, 2072 showCcpaOptOutConfirmBox: function() { 2073 2074 var css = '.cli-alert-dialog-buttons button {\ 2075 -webkit-box-flex: 1!important;\ 2076 -ms-flex: 1!important;\ 2077 flex: 1!important;\ 2078 -webkit-appearance: none!important;\ 2079 -moz-appearance: none!important;\ 2080 appearance: none!important;\ 2081 margin: 4px!important;\ 2082 padding: 8px 16px!important;\ 2083 border-radius: 64px!important;\ 2084 cursor: pointer!important;\ 2085 font-weight: 700!important;\ 2086 font-size: 12px !important;\ 2087 color: #fff;\ 2088 text-align: center!important;\ 2089 text-transform: capitalize;\ 2090 border: 2px solid #61a229;\ 2091 } #cLiCcpaOptoutPrompt .cli-modal-dialog{\ 2092 max-width: 320px;\ 2093 }\ 2094 #cLiCcpaOptoutPrompt .cli-modal-content {\ 2095 box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\ 2096 -webkit-box-shadow:0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\ 2097 -moz-box-shadow0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);\ 2098 }\ 2099 .cli-alert-dialog-content {\ 2100 font-size: 14px;\ 2101 }\ 2102 .cli-alert-dialog-buttons {\ 2103 padding-top:5px;\ 2104 }\ 2105 button.cli-ccpa-button-cancel {\ 2106 background: transparent !important;\ 2107 color: #61a229;\ 2108 }\ 2109 button.cli-ccpa-button-confirm {\ 2110 background-color:#61a229;\ 2111 color:#ffffff;\ 2112 }'; 2113 var head = document.head || document.getElementsByTagName('head')[0]; 2114 var style = document.createElement('style'); 2115 var primaryColor = CLI.settings.button_1_button_colour; 2116 var primaryLinkColor = CLI.settings.button_1_link_colour; 2117 var backgroundColor = CLI.settings.background; 2118 var textColor = CLI.settings.text; 2119 CCPA.ccpaOptOutConfirmationOpen = false;
2120 var ccpaPrompt, 2121 $this = this; 2122 (ccpaPrompt = document.createElement("div")).classList.add("cli-modal", "cli-show", "cli-blowup"); 2123 ccpaPrompt.id = "cLiCcpaOptoutPrompt"; 2124 var t = document.createElement("div"); 2125 t.className = "cli-modal-dialog"; 2126 var n=document.createElement("div"); 2127 n.classList.add("cli-modal-content","cli-bar-popup"); 2128 var o = document.createElement("div"); 2129 o.className="cli-modal-body"; 2130 var p = document.createElement("div"); 2131 p.classList.add("wt-cli-element", "cli-container-fluid", "cli-tab-container"); 2132 var q = document.createElement("div"); 2133 q.className="cli-row"; 2134 var r = document.createElement("div"); 2135 r.classList.add("cli-col-12"); 2136 var x = document.createElement("div"); 2137 x.classList.add("cli-modal-backdrop", "cli-fade", "cli-settings-overlay", "cli-show"); 2138 var a = document.createElement("button"); 2139 var b = document.createElement("button"); 2140 var c = document.createElement("div"); 2141 var d = document.createElement("div"); 2142 d.className = "cli-alert-dialog-content", 2143 d.innerText = ccpa_data.opt_out_prompt, 2144 c.className = "cli-alert-dialog-buttons"; 2145 a.className = "cli-ccpa-button-confirm", 2146 a.innerText = ccpa_data.opt_out_confirm, 2147 a.addEventListener("click", 2148 function() { 2149 CCPA.ccpaOptedOut = true, 2150 CCPA.optOutCcpa(), 2151 document.body.removeChild(ccpaPrompt), 2152 document.body.removeChild(x), 2153 document.body.classList.remove("cli-modal-open"); 2154 head.removeChild(style); 2155 if( Cli_Data.ccpaType === 'ccpa' ){ 2156 CLI.enableAllCookies(); 2157 CLI.accept_close(); 2158 } 2159 } 2160 ), 2161 b.className="cli-ccpa-button-cancel", 2162 b.innerText = ccpa_data.opt_out_cancel, 2163 b.addEventListener("click", 2164 function() { 2165 CCPA.ccpaOptedOut = false, 2166 CCPA.optOutCcpa(), 2167 document.body.removeChild(ccpaPrompt), 2168 document.body.removeChild(x), 2169 document.body.classList.remove("cli-modal-open"); 2170 head.removeChild(style); 2171 if( Cli_Data.ccpaType === 'ccpa' ){ 2172 CLI.enableAllCookies(); 2173 CLI.accept_close(); 2174 } 2175 } 2176 ), 2177 ccpaPrompt.addEventListener("click", 2178 function( event ) { 2179 event.stopPropagation(); 2180 if ( ccpaPrompt !== event.target) return; 2181 document.body.removeChild(ccpaPrompt), 2182 document.body.removeChild(x), 2183 document.body.classList.remove("cli-modal-open"); 2184 head.removeChild(style); 2185 2186 }), 2187 ccpaPrompt.appendChild(t), 2188 t.appendChild(n), 2189 n.appendChild(o), 2190 o.appendChild(p), 2191 p.appendChild(q), 2192 q.appendChild(r), 2193 r.appendChild(d), 2194 r.appendChild(c), 2195 c.appendChild(b), 2196 c.appendChild(a), 2197 2198 head.appendChild(style); 2199 style.type = 'text/css'; 2200 if (style.styleSheet){ 2201 // This is required for IE8 and below. 2202 style.styleSheet.cssText = css; 2203 } else { 2204 style.appendChild(document.createTextNode(css)); 2205 } 2206 document.body.appendChild(ccpaPrompt); 2207 document.body.appendChild(x); 2208 document.body.classList.add("cli-modal-open"); 2209 2210 }, 2211 } 2212 jQuery(document).ready(function() { 2213 CCPA.set(); 2214 }); 2215 2216})( jQuery ); 2217; 2218/* Modernizr 2.8.3 (Custom Build) | MIT & BSD 2219 * Build: http://modernizr.com/download/#-fontface-backgroundsize-flexbox-flexboxlegacy-cssanimations-hashchange-history-video-inputtypes-inlinesvg-svg-svgclippaths-touch-webgl-shiv-mq-cssclasses-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load 2220 */ 2221;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:F(f,"function")?f.bind(d||b):f}return!1}function J(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return F(b,"string")||F(b,"undefined")?H(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),I(e,b,c))}function K(){e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.8.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"https://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},z=function(b){var c=a.matchMedia||a.msMatchMedia;
2221if(c)return c(b)&&c(b).matches||!1;var d;return y("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},A=function(){function d(d,e){e=e||b.createElement(a[d]||"div"),d="on"+d;var f=d in e;return f||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(d,""),f=F(e[d],"function"),F(e[d],"undefined")||(e[d]=c),e.removeAttribute(d))),e=null,f}var a={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return d}(),B={}.hasOwnProperty,C;!F(B,"undefined")&&!F(B.call,"undefined")?C=function(a,b){return B.call(a,b)}:C=function(a,b){return b in a&&F(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.flexbox=function(){return J("flexWrap")},s.flexboxlegacy=function(){return J("boxDirection")},s.webgl=function(){return!!a.WebGLRenderingContext},s.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:y(["@media (",n.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},s.hashchange=function(){return A("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},s.history=function(){return!!a.history&&!!history.pushState},s.backgroundsize=function(){return J("backgroundSize")},s.cssanimations=function(){return J("animationName")},s.fontface=function(){var a;return y('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&g.indexOf(d.split(" ")[0])===0}),a},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect},s.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==r.svg},s.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(m.call(b.createElementNS(r.svg,"clipPath")))};for(var L in s)C(s,L)&&(x=L.toLowerCase(),e[x]=s[L](),v.push((e[x]?"":"no-")+x));return e.input||K(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)C(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},D(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function q(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?o(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b);var c=n(a);return s.shivCSS&&!g&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{dis
2221play:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var c="3.7.0",d=a.html5||{},e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g,h="_html5shiv",i=0,j={},k;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.mq=z,e.hasEvent=A,e.testProp=function(a){return H([a])},e.testAllProps=J,e.testStyles=y,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))}; 2222; 2223window.FacebookSignal = window.FacebookSignal || { 2224 _held: false, 2225 _releasing: false, 2226 _pixelInitialized: false, 2227 _pixelId: null, 2228 _pixelUserInfo: {}, 2229 _pixelOptions: {}, 2230 _pendingPixelEvents: [], 2231 _queue: [], 2232 _config: {}, 2233 _seenEventIds: {}, 2234 _fbclid: (function () { 2235 try { 2236 var match = window.location.search.match(/[?&]fbclid=([^&]*)/); 2237 return match ? decodeURIComponent(match[1]) : null; 2238 } catch (e) { 2239 return null; 2240 } 2241 })(), 2242 2243 _readCookie: function (name) { 2244 try { 2245 var pairs = (document.cookie || '').split(';'); 2246 for (var i = 0; i < pairs.length; i++) { 2247 var pair = pairs[i].replace(/^\s+/, ''); 2248 if (pair.indexOf(name + '=') === 0) { 2249 return decodeURIComponent(pair.substring(name.length + 1)); 2250 } 2251 } 2252 } catch (e) {} 2253 return null; 2254 }, 2255 2256 init: function (config) { 2257 this._config = config || {}; 2258 this._attribution = this._config.attribution || {}; 2259
2260 // Read cookie directly so cached pages resolve the correct held/active 2261 // state even when PHP rendered held: false. 2262 var cookieState = this._readCookie('wc_facebook_signals_state'); 2263 this._held = cookieState ? cookieState === 'held' : !!this._config.held; 2264 2265 // Sync consent immediately so fbevents.js obeys the current state. 2266 if (typeof fbq === 'function') { 2267 fbq('consent', this._held ? 'revoke' : 'grant'); 2268 } 2269 2270 try { 2271 var raw = window.sessionStorage.getItem('fbpix_seen_event_ids'); 2272 this._seenEventIds = raw ? JSON.parse(raw) : {}; 2273 } catch (e) { 2274 this._seenEventIds = this._seenEventIds || {}; 2275 } 2276 }, 2277 2278 initPixel: function (pixelId, userInfo, options) { 2279 this._pixelId = pixelId; 2280 this._pixelUserInfo = 2281 userInfo && typeof userInfo === 'object' && !Array.isArray(userInfo) 2282 ? userInfo 2283 : {}; 2284 this._pixelOptions = options || {}; 2285 if (!this._held) { 2286 this._runPixelInit(); 2287 } 2288 }, 2289 2290 _runPixelInit: function () { 2291 if (this._pixelInitialized || !this._pixelId || typeof fbq !== 'function') { 2292 return; 2293 } 2294 if (this._pixelOptions && this._pixelOptions.includeCapiIntegration) { 2295 var url = window.location.origin + '?ob=open-bridge'; 2296 fbq('set', 'openbridge', this._pixelId, url); 2297 } 2298 2299 if (this._config.capig === '1') { 2300 fbq('optinMetaEnabledCapi', this._pixelId); 2301 } 2302 2303 fbq('init', this._pixelId, this._pixelUserInfo, this._pixelOptions); 2304 2305 this._pixelInitialized = true; 2306 this._flushPendingPixelEvents(); 2307 }, 2308 2309 _flushPendingPixelEvents: function () { 2310 var pending = this._pendingPixelEvents; 2311 this._pendingPixelEvents = []; 2312 for (var i = 0; i < pending.length; i++) { 2313 var ev = pending[i]; 2314 this._firePixelEvent(ev.name, ev.params, ev.method, ev.eventId); 2315 } 2316 }, 2317 2318 _fireOrQueuePixelEvent: function (name, params, method, eventId) { 2319 if (!this._pixelInitialized) { 2320 this._pendingPixelEvents.push({ 2321 name: name, 2322 params: params || {}, 2323 method: method || 'track', 2324 eventId: eventId || null, 2325 }); 2326 return; 2327 } 2328 this._firePixelEvent(name, params || {}, method || 'track', eventId || null); 2329 }, 2330 2331 _firePixelEvent: function (name, params, method, eventId) { 2332 method = method || 'track'; 2333 if (eventId) { 2334 fbq(method, name, params || {}, { eventID: eventId }); 2335 } else { 2336 fbq(method, name, params || {}); 2337 } 2338 }, 2339 2340 _syncCookie: function (name, serverValue, domain) { 2341 if (!serverValue) { 2342 return; 2343 } 2344 var encoded = encodeURIComponent(serverValue); 2345 var match = document.cookie.match( 2346 new RegExp('(?:^|;\\s*)' + name + '=([^;]*)'), 2347 ); 2348 var current = match ? match[1] : null; 2349 if (current && current !== encoded) { 2350 var cookie = 2351 name + '=' + encoded + ';path=/;max-age=7776000;SameSite=Lax'; 2352 if (domain) { 2353 cookie += ';domain=' + domain; 2354 } 2355 document.cookie = cookie; 2356 } 2357 }, 2358 2359 queueEvent: function (eventData) { 2360 if (!eventData || !eventData.event_name) { 2361 return; 2362 } 2363 2364 if (eventData.event_id && this._seenEventIds[eventData.event_id]) { 2365 return; 2366 } 2367 2368 eventData.event_time = 2369 eventData.event_time || Math.floor(Date.now() / 1000); 2370 eventData.event_source_url = 2371 eventData.event_source_url || window.location.href; 2372 this._queue.push(eventData); 2373 2374 if (eventData.event_id) { 2375 this._seenEventIds[eventData.event_id] = 1; 2376 try { 2377 window.sessionStorage.setItem( 2378 'fbpix_seen_event_ids', 2379 JSON.stringify(this._seenEventIds), 2380 ); 2381 } catch (e) {} 2382 } 2383 }, 2384 2385 trackEvent: function (name, params, userData, method, eventId) { 2386 method = method || 'track'; 2387 eventId = eventId || (params && params.eventID) || null; 2388 2389 if (this._held) { 2390 this.queueEvent({ 2391 event_name: name, 2392 custom_data: params || {}, 2393 event_id: eventId, 2394 event_time: Math.floor(Date.now() / 1000), 2395 method: method, 2396 }); 2397 } else { 2398 this._fireOrQueuePixelEvent(name, params || {}, method, eventId); 2399 } 2400 }, 2401 2402 hold: function () { 2403 this._held = true; 2404 fbq('consent', 'revoke'); 2405 }, 2406 2407 release: function () { 2408 var self = this; 2409 2410 if (!self._held || self._releasing || !self._config.ajaxUrl) { 2411 return Promise.resolve({ success: true, data: { sent_count: 0 } }); 2412 } 2413 2414 self._releasing = true; 2415 2416 return new Promise(function (resolve, reject) { 2417 var xhr = new XMLHttpRequest(); 2418 var url = 2419 self._config.ajaxUrl + 2420 (self._config.ajaxUrl.indexOf('?') === -1 ? '?' : '&') + 2421 'action=' + 2422 encodeURIComponent(self._config.releaseAction); 2423 2424 xhr.open('POST', url, true); 2425 xhr.setRequestHeader('Content-Type', 'application/json'); 2426 xhr.onload = function () { 2427 if (xhr.status < 200 || xhr.status >= 300) { 2428 self._releasing = false;
2429 reject(new Error('Release AJAX failed: ' + xhr.status)); 2430 return; 2431 } 2432 2433 try { 2434 var response = JSON.parse(xhr.responseText); 2435 self._handleReleaseResponse(response.data || {}); 2436 self._releasing = false; 2437 resolve(response); 2438 } catch (error) { 2439 self._releasing = false; 2440 reject(error); 2441 } 2442 }; 2443 xhr.onerror = function () { 2444 self._releasing = false; 2445 reject(new Error('Network error')); 2446 }; 2447 var attribution = self._config.attribution || {}; 2448 xhr.send( 2449 JSON.stringify({ 2450 events: self._queue, 2451 fbclid: self._fbclid, 2452 fbp: self._readCookie('_fbp') || attribution.fbp || null, 2453 fbc: self._readCookie('_fbc') || attribution.fbc || null, 2454 }), 2455 ); 2456 }); 2457 }, 2458 2459 _handleReleaseResponse: function (data) { 2460 var attr = this._config.attribution || {}; 2461 var fbpValue = data.fbp || attr.fbp; 2462 var fbcValue = data.fbc || attr.fbc; 2463 2464 if (fbpValue) { 2465 var fbpCookie = 2466 '_fbp=' + encodeURIComponent(fbpValue) + ';path=/;max-age=7776000;SameSite=Lax'; 2467 if (attr.fbpDomain) { 2468 fbpCookie += ';domain=' + attr.fbpDomain; 2469 } 2470 document.cookie = fbpCookie; 2471 } 2472 2473 if (fbcValue) { 2474 var fbcCookie = 2475 '_fbc=' + encodeURIComponent(fbcValue) + ';path=/;max-age=7776000;SameSite=Lax'; 2476 if (attr.fbcDomain) { 2477 fbcCookie += ';domain=' + attr.fbcDomain; 2478 } 2479 document.cookie = fbcCookie; 2480 } 2481 2482 // Update user_info with fresh AAM data from the release response, then 2483 // run (or re-run) fbq('init') so the pixel has correct user_info. 2484 if ( 2485 data.user_info && 2486 typeof data.user_info === 'object' && 2487 !Array.isArray(data.user_info) 2488 ) { 2489 this._pixelUserInfo = data.user_info; 2490 } 2491 this._pixelInitialized = false; 2492 this._runPixelInit(); 2493 2494 fbq('consent', 'grant'); 2495 2496 for (var i = 0; i < this._queue.length; i++) { 2497 var queuedEvent = this._queue[i]; 2498 var customData = queuedEvent.custom_data || {}; 2499 var trackMethod = queuedEvent.method || (queuedEvent.is_custom ? 'trackCustom' : 'track'); 2500 if (queuedEvent.event_id) { 2501 fbq(trackMethod, queuedEvent.event_name, customData, { 2502 eventID: queuedEvent.event_id, 2503 }); 2504 } else { 2505 fbq(trackMethod, queuedEvent.event_name, customData); 2506 } 2507 } 2508 2509 this._queue = []; 2510 this._held = false; 2511 this._releasing = false; 2512 }, 2513}; 2514 2515window.fbwcsignal = window.fbwcsignal || {}; 2516(function (api) { 2517 var signalConfig = window.facebookSignalConfig || {}; 2518 var cookieName = signalConfig.cookieName || ''; 2519 var ajaxUrl = signalConfig.ajaxUrl || ''; 2520 var signalsAction = signalConfig.signalsAction || ''; 2521 var signalsNonce = signalConfig.signalsNonce || ''; 2522 2523 function setCookie(value) { 2524 var expires = new Date(); 2525 expires.setTime(expires.getTime() + 365 * 24 * 60 * 60 * 1000); 2526 document.cookie = 2527 cookieName + 2528 '=' + 2529 encodeURIComponent(value) + 2530 ';expires=' + 2531 expires.toUTCString() + 2532 ';path=/;SameSite=Lax'; 2533 } 2534 2535 function getCookie() { 2536 var match = document.cookie.match( 2537 new RegExp('(?:^|;\\s*)' + cookieName + '=([^;]*)'), 2538 ); 2539 return match ? decodeURIComponent(match[1]) : null; 2540 } 2541 2542 function updateState(state) { 2543 var normalizedState = state === 'active' ? 'active' : 'held'; 2544 setCookie(normalizedState); 2545 2546 return new Promise(function (resolve, reject) { 2547 var xhr = new XMLHttpRequest(); 2548 xhr.open('POST', ajaxUrl, true); 2549 xhr.setRequestHeader( 2550 'Content-Type', 2551 'application/x-www-form-urlencoded; charset=UTF-8', 2552 ); 2553 xhr.onload = function () { 2554 if (xhr.status < 200 || xhr.status >= 300) { 2555 reject(new Error('Signals AJAX failed: ' + xhr.status)); 2556 return; 2557 } 2558 2559 try { 2560 var response = JSON.parse(xhr.responseText); 2561 if (normalizedState === 'held') { 2562 window.FacebookSignal.hold(); 2563 resolve(response); 2564 return; 2565 } 2566 2567 if (window.FacebookSignal && window.FacebookSignal._held) { 2568 window.FacebookSignal.release().then( 2569 function () { 2570 resolve(response); 2571 }, 2572 function (error) { 2573 reject(error); 2574 }, 2575 ); 2576 return; 2577 } 2578 2579 resolve(response); 2580 } catch (error) { 2581 reject(error); 2582 } 2583 }; 2584 xhr.onerror = function () { 2585 reject(new Error('Network error')); 2586 }; 2587 xhr.send( 2588 'action=' + 2589 encodeURIComponent(signalsAction) + 2590 '&security=' + 2591 encodeURIComponent(signalsNonce) + 2592 '&state=' + 2593 encodeURIComponent(normalizedState), 2594 ); 2595 }); 2596 } 2597 2598 api.hold = function () { 2599 return updateState('held'); 2600 }; 2601 2602 api.release = function () { 2603 return updateState('active'); 2604 }; 2605 2606 api.getState = function () { 2607 var value = getCookie(); 2608 if (value === 'active' || value === 'held') { 2609 return value; 2610 } 2611 return null; 2612 }; 2613})(window.fbwcsignal); 2614; 2615!function t(e,a,r){function n(s,o){if(!a[s]){if(!e[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}
2615var c=a[s]={exports:{}};e[s][0].call(c.exports,function(t){var a=e[s][1][t];return n(a?a:t)},c,c.exports,t,e,a,r)}return a[s].exports}for(var i="function"==typeof require&&require,s=0;s<r.length;s++)n(r[s]);return n}({1:[function(t,e,a){(function(a){var r=t("./includes/state"),n=t("./includes/plugin");!function(t){"use strict";t(function(){Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=a.length;return function(n){if("object"!=typeof n&&("function"!=typeof n||null===n))throw new TypeError("Object.keys called on non-object");var i,s,o=[];for(i in n)t.call(n,i)&&o.push(i);if(e)for(s=0;s<r;s++)t.call(n,a[s])&&o.push(a[s]);return o}}()),t.fn.searchAndFilter=n,t(".searchandfilter").searchAndFilter(),t(document).on("click",".search-filter-reset",function(e){e.preventDefault();var a="undefined"!=typeof t(this).attr("data-search-form-id")?t(this).attr("data-search-form-id"):"",n="undefined"!=typeof t(this).attr("data-sf-submit-form")?t(this).attr("data-sf-submit-form"):"";return r.getSearchForm(a).reset(n),!1})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof e&&"object"==typeof e.exports?e.exports=t("undefined"!=typeof window?window.jQuery:"undefined"!=typeof a?a.jQuery:null):t(jQuery)}(function(t){function e(t){var e=7.5625,a=2.75;return t<1/a?e*t*t:t<2/a?e*(t-=1.5/a)*t+.75:t<2.5/a?e*(t-=2.25/a)*t+.9375:e*(t-=2.625/a)*t+.984375}"undefined"!=typeof t.easing&&(t.easing.jswing=t.easing.swing);var a=Math.pow,r=Math.sqrt,n=Math.sin,i=Math.cos,s=Math.PI,o=1.70158,l=1.525*o,u=o+1,c=2*s/3,f=2*s/4.5;return t.extend(t.easing,{def:"easeOutQuad",swing:function(e){return t.easing[t.easing.def](e)},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return 1-(1-t)*(1-t)},easeInOutQuad:function(t){return t<.5?2*t*t:1-a(-2*t+2,2)/2},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return 1-a(1-t,3)},easeInOutCubic:function(t){return t<.5?4*t*t*t:1-a(-2*t+2,3)/2},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1-a(1-t,4)},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-a(-2*t+2,4)/2},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1-a(1-t,5)},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1-a(-2*t+2,5)/2},easeInSine:function(t){return 1-i(t*s/2)},easeOutSine:function(t){return n(t*s/2)},easeInOutSine:function(t){return-(i(s*t)-1)/2},easeInExpo:function(t){return 0===t?0:a(2,10*t-10)},easeOutExpo:function(t){return 1===t?1:1-a(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:t<.5?a(2,20*t-10)/2:(2-a(2,-20*t+10))/2},easeInCirc:function(t){return 1-r(1-a(t,2))},easeOutCirc:function(t){return r(1-a(t-1,2))},easeInOutCirc:function(t){return t<.5?(1-r(1-a(2*t,2)))/2:(r(1-a(-2*t+2,2))+1)/2},easeInElastic:function(t){return 0===t?0:1===t?1:-a(2,10*t-10)*n((10*t-10.75)*c)},easeOutElastic:function(t){return 0===t?0:1===t?1:a(2,-10*t)*n((10*t-.75)*c)+1},easeInOutElastic:function(t){return 0===t?0:1===t?1:t<.5?-(a(2,20*t-10)*n((20*t-11.125)*f))/2:a(2,-20*t+10)*n((20*t-11.125)*f)/2+1},easeInBack:function(t){return u*t*t*t-o*t*t},easeOutBack:function(t){return 1+u*a(t-1,3)+o*a(t-1,2)},easeInOutBack:function(t){return t<.5?a(2*t,2)*(2*(l+1)*t-l)/2:(a(2*t-2,2)*((l+1)*(2*t-2)+l)+2)/2},easeInBounce:function(t){return 1-e(1-t)},easeOutBounce:e,easeInOutBounce:function(t){return t<.5?(1-e(1-2*t))/2:(1+e(2*t-1))/2}}),t})}(jQuery),jQuery(window).on("pageshow",function(t){t.originalEvent.persisted&&(jQuery(".searchandfilter").off(),jQuery(".searchandfilter").searchAndFilter())}),!function(){"use strict";function t(t){return t.split("").reverse().join("")}function e(t,e){return t.substring(0,e.length)===e}function a(t,e){return t.slice(-1*e.length)===e}function r(t,e,a){if((t[e]||t[a])&&t[e]===t[a])throw new Error(e)}function n(t){return"number"==typeof t&&isFinite(t)}function i(t,e){var a=Math.pow(10,e);return(Math.round(t*a)/a).toFixed(e)}function s(e,a,r,s,o,l,u,c,f,d,p,h){var m,_,g,v=h,x="",y="";return l&&(h=l(h)),!!n(h)&&(e!==!1&&0===parseFloat(h.toFixed(e))&&(h=0),0>h&&(m=!0,h=Math.abs(h)),e!==!1&&(h=i(h,e)),h=h.toString(),-1!==h.indexOf(".")?(_=h.split("."),g=_[0],r&&(x=r+_[1])):g=h,a&&(g=t(g).match(/.{1,3}
2615/g),g=t(g.join(t(a)))),m&&c&&(y+=c),s&&(y+=s),m&&f&&(y+=f),y+=g,y+=x,o&&(y+=o),d&&(y=d(y,v)),y)}function o(t,r,i,s,o,l,u,c,f,d,p,h){var m,_="";return p&&(h=p(h)),!(!h||"string"!=typeof h)&&(c&&e(h,c)&&(h=h.replace(c,""),m=!0),s&&e(h,s)&&(h=h.replace(s,"")),f&&e(h,f)&&(h=h.replace(f,""),m=!0),o&&a(h,o)&&(h=h.slice(0,-1*o.length)),r&&(h=h.split(r).join("")),i&&(h=h.replace(i,".")),m&&(_+="-"),_+=h,_=_.replace(/[^0-9\.\-.]/g,""),""!==_&&(_=Number(_),u&&(_=u(_)),!!n(_)&&_))}function l(t){var e,a,n,i={};for(e=0;e<f.length;e+=1)if(a=f[e],n=t[a],void 0===n)"negative"!==a||i.negativeBefore?"mark"===a&&"."!==i.thousand?i[a]=".":i[a]=!1:i[a]="-";else if("decimals"===a){if(!(n>=0&&8>n))throw new Error(a);i[a]=n}else if("encoder"===a||"decoder"===a||"edit"===a||"undo"===a){if("function"!=typeof n)throw new Error(a);i[a]=n}else{if("string"!=typeof n)throw new Error(a);i[a]=n}return r(i,"mark","thousand"),r(i,"prefix","negative"),r(i,"prefix","negativeBefore"),i}function u(t,e,a){var r,n=[];for(r=0;r<f.length;r+=1)n.push(t[f[r]]);return n.push(a),e.apply("",n)}function c(t){return this instanceof c?void("object"==typeof t&&(t=l(t),this.to=function(e){return u(t,s,e)},this.from=function(e){return u(t,o,e)})):new c(t)}var f=["decimals","thousand","mark","prefix","postfix","encoder","decoder","negativeBefore","negative","edit","undo"];window.wNumb=c}()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./includes/plugin":3,"./includes/state":5}],2:[function(t,e,a){!function(t){"function"==typeof define&&define.amd?define([],t):"object"==typeof a?e.exports=t():window.noUiSlider=t()}(function(){"use strict";function t(t){return"object"==typeof t&&"function"==typeof t.to&&"function"==typeof t.from}function e(t){t.parentElement.removeChild(t)}function a(t){return null!==t&&void 0!==t}function r(t){t.preventDefault()}function n(t){return t.filter(function(t){return!this[t]&&(this[t]=!0)},{})}function i(t,e){return Math.round(t/e)*e}function s(t,e){var a=t.getBoundingClientRect(),r=t.ownerDocument,n=r.documentElement,i=m(r);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(i.x=0),e?a.top+i.y-n.clientTop:a.left+i.x-n.clientLeft}function o(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function l(t,e,a){a>0&&(d(t,e),setTimeout(function(){p(t,e)},a))}function u(t){return Math.max(Math.min(t,100),0)}function c(t){return Array.isArray(t)?t:[t]}function f(t){t=String(t);var e=t.split(".");return e.length>1?e[1].length:0}function d(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function p(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function h(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function m(t){var e=void 0!==window.pageXOffset,a="CSS1Compat"===(t.compatMode||""),r=e?window.pageXOffset:a?t.documentElement.scrollLeft:t.body.scrollLeft,n=e?window.pageYOffset:a?t.documentElement.scrollTop:t.body.scrollTop;return{x:r,y:n}}function _(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function g(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(a){}return t}function v(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function x(t,e){return 100/(e-t)}function y(t,e){return 100*e/(t[1]-t[0])}function b(t,e){return y(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}function j(t,e){return e*(t[1]-t[0])/100+t[0]}function w(t,e){for(var a=1;t>=e[a];)a+=1;return a}function S(t,e,a){if(a>=t.slice(-1)[0])return 100;var r=w(a,t),n=t[r-1],i=t[r],s=e[r-1],o=e[r];return s+b([n,i],a)/x(s,o)}function U(t,e,a){if(a>=100)return t.slice(-1)[0];var r=w(a,e),n=t[r-1],i=t[r],s=e[r-1],o=e[r];return j([n,i],(a-s)*x(s,o))}function C(t,e,a,r){if(100===r)return r;var n=w(r,t),s=t[n-1],o=t[n];
2615return a?r-s>(o-s)/2?o:s:e[n-1]?t[n-1]+i(r-t[n-1],e[n-1]):r}function E(t,e,a){var r;if("number"==typeof e&&(e=[e]),!Array.isArray(e))throw new Error("noUiSlider ("+K+"): 'range' contains invalid value.");if(r="min"===t?0:"max"===t?100:parseFloat(t),!o(r)||!o(e[0]))throw new Error("noUiSlider ("+K+"): 'range' value isn't numeric.");a.xPct.push(r),a.xVal.push(e[0]),r?a.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(a.xSteps[0]=e[1]),a.xHighestCompleteStep.push(0)}function A(t,e,a){if(!e)return!0;a.xSteps[t]=y([a.xVal[t],a.xVal[t+1]],e)/x(a.xPct[t],a.xPct[t+1]);var r=(a.xVal[t+1]-a.xVal[t])/a.xNumSteps[t],n=Math.ceil(Number(r.toFixed(3))-1),i=a.xVal[t]+a.xNumSteps[t]*n;a.xHighestCompleteStep[t]=i}function P(t,e,a){this.xPct=[],this.xVal=[],this.xSteps=[a||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var r,n=[];for(r in t)t.hasOwnProperty(r)&&n.push([t[r],r]);for(n.length&&"object"==typeof n[0][0]?n.sort(function(t,e){return t[0][0]-e[0][0]}):n.sort(function(t,e){return t[0]-e[0]}),r=0;r<n.length;r++)E(n[r][1],n[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)A(r,this.xNumSteps[r],this)}function k(e){if(t(e))return!0;throw new Error("noUiSlider ("+K+"): 'format' requires 'to' and 'from' methods.")}function F(t,e){if(!o(e))throw new Error("noUiSlider ("+K+"): 'step' is not numeric.");t.singleStep=e}function O(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider ("+K+"): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider ("+K+"): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider ("+K+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new P(e,t.snap,t.singleStep)}function R(t,e){if(e=c(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider ("+K+"): 'start' option is incorrect.");t.handles=e.length,t.start=e}function N(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+K+"): 'snap' option must be a boolean.")}function M(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider ("+K+"): 'animate' option must be a boolean.")}function T(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider ("+K+"): 'animationDuration' option must be a number.")}function V(t,e){var a,r=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),e===!0||e===!1){for(a=1;a<t.handles;a++)r.push(e);r.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider ("+K+"): 'connect' option doesn't match handle count.");r=e}t.connect=r}function I(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+K+"): 'orientation' option is invalid.")}}function L(t,e){if(!o(e))throw new Error("noUiSlider ("+K+"): 'margin' option must be numeric.");if(0!==e&&(t.margin=t.spectrum.getMargin(e),!t.margin))throw new Error("noUiSlider ("+K+"): 'margin' option is only supported on linear sliders.")}function $(t,e){if(!o(e))throw new Error("noUiSlider ("+K+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(e),!t.limit||t.handles<2)throw new Error("noUiSlider ("+K+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function Q(t,e){if(!o(e)&&!Array.isArray(e))throw new Error("noUiSlider ("+K+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!o(e[0])&&!o(e[1]))throw new Error("noUiSlider ("+K+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){if(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getMargin(e[0]),t.spectrum.getMargin(e[1])],t.padding[0]===!1||t.padding[1]===!1)throw new Error("noUiSlider ("+K+"): 'padding' option is only supported on linear sliders.");if(t.padding[0]<0||t.padding[1]<0)throw new Error("noUiSlider ("+K+"): 'padding' option must be a positive number(s).");if(t.padding[0]+t.padding[1]>=100)throw new Error("noUiSlider ("+K+"): 'padding' option must not exceed 100% of the range.")}}function q(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+K+"): 'direction' option was not recognized.")}}function D(t,e){if("string"!=typeof e)throw new Error("noUiSlider ("+K+"): 'behaviour' must be a string containing options.");var a=e.indexOf("tap")>=0,r=e.indexOf("drag")>=0,n=e.indexOf("fixed")>=0,i=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(n){if(2!==t.handles)throw new Error("noUiSlider ("+K+"): 'fixed' behaviour must be used with 2 handles");L(t,t.start[1]-t.start[0])}t.events={tap:a||i,drag:r,fixed:n,snap:i,hover:s}}function H(t,e){if(e!==!1)if(e===!0){t.tooltips=[];for(var a=0;a<t.handles;a++)t.tooltips.push(!0)}else{if(t.tooltips=c(e),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+K+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+K+"): 'tooltips' must be passed a formatter or 'false'.")})}}function z(t,e){t.ariaFormat=e,k(e)}function B(t,e){t.format=e,k(e)}function W(t,e){if("string"!=typeof e&&e!==!1)throw new Error("noUiSlider ("+K+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function X(t,e){if("object"!=typeof e)throw new Error("noUiSlider ("+K+"): 'cssClasse
2615s' must be an object.");if("string"==typeof t.cssPrefix){t.cssClasses={};for(var a in e)e.hasOwnProperty(a)&&(t.cssClasses[a]=t.cssPrefix+e[a])}else t.cssClasses=e}function Y(t){var e={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:Z,format:Z},r={step:{r:!1,t:F},start:{r:!0,t:R},connect:{r:!0,t:V},direction:{r:!0,t:q},snap:{r:!1,t:N},animate:{r:!1,t:M},animationDuration:{r:!1,t:T},range:{r:!0,t:O},orientation:{r:!1,t:I},margin:{r:!1,t:L},limit:{r:!1,t:$},padding:{r:!1,t:Q},behaviour:{r:!0,t:D},ariaFormat:{r:!1,t:z},format:{r:!1,t:B},tooltips:{r:!1,t:H},cssPrefix:{r:!0,t:W},cssClasses:{r:!0,t:X}},n={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};t.format&&!t.ariaFormat&&(t.ariaFormat=t.format),Object.keys(r).forEach(function(i){if(!a(t[i])&&void 0===n[i]){if(r[i].r)throw new Error("noUiSlider ("+K+"): '"+i+"' is required.");return!0}r[i].t(e,a(t[i])?t[i]:n[i])}),e.pips=t.pips;var i=document.createElement("div"),s=void 0!==i.style.msTransform,o=void 0!==i.style.transform;e.transformRule=o?"transform":s?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return e.style=l[e.dir][e.ort],e}function J(t,a,i){function o(t,e){var a=St.createElement("div");return e&&d(a,e),t.appendChild(a),a}function f(t,e){var r=o(t,a.cssClasses.origin),n=o(r,a.cssClasses.handle);return n.setAttribute("data-handle",e),n.setAttribute("tabindex","0"),n.setAttribute("role","slider"),n.setAttribute("aria-orientation",a.ort?"vertical":"horizontal"),0===e?d(n,a.cssClasses.handleLower):e===a.handles-1&&d(n,a.cssClasses.handleUpper),r}function x(t,e){return!!e&&o(t,a.cssClasses.connect)}function y(t,e){var r=o(e,a.cssClasses.connects);ct=[],ft=[],ft.push(x(r,t[0]));for(var n=0;n<a.handles;n++)ct.push(f(e,n)),xt[n]=n,ft.push(x(r,t[n+1]))}function b(t){d(t,a.cssClasses.target),0===a.dir?d(t,a.cssClasses.ltr):d(t,a.cssClasses.rtl),0===a.ort?d(t,a.cssClasses.horizontal):d(t,a.cssClasses.vertical),ut=o(t,a.cssClasses.base)}function j(t,e){return!!a.tooltips[e]&&o(t.firstChild,a.cssClasses.tooltip)}function w(){var t=ct.map(j);q("update",function(e,r,n){if(t[r]){var i=e[r];a.tooltips[r]!==!0&&(i=a.tooltips[r].to(n[r])),t[r].innerHTML=i}})}function S(){q("update",function(t,e,r,n,i){xt.forEach(function(t){var e=ct[t],n=B(vt,t,0,!0,!0,!0),s=B(vt,t,100,!0,!0,!0),o=i[t],l=a.ariaFormat.to(r[t]);e.children[0].setAttribute("aria-valuemin",n.toFixed(1)),e.children[0].setAttribute("aria-valuemax",s.toFixed(1)),e.children[0].setAttribute("aria-valuenow",o.toFixed(1)),e.children[0].setAttribute("aria-valuetext",l)})})}function U(t,e,a){if("range"===t||"steps"===t)return bt.xVal;if("count"===t){if(e<2)throw new Error("noUiSlider ("+K+"): 'values' (>= 2) required for mode 'count'.");var r=e-1,n=100/r;for(e=[];r--;)e[r]=r*n;e.push(100),t="positions"}return"positions"===t?e.map(function(t){return bt.fromStepping(a?bt.getStep(t):t)}):"values"===t?a?e.map(function(t){return bt.fromStepping(bt.getStep(bt.toStepping(t)))}):e:void 0}function C(t,e,a){function r(t,e){return(t+e).toFixed(7)/1}var i={},s=bt.xVal[0],o=bt.xVal[bt.xVal.length-1],l=!1,u=!1,c=0;return a=n(a.slice().sort(function(t,e){return t-e})),a[0]!==s&&(a.unshift(s),l=!0),a[a.length-1]!==o&&(a.push(o),u=!0),a.forEach(function(n,s){var o,f,d,p,h,m,_,g,v,x,y=n,b=a[s+1];if("steps"===e&&(o=bt.xNumSteps[s]),o||(o=b-y),y!==!1&&void 0!==b)for(o=Math.max(o,1e-7),f=y;f<=b;f=r(f,o)){for(p=bt.toStepping(f),h=p-c,g=h/t,v=Math.round(g),x=h/v,d=1;d<=v;d+=1)m=c+d*x,i[m.toFixed(5)]=["x",0];_=a.indexOf(f)>-1?1:"steps"===e?2:0,!s&&l&&(_=0),f===b&&u||(i[p.toFixed(5)]=[f,_]),c=p}}),i}
2615function E(t,e,r){function n(t,e){var r=e===a.cssClasses.value,n=r?c:f,i=r?l:u;return e+" "+n[a.ort]+" "+i[t]}function i(t,i){i[1]=i[1]&&e?e(i[0],i[1]):i[1];var l=o(s,!1);l.className=n(i[1],a.cssClasses.marker),l.style[a.style]=t+"%",i[1]&&(l=o(s,!1),l.className=n(i[1],a.cssClasses.value),l.setAttribute("data-value",i[0]),l.style[a.style]=t+"%",l.innerText=r.to(i[0]))}var s=St.createElement("div"),l=[a.cssClasses.valueNormal,a.cssClasses.valueLarge,a.cssClasses.valueSub],u=[a.cssClasses.markerNormal,a.cssClasses.markerLarge,a.cssClasses.markerSub],c=[a.cssClasses.valueHorizontal,a.cssClasses.valueVertical],f=[a.cssClasses.markerHorizontal,a.cssClasses.markerVertical];return d(s,a.cssClasses.pips),d(s,0===a.ort?a.cssClasses.pipsHorizontal:a.cssClasses.pipsVertical),Object.keys(t).forEach(function(e){i(e,t[e])}),s}function A(){pt&&(e(pt),pt=null)}function P(t){A();var e=t.mode,a=t.density||1,r=t.filter||!1,n=t.values||!1,i=t.stepped||!1,s=U(e,n,i),o=C(a,e,s),l=t.format||{to:Math.round};return pt=gt.appendChild(E(o,r,l))}function k(){var t=ut.getBoundingClientRect(),e="offset"+["Width","Height"][a.ort];return 0===a.ort?t.width||ut[e]:t.height||ut[e]}function F(t,e,r,n){var i=function(i){return!!(i=O(i,n.pageOffset,n.target||e))&&(!(gt.hasAttribute("disabled")&&!n.doNotReject)&&(!(h(gt,a.cssClasses.tap)&&!n.doNotReject)&&(!(t===ht.start&&void 0!==i.buttons&&i.buttons>1)&&((!n.hover||!i.buttons)&&(_t||i.preventDefault(),i.calcPoint=i.points[a.ort],void r(i,n))))))},s=[];return t.split(" ").forEach(function(t){e.addEventListener(t,i,!!_t&&{passive:!0}),s.push([t,i])}),s}function O(t,e,a){var r,n,i=0===t.type.indexOf("touch"),s=0===t.type.indexOf("mouse"),o=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(o=!0),i){var l=function(t){return t.target===a||a.contains(t.target)};if("touchstart"===t.type){var u=Array.prototype.filter.call(t.touches,l);if(u.length>1)return!1;r=u[0].pageX,n=u[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,l);if(!c)return!1;r=c.pageX,n=c.pageY}}return e=e||m(St),(s||o)&&(r=t.clientX+e.x,n=t.clientY+e.y),t.pageOffset=e,t.points=[r,n],t.cursor=s||o,t}function R(t){var e=t-s(ut,a.ort),r=100*e/k();return r=u(r),a.dir?100-r:r}function N(t){var e=100,a=!1;return ct.forEach(function(r,n){if(!r.hasAttribute("disabled")){var i=Math.abs(vt[n]-t);(i<e||100===i&&100===e)&&(a=n,e=i)}}),a}function M(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&V(t,e)}function T(t,e){if(navigator.appVersion.indexOf("MSIE 9")===-1&&0===t.buttons&&0!==e.buttonsProperty)return V(t,e);var r=(a.dir?-1:1)*(t.calcPoint-e.startCalcPoint),n=100*r/e.baseSize;X(r>0,n,e.locations,e.handleNumbers)}function V(t,e){e.handle&&(p(e.handle,a.cssClasses.active),yt-=1),e.listeners.forEach(function(t){Ut.removeEventListener(t[0],t[1])}),0===yt&&(p(gt,a.cssClasses.drag),Z(),t.cursor&&(Ct.style.cursor="",Ct.removeEventListener("selectstart",r))),e.handleNumbers.forEach(function(t){H("change",t),H("set",t),H("end",t)})}function I(t,e){var n;if(1===e.handleNumbers.length){var i=ct[e.handleNumbers[0]];if(i.hasAttribute("disabled"))return!1;n=i.children[0],yt+=1,d(n,a.cssClasses.active)}t.stopPropagation();var s=[],o=F(ht.move,Ut,T,{target:t.target,handle:n,listeners:s,startCalcPoint:t.calcPoint,baseSize:k(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:vt.slice()}),l=F(ht.end,Ut,V,{target:t.target,handle:n,listeners:s,doNotReject:!0,handleNumbers:e.handleNumbers}),u=F("mouseout",Ut,M,{target:t.target,handle:n,listeners:s,doNotReject:!0,handleNumbers:e.handleNumbers});s.push.apply(s,o.concat(l,u)),t.cursor&&(Ct.style.cursor=getComputedStyle(t.target).cursor,ct.length>1&&d(gt,a.cssClasses.drag),Ct.addEventListener("selectstart",r,!1)),e.handleNumbers.forEach(function(t){H("start",t)})}function L(t){t.stopPropagation();var e=R(t.calcPoint),r=N(e);return r!==!1&&(a.events.snap||l(gt,a.cssClasses.tap,a.animationDuration),tt(r,e,!0,!0),Z(),H("slide",r,!0),H("update",r,!0),H("change",r,!0),H("set",r,!0),void(a.events.snap&&I(t,{handleNumbers:[r]})))}function $(t){var e=R(t.calcPoint),a=bt.getStep(e),r=bt.fromStepping(a);Object.keys(wt).forEach(function(t){"hover"===t.split(".")[0]&&wt[t].forEach(function(t){t.call(dt,r)})})}function Q(t){t.fixed||ct.forEach(function(t,e){F(ht.start,t.children[0],I,{handleNumbers:[e]})}),t.tap&&F(ht.start,ut,L,{}),t.hover&&F(ht.move,ut,$,{hover:!0}),t.drag&&ft.forEach(function(e,r){if(e!==!1&&0!==r&&r!==ft.length-1){var n=ct[r-1],i=ct[r],s=[e];
2615d(e,a.cssClasses.draggable),t.fixed&&(s.push(n.children[0]),s.push(i.children[0])),s.forEach(function(t){F(ht.start,t,I,{handles:[n,i],handleNumbers:[r-1,r]})})}})}function q(t,e){wt[t]=wt[t]||[],wt[t].push(e),"update"===t.split(".")[0]&&ct.forEach(function(t,e){H("update",e)})}function D(t){var e=t&&t.split(".")[0],a=e&&t.substring(e.length);Object.keys(wt).forEach(function(t){var r=t.split(".")[0],n=t.substring(r.length);e&&e!==r||a&&a!==n||delete wt[t]})}function H(t,e,r){Object.keys(wt).forEach(function(n){var i=n.split(".")[0];t===i&&wt[n].forEach(function(t){t.call(dt,jt.map(a.format.to),e,jt.slice(),r||!1,vt.slice())})})}function z(t){return t+"%"}function B(t,e,r,n,i,s){return ct.length>1&&(n&&e>0&&(r=Math.max(r,t[e-1]+a.margin)),i&&e<ct.length-1&&(r=Math.min(r,t[e+1]-a.margin))),ct.length>1&&a.limit&&(n&&e>0&&(r=Math.min(r,t[e-1]+a.limit)),i&&e<ct.length-1&&(r=Math.max(r,t[e+1]-a.limit))),a.padding&&(0===e&&(r=Math.max(r,a.padding[0])),e===ct.length-1&&(r=Math.min(r,100-a.padding[1]))),r=bt.getStep(r),r=u(r),!(r===t[e]&&!s)&&r}function W(t,e){var r=a.ort;return(r?e:t)+", "+(r?t:e)}function X(t,e,a,r){var n=a.slice(),i=[!t,t],s=[t,!t];r=r.slice(),t&&r.reverse(),r.length>1?r.forEach(function(t,a){var r=B(n,t,n[t]+e,i[a],s[a],!1);r===!1?e=0:(e=r-n[t],n[t]=r)}):i=s=[!0];var o=!1;r.forEach(function(t,r){o=tt(t,a[t]+e,i[r],s[r])||o}),o&&r.forEach(function(t){H("update",t),H("slide",t)})}function J(t,e){return a.dir?100-t-e:t}function G(t,e){vt[t]=e,jt[t]=bt.fromStepping(e);var r="translate("+W(z(J(e,0)-Et),"0")+")";ct[t].style[a.transformRule]=r,et(t),et(t+1)}function Z(){xt.forEach(function(t){var e=vt[t]>50?-1:1,a=3+(ct.length+e*t);ct[t].style.zIndex=a})}function tt(t,e,a,r){return e=B(vt,t,e,a,r,!1),e!==!1&&(G(t,e),!0)}function et(t){if(ft[t]){var e=0,r=100;0!==t&&(e=vt[t-1]),t!==ft.length-1&&(r=vt[t]);var n=r-e,i="translate("+W(z(J(e,n)),"0")+")",s="scale("+W(n/100,"1")+")";ft[t].style[a.transformRule]=i+" "+s}}function at(t,e){return null===t||t===!1||void 0===t?vt[e]:("number"==typeof t&&(t=String(t)),t=a.format.from(t),t=bt.toStepping(t),t===!1||isNaN(t)?vt[e]:t)}function rt(t,e){var r=c(t),n=void 0===vt[0];e=void 0===e||!!e,a.animate&&!n&&l(gt,a.cssClasses.tap,a.animationDuration),xt.forEach(function(t){tt(t,at(r[t],t),!0,!1)}),xt.forEach(function(t){tt(t,vt[t],!0,!0)}),Z(),xt.forEach(function(t){H("update",t),null!==r[t]&&e&&H("set",t)})}function nt(t){rt(a.start,t)}function it(){var t=jt.map(a.format.to);return 1===t.length?t[0]:t}function st(){for(var t in a.cssClasses)a.cssClasses.hasOwnProperty(t)&&p(gt,a.cssClasses[t]);for(;gt.firstChild;)gt.removeChild(gt.firstChild);delete gt.noUiSlider}function ot(){return vt.map(function(t,e){var a=bt.getNearbySteps(t),r=jt[e],n=a.thisStep.step,i=null;n!==!1&&r+n>a.stepAfter.startValue&&(n=a.stepAfter.startValue-r),i=r>a.thisStep.startValue?a.thisStep.step:a.stepBefore.step!==!1&&r-a.stepBefore.highestStep,100===t?n=null:0===t&&(i=null);var s=bt.countStepDecimals();return null!==n&&n!==!1&&(n=Number(n.toFixed(s))),null!==i&&i!==!1&&(i=Number(i.toFixed(s))),[i,n]})}function lt(t,e){var r=it(),n=["margin","limit","padding","range","animate","snap","step","format"];n.forEach(function(e){void 0!==t[e]&&(i[e]=t[e])});var s=Y(i);n.forEach(function(e){void 0!==t[e]&&(a[e]=s[e])}),bt=s.spectrum,a.margin=s.margin,a.limit=s.limit,a.padding=s.padding,a.pips&&P(a.pips),vt=[],rt(t.start||r,e)}var ut,ct,ft,dt,pt,ht=_(),mt=v(),_t=mt&&g(),gt=t,vt=[],xt=[],yt=0,bt=a.spectrum,jt=[],wt={},St=t.ownerDocument,Ut=St.documentElement,Ct=St.body,Et="rtl"===St.dir||1===a.ort?0:100;return b(gt),y(a.connect,ut),Q(a.events),rt(a.start),dt={destroy:st,steps:ot,on:q,off:D,get:it,set:rt,reset:nt,__moveHandles:function(t,e,a){X(t,e,vt,a)},options:i,updateOptions:lt,target:gt,removePips:A,pips:P},a.pips&&P(a.pips),a.tooltips&&w(),S(),dt}function G(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider ("+K+"): create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider ("+K+"): Slider was already initialized.");var a=Y(e,t),r=J(t,a,e);return t.noUiSlider=r,r}var K="11.1.0";P.prototype.getMargin=function(t){var e=this.xNumSteps[0];if(e&&t/e%1!==0)throw new Error("noUiSlider ("+K+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&y(this.xVal,t)},P.prototype.toStepping=function(t){return t=S(this.xVal,this.xPct,t)},P.prototype.fromStepping=function(t){return U(this.xVal,this.xPct,t)},P.prototype.getStep=function(t){return t=C(this.xPct,this.xSteps,this.snap,t)},P.prototype.getNearbySteps=function(t){var e=w(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]}
2615,stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},P.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(f);return Math.max.apply(null,t)},P.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var Z={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};return{version:K,create:G}})},{}],3:[function(t,e,a){(function(a){var r="undefined"!=typeof window?window.jQuery:"undefined"!=typeof a?a.jQuery:null,n=t("./state"),i=t("./process_form"),s=t("nouislider"),o=t("./thirdparty");window.searchAndFilter={extensions:[],registerExtension:function(t){this.extensions.push(t)}},e.exports=function(t){var e={startOpened:!1,isInit:!0,action:""},a=jQuery.extend(e,t);o.init(),this.each(function(){var t=r(this),e=this;this.sfid=t.attr("data-sf-form-id"),n.addSearchForm(this.sfid,this),this.$fields=t.find("> ul > li"),this.enable_taxonomy_archives=t.attr("data-taxonomy-archives"),this.current_taxonomy_archive=t.attr("data-current-taxonomy-archive"),"undefined"==typeof this.enable_taxonomy_archives&&(this.enable_taxonomy_archives="0"),"undefined"==typeof this.current_taxonomy_archive&&(this.current_taxonomy_archive=""),i.init(e.enable_taxonomy_archives,e.current_taxonomy_archive),i.enableInputs(e),"undefined"==typeof this.extra_query_params&&(this.extra_query_params={all:{},results:{},ajax:{}}),this.template_is_loaded=t.attr("data-template-loaded"),this.is_ajax=t.attr("data-ajax"),this.instance_number=t.attr("data-instance-count"),this.$ajax_results_container=jQuery(t.attr("data-ajax-target")),this.ajax_update_sections=t.attr("data-ajax-update-sections")?JSON.parse(t.attr("data-ajax-update-sections")):[],this.replace_results="0"!==t.attr("data-replace-results"),this.results_url=t.attr("data-results-url"),this.debug_mode=t.attr("data-debug-mode"),this.update_ajax_url=t.attr("data-update-ajax-url"),this.pagination_type=t.attr("data-ajax-pagination-type"),this.auto_count=t.attr("data-auto-count"),this.auto_count_refresh_mode=t.attr("data-auto-count-refresh-mode"),this.only_results_ajax=t.attr("data-only-results-ajax"),this.scroll_to_pos=t.attr("data-scroll-to-pos"),this.custom_scroll_to=t.attr("data-custom-scroll-to"),this.scroll_on_action=t.attr("data-scroll-on-action"),this.lang_code=t.attr("data-lang-code"),this.ajax_url=t.attr("data-ajax-url"),this.ajax_form_url=t.attr("data-ajax-form-url"),this.is_rtl=t.attr("data-is-rtl"),this.display_result_method=t.attr("data-display-result-method"),this.maintain_state=t.attr("data-maintain-state"),this.ajax_action="",this.last_submit_query_params="",this.current_paged=parseInt(t.attr("data-init-paged")),this.last_load_more_html="",this.load_more_html="",this.ajax_data_type=t.attr("data-ajax-data-type"),this.ajax_target_attr=t.attr("data-ajax-target"),this.use_history_api=t.attr("data-use-history-api"),this.is_submitting=!1,this.last_ajax_request=null,"undefined"==typeof this.results_html&&(this.results_html=""),"undefined"==typeof this.use_history_api&&(this.use_history_api=""),"undefined"==typeof this.pagination_type&&(this.pagination_type="normal"),"undefined"==typeof this.current_paged&&(this.current_paged=1),"undefined"==typeof this.ajax_target_attr&&(this.ajax_target_attr=""),"undefined"==typeof this.ajax_url&&(this.ajax_url=""),"undefined"==typeof this.ajax_form_url&&(this.ajax_form_url=""),"undefined"==typeof this.results_url&&(this.results_url=""),"undefined"==typeof this.scroll_to_pos&&(this.scroll_to_pos=""),"undefined"==typeof this.scroll_on_action&&(this.scroll_on_action=""),"undefined"==typeof this.custom_scroll_to&&(this.custom_scroll_to=""),this.$custom_scroll_to=jQuery(this.custom_scroll_to),"undefined"==typeof this.update_ajax_url&&(this.update_ajax_url=""),"undefined"==typeof this.debug_mode&&(this.debug_mode=""),"undefined"==typeof this.ajax_target_object&&(this.ajax_target_object=""),"undefined"==typeof this.template_is_loaded&&(this.template_is_loaded="0"),"undefined"==typeof this.auto_count_refresh_mode&&(this.auto_count_refresh_mode="0"),this.ajax_links_selector=t.attr("data-ajax-links-selector"),this.auto_update=t.attr("data-auto-update"),this.inputTimer=0,this.setInfiniteScrollContainer=function(){"undefined"==typeof this.is_max_paged&&(this.is_max_paged=!1), 2616this.use_scroll_loader=t.attr("data-show-scroll-loader"),this.infinite_scroll_container=t.attr("data-infinite-scroll-container"),this.infinite_scroll_trigger_amount=t.attr("data-infinite-scroll-tr
2616igger"),this.infinite_scroll_result_class=t.attr("data-infinite-scroll-result-class"),this.$infinite_scroll_container=this.$ajax_results_container,"undefined"==typeof this.infinite_scroll_container?this.infinite_scroll_container="":this.$infinite_scroll_container=jQuery(this.ajax_target_attr+" "+this.infinite_scroll_container),"undefined"==typeof this.infinite_scroll_result_class&&(this.infinite_scroll_result_class=""),"undefined"==typeof this.use_scroll_loader&&(this.use_scroll_loader=1)},this.setInfiniteScrollContainer(),this.reset=function(t){return this.resetForm(t),!0},this.inputUpdate=function(t){if("undefined"==typeof t)var t=300;e.resetTimer(t)},this.scrollToPos=function(){var a=0,n=!0;1==e.is_ajax&&("window"==e.scroll_to_pos?a=0:"form"==e.scroll_to_pos?a=t.offset().top:"results"==e.scroll_to_pos?e.$ajax_results_container.length>0&&(a=e.$ajax_results_container.offset().top):"custom"==e.scroll_to_pos?e.$custom_scroll_to.length>0&&(a=e.$custom_scroll_to.offset().top):n=!1,n&&r("html, body").stop().animate({scrollTop:a},"normal","easeOutQuad"))},this.attachActiveClass=function(){t.on("change",'input[type="radio"], input[type="checkbox"], select',function(t){var e=r(this),a=e.closest("li[data-sf-field-name]"),n=e.prop("tagName").toLowerCase(),i=e.attr("type"),s=a.prop("tagName").toLowerCase();if("input"!=n||"radio"!=i&&"checkbox"!=i||"li"!=s){if("select"==n){var o=e.children();o.removeClass("sf-option-active");var l=e.val(),u="string"==typeof l||l instanceof String?[l]:l;r(u).each(function(t,a){e.find("option[value='"+a+"']").addClass("sf-option-active")})}}else{var o=a.parent().find("li"),c=a.parent().find("input:checked");o.removeClass("sf-option-active"),c.each(function(){var t=r(this).closest("li");t.addClass("sf-option-active")})}})},this.initAutoUpdateEvents=function(){if(1==e.auto_update||1==e.auto_count_refresh_mode){t.on("change",'input[type="radio"], input[type="checkbox"], select',function(t){e.inputUpdate(200)}),t.on("input",'input[type="number"]',function(t){e.inputUpdate(800)});var a=t.find('input[type="text"]:not(.sf-datepicker)'),r=a.val();t.on("input",'input[type="text"]:not(.sf-datepicker)',function(){r!=a.val()&&e.inputUpdate(1200),r=a.val()}),t.on("keypress",'input[type="text"]:not(.sf-datepicker)',function(t){if(13==t.which)return t.preventDefault(),e.submitForm(),!1})}},this.clearTimer=function(){clearTimeout(e.inputTimer)},this.resetTimer=function(t){clearTimeout(e.inputTimer),e.inputTimer=setTimeout(e.formUpdated,t)},this.addDatePickers=function(){var a=t.find(".sf-datepicker");a.length>0&&(a.each(function(){var t=r(this),a="",n=!1,i=!1,s=t.closest(".sf_date_field");s.length>0&&(a=s.attr("data-date-format"),1==s.attr("data-date-use-year-dropdown")&&(n=!0),1==s.attr("data-date-use-month-dropdown")&&(i=!0));var o={inline:!0,showOtherMonths:!0,onSelect:function(t,a){e.dateSelect(t,a,r(this))},dateFormat:a,changeMonth:i,changeYear:n};1==e.is_rtl&&(o.direction="rtl"),t.datepicker(o),""!=e.lang_code?r.datepicker.setDefaults(r.extend({dateFormat:a},r.datepicker.regional[e.lang_code])):r.datepicker.setDefaults(r.extend({dateFormat:a},r.datepicker.regional.en))}),0==r(".ll-skin-melon").length&&a.datepicker("widget").wrap('<div class="ll-skin-melon searchandfilter-date-picker"/>'))},this.dateSelect=function(t,a,n){var i=r(a.input.get(0)),s=(r(this),i.closest('[data-sf-field-input-type="daterange"], [data-sf-field-input-type="date"]'));s.each(function(t,a){var n=r(this).find(".sf-datepicker"),i=n.length;if(i>1){var s=0,o=0;n.each(function(){""==r(this).val()&&o++,s++}),0==o&&e.inputUpdate(1)}else e.inputUpdate(1)})},this.addRangeSliders=function(){var a=t.find(".sf-meta-range-slider");a.length>0&&(a.each(function(){var t=r(this),a=t.attr("data-min"),n=t.attr("data-max"),i=t.attr("data-start-min"),o=t.attr("data-start-max"),l=t.attr("data-display-values-as"),u=t.attr("data-step"),c=t.find(".sf-range-min"),f=t.find(".sf-range-max"),d=t.attr("data-decimal-places"),p=t.attr("data-thousand-seperator"),h=t.attr("data-decimal-seperator"),m=wNumb({mark:h,decimals:parseFloat(d),thousand:p}),_=(parseFloat(i),m.to(parseFloat(i))),g=m.to(parseFloat(o));parseFloat(o);"textinput"==l?(c.val(_),f.val(g)):"text"==l&&(c.html(_),f.html(g));var v={range:{min:[parseFloat(a)],max:[parseFloat(n)]},start:[_,g],handles:2,connect:!0,step:parseFloat(u),behaviour:"extend-tap",format:m};1==e.is_rtl&&(v.direction="rtl");var x=r(this).find(".meta-slider")[0];"undefined"!=typeof x.noUiSlider&&x.noUiSlider.destroy(),s.create(x,v),c.off(),c.on("change",function(){x.noUiSlider.set([r(this).val(),null])}),f.off(),f.on("change",function(){x.noUiSlider.set([null,r(this).val()])}),x.noUiSlider.off("update"),x.noUiSlider.on("update",function(t,a){var r=_,n=g,i=t[a];a?g=i:_=i,"textinput"==l?(c.val(_),f.val(g)):"text"==l&&(c.html(_),f.html(g)),1!=e.auto_update&&1!=e.auto_count_refresh_mode||r==_&&n==g||e.inputUpdate(800)})}),e.clearTimer())}
2616,this.init=function(a){if("undefined"==typeof a)var a=!1;this.initAutoUpdateEvents(),this.attachActiveClass(),this.addDatePickers(),this.addRangeSliders();var n=t.find("select[data-combobox='1']");n.length>0&&n.each(function(t){var a=r(this),n=a.attr("data-combobox-nrm");if("undefined"!=typeof a.chosen){var i={search_contains:!0};"undefined"!=typeof n&&n&&(i.no_results_text=n),1==e.is_rtl&&a.addClass("chosen-rtl"),a.chosen(i)}else{var s={};1==e.is_rtl&&(s.dir="rtl"),"undefined"!=typeof n&&n&&(s.language={noResults:function(){return n}}),a.select2(s)}}),e.isSubmitting=!1,1==e.is_ajax&&e.setupAjaxPagination(),t.on("submit",this.submitForm),e.initWooCommerceControls(),0==a&&(e.last_submit_query_params=e.getUrlParams(!1))},this.onWindowScroll=function(t){if(!e.is_loading_more&&!e.is_max_paged){var a=r(window).scrollTop(),n=r(window).scrollTop()+r(window).height(),i=parseInt(e.infinite_scroll_trigger_amount);if(1==e.$infinite_scroll_container.length){var s=e.$infinite_scroll_container.offset().top+e.$infinite_scroll_container.height();e.$infinite_scroll_container.offset().top+e.$infinite_scroll_container.height()-a;n>s+i&&e.loadMoreResults()}}},this.stripQueryStringAndHashFromPath=function(t){return t.split("?")[0].split("#")[0]},this.gup=function(t,e){e||(e=location.href),t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var a="[\\?&]"+t+"=([^&#]*)",r=new RegExp(a),n=r.exec(e);return null==n?null:n[1]},this.getUrlParams=function(t,a,r){if("undefined"==typeof t)var t=!0;if("undefined"==typeof a)var a="";var n="",s=i.getUrlParams(e),o=Object.keys(s).length,l=0;if("undefined"!=typeof r&&s.hasOwnProperty(r)&&o--,o>0)for(var u in s)if(s.hasOwnProperty(u)){var c=!0;"undefined"!=typeof r&&u==r&&(c=!1),c&&(n+=u+"="+s[u],l<o-1&&(n+="&"),l++)}var f="",d=n;if(f=e.joinUrlParam(f,d),1==t){var p=e.$ajax_results_container.attr("data-paged");"undefined"==typeof p&&(p=1),p>1&&(f=e.joinUrlParam(f,"sf_paged="+p))}return f=e.addQueryParams(f,e.extra_query_params.all)},this.addQueryParams=function(t,a){var r="",n=Object.keys(a).length;if(n>0)for(var i in a)a.hasOwnProperty(i)&&""!=a[i]&&(r=i+"="+a[i],t=e.joinUrlParam(t,r));return t},this.addUrlParam=function(t,e){var a="";return""!=t&&(a+=t.indexOf("?")!=-1?"&":"?"),""!=e?t+a+e:t},this.joinUrlParam=function(t,e){var a="";return""!=t&&(a+="&"),""!=e?t+a+e:t},this.setAjaxResultsURLs=function(t){if("undefined"==typeof e.ajax_results_conf&&(e.ajax_results_conf=new Array),e.ajax_results_conf.processing_url="",e.ajax_results_conf.results_url="",e.ajax_results_conf.data_type="","shortcode"==e.display_result_method)e.ajax_results_conf.results_url=e.addUrlParam(e.results_url,t),""!=e.lang_code&&(t=e.joinUrlParam(t,"lang="+e.lang_code)),e.ajax_results_conf.processing_url=e.addUrlParam(e.ajax_url,t);else if("post_type_archive"==e.display_result_method){i.setTaxArchiveResultsUrl(e,e.results_url);var a=i.getResultsUrl(e,e.results_url);e.ajax_results_conf.results_url=e.addUrlParam(a,t),e.ajax_results_conf.processing_url=e.addUrlParam(a,t)}else if("custom_woocommerce_store"==e.display_result_method){i.setTaxArchiveResultsUrl(e,e.results_url);var a=i.getResultsUrl(e,e.results_url);e.ajax_results_conf.results_url=e.addUrlParam(a,t),e.ajax_results_conf.processing_url=e.addUrlParam(a,t)}else e.ajax_results_conf.results_url=e.addUrlParam(e.results_url,t),e.ajax_results_conf.processing_url=e.addUrlParam(e.ajax_url,t);e.ajax_results_conf.processing_url=e.addQueryParams(e.ajax_results_conf.processing_url,e.extra_query_params.ajax),e.ajax_results_conf.data_type=e.ajax_data_type},this.updateLoaderTag=function(t){var a;a=""!=e.infinite_scroll_result_class?e.$infinite_scroll_container.find(e.infinite_scroll_result_class).last().parent():e.$infinite_scroll_container;var n=a.prop("tagName"),i="div";"ol"!=n.toLowerCase()&&"ul"!=n.toLowerCase()||(i="li");var s=r("<"+i+" />").html(t.html()),o=t.prop("attributes");return r.each(o,function(){s.attr(this.name,this.value)}),s},this.loadMoreResults=function(){if(this.is_max_paged!==!0){e.is_loading_more=!0;var t={sfid:e.sfid,targetSelector:e.ajax_target_attr,type:"load_more",object:e};e.triggerEvent("sf:ajaxstart",t),i.setTaxArchiveResultsUrl(e,e.results_url);var a=e.getUrlParams(!0);e.last_submit_query_params=e.getUrlParams(!1);var n="",s="",o="",l=this.current_paged+1;if(a=e.joinUrlParam(a,"sf_paged="+l),e.setAjaxResultsURLs(a),n=e.ajax_results_conf.processing_url,s=e.ajax_results_conf.results_url,o=e.ajax_results_conf.data_type,e.last_ajax_request&&e.last_ajax_request.abort(),1==e.use_scroll_loader){var u=r("<div/>",{"class":"search-filter-scroll-loading"});u=e.updateLoaderTag(u),e.infiniteScrollAppend(u)}e.last_ajax_request=r.get(n,function(t,a,r){e.current_paged++,e.last_ajax_request=null,e.addResults(t,o)},o).fail(function(t,a,r){var i={};i.sfid=e.sfid,i.object=e,i.targetSelector=e.ajax_target_attr,i.ajaxURL=n,i.jqXHR=t,i.textStatus=a,i.errorThrown=r,e.triggerEvent("sf:ajaxerror",i)}).always(function(){var t={};t.sfid=e.sfid,t.targetSelector=e.ajax_target_attr,t.object=e,1==e.use_scroll_loader&&u.detach(),e.is_loading_more=!1,e.triggerEvent("sf:ajaxfinish",t)})}},this.fetchAjaxResults=function(){var a={sfid:e.sfid,targetSelector:e.ajax_target_attr,type:"load_results",object:e};e.triggerEvent("sf:ajaxstart",a);var n=t.find('input[type="text"]:focus').not(".sf-datepicker");if(1==n.length)var s=n.attr("name");if(t.addClass("search-filter-disabled"),i.disableInputs(e),e.$ajax_results_container.animate({opacity:.5},"fast"),e.fadeContentAreas("out"),"pagination"==e.ajax_action){var o=e.$ajax_results_container.attr("data-paged");"undefined"==typeof o&&(o=1),i.setTaxArchiveResultsUrl(e,e.results_url),l=e.getUrlParams(!1),o>1&&(l=e.joinUrlParam(l,"sf_paged="+o))}else if("submit"==e.ajax_action){var l=e.getUrlParams(!0);e.last_submit_query_params=e.getUrlParams(!1)}var u="",c="",f="";e.setAjaxResultsURLs(l),u=e.ajax_results_conf.processing_url,c=e.ajax_results_conf.results_url,f=e.ajax_results_conf.data_type,e.last_ajax_request&&e.last_ajax_request.abort();var d=e.ajax_action;e.last_ajax_request=r.get(u,function(t,a,r){e.last_ajax_request=null,e.updateResults(t,f),e.ajax_action=d,e.scrollResults(e.ajax_action),e.updateUrlHistory(c),e.setupAjaxPagination(),e.isSubmitting=!1,e.initWooCommerceControls()},f).fail(function(t,a,r){var n={};n.sfid=e.sfid,n.targetSelector=e.ajax_target_attr,n.object=e,n.ajaxURL=u,n.jqXHR=t,n.textStatus=a,n.errorThrown=r,e.isSubmitting=!1,e.triggerEvent("sf:ajaxerror",n)}).always(function(){e.$ajax_results_container.stop(!0,!0).animate({opacity:1},"fast"),e.fadeContentAreas("in");var a={};if(a.sfid=e.sfid,a.targetSelector=e.ajax_target_attr,a.object=e,t.removeClass("search-filter-disabled"),i.enableInputs(e),""!=s){var n=[];e.$fields.each(function(){var t=r(this).find("input[name='"+s+"']");1==t.length&&(n=t)}),1==n.length&&(n.focus().val(n.val()),e.focusCampo(n[0]))}t.find("input[name='_sf_search']").trigger("focus"),e.triggerEvent("sf:ajaxfinish",a)})},this.focusCampo=function(t){if(null!=t&&0!=t.value.length){if(t.createTextRange){var e=t.createTextRange();e.moveStart("character",t.value.length),e.collapse(),e.select()}else if(t.selectionStart||"0"==t.selectionStart){var a=t.value.length;t.selectionStart=a,t.selectionEnd=a}t.blur(),t.focus()}else t&&t.focus()},this.triggerEvent=function(t,a){var n=r(".searchandfilter[data-sf-form-id='"+e.sfid+"']");n.trigger(t,[a])},this.fetchAjaxForm=function(){var a={sfid:e.sfid,targetSelector:e.ajax_target_attr,type:"form",object:e};e.triggerEvent("sf:ajaxformstart",[a]),t.addClass("search-filter-disabled"),i.disableInputs(e);var n=e.getUrlParams();""!=e.lang_code&&(n=e.joinUrlParam(n,"lang="+e.lang_code));var s=e.addUrlParam(e.ajax_form_url,n),o="json";r.get(s,function(t,a,r){e.updateForm(t,o)},o).fail(function(t,a,r){var n={};n.sfid=e.sfid,n.targetSelector=e.ajax_target_attr,n.object=e,n.ajaxURL=s,n.jqXHR=t,n.textStatus=a,n.errorThrown=r,e.triggerEvent("sf:ajaxerror",[n])}).always(function(){var a={};a.sfid=e.sfid,a.targetSelector=e.ajax_target_attr,a.object=e,t.removeClass("search-filter-disabled"),i.enableInputs(e),e.triggerEvent("sf:ajaxformfinish",[a])})},this.copyListItemsContents=function(t,a){var n=new Array,i=new Array,s=t.find("> ul > li");
2616s.each(function(t){n.push(r(this).html());var e=r(this).prop("attributes");i.push(e)});var o=0,l=a.find("> ul > li");l.each(function(t){r(this).html(n[o]);var a=r(s.get(o)),i=r(this);i.removeAttr("data-sf-taxonomy-archive"),e.copyAttributes(a,i),o++})},this.updateFormAttributes=function(t,e){var a=t.prop("attributes"),n=e.prop("attributes");r.each(n,function(){e.removeAttr(this.name)}),r.each(a,function(){e.attr(this.name,this.value)})},this.copyAttributes=function(t,e,a){if("undefined"==typeof a)var a="";var n=t.prop("attributes"),i=e.prop("attributes");r.each(i,function(){""!=a&&0==this.name.indexOf(a)&&e.removeAttr(this.name)}),r.each(n,function(){e.attr(this.name,this.value)})},this.copyFormAttributes=function(t,e){e.removeAttr("data-current-taxonomy-archive"),this.copyAttributes(t,e)},this.updateForm=function(a,n){"json"==n&&"undefined"!=typeof a.form&&(t.off(),e.copyListItemsContents(r(a.form),t),this.init(!0),1==e.is_ajax&&e.setupAjaxPagination())},this.addResults=function(t,a){if("json"==a)e.load_more_html=t.results;else if("html"==a){var n=r(t);e.load_more_html=n.find(e.ajax_target_attr).html()}var i=!1;if(r("<div>"+e.load_more_html+"</div>").find("[data-search-filter-action='infinite-scroll-end']").length>0&&(i=!0),""!=e.infinite_scroll_container&&(e.load_more_html=r("<div>"+e.load_more_html+"</div>").find(e.infinite_scroll_container).html()),""!=e.infinite_scroll_result_class){var s=r("<div>"+e.load_more_html+"</div>").find(e.infinite_scroll_result_class),o=r("<div/>",{});o.append(s),e.load_more_html=o.html()}i?(e.is_max_paged=!0,e.last_load_more_html=e.load_more_html,e.infiniteScrollAppend(e.load_more_html)):e.last_load_more_html!==e.load_more_html?(e.last_load_more_html=e.load_more_html,e.infiniteScrollAppend(e.load_more_html)):e.is_max_paged=!0},this.infiniteScrollAppend=function(t){""!=e.infinite_scroll_result_class?e.$infinite_scroll_container.find(e.infinite_scroll_result_class).last().after(t):e.$infinite_scroll_container.append(t)},this.updateResults=function(a,n){if("json"==n)this.results_html=a.results,this.replace_results&&e.$ajax_results_container.html(this.results_html),"undefined"!=typeof a.form&&(t.off(),e.removeAjaxPagination(),e.copyListItemsContents(r(a.form),t),e.copyFormAttributes(r(a.form),t),t.searchAndFilter({isInit:!1}));else if("html"==n){var i=r(a);if(this.results_html=i.find(this.ajax_target_attr).html(),this.replace_results&&e.$ajax_results_container.html(this.results_html),e.updateContentAreas(i),e.$ajax_results_container.find(".searchandfilter").length>0&&e.$ajax_results_container.find(".searchandfilter").searchAndFilter(),0==e.$ajax_results_container.find(".searchandfilter[data-sf-form-id='"+e.sfid+"']").length){var s=i.find(".searchandfilter[data-sf-form-id='"+e.sfid+"']");1==s.length&&(t.off(),e.removeAjaxPagination(),e.copyListItemsContents(s,t),e.copyFormAttributes(s,t),t.searchAndFilter({isInit:!1}))}}e.is_max_paged=!1,e.current_paged=1,e.setInfiniteScrollContainer()},this.updateContentAreas=function(t){if(this.ajax_update_sections&&this.ajax_update_sections.length)for(index=0;index<this.ajax_update_sections.length;++index){var e=this.ajax_update_sections[index];r(e).html(t.find(e).html())}},this.fadeContentAreas=function(t){var e=.5;if("in"===t&&(e=1),this.ajax_update_sections&&this.ajax_update_sections.length)for(index=0;index<this.ajax_update_sections.length;++index){var a=this.ajax_update_sections[index];r(a).stop(!0,!0).animate({opacity:e},"fast")}},this.removeWooCommerceControls=function(){var t=r(".woocommerce-ordering .orderby"),e=r(".woocommerce-ordering");e.off(),t.off()},this.addQueryParam=function(t,a,r){if("undefined"==typeof r)var r="all";e.extra_query_params[r][t]=a},this.initWooCommerceControls=function(){e.removeWooCommerceControls();var a=r(".woocommerce-ordering .orderby"),n=r(".woocommerce-ordering"),i="";i=a.length>0?a.val():e.getQueryParamFromURL("orderby",window.location.href),"menu_order"==i&&(i=""),""!=i&&i&&(e.extra_query_params.all.orderby=i),n.on("submit",function(t){return t.preventDefault(),!1}),a.on("change",function(a){a.preventDefault();var n=r(this).val();return"menu_order"==n&&(n=""),e.extra_query_params.all.orderby=n,t.trigger("submit"),!1})},this.scrollResults=function(){e.scroll_on_action!=e.ajax_action&&"all"!=e.scroll_on_action||e.scrollToPos()},this.updateUrlHistory=function(a){var r=0;window.history&&window.history.pushState&&(r=t.attr("data-use-history-api")),1==e.update_ajax_url&&1==r&&window.history&&window.history.pushState&&history.pushState(null,null,a)},this.removeAjaxPagination=function(){if("undefined"!=typeof e.ajax_links_selector){var t=jQuery(e.ajax_links_selector);t.length>0&&t.off()}},this.getBaseUrl=function(t){var e=t.split("?"),a="";return a=e.length>0?e[0]:t},this.canFetchAjaxResults=function(t){if("undefined"==typeof t)var t="";var a=!1;if(1==e.is_ajax){1==e.$ajax_results_container.length&&(a=!0);var r=e.results_url,n="",i=window.location.href,s=window.location.href.indexOf("#");if(s!==-1&&(i=window.location.href.substr(0,window.location.href.indexOf("#"))),("custom_wo
2616ocommerce_store"==e.display_result_method||"post_type_archive"==e.display_result_method)&&1==e.enable_taxonomy_archives&&""!==e.current_taxonomy_archive)return a=!0;var o=this.getBaseUrl(i),l=e.getQueryParamFromURL("lang",window.location.href);"undefined"!=typeof l&&null!==l&&(o=e.addUrlParam(o,"lang="+l));var u=e.getQueryParamFromURL("sfid",window.location.href);Number(parseFloat(u))==u&&(o=e.addUrlParam(o,"sfid="+u)),o=o.replace(/\/$/,""),r=r.replace(/\/$/,""),n=encodeURI(r);var c=-1;o==r||o.toLowerCase()==n.toLowerCase()?c=1:r.indexOf("?")!==-1&&0===i.lastIndexOf(r,0)&&(c=1),1==e.only_results_ajax?a=c>-1:"pagination"==t&&(c>-1||(a=!1))}return a},this.setupAjaxPagination=function(){if("infinite_scroll"===this.pagination_type){var t=!1;e.$ajax_results_container.find("[data-search-filter-action='infinite-scroll-end']").length>0&&(t=!0,e.is_max_paged=!0),1===parseInt(this.instance_number)&&(r(window).off("scroll",e.onWindowScroll),e.canFetchAjaxResults("pagination")&&r(window).on("scroll",e.onWindowScroll))}else{if("undefined"==typeof e.ajax_links_selector)return;r(document).off("click",e.ajax_links_selector),r(document).off(e.ajax_links_selector),r(e.ajax_links_selector).off(),r(document).on("click",e.ajax_links_selector,function(t){if(e.canFetchAjaxResults("pagination")){t.preventDefault();var a=jQuery(this).attr("href");e.ajax_action="pagination";var r=e.getPagedFromURL(a);return e.$ajax_results_container.attr("data-paged",r),e.fetchAjaxResults(),!1}})}},this.getPagedFromURL=function(t){var a=1,r=e.getQueryParamFromURL("sf_paged",t);return"string"!=typeof r&&"number"!=typeof r||(a=r),a},this.getQueryParamFromURL=function(t,e){var a="?"+e.split("?")[1];if("undefined"!=typeof a){var r=decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(a)||[,""])[1].replace(/\+/g,"%20"))||null;return r}return""},this.formUpdated=function(t){return 1==e.auto_update?e.submitForm():0==e.auto_update&&1==e.auto_count_refresh_mode&&e.formUpdatedFetchAjax(),!1},this.formUpdatedFetchAjax=function(){return e.fetchAjaxForm(),!1},this.setFields=function(t){e.$fields.each(function(){var t=r(this),e=t.find(".sf-meta-range-slider").attr("data-display-values-as");"textinput"===e&&(t.find(".meta-slider").length>0,t.find(".meta-slider").each(function(t){var e=r(this)[0],a=r(this).closest(".sf-meta-range-slider"),n=a.find(".sf-range-min").val(),i=a.find(".sf-range-max").val();e.noUiSlider.set([n,i])}))})},this.submitForm=function(t){if(1==e.isSubmitting)return!1;if(e.setFields(),e.clearTimer(),e.isSubmitting=!0,i.setTaxArchiveResultsUrl(e,e.results_url),e.$ajax_results_container.attr("data-paged",1),e.canFetchAjaxResults())e.ajax_action="submit",e.fetchAjaxResults();else{var a=i.getResultsUrl(e,e.results_url),r=e.getUrlParams(!0,"");a=e.addUrlParam(a,r),window.location.href=a}return!1},this.resetForm=function(t){e.$fields.each(function(){var t=r(this);t.removeAttr("data-sf-taxonomy-archive"),t.find("select:not([multiple='multiple']) > option:first-child").prop("selected",!0),t.find("select[multiple='multiple'] > option").prop("selected",!1),t.find("input[type='checkbox']").prop("checked",!1),t.find("> ul > li:first-child input[type='radio']").prop("checked",!0),t.find("input[type='text']").val(""),t.find(".sf-option-active").removeClass("sf-option-active"),t.find("> ul > li:first-child input[type='radio']").parent().addClass("sf-option-active"),t.find("input[type='number']").each(function(t){var e=r(this);e.parent().parent().hasClass("sf-meta-range")&&(0==t?e.val(e.attr("min")):1==t&&e.val(e.attr("max")))});var e=t.find(".sf-meta-range-select-fromto");if(e.length>0){var a=e.attr("data-min"),n=e.attr("data-max");e.find("select").each(function(t){var e=r(this);0==t?e.val(a):1==t&&e.val(n)})}var i=t.find(".sf-meta-range-radio-fromto");if(i.length>0){var a=i.attr("data-min"),n=i.attr("data-max"),s=i.find(".sf-input-range-radio");s.each(function(t){var e=r(this).find(".sf-input-radio");e.prop("checked",!1),0==t?e.filter('[value="'+a+'"]').prop("checked",!0):1==t&&e.filter('[value="'+n+'"]').prop("checked",!0)})}t.find(".meta-slider").each(function(t){var e=r(this)[0],a=r(this).closest(".sf-meta-range-slider"),n=a.attr("data-min"),i=a.attr("data-max");e.noUiSlider.set([n,i])});var o=t.find("select[data-combobox='1']");o.length>0&&("undefined"!=typeof o.chosen?o.trigger("chosen:updated"):(o.val(""),o.trigger("change.select2")))}
2616),e.clearTimer(),"always"==t?e.submitForm():"never"==t?1==this.auto_count_refresh_mode&&e.formUpdatedFetchAjax():"auto"==t&&(1==this.auto_update?e.submitForm():1==this.auto_count_refresh_mode&&e.formUpdatedFetchAjax())},this.init();var o={};o.sfid=e.sfid,o.targetSelector=e.ajax_target_attr,o.object=this,a.isInit&&e.triggerEvent("sf:init",o)})}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./process_form":4,"./state":5,"./thirdparty":6,nouislider:2}],4:[function(t,e,a){(function(t){var a="undefined"!=typeof window?window.jQuery:"undefined"!=typeof t?t.jQuery:null;e.exports={taxonomy_archives:0,url_params:{},tax_archive_results_url:"",active_tax:"",fields:{},init:function(t,e){this.taxonomy_archives=0,this.url_params={},this.tax_archive_results_url="",this.active_tax="",this.taxonomy_archives=t,this.current_taxonomy_archive=e,this.clearUrlComponents()},setTaxArchiveResultsUrl:function(t,e,r){var n=this;if(this.clearTaxArchiveResultsUrl(),1==this.taxonomy_archives){if("undefined"==typeof r)var r=!1;var i=!1,s="",o="",l=t.$fields.parent().find("[data-sf-taxonomy-archive='1']");if(1==l.length){i=l;var u=i.attr("data-sf-field-type");if("tag"==u||"category"==u||"taxonomy"==u){var c=n.processTaxonomy(i,!0);s=i.attr("data-sf-field-name");var f=s.replace("_sft_","");c&&(o=c.value)}""==o&&(i=!1)}if(""!=n.current_taxonomy_archive&&n.current_taxonomy_archive!=f)return void(this.tax_archive_results_url=e);if(""!=o&&i||t.$fields.each(function(){if(!i){var t=a(this).attr("data-sf-field-type");if("tag"==t||"category"==t||"taxonomy"==t){var e=n.processTaxonomy(a(this),!0);s=a(this).attr("data-sf-field-name"),e&&(o=e.value,""!=o&&(i=a(this)))}}}),i&&""!=o){var d=i.attr("data-sf-term-rewrite");if(""!=d){var p=JSON.parse(d),h=i.attr("data-sf-field-input-type");if(n.active_tax=s,"radio"==h||"checkbox"==h){var m=!0,_=o.split(",").join("+").split("+");if(_.length>1&&(m=!1),m){var g=i.find("input[value='"+o+"']"),v=g.parent(),x=v.attr("data-sf-depth"),y=new Array;y.push(o);for(var b=x;b>0;b--)v=v.parent().parent(),y.push(v.find("input").val());y.reverse();var j=p[x],w=j;a(y).each(function(t,e){w=w.replace("["+t+"]",e)}),this.tax_archive_results_url=w}}else if("select"==h||"multiselect"==h){var m=!0,_=o.split(",").join("+").split("+");if(_.length>1&&(m=!1),m){var v=i.find("option[value='"+o+"']"),x=v.attr("data-sf-depth"),y=new Array;y.push(o);for(var b=x;b>0;b--)v=v.prevAll("option[data-sf-depth='"+(b-1)+"']"),y.push(v.val());y.reverse();var j=p[x],w=j;a(y).each(function(t,e){w=w.replace("["+t+"]",e)}),this.tax_archive_results_url=w}}}}}},getResultsUrl:function(t,e){return""==this.tax_archive_results_url?e:this.tax_archive_results_url},getUrlParams:function(t){if(this.buildUrlComponents(t,!0),""!=this.tax_archive_results_url&&""!=this.active_tax){var e=this.active_tax;"undefined"!=typeof this.url_params[e]&&delete this.url_params[e]}return this.url_params},clearUrlComponents:function(){this.url_params={}},clearTaxArchiveResultsUrl:function(){this.tax_archive_results_url=""},disableInputs:function(t){t.$fields.each(function(){var t=a(this).find("input, select, .meta-slider");t.attr("disabled","disabled"),t.attr("disabled",!0),t.prop("disabled",!0),t.trigger("chosen:updated")})},enableInputs:function(t){t.$fields.each(function(){var t=a(this).find("input, select, .meta-slider");t.prop("disabled",!1),t.attr("disabled",!1),t.trigger("chosen:updated")})},buildUrlComponents:function(t,e){var r=this;"undefined"!=typeof e&&1==e&&this.clearUrlComponents(),t.$fields.each(function(){var t=(a(this).attr("data-sf-field-name"),a(this).attr("data-sf-field-type"));"search"==t?r.processSearchField(a(this)):"tag"==t||"category"==t||"taxonomy"==t?r.processTaxonomy(a(this)):"sort_order"==t?r.processSortOrderField(a(this)):"posts_per_page"==t?r.processResultsPerPageField(a(this)):"author"==t?r.processAuthor(a(this)):"post_type"==t?r.processPostType(a(this)):"post_date"==t?r.processPostDate(a(this)):"post_meta"==t&&r.processPostMeta(a(this))})},processSearchField:function(t){var e=this,a=t.find("input[name^='_sf_search']");if(a.length>0){var r=(a.attr("name").replace("[]",""),a.val());""!=r&&(e.url_params._sf_s=encodeURIComponent(r))}},processSortOrderField:function(t){this.processAuthor(t)},processResultsPerPageField:function(t){this.processAuthor(t)},getActiveTax:function(t){return this.active_tax},getSelectVal:function(t){var e="";return 0!=t.val()&&(e=t.val()),null==e&&(e=""),e},getMetaSelectVal:function(t){var e="";return e=t.val(),null==e&&(e=""),e},getMultiSelectVal:function(t,e){var a="+";if("or"==e&&(a=","),"object"==typeof t.val()&&null!=t.val())return t.val().join(a)},getMetaMultiSelectVal:function(t,e){var r="-+-";if("or"==e&&(r="-,-"),"object"==typeof t.val()&&null!=t.val()){var n=[];return a(t.val()).each(function(t,e){n.push(e)}),n.join(r)}return""},getCheckboxVal:function(t,e){var r=t.map(function(){if(1==a(this).prop("checked"))return a(this).val()}).get(),n="+";return"or"==e&&(n=","),r.join(n)},getMetaCheckboxVal:function(t,e){var r=t.map(function(){if(1==a(this).prop("checked"))return a(this).val()}).get(),n="-+-";return"or"==e&&(n="-,-"),r.join(n)},getRadioVal:function(t){var e=t.map(function(){if(1==a(this).prop("checked"))return a(this).val()}).get();if(0!=e[0])return e[0]},getMetaRadioVal:function(t){var e=t.map(function(){if(1==a(this).prop("checked"))return a(this).val()}).get();return e[0]},processAuthor:function(t){var e,a=this,r=(t.attr("data-sf-field-type"),t.attr("data-sf-field-input-type")),n="",i="";if("select"==r)e=t.find("select"),n=e.attr("name").replace("[]",""),i=a.getSelectVal(e);else if("multiselect"==r){e=t.find("select"),n=e.attr("name").replace("[]","");e.attr("data-operator");i=a.getMultiSelectVal(e,"or")}else if("checkbox"==r){if(e=t.find("ul > li input:checkbox"),e.length>0){n=e.attr("name").replace("[]","");t.find("> ul").attr("data-operator");i=a.getCheckboxVal(e,"or")}}else"radio"==r&&(e=t.find("ul > li input:radio"),e.length>0&&(n=e.attr("name").replace("[]",""),i=a.getRadioVal(e)));if("undefined"!=typeof i&&""!=i){var s="";"_sf_author"==n?s="authors":"_sf_sort_order"==n?s="sort_order":"_sf_ppp"==n?s="_sf_ppp":"_sf_post_type"==n&&(s="post_types"),""!=s&&(a.url_params[s]=i)}},processPostType:function(t){this.processAuthor(t)},processPostMeta:function(t){var e,r=this,n=(t.attr("data-sf-field-type"),t.attr("data-sf-field-input-type")),i=t.attr("data-sf-meta-type"),s="",o="";if("number"==i){if("range-number"==n){e=t.find(".sf-meta-range-number input");var l=[];e.each(function(){l.push(a(this).val())}),s=l.join("+")}else if("range-slider"==n){e=t.find(".sf-meta-range-slider input");var u=t.find(".sf-meta-range-slider"),c=u.attr("data-decimal-places"),f=u.attr("data-thousand-seperator"),d=u.attr("data-decimal-seperator"),p=wNumb({mark:d,decimals:parseFloat(c),thousand:f}),l=[],h=t.find(".meta-slider")[0],m=h.noUiSlider.get();l.push(p.from(m[0])),l.push(p.from(m[1])),s=l.join("+"),o=u.attr("data-sf-field-name")}else if("range-radio"==n){e=t.find(".sf-input-range-radio"),0==e.length&&(e=t.find("> ul"));var u=t.find(".sf-meta-range");if(e.length>0){var _=[];e.each(function(){var t=a(this).find(".sf-input-radio");_.push(r.getMetaRadioVal(t))}),2==_.length&&Number(_[1])<Number(_[0])&&(_[1]=_[0]),s=_.join("+")}o=1==e.length?e.find(".sf-input-radio").attr("name").replace("[]",""):u.attr("data-sf-field-name")}else if("range-select"==n){e=t.find(".sf-input-select");var u=t.find(".sf-meta-range");if(e.length>0){var _=[];e.each(function(){var t=a(this);_.push(r.getMetaSelectVal(t))}),2==_.length&&Number(_[1])<Number(_[0])&&(_[1]=_[0]),s=_.join("+")}o=1==e.length?e.attr("name").replace("[]",""):u.attr("data-sf-field-name")}else"range-checkbox"==n&&(e=t.find("ul > li input:checkbox"),e.length>0&&(s=r.getCheckboxVal(e,"and")));""==o&&(o=e.attr("name").replace("[]",""))}else if("choice"==i){if("select"==n)e=t.find("select"),s=r.getMetaSelectVal(e);else if("multiselect"==n){e=t.find("select");var g=e.attr("data-operator");s=r.getMetaMultiSelectVal(e,g)}else if("checkbox"==n){if(e=t.find("ul > li input:checkbox"),e.length>0){var g=t.find("> ul").attr("data-operator");s=r.getMetaCheckboxVal(e,g)}}else"radio"==n&&(e=t.find("ul > li input:radio"),e.length>0&&(s=r.getMetaRadioVal(e)));s=encodeURIComponent(s),"undefined"!=typeof e&&e.length>0&&(o=e.attr("name").replace("[]",""),o=o)}else"date"==i&&r.processPostDate(t);"undefined"!=typeof s&&""!=s&&(r.url_params[encodeURIComponent(o)]=s)},processPostDate:function(t){var e,r=this,n=(t.attr("data-sf-field-type"),t.attr("data-sf-field-input-type"),""),i="";e=t.find("ul > li input:text"),n=e.attr("name").replace("[]","");var s=[];if(e.each(function(){s.push(a(this).val())}),2==e.length?""==s[0]&&""==s[1]||(i=s.join("+"),i=i.replace(/\//g,"")):1==e.length&&""!=s[0]&&(i=s.join("+"),i=i.replace(/\//g,"")),"undefined"!=typeof i&&""!=i){var o="";o="_sf_post_date"==n?"post_date":n,""!=o&&(r.url_params[o]=i)}},processTaxonomy:function(t,e){"undefined"==typeof e&&(e=!1);var a,r=this,n=(t.attr("data-sf-field-type"),t.attr("data-sf-field-input-type")),i="",s="";if("select"==n)a=t.find("select"),i=a.attr("name").replace("[]",""),s=r.getSelectVal(a);else if("multiselect"==n){a=t.find("select"), 2617i=a.attr("name").replace("[]","");var o=a.attr("data-operator");s=r.getMultiSelectVal(a,o)}else if("checkbox"==n){if(a=t.find("ul > li input:checkbox"),a.length>0){i=a.attr("name").replace("[]","");var o=t.find("> ul").attr("data-operator");s=r.getCheckboxVal(a,o)}}else"radio"==n&&(a=t.find("ul > li input:radio"),a.length>0&&(i=a.attr("name").replace("[]",""),s=r.getRadioVal(a)));if("undefined"!=typeof s&&""!=s){if(1==e)return{name:i,value:s};r.url_params[i]=s}if(1==e)return!1}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],5:[function(t,e,a){e.exports={searchForms:{},init:function(){},addSearchForm:function(t,e){this.searchForms[t]=e},getSearchForm:function(t){return this.searchForms[t]}}},{}],6:[function(t,e,a){(function(t){var a="undefined"!=typeof window?window.jQuery:"undefined"!=typeof t?t.jQuery:null;e.exports={init:function(){a(document).on("sf:ajaxfinish",".searchandfilter",function(t,e){var r=e.object.display_result_method;if("custom_edd_store"===r)a("input.edd-add-to-cart").css("display","none"),a("a.edd-add-to-cart").addClass("edd-has-js");else if("custom_layouts"===r&&a(".cl-layout").hasClass("cl-layout--masonry")){const n=document.querySelectorAll(".cl-layout--masonry");if(n.length>0){const i=new Masonry(".cl-layout--masonry",{itemSelector:".cl-layout__item",percentPosition:!0,transitionDuration:0});imagesLoaded(n).on("progress",function(){i.layout()})}}})}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1]);;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.