function getCount(){var n=jQuery.cookie("ChartCartCookie"),t=0,i;return n&&(i=n.split(","),t=i.length||0),t}function getChartIndex(n){var t=jQuery.cookie("ChartCartCookie"),i=0,r;return t!==null&&(r=t.split(","),i=r.indexOf(n+"")),i}function setCartCookie(n){var t=new Date;t.setTime(t.getTime()+6048e5);jQuery.cookie("ChartCartCookie",n,{path:"/",expires:t})}function setChartCartCount(){var n=getCount(),t="<span>"+n+" <em><\/em><\/span>";$(".cwf-chartcart-cart").html(t)}function removeItemFromChartCart(n){var t=$.cookie("ChartCartCookie");t=t.replace(n+",","");t=t.replace(","+n,"");t=t.replace(n,"");setCartCookie(t);setChartCartCount();setEventandProductId("prodview,event20,event29",n)}function getFirstCartItem(){var t=$.cookie("ChartCartCookie"),n;return t!==null&&(n=t.split(","),n.length>0)?n[0]:null}var shareBar,cwf;(function(n,t){"use strict";typeof exports=="object"?module.exports=t(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):n.URI=t(n.punycode,n.IPv6,n.SecondLevelDomains,n)})(this,function(n,t,i,r){"use strict";function u(n,t){var i=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof u))return i?r?new u(n,t):new u(n):new u;if(n===undefined){if(i)throw new TypeError("undefined is not a valid argument for URI");n=typeof location!="undefined"?location.href+"":""}return(this.href(n),t!==undefined)?this.absoluteTo(t):this}function s(n){return n.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function h(n){return n===undefined?"Undefined":String(Object.prototype.toString.call(n)).slice(8,-1)}function e(n){return h(n)==="Array"}function k(n,t){var r={},i,u,f;if(h(t)==="RegExp")r=null;else if(e(t))for(i=0,u=t.length;i<u;i++)r[t[i]]=!0;else r[t]=!0;for(i=0,u=n.length;i<u;i++)f=r&&r[n[i]]!==undefined||!r&&t.test(n[i]),f&&(n.splice(i,1),u--,i--);return n}function v(n,t){var i,r,u;if(e(t)){for(i=0,r=t.length;i<r;i++)if(!v(n,t[i]))return!1;return!0}for(u=h(t),i=0,r=n.length;i<r;i++)if(u==="RegExp"){if(typeof n[i]=="string"&&n[i].match(t))return!0}else if(n[i]===t)return!0;return!1}function d(n,t){if(!e(n)||!e(t)||n.length!==t.length)return!1;n.sort();t.sort();for(var i=0,r=n.length;i<r;i++)if(n[i]!==t[i])return!1;return!0}function w(n){return n.replace(/^\/+|\/+$/g,"")}function it(n){return escape(n)}function b(n){return encodeURIComponent(n).replace(/[!'()*]/g,it).replace(/\*/g,"%2A")}function a(n){return function(t,i){return t===undefined?this._parts[n]||"":(this._parts[n]=t||null,this.build(!i),this)}}function g(n,t){return function(i,r){return i===undefined?this._parts[n]||"":(i!==null&&(i=i+"",i.charAt(0)===t&&(i=i.substring(1))),this._parts[n]=i,this.build(!r),this)}}var tt=r&&r.URI,f,o,y,c,p,l,nt;u.version="1.17.0";f=u.prototype;o=Object.prototype.hasOwnProperty;u._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:u.duplicateQueryParameters,escapeQuerySpace:u.escapeQuerySpace}};u.duplicateQueryParameters=!1;u.escapeQuerySpace=!0;u.protocol_expression=/^[a-z][a-z0-9.+-]*$/i;u.idn_expression=/[^a-z0-9\.-]/i;u.punycode_expression=/(xn--)/i;u.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;u.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;u.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig;u.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/};u.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"};u.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/;u.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"};u.getDomAttribute=function(n){if(!n||!n.nodeName)return undefined;var t=n.nodeName.toLowerCase();return t==="input"&&n.type!=="image"?undefined:u.domAttributes[t]};u.encode=b;u.decode=decodeURIComponent;u.iso8859=function(){u.encode=escape;u.decode=unescape};u.unicode=function(){u.encode=b;u.decode=decodeURIComponent};u.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}};u.encodeQuery=function(n,t){var i=u.encode(n+"");return t===undefined&&(t=u.escapeQuerySpace),t?i.replace(/%20/g,"+"):i};u.decodeQuery=function(n,t){n+="";t===undefined&&(t=u.escapeQuerySpace);try{return u.decode(t?n.replace(/\+/g,"%20"):n)}catch(i){return n}};y={encode:"encode",decode:"decode"};p=function(n,t){return function(i){try{return u[t](i+"").replace(u.characters[n][t].expression,function(i){return u.characters[n][t].map[i]})}catch(r){return i}}};for(c in y)u[c+"PathSegment"]=p("pathname",y[c]),u[c+"UrnPathSegment"]=p("urnpath",y[c]);l=function(n,t,i){return function(r){var o,f,e,s;for(o=i?function(n){return u[t](u[i](n))}:u[t],f=(r+"").split(n),e=0,s=f.length;e<s;e++)f[e]=o(f[e]);return f.join(n)}};u.decodePath=l("/","decodePathSegment");u.decodeUrnPath=l(":","decodeUrnPathSegment");u.recodePath=l("/","encodePathSegment","decode");u.recodeUrnPath=l(":","encodeUrnPathSegment","decode");u.encodeReserved=p("reserved","encode");u.parse=function(n,t){var i;return t||(t={}),i=n.indexOf("#"),i>-1&&(t.fragment=n.substring(i+1)||null,n=n.substring(0,i)),i=n.indexOf("?"),i>-1&&(t.query=n.substring(i+1)||null,n=n.substring(0,i)),n.substring(0,2)==="//"?(t.protocol=null,n=n.substring(2),n=u.parseAuthority(n,t)):(i=n.indexOf(":"),i>-1&&(t.protocol=n.substring(0,i)||null,t.protocol&&!t.protocol.match(u.protocol_expression)?t.protocol=undefined:n.substring(i+1,i+3)==="//"?(n=n.substring(i+3),n=u.parseAuthority(n,t)):(n=n.substring(i+1),t.urn=!0))),t.path=n,t};u.parseHost=function(n,t){var i,r,u;if(n=n.replace(/\\/g,"/"),i=n.indexOf("/"),i===-1&&(i=n.length),n.charAt(0)==="[")r=n.indexOf("]"),t.hostname=n.substring(1,r)||null,t.port=n.substring(r+2,i)||null,t.port==="/"&&(t.port=null);else{var o=n.indexOf(":"),f=n.indexOf("/"),e=n.indexOf(":",o+1);e!==-1&&(f===-1||e<f)?(t.hostname=n.substring(0,i)||null,t.port=null):(u=n.substring(0,i).split(":"),t.hostname=u[0]||null,t.port=u[1]||null)}return t.hostname&&n.substring(i).charAt(0)!=="/"&&(i++,n="/"+n),n.substring(i)||"/"};u.parseAuthority=function(n,t){return n=u.parseUserinfo(n,t),u.parseHost(n,t)};u.parseUserinfo=function(n,t){var r=n.indexOf("/"),f=n.lastIndexOf("@",r>-1?r:n.length-1),i;return f>-1&&(r===-1||f<r)?(i=n.substring(0,f).split(":"),t.username=i[0]?u.decode(i[0]):null,i.shift(),t.password=i[0]?u.decode(i.join(":")):null,n=n.substring(f+1)):(t.username=null,t.password=null),n};u.parseQuery=function(n,t){var e;if(!n)return{};if(n=n.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!n)return{};var i={},h=n.split("&"),c=h.length,f,r,s;for(e=0;e<c;e++)f=h[e].split("="),r=u.decodeQuery(f.shift(),t),s=f.length?u.decodeQuery(f.join("="),t):null,o.call(i,r)?((typeof i[r]=="string"||i[r]===null)&&(i[r]=[i[r]]),i[r].push(s)):i[r]=s;return i};u.build=function(n){var t="";return n.protocol&&(t+=n.protocol+":"),!n.urn&&(t||n.hostname)&&(t+="//"),t+=u.buildAuthority(n)||"",typeof n.path=="string"&&(n.path.charAt(0)!=="/"&&typeof n.hostname=="string"&&(t+="/"),t+=n.path),typeof n.query=="string"&&n.query&&(t+="?"+n.query),typeof n.fragment=="string"&&n.fragment&&(t+="#"+n.fragment),t};u.buildHost=function(n){var t="";if(n.hostname)t+=u.ip6_expression.test(n.hostname)?"["+n.hostname+"]":n.hostname;else return"";return n.port&&(t+=":"+n.port),t};u.buildAuthority=function(n){return u.buildUserinfo(n)+u.buildHost(n)};u.buildUserinfo=function(n){var t="";return n.username&&(t+=u.encode(n.username),n.password&&(t+=":"+u.encode(n.password)),t+="@"),t};u.buildQuery=function(n,t,i){var s="",h,r,f,c;for(r in n)if(o.call(n,r)&&r)if(e(n[r]))for(h={},f=0,c=n[r].length;f<c;f++)n[r][f]!==undefined&&h[n[r][f]+""]===undefined&&(s+="&"+u.buildQueryParameter(r,n[r][f],i),t!==!0&&(h[n[r][f]+""]=!0));else n[r]!==undefined&&(s+="&"+u.buildQueryParameter(r,n[r],i));return s.substring(1)};u.buildQueryParameter=function(n,t,i){return u.encodeQuery(n,i)+(t!==null?"="+u.encodeQuery(t,i):"")};u.addQuery=function(n,t,i){if(typeof t=="object")for(var r in t)o.call(t,r)&&u.addQuery(n,r,t[r]);else if(typeof t=="string"){if(n[t]===undefined){n[t]=i;return}typeof n[t]=="string"&&(n[t]=[n[t]]);e(i)||(i=[i]);n[t]=(n[t]||[]).concat(i)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");};u.removeQuery=function(n,t,i){var f,s,r;if(e(t))for(f=0,s=t.length;f<s;f++)n[t[f]]=undefined;else if(h(t)==="RegExp")for(r in n)t.test(r)&&(n[r]=undefined);else if(typeof t=="object")for(r in t)o.call(t,r)&&u.removeQuery(n,r,t[r]);else if(typeof t=="string")i!==undefined?h(i)==="RegExp"?n[t]=!e(n[t])&&i.test(n[t])?undefined:k(n[t],i):n[t]!==String(i)||e(i)&&i.length!==1?e(n[t])&&(n[t]=k(n[t],i)):n[t]=undefined:n[t]=undefined;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");};u.hasQuery=function(n,t,i,r){var f,s,c;if(typeof t=="object"){for(f in t)if(o.call(t,f)&&!u.hasQuery(n,f,t[f]))return!1;return!0}if(typeof t!="string")throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(h(i)){case"Undefined":return t in n;case"Boolean":return s=Boolean(e(n[t])?n[t].length:n[t]),i===s;case"Function":return!!i(n[t],t,n);case"Array":return e(n[t])?(c=r?v:d,c(n[t],i)):!1;case"RegExp":return e(n[t])?r?v(n[t],i):!1:Boolean(n[t]&&n[t].match(i));case"Number":i=String(i);case"String":return e(n[t])?r?v(n[t],i):!1:n[t]===i;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter");}};u.commonPath=function(n,t){for(var r=Math.min(n.length,t.length),i=0;i<r;i++)if(n.charAt(i)!==t.charAt(i)){i--;break}return i<1?n.charAt(0)===t.charAt(0)&&n.charAt(0)==="/"?"/":"":((n.charAt(i)!=="/"||t.charAt(i)!=="/")&&(i=n.substring(0,i).lastIndexOf("/")),n.substring(0,i+1))};u.withinString=function(n,t,i){var s,r,h,f,o,c;i||(i={});var e=i.start||u.findUri.start,l=i.end||u.findUri.end,a=i.trim||u.findUri.trim;for(e.lastIndex=0;;){if(s=e.exec(n),!s)break;(r=s.index,i.ignoreHtml&&(h=n.slice(Math.max(r-3,0),r),h&&/[a-z0-9-]=["']?$/i.test(h)))||(f=r+n.slice(r).search(l),o=n.slice(r,f).replace(a,""),i.ignore&&i.ignore.test(o))||(f=r+o.length,c=t(o,r,f,n),n=n.slice(0,r)+c+n.slice(f),e.lastIndex=r+c.length)}return e.lastIndex=0,n};u.ensureValidHostname=function(t){if(t.match(u.invalid_hostname_characters)){if(!n)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(n.toASCII(t).match(u.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');}};u.noConflict=function(n){if(n){var t={URI:this.noConflict()};return r.URITemplate&&typeof r.URITemplate.noConflict=="function"&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&typeof r.IPv6.noConflict=="function"&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&typeof r.SecondLevelDomains.noConflict=="function"&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=tt),this};f.build=function(n){return n===!0?this._deferred_build=!0:(n===undefined||this._deferred_build)&&(this._string=u.build(this._parts),this._deferred_build=!1),this};f.clone=function(){return new u(this)};f.valueOf=f.toString=function(){return this.build(!1)._string};f.protocol=a("protocol");f.username=a("username");f.password=a("password");f.hostname=a("hostname");f.port=a("port");f.query=g("query","?");f.fragment=g("fragment","#");f.search=function(n,t){var i=this.query(n,t);return typeof i=="string"&&i.length?"?"+i:i};f.hash=function(n,t){var i=this.fragment(n,t);return typeof i=="string"&&i.length?"#"+i:i};f.pathname=function(n,t){if(n===undefined||n===!0){var i=this._parts.path||(this._parts.hostname?"/":"");return n?(this._parts.urn?u.decodeUrnPath:u.decodePath)(i):i}return this._parts.path=this._parts.urn?n?u.recodeUrnPath(n):"":n?u.recodePath(n):"/",this.build(!t),this};f.path=f.pathname;f.href=function(n,t){var i,r,f,s,e;if(n===undefined)return this.toString();if(this._string="",this._parts=u._parts(),r=n instanceof u,f=typeof n=="object"&&(n.hostname||n.path||n.pathname),n.nodeName&&(s=u.getDomAttribute(n),n=n[s]||"",f=!1),!r&&f&&n.pathname!==undefined&&(n=n.toString()),typeof n=="string"||n instanceof String)this._parts=u.parse(String(n),this._parts);else if(r||f){e=r?n._parts:n;for(i in e)o.call(this._parts,i)&&(this._parts[i]=e[i])}else throw new TypeError("invalid input");return this.build(!t),this};f.is=function(n){var r=!1,f=!1,e=!1,t=!1,s=!1,h=!1,c=!1,o=!this._parts.urn;this._parts.hostname&&(o=!1,f=u.ip4_expression.test(this._parts.hostname),e=u.ip6_expression.test(this._parts.hostname),r=f||e,t=!r,s=t&&i&&i.has(this._parts.hostname),h=t&&u.idn_expression.test(this._parts.hostname),c=t&&u.punycode_expression.test(this._parts.hostname));switch(n.toLowerCase()){case"relative":return o;case"absolute":return!o;case"domain":case"name":return t;case"sld":return s;case"ip":return r;case"ip4":case"ipv4":case"inet4":return f;case"ip6":case"ipv6":case"inet6":return e;case"idn":return h;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var rt=f.protocol,ut=f.port,ft=f.hostname;return f.protocol=function(n,t){if(n!==undefined&&n&&(n=n.replace(/:(\/\/)?$/,""),!n.match(u.protocol_expression)))throw new TypeError('Protocol "'+n+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return rt.call(this,n,t)},f.scheme=f.protocol,f.port=function(n,t){if(this._parts.urn)return n===undefined?"":this;if(n!==undefined&&(n===0&&(n=null),n&&(n+="",n.charAt(0)===":"&&(n=n.substring(1)),n.match(/[^0-9]/))))throw new TypeError('Port "'+n+'" contains characters other than [0-9]');return ut.call(this,n,t)},f.hostname=function(n,t){if(this._parts.urn)return n===undefined?"":this;if(n!==undefined){var i={},r=u.parseHost(n,i);if(r!=="/")throw new TypeError('Hostname "'+n+'" contains characters other than [A-Z0-9.-]');n=i.hostname}return ft.call(this,n,t)},f.origin=function(n,t){var i,f,r;return this._parts.urn?n===undefined?"":this:n===undefined?(i=this.protocol(),f=this.authority(),!f)?"":(i?i+"://":"")+this.authority():(r=u(n),this.protocol(r.protocol()).authority(r.authority()).build(!t),this)},f.host=function(n,t){if(this._parts.urn)return n===undefined?"":this;if(n===undefined)return this._parts.hostname?u.buildHost(this._parts):"";var i=u.parseHost(n,this._parts);if(i!=="/")throw new TypeError('Hostname "'+n+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},f.authority=function(n,t){if(this._parts.urn)return n===undefined?"":this;if(n===undefined)return this._parts.hostname?u.buildAuthority(this._parts):"";var i=u.parseAuthority(n,this._parts);if(i!=="/")throw new TypeError('Hostname "'+n+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},f.userinfo=function(n,t){if(this._parts.urn)return n===undefined?"":this;if(n===undefined){if(!this._parts.username)return"";var i=u.buildUserinfo(this._parts);return i.substring(0,i.length-1)}return n[n.length-1]!=="@"&&(n+="@"),u.parseUserinfo(n,this._parts),this.build(!t),this},f.resource=function(n,t){var i;return n===undefined?this.path()+this.search()+this.hash():(i=u.parse(n),this._parts.path=i.path,this._parts.query=i.query,this._parts.fragment=i.fragment,this.build(!t),this)},f.subdomain=function(n,t){var i;if(this._parts.urn)return n===undefined?"":this;if(n===undefined)return!this._parts.hostname||this.is("IP")?"":(i=this._parts.hostname.length-this.domain().length-1,this._parts.hostname.substring(0,i)||"");var r=this._parts.hostname.length-this.domain().length,f=this._parts.hostname.substring(0,r),e=new RegExp("^"+s(f));return n&&n.charAt(n.length-1)!=="."&&(n+="."),n&&u.ensureValidHostname(n),this._parts.hostname=this._parts.hostname.replace(e,n),this.build(!t),this},f.domain=function(n,t){var r,i,f;if(this._parts.urn)return n===undefined?"":this;if(typeof n=="boolean"&&(t=n,n=undefined),n===undefined)return!this._parts.hostname||this.is("IP")?"":(r=this._parts.hostname.match(/\./g),r&&r.length<2)?this._parts.hostname:(i=this._parts.hostname.length-this.tld(t).length-1,i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||"");if(!n)throw new TypeError("cannot set domain empty");return u.ensureValidHostname(n),!this._parts.hostname||this.is("IP")?this._parts.hostname=n:(f=new RegExp(s(this.domain())+"$"),this._parts.hostname=this._parts.hostname.replace(f,n)),this.build(!t),this},f.tld=function(n,t){var f,r,u;if(this._parts.urn)return n===undefined?"":this;if(typeof n=="boolean"&&(t=n,n=undefined),n===undefined)return!this._parts.hostname||this.is("IP")?"":(f=this._parts.hostname.lastIndexOf("."),r=this._parts.hostname.substring(f+1),t!==!0&&i&&i.list[r.toLowerCase()])?i.get(this._parts.hostname)||r:r;if(n)if(n.match(/[^a-zA-Z0-9-]/))if(i&&i.is(n))u=new RegExp(s(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(u,n);else throw new TypeError('TLD "'+n+'" contains characters other than [A-Z0-9]');else if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");else u=new RegExp(s(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(u,n);else throw new TypeError("cannot set TLD empty");return this.build(!t),this},f.directory=function(n,t){var r,i;if(this._parts.urn)return n===undefined?"":this;if(n===undefined||n===!0)return!this._parts.path&&!this._parts.hostname?"":this._parts.path==="/"?"/":(r=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,r)||(this._parts.hostname?"/":""),n?u.decodePath(i):i);var f=this._parts.path.length-this.filename().length,e=this._parts.path.substring(0,f),o=new RegExp("^"+s(e));return this.is("relative")||(n||(n="/"),n.charAt(0)!=="/"&&(n="/"+n)),n&&n.charAt(n.length-1)!=="/"&&(n+="/"),n=u.recodePath(n),this._parts.path=this._parts.path.replace(o,n),this.build(!t),this},f.filename=function(n,t){var f,i,r,e;return this._parts.urn?n===undefined?"":this:n===undefined||n===!0?!this._parts.path||this._parts.path==="/"?"":(f=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(f+1),n?u.decodePathSegment(i):i):(r=!1,n.charAt(0)==="/"&&(n=n.substring(1)),n.match(/\.?\//)&&(r=!0),e=new RegExp(s(this.filename())+"$"),n=u.recodePath(n),this._parts.path=this._parts.path.replace(e,n),r?this.normalizePath(t):this.build(!t),this)},f.suffix=function(n,t){var r,f,e,o,i,h;if(this._parts.urn)return n===undefined?"":this;if(n===undefined||n===!0)return!this._parts.path||this._parts.path==="/"?"":(r=this.filename(),f=r.lastIndexOf("."),f===-1)?"":(e=r.substring(f+1),o=/^[a-z0-9%]+$/i.test(e)?e:"",n?u.decodePathSegment(o):o);if(n.charAt(0)==="."&&(n=n.substring(1)),i=this.suffix(),i)h=n?new RegExp(s(i)+"$"):new RegExp(s("."+i)+"$");else{if(!n)return this;this._parts.path+="."+u.recodePath(n)}return h&&(n=u.recodePath(n),this._parts.path=this._parts.path.replace(h,n)),this.build(!t),this},f.segment=function(n,t,i){var f=this._parts.urn?":":"/",o=this.path(),s=o.substring(0,1)==="/",r=o.split(f),u,h;if(n!==undefined&&typeof n!="number"&&(i=t,t=n,n=undefined),n!==undefined&&typeof n!="number")throw new Error('Bad segment "'+n+'", must be 0-based integer');if(s&&r.shift(),n<0&&(n=Math.max(r.length+n,0)),t===undefined)return n===undefined?r:r[n];if(n===null||r[n]===undefined)if(e(t))for(r=[],u=0,h=t.length;u<h;u++)(t[u].length||r.length&&r[r.length-1].length)&&(r.length&&!r[r.length-1].length&&r.pop(),r.push(w(t[u])));else(t||typeof t=="string")&&(t=w(t),r[r.length-1]===""?r[r.length-1]=t:r.push(t));else t?r[n]=w(t):r.splice(n,1);return s&&r.unshift(""),this.path(r.join(f),i)},f.segmentCoded=function(n,t,i){var f,r,o;if(typeof n!="number"&&(i=t,t=n,n=undefined),t===undefined){if(f=this.segment(n,t,i),e(f))for(r=0,o=f.length;r<o;r++)f[r]=u.decode(f[r]);else f=f!==undefined?u.decode(f):undefined;return f}if(e(t))for(r=0,o=t.length;r<o;r++)t[r]=u.encode(t[r]);else t=typeof t=="string"||t instanceof String?u.encode(t):t;return this.segment(n,t,i)},nt=f.query,f.query=function(n,t){if(n===!0)return u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof n=="function"){var i=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=n.call(this,i);return this._parts.query=u.buildQuery(r||i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return n!==undefined&&typeof n!="string"?(this._parts.query=u.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):nt.call(this,n,t)},f.setQuery=function(n,t,i){var f=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r;if(typeof n=="string"||n instanceof String)f[n]=t!==undefined?t:null;else if(typeof n=="object")for(r in n)o.call(n,r)&&(f[r]=n[r]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=u.buildQuery(f,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof n!="string"&&(i=t),this.build(!i),this},f.addQuery=function(n,t,i){var r=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.addQuery(r,n,t===undefined?null:t),this._parts.query=u.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof n!="string"&&(i=t),this.build(!i),this},f.removeQuery=function(n,t,i){var r=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.removeQuery(r,n,t),this._parts.query=u.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof n!="string"&&(i=t),this.build(!i),this},f.hasQuery=function(n,t,i){var r=u.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return u.hasQuery(r,n,t,i)},f.setSearch=f.setQuery,f.addSearch=f.addQuery,f.removeSearch=f.removeQuery,f.hasSearch=f.hasQuery,f.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},f.normalizeProtocol=function(n){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!n)),this},f.normalizeHostname=function(i){return this._parts.hostname&&(this.is("IDN")&&n?this._parts.hostname=n.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!i)),this},f.normalizePort=function(n){return typeof this._parts.protocol=="string"&&this._parts.port===u.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!n)),this},f.normalizePath=function(n){var t=this._parts.path,e,i,r,f;if(!t)return this;if(this._parts.urn)return this._parts.path=u.recodeUrnPath(this._parts.path),this.build(!n),this;if(this._parts.path==="/")return this;for(t=u.recodePath(t),i="",t.charAt(0)!=="/"&&(e=!0,t="/"+t),(t.slice(-3)==="/.."||t.slice(-2)==="/.")&&(t+="/"),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(i=t.substring(1).match(/^(\.\.\/)+/)||"",i&&(i=i[0]));;){if(r=t.search(/\/\.\.(\/|$)/),r===-1)break;else if(r===0){t=t.substring(3);continue}f=t.substring(0,r).lastIndexOf("/");f===-1&&(f=r);t=t.substring(0,f)+t.substring(r+3)}return e&&this.is("relative")&&(t=i+t.substring(1)),this._parts.path=t,this.build(!n),this},f.normalizePathname=f.normalizePath,f.normalizeQuery=function(n){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(u.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!n)),this},f.normalizeFragment=function(n){return this._parts.fragment||(this._parts.fragment=null,this.build(!n)),this},f.normalizeSearch=f.normalizeQuery,f.normalizeHash=f.normalizeFragment,f.iso8859=function(){var n=u.encode,t=u.decode;u.encode=escape;u.decode=decodeURIComponent;try{this.normalize()}finally{u.encode=n;u.decode=t}return this},f.unicode=function(){var n=u.encode,t=u.decode;u.encode=b;u.decode=unescape;try{this.normalize()}finally{u.encode=n;u.decode=t}return this},f.readable=function(){var t=this.clone(),i,r,f;if(t.username("").password("").normalize(),i="",t._parts.protocol&&(i+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&n?(i+=n.toUnicode(t._parts.hostname),t._parts.port&&(i+=":"+t._parts.port)):i+=t.host()),t._parts.hostname&&t._parts.path&&t._parts.path.charAt(0)!=="/"&&(i+="/"),i+=t.path(!0),t._parts.query){r="";for(var e=0,o=t._parts.query.split("&"),s=o.length;e<s;e++)f=(o[e]||"").split("="),r+="&"+u.decodeQuery(f[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),f[1]!==undefined&&(r+="="+u.decodeQuery(f[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"));i+="?"+r.substring(1)}return i+u.decodeQuery(t.hash(),!0)},f.absoluteTo=function(n){var t=this.clone(),e=["protocol","username","password","hostname","port"],i,r,f;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(n instanceof u||(n=new u(n)),t._parts.protocol||(t._parts.protocol=n._parts.protocol),this._parts.hostname)return t;for(r=0;f=e[r];r++)t._parts[f]=n._parts[f];return t._parts.path?t._parts.path.substring(-2)===".."&&(t._parts.path+="/"):(t._parts.path=n._parts.path,t._parts.query||(t._parts.query=n._parts.query)),t.path().charAt(0)!=="/"&&(i=n.directory(),i=i?i:n.path().indexOf("/")===0?"/":"",t._parts.path=(i?i+"/":"")+t._parts.path,t.normalizePath()),t.build(),t},f.relativeTo=function(n){var i=this.clone().normalize(),t,r,f,e,o,s;if(i._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(n=new u(n).normalize(),t=i._parts,r=n._parts,e=i.path(),o=n.path(),e.charAt(0)!=="/")throw new Error("URI is already relative");if(o.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if((t.protocol===r.protocol&&(t.protocol=null),t.username!==r.username||t.password!==r.password)||t.protocol!==null||t.username!==null||t.password!==null)return i.build();if(t.hostname===r.hostname&&t.port===r.port)t.hostname=null,t.port=null;else return i.build();return e===o?(t.path="",i.build()):(f=u.commonPath(e,o),!f)?i.build():(s=r.path.substring(f.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../"),t.path=s+t.path.substring(f.length)||"./",i.build())},f.equals=function(n){var r=this.clone(),f=new u(n),i={},s={},l={},h,c,t;if(r.normalize(),f.normalize(),r.toString()===f.toString())return!0;if((h=r.query(),c=f.query(),r.query(""),f.query(""),r.toString()!==f.toString())||h.length!==c.length)return!1;i=u.parseQuery(h,this._parts.escapeQuerySpace);s=u.parseQuery(c,this._parts.escapeQuerySpace);for(t in i)if(o.call(i,t)){if(e(i[t])){if(!d(i[t],s[t]))return!1}else if(i[t]!==s[t])return!1;l[t]=!0}for(t in s)if(o.call(s,t)&&!l[t])return!1;return!0},f.duplicateQueryParameters=function(n){return this._parts.duplicateQueryParameters=!!n,this},f.escapeQuerySpace=function(n){return this._parts.escapeQuerySpace=!!n,this},u});$(".AddToChartCart").on("click",function(){var n=$(this).attr("data-itemid"),t;$.cookie("ChartCartCookie")?(t=$.cookie("ChartCartCookie"),setCartCookie(t+","+n)):setCartCookie(n);setEventandProductId("prodview,event20,event27",n);$(".AddToChartCart").hide();$("#RemoveFromCart").show();setChartCartCount();$("#cartOption").attr("inCart",!0)});$("#RemoveFromCart").on("click",function(){var n=$(this).attr("data-itemid");removeItemFromChartCart(n);$(".AddToChartCart").show();$("#RemoveFromCart").hide();$("#cartOption").attr("inCart",!1)});$("#RemoveFromCartForChartInCart").on("click",function(){var t=$(".active").attr("itemid"),i,n;removeItemFromChartCart(t);i=getCount();i>=1?(n=getFirstCartItem(),$("#slide_"+n).addClass("active"),$("#slide_"+n).css("margin-left","0%"),$("#slide_"+n).css("z-index",4),$("#slide_"+t).remove()):$(".ChartInChart").html("<div>No Charts in Cart<\/div>")});$("SubscribeToNewsletter").on("click",function(){var n=$(this).attr("redirectLink");$(location).attr("href",n)});$(document).ready(function(){jQuery("#shareBar").attr("isChartInCart")&&getCount()===0&&(jQuery("#AddToLibraryButton").remove(),jQuery("#RemoveFromCartForChartInCart").remove())});jQuery(".removeFromLibrary").click(function(){var n=jQuery(this).attr("data-itemid"),t=jQuery(this).attr("data-user-name");$.post("/api/RemoveFromLibrary",{username:t,itemId:n}).done(function(){location.reload()})});shareBar=function(){var i=function(i){var r=$("#loginAtl"),u=$("#addToLibrary"),f=$("#EmailButton"),e=$("#myFrame");if(i.loginAtlLink=i.loginAtlLink||"",i.addToLibraryLink=i.addToLibraryLink||"",i.emailAFriendLink=i.emailAFriendLink||"",i.useFullUrl){if(i.addToLibraryLink.length>0)u.on("click",function(){u.attr("href",t(n(i.addToLibraryLink),"url"))});if(i.emailAFriendLink.length>0)f.on("click",function(){e.attr("src",t(n(i.emailAFriendLink),"url"))})}if(i.loginAtlLink.length>0)r.on("click",function(){var t=String(URI(window.location).addSearch("atl","true"));r.attr("href",String(URI(n(i.loginAtlLink)).addSearch("returnUrl",t)))})},n=function(n){var t=document.createElement("textarea");return t.innerHTML=n,decodeURIComponent(t.value)},t=function(n,t){return String(URI(n).addSearch(t,window.location))};return{init:i,decodedUrl:n}}(),function(n,t,i){"use strict";function u(){var f=n(".left-two-sm"),r=f.find(".left-two-sm-l"),e=f.find(".left-two-sm-r"),i=e.find("#shareBar"),u=r.find("#shareBar");i.length>0&&(t.matchMedia("(min-width: 1024px)").matches?u.length==0&&(r.prepend(i.clone(!0)),u=r.find("#shareBar"),i.hide()):(u.remove(),i.show()))}function f(){n("time.dt-updated").each(function(){var t=n(this).attr("datetime");n(this).html(e(t))})}function e(n){var i=new Date(Date.parse(n)),u=new Date,t;return(navigator.userAgent.match(/MSIE\s([^;]*)/)&&(i=Date.parse(n.replace(/( \+)/," UTC$1"))),t=Math.floor((u-i)/1e3),t<20)?t+'<abbr title="seconds">s<\/abbr>':t<=90?'1<abbr title="minutes">m<\/abbr>':t<=3540?Math.round(t/60)+'<abbr title="minutes">m<\/abbr>':t<=5400?'1<abbr title="hours">h<\/abbr>':t<=86400?Math.round(t/3600)+'<abbr title="hours">h<\/abbr>':i.getDay()+" "+r[i.getMonth()]}var r,o;n(i).foundation();n(t).load(function(){n("[data-match-height]").each(function(){var u=n(this),t=n("[data-height-watch]",this),i=t.map(function(){return n(this).outerHeight()}).get(),r=Math.max.apply(Math,i);t.css("min-height",r)})});n(i).ready(function(){var r=n("html"),e;n.hasOwnProperty("browser")&&(n.browser.ipad&&r.addClass("ipad"),n.browser.iphone&&r.addClass("iphone"),n.browser.android&&r.addClass("android"),n.browser["windows phone"]&&r.addClass("windows-phone"),n.browser.win&&r.addClass("win"),n.browser.mac&&r.addClass("mac"),n.browser.linux&&r.addClass("linux"),n.browser.cros&&r.addClass("cros"),n.browser.desktop&&r.addClass("desktop"),n.browser.mobile&&r.addClass("mobile"),n.browser.opera&&r.addClass("opera"));e=n("html").hasClass("touch")?"touchstart":"click";n(".touch.ipad .top-bar-section .dropdown li a.parent-link").css("display","block");n(".top-bar-section > ul > .has-dropdown").hover(function(){var t=n(this),i=t.data("timer")||0;clearTimeout(i);i=setTimeout(function(){t.addClass("nav-hover")},250);t.data("timer",i)},function(){var t=n(this),i=t.data("timer")||0;clearTimeout(i);t.removeClass("nav-hover")});n('a[rel="external"]').on("click",function(i){i.preventDefault();t.open(n(this).attr("href"))});n(".custom a.current").on("click",function(n){n.preventDefault()});n("a[data-cwf-print]").click(function(n){n.preventDefault();t.print()});n("a.aca.more").on("click",function(t){var u;t.preventDefault();var f=n(this).attr("href"),i=n("a.yeartab"),r=i.index(n('a.yeartab[href="'+f+'"]'));r==i.length-1&&(r=-1);u=i[r+1];n(u).trigger("click")});n(".cwf-offcanvas-toggle").on(e,function(t){t.stopPropagation();t.preventDefault();setTimeout(function(){n(".cwf-offcanvas").toggleClass("active")},25)});n(".orbit-prev, .orbit-next",".cwf-chartcart-slideshow").find("span").append("<span><\/span>");n(".orbit-prev, .orbit-next",".cwf-chartcart-slideshow").find("span").append("<span><\/span>");setChartCartCount();n(".cwf-mychartcart").on("click",".RemoveFromCart",function(){var t=n(this).attr("data-itemid");removeItemFromChartCart(t);n("[data-guid='"+t+"']").hide()});n("a.cwf-play").not(".cwf-play-processed").each(function(){var t=n(this);t.append('<span class="cwf-btn-play"><\/span><span class="cwf-btn-overlay"><\/span>');t.addClass("cwf-play-processed")});n(".breadcrumbs .ellipsis").on("click",function(t){t.preventDefault();n(this).hide();n(".breadcrumbs a.hidden").removeClass("visuallyhidden")});f();n(".cwf-accordion-title").on("click",function(){var t=n(this),i=t.parent(),e=i.parent(),r=e.find(".active"),u,f;i.hasClass("active")||(u=r.find(".cwf-accordion-content").outerHeight()||0,f=r.index()<i.index()?t.offset().top-u:t.offset().top,n("html, body").animate({scrollTop:f},0))});n(".CoveoResultList").on("newResultsDisplayed",function(){var t=n(this).attr("data-enable-infinite-scroll");t&&t.toLowerCase()!=="true"&&n(i).scrollTop(0)});n("#search").on("mousedown",".facet-dropdowns .coveo-title",function(t){t.preventDefault();n(this).parent().parent().parent().toggleClass("active")});n(i).on("mouseup touchend",function(t){var i=n(".facet-dropdowns .coveo-values, .facet-dropdowns .coveo-title");i&&i.length>0&&!i.is(t.target)&&i.has(t.target).length===0&&i.parent().parent().parent().removeClass("active")});n.fn.responsiveSlides&&n(".slideshow-component .rslides").responsiveSlides({auto:!1,pager:!0,nav:!0,speed:500,maxwidth:1200,namespace:"centered-btns"});u()});n(t).on("resize",function(){u()});n(i).on("scroll",function(){var r=n(".left-two-sm"),o=r.find(".left-two-sm-l"),u=r.find(".left-two-sm-r"),i=o.find("#shareBar");if(i.length>0){var f=n(t).scrollTop(),e=u.offset().top,s=e+u.height();f>=e&&f<=s?i.addClass("sticky"):i.removeClass("sticky")}});r=[];r[0]="Jan";r[1]="Feb";r[2]="Mar";r[3]="Apr";r[4]="May";r[5]="Jun";r[6]="Jul";r[7]="Aug";r[8]="Sep";r[9]="Oct";r[10]="Nov";r[11]="Dec";o=function(){var n=navigator.userAgent;return{ie:n.match(/MSIE\s([^;]*)/)}}();n("a.submit-link").on("click",function(t){t.preventDefault();n("#signOutButton").click()});n("#CheckAll").on("click",function(){n(".row").find("input[type=checkbox]").prop("checked",!0)});n("#CheckNone").on("click",function(){n(".row").find("input[type=checkbox]").prop("checked",!1)});n("#login form").on("submit",function(){return cwf.handleLoginFormSubmit()})}(jQuery,window,document);cwf=cwf||{};typeof Highcharts!="undefined"&&(cwf.hcDefaults=$.extend(!0,{},Highcharts.getOptions(),{}));cwf.resetHighcharts=function(n){var t,i;if(n=n||{},typeof cwf.hcDefaults!="undefined"){t=Highcharts.getOptions();for(i in t)typeof t[i]!="function"&&delete t[i];Highcharts.setOptions(cwf.hcDefaults)}typeof n.newTheme!="undefined"&&(n.noColorAxis&&(n.newTheme.colorAxis=null),Highcharts.setOptions(n.newTheme))};cwf.handleLoginFormSubmit=function(){var t=$("#LoginEmail").val()||"",i=$("#LoginPassword").val()||"",n=!1;return t.length&&i.length&&$.ajax({async:!1,type:"POST",url:"/api/login",data:{LoginEmail:t,LoginPassword:i,KeepMeLoggedIn:!0},dataType:"json",success:function(t){t.Success?(jQuery.cookie("loginCookie","true","/"),n=!0):($("#log-in-error").html(t.Message),$("#log-in-error").removeClass("visuallyhidden"),dataLayer.push({loginAttempt:"Fail"}),setEvent("event8"),n=!1)},error:function(){$("#log-in-error").html("An error has occured. Please try again.");$("#log-in-error").removeClass("visuallyhidden");dataLayer.push({loginAttempt:"Fail"});setEvent("event8");n=!1}}),n};cwf.customValueCaption=function(n){var i=n.value,r=new RegExp("\\d{6}");if(r.test(i)){var u=i.substring(4),f=i.substring(0,4),t="";switch(u){case"01":t="January";break;case"02":t="February";break;case"03":t="March";break;case"04":t="April";break;case"05":t="May";break;case"06":t="June";break;case"07":t="July";break;case"08":t="August";break;case"09":t="September";break;case"10":t="October";break;case"11":t="November";break;case"12":t="December"}i=t+" "+f}return i};cwf.addToLibrary=function(n){setEventandProductId("prodview,event24",n.item);$.post("/api/AddToLibrary",n).done(function(){$("#entry").addClass("visuallyhidden");$("#success").removeClass("visuallyhidden");location.href!=n.url?location.href=n.url:location.reload()}).fail(function(){$("#entry").addClass("visuallyhidden");$("#failure").removeClass("visuallyhidden")})},function(n){if(typeof define=="function"&&define.amd)define(n);else if(typeof exports=="object")module.exports=n();else{var i=window.Cookies,t=window.Cookies=n();t.noConflict=function(){return window.Cookies=i,t}}}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,s;if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(s=new Date,s.setMilliseconds(s.getMilliseconds()+f.expires*864e5),f.expires=s);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=encodeURIComponent(String(u)),u=u.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],a=/(%[0-9A-Z]{2})+/g,h=0;h<l.length;h++){var v=l[h].split("="),c=v[0].replace(a,decodeURIComponent),e=v.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(e=i&&i(e,c)||e.replace(a,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(y){}if(t===c){o=e;break}t||(o[c]=e)}catch(y){}}return o}return r.get=r.set=r,r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t()});emailPopup=function(){var t,i,n={exit:!1,thankYouMsg:""},r=function(){i.foundation("reveal","open")},f=function(f){var e,o,s;f=f||{};n.exit=f.exit||n.exit;n.thankYouMsg=f.thankYouMsg||n.thankYouMsg;i=$("#cwf-modal-email-popup");t=$("#email");$("#popup-submit").on("click",function(){u()});t.on("keypress",function(){event.which==13&&u()});if(Cookies.get("email_opt_out")!="true")if(n.exit)if(window.matchMedia("(max-width: 768px)").matches){Foundation.libs.reveal.settings.closeOnBackgroundClick=!1;e=new DialogTrigger(function(){var n=new DialogTrigger(r,{trigger:"scrollUp",percentUp:10})},{trigger:"scrollDown",percentDown:50});$(document).on("opened.fndtn.reveal","#cwf-modal-email-popup",function(){$(this).addClass("mobile-scroll")})}else o=new DialogTrigger(r,{trigger:"exitIntent"});else s=new DialogTrigger(r,{trigger:"timeout",timeout:5e3});$("#opt-out").on("click",function(){i.foundation("reveal","close");Cookies.set("email_opt_out","true")})},u=function(){var i=$("#email, #popup-submit");i.attr("disabled",!0);$.ajax({url:"/api/sitecore/popups/emailpopup",type:"POST",data:{email:t.val()},context:this,success:function(t){t.length==0?(Cookies.set("email_opt_out","true"),$("#cwf-popup-form, #opt-out").remove(),$("#cwf-popup-message").html(n.thankYouMsg),$("#cwf-popup-content").append('<a class="close-reveal-modal" aria-label="Close">&#215;<\/a>')):alert(t);i.attr("disabled",!1)},error:function(n){console.log("error: "+n)}})};return{init:f}}()