module.exports = "(function(e,i,t){var r=t(5894),a=t(7358),o=t(343),s=t(1548),n=t(280).v,_=t(4438),p=t(1571),l=t(4810),c=i.JSONParseError=n(\"JSONParseError\"),u=t(3688),d=t(4934),g=t(7152),E=\"optimizely_show_preview\",I=\"optimizely_disable\",D=\"optimizely_editor\",O=\"optimizely_p13n\",v=\"optimizely_x_audiences\",m=\"optimizely_x\",f=\"optimizely_show_preview\",V=\"optimizely_opt_out\",h=\"optimizely_preview_layer_ids\",y=\"optimizely_token\",A=\"optimizely_force_tracking\";i.populateDirectiveData=function(){var e,i,t,n,R,C,L,T;!function(){var e=__LOGLEVEL__,i=u.getQueryParamValue(\"optimizely_log\");if(i){var t=i.split(\":\");\"\"!==t[0]&&(e=String(t[0]).toUpperCase()),void 0!==t[1]&&l.setLogMatch(t[1])}l.setLogLevel(e)}(),__FILTER_BOTS__&&function(){var e=g.getUserAgent()||\"\";if(!r.isString(e))return l.warn(\"Directive / userAgent not a string\"),void 0;e=e.toLowerCase();var i=[\"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\"],t=function(i){if(r.includes(e,i))return l.warn(\"Directive / Matches bot:\",i),!0};r.some(i,t)&&(l.log(\"Directive / Disabling tracking\"),p.dispatch(a.LOAD_DIRECTIVE,{trackingDisabled:!0}))}(),e=Boolean(r.result(__GLOBAL__,\"initialized\")),p.dispatch(a.LOAD_DIRECTIVE,{alreadyInitialized:e}),p.dispatch(a.LOAD_DIRECTIVE,{mutationObserverAPISupported:g.isMutationObserverAPISupported()}),function(){var e=s.get(_.COOKIES.OPT_OUT),i=u.getQueryParamValue(V),t=\"You have successfully opted out of Optimizely for this domain.\",r=\"You are NOT opted out of Optimizely for this domain.\";if(\"true\"===i||\"false\"===i){var o=\"true\"===i;p.dispatch(a.LOAD_DIRECTIVE,{shouldOptOut:o}),g.alert(o?t:r)}else e&&p.dispatch(a.LOAD_DIRECTIVE,{shouldOptOut:\"true\"===e})}(),function(){var e=!1,i=[E,I];__EDITOR__||i.push(D);for(var t=0;t<i.length;t++)if(\"true\"===u.getQueryParamValue(i[t])){l.warn(\"Directive / Not activating because \"+i[t]+\" is set.\"),e=!0;break}p.dispatch(a.LOAD_DIRECTIVE,{disabled:e})}(),__EDITOR__&&l.log(\"Directive / Is Editor mode\"),p.dispatch(a.LOAD_DIRECTIVE,{isEditor:__EDITOR__}),__PREVIEW__&&l.log(\"Directive / Is Preview mode\"),p.dispatch(a.LOAD_DIRECTIVE,{isPreview:__PREVIEW__}),(i=u.getQueryParamValue(f))&&l.log(\"Directive / Is legacy preview mode\"),p.dispatch(a.LOAD_DIRECTIVE,{isLegacyPreview:!!i}),__SLAVE__&&l.log(\"Directive / Is Slave mode\"),p.dispatch(a.LOAD_DIRECTIVE,{isSlave:__SLAVE__}),t=g.getGlobal(\"optlyDesktop\"),(n=!(!t||r.isUndefined(t.p13nInner)))&&l.log(\"Directive / Is running in desktop app editor\"),p.dispatch(a.LOAD_DIRECTIVE,{isRunningInDesktopApp:n}),(R=\"true\"===u.getQueryParamValue(O))&&l.log(\"Directive / Is running in editor\"),p.dispatch(a.LOAD_DIRECTIVE,{isRunningInV2Editor:R}),__PREVIEW__&&function(){var e=s.get(_.COOKIES.PREVIEW),i=u.getQueryParamValue(h),t=u.getQueryParamValue(\"preview_layer_ids\"),r=null;if(i)r=s.safeDecodeURIComponent(i).split(\",\");else if(t)r=t.split(\",\");else if(e)try{r=d.parse(e).previewLayerIds}catch(i){var n=new c(\"Failed to parse previewCookie in registerPreviewLayerIds: \"+e),g={originalMessage:i.message,userError:!0};o.emitError(n,g)}r&&(p.dispatch(a.LOAD_DIRECTIVE,{previewLayerIds:r}),l.log(\"Directive / Previewing Campaign(s):\",r))}(),C=s.get(_.COOKIES.TOKEN)||null,L=u.getQueryParamValue(y)||C,p.dispatch(a.LOAD_DIRECTIVE,{projectToken:L}),function(){var e=s.get(_.COOKIES.PREVIEW),i=[],t=u.getQueryParamValue(v);if(t)i=s.safeDecodeURIComponent(t).split(\",\");else if(e)try{i=d.parse(e).forceAudienceIds}catch(i){var r=new c(\"Failed to parse previewCookie in registerForceAudienceIds: \"+e),n={originalMessage:i.message,userError:!0};o.emitError(r,n)}i.length&&(__ENABLE_FORCE_PARAMS__?(l.log(\"Directive / Force Audience IDs:\",i),p.dispatch(a.LOAD_DIRECTIVE,{forceAudienceIds:i})):l.warn(\"Directive / Force parameters disabled - ignoring force audience IDs.\"))}(),function(){var e=s.get(_.COOKIES.PREVIEW),i=[],t=u.getQueryParamValue(m);if(t)i=s.safeDecodeURIComponent(t).split(\",\");else if(e)try{i=d.parse(e).forceVariationIds}catch(i){var r=new c(\"Failed to parse previewCookie in registerForceVariationIds: \"+e),n={originalMessage:i.message,userError:!0};o.emitError(r,n)}i.length&&(__ENABLE_FORCE_PARAMS__?(l.log(\"Directive / Force Variation IDs:\",i),p.dispatch(a.LOAD_DIRECTIVE,{forceVariationIds:i})):l.warn(\"Directive / Force parameters disabled - ignoring force variation IDs.\"))}(),(T=u.getQueryParamValue(A))&&p.dispatch(a.LOAD_DIRECTIVE,{forceTracking:T})};i.setOptOut=function(e){e?(l.warn(\"Directive / Opting out\"),s.set(_.COOKIES.OPT_OUT,\"true\",{maxAge:31536e4},!0)):s.remove(_.COOKIES.OPT_OUT),p.dispatch(a.LOAD_DIRECTIVE,{shouldOptOut:e})}})";