(function(){ geolocation = {}; geolocation.requestGeo=function(c){geolocation.cdn3Requested=+new Date;var b=document.head||document.getElementsByTagName("head")[0]||document.documentElement,a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=c;b.insertBefore(a,b.firstChild)}; var optly={nativity:{}};optly.nativity.getNativeGetElementsByClassName=function(){var a=document.getElementsByClassName;if(!optly.nativity.isNativeFunction(a))var a=(window.optimizely||{}).getElementsByClassName,b=(window.optly||{}).getElementsByClassName,a=optly.nativity.isNativeFunction(a)?a:optly.nativity.isNativeFunction(b)?b:null;return a};optly.nativity.isNativeFunction=function(a){return a&&-1!==String(a).indexOf("[native code]")};optly.Cleanse={};optly.Cleanse.each=function(a,b,d){var h=!!Object.prototype.__lookupGetter__,e=!!Object.prototype.__lookupSetter__,c;for(c in a)if(a.hasOwnProperty(c)){var f=h?a.__lookupGetter__(c):null,g=e?a.__lookupSetter__(c):null;try{b.call(d,c,!f?a[c]:null,f,g)}catch(i){}}}; optly.Cleanse.finish=function(){if(optly.Cleanse.running){optly.Cleanse.running=!1;optly.Cleanse.each(optly.Cleanse.types,function(a,d){Object.prototype.__defineGetter__&&optly.Cleanse.each(optly.Cleanse.getters[a],function(c,b){d.prototype.__defineGetter__(c,b);optly.Cleanse.log("restored getter",a,c)});Object.prototype.__defineSetter__&&optly.Cleanse.each(optly.Cleanse.setters[a],function(c,b){d.prototype.__defineSetter__(c,b);optly.Cleanse.log("restored setter",a,c)});optly.Cleanse.each(optly.Cleanse.properties[a], function(b,f){d.prototype[b]=f;optly.Cleanse.log("restored property",a,b)})});optly.Cleanse.unfixGetElementsByClassName();optly.Cleanse.log("finish");var a=window.console;if((-1!==window.location.hash.indexOf("optimizely_log=true")||-1!==window.location.search.indexOf("optimizely_log=true"))&&a&&a.log)for(var b=optly.Cleanse.logs,d=0;dc)break;a.currentTarget=e.elem;a.data=e.handleObj.data;a.handleObj=e.handleObj;l=e.handleObj.origHandler.apply(e.elem,arguments);if(!1===l||a.isPropagationStopped())if(c=e.level,!1===l&&(b=!1),a.isImmediatePropagationStopped())break}return b}}function P(a,b){return(a&&"*"!==a?a+".":"")+b.replace(nb,"`").replace(ob,"&")}function Ba(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a, function(a,g){return!!b.call(a,g,a)===c});if(b.nodeType)return d.grep(a,function(a){return a===b===c});if("string"===typeof b){var g=d.grep(a,function(a){return 1===a.nodeType});if(pb.test(b))return d.filter(b,g,!c);b=d.filter(b,g)}return d.grep(a,function(a){return 0<=d.inArray(a,b)===c})}function Ca(a,b){if(1===b.nodeType&&d.hasData(a)){var c=d.expando,g=d.data(a),e=d.data(b,g);if(g=g[c]){var f=g.events,e=e[c]=d.extend({},g);if(f){delete e.handle;e.events={};for(var h in f){c=0;for(g=f[h].length;c< g;c++)d.event.add(b,h+(f[h][c].namespace?".":"")+f[h][c].namespace,f[h][c],f[h][c].data)}}}}}function Da(a,b){var c;if(1===b.nodeType){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);c=b.nodeName.toLowerCase();if("object"===c)b.outerHTML=a.outerHTML;else if("input"===c&&("checkbox"===a.type||"radio"===a.type)){if(a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value)b.value=a.value}else if("option"===c)b.selected=a.defaultSelected;else if("input"===c|| "textarea"===c)b.defaultValue=a.defaultValue;b.removeAttribute(d.expando)}}function Q(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function Ea(a){if("checkbox"===a.type||"radio"===a.type)a.defaultChecked=a.checked}function Fa(a){d.nodeName(a,"input")?Ea(a):"getElementsByTagName"in a&&d.grep(a.getElementsByTagName("input"),Ea)}function qb(a,b){b.src?d.ajax({url:b.src,async:!1,dataType:"script"}):d.globalEval((b.text||b.textContent|| b.innerHTML||"").replace(rb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function Ga(a,b,c){var g="width"===b?a.offsetWidth:a.offsetHeight,e="width"===b?sb:tb;if(0g||null==g)g=a.style[b]||0;g=parseFloat(g)||0;c&&d.each(e,function(){g+=parseFloat(d.css(a,"padding"+this))||0;"padding"!== c&&(g+=parseFloat(d.css(a,"border"+this+"Width"))||0);"margin"===c&&(g+=parseFloat(d.css(a,c+this))||0)});return g+"px"}var l=r.document,d,Ha=function(){if(!k.isReady){try{l.documentElement.doScroll("left")}catch(a){setTimeout(Ha,1);return}k.ready()}},k=function(a,b){return new k.fn.init(a,b,Ia)},ub=r.jQuery,vb=r.$,Ia,wb=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Ja=/\S/,Ka=/^\s+/,La=/\s+$/,xb=/\d/,yb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,zb=/^[\],:{}\s]*$/,Ab=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,Bb=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, Cb=/(?:^|:|,)(?:\s*\[)+/g,Db=/(webkit)[ \/]([\w.]+)/,Eb=/(opera)(?:.*version)?[ \/]([\w.]+)/,Fb=/(msie) ([\w.]+)/,Gb=/(mozilla)(?:.*? rv:([\w.]+))?/,Hb=/-([a-z]|[0-9])/ig,Ib=/^-ms-/,Jb=function(a,b){return(b+"").toUpperCase()},Kb=r.navigator.userAgent,R,S,B,Lb=Object.prototype.toString,ja=Object.prototype.hasOwnProperty,ka=Array.prototype.push,I=Array.prototype.slice,Ma=String.prototype.trim,Na=Array.prototype.indexOf,Oa={};k.fn=k.prototype={constructor:k,init:function(a,b,c){var g;if(!a)return this; if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!b&&l.body)return this.context=l,this[0]=l.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((g="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:wb.exec(a))&&(g[1]||!b)){if(g[1])return c=(b=b instanceof k?b[0]:b)?b.ownerDocument||b:l,(a=yb.exec(a))?k.isPlainObject(b)?(a=[l.createElement(a[1])],k.fn.attr.call(a,b,!0)):a=[c.createElement(a[1])]:(a=k.buildFragment([g[1]],[c]),a=(a.cacheable? k.clone(a.fragment):a.fragment).childNodes),k.merge(this,a);if((b=l.getElementById(g[2]))&&b.parentNode){if(b.id!==g[2])return c.find(a);this.length=1;this[0]=b}this.context=l;this.selector=a;return this}return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a)}if(k.isFunction(a))return c.ready(a);a.selector!==m&&(this.selector=a.selector,this.context=a.context);return k.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return I.call(this, 0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var g=this.constructor();k.isArray(a)?ka.apply(g,a):k.merge(g,a);g.prevObject=this;g.context=this.context;"find"===b?g.selector=this.selector+(this.selector?" ":"")+c:b&&(g.selector=this.selector+"."+b+"("+c+")");return g},each:function(a,b){return k.each(this,a,b)},ready:function(a){k.bindReady();S.done(a);return this},eq:function(a){return-1===a?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)}, last:function(){return this.eq(-1)},slice:function(){return this.pushStack(I.apply(this,arguments),"slice",I.call(arguments).join(","))},map:function(a){return this.pushStack(k.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:ka,sort:[].sort,splice:[].splice};k.fn.init.prototype=k.fn;k.extend=k.fn.extend=function(){var a,b,c,g,d,f=arguments[0]||{},h=1,i=arguments.length,j=!1;"boolean"===typeof f&&(j=f,f=arguments[1]||{},h=2);"object"!== typeof f&&!k.isFunction(f)&&(f={});i===h&&(f=this,--h);for(;ha.indexOf("compatible")&&Gb.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b,d){return new a.fn.init(b,d)}k.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(c,d){d&&(d instanceof k&&!(d instanceof a))&&(d=a(d));return k.fn.init.call(this, c,d,b)};a.fn.init.prototype=a.fn;var b=a(l);return a},browser:{}});k.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){Oa["[object "+b+"]"]=b.toLowerCase()});R=k.uaMatch(Kb);R.browser&&(k.browser[R.browser]=!0,k.browser.version=R.version);k.browser.webkit&&(k.browser.safari=!0);Ja.test("\u00a0")&&(Ka=/^[\s\xA0]+/,La=/[\s\xA0]+$/);Ia=k(l);l.addEventListener?B=function(){l.removeEventListener("DOMContentLoaded",B,false);k.ready()}:l.attachEvent&&(B=function(){if(l.readyState=== "complete"){l.detachEvent("onreadystatechange",B);k.ready()}});d=k;var la="done fail isResolved isRejected promise then always pipe".split(" "),Pa=[].slice;d.extend({_Deferred:function(){var a=[],b,c,g,e={done:function(){if(!g){var c=arguments,h,i,j,k,m;if(b){m=b;b=0}h=0;for(i=c.length;h 1?Pa.call(arguments,0):b;--f||h.resolveWith(h,Pa.call(c,0))}}var c=arguments,g=0,e=c.length,f=e,h=e<=1&&a&&d.isFunction(a.promise)?a:d.Deferred();if(e>1){for(;g
a"; na=o.getElementsByTagName("*");C=o.getElementsByTagName("a")[0];if(!na||!na.length||!C)ma={};else{T=l.createElement("select");U=T.appendChild(l.createElement("option"));u=o.getElementsByTagName("input")[0];s={leadingWhitespace:3===o.firstChild.nodeType,tbody:!o.getElementsByTagName("tbody").length,htmlSerialize:!!o.getElementsByTagName("link").length,style:/top/.test(C.getAttribute("style")),hrefNormalized:"/a"===C.getAttribute("href"),opacity:/^0.55$/.test(C.style.opacity),cssFloat:!!C.style.cssFloat, checkOn:"on"===u.value,optSelected:U.selected,getSetAttribute:"t"!==o.className,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};u.checked=!0;s.noCloneChecked=u.cloneNode(!0).checked;T.disabled=!0;s.optDisabled=!U.disabled;try{delete o.test}catch(jc){s.deleteExpando=!1}!o.addEventListener&&(o.attachEvent&&o.fireEvent)&&(o.attachEvent("onclick",function(){s.noCloneEvent=false}),o.cloneNode(!0).fireEvent("onclick")); u=l.createElement("input");u.value="t";u.setAttribute("type","radio");s.radioValue="t"===u.value;u.setAttribute("checked","checked");o.appendChild(u);V=l.createDocumentFragment();V.appendChild(o.firstChild);s.checkClone=V.cloneNode(!0).cloneNode(!0).lastChild.checked;o.innerHTML="";o.style.width=o.style.paddingLeft="1px";J=l.getElementsByTagName("body")[0];x=l.createElement(J?"div":"body");X={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};J&&d.extend(X,{position:"absolute", left:"-1000px",top:"-1000px"});for(E in X)x.style[E]=X[E];x.appendChild(o);W=J||Nb;W.insertBefore(x,W.firstChild);s.appendChecked=u.checked;s.boxModel=2===o.offsetWidth;"zoom"in o.style&&(o.style.display="inline",o.style.zoom=1,s.inlineBlockNeedsLayout=2===o.offsetWidth,o.style.display="",o.innerHTML="
",s.shrinkWrapBlocks=2!==o.offsetWidth);o.innerHTML="
t
";K=o.getElementsByTagName("td"); F=0===K[0].offsetHeight;K[0].style.display="";K[1].style.display="none";s.reliableHiddenOffsets=F&&0===K[0].offsetHeight;o.innerHTML="";l.defaultView&&l.defaultView.getComputedStyle&&(D=l.createElement("div"),D.style.width="0",D.style.marginRight="0",o.appendChild(D),s.reliableMarginRight=0===(parseInt((l.defaultView.getComputedStyle(D,null)||{marginRight:0}).marginRight,10)||0));x.innerHTML="";W.removeChild(x);if(o.attachEvent)for(E in{submit:1,change:1,focusin:1})Y="on"+E,F=Y in o,F||(o.setAttribute(Y, "return;"),F="function"===typeof o[Y]),s[E+"Bubbles"]=F;x=V=T=U=J=D=o=u=null;ma=s}Mb.support=ma;d.boxModel=d.support.boxModel;var lb=/^(?:\{.*\}|\[.*\])$/,kb=/([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!ha(a)},data:function(a,b,c,g){if(d.acceptData(a)){var e=d.expando,f=typeof b==="string", h=a.nodeType,i=h?d.cache:a,j=h?a[d.expando]:a[d.expando]&&d.expando;if(j&&(!g||!j||!i[j]||i[j][e])||!(f&&c===m)){if(!j)h?a[d.expando]=j=++d.uuid:j=d.expando;if(!i[j]){i[j]={};if(!h)i[j].toJSON=d.noop}if(typeof b==="object"||typeof b==="function")g?i[j][e]=d.extend(i[j][e],b):i[j]=d.extend(i[j],b);a=i[j];if(g){a[e]||(a[e]={});a=a[e]}c!==m&&(a[d.camelCase(b)]=c);if(b==="events"&&!a[b])return a[e]&&a[e].events;if(f){c=a[b];c==null&&(c=a[d.camelCase(b)])}else c=a;return c}}},removeData:function(a,b,c){if(d.acceptData(a)){var g, e=d.expando,f=a.nodeType,h=f?d.cache:a,i=f?a[d.expando]:d.expando;if(h[i]){if(b)if(g=c?h[i][e]:h[i]){g[b]||(b=d.camelCase(b));delete g[b];if(!ha(g))return}if(c){delete h[i][e];if(!ha(h[i]))return}b=h[i][e];d.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null;if(b){h[i]={};if(!f)h[i].toJSON=d.noop;h[i][e]=b}else f&&(d.support.deleteExpando?delete a[d.expando]:a.removeAttribute?a.removeAttribute(d.expando):a[d.expando]=null)}}},_data:function(a,b,c){return d.data(a,b,c,true)},acceptData:function(a){if(a.nodeName){var b= d.noData[a.nodeName.toLowerCase()];if(b)return!(b===true||a.getAttribute("classid")!==b)}return true}});d.fn.extend({data:function(a,b){var c=null;if(typeof a==="undefined"){if(this.length){c=d.data(this[0]);if(this[0].nodeType===1)for(var g=this[0].attributes,e,f=0,h=g.length;f-1)return true;return false},val:function(a){var b,c,g=this[0];if(!arguments.length){if(g){if((b=d.valHooks[g.nodeName.toLowerCase()]||d.valHooks[g.type])&&"get"in b&&(c=b.get(g,"value"))!==m)return c;c=g.value;return typeof c=== "string"?c.replace(Ob,""):c==null?"":c}return m}var e=d.isFunction(a);return this.each(function(c){var g=d(this);if(this.nodeType===1){c=e?a.call(this,c,g.val()):a;c==null?c="":typeof c==="number"?c=c+"":d.isArray(c)&&(c=d.map(c,function(a){return a==null?"":a+""}));b=d.valHooks[this.nodeName.toLowerCase()]||d.valHooks[this.type];if(!b||!("set"in b)||b.set(this,c,"value")===m)this.value=c}})}});d.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}}, select:{get:function(a){var b,c=a.selectedIndex,g=[],e=a.options,a=a.type==="select-one";if(c<0)return null;for(var f=a?c:0,h=a?c+1:e.length;f=0});if(!c.length)a.selectedIndex=-1;return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,b,c,g){var e=a.nodeType;if(!a||e===3||e===8||e===2)return m;if(g&&b in d.attrFn)return d(a)[b](c);if(!("getAttribute"in a))return d.prop(a,b,c);var f,h;if(g=e!==1||!d.isXMLDoc(a)){b=d.attrFix[b]||b;(h=d.attrHooks[b])||(Ra.test(b)?h=Sa:y&&(h=y))}if(c!==m){if(c===null){d.removeAttr(a,b);return m}if(h&&"set"in h&&g&&(f=h.set(a,c, b))!==m)return f;a.setAttribute(b,""+c);return c}if(h&&"get"in h&&g&&(f=h.get(a,b))!==null)return f;f=a.getAttribute(b);return f===null?m:f},removeAttr:function(a,b){var c;if(a.nodeType===1){b=d.attrFix[b]||b;d.attr(a,b,"");a.removeAttribute(b);if(Ra.test(b)&&(c=d.propFix[b]||b)in a)a[c]=false}},attrHooks:{type:{set:function(a,b){if(Pb.test(a.nodeName)&&a.parentNode)d.error("type property can't be changed");else if(!d.support.radioValue&&b==="radio"&&d.nodeName(a,"input")){var c=a.value;a.setAttribute("type", b);if(c)a.value=c;return b}}},value:{get:function(a,b){return y&&d.nodeName(a,"button")?y.get(a,b):b in a?a.value:null},set:function(a,b,c){if(y&&d.nodeName(a,"button"))return y.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,b,c){var g= a.nodeType;if(!a||g===3||g===8||g===2)return m;var e,f;if(g!==1||!d.isXMLDoc(a)){b=d.propFix[b]||b;f=d.propHooks[b]}return c!==m?f&&"set"in f&&(e=f.set(a,c,b))!==m?e:a[b]=c:f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Qb.test(a.nodeName)||Rb.test(a.nodeName)&&a.href?0:m}}}});d.attrHooks.tabIndex=d.propHooks.tabIndex;Sa={get:function(a,b){var c;return d.prop(a,b)===true||(c=a.getAttributeNode(b))&& c.nodeValue!==false?b.toLowerCase():m},set:function(a,b,c){if(b===false)d.removeAttr(a,c);else{b=d.propFix[c]||c;b in a&&(a[b]=true);a.setAttribute(c,c.toLowerCase())}return c}};d.support.getSetAttribute||(y=d.valHooks.button={get:function(a,b){var c;return(c=a.getAttributeNode(b))&&c.nodeValue!==""?c.nodeValue:m},set:function(a,b,c){var d=a.getAttributeNode(c);if(!d){d=l.createAttribute(c);a.setAttributeNode(d)}return d.nodeValue=b+""}},d.each(["width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b], {set:function(a,d){if(d===""){a.setAttribute(b,"auto");return d}}})}));d.support.hrefNormalized||d.each(["href","src","width","height"],function(a,b){d.attrHooks[b]=d.extend(d.attrHooks[b],{get:function(a){a=a.getAttribute(b,2);return a===null?m:a}})});d.support.style||(d.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||m},set:function(a,b){return a.style.cssText=""+b}});d.support.optSelected||(d.propHooks.selected=d.extend(d.propHooks.selected,{get:function(a){if(a=a.parentNode){a.selectedIndex; a.parentNode&&a.parentNode.selectedIndex}return null}}));d.support.checkOn||d.each(["radio","checkbox"],function(){d.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});d.each(["radio","checkbox"],function(){d.valHooks[this]=d.extend(d.valHooks[this],{set:function(a,b){if(d.isArray(b))return a.checked=d.inArray(d(a).val(),b)>=0}})});var ia=/\.(.*)$/,pa=/^(?:textarea|input|select)$/i,nb=/\./g,ob=/ /g,Sb=/[^\w\s.|`]/g,Tb=function(a){return a.replace(Sb,"\\$&")};d.event= {add:function(a,b,c,g){if(!(a.nodeType===3||a.nodeType===8)){if(c===false)c=w;else if(!c)return;var e,f;if(c.handler){e=c;c=e.handler}if(!c.guid)c.guid=d.guid++;if(f=d._data(a)){var h=f.events,i=f.handle;if(!h)f.events=h={};if(!i)f.handle=i=function(a){return typeof d!=="undefined"&&(!a||d.event.triggered!==a.type)?d.event.handle.apply(i.elem,arguments):m};i.elem=a;for(var b=b.split(" "),j,k=0,l;j=b[k++];){f=e?d.extend({},e):{handler:c,data:g};if(j.indexOf(".")>-1){l=j.split(".");j=l.shift();f.namespace= l.slice(0).sort().join(".")}else{l=[];f.namespace=""}f.type=j;if(!f.guid)f.guid=c.guid;var n=h[j],q=d.event.special[j]||{};if(!n){n=h[j]=[];if(!q.setup||q.setup.call(a,g,l,i)===false)a.addEventListener?a.addEventListener(j,i,false):a.attachEvent&&a.attachEvent("on"+j,i)}if(q.add){q.add.call(a,f);if(!f.handler.guid)f.handler.guid=c.guid}n.push(f);d.event.global[j]=true}a=null}}},global:{},remove:function(a,b,c,g){if(!(a.nodeType===3||a.nodeType===8)){c===false&&(c=w);var e,f,h=0,i,j,k,l,n,q,p=d.hasData(a)&& d._data(a),o=p&&p.events;if(p&&o){if(b&&b.type){c=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in o)d.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[h++];){l=e;i=e.indexOf(".")<0;j=[];if(!i){j=e.split(".");e=j.shift();k=RegExp("(^|\\.)"+d.map(j.slice(0).sort(),Tb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(n=o[e])if(c){l=d.event.special[e]||{};for(f=g||0;f= 0){e=e.slice(0,-1);h=true}if(e.indexOf(".")>=0){f=e.split(".");e=f.shift();f.sort()}if(c&&!d.event.customEvent[e]||d.event.global[e]){a=typeof a==="object"?a[d.expando]?a:new d.Event(e,a):new d.Event(e);a.type=e;a.exclusive=h;a.namespace=f.join(".");a.namespace_re=RegExp("(^|\\.)"+f.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!c){a.preventDefault();a.stopPropagation()}if(c){if(!(c.nodeType===3||c.nodeType===8)){a.result=m;a.target=c;b=b!=null?d.makeArray(b):[];b.unshift(a);f=c;g=e.indexOf(":")<0?"on"+ e:"";do{h=d._data(f,"handle");a.currentTarget=f;h&&h.apply(f,b);if(g&&d.acceptData(f)&&f[g]&&f[g].apply(f,b)===false){a.result=false;a.preventDefault()}f=f.parentNode||f.ownerDocument||f===a.target.ownerDocument&&r}while(f&&!a.isPropagationStopped());if(!a.isDefaultPrevented()){var i,f=d.event.special[e]||{};if((!f._default||f._default.call(c.ownerDocument,a)===false)&&!(e==="click"&&d.nodeName(c,"a"))&&d.acceptData(c)){try{if(g&&c[e]){(i=c[g])&&(c[g]=null);d.event.triggered=e;c[e]()}}catch(j){}i&& (c[g]=i);d.event.triggered=m}}return a.result}}else d.each(d.cache,function(){var c=this[d.expando];c&&(c.events&&c.events[e])&&d.event.trigger(a,b,c.handle.elem)})}},handle:function(a){var a=d.event.fix(a||r.event),b=((d._data(this,"events")||{})[a.type]||[]).slice(0),c=!a.exclusive&&!a.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=a;a.currentTarget=this;for(var e=0,f=b.length;e-1?d.map(a.options,function(a){return a.selected}).join("-"):"";else if(d.nodeName(a,"select"))c=a.selectedIndex;return c},Z=function(a,b){var c=a.target,g,e;if(pa.test(c.nodeName)&& !c.readOnly){g=d._data(c,"_change_data");e=Va(c);(a.type!=="focusout"||c.type!=="radio")&&d._data(c,"_change_data",e);if(!(g===m||e===g))if(g!=null||e){a.type="change";a.liveFired=m;d.event.trigger(a,b,c)}}};d.event.special.change={filters:{focusout:Z,beforedeactivate:Z,click:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||d.nodeName(b,"select"))&&Z.call(this,a)},keydown:function(a){var b=a.target,c=d.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!d.nodeName(b, "textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&Z.call(this,a)},beforeactivate:function(a){a=a.target;d._data(a,"_change_data",Va(a))}},setup:function(){if(this.type==="file")return false;for(var a in L)d.event.add(this,a+".specialChange",L[a]);return pa.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return pa.test(this.nodeName)}};L=d.event.special.change.filters;L.focus=L.beforeactivate}d.support.focusinBubbles||d.each({focus:"focusin", blur:"focusout"},function(a,b){function c(a){var c=d.event.fix(a);c.type=b;c.originalEvent={};d.event.trigger(c,null,c.target);c.isDefaultPrevented()&&a.preventDefault()}var g=0;d.event.special[b]={setup:function(){g++===0&&l.addEventListener(a,c,true)},teardown:function(){--g===0&&l.removeEventListener(a,c,true)}}});d.each(["bind","one"],function(a,b){d.fn[b]=function(a,g,e){var f;if(typeof a==="object"){for(var h in a)this[b](h,g,a[h],e);return this}if(arguments.length===2||g===false){e=g;g=m}if(b=== "one"){f=function(a){d(this).unbind(a,f);return e.apply(this,arguments)};f.guid=e.guid||d.guid++}else f=e;if(a==="unload"&&b!=="one")this.one(a,g,e);else{h=0;for(var i=this.length;h0?this.bind(b,a,d):this.trigger(b)};d.attrFn&&(d.attrFn[b]=true)});var Wa=function(a,b,c,d,e,f){for(var e=0,h=d.length;e0){j=i;break}}i=i[a]}d[e]=j}}},ra=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,sa=0,Ya=Object.prototype.toString,aa=!1,Za=!0,G=/\\/g,ba=/\W/;[0,0].sort(function(){Za=false;return 0});var n=function(a,b,c,d){var c=c||[],e=b=b||l;if(b.nodeType!==1&&b.nodeType!==9)return[]; if(!a||typeof a!=="string")return c;var f,h,i,j,k,m=true,o=n.isXML(b),q=[],r=a;do{ra.exec("");if(f=ra.exec(r)){r=f[3];q.push(f[1]);if(f[2]){j=f[3];break}}}while(f);if(q.length>1&&Ub.exec(a))if(q.length===2&&p.relative[q[0]])h=$a(q[0]+q[1],b);else for(h=p.relative[q[0]]?[b]:n(q.shift(),b);q.length;){a=q.shift();p.relative[a]&&(a=a+q.shift());h=$a(a,h)}else{if(!d&&q.length>1&&b.nodeType===9&&!o&&p.match.ID.test(q[0])&&!p.match.ID.test(q[q.length-1])){f=n.find(q.shift(),b,o);b=f.expr?n.filter(f.expr, f.set)[0]:f.set[0]}if(b){f=d?{expr:q.pop(),set:v(d)}:n.find(q.pop(),q.length===1&&(q[0]==="~"||q[0]==="+")&&b.parentNode?b.parentNode:b,o);h=f.expr?n.filter(f.expr,f.set):f.set;for(q.length>0?i=v(h):m=false;q.length;){f=k=q.pop();p.relative[k]?f=q.pop():k="";f==null&&(f=b);p.relative[k](i,f,o)}}else i=[]}i||(i=h);i||n.error(k||a);if(Ya.call(i)==="[object Array]")if(m)if(b&&b.nodeType===1)for(a=0;i[a]!=null;a++)i[a]&&(i[a]===true||i[a].nodeType===1&&n.contains(b,i[a]))&&c.push(h[a]);else for(a=0;i[a]!= null;a++)i[a]&&i[a].nodeType===1&&c.push(h[a]);else c.push.apply(c,i);else v(i,c);if(j){n(j,e,c,d);n.uniqueSort(c)}return c};n.uniqueSort=function(a){if(ca){aa=Za;a.sort(ca);if(aa)for(var b=1;b0};n.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=p.order.length;e":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&& !ba.test(b))for(b=b.toLowerCase();e=0)?c||d.push(h):c&&(b[f]=false));return false},ID:function(a){return a[1].replace(G,"")},TAG:function(a){return a[1].replace(G,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||n.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&n.error(a[0]);a[0]=sa++;return a},ATTR:function(a, b,c,d,e,f){b=a[1]=a[1].replace(G,"");!f&&p.attrMap[b]&&(a[1]=p.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(G,"");a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,c,d,e){if(a[1]==="not")if((ra.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=n(a[3],null,null,b);else{a=n.filter(a[3],b,c,1^e);c||d.push.apply(d,a);return false}else if(p.match.POS.test(a[0])||p.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled=== false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!n(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.getAttribute("type")},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"=== a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2=== 0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=p.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){b=b[3];c=0;for(d=b.length;c=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a, b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=p.attrHandle[c]?p.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==false:e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+ 1)===f+"-":false},POS:function(a,b,c,d){var e=p.setFilters[b[2]];if(e)return e(a,c,b,d)}}},Ub=p.match.POS,Vb=function(a,b){return"\\"+(b-0+1)},M;for(M in p.match)p.match[M]=RegExp(p.match[M].source+/(?![^\[]*\])(?![^\(]*\))/.source),p.leftMatch[M]=RegExp(/(^(?:.|\r|\n)*?)/.source+p.match[M].source.replace(/\\(\d+)/g,Vb));var v=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(l.documentElement.childNodes,0)[0].nodeType}catch(kc){v= function(a,b){var c=0,d=b||[];if(Ya.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var e=a.length;c";ea.insertBefore(da,ea.firstChild);l.getElementById(ab)&&(p.find.ID=function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:m:[]},p.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&& a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b});ea.removeChild(da);var ea=da=null,z=l.createElement("div");z.appendChild(l.createComment(""));0

";if(!(fa.querySelectorAll&&0===fa.querySelectorAll(".TEST").length)){var n=function(a,b,c,d){b=b||l;if(!d&&!n.isXML(b)){var e=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(e&&(b.nodeType===1||b.nodeType===9)){if(e[1])return v(b.getElementsByTagName(a),c);if(e[2]&&p.find.CLASS&&b.getElementsByClassName)return v(b.getElementsByClassName(e[2]),c)}if(b.nodeType=== 9){if(a==="body"&&b.body)return v([b.body],c);if(e&&e[3]){var f=b.getElementById(e[3]);if(f&&f.parentNode){if(f.id===e[3])return v([f],c)}else return v([],c)}try{return v(b.querySelectorAll(a),c)}catch(h){}}else if(b.nodeType===1&&b.nodeName.toLowerCase()!=="object"){var e=b,i=(f=b.getAttribute("id"))||"__sizzle__",j=b.parentNode,k=/^\s*[+~]/.test(a);f?i=i.replace(/'/g,"\\$&"):b.setAttribute("id",i);if(k&&j)b=b.parentNode;try{if(!k||j)return v(b.querySelectorAll("[id='"+i+"'] "+a),c)}catch(m){}finally{f|| e.removeAttribute("id")}}}return ta(a,b,c,d)},ua;for(ua in ta)n[ua]=ta[ua];fa=null}}var ga=l.documentElement,va=ga.matchesSelector||ga.mozMatchesSelector||ga.webkitMatchesSelector||ga.msMatchesSelector,bb=!1;try{va.call(l.documentElement,"[test!='']:sizzle")}catch(lc){bb=!0}va&&(n.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(bb||!p.match.PSEUDO.test(b)&&!/!=/.test(b))return va.call(a,b)}catch(c){}return n(b,null,null,[a]).length>0});var H=l.createElement("div"); H.innerHTML="
";H.getElementsByClassName&&0!==H.getElementsByClassName("e").length&&(H.lastChild.className="e",1!==H.getElementsByClassName("e").length&&(p.order.splice(1,0,"CLASS"),p.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!c)return b.getElementsByClassName(a[1])},H=null));n.contains=l.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):true)}:l.documentElement.compareDocumentPosition? function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return false};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false};var $a=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=p.match.PSEUDO.exec(a);){e=e+c[0];a=a.replace(p.match.PSEUDO,"")}a=p.relative[a]?a+"*":a;c=0;for(var h=f.length;c0)for(h=f;h0:this.filter(a).length>0)},closest:function(a,b){var c=[],g,e,f=this[0];if(d.isArray(a)){var h,i={},j=1;if(f&& a.length){g=0;for(e=a.length;g-1:d(f).is(g))&&c.push({selector:h,elem:f,level:j})}f=f.parentNode;j++}}return c}h=cb.test(a)||typeof a!=="string"?d(a,b||this.context):0;g=0;for(e=this.length;g-1:d.find.matchesSelector(f,a)){c.push(f);break}else{f=f.parentNode;if(!f||!f.ownerDocument||f===b||f.nodeType===11)break}c=c.length>1? d.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){return!a?this[0]&&this[0].parentNode?this.prevAll().length:-1:typeof a==="string"?d.inArray(this[0],d(a)):d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a==="string"?d(a,b):d.makeArray(a&&a.nodeType?[a]:a),g=d.merge(this.get(),c);return this.pushStack(!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11||!g[0]||!g[0].parentNode||g[0].parentNode.nodeType===11?g:d.unique(g))},andSelf:function(){return this.add(this.prevObject)}}); d.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return d.dir(a,"parentNode")},parentsUntil:function(a,b,c){return d.dir(a,"parentNode",c)},next:function(a){return d.nth(a,2,"nextSibling")},prev:function(a){return d.nth(a,2,"previousSibling")},nextAll:function(a){return d.dir(a,"nextSibling")},prevAll:function(a){return d.dir(a,"previousSibling")},nextUntil:function(a,b,c){return d.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return d.dir(a,"previousSibling", c)},siblings:function(a){return d.sibling(a.parentNode.firstChild,a)},children:function(a){return d.sibling(a.firstChild)},contents:function(a){return d.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:d.makeArray(a.childNodes)}},function(a,b){d.fn[a]=function(c,g){var e=d.map(this,b,c),f=Zb.call(arguments);Wb.test(a)||(g=c);g&&typeof g==="string"&&(e=d.filter(g,e));e=this.length>1&&!$b[a]?d.unique(e):e;if((this.length>1||Yb.test(g))&&Xb.test(a))e=e.reverse();return this.pushStack(e, a,f.join(","))}});d.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?d.find.matchesSelector(b[0],a)?[b[0]]:[]:d.find.matches(a,b)},dir:function(a,b,c){for(var g=[],a=a[b];a&&a.nodeType!==9&&(c===m||a.nodeType!==1||!d(a).is(c));){a.nodeType===1&&g.push(a);a=a[b]}return g},nth:function(a,b,c){for(var b=b||1,d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var ac=/ jQuery\d+="(?:\d+|null)"/g, wa=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,eb=/<([\w:]+)/,bc=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"", "
"],area:[1,"",""],_default:[0,"",""]};t.optgroup=t.option;t.tbody=t.tfoot=t.colgroup=t.caption=t.thead;t.th=t.td;d.support.htmlSerialize||(t._default=[1,"div
","
"]);d.fn.extend({text:function(a){return d.isFunction(a)?this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))}):typeof a!=="object"&&a!==m?this.empty().append((this[0]&&this[0].ownerDocument||l).createTextNode(a)):d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this, b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return d.isFunction(a)?this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){d(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this, "body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a, "before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,g;(g=this[c])!=null;c++)if(!a||d.filter(a,[g]).length){if(!b&&g.nodeType===1){d.cleanData(g.getElementsByTagName("*"));d.cleanData([g])}g.parentNode&&g.parentNode.removeChild(g)}return this}, empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===m)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ac,""):null;if(typeof a==="string"&&!fb.test(a)&&(d.support.leadingWhitespace||!wa.test(a))&&!t[(eb.exec(a)||["",""])[1].toLowerCase()]){a= a.replace(db,"<$1>");try{for(var b=0,c=this.length;b1&&e0?this.clone(true):this).get();d(c[e])[b](h);g=g.concat(h)}return this.pushStack(g,a,c.selector)}});d.extend({clone:function(a,b,c){var g=a.cloneNode(true),e,f,h;if((!d.support.noCloneEvent|| !d.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!d.isXMLDoc(a)){Da(a,g);e=Q(a);f=Q(g);for(h=0;e[h];++h)f[h]&&Da(e[h],f[h])}if(b){Ca(a,g);if(c){e=Q(a);f=Q(g);for(h=0;e[h];++h)Ca(e[h],f[h])}}return g},clean:function(a,b,c,g){b=b||l;typeof b.createElement==="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||l);for(var e=[],f,h=0,i;(i=a[h])!=null;h++){typeof i==="number"&&(i=i+"");if(i){if(typeof i==="string")if(cc.test(i)){i=i.replace(db,"<$1>");f=(eb.exec(i)||["",""])[1].toLowerCase(); var j=t[f]||t._default,k=j[0],m=b.createElement("div");for(m.innerHTML=j[1]+i+j[2];k--;)m=m.lastChild;if(!d.support.tbody){k=bc.test(i);j=f==="table"&&!k?m.firstChild&&m.firstChild.childNodes:j[1]===""&&!k?m.childNodes:[];for(f=j.length-1;f>=0;--f)d.nodeName(j[f],"tbody")&&!j[f].childNodes.length&&j[f].parentNode.removeChild(j[f])}!d.support.leadingWhitespace&&wa.test(i)&&m.insertBefore(b.createTextNode(wa.exec(i)[0]),m.firstChild);i=m.childNodes}else i=b.createTextNode(i);var n;if(!d.support.appendChecked)if(i[0]&& typeof(n=i.length)==="number")for(f=0;f=0)return b+"px"}else return b}}});d.support.opacity||(d.cssHooks.opacity={get:function(a,b){return ec.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,g=a.currentStyle,e=d.isNaN(b)?"":"alpha(opacity="+b*100+")",f=g&&g.filter||c.filter||"";c.zoom=1;if(b>=1&&d.trim(f.replace(xa,""))===""){c.removeAttribute("filter");if(g&&!g.filter)return}c.filter=xa.test(f)?f.replace(xa,e):f+" "+e}});d(function(){if(!d.support.reliableMarginRight)d.cssHooks.marginRight= {get:function(a,b){var c;d.swap(a,{display:"inline-block"},function(){c=b?A(a,"margin-right","marginRight"):a.style.marginRight});return c}}});l.defaultView&&l.defaultView.getComputedStyle&&(ib=function(a,b){var c,g,b=b.replace(fc,"-$1").toLowerCase();if(!(g=a.ownerDocument.defaultView))return m;if(g=g.getComputedStyle(a,null)){c=g.getPropertyValue(b);c===""&&!d.contains(a.ownerDocument.documentElement,a)&&(c=d.style(a,b))}return c});l.documentElement.currentStyle&&(jb=function(a,b){var c,d=a.currentStyle&& a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;if(!hb.test(d)&&gc.test(d)){c=f.left;if(e)a.runtimeStyle.left=a.currentStyle.left;f.left=b==="fontSize"?"1em":d||0;d=f.pixelLeft+"px";f.left=c;if(e)a.runtimeStyle.left=e}return d===""?"auto":d});A=ib||jb;d.expr&&d.expr.filters&&(d.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!d.support.reliableHiddenOffsets&&(a.style.display||d.css(a,"display"))==="none"},d.expr.filters.visible=function(a){return!d.expr.filters.hidden(a)}); return d}(window); var optimizelyCode = function(){ var DATA={"log_host":"log.optimizely.com","goal_expressions":{"7950067711":["^sharebuttonemailclick$"],"7251761159":["^clickthroughtrending$"],"4688252941":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2057115\\/most\\-dangerous\\-sex\\-position/?"],"3161100306":["^post1$"],"3161100307":["^post30$"],"7599892507":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2941376\\/kendall\\-jenner\\-love\\-magazine\\-casting/?"],"7958114332":["^mtvnavnews6$"],"2465540129":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072465\\/paramore\\-grammys\\-aint\\-it\\-fun/?"],"2730080290":["^loadmore$"],"7649660971":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2942478\\/selena\\-gomez\\-back\\-in\\-rehab\\-mental\\-health/?"],"5467031597":["^sharelink$"],"3393810481":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256066\\/miley\\-cyrus\\-red\\-carpet\\-vmas\\-2015/?"],"7987460333":["^mtvnavshows4$"],"3400970300":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256514\\/kanye\\-for\\-president\\-tweets\\-vma/?"],"6266521662":["^ayto$"],"2459310145":["^disruptive\\_link\\_clicked$"],"2716510278":["^usability\\_grid\\-vs\\-list$"],"4938190920":["^track\\_ctr$"],"7103830092":["^smsshare$"],"6370392141":["^nextupsection11$"],"5935112271":["^recommendedsection$"],"7961381559":["^sharebuttonwhatsappclick$"],"7554156626":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2796904\\/kim\\-kardashian\\-doppleganger\\-photo/?"],"3175970904":["^post24$"],"3175970905":["^insertial7post3$"],"2801440874":["^scrolled\\_to\\_bottom\\_of\\_page$"],"5196730475":["^floatingemail$"],"539023474":["^comment\\_click$"],"3422210170":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255718\\/miley\\-cyrus\\-talks\\-hosting\\-vmas/?"],"6329741436":["^clicks\\_on\\_no\\_sign\\_in\\_language$"],"3421190271":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255829\\/miley\\-cyrus\\-chrissy\\-teigen\\-vmas/?"],"6585411711":["^nextupsection16$"],"3179910508":["^post7$"],"6587801740":["^nextupsection22$"],"3421190287":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256044\\/macklemore\\-ryan\\-lewis\\-downtown\\-vmas/?"],"6396770449":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2900215\\/kylie\\-jenner\\-puma\\-suede\\-campaign/?"],"4968331413":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2738996\\/snow\\-day\\-josh\\-peck\\-anniversary\\-nickelodeon/?"],"2407960731":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072801\\/madonna\\-2015\\-g\\\u2026mys\\-illuminati/?"],"4295921819":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2691956\\/charlie\\-puth\\-swag\\-woop\\-music\\-video/?"],"3405871265":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2253897\\/jennifer\\-lawrence\\-amy\\-schumer\\-billy\\-joel\\-piano\\-dance/?"],"6291861667":["^racket$"],"2228461733":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2014984\\/sexy\\-cop\\-photos\\-instagram/?"],"6349312166":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2896818\\/celebs\\-whove\\-seen\\-hamilton\\-broadway\\-musical/?"],"3184820394":["^post21$"],"3184820395":["^insertial7post1$"],"7693146284":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2941275\\/ashton\\-kutcher\\-laura\\-prepon\\-engagement/?"],"8023210158":["^clicknonpromoted$"],"4240619702":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2689346\\/meitupic\\-selfie\\-app/?"],"3160690879":["^post6$"],"3160690880":["^insertial2post1$"],"5133373632":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2745443\\/drake\\-and\\-josh\\-grandfathered\\-mindy\\-crenshaw\\-josh\\-peck/?"],"3400030403":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255847\\/the\\-weeknd\\-vma\\-performance/?"],"3152840906":["^post29$"],"6374070476":["^sign\\_in\\_clicks$"],"6304231633":["^braless$"],"3012530388":["^showmore$"],"2411100375":["^photo\\_\\#1a$"],"3020890332":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2186453\\/game\\-of\\-thrones\\-burning\\-questions\\-season\\-5/?"],"2885990621":["^5\\_sec\\_intervals$"],"2912430302":["mtv.com\\/shows\\/(.+?(?=/))\\/(.+?(?=/))\\/[0-9]{7}"],"3184421099":["^post18$"],"3184421100":["^insertial5post3$"],"5212750060":["^topfacebook$"],"6336301293":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2886916\\/the\\-click\\-five\\-where\\-are\\-they\\-now/?"],"5190510830":["^ao1$"],"7819604207":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2953646\\/shia\\-labeouf\\-freestyle\\-raps/?"],"7985830133":["^mtvnavshows1$"],"3421190391":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256546\\/miley\\-cyrus\\-do\\-it\\-performance\\-vmas/?"],"3195810040":["^insertial3post2$"],"5177950471":["^br2$"],"3569950985":["^nextupsection1$"],"5952160009":["^tve\\_sign\\_in$"],"3411550595":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2254498\\/tori\\-kelly\\-vmas\\-performance/?"],"6286960916":["^tyga$"],"3027960089":["^mightlikesection1$"],"7996705052":["^clickpromoted3$"],"4874840352":["^scroll100$"],"7973202213":["^storycardauthorattributionclick$"],"7973202214":["^streamofcardsadclick$"],"6589493551":["^nextupsection20$"],"6589493552":["^nextupsectionother$"],"5946540351":["^tve\\_auth\\_overlay$"],"3190661442":["^post14$"],"3190661443":["^insertial4post2$"],"2783170886":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130830\\/jennifer\\-lawre\\\u2026al\\-performance/?"],"2236553544":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2021989\\/pauly\\-d\\-nicki\\-\\\u2026\\-dating\\-rumors/?"],"7782611276":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2947936\\/kylie\\-jenner\\-fake\\-lip\\-kits/?"],"3386511694":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256381\\/demi\\-lovato\\-cool\\-for\\-the\\-summer\\-vmas/?"],"3158870352":["^teen\\_wolf\\_s5e4\\_related\\_video\\_clicks$"],"2777190737":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131122\\/rebel\\-wilson\\-movie\\-awards\\-cape/?"],"2754500947":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131054\\/john\\-green\\-mov\\\u2026\\-special\\-night/?"],"7953091640":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2956900\\/one\\-direction\\-up\\-all\\-night\\-five\\-years/?"],"7989260635":["^mtvnavmusic3$"],"7989260636":["^bodylinkclick$"],"6694460061":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2910443\\/2016\\-vma\\-nominations/?"],"2770180447":["^loadmore$"],"3350660499":["^section\\_latest\\-news$"],"4245490041":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2687778\\/30\\-rock\\-music\\-videos\\-jack\\-mcbrayer\\-mariah\\-carey\\-cameos/?"],"3271160187":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2230209\\/emma\\-watson\\-quotes/?"],"6591842687":["^nextupsection19$"],"6591842688":["^nextupsection24$"],"5124520321":["^mediaend$"],"5152027010":["^br4$"],"2426620295":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072798\\/sam\\-smith\\-best\\\u2026m\\-2015\\-grammys/?"],"2779840914":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130880\\/movie\\-awards\\-school\\-night/?"],"7990170273":["^featuredlinkclick1$"],"5106471324":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2744118\\/cockatoo\\-expletive\\-filled\\-rant/?"],"2244461296":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2016740\\/zenon\\-right\\-21st\\-century/?"],"5942311330":["^clicks\\ racket$"],"3004750246":["^moresection1$"],"6598281639":["^nextupsection15$"],"7638061482":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2942811\\/rogue\\-one\\-story\\-wars\\-story\\-trailer\\-darth\\-vader/?"],"7938822579":["(https?://)?(www\\.)?mtv\\.com\\/news\\/interactive\\/\\%pagename\\%/?"],"3037340089":["^aroundthewebsection1$"],"5288960441":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2753399\\/jody\\-steel\\-body\\-image\\-painting/?"],"2446930373":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072530\\/ariana\\-grande\\-\\\u2026\\-of\\-your\\-heart/?"],"6566722149":["^nextupsection21$"],"7984851405":["^bottomtaxonomytagclick2$"],"7984851406":["^bottomtaxonomytagclick7$"],"2780160474":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130875\\/shailene\\-woodl\\\u2026e\\-awards\\-pants/?"],"2764491230":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130977\\/charli\\-xcx\\-mov\\\u2026rds\\-red\\-carpet/?"],"3029760080":["^news\\_button$"],"3174511074":["^post27$"],"6509720039":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2900926\\/disney\\-channel\\-tv\\-movie\\-fake\\-bands/?"],"3175000554":["^post5$"],"3175000555":["^insertial1post3$"],"2754050544":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2127209\\/mtv\\-movie\\-awar\\\u2026ed\\-carpet\\-2000/?"],"3420340725":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255860\\/video\\-with\\-a\\-social\\-message\\-2015\\-vmas/?"],"6596362745":["^nextupsection18$"],"6596362746":["^nextupsection23$"],"559604226":["^social\\_box\\_clicks$"],"7558360490":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2937197\\/lion\\-king\\-reimagined\\-movie\\-disney\\-jon\\-favreau/?"],"2425780759":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072466\\/2015\\-grammys\\-e\\\u2026best\\-rap\\-album/?"],"6392060439":["^removed\\_sign\\_in\\/full\\_episode\\_name$"],"409840158":["^article\\_headline\\_clicks$"],"6599332384":["^nextupsection14$"],"2454850085":["^link\\_\\#2b$"],"7955405349":["^bottomtaxonomytagclick8$"],"2875210279":["^nav\\_element\\_watch$"],"7581966890":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2939703\\/demi\\-lovato\\-break\\-from\\-spotlight\\-2017/?"],"6330780207":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2896280\\/genius\\-disney\\-channel\\-original\\-movie\\-questions/?"],"7978351155":["^mtvnavclick$"],"7978351156":["^mtvnavnews8$"],"7978351157":["^featuredlinkclick4$"],"3386462775":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256598\\/miley\\-cyrus\\-vma\\-nip\\-slip/?"],"7978351159":["^bottomtaxonomytagclickother$"],"2781160884":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2124741\\/movie\\-awards\\-b\\\u2026s\\-naked\\-celebs/?"],"7978351158":["^sharebuttontwitterclick$"],"4289892938":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2691870\\/reindeer\\-book\\-gift\\-guide/?"],"3386911332":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255829\\/miley\\-cyrus\\-chrissy\\-teigen\\-vmas/?"],"2466620006":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072826\\/miley\\-cyrus\\-ka\\\u2026y\\-grammys\\-2015/?"],"2431861361":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072720\\/sam\\-smith\\-best\\\u2026st\\-grammy\\-2015/?"],"2769580658":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130593\\/paper\\-town\\-mov\\\u2026exclusive\\-clip/?"],"3152671352":["^post20$"],"3152671353":["^insertial6post2$"],"2720000641":["^drive\\_overall\\_ctr$"],"2431861379":["^article\\_clicks$"],"3027280518":["^testing1$"],"3165700761":["^post15$"],"3165700762":["^insertial4post3$"],"6593251997":["^nextupsection17$"],"2212590239":["^share\\_buttons\\_clicks\\_share\\_copy\\_email$"],"7990170272":["^mtvnavshows2$"],"2418530978":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072630\\/kanye\\-west\\-exe\\\u2026\\-rihanna\\-album/?"],"3004990117":["^moresection3$"],"6307540081":["^ladylike$"],"2762830511":["^content\\_tracking$"],"3023420080":["^category\\_button$"],"6303261364":["^decoded$"],"4854790837":["^scroll75$"],"3419030199":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256037\\/noah\\-cyrus\\-vmas\\-2015/?"],"7550040759":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2937321\\/harry\\-styles\\-another\\-man\\-magazine\\-photos/?"],"7961381560":["^bottomtaxonomytagclick5$"],"5212730049":["^bottomemail$"],"2782530244":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131151\\/amy\\-schumer\\-mo\\\u2026onologue\\-jokes/?"],"7984851404":["^300x25adclick$"],"8008461018":["^clickpromoted4$"],"6309290719":["^catfish$"],"3023930088":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2181489\\/mortal\\-instruments\\-cassandra\\-clare\\-fandom/?"],"5957040873":["^decoded\\_clicks$"],"2779251440":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131151\\/amy\\-schumer\\-mo\\\u2026onologue\\-jokes/?"],"6251533043":["^wildnout$"],"2440260342":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072805\\/kanye\\-west\\-onl\\\u2026my\\-performance/?"],"6482920187":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2903478\\/kim\\-kardashian\\-forbes\\-cover/?"],"6297393919":["^wildtour$"],"2454760197":["^disruptive\\_link\\_\\#1\\_click$"],"3031030534":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2183500\\/nicki\\-minaj\\-responds\\-ex\\-sb\\-song\\-love\\-the\\-most/?"],"6034721542":["^decoded\\_clicks\\_w\\/o\\_5\\.23$"],"5217420053":["^bottomwhatsapp$"],"2438751002":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072438\\/iggy\\-azalea\\-pa\\\u2026a\\-phone\\-number/?"],"2928360220":["^(https?://)?(www\\.)?mtv\\.com\\/shows\\/catfish\\/video\\/full\\-episodes/?(\\?.*)?(#.*)?$"],"5875682079":["^sneak\\_peek\\_clicks$"],"3040140065":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2180387\\/jurassic\\-world\\-review/?"],"3195700009":["^post8$"],"3195700010":["^insertial2post2$"],"2924180270":["^user\\_clicked\\_videos\\/clips$"],"3013960499":["^newsclick$"],"4071060278":["^twittershare$"],"6298900616":["^rivalsiii$"],"3194260285":["^post23$"],"5215540042":["^topwhatsapp$"],"7777661777":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2948367\\/ariana\\-grande\\-no\\-makeup\\-selfie/?"],"4793690964":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2680695\\/disney\\-princess\\-obsession/?"],"2232081240":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2021972\\/we\\-heart\\-diem\\-\\\u2026\\-family\\-quotes/?"],"2234311528":["^video\\_post\\_playback$"],"5952711538":["^tve\\-authenticated$"],"7122310003":["^emailshare$"],"3376231289":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256043\\/taylor\\-swift\\-blank\\-space\\-vma\\-female\\-video/?"],"7687673776":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2943740\\/bella\\-thorne\\-crush\\-on\\-demi\\-lovato/?"],"2318750596":["^flg\\_shown$"],"2759830405":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2124935\\/best\\-mtv\\-movie\\\u2026usical\\-moments/?"],"2524040076":["^headline\\_click\\_conversion$"],"7957465996":["^bodydisruptivelinkclick$"],"3742520209":["^nextupsection5$"],"5484080018":["^moretag$"],"2656150422":["^drive\\_ctr$"],"6040560538":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2884202\\/hills\\-anniversary\\-producer\\-roundtable/?"],"4223030177":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2687233\\/dysfunctional\\-movie\\-familes\\-to\\-watch\\-over\\-the\\-holidays/?"],"2447850403":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2069845\\/first\\-grammys\\-red\\-carpet/?"],"4661533609":["^free\\_episodes$"],"2368111531":["^follow\\_twitter\\_click$"],"2210880430":["^share\\_buttons\\_clicks\\_share\\_whatsapp$"],"2771610545":["^explore$"],"4653261746":["^free\\_episode\\_clicks$"],"2785401780":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2099288\\/ed\\-sheeran\\-donation/?"],"2795310010":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131228\\/movie\\-awards\\-memories\\-gifs/?"],"2458850240":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072404\\/birdman\\-turned\\\u2026e\\-grammy\\-party/?"],"6471001034":["^mvpd\\_providers$"],"7586900420":["^edgeplayerclick$"],"5204290515":["^bottomtwitter$"],"3019230165":["^moresection2$"],"5584921569":["^autoplay\\_mediastart$"],"3003020260":["^mightlikesection3$"],"2751720430":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131246\\/miles\\-teller\\-s\\\u2026dship\\-timeline/?"],"7949284341":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2877702\\/mtv\\-news\\-social\\-justice\\-forecast\\-for\\-may\\-6\\-13/?"],"6296880124":["^jokingoff$"],"3395591166":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255971\\/demi\\-lovato\\-vma\\-red\\-carpet\\-2015/?"],"2756371457":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131149\\/vin\\-diesel\\-paul\\-walker\\-tribute/?"],"3392381954":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255668\\/pharrell\\-williams\\-miley\\-cyrus\\-be\\-free\\-hosting\\-vmas/?"],"2780040199":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130911\\/amy\\-schumer\\-hi\\\u2026v\\-movie\\-awards/?"],"3423280137":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256063\\/pharrell\\-freedom\\-vma\\-performance/?"],"3031000074":["^trendingsection3$"],"5217410059":["^toptwitter$"],"7983920140":["^sharebuttonfacebookclick$"],"7983920141":["^storycardtaxonomytagclick$"],"7108230164":["^whatsappshare$"],"7579907094":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2939562\\/one\\-directions\\-glorious\\-path\\-from\\-boys\\-to\\-grown\\-ass\\-men/?"],"2722010136":["^most\\_viewed\\_ctr$"],"6028690456":["^racket\\_clicks\\_ep\\_106$"],"6498851869":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2901926\\/high\\-school\\-musical\\-tv\\-show\\-spin\\-off\\-madison\\-high/?"],"3169270815":["^post13$"],"3169270816":["^insertial4post1$"],"7559844897":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2926230\\/kylie\\-jenner\\-jeans\\-holes\\-butt/?"],"3173010468":["^post2$"],"3173010469":["^insertial1post1$"],"6304173095":["^teenwolf$"],"6304173096":["^truelife$"],"8017551045":["^clickpromoted2$"],"2346200113":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2001986\\/what\\-is\\-fomo/?"],"5215530040":["^floatingwhatsapp$"],"5215530041":["^topemail$"],"2752441417":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130795\\/mtv\\-movie\\-awar\\\u20265\\-winners\\-list/?"],"6882104401":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2912976\\/harry\\-potter\\-adriennes\\-hogwarts/?"],"5129370714":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2745463\\/starbucks\\-beyonce\\-jewishjen/?"],"3834195037":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2545600\\/hair\\-quiz\\-2/?"],"3737207907":["^nextupsection4$"],"6366022761":["^nextupsection9$"],"3189740658":["^post3$"],"3189740659":["^insertial1post2$"],"7770670200":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2942819\\/zayn\\-first\\-excerpt\\-autobiography/?"],"7987840121":["^bottomtaxonomytagclick3$"],"3403271293":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255268\\/watch\\-mtv\\-vmas\\-all\\-access\\-live\\-stream/?"],"2982401167":["^link\\_clicks$"],"7979091093":["^mtvnavnews1$"],"7979091094":["^featuredlinkclick3$"],"7979091095":["^aroundthewebclick1$"],"2435570841":["^disruptive\\_link\\_\\#2\\_click$"],"3113780384":["^scrolled\\_to\\_comments$"],"6376658087":["^nextupsection7$"],"7991190705":["^mtvnavshows6$"],"7991190706":["^bottomtaxonomytagclick4$"],"7991190707":["^aroundthewebclick3$"],"5187521053":["^br3$"],"5956351157":["^clicks\\ tm2$"],"3748220087":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2370229\\/send\\-poo\\-in\\-the\\-mail/?"],"2717410488":["^clicks$"],"7985540363":["^mtvnavmusic1$"],"2358680792":["^related\\_link\\_\\#3$"],"7955405348":["^mtvnavnews7$"],"7828112614":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2952472\\/finn\\-wittrock\\-ahs\\-roanoke\\-makeup/?"],"2753520996":["^watch$"],"3401712167":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256305\\/jared\\-leto\\-vma\\-hair\\-color/?"],"2795130094":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131265\\/amy\\-schumer\\-am\\\u2026\\-rose\\-kiss\\-cam/?"],"3031700719":["^time\\_spent\\_5\\_sec\\_intervals$"],"2747540721":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131139\\/amy\\-schumer\\-mo\\\u2026wards\\-sketches/?"],"3157440846":["^post28$"],"5203670264":["^bottomfacebook$"],"6504602880":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2902762\\/boy\\-meets\\-world\\-shawn\\-and\\-angela\\-girl\\-meets\\-world/?"],"2812300547":["^increase\\_ctr\\_to\\_popular\\_shows$"],"2803260676":["^scrolled\\_to\\_bottom\\_popular$"],"2219130121":["^share\\_buttons\\_clicks\\_share\\_twitter$"],"2787790092":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131109\\/jennifer\\-lopez\\\u2026rds\\-red\\-carpet/?"],"7985540364":["^mtvnavnews2$"],"6294750481":["^teenmom2$"],"3177350428":["^insertial6post3$"],"6150483232":["^shows\\_link$"],"7940556066":["^authorattributionclick$"],"3044820265":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2191320\\/jon\\-stewart\\-charleston\\-terrorism/?"],"3174530348":["^post9$"],"3174530349":["^insertial3post1$"],"5606090040":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2866412\\/pizza\\-story\\-sad\\-tree/?"],"2482910522":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2085499\\/tyga\\-kylie\\-jen\\\u2026tagram\\-picture/?"],"7616091462":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2941307\\/harley\\-quinn\\-suicide\\-squad\\-margot\\-robbie\\-dc\\-rebirth\\-comparison\\-new\\-york\\-comic\\-con/?"],"7957465995":["^mtvnavnews5$"],"6925540918":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2915483\\/former\\-nickelodeon\\-star\\-olympic\\-swimmer/?"],"6300710219":["^teenmom$"],"4223450446":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2687637\\/game\\-of\\-thrones\\-christmas\\-presents/?"],"3533100367":["^readmore$"],"7980440920":["^mtvnavshows5$"],"2403951964":["^disruptive\\_link\\_\\#3\\_click$"],"6921190754":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2916196\\/hellogoodbye\\-lyrics\\-middle\\-school/?"],"3173930340":["^post16$"],"3173930341":["^insertial5post1$"],"4318571883":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2689682\\/which\\-non\\-christmas\\-movie\\-are\\-you\\-quiz/?"],"3179910509":["^insertial2post3$"],"3326510448":["^section\\_zergnetext$"],"2776991097":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2130817\\/jerome\\-jarre\\-movie\\-awards\\-fans/?"],"2432081280":["^link\\_\\#3c$"],"2293460354":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2024404\\/real\\-world\\-ske\\\u2026ons\\-house\\-tour/?"],"6923570564":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2916371\\/michael\\-rady\\-sisterhood\\-traveling\\-pants\\-kostos/?"],"3011450246":["^latestnews2$"],"6366612871":["^nextupsection8$"],"3322020076":["^section\\_tags$"],"3329400207":["^section\\_zergnetint$"],"5880782226":["^title\\_clicks$"],"3405470958":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256658\\/justin\\-bieber\\-what\\-do\\-you\\-mean\\-video/?"],"7987460334":["^taxonomyclick$"],"3403730336":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255680\\/justin\\-bieber\\-weeknd\\-vma\\-rehearsals/?"],"7987460335":["^storycardfeaturedimgclick$"],"3003870107":["^more\\_hashtag$"],"7940375973":["^mtvnavshows7$"],"3010340081":["^aroundthewebsection2$"],"3419590059":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256185\\/justin\\-bieber\\-vmas\\-red\\-carpet/?"],"3419720016":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256036\\/taylor\\-swift\\-wildest\\-dreams\\-video/?"],"3399980465":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256616\\/miley\\-cyrus\\-dead\\-petz\\-surprise\\-album/?"],"3238540724":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2224372\\/jennifer\\-lawrence\\-quotes/?"],"7985830134":["^mtvnavnews4$"],"7940375974":["^bottomtaxonomytagclick1$"],"7998700997":["^clickpromoted5$"],"7768753606":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2941300\\/iron\\-fist\\-trailer\\-marvels\\-living\\-weapon/?"],"3164550602":["^post12$"],"3164550603":["^insertial3post3$"],"3413260536":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255789\\/nick\\-jonas\\-vma\\-pre\\-show/?"],"5173206484":["^br6$"],"2465820119":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072672\\/wiz\\-khalifa\\-so\\\u2026mmy\\-red\\-carpet/?"],"5863851483":["^track\\_click$"],"5190391261":["^br5$"],"3151930848":["^post26$"],"6249375200":["^awkward$"],"2763990500":["^video\\_content$"],"7598560744":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2921879\\/cole\\-sprouse\\-twitter\\-un\\-verified/?"],"6147212779":["^no\\_id\\_required\\_click\\_6\\.6\\.16$"],"3720668657":["^nextupsection6$"],"6302600693":["^gcvsgc$"],"5685782022":["^linelistitemclick$"],"3031150089":["^latestnews3$"],"5491290028":["^disruptivelink$"],"2783720980":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2131071\\/red\\-carpet\\-sel\\\u2026v\\-movie\\-awards/?"],"3031320093":["^aroundthewebsection3$"],"5157991965":["^br1$"],"3179660831":["^post22$"],"3179660832":["^insertial7post2$"],"7546314274":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2937182\\/fantastic\\-beasts\\-trailer\\-grindelwald\\-connection/?"],"2785830436":["^load\\_more\\_ctr$"],"3411353125":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255802\\/nicki\\-minaj\\-taylor\\-swift\\-vma\\-reactions/?"],"6299100710":["^scream$"],"7959993903":["^mtvnavshows3$"],"7959993904":["^mtvnavshows8$"],"3394960949":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255854\\/vanessa\\-hudgens\\-sister\\-stella\\-vmas/?"],"2887540278":["^(https?://)?(www\\.)?mtv\\.com\\/shows\\/catfish\\/video/?(\\?.*)?(#.*)?$"],"5126400264":["^mediastart$"],"3785940553":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2424134\\/ariana\\-grande\\-who\\-is\\-fancy\\-boys\\-like\\-you/?"],"7771193270":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2943109\\/tv\\-shows\\-sexual\\-tension\\-incest/?"],"336080462":["^engagement$"],"2207530576":["^share\\_buttons\\_clicks\\_share\\_pin$"],"6475800504":["^providerselected$"],"2757230169":["^blog$"],"3195500123":["^post4$"],"7983570532":["^bottomtaxonomytagclick6$"],"7545220704":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2936760\\/game\\-of\\-thrones\\-hodor\\-mom\\-instagram/?"],"3168380514":["^post19$"],"3168380515":["^insertial6post1$"],"7983570531":["^mtvnavmusic4$"],"3419520613":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255838\\/kanye\\-west\\-video\\-vanguard\\-acceptance\\-speech\\-full/?"],"3404920427":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256138\\/justin\\-bieber\\-vmas\\-performance/?"],"3030990098":["^trendingsection5$"],"6473440877":["^view\\_all\\_button$"],"2415390320":["^photo\\_\\#2b$"],"5467332214":["^videoclick$"],"7925945978":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2957688\\/selena\\-gomez\\-thanksgiving\\-instagram/?"],"3198150271":["^post25$"],"5470502543":["^hamburgericon$"],"2751850130":["^news$"],"3382671003":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256000\\/amber\\-rose\\-vma\\-slut\\-bodysuit/?"],"2300100256":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2024403\\/lauren\\-conrad\\-secret\\-success/?"],"2337120881":["^follow\\_facebook\\_click$"],"2810640043":["^all\\_shows\\_interactivity$"],"3160110771":["^post10$"],"4915353269":["^video\\_player\\_click$"],"3137380023":["^related\\_video\\_clicks$"],"6382440125":["^clicks\\_for\\_no\\_sign\\_in\\_language$"],"3010170562":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2184405\\/jurassic\\-world\\-burning\\-questions/?"],"5459390149":["^followclick$"],"6592951584":["^nextupsection13$"],"3014180559":["^hamburger\\_icon$"],"4062871248":["^facebookshare$"],"2713630421":["^ctr$"],"7985000157":["^mtvnavmusic2$"],"7985860150":["^aroundthewebclick2$"],"4967890671":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2737723\\/v\\-v\\-brown\\-sacrifice\\-video/?"],"5029760752":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2356379\\/fbia\\-url\\-whitelist\\-testing/?"],"3030970099":["^trendingsection1$"],"2307350268":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2023227\\/snooki\\-vinny\\-guadagnino\\-fight/?"],"2426341119":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2066721\\/12\\-ways\\-friday\\\u2026watch\\-football/?"],"3040700160":["^music\\_section\\_clickthrough$"],"5216440065":["^floatingfacebook$"],"3919763206":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2547224\\/sneaker\\-culture\\-deaths/?"],"7702295168":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2938924\\/lindsay\\-lohan\\-missing\\-ring\\-finger\\-boating\\-accident/?"],"3184830217":["^post17$"],"3184830218":["^insertial5post2$"],"2904760089":["^shows\\_header\\_bar\\_engagement$"],"3024910109":["^latestnews1$"],"7692240669":["^inlinepostvideoclick$"],"3356170015":["^section\\_trending$"],"4996280099":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2739880\\/asap\\-rocky\\-ian\\-connor/?"],"7985850148":["^mtvnavnews3$"],"7985850149":["^storycardheadlineclick$"],"3391280936":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2255924\\/taylor\\-swift\\-bad\\-blood\\-squad\\-vma\\-red\\-carpet/?"],"7595280169":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2929893\\/kendall\\-kylie\\-jenner\\-stuck\\-in\\-elevator/?"],"5479651122":["^newslogo$"],"3025471294":["^you\\_might\\_like\\_clicks$"],"3553090530":["^nextupsection3$"],"5972111186":["^decoded\\_new\\_title\\_clicks$"],"6932150113":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2916274\\/jonas\\-brothers\\-its\\-about\\-time\\-what\\-i\\-go\\-to\\-school\\-for\\-lyrics\\-quiz/?"],"3416330090":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2254498\\/tori\\-kelly\\-vmas\\-performance/?"],"3564570488":["^nextupsection2$"],"4267501434":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2689744\\/ya\\-novel\\-candles/?"],"6304030590":["^realworld$"],"5822300034":["^sneak\\_peek\\_click\\_through$"],"3195810039":["^post11$"],"8016482203":["^clickpromoted1$"],"3849277342":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2509356\\/britney\\-spears\\-disney\\-princesses\\-isaiah\\-stephens/?"],"3769860006":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2422450\\/justin\\-bieber\\-one\\-direction/?"],"2463670187":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2072452\\/kendrick\\-lamar\\\u2026erformance\\-win/?"],"6330290092":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2895475\\/vampire\\-diaries\\-stars\\-in\\-dcoms/?"],"4787791791":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2733774\\/newspaper\\-headline\\-optical\\-illusion/?"],"3139350449":["^trending\\_clicks$"],"6299930548":["^ridiculousness$"],"6541064118":["^nextupsection12$"],"2170490808":["^share\\_buttons\\_clicks\\_share\\_fbshare$"],"2294890484":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2026831\\/snooki\\-son\\-lor\\\u2026ble\\-twos\\-video/?"],"3198840767":["^clickpinterest$"],"5211110049":["^floatingtwitter$"],"3018000341":["^mightlikesection2$"],"3028230107":["^trendingsection2$"],"3369781217":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2256151\\/kim\\-and\\-kanye\\-vma\\-red\\-carpet\\-2015/?"],"6369511760":["^nextupsection10$"],"6499291113":["^mvpd\\_providers\\_and\\_view\\_all\\_btn$"],"7948017648":["(https?://)?(www\\.)?mtv\\.com\\/news\\/2957681\\/taylor\\-swift\\-mannequin\\-challenge/?"],"2783961076":["^see\\_if\\_watch\\_increases\\_click\\_through$"],"3030960118":["^trendingsection4$"],"2512060211":["^cta\\_eye\\_candy$"],"2227333116":["(https?://)?(www\\.)?articles\\.mtv\\.com\\/2022058\\/are\\-you\\-the\\-one\\-best\\-couple/?"],"7950067709":["^featuredlinkclick2$"],"7950067710":["^featuredlinkclick5$"]},"audiences":{"2787501743":{"conditions":["and",["or",["or",{"dimension_id":2769061060,"value":"search"},{"dimension_id":2769061060,"value":"direct"}]]],"name":"Search Referrals & Direct","segment_id":2780911815}},"www_host":"app.optimizely.com","is_behavior_enabled":true,"force_variation":true,"dimensions":{"5537532506":{"condition_type":"custom_dimension","name":"Click Thru Views","segment_id":5552132365},"2769061060":{"condition_type":"source_type"}},"version":"master-2737.398544826097881993","admin_account_id":335736224,"blacklisted_experiments":[7784301830,7827560973,7791381647,8009730193,7785010842,7703343259,7795733922,7798151593,7780291760,8151337397,7729191227,7739320636,7719181503,7788951104,7807750337,7814150092,7815512271,7820802386,7808680787,7793791830,7723271511,7736671353,8017780317,7797890654,7809621475,8016830436,7787861095,7810050024,7829351021,7743320046,7774903536,7700120050,7786973811,7797992948,7787331701,7807930745],"project_id":335736224,"revision":5037,"summary_revenue_goal_id":336065200,"installation_verified":true,"slave":true,"preview_host":"//optimizely.s3.amazonaws.com","api_host":"api.optimizely.com","project_js":"/*\n * Working Project JS\n */\n\n\nvar activatePage = function(name) {\n\n\twindow.optimizely = window.optimizely || [];\n\twindow.optimizely.push({\n\t\ttype: \"page\",\n\t\tpageName: name\n\t});\n\n\tconsole.log('[optly-poc] activated page: ' + name);\n};\n\nvar getCurrentPage = function() {\n\tconsole.log('[optly-poc] getCurrentPage called');\n\n\tvar path = window.location.pathname;\n\tvar feRE = /^\\/full\\-episodes\\//g;\n\tvar vcRE = /^\\/video\\-clips\\//g;\n\tif (path === \"/\") {\n\t\tconsole.log('[optly-poc] this is the homepage');\n\t\tactivatePage('homepage');\n\t} else if (path.match(feRE)) {\n\t\tconsole.log('[optly-poc] this is a full episode');\n\t\tactivatePage('full_episode');\n\t} else if (path.match(vcRE)) {\n\t\tconsole.log('[optly-poc] this is a video clip');\n\t\tactivatePage('video_clip');\n\t} else {\n\t\tconsole.log('[optly-poc] this is something else');\n\t\treturn;\n\t}\n\n};\n\n\nfunction bindToTriforce() {\n\tconsole.log('[optly-poc] bound to triforce');\n\t\n var mediator = window.Triforce.getMediator();\n\tmediator.on('triforce:pagestartload', function(){console.log('[optly-poc][triforce:pagestartloaded] ' + window.location.href);});\n\tmediator.on('triforce:pageloaded', function(){console.log('[optly-poc][triforce:pageloaded] ' + window.location.href);});\n\tmediator.on('triforce:pageready', function(){console.log('[optly-poc][triforce:pageready] ' + window.location.href);});\n\tmediator.on('triforce:loadpage', function(){console.log('[optly-poc][triforce:loadpage] ' + window.location.href);});\n\tmediator.on('triforce:rendercomplete', function(){console.log('[optly-poc][triforce:rendercomplete] ' + window.location.href);});\n\tmediator.on('triforce:complete', getCurrentPage);\n\n}\n\nfunction waitFor() {\n\n if (!!window.Triforce && window.Triforce.getMediator()) {\n\t\t\n bindToTriforce();\n \n } else {\n \t\n setTimeout(waitFor, 50);\n \n }\n}\n\nwaitFor();","segments":{"335480324":{"segment_value_type":"browser","api_name":"optimizely_browser","id":335480324,"name":"Browser"},"335480327":{"segment_value_type":"campaign","api_name":"optimizely_campaign","id":335480327,"name":"Campaign"},"2780911815":{"audience_id":2787501743,"id":2780911815,"name":"Search Referrals & Direct"},"5552132365":{"is_api_only":true,"dimension_id":5537532506,"id":5552132365,"name":"Click Thru Views"},"336198293":{"segment_value_type":"source_type","api_name":"optimizely_source_type","id":336198293,"name":"Source Type"},"335444183":{"segment_value_type":"mobile","api_name":"optimizely_mobile","id":335444183,"name":"Mobile Visitors"}},"click_goals":[{"event_name":"article_headline_clicks","experiments":{"697120260":true,"662900231":true,"626470409":true,"554055692":true,"674290701":true,"657401363":true,"658922004":true,"650221592":true,"631471132":true,"703020890":true,"571883039":true,"575911458":true,"538065450":true,"2418300465":true,"570780722":true,"663230517":true,"703900727":true,"571701305":true,"544640058":true,"538174523":true,"657362357":true,"581230661":true,"2102501447":true,"637440075":true,"554570594":true,"721442898":true,"636541538":true,"652585060":true,"655970922":true,"652790380":true,"560061044":true,"707221115":true,"2454020222":true,"654980234":true,"563730060":true,"540072079":true,"582430356":true,"626710170":true,"662190749":true,"2422290629":true,"2026480800":true,"754893476":true,"548091559":true,"632020146":true,"695571123":true,"577971385":true,"549571771":true,"571841727":true,"695256261":true,"545863714":true,"577341145":true,"696551131":true,"652964584":true,"2458810603":true,"584490221":true,"542342896":true,"2529490675":true,"2005200633":true,"711210235":true,"699933436":true,"577341181":true,"652122069":true,"638520192":true,"570103043":true,"656891143":true,"652964104":true,"575880970":true,"561701644":true,"657180946":true,"583091475":true,"541781784":true,"627341593":true,"658601242":true,"650933019":true,"651851651":true,"536831775":true,"652964131":true,"2107821348":true,"575880997":true,"634011432":true,"548025641":true,"545382187":true,"2462180402":true,"652790575":true,"703053104":true,"651400502":true,"627110199":true,"709120394":true,"567212862":true,"703132995":true,"567832388":true,"2122021194":true,"2438702411":true,"567832400":true,"668823090":true,"574830932":true,"651873114":true,"552040285":true,"566754657":true,"538111330":true,"718700899":true,"706241896":true,"2404960619":true,"2134600557":true,"546451310":true,"702004282":true,"713490288":true,"562552040":true,"697483641":true,"674831229":true,"676180864":true,"652182402":true,"579610859":true,"662701448":true,"562291082":true,"676230539":true,"570134253":true,"696770964":true,"594511088":true,"546531746":true,"536531876":true,"662701477":true,"670121898":true,"675071405":true,"2132490674":true,"540660660":true,"568532405":true,"2256110007":true,"2136650171":true,"657870780":true,"541711294":true,"655760954":true,"653820357":true,"567213005":true,"2516370382":true,"575911376":true,"751160277":true,"571200990":true,"539866021":true,"539866593":true,"660241379":true,"673340390":true,"722062312":true,"751182316":true,"708532209":true,"651400181":true,"653351416":true,"571081213":true},"selector":"#newsMainContent0 a[href*='\"+window.articleID+\"']"},{"event_name":"comment_click","experiments":{"560670320":true,"594481241":true,"538065372":true,"543403493":true,"570300428":true},"selector":".btnPost"},{"event_name":"social_box_clicks","experiments":{"570130658":true,"583140292":true,"543403493":true,"567171497":true,"570300428":true,"575411106":true,"560670320":true,"538065372":true,"566301093":true},"selector":"#articleShare"},{"event_name":"disruptive_link_#3_click","experiments":{"2422190139":true},"selector":"#textwrap"},{"event_name":"photo_#1a","experiments":{"2422190139":true},"selector":"#thumb01 img"},{"event_name":"photo_#2b","experiments":{"2422190139":true},"selector":"#thumb01 img"},{"event_name":"article_clicks","experiments":{"2418300465":true,"2761400505":true,"2256110007":true},"selector":"#post-2072899 a"},{"event_name":"link_#3c","experiments":{"2422190139":true},"selector":"a > i"},{"event_name":"disruptive_link_#2_click","experiments":{"2422190139":true},"selector":"#link02wrap"},{"event_name":"disruptive_link_#1_click","experiments":{"2422190139":true},"selector":"#link01wrap"},{"event_name":"link_#2b","experiments":{"2422190139":true},"selector":"#text02b > a"},{"event_name":"disruptive_link_clicked","experiments":{"2422190139":true,"2448922012":true},"selector":".post .story #related_link a"},{"event_name":"cta_eye_candy","experiments":{"2529780100":true},"selector":".primary-promo .sub-header,.primary-promo .header,.primary-promo .label > span:eq(0),.primary-promo > .meta-wrap,.primary-promo > .media,.primary-promo .icon-chevron-right,.primary-promo .btn-cta-secondary > span:eq(0)"},{"event_name":"drive_ctr","experiments":{"2672841695":true},"selector":".primary-promo > .media,.primary-promo .label > span:eq(0),.primary-promo .header,.primary-promo .sub-header,.primary-promo .icon-chevron-right,.primary-promo .btn-cta-secondary > span:eq(0)"},{"event_name":"ctr","experiments":{"2718040369":true},"selector":".col-md-10 ul > li:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(2) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(2) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(2) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(4) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(4) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(4) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0)"},{"event_name":"clicks","experiments":{"2722920003":true},"selector":".promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.promos .row > div:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.promos .row > div:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.promos .row > div:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.promos .row > div:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0),.promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0),.promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0)"},{"event_name":"drive_overall_ctr","experiments":{"2709970946":true},"selector":".primary-promo > .media,.primary-promo .label > span:eq(0),.primary-promo .header,.primary-promo .sub-header,.primary-promo .icon-chevron-right,.primary-promo .btn-cta-secondary > span:eq(0),.secondary-promos > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0),.secondary-promos > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.secondary-promos > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1),.secondary-promos > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2),.secondary-promos > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2) > span:eq(0) > span:eq(0) > span:eq(0),.secondary-promos > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2) > span:eq(0) > span:eq(0),.secondary-promos > div:eq(1) > a:eq(0) > div:eq(0) > div:eq(0),.secondary-promos > div:eq(1) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.secondary-promos > div:eq(1) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1),.secondary-promos > div:eq(1) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2),.secondary-promos > div:eq(1) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2) > span:eq(0) > span:eq(0) > span:eq(0),.secondary-promos > div:eq(4) > a:eq(0) > div:eq(0) > div:eq(0),.secondary-promos > div:eq(4) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1),.secondary-promos > div:eq(4) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2),.secondary-promos > div:eq(4) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.secondary-promos > div:eq(4) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2) > span:eq(0) > span:eq(0) > span:eq(0),.secondary-promos > div:eq(4) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(2) > span:eq(0) > span:eq(0)"},{"event_name":"most_viewed_ctr","experiments":{"2734080189":true},"selector":".col-md-10 ul > li:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(2) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(2) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(2) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(3) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.col-md-10 ul > li:eq(4) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.col-md-10 ul > li:eq(4) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.col-md-10 ul > li:eq(4) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0)"},{"event_name":"loadmore","experiments":{"2743860007":true},"selector":".btn > span"},{"event_name":"watch","experiments":{"2749080514":true},"selector":".nav > li:eq(1) > a:eq(0)"},{"event_name":"blog","experiments":{"2761560068":true},"selector":".nav > li:eq(3) > a:eq(0)"},{"event_name":"content_tracking","experiments":{"2743860007":true},"selector":"#season-1655 > .row > div:eq(0),#season-1655 > .row > div:eq(1),#season-1655 > .row > div:eq(3),#season-1655 > .row > div:eq(5),#season-1655 > .row > div:eq(7),#season-1655 > .row > div:eq(8),#season-1655 > .row > div:eq(11),#season-1655 > .row > div:eq(12),#season-1655 > .row > div:eq(14),#season-1655 > .row > div:eq(16),#season-1655 > .row > div:eq(18),#season-1655 > .row > div:eq(19),#season-1655 > .row > div:eq(22),#season-1655 > .row > div:eq(23),#season-1655 > .row > div:eq(25),#season-1655 > .row > div:eq(27),#season-1655 > .row > div:eq(29),#season-1655 > .row > div:eq(30),#season-1655 > .row > div:eq(33),#season-1655 > .row > div:eq(34),#season-1655 > .row > div:eq(36),#season-1655 > .row > div:eq(38),#season-1655 > .row > div:eq(40),#season-1655 > .row > div:eq(41),#season-1655 > .row > div:eq(44),#season-1655 > .row > div:eq(45),#season-1655 > .row > div:eq(47),#season-1655 > .row > div:eq(49),#season-1655 > .row > div:eq(51),#season-1655 > .row > div:eq(52)"},{"event_name":"see_if_watch_increases_click_through","experiments":{"2769640817":true},"selector":".promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0),.promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.promos .row > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.promos-secondary > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.promos-secondary > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0),.promos-secondary > div:eq(0) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(0) > div:eq(0),.promos-secondary > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(1) > span:eq(0),.promos-secondary > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0),.promos-secondary > div:eq(1) > div:eq(0) > a:eq(0) > div:eq(0) > div:eq(1) > div:eq(0) > span:eq(0)"},{"event_name":"load_more_ctr","experiments":{"2771481880":true},"selector":".btn > span"},{"event_name":"all_shows_interactivity","experiments":{"2784131694":true,"2779342295":true},"selector":".alphafilter-wrap"},{"event_name":"increase_ctr_to_popular_shows","experiments":{"2784131694":true,"2779342295":true},"selector":"#sec-popshows .row > div:eq(0),#sec-popshows .row > div:eq(1),#sec-popshows .row > div:eq(3),#sec-popshows .row > div:eq(4),#sec-popshows .row > div:eq(7),#sec-popshows .row > div:eq(8),#sec-popshows .row > div:eq(10),#sec-popshows .row > div:eq(11),#sec-popshows .row > div:eq(14),#sec-popshows .row > div:eq(15),#sec-popshows .row > div:eq(17),#sec-popshows .row > div:eq(18),#sec-popshows .row > div:eq(21),#sec-popshows .row > div:eq(22),#sec-popshows .row > div:eq(24),#sec-popshows .row > div:eq(25)"},{"event_name":"nav_element_watch","experiments":{"2868830019":true,"2887020230":true},"selector":".opto-watch"},{"event_name":"shows_header_bar_engagement","experiments":{"2868830019":true,"2887020230":true},"selector":".nav"},{"event_name":"user_clicked_videos/clips","experiments":{"2887020230":true},"selector":".opto-clips-videos"},{"event_name":"link_clicks","experiments":{"2983180254":true},"selector":"#related_link_txt"},{"event_name":"more_hashtag","experiments":{"3127310152":true,"3028230106":true,"3138262755":true,"3112111063":true,"3491610215":true},"selector":".tags > a"},{"event_name":"hamburger_icon","experiments":{"3127310152":true,"3028230106":true,"3138262755":true,"3112111063":true,"3491610215":true},"selector":".icon-datas-list"},{"event_name":"category_button","experiments":{"3127310152":true,"3028230106":true,"3138262755":true,"3112111063":true,"3491610215":true},"selector":".category > a"},{"event_name":"you_might_like_clicks","experiments":{"3020600533":true},"selector":"#zerglayout > div:eq(0) > a:eq(0) > img:eq(0),#zerglayout > div:eq(1) > a:eq(0) > img:eq(0),#zerglayout > div:eq(2) > a:eq(0) > img:eq(0)"},{"event_name":"testing1","experiments":{"3015830402":true},"selector":".promo-block img,#trendin-anchor > .btn > span:eq(0)"},{"event_name":"news_button","experiments":{"3127310152":true,"3028230106":true,"3138262755":true,"3112111063":true,"3491610215":true},"selector":"a > .sitename"},{"event_name":"music_section_clickthrough","experiments":{"3015830402":true},"selector":".headline-xl,.promo-block img"},{"event_name":"related_video_clicks","url_conditions":{"values":[{"match":"simple","value":"http://www.mtv.com/shows/nick_cannon_wildnout/nick-cannon-presents-wild-n-out-ep-704-full-episode/1736557/playlist/"},{"match":"simple","value":"http://www.mtv.com/variant/shows/nick_cannon_wildnout/nick-cannon-presents-wild-n-out-ep-704-full-episode/1736557/playlist/1/"},{"match":"simple","value":"http://www.mtv.com/variant/shows/nick_cannon_wildnout/nick-cannon-presents-wild-n-out-ep-704-full-episode/1736557/playlist/2/"},{"match":"simple","value":"http://www.mtv.com/variant/shows/nick_cannon_wildnout/nick-cannon-presents-wild-n-out-ep-704-full-episode/1736557/playlist/3/"}]},"selector":"#sec-related-large-container ul > li:eq(0),#sec-related-large-container ul > li:eq(1),#sec-related-large-container ul > li:eq(4),#sec-related-large-container ul > li:eq(5),#sec-related-large-container ul > li:eq(9),#sec-related-large-container ul > li:eq(10),#sec-related-large-container ul > li:eq(13),#sec-related-large-container ul > li:eq(14),#sec-related-large-container ul > li:eq(18),#sec-related-large-container ul > li:eq(19),#sec-related-large-container ul > li:eq(22),#sec-related-large-container ul > li:eq(23),#sec-related-large-container ul > li:eq(27),#sec-related-large-container .btn > span:eq(0),#vrelated > ul > li:eq(0),#vrelated > ul > li:eq(1),#vrelated > ul > li:eq(2),#vrelated > ul > li:eq(3),#vrelated > ul > li:eq(4),#vrelated > ul > li:eq(5),#vrelated > ul > li:eq(6),#vrelated > ul > li:eq(7),.btn > span"},{"event_name":"trending_clicks","experiments":{"4042262083":true,"3342160420":true,"3236390534":true,"3222510729":true,"3535630327":true,"3516030735":true,"3207690418":true,"3512010227":true,"3525190356":true,"3548191989":true,"3520738327":true,"3523224964":true,"3136800571":true,"4068595646":true,"3541770687":true},"selector":".trending-list > div:eq(0) > article:eq(0) > div:eq(0),.trending-list > div:eq(1) > article:eq(0) > div:eq(0),.trending-list > div:eq(2) > article:eq(0) > div:eq(0),.trending-list > div:eq(3) > article:eq(0) > div:eq(0) > div:eq(1) > div:eq(0),.trending-list > div:eq(4) > article:eq(0) > div:eq(0)"},{"event_name":"teen_wolf_s5e4_related_video_clicks","url_conditions":{"values":[{"match":"simple","value":"http://www.mtv.com/shows/teen_wolf/teen-wolf-season-5-ep-4-condition-terminal/1736762/playlist/"},{"match":"simple","value":"http://www.mtv.com/variant/shows/teen_wolf/teen-wolf-season-5-ep-4-condition-terminal/1736762/playlist/1/"},{"match":"simple","value":"http://www.mtv.com/variant/shows/teen_wolf/teen-wolf-season-5-ep-4-condition-terminal/1736762/playlist/2/"},{"match":"simple","value":"http://www.mtv.com/variant/shows/teen_wolf/teen-wolf-season-5-ep-4-condition-terminal/1736762/playlist/3/"}]},"selector":"#sec-related-large-container ul > li.item,#sec-related-large-container .btn > span:eq(0),#vrelated > ul > li.item,.btn > span"},{"event_name":"video_player_click","experiments":{"4927901920":true,"4976662686":true},"selector":".play_overlay_icon"},{"event_name":"track_ctr","experiments":{"4918181930":true},"selector":".meta_items .header,.meta_items .subHeader,.meta_items .icon-chevron-right,.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(2) > a:eq(0) > div:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.meta_items .label > span:eq(0),.ent_m178_mtv_V1_0_1 .image_holder"},{"event_name":"br4","experiments":{"5184931252":true,"5754921988":true},"selector":".s_layouts_lineList > li:eq(3)"},{"event_name":"br1","experiments":{"5184931252":true,"5754921988":true},"selector":".tve_locked"},{"event_name":"br6","experiments":{"5184931252":true,"5754921988":true},"selector":".s_layouts_lineList > li:eq(5)"},{"event_name":"br2","experiments":{"5184931252":true,"5754921988":true},"selector":".s_layouts_lineList > li:eq(1)"},{"event_name":"br3","experiments":{"5184931252":true,"5754921988":true},"selector":".s_layouts_lineList > li:eq(2)"},{"event_name":"br5","experiments":{"5184931252":true,"5754921988":true},"selector":".s_layouts_lineList > li:eq(4)"},{"event_name":"ao1","experiments":{"5184931252":true,"5754921988":true},"selector":".L001_line_list_vertical > li:eq(0)"},{"event_name":"sneak_peek_click_through","experiments":{"5812780857":true},"selector":".ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(0)"},{"event_name":"sneak_peek_clicks","experiments":{"5807780037":true},"selector":".headers-wrap span,.headers-wrap > .header,.meta_items .subHeader,.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m178_mtv_V1_0_2 .image_holder,.meta_items > .meta-wrap,.meta_items .icon-chevron-right,.ent_m172_mtv_V1_0_3 > .module_content > div:eq(0) > a:eq(0) > div:eq(1)"},{"event_name":"title_clicks","experiments":{"5898130366":true},"selector":".ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1)"},{"event_name":"Clicks Racket","experiments":{"5929863693":true},"selector":".ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv_V1_0_3 > .module_content > div:eq(3) > a:eq(0) > div:eq(0)"},{"event_name":"tve_sign_in","experiments":{"5943272585":true,"6902971659":true,"6494012372":true,"6200252180":true},"selector":".slate_btn"},{"event_name":"clicks tm2","experiments":{"5960210934":true},"selector":".ent_m178_mtv_V1_0_2 .image_holder,.headers-wrap span,.headers-wrap > .header,.meta_items .subHeader,.meta_items .icon-chevron-right,.meta_items > .meta-wrap"},{"event_name":"decoded_clicks","experiments":{"5949561178":true},"selector":".ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0)"},{"event_name":"decoded_new_title_clicks","experiments":{"5969510748":true},"selector":".ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1)"},{"event_name":"racket_clicks_ep_106","experiments":{"6039550390":true},"selector":".ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1)"},{"event_name":"decoded_clicks_w/o_5.23","experiments":{"6047390555":true},"selector":".ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1)"},{"event_name":"no_id_required_click_6.6.16","experiments":{"6166280637":true},"selector":".alt_ratio > .image_holder"},{"event_name":"shows_link","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(0) > a:eq(0) > div:eq(0),.L001_line_list > li:eq(0) > a:eq(0) > h4:eq(0),.L001_line_list > li:eq(0) > a:eq(0) > h3:eq(0)"},{"event_name":"awkward","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(1) > a:eq(0) > div:eq(0) > img:eq(0),.L001_line_list > li:eq(1)"},{"event_name":"wildnout","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(11)"},{"event_name":"ayto","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(0) > a:eq(0) > div:eq(0) > img:eq(0),.L001_line_list > li:eq(0)"},{"event_name":"tyga","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(8)"},{"event_name":"racket","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(12)"},{"event_name":"teenmom2","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(17)"},{"event_name":"jokingoff","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(10)"},{"event_name":"wildtour","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(20)"},{"event_name":"rivalsiii","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(5)"},{"event_name":"scream","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(15)"},{"event_name":"ridiculousness","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(14)"},{"event_name":"teenmom","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(16)"},{"event_name":"gcvsgc","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(7)"},{"event_name":"decoded","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(6)"},{"event_name":"realworld","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(13)"},{"event_name":"teenwolf","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(18)"},{"event_name":"truelife","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(19)"},{"event_name":"braless","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(3)"},{"event_name":"ladylike","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(9)"},{"event_name":"catfish","experiments":{"6169393969":true},"selector":".L001_line_list > li:eq(4)"},{"event_name":"clicks_on_no_sign_in_language","experiments":{"6330890735":true},"selector":".ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1)"},{"event_name":"sign_in_clicks","experiments":{"6378510966":true},"selector":".ent_m178_mtv .image_holder,.headers-wrap span,.headers-wrap > .header,.meta_items .subHeader,.meta_items .icon-chevron-right,.headers-wrap,.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(0) > a:eq(0) > div:eq(1)"},{"event_name":"clicks_for_no_sign_in_language","experiments":{"6386291109":true},"selector":".ent_m178_mtv .image_holder,.headers-wrap span,.headers-wrap > .header,.meta_items .subHeader,.meta_items .icon-chevron-right,.meta_items > .meta-wrap,.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(1) > a:eq(0) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1)"},{"event_name":"removed_sign_in/full_episode_name","experiments":{"6392911338":true},"selector":".ent_m178_mtv .image_holder,.headers-wrap span,.headers-wrap > .header,.meta_items .subHeader,.meta_items .icon-chevron-right,.meta_items > .meta-wrap,.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(0) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(1),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1) > div:eq(2) > span:eq(0),.ent_m172_mtv > .module_content > div:eq(2) > a:eq(0) > div:eq(1)"},{"event_name":"mvpd_providers","experiments":{"6902971659":true,"6494012372":true},"selector":"ul.tveapp_extraMvpdList a"},{"event_name":"view_all_button","experiments":{"6902971659":true,"6494012372":true},"selector":".view_all_btn"},{"event_name":"mvpd_providers_and_view_all_btn","experiments":{"6902971659":true,"6494012372":true},"selector":"ul.tveapp_extraMvpdList a, .view_all_btn"}]}; function h(a){throw a;}var i=void 0,j=!0,k=null,o=!1;function aa(){return function(a){return a}}function ba(a){var b=typeof a;return"object"==b&&a!=k||"function"==b}function ca(a,b,c){return a.call.apply(a.bind,arguments)}function da(a,b,c){a||h(Error());if(2<\/script>'),1!==$("#"+d).length&&h(Error("Document.write failed to append script")))}else h(Error("Not safe to attempt document.write"))}catch(e){try{var f= new XMLHttpRequest;f.open("GET",a,o);f.onload=function(){eval(f.responseText)};f.onerror=function(){h(Error())};f.send()}catch(g){x("Common","Failed to load %s synchronously",a),c()}}else c()}function x(a,b,c){var d=window.console;if(Pa&&d&&d.log){var e=Za(arguments,1);e[0]="Optimizely / "+a+" / "+b;Function.prototype.apply.call(d.log,d,e)}}function ja(a){try{return decodeURIComponent(a)}catch(b){return a}}function Za(a,b){return Array.prototype.slice.call(a,b||0,a.length)} function eb(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function fb(a){this.r=a;this.c={totalGets:0,totalGetLength:0,totalGetTime:0,totalSets:0,totalSetLength:0,totalSetTime:0,numKeys:0,totalSize:0}}fb.prototype.get=function(a){try{var b=+new Date,c=this.r.getItem([gb,a].join("$$")),d=ea(c);this.c.totalGetTime+=+new Date-b;this.c.totalGets++;this.c.totalGetLength+=(c||"").length;return d}catch(e){return k}}; fb.prototype.set=function(a,b){try{var c=+new Date,d=u(b);H(b)?this.r.setItem([gb,a].join("$$"),d):this.r.removeItem([gb,a].join("$$"));this.c.totalSetTime+=+new Date-c;this.c.totalSets++;this.c.totalSetLength+=d.length}catch(e){}};fb.prototype.va=function(){var a=0,b=0,c;for(c in this.r)if(0===c.indexOf(gb)){b++;var d=this.r.getItem(c),a=a+(c.length+(d?d.length:0))}this.c.numKeys=b;this.c.totalSize=a;return this.c}; var hb={get:function(){},set:function(){},va:function(){return{}}},gb="optimizely_data",N=hb,ib=hb; try{var N=new fb(window.localStorage),ib=new fb(window.sessionStorage),jb=N,kb=jb.r.getItem(gb),lb={};try{lb=ea(kb)||{}}catch(mb){}if(0!==L(lb).length){var nb=Wa()||v("optimizelyEndUserId"),ob=lb[nb]||{},pb;for(pb in ob)if(ob.hasOwnProperty(pb)){var qb=[nb,pb].join("$$");jb.get(qb)===k&&jb.set(qb,ob[pb])}delete lb[nb];for(pb in lb)lb.hasOwnProperty(pb)&&(jb.get(pb)===k&&jb.set(pb,lb[pb]),delete lb[pb]);try{kb=u(lb)}catch(rb){kb={}}jb.r.setItem(gb,kb)}}catch(sb){};function tb(){return z("admin_account_id")}function ub(a){return z("audiences",a)}function vb(a){a=z("audiences",a,"segment_id");return!a?k:a} function wb(){if(!xb){var a=z("click_goals")||[];xb=[];for(var b=0,c=a.length;b>>17,g=c(g,461845907),e^=g,e=(e&524287)<<13|e>>>19,e=5*e+3864292196|0;g=0;switch(d%4){case 3:g=(a.charCodeAt(f+2)&255)<<16;case 2:g|=(a.charCodeAt(f+1)&255)<<8;case 1:g|=a.charCodeAt(f)&255,g=c(g,3432918353),e^=c((g&131071)<<15|g>>>17,461845907)}e^= d;e=c(e^e>>>16,2246822507);e=c(e^e>>>13,3266489909);return e^e>>>16};var fc=Math.pow(2,32);function gc(a,b){var c=ec(a,b);return(c>>>16).toString(16)+(c&65535).toString(16)};function hc(){return ic=ic||jc()}function kc(){return hc().ba}function lc(){return hc().ca}function mc(){return hc().F}function nc(a){if(!a)return"";try{return a.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(b){return""}}function oc(){return hc().platform}function pc(a){return N.get([Wa()||Va(),a].join("$$"))}function qc(a){N.set([Wa()||Va(),"asyncInfo"].join("$$"),a)} function rc(){var a="android;blackberry;ipad;iphone;ipod;windows phone".split(";");return E(a,mc().id)?mc().id:E(a,oc().id)?oc().id:sc()?"mobile":"unknown"}function sc(){return mc().w}function tc(){return uc?"returning":"new"}oc=function(){return hc().platform};function vc(a){x("User","Setting current URL to %s",a);wc=a}var wc=i,ic=i,uc=i;function M(a,b,c){xc.push({Ea:new Date,Ca:a,message:b,ta:c||o});yc&&zc()}function Ac(){Pa=j}function Bc(){Qa=Pa=j}function zc(){Pa&&(w(xc,function(a){if(!a.bb&&(!a.ta||a.ta===Qa)){var b=+a.Ea;x(a.Ca,a.message+(" [time "+(Cc?b-Cc:0)+" +"+(Dc?b-Dc:0)+"]"));Dc=b;Cc||(Cc=b);a.bb=j}}),yc=j)}var Dc=k,Cc=k,xc=[],yc=o;var Q={};function Fc(a,b){Q[a]=b}function Gc(a,b){var c=pc("asyncInfo")||{};c[a]=b;qc(c)}function Hc(){var a=(Q.odds||k)&&(Q.odds||k).ip||(Q.cdn3||k)&&(Q.cdn3||k).ip;return a?Ic(a):k}function Jc(){return!Q.odds?k:(Q.odds||k).lists||{}} function Kc(a){if(!Jc())return M("Async Info","Invalid response from ODDS"),{value:i,M:o};if(!Jc().hasOwnProperty(a))return M("Async Info","Deduced cachetime value that was checked for presence in list: "+a),{value:i,M:j};var b=!Q.odds?k:(Q.odds||k).lists_metadata||{};if(!b||!b[a]||!b[a][0])return M("Async Info","Can't find cachetime value that was checked for presence in list: "+a),{value:i,M:o};M("Async Info","Found cachetime value that was checked for presence in list: "+a);return{value:b[a][0].value, M:j}}function Lc(a){var b=Qb()[a],c=H(b)&&Mc(b);if(c){var d=Nc(b);if(d===k)return M("Async Info","Deduced membership status (false) for list: "+a),o;M("Async Info","Found current value to check for presence in list: "+a)}b=Jc();if(!b)return M("Async Info","No list membership info."),k;if(c&&(c=Kc(a),c.M&&c.value!==d))return M("Async Info","Ignoring out-of-date membership status for list: "+a),k;d=!!b[a];M("Async Info","Found membership status ("+d+") for list: "+a);return d} function Oc(){if(!Q.cdn3)return k;var a=(Q.cdn3||k).location||{};return{continent:Ic(a.continent),country:Ic(a.country),region:Ic(a.region),city:Ic(a.city)}}var Pc={get:function(){return Q.dcps||k},set:function(a){Gc("dcps",a);Q.dcps=a}};function Qc(){var a=Pc.get();return!a||a.rulesResults===k?k:a.rulesResults||{}}function Ic(a){return"string"!==typeof a||"N/A"===a.toUpperCase()?k:a.toUpperCase()};function Rc(a){a=a||{};if(qa){a&&a.sVariable&&(Sc=a.sVariable);var b=Sc||("undefined"!==typeof window.s?window.s:k);if(b)if(Tc){a=Uc;if(a!==k&&b)try{x("Integrator","Fixing SiteCatalyst referrer to %s",a),b.referrer=String(a)}catch(c){x("Integrator","Error setting SiteCatalyst referrer: %s",c)}x("Integrator","Tracking with SiteCatalyst");w(Vc(),function(a){var c=P(a),a=R(c,a,100,100,25,j),f=a.key+": "+a.value,a=[],g=O(c,"site_catalyst_evar")||k,c=O(c,"site_catalyst_prop")||k;g!==k&&a.push("eVar"+g); c!==k&&a.push("prop"+c);w(a,function(a){x("Integrator","Setting SiteCatalyst %s='%s'",a,f);b[a]=f})})}else Wc=j;else M("Integrator","Error with SiteCatalyst integration: 's' variable not defined")}}function Xc(a){a=bb(a)?Number(a):-1;if(-1!==[1,2,3].indexOf(a))Yc=a;else return Yc} function Zc(){if(qa){var a=Uc;if(a!==k)try{x("Integrator","Fixing _gaq._setReferrerOverride with %s",a),_gaq.push(["_setReferrerOverride",a])}catch(b){x("Integrator","Error setting Google Analytics referrer: %s",b)}var c=[];w(Vc(),function(a){var b=P(a);if(O(b,"chartbeat")){var d=$c;$c="";var e=R(b,a,10,10,5,o);$c=d;d=Wb(a);ad=e.key+": "+String(d);try{x("Integrator","Calling _cbq.push"),_cbq.push(["_optlyx",ad])}catch(n){M("Integrator","Error sending Chartbeat data for "+Nb(b))}}if($b(b)){var e=$b(b), d=R(b,a,100,100,25,j),r=e+(-1!==e.indexOf("?")?"&":"?")+"optimizely_experiment_id="+b+"&optimizely_experiment_name="+encodeURIComponent(d.key)+"&optimizely_variation_id="+a+"&optimizely_variation_name="+encodeURIComponent(d.value)+"&ns_m_exp=("+b+") "+encodeURIComponent(d.key)+"&ns_m_chs=("+a+") "+encodeURIComponent(d.value)+"&type=hidden";try{$(window).load(function(){M("Integrator","Sending comScore log call");bd(r,k)})}catch(q){M("Integrator","Error sending comScore data for "+Nb(b))}}if(O(b,"crazyegg")){e= R(b,a,100,100,15,o);try{x("Integrator","Defining CE_SNAPSHOT_NAME"),window.CE_SNAPSHOT_NAME=e.key+": "+e.value}catch(G){M("Integrator","Error sending CrazyEgg data for "+Nb(b))}}if(ac(b)){e=ac(b);d=0;H(e)&&(d=e.slot||d);var e=d,d=ac(b),A="";H(d)&&(A=d.tracker||A);d=A;A=R(b,a,28,24,5,j);try{var C="";""!==d&&(C=d+".");x("Integrator","Calling _gaq._setCustomVar for slot %d and scope %d",e,Yc);_gaq.push([C+"_setCustomVar",e,A.key,A.value,Yc])}catch(pa){M("Integrator","Error sending Google Analytics data for "+ Nb(b))}}if(O(b,"inspectlet")){e=$c;$c="";d=R(b,a,100,100,25,o);$c=e;try{M("Integrator","Calling __insp.push for sending data to Inspectlet"),window.__insp=window.__insp||[],window.__insp.push(["tagSession",{"Optimizely Experiment Name":d.key,"Optimizely Variation Name":d.value,"Optimizely Experiment ID":b,"Optimizely Variation ID":a}])}catch(Ta){M("Integrator","Error sending Inspectlet data for "+Nb(b))}}if(z("kissmetrics")){e=R(b,a,100,100,15,j);d={};d[e.key]=e.value;try{x("Integrator","Calling _kmq.set"), _kmq.push(["set",d])}catch(ze){M("Integrator","Error sending KISSmetrics data for "+Nb(b))}}if(O(b,"mixpanel")){e=R(b,a,100,100,15,o);d={};d[e.key]=e.value;try{x("Integrator","Calling mixpanel.push"),mixpanel.push(["register",d])}catch(Gh){M("Integrator","Error sending Mixpanel data for "+Nb(b))}}if(O(b,"moat")){e=R(b,a,100,100,15,o);e=e.key+": "+e.value;try{x("Integrator","Calling optimizelyMoat.push"),optimizelyMoat.push(e)}catch(Hh){M("Integrator","Error sending Moat data for "+Nb(b))}}O(b,"sessioncam")&& (c=c.concat(cd(b,a)));O(b,"at_internet")&&(e=R(b,a,28,24,5,j),a=b+"["+encodeURIComponent(e.key)+"]-0-"+a+"["+encodeURIComponent(e.value)+"]",a in dd||(x("Integrator","Queueing AT Internet log call: %s",a),dd[a]=o))});if(0 Dual licensed under GPLv2 & MIT */ function Nd(){}var Rd={extend:function(a,b){for(var c in b)-1!=="browser cpu device engine os".indexOf(c)&&0===b[c].length%2&&(a[c]=b[c].concat(a[c]));return a},has:function(a,b){return"string"===typeof a?-1!==b.toLowerCase().indexOf(a.toLowerCase()):o},N:function(a){return a.toLowerCase()},ua:function(a){return"string"===typeof a?a.split(".")[0]:i}}; function Sd(){for(var a,b=0,c,d,e,f,g,l,m=arguments;b=Number(a)?d.push(Tb(f[b])[a]):d.push(a)}),d=d.join("_");else if(!b&&1==e.length&&256>=Number(e[0])){var c=String,e=e[0],g=Pb(a),l=k;try{l=g[e]}catch(m){}d=c(l)}else 1==e.length? d=e[0]:M("API","Error: could not bucket user. Unknown arguments.");d&&(b&&Sb(a,d)?(b=d,c=Sb(a,b),se[a]=se[a]||{},se[a][c]=b,M("Distributor","Preferring variation partial "+b+" of section "+c+" of experiment "+a),a=te(a),1===a.length&&ue(a[0],"api.bucketUser",j)):ue(d,"api.bucketUser",j));Id()}function ie(a){a&&"tracking"===a||(M("API","Optimizely disabled"),Ha=B=o);qa=o}function ve(){M("API","Finalizing API.");Bd();fe=j} function we(){if(z("slave"))return SLAVE_CLIENT.optimizely.get.apply(k,Array.prototype.slice.call(arguments))}var xe=[];function ye(a){xe.push(a);Bd()}function le(a,b,c){var d=[],e=b,c=H(c)?c:o,f=0;F(b)?(e=b[0],d=Za(b,1)):ab(b)&&(f=H(b.version)?b.version:1,e=b.type,d=[b]);var a=a[f],g;a&&(g=a[e]);g?(M("API",'Called function "'+e+'"'),g.apply(k,d),Ae.S[0===f?e:"v"+f+"."+e]=j):c||M("API",'Error for unknown function "'+e+'"');z("slave")&&SLAVE_CLIENT.optimizely.push(b);zc()} function Be(a,b){fe?M("API","Error: can't add custom tags after Optimizely loads"):(ge=ge||{},2==arguments.length?ge[a]=b:1==arguments.length&&$.extend(j,ge,a))}function Ce(a,b){var c=Hb(a)||a,b=H(b)?b:j,d=Ib()[c];d?d.audience_id?U.aa(d.audience_id):d.dimension_id?U.B(d.dimension_id,k):De(c,b):M("API","Unable find segment for: "+c)}function Ee(){var a=L(Ib());w(a,function(a){Ce(a,o)});Fe()} function Bd(){Ge={};He={};Ie={};w(od(),function(a){var b=P(a);Ge[b]=a.split("_");He[b]=Wb(a);Ie[b]=Xb(a)});W={};var a=z("audiences");X(W,"audiences",a||i,"data.audiences");X(W,"customTags",ge,"data.customTags");X(W,"thirdParty",N.get(sd)||{},"data.thirdParty");for(var b={},c=Eb(),a=0;aa&&(b="less then minimum.",a=7776E3);M("API",(b&&"Days argument "+b)+" Cookie expiration set to "+a+" seconds.");Ua=a}function Ne(){Sa=j}function Oe(){v("optimizelyReportableFix")?M("API","skipping because cookie is set"):(w(z("audiences"),function(a){vb(a)&&(M("API","Removing from reportable audience: "+a),U.aa(a))}),y("optimizelyReportableFix","1",7776E3))} function Pe(a){var b=Wa();!a&&0!==a?(M("API","Clearing PPID"),ya("optimizelyPPID",za())):"string"===typeof a||"number"===typeof a?(M("API","Setting PPID to "+a),a=String(a),y("optimizelyPPID",a,Ua)):M("API","Ignoring non-string, non-number PPID: "+a);Wa()!==b&&(M("API","Clearing plan because of PPID change"),M("Plan","Resetting visitor buckets"),Qe={},pe={},qe={},V=[],Id())} var Se={event:function(a){Re(a.eventName,a.tags)},user:function(a){a.userId&&Pe(a.userId);a.attributes&&w(a.attributes,function(a,c){U.B(a,c)})},integration:function(a){a.OAuthClientId&&ye(a.OAuthClientId)}},W={},Te={},Ge={},He={},Ie={},U=k;function Re(a,b){var c;a:{c={};var d,e=z("custom_revenue_goals");e&&(a in e&&bb(e[a]))&&(d=Number(e[a]));if(b)if(bb(b))d=Number(b);else if("object"===typeof b){if(c=J({},b),"revenue"in c)if(bb(c.revenue))d=Number(c.revenue),delete c.revenue;else{x("tracker","Revenue field %s not a number.",c.revenue);c=k;break a}}else{x("tracker","Revenue argument %s not a number.",b);c=k;break a}H(d)&&(c.Q=d)}if(c===k)x("tracker","Bad options. Will not track this event.");else{d=Cb();var f={};w(d,function(a){f[a]= j});$.extend(c,{T:f});Jd(a,"custom",c)}}function Jd(a,b,c){c=c||{};qa&&(Ue.push({name:a,type:b,ea:+new Date/1E3,options:c}),Ve?(We(),M("Tracker","Tracking event '"+a+"'")):M("Tracker","Queued tracking event '"+a+"'"))}function Xe(){Ye();$("html").bind("mousedown",Ze);$("html").bind("touchstart",$e)}function Ye(){$("html").unbind("touchstart",$e);$("html").unbind("mousedown touchend",Ze);$("html").unbind("touchmove",Xe)}function $e(){$("html").bind("touchend",Ze);$("html").bind("touchmove",Xe)} function af(){var a=document.location.href,b=z("pageview_revenue_goals");b&&0>>8&255)+b);65535>>16)+b);return b});return this.v=gc(a,2716770798)}; function mf(a,b){if(a.hash()!==b.hash()||a[Y.e]!==b[Y.e]||a[Y.g]!==b[Y.g]||a[Y.l]!==b[Y.l]||a[Y.m]!==b[Y.m])return o;if(!a[Y.f]&&!b[Y.f])return j;var c=a[Y.f]||{},d=b[Y.f]||{},e=K(L(c),function(a){return c.hasOwnProperty(a)}),f=K(L(d),function(a){return d.hasOwnProperty(a)});if(e.length!==f.length)return o;for(f=0;fMath.abs(r.k([Y.b],0)-q.k([Y.b],0))?r.k([Y.o]):q.k([Y.b]))}}}a=pf.slice(-1E3)}else a=[];return a}catch(G){x("Behavior","Error "+G.toString()+" getting events")}return[]};function uf(){return(new Date).getTime()-(vf||0)}var vf=uf();function wf(a,b,c){for(var a=a.slice(),d=a.length-1;0c;)a.pop(),d=a.join(b);return d}function T(a){var b=Ae;b.n[a]||(b.n[a]=uf())}var xf;try{xf=!document.getElementsByTagName("body")[0]}catch(yf){xf=k}var zf=k;try{window.requestAnimationFrame(function(){zf=uf()})}catch(Af){} var Bf=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi,Ae=new function(){this.n={};this.S={};this.Za=Math.random()Math.floor(1E4*((ec(f+a,0)>>>0)/fc)))return M("Distributor", "Permanently ignoring experiment "+a+"("+e/100+"% likelihood)"),Cf(a),o;e=c;se[a]!==i&&(M("Distributor","Taking into account bucketUser variations for experiment "+a),e=te(a));var f=e,g=[],l=O(a,"variation_weights")||{};w(f,function(a){g.push(l[a])});f=Ef(a,g);e=e[f];M("Distributor","Picked variation "+e+" [index "+f+" of "+c.length+"]");ue(e,"distributor");return j} function Ff(a,b){b=b||{};M("Distributor","Configuring conditionally-activated experiment: "+a);Te[a]?M("Distributor","Not configuring conditionally-activated experiment (already done): "+a):!Fb(a)&&b.force!==j?M("Distributor","Not configuring conditionally-activated experiment (not enabled): "+a):(Gf(a,b),fe&&Bd())} function Gf(a,b){function c(){td(U,a,b);m.isActive=E(nd.concat(S),a);M("Distributor","Activating conditionally activated experiment "+a)}var d=O(a,"conditional_code"),e=j,f,g;if("function"===typeof d)e=o,f=d;else try{g=eval("(function() {return "+("("+d+")")+";})()"),"function"===typeof g&&(e=o,f=g)}catch(l){}var m={isActive:o,experimentId:a};if(e){if(e={objectType:"experiment",enabledStatus:b.enabledStatus},b.force||!Cd(a)||Dd(a,e)){var n=function(){Cd(a)&&(Hf(0,{value:d})||g)?c():setTimeout(n,50)}; n();M("Distributor","Set up conditional polling for "+a);Te[a]=j}}else try{f(c,m),M("Distributor","Set up conditional callback for "+a),Te[a]=j}catch(r){M("Distributor","Error running conditional callback function for "+a)}}function Df(){return Wa()||Va()}function Ef(a,b){var c=b.length;if(0===c)return k;if(1===c)return 0;for(var d=0,e=0;e>>0)/fc;for(e=0;e>>0)/fc*c)} function te(a){var b=[];w(O(a,"enabled_variation_ids")||[],function(c){var d=j,e;for(e in se[a])-1===c.indexOf(se[a][e])&&(d=o);d&&b.push(c)});return b}var se={};function If(){for(var a=z("dcp_keyfield_locators")||[],b=k,c=[],d=0;d'+a+"";$("#optimizely-loading").remove();$("body").append(b)}}var Rf=z("preview_host");function Ke(){var a=window.location.search||"";0===a.indexOf("?")&&(a=a.substring(1));for(var a=a.split("&"),b=[],c=0;ca[1]},lt:function(a){return a[0]=a[1]},lte:function(a){return a[0]<=a[1]},"in":function(a){var b=I(a[1]||[],hg);return E(b,hg(a[0]))},between:function(a){return a[1]<=a[0]&&a[0]<=a[2]},contains:function(a){a=I(a,function(a){return"string"===typeof a?a.toLowerCase():a});return-1!==(a[0]||"").indexOf(a[1])},regex:function(a){try{var b,c;"string"=== typeof a[1]?(b=a[1],c="i"):(b=a[1][0]||"",c=a[1][1]||"");return RegExp(b,c).test(a[0])}catch(d){return x("Rules",'In operator "regex", error: '+(d.message||"invalid RegExp /"+[b,c].join("/"))),o}},exists:function(a){return"undefined"!==typeof a[0]},and:function(a){return Xa(a,aa())},or:function(a){return D(a,aa())},not:function(a){return!a[0]}},lg={"+":function(a){return(a[0]||0)+(a[1]||0)},"-":function(a){return(a[0]||0)-(a[1]||0)},"/":function(a){return(a[0]||0)/(a[1]||1)},"%":function(a){return(a[0]|| 0)%(a[1]||1)}},mg={sum:function(a,b){for(var c=a[0]||ig,d=0,e=0;e=Number(d)||Number(d)!=Math.floor(Number(d)))&&c.push("LIMIT must be a positive integer"));0f)return e}return 0}):x("Rules","groupBy rule must be an array")}a.hasOwnProperty("limit")&&(c=c.slice(0,Number(a.limit)));if(a.hasOwnProperty("select"))var Ta=a.select,c=I(c,function(a){return I(Ta,function(b){return og(a,b)})});return c} function sg(a,b){try{var c;c=pg(a);var d=qg(c);0":"gt",">=":"gte","=":"eq","==":"eq"};function Ag(a){a=eb((a||"").toString());return zg[a]||a}function Bg(a,b,c){cb(b)&&(b=[b]);return{op:Ag(a),args:[{field:b},{value:c}]}}function Cg(a){for(var b=[],c=0;cNumber(c[e]))return 1}else return-1;return 0} function Lg(a,b){var c=b.value,d=a.id,e=a.version,f=a.mobileId;return f&&"unknown"!==f?(M("Condition",f,j),"mobile"===c||c===f):0===c.indexOf(d)?0===Kg(e,c.substr(d.length)):o}function Hf(a,b){var c=b.value;if(c===i)return j;try{return Boolean(Mg(c))}catch(d){return o}}function Ng(a,b){return Og(b.value,b.match,a)}function Pg(a,b){return Og(b.value,b.match,a)} function Qg(a,b){if(a===k)return o;var c=b.value;switch(b.match){case "exact":if(a==c&&""!=a)return j;break;case "prefix":if(0==a.indexOf(c))return j;break;case "regex":try{var d=RegExp(c)}catch(e){break}if(d.test(a))return j;break;case "cidr":try{var f;a:{var g=new Rg(c),l=Sg(a);l===k&&h(Error("Invalid ip: "+a));for(c=0;4>c;c++)if((l[c]&g.Y[c])!==g.Z[c]){f=o;break a}f=j}return f}catch(m){}}return o}function Tg(a,b){var c=b.value;return"any"===c||0===a.indexOf(c)} function Ug(a,b){if(a===k)return o;var c=b.value.split("|"),d=$.trim(c[0]),e=$.trim(c[1]),f=$.trim(c[2]),g=$.trim(c[3]);switch(c.length){case 1:if(a.country===d)return j;break;case 2:if(a.region===e&&a.country===d)return j;break;case 3:if(a.city===f&&(a.region===e||""===e)&&a.country===d)return j;break;case 4:if(a.continent===g)return j}return o}function Vg(a,b){return Og(b.value,b.match,a)} function Wg(a,b){var c=b.value,d=b.match;M("Condition","Testing referrer "+a+" against "+c+" ("+d+")",j);return Xg(a,c,d)}function Yg(a){return!!a}function Zg(a){var b=Z.J();return D(a.values,t(Jg,b))}function Jg(a,b){var c=b.value,d=b.match;M("Condition","Testing URL "+a+" against "+c+" ("+d+")",j);return Xg(a,c,d)}function $g(a,b){switch(b.value){case "new":if("returning"===a)return o;break;case "returning":return"returning"===a}return j} function ug(a,b){var c={and:function(b){return Xa(b,t(ug,a))},or:function(b){return D(b,t(ug,a))},not:function(b){1!==b.length&&h(Error('"not" argument too long: '+u(b)));return!ug(a,b[0])}};if(F(b)){if(b[0]in c)return c[b[0]](b.slice(1));h(Error("Not an operator"))}var c=b.dimension_id,d=zb(c),e=b.value;d||h(Error("No dimension type for dimension: "+c));var f=ah[d];f||h(Error("Unknown dimension type: "+d));d=i;if(a.t.hasOwnProperty(c))d=a.t[c];else try{var g=zb(c)||"",l,m;z("dimensions",c)||h(Error("Unable to find dimension for id: "+ c));"custom_dimension"===g&&h(Error("calculateDimensionValue called on custom dimension "+c));(l={browser:p(Z.u,Z),browser_version:p(Z.u,Z),behavior:p(Z.Ia,Z),campaign:t(dg,"campaign"),cookies:p(Z.I,Z),custom_tag:p(Z.ja,Z),default_behavior:p(Z.Na,Z),device:p(Z.K,Z),event:p(Z.Aa,Z),first_session:p(Z.Qa,Z),has_ppid:p(Z.Xa,Z),ip:p(Z.W,Z),language:p(Z.V,Z),list:p(Z.ma,Z),location:p(Z.L,Z),query:p(Z.j,Z),platform:p(Z.pa,Z),referrer:p(Z.X,Z),segment:p(Z.Ya,Z),source_type:t(dg,"source_type"),third_party_dimension:p(Z.Va, Z),time_and_day:p(Z.getDate,Z),url:p(Z.J,Z),visitor:p(Z.na,Z),dynamic_customer_profile:p(Z.ka,Z)}[g])&&(m=l(Ab(c)));M("Visitor","Got dimension ("+g+") value "+c+": "+u(m));d=m}catch(n){M("Visitor","Error: "+n.message)}return f(d,{value:e,match:b.match||"exact"})} function Cd(a){var b=j;!O(a,"conditions")&&!cc(a,"add_condition")?(b=[cc(a,"audience_id")],b[0]||(b=O(a,"audiences")||[]),b=Xa(b,function(a){a=ub(a);return!a.conditions?j:bh(a.conditions)})):(O(a,"uses_geotargeting")||cc(a,"uses_geotargeting"))&&(b=ch.ip(k)||ch.location(k));b||M("Condition","Not ready to test (geotargeting): "+a);return b}function bh(a){if(F(a))return Xa(a.slice(1),bh);var b=zb(a.dimension_id)||"";return(b=ch[b])?b(a):j} var Ig={browser:function(a){var b=Z.u();return D(a.values,function(a){return Lg(b,{value:a})})},code:function(a){return Hf(0,a)},cookies:function(a){for(var b=a.names||[],a=a.values||[],c,d=0;d=Kg(a.version,c[1]):0===Kg(a.version,c[0]):o},referrer:Wg,segment:Yg,source_type:function(a,b){return b.value===a},time_and_day:function(a,b){var c,d,e;c=b.value;e=c.split("_");3!==e.length&&h(Error("Invalid time and day string "+c));c=e[0];d=e[1];e=e[2].split(",");c=Gg(c);d=Gg(d);var f=60*a.getHours()+ a.getMinutes(),g="sunday monday tuesday wednesday thursday friday saturday".split(" ")[a.getDay()];return f>=c&&f<=d&&-1!==$.inArray(g,e)},third_party_dimension:function(a,b){return F(a)?D(a,t(Og,b.value,b.match)):Og(b.value,b.match,a)},url:Jg,visitor:$g,dynamic_customer_profile:function(a,b){return a===k?o:!!a[b.value]},has_ppid:aa()},ch={ip:function(){T("checkGeo");return Z.W()!==k},location:function(){T("checkGeo");return Z.L()!==k},list:function(a){return Z.ma(Ab(a.dimension_id)||"")!==k},dynamic_customer_profile:function(a){var b= Z.ka();return ab(b)&&a.value in b}};function Og(a,b,c){var d=H(c)&&c!==k,e=H(a)&&a!==k;switch(b||(e?"exact":"exists")){case "exists":return d;case "exact":return d&&String(c)===a;case "substring":return d&&-1!==String(c).indexOf(a);case "regex":try{return e&&d?Boolean(String(c).match(RegExp(a))):o}catch(f){return o}case "range":return a=a.split(":"),b=parseFloat(a[1]),c=parseFloat(c),c>=parseFloat(a[0])&&c<=b;default:return o}};var dh=[function(){var a=jc();if("ie"===a.ba){try{var b=Number(a.ca)}catch(c){return}7>b&&h(Error("IE is only supported on version 8+ (detected "+b+")"));8>b&&("windows"===a.platform.id&&a.platform.version&&E(["xp","vista"],a.platform.version.toLowerCase()))&&h(Error("IE7 is not supported"))}},function(){return ea(u({a:123}))}];function ue(a,b,c){var d;d=o===j;var c=c===j,e=o,f=P(a);if(f&&(c||!Hg(f))){e=j;if(c&&Hg(f))for(c=0;c"+ n+"")},selector:"body",type:"global css (experiment "+a+")",waitUntilSelectorReady:j});if(c=O(a,"steps")){w(c.forced,function(a){f.push(a)});w(c.safe,function(a){l.push(a)})}else(c=O(a,"code")||"")&&fh(c,f,l)});w(d,function(a){var b=z("variations",a,"pages");if(b)w(b,function(a){if(a.steps&&(!a.includes||Zg({values:a.includes}))&&(!a.excludes||!Zg({values:a.excludes}))){f.push.apply(f,a.steps.forced);l.push.apply(l,a.steps.safe)}});else{for(var b=Ub(a),b=b.split("\n"),c=[],d=j,e=0,g=b.length;e< g;e++){var m=$.trim(b[e]);if(m==="/* _optimizely_variation_url_end */")d=j;else if(m!==""){var n=Ea.exec(m);if(n&&n.length===13){var q=n[2]?n[2].split(" "):[],m=n[4]?n[4].split(" "):[],r=n[6]?n[6]:"substring",gf=n[8]?n[8].split(" "):[],n=n[10]?n[10].split(" "):[];if(q.length>0){d=jh(q,gf,r);d=Zg(d)}if(d&&m.length>0){d=jh(m,n,r);d=!Zg(d)}}else d&&c.push(m)}}b=c.join("\n");fh(b,f,l,a)}});c=[];c.push.apply(c,f);c.push.apply(c,g);c.push.apply(c,l);c.push.apply(c,e);oh.push.apply(oh,c);qh()}} function qh(){var a=o;rh=k;for(M("Evaluator",sh+" times waited");!a&&0body{display:none;visibility:hidden;}");M("Evaluator", "Hiding body before redirect");var f=de.test(d)||ce.test(d)||ee.test(d),g=/_keep_body_hidden=(\S+)/.test(d);f||g?M("Evaluator","Standard redirect detected - Will not unhide body."):setTimeout(function(){if(document.body){document.body.style.visibility="visible";document.body.style.display="block";M("Evaluator","Unhiding body -- did not redirect");T("bodyUnhidden")}},1700)}Mg(a)}catch(l){c=Pa,Pa=j,M("Evaluator","Error: "+l.message),M("Evaluator","Code: "+d),Pa=c,M("Evaluator","Failed to run code: "+ l.message)}}} function nh(a,b,c){c=c||{};if(!vh[a]||!vh[a][b]){var d=function(){Jd(b,"custom",c)},e=$(a);if(0b||32b||32d;d++)c[d]=0;for(var e=Math.floor(b/8),d=0;de&&(c[e]=zh[b%8]);b=c}for(c=0;4>c;c++)a[c]&=b[c];return{Z:a,Y:b}} function Sg(a){a=a.split(".");if(4!=a.length)return k;for(var b=[],c=0;4>c;c++){var d;d=a[c];if(3e||255loading')}}else if(Oa&&!Ma)Qf("This preview link has expired. Please return to Optimizely and preview again to get a new link.");else{if(B||Ha)if(f= z("project_js"))M("Evaluator","Running project level javascript."),uh(f);he();if(B){f=v("optimizelyEndUserId");uc=f!==i&&f!==k;a:{f="googlebot;yahoo! slurp;bingbot;bingpreview;msnbot;keynote;ktxn;khte;gomezagent;alertsite;yottaamonitor;pingdom.com_bot;aihitbot;baiduspider;adsbot-google;mediapartners-google;applebot".split(";");g=navigator.userAgent;g=g.toLowerCase();for(n=0;n=200&&d.status<300){var a=Pc.get()||{},b=a.aliases||{},b=b||{}; w(c,function(a){b[a.datasourceId]=a.id});a.aliases=b;Pc.set(a)}else M("DCP","Alias POST failed with",d.statusText)};d.send(u({data:e}))}catch(f){M("DCP","Exception %s trying to POST alias request",f)}}else M("DCP","Duplicate alias request; skipping.");else M("DCP","Must specify Optimizely datasource in alias")}},0);if(q=v("optimizelyBuckets")){try{q=ea(q)}catch(G){q={}}var A={};w(q,function(a,b){var b=String(b),c=P(b);if(Ob(c).length>1&&b.indexOf("_")===-1){A[c]=A[c]||{};A[c][a]=b}else b!=="0"?ue(b, "cookie")||(Qe[a]=b):Cf(a)});w(A,function(a,b){var c;a:{c=[];for(var d=Ob(a),e=0;e0?ue(c,"cookie"):Cf(a)})}Vf();pd=(v("optimizelyRedirect")||"|").split("|")[0];q=v("optimizelyReferrer");q!==k&&(Uc=0==q.length?"":q,y("optimizelyReferrer",""));q=Wf;M("Visitor","Initializing");(f=v("optimizelyAudiences"))&&050&&(r=r.substr(0,50)+"..."),a.groupCollapsed("DISPATCH: "+e+" | "+r),a.logAlways("payload: ",t)}},t.onPostAction=function(e,t){a.shouldLog(i(e))&&(a.logAlways("stores:",this.getState()),a.groupEnd())}},function(e,t,n){var i=n(3);t.COOKIES={OPT_OUT:"optimizelyOptOut",PREVIEW:"optimizelyPreview",REDIRECT:"optimizelyRedirectData",SESSION_STATE:"optimizelySessionState",TOKEN:"optimizelyToken",VISITOR_ID:"optimizelyEndUserId",VISITOR_UUID:"optimizelyPPID"},t.LayerActivationTypes={CONDITIONAL:"conditional",IMMEDIATE:"immediate",MANUAL:"manual",READY:"ready",TIMEOUT:"timeout"},t.LogLevel={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,ALL:5},t.Lifecycle=i({preActivate:null,postVisitorProfileLoad:null,postViewsActivated:null,postActivate:null}),t.ViewActivationTypes=i({immediate:null,manual:null,callback:null,polling:null}),t.StorageKeys={PENDING_EVENTS:"pending_events"},t.PluginTypes=i({visitorProfileProviders:null,viewProviders:null,audienceMatchers:null,viewMatchers:null,analyticsTrackers:null,viewTagLocators:null,userFeatureDefs:null,apiModules:null,changeAppliers:null,deciders:null,eventImplementations:null}),t.ResourceTimingAttributes=i({connectStart:null,connectEnd:null,decodedBodySize:null,domainLookupStart:null,domainLookupEnd:null,duration:null,encodedBodySize:null,fetchStart:null,requestStart:null,responseStart:null,responseEnd:null,secureConnectionStart:null,startTime:null,transferSize:null}),t.AttributionTypes=i({FIRST_TOUCH:null,LAST_TOUCH:null}),t.SandboxedFunctions=i({XMLHttpRequest:null}),t.PerformanceData=i({performance_marks:null,resource_timing:null,performance_timing:null}),t.VisitorStorageKeys={EVENTS:"events",EVENT_QUEUE:"event_queue",LAYER_STATES:"layer_states",SESSION_STATE:"session_state",VISITOR_PROFILE:"visitor_profile",VARIATION_MAP:"variation_map"}},function(e,t){"use strict";var n=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=n},function(e,t,n){function i(e){e=a.extend({logLevel:"ERROR",logMatch:""},e),this.setLogMatcher(e.logMatch),this.setLogLevel(e.logLevel),this.logs=[],this.timebase=s.now()}function r(){var e=u.getQueryParamValue("optimizely_log");if(e){var t=e.split(":"),n=""===t[0]?"OFF":String(t[0]).toUpperCase(),i="undefined"==typeof t[1]?"":t[1];return{logLevel:n,logMatch:i}}return{logLevel:"OFF",logMatch:""}}var a=n(5),o=n(2),s=n(8),u=n(9),c=n(11),l=n(14),d=n(15);i.prototype.setLogLevel=function(e){var t=this.e(e),n=this.logLevel;null===t?console.error("Unknown log level: "+e):(this.logLevel=t,this.logLevel>o.LogLevel.OFF&&(console.log("Setting log level to "+t),a.isUndefined(n)||this.flush()))},i.prototype.setLogMatcher=function(e){a.isString(e)?this.logMatcher=e:this.logMatcher="",this.logGroup=0},i.prototype.shouldLog=function(e){return this.logLevel>=e},i.prototype.matchesLogMessage=function(e,t){var n=this.logMatcher;if(!this.logMatcher)return!0;if(this.logGroup)return"GROUPSTART"===e?this.logGroup++:"GROUPEND"===e&&this.logGroup--,!0;var i=a.some(t,function(e){if(!a.isString(e))try{e=d.stringify(e)}catch(t){}return a.isString(e)&&a.includes(e,n)});return i&&"GROUPSTART"===e&&this.logGroup++,i},i.prototype.storeLog=function(e,t){var n={logLevel:e,logMessage:t};c.dispatch(l.LOG,n)},i.prototype.flush=function(){var e=n(16),t=e.get("stores/log");this.logGroup=0;var i=t.getLogs();a.each(i,function(e){this.t(e.logLevel,e.logMessage,!0)}.bind(this))},i.prototype.t=function(e,t,n){var i,r=e;if(console)switch(e){case"GROUPSTART":i=console.groupCollapsed,r=o.LogLevel.DEBUG;break;case"GROUPEND":i=console.groupEnd,r=o.LogLevel.DEBUG;break;case o.LogLevel.ERROR:i=console.error;break;case o.LogLevel.WARN:i=console.warn;break;case o.LogLevel.DEBUG:i=console.debug;break;default:i=console.log}try{n||(a.isArray(t)&&a.isString(t[0])&&(t=this.i(t)),this.storeLog(e,t)),i&&this.shouldLog(r)&&this.matchesLogMessage(e,t)&&i.apply(console,t)}catch(s){console&&(console.error?console.error(s):console.log(s))}},i.prototype.debug=function(){this.t(o.LogLevel.DEBUG,[].slice.call(arguments))},i.prototype.log=function(){this.t(o.LogLevel.INFO,[].slice.call(arguments))},i.prototype.logAlways=function(){var e=this.i([].slice.call(arguments));console&&console.log&&console.log.apply&&console.log.apply(console,e),this.storeLog(o.LogLevel.INFO,e)},i.prototype.warn=function(){this.t(o.LogLevel.WARN,[].slice.call(arguments))},i.prototype.error=function(e){var t=[].slice.call(arguments);1===t.length&&e.stack?(this.t(o.LogLevel.ERROR,[this.a(),e]),this.t(o.LogLevel.INFO,[e.stack])):this.t(o.LogLevel.ERROR,t)},i.prototype.groupCollapsed=function(){this.t("GROUPSTART",[].slice.call(arguments))},i.prototype.groupEnd=function(){this.t("GROUPEND",[].slice.call(arguments))},i.prototype.i=function(e){var t=this.a().toString();return t.length<6&&(t=(" "+t).slice(-6)),[t+"| Optly / "+e[0]].concat(e.slice(1))},i.prototype.a=function(){return this.timebase?s.now()-this.timebase:0},i.prototype.e=function(e){return e&&(e=e.toUpperCase(),"TRUE"===e&&(e="INFO"),"FALSE"===e&&(e="OFF"),!a.isUndefined(o.LogLevel[e]))?o.LogLevel[e]:null},e.exports=new i(r())},function(e,t,n){e.exports=n(6)._.noConflict()},function(e,t,n){(function(e,n){(function(){function i(e,t){return e.set(t[0],t[1]),e}function r(e,t){return e.add(t),e}function a(e,t){return u(De(e),dn)}function o(e,t){return!!e.length&&d(e,t,0)>-1}function s(e,t,n){for(var i=-1,r=e.length;++it&&!a||!r||n&&!o&&s||i&&s)return 1;if(t>e&&!n||!s||a&&!i&&r||o&&r)return-1}return 0}function E(e){return fi[e]}function m(e,t,n){for(var i=e.length,r=t+(n?0:-1);n?r--:++r-1&&e%1==0&&t>e}function S(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function A(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}function T(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function w(e){if(Bt(e)&&!cr(e)){if(e instanceof D)return e;if(wi.call(e,"__wrapped__"))return et(e)}return new D(e)}function D(e,t){this.u=e,this.l=[],this.d=!!t}function b(){}function O(e,t){return L(e,t)&&delete e[t]}function R(e,t){if(Ki){var n=e[t];return n===Dn?Sn:n}return wi.call(e,t)?e[t]:Sn}function L(e,t){return Ki?e[t]!==Sn:wi.call(e,t)}function N(e,t,n){e[t]=Ki&&n===Sn?Dn:n}function P(e){var t=-1,n=e?e.length:0;for(this.clear();++tn)return!1;var i=e.length-1;return n==i?e.pop():Gi.call(e,n,1),!0}function W(e,t){var n=X(e,t);return 0>n?Sn:e[n][1]}function Q(e,t){return X(e,t)>-1}function X(e,t){for(var n=e.length;n--;)if(Ot(e[n][0],t))return n;return-1}function $(e,t,n){var i=X(e,t);0>i?e.push([t,n]):e[i][1]=n}function J(e,t,n,i){return e===Sn||Ot(e,Ai[n])&&!wi.call(i,n)?t:e}function Z(e,t,n){(n===Sn||Ot(e[t],n))&&("number"!=typeof t||n!==Sn||t in e)||(e[t]=n)}function ee(e,t,n){var i=e[t];wi.call(e,t)&&Ot(i,n)&&(n!==Sn||t in e)||(e[t]=n)}function te(e,t){return e&&tr(t,an(t),e)}function ne(e){return"function"==typeof e?e:pn}function ie(e,t,n,i,r,a,o){var s;if(i&&(s=a?i(e,r,a,o):i(e)),s!==Sn)return s;if(!Gt(e))return e;var u=cr(e);if(u){if(s=We(e),!t)return De(e,s)}else{var c=Ke(e),l=c==Mn||c==Un;if(lr(e))return Re(e,t);if(c==jn||c==Vn||l&&!a){if(I(e))return a?e:{};if(s=Qe(l?{}:e),!t)return s=te(s,e),n?xe(e,s):s}else{if(!di[c])return a?e:{};s=Xe(e,c,t)}}o||(o=new B);var d=o.get(e);return d?d:(o.set(e,s),(u?Zi:de)(e,function(r,a){ee(s,a,ie(r,t,n,i,a,e,o))}),n&&!u?xe(e,s):s)}function re(e){return Gt(e)?Mi(e):{}}function ae(e,t,n){if("function"!=typeof e)throw new TypeError(wn);return setTimeout(function(){e.apply(Sn,n)},t)}function oe(e,t,n,i){var r=-1,a=o,u=!0,c=e.length,l=[],d=t.length;if(!c)return l;n&&(t=Ee(t,p(n))),i?(a=s,u=!1):t.length>=Tn&&(a=U,u=!1,t=new M(t));e:for(;++r0&&Pt(o)&&(n||cr(o)||Lt(o))?t>1?ce(o,t-1,n,i):u(i,o):n||(i[i.length]=o)}return i}function le(e,t){return null==e?e:er(e,t,on)}function de(e,t){return e&&er(e,t,an)}function fe(e,t){return ue(t,function(t){return Mt(e[t])})}function ge(e,t,n,i,r){return e===t?!0:null==e||null==t||!Gt(e)&&!Bt(t)?e!==e&&t!==t:pe(e,t,ge,n,i,r)}function pe(e,t,n,i,r,a){var o=cr(e),s=cr(t),u=Cn,c=Cn;o||(u=Oi.call(e),u=u==Vn?jn:u),s||(c=Oi.call(t),c=c==Vn?jn:c);var l=u==jn&&!I(e),d=c==jn&&!I(t),f=u==c;a||(a=[]);var g=pt(a,function(t){return t[0]===e});if(g&&g[1])return g[1]==t;if(a.push([e,t]),f&&!l){var p=o||Qt(e)?ze(e,t,n,i,r,a):He(e,t,u,n,i,r,a);return a.pop(),p}if(!(r&Ln)){var v=l&&wi.call(e,"__wrapped__"),h=d&&wi.call(t,"__wrapped__");if(v||h){var p=n(v?e.value():e,h?t.value():t,i,r,a);return a.pop(),p}}if(!f)return!1;var p=Ye(e,t,n,i,r,a);return a.pop(),p}function ve(e){var t=typeof e;return"function"==t?e:null==e?pn:("object"==t?me:Te)(e)}function he(e){return ji(Object(e))}function _e(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function Ee(e,t){var n=-1,i=Nt(e)?Array(e.length):[];return Zi(e,function(e,r,a){i[++n]=t(e,r,a)}),i}function me(e){var t=an(e);return function(n){var i=t.length;if(null==n)return!i;for(n=Object(n);i--;){var r=t[i];if(!(r in n&&ge(e[r],n[r],Sn,Rn|Ln)))return!1}return!0}}function Ie(e,t,n,i,r){if(e!==t){var a=cr(t)||Qt(t)?Sn:on(t);Zi(a||t,function(o,s){if(a&&(s=o,o=t[s]),Gt(o))r||(r=new B),ye(e,t,s,n,Ie,i,r);else{var u=i?i(e[s],o,s+"",e,t,r):Sn;u===Sn&&(u=o),Z(e,s,u)}})}}function ye(e,t,n,i,r,a,o){var s=e[n],u=t[n],c=o.get(u);if(c)return void Z(e,n,c);var l=a?a(s,u,n+"",e,t,o):Sn,d=l===Sn;d&&(l=u,cr(u)||Qt(u)?cr(s)?l=s:Pt(s)?l=De(s):(d=!1,l=ie(u,!a)):qt(u)||Lt(u)?Lt(s)?l=Zt(s):!Gt(s)||i&&Mt(s)?(d=!1,l=ie(u,!a)):l=s:d=!1),o.set(u,l),d&&r(l,u,i,a,o),o["delete"](u),Z(e,n,l)}function Se(e,t){return e=Object(e),Et(t,function(t,n){return n in e&&(t[n]=e[n]),t},{})}function Ae(e,t){var n={};return le(e,function(e,i){t(e,i)&&(n[i]=e)}),n}function Te(e){return function(t){return null==t?Sn:t[e]}}function we(e,t,n){var i=-1,r=e.length;0>t&&(t=-t>r?0:r+t),n=n>r?r:n,0>n&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i1?n[r-1]:Sn;for(a="function"==typeof a?(r--,a):Sn,t=Object(t);++ic))return!1;for(var d=!0;++on?zi(i+n,0):n:0;for(var r=(n||0)-1,a=t===t;++rn&&(n=zi(r+n,0)),Wt(e)?r>=n&&e.indexOf(t,n)>-1:!!r&&d(e,t,n)>-1}function _t(e,t){return Ee(e,ve(t))}function Et(e,t,n){return f(e,ve(t),n,arguments.length<3,Zi)}function mt(e){return null==e?0:(e=Nt(e)?e:an(e),e.length)}function It(e,t,n){return t=n?Sn:t,be(e,ve(t))}function yt(e,t){var n=0;return t=ve(t),Ee(Ee(e,function(e,i,r){return{value:e,index:n++,criteria:t(e,i,r)}}).sort(function(e,t){return _(e.criteria,t.criteria)||e.index-t.index}),Te("value"))}function St(e,t){var n;if("function"!=typeof t)throw new TypeError(wn);return e=dr(e),function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=Sn),n}}function At(e){if("function"!=typeof e)throw new TypeError(wn);return function(){return!e.apply(this,arguments)}}function Tt(e){return St(2,e)}function wt(e,t){if("function"!=typeof e)throw new TypeError(wn);return t=zi(t===Sn?e.length-1:dr(t),0),function(){for(var n=arguments,i=-1,r=zi(n.length-t,0),a=Array(r);++it}function Lt(e){return Pt(e)&&wi.call(e,"callee")&&(!Ui.call(e,"callee")||Oi.call(e)==Vn)}function Nt(e){return null!=e&&Ut(nr(e))&&!Mt(e)}function Pt(e){return Bt(e)&&Nt(e)}function Vt(e){return e===!0||e===!1||Bt(e)&&Oi.call(e)==Fn}function Ct(e){return Bt(e)&&Oi.call(e)==kn}function Ft(e){if(Nt(e)&&(cr(e)||Wt(e)||Mt(e.splice)||Lt(e)))return!e.length;for(var t in e)if(wi.call(e,t))return!1;return!0}function kt(e,t){return ge(e,t)}function xt(e){return"number"==typeof e&&Bi(e)}function Mt(e){var t=Gt(e)?Oi.call(e):"";return t==Mn||t==Un}function Ut(e){return"number"==typeof e&&e>-1&&e%1==0&&Pn>=e}function Gt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Bt(e){return!!e&&"object"==typeof e}function jt(e){return Yt(e)&&e!=+e}function zt(e){return null==e?!1:Mt(e)?Li.test(Ti.call(e)):Bt(e)&&(I(e)?Li:ui).test(e)}function Ht(e){return null===e}function Yt(e){return"number"==typeof e||Bt(e)&&Oi.call(e)==Bn}function qt(e){if(!Bt(e)||Oi.call(e)!=jn||I(e))return!1;var t=ki(e);if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&Ti.call(n)==bi}function Kt(e){return Gt(e)&&Oi.call(e)==zn}function Wt(e){return"string"==typeof e||!cr(e)&&Bt(e)&&Oi.call(e)==Yn}function Qt(e){return Bt(e)&&Ut(e.length)&&!!li[Oi.call(e)]}function Xt(e){return e===Sn}function $t(e,t){return t>e}function Jt(e){return Nt(e)?e.length?De(e):[]:dn(e)}function Zt(e){return tr(e,on(e))}function en(e){return"string"==typeof e?e:null==e?"":e+""}function tn(e,t){var n=re(e);return t?gr(n,t):n}function nn(e,t){return e&&de(e,ne(t))}function rn(e,t){return null!=e&&wi.call(e,t)}function an(e){var t=Ze(e);if(!t&&!Nt(e))return he(e);var n=$e(e),i=!!n,r=n||[],a=r.length;for(var o in e)!wi.call(e,o)||i&&("length"==o||y(o,a))||t&&"constructor"==o||r.push(o);return r}function on(e){for(var t=-1,n=Ze(e),i=_e(e),r=i.length,a=$e(e),o=!!a,s=a||[],u=s.length;++t"'`]/g,ai=RegExp(ri.source),oi=/[\\^$.*+?()[\]{}|]/g,si=/\w*$/,ui=/^\[object .+?Constructor\]$/,ci=/^(?:0|[1-9]\d*)$/,li={};li[Qn]=li[Xn]=li[$n]=li[Jn]=li[Zn]=li[ei]=li[ti]=li[ni]=li[ii]=!0,li[Vn]=li[Cn]=li[Wn]=li[Fn]=li[kn]=li[xn]=li[Mn]=li[Gn]=li[Bn]=li[jn]=li[zn]=li[Hn]=li[Yn]=li[Kn]=!1;var di={};di[Vn]=di[Cn]=di[Wn]=di[Fn]=di[kn]=di[Qn]=di[Xn]=di[$n]=di[Jn]=di[Zn]=di[Gn]=di[Bn]=di[jn]=di[zn]=di[Hn]=di[Yn]=di[qn]=di[ei]=di[ti]=di[ni]=di[ii]=!0,di[xn]=di[Mn]=di[Kn]=!1;var fi={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},gi={"function":!0,object:!0},pi=gi[typeof t]&&t&&!t.nodeType?t:Sn,vi=gi[typeof e]&&e&&!e.nodeType?e:Sn,hi=vi&&vi.exports===pi?pi:Sn,_i=h(pi&&vi&&"object"==typeof n&&n),Ei=h(gi[typeof self]&&self),mi=h(gi[typeof window]&&window),Ii=h(gi[typeof this]&&this),yi=_i||mi!==(Ii&&Ii.window)&&mi||Ei||Ii||Function("return this")(),Si=Array.prototype,Ai=Object.prototype,Ti=Function.prototype.toString,wi=Ai.hasOwnProperty,Di=0,bi=Ti.call(Object),Oi=Ai.toString,Ri=yi._,Li=RegExp("^"+Ti.call(wi).replace(oi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ni=hi?yi.Buffer:Sn,Pi=yi.Reflect,Vi=yi.Symbol,Ci=yi.Uint8Array,Fi=Pi?Pi.enumerate:Sn,ki=Object.getPrototypeOf,xi=Object.getOwnPropertySymbols,Mi=Object.create,Ui=Ai.propertyIsEnumerable,Gi=Si.splice,Bi=yi.isFinite,ji=Object.keys,zi=Math.max,Hi=qe(yi,"Map"),Yi=qe(yi,"Set"),qi=qe(yi,"WeakMap"),Ki=qe(Object,"create"),Wi=Hi?Ti.call(Hi):"",Qi=Yi?Ti.call(Yi):"",Xi=qi?Ti.call(qi):"",$i=Vi?Vi.prototype:Sn,Ji=$i?$i.valueOf:Sn,Zi=Ue(de),er=Ge();Fi&&!Ui.call({valueOf:1},"valueOf")&&(_e=function(e){return S(Fi(e))});var tr=ke,nr=Te("length"),ir=xi||function(){return[]};(Hi&&Ke(new Hi)!=Gn||Yi&&Ke(new Yi)!=Hn||qi&&Ke(new qi)!=Kn)&&(Ke=function(e){var t=Oi.call(e),n=t==jn?e.constructor:null,i="function"==typeof n?Ti.call(n):"";if(i)switch(i){case Wi:return Gn;case Qi:return Hn;case Xi:return Kn}return t});var rr=wt(function(e,t){return cr(e)||(e=null==e?[]:[Object(e)]),t=ce(t,1),a(e,t)}),ar=wt(function(e,t,n){return je(e,bn|On,t,n)}),or=wt(function(e,t){return ae(e,1,t)}),sr=wt(function(e,t,n){return ae(e,fr(t)||0,n)}),ur=wt(function(e,t){return je(e,On,Sn,t)}),cr=Array.isArray,lr=Ni?function(e){return e instanceof Ni}:gn(!1),dr=Number,fr=Number,gr=Me(function(e,t){tr(t,an(t),e)}),pr=Me(function(e,t){tr(t,on(t),e)}),vr=Me(function(e,t,n,i){ke(t,on(t),e,i)}),hr=wt(function(e){return e.push(Sn,J),vr.apply(Sn,e)}),_r=Me(function(e,t,n){Ie(e,t,n)}),Er=wt(function(e,t){return null==e?{}:(t=Ee(ce(t,1),String),Se(e,oe(on(e),t)))}),mr=wt(function(e,t){return null==e?{}:Se(e,ce(t,1))}),Ir=ve;D.prototype=re(w.prototype),D.prototype.constructor=D,b.prototype=Ki?Ki(null):Ai,P.prototype.clear=V,P.prototype["delete"]=C,P.prototype.get=F,P.prototype.has=k,P.prototype.set=x,M.prototype.push=G,B.prototype.clear=j,B.prototype["delete"]=z,B.prototype.get=H,B.prototype.has=Y,B.prototype.set=q,w.assign=gr,w.assignIn=pr,w.before=St,w.bind=ar,w.chain=ut,w.compact=tt,w.concat=rr,w.create=tn,w.defaults=hr,w.defer=or,w.delay=sr,w.filter=gt,w.flatten=nt,w.flattenDeep=it,w.iteratee=Ir,w.keys=an,w.map=_t,w.mapValues=sn,w.matches=vn,w.merge=_r,w.mixin=hn,w.negate=At,w.omit=Er,w.omitBy=un,w.once=Tt,w.partial=ur,w.pick=mr,w.pickBy=cn,w.slice=st,w.sortBy=yt,w.tap=ct,w.thru=lt,w.toArray=Jt,w.values=dn,w.extend=pr,hn(w,w),w.clone=Dt,w.cloneDeep=bt,w.escape=fn,w.every=ft,w.find=pt,w.forEach=vt,w.forOwn=nn,w.has=rn,w.head=rt,w.identity=pn,w.includes=ht,w.indexOf=at,w.isArguments=Lt,w.isArray=cr,w.isBoolean=Vt,w.isDate=Ct,w.isEmpty=Ft,w.isEqual=kt,w.isFinite=xt,w.isFunction=Mt,w.isNaN=jt,w.isNull=Ht,w.isNumber=Yt,w.isObject=Gt,w.isRegExp=Kt,w.isString=Wt,w.isUndefined=Xt,w.last=ot,w.max=In,w.min=yn,w.noConflict=_n,w.noop=En,w.reduce=Et,w.result=ln,w.size=mt,w.some=It,w.uniqueId=mn,w.each=vt,w.first=rt,hn(w,function(){var e={};return de(w,function(t,n){wi.call(w.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),w.VERSION=An,Zi(["pop","join","replace","reverse","split","push","shift","sort","splice","unshift"],function(e){var t=(/^(?:replace|split)$/.test(e)?String.prototype:Si)[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|join|replace|shift)$/.test(e);w.prototype[e]=function(){var e=arguments;return i&&!this.d?t.apply(this.value(),e):this[n](function(n){return t.apply(n,e)})}}),w.prototype.toJSON=w.prototype.valueOf=w.prototype.value=dt,(mi||Ei||{})._=w,pi&&vi&&(hi&&((vi.exports=w)._=w),pi._=w)}).call(this)}).call(t,n(7)(e),function(){return this}())},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){t.now=function(){return+new Date}},function(e,t,n){var i=n(5),r=n(10);t.getQueryParams=function(){var e=r.getLocationSearch()||"";if(0===e.indexOf("?")&&(e=e.substring(1)),0===e.length)return[];for(var t=e.split("&"),n=[],i=0;i0&&(a=s[0]),s.length>1&&(o=s[1]),n.push([a,o])}return n},t.getQueryParamValue=function(e){for(var n=t.getQueryParams(),i=0;i-1&&(t.splice(n,1),this.emitChange())}else this.P[e.lifecycle]=[],this.emitChange()}}},function(e,t,n){var i=n(14),r=31536e4;e.exports={initialize:function(){this.P={currentDomain:null,defaultAgeSeconds:r},this.on(i.SET_COOKIE_DOMAIN,this.j),this.on(i.SET_COOKIE_AGE,this.z)},getCurrentDomain:function(){return this.P.currentDomain},getDefaultAgeInSeconds:function(){return this.P.defaultAgeSeconds},j:function(e){this.P.currentDomain=e,this.emitChange()},z:function(e){this.P.defaultAgeSeconds=e,this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.C)},getAll:function(){return i.cloneDeep(i.values(this.P))},get:function(e){return i.cloneDeep(this.P[e])},getByApiName:function(e){return i.find(i.values(this.P),{apiName:e})},getByViewId:function(e){return i.cloneDeep(i.filter(this.P,{viewId:e}))},C:function(e){i.isEmpty(e.data.events)||(i.each(e.data.events,function(e){this.P[e.id]=e}.bind(this)),this.emitChange())}}},function(e,t,n){function i(e){var t=[];return e&&r.isObject(e)?(e.type&&t.push(e.type),t.push(o),e.type&&e.name&&t.push(e.name),t.join("")):o}var r=n(5),a=n(14),o="|";e.exports={initialize:function(){this.P={handlers:{}},this.on(a.ADD_EMITTER_HANDLER,this.H),this.on(a.REMOVE_EMITTER_HANDLER,this.Y)},getHandlers:function(e,t){var n=[null,{type:e.type},{type:e.type,name:e.name}],a=[];return r.each(n,function(e){var t=i(e),n=this.P.handlers[t];n&&(a=a.concat(n))}.bind(this)),t&&(a=r.filter(a,function(e){return!e.publicOnly})),r.map(a,function(e){return e.handler})},H:function(e){var t=i(e.filter);this.P.handlers[t]||(this.P.handlers[t]=[]),this.P.handlers[t].push({handler:e.handler,token:e.token,publicOnly:!!e.publicOnly}),this.emitChange()},Y:function(e){var t=!1,n=e.token;r.forOwn(this.P.handlers,function(e,i){r.each(e,function(i,r){i.token===n&&(t=!0,e.splice(r,1))})}),t&&this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.C)},C:function(e){i.isEmpty(e.data.dimensions)||(i.each(e.data.dimensions,function(e){this.P[e.id]=e}.bind(this)),this.emitChange())},getAll:function(){return i.cloneDeep(i.values(this.P))},getById:function(e){return i.cloneDeep(this.P[e])},getByApiName:function(e){return i.cloneDeep(i.find(i.values(this.P),{apiName:e}))}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={disabled:!1,forceAudienceIds:[],forceVariationIds:[],isEditor:!1,isPreview:!1,isLegacyPreview:!1,isSlave:!1,previewLayerIds:[],projectToken:null,shouldOptOut:!1,trackingDisabled:!1,isRunningInV2Editor:!1,isRunningInDesktopApp:!1,forceTracking:!1},this.on(r.LOAD_DIRECTIVE,this.q)},getAll:function(){return i.cloneDeep(this.P)},isDisabled:function(){return this.P.disabled},isEditor:function(){return this.P.isEditor},getForceAudienceIds:function(){return this.P.forceAudienceIds},getForceVariationIds:function(){return this.P.forceVariationIds},getPreviewLayerIds:function(){return this.P.previewLayerIds},getProjectToken:function(){return this.P.projectToken},getForceTracking:function(){return this.P.forceTracking},shouldActivate:function(){return!this.P.isEditor&&!this.isDisabled()},shouldBootstrapDataForPreview:function(){return this.P.isPreview},shouldBootstrapDataForEditor:function(){return this.P.isEditor},shouldInitialize:function(){return!(this.shouldOptOut()||this.shouldLoadPreview()||this.isDisabled()||this.getProjectToken())},shouldLoadPreview:function(){return!(this.P.isPreview||this.P.isLegacyPreview||!this.getProjectToken()||this.P.isEditor)},shouldBailForDesktopApp:function(){return!this.P.isEditor&&this.P.isRunningInDesktopApp},shouldLoadInnie:function(){return!this.P.isSlave&&!this.P.isEditor&&this.P.isRunningInV2Editor},shouldOptOut:function(){return this.P.shouldOptOut},shouldSendTrackingData:function(){return this.P.trackingDisabled?!1:this.P.forceTracking?!0:!this.P.isPreview&&i.isEmpty(this.getForceVariationIds())&&i.isEmpty(this.getForceAudienceIds())},isSlave:function(){return this.P.isSlave},isRunningInDesktopApp:function(){return this.P.isRunningInDesktopApp},isRunningInV2Editor:function(){return this.P.isRunningInV2Editor},q:function(e){i.extend(this.P,e),this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={holdback:0,isGlobalHoldback:null,listTargetingCookies:[],revision:null,projectId:null,accountId:null,namespace:null,activationId:null,dcpServiceId:null,dcpKeyfieldLocators:[],recommenderServices:[],anonymizeIP:null,projectJS:null,plugins:[]},this.on(r.DATA_LOADED,this.K),this.on(r.ACTIVATE,this.W),this.on(r.RECORD_GLOBAL_DECISION,this.Q)},getRevision:function(){return this.P.revision},getGlobalHoldbackThreshold:function(){return this.P.holdback},getProjectId:function(){return this.P.projectId},getAccountId:function(){return this.P.accountId},getNamespace:function(){return this.P.namespace},getActivationId:function(){return this.P.activationId},getAnonymizeIP:function(){return this.P.anonymizeIP},isGlobalHoldback:function(){return!!this.P.isGlobalHoldback},getListTargetingCookieNames:function(){return this.P.listTargetingCookies.slice()},getDCPServiceId:function(){return this.P.dcpServiceId},getDCPKeyfieldLocators:function(){return this.P.dcpKeyfieldLocators},getRecommenderServices:function(){return this.P.recommenderServices},getProjectJS:function(){return this.P.projectJS},getPlugins:function(){return this.P.plugins},W:function(e){this.P.activationId=e.activationId,this.P.isGlobalHoldback=null},Q:function(e){var t=e.isGlobalHoldback;if(null!==this.P.isGlobalHoldback&&this.P.isGlobalHoldback!==t)throw new Error("Attempted to change already set global holdback!");this.P.isGlobalHoldback=t,this.emitChange()},K:function(e){var t=i.pick(e.data,["holdback","accountId","projectId","namespace","revision","listTargetingCookies","dcpServiceId","dcpKeyfieldLocators","recommenderServices","anonymizeIP","plugins","projectJS"]);if(0!==i.keys(t).length){var n={listTargetingCookies:[],dcpServiceId:null,dcpKeyfieldLocators:[]};i.extend(this.P,n,t),this.emitChange()}}}},function(e,t,n){var i=n(14);e.exports={initialize:function(){this.P={effectiveReferrer:null,effectiveVariationId:null},this.on(i.INITIALIZE_STATE,this.X)},getEffectiveReferrer:function(){return this.P.effectiveReferrer},getEffectiveVariationId:function(){return this.P.effectiveVariationId},X:function(e){e.effectiveReferrer&&(this.P.effectiveReferrer=e.effectiveReferrer),e.effectiveVariationId&&(this.P.effectiveVariationId=e.effectiveVariationId),this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.C),this.on(r.SET_INTEGRATION_SETTINGS,this.$)},C:function(e){i.isEmpty(e.data.integrationSettings)||(i.each(e.data.integrationSettings,function(e){this.P[e.id]=e}.bind(this)),this.emitChange())},$:function(e){var t=this.P[e.id];t?i.extend(t,e):this.P[e.id]=e},getAll:function(){return i.cloneDeep(i.values(this.P))},get:function(e){return i.cloneDeep(this.P[e])},getReference:function(e){return this.P[e]}}},function(e,t,n){var i=n(5),r=n(4),a=n(14),o="*";e.exports={initialize:function(){this.P={},this.on(a.LOAD_PERSISTED_LAYER_STATES,this.J),this.on(a.RECORD_LAYER_DECISION,this.Z),this.on(a.TRACK_DECISION_EVENT,this.ee),this.on(a.ACTION_EXECUTED,this.te)},getLayerState:function(e,t){if(this.P[e]){var n=this.P[e];if(i.keys(n).length>1&&!t)throw new Error("View Id must be specified when more than one layerState for layer.");return t?i.cloneDeep(i.find(n,{viewId:t})):i.cloneDeep(n[o])}},getLayerStates:function(e){var t=[];for(var n in this.P)i.forEach(this.P[n],function(n){(i.isUndefined(e)||n.namespace===e)&&t.push(i.cloneDeep(n))});return t},J:function(e){e.merge||(this.P={}),i.each(e.layerStates,function(e){var t=e.layerId,n=e.viewId||o,r=this.P[t];if(i.isUndefined(r))this.P[t]={},this.P[t][n]=e;else{var a=r[n];(!a||e.decisionTimestamp>(a.decisionTimestamp||0))&&(this.P[t][n]=e)}}.bind(this)),this.emitChange()},te:function(e){var t=e.action.layerId,n=e.action.viewId;if(!this.P[t])return void r.warn("No Campaign registered for action executed",e);var i;this.P[t][n]?i=this.P[t][n]:this.P[t][o]&&(i=this.P[t][o]),i&&(i.actionTriggered=!0,i.actionSessionId=e.sessionId,i.actionActivationId=e.activationId,i.actionTimestamp=e.timestamp),this.emitChange()},Z:function(e){var t={layerId:e.layerId,revision:e.revision,decision:e.decision,decisionSessionId:e.sessionId,decisionActivationId:e.activationId,decisionTimestamp:e.timestamp,decisionEventId:null,actionTriggered:!1,actionSessionId:null,actionActivationId:null,actionTimestamp:null,decisionTicket:e.decisionTicket,decisionTicketTimestamp:e.timestamp,namespace:e.namespace,viewId:e.viewId},n=this.P[e.layerId]||{};e.viewId?(delete n[o],n[e.viewId]=t):(n={},n[o]=t),this.P[e.layerId]=n,this.emitChange()},ee:function(e){var t=e.layerId,n=e.decisionEvent.decisionTicket.viewId||o;return this.P[t]?this.P[t][n]?(this.P[t][n].decisionEventId=e.decisionEvent.decisionId,void this.emitChange()):void r.warn("Not recording decision event: Layer state not found for view",n):void r.warn("Not recording decision event: Campaign not registered",t)}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.C)},C:function(e){i.isEmpty(e.data.layers)||(i.each(e.data.layers,function(e){this.P[e.id]=e}.bind(this)),this.emitChange())},getAll:function(){return i.cloneDeep(i.values(this.P))},getAllByViewId:function(e){return i.cloneDeep(i.filter(i.values(this.P),function(t){return i.includes(t.viewIds,e)}))},get:function(e){return i.cloneDeep(this.P[e])},getLayerByExperimentId:function(e){var t=i.values(this.P),n=i.find(t,function(t){return i.find(t.experiments,{id:e})});return n},getExperimentByVariationId:function(e){var t,n=i.values(i.cloneDeep(this.P));return i.some(n,function(n){return i.some(n.experiments,function(n){return i.find(n.variations,{id:e})&&(t=n),t}),t}),t}}},function(e,t,n){var i=n(14);e.exports={initialize:function(){this.P={logs:[]},this.on(i.LOG,this.ne)},getLogs:function(){return this.P.logs},ne:function(e){this.P.logs.push(e),this.emitChange()},w:function(){return this.P.logs.slice()}}},function(e,t,n){var i=n(5),r=n(14),a=1e3;e.exports={initialize:function(){this.P={},this.on(r.ADD_PENDING_EVENT,this.re),this.on(r.REMOVE_PENDING_EVENT,this.ae),this.on(r.LOAD_PENDING_EVENTS,this.oe)},getEvents:function(){return this.P},re:function(e){i.keys(this.P).length>=a&&this.se(),this.P[e.id]||(this.P[e.id]={id:e.id,timeStamp:e.timeStamp,data:e.data},this.emitChange())},ae:function(e){delete this.P[e.id],this.emitChange()},oe:function(e){this.P=e.events,this.se(),this.emitChange()},se:function(){for(var e=i.sortBy(this.P,"timeStamp"),t=0;t<=e.length-a;t++)delete this.P[e[t].id];this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14),a=n(2);e.exports={initialize:function(){this.P={},this.P[a.PerformanceData.performance_marks]={},this.P[a.PerformanceData.resource_timing]=[],this.on(r.SET_PERFORMANCE_DATA,this.ue),this.on(r.SET_PERFORMANCE_MARKS_DATA,this.ce),this.on(r.SET_RESOURCE_TIMING_DATA,this.le)},ue:function(e){i.extend(this.P,e.data),this.emitChange()},ce:function(e){i.isUndefined(this.P[a.PerformanceData.performance_marks][e.name])&&(this.P[a.PerformanceData.performance_marks][e.name]=[]),this.P[a.PerformanceData.performance_marks][e.name].push(e.data),this.emitChange()},le:function(e){this.P[a.PerformanceData.resource_timing].push(e.data),this.emitChange()},get:function(){return i.cloneDeep(this.P)}}},function(e,t,n){var i=n(14),r=n(2),a=n(5),o=n(4);e.exports={initialize:function(){this.P=a.mapValues(r.PluginTypes,function(){return{}}),this.on(i.REGISTER_PLUGIN,this.de)},de:function(e){var t=e.type,n=e.name,i=e.plugin;if(!(t&&n&&i))throw new Error("Missing information needed to register plugins: "+t+":"+n);if(!this.P[t])throw new Error("Invalid plugin type specified: "+t);this.P[t][n]=i,o.debug("Plugin Store: Registering Plugin :",e)},getAllPlugins:function(e){if(e){if(this.P[e])return this.P[e];throw new Error("Invalid plugin type: "+e)}return this.P},getPlugin:function(e,t){if(!t||!e)throw new Error("Missing plugin parameters");var n=this.getAllPlugins(e);return n[t]||null}}},function(e,t,n){var i=n(14);e.exports={initialize:function(){this.P={},this.on(i.SET_VISITOR_ATTRIBUTE_PENDING,this.fe)},getPendingAttributeValue:function(e){return this.P[e]?this.P[e].pending:void 0},fe:function(e){this.P[e.key]={pending:e.pending},this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={inRumSample:!1,data:{}},this.on(r.SET_RUM_DATA,this.ue)},ue:function(e){e.inRumSample&&(this.P.inRumSample=e.inRumSample),e.RumHost&&(this.P.RumHost=e.RumHost),i.extend(this.P.data,e.data),this.emitChange()},getSampleRum:function(){return this.P.inRumSample},getRumHost:function(){return this.P.RumHost},getRumData:function(){return i.cloneDeep(this.P.data)}}},function(e,t,n){var i=n(14);e.exports={initialize:function(){this.P={initialized:!1,natives:{}},this.on(i.SANDBOXED_FUNCTIONS_ADDED,this.ge)},ge:function(e){if(!e.sandboxedFunctions)throw new Error("No sandboxedFunctions found in payload");this.P.natives=e.sandboxedFunctions,this.P.initialized=!0,this.emitChange()},getAll:function(){return this.P.natives},get:function(e){if(!e)throw new Error("Missing name parameter");return this.P.natives[e]||null},isInitialized:function(){return this.P.initialized}}},function(e,t,n){var i=n(5),r=n(14),a=n(8),o=n(41),s=18e5;e.exports={initialize:function(){this.P={lastSessionTimestamp:0,sessionId:null},this.on(r.REFRESH_SESSION,this.pe),this.on(r.LOAD_SESSION_STATE,this.ve)},getState:function(){return i.cloneDeep(this.P)},getSessionId:function(){return this.P.sessionId},ve:function(e){this.P.sessionId=e.sessionId,this.P.lastSessionTimestamp=e.lastSessionTimestamp,this.emitChange()},pe:function(){var e=a.now(),t=this.P.lastSessionTimestamp;(!this.P.sessionId||e-t>s)&&(this.P.sessionId=o.generate()),this.P.lastSessionTimestamp=e,this.emitChange()}}},function(e,t){t.generate=function n(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,n)}},function(e,t,n){var i=n(5),r=n(4),a=n(14),o={globalTags:{},viewStates:{}};e.exports={initialize:function(){this.P=i.cloneDeep(o),this.on(a.REGISTER_VIEWS,this.he),this.on(a.SET_VIEW_ACTIVE_STATE,this._e),this.on(a.UPDATE_PARSED_VIEW_METADATA,this.Ee),this.on(a.UPDATE_USER_SUPPLIED_METADATA,this.me),this.on(a.TRACK_VIEW_ACTIVATED_EVENT,this.Ie),this.on(a.SET_GLOBAL_TAGS,this.ye),this.on(a.ACTIVATE,this.Se)},getAll:function(){var e={};for(var t in this.P.viewStates)e[t]=this.getViewState(t);return e},getViewState:function(e){var t=i.cloneDeep(this.P.viewStates[e]),n=this.P.globalTags;return t.metadata=i.extend({},t.parsedMetadata,n,t.userSuppliedMetadata),t},getActiveViewTags:function(){var e=this.getActiveViewStates(),t=i.map(e,function(e){return e.metadata}),n=[{}].concat(t);return i.extend.apply(i,n)},getActivationEventId:function(e){return this.P.viewStates[e]?this.P.viewStates[e].activationEventId:null},getActiveViewStates:function(){return i.reduce(this.P.viewStates,function(e,t,n){return this.isViewActive(n)&&e.push(this.getViewState(n)),e}.bind(this),[])},isViewActive:function(e){var t=this.P.viewStates[e];return t||r.warn("No Page registered with id",e),!!t.isActive},getGlobalTags:function(){return i.cloneDeep(this.P.globalTags)},Se:function(){var e=i.cloneDeep(o);i.isEmpty(this.P.globalTags)||(e.globalTags=this.P.globalTags),this.P=e,this.emitChange()},he:function(e){i.each(e.views,function(e){var t=e.id;this.P.viewStates[t]={id:t,isActive:!1,activatedTimestamp:null,activationEventId:null,parsedMetadata:{},userSuppliedMetadata:{}}}.bind(this)),this.emitChange()},_e:function(e){var t=e.view.id;if(!this.P.viewStates[t])throw new Error("No view exists with id "+t);this.P.viewStates[t].isActive=e.isActive,e.isActive?this.P.viewStates[t].activatedTimestamp=e.timestamp:(this.P.viewStates[t].parsedMetadata={},this.P.viewStates[t].userSuppliedMetadata={}),this.emitChange()},Ee:function(e){var t=e.viewId;if(!this.P.viewStates[t])throw new Error("No view exists with id "+t);i.merge(this.P.viewStates[t].parsedMetadata,e.metadata),this.emitChange()},me:function(e){var t=e.viewId;if(!this.P.viewStates[t])throw new Error("No view exists with id "+t);i.merge(this.P.viewStates[t].userSuppliedMetadata,e.metadata),this.emitChange()},Ie:function(e){var t=e.viewId;this.P.viewStates[t]&&(this.P.viewStates[t].activationEventId=e.eventData.eventId,this.emitChange())},ye:function(e){i.extend(this.P.globalTags,e),this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.C)},getAll:function(){return i.cloneDeep(i.values(this.P))},get:function(e){return i.cloneDeep(this.P[e])},getByApiName:function(e){return i.cloneDeep(i.find(i.values(this.P),{apiName:e}))},C:function(e){i.isEmpty(e.data.views)||(i.each(e.data.views,function(e){this.P[e.id]=e}.bind(this)),this.emitChange())}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={profile:{},metadata:{}},this.on(r.SET_VISITOR_ATTRIBUTES,this.Ae),this.on(r.LOAD_EXISTING_VISITOR_PROFILE,this.Te)},getVisitorProfile:function(){return this.P.profile},getVisitorProfileMetadata:function(){return this.P.metadata},getAttribute:function(e,t){var n=this.P.profile;return t&&(n=n[t]||{}),i.cloneDeep(n[e])},getAttributeMetadata:function(e){return i.cloneDeep(this.P.metadata[e])},Te:function(e){this.P.profile=e.profile,this.P.metadata=e.metadata,this.emitChange()},Ae:function(e){var t,n;i.each(e.attributes,function(e){t=this.P.profile,n=this.P.metadata,e.type&&(t=this.P.profile[e.type]=this.P.profile[e.type]||{}),t[e.key]=e.value,e.metadata&&i.forOwn(e.metadata,function(t,i){e.type&&(n=this.P.metadata[e.type]=this.P.metadata[e.type]||{}),n[e.key]=n[e.key]||{},n[e.key][i]=t}.bind(this))}.bind(this)),this.emitChange()}}},function(e,t,n){var i=n(5),r=n(14);e.exports={initialize:function(){this.P={},this.on(r.DATA_LOADED,this.we)},getCustomBehavioralAttributes:function(){return i.filter(this.P,function(e){return!!e.rule_json})},getVisitorAttribute:function(e){var t=i.values(this.P);if(e.datasourceId&&(t=i.filter(t,{dcp_datasource_id:String(e.datasourceId)})),e.attributeName&&e.attributeId)throw new Error("Must not specify both attribute name and attribute ID");if(e.attributeId){var n=this.P[e.attributeId];if(!n)throw new Error("Unrecognized attribute ID: "+e.attributeId);return n}if(e.attributeName){var r=i.filter(t,{name:e.attributeName});if(!r.length)throw new Error("Unrecognized attribute name: "+e.attributeName);if(r.length>1)throw new Error("Too many attributes with name: "+e.attributeName);return r[0]}throw new Error("Must specify attribute name or attribute ID")},we:function(e){i.isEmpty(e.data.visitorAttributes)||(i.each(e.data.visitorAttributes,function(e){this.P[e.id]=e}.bind(this)),this.emitChange())}}},function(e,t,n){var i=(n(5),n(14));n(47).Event;e.exports={initialize:function(){this.P={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(i.SET_VISITOR_EVENTS,this.C),this.on(i.SET_FOREIGN_VISITOR_EVENTS,this.De),this.on(i.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.be)},getEvents:function(){return this.P.events},getForeignEvents:function(){return this.P.foreignEvents},getForeignEventQueues:function(){return this.P.foreignEventQueues},C:function(e){this.P.events=e,this.emitChange()},De:function(e){this.P.foreignEvents[e.key]=e.value},be:function(e){this.P.foreignEventQueues[e.key]=e.value}}},function(e,t,n){function i(e,t,n,i,r){this[o.FIELDS.NAME]=e,this[o.FIELDS.TYPE]=t,a.isString(n)&&n.trim().length>0&&(this[o.FIELDS.CATEGORY]=n),i&&a.keys(i).length>0&&(this[o.FIELDS.OPTIONS]=i),a.isUndefined(r)||(this[o.FIELDS.REVENUE]=r)}function r(e,t,n){this.eventBase=e,this[o.FIELDS.TIME]=t,a.isUndefined(n)||(this[o.FIELDS.SESSION_ID]=n)}var a=n(5),o=n(48),s=n(49),u=n(51).getFieldValue;t.EventBase=i,i.prototype.digest=function(){var e=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(t)},t=[];if(t.push(e(o.FIELDS.NAME,this[o.FIELDS.NAME])),t.push(e(o.FIELDS.TYPE,this[o.FIELDS.TYPE])),this[o.FIELDS.CATEGORY]&&t.push(e(o.FIELDS.CATEGORY,this[o.FIELDS.CATEGORY])),this[o.FIELDS.REVENUE]&&t.push(e(o.FIELDS.REVENUE,this[o.FIELDS.REVENUE])),!this[o.FIELDS.OPTIONS])return t.join("&");var n=this[o.FIELDS.OPTIONS]||{},i=a.filter(a.keys(n),function(e){return n.hasOwnProperty(e)});i=i.sort();for(var r=0;r>>16).toString(16)+(65535&n).toString(16)},u=function(e,t){var n=i(e,t);return(n>>>0)/a},c=function(e){var t=String.fromCharCode;return e.replace(/[\S\s]/gi,function(e){e=e.charCodeAt(0);var n=t(255&e);return e>255&&(n=t(e>>>8&255)+n),e>65535&&(n=t(e>>>16)+n),n})};e.exports={Seed:r,hashToHex:s,hashToInt:o,hashToReal:u,toByteString:c}},function(e,t,n){!function(){function t(e,t){for(var n,i=e.length,r=t^i,a=0;i>=4;)n=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),n^=n>>>24,n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^n,i-=4,++a;switch(i){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r^=255&e.charCodeAt(a),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,r>>>0}function n(e,t){var n,i,r,a,o,s,u,c;for(n=3&e.length,i=e.length-n,r=t,o=3432918353,s=461845907,c=0;i>c;)u=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24,++c,u=(65535&u)*o+(((u>>>16)*o&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,r^=u,r=r<<13|r>>>19,a=5*(65535&r)+((5*(r>>>16)&65535)<<16)&4294967295, r=(65535&a)+27492+(((a>>>16)+58964&65535)<<16);switch(u=0,n){case 3:u^=(255&e.charCodeAt(c+2))<<16;case 2:u^=(255&e.charCodeAt(c+1))<<8;case 1:u^=255&e.charCodeAt(c),u=(65535&u)*o+(((u>>>16)*o&65535)<<16)&4294967295,u=u<<15|u>>>17,u=(65535&u)*s+(((u>>>16)*s&65535)<<16)&4294967295,r^=u}return r^=e.length,r^=r>>>16,r=2246822507*(65535&r)+((2246822507*(r>>>16)&65535)<<16)&4294967295,r^=r>>>13,r=3266489909*(65535&r)+((3266489909*(r>>>16)&65535)<<16)&4294967295,r^=r>>>16,r>>>0}var i=n;i.v2=t,i.v3=n;e.exports=i}()},function(e,t,n){var i=n(5);t.getFieldValue=function(e,t){if(i.isArray(t)){for(var n=e,r=0;re;e+=2){var t=re[e],n=re[e+1];t(n),re[e]=void 0,re[e+1]=void 0}$=0}function E(){try{var e=n(61);return K=e.runOnLoop||e.runOnContext,g()}catch(t){return h()}}function m(){}function I(){return new TypeError("You cannot resolve a promise with itself")}function y(){return new TypeError("A promises callback cannot return that same promise.")}function S(e){try{return e.then}catch(t){return ue.error=t,ue}}function A(e,t,n,i){try{e.call(t,n,i)}catch(r){return r}}function T(e,t,n){J(function(e){var i=!1,r=A(n,t,function(n){i||(i=!0,t!==n?b(e,n):R(e,n))},function(t){i||(i=!0,L(e,t))},"Settle: "+(e._label||" unknown promise"));!i&&r&&(i=!0,L(e,r))},e)}function w(e,t){t._state===oe?R(e,t._result):t._state===se?L(e,t._result):N(t,void 0,function(t){b(e,t)},function(t){L(e,t)})}function D(e,t){if(t.constructor===e.constructor)w(e,t);else{var n=S(t);n===ue?L(e,ue.error):void 0===n?R(e,t):u(n)?T(e,t,n):R(e,t)}}function b(e,t){e===t?L(e,I()):s(t)?D(e,t):R(e,t)}function O(e){e._onerror&&e._onerror(e._result),P(e)}function R(e,t){e._state===ae&&(e._result=t,e._state=oe,0!==e._subscribers.length&&J(P,e))}function L(e,t){e._state===ae&&(e._state=se,e._result=t,J(O,e))}function N(e,t,n,i){var r=e._subscribers,a=r.length;e._onerror=null,r[a]=t,r[a+oe]=n,r[a+se]=i,0===a&&e._state&&J(P,e)}function P(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i,r,a=e._result,o=0;oo;o++)N(i.resolve(e[o]),void 0,t,n);return r}function G(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(m);return b(n,e),n}function B(e){var t=this,n=new t(m);return L(n,e),n}function j(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function z(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function H(e){this._id=ve++,this._state=void 0,this._result=void 0,this._subscribers=[],m!==e&&(u(e)||j(),this instanceof H||z(),k(this,e))}function Y(){var e;if("undefined"!=typeof a)e=a;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=e.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(e.Promise=he)}var q;q=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var K,W,Q,X=q,$=0,J=({}.toString,function(e,t){re[$]=e,re[$+1]=t,$+=2,2===$&&(W?W(_):Q())}),Z="undefined"!=typeof window?window:void 0,ee=Z||{},te=ee.MutationObserver||ee.WebKitMutationObserver,ne="undefined"!=typeof e&&"[object process]"==={}.toString.call(e),ie="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,re=new Array(1e3);Q=ne?f():te?p():ie?v():void 0===Z?E():h();var ae=void 0,oe=1,se=2,ue=new V,ce=new V;x.prototype._validateInput=function(e){return X(e)},x.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},x.prototype._init=function(){this._result=new Array(this.length)};var le=x;x.prototype._enumerate=function(){for(var e=this,t=e.length,n=e.promise,i=e._input,r=0;n._state===ae&&t>r;r++)e._eachEntry(i[r],r)},x.prototype._eachEntry=function(e,t){var n=this,i=n._instanceConstructor;c(e)?e.constructor===i&&e._state!==ae?(e._onerror=null,n._settledAt(e._state,t,e._result)):n._willSettleAt(i.resolve(e),t):(n._remaining--,n._result[t]=e)},x.prototype._settledAt=function(e,t,n){var i=this,r=i.promise;r._state===ae&&(i._remaining--,e===se?L(r,n):i._result[t]=n),0===i._remaining&&R(r,i._result)},x.prototype._willSettleAt=function(e,t){var n=this;N(e,void 0,function(e){n._settledAt(oe,t,e)},function(e){n._settledAt(se,t,e)})};var de=M,fe=U,ge=G,pe=B,ve=0,he=H;H.all=de,H.race=fe,H.resolve=ge,H.reject=pe,H._setScheduler=l,H._setAsap=d,H._asap=J,H.prototype={constructor:H,then:function(e,t){var n=this,i=n._state;if(i===oe&&!e||i===se&&!t)return this;var r=new this.constructor(m),a=n._result;if(i){var o=arguments[i-1];J(function(){F(i,r,o,a)})}else N(n,r,e,t);return r},"catch":function(e){return this.then(null,e)}};var _e=Y,Ee={Promise:he,polyfill:_e};n(62).amd?(i=function(){return Ee}.call(t,n,t,o),!(void 0!==i&&(o.exports=i))):"undefined"!=typeof o&&o.exports?o.exports=Ee:"undefined"!=typeof this&&(this.ES6Promise=Ee),_e()}).call(this)}).call(t,n(59),n(60).setImmediate,function(){return this}(),n(7)(e))},function(e,t){function n(){c&&o&&(c=!1,o.length?u=o.concat(u):l=-1,u.length&&i())}function i(){if(!c){var e=setTimeout(n);c=!0;for(var t=u.length;t;){for(o=u,u=[];++l1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var n=c++,i=arguments.length<2?!1:s.call(arguments,1);return u[n]=!0,a(function(){u[n]&&(i?e.apply(null,i):e.call(null),t.clearImmediate(n))}),n},t.clearImmediate="function"==typeof i?i:function(e){delete u[e]}}).call(t,n(60).setImmediate,n(60).clearImmediate)},function(e,t){},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){var i=n(5),r=n(8),a=n(2),o=n(64),s=n(11),u=n(14),c=n(4),l=n(16),d=l.get("stores/sandbox"),f=n(10);t.shouldSandbox=function(){return!1},t.get=function(e){if(!e)throw new Error("Name is required");if(t.shouldSandbox()){d.isInitialized()||g();var n=d.get(e);if(n)return n}return f.getGlobal(e)};var g=function(){try{var e="optimizely_"+r.now(),t=o.createElement("iframe");t.name=e,t.style.display="none",o.appendToHead(t);var n=t.contentWindow,l=t.contentDocument;l.write(""),l.close();var d=i.mapValues(a.SandboxedFunctions,function(e){return n[e]});s.dispatch(u.SANDBOXED_FUNCTIONS_ADDED,{sandboxedFunctions:d}),t.parentNode.removeChild(t)}catch(f){c.warn("Unable to create a sandbox: ",f)}}},function(e,t){function n(){return"loading"===t.getReadyState()}t.getCookieString=function(){return document.cookie||""},t.setCookie=function(e){document.cookie=e},t.querySelector=function(e){return document.querySelector(e)},t.createElement=function(e){return document.createElement(e)},t.isReady=function(){return"interactive"===document.readyState||"complete"===document.readyState},t.addReadyHandler=function(e){return document.addEventListener("DOMContentLoaded",e),function(){t.removeReadyHandler(e)}},t.removeReadyHandler=function(e){return function(){document.removeEventListener("DOMContentLoaded",e)}},t.getReferrer=function(){return document.referrer},t.getReadyState=function(){return document.readyState},t.write=function(e){if(!n())throw new Error("Aborting attempt to write to already-loaded document");document.write(e)},t.appendToHead=function(e){return document.head.appendChild(e)},t.addEventListener=function(e,t,n){return document.addEventListener(e,t,n),function(){document.removeEventListener(e,t,n)}}},function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(66)),e.registerDependency("providers/default_jsonp",n(67)),e.registerDependency("helpers/generate_analytics_value",n(68)),e.registerDependency("matchers/key_value",n(69)),e.registerDependency("sources/browser",n(55)),e.registerDependency("sources/geo",n(71)),e.registerDependency("sources/jsonp",n(74)),e.registerDependency("sources/poll",n(75)),e.registerDependency("env/date",n(8)),e.registerDependency("env/document",n(64)),e.registerDependency("env/local_storage",n(76)),e.registerDependency("env/window",n(10))}},function(e,t){e.exports={provides:"visitorId",getter:["stores/visitor_id",function(e){return e.getRandomId()}]}},function(e,t){e.exports=function(e){return{isAsync:!0,getter:["sources/jsonp","stores/integration_settings",function(t,n){var i=n.get(e),r=t.buildURL(i.url,i.cbParam);return t.fetchData(e,r)}]}}},function(e,t,n){function i(e){return e.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}function r(e){return!o.isEmpty(e)&&o.includes(["and","or","not"],e[0])}function a(e,t){var n="";return o.isEmpty(t)?n=u:(n=o.reduce(t,function(t,n){var r=e.get(n);return r?t+i(r.name?r.name:r.id)+",":t},""),n=n.slice(0,-1)),n}var o=n(5),s=":",u="everyone_else",c="holdback",l="treatment",d="",f="single_experiment";t.generateAnalyticsString=function(e,t,n,u,g,p){var v=g?c:l,h=3*s.length,_={layer:i(t.name||d),experiment:i(n.name||d),variation:i(u.name||d)};_.experiment===d&&(r(n.audienceIds)?_.experiment="Exp":_.experiment=a(e,n.audienceIds));var E={layer:"("+i(t.id)+")",experiment:"("+i(n.id)+")",variation:"("+i(u.id)+")"},m=o.reduce(E,function(e,t){return e+t.length},0);if(m+h+v.length>p)throw new Error("The analytics string size is too low to send the campaign, experiment, and variation IDs.");var I=p-m-h-v.length,y={};y.variation=Math.min(_.variation.length,Math.floor(I/3)),I-=y.variation,y.experiment=Math.min(_.experiment.length,Math.floor(I/2)),I-=y.experiment,y.layer=I;var S={};o.each(_,function(e,t){S[t]=e.substring(0,y[t])});var A=[];return t.policy!==f&&A.push(S.layer+E.layer),A=A.concat([S.experiment+E.experiment,S.variation+E.variation,v]),A.join(s)}},function(e,t,n){var i=n(5),r=n(70),a=n(51).getFieldValue;e.exports=function(e,t){var n=a(e,t.name.split("."));return i.isArray(n)?i.some(n,i.partial(r.hasMatch,t.value,t.match)):r.hasMatch(t.value,t.match,n)}},function(e,t,n){var i=n(5);t.hasMatch=function(e,t,n){var r=!i.isUndefined(n)&&null!==n,a=!i.isUndefined(e)&&null!==e,o=t||(a?"exact":"exists");switch(o){case"exists":return r;case"exact":return r&&String(n)===e;case"substring":return r&&String(n).indexOf(e)>-1;case"regex":try{if(a&&r){var s=new RegExp(e);return s.test(String(n))}return!1}catch(u){}return!1;case"range":var c=e.split(":"),l=parseFloat(c[0]),d=parseFloat(c[1]),f=parseFloat(n);return f>=l&&d>=f;default:return!1}}},function(e,t,n){function i(){a.addScriptAsync(s)}var r=n(72),a=n(73),o="cdn3";t.getIP=function(){return r.makeAsyncRequest(o,i).then(function(e){return e.ip})},t.getIPDerivedGeolocation=function(){return r.makeAsyncRequest(o,i).then(function(e){return e.location})};var s="//cdn3.optimizely.com/js/geo2.js"},function(e,t,n){var i=n(57).Promise,r=n(11),a=n(14),o=n(16),s=o.get("stores/async_request");t.makeAsyncRequest=function(e,t){var n=s.getPromise(e);if(n)return n;var o,u,c=new i(function(e,t){o=e,u=t});return t&&t(),r.dispatch(a.REGISTER_ASYNC_DEFERRED,{source:e,promise:c,resolver:o,rejecter:u}),c},t.resolveRequest=function(e,t){r.dispatch(a.RESOLVE_DEFERRED,{source:e,resolveWith:t})},t.rejectRequest=function(e,t){r.dispatch(a.REJECT_DEFERRED,{source:e,rejectWith:t})}},function(e,t,n){var i=n(64),r=n(4),a=n(56);t.addScriptAsync=function(e,t){var n=i.querySelector("head"),a=i.createElement("script");a.type="text/javascript",a.async=!0,a.src=e,t&&(a.onload=t),n.insertBefore(a,n.firstChild),r.debug("Asynchronously requesting "+e)},t.addScriptSync=function(e,n){try{var o="optimizely_synchronous_script_"+Math.floor(1e5*Math.random());if(-1!==e.indexOf('"'))return void r.error("Blocked attempt to load unsafe script: "+e);if(i.write(''),!i.querySelector("#"+o))throw new Error("Document.write failed to append script");n&&n()}catch(s){r.debug("Document.write failed for "+e+": "+s.message);var u=function(e){var t=new Function(e.responseText);t(),n&&n()};return a.request({url:e,async:!1,contentType:"text/plain",success:u})["catch"](function(i){r.error("Failed to load "+e+" via synchronous XHR: "+i.message),t.addScriptAsync(e,n)})}}},function(e,t,n){function i(e){return"optimizely_"+e}function r(e,t){return u.makeAsyncRequest(t,function(){a.setGlobal(e,function(n){o.debug("JSONP","Got response from",t,n),u.resolveRequest(t,n),a.setGlobal(e,void 0)})})}var a=n(10),o=n(4),s=n(73),u=n(72);t.buildURL=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+t+"=%cb%"},t.fetchData=function(e,t,n){return n||(n=i(e)),a.getGlobal(n)?(o.debug("JSONP / Found existing callback function for",e),u.makeAsyncRequest(e)):(t&&s.addScriptAsync(t.replace("%cb%",n)),r(n,e))}},function(e,t,n){var i=n(5),r=n(57).Promise,a=100,o=50;t.pollFor=function(e,t,n){var s,u;return i.isFunction(n)?u=n:(s=n||a,u=function(){return s--,-1>s}),t=t||o,new r(function(n,i){!function r(){var a;if(!u()){try{var o=e();if(o)return n(o)}catch(s){a=s}return setTimeout(r,t)}i(a||new Error("Poll timed out"))}()})}},function(e,t,n){var i,r=n(77),a="optimizely_data",o=n(80),s=n(10),u=n(81),c=t.Error=r("StorageError"),l=s.getGlobal("localStorage");l?i=o.create(l,a):(u.emitError(new c("Failed to initialize localStorage")),i=o.mockStorage),t.LocalStorage=i},function(e,t,n){function i(e,t){function n(t){if(!(this instanceof n))return new n(t);try{throw new Error(t)}catch(i){i.name=e,this.stack=i.stack}r&&this.stack&&(this.stack=a(this.stack,e,t)),this.message=t||"",this.name=e}return n.prototype=new(t||Error),n.prototype.constructor=n,n.prototype.inspect=function(){return this.message?"["+e+": "+this.message+"]":"["+e+"]"},n.prototype.name=e,n}var r=n(78)(),a=n(79);e.exports=i},function(e,t){"use strict";e.exports=function(){var e=new Error("yep");return e.stack?"Error: yep\n"===e.stack.substr(0,11):!1}},function(e,t){"use strict";e.exports=function(e,t,n){var i=t;return n&&(i+=": "+n),e=i+e.slice(e.indexOf("\n"))}},function(e,t,n){function i(e,t){this.ke=e,this.xe=t}var r=n(5),a=n(4),o=n(15),s="$$";i.prototype.Me=function(e){return[this.xe,e].join(s)},i.prototype.Ue=function(e){return e.replace(this.xe+s,"")},i.prototype.setItem=function(e,t){try{this.ke.setItem(this.Me(e),o.stringify(t))}catch(n){a.warn("Failed to save",e,"to localStorage:",n)}},i.prototype.removeItem=function(e){this.ke.removeItem(this.Me(e))},i.prototype.getItem=function(e){try{return o.parse(this.ke.getItem(this.Me(e)))}catch(t){}return null},i.prototype.keys=function(){var e=r.keys(this.ke);return r.map(e,this.Ue.bind(this))},e.exports={create:function(e,t){return new i(e,t)},mockStorage:{keys:function(){},getItem:function(e){},removeItem:function(e){},setItem:function(e,t){}}}},function(e,t,n){var i=n(82);t.emitError=function(e,t){i.emit({type:"error",name:e.name||"Error",data:{error:e,metadata:t}},!0,!0)},t.emitAnalyticsEvent=function(e,t){var n={type:"analytics",name:"trackEvent",data:e};i.emit(n,t)}},function(e,t,n){var i=n(5),r=n(41),a=n(11),o=n(14),s=n(16),u=n(4),c=n(81),l=s.get("stores/event_emitter");t.on=function(e){return e.token||(e.token=r.generate()),a.dispatch(o.ADD_EMITTER_HANDLER,e),e.token},t.off=function(e){a.dispatch(o.REMOVE_EMITTER_HANDLER,{token:e})},t.emit=function(e,t,n){var r=l.getHandlers(e,t);i.each(r,function(t){try{t.call({$di:s},e)}catch(i){u.warn("Error in event emitter handler",e,i),n||c.emitError(i)}})}},function(e,t,n){function i(){var e=w.getUserAgent()||"";if(!h.isString(e))return void _.warn("Directive / userAgent not a string");e=e.toLowerCase();var t=["googlebot","yahoo! slurp","bingbot","bingpreview","msnbot","keynote","ktxn","khte","gomezagent","alertsite","yottaamonitor","pingdom.com_bot","aihitbot","baiduspider","adsbot-google","mediapartners-google","applebot","catchpoint","phantomjs","moatbot","facebookexternalhit"],n=function(t){return h.includes(e,t)?(_.warn("Directive / Matches bot:",t),!0):void 0};h.some(t,n)&&(_.log("Directive / Disabling tracking"),I.dispatch(E.LOAD_DIRECTIVE,{trackingDisabled:!0}))}function r(){var e=y.get(S.COOKIES.OPT_OUT),n=O.getQueryParamValue(R.OPT_OUT);e?n===e||"true"!==n&&"false"!==n?I.dispatch(E.LOAD_DIRECTIVE,{shouldOptOut:"true"===e}):t.setOptOut("true"===n):"true"===n&&t.setOptOut(!0)}function a(){var e=!1,t=[R.AB_PREVIEW,R.DISABLE];t.push(R.EDITOR);for(var n=0;n=0;c--)if(s.unshift(a[c]),i=s.join("."),!o.includes(h,i)){r={domain:n?"."+i:i};try{t.set(_,Math.random().toString(),r),t.remove(_,r),u=r.domain;break}catch(f){}}return l.dispatch(d.SET_COOKIE_DOMAIN,u),u}var a=n(77),o=n(5),s=n(8),u=n(64),c=n(10),l=n(11),d=n(14),f=n(16),g=f.get("stores/cookie_options"),p=t.SetError=a("CookieSetError"),v=t.MismatchError=a("CookieMismatchError");t.getAll=function(){var e,t,n,r,a;e=u.getCookieString().split(/\s*;\s*/);var o={};for(n=0;n0&&(a=i(t.substring(0,r)),void 0===o[a]&&(o[a]=i(t.substring(r+1))));return o},t.get=function(e){var n=t.getAll();return n[e]},t.set=function(e,n,i,a){i=i||{},a!==!1&&(a=!0);var l=[];if(o.isUndefined(i.domain)){var d=g.getCurrentDomain();d||(d=r(c.getLocation(),!0)),i.domain=d}if(i.domain&&l.push("domain="+i.domain),o.isUndefined(i.path)&&(i.path="/"),i.path&&l.push("path="+i.path),o.isUndefined(i.expires)){var f=o.isUndefined(i.maxAge)?g.getDefaultAgeInSeconds():i.maxAge;i.expires=new Date(s.now()+1e3*f)}if(o.isUndefined(i.expires)||l.push("expires="+i.expires.toUTCString()),i.secure&&l.push("secure"),l=l.join(";"),u.setCookie(e+"="+encodeURIComponent(n)+";"+l),a){var h=t.get(e);if(h!==n){if(!h)throw new p('Failed to set cookie "'+e+'"');throw new v('Expected "'+n+'" for "'+e+'", got "'+h+'"')}}},t.remove=function(e,n){t.set(e,null,o.extend({},n,{expires:new Date(0)}),!1)};var h=["optimizely.test"],_="optimizelyDomainTestCookie"},function(e,t,n){var i=n(10),r="optimizelyDataApi";t.registerFunction=function(e,t){var n=i.getGlobal(r);n||(n={},i.setGlobal(r,n)),n[e]||(n[e]=t)},t.getFunction=function(e){return i.getGlobal(r)[e]}},function(e,t,n){function i(){g.isArray(SLAVE_CLIENT.optimizely)&&(SLAVE_CLIENT.optimizely=g.filter(SLAVE_CLIENT.optimizely,function(e){var t=!0;return!te.push(e,t)}))}function r(){var e={get:te.get,push:te.push},t=SLAVE_CLIENT.optimizely;g.isArray(t)&&g.each(t,function(t){e.push(t)}),e.data={note:"Obsolete, use optimizely.get('data') instead"},e.state={},SLAVE_CLIENT.optimizely=e}function a(e){var t=H.getVisitorProfile();return y.populateEagerVisitorData(e,t)}function o(e,t,n){e=e||[];var i=Y.getAllPlugins(L.PluginTypes.visitorProfileProviders),r=W.getGlobalHoldbackThreshold(),a=H.getVisitorProfile();y.populateLazyVisitorData(i,a);var o=Z.getBucketingId();if(!o)throw new Error("bucketingId not set");var s,u=H.getVisitorProfile();if(t){var c=Z.getVariationIdMap();s=c[t.id]}var l;n&&(l=n.id);var d={bucketingId:o,visitorProfile:u,audiences:e,globalHoldback:r,preferredVariationMap:s,viewId:l,layer:t};return T.createTicket(d)}function s(e){var t=q.getAllByViewId(e.id),n=J.getForceVariationIds(),i=J.getForceAudienceIds(),r=g.map(t,S.description).join(", "),a=D.description(e);return R.log("Deciding Campaigns for Page",a,":",r),_.all(g.map(t,function(t){return new _(function(r){try{u(t,n,i,e,function(o){R.log("Activated Campaign",S.description(t),"on Page",a);var s=l(t,o,n,i),u=g.filter(s,function(t){return g.isUndefined(t.viewId)||t.viewId===e.id});g.isEmpty(u)||(R.log("Executing actions",u,"for Campaign",S.description(t),"Page",a),g.each(u,A.execute)),r()})}catch(o){R.error("Error getting decisionTicket: ",o)}})})).then(function(){return R.log("All Campaigns for Page",a,"resolved:",r),t})}function u(e,t,n,i,r){if(t.length||n.length)r(o([],void 0,i));else{var a=S.relatedAudienceIds(e),s=g.reduce(a,function(e,t){var n=K.get(t);return n&&e.push(n),e},[]);c(s,S.getActivationTimeout(e),function(){function t(e){var t=[];return g.each(e,function(e){t.push(e.name,e)}),t}var n=o(s,e,i),a=g.map(n.audienceIds,K.get.bind(K)),u=g.filter(s,function(e){return!g.includes(n.audienceIds,e.id)});R.log("When deciding Campaign",S.description(e),"visitor is in audiences:",t(a),"and not in audiences:",t(u)),r(n)})}}function c(e,t,n){var i={},r=Y.getAllPlugins(L.PluginTypes.audienceMatchers);g.each(e,function(e){var t=P.requiredAudienceFields(e,r);g.each(t,function(e){i[e]=!0})});var a=g.reduce(i,function(e,t,n){if(g.isUndefined(y.getAttribute(n))){var i=y.getPendingAttributeValue(n);g.isUndefined(i)||e.push(i)}return e},[]);if(0===a.length)return n();var o=V.firstToResolve(g.map(a,function(t){return _.resolve(t).then(function(){var t=H.getVisitorProfile(),n=g.map(e,function(e){return P.isInAudience(t,e,r)});if(g.some(n,g.isUndefined))throw new Error("Some audience is undefined")})}));_.race([o,new _(function(e,n){setTimeout(n,t)})]).then(function(){R.log("Activating Campaign after pending Audiences resolved",e),n()},function(){R.log("Activating Campaign after timeout on Audiences",e),n()})}function l(e,t,n,i){var r,a=S.description(e);n.length?r=T.getDummyLayerDecision(e,n):(i.length&&(R.log("Applying force audienceIds:",i,"to Campaign",a),t=g.cloneDeep(t),t.audienceIds=i),r=T.decideLayer(e,t)),R.log("Recording decision for Campaign",a,t,"->",r),S.recordLayerDecision(e.id,t,r),r.variationId&&r.experimentId&&(y.updateVariationIdMap(e.id,r.experimentId,r.variationId),y.persistVariationId()),m.emitLayerDecided({layer:e,decisionTicket:t,decision:r});var o=b.trackDecisionEvent(r,t);if(o?R.log("Tracked decision event for Campaign",a,o):R.log("Analytics / Not tracking decision event for Campaign",a),W.isGlobalHoldback()&&!n.length&&!i.length)return R.log("NOT applying Variation for Campaign",a,"(visitor is in global holdback)"),[];if(r.isLayerHoldback)return R.log("NOT applying Variation for Campaign",a,"(visitor is in layer holdback)"),[];if(!r.experimentId||!r.variationId)return R.log("NOT applying Variation for Campaign",a,"(visitor is not eligible for any Experiments)"),[];var s=f(e.id,r);return s}function d(e){var t=j.getCleanupFns(e);if(t.length>0){for(;t.length>0;)t.shift()();E.dispatch(O.CLEAR_CLEANUP_FN,{lifecycle:e})}}function f(e,t){return[].concat(Q.getLayerActions(e)||[],Q.getExperimentActions(t.experimentId)||[],Q.getExperimentVariationActions(t.experimentId,t.variationId)||[])}var g=n(5),p=n(41),v=n(77),h=(t.JSONParseError=v("JSONParseError"),t.ActivationCodeError=v("ActivationCodeError")),_=n(57).Promise,E=n(11),m=n(87),I=n(81),y=n(89),S=n(95),A=n(96),T=(n(15),n(100)),w=n(106),D=n(107),b=n(112),O=n(14),R=n(4),L=(n(76).LocalStorage,n(114),n(2)),N=n(82),P=n(105),V=n(115),C=n(116),F=n(75),k=n(64),x=n(84),M=n(97),U=n(117),G=n(16),B=G.get("stores/layer"),j=G.get("stores/cleanup"),z=G.get("stores/session"),H=G.get("stores/visitor"),Y=G.get("stores/plugins"),q=G.get("stores/layer_data"),K=G.get("stores/audience_data"),W=G.get("stores/global"),Q=G.get("stores/action_data"),X=G.get("stores/view_data"),$=G.get("stores/view"),J=G.get("stores/directive"),Z=G.get("stores/visitor_id"),ee=G.get("stores/pending_events"),te=(G.get("stores/xdomain"),n(118)),ne=n(131),ie=n(132),re=1e3,ae=t;t.initialize=function(e){var n=3e3;if(ie.initialize(),setTimeout(ie.send,n),N.on({filter:{type:"error"},handler:function(e){ne.handleError(e.data.error,e.data.metadata)}}),E.dispatch(O.DATA_LOADED,{data:e.clientData}),R.log("Initialized with DATA:",e.clientData),i(),J.isDisabled())return void R.log("Controller / Is disabled");var a,o,s=x.get(L.COOKIES.REDIRECT);if(s){R.debug("Found redirect data:",s);var u=s.match(/^([^|]+)\|(.*)/);u&&(o=u[1],a=u[2],E.dispatch(O.INITIALIZE_STATE,{effectiveVariationId:o,effectiveReferrer:a}))}var c=W.getProjectJS();if(g.isFunction(c))try{c()}catch(l){R.error("Error while executing projectJS: ",l)}var d=[].concat(e.plugins||[],W.getPlugins()||[]);g.each(d,function(e){try{e(w)}catch(t){ne.handleError(t)}}),H.observe(y.persistVisitorProfile),B.observe(y.persistLayerStates),z.observe(y.persistSessionState),ee.observe(U.persistPendingEvents),N.on({filter:{type:"lifecycle",name:"viewActivated"},handler:t.onViewActivated}),r();var f=U.getPendingEvents();f&&(E.dispatch(O.LOAD_PENDING_EVENTS,{events:f}),U.retryPendingEvents(f)),N.on({filter:{type:"lifecycle",name:"activate"},handler:t.activate}),m.emitInitializedEvent();var p=[];if(!J.shouldActivate())return _.resolve();return m.emitActivateEvent(),_.all(p)},t.activate=function(){try{var e=[];R.log("Activated client"),g.forEach($.getActiveViewStates(),function(e){D.deactivate(X.get(e.id))}),d(L.Lifecycle.preActivate),E.dispatch(O.ACTIVATE,{activationId:p.generate()}),D.registerViews(X.getAll()),y.setId(y.getIdFromCookies()),E.dispatch(O.MERGE_VARIATION_ID_MAP,{variationIdMap:y.getVariationIdMap()}),y.persistVariationId(),d(L.Lifecycle.postVisitorProfileLoad),e.push(a(Y.getAllPlugins(L.PluginTypes.visitorProfileProviders)).then(function(){R.log("Populated visitor profile")}));var t=o(),n=T.decideGlobal(t);R.log("Made global decision",t,"->",n),E.dispatch(O.RECORD_GLOBAL_DECISION,n);var i=b.trackClientActivation();return i?R.log("Tracked activation event",i):R.log("Not tracking activation event"),ae.setUpViewActivation(),d(L.Lifecycle.postViewsActivated),d(L.Lifecycle.postActivate),_.all(e).then(function(){N.emit({type:C.TYPES.LIFECYCLE,name:"activateDeferredDone"}),R.log("All immediate effects of activation resolved")},ne.handleError)}catch(r){ne.handleError(r)}},ae.setUpViewActivation=function(){var e=X.getAll();g.each(e,function(e){e.activationType?e.activationType===L.ViewActivationTypes.callback?ae.activateViewOnCallback(e):e.activationType===L.ViewActivationTypes.polling&&F.pollFor(e.activationCode,null,g.partial(M.isTimedOut,Date.now())).then(function(){D.activate(e)})["catch"](function(t){R.warn("Failed to activate view ",e,t)}):D.activate(e)})},ae.activateViewOnCallback=function(e){var t=function(t){var n=g.extend({},t,{pageName:e.apiName,type:"page"});te.push(n)},n={pageId:e.id};Object.defineProperty(n,"isActive",{get:function(){return $.isViewActive(e.id)}});try{e.activationCode(t,n)}catch(i){var r=new h("("+i.toString()+") in activationCode for "+D.description(e));I.emitError(r,{originalError:i,userError:!0})}},t.onViewActivated=function(e){var t=e.data.view;try{if(!Z.getBucketingId())throw new Error("View activated with no visitorId set");var n,i=s(t)["catch"](ne.handleError),r=function(){D.parseViewTags(t);var e=b.trackViewActivation(t);e?R.log("Tracked activation for Page",D.description(t),e):R.log("Not Tracking activation for Page",D.description(t))};return n=k.isReady()?_.resolve(r()):F.pollFor(k.isReady,re).then(r),_.all([i,n])}catch(a){ne.handleError(a)}}},function(e,t,n){var i=n(5),r=n(16),a=r.get("stores/audience_data"),o=n(82),s=n(88);t.emitLayerDecided=function(e){ var t=e.decisionTicket?e.decisionTicket.audienceIds:[],n=i.map(t,function(e){return{id:e,name:a.get(e).name}}),r={type:"lifecycle",name:"layerDecided",data:i.extend(e,{audiences:n})},u=s.translateLayerEventToCampaignEvent(r);o.emit(r),o.emit(u)},t.emitViewActivated=function(e){var t={type:"lifecycle",name:"viewActivated",data:e},n=s.translateViewActivatedToPageActivated(t);o.emit(t),o.emit(n)},t.emitActivateEvent=function(){o.emit({type:"lifecycle",name:"activate"},!0)},t.emitInitializedEvent=function(){var e={type:"lifecycle",name:"initialized"};o.emit(e)},t.emitOriginsSyncedEvent=function(){var e={type:"lifecycle",name:"originsSynced"};o.emit(e)}},function(e,t,n){var i=n(5);t.translateDecisionToCampaignDecision=function(e){return r(i.cloneDeep(e),{layerId:"campaignId",isLayerHoldback:"isCampaignHoldback"})},t.translateLayerEventToCampaignEvent=function(e){var t={};return t.campaign=this.translateLayerToCampaign(e.data.layer),t.decisionTicket=e.data.decisionTicket,t.decision=this.translateDecisionToCampaignDecision(e.data.decision),t.audiences=e.data.audiences,{type:"lifecycle",name:"campaignDecided",data:t}},t.translateLayerToCampaign=function(e){var t=i.cloneDeep(e);t.pageIds=e.viewIds,delete t.viewIds;var n=this;return i.forEach(e.experiments,function(e,r){i.forEach(e.variations,function(e,i){var a=t.experiments[r].variations[i].actions;t.experiments[r].variations[i].actions=n.translateActionsToCampaignActions(a)})}),t},t.translateActionsToCampaignActions=function(e){var t=[];return i.forEach(e,function(e){t.push({pageId:e.viewId,changes:e.changes})}),t},t.translateViewActivatedToPageActivated=function(e){return{type:"lifecycle",name:"pageActivated",data:this.translateViewEventDataToPageEventData(e.data)}},t.translateViewEventDataToPageEventData=function(e){return{page:i.cloneDeep(e.view)}};var r=function(e,t){var n=i.omit(e,i.keys(t));return i.each(t,function(t,i){n[t]=e[i]}),n}},function(e,t,n){function i(e,t){function n(e,n){var i;t.attributionType&&(i=T.now()),y.dispatch(O.SET_VISITOR_ATTRIBUTES,{attributes:[{key:e,value:n,metadata:{lastModified:i}}]})}if(t.getter){var i,r=t.provides;if(!t.isSticky||I.isUndefined(e[r]))try{var a=S.evaluate(t.getter);I.isFunction(a)&&(a=a(function(){return e[r]},function(e){return n(r,e)})),I.isUndefined(a)||(t.isAsync?(i=a.then(function(e){n(r,e)},function(e){P.warn('Failed to evaluate provider for "'+t.provides+'"; error was:',e)}),y.dispatch(O.SET_VISITOR_ATTRIBUTE_PENDING,{key:r,pending:i})):n(r,a))}catch(o){N.emitError(o)}return i}}function r(e){var t=c(e),n=A.getItem(t);if(!n){var i=l(e);n=A.getItem(i),s(e,n)}return n}function a(e){var t=[];return I.each(e,function(e){I.each(e.item,function(n){n.namespace=e.namespace,t.push(n)})}),t}function o(e){var t=M.getBucketingId(),n=[],i=t+"\\$\\$([^$]+?)\\$\\$"+e,r=new RegExp(i);return I.each(A.keys(),function(e){var i=e.match(r);if(i){var a={namespace:i[1],userId:t,item:A.getItem(e)};n.push(a)}}),n}function s(e,t){var n=c(e),i=l(e);A.setItem(n,t),A.removeItem(i)}function u(e,t){try{var n=c(e);try{A.removeItem(l(e)),A.setItem(n,t)}catch(i){throw P.warn("Visitor / Unable to set localStorage key, error was:",i),new Error("Unable to set localStorage")}}catch(i){P.warn("Unable to persist visitor data:",i.message)}}function c(e){var n=M.getBucketingId();if(!n)throw new Error("Visitor bucketingId not set");var i=t.getNamespace();if(!i)throw new Error("Namespace is not set");return[n,i,e].join("$$")}function l(e){var t=M.getBucketingId();if(!t)throw new Error("Cannot get legacy key: visitor bucketingId not set");return[t,e].join("$$")}function d(e,t){if(g(e,c(V.EVENT_QUEUE)))y.dispatch(O.SET_FOREIGN_VISITOR_EVENT_QUEUE,{key:e,value:L.deserialize(t)});else if(g(e,c(V.EVENTS)))y.dispatch(O.SET_FOREIGN_VISITOR_EVENTS,{key:e,value:L.deserialize(t)});else if(g(e,c(V.LAYER_STATES)))y.dispatch(O.LOAD_PERSISTED_LAYER_STATES,{layerStates:t,merge:!0});else if(g(e,c(V.VARIATION_MAP)))y.dispatch(O.MERGE_VARIATION_ID_MAP,{variationIdMap:t});else if(g(e,c(V.VISITOR_PROFILE))){var n=["custom"],i=t;I.each(n,function(e){var t=k.getPlugin(D.PluginTypes.visitorProfileProviders,e);if(t){if(i.profile&&i.metadata){var n=f(i,e,t.attributionType);if(!I.isEmpty(n)){var r=[];I.forOwn(n.data,function(t,i){var a=n.metadata[i],o={key:i,value:t,type:e,metadata:a};r.push(o)}),y.dispatch(O.SET_VISITOR_ATTRIBUTES,{attributes:r})}}}else P.debug("Attribute type",e,"not used by any audiences")})}}function f(e,t,n){var i=U.getAttribute(t),r=U.getAttributeMetadata(t),a=e.profile[t],o=e.metadata[t];if(I.isEmpty(i))return{data:a,metadata:o};var s={};return I.forOwn(a,function(e,t){var i;r&&r[t]&&(i=r[t].lastModified);var a;o&&o[t]&&(a=o[t].lastModified),(n===D.AttributionTypes.FIRST_TOUCH&&i>=a||n===D.AttributionTypes.LAST_TOUCH&&a>=i||I.isUndefined(i)&&a)&&(s.data=s.data||{},s.data[t]=e,a&&(s.metadata=s.metadata||{},s.metadata[t]=s.metadata[t]||{},s.metadata[t].lastModified=a))}),s}function g(e,t){return e.indexOf(t)>0}function p(){var e=U.getVisitorProfile(),t=U.getVisitorProfileMetadata(),n=k.getAllPlugins(D.PluginTypes.visitorProfileProviders);if(n){var i=I.reduce(n,function(e,t){return t.provides&&(e[t.provides]=t),e},{});e=I.omitBy(e,function(e,t){var n=i[t];return n&&n.isTransient})}return{profile:e,metadata:t}}function v(e,t){R.initializeStore(e,t)}function h(e){y.dispatch(O.LOAD_PERSISTED_LAYER_STATES,{layerStates:I.filter(e,function(e){return!!e.decision})})}function _(e){e=I.extend({lastSessionTimestamp:0,sessionId:null},e),y.dispatch(O.LOAD_SESSION_STATE,e)}function E(){return"oeu"+T.now()+"r"+Math.random()}function m(e){var t,n,i=k.getAllPlugins(D.PluginTypes.visitorProfileProviders),r=I.filter(i,function(e){return I.isFunction(e.restorer)});e.profile&&e.metadata?(t=e.profile,n=e.metadata):(t=e,n={}),t=I.reduce(t,function(e,t,n){var i=t,a=I.find(r,{provides:n});return a&&(i=a.restorer(t)),e[n]=i,e},{}),y.dispatch(O.LOAD_EXISTING_VISITOR_PROFILE,{profile:t,metadata:n})}var I=n(5),y=n(11),S=n(16),A=n(76).LocalStorage,T=n(8),w=n(84),D=n(2),b=n(57).Promise,O=n(14),R=n(90),L=n(91),N=n(81),P=n(4),V=n(2).VisitorStorageKeys,C=S.get("stores/global"),F=S.get("stores/layer"),k=S.get("stores/plugins"),x=S.get("stores/session"),M=S.get("stores/visitor_id"),U=S.get("stores/visitor"),G=S.get("stores/provider_status");t.getIdFromCookies=function(){var e=w.get(D.COOKIES.VISITOR_ID),t=w.get(D.COOKIES.VISITOR_UUID);return e||(e=E()),{randomId:e,UUID:t}},t.setId=function(e){var n=M.getBucketingId();if(y.dispatch(O.SET_VISITOR_ID,e),M.getBucketingId()!==n){t.loadData();try{t.persistVisitorId(e)}catch(i){if(i instanceof w.MismatchError)throw P.error("Visitor / Cookie not set to correct value:",i),new Error("Cookie mismatch error while persisting visitorId");throw i}}t.refreshSession()},t.getVariationIdMap=function(){return r(V.VARIATION_MAP)||{}},t.updateVariationIdMap=function(e,t,n){y.dispatch(O.UPDATE_VARIATION_ID_MAP,{layerId:e,experimentId:t,variationId:n})},t.persistVariationId=function(){var e=M.getVariationIdMap();u(V.VARIATION_MAP,e)},t.refreshSession=function(){y.dispatch(O.REFRESH_SESSION)},t.populateEagerVisitorData=function(e,n){var i=I.filter(e,function(e){return!e.isLazy});return t.populateVisitorData(i,n)},t.populateLazyVisitorData=function(e,n){var i=I.filter(e,function(e){return e.isLazy});return t.populateVisitorData(i,n)},t.populateVisitorData=function(e,t){t=t||{};var n=I.partial(i,t),r=I(e).filter({isAsync:!0}).map(n).filter().value();return I.forEach(I.filter(e,function(e){return!e.isAsync}),n),r.length>0?b.all(r):b.resolve()},t.loadData=function(){v(r(V.EVENTS)||[],r(V.EVENT_QUEUE)||[]);var e=o(V.LAYER_STATES);h(a(e)),_(r(V.SESSION_STATE)||{}),m(r(V.VISITOR_PROFILE)||{}),t.loadForeignData(),t.removeLegacySessionStateCookies()},t.persistBehaviorEvents=function(e){u(V.EVENTS,e)},t.persistBehaviorEventQueue=function(e){u(V.EVENT_QUEUE,e)},t.persistLayerStates=function(){var e=F.getLayerStates(t.getNamespace());e=I.map(e,function(e){return I.omit(e,"namespace")}),u(V.LAYER_STATES,e)},t.persistSessionState=function(){u(V.SESSION_STATE,x.getState())},t.persistVisitorProfile=function(){u(V.VISITOR_PROFILE,p())},t.getUserIdFromKey=function(e,n){var i;return I.includes(e,n)&&I.includes(e,"_")&&I.includes(e,"$$")&&I.includes(e.slice(e.indexOf("$$")),t.getNamespace())&&(i=e.slice(e.indexOf("_")+1,e.indexOf("$$"))),i},t.persistVisitorId=function(e){I.isUndefined(e.UUID)?e.randomId&&w.set(D.COOKIES.VISITOR_ID,e.randomId):null===e.UUID?w.remove(D.COOKIES.VISITOR_UUID):w.set(D.COOKIES.VISITOR_UUID,e.UUID)},t.getAttribute=function(e){return U.getAttribute(e)},t.getPendingAttributeValue=function(e){return G.getPendingAttributeValue(e)},t.loadForeignData=function(){I.each(A.keys(),function(e){var t=A.getItem(e);t&&d(e,t)})},t.getNamespace=function(){return C.getNamespace()||C.getProjectId()},t.removeLegacySessionStateCookies=function(){var e=w.getAll();I.forEach(I.keys(e),function(e){0===e.indexOf(D.COOKIES.SESSION_STATE+"$$")&&w.remove(e)})}},function(e,t,n){var i=n(91);t.initializeStore=i.initialize,t.addEvent=i.addEvent,t.getEvents=i.getEvents,t.usageInBytes=i.usageInBytes},function(e,t,n){function i(e){E.dispatch(I.SET_VISITOR_EVENTS,e)}function r(e){E.dispatch(I.UPDATE_BEHAVIOR_STORE,{key:"baseMap",value:e})}function a(e){E.dispatch(I.UPDATE_BEHAVIOR_STORE,{key:"eventQueue",value:e})}function o(e){E.dispatch(I.UPDATE_BEHAVIOR_STORE,{key:"lastEvent",value:e})}function s(e){E.dispatch(I.UPDATE_BEHAVIOR_STORE,{key:"cleared",value:e})}function u(){E.dispatch(I.UPDATE_BEHAVIOR_STORE,{key:"initialized",value:!0})}function c(){return!0}function l(){return L.getEvents()}function d(){return N.getBaseMap()}function f(){return N.getEventQueue()}function g(){return N.getLastEvent()}function p(){return N.getCleared()}function v(){return N.getInitialized()}function h(){return i(l().concat(f())),a([]),l().length>V?(i(l().slice(-V)),!0):!1}var _=n(5),E=n(11),m=n(4),I=n(14),y=n(92),S=n(89),A=n(8),T=t,w=n(47).EventBase,D=n(47).Event,b=n(48),O=n(93),R=n(16),L=R.get("stores/visitor_events"),N=R.get("stores/visitor_events_manager"),P={EVENTBASE:"eb",HASH:"h",TIMEBASE:"tb",TIMESTAMPS:"ts",DELTA:"d",INDEX:"i"},V=1e3;t.initialize=function(e,t){if(!c())return void T.Ge();if(!v()){T.Be(e,t);var n=l();n.length>0&&o(n[n.length-1]);var i=f();i.length>0&&o(i[i.length-1]),u()}},t.addEvent=function(e){if(!c())return void T.Ge();m.debug("Behavior store: adding event",e);var t=T.je(e);o(t),a(f().concat(t)),T.ze(f())},t.getEvents=function(){return c()?(f().length>0&&(h()&&O.sessionize(l()),T.He(l()),T.ze(f())),l()):(T.Ge(),[])},T.Be=function(e,t){T.Ye(e,t)&&(T.He(l()),T.ze(f())),O.sessionize(l())},T.Ye=function(e,t){if(0===e.length&&0===t.length)return i([]),a([]),!1;var n=!1,r=e[0]||t[0];return P.EVENTBASE in r?(i(T.qe(e)),a(T.qe(t))):(n=!0,i(T.Ke(e)),a(T.Ke(t))),f().length>0&&(h(),n=!0),i(T._updateBaseMapAndMaybeDedupe(l())),T._migrateEventBasesAndUpdateStore()&&(n=!0),n},T.Ke=function(e){for(var t=[],n=0;nn;n++)r(e[n-1],e[n])}},t.sessionSortPredicate=function(e,t){return e[s.FIELDS.TIME]-t[s.FIELDS.TIME]},t.applyMigrations=function(e){return!1}},function(e,t,n){var i=(n(11),n(4),n(8));n(14),n(2);t.time=function(){},t.timeEnd=function(){},t.now=function(){return window.performance?window.performance.now():i.now()}},function(e,t,n){var i=n(5),r=n(16),a=n(11),o=n(8),s=n(14),u=r.get("stores/global"),c=r.get("stores/session"),l=2e3;t.recordLayerDecision=function(e,t,n){return a.dispatch(s.RECORD_LAYER_DECISION,{layerId:e,decision:n,decisionTicket:t,sessionId:c.getSessionId(),activationId:u.getActivationId(),timestamp:o.now(),revision:u.getRevision(),namespace:u.getNamespace(),viewId:t.viewId}),n},t.relatedAudienceIds=function(e){var t={},n=["and","or","not"];return i.each(e.experiments,function(e){i.each(i.flattenDeep(e.audienceIds),function(e){i.includes(n,e)||(t[e]=!0)})}),i.keys(t)},t.getActivationTimeout=function(e){var t=e.activation;return t&&null!=t.timeout?t.timeout:l},t.description=function(e){return(e.name?'"'+e.name+'" ':"")+"("+e.id+")"}},function(e,t,n){var i=(n(5),n(11),n(14),n(4)),r=(n(57).Promise,n(16)),a=(n(8),n(72),n(73),n(8),r.get("stores/global"),r.get("stores/change_data"),r.get("stores/session"),n(97));n(99);a.initialize(),t.execute=function(e){i.warn("Action / Execute called with LIVE_CHANGES set to false")}},function(e,t,n){function i(){"interactive"!==document.readyState&&"complete"!==document.readyState||(t.domReadyTime=Date.now())}var r=n(98),a=n(16).get("stores/directive");t.domReadyTime=null,t.initialize=function(){i(),document.addEventListener("readystatechange",i,!0)},t.isTimedOut=function(e){var n=Date.now();if(!t.domReadyTime||!e)return!1;var i=Math.max(e,t.domReadyTime);return a.isEditor()&&(i=t.domReadyTime),!(n-i-1)return{experimentId:e.experiments[n].id,variationId:e.experiments[n].variations[i].id};return null}function r(e){var t=h.getPlugin(c.PluginTypes.deciders,e);if(o.isEmpty(t))throw new Error("No deciders found for policy: "+e);return t}function a(e,t){var n=h.getAllPlugins(c.PluginTypes.audienceMatchers);return o.reduce(t,function(t,i){return f.isInAudience(e,i,n)&&t.push(i.id),t},[])}var o=n(5),s=n(101),u=n(102),c=n(2),l=n(4),d=n(81),f=n(105),g=n(103).DecisionError,p=n(95),v=n(16),h=v.get("stores/plugins"),_=v.get("stores/global");t.createTicket=function(e){var t;if(e.layer){var n=!1,i=r(e.layer.policy);o.isFunction(i.includeViewIdInDecisionTicket)?n=i.includeViewIdInDecisionTicket(e.layer):i.includeViewIdInDecisionTicket===!0&&(n=!0),n&&(t=e.viewId)}var s={bucketingId:e.bucketingId,audienceIds:a(e.visitorProfile,e.audiences),globalHoldback:e.globalHoldback,preferredVariationMap:e.preferredVariationMap,activationId:_.getActivationId(),viewId:t};return s},t.decideGlobal=function(e){var t=s.isHoldback(e.bucketingId,{id:null,holdback:e.globalHoldback});return{isGlobalHoldback:t}},t.decideLayer=function(e,t){l.debug("Deciding: ",e,t);var n,i,a=r(e.policy),c={layerId:e.id,experimentId:null,variationId:null,isLayerHoldback:s.isHoldback(t.bucketingId,e)};if(o.isEmpty(e.experiments))throw new g("No experiments in layer.");try{if(a.decideLayer){l.debug("Decision / Using decider's custom decideLayer.");var f=a.decideLayer(e,t);n=f.experiment,i=f.variation}else l.debug("Decision / Using default decideLayer behavior."),n=a.selectExperiment(e,t.audienceIds,t.bucketingId),i=u.selectVariation(n,t.audienceIds,t.bucketingId,t.activationId,t.preferredVariationMap)}catch(v){v instanceof g?c.reason=v.message:c.error=v}return c.experimentId=n?n.id:null,c.variationId=i?i.id:null,c.error?(c.error.name="DecisionEngineError",d.emitError(c.error)):c.experimentId&&c.variationId||l.log("Decision / Not in Campaign",p.description(e),"because:",c.reason),c},t.getDummyLayerDecision=function(e,t){var n,r=i(e,t);return r?(l.log("Decision / Applying force variation:",r.variationId,"to Campaign",p.description(e)),n={layerId:e.id,variationId:r.variationId,experimentId:r.experimentId,isLayerHoldback:!1,reason:"force"}):(l.log("No variation matches ids:",t,"in Campaign",p.description(e)),n={layerId:e.id,variationId:null,experimentId:null,isLayerHoldback:!1,reason:"force"}),n}},function(e,t,n){var i=n(49),r=t.TOTAL_POINTS=1e4,a=function(e,t,n){var a=i.hashToInt(e+t,n,r);return a};t.isHoldback=function(e,t){return a(e,t.id,i.Seed.IGNORING)<(t.holdback||0)},t.chooseWeightedCandidate=function(e,t,n){for(var r=a(e,t,i.Seed.BUCKETING),o=0;or)return n[o].entityId;throw new Error("Unable to choose candidate")}},function(e,t,n){var i=n(5),r=n(101),a=n(103).DecisionError,o=n(104),s=n(4),u="impression";t.isValidExperiment=function(e,t){var n,r=i.partial(i.includes,e);return s.groupCollapsed("Decision / Evaluating audiences for experiment:",t,e),n=t.audienceIds?o.evaluate(t.audienceIds,r):!0,s.groupEnd(),s.debug("Decision / Experiment",t,"is valid?",n),n},t.selectVariation=function(e,t,n,o,c){if(!e.variations||0===e.variations.length)throw new a('No variations in selected experiment "'+e.id+'"');if(!e.weightDistributions&&e.variations.length>1)throw new a('On selected experiment "'+e.id+'", weightDistributions must be defined if # variations > 1');var l;if(e.bucketingStrategy&&e.bucketingStrategy===u)if(1===e.variations.length)l=e.variations[0].id;else{var d=o;l=r.chooseWeightedCandidate(n+d,e.id,e.weightDistributions)}else if(c&&c[e.id]){s.debug("Decision / Using preferredVariationMap to select variation for experiment:",e.id);var f=c[e.id];if(!i.find(e.variations,{id:f}))return s.debug("Decision / Preferred variation:",f,"not found on experiment:",e.id,". Visitor not bucketed."),null;l=f}else l=1===e.variations.length?e.variations[0].id:r.chooseWeightedCandidate(n,e.id,e.weightDistributions);var g=i.find(e.variations,{id:l});if(g)return s.debug("Decision / Selected variation:",g),g;throw new a('Unable to find selected variation: "'+l+'".')},t.getExperimentById=function(e,t){var n=i.find(e.experiments,{id:t});if(n)return n;throw new a("Unable to find selected experiment.")},t.hasVariationActionsOnView=function(e,t){return s.debug("Decision / Checking variation:",e,"for actions on viewId:",t),!!i.find(e.actions,function(e){return e.viewId===t&&!i.isEmpty(e.changes)})}},function(e,t){function n(e){this.message=e}n.prototype=new Error,t.DecisionError=n},function(e,t,n){function i(e,t){for(var n,i,r=0;rt)return!0;return!1}function o(e){for(;f[e]&&f[e].callbackQueue.length;){var t=f[e].callbackQueue.shift();if(s(t,e),f[e].matchedCount=f[e].matchedCount+1,f[e].callback(t),f[e].options.once)return void i(e)}}function s(e,t){e.Ze||(e.Ze={}),e.Ze[t]=!0}function u(e){try{document.querySelector(e)}catch(t){return!1}return!0}var c=n(122),l=n(41).generate,d=n(5),f={},g={once:!1,onTimeout:null,timeout:null};t.observeSelector=function(e,t,n){if(!u(e))throw new Error("observeSelector expects a valid css selector as its first argument");if(!d.isFunction(t))throw new Error("observeSelector expects a function as its second argument");if(n&&(!d.isObject(n)||d.isFunction(n)))throw new Error("observeSelector expects an object as its third argument");var a=l();return n=d.merge({},g,n||{}),f[a]={callback:t,callbackQueue:[],cancelPolling:c.poll(d.partial(r,a)),matchedCount:0,options:n,selector:e,startTime:Date.now()},setTimeout(r.bind(null,a),0),d.partial(i,a)}},function(e,t,n){function i(e){u[e]&&a.each(u[e].callbacks,function(e){e.call(null)})}function r(e,t){u[t]&&u[t].callbacks[e]&&(delete u[t].callbacks[e],a.some(u[t].callbacks)||(clearInterval(u[t].id),delete u[t]))}var a=n(5),o=n(41).generate,s=n(123).DEFAULT_INTERVAL,u={};t.poll=function(e,t){a.isNumber(t)||(t=s),u[t]||(u[t]={callbacks:{},id:setInterval(a.partial(i,t),t)});var n=o();return u[t].callbacks[n]=e,a.partial(r,n,t)},t.cancelAll=function(){a.each(u,function(e,t){clearInterval(e.id),delete u[t]})}},function(e,t){e.exports={DEFAULT_INTERVAL:20}},function(e,t,n){var i=n(57).Promise,r=n(121).observeSelector;t.waitForElement=function(e){return new i(function(t,n){r(e,t,{once:!0})})}},function(e,t,n){var i=n(57).Promise,r=n(122).poll;t.waitUntil=function(e){return new i(function(t,n){if(e())return void t();var i=r(function(){e()&&(i(),t())})})}},function(e,t,n){var i,r=n(10);try{i=$}catch(a){}var o=r.getGlobal("jQuery"),s=r.getGlobal("$");i&&i!==s?e.exports=i:e.exports=o||s},function(e,t,n){var i=n(82);t.on=function(e){return e.publicOnly=!0,i.on(e)},t.off=i.off,t.emit=function(e){i.emit(e)}},function(e,t,n){function i(e){var t,n={};if(e)if(r(e))t=Number(e);else{if("object"!=typeof e)throw new Error("tracker","Revenue argument",e,"not a number.");if(n=a.extend({},e),"revenue"in n){if(!r(n.revenue))throw new Error("tracker","Revenue value",n.revenue,"not a number.");t=Number(n.revenue),delete n.revenue}}return a.isUndefined(t)||(n.revenue=t),n}function r(e){return a.isNumber(e)||a.isString(e)&&Number(e)==e}var a=n(5),o=n(129);t.activateGeoDelayedExperiments=function(e,t){t||(t=e.lists?"odds":"cdn3"),o.dataFromSource({data:e,source:t})},t.activateSiteCatalyst=function(e){e&&e.sVariable&&o.integrationSettings({id:"adobe_analytics",settings:{sVariableReference:e.sVariable}})},t.bucketUser=t.bucketVisitor=function(e,t){if(e&&t){var n={experimentId:String(e)};t>256?n.variationId=String(t):n.variationIndex=String(t),o.bucketVisitor(n)}},t.disable=function(e){o.disable({scope:e})},t.log=function(e){a.isUndefined(e)&&(e=!0),o.log({level:e?"INFO":"OFF"})},t.optOut=function(e){a.isUndefined(e)&&(e=!0),o.optOut({isOptOut:e})},t.setCookieDomain=function(e){o.cookieDomain({cookieDomain:e})},t.setCookieExpiration=function(e){o.cookieExpiration({cookieExpirationDays:e})},t.setDimensionValue=function(e,t){var n={};n[e]=t,o.user({attributes:n})},t.setUserId=function(e){o.user({userId:e})},t.storeThirdPartyData=function(e,t){o.dataFromSource({source:e,data:t})},t.trackEvent=function(e,t){o.event({eventName:e,tags:i(t)})}},function(e,t,n){var i=n(5),r=n(14),a=n(2),o=n(118),s=n(119),u=n(112),c=n(72),l=n(83),d=n(82),f=n(11),g=n(4),p=n(106),v=n(107),h=n(89),_=n(87),E=n(114),m=n(15),I=n(8),y=n(16),S=y.get("stores/dimension_data"),A=y.get("stores/view_data"),T=y.get("stores/visitor_id"),w=y.get("stores/layer_data"),D=y.get("stores/directive"),b=86400,O=90;t.event=function(e){v.updateAllViewTags();var t=function(){var t=u.trackCustomEvent(e.eventName,e.tags);t?g.log("API / Tracking custom event:",e.eventName,e.tags):g.log("API / Not tracking custom event:",e.eventName)};T.getBucketingId()?t():f.dispatch(r.ADD_CLEANUP_FN,{lifecycle:a.Lifecycle.postActivate,cleanupFn:t})},t.page=function(e){var t=A.getByApiName(e.pageName);if(!t)throw new Error('Unknown page "'+e.pageName+'"');var n=e.hasOwnProperty("isActive")?e.isActive:!0,i=function(){n?v.activate(t,e.tags):(v.deactivate(t),g.log("API / Deactivated Page",v.description(t)))};T.getBucketingId()?i():f.dispatch(r.ADD_CLEANUP_FN,{lifecycle:a.Lifecycle.postViewsActivated,cleanupFn:i})},t.tags=function(e){v.setGlobalTags(e.tags)},t.user=function(e){i.each(e,function(e,t){switch(t){case"userId":g.log("API / Setting visitor UUID to",e),h.persistVisitorId({UUID:e});break;case"attributes":g.log("API / Setting visitor attributes:",e),i.each(e,function(e,t){var n,i=t,o="custom",s=S.getById(t)||S.getByApiName(t);s&&(i=s.id,n=s.segmentId||s.id);var u=function(){f.dispatch(r.SET_VISITOR_ATTRIBUTES,{attributes:[{key:i,value:{id:n,value:e},type:o,metadata:{lastModified:I.now()}}]})};T.getBucketingId()?u():f.dispatch(r.ADD_CLEANUP_FN,{lifecycle:a.Lifecycle.postVisitorProfileLoad,cleanupFn:u})})}})},t.optOut=function(e){var t=e.hasOwnProperty("isOptOut")?e.isOptOut:!0;l.setOptOut(t)},t.cookieExpiration=function(e){var t=e.cookieExpirationDays;O>t&&(g.error('Argument "cookieExpirationDays"=',t,"less than minimum days:",O,", setting to minimum."),t=O),g.log("API / Setting cookie age to",t,"days."),f.dispatch(r.SET_COOKIE_AGE,t*b)},t.cookieDomain=function(e){g.log("API / Setting cookie domain to",e.cookieDomain),f.dispatch(r.SET_COOKIE_DOMAIN,e.cookieDomain)},t.disable=function(e){if(e.scope){if("tracking"!==e.scope)throw new Error('Unknown "scope" for disable: '+e.scope);g.log("API / Disabling tracking"),f.dispatch(r.LOAD_DIRECTIVE,{trackingDisabled:!0})}else g.log("API / Disabling everything"),f.dispatch(r.LOAD_DIRECTIVE,{disabled:!0})},t.log=function(e){var t=e.level,n=e.match;i.isUndefined(t)&&(t="INFO"),i.isUndefined(n)&&(n=""),g.setLogMatcher(n),g.setLogLevel(t)},t.registerModule=function(e){var t="custom/"+e.moduleName;if(s[t]||o.get(t))throw new Error('Module name "'+t+'" is reserved. Will not be registered as plugin.');p.registerApiModule(t,e.module)},t.dataFromSource=function(e){var t=e.source;c.makeAsyncRequest(t),c.resolveRequest(t,e.data)},t.addListener=function(e){if(!i.isFunction(e.handler))throw new Error("A handler function must be supplied");e=i.omit(e,"type"),e.publicOnly=!0,d.on(e)},t.removeListener=function(e){if(!e.token)throw new Error("Must supply a token to removeListener");d.off(e.token)},t.load=function(e){f.dispatch(r.DATA_LOADED,{data:e.data})},t.integrationSettings=function(e){if(!e.id)throw new Error("id is required");if(!e.settings)throw new Error("settings is required");f.dispatch(r.SET_INTEGRATION_SETTINGS,i.extend({},e.settings,{id:e.id}))},t.bucketVisitor=function(e){if(!e.variationId&&i.isUndefined(e.variationIndex)||e.variationId&&e.variationIndex)throw new Error("One of a variationId or a variationIndex is required.");if(!e.experimentId)throw new Error("An experimentId is required.");var t,n,r=e.campaignId;if(r){if(t=w.get(r),!t)throw new Error("Could not find layer "+r)}else if(t=w.getLayerByExperimentId(e.experimentId),r=t.id,!r)throw new Error("Could not find layer for experiment "+e.experimentId);if(n=i.find(t.experiments,{id:e.experimentId}),!n)throw new Error("Could not find experiment "+e.experimentId+" in layer "+r);var a=e.variationId;if(i.isUndefined(e.variationIndex)){if(!i.find(n.variations,{id:a}))throw new Error("Cound not find variation "+a+" in experiment "+e.experimentId)}else if(a=n.variations[e.variationIndex].id,!a)throw new Error("Could not find variation at index "+e.variationIndex+" in experiment "+e.experimentId);h.updateVariationIdMap(r,e.experimentId,a),T.getBucketingId()&&h.persistVariationId()},t.waitForOriginSync=function(e){if(!i.isArray(e.canonicalOrigins))throw new Error("canonicalOrigins must be an array. Got: "+m.stringify(e.canonicalOrigins));i.each(e.canonicalOrigins,function(e){if(!i.isString(e))throw new Error("Each item in canonicalOrigins must be a string. Found type "+typeof e)}),E.loadCanonicalOrigins(e.canonicalOrigins)},t.activate=function(){D.shouldActivate()?_.emitActivateEvent():g.debug("Not activating.")}},function(e,t){},function(e,t,n){var i=n(5),r=n(113),a=n(8),o=n(56),s=n(4),u=n(16),c=u.get("stores/global"),l="https://errors.client.optimizely.com";t.handleError=function(e,t){var n=e.name||"Error",u=e.message,d=e.stack||null,f={timestamp:a.now(),clientEngine:r.ENGINE,clientVersion:r.VERSION,accountId:c.getAccountId(),projectId:c.getProjectId(),errorClass:n,message:u,stacktrace:d};t&&(f.metadata=i.reduce(t,function(e,t,n){return i.isObject(t)||e.push({key:n,value:String(t)}),e},[])),s.error("Logging error",f),o.request({url:l+"/log",method:"POST",data:f,contentType:"application/json"}).then(function(e){s.log("Error Monitor / Logged error with response: ",e)},function(e){s.error("Failed to log error, response was: ",e)})}},function(e,t,n){function i(){var e={user:I.getBucketingId(),project:m.getProjectId(),revision:m.getRevision(),numBehaviorEvents:d.getEvents().length,clientVersion:"0.39.3",hasSlave:!0,wxhr:!0};s.extend(e,r()),f.dispatch(_.SET_RUM_DATA,{data:e})}function r(){var e=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi;try{var t=p.getGlobal("performance").getEntriesByType("resource"),n=s.filter(t,function(t){return e.test(t.name)});if(n)return s.mapValues(h.ResourceTimingAttributes,function(e,t){return n[0][t]||0})}catch(i){return}}function a(){try{return!v.querySelector("body")}catch(e){return null}}function o(){try{p.getGlobal("requestAnimationFrame")(function(){var e=y.getRumData().timebase;f.dispatch(_.SET_RUM_DATA,{data:{render:c.now()-(e||0)}})})}catch(e){return}}var s=n(5),u=n(57).Promise,c=n(8),l=n(56),d=n(90),f=n(11),g=n(4),p=n(10),v=n(64),h=n(2),_=n(14),E=n(16),m=E.get("stores/global"),I=E.get("stores/visitor_id"),y=E.get("stores/rum"),S="https://rum.optimizely.com/rum",A=.003;t.initialize=function(){if(f.dispatch(_.SET_RUM_DATA,{RumHost:S,inRumSample:Math.random()e[1]},lt:function(e){return e[0]=e[1]},lte:function(e){return e[0]<=e[1]},"in":function(e){var t=i.map(e[1]||[],l.maybeTrimLowerCase);return i.includes(t,l.maybeTrimLowerCase(e[0]))},between:function(e){return e[1]<=e[0]&&e[0]<=e[2]},contains:function(e){var t=i.map(e,function(e){return"string"==typeof e?e.toLowerCase():e});return-1!==(t[0]||"").indexOf(t[1])},regex:function(e){try{var t,n;return i.isString(e[1])?(t=e[1],n="i"):(t=e[1][0]||"",n=e[1][1]||""),new RegExp(t,n).test(e[0])}catch(r){return a.error("Rules",'In operator "regex", error: '+(r.message||"invalid RegExp /"+[t,n].join("/"))),!1}},exists:function(e){return"undefined"!=typeof e[0]},and:function(e){return i.every(e,function(e){return e})},or:function(e){return i.some(e,function(e){return e})},not:function(e){return!e[0]}},l.arithmeticOperators={"+":function(e){return(e[0]||0)+(e[1]||0)},"-":function(e){return(e[0]||0)-(e[1]||0)},"/":function(e){return(e[0]||0)/(e[1]||1)},"%":function(e){return(e[0]||0)%(e[1]||1)}},l.aggregateOperators={sum:function(e,t){for(var n=e[0]||l.DEFAULT_FIELD,i=0,r=0;ru)return-o;if(u>c)return o}return 0}):(o("Rules","groupBy rule must be an array"),t)},l.rewrite=function(e){function t(e,o){if(i.isArray(e)&&("and"!==e[0]&&"or"!==e[0]&&"not"!==e[0]&&a.error("Rules","Unexpected operation "+e[0]+". Continuing optimistically."),e={op:e[0],args:e.slice(1)}),e.hasOwnProperty("field")||e.hasOwnProperty("value")||e.hasOwnProperty("eval"))return e;if(o&&e.op in l.aggregateOperators){var s=(e.args&&e.args[0]||{}).field||l.DEFAULT_FIELD,u=l.generateAlias(e.op,s);return u in r||(n.push({op:e.op,args:e.args}),r[u]=!0),{field:[u]}}for(var c=[],d=e.args||[],f=0;f0)&&(o[l.clause.AGGREGATE]=(e[l.clause.AGGREGATE]||[]).concat(n));for(var s=[l.clause.GROUP_BY,l.clause.ORDER_BY,l.clause.SELECT,l.clause.OFFSET,l.clause.LIMIT],u=0;u0&&(n=i.map(n,function(e){return"Sub-rule "+t+": "+e})),e.hasOwnProperty(l.clause.FROM)&&(n=n.concat(l.verify(e[l.clause.FROM],t+1))),n},l.select=function(e,t){return i.map(t,function(t){return i.map(e,function(e){return l.operate(t,e)})})},l.executeRecursively=function(e,t){var n=t;if(e.hasOwnProperty(l.clause.FROM)&&(a.debug("Evaluating FROM clause:",e[l.clause.FROM]),n=l.executeRecursively(e[l.clause.FROM],n),a.debug("Results after FROM:",n)),a.debug("Evaluating WHERE clause:",e[l.clause.WHERE]),n=i.filter(n,function(t){return l.operate(t,e[l.clause.WHERE])}),a.debug("Results after WHERE:",n),e.hasOwnProperty(l.clause.AGGREGATE)){a.debug("Evaluating AGGREGATE clause:",e[l.clause.AGGREGATE]);var r=l.groupBy(e[l.clause.GROUP_BY],n),o=l.aggregate(e[l.clause.AGGREGATE],r);n=l.project(r,o),a.debug("Results after AGGREGATE:",n)}e.hasOwnProperty(l.clause.HAVING)&&(a.debug("Evaluating HAVING clause:",e[l.clause.HAVING]),n=i.filter(n,function(t){return l.operate(t,e[l.clause.HAVING])}),a.debug("Results after HAVING:",n)),e.hasOwnProperty(l.clause.ORDER_BY)&&(a.debug("Evaluating ORDER_BY clause:",e[l.clause.ORDER_BY]),n=l.orderBy(e[l.clause.ORDER_BY],n),a.debug("Results after ORDER_BY:",n));var s=0;e.hasOwnProperty(l.clause.OFFSET)&&(a.debug("Evaluating OFFSET clause:",e[l.clause.OFFSET]),s=Number(e[l.clause.OFFSET]));var u;return e.hasOwnProperty(l.clause.LIMIT)&&(a.debug("Evaluating LIMIT clause:",e[l.clause.LIMIT]),u=s+Number(e[l.clause.LIMIT])),(s>0||!i.isUndefined(u))&&(n=n.slice(s,u),a.debug("Results after OFFSET/LIMIT:",n)),e.hasOwnProperty(l.clause.SELECT)&&(a.debug("Evaluating SELECT clause:",e[l.clause.SELECT]),n=l.select(e[l.clause.SELECT],n),a.debug("Results after SELECT:",n)),n},l.execute=function(e,t){e=l.rewrite(e),a.shouldLog(r.LogLevel.DEBUG)&&a.groupCollapsed("Evaluating Behavioral Rule"),a.debug("Rule:",e,c.stringify(e)),a.debug("Events:",t);var n=l.verify(e);if(n.length>0)throw new Error("Rule "+c.stringify(e)+" has violations: "+n.join("\n"));var i=l.executeRecursively(e,t);return a.debug("Rule result:",i),a.shouldLog(r.LogLevel.DEBUG)&&a.groupEnd(),i},l.isSatisfied=function(e,t){try{return l.execute(e,t).length>0}catch(n){return a.error("Rules","Error "+n.toString()+" while evaluating rule "+c.stringify(e)),!1}}},function(e,t,n){var i=n(137);e.exports={provides:"events",isTransient:!0,getter:["stores/visitor_events",function(e){return i.getEvents(e)}]}},function(e,t,n){var i=n(5),r=n(91);t.getEvents=function(e){var t=r.getEvents(),n=[].concat.apply([],i.values(e.getForeignEvents())),a=[].concat.apply([],i.values(e.getForeignEventQueues()));return r.mergeAllEvents([t,n,a])}},function(e,t,n){var i=n(5),r=n(139),a=n(135),o=n(15);e.exports={fieldsNeeded:["events"],match:function(e,t){var n=[],s=o.parse(t.value);return n=i.isUndefined(s.version)?[s]:r.buildFromSpecV0_1(s),i.every(n,function(t){return a.isSatisfied(t,e.events)})}}},function(e,t,n){function i(e){return e=(e||"").toString().trim(),g[e]||e}function r(e,t,n){var i={where:t};if(e.count&&(i.limit=e.count),e.modifier===s.FREQUENCY_FILTERS.MOST_FREQUENT){var r=s.getFieldKeyPathForSource(e.name,n),a=s.aggregate("count"),o=s.aggregateField("count"),c=s.groupField(r);return d.extend(i,{select:[{field:c}],groupBy:s.groupBy([r]),aggregate:[a],orderBy:[{field:o,direction:"DESC"}]})}return d.extend(i,{orderBy:[{field:[u.FIELDS.TIME],direction:"DESC"}]})}function a(e){var t=[];if(d.isUndefined(e))throw new Error("rule is undefined");if(!d.isObject(e))throw new Error("rule is not an Object");"0.2"!==e.version&&t.push('version: not "0.2"'), e.filter&&(d.isArray(e.filter)?d.each(e.filter,function(e,n){var i=s.validateFieldKeyPathV0_2(e.field,s.FieldPurpose.FILTER);i&&t.push("filter["+n+"]: "+i);var r=s.validateComparatorAndValue(e.comparator,e.value);r&&t.push("filter["+n+"]: "+r)}):t.push("filter: not an array"));var n=[],i=[];if(e.sort&&(e.reduce&&e.reduce.aggregator&&"nth"!==e.reduce.aggregator&&t.push("sort: superfluous because we can apply aggregator "+f.stringify(e.reduce.aggregator)+" to unsorted items"),d.isArray(e.sort)?d.each(e.sort,function(e,r){var a=s.validateFieldKeyPathV0_2(e.field,s.FieldPurpose.SORT);a&&t.push("sort["+r+"]: "+a),e.field&&"frequency"===e.field[0]?n.push(e):i.push(e);var u=o(e.direction);u&&t.push("sort["+r+"]: "+u)}):t.push("sort: not an array"),n.length&&i.length&&t.push('sort: sorting by non-["frequency"] field is pointless because we are going to sort the picked values by ["frequency"]'),n.length&&!e.pick&&t.push('sort: sorting by ["frequency"] is impossible because no values have been picked')),e.pick){e.reduce&&"count"===e.reduce.aggregator&&t.push('pick: superfluous because we can apply aggregator "count" to raw events');var r=s.validateFieldKeyPathV0_2(e.pick.field);r&&t.push("pick: "+r)}if(e.reduce){var a=e.reduce.aggregator,u="aggregator "+(f.stringify(a)||String(a)),c=e.reduce.n,l="index "+(f.stringify(c)||String(c));d.includes(["sum","avg","max","min","count","nth"],a)||t.push("reduce: "+u+" is unknown"),d.includes(["sum","avg","max","min"],a)&&(e.pick||t.push("reduce: "+u+" is impossible to use because no values have been picked")),"nth"===a?((!d.isNumber(c)||isNaN(c)||parseInt(c,10)!==c||0>c)&&t.push("reduce: "+l+" is not a non-negative integer (mandated by "+u+")"),e.sort||t.push('reduce: aggregator "nth" is meaningless without a specific sort order')):d.isUndefined(c)||t.push("reduce: "+l+" is defined (not mandated by "+u+")")}if(t.length)throw new Error(t.join("\n"))}function o(e){var t="direction "+(f.stringify(e)||String(e));return d.includes(["ascending","descending"],e)?void 0:t+' is not "ascending" or "descending"'}var s=t,u={FIELDS:n(48).FIELDS,FIELDS_V0_2:n(48).FIELDS_V0_2},c=n(135),l=n(4),d=n(5),f=n(15);s.MILLIS_IN_A_DAY=864e5,s.aggregateField=function(e,t){return d.isString(t)&&(t=[t]),t=t||c.DEFAULT_FIELD,[c.generateAlias(e,t)]},s.groupField=function(e){return d.isString(e)&&(e=[e]),e=e||c.DEFAULT_FIELD,[e.join(".")]};var g={"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","==":"eq"};s.fieldComparison=function(e,t,n){return e=i(e),d.isString(t)&&(t=[t]),"exists"===e?{op:e,args:[{field:t}]}:{op:e,args:[{field:t},{value:n}]}},s.relativeTimeComparison=function(e,t){return{op:i(e),args:[{op:"-",args:[{eval:"now"},{field:[u.FIELDS.TIME]}]},{value:t*s.MILLIS_IN_A_DAY}]}},s.rangeTimeComparison=function(e){return d.isArray(e)?{op:"between",args:[{field:[u.FIELDS.TIME]},{value:e[0]||+new Date(0)},{value:e[1]||+new Date}]}:(l.error("Rule builder","rangeTimeComparison passed invalid range",e),null)},s.groupBy=function(e){for(var t=[],n=0;n0)throw new Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+f.stringify(e));return[r(e.pick,t,e.source)]}return n.length>0?n:[{where:t}]},s.buildFromSpecV0_2=function(e){a(e);var t={where:{op:"and",args:d.map(e.filter||[],function(e){return"age"===e.field[0]?s.relativeTimeComparison(e.comparator||"eq",e.value/s.MILLIS_IN_A_DAY):s.fieldComparison(e.comparator||"eq",s.convertFieldKeyPathFromSpecV0_2(e.field),e.value)})}};if(e.reduce&&"count"===e.reduce.aggregator)return d.extend(t,{aggregate:[{op:"count",args:[{field:["*"]}]}],select:[{field:["_count_*"]}]});var n=[],i=[];if(e.sort&&(d.each(e.sort,function(e){d.includes(["ascending","descending"],e.direction)&&(d.includes(["time","age"],e.field[0])&&i.push(e),"frequency"===e.field[0]&&n.push(e))}),i.length&&!n.length&&(t.orderBy=d.filter(d.map(i,function(e){return"time"===e.field[0]?{field:s.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===e.direction?"ASC":"DESC"}:"age"===e.field[0]?{field:s.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===e.direction?"DESC":"ASC"}:void 0})))),e.pick&&e.pick.field){var r=s.convertFieldKeyPathFromSpecV0_2(e.pick.field);if(e.reduce&&d.includes(["avg","max","min","sum"],e.reduce.aggregator))return d.extend(t,{aggregate:[{op:e.reduce.aggregator,args:[{field:r}]}],select:[{field:[c.generateAlias(e.reduce.aggregator,r)]}]});t=n.length?d.extend(t,{groupBy:[{field:r}],aggregate:[{op:"count",args:[{field:["*"]}]}],orderBy:[{field:["_count_*"],direction:"ascending"===n[0].direction?"ASC":"DESC"}],select:[{field:[r.join(".")]}]}):d.extend(t,{select:[{field:r}]})}if(e.reduce&&"nth"===e.reduce.aggregator){var o=e.reduce.n;if(d.isNumber(o)&&o>=0&&Number(o)===Math.floor(Number(o)))return d.extend(t,{offset:o,limit:1})}return t},s.convertFieldKeyPathFromSpecV0_2=function(e){return"tags"===e[0]&&"revenue"===e[1]?["r"]:[u.FIELDS_V0_2[e[0]]].concat(e.slice(1))},s.FieldPurpose={FILTER:"filter",SORT:"sort",PICK:"pick"},s.validateFieldKeyPathV0_2=function(e,t){var n="field "+(f.stringify(e)||String(e));if(!d.isArray(e)||!d.every(e,d.isString))return n+" is not an array of strings";if("tags"===e[0]&&e.length>2||"tags"!==e[0]&&e.length>1)return n+" includes too many strings";if("tags"===e[0]&&e.length<2)return n+" does not specify an exact tag";if(e.length<1)return n+" does not specify a top-level field";var i=d.keys(u.FIELDS_V0_2),r=["age","frequency"];return t===s.FieldPurpose.FILTER&&(i.push("age"),r=["frequency"]),t===s.FieldPurpose.SORT&&(i=["time","age","frequency"],r=["name","type","category","tags"]),d.includes(r,e[0])?n+" is not supported here":d.includes(i,e[0])?void 0:n+" is unknown"},s.validateComparatorAndValue=function(e,t){var n="comparator "+(f.stringify(e)||String(e)),i="value "+(f.stringify(t)||String(t));if(!d.isString(e)&&!d.isUndefined(e))return n+" is not a string";switch(e){case void 0:case"eq":case"is":case"contains":break;case"lt":case"gt":case"lte":case"gte":if(!d.isNumber(t))return i+" is not a number (mandated by "+n+")";break;case"in":if(!d.isArray(t))return i+" is not an array (mandated by "+n+")";break;case"between":if(!(d.isArray(t)&&2===t.length&&d.isNumber(t[0])&&d.isNumber(t[1])&&t[0]<=t[1]))return i+" is not a pair of increasing numbers (mandated by "+n+")";break;case"regex":if(!(d.isString(t)||d.isArray(t)&&2===t.length&&d.isString(t[0])&&d.isString(t[1])))return i+" is not a pattern string or a [pattern string, flags string] array (mandated by "+n+")";break;case"exists":if(!d.isUndefined(t))return i+" is not undefined (mandated by "+n+")";break;default:return n+" is unknown"}}},function(e,t,n){var i=n(141),r=n(137),a=n(139),o=n(5),s=n(15);e.exports={provides:"customBehavior",shouldTrack:!0,isLazy:!1,getter:["stores/global","stores/visitor_attribute_entity","stores/visitor_events","stores/visitor",function(e,t,n){var u=e.getProjectId(),c=o.filter(o.map(t.getCustomBehavioralAttributes(u),function(e){try{return{id:e.id,granularity:i.GRANULARITY.ALL,rule:a.buildFromSpecV0_2(s.parse(e.rule_json))}}catch(t){return}})),l=r.getEvents(n);return i.evaluate(c,l)}]}},function(e,t,n){function i(e){if(0===e.length)return[];for(var t=e.length-1,n=o.FIELDS.SESSION_ID,i=e[t][n];t>0&&i===e[t-1][n];)t--;return e.slice(t)}function r(e,t){if(0===e.length||0>=t)return[];var n=+new Date-t*u.MILLIS_IN_A_DAY;n-=n%u.MILLIS_IN_A_DAY;for(var i=e.length;i>0&&n<=e[i-1][o.FIELDS.TIME];)i--;return e.slice(i)}var a=n(4),o={FIELDS:n(48).FIELDS},s=n(135),u=n(139);t.GRANULARITY={ALL:"all",CURRENT_SESSION:"current_session",LAST_30_DAYS:"last_30_days",LAST_60_DAYS:"last_60_days"},t.evaluate=function(e,n){var o={};if(0===n.length){for(var u=0;u0&&(i=Math.min(i,t[0].getValueOrDefault([a.FIELDS.TIME],i))),i===Number.POSITIVE_INFINITY)return{};var r={};return r[n]=i,r}function r(e,t){var n="LAST_VISIT_TIME",i=e[n]||Number.NEGATIVE_INFINITY;if(t&&t.length>0&&(i=Math.max(i,t[t.length-1].getValueOrDefault([a.FIELDS.TIME],i))),i===Number.NEGATIVE_INFINITY)return{};var r={};return r[n]=i,r}var a=n(48),o=n(5),s=[i,r];t.compute=function(e,t){return o.reduce(s,function(n,i){return o.extend(n,i(e,t))},{})}},function(e,t,n){var i=n(135),r=n(15);e.exports={fieldsNeeded:["defaultBehavior"],match:function(e,t){return i.isSatisfied(r.parse(t.value),[e.defaultBehavior])}}},function(e,t,n){var i=n(5),r=n(137),a=n(51).getFieldValue,o=n(48);e.exports={provides:"first_session",shouldTrack:!0,getter:["stores/visitor_events",function(e){var t=r.getEvents(e);if(t&&t.length>0){var n=a(t[0],[o.FIELDS.SESSION_ID]);return i.every(t,function(e){return e[o.FIELDS.SESSION_ID]===n})}return!0}]}},function(e,t){e.exports={fieldsNeeded:["first_session"],match:function(e){return!!e.first_session}}},function(e,t,n){function i(e,t){var n=d.buildFromSpecV0_1(t);if(1!==n.length)throw new Error("Invalid query descriptor; verify that no aggregators are specified");return f.execute(n[0],e)}function r(e,t){return c.map(e,function(e){return c.isFunction(e.toObject)?e.toObject(t):e})}function a(e,t){if(!e)return["Descriptor not defined"];var n=[];return e.count&&n.push('Unexpected "count" clause specified'),e.pick&&e.pick.modifier&&-1===t.indexOf(e.pick.modifier)&&n.push('Invalid "pick" modifier "'+e.pick.modifier+'"'),c.each(e.filters,function(e){c.isUndefined(e.modifier)||n.push('Unexpected "filter" modifier "'+e.modifier+'"')}),n.length>0?n:void 0}function o(e,t){var n,o={revenueAsTag:!1,timeAsTimestamp:!0};if(c.isUndefined(t))return n=l.getEvents(e),r(n,o);if(c.isNumber(t)){if(0>=t)throw new Error("Count must be a positive integer, got "+t);return n=l.getEvents(e),r(n.slice(-t),o)}var s=a(t,c.values(d.RECENCY_FILTERS));if(s)throw new Error(s.join("\n"));return n=l.getEvents(e),r(i(n,t),o)}function s(e,t){if(t=c.cloneDeep(t)||{},!t.pick)throw new Error('No "pick" clause provided in query descriptor');if(!t.pick.name)throw new Error('No field name provided in "pick" clause');t.pick.modifier=t.pick.modifier||d.FREQUENCY_FILTERS.MOST_FREQUENT;var n=a(t,c.values(d.FREQUENCY_FILTERS));if(n)throw new Error(n.join("\n"));var r=l.getEvents(e);return i(r,t)}function u(e,t){var n=d.buildFromSpecV0_2(t),i=l.getEvents(e),a=r(f.execute(n,i),{revenueAsTag:!0,timeAsTimestamp:!1});return(t.pick||t.reduce&&"count"===t.reduce.aggregator)&&(a=c.flatten(a)),t.reduce&&(a=a[0]),a}var c=n(5),l=n(137),d=n(139),f=n(135);e.exports=["stores/visitor_events",function(e){return{getEvents:c.partial(o,e),getByFrequency:c.partial(s,e),query:c.partial(u,e)}}]},function(e,t,n){e.exports=function(e){e.registerDependency("sources/browser_id",n(150)),e.registerVisitorProfileProvider(n(154)),e.registerVisitorProfileProvider(n(155)),e.registerAudienceMatcher("browser_version",n(156))}},function(e,t,n){var i=n(151),r=n(10);t.getId=function(){return i.parseUA(r.getUserAgent()).browser.id},t.getVersion=function(){return i.parseUA(r.getUserAgent()).browser.version}},function(e,t,n){var i=n(152),r=n(5);t.parseUA=function(e){var t=new i(e),n=t.getBrowser(),r=t.getOS(),c=t.getDevice(),l=s(c),d=u(r.name),f=o(c.type,l,d);return{browser:{id:a(n.name),version:n.version},platform:{id:d,version:r.version},device:{id:l,type:c.type||(f?"mobile":"desktop"),isMobile:f}}};var a=function(e){if(e=(e||"").toLowerCase(),e in c)return e;var t=function(t){return t.toLowerCase()===e};for(var n in c)if(r.some(c[n]||[],t))return n;return"unknown"},o=function(e,t,n){if(r.includes(["mobile","tablet"],e))return!0;if(t&&"unknown"!==t)for(var i in l)if(t===l[i])return!0;var a=["android","blackberry","ios","windows phone"];return!!r.includes(a,n)},s=function(e){return e.model in l?l[e.model]:e.type||"unknown"},u=function(e){return(e||"unknown").toLowerCase()},c={gc:["Chrome","chromium","silk","yandex","maxthon"],edge:["Edge"],ie:["Internet Explorer","iemobile"],ff:["Firefox","iceweasel"],opera:["Opera","opera mini","opera tablet"],safari:["Safari","mobile safari","webkit"],ucbrowser:["UC Browser"]},l={iPhone:"iphone",iPad:"ipad"}},function(e,t,n){var i;!function(r,a){"use strict";var o="0.7.9",s="",u="?",c="function",l="undefined",d="object",f="string",g="major",p="model",v="name",h="type",_="vendor",E="version",m="architecture",I="console",y="mobile",S="tablet",A="smarttv",T="wearable",w="embedded",D={extend:function(e,t){for(var n in t)-1!=="browser cpu device engine os".indexOf(n)&&t[n].length%2===0&&(e[n]=t[n].concat(e[n]));return e},has:function(e,t){return"string"==typeof e?-1!==t.toLowerCase().indexOf(e.toLowerCase()):!1},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===f?e.split(".")[0]:a}},b={rgx:function(){for(var e,t,n,i,r,o,s,u=0,f=arguments;u0?2==r.length?typeof r[1]==c?e[r[0]]=r[1].call(this,s):e[r[0]]=r[1]:3==r.length?typeof r[1]!==c||r[1].exec&&r[1].test?e[r[0]]=s?s.replace(r[1],r[2]):a:e[r[0]]=s?r[1].call(this,s,r[2]):a:4==r.length&&(e[r[0]]=s?r[3].call(this,s.replace(r[1],r[2])):a):e[r]=s?s:a;u+=2}return e},str:function(e,t){for(var n in t)if(typeof t[n]===d&&t[n].length>0){for(var i=0;iNumber(n[a]))return 1}}return 0}},function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(159)),e.registerAudienceMatcher("campaign",n(160))}},function(e,t){e.exports={provides:"campaign",shouldTrack:!0,isSticky:!0,getter:["sources/browser",function(e){return e.getQueryParamValue("utm_campaign")}]}},function(e,t,n){var i=n(70);e.exports={fieldsNeeded:["campaign"],match:function(e,t){return i.hasMatch(t.value,t.match,e.campaign)}}},function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(162));var t=n(163);e.registerAudienceMatcher("custom_attribute",t),e.registerAudienceMatcher("custom_dimension",t)}},function(e,t,n){var i=n(5),r=n(4),a=n(2),o=n(16),s=o.get("stores/dimension_data");e.exports={provides:"custom",attributionType:a.AttributionTypes.LAST_TOUCH,restorer:function(e){return i.reduce(e,function(e,t,n){var a=t;if(!i.isObject(t)){var o=s.getById(n)||s.getByApiName(n);o?a={id:o.segmentId||o.id,value:t}:r.warn("Unable to determine ID for custom attribute:",n,"; segmentation is disabled.")}return e[n]=a,e},{})},shouldTrack:!0}},function(e,t,n){var i=n(5),r=n(70);t.fieldsNeeded=["custom"],t.match=function(e,t){var n;return e.custom&&(n=e.custom[t.name]),i.isObject(n)&&(n=n.value),r.hasMatch(t.value,t.match,n)}},function(e,t,n){e.exports=function(e){e.registerDependency("sources/device",n(165)),e.registerVisitorProfileProvider(n(166)),e.registerAudienceMatcher("device",n(167))}},function(e,t,n){var i=n(151),r=n(10);t.getDevice=function(){var e=i.parseUA(r.getUserAgent()).device;return"unknown"!==e.id?e.id:"tablet"===e.type?"tablet":e.isMobile?"mobile":"desktop"}},function(e,t){e.exports={provides:"device",shouldTrack:!0,getter:["sources/device",function(e){return e.getDevice()}]}},function(e,t){e.exports={fieldsNeeded:["device"],match:function(e,t){return e.device===t.value}}},function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(169)),e.registerAudienceMatcher("referrer",n(170))}},function(e,t,n){var i=n(64);e.exports={provides:"referrer",shouldTrack:!0,isSticky:!0,getter:["stores/global_state",function(e){ var t=e.getEffectiveReferrer()||i.getReferrer();return""===t&&(t=null),t}]}},function(e,t,n){var i=n(171);t.fieldsNeeded=["referrer"],t.match=function(e,t){return i(e.referrer,t)}},function(e,t,n){function i(e){var t=e.indexOf("?");return-1!==t&&(e=e.substring(0,t)),t=e.indexOf("#"),-1!==t&&(e=e.substring(0,t)),e}function r(e){return a(i(e))}function a(e,t){e=e.replace("/?","?"),e=e.toLowerCase().replace(/[\/&?]+$/,"");var n=l.slice(0);t||(n=n.concat(u));for(var i=n.length,r=0;i>r;r++){var a=n[r],o=new RegExp("^"+a);e=e.replace(o,"")}return e}function o(e){var t=e.split("?");if(t[1]){var n=t[1].split("&"),i=[];return s.each(n,function(e){0!==e.indexOf(c)&&i.push(e)}),t[1]=i.join("&"),t.join("?")}return e}var s=n(5);e.exports=function(e,t){switch(e=o(e),t.match){case"exact":return e=a(e),e===a(t.value);case"regex":try{return Boolean(e.match(t.value))}catch(n){}return!1;case"simple":return e=r(e),t.value=r(t.value),e===t.value;case"substring":return e=a(e,!0),t.value=a(t.value,!0),-1!==e.indexOf(t.value);default:return!1}};var u=["www."],c="optimizely_",l=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"]},function(e,t,n){e.exports=function(e){e.registerVisitorProfileProvider(n(173)),e.registerAudienceMatcher("source_type",n(175))}},function(e,t,n){var i=n(174),r=n(64),a=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","https://(www)?\\.google\\..*?/$","bing\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","yahoo\\.\\w{2,3}(\\.\\w{2,3})?/search","baidu\\.\\w{2,3}(\\.\\w{2,3})?/s?"];e.exports={provides:"source_type",shouldTrack:!0,isSticky:!1,getter:["sources/browser","stores/global_state",function(e,t){return function(n,o){var s=function(){if(e.getQueryParamValue("utm_source")||e.getQueryParamValue("gclid")||e.getQueryParamValue("otm_source"))return"campaign";for(var n=t.getEffectiveReferrer()||r.getReferrer(),o=0;o=s&&u>=c&&a.includes(o.days,l)}},function(e,t,n){e.exports=function(e){e.registerAnalyticsTracker("avro",n(182))}},function(e,t,n){function i(e){var t=_.omit(e,x),n=_.pick(e,x),i=[],r=[];return _.forOwn(t,function(e,t){var n=p({type:D,name:t,value:e});n&&i.push(n)}),_.forOwn(n,function(e,t){try{h(e),r.push({name:t,value:e})}catch(n){m.emitError(new k("Bad value for eventMetrics["+t+"]: "+n.message))}}),{eventFeatures:i,eventMetrics:r}}function r(e,t,n){var r=u(e,t,n),a=i(e.eventTags);return a.eventFeatures.push(p({type:w,name:"",value:e.viewCategory})),_.extend(r,a,{eventEntityId:e.viewId,eventType:b,eventName:e.viewId})}function a(e,t,n,i){var r=u(e,t,n),a=e.event.viewId,o=[],s=[];if(o.push(p({type:A,name:"selector",value:e.selector})),o.push(p({type:A,name:"view_id",value:e.event.viewId})),a){var c=i.getActivationEventId(e.event.viewId);c&&s.push({eventId:i.getActivationEventId(e.event.viewId),relationship:M.VIEW_ACTIVATED})}return _.forOwn(e.eventTags,function(e,t){var n=p({type:D,name:t,value:e},L);n&&o.push(n)}),_.extend(r,{eventEntityId:e.event.id,eventType:e.event.category,eventName:e.event.apiName,eventFeatures:o,relatedEvents:s})}function o(e,t,n){var r=u(e,t,n),a=i(e.eventTags);return _.extend(r,a,{eventEntityId:e.eventEntityId,eventType:e.eventCategory,eventName:e.eventApiName})}function s(e,t,n){var i=u(e,t,n);return _.extend(i,{eventType:R,eventName:O})}function u(e,t,n){var i=d(e.userFeatures),r=f(e.activeViewStates,n),a=l(e.layerStates,t),o=_.isNull(C.getAnonymizeIP())?void 0:C.getAnonymizeIP();return{eventId:e.eventId,anonymizeIP:o,timestamp:e.timestamp,revision:e.revision,clientEngine:e.clientEngine,clientVersion:e.clientVersion,projectId:e.projectId,accountId:e.accountId,activationId:e.activationId,sessionId:e.sessionId,visitorId:e.visitorId,visitorUUID:e.visitorUUID,eventFeatures:[],eventMetrics:[],relatedEvents:[],layerStates:a,userFeatures:i,activeViews:r,isGlobalHoldback:e.isGlobalHoldback}}function c(e,t){var n=e.decisionTicket,i=e.decision,r=_.map(n.audienceIds,function(e){return{id:e,name:t.getAudienceName(e)||"Untitled Audience "+e}}),a=d(e.userFeatures),o=_.isNull(C.getAnonymizeIP())?void 0:C.getAnonymizeIP();return{decisionId:e.decisionId,anonymizeIP:o,timestamp:e.timestamp,revision:e.revision,clientEngine:e.clientEngine,clientVersion:e.clientVersion,projectId:e.projectId,accountId:e.accountId,layerId:i.layerId,activationId:e.activationId,sessionId:e.sessionId,visitorId:F.getRandomId(),visitorUUID:F.getUUID(),decisionTicket:{audiences:r,bucketingId:n.bucketingId},decision:g(i),userFeatures:a,isGlobalHoldback:C.isGlobalHoldback()}}function l(e,t){return _.map(e,function(e){var n=null,i=e.decisionTicket;if(i){var r=_.map(i.audienceIds,function(e){var n;try{n=t.getAudienceName(e)}catch(i){}return{id:e,name:n||null}});n={audiences:r,bucketingId:i.bucketingId}}return{layerId:e.layerId,revision:e.revision,decisionTicket:n,decision:g(e.decision),decisionActivationId:e.decisionActivationId,decisionSessionId:e.decisionSessionId,decisionEventId:e.decisionEventId,decisionTimestamp:e.decisionTimestamp,actionTriggered:e.actionTriggered,actionSessionId:e.actionSessionId,actionActivationId:e.actionActivationId,actionTimestamp:e.actionTimestamp}})}function d(e){return _.reduce(e,function(e,t){try{v(t.value),e.push(_.pick(t,["id","type","name","shouldIndex","value"]))}catch(n){L.warn("Error evaluating user feature",t,n)}return e},[])}function f(e,t){return _.map(e,function(e){var n=[];try{var i=t.get(e.id);n.push(p({type:w,name:"",value:i.category}))}catch(r){L.error("Unable to find Page category for Page with id",e.id)}return _.forOwn(e.metadata,function(e,t){var i=p({type:T,name:t,value:e},L);i&&n.push(i)}),{viewId:e.id,activatedTimestamp:e.activatedTimestamp,viewFeatures:n}})}function g(e){return _.pick(e,["experimentId","variationId","isLayerHoldback"])}function p(e){var t=_.extend({id:null,shouldIndex:!0},e);try{v(e.value)}catch(n){return void L.error("Error evaluating feature:",e,n)}return t}function v(e){if(null==e)throw new Error("Feature value is null");if("object"==typeof e){var t;try{t=N.stringify(e)}catch(n){}throw new Error('Feature value is complex: "'+t||'[object]"')}}function h(e){if(null==e)throw new Error("Metric value is null");if(!_.isNumber(e))throw new Error("Metric value is not numeric");if(Math.floor(e)!==e)throw new Error("Metric value "+e+" is not an integer")}var _=n(5),E=n(77),m=n(81),I="https://logx.optimizely.com",y=I+"/log/decision",S=I+"/log/event",A="event",T="view_tag",w="view_category",D="tags",b="view_activated",O="client_activation",R="client_activation",L=n(4),N=n(15),P=n(56),V=n(16),C=V.get("stores/global"),F=V.get("stores/visitor_id"),k=t.Error=E("AvroError"),x=["revenue","quantity"],M={VIEW_ACTIVATED:"view_activation"};t.onLayerDecision=["stores/audience_data",function(e){return function(t){var n=c(t,e);P.request({url:y,contentType:"application/json",method:"POST",data:n},n.decisionId)}}],t.onPageActivated=["stores/audience_data","stores/view_data",function(e,t){return function(n){var i=r(n,e,t,L);P.request({url:S,contentType:"application/json",method:"POST",data:i},i.eventId)}}],t.onClientActivation=["stores/audience_data","stores/view_data",function(e,t){return function(n){var i=s(n,e,t,L);P.request({url:S,contentType:"application/json",method:"POST",data:i},i.eventId)}}],t.onCustomEvent=["stores/audience_data","stores/view_data",function(e,t){return function(n){var i=o(n,e,t);P.request({url:S,contentType:"application/json",method:"POST",data:i},i.eventId)}}],t.onClickEvent=["stores/audience_data","stores/view_data","stores/view",function(e,t,n){return function(i){var r=a(i,e,t,n);P.request({url:S,contentType:"application/json",method:"POST",data:r},r.eventId)}}]}]); window.optimizely2 = SLAVE_CLIENT.optimizely; }());