PageSourceSearch

https://resources.jetbrains.com/storage/optly/26613100737.js

js jetbrains.com collected 2026-09-24 07:34:37 UTC 490,495 bytes, 1,039 lines download raw bytes

1/*! For license information please see client.min.js.LICENSE.txt */
2(function(){var __webpack_modules__={1319:function(t,n,e){var i=e(2705)(),r=e(4485);t.exports=function(t,n){function e(n){if(!(this instanceof e))return new e(n);try{throw new Error(n)}catch(n){n.name=t,this.stack=n.stack}i&&this.stack&&(this.stack=r(this.stack,t,n)),this.message=n||"",this.name=t}return e.prototype=new(n||Error),e.prototype.constructor=e,e.prototype.inspect=function(){return this.message?"["+t+": "+this.message+"]":"["+t+"]"},e.prototype.name=t,e}},4485:function(t){"use strict";t.exports=function(t,n,e){var i=n;return e&&(i+=": "+e),t=i+t.slice(t.indexOf("\n"))}},2705:function(t){"use strict";t.exports=function(){var t=new Error("yep");return!!t.stack&&"Error: yep\n"===t.stack.substr(0,11)}},2926:function(t,n,e){t.exports=function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function n(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,o=void 0,a=void 0,u=function(t,n){y[r]=t,y[r+1]=n,2===(r+=2)&&(a?a(w):I())};function c(t){a=t}function s(t){u=t}var f="undefined"!=typeof window?window:void 0,l=f||{},d=l.MutationObserver||l.WebKitMutationObserver,v="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){return function(){return process.nextTick(w)}}function g(){return void 0!==o?function(){o(w)}:_()}function m(){var t=0,n=new d(w),e=document.createTextNode("");return n.observe(e,{characterData:!0}),function(){e.data=t=++t%2}}function b(){var t=new MessageChannel;return t.port1.onmessage=w,function(){return t.port2.postMessage(0)}}function _(){var t=setTimeout;return function(){return t(w,1)}}var y=new Array(1e3);function w(){for(var t=0;t<r;t+=2)(0,y[t])(y[t+1]),y[t]=void 0,y[t+1]=void 0;r=0}function E(){try{var t=e(6473);return o=t.runOnLoop||t.runOnContext,g()}catch(t){return _()}}var I=void 0;function A(t,n){var e=arguments,i=this,r=new this.constructor(O);void 0===r[S]&&Q(r);var o,a=i._state;return a?(o=e[a-1],u((function(){return $(a,r,o,i._result)}))):G(i,r,t,n),r}function T(t){var n=this;if(t&&"object"==typeof t&&t.constructor===n)return t;var e=new n(O);return V(e,t),e}I=v?p():d?m():h?b():void 0===f?E():_();var S=Math.random().toString(36).substring(16);function O(){}var k=void 0,R=1,C=2,N=new H;function D(){return new TypeError("You cannot resolve a promise with itself")}function x(){return new TypeError("A promises callback cannot return that same promise.")}function j(t){try{return t.then}catch(t){return N.error=t,N}}function M(t,n,e,i){try{t.call(n,e,i)}catch(t){return t}}function P(t,n,e){u((function(t){var i=!1,r=M(e,n,(function(e){i||(i=!0,n!==e?V(t,e):B(t,e))}),(function(n){i||(i=!0,F(t,n))}),"Settle: "+(t._label||" unknown promise"));!i&&r&&(i=!0,F(t,r))}),t)}function L(t,n){n._state===R?B(t,n._result):n._state===C?F(t,n._result):G(n,void 0,(function(n){return V(t,n)}),(function(n){return F(t,n)}))}function U(t,e,i){e.constructor===t.constructor&&i===A&&e.constructor.resolve===T?L(t,e):i===N?(F(t,N.error),N.error=null):void 0===i?B(t,e):n(i)?P(t,e,i):B(t,e)}function V(n,e){n===e?F(n,D()):t(e)?U(n,e,j(e)):B(n,e)}function z(t){t._onerror&&t._onerror(t._result),q(t)}function B(t,n){t._state===k&&(t._result=n,t._state=R,0!==t._subscribers.length&&u(q,t))}function F(t,n){t._state===k&&(t._state=C,t._result=n,u(z,t))}function G(t,n,e,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=n,r[o+R]=e,r[o+C]=i,0===o&&t._state&&u(q,t)}function q(t){var n=t._subscribers,e=t._state;if(0!==n.length){for(var i=void 0,r=void 0,o=t._result,a=0;a<n.length;a+=3)i=n[a],r=n[a+e],i?$(e,i,r,o):r(o);t._subscribers.length=0}}function H(){this.error=null}var Y=new H;function K(t,n){try{return t(n)}catch(t){return Y.error=t,Y}}function $(t,e,i,r){var o=n(i),a=void 0,u=void 0,c=void 0,s=void 0;if(o){if((a=K(i,r))===Y?(s=!0,u=a.error,a.error=null):c=!0,e===a)return void F(e,x())}else a=r,c=!0;e._state!==k||(o&&c?V(e,a):s?F(e,u):t===R?B(e,a):t===C&&F(e,a))}
vendor: 1,154 bytes, line 2
2function W(t,n){try{n((function(n){V(t,n)}),(function(n){F(t,n)}))}catch(n){F(t,n)}}var X=0;function J(){return X++}function Q(t){t[S]=X++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Z(t,n){this._instanceConstructor=t,this.promise=new t(O),this.promise[S]||Q(this.promise),i(n)?(this._input=n,this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?B(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&B(this.promise,this._result))):F(this.promise,tt())}function tt(){return new Error("Array Methods must be provided an Array")}function nt(t){return new Z(this,t).promise}function et(t){var n=this;return i(t)?new n((function(e,i){for(var r=t.length,o=0;o<r;o++)n.resolve(t[o]).then(e,i)})):new n((function(t,n){return n(new TypeError("You must pass an array to race."))}))}function it(t){var n=new this(O);return F(n,t),n}function rt(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ot(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
2onstructor cannot be called as a function.")}function at(t){this[S]=J(),this._result=this._state=void 0,this._subscribers=[],O!==t&&("function"!=typeof t&&rt(),this instanceof at?W(this,t):ot())}function ut(){var t=void 0;if(void 0!==e.g)t=e.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var i=null;try{i=Object.prototype.toString.call(n.resolve())}catch(t){}if("[object Promise]"===i&&!n.cast)return}t.Promise=at}return Z.prototype._enumerate=function(){for(var t=this.length,n=this._input,e=0;this._state===k&&e<t;e++)this._eachEntry(n[e],e)},Z.prototype._eachEntry=function(t,n){var e=this._instanceConstructor,i=e.resolve;if(i===T){var r=j(t);if(r===A&&t._state!==k)this._settledAt(t._state,n,t._result);else if("function"!=typeof r)this._remaining--,this._result[n]=t;else if(e===at){var o=new e(O);U(o,t,r),this._willSettleAt(o,n)}else this._willSettleAt(new e((function(n){return n(t)})),n)}else this._willSettleAt(i(t),n)},Z.prototype._settledAt=function(t,n,e){var i=this.promise;i._state===k&&(this._remaining--,t===C?F(i,e):this._result[n]=e),0===this._remaining&&B(i,this._result)},Z.prototype._willSettleAt=function(t,n){var e=this;G(t,void 0,(function(t){return e._settledAt(R,n,t)}),(function(t){return e._settledAt(C,n,t)}))},at.all=nt,at.race=et,at.resolve=T,at.reject=it,at._setScheduler=c,at._setAsap=s,at._asap=u,at.prototype={constructor:at,then:A,catch:function(t){return this.then(null,t)}},at.polyfill=ut,at.Promise=at,at}()},3225:function(t){"use strict";t.exports=function(t){var n,e={};if(!(t instanceof Object)||Array.isArray(t))throw new Error("keyMirror(...): Argument must be an object.");for(n in t)t.hasOwnProperty(n)&&(e[n]=n);return e}},4146:function(t){"use strict";t.exports=function(t,n,e,i){Object.defineProperty(t,n,{get:function(){var t=e.call(this);return Object.defineProperty(this,n,{value:t,enumerable:!!i,writable:!0}),t},set:function(t){return Object.defineProperty(this,n,{value:t,enumerable:!!i,writable:!0}),t},enumerable:!!i,configurable:!0})}},1294:function(t){"use strict";var n=Element.prototype,e=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;t.exports=function(t,n){if(e)return e.call(t,n);for(var i=t.parentNode.querySelectorAll(n),r=0;r<i.length;r++)if(i[r]==t)return!0;return!1}},5683:function(t){!function(){function n(t,n){var e,i,r,o,a,u,c,s;for(e=3&t.length,i=t.length-e,r=n,a=3432918353,u=461845907,s=0;s<i;)c=255&t.charCodeAt(s)|(255&t.charCodeAt(++s))<<8|(255&t.charCodeAt(++s))<<16|(255&t.charCodeAt(++s))<<24,++s,r=27492+(65535&(o=5*(65535&(r=(r^=c=(65535&(c=(c=(65535&c)*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*u+(((c>>>16)*u&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(c=0,e){case 3:c^=(255&t.charCodeAt(s+2))<<16;case 2:c^=(255&t.charCodeAt(s+1))<<8;case 1:r^=c=(65535&(c=(c=(65535&(c^=255&t.charCodeAt(s)))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*u+(((c>>>16)*u&65535)<<16)&4294967295}return r^=t.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}var e=n;e.v2=function(t,n){for(var e,i=t.length,r=n^i,o=0;i>=4;)e=1540483477*(65535&(e=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(e>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(e=1540483477*(65535&(e^=e>>>24))+((1540483477*(e>>>16)&65535)<<16)),i-=4,++o;switch(i){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0},e.v3=n,t.exports=e}()},8906:function(t,n,e){var i=e(5683).v3,r=Math.pow(2,32),o=function(t,n){return(i(t,n)>>>0)/r};t.exports={Seed:{IGNORING:0,BUCKETING:1,FALLBACK:2,HOLDBACK:3,BEHAVIOR_EVENT:2716770798},hashToHex:function(t,n){var e=i(t,n);return(e>>>16).toString(16)+(65535&e).toString(16)},hashToInt:function(t,n,e){return Math.floor(o(t,n)*e)},hashToReal:o,toByteString:function(t){var n=String.fromCharCode;return t.replace(/[\S\s]/gi,(function(t){t=t.charCodeAt(0);var e=n(255&t);return t>255&&(e=n(t>>>8&255)+e),t>65535&&(e=n(t>>>16)+e),e}))}}},9792:function(t,n,e){var i=e(2869).pick,r=e(9247).get("stores/audience_data"),o=e(4168),a=e(4341),u=e(5561),c=e(4900);function s(t){var n=["type","selector","attributes","value"],e=Object.assign({},t);return e.changeSet=t.changeSet.map((function(t){return i(c.dereferenceChangeId(t),n)})),e}n.emitLayerDecided=function(t){var n=(t.decisionTicket?t.decisionTicket.audienceIds:[]).map((function(t){return{id:t,name:r.get(t).name}})),e={type:a.TYPES.LIFECYCLE,name:"layerDecided",data:Object.assign(t,{audiences:n})},i=c.translateLayerEventToCampaignEvent(e);
2o.emit(e),o.emit(i)},n.emitViewActivated=function(t){var n={type:a.TYPES.LIFECYCLE,name:"viewActivated",data:t},e=c.translateViewActivatedToPageActivated(n);o.emit(n),o.emit(e)},n.emitViewsActivated=function(t){var n={type:a.TYPES.LIFECYCLE,name:"viewsActivated",data:t};o.emit(n)},n.emitPageDeactivated=function(t){var n={type:a.TYPES.LIFECYCLE,name:"pageDeactivated",data:t};o.emit(n)},n.emitActivateEvent=function(){o.emit({type:a.TYPES.LIFECYCLE,name:"activate"},!0)},n.emitActivatedEvent=function(){o.emit({type:a.TYPES.LIFECYCLE,name:"activated"})},n.emitInitializedEvent=function(){var t={type:a.TYPES.LIFECYCLE,name:"initialized"};window.optimizely&&(window.optimizely.initialized=!0),o.emit(t)},n.emitOriginsSyncedEvent=function(){var t={type:a.TYPES.LIFECYCLE,name:"originsSynced"};o.emit(t)},n.emitActionAppliedEvent=function(t){var n={type:t.type,campaignId:t.layerId,pageId:t.pageId,experimentId:t.experimentId,variationId:t.variationId};u.defineProperty(n,"changes",(function(){return s(t).changeSet}),"actionAppliedEvent");var e={type:a.TYPES.ACTION,name:"applied",data:n};o.emit(e)},n.emitActionsForDecisionAppliedEvent=function(t,n){var e={decision:t};u.defineProperty(e,"actions",(function(){return n.map(s)}),"appliedAllForDecisionEvent");var i={type:a.TYPES.ACTION,name:"appliedAllForDecision",data:e};o.emit(i)},n.emitSendEvents=function(){var t={type:a.TYPES.ANALYTICS,name:"sendEvents"};o.emit(t)},n.emitMaybeSendEvents=function(){var t={type:a.TYPES.ANALYTICS,name:"maybeSendEvents"};o.emit(t)},n.emitHoldEvents=function(){var t={type:a.TYPES.ANALYTICS,name:"holdEvents"};o.emit(t)}},8034:function(t,n,e){Object.defineProperty(n,"u",{value:!0});var i=e(2869),r=i.cloneDeep,o=i.isEqual,a=i.mapValues,u=i.pick,c=i.pickBy,s=e(7685),f=e(5561),l=e(4900),d=e(8692),v=e(7026);function h(t,n,e,i){var r=t.getLayerState(i),o=n.get(i),a=e.get();if(!r||!o)return a?{layer:{name:a.layerName,id:a.layerId,policy:a.layerPolicy,integrationStringVersion:a.integrationStringVersion},experiment:{name:a.experimentName,id:a.experimentId},variation:{name:a.variationName,id:a.variationId},isLayerHoldback:!1}:null;if(d.isSingleExperimentPolicy(o.policy)&&r.decision.isLayerHoldback)return null;var u,c,s=r.decision.experimentId,f=r.decision.variationId;return s&&f&&(u=o.experiments.find((function(t){return t.id===s})))&&(c=u.variations.find((function(t){return t.id===f})))?{layer:{name:o.name,id:o.id,policy:o.policy,integrationStringVersion:o.integrationStringVersion},experiment:{name:u.name,id:u.id},variation:{name:c.name,id:c.id},isLayerHoldback:r.decision.isLayerHoldback}:null}function p(t,n,e,i,r,a,c){var s=[],f=t.getLayerStates();c.onlySingleExperiments&&(f=f.filter((function(t){var e=n.get(t.layerId);return e&&d.isSingleExperimentPolicy(e.policy)})));var l=e.getActiveViewIds(),h=f.map((function(t){var e,i=!!t.decision.variationId,o=t.decisionActivationId&&t.decisionActivationId===r.getActivationId(),a=v.getExperimentAndVariation(),u=a?a.variationId:null,c=i&&t.decision.variationId===u,s=((null==(e=n.get(null==t?void 0:t.layerId))?void 0:e.viewIds)||[]).every((function(t){return!l.includes(t)}));return Object.assign(t,{isActive:i&&o&&!s||c,visitorRedirected:c})}));return(a?"function"==typeof a?h.filter(a):h.filter((function(t){return Object.keys(a).every((function(n){return o(t[n],a[n])}))})):h).forEach((function(t){var e=function(t,n,e,i){var r,o,a=t.layerId,c=n.get(a)||{},s=(c.experiments||[]).map((function(t){return u(t,["id","name"])}));if(!i&&c.decisionMetadata&&c.decisionMetadata.offerConsistency)return;var f={id:a,campaignName:c.name||null,experiment:null,audiences:[],allExperiments:s,variation:null,reason:t.decision.reason,isActive:!!t.isActive,visitorRedirected:t.visitorRedirected,isInCampaignHoldback:t.decision.isLayerHoldback};t.decision&&t.decision.experimentId&&(r=(c.experiments||[]).find((function(n){return n.id===t.decision.experimentId}))),r&&(f.experiment=u(r,["id","name","campaignName"])),r&&t.decision.variationId&&(o=r.variations.find((function(n){return n.id===t.decision.variationId}))),o&&(f.variation=u(o,["id","name"]));var l=(t.decisionTicket.audienceIds||[]).map((function(t){return u(e.get(t),["id","name"])}));return f.audiences=l,c.decisionMetadata&&c.decisionMetadata.offerConsistency&&(f.pageId=t.pageId),f}(t,n,i,c.includeOfferConsistency);e&&s.push(e)})),s}
2n.data=["stores/audience_data","stores/client_metadata","stores/event_data","stores/layer_data","stores/view_data","stores/group_data","stores/interest_group","stores/tag_group","stores/global",function(t,n,e,i,r,o,a,u,c){var s={},d={},v={},h={audiences:t.getAudiencesMap(),events:e.getEventsMap(),campaigns:s,pages:r.getPagesMap(),experiments:d,variations:v,projectId:c.getProjectId(),snippetId:c.getSnippetId(),accountId:c.getAccountId(),dcpServiceId:c.getDCPServiceId(),revision:c.getRevision(),clientName:n.getClientName(),clientVersion:n.getClientVersion()},p=l.dereferenceChangeId;return i.getAll().forEach((function(t){f.defineProperty(s,t.id,(function(){var n=Object.assign({},t);return f.defineProperty(n,"changes",(function(){return(t.changes||[]).map(p)}),"campaign"),f.defineProperty(n,"experiments",(function(){return(t.experiments||[]).map((function(t){return d[t.id]}))}),"campaign"),n}),"campaignMap","byId"),(t.experiments||[]).forEach((function(t){f.defineProperty(d,t.id,(function(){var n=Object.assign({},t);return f.defineProperty(n,"changes",(function(){return(t.changes||[]).map(p)}),"experiment"),f.defineProperty(n,"variations",(function(){return(t.variations||[]).map((function(t){return v[t.id]}))}),"experiment"),n}),"experimentMap","byId"),(t.variations||[]).forEach((function(t){f.defineProperty(v,t.id,(function(){var n=Object.assign({},t);return f.defineProperty(n,"actions",(function(){return(t.actions||[]).map((function(t){return Object.assign({},t,{changes:(t.changes||[]).map(p)})}))}),"variation"),n}),"variationMap","byId")}))}))})),h}],n.visitor=["stores/visitor",function(t){return r(t.getVisitorProfile())}],n.visitor_id=["stores/visitor_id",function(t){return{randomId:t.getRandomId()}}],n.state=["stores/audience_data","stores/layer_data","stores/layer","stores/view_data","stores/view","stores/global","stores/observed_redirect",function(t,n,i,r,o,f,l){return{getTrafficExclusionStats:function(){return e(2958).getStats()},getCampaignStates:function(e){var r={};return p(i,n,o,t,f,e,{includeOfferConsistency:!1}).forEach((function(t){r[t.id]=t})),r},getExperimentStates:function(e){var r=p(i,n,o,t,f,e,{includeOfferConsistency:!1,onlySingleExperiments:!0}),a=["audiences","variation","reason","visitorRedirected","isActive"];return r.reduce((function(t,n){var e=n.allExperiments[0];return t[e.id]=Object.assign({},u(n,a),{id:e.id,experimentName:e.name,isInExperimentHoldback:n.isInCampaignHoldback}),t}),{})},getCampaignStateLists:function(e){var r={};return p(i,n,o,t,f,e,{includeOfferConsistency:!0}).forEach((function(t){var n=t.id;r[n]||(r[n]=[]),r[n].push(t)})),r},getPageStates:function(t){var n=o.getAll(),e=Object.keys(n).reduce((function(t,e){var i=n[e],o=r.get(i.id);return t[i.id]=Object.assign({},u(o,["id","name","apiName","category","staticConditions","tags"]),u(i,["isActive","metadata"])),t[i.id].isActive=!!t[i.id].isActive,t}),{});return t?c(e,t):e},isGlobalHoldback:function(){return f.isGlobalHoldback()},getActivationId:function(){return f.getActivationId()},getVariationMap:function(){var t=i.getLayerStates(),e={};return t.forEach((function(t){var i=n.get(t.layerId);if(t.decision&&t.decision.experimentId&&(e[t.decision.experimentId]={id:t.decision.variationId,name:null,index:null},i)){var r=(i.experiments||[]).find((function(n){return n.id===t.decision.experimentId}));if(r&&t.decision.variationId)var o=r.variations.find((function(n){return n.id===t.decision.variationId})),a=r.variations.findIndex((function(n){return n.id===t.decision.variationId}));o&&(e[t.decision.experimentId]={id:t.decision.variationId,name:o.name,index:a})}})),e},getActiveExperimentIds:function(){var t={},n=this.getCampaignStateLists({isActive:!0});return Object.keys(n).forEach((function(e){n[e].forEach((function(n){t[n.experiment.id]=!0}))})),Object.keys(t)},getRedirectInfo:function(){var t=v.getExperimentAndVariation();return t&&(t.referrer=v.getReferrer()),t}
2,getDecisionString:function(t){if(!t)throw new Error("Must pass a config to getDecisionString");t=Object.assign({maxLength:255,shouldCleanString:!1},t);var e=h(i,n,l,t.campaignId);return e?s.generateAnalyticsString(e.layer,e.experiment,e.variation,e.isLayerHoldback,t.maxLength,t.shouldCleanString):null},getDecisionObject:function(t){if(!t)throw new Error("Must pass a config to getDecisionObject");t=Object.assign({maxLength:255,shouldCleanString:!1},t);var e=h(i,n,l,t.campaignId);if(!e)return null;var r=s.formatNamesAndIdsForAnalytics(e.layer,e.experiment,e.variation,t.shouldCleanString),o=a(r.names,(function(n,e){return s.combineAndTruncateIdAndName(n,r.idStrings[e],t.maxLength)})),u={experiment:o.experiment,variation:o.variation};return d.isSingleExperimentPolicy(e.layer.policy)||Object.assign(u,{campaign:o.layer,holdback:e.isLayerHoldback}),u}}}],n.utils=e(925).create(),n.jquery=["env/jquery",function(t){return t}],n.event_emitter=e(945)},2395:function(t,n,e){var i=e(5098),r=e(8704),o="optimizelyDataApi";n.registerFunction=function(t,n){var e=r.getGlobal(o);e||(e={},r.setGlobal(o,e)),e[t]||(e[t]=n)},n.unregisterFunction=function(t){var n=r.getGlobal(o);n&&n[t]&&(n[t]=function(){i.log('Ignoring attempt to call "'+o+"."+t+'" which has been unregistered.')})},n.getFunction=function(t){return r.getGlobal(o)[t]}},351:function(t,n,e){var i=e(2869).isObject,r=e(5098),o=e(8034),a=e(9247),u=a.get("stores/plugins"),c=e(7710),s=e(7846),f=e(6931),l=[e(6544),e(1214),e(5491)],d=["clientMetadata","cookieDomain","disable","load","optOut","rum"];n.push=function(t,n){var e,o,a,u;if(!Array.isArray(t)&&i(t))u=void 0!==t.version?t.version:1,e=t.type,a=[t];else if(Array.isArray(t))u=0,e=t[0],a=t.slice(1);else{if("string"!=typeof t)return r.warn("API / Ignoring non-array/object/string argument:",t),!1;u=0,e=t,a=[]}if(l[u]&&(o=l[u][e]),n&&-1===d.indexOf(e))return r.debug("API / Ignoring non high priority function:",e,a),!1;if(!o)return r.warn('API / No function found for "'+e+'" (v'+u+") with arguments:",a),!1;r.log('API / Executing: "'+e,'" with arguments:',a);try{o.apply(null,a),f.dispatch(c.RECORD_API_USAGE,{methodName:u?"v"+u+"."+e:e})}catch(t){r.error(t)}return!0},n.get=function(t){r.log('API / Getting module: "'+t+'"');var n=o[t];if(n?Array.isArray(n)&&(n=a.evaluate(n)):n=u.getPlugin(s.PluginTypes.apiModules,t),n)return f.dispatch(c.RECORD_API_USAGE,{methodName:"get."+t}),n;r.warn('Module "'+t+'" not found.')}},5561:function(t,n,e){var i=e(4146),r=e(7710),o=e(6931),a=e(5098);n.defineProperty=function(t,n,e,u,c){i(t,n,(function(){var t=["prop",u,c||n].join(".");return a.debug('Evaluating getter: "'+t+'"'),o.dispatch(r.RECORD_API_USAGE,{methodName:t}),e()}),!0)}},6544:function(t,n,e){var i=e(1214);function r(t){var n,e={};if(t)if(o(t))n=Number(t);else{if("object"!=typeof t)throw new Error("tracker: Revenue argument "+t+"not a number.");if("revenue"in(e=Object.assign({},t))){if(!o(e.revenue))throw new Error("tracker: Revenue value "+e.revenue+"not a number.");n=Number(e.revenue),delete e.revenue}}return void 0!==n&&(e.revenue=n),e}function o(t){return"number"==typeof t||"string"==typeof t&&!isNaN(Number(t))&&Number(t).toString()==t}n.activateGeoDelayedExperiments=function(t,n){n||(n=t.lists?"odds":"cdn3"),i.dataFromSource({data:t,source:n})},n.activateSiteCatalyst=function(t){t&&t.sVariable&&i.integrationSettings({id:"adobe_analytics",settings:{sVariableReference:t.sVariable}})},n.bucketVisitor=function(t,n){if(t&&n){var e={experimentId:String(t)};n>256?e.variationId=String(n):e.variationIndex=String(n),i.bucketVisitor(e)}},n.bucketUser=n.bucketVisitor,n.disable=function(t){i.disable({scope:t})},n.log=function(t){void 0===t&&(t=!0),i.log({level:t?"INFO":"OFF"})},n.optOut=function(t){void 0===t&&(t=!0),i.optOut({isOptOut:t})},n.setCookieDomain=function(t){i.cookieDomain({cookieDomain:t})},n.setCookieExpiration=function(t){i.cookieExpiration({cookieExpirationDays:t})},n.setDimensionValue=function(t,n){var e={};e[t]=n,i.user({attributes:e})},n.setUserId=function(t){i.user({userId:t})},n.setGA4UserId=function(t){i.ga4User({ga4UserId:t})},n.storeThirdPartyData=function(t,n){i.dataFromSource({source:t,data:n})},n.trackEvent=function(t,n){i.event({eventName:t,tags:r(n)})}},4900:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.omit,a=e(9247),u=e(9229),c=e(5561),s=a.get("stores/change_data");n.translateDecisionToCampaignDecision=function(t){return f(r(t),{layerId:"campaignId",isLayerHoldback:"isCampaignHoldback"})},n.translateLayerEventToCampaignEvent=function(t){var e={};return c.defineProperty(e,"campaign",(function(){return function(t){var e=r(t);return e.changes&&(e.changes=e.changes.map(n.dereferenceChangeId)),e.experiments&&e.experiments.forEac
2h((function(t){t.changes&&(t.changes=t.changes.map(n.dereferenceChangeId)),t.variations&&t.variations.forEach((function(t){t.actions&&t.actions.forEach((function(t){t.changes&&(t.changes=t.changes.map(n.dereferenceChangeId))}))}))})),e}(t.data.layer)}),"campaignEvent"),e.decisionTicket=t.data.decisionTicket,e.decision=this.translateDecisionToCampaignDecision(t.data.decision),e.audiences=t.data.audiences,{type:"lifecycle",name:"campaignDecided",data:e}},n.translateViewActivatedToPageActivated=function(t){return{type:"lifecycle",name:"pageActivated",data:{page:t.data.view}}},n.dereferenceChangeId=function(t){var n=s.getChange(t);return n?u.safeReference(n):t};var f=function(t,n){var e=o(t,Object.keys(n));return Object.keys(n).forEach((function(i){var r=n[i];e[r]=t[i]})),e}},925:function(t,n,e){var i=e(9479).Promise,r=e(7226).o,o=e(3376).F,a=e(4270).M,u=e(3555).poll,c=e(3856).x,s=e(5848).a;n.create=function(){return{observeSelector:r,onUrlChange:o,persistHtml:a,poll:u,Promise:i,waitForElement:c,waitUntil:s}}},7909:function(t){t.exports={DEFAULT_INTERVAL:20}},7226:function(t,n,e){var i=e(2869),r=i.isEmpty,o=i.isObject,a=(e(7710),e(9247)),u=a.get("stores/directive"),c=e(4833),s=e(3524),f=(e(7846),e(6931),e(9241).generate),l=e(3555),d=e(8704),v=(a.get("stores/rum"),{once:!1,onTimeout:null,timeout:null}),h={},p=function(t){p=function(){if(!u.shouldObserveChangesIndefinitely())return function(t){var n=l.poll(m.bind(null,t));h[t].cancelObservation=function(){n(),delete h[t]}};var t,n=function(){t.disconnect(),Object.keys(h).forEach(m),t.observe(i,e)},e={attributes:!0,childList:!0,subtree:!0},i=c.getDocumentElement();return t=s.create(n),function(n){var o=h[n];t.observe(i,e),o.cancelObservation=function(){delete h[n],r(h)&&t.disconnect()}}}(),p(t)};function g(t){var n=h[t];n&&n.cancelObservation&&n.cancelObservation()}function m(t){if(h[t]){if(function(t){var n=t.options.timeout;if(null!==n)if("function"==typeof n)try{return n()}catch(t){}else if(Date.now()-t.startTime>n)return!0;return!1}(h[t]))return 0===h[t].matchedCount&&"function"==typeof h[t].options.onT
2imeout&&h[t].options.onTimeout(),void g(t);var n=c.querySelectorAll(h[t].selector);n.length&&(n.forEach((function(n){n.l&&n.l[t]||h[t].callbackQueue.push(n)})),function(t){for(;h[t]&&h[t].callbackQueue.length;){var n=h[t].callbackQueue.shift();if(b(n,t),h[t].matchedCount=h[t].matchedCount+1,h[t].callback(n),h[t]&&h[t].options.once)return void g(t)}}(t))}}function b(t,n){t.l||(t.l={}),t.l[n]=!0}n.o=function(t,n,e){if(!function(t){try{c.querySelector(t)}catch(t){return!1}return!0}(t))throw new Error("observeSelector expects a valid css selector as its first argument");if("function"!=typeof n)throw new Error("observeSelector expects a function as its second argument");if(e&&(!o(e)||"function"==typeof e))throw new Error("observeSelector expects an object as its third argument");var i=f();return e=Object.assign({},v,e||{}),h[i]={callback:n,callbackQueue:[],matchedCount:0,options:e,selector:t,startTime:Date.now()},p(i),d.setTimeout(m.bind(null,i),0),g.bind(null,i)}},3376:function(t,n,e){var i=e(9241).generate,r=e(8704),o={},a=!1,u=null,c=null,s=null,f=null;function l(){a&&(window.history.pushState===s&&(window.history.pushState=u),window.history.replaceState===f&&(window.history.replaceState=c),u=null,c=null,s=null,f=null,a=!1)}function d(){var t=r.getHref();Object.keys(o).forEach((function(n){var e=o[n];e&&e(t)}))}n.F=function(t){var n=i(),e=0===Object.keys(o).length;return o[n]=t,e&&(r.addEventListener("popstate",d),r.addEventListener("hashchange",d),a||(u=window.history.pushState,c=window.history.replaceState,window.history.pushState=function(t,n,e){u.apply(window.history,arguments),d()},s=window.history.pushState,window.history.replaceState=function(t,n,e){c.apply(window.history,arguments),d()},f=window.history.replaceState,a=!0)),function(){!function(t){delete o[t],0===Object.keys(o).length&&(r.removeEventListener("popstate",d),r.removeEventListener("hashchange",d),l())}(n)}}},4270:function(t,n,e){var i=e(4833),r=e(9241).generate,o=e(3524),a={before:"beforebegin",after:"afterend",first_child:"afterbegin",last_child:"beforeend"},u=Object.keys(a),c=[];function s(t,n,e){var i,r,o=[];if("beforebegin"===n)for(i=t.previousSibling,r=0;r<e&&i;r++)o.unshift(i),i=i.previousSibling;else if("afterend"===n)for(i=t.nextSibling,r=0;r<e&&i;r++)o.push(i),i=i.nextSibling;else if("afterbegin"===n)for(i=t.firstChild,r=0;r<e&&i;r++)o.push(i),i=i.nextSibling;else if("beforeend"===n)for(i=t.lastChild,r=0;r<e&&i;r++)o.unshift(i),i=i.previousSibling;return o}function f(t){return document.documentElement.contains(t)}n.M=function(t,n,e){if("string"!=typeof t||!t)throw new Error("persistHtml: html must be a non-empty string");if(!function(t){try{i.querySelector(t)}catch(t){return!1}return!0}(n))throw new Error("persistHtml: invalid CSS selector: "+n);if(e=null!=e?e:"before",-1===u.indexOf(e))throw new Error("persistHtml: placement must be one of: "+u.join(", "));var l=a[e],d=i.querySelector(n);if(!d)throw new Error('persistHtml: no element found for selector "'+n+'"');if(("beforebegin"===l||"afterend"===l)&&!d.parentElement)throw new Error('persistHtml: placement "'+e+'" requires the anchor element to have a parent');var v=function(t){var n=document.createElement("div");return n.innerHTML=t,n.childNodes.length}(t);if(0===v)throw new Error("persistHtml: html produces no DOM nodes");var h=function(t){var n=document.createElement("div");n.innerHTML=t;var e=[];return Array.prototype.forEach.call(n.childNodes,(function(t){if(t.nodeType===Node.ELEMENT_NODE){var n=r();e.push(n),t.setAttribute("data-optly-persist-id",n)}})),{taggedHtml:n.innerHTML,ids:e}}(t);d.insertAdjacentHTML(l,h.taggedHtml);var p,g=s(d,l,v),m=!1,b={childList:!0,subtree:!0},_=i.getDocumentElement();function y(){if(!m){m=!0,p.disconnect();var t=c.indexOf(y);-1!==t&&c.splice(t,1),g.forEach((function(t){f(t)&&t.parentNode&&t.parentNode.removeChild(t)}))}}return(p=o.create((function(){if(!m&&g.some((function(t){return!f(t)}))){var t=i.querySelector(n);!t||("beforebegin"===l||"afterend"===l)&&!t.parentElement||(p.disconnect(),g.forEach((function(t){f(t)&&t.parentNode&&t.parentNode.removeChild(t)})),m||(t.insertAdjacentHTML(l,h.taggedHtml),g=s(t,l,v)),m||p.observe(_,b))}}))).observe(_,b),c.push(y),y}},3555:function(t,n,e){e(7710);var i=e(9247),r=(e(7846),e(6931),e(9241).generate),o=e(8704),a=e(7909).DEFAULT_INTERVAL,u=(i.get("stores/rum"),{});
2function c(t){u[t]&&Object.keys(u[t].callbacks).forEach((function(n){u[t].callbacks[n].call(null)}))}function s(t,n){u[n]&&u[n].callbacks[t]&&(delete u[n].callbacks[t],0===Object.keys(u[n].callbacks).length&&(clearInterval(u[n].id),delete u[n]))}n.poll=function(t,n){"number"!=typeof n&&(n=a),u[n]||(u[n]={callbacks:{},id:o.setInterval(c.bind(null,n),n)});var e=r();return u[n].callbacks[e]=t,s.bind(null,e,n)},n.cancelAll=function(){Object.keys(u).forEach((function(t){var n=u[t];clearInterval(n.id),delete u[t]}))}},3856:function(t,n,e){var i=e(9479).Promise,r=e(7226).o;n.x=function(t){return new i((function(n,e){r(t,n,{once:!0})}))}},5848:function(t,n,e){var i=e(9479).Promise,r=e(3555).poll;n.a=function(t){return new i((function(n,e){if(t())n();else var i=r((function(){t()&&(i(),n())}))}))}},1214:function(t,n,e){var i=e(2869).omit,r=e(7710),o=e(351),a=e(8034),u=e(2394),c=e(7846),s=e(8433),f=e(9792),l=e(4482),d=e(3176).v,v=e(1308),h=e(3204),p=(e(595),e(3845)),g=e(4168),m=e(6931),b=e(3654),_=e(2960),y=e(6273),w=e(5098),E=e(5303),I=(e(8076),e(7562)),A=e(5007),T=e(9247),S=T.get("stores/dimension_data"),O=T.get("stores/view"),k=T.get("stores/view_data"),R=T.get("stores/visitor_id"),C=T.get("stores/layer_data"),N=T.get("stores/directive"),D=n.ApiListenerError=d("ApiListenerError");n.event=function(t){var n;switch(t.eventType){case"click":n=function(t){var n;return t.eventData&&(n=p.create(t.eventData.id,t.eventData.apiName,"click",t.eventData)),function(){var t=s.trackClickEvent(n);t?w.log("API / Tracking click event:",t):w.log("API / Not tracking click event:",t)}}(t);break;case"decision":n=function(t){var n=t.eventData,e=_.createLayerState(n.layerId,n.experimentId,n.variationId,n.isLayerHoldback,n.isLayerConcluded),i=_.createSingle(n.layerId,n.experimentId,n.variationId);return function(){_.recordLayerDecision(e.layerId,e.decisionTicket,e.decision),w.log("API / Tracking decision event:",e),s.trackDecisionEvent(e.decision,e.decisionTicket,i)}}(t);break;case"pageview":n=function(t){var n=I.create(t.eventData.id,t.eventData.apiName),e=I.createState(n.id);return function(){var t=s.trackViewActivation(n,e);t?w.log("API / Tracking pageview event:",t):w.log("API / Not tracking pageview event:",t)}}(t);break;default:n=function(t){var n;return t.eventId&&(n=p.create(t.eventId,t.eventName,"custom")),I.updateAllViewTags(),function(){s.trackCustomEvent(t.eventName,t.tags,n,t.properties)?w.log("API / Tracking custom event:",t.eventName,t.tags):w.log("API / Not tracking custom event:",t.eventName)}}(t)}R.getBucketingId()?n():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postActivate,cleanupFn:n})},n.clientMetadata=function(t){0},n.priorRedirectString=function(t){},n.microsnippetError=function(t){},n.rum=function(t){m.dispatch(r.SET_RUM_DATA,t.eventData)},n.initialViewStates=function(t){var n=Object.keys(t.states||{}).map((function(n){return{id:n,isActive:t.states[n]}}));I.registerViews(n)},n.page=function(t){var n=k.getByApiName(t.pageName);if(!n)throw new Error('Unknown page "'+t.pageName+'"');var e=!t.hasOwnProperty("isActive")||t.isActive,i=function(){e?I.activateViaAPI(n,t.tags):(I.deactivate(n),w.log("API / Deactivated Page",I.description(n)))};R.getBucketingId()?i():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postViewsActivated,cleanupFn:i})},n.tags=function(t){I.setGlobalTags(t.tags)},n.user=function(t){w.log("API / Setting visitor custom attributes:",t.attributes),Object.keys(t.attributes||{}).forEach((function(n){var e,i,r=t.attributes[n],o=n,a=S.getById(n)||S.getByApiName(n);a&&(o=a.id,e=a.apiName,i=a.segmentId||a.id);var u={id:i,value:r};e&&(u.name=e),x(o,u,!0)}))},n.ga4User=function(t){t.ga4UserId?(w.log("API / Setting ga4 user id in the global store:",t.ga4UserId),m.dispatch(r.SET_GA4_USER_ID,t)):w.error('API / Argument "ga4UserId" is missing')};var x=function(t,n,e){var i=[{key:e?["custom",t]:[t],value:n,metadata:{lastModified:v.now()}}],o=function(){m.dispatch(r.SET_VISITOR_ATTRIBUTES,{attributes:i})};R.getBucketingId()?o():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postVisitorProfileLoad,cleanupFn:o})};n.optOut=function(t){var n=!t.hasOwnProperty("isOptOut")||t.isOptOut;h.setOptOut(n)},n.cookieExpiration=function(t){var n=t.cookieExpirationDays;n<90&&(w.error('Argument "cookieExpirationDays"=',n,"less than minimum days:",90,", setting to minimum."),n=90),w.log("API / Setting cookie age to",n,"days."),m.dispatch(r.SET_COOKIE_AGE,86400*n)},n.extendCookieLifetime=function(t){t=Object.assign({isEnabled:!0},t),w.log("API / Setting cookie automatic lifetime extension to",t.isEnabled),m.dispatch(r.SET_COOKIE_AUTO_REFRESH,t.isEnabled)},n.cookieDomain=function(t){w.log("API / Setting cookie domain to",t.cookieDomain),m.dispatch(r.SET_COOKIE_DOMAIN,t.cookieDomain)},n.disable=function(t){if(t.scope){if("tracking"!==t.scope)throw new Error('Unknown "scope" for disable: '+t.scope);w.log("API / Disabling tracking"),m.dispatch(r.LOAD_DIRECTIVE,{trackingDisabled:!0})}else w.log("API / Disabling everything"),m.dispatch(r.LOAD_DIRECTIVE,{disabled:!0})},n.log=function(t){var n=t.level,e=t.match;void 0===n&&(n="INFO"),void 0===e&&(e=""),w.setLogMatcher(e),w.setLogLevel(n)},n.registerModule=function(t){var n="custom/"+t.moduleName;if(a[n]||o.get(n))throw new Error('Module name "'+n+'" is reserved. Will not be registered as plugin.');E.registerApiModule(n,t.module)},n.dataFromSource=function(t){var n=t.source;l.makeAsyncRequest(n),l.resolveRequest(n,t.data)},n.addListener=function(t){if("function"!=typeof t.handler)throw new Error("A handler function must be supplied");(t=i(t,["type"])).publicOnly=!0,t.emitErrors=!0;var n=t.handler;t.handler=function(t){try{return n(t)}catch(t){throw new D(t)}},g.on(t)}
2,n.removeListener=function(t){if(!t.token)throw new Error("Must supply a token to removeListener");g.off(t.token)},n.load=function(t){t.data=Object.assign({},t.data),u.normalizeClientData(t.data),m.dispatch(r.DATA_LOADED,{data:t.data})},n.integrationSettings=function(t){if(!t.id)throw new Error("id is required");if(!t.settings)throw new Error("settings is required");m.dispatch(r.SET_INTEGRATION_SETTINGS,Object.assign({},t.settings,{id:t.id}))},n.loadEmbeddedEditor=function(){document.getElementById("optimizely-visual-editor-root")?w.warn("API / Visual editor is already loaded."):y.loadEmbeddedEditor("https://app.optimizely.com/dist/visual-editor/main.js")},n.bucketVisitor=function(t){if(!t.variationId&&void 0===t.variationIndex||t.variationId&&t.variationIndex)throw new Error("One of a variationId or a variationIndex is required.");if(!t.experimentId)throw new Error("An experimentId is required.");var n,e,i=t.campaignId;if(i){if(!(n=C.get(i)))throw new Error("Could not find layer "+i)}else if(!(i=(n=C.getLayerByExperimentId(t.experimentId)).id))throw new Error("Could not find layer for experiment "+t.experimentId);if(!(e=n.experiments.find((function(n){return n.id===t.experimentId}))))throw new Error("Could not find experiment "+t.experimentId+" in layer "+i);var r=t.variationId;if(void 0!==t.variationIndex){if(!(r=e.variations[t.variationIndex].id))throw new Error("Could not find variation at index "+t.variationIndex+" in experiment "+t.experimentId)}else if(!e.variations.find((function(t){return t.id===r})))throw new Error("Cound not find variation "+r+" in experiment "+t.experimentId);A.updateVariationIdMap(i,t.experimentId,r),R.getBucketingId()&&A.persistVariationIdMap(),A.updateContextualMabMap(i,t.experimentId,{variationId:r}),R.getBucketingId()&&A.persistContextualMabMap()},n.waitForOriginSync=function(t){if(!Array.isArray(t.canonicalOrigins))throw new Error("canonicalOrigins must be an array. Got: "+b.stringify(t.canonicalOrigins));t.canonicalOrigins.forEach((function(t){if("string"!=typeof t)throw new Error("Each item in canonicalOrigins must be a string. Found type "+(void 0===t?"undefined":(n=t)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n));var n})),m.dispatch(r.XDOMAIN_SET_CANONICAL_ORIGINS,{canonicalOrigins:t.canonicalOrigins})},n.disableCrossOrigin=function(){w.log("API / cross origin tracking is DISABLED"),m.dispatch(r.XDOMAIN_SET_DISABLED,{disabled:!0})},n.activate=function(){N.shouldActivate()?(O.getActiveViewStates().forEac
2h((function(t){I.deactivate(k.get(t.id))})),m.dispatch(r.RESET_VIEW_STATES),f.emitActivateEvent()):w.debug("Not activating.")},n.sendEvents=function(){f.emitSendEvents()},n.holdEvents=function(){f.emitHoldEvents()}},5491:function(){},6046:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.flattenDeep,a=i.isEmpty,u=i.isObject,c=e(3176).v,s=n.ActivationCodeError=c("ActivationCodeError"),f=n.ProjectJSError=c("ProjectJSError"),l=e(4597),d=e(7710),v=e(8433),h=e(9792),p=e(3465),g=e(6903),m=e(2394),b=e(1308),_=e(3929),y=e(9247),w=e(3204),E=e(4833),I=e(7846),A=e(4168),T=e(4341),S=e(5598),O=e(6931),k=(e(4766),e(2960)),R=e(4955).DT,C=e(5098),N=e(2466),D=e(3672),x=e(5303),j=e(51),M=e(9479).Promise,P=e(6409),L=e(8076),U=e(3615),V=e(7297),z=e(7562),B=e(5007),F=e(8704),G=(y=e(9247)).get("stores/session"),q=y.get("stores/audience_data"),H=y.get("stores/action_data"),Y=y.get("stores/cleanup"),K=y.get("stores/directive"),$=y.get("stores/global"),W=(y.get("stores/group_data"),y.get("stores/layer_data")),X=y.get("stores/layer"),J=y.get("stores/pending_events"),Q=y.get("stores/plugins"),Z=y.get("stores/rum"),tt=y.get("stores/visitor"),nt=y.get("stores/view_data"),et=y.get("stores/view"),it=y.get("stores/visitor_id"),rt=y.get("stores/visitor_bucketing"),ot=y.get("stores/xdomain"),at=e(351),ut=e(595),ct=e(9132),st=!1,ft=n;function lt(){h.emitActivateEvent()}function dt(t){ut.handleError(t.data.error,t.data.metadata)}function vt(t,n){O.dispatch(d.SET_RUM_DATA,{data:{extras:{xdAttempt:t,xdError:n?n.toString():void 0}}})}function ht(t,n,e){t=t||[];var i=$.getGlobalHoldbackThreshold(),r=it.getBucketingId();if(!r)throw new Error("bucketingId not set");var o,a=tt.getVisitorProfile();n&&(o=rt.getVariationIdMap()[n.id]);var u={bucketingId:r,visitorProfile:a,audiences:t,globalHoldback:i,preferredVariationMap:o,layer:n};return n&&e&&_.isPageIdRelevant(n)?e.map((function(t){return _.createTicket(Object.assign({},u,{pageId:t}))})):[_.createTicket(u)]}function pt(t,n){var e={};return t.forEach((function(t){Array.isArray(t)?Object.assign(e,pt(t,n)):u(t)&&n[t.type]&&(e[t.type]=!0)})),e}function gt(t){var n=[];return t.forEach((function(t){n.push(t.name,t)})),n}function mt(t){var n=Y.getCleanupFns(t);if(n.length>0){for(;n.length>0;)n.shift()();O.dispatch(d.CLEAR_CLEANUP_FN,{lifecycle:t})}}n.initialize=function(t){return this.initGlobalStore(t.clientData),this.initializePlugins(t.plugins)},n.initGlobalStore=function(t){m.normalizeClientData(t),A.on({filter:{type:"error"},handler:dt}),O.dispatch(d.DATA_LOADED,{data:t}),C.log("Initialized with DATA:",t)},n.initializePlugins=function(t){if(Array.isArray(window.optimizely)&&(window.optimizely=window.optimizely.filter((function(t){var n=!0;return!at.push(t,n)}))),w.setOptOut(K.shouldOptOut()),!K.isDisabled()&&!K.shouldOptOut()){ct.queueBeacons(),E.isReady()?O.dispatch(d.SET_DOMCONTENTLOADED):E.addReadyHandler((function(){O.dispatch(d.SET_DOMCONTENTLOADED)})),D.time("projectJS");var e=$.getProjectJS();if("function"==typeof e)try{S.apply(e)}catch(t){C.error("Error while executing projectJS: ",t),g.emitError(new f(t))}D.timeEnd("projectJS"),(t||[]).forEach((function(t){try{t(x)}catch(t){g.emitInternalError(t)}})),($.getPlugins()||[]).forEach((function(t){try{S.apply(t,[x])}catch(t){g.emitError(t)}})),L.load();var i=A.on({filter:{type:"lifecycle",name:"activated"},handler:function(){tt.observe(B.persistVisitorProfile),X.observe(B.persistLayerStates),G.observe(B.persistSessionState),J.observe(N.schedulePersistPendingEvents),rt.observe(B.persistVisitorBucketingStore),A.off(i)}});A.on({filter:{type:"lifecycle",name:"viewsActivated"},handler:n.onViewsActivated}),A.on({filter:{type:"lifecycle",name:"pageDeactivated"},handler:n.onPageDeactivated}),n.initializeApi();var r=N.getPendingEvents();if(r&&(O.dispatch(d.LOAD_PENDING_EVENTS,{events:r}),N.retryPendingEvents(r)),A.on({filter:{type:"lifecycle",name:"activate"},handler:n.activate}),h.emitInitializedEvent(),!K.shouldActivate())return M.resolve();var o=[];if(ot.isDisabled())lt();else{var a=n.initializeXDomainStorage();if(o.push(a),Boolean(ot.getCanonicalOrigins())){var u=U.makeTimeoutPromise(1e3);M.race([a,u]).catch((function(t){C.error("Failed to initialize xDomain storage: ",t)})).then(lt).catch(ut.handleError)}else lt()}return M.all(o)}C.log("Controller / Is disabled")},n.activate=function(){try{var t=[];C.log("Activated client"),mt(I.Lifecycle.preActivate);var n=!1;st;var e=b.now();
2O.dispatch(d.ACTIVATE,{activationId:String(e),activationTimestamp:e});var i=nt.getAll();z.registerViews(i,n),B.setId(B.getOrGenerateId()),t.push(v.trackPostRedirectDecisionEvent()),O.dispatch(d.MERGE_VARIATION_ID_MAP,{variationIdMap:B.getVariationIdMap()}),O.dispatch(d.MERGE_CONTEXTUAL_MAB_MAP,{contextualMabMap:B.getContextualMabMap()}),O.dispatch(d.SET_ODP_SEGMENTS,B.getOdpSegments()),mt(I.Lifecycle.postVisitorProfileLoad),t.push((s=Q.getAllPlugins(I.PluginTypes.visitorProfileProviders),f=tt.getVisitorProfile(),B.populateEagerVisitorData(s,f)).then((function(){C.log("Populated visitor profile")})));var r=ht(),o=_.decideGlobal(r);C.log("Made global decision",r,"->",o),O.dispatch(d.RECORD_GLOBAL_DECISION,o);var a=v.trackClientActivation();a?C.log("Tracked activation event",a):C.log("Not tracking activation event");var u=ft.setUpViewActivation(i),c=[];return u.forEach((function(t){c=c.concat(z.activateMultiple([t]))})),mt(I.Lifecycle.postViewsActivated),mt(I.Lifecycle.postActivate),h.emitActivatedEvent(),M.all(t).then((function(){A.emit({type:T.TYPES.LIFECYCLE,name:"activateDeferredDone"}),C.log("All immediate effects of activation resolved")}),g.emitError)}catch(t){return g.emitError(t),M.reject(t)}var s,f},ft.setUpViewActivation=function(t){var n=[];return t.forEach((function(t){"boolean"==typeof et.getViewState(t.id).isActive&&z.isActivationTypeImmediate(t.activationType)?C.debug("Skipping page: already evaluated, presumably at the edge",z.description(t)):z.shouldTriggerImmediately(t.activationType)?n.push(t):t.activationType===I.ViewActivationTypes.callback?(C.debug("Setting up conditional activation for Page",z.description(t)),ft.activateViewOnCallback(t)):t.activationType===I.ViewActivationTypes.polling?(C.debug("Setting up polling activation for Page",z.description(t)),j.pollFor(S.apply.bind(null,t.activationCode),null,V.isTimedOut.bind(null,b.now())).then((function(){z.activateMultiple([t])})).catch((function(n){C.warn("Failed to activate view ",t,n)}))):t.activationType!==I.ViewActivationTypes.manual&&g.emitError(new Error("Unknown view activationType: "+t.activationType))})),n},ft.activateViewOnCallback=function(t){var n={pageId:t.id};Object.defineProperty(n,"isActive",{get:function(){return et.isViewActive(t.id)}});try{S.apply(t.activationCode,[function(n){var e=Object.assign({},n,{pageName:t.apiName,type:"page"});at.push(e)},n])}catch(n){var e=new s("("+n.toString()+") in activationCode for "+z.description(t));g.emitError(e,{originalError:n,userError:!0})}},n.onViewsActivated=function(t){var e,i=t.data.views,r=i.map((function(t){return t.id}));try{if(!it.getBucketingId())throw new Error("View activated with no visitorId set");var o=function(t){var e=W.getAllByPageIds(t),i=K.getForceVariationIds(),r=K.getForceAudienceIds();!a(i)&&C.log("Force variations are in use. Disabling mutual exclusivity.");var o={individual:e};C.log("Deciding Campaigns/Experiments for Page(s)",t),!1;var u=o.individual.map(k.description).join(", ");C.log("Campaigns/Experiments not in Groups (by Campaign id):",u);var c=[],s=o.individual.map((function(e){var o=(e.pageIds||[]).filter((function(n){return Array.isArray(t)&&t.includes(n)}));return n.decideAndExecuteLayerASAP(i,r,o,e)})),f=c.concat(s);return M.all(f).then((function(n){var e=n.filter((function(t){return!!t}));return C.log("All Campaigns/Experiments for Page(s) (by Campaign id)",t,"resolved:",e.map(k.description).join(", ")),e}))}(r).catch(g.emitError);return e=M.all(i.map((function(t){var n=function(){z.parseViewTags(t);var n=v.trackViewActivation(t);n?C.log("Tracked activation for Page",z.description(t),n):C.log("Not Tracking activation for Page",z.description(t))};return E.isReady()?M.resolve(n()):j.pollFor(E.isReady,1e3).then(n)}))),M.all([o,e])}catch(t){g.emitError(t)}},n.onPageDeactivated=function(t){var n=t.data.page;(H.getAllActionIdsByPageId(n.id)||[]).forEach((function(t){var e=H.getActionState(t);e&&(Object.keys(e).forEach((function(t){var i=e[t];if(i.cancel)try{i.cancel(),C.debug("Controller / Canceled change",t,"observation due to deactivation of page:",n)}catch(n){C.error("Controller / Error canceling change",t,"observation upon deactivation of page.",n)}if(n.undoOnDeactivation&&i.undo)try{i.undo(),C.debug("Controller / Undid change",t,"due to deactivation of page:",n)}catch(t){C.error("Controller / Error undoing change upon deactivation of page.",t)}})),O.dispatch(d.REMOVE_ACTION_STATE,{actionId:t}),C.debug("Controller / Undid changes and/or canceled change observation due to deactivation of page:",n,t))}))},n.initializeApi=function(){var t={push:at.push};t.get=at.get;var n=window.optimizely;
2Array.isArray(n)&&n.forEach((function(n){t.push(n)})),t.data={note:"Obsolete, use optimizely.get('data') instead"},t.state={},window.optimizely=t},n.persistItemsWithId=function(t){return Object.keys(t).forEach((function(n){var e=t[n];B.checkKeyForVisitorId(n)&&R.setItem(n,e)})),t},n.initializeXDomainStorage=function(){var t=e(2338),i=!!B.getCurrentId(),r=!!i&&B.hasSomeData();i?r?C.log("xd / Existing visitor; has data on this origin"):C.log("xd / Existing visitor; new to this origin"):C.log("xd / New visitor");var o=$.getAccountId(),u="https://a26669750187.cdn.optimizely.com".replace("__SUBDOMAIN__","a"+o+"."),c="/client_storage/a"+o+".html";t.subscribe((function(t,n){B.checkKeyForVisitorId(t)&&R.setItem(t,n)}));var s=t.fetchAll().then((function(n){if(!it.getVisitorIdLocator()){var e=ot.getCanonicalOrigins();if(e){var i=t.getXDomainUserId(n,e);i&&(C.log("Syncing cross-origin visitor randomId:",i),B.maybePersistVisitorId({randomId:i}))}}return B.deleteOldForeignData(),n})).then(n.persistItemsWithId).then((function(t){if(B.loadForeignData(),i&&!r){var n=!a(t);C.debug("xd / Loaded foreign data? ",n),vt(n)}C.log("Loaded visitor data from foreign origins"),h.emitOriginsSyncedEvent()}),(function(t){throw i&&!r&&(C.debug("xd / Failed to load foreign data:",t),vt(!1,t)),t}));return M.all([t.load(u,c).catch((function(t){throw C.debug("xd / Failed to load iframe:",t),i&&!r&&vt(!1,t),t})),s.catch((function(t){C.debug("xd / Ignored error syncing foreign data (expected if waitForOriginSync used):",t.message),C.debug("xd / Enqueuing sync to happen after visitorId set."),O.dispatch(d.ADD_CLEANUP_FN,{lifecycle:I.Lifecycle.postVisitorProfileLoad,cleanupFn:h.emitOriginsSyncedEvent})}))])},n.decideAndExecuteLayerASAP=function(t,e,i,u){return new M((function(c,s){try{!function(t,n,e,i,r){if(n.length||e.length)return void r(ht([],void 0,i));var u=k.relatedAudienceIds(t),c=u.reduce((function(t,n){var e=q.get(n);return e&&t.push(e),t}),[]),s=Q.getAllPlugins(I.PluginTypes.audienceMatchers);if(Z.getSampleRum()){var f={};if(c.forEach((function(t){Object.assign(f,pt(t.conditions,s))})),!a(f)){var l=Object.keys(f);O.dispatch(d.RECORD_AUDIENCE_USAGE,{audienceTypes:l,layerId:t.id})}}var v=function(t){C.debug("Audience list for extracting types",t);try{var n=new Set(o(t.map((function(t){return t.conditions}))).filter((function(t){return null!=t&&"string"!=typeof t})).map((function(t){return t.type})));return n.has("time_and_day")&&n.add("currentTimestamp"),C.debug("Extracted unique types from audiences",n),n}catch(t){return C.error("An error occurred while extracting types from audiences:",t),new Set}}(c),h=Q.getAllPlugins(I.PluginTypes.visitorProfileProviders),g=tt.getVisitorProfile();B.populateLazyVisitorData(h,g,v),function(t,n,e,i){var r=t.reduce((function(t,e){return Object.assign(t,p.requiredAudienceFieldsForConditions(e.conditions,n))}),{}),o=Object.keys(r).reduce((function(t,n){var e=r[n];if(void 0===B.getAttribute(e)){var i=B.getPendingAttributeValue(e);void 0!==i&&t.push(i)}return t}),[]);if(0===o.length)return i();var u=[].concat(t),c=P.firstToResolve(o.map((function(t){return M.resolve(t).then((function(){var t=tt.getVisitorProfile();if(u=u.filter((function(e){return void 0===p.isInAudience(t,e,n)})),!a(u))throw new Error("At least one audience is still pending")}))})));M.race([c,new M((function(t,n){F.setTimeout(n,e)}))]).then((function(){C.log("Activating Campaign after pending Audiences resolved",t),i()}),(function(){C.log("Activating Campaign after timeout on Audiences",t),i()}))}(c,s,k.getActivationTimeout(t),(function(){var n=ht(c,t,i);n.forEach((function(n){!function(t,n,e){var i=t.audienceIds.map(q.get.bind(q)).filter(Boolean),r=n.filter((function(n){return!t.audienceIds.includes(n.id)}));C.log("When deciding Campaign",k.description(e),"visitor is in audiences:",gt(i),"and not in audiences:",gt(r))}(n,c,t)})),r(n)}))}(u,t,e,i,(function(o){o.forEach((function(o){var c=o.pageId?[o.pageId]:i;C.debug("Deciding layer: ",u,"with decisionTicket: ",o,"and actionViewIds: ",c),function(t,e,i,o,u){var c=k.description(t);C.log("Activating Campaign",c,"on Page(s)",o),i.length&&(C.log("Applying force audienceIds:",i,"to Campaign",c),(u=r(u)).audienceIds=i);var s=n.decideLayer(t,u,e),f=!(!e.length&&!i.length),p=n.getActionsForDecision(t,s,f),g=function(t,n){return t.filter((function(t){return void 0===t.pageId||n.includes(t.pageId)}))}(p.actions,o);if(p.maybeExecute&&function(t,n,e,i){var r=k.description(n);C.log("Preparing actions",t,"for Campaign",r,"on Page(s)",i),t.forEach(l.prepareAction)}(g,t,0,o),o.forEach((function(){v.trackDecisionEvent(s,u,t)})),h.emitLayerDecided({layer:t,decisionTicket:u,decision:s}),s.error)throw s.error;if(Z.getSampleRum()){O.dispatch(d.RECORD_LAYER_POLICY_USAGE,{policy:t.policy,layerId:t.id});var m=function(t){var n={};return t.forEach((function(t){t.changeSet.forEach((function(t){n[t.type]||(n[t.type]=!0)}))})),n}(p.actions);
2O.dispatch(d.RECORD_CHANGE_TYPE_USAGE,{changeTypes:Object.keys(m),layerId:t.id}),a(t.integrationSettings)||O.dispatch(d.RECORD_INTEGRATION_USAGE,{integrations:k.getIntegrationTypes(t),layerId:t.id})}if(!_.isInCohort(s))return void C.log("Not activating Campaign: "+k.description(t)+"; not in the cohort because:",s.reason);p.maybeExecute&&function(t,n,e,i){var r=k.description(n);C.log("Executing actions",t,"for Campaign",r,"on Page(s)",i),M.all(t.map((function(t){return l.executePreparedAction(t).then(h.emitActionAppliedEvent.bind(null,t))}))).then((function(){C.log("All page actions for",e,"applied:",t),h.emitActionsForDecisionAppliedEvent(e,t)})).catch((function(t){C.warn("Error evaluating page actions for decision",e,"because:",t)}))}(g,t,s,o)}(u,t,e,c,o)})),c(u)}))}catch(t){C.error("Error getting decision for Campaign: "+k.description(u),t),s(t)}}))},n.decideLayer=function(t,n,e){var i;var r=k.description(t);i=e.length?_.getDummyLayerDecision(t,e):_.decideLayer(t,n),C.log("Recording decision for Campaign",r,n,"->",i),k.recordLayerDecision(t.id,n,i),i.variationId&&i.experimentId&&B.updateVariationIdMap(t.id,i.experimentId,i.variationId);return i},n.getActionsForDecision=function(t,n,e){var i=k.description(t),r="NOT applying changes for Campaign",o={actions:[],maybeExecute:!1};if(o.actions=[].concat(H.getLayerActions(n.layerId)||[],H.getExperimentActions(n.experimentId)||[],H.getExperimentVariationActions(n.experimentId,n.variationId)||[]),!e&&$.isGlobalHoldback())return C.log(r,i,"(visitor is in global holdback)"),o;if(n.isLayerHoldback)return C.log(r,i,"(visitor is in layer holdback)"),o;if(!n.experimentId||!n.variationId)return C.log(r,i,"(visitor is not eligible for any Experiments)"),o;return o.maybeExecute=!0,C.log("Got Actions for Campaign:",i,o.actions),o}},7292:function(t,n,e){var i=e(9479).Promise,r=e(1308),o=e(9247).get("stores/plugins"),a=e(7846),u=e(5098);n.create=function(t,n,e){var c={identifier:t.id,action:n,startTime:e||r.now()};try{var s=o.getPlugin(a.PluginTypes.changeAppliers,t.type);if(!s)throw new Error("Unrecognized change type "+t.type);return new s(t,c)}catch(t){return u.error("Change applier was never properly constructed:",t),{apply:function(){return i.reject(t)}}}}},5412:function(t){t.exports={SELECTOR_POLLING_MAX_TIME:2e3,CHANGE_DATA_KEY:"optimizelyChangeData",CHANGE_ID_ATTRIBUTE_PREFIX:"data-optly-"}},4980:function(t,n,e){var i=e(2869).isEmpty,r=e(5412).CHANGE_DATA_KEY;function o(t,n){return[t,n].join("_")}n.getData=function(t,n,e){var i=o(n,e);return t[r]&&t[r][i]?t[r][i]:null},n.hasData=function(t){return Boolean(t&&t[r]&&!i(t[r]))},n.removeData=function(t,n,e){t[r]&&delete t[r][o(n,e)]},n.setData=function(t,n,e,i){if("object"!=typeof i)throw new Error("setData expects an object");t[r]||(t[r]={}),t[r][o(n,e)]=i}},2075:function(t,n,e){var i=e(3225);t.exports={changeType:{CUSTOM_CODE:"custom_code",ATTRIBUTE:"attribute",APPEND:"append",REARRANGE:"rearrange",REDIRECT:"redirect",WIDGET:"widget"},DOMInsertionType:{AFTER:"after",APPEND:"append",BEFORE:"before",PREPEND:"prepend"},insertAdjacentHTMLType:{AFTER_BEGIN:"afterbegin",AFTER_END:"afterend",BEFORE_BEGIN:"beforebegin",BEFORE_END:"beforeend"},selectorChangeType:{CLASS:"class",HTML:"html",HREF:"href",SRC:"src",SRCSET:"srcset",STYLE:"style",TEXT:"text",HIDE:"hide",REMOVE:"remove"},changeApplierState:i({APPLIED:null,APPLYING:null,UNAPPLIED:null,UNDOING:null}),changeState:i({BLOCKED:null,UNAPPLIED:null,APPLIED:null,APPLYING:null,UNDOING:null,TIMED_OUT:null,IGNORED:null,ERROR:null})}},4597:function(t,n,e){var i=e(7710),r=e(6903),o=e(4482),a=e(3176).v,u=e(1308),c=e(9247),s=e(6931),f=e(5098),l=e(9479).Promise,d=e(9773),v=c.get("stores/global"),h=c.get("stores/action_data"),p=c.get("stores/change_data"),g=c.get("stores/session"),m=e(7292);e(7297).initialize();var b=a("ActionError");function _(t,n,e){if(h.getActionState(n.id))if(void 0===h.getChangeApplier(t.id,n.id)){var r={changeId:t.id,actionId:n.id,changeApplier:m.create(t,n,e)};s.dispatch(i.SET_CHANGE_APPLIER,r)}else f.warn("Action / Attempted to prepare a change which is already being applied: ",t);else f.warn("Action / Attempted to prepare change for inactive action: ",n)}function y(t,n,e,i){if(!i.includes(n)){if(!t[String(n)]){var a=p.getChange(n);if(!a){var c="Change with id "+n+" is absent";return i.length&&(c+=" but listed as a dependency for "+i[i.length-1]),void f.warn(c)}t[String(n)]=new l((function(c){var s=(a.dependencies||[]).map((function(r){return y(t,r,e,i.concat([n]))}));if(a.src){var v="change_"+a.src,g=o.makeAsyncRequest(v,(function(){return d.addScriptAsync("https://cdn.optimizely.com/public/26669750187/data"+a.src,(function(){o.resolveRequest(v)}))})).then((function(){var t=p.getChange(a.id);t||r.emitError(new b("Failed to load async change from src: "+a.src)),_(t,e,u.now())}));s.push(g)}l.all(s).then((function(){var t=u.now(),i=h.getChangeApplier(n,e.id);return i?(f.debug("Action / Applying change:",a),i.apply().then((function(n){n?f.log(n):f.debug("Action / Applied change for the first time in "+(u.now()-t)+"ms:",a),c()}))):(f.debug("Action / Not applying change ",n," - No changeApplier found."),void c())})).catch((function(t){f.error("Action / Failed to apply change:",a,t),c()}))}))}return t[String(n)]}f.error("Change with id "+n+" has circular dependencies: "+i.concat(n))}n.prepareAction=function(t){f.debug("Action / Preparing:",t),s.dispatch(i.ACTION_EXECUTED,{actionId:t.id,sessionId:g.getSessionId(),layerId:t.layerId,pageId:t.pageId,timestamp:u.now(),activationId:v.getActivationId()});var n=u.now();t.changeSet.forEach((function(e){var r="object"==typeof e&&null!==e?e.id:e,o=p.getChange(r);o||(s.dispatch(i.ADD_CHANGE,e),o=p.getChange(r)),o.src||_(o,t,n)}))},n.executePreparedAction=function(t){f.debug("Action / Executing:",t);var n={},e=t.changeSet.map((function(e){var i="object"==typeof e&&null!==e?e.id:e;return y(n,i,t,[])}));return l.all(e).then((function(){f.debug("changes for action id="+t.id+" applied")}))}},7297:function(t,n,e){var i=e(5412),r=e(9247).get("stores/directive");function o(){("interactive"===document.readyState||"complete"===document.readyState)&&(n.domReadyTime=Date.now())}n.domReadyTime=null,n.initialize=function(){o(),document.addEventListener("readystatechange",o,!0)},n.isTimedOut=function(t){var e=Date.now();if(!n.domReadyTime||!t)return!1;var o=Math.max(t,n.domReadyTime);return r.isEditor()&&(o=n.domReadyTime),!(e-o<i.SELECTOR_POLLING_MAX_TIME)}},8433:function(t,n,e){var i=e(2869),r=i.omit,o=i.pick,a=e(7710),u=e(6903),c=e(9792),s=e(7514),f=e(1308),l=e(1097),d=e(9247),v=e(4833),h=e(7846),p=e(2075),g=e(9127),m=e(4168),b=e(4341),_=e(4198),y=e(6931),w=e(2960),E=e(5098),I=(e(3672),e(9479).Promise),A=e(7026),T=e(8076),S=e(3615),O=e(8172),k=e(9241),R=d.get("stores/client_metadata"),C=d.get("stores/global"),N=d.get("stores/session"),D=d.get("stores/view"),x=d.get("stores/plugins"),j=d.get("stores/layer"),M=d.get("stores/layer_data"),P=d.get("stores/observed_redirect"),L=d.get("stores/pending_redirect"),U=d.get("stores/visitor"),V=d.get("stores/directive"),z=d.get("stores/event_data"),B=d.get("stores/visitor_id");function F(t,n,e){return void 0===e&&(e=!1),Object.assign({},t,{isLayerHoldback:n,isLayerConcluded:e,isGlobalHoldback:!1,clientName:null!==t.clientName?t.clientName:l.NAME,integrationStringVersion:null!==t.integrationStringVersion?t.integrationStringVersion:1,anonymizeIP:null!==C.getAnonymizeIP()?C.getAnonymizeIP():void 0,activationId:C.getActivationId(),decisionTicketAudienceIds:[],sessionId:N.getSessionId(),activeViewStates:[],userFeatures:H(U.getVisitorProfile()),layerStates:j.getLayerStatesForAnalytics()})}function G(t){var n=A.getReferrer()||v.getReferrer();return{eventId:k.generate(),timestamp:f.now(),revision:C.getRevision(),clientName:R.getClientName(),clientVersion:R.getClientVersion(),projectId:C.getProjectId(),accountId:C.getAccountId(),activationId:C.getActivationId(),sessionId:N.getSessionId(),isGlobalHoldback:C.isGlobalHoldback(),namespace:C.getNamespace(),referrer:n,visitorId:B.getRandomId(),activeViewStates:t.activeViewStates,layerStates:t.layerStates,userFeatures:H(t.visitorProfile)}}function q(t){var n,e;return t.pageId?(n=t.pageId,(e=D.getViewState(n))&&e.isActive?e.metadata:{}):{}}function H(t){var n=x.getAllPlugins(h.PluginTypes.visitorProfileProviders),e=Object.values(n).filter((function(t){return!0===t.shouldTrack})),i={id:null,type:null,name:"",value:null,shouldIndex:!0};return e.reduce((function(n,e){try{var r=e.provides,a=t[r],u=[];
2if(void 0!==a){null!==a&&"object"==typeof a?u=Object.keys(a).map((function(t){var n=a[t],e=null!==n&&"object"==typeof n?n:{value:n};return Object.assign({},{type:r,name:t},e)})):u.push({type:r,value:a});var c=u.map((function(t){return o(Object.assign({},i,t),Object.keys(i))})).filter((function(t){return!!t.value}));n=n.concat(c)}}catch(t){E.warn("Error evaluating userFeature against visitorProfile:",t)}return n}),[])}function Y(t,n,e){var i=function(t,n){var e=[],i=x.getAllPlugins(h.PluginTypes.analyticsTrackers);return Object.keys(i).forEach((function(r){var o=i[r];if(o[t]&&(!n||!o[n]))try{e.push({name:r,hookFn:d.evaluate(o[t])})}catch(t){E.error(t)}})),e}(t,e);E.debug("Found "+i.length+" analytics integrations defining a "+t+" hook"),E.debug("Calling each with data: ",n),i.forEach((function(t){try{E.debug("Calling plugin: "+t.name),t.hookFn(n),E.debug("Called plugin: "+t.name)}catch(t){E.error(t)}}))}function K(t,n,e){var i=function(t,n){0;var e=[],i=x.getAllPlugins(h.PluginTypes.analyticsTrackers);return Object.keys(i).forEac
2h((function(r){var o=i[r];n.includes(o[t])&&e.push({name:r,hookFn:o.trackLayerDecision})})),e}(t,n);E.debug("Found "+i.length+" analytics integrations  defining a trackLayerDecision "+t+" timing of "+n.join("|")),E.debug("Calling each with data: ",e),i.forEach((function(t){try{E.debug("Calling plugin: "+t.name),t.hookFn(e),E.debug("Called plugin: "+t.name)}catch(t){E.error(t)}}))}n.trackClientActivation=function(){if(!e(2958).shouldDrop()&&V.shouldSendTrackingData()){var t,n=(t=G({activeViewStates:[],visitorProfile:U.getVisitorProfile(),layerStates:j.getLayerStatesForAnalytics()}),Object.assign(t,{eventTags:{}}));return Y("onClientActivation",n),n}},n.trackCustomEvent=function(t,n,i,o){if(!e(2958).shouldDrop()){n=n||{},o=o||{},i||(i=z.getByApiName(t));var a=function(t,n,e,i){var r=G({activeViewStates:D.getActiveViewStates(),visitorProfile:U.getVisitorProfile(),layerStates:j.getLayerStatesForAnalytics()}),o=i&&i.pageId?q(i):D.getActiveViewTags(),a=Object.assign({},o,n),u=i&&i.category?i.category:g.OTHER;return Object.assign(r,{eventEntityId:i&&i.id,eventApiName:t,eventCategory:u,eventTags:a,eventProperties:e})}(t,n,o,i),c={name:t,type:_.CUSTOM,category:a.eventCategory,tags:r(a.eventTags,["revenue"])};if(void 0!==n.revenue&&(c.revenue=n.revenue),u.emitAnalyticsEvent({name:i?i.name||i.apiName:t,apiName:i?i.apiName:void 0,type:_.CUSTOM,properties:a.eventProperties,tags:r(a.eventTags,["revenue"]),category:a.eventCategory,metrics:c.revenue?{revenue:c.revenue}:{}},!V.shouldSendTrackingData()),V.shouldSendTrackingData())return s.addEvent(c),Y("onCustomEvent",a),a}},n.trackDecisionEvent=function(t,n,i){if(!e(2958).shouldDrop()){i||(i=M.get(t.layerId));var r=k.generate();y.dispatch(a.RECORD_LAYER_DECISION_EVENT_ID,{layerId:t.layerId,pageId:n.pageId,decisionId:r});var o=t.experimentId?i.experiments.find((function(n){return n.id===t.experimentId})):null,u=function(t,n,e,i,r){var o=null,a=null,u=null;if(r&&(o=r.name||null,u=r.integrationSettings,n.variationId)){var c=r.variations.find((function(t){return t.id===n.variationId}));c&&(a=c.name||null)}var s=A.getReferrer()||v.getReferrer(),l={sessionId:N.getSessionId(),decisionTicketAudienceIds:e.audienceIds,visitorId:B.getRandomId(),decisionId:t,activationId:C.getActivationId(),namespace:C.getNamespace(),timestamp:f.now(),pageId:e.pageId||null,variationId:n.variationId,variationName:a,experimentId:n.experimentId,experimentName:o,layerId:n.layerId,layerName:i.name,layerPolicy:i.policy,accountId:C.getAccountId(),projectId:C.getProjectId(),revision:String(C.getRevision()),clientName:R.getClientName(),clientVersion:R.getClientVersion(),referrer:s,integrationStringVersion:i.integrationStringVersion||1,integrationSettings:Object.assign({},i.integrationSettings,u)};return l}(r,t,n,i,o),s=L.isExpectingRedirect(),l=L.getLayerId(),d=w.description(i);if(s&&l===i.id&&(T.persist(u,"COOKIE"),E.log("Relaying decision for redirect Campaign",d)),V.shouldSendTrackingData()){var h=F(u,t.isLayerHoldback,t.isLayerConcluded);
2if(s&&l===i.id){var g=O.TrackLayerDecisionTimingFlags.preRedirectPolicy;h.timing=g,K(g,[O.PreRedirectPolicies.PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT],h),E.log("Called trackLayerDecision for redirect Campaign",d,h)}else{g=O.TrackLayerDecisionTimingFlags.nonRedirectPolicy;h.timing=g,K(g,[O.NonRedirectPolicies.TRACK_IMMEDIATELY],h),E.log("Called trackLayerDecision for non-redirect Campaign",d,h)}(function(t){return!(!t||!t.variations)&&t.variations.some((function(t){return!!t.actions&&t.actions.some((function(t){return!(!t||!t.changes)&&t.changes.some((function(t){return t.type===p.changeType.REDIRECT}))}))}))})(o)&&(y.dispatch(a.SET_TRACKER_USE_BEACON,!0),c.emitMaybeSendEvents(),y.dispatch(a.SET_TRACKER_USE_BEACON,!1))}else E.log("Analytics / Not tracking decision for Campaign",w.description(i))}},n.trackPostRedirectDecisionEvent=function(){if(e(2958).shouldDrop()||!V.shouldSendTrackingData()||P.hasTracked())return I.resolve();var t=P.get();if(!t)return I.resolve();var n=F(t,!1),i=O.TrackLayerDecisionTimingFlags.postRedirectPolicy;n.timing=i,K(i,[O.PostRedirectPolicies.TRACK_IMMEDIATELY],n);var r=new I((function(t){var n=m.on({filter:{type:b.TYPES.LIFECYCLE,name:"originsSynced"},handler:function(){t(),m.off(n)}})})),o=S.makeTimeoutPromise(1e3);return I.race([r,o]).then((function(){E.log("Calling trackers after successful sync")}),(function(t){E.warn("Calling trackers after failed sync:",t)})).then((function(){(n=F(t,!1)).timing=O.TrackLayerDecisionTimingFlags.postRedirectPolicy,K(O.TrackLayerDecisionTimingFlags.postRedirectPolicy,[O.PostRedirectPolicies.TRACK_AFTER_SYNC],n),y.dispatch(a.REGISTER_TRACKED_REDIRECT_DATA)})).catch((function(t){E.error("Error when calling trackers after sync:",t)}))},n.trackClickEvent=function(t){if(!e(2958).shouldDrop()){var n=function(t){var n=G({activeViewStates:D.getActiveViewStates(),visitorProfile:U.getVisitorProfile(),layerStates:j.getLayerStatesForAnalytics()}),e=t.config&&t.config.selector?t.config.selector:t.eventFilter.selector,i=t.apiName,r=t.category||g.OTHER,o=t.id,a=q(t);return Object.assign(n,{eventApiName:i,eventCategory:r,eventEntityId:o,eventTags:a,pageId:t.pageId,selector:e})}(t),i={name:t.apiName,type:t.eventType,category:n.eventCategory,tags:n.eventTags};if(u.emitAnalyticsEvent({name:t.name||t.apiName,apiName:t?t.apiName:void 0,type:t.eventType,category:n.eventCategory,tags:n.eventTags,metrics:{}},!V.shouldSendTrackingData()),V.shouldSendTrackingData())return s.addEvent(i),Y("onClickEvent",n),n}},n.trackViewActivation=function(t,n){if(!e(2958).shouldDrop())if(n||(n=D.getViewState(t.id)),n.isActive){var i=function(t,n){var e=G({activeViewStates:D.getActiveViewStates(),visitorProfile:U.getVisitorProfile(),layerStates:j.getLayerStatesForAnalytics()});return Object.assign(e,{pageId:t.id,pageApiName:t.apiName,viewCategory:t.category,eventTags:n.metadata})}(t,n);if(u.emitAnalyticsEvent({name:t.name||i.pageApiName,apiName:i.pageApiName,type:_.PAGEVIEW,category:i.viewCategory,tags:i.eventTags,metrics:{}},!V.shouldSendTrackingData()),V.shouldSendTrackingData())return s.addEvent({name:i.pageApiName,type:_.PAGEVIEW,category:i.viewCategory,tags:i.eventTags}),y.dispatch(a.TRACK_VIEW_ACTIVATED_EVENT,{pageId:t.id,eventData:i}),Y("onPageActivated",i),i}else E.debug("Inactive view passed to `trackViewActivation`")}},8076:function(t,n,e){var i=e(7710),r=e(2604),o=e(6903),a=e(9247),u=e(7846),c=e(6931),s=e(5098),f=e(8172),l=a.get("stores/plugins"),d=".",v=[{name:"sessionId",relayName:"s"},{name:"decisionTicketAudienceIds",relayName:"as",valueToValueString:function(t){return t.map(encodeURIComponent).join(",")},encodeValueString:function(t){return t},decodeValueString:function(t){return t},valueFromValueString:function(t){return t.split(",").map(r.safeDecodeURIComponent)}},{name:"decisionId",relayName:"d"},{name:"activationId",relayName:"aId"},{name:"pageId",relayName:"vId",isNullable:!0},{name:"variationId",relayName:"v",isNullable:!0},{name:"referrer",relayName:"r"},{name:"timestamp",relayName:"t",valueFromValueString:Number},{name:"visitorId",relayName:"i"},{name:"projectId",relayName:"p"},{name:"revision",relayName:"n"},{name:"clientName",relayName:"cN",isNullable:!0},{name:"clientVersion",relayName:"cV"},{name:"namespace",relayName:"ns"},{name:"accountId",relayName:"a"},{name:"layerId",relayName:"l"},{name:"layerName",relayName:"lN",isNullable:!0},{name:"layerPolicy",relayName:"lP"},{name:"experimentId",relayName:"x",isNullable:!0},{name:"experimentName",relayName:"xN",isNullable:!0},{name:"variationName",relayName:"vN",isNullable:!0},{name:"integrationStringVersion",relayName:"isv",valueFromValueString:Number,isNullable:!0},{name:"integrationSettings",relayName:"iS",isMulti:!0,valueToValueString:function(t,n){var e=null;if(t){var i=l.getPlugin(u.PluginTypes.analyticsTrackers,n);if(i&&"function"==typeof i.serializeSettings)try{e=i.serializeSettings(t)}catch(t){s.warn("Analytics / Failed to persist integrationSettings for plugin:",n,t)}}return e},valueFromValueString:function(t,n){var e=null,i=l.getPlugin(u.PluginTypes.analyticsTrackers,n);if(i&&"function"==typeof i.deserializeSettings)try{e=i.deserializeSettings(t)}catch(t){s.warn("Analytics / Failed to persist integrationSettings for plugin:",n,t)}return e},isNullable:!0}],h={},p={};v.forEach((function(t){h[t.name]=t,p[t.relayName]=t})),n.persist=function(t,n){n===f.RedirectRelayMedia.COOKIE?function(t){try{var n=function(t){var n=[],e=Object.keys(t).reduce((function(e,i){var r=t[i],o=h[i];return o?(o.isMulti?Object.keys(r).forEach((function(t){var n=r[t];null!==(n=o.valueToValueString?o.valueToValueString(n,t):String(n))&&(n=(o.encodeValueString||encodeURIComponent)(n),e.push(encodeURIComponent(o.relayName+d+t)+"="+n))})):null!==r&&(r=(o.valueToValueString||String)(r),r=(o.encodeValueString||encodeURIComponent)(r),e.push(o.relayName+"="+r)),e):(n.push(i),e)}),[]);if(n.length)throw new Error("Relay / Don't know how to relay some fields: "+n);return e.sort(),e.join("&")}(t)}
2catch(t){return s.error("Relay / Error computing redirect relay cookie: ",t),void o.emitError(t)}s.debug("Relay / Setting redirect relay cookie:",n);try{r.set(u.COOKIES.REDIRECT,n,{maxAge:5,encodeValue:!1})}catch(t){s.error("Relay / Failed to set redirect relay cookie",t),o.emitError(t)}}(t):s.error("Relay / Unsupported redirect relay medium: "+n)},n.load=function(t){if(t||(t=function(){var t=r.get(u.COOKIES.REDIRECT,!1);if(t)return s.log("Relay / Found redirect cookie:",t),t}()),t){var n=function(t){var n={};return t.split("&").forEach((function(t){var e=t.split("=");if(2===e.length){var i=r.safeDecodeURIComponent(e[0]),a=p[i];if(a||(a=v.find((function(t){return t.isMulti&&0===i.indexOf(t.relayName+d)})))){var u=e[1];try{if(a.isMulti){n[a.name]=n[a.name]||{};var c=i.substring(a.relayName.length+1);u=(a.decodeValueString||r.safeDecodeURIComponent)(u),u=(a.valueFromValueString||function(t){return t})(u,c),n[a.name][c]=u}else u=(a.decodeValueString||r.safeDecodeURIComponent)(u),u=(a.valueFromValueString||function(t){return t})(u),n[a.name]=u}catch(n){return s.warn("Relay / Skipping segment due to decode or parse error:",t,n),void o.emitError(n)}}else s.warn("Relay / Skipping segment with unknown field identifier:",t,i)}else s.warn("Relay / Skipping invalid segment:",t)})),n}(t);if(n){var e=[];if(v.forEach((function(t){null!==n[t.name]&&void 0!==n[t.name]||(t.isNullable?n[t.name]=null:(delete n[t.name],e.push(t.name)))})),!e.length)return c.dispatch(i.LOAD_REDIRECT_DATA,n),c.dispatch(i.ADD_CLEANUP_FN,{lifecycle:u.Lifecycle.postVisitorProfileLoad,cleanupFn:function(){var t,e;e=(t=n).pageId||void 0,c.dispatch(i.RECORD_LAYER_DECISION,{layerId:t.layerId,decision:{layerId:t.layerId,experimentId:t.experimentId,variationId:t.variationId,isLayerHoldback:!1},decisionTicket:{audienceIds:t.decisionTicketAudienceIds,bucketingId:t.visitorId,globalHoldback:0,preferredVariationMap:void 0,pageId:e,activationId:t.activationId},sessionId:t.sessionId,activationId:t.activationId,timestamp:t.timestamp,revision:t.revision,namespace:t.namespace,pageId:e}),c.dispatch(i.RECORD_LAYER_DECISION_EVENT_ID,{layerId:t.layerId,pageId:e,decisionId:t.decisionId}),c.dispatch(i.ACTION_EXECUTED,{sessionId:t.sessionId,layerId:t.layerId,pageId:t.pageId,timestamp:t.timestamp,activationId:t.activationId})}}),n;s.error("Relay / Observed redirect data with missing fields:",e)}}}},6903:function(t,n,e){var i=e(4168);n.emitError=function(t,n,e){i.emit({type:"error",name:t.name||"Error",data:{error:t,metadata:n}},e||!1,!0)},n.emitInternalError=function(t,e){n.emitError(t,e,!0)},n.emitAnalyticsEvent=function(t,n){var e={type:"analytics",name:"trackEvent",data:t};i.emit(e,n)}},3465:function(t,n,e){var i=e(2619),r=e(6817),o=e(5098),a=e(5007);function u(t,n){var e="function"==typeof t?t(n):t;return"string"==typeof e&&(e=[e]),Array.isArray(e)?e:(o.warn("Couldn't determine fieldsNeeded for matcher; assuming []"),[])}function c(t){return t.name?t.name+" ("+t.id+")":t.id}n.isInAudience=function(t,n,e){var a,s=function(t,n){return function(e){var i=e.type,a=n[i];if(!a)throw new Error("Audience / No matcher found for type="+i);if(a.fieldsNeeded)for(var c=u(a.fieldsNeeded,e),s=0;s<c.length;s++){var f=c[s];if(void 0===r.getFieldValue(t,f))return void o.debug("Audience / Required field",f,"for type",i,"has no value")}o.debug("Matching condition:",e,"to values:",t);var l=a.match(t,e);if(void 0!==l)return!!l}}(t,e);o.groupCollapsed("Checking audience",n.name,n.id,n),o.debug("Visitor Profile:",t);try{var f=i.evaluate(n.conditions,s)}catch(t){a=t,f=!1}return o.groupEnd(),a&&o.error("Audience / Error evaluating audience",c(n),":",a),o.log("Is "+(f?"in":"NOT in")+" audience:",c(n)),f},n.requiredAudienceFieldsForConditions=function t(n,e){var i={};return n.forEach((function(n){if(Array.isArray(n))Object.assign(i,t(n,e));else if(null!==n&&"object"==typeof n){var r=e[n.type];
2if(r)u(r.fieldsNeeded,n).forEach((function(t){i[a.serializeFieldKey(t)]=t}))}})),i}},35:function(t,n){n.FIELDS={NAME:"n",TIME:"t",TYPE:"y",CATEGORY:"c",REVENUE:"r",SESSION_ID:"s",OPTIONS:"o",SESSION_INDEX:"si"},n.FIELDS_V0_2={name:n.FIELDS.NAME,time:n.FIELDS.TIME,type:n.FIELDS.TYPE,category:n.FIELDS.CATEGORY,tags:n.FIELDS.OPTIONS,session_index:n.FIELDS.SESSION_INDEX}},2009:function(t,n,e){var i=e(35),r=e(6817).getFieldValue,o=e(8906);function a(t,n,e,r,o){this[i.FIELDS.NAME]=t,this[i.FIELDS.TYPE]=n,"string"==typeof e&&e.trim().length>0&&(this[i.FIELDS.CATEGORY]=e),r&&Object.keys(r).length>0&&(this[i.FIELDS.OPTIONS]=r),void 0!==o&&(this[i.FIELDS.REVENUE]=o)}function u(t,n,e,r){this.eventBase=t,this[i.FIELDS.TIME]=n,void 0!==e&&(this[i.FIELDS.SESSION_ID]=e),void 0!==r&&(this[i.FIELDS.SESSION_INDEX]=r)}n._=a,a.prototype.digest=function(){var t=function(t,n){return encodeURIComponent(t)+"="+encodeURIComponent(n)},n=[];if(n.push(t(i.FIELDS.NAME,this[i.FIELDS.NAME])),n.push(t(i.FIELDS.TYPE,this[i.FIELDS.TYPE])),this[i.FIELDS.CATEGORY]&&n.push(t(i.FIELDS.CATEGORY,this[i.FIELDS.CATEGORY])),this[i.FIELDS.REVENUE]&&n.push(t(i.FIELDS.REVENUE,this[i.FIELDS.REVENUE])),!this[i.FIELDS.OPTIONS])return n.join("&");var e=this[i.FIELDS.OPTIONS]||{},r=Object.keys(e).filter((function(t){return e.hasOwnProperty(t)}));r=r.sort();for(var o=0;o<r.length;o++)n.push(t(r[o],e[r[o]]));return n.join("&")},a.prototype.hash=function(){return this.hash_||(this.hash_=o.hashToHex(o.toByteString(this.digest()),o.Seed.BEHAVIOR_EVENT)),this.hash_},a.prototype.setHash=function(t){this.hash_=t},a.prototype.reHash=function(){this.hash_=null,this.hash()},a.prototype.equals=function(t){if(this.hash()!==t.hash()||this[i.FIELDS.NAME]!==t[i.FIELDS.NAME]||this[i.FIELDS.TYPE]!==t[i.FIELDS.TYPE]||this[i.FIELDS.CATEGORY]!==t[i.FIELDS.CATEGORY]||this[i.FIELDS.REVENUE]!==t[i.FIELDS.REVENUE])return!1;var n=this[i.FIELDS.OPTIONS]||{},e=t[i.FIELDS.OPTIONS]||{},r=Object.keys(n).filter((function(t){return n.hasOwnProperty(t)})),o=Object.keys(e).filter((function(t){return e.hasOwnProperty(t)}));if(r.length!==o.length)return!1;for(var a=0;a<r.length;a++){var u=r[a];if(!e.hasOwnProperty(u)||n[u]!==e[u])return!1}return!0},a.prototype.getValueOrDefault=function(t,n){var e=r(this,t);return void 0!==e?e:n},a.prototype.setFieldValue=function(t,n){t!==i.FIELDS.NAME&&t!==i.FIELDS.TYPE&&t!==i.FIELDS.CATEGORY&&t!==i.FIELDS.REVENUE&&t!==i.FIELDS.OPTIONS||(this[t]=n,this.reHash())},n.J=u,u.prototype.getValueOrDefault=function(t,n){if(0===t.length)return this;var e={};e[i.FIELDS.TIME]=this[i.FIELDS.TIME],e[i.FIELDS.SESSION_ID]=this[i.FIELDS.SESSION_ID],e[i.FIELDS.SESSION_INDEX]=this[i.FIELDS.SESSION_INDEX];var o=r(e,t);return void 0!==o?o:this.eventBase.getValueOrDefault(t,n)},u.prototype.setFieldValue=function(t,n){t===i.FIELDS.TIME||t===i.FIELDS.SESSION_ID||t===i.FIELDS.SESSION_INDEX?this[t]=n:this.eventBase.setFieldValue(t,n)};var c={n:"name",y:"type",c:"category",r:"revenue",s:"session_id",o:"tags",si:"session_index"};u.prototype.readableEvent=function(){var t,n,e=function(t){return"string"==typeof t?'"'+t+'"':t},r=this,o=[];[i.FIELDS.NAME,i.FIELDS.TYPE,i.FIELDS.CATEGORY,i.FIELDS.REVENUE,i.FIELDS.SESSION_ID].forEach((function(i){t=c[i],void 0!==(n=r.getValueOrDefault([i]))&&o.push(t+": "+e(n))}));var a=[];if(t=c[i.FIELDS.OPTIONS],void 0!==(n=r.getValueOrDefault([i.FIELDS.OPTIONS]))&&(Object.keys(n).forEach((function(t){var i=n[t];a.push(t+": "+String(e(i)))})),o.push(t+": {\n\t\t"+a.join(",\n\t\t")+"\n\t}")),"number"==typeof(n=r.getValueOrDefault([i.FIELDS.TIME]))&&(n=e(new Date(n).toString())),void 0!==n){o.push("timestamp: "+n)}return"{\n\t"+o.join(",\n\t")+"\n}"},u.prototype.toObject=function(t){var n,e,r={},o=this;[i.FIELDS.NAME,i.FIELDS.TYPE,i.FIELDS.CATEGORY,i.FIELDS.REVENUE,i.FIELDS.OPTIONS,i.FIELDS.SESSION_INDEX].forEach((function(t){n=c[t],void 0!==(e=o.getValueOrDefault([t],t===i.FIELDS.OPTIONS?{}:void 0))&&(r[n]=e)}));var a=c[i.FIELDS.OPTIONS],u=c[i.FIELDS.REVENUE];if(t&&t.revenueAsTag&&r[u]&&(r[a]=r[a]||{},r[a][u]=r[u],delete r[u]),"number"==typeof(e=o.getValueOrDefault([i.FIELDS.TIME])))if(t&&t.timeAsTimestamp){r.timestamp=new Date(e)}else{r.time=e}return r}},7514:function(t,n,e){var i=e(2584);n.initializeStore=i.initialize,n.addEvent=i.addEvent,n.getEvents=i.getEvents,n.getEventC
2ount=i.getEventCount},1587:function(t,n,e){var i=e(2009).J,r=e(1308),o=e(35),a=e(2009)._;n.CURRENT_SESSION_INDEX=0;var u=18e5;function c(t,e){var i;i=n.isInSameSession(t,e)?t.getValueOrDefault([o.FIELDS.SESSION_ID]):e.getValueOrDefault([o.FIELDS.TIME]),e.setFieldValue(o.FIELDS.SESSION_ID,i)}function s(t,e,i){var r,a=t.getValueOrDefault([o.FIELDS.SESSION_INDEX]);r=n.isInSameSession(e,t)?a:i?a+1:a-1,e.setFieldValue(o.FIELDS.SESSION_INDEX,r)}n.isInSameSession=function(t,n){var e=t.getValueOrDefault([o.FIELDS.TIME],0),i=n.getValueOrDefault([o.FIELDS.TIME],0);return this.isTimestampInSameSession(e,i)},n.isTimestampInSameSession=function(t,n){return Math.abs(t-n)<u},n.updateSessionId=function(t,n){if(t){var e=t.getValueOrDefault([o.FIELDS.TIME]),r=t.getValueOrDefault([o.FIELDS.SESSION_ID]),u=n.getValueOrDefault([o.FIELDS.TIME]);e="number"!=typeof e?u-36e5:e,r="number"!=typeof r?e:r,c(t=new i(new a("",""),e,r),n)}else n.setFieldValue(o.FIELDS.SESSION_ID,n.getValueOrDefault([o.FIELDS.TIME]))},n.updateSessionIndex=function(t,n){if(t){var e=t.getValueOrDefault([o.FIELDS.TIME]),r=t.getValueOrDefault([o.FIELDS.SESSION_INDEX]),u=n.getValueOrDefault([o.FIELDS.TIME]),c=t.getValueOrDefault([o.FIELDS.SESSION_ID]);e="number"!=typeof e?u-36e5:e,r="number"!=typeof r?0:r,c="number"!=typeof c?e:c,s(t=new i(new a("",""),e,c,r),n,!1)}else n.setFieldValue(o.FIELDS.SESSION_INDEX,0)},n.sessionize=function(t){var e=t.length;if(0!==e){t[0].setFieldValue(o.FIELDS.SESSION_ID,t[0].getValueOrDefault([o.FIELDS.TIME]));for(var i=1;i<e;i++)c(t[i-1],t[i]);var a=n.CURRENT_SESSION_INDEX,f=t[e-1].getValueOrDefault([o.FIELDS.TIME]);r.now()-f>u&&(a+=1),t[e-1].setFieldValue(o.FIELDS.SESSION_INDEX,a);for(i=e-1;i>0;i--)s(t[i],t[i-1],!0)}},n.reindexIfNecessary=function(t,n,e){var i=function(t){for(var n=0;n<t.length;n++){var e=t[n].getValueOrDefault([o.FIELDS.SESSION_INDEX]);t[n].setFieldValue(o.FIELDS.SESSION_INDEX,e+1)}};-1===t.getValueOrDefault([o.FIELDS.SESSION_INDEX])&&(i(n),i(e))},n.sessionSortPredicate=function(t,n){return t[o.FIELDS.TIME]-n[o.FIELDS.TIME]},n.applyMigrations=function(t){return!1}},2584:function(t,n,e){var i=e(7710),r=e(2604),o=e(1308),a=e(9127),u=e(6931),c=e(5098),s=e(1587),f=e(5007),l=n,d=e(2009).J,v=e(35),h=e(7846),p=e(2009)._,g=(s=e(1587),e(9247)),m=g.get("stores/visitor_events"),b=g.get("stores/visitor_events_manager"),_={EVENTBASE:"eb",HASH:"h",TIMEBASE:"tb",TIMESTAMPS:"ts",DELTA:"d",INDEX:"i"};function y(t){u.dispatch(i.SET_VISITOR_EVENTS,t)}function w(t){u.dispatch(i.UPDATE_BEHAVIOR_STORE,{key:"baseMap",value:t})}function E(t){u.dispatch(i.UPDATE_BEHAVIOR_STORE,{key:"eventQueue",value:t})}function I(t){u.dispatch(i.UPDATE_BEHAVIOR_STORE,{key:"lastEvent",value:t})}function A(){return m.getEvents()}function T(){return b.getBaseMap()}function S(){return b.getEventQueue()}function O(){return b.getLastEvent()}function k(){var t=A().concat(S()),n=!1;return t.length>1e3&&(t=t.slice(-1e3),n=!0),y(t),E([]),n}n.initialize=function(t,n){if(!b.getInitialized()){l.I(t,n);var e=A();e.length>0&&I(e[e.length-1]);var r=S();r.length>0&&I(r[r.length-1]),u.dispatch(i.UPDATE_BEHAVIOR_STORE,{key:"initialized",value:!0})}},n.addEvent=function(t){c.debug("Behavior store: adding event",t);var n=l.A(t);I(n),E(S().concat(n)),s.reindexIfNecessary(O(),A(),S()),l.T(S()),n.t&&function(t){try{var n=Number(r.get(h.COOKIES.OPTIMIZELY_SESSION,!1));if(isNaN(n)||0!==n){var e=n?s.isTimestampInSameSession(t,n)?t:0:t;r.set(h.COOKIES.OPTIMIZELY_SESSION,e.toString(),{path:"/",encodeValue:!1},!0)}}catch(t){c.error("Error setting session cookie",t)}}(n.t)},n.getEvents=function(){return S().length>0&&(k()&&s.sessionize(A()),l.S(A()),l.T(S())),A()},n.getEventCount=function(){return S().length+A().length},l.I=function(t,n){l.O(t,n)&&(l.S(A()),l.T(S())),s.sessionize(A())},l.O=function(t,n){if(0===t.length&&0===n.length)return y([]),E([]),!1;var e=!1,i=t[0]||n[0];return _.EVENTBASE in i?(y(l.k(t)),E(l.k(n))):(e=!0,y(l.R(t)),E(l.R(n))),S().length>0&&(k(),e=!0),y(l._updateBaseMapAndMaybeDedupe(A())),l._migrateEventBasesAndUpdateStore()&&(e=!0),e},l.R=function(t){for(var n=[],e=0;e<t.length;e++){var i=t[e],r=l.N(i);n[e]=new d(r,i[v.FIELDS.TIME])}return n},l._migrateEventBasesAndUpdateStore=function(){var t=!1,n=l.D();return s.applyMigrations(n)&&(t=!0,w({}),y(l._updateBaseMapAndMaybeDedupe(A())),E(l._updateBaseMapAndMaybeDedupe(S()))),t},l.j=function(){return o.now()},l.A=function(t){var n,e=t.name,i=t.type||"default",r=t.category||a.OTHER,o=t.tags||{};t.revenue&&(n=t.revenue);var u=new p(e,i,r,o,n);u=l.P(u);var c=l.j(),f=new d(u,c,-1);return s.updateSessionId(O(),f),s.updateSessionIndex(O(),f),f},l._updateBaseMapAndMaybeDedupe=function(t){for(var n=0;n<t.length;n++)t[n].eventBase=l.P(t[n].eventBase);return t},l.S=function(t){var n=l.L(t);f.persistBehaviorEvents(n)},l.T=function(t){var n=l.L(t);f.persistBehaviorEventQueue(n)},l.U=function(){var t;b.getCleared()||(y([]),E([]),l.S(A()),l.T(S()),w({}),I(null),t=!0,u.dispatch(i.UPDATE_BEHAVIOR_STORE,{key:"cleared",value:t}))},l.P=function(t){var n=t.hash(),e=T(),i=e[n];if(void 0===i)return e[n]=[t],w(e),t;for(var r=0;r<i.length;r++)if(t.equals(i[r]))return i[r];return i.push(t),w(e),t},l.D=function(){var t=[],n=T();for(var e in n)!n.hasOwnProperty(e)||(t=t.concat(n[e]));return t},l.L=function(t){for(var n=function(t){var n={};n[v.FIELDS.NAME]=t.getValueOrDefault([v.FIELDS.NAME]),n[v.FIELDS.TYPE]=t.getValueOrDefault([v.FIELDS.TYPE]);var e=t.getValueOrDefault([v.FIELDS.CATEGORY]);void 0!==e&&(n[v.FIELDS.CATEGORY]=e);var i=t.getValueOrDefault([v.FIELDS.REVENUE]);void 0!==i&&(n[v.FIELDS.REVENUE]=i);var r=t.getValueOrDefault([v.FIELDS.OPTIONS]);return void 0!==r&&(n[v.FIELDS.OPTIONS]=r),n},e=_,i=[],r="_idx_",o=0;o<t.length;o++){var a,u,c=t[o],s=c.eventBase;if(s.hasOwnProperty(r)){a=i[s[r]];var f=c[v.FIELDS.TIME]-(a[e.TIMEBASE]||0);(u={})[e.DELTA]=f,u[e.INDEX]=o,a[e.TIMESTAMPS].push(u)}else(a={})[e.EVENTBASE]=n(c),a[e.HASH]=s.hash(),a[e.TIMEBASE]=c[v.FIELDS.TIME],(u={})[e.DELTA]=0,u[e.INDEX]=o,a[e.TIMESTAMPS]=[u],i.push(a),s[r]=i.length-1}for(o=0;o<t.length;o++)delete t[o].eventBase[r];return i},l.N=function(t,n){var e=new p(t[v.FIELDS.NAME],t[v.FIELDS.TYPE],t[v.FIELDS.CATEGORY],t[v.FIELDS.OPTIONS],t[v.FIELDS.REVENUE]);return void 0!==n&&e.setHash(n),e},l.k=function(t){for(var n=_,e=[],i=0;i<t.length;i++)for(var r=t[i],o=l.N(r[n.EVENTBASE],r[n.HASH]),a=r[n.TIMEBASE],u=r[n.TIMESTAMPS],c=0;c<u.length;c++){var s=u[c],f=new d(o,a+s[n.DELTA]);e[s[n.INDEX]]=f}return e},n.deserialize=function(t){return l.k(t)},n.mergeAllEvents=function(t){var n=[].concat.apply([],t);return n.sort(s.sessionSortPredicate),s.sessionize(n),n}},7710:function(t,n,e){var i=e(3225);t.exports=i({LOG:null,SET_LOGLEVEL:null,INITIALIZE_STATE:null,SET_DOMCONTENTLOADED:null,ACTIVATE:null,UPDATE_BEHAVIOR_STORE:null,DATA_LOADED:null,SET_CLIENT_NAME:null,SET_CLIENT_VERSION:null,LOAD_PERSISTED_LAYER_STATES:null,RECORD_GLOBAL_DECISION:null,RECORD_LAYER_DECISION:null,ENSURE_ORIGINAL_PUSHSTATE:null,ENSURE_ORIGINAL_REPLACESTATE:null,SET_VISITOR_ATTRIBUTES:null,SET_VISITOR_ATTRIBUTE_PENDING:null,LOAD_EXISTING_VISITOR_PROFILE:null,SET_VISITOR_EVENTS:null,SET_FOREIGN_VISITOR_EVENTS:null,SET_FOREIGN_VISITOR_EVENT_QUEUE:null,SET_VISITOR_ID:null,SET_VISITOR_ID_VIA_API:null,SET_GA4_USER_ID:null,REFRESH_SESSION:null,LOAD_SESSION_STATE:null,UPDATE_VARIATION_ID_MAP:null,MERGE_VARIATION_ID_MAP:null,UPDATE_PREFERRED_LAYER_MAP:null,MERGE_PREFERRED_LAYER_MAP:null,UPDATE_CONTEXTUAL_MAB_MAP:null,MERGE_CONTEXTUAL_MAB_MAP:null,SET_ODP_SEGMENTS:null,RECORD_LAYER_DECISION_EVENT_ID:null,TRACK_VIEW_ACTIVATED_EVENT:null,REGIST
2ER_ASYNC_DEFERRED:null,RESOLVE_DEFERRED:null,REJECT_DEFERRED:null,REGISTER_PLUGIN:null,ADD_CLEANUP_FN:null,CLEAR_CLEANUP_FN:null,ACTION_EXECUTED:null,REGISTER_ACTION:null,SET_VIEW_ACTIVE_STATE:null,UPDATE_PARSED_VIEW_METADATA:null,UPDATE_USER_SUPPLIED_METADATA:null,REGISTER_VIEWS:null,SET_GLOBAL_TAGS:null,SET_VIEW_BATCHING:null,RESET_VIEW_STATES:null,ATTACH_EVENT_STREAM_PUBLISHERS:null,DETACH_EVENT_STREAM_PUBLISHERS:null,LOAD_DIRECTIVE:null,SET_COOKIE_AGE:null,SET_COOKIE_DOMAIN:null,SET_COOKIE_AUTO_REFRESH:null,XDOMAIN_SET_DEFAULT_FRAME:null,XDOMAIN_ADD_FRAME:null,XDOMAIN_SET_MESSAGE:null,XDOMAIN_ADD_SUBSCRIBER:null,XDOMAIN_SET_CANONICAL_ORIGINS:null,XDOMAIN_SET_DISABLED:null,ADD_EMITTER_HANDLER:null,REMOVE_EMITTER_HANDLER:null,SET_INTEGRATION_SETTINGS:null,ADD_CHANGE:null,SET_CHANGE_APPLIER:null,REMOVE_ACTION_STATE:null,ANNOUNCE_PENDING_REDIRECT:null,LOAD_REDIRECT_DATA:null,REGISTER_TRACKED_REDIRECT_DATA:null,SET_PENDING_EVENT:null,REMOVE_PENDING_EVENT:null,LOAD_PENDING_EVENTS:null,SANDBOXED_FUNCTIONS_ADDED:null,SET_RUM_DATA:null,RECORD_API_USAGE:null,INITIALIZE_CHANGE_METRICS:null,RECORD_ACTIVATION_TYPE_USAGE:null,RECORD_AUDIENCE_USAGE:null,RECORD_CHANGE_MACROTASK_RATE:null,RECORD_CHANGE_OVERHEATED:null,RECORD_CHANGE_TYPE_USAGE:null,RECORD_DOM_OBSERVATION_OCCURENCE:null,RECORD_INTEGRATION_USAGE:null,RECORD_LAYER_FEATURE_USAGE:null,RECORD_LAYER_POLICY_USAGE:null,RECORD_RECOMMENDATIONS_USAGE:null,RECORD_VIEW_FEATURE_USAGE:null,RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT:null,RECORD_VISITOR_ID_LOCATOR_USAGE:null,RECORD_VISITOR_ID_ERROR:null,RECORD_STICKY_BUCKETING_FEATURE:null,SET_PERFORMANCE_MARKS_DATA:null,FINALIZE_BATCH_SNAPSHOT:null,REGISTER_PREVIOUS_BATCH:null,REGISTER_TRACKER_VISITOR:null,REGISTER_TRACKER_EVENT:null,REGISTER_TRACKER_DECISION:null,RESET_TRACKER_EVENTS:null,RESET_TRACKER_PREVIOUS_BATCHES:null,RESET_TRACKER_STORE:null,SET_TRACKER_POLLING:null,SET_TRACKER_BATCHING:null,SET_TRACKER_USE_BEACON:null,SET_TRACKER_SEND_EVENTS:null,SET_TRACKER_PERSISTABLE_STATE:null,SET_TRACKER_DIRTY:null,UPDATE_TRACKER_VISITOR_ATTRIBUTES:null,SET_UA_DATA:null})},7846:function(t,n,e){var i=e(3225);n.COOKIES={OPT_OUT:"optimizelyOptOut",PREVIEW:"optimizelyPreview",REDIRECT:"optimizelyRedirectData",SESSION_STATE:"optimizelySessionState",OPTIMIZELY_SESSION:"optimizelySession",TOKEN:"optimizelyToken",VISITOR_ID:"optimizelyEndUserId",VISITOR_UUID:"optimizelyPPID"},n.LayerActivationTypes={CONDITIONAL:"conditional",IMMEDIATE:"immediate",MANUAL:"manual",READY:"ready",TIMEOUT:"timeout"},n.LogLevel={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},n.Lifecycle=i({preActivate:null,postVisitorProfileLoad:null,postViewsActivated:null,postActivate:null}),n.ViewActivationTypes={immediate:"immediate",manual:"manual",callback:"callback",polling:"polling",URLChanged:"url_changed",DOMChanged:"dom_changed"},n.StorageKeys={PENDING_EVENTS:"pending_events",RELAYED_EVENTS:"relayed_events"},n.PluginTypes=i({visitorProfileProviders:null,viewProviders:null,audienceMatchers:null,viewMatchers:null,analyticsTrackers:null,viewTagLocators:null,userFeatureDefs:null,apiModules:null,changeAppliers:null,deciders:null,eventImplementations:null,viewTriggers:null}),n.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,serverTiming:null}),n.RUMPerformanceTimingAttributes=i({blockTime:null}),n.AttributionTypes=i({FIRST_TOUCH:null,LAST_TOUCH:null}),n.SandboxedFunctions=i({XMLHttpRequest:null}),n.PerformanceData=i({performance_marks:null,resource_timing:null,performance_timing:null}),n.PerformanceCounters=i({mutation_observer_invocation:null,polling_invocation:null,match_selector_invocation:null}),n.VisitorStorageKeys={EVENTS:"events",EVENT_QUEUE:"event_queue",LAYER_MAP:"layer_map",LAYER_STATES:"layer_states",SESSION_STATE:"session_state",VISITOR_PROFILE:"visitor_profile",VARIATION_MAP:"variation_map",TRACKER_OPTIMIZELY:"tracker_optimizely",CONTEXTUAL_MAB:"contextual_mab",ODP_SEGMENTS:"odp_segments"},n.AllStorageKeys=Object.assign({},n.StorageKeys,n.VisitorStorageKeys),n.ListTargetingKeyTypes={COOKIE:"c",QUERY:"q",JS_VARIABLE:"j"},n.VisitorIdLocatorType={COOKIE:"cookie",JS_VARIABLE:"js",LOCALSTORAGE:"localStorage",QUERY:"query"},n.AllocationPolicyEnum={CMAB:"contextual-multi-arm-bandit",MIN_REGRET:"min-regret",MIN_TIME:"min-time",MANUAL:"manual"}},9127:function(t){t.exports={OTHER:"other"}},4341:function(t,n){n.TYPES={ACTION:"action",ANALYTICS:"analytics",EDITOR:"editor",LIFECYCLE:"lifecycle"}},4198:function(t){t.exports={CLICK:"click",CUSTOM:"custom",ENGAGEMENT:"engagement",PAGEVIEW:"pageview"}},8172:function(t,n,e){var i=e(3225);n.TrackLayerDecisionTimingFlags=i({preRedirectPolicy:null,postRedirectPolicy:null,nonRedirectPolicy:null}),n.PreRedirectPolicies=i({PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT:null,PERSIST_BEFORE_REDIRECT:null}
2),n.PostRedirectPolicies=i({TRACK_IMMEDIATELY:null,TRACK_AFTER_SYNC:null}),n.NonRedirectPolicies=i({TRACK_IMMEDIATELY:null}),n.RedirectRelayMedia=i({COOKIE:null})},2535:function(t,n,e){var i=e(8906),r=n.TOTAL_POINTS=1e4;n.bucketingNumber=function(t,n,e){return i.hashToInt(t+n,e,r)},n.isHoldback=function(t,e){return n.bucketingNumber(t,e.id,i.Seed.IGNORING)<(e.holdback||0)},n.chooseWeightedCandidate=function(t,e,r){for(var o=n.bucketingNumber(t,e,i.Seed.BUCKETING),a=0;a<r.length;a++)if(r[a].endOfRange>o)return r[a].entityId;throw new Error("Unable to choose candidate")}},8357:function(t,n,e){var i=e(2869).isEmpty,r=e(7710),o=e(2535),a=e(2619),u=e(6883).b,c=e(6931),s=e(5098),f=e(9769);n.isValidExperiment=function(t,n){var e;return s.groupCollapsed("Decision / Evaluating audiences for experiment:",n,t),e=!n.audienceIds||a.evaluate(n.audienceIds,(function(n){return t.includes(n)})),s.groupEnd(),s.debug("Decision / Experiment",n,"is valid?",e),e},n.selectVariation=function(t,n,e,i,a){if(s.debug("Decision / Selecting variation for experiment:",t.id),!t.variations||0===t.variations.length)throw new u('No variations in selected experiment "'+t.id+'"');if(!t.weightDistributions&&t.variations.length>1)throw new u('On selected experiment "'+t.id+'", weightDistributions must be defined if # variations > 1');var l;if(t.bucketingStrategy&&"impression"===t.bucketingStrategy)if(1===t.variations.length)l=t.variations[0].id;else{var d=i;l=o.chooseWeightedCandidate(e+d,t.id,t.weightDistributions)}else if(l=1===t.variations.length?t.variations[0].id:o.chooseWeightedCandidate(e,t.id,t.weightDistributions),null==t?void 0:t.deployed)s.debug("Decision / Experiment is deployed. Skipping bucketing.");else if(a&&a[t.id]){s.debug("Decision / Using preferredVariationMap to select variation for experiment:",t.id);var v=a[t.id];if(!t.variations.find((function(t){return t.id===v})))return c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"stoppedVariation",id:t.id}),s.debug("Decision / Preferred variation:",v,"not found on experiment:",t.id,". Visitor not bucketed."),null;v!==l&&(c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"preferredVariation",id:t.id}),l=v)}var h=f.processCmabExperiment(t,l);h&&(l=h);var p=t.variations.find((function(t){return t.id===l}));if(p)return s.debug("Decision / Selected variation:",p),p;throw new u('Unable to find selected variation: "'+l+'".')},n.getExperimentById=function(t,n){var e=t.experiments.find((function(t){return t.id===n}));if(e)return e;throw new u("Unable to find selected experiment.")},n.hasVariationActionsOnView=function(t,n){return s.debug("Decision / Checking variation:",t,"for actions on pageId:",n),!!(t.actions||[]).find((function(t){return t.pageId===n&&!i(t.changes)}))}},6883:function(t,n){function e(t){this.message=t}e.prototype=new Error,n.b=e},3929:function(t,n,e){var i=e(2869),r=i.isEmpty,o=i.pick,a=(e(7710),e(6903)),u=e(3465),c=e(2535),s=e(8357),f=e(6883).b,l=e(9247),d=e(7846),v=(e(6931),e(4766),e(2960)),h=e(5098),p=(e(3672),e(8692)),g=l.get("stores/plugins"),m=l.get("stores/global"),b=l.get("stores/layer_data");function _(t){var n=g.getPlugin(d.PluginTypes.deciders,t);if(r(n))throw new Error("No deciders found for policy: "+t);return n}n.isPageIdRelevant=function(t){if(!t)return!1;var n=_(t.policy);return"function"==typeof n.includePageIdInDecisionTicket?n.includePageIdInDecisionTicket(t):!0===n.includePageIdInDecisionTicket},n.createTicket=function(t){var n,e,i,r=o(t,["bucketingId","globalHoldback","preferredVariationMap","pageId"]);return Object.assign(r,{audienceIds:(n=t.visitorProfile,e=t.audiences,i=g.getAllPlugins(d.PluginTypes.audienceMatchers),e.reduce((function(t,e){return u.isInAudience(n,e,i)&&t.push(e.id),t}),[])),activationId:m.getActivationId()}),r},n.decideGlobal=function(t){return{isGlobalHoldback:c.isHoldback(t.bucketingId,{id:null,holdback:t.globalHoldback})}},n.decideLayer=function(t,n){var e,i;h.debug("Deciding: ",t,n);var o,u,l=_(t.policy),d={layerId:t.id,experimentId:null,variationId:null,isLayerHoldback:c.isHoldback(n.bucketingId,t),isLayerConcluded:!!t.concluded};if(r(t.experiments))throw new f("No experiments in layer.");try{if(l.decideLayer){h.debug("Decision / Using decider's custom decideLayer.");var v=l.decideLayer(t,n);e=v.experiment,i=v.variation}else h.debug("Decision / Using default decideLayer behavior."),e=l.selectExperiment(t,n.audienceIds,n.bucketingId),i=s.selectVariation(e,n.audienceIds,n.bucketingId,n.activationId,n.preferredVariationMap)}catch(t){o=t,(null!=(u=f)&&"undefined"!=typeof Symbol&&u[Symbol.hasInstance]?u[Symbol.hasInstance](o):o instanceof u)?d.reason=t.message:d.error=t}return d.experimentId=e?e.id:null,d.variationId=i?i.id:null,d.error&&(d.error.
2name="DecisionEngineError",a.emitError(d.error)),d},n.getDummyLayerDecision=function(t,n){var e,i=function(t,n){for(var e=0;e<t.experiments.length;e++)for(var i=0;i<t.experiments[e].variations.length;i++)if(n.indexOf(t.experiments[e].variations[i].id)>-1)return{experimentId:t.experiments[e].id,variationId:t.experiments[e].variations[i].id};return null}(t,n);return i?(h.log("Decision / Applying force variation:",i.variationId,"to Campaign",v.description(t)),e={layerId:t.id,variationId:i.variationId,experimentId:i.experimentId,isLayerHoldback:!1,isLayerConcluded:!1,reason:"force"}):(h.log("No variation matches ids:",n,"in Campaign",v.description(t)),e={layerId:t.id,variationId:null,experimentId:null,isLayerHoldback:!1,isLayerConcluded:!1,reason:"force"}),e},n.isInCohort=function(t){if(!t.experimentId||!t.variationId)return!1;var n=b.get(t.layerId);return!(p.isSingleExperimentPolicy(n.policy)&&t.isLayerHoldback)}},9247:function(t,n,e){var i=e(7322),r=e(6931),o=e(5680),a=i.create(),u={action_data:e(9614),async_request:e(6159),audience_data:e(2674),change_data:e(7420),cleanup:e(1485),client_metadata:e(7052),cookie_options:e(7286),event_data:e(9612),event_emitter:e(5284),dimension_data:e(2288),directive:e(8164),global:e(9726),history:e(2905),integration_settings:e(5539),layer:e(8428),layer_data:e(1607),log:e(4267),observed_redirect:e(3080),pending_events:e(7484),performance:e(31),plugins:e(5857),provider_status:e(5513),pending_redirect:e(8789),rum:e(1149),sandbox:e(3878),session:e(4749),tracker_optimizely:e(4944),ua_data:e(222),view:e(1800),view_data:e(4083),visitor:e(3427),visitor_attribute_entity:e(7828),visitor_events:e(3171),visitor_events_manager:e(4847),visitor_id:e(2171),visitor_bucketing:e(7354),xdomain:e(4293)};r.registerStores(u),Object.keys(u).forEach((function(t){a.register("stores/"+t,r.getStore(t))})),a.register("core/plugins/matchers/key_value",o),t.exports=a},3204:function(t,n,e){var i=e(7710),r=e(6903),o=e(2604),a=e(3176).v,u=e(7846),c=e(6931),s=e(5098),f=n.JSONParseError=a("JSONParseError"),l=e(6920),d=e(3654),v=e(8704),h="optimizely_show_preview",p="optimizely_disable",g="optimizely_editor",m="optimizely_p13n",b="optimizely_x_audiences",_="optimizely_x",y="optimizely_show_preview",w="optimizely_opt_out",E="optimizely_token",I="optimizely_force_tracking",A="optimizely_embed_editor";n.populateDirectiveData=function(){var t,n,e,a,T,S,O,k,R;!function(){var t="OFF",n=l.getQueryParamValue("optimizely_log");if(n){var e=n.split(":");""!==e[0]&&(t=String(e[0]).toUpperCase()),void 0!==e[1]&&s.setLogMatch(e[1])}s.setLogLevel(t)}(),function(){var t=v.getUserAgent()||"";if("string"!=typeof t)return void s.warn("Directive / userAgent not a string");t=t.toLowerCase(),["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"].some((function(n){if(t.includes(n))return s.warn("Directive / Matches bot:",n),!0}))&&(s.log("Directive / Disabling tracking"),c.dispatch(i.LOAD_DIRECTIVE,{trackingDisabled:!0}))}(),t=window.optimizely?window.optimizely.initialized:void 0,n=Boolean("function"==typeof t?t():t),c.dispatch(i.LOAD_DIRECTIVE,{alreadyInitialized:n}),c.dispatch(i.LOAD_DIRECTIVE,{mutationObserverAPISupported:v.isMutationObserverAPISupported()}),function(){var t=o.get(u.COOKIES.OPT_OUT),n=l.getQueryParamValue(w),e="You have successfully opted out of Optimizely for this domain.",r="You are NOT opted out of Optimizely for this domain.";if("true"===n||"false"===n){var a="true"===n;c.dispatch(i.LOAD_DIRECTIVE,{shouldOptOut:a}),v.alert(a?e:r)}else t&&c.dispatch(i.LOAD_DIRECTIVE,{shouldOptOut:"true"===t})}(),function(){var t=!1,n=[h,p];n.push(g);for(var e=0;e<n.length;e++)if("true"===l.getQueryParamValue(n[e])){s.warn("Directive / Not activating because "+n[e]+" is set."),t=!0;break}c.dispatch(i.LOAD_DIRECTIVE,{disabled:t})}(),c.dispatch(i.LOAD_DIRECTIVE,{isEditor:!1}),c.dispatch(i.LOAD_DIRECTIVE,{isPreview:!1}),(e=l.getQueryParamValue(y))&&s.log("Directive / Is legacy preview mode"),c.dispatch(i.LOAD_DIRECTIVE,{isLegacyPreview:!!e}),c.dispatch(i.LOAD_DIRECTIVE,{isSlave:!1}),a=v.getGlobal("optlyDesktop"),(T=!(!a||void 0===a.p13nInner))&&s.log("Directive / Is running in desktop app editor"),c.dispatch(i.LOAD_DIRECTIVE,{isRunningInDesktopApp:T}),(S="true"===l.getQueryParamValue(m))&&s.log("Directive / Is running in editor"),c.dispatch(i.LOAD_DIRECTIVE,{isRunningInV2Editor:S}),function(){var t=!1,n=v.getGlobal("sessionStorage"),e=l.getQueryParamValue(A);t="true"===e,e&&n&&("true"===e?n.setItem(A,"true"):n.removeItem(A)),n&&"true"===n.getItem(A)&&(t=!0,s.log("Directive / Should mount embedded editor"));c.dispatch(i.LOAD_DIRECTIVE,{requestedEmbeddedEditor:t})}(),O=o.get(u.COOKIES.TOKEN)||null,k=l.getQueryParamValue(E)||O,c.dispatch(i.LOAD_DIRECTIVE,{projectToken:k}),function(){var t=o.get(u.COOKIES.PREVIEW),n=[],e=l.getQueryParamValue(b);if(e)n=o.safeDecodeURIComponent(e).split(",");else if(t)try{n=d.parse(t).forceAudienceIds}catch(n){var i=new f("Failed to parse previewCookie in registerForceAudienceIds: "+t),a={originalMessage:n.message,userError:!0};r.emitError(i,a)}n.length&&s.warn("Directive / Force parameters disabled - ignoring force audience IDs.")}(),function(){var t=o.get(u.COOKIES.PREVIEW),n=[],e=l.getQueryParamValue(_);if(e)n=o.safeDecodeURIComponent(e).split(",");else if(t)try{n=d.parse(t).forceVariationIds}catch(n){var i=new f("Failed to parse previewCookie in registerForceVariationIds: "+t),a={originalMessage:n.message,userError:!0};r.emitError(i,a)}n.length&&s.warn("Directive / Force parameters disabled - ignoring force variation IDs.")}(),(R=l.getQueryParamValue(I))&&c.dispatch(i.LOAD_DIRECTIVE,{forceTracking:R})};n.setOptOut=function(t){t?(s.warn("Directive / Opting out"),o.set(u.COOKIES.OPT_OUT,"true",{maxAge:31536e4},!0)):o.remove(u.COOKIES.OPT_OUT),c.dispatch(i.LOAD_DIRECTIVE,{shouldOptOut:t})}},1308:function(t,n){n.now=function(){return+new Date}},1097:function(t,n){n.VERSION="0.256.0",n.NAME="js"},4833:function(t,n,e){var i=e(9247).get("stores/global");n.getDocumentElement=function(){return document.documentElement},n.getCookieString=function(){return document.cookie||""},n.setCookie=function(t){document.cookie=t},n.querySelector=function(t){return document.querySelector(t)},n.querySelectorAll=function(t){return document.querySelectorAll(t)},n.parseUri=function(t){var e=n.createElement("a");return e.href=t,e},n.childrenOf=function(t){return Array.prototype.slice.call(t.querySelectorAll("*"))},n.createElement=function(t){return document.createElement(t)},n.isReady=function(){return i.domContentLoadedHasFired()||"interactive"===document.readyState||"complete"===document.readyState},n.isLoaded=function(){return"complete"===document.readyState},n.addReadyHandler=function(t){return document.addEventListener("DOMContentLoaded",t),function(){n.removeReadyHandler(t)}},n.removeReadyHandler=function(t){return function(){document.removeEventListener("DOMContentLoaded",t)}},n.getReferrer=function(){return document.referrer},n.getReadyState=function(){return document.readyState},n.write=function(t){if("loading"!==n.getReadyState())throw new Error("Aborting attempt to write to already-loaded document");document.write(t)},n.appendToHead=function(t){return n.appendTo(document.head,t)},n.appendTo=function(t,n){t.appendChild(n)},n.addEventListener=function(t,n,e){return document.addEventListener(t,n,e),function(){document.removeEventListener(t,n,e)}},n.getCurrentScript=function(){if(document.currentScript)return document.currentScript},n.parentElement=function(t){for(var n=t.parentNode;n.nodeType!==Node.ELEMENT_NODE;)n=n.parentNode;return n}},4955:function(t,n,e){var i,r,o="optimizely_data",a=e(3176).v,u=e(4802),c=e(8704),s=a("StorageError");try{r=c.getGlobal("localStorage")}catch(t){throw new s("Unable to read localStorage: "+t.toString())}if(!r)throw new s("localStorage is undefined");i=u.create(r,o),n.DT=i},3524:function(t,n,e){var i=e(8908);n.create=function(t){return new(i.get("MutationObserver",MutationObserver))(t)},n.observe=function(t,n,e){t.observe(n,e)}},8363:function(t,n,e){var i=e(9479).Promise,r=e(8704);n.estimateStorage=function(){var t=r.getGlobal("navigator");try{return t.storage.estimate()}catch(t){return i.resolve({usage:null,quota:null})}}},3672:function(t,n,e){var i=e(7710),r=e(3176).v,o=e(1308),a=e(6931),u=e(8704),c=e(9247).get("stores/rum"),s="optimizely:",f=n.Error=r("PerformanceError");function l(){return u.getGlobal("performance")}
2n.time=function(t){if(c.getSampleRum()){var n=l();if(n&&n.mark){var e=s+t;n.clearMarks(e+"Begin"),n.mark(e+"Begin")}}},n.timeEnd=function(t){if(c.getSampleRum()){var n=l();if(n&&n.mark){var e=s+t,r=n.getEntriesByName(e+"Begin");if(0===r.length)throw new f("Called timeEnd without matching time: "+t);n.clearMarks(e+"End"),n.mark(e+"End");var o=t+"Time",u=n.getEntriesByName(e+"End")[0].startTime-r[0].startTime;a.dispatch(i.SET_PERFORMANCE_MARKS_DATA,{name:o,data:{startTime:Math.round(1e3*r[0].startTime)/1e3,duration:Math.round(1e3*u)/1e3}})}}},n.setMark=function(t,n,e){if(c.getSampleRum()){var r=l();if(r&&r.mark){var o=s+t;r.mark(o),a.dispatch(i.SET_PERFORMANCE_MARKS_DATA,{name:t,data:{startTime:Math.round(1e3*n)/1e3,duration:Math.round(1e3*e)/1e3}})}}},n.now=function(){var t=l();return t?t.now():o.now()}},8908:function(t,n){n.get=function(t,n){try{var e=window.Zone;if(e&&"function"==typeof e.V){var i=window[e.V(t)];if("function"==typeof i)return i}}catch(t){}return n}},8704:function(t,n,e){var i=e(5098);n.getUserAgent=function(){return window.navigator.userAgent},n.getLocationSearch=function(){return window.location.search},n.getNavigatorLanguage=function(){return window.navigator.language||window.navigator.userLanguage},n.getHref=function(){return window.location.href},n.getLocation=function(){return window.location},n.setLocation=function(t){window.location.replace(t)},n.setGlobal=function(t,n){window[t]=n},n.getGlobal=function(t){return window[t]},n.getGlobalByPath=function(t){for(var n=t.split("."),e=window;n.length;)try{e=e[n.shift()]}catch(n){throw i.error("Attempted to access nonexistent property. Path ",t),new Error("Attempted to access nonexistent property. Path "+t)}return e},n.addEventListener=function(){return window.addEventListener.apply(window,arguments)},n.removeEventListener=function(){return window.removeEventListener.apply(window,arguments)},n.isMutationObserverAPISupported=function(){return void 0!==window.MutationObserver},n.alert=function(t){alert(t)},n.setTimeout=function(t,n){return setTimeout((function(){try{t()}catch(t){i.warn("Deferred function threw error:",t)}}),n)},n.setInterval=function(t,n){return setInterval((function(){try{t()}catch(t){i.warn("Polling function threw error:",t)}}),n)}},3845:function(t,n){n.create=function(t,n,e,i){return Object.assign({category:"other"},i,{id:t,apiName:n,eventType:e})}},4168:function(t,n,e){var i=e(9241),r=e(7710),o=e(6903),a=e(9247),u=e(6931),c=e(5098),s=a.get("stores/event_emitter");n.on=function(t){return t.token||(t.token=i.generate()),u.dispatch(r.ADD_EMITTER_HANDLER,t),t.token},n.off=function(t){u.dispatch(r.REMOVE_EMITTER_HANDLER,{token:t})},n.emit=function(t,n,e){s.getHandlers(t,n).forEach((function(i){try{i.handler.call({$di:a},t)}catch(r){!e&&i.emitErrors?(c.error("Error in handler for event:",t,r),o.emitError(r,null,n)):c.warn("Suppressed error in handler for event:",t,r)}}))}},945:function(t,n,e){var i=e(4168);n.on=function(t){return t.publicOnly=!0,i.on(t)},n.off=i.off,n.emit=function(t){i.emit(t)}},5598:function(__unused_webpack_module,exports,__webpack_require__){var createError=__webpack_require__(1319),di=__webpack_require__(9247),Logger=__webpack_require__(5098),CSP_MODE=!1,EXEC_WITH_JQUERY=!0,ExecError=exports.Error=createError("ExecError");exports.apply=function(t,n){n=(n=n||[]).concat(di.get("env/jquery"));try{return t.apply(void 0,n)}catch(e){throw Logger.warn("Error applying function",t,"with args:",n,e),new ExecError(e)}},exports.eval=function(str){try{return str="var $ = optimizely.get('jquery');"+str,eval(str)}catch(t){throw Logger.warn("Error executing JS:",str,t),new ExecError(t)}}},6931:function(t,n,e){var i=e(7333);t.exports=i.create()},4766:function(t,n){n.description=function(t){var n=!!t.name?'"'+t.name+'" ':"",e=function(t){return(t.weightDistributions||[]).map((function(t){return t.entityId}))}(t).join(", ");return n+"(id "+t.id+", campaigns: "+e+")"}},2960:function(t,n,e){var i=e(2869).flattenDeep,r=e(7710),o=e(1308),a=e(9247),u=e(6931),c=a.get("stores/global"),s=a.get("stores/session");n.recordLayerDecision=function(t,n,e){return u.dispatch(r.RECORD_LAYER_DECISION,{layerId:t,decision:e,decisionTicket:n,sessionId:s.getSessionId(),activationId:c.getActivationId(),timestamp:o.now(),revision:c.getRevision(),namespace:c.getNamespace(),pageId:n.pageId}),e},n.relatedAudienceIds=function(t){var n={},e=["and","or","not"];
2return(t.experiments||[]).forEach((function(t){i(t.audienceIds).forEach((function(t){e.includes(t)||(n[t]=!0)}))})),Object.keys(n)},n.getActivationTimeout=function(t){var n=t.activation;return n&&null!==n.timeout&&void 0!==n.timeout?n.timeout:2e3},n.description=function(t){return(t.name?'"'+t.name+'" ':"")+"("+t.id+")"},n.createSingle=function(t,n,e){return{id:t,policy:"single_experiment",holdback:0,experiments:[{id:n||"",variations:[{id:e||"",actions:[]}],audienceIds:[]}],integrationStringVersion:1}},n.createLayerState=function(t,n,e,i,r){return void 0===i&&(i=!1),void 0===r&&(r=!1),{layerId:t,decision:{layerId:t,experimentId:n,variationId:e,isLayerHoldback:i||!1,isLayerConcluded:r||!1},decisionTicket:{audienceIds:[]}}},n.getIntegrationTypes=function(t){return Object.keys(Object.keys(t.integrationSettings).reduce((function(t,n){return Number.isNaN(Number(n))||(n="custom"),t[n]=1,t}),{}))}},4966:function(t,n){n.G=function(t,n){if(!n)return 0;for(var e=n.toString().split("."),i=t.toString().split("."),r=0;r<e.length;r++){if(void 0===i[r])return-1;if(isNaN(Number(i[r]))){if(i[r]!==e[r])return-1}else{if(Number(i[r])<Number(e[r]))return-1;if(Number(i[r])>Number(e[r]))return 1}}return 0}},2619:function(t,n,e){var i=e(3654),r=e(5098),o="or",a="not";var u={};function c(t,n){var e;if(Array.isArray(t)){var a,c;"string"==typeof t[0]&&t[0]in u?(a=t[0],c=t.slice(1)):(a=o,c=t),r.groupCollapsed('Condition / Applying operator "'+a+'" with args',i.stringify(c));try{e=u[a](c,n),r.debug("Condition / Result:",e)}finally{r.groupEnd()}return e}return e=n(t),r.debug("Condition / Evaluated:",i.stringify(t),":",e),e}u["and"]=function(t,n){for(var e,i,r=0;r<t.length;r++){if(!1===(e=c(t[r],n)))return!1;void 0===e&&(i=!0)}if(!i)return!0},u[o]=function(t,n){for(var e,i=!1,r=0;r<t.length;r++){if(!0===(e=c(t[r],n)))return!0;void 0===e&&(i=!0)}if(!i)return!1},u[a]=function(t,n){if(1!==t.length)return!1;var e=c(t[0],n);return void 0!==e?!e:void 0},t.exports={evaluate:c}},9839:function(t,n,e){var i=e(2634);function r(t){return(t=(t||"").toLowerCase())in u?t:Object.keys(u).find((function(n){return u[n].includes(t)}))||"unknown"}function o(t,n,e){return n||("unknown"===t?"unknown":e?"mobile":"desktop_laptop")}n.parseUA=function(t){var n=new i(t),e=n.getBrowser(),u=n.getOS(),s=n.getDevice(),f=(u.name||"unknown").toLowerCase(),l=(e.name||"unknown").toLowerCase(),d=function(t){var n=/\b(iPad|iPhone)\d+,\d+/i.exec(t);return n?n[1].toLowerCase():null}(t),v="ipad"===d?"tablet":s.type,h=a(v,l,f);return{browser:{id:r(e.name),version:e.version},platform:{name:f,version:u.version},device:{model:c[s.model]||d||"unknown",type:o(l,v,h),isMobile:h}}};var a=function(t,n,e){if(["mobile","tablet"].includes(t)||["opera mini"].includes(n))return!0;return!!["android","blackberry","ios","windows phone"].includes(e)},u={gc:["chrome","chromium","silk","yandex","maxthon","chrome webview"],edge:["edge"],ie:["internet explorer","iemobile"],ff:["firefox","iceweasel"],opera:["opera","opera mini","opera tablet"],safari:["safari","mobile safari","webkit"],ucbrowser:["uc browser"]},c={iPhone:"iphone",iPad:"ipad"}},7322:function(t){function n(){this.B={}}n.prototype.register=function(t,n){if(1!==arguments.length){if(this.B[t])throw new Error("Module already registered for: "+t);this.B[t]=n}else{var e=this;Object.keys(t).forEach((function(n){var i=t[n];e.register(n,i)}))}},n.prototype.get=function(t){return this.B[t]},n.prototype.getModuleKeys=function(){var t=this.B;return Object.keys(t)},n.prototype.evaluate=function(t){var n=t.length,e=t.slice(0,n-1),i=t[n-1];if("function"!=typeof i)throw new Error("Evaluate must take a function as last element in array");var r=e.map(this.get,this);return i.apply(null,r)},n.prototype.reset=function(){this.B={}},t.exports={create:function(){return new n}}},5566:function(t,n,e){var i=e(2869).cloneDeep;function r(t,n,e){this.q=t,this.H=n,this.Y=0,this.K=!1,this.$={},Object.assign(this,e),this.W={},this.initialize&&this.initialize()}r.prototype.X=function(t,n){var e=this.$[t];e&&"function"==typeof e&&e.call(this,n,t)},r.prototype.Z=function(){return i(this.W)},r.prototype.on=function(t,n){this.$[t]=n.bind(this)},r.prototype.observe=function(t){return this.H.tt(this.q,t)},r.prototype.emitChange=function(){this.K=!0,this.Y++},r.prototype.hasChanges=function(){return this.K},r.prototype.resetChange=function(){this.K=!1},r.prototype.getStateId=function(){return this.Y},r.prototype.nt=function(){this.reset&&"function"==typeof this.reset&&this.reset(),this.initialize()},t.exports=r},7333:function(t,n,e){var i=e(5566);function r(t){t=t||{},this.et={},this.it={},this.rt=0,this.ot=[],this.ut=[]}function o(t,n){return function(){var e=t.indexOf(n);-1!==e&&t.splice(e,1)}}r.prototype.registerStores=function(t){Object.keys(t).forEach((function(n){this.et[n]=new i(n,this,t[n])}),this)},r.prototype.getStore=function(t){return this.et[t]},r.prototype.dispatch=function(t,n){this.dispatchId++;var e=this;this.ot.forEach((function(i){i.call(e,t,n)}));var i=this.et;
2Object.keys(i).forEach((function(e){i[e].X(t,n)})),this.ut.forEach((function(i){i.call(e,t,n)})),Object.keys(i).forEach((function(t){var n=i[t];n.hasChanges()&&this.it[t]&&(n.resetChange(),this.it[t].forEach((function(t){t(n)})))}),this)},r.prototype.reset=function(){this.it={};var t=this.et;Object.keys(t).forEach((function(n){t[n].nt()}))},r.prototype.getState=function(){var t={},n=this.et;return Object.keys(n).forEach((function(e){t[e]=n[e].Z()})),t},r.prototype.onPreAction=function(t){var n=this.ot;return n.push(t),o(n,t)},r.prototype.onPostAction=function(t){var n=this.ut;return n.push(t),o(n,t)},r.prototype.tt=function(t,n){return this.it[t]||(this.it[t]=[]),this.it[t].push(n),o(this.it[t],n)},t.exports={create:function(t){return new r(t)}}},3654:function(t,n){n.stringify=function(){var t=arguments;return function(t){var n,e,i=[Array.prototype],r=[];i.forEach((function(t){void 0!==t.toJSON&&(r.push(t.toJSON),delete t.toJSON)}));try{n=t()}catch(t){e=t}finally{r.forEach((function(t,n){i[n].toJSON=t}))}if(e)throw e;return n}((function(){return JSON.stringify.apply(null,t)}))},n.parse=JSON.parse},5571:function(t,n){n.hasMatch=function(t,n,e){var i=null!=e,r=null!=t;switch(n||(r?"exact":"exists")){case"exists":return i;case"exact":return i&&String(e)===t;case"substring":return i&&String(e).indexOf(t)>-1;case"regex":try{return!(!r||!i)&&new RegExp(t).test(String(e))}catch(t){}return!1;case"range":var o=t.split(":"),a=parseFloat(o[0]),u=parseFloat(o[1]),c=parseFloat(e);return c>=a&&c<=u;default:return!1}}},9479:function(t,n,e){t.exports=e(2926)},4802:function(t,n,e){var i=e(5098);function r(t,n){this.ct=t,this.st=n}r.prototype.ft=function(t){return[this.st,t].join("$$")},r.prototype.dt=function(t){return t.replace(this.st+"$$","")},r.prototype.setItem=function(t,n){try{this.ct.setItem(this.ft(t),n)}catch(n){i.warn("Failed to save",t,"to localStorage:",n)}},r.prototype.removeItem=function(t){this.ct.removeItem(this.ft(t))},r.prototype.getItem=function(t){var n=null;try{n=this.ct.getItem(this.ft(t))}catch(t){}return n},r.prototype.keys=function(){var t=this;return Object.keys(this.ct).filter((function(n){return n.includes(t.st)})).map((function(n){return t.dt(n)}))},r.prototype.allKeys=function(){return Object.keys(this.ct)},r.prototype.allValues=function(){return Object.values(this.ct)},t.exports={create:function(t,n){return new r(t,n)},mockStorage:{keys:function(){},getItem:function(t){},removeItem:function(t){},setItem:function(t,n){}}}},4829:function(t,n,e){var i=e(4833),r=e(4168),o=e(3524);n.createDOMChangedObserver=function(){var t=i.getDocumentElement(),n={type:"viewTrigger",name:"DOMChanged"},e=o.create((function(){r.emit(n,!0)}));o.observe(e,t,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}},2466:function(t,n,e){var i=e(2869).isEmpty,r=e(6903),o=e(7846),a=e(3654),u=e(4955).DT,c=e(5098),s=e(9479),f=e(9146),l=e(9247).get("stores/pending_events"),d=o.StorageKeys.PENDING_EVENTS,v=!1;n.persistPendingEvents=function(){try{var t=l.getEventsString();u.setItem(d,t),e(2338).setItem(d,t)}catch(t){c.warn("PendingEvents / Unable to set localStorage key, error was: ",t),r.emitInternalError(t)}},n.flushPersistPendingEvents=function(){v&&(v=!1,n.persistPendingEvents())},n.schedulePersistPendingEvents=function(){v||(v=!0,s.resolve().then(n.flushPersistPendingEvents).catch((function(t){c.warn("PendingEvents / Unable to persist pending events, error was: ",t)})))},n.getPendingEvents=function(){try{return a.parse(u.getItem(d))}catch(t){return null}},n.retryPendingEvents=function(t){Object.keys(t).forEach((function(n){var e=t[n];f.retryableRequest(e.data,n,e.retryCount)})),i(t)||c.log("Retried pending events: ",t)}},5303:function(t,n,e){var i=e(2869).cloneDeep,r=e(7710),o=e(9247),a=e(7846),u=e(4168),c=e(6931);n.registerApiModule=function(t,n){Array.isArray(n)&&(n=o.evaluate(n)),c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.apiModules,name:t,plugin:n})},n.registerDependency=function(t,n){o.get(t)||o.register(t,n)},n.registerVisitorProfileProvider=function(t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.visitorProfileProviders,name:t.provides,plugin:t})}
2,n.registerViewProvider=function(t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewProviders,name:t.provides,plugin:t})},n.registerAudienceMatcher=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.audienceMatchers,name:t,plugin:n})},n.registerViewMatcher=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewMatchers,name:t,plugin:n})},n.registerAnalyticsTracker=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.analyticsTrackers,name:t,plugin:n})},n.registerViewTagLocator=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewTagLocators,name:t,plugin:n})},n.registerAudiencePlugin=function(t){t.dependencies&&Object.keys(t.dependencies).forEach((function(e){var i=t.dependencies[e];n.registerDependency(e,i)}));var e,r,a="vendor."+t.vendor;e="string"==typeof t.provider?o.get(t.provider)(t.vendor):"function"==typeof t.provider?t.provider(t.vendor):i(t.provider),n.registerVisitorProfileProvider(Object.assign(e,{provides:a})),r="string"==typeof t.matcher?o.get(t.matcher):t.matcher;var u={fieldsNeeded:[a],match:function(t,n){return r(t[a],n)}};n.registerAudienceMatcher(a,u)};var s={};n.registerWidget=function(t){Array.isArray(t)&&(t=o.evaluate(t));var n=t.widgetId,e=s[n];e&&(u.off(e.showToken),u.off(e.hideToken));var i=u.on({filter:{type:"showWidget",name:n},handler:t.showFn}),r=u.on({filter:{type:"hideWidget",name:n},handler:t.hideFn});return s[n]={showToken:i,hideToken:r},s[n]},n.hasWidget=function(t){return Object.prototype.hasOwnProperty.call(s,t)},n.registerChangeApplier=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.changeAppliers,name:t,plugin:n})},n.registerDecider=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.deciders,name:t,plugin:n})},n.registerEventImplementation=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.eventImplementations,name:t,plugin:n})},n.registerViewTrigger=function(t,n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewTriggers,name:t,plugin:n})}},7685:function(t,n,e){var i=e(2869),r=i.isEmpty,o=i.mapValues,a=e(9247),u=":",c="holdback",s="treatment",f="",l=e(5098),d=e(8692);function v(t){return t.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}n.formatNamesAndIdsForAnalytics=function(t,n,e,i){var u={layer:t.name||f,experiment:n.name||f,variation:e.name||f};i&&(u=o(u,v));var c,s=!t.integrationStringVersion||1===t.integrationStringVersion;if(u.experiment===f&&s)if(c=n.audienceIds,r(c)||-1===["and","or","not"].indexOf(c[0])){var l=a.get("stores/audience_data");u.experiment=function(t,n){return r(n)?"everyone_else":n.reduce((function(n,e){var i=t.get(e);return i?n+v(i.name?i.name:i.id)+",":n}),"").slice(0,-1)}(l,n.audienceIds)}else u.experiment="Exp";return{names:u,idStrings:{layer:"("+v(t.id)+")",experiment:"("+v(n.id)+")",variation:"("+v(e.id)+")"}}},n.combineAndTruncateIdAndName=function(t,n,e){var i=e-n.length;if(i<0&&(l.warn("maxLength must be at least long enough to fit the entity ID, which is length"+n.length+". Defaulting to only use entity ID as name."),t=f),t===f)return n;if(t.length>i){var r=Math.min(t.length,i);return(t=t.substring(0,r))+n}return t+" "+n},n.generateAnalyticsString=function(t,e,i,r,o,a){return t.integrationStringVersion&&2===t.integrationStringVersion?function(t,e,i,r,o,a){if(d.isSingleExperimentPolicy(t.policy)&&r)return;var s=!d.isSingleExperimentPolicy(t.policy)&&r,f=n.formatNamesAndIdsForAnalytics(t,e,i,a),l=[f.names.experiment,f.names.variation],v=[f.idStrings.experiment,f.idStrings.variation];d.isSingleExperimentPolicy(t.policy)||(l.unshift(f.names.layer),v.unshift(f.idStrings.layer));var h=v.reduce((function(t,n){return t+n.length}),0),p=l.length-1+(s?1:0),g=h+1*p;if(s&&(g+=8),g>o)throw new Error("The analytics string size is too low to send the entity IDs.");for(var m=o-g,b=l.length,_=[],y=l.length-1;y>=0;y--){var w=l[y],E=Math.min(w.length,Math.floor(m/b));m-=E,b--,_.unshift(w.substring(0,E))}var I=_.map((function(t,n){return t+v[n]}));return s&&I.push(c),I.join(u)}(t,e,i,r,o,a):function(t,e,i,r,o,a){var f=r?c:s,l=3,v=n.formatNamesAndIdsForAnalytics(t,e,i,a),h=v.names,p=v.idStrings,g=Object.values(p).reduce((function(t,n){return t+n.length}),0);if(g+l+f.length>
2o)throw new Error("The analytics string size is too low to send the campaign, experiment, and variation IDs.");var m=o-g-l-f.length,b={};b.variation=Math.min(h.variation.length,Math.floor(m/3)),m-=b.variation,b.experiment=Math.min(h.experiment.length,Math.floor(m/2)),m-=b.experiment,b.layer=m;var _={};Object.keys(h).forEach((function(t){var n=h[t];_[t]=n.substring(0,b[t])}));var y=[];return d.isSingleExperimentPolicy(t.policy)||y.push(_.layer+p.layer),(y=y.concat([_.experiment+p.experiment,_.variation+p.variation,f])).join(u)}(t,e,i,r,o,a)}},4632:function(t){t.exports=function(t,n){t=function(t){var n=t.split("?");if(n[1]){var i=n[1].split("#"),r=i[0],o=i.slice(1).join("#"),a=r.split("&"),u=[];return a.forEach((function(t){0!==t.indexOf(e)&&u.push(t)})),n[1]="",u.length>0&&(n[1]="?"+u.join("&")),o&&(n[1]+="#"+o),n.join("")}return t}(t);var i=n.value;switch(n.match){case"exact":return(t=o(t))===o(i);case"regex":try{return Boolean(t.match(i))}catch(t){}return!1;case"simple":return(t=r(t))===(i=r(i));case"substring":return t=o(t,!0),i=o(i,!0),-1!==t.indexOf(i);default:return!1}};var n=["www."],e="optimizely_",i=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"];function r(t){return o(function(t){var n=t.indexOf("?");return-1!==n&&(t=t.substring(0,n)),-1!==(n=t.indexOf("#"))&&(t=t.substring(0,n)),t}(t))}function o(t,e){t=(t=t.replace("/?","?")).toLowerCase().replace(/[/&?]+$/,"");var r=i.slice(0);e||(r=r.concat(n));for(var o=r.length,a=0;a<o;a++){var u=r[a],c=new RegExp("^"+u);t=t.replace(c,"")}return t}},5680:function(t,n,e){var i=e(6817).getFieldValue,r=e(5571);t.exports=function(t,n){var e=i(t,n.name.split("."));return Array.isArray(e)?e.some((function(t){return r.hasMatch(n.value,n.match,t)})):r.hasMatch(n.value,n.match,e)}},1813:function(t,n,e){var i=e(4482),r=e(9773),o="cdn3";n.getIP=function(){return i.makeAsyncRequest(o,u).then((function(t){return t.ip}))},n.getIPDerivedGeolocation=function(){return i.makeAsyncRequest(o,u).then((function(t){return t.location}))};var a="//cdn3.optimizely.com/js/geo4.js";function u(){r.addScriptAsync(a,void 0,"script")}},9614:function(t,n,e){var i=e(7710),r=e(9229),o=e(5098),a=e(2869).isEmpty;t.exports={initialize:function(){this.W={actions:{},actionState:{}},this.on(i.DATA_LOADED,this.vt),this.on(i.ACTION_EXECUTED,this.ht),this.on(i.SET_CHANGE_APPLIER,this.bt),this.on(i.REMOVE_ACTION_STATE,this._t)},vt:function(t){var n=this;a(t.data.layers)||(t.data.layers.forEach((function(t){var e;if(t.changes){var i="layerId:"+t.id;e={id:i,layerId:t.id,changeSet:t.changes,type:"layer"},r.deepFreeze(e),n.W.actions[i]=e}(t.experiments||[]).forEach((function(i){if(i.changes){var o="experimentId:"+i.id;e={id:o,layerId:t.id,experimentId:i.id,changeSet:i.changes,type:"experiment"},r.deepFreeze(e),n.W.actions[o]=e}(i.variations||[]).forEach((function(o){(o.actions||[]).forEach((function(a){var u=a.pageId||a.viewId,c=i.id+":"+o.id+":"+u;e={id:c,layerId:t.id,experimentId:i.id,variationId:o.id,pageId:u,changeSet:a.changes,type:"variation"},r.deepFreeze(e),n.W.actions[c]=e}))}))}))})),this.emitChange())},ht:function(t){var n=t.actionId;void 0===n||this.W.actionState[n]||(this.W.actionState[n]={})},bt:function(t){var n=t.actionId,e=t.changeId;this.W.actionState[n]?this.W.actionState[n][e]=t.changeApplier:o.warn("Action Data / Attempted to set changeApplier for inactive action: ",n)},_t:function(t){delete this.W.actionState[t.actionId]},get:function(t){return r.safeReference(this.W.actions[t])},getActionState:function(t){return r.safeReference(this.W.actionState[t])},getByChangeId:function(t){return Object.values(this.W.actions).find((function(n){return n.changeSet&&n.changeSet.some((function(n){return n.id===t}))}))},getAllActionIdsByPageId:function(t){return Object.values(this.W.actions).filter((function(n){return n.pageId===t})).map((function(t){return t.id}))},getChangeApplier:function(t,n){var e=this.W.actionState[n];if(e)return e[t]}
2,getExperimentVariationActions:function(t,n){return r.safeReference(Object.values(this.W.actions).filter((function(e){return e.experimentId===t&&e.variationId===n})))},getLayerActions:function(t){return r.safeReference(Object.values(this.W.actions).filter((function(n){return n.id==="layerId:"+t})))},getExperimentActions:function(t){return r.safeReference(Object.values(this.W.actions).filter((function(n){return n.id==="experimentId:"+t})))},getAll:function(){return r.safeReference(Object.values(this.W.actions))}}},6159:function(t,n,e){var i=e(7710);t.exports={initialize:function(){this.W={},this.on(i.REGISTER_ASYNC_DEFERRED,this.yt),this.on(i.RESOLVE_DEFERRED,this.wt),this.on(i.REJECT_DEFERRED,this.Et)},getRequest:function(t){return this.W[t]},getPromise:function(t){var n=this.getRequest(t);if(n)return n.promise},yt:function(t){this.W[t.source]={promise:t.promise,resolver:t.resolver,rejecter:t.rejecter}},wt:function(t){var n=this.getRequest(t.source);if(!n)throw new Error("No request registered for source: "+t.source);n.resolver(t.resolveWith)},Et:function(t){var n=this.getRequest(t.source);if(!n)throw new Error("No request registered for source: "+t.source);if(!n.rejecter)throw new Error("No rejecter registered for source: "+t.source);n.rejecter(t.rejectWith)}}},2674:function(t,n,e){var i=e(2869),r=i.isEmpty,o=i.merge,a=e(7710),u=e(9229);function c(t,n){return n||(n={}),t?(t.forEach((function(t){if("string"!=typeof t){if("object"==typeof t&&null!==t&&!Array.isArray(t)){var e=t.type,i=t.name||"_";n[e]||(n[e]={}),n[e][i]=!0}Array.isArray(t)&&c(t,n)}})),n):n}t.exports={initialize:function(){this.W={audiences:{},featuresNeeded:{}},this.on(a.DATA_LOADED,this.vt)},vt:function(t){if(!r(t.data.audiences)){var n=this;t.data.audiences.forEach((function(t){u.deepFreeze(t),o(n.W.featuresNeeded,c(t.conditions)),n.W.audiences[t.id]=t})),this.emitChange()}},getAll:function(){return u.safeReference(Object.values(this.W.audiences))},getFeaturesNeeded:function(t){return u.safeReference(this.W.featuresNeeded[t]||{})},getAudiencesMap:function(){return u.safeReference(this.W.audiences)},get:function(t){return u.safeReference(this.W.audiences[t])},getAudienceName:function(t){return Object.values(this.W.audiences).find((function(n){return n.id===t})).name||"Aud "+t}}},7420:function(t,n,e){var i=e(2869).isEmpty,r=e(7710),o=e(9229);t.exports={initialize:function(){this.W={},this.on(r.ADD_CHANGE,this.It),this.on(r.DATA_LOADED,this.vt)},getChange:function(t){return this.W[t]},vt:function(t){if(!i(t.data.changes)){var n=this;
2t.data.changes.forEach((function(t){n.It(t)}))}},It:function(t){o.deepFreeze(t),this.W[t.id]=t,this.emitChange()}}},1485:function(t,n,e){var i=e(2869).cloneDeep,r=e(7710),o=e(7846);t.exports={initialize:function(){this.W={};var t=this;Object.keys(o.Lifecycle).forEach((function(n){var e=o.Lifecycle[n];t.W[e]=[]})),this.on(r.ADD_CLEANUP_FN,this.At),this.on(r.CLEAR_CLEANUP_FN,this.Tt)},getCleanupFns:function(t){return i(this.W[t])},At:function(t){this.W[t.lifecycle].push(t.cleanupFn),this.emitChange()},Tt:function(t){var n=this.W[t.lifecycle];if(t.cleanupFn){var e=n.indexOf(t.cleanupFn);e>-1&&(n.splice(e,1),this.emitChange())}else this.W[t.lifecycle]=[],this.emitChange()}}},7052:function(t,n,e){var i=e(7710),r=e(1097);t.exports={initialize:function(){this.W={name:r.NAME,version:r.VERSION},this.on(i.SET_CLIENT_NAME,this.St),this.on(i.SET_CLIENT_VERSION,this.Ot)},getClientName:function(){return this.W.name},getClientVersion:function(){return this.W.version},St:function(t){t&&(this.W.name=t),this.emitChange()},Ot:function(t){t&&(this.W.version=t),this.emitChange()}}},7286:function(t,n,e){var i=e(7710);t.exports={initialize:function(){this.W={currentDomain:null,defaultAgeSeconds:15552e3,autoRefresh:true},this.on(i.SET_COOKIE_DOMAIN,this.kt),this.on(i.SET_COOKIE_AGE,this.Rt),this.on(i.SET_COOKIE_AUTO_REFRESH,this.Ct)},getCurrentDomain:function(){return this.W.currentDomain},getDefaultAgeInSeconds:function(){return this.W.defaultAgeSeconds},getAutoRefresh:function(){return this.W.autoRefresh},kt:function(t){this.W.currentDomain=t,this.emitChange()},Rt:function(t){this.W.defaultAgeSeconds=t,this.emitChange()},Ct:function(t){this.W.autoRefresh=t,this.emitChange()}}},2288:function(t,n,e){var i=e(7710),r=e(9229),o=e(2869).isEmpty;t.exports={initialize:function(){this.W={},this.on(i.DATA_LOADED,this.vt)},vt:function(t){if(!o(t.data.dimensions)){var n=this;t.data.dimensions.forEach((function(t){r.deepFreeze(t),n.W[t.id]=t})),this.emitChange()}}
2,getAll:function(){return r.safeReference(Object.values(this.W))},getById:function(t){return r.safeReference(this.W[t])},getByApiName:function(t){var n=Object.values(this.W);return r.safeReference(n.find((function(n){return n.apiName===t})))}}},8164:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.isEmpty,a=e(7710);t.exports={initialize:function(){this.W={disabled:!1,forceAudienceIds:[],forceVariationIds:[],alreadyInitialized:!1,mutationObserverAPISupported:!1,isEditor:!1,isPreview:!1,isLegacyPreview:!1,isSlave:!1,previewLayerIds:[],projectToken:null,shouldOptOut:!1,trackingDisabled:!1,isRunningInV2Editor:!1,isRunningInDesktopApp:!1,forceTracking:!1,requestedEmbeddedEditor:!1},this.on(a.LOAD_DIRECTIVE,this.Nt)},getAll:function(){return r(this.W)},conflictInObservingChanges:function(){return!this.W.mutationObserverAPISupported},isDisabled:function(){return this.W.disabled},isEditor:function(){return this.W.isEditor},clientHasAlreadyInitialized:function(){return this.W.alreadyInitialized},getForceAudienceIds:function(){return this.W.forceAudienceIds},getForceVariationIds:function(){return this.W.forceVariationIds},getPreviewLayerIds:function(){return this.W.previewLayerIds},getProjectToken:function(){return this.W.projectToken},getForceTracking:function(){return this.W.forceTracking},shouldActivate:function(){return!this.W.isEditor&&!this.isDisabled()},shouldBootstrapDataForPreview:function(){return this.W.isPreview},shouldBootstrapDataForEditor:function(){return this.W.isEditor},shouldInitialize:function(){return!(this.shouldLoadPreview()||this.isDisabled()||this.getProjectToken())},shouldLoadPreview:function(){return!(this.W.isPreview||this.W.isLegacyPreview||!this.getProjectToken()||this.W.isEditor)},shouldLoadEmbeddedEditor:function(){return this.W.requestedEmbeddedEditor&&!this.W.isEditor},shouldBailForDesktopApp:function(){return!this.W.isEditor&&this.W.isRunningInDesktopApp},shouldLoadInnie:function(){return!this.W.isSlave&&!this.W.isEditor&&this.W.isRunningInV2Editor},shouldObserveChangesIndefinitely:function(){return this.W.mutationObserverAPISupported},shouldObserveChangesUntilTimeout:function(){return!this.shouldObserveChangesIndefinitely()},shouldOptOut:function(){return this.W.shouldOptOut},shouldSendTrackingData:function(){return!this.W.trackingDisabled&&(!!this.W.forceTracking||!this.W.isPreview&&o(this.getForceVariationIds())&&o(this.getForceAudienceIds()))},isSlave:function(){return this.W.isSlave},isRunningInDesktopApp:function(){return this.W.isRunningInDesktopApp},isRunningInV2Editor:function(){return this.W.isRunningInV2Editor},Nt:function(t){Object.assign(this.W,t),this.emitChange()}}},9612:function(t,n,e){var i=e(7710),r=e(9229),o=e(2869).isEmpty;t.exports={initialize:function(){this.W={},this.on(i.DATA_LOADED,this.vt)}
2,getAll:function(){return r.safeReference(Object.values(this.W))},getEventsMap:function(){return r.safeReference(this.W)},get:function(t){return r.safeReference(this.W[t])},getByApiName:function(t){var n=Object.values(this.W);return r.safeReference(n.find((function(n){return n.apiName===t})))},getByPageId:function(t){var n=Object.values(this.W);return r.safeReference(n.filter((function(n){return n.pageId===t})))},vt:function(t){if(!o(t.data.events)){var n=this;t.data.events.forEach((function(t){t.pageId||(t.pageId=t.viewId),r.deepFreeze(t),n.W[t.id]=t})),this.emitChange()}}}},5284:function(t,n,e){var i=e(7710);function r(t){var n=[];return t&&"object"==typeof t&&null!==t?(t.type&&n.push(t.type),n.push("|"),t.type&&t.name&&n.push(t.name),n.join("")):"|"}t.exports={initialize:function(){this.W={handlers:{}},this.on(i.ADD_EMITTER_HANDLER,this.Dt),this.on(i.REMOVE_EMITTER_HANDLER,this.xt)},getHandlers:function(t,n){var e=[null,{type:t.type},{type:t.type,name:t.name}],i=[],o=this;return e.forEach((function(t){var n=r(t),e=o.W.handlers[n];e&&(i=i.concat(e))})),n&&(i=i.filter((function(t){return!t.publicOnly}))),i},Dt:function(t){var n=r(t.filter);this.W.handlers[n]||(this.W.handlers[n]=[]),this.W.handlers[n].push({handler:t.handler,token:t.token,publicOnly:!!t.publicOnly,emitErrors:!!t.emitErrors}),this.emitChange()},xt:function(t){var n=!1,e=t.token;Object.keys(this.W.handlers).forEach(function(t){var i=this.W.handlers[t],r=i.filter((function(t){return t.token!==e}));r.length!==i.length&&(n=!0,this.W.handlers[t]=r)}.bind(this)),n&&this.emitChange()}}},9726:function(t,n,e){var i=e(7710),r=e(9229);t.exports={initialize:function(){this.W={holdback:0,isGlobalHoldback:null,listTargetingKeys:[],revision:null,projectId:null,accountId:null,namespace:null,activationId:null,activationTimestamp:null,dcpServiceId:null,dcpKeyfieldLocators:[],recommenderServices:[],anonymizeIP:null,projectJS:null,snippetId:null,plugins:[],domContentLoaded:!1,experimental:{},ga4UserId:null,trafficExclusion:null},this.on(i.DATA_LOADED,this.jt),this.on(i.ACTIVATE,this.Mt),this.on(i.RECORD_GLOBAL_DECISION,this.Pt),this.on(i.SET_DOMCONTENTLOADED,this.Lt),this.on(i.SET_GA4_USER_ID,this.Ut)},getRevision:function(){return this.W.revision},getGlobalHoldbackThreshold:function(){return this.W.holdback},getProjectId:function(){return this.W.projectId},getSnippetId:function(){return this.W.snippetId},getAccountId:function(){return this.W.accountId},getNamespace:function(){return this.W.namespace},getActivationId:function(){return this.W.activationId},getActivationTimestamp:function(){return this.W.activationTimestamp},getAnonymizeIP:function(){return this.W.anonymizeIP},getTrafficExclusion:function(){return this.W.trafficExclusion},isGlobalHoldback:function(){return!!this.W.isGlobalHoldback},getListTargetingKeys:function(){return this.W.listTargetingKeys.slice()},getDCPServiceId:function(){return this.W.dcpServiceId},getDCPKeyfieldLocators:function(){return this.W.dcpKeyfieldLocators},getRecommenderServices:function(){return this.W.recommenderServices},getProjectJS:function(){return this.W.projectJS},getPlugins:function(){return this.W.plugins}
2,getExperimental:function(){return r.safeReference(this.W.experimental)},getGA4UserId:function(){return this.W.ga4UserId},domContentLoadedHasFired:function(){return this.W.domContentLoaded},Mt:function(t){this.W.activationId=t.activationId,this.W.activationTimestamp=t.activationTimestamp,this.W.isGlobalHoldback=null},Pt:function(t){var n=t.isGlobalHoldback;if(null!==this.W.isGlobalHoldback&&this.W.isGlobalHoldback!==n)throw new Error("Attempted to change already set global holdback!");this.W.isGlobalHoldback=n,this.emitChange()},Ut:function(t){var n=t.ga4UserId;if(!n)throw new Error('Argument "payload.ga4UserId" is missing');this.W.ga4UserId=n,this.emitChange()},jt:function(t){var n=t.data,e={};if(["holdback","accountId","projectId","snippetId","namespace","revision","listTargetingKeys","dcpServiceId","dcpKeyfieldLocators","recommenderServices","anonymizeIP","plugins","projectJS","experimental","ga4UserId","trafficExclusion"].forEach((function(t){t in n&&(e[t]=n[t])})),0!==Object.keys(e).length){Object.assign(this.W,{listTargetingKeys:[],dcpServiceId:null,dcpKeyfieldLocators:[]},e),this.emitChange()}},Lt:function(){this.W.domContentLoaded=!0,this.emitChange()}}},2905:function(t,n,e){var i=e(7710),r=e(8704);t.exports={initialize:function(){this.W={originalPushState:null,originalReplaceState:null},this.on(i.ENSURE_ORIGINAL_PUSHSTATE,this.Vt),this.on(i.ENSURE_ORIGINAL_REPLACESTATE,this.zt)},getOriginalPushState:function(){return this.W.originalPushState},getOriginalReplaceState:function(){return this.W.originalReplaceState},Vt:function(){this.W.originalPushState||(this.W.originalPushState=r.getGlobal("history").pushState.bind(r.getGlobal("history")))},zt:function(){this.W.originalReplaceState||(this.W.originalReplaceState=r.getGlobal("history").replaceState.bind(r.getGlobal("history")))}}},5539:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.isEmpty,a=e(7710);t.exports={initialize:function(){this.W={},this.on(a.DATA_LOADED,this.vt),this.on(a.SET_INTEGRATION_SETTINGS,this.Bt)},vt:function(t){if(!o(t.data.integrationSettings)){var n=this;t.data.integrationSettings.forEach((function(t){n.W[t.id]=t})),this.emitChange()}},Bt:function(t){var n=this.W[t.id];n?Object.assign(n,t):this.W[t.id]=t},getAll:function(){return r(Object.values(this.W))},get:function(t){return r(this.W[t])},getReference:function(t){return this.W[t]}}},8428:function(t,n,e){var i=e(2869).cloneDeep,r=e(7710),o=e(5098),a="*";t.exports={initialize:function(){this.W={},this.on(r.LOAD_PERSISTED_LAYER_STATES,this.Ft),this.on(r.RECORD_LAYER_DECISION,this.Gt),this.on(r.RECORD_LAYER_DECISION_EVENT_ID,this.qt)},getLayerState:function(t,n){if(this.W[t]){var e=this.W[t];if(Object.keys(e).length>1&&!n)throw new Error("View Id must be specified when more than one layerState for layer.");return i(n?e[n]:e[a])}},getLayerStates:function(t){var n=this,e=function(e){var o=n.W[e];Object.keys(o).forEach((function(n){var e=o[n];(void 0===t||e.namespace===t)&&r.push(i(e))}))},r=[];for(var o in this.W)e(o);return r},getLayerStatesForAnalytics:function(){var t=this,n=function(n){var i=t.W[n];
2Object.keys(i).forEach((function(t){var n=i[t];e.push({layerId:n.layerId,decision:n.decision,decisionEventId:n.decisionEventId})}))},e=[];for(var i in this.W)n(i);return e},Ft:function(t){t.merge||(this.W={});var n=this;t.layerStates.forEach((function(t){var e=t.layerId;t.pageId||(t.pageId=t.viewId);var i=t.pageId||a,r=n.W[e];if(void 0===r)n.W[e]={},n.W[e][i]=t;else{var o=r[i];(!o||t.decisionTimestamp>(o.decisionTimestamp||0))&&(n.W[e][i]=t)}})),this.emitChange()},Gt:function(t){var n={layerId:t.layerId,revision:t.revision,namespace:t.namespace,pageId:t.pageId,decisionTicket:t.decisionTicket,decision:t.decision,decisionActivationId:t.activationId,decisionTimestamp:t.timestamp,decisionEventId:null},e=this.W[t.layerId]||{};t.pageId?(delete e[a],e[t.pageId]=n):(e={})[a]=n,this.W[t.layerId]=e,this.emitChange()},qt:function(t){var n=t.layerId,e=t.pageId||a;this.W[n]?this.W[n][e]?(this.W[n][e].decisionEventId=t.decisionId,this.emitChange()):o.warn("Not recording decision event: Layer state not found for view",e):o.warn("Not recording decision event: Campaign not registered",n)}}},1607:function(t,n,e){var i=e(7710),r=e(9229),o=e(8692),a=e(2869).isEmpty;t.exports={initialize:function(){this.W={layers:{},experiments:{},variations:{}},this.on(i.DATA_LOADED,this.vt)},vt:function(t){if(!a(t.data.layers)){var n=this;(t.data.layers||[]).forEach((function(t){(t.experiments||[]).forEach((function(e){t.pageIds||(t.pageIds=t.viewIds),e.campaignName||o.isSingleExperimentPolicy(t.policy)?o.isSingleExperimentPolicy(t.policy):e.campaignName=t.name,(e.variations||[]).forEach((function(t){(t.actions||[]).forEach((function(t){t.pageId||(t.pageId=t.viewId)})),n.W.variations[t.id]=t})),n.W.experiments[e.id]=e})),r.deepFreeze(t),n.W.layers[t.id]=t})),this.emitChange()}}
2,getAll:function(){return r.safeReference(Object.values(this.W.layers))},getCampaignsMap:function(){return r.safeReference(this.W.layers)},getExperimentsMap:function(){return r.safeReference(this.W.experiments)},getVariationsMap:function(){return r.safeReference(this.W.variations)},getCount:function(){return Object.keys(this.W.layers).length},getAllByPageIds:function(t){var n=this.W.layers;return r.safeReference(Object.keys(n).reduce((function(e,i){var r=n[i];return t.some((function(t){return(r.pageIds||[]).includes(t)}))&&e.push(r),e}),[]))},get:function(t){return r.safeReference(this.W.layers[t])},getLayerByExperimentId:function(t){var n,e=this.W.layers;return Object.keys(e).some((function(i){var r=e[i];return!!(r.experiments||[]).find((function(n){return n.id===t}))&&(n=r,!0)})),r.safeReference(n)},getExperimentByVariationId:function(t){var n,e=this.W.layers;return Object.keys(e).some((function(i){return(e[i].experiments||[]).some((function(e){return(e.variations||[]).find((function(n){return n.id===t}))&&(n=e),!!n}))})),r.safeReference(n)}}},4267:function(t,n,e){var i=e(7710);t.exports={initialize:function(){this.W={logs:[]},this.on(i.LOG,this.Ht)},getLogs:function(){return this.W.logs},Ht:function(t){this.W.logs.push(t),this.emitChange()},Z:function(){return this.W.logs.slice()}}},3080:function(t,n,e){var i=e(7710),r=e(9229);t.exports={initialize:function(){this.W={data:null,hasTracked:null},this.on(i.LOAD_REDIRECT_DATA,this.Yt),this.on(i.REGISTER_TRACKED_REDIRECT_DATA,this.Kt)}
2,get:function(){return r.safeReference(this.W.data)},hasTracked:function(){return this.W.hasTracked},Yt:function(t){r.deepFreeze(t),this.W.data=t,this.W.hasTracked=!1,this.emitChange()},Kt:function(){this.W.hasTracked=!0}}},7484:function(t,n,e){var i=e(7710),r=e(3654);t.exports={initialize:function(){this.W={},this.on(i.SET_PENDING_EVENT,this.$t),this.on(i.REMOVE_PENDING_EVENT,this.Wt),this.on(i.LOAD_PENDING_EVENTS,this.Xt)},getEvents:function(){return this.W},getEventsString:function(){return r.stringify(this.W)},$t:function(t){Object.keys(this.W).length>=1e3&&this.Jt();var n=t.id,e=t.retryCount;this.W[n]&&this.W[n].retryCount===e||(this.W[n]={id:n,timeStamp:t.timeStamp,data:t.data,retryCount:e},this.emitChange())},Wt:function(t){delete this.W[t.id],this.emitChange()},Xt:function(t){this.W=t.events,this.Jt(),this.emitChange()},Jt:function(){for(var t=Object.values(this.W).sort((function(t,n){return t.timeStamp-n.timeStamp})),n=0;n<=t.length-1e3;n++)delete this.W[t[n].id];this.emitChange()}}},8789:function(t,n,e){var i=e(7710);t.exports={initialize:function(){this.W={layerId:null},this.on(i.ANNOUNCE_PENDING_REDIRECT,this.Yt)},isExpectingRedirect:function(){return"string"==typeof this.W.layerId},getLayerId:function(){return this.W.layerId},Yt:function(t){this.isExpectingRedirect()||(this.W.layerId=t.layerId,this.emitChange())}}},31:function(t,n,e){var i=e(2869).mapValues,r=e(7710),o=e(7846);t.exports={initialize:function(){this.W={},this.W[o.PerformanceData.performance_marks]={},this.on(r.SET_PERFORMANCE_MARKS_DATA,this.Qt)},Qt:function(t){void 0===this.W[o.PerformanceData.performance_marks][t.name]&&(this.W[o.PerformanceData.performance_marks][t.name]=[]),this.W[o.PerformanceData.performance_marks][t.name].push(t.data),this.emitChange()},getMarks:function(){return i(this.W[o.PerformanceData.performance_marks],(function(t){return t.map((function(t){return[t.startTime,t.duration]}))}))},getDurationsFor:function(t){var n=this;return t.reduce((function(t,e){var i=n.W[o.PerformanceData.performance_marks][e];return i&&(t[e]=Math.round(i.reduce((function(t,n){return t+n.duration}),0))),t}),{})}}},5857:function(t,n,e){var i=e(2869).mapValues,r=e(7710),o=e(7846),a=e(5098);t.exports={initialize:function(){this.W=i(o.PluginTypes,(function(){return{}})),this.on(r.REGISTER_PLUGIN,this.Zt)},Zt:function(t){var n=t.type,e=t.name,i=t.plugin;if(!n||!e)throw new Error("Missing information needed to register plugins: "+n+":"+e);if(!this.W[n])throw new Error("Invalid plugin type specified: "+n);this.W[n][e]=i,a.debug("Plugin Store: Registering Plugin :",t)},getAllPlugins:function(t){if(!t)return this.W;if(this.W[t])return this.W[t];throw new Error("Invalid plugin type: "+t)},getPlugin:function(t,n){if(!n||!t)throw new Error("Missing plugin parameters");return this.getAllPlugins(t)[n]||null}}},5513:function(t,n,e){var i=e(7710),r=e(6817);t.exports={initialize:function(){this.W={},this.on(i.SET_VISITOR_ATTRIBUTE_PENDING,this.tn)},getPendingAttributeValue:function(t){return t=Array.isArray(t)?t.concat("pending"):[t,"pending"],r.getFieldValue(this.W,t)},tn:function(t){r.setFieldValue(this.W,t.key,{pending:t.pending}),this.emitChange()}}},1149:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.isEmpty,a=i.merge,u=e(7710);t.exports={initialize:function(){this.W={inRumSample:!1,id:null,src:null,RumHost:null,data:{extras:{}},apis:{},DOMObservation:{},featuresNeeded:{}},this.on(u.SET_RUM_DATA,this.nn),this.on(u.RECORD_API_USAGE,this.en),this.on(u.INITIALIZE_CHANGE_METRICS,this.rn),this.on(u.RECORD_ACTIVATION_TYPE_USAGE,this.an),this.on(u.RECORD_AUDIENCE_USAGE,this.un),this.on(u.RECORD_CHANGE_MACROTASK_RATE,this.cn),this.on(u.RECORD_CHANGE_OVERHEATED,this.sn),this.on(u.RECORD_CHANGE_TYPE_USAGE,this.fn),this.on(u.RECORD_DOM_OBSERVATION_OCCURENCE,this.ln),this.on(u.RECORD_INTEGRATION_USAGE,this.dn),this.on(u.RECORD_LAYER_FEATURE_USAGE,this.vn),this.on(u.RECORD_LAYER_POLICY_USAGE,this.hn),this.on(u.RECORD_VIEW_FEATURE_USAGE,this.pn),this.on(u.RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT,this.gn),this.on(u.RECORD_VISITOR_ID_LOCATOR_USAGE,this.mn),this.on(u.RECORD_VISITOR_ID_ERROR,this.bn),this.on(u.RECORD_STICKY_BUCKETING_FEATURE,this._n)},nn:function(t){a(this.W,t),this.emitChange()},en:function(t){this.W.apis[t.methodName]||(this.W.apis[t.methodName]=0),this.W.apis[t.methodName]++,this.emitChange()},rn:function(){void 0===this.W.data.extras.changeMacrotaskRate&&(this.W.data.extras.changeMacrotaskRate=0),void 0===this.W.data.extras.numOverheatedChanges&&(this.W.data.extras.numOverheatedChanges=0)},cn:function(t){void 0===this.W.data.extras.changeMacrotaskRate&&(this.W.data.extras.changeMacrotaskRate=0),t.changeMacrotaskRate>this.W.data.extras.changeMacrotaskRate&&(this.W.data.extras.changeMacrotaskRate=t.changeMacrotaskRate),this.emitChange()},sn:function(){void 0===this.W.data.extras.numOverheatedChanges&&(this.W.data.extras.numOverheatedChanges=0),this.W.data.extras.numOverheatedChanges++,this.emitChange()},ln:function(t){this.W.DOMObservation[t.counterName]||(this.W.DOMObservation[t.counterName]=0),this.W.DOMObservation[t.counterName]++,this.emitChange()},yn:function(t,n,e){void 0===this.W.featuresNeeded[t]&&(this.W.featuresNeeded[t]={});var i=this.W.featuresNeeded[t];
2n.forEach((function(t){i[t]||(i[t]={}),i[t][e]||(i[t][e]=!0)}))},dn:function(t){this.yn("integrations",t.integrations,t.layerId)},fn:function(t){this.yn("changeTypes",t.changeTypes,t.layerId)},an:function(t){this.yn("activationTypes",[t.activationType],t.entityId),this.emitChange()},pn:function(t){this.yn("viewFeatures",t.featuresUsed,t.entityId),this.emitChange()},vn:function(t){this.yn("layerFeatures",[t.feature],t.entityId),this.emitChange()},hn:function(t){this.yn("policy",[t.policy],t.layerId),this.emitChange()},un:function(t){this.yn("audiences",t.audienceTypes,t.layerId),this.emitChange()},gn:function(t){this.W.data.extras.viewsInitiallyActivatedCount=t.viewsInitiallyActivatedCount,this.emitChange()},mn:function(t){this.yn("visitorIdLocatorType",[t.visitorIdLocatorType],t.entityId),this.emitChange()},bn:function(t){this.W.data.extras.errorCustomVisitorId=t.isError,this.emitChange()},_n:function(t){this.yn("stickyBucketing",[t.feature],t.id)},getSampleRum:function(){return this.W.inRumSample},getRumId:function(){return this.W.id},getRumHost:function(){return this.W.RumHost},getApiData:function(){return this.W.apis},getDOMObservationData:function(){return this.W.DOMObservation},getRumData:function(){return r(this.W.data)},getScriptSrc:function(){return this.W.src},getFeaturesNeededData:function(){var t=this.W.featuresNeeded,n={};return Object.keys(t).forEach((function(e){var i=t[e],r=Object.keys(i);o(r)||(n[e]={}),r.forEach((function(t){n[e][t]=Object.keys(i[t]).length}))})),n}}},3878:function(t,n,e){var i=e(7710);t.exports={initialize:function(){this.W={initialized:!1,natives:{}},this.on(i.SANDBOXED_FUNCTIONS_ADDED,this.wn)},wn:function(t){if(!t.sandboxedFunctions)throw new Error("No sandboxedFunctions found in payload");this.W.natives=t.sandboxedFunctions,this.W.initialized=!0,this.emitChange()},getAll:function(){return this.W.natives},get:function(t){if(!t)throw new Error("Missing name parameter");return this.W.natives[t]||null},isInitialized:function(){return this.W.initialized}}},4749:function(t,n,e){var i=e(2869).cloneDeep,r=e(7710),o=e(1308),a=e(9241);t.exports={initialize:function(){this.W={lastSessionTimestamp:0,sessionId:null},this.on(r.REFRESH_SESSION,this.En),this.on(r.LOAD_SESSION_STATE,this.In)},getState:function(){return i(this.W)},getSessionId:function(){return this.W.sessionId},In:function(t){this.W.sessionId=t.sessionId,this.W.lastSessionTimestamp=t.lastSessionTimestamp,this.emitChange()},En:function(){var t=o.now(),n=this.W.lastSessionTimestamp;(!this.W.sessionId||t-n>18e5)&&(this.W.sessionId=a.generate()),this.W.lastSessionTimestamp=t,this.emitChange()}}},4944:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.isEmpty,a=e(7710);t.exports={initialize:function(){this.An(),this.on(a.FINALIZE_BATCH_SNAPSHOT,this.Tn),this.on(a.REGISTER_PREVIOUS_BATCH,this.Sn),this.on(a.REGISTER_TRACKER_VISITOR,this.On),this.on(a.REGISTER_TRACKER_EVENT,this.kn),this.on(a.REGISTER_TRACKER_DECISION,this.Rn),this.on(a.RESET_TRACKER_EVENTS,this.Cn),this.on(a.RESET_TRACKER_STORE,this.An),this.on(a.RESET_TRACKER_PREVIOUS_BATCHES,this.Nn),this.on(a.SET_TRACKER_POLLING,this.Dn),this.on(a.SET_TRACKER_BATCHING,this.xn),this.on(a.SET_TRACKER_USE_BEACON,this.jn),this.on(a.SET_TRACKER_SEND_EVENTS,this.Mn),this.on(a.SET_TRACKER_PERSISTABLE_STATE,this.Pn),this.on(a.SET_TRACKER_DIRTY,this.Ln),this.on(a.UPDATE_TRACKER_VISITOR_ATTRIBUTES,this.Un)},getPersistableState:function(){return this.W.isDirty?this.hasEventsToSend()||this.hasPreviousBatchesToSend()?{data:this.W.data,decisions:this.W.decisions,decisionEvents:this.W.decisionEvents,previousBatches:this.W.previousBatches}:{}:null},Pn:function(t){o(this.W.data)||o(t.data)||(this.Tn(),this.W.previousBatches.push(this.getEventBatch())),this.W.data=t.data||{},this.W.decisions=t.decisions||[],this.W.decisionEvents=t.decisionEvents||[],o(this.W.previousBatches)||o(t.previousBatches)?this.W.previousBatches=t.previousBatches||[]:this.W.previousBatches=this.W.previousBatches.concat(t.previousBatches),this.emitChange()},Ln:function(t){this.W.isDirty=t,this.emitChange()},kn:function(t){var n=this.Vn();(o(n.snapshots)||!o(this.W.decisionEvents))&&this.zn(),this.Bn().events.push(t.event),this.W.decisions=t.decisions,this.Ln(!0)},Rn:function(t){this.W.decisionEvents.push(t.decisionEvent),this.W.decisions=t.decisions,this.Ln(!0)},On:function(t){o(this.W.data)?this.W.data=t.data:this.Tn(),this.W.data.visitors.push(t.visitor),this.W.decisions=t.decisions,this.W.decisionEvents=[],this.Ln(!0)},Sn:function(t){this.W.previousBatches.push(t),this.Ln(!0)},An:function(){this.W={polling:!1,shouldBatch:!0,data:{},decisions:[],decisionEvents:[],canSend:!1,isDirty:!1,previousBatches:[]},this.emitChange()},Cn:function(){var t=this.Vn();this.W.data.visitors=[t],t.snapshots=[],this.Ln(!0)},Nn:function(){this.W.previousBatches=[],this.Ln(!0)},Dn:function(t){this.W.polling=t,this.emitChange()},xn:function(t){this.W.shouldBatch=t,this.emitChange()},jn:function(t){this.W.shouldUseBeacon=t,this.emitChange()},Mn:function(t){this.W.canSend=t,this.emitChange()},getEventBatch:function(){return r(this.W.data)},getPreviousBatches:function(){return r(this.W.previousBatches)},Fn:function(){return this.W.decisionEvents.slice()},Gn:function(){this.W.decisionEvents=[]},qn:function(){return this.W.decisions.slice()},isPolling:function(){return this.W.polling},shouldBatch:function(){return this.W.shouldBatch},shouldUseBeacon:function(){return this.W.shouldUseBeacon},Bn:function(){var t=this.Vn(),n=t&&t.snapshots;return n&&n[n.length-1]},Vn:function(){var t=this.W.data.visitors;return t&&t[t.length-1]},zn:function(){var t=this.Fn();this.Vn().snapshots.push({decisions:this.qn(),events:t}),this.Gn(),this.Ln(!0)},Tn:function(){this.W.decisionEvents.length>0&&this.zn()},hasEventsToSend:function(){if(!o(this.W.decisionEvents))return!0;
2if(!o(this.W.data)&&(this.W.data.visitors||[]).some((function(t){return t.snapshots.length>0})))return!0;return!1},hasPreviousBatchesToSend:function(){return!o(this.W.previousBatches)},canSend:function(){return this.W.canSend},Un:function(t){var n=this.Vn();n&&(n.attributes=t.attributes)}}},222:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.isEmpty,a=e(7710);t.exports={initialize:function(){this.W={},this.on(a.SET_UA_DATA,this.vt)},vt:function(t){o(this.W)&&(this.W=t.data)},get:function(){return r(this.W)}}},1800:function(t,n,e){var i=e(2869).cloneDeep,r=e(7710),o=e(5098),a={globalTags:{},viewStates:{},shouldBatch:!1};t.exports={initialize:function(){this.W=i(a),this.on(r.REGISTER_VIEWS,this.Hn),this.on(r.SET_VIEW_ACTIVE_STATE,this.Yn),this.on(r.UPDATE_PARSED_VIEW_METADATA,this.Kn),this.on(r.UPDATE_USER_SUPPLIED_METADATA,this.$n),this.on(r.TRACK_VIEW_ACTIVATED_EVENT,this.Wn),this.on(r.SET_GLOBAL_TAGS,this.Xn),this.on(r.RESET_VIEW_STATES,this.Jn),this.on(r.SET_VIEW_BATCHING,this.xn)},getAll:function(){var t={};for(var n in this.W.viewStates)t[n]=this.getViewState(n);return t},getActiveViewIds:function(){var t=this,n=this.W.viewStates;return Object.keys(n).reduce((function(n,e){return t.isViewActive(e)&&n.push(e),n}),[])},shouldBatch:function(){return this.W.shouldBatch},getViewState:function(t){var n=i(this.W.viewStates[t]),e=this.W.globalTags;return n.metadata=Object.assign({},n.parsedMetadata,e,n.userSuppliedMetadata),n},getActiveViewTags:function(){var t=this.getActiveViewStates().map((function(t){return t.metadata})),n=[{}].concat(t);return Object.assign.apply(Object,n)},getActivationEventId:function(t){return this.W.viewStates[t]?this.W.viewStates[t].activationEventId:null},getActiveViewStates:function(){var t=this,n=this.W.viewStates;return Object.keys(n).reduce((function(n,e){return t.isViewActive(e)&&n.push(t.getViewState(e)),n}),[])},isViewActive:function(t){var n=this.W.viewStates[t];return n||o.warn("No Page registered with id",t),!!n.isActive},getGlobalTags:function(){return i(this.W.globalTags)},Jn:function(){this.W.viewStates={},this.emitChange()},Hn:function(t){var n=t.forceClean||!1,e=this;t.views.forEach((function(t){var i=t.id;e.W.viewStates[i]={id:i,isActive:"boolean"!=typeof t.isActive||n?null:t.isActive,activatedTimestamp:null,activationEventId:null,parsedMetadata:{},userSuppliedMetadata:{}}})),this.emitChange()},Yn:function(t){var n=t.view.id;if(!this.W.viewStates[n])throw new Error("No view exists with id "+n);this.W.viewStates[n].isActive=t.isActive,t.isActive?this.W.viewStates[n].activatedTimestamp=t.timestamp:(this.W.viewStates[n].parsedMetadata={},this.W.viewStates[n].userSuppliedMetadata={}),this.emitChange()},Kn:function(t){var n=t.pageId;if(!this.W.viewStates[n])throw new Error("No view exists with id "+n);Object.assign(this.W.viewStates[n].parsedMetadata,t.metadata),this.emitChange()},$n:function(t){var n=t.pageId;if(!this.W.viewStates[n])throw new Error("No view exists with id "+n);Object.assign(this.W.viewStates[n].userSuppliedMetadata,t.metadata),this.emitChange()},Wn:function(t){var n=t.pageId;this.W.viewStates[n]&&(this.W.viewStates[n].activationEventId=t.eventData.eventId,this.emitChange())},Xn:function(t){Object.assign(this.W.globalTags,t),this.emitChange()},xn:function(t){this.W.shouldBatch=t,this.emitChange()}}},4083:function(t,n,e){var i=e(7710),r=e(9229),o=e(2869).isEmpty;t.exports={initialize:function(){this.W={views:{},apiNamesToViews:{}},this.on(i.DATA_LOADED,this.vt)}
2,getAll:function(){return r.safeReference(Object.values(this.W.views))},getPagesMap:function(){return r.safeReference(this.W.views)},get:function(t){return r.safeReference(this.W.views[t])},getByApiName:function(t){return r.safeReference(this.W.apiNamesToViews[t])},apiNameToId:function(t){var n=this.W.apiNamesToViews[t];if(n)return n.id},idToApiName:function(t){var n=this.W.views[t];if(n)return n.apiName},getNumberOfPages:function(){return Object.keys(this.W.views).length},getAllViewsForActivationType:function(t){var n=this.W.views;return Object.keys(n).map((function(t){return n[t]})).filter((function(n){return n.activationType===t}))},vt:function(t){if(!o(t.data.views)){var n=this;t.data.views.forEach((function(t){r.deepFreeze(t),n.W.views[t.id]=t,n.W.apiNamesToViews[t.apiName]=t})),this.emitChange()}}}},3427:function(t,n,e){var i=e(2869).cloneDeep,r=e(7710),o=e(6817);t.exports={initialize:function(){this.W={profile:{},metadata:{},visitorId:null},this.on(r.SET_VISITOR_ID_VIA_API,this.Qn),this.on(r.SET_VISITOR_ATTRIBUTES,this.Zn),this.on(r.LOAD_EXISTING_VISITOR_PROFILE,this.te)},getVisitorProfile:function(){return this.W.profile},getVisitorProfileMetadata:function(){return this.W.metadata},getAttribute:function(t){var n=this.W.profile;return i(o.getFieldValue(n,t))},getAttributeMetadata:function(t){return i(this.W.metadata[t])},getVisitorIdFromAPI:function(){return this.W.visitorId},te:function(t){this.W.profile=t.profile,this.W.metadata=t.metadata,this.emitChange()},Zn:function(t){var n=this;t.attributes.forEach((function(t){var e=t.key;o.setFieldValue(n.W.profile,e,t.value),t.metadata&&Object.keys(t.metadata).forEach((function(i){var r=t.metadata[i];o.setFieldValue(n.W.metadata,e.concat(i),r)}))})),this.emitChange()},Qn:function(t){this.W.visitorId=t,this.emitChange()}}},7828:function(t,n,e){var i=e(7710),r=e(2869).isEmpty;t.exports={initialize:function(){this.W={},this.on(i.DATA_LOADED,this.ne)},getCustomBehavioralAttributes:function(){var t=this.W;return Object.keys(t).reduce((function(n,e){var i=t[e];return i.rule_json&&n.push(i),n}),[])},getVisitorAttribute:function(t){var n=Object.values(this.W);if(t.datasourceId&&(n=n.filter((function(n){return n.dcp_datasource_id===String(t.datasourceId)}
2))),t.attributeName&&t.attributeId)throw new Error("Must not specify both attribute name and attribute ID");if(t.attributeId){var e=this.W[t.attributeId];if(!e)throw new Error("Unrecognized attribute ID: "+t.attributeId);return e}if(t.attributeName){var i=n.filter((function(n){return n.name===t.attributeName}));if(!i.length)throw new Error("Unrecognized attribute name: "+t.attributeName);if(i.length>1)throw new Error("Too many attributes with name: "+t.attributeName);return i[0]}throw new Error("Must specify attribute name or attribute ID")},ne:function(t){if(!r(t.data.visitorAttributes)){var n=this;t.data.visitorAttributes.forEach((function(t){n.W[t.id]=t})),this.emitChange()}}}},7354:function(t,n,e){Object.defineProperty(n,"u",{value:!0});var i=e(2869),r=i.cloneDeep,o=i.isEqual,a=e(7710),u=e(3654);t.exports={initialize:function(){this.W={variationIdMap:{},preferredLayerMap:{},contextualMabMap:{},odpSegments:{}},this.on(a.UPDATE_VARIATION_ID_MAP,this.ee),this.on(a.MERGE_VARIATION_ID_MAP,this.re),this.on(a.UPDATE_PREFERRED_LAYER_MAP,this.oe),this.on(a.MERGE_PREFERRED_LAYER_MAP,this.ae),this.on(a.UPDATE_CONTEXTUAL_MAB_MAP,this.ue),this.on(a.MERGE_CONTEXTUAL_MAB_MAP,this.ce),this.on(a.SET_ODP_SEGMENTS,this.se)},se:function(t){this.W.odpSegments=t,this.emitChange()},getOdpSegments:function(){return this.W.odpSegments},getContextualMabMap:function(){return r(this.W.contextualMabMap)},getContextualMabMapString:function(){return u.stringify(this.W.contextualMabMap)},ue:function(t){var n=this.W.contextualMabMap[t.layerId]||{};o(n[t.experimentId],t.variationData)||(n[t.experimentId]=t.variationData,this.W.contextualMabMap[t.layerId]=n,this.emitChange())},ce:function(t){var n=this.W.contextualMabMap;Object.keys(t.contextualMabMap).forEach((function(e){var i=t.contextualMabMap[e];n[e]||(n[e]={}
2),Object.keys(i).forEach((function(t){var r=i[t];n[e][t]||(n[e][t]=r)}))})),this.W.contextualMabMap=n,this.emitChange()},getVariationIdMap:function(){return r(this.W.variationIdMap)},getVariationIdMapString:function(){return u.stringify(this.W.variationIdMap)},ee:function(t){var n=this.W.variationIdMap[t.layerId]||{};n[t.experimentId]!==t.variationId&&(n[t.experimentId]=t.variationId,this.W.variationIdMap[t.layerId]=n,this.emitChange())},re:function(t){var n=this.getVariationIdMap(),e=t.variationIdMap;Object.keys(n||{}).forEach((function(t){var i=(n||{})[t];e[t]?Object.assign(e[t],i):e[t]=i})),this.W.variationIdMap=e,this.emitChange()},getPreferredLayerMap:function(){return r(this.W.preferredLayerMap)},getPreferredLayerMapString:function(){return u.stringify(this.W.preferredLayerMap)},getPreferredLayerId:function(t){return this.W.preferredLayerMap[t]},oe:function(t){this.W.preferredLayerMap[t.groupId]!==t.layerId&&(this.W.preferredLayerMap[t.groupId]=t.layerId,this.emitChange())},ae:function(t){var n=this.getPreferredLayerMap(),e=t.preferredLayerMap;Object.assign(e,n),this.W.preferredLayerMap=e,this.emitChange()}}},3171:function(t,n,e){var i=e(7710);e(2009).J;t.exports={initialize:function(){this.W={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(i.SET_VISITOR_EVENTS,this.vt),this.on(i.SET_FOREIGN_VISITOR_EVENTS,this.fe),this.on(i.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.le)},getEvents:function(){return this.W.events},getForeignEvents:function(){return this.W.foreignEvents},getForeignEventQueues:function(){return this.W.foreignEventQueues},vt:function(t){this.W.events=t,this.emitChange()},fe:function(t){this.W.foreignEvents[t.key]=t.value},le:function(t){this.W.foreignEventQueues[t.key]=t.value}}},4847:function(t,n,e){var i=e(7710);t.exports={initialize:function(){this.W={baseMap:{},eventQueue:[],lastEvent:null,initialized:!1,cleared:!1},this.on(i.UPDATE_BEHAVIOR_STORE,this.de)},getBaseMap:function(){return this.W.baseMap},getEventQueue:function(){return this.W.eventQueue},getLastEvent:function(){return this.W.lastEvent},getCleared:function(){return this.W.cleared},getInitialized:function(){return this.W.initialized},de:function(t){this.W[t.key]=t.value}}},2171:function(t,n,e){var i=e(2869).isEmpty,r=e(7710);t.exports={initialize:function(){this.W={randomId:null,visitorIdLocator:null},this.on(r.SET_VISITOR_ID,this.vt),this.on(r.DATA_LOADED,this.ve)},getBucketingId:function(){return this.getRandomId()},getRandomId:function(){return this.W.randomId},getVisitorIdLocator:function(){return this.W.visitorIdLocator},vt:function(t){Object.assign(this.W,t),this.emitChange()},ve:function(t){i(t.data.visitorIdLocator)||(this.W.visitorIdLocator=t.data.visitorIdLocator,this.emitChange())}}},4293:function(t,n,e){var i=e(2869).cloneDeep,r=e(5098),o=e(7710);t.exports={initialize:function(){this.W={frames:[],defaultFrame:null,messages:[],subscribers:[],canonicalOrigins:null,disabled:!1},this.on(o.XDOMAIN_SET_DEFAULT_FRAME,this.he),this.on(o.XDOMAIN_ADD_FRAME,this.pe),this.on(o.XDOMAIN_SET_MESSAGE,this.ge),this.on(o.XDOMAIN_ADD_SUBSCRIBER,this.me),this.on(o.XDOMAIN_SET_CANONICAL_ORIGINS,this.be),this.on(o.XDOMAIN_SET_DISABLED,this._e)},getMessages:function(){return i(this.W.messages)},getOffset:function(){return 0===this.W.messages.length?0:this.W.messages[0].data.id},getNextMessageId:function(){return this.W.messages.length+this.getOffset()},getMessageById:function(t){return this.W.messages[t-this.getOffset()]},getSubscribers:function(){return this.W.subscribers},getFrames:function(){return this.W.frames},getNextFrameId:function(){return this.W.frames.length},getDefaultFrame:function(){return this.W.defaultFrame},getCanonicalOrigins:function(){return i(this.W.canonicalOrigins)},isDisabled:function(){return this.W.disabled},he:function(t){this.W.defaultFrame=t},pe:function(t){this.W.frames.push(t)},ge:function(t){for(this.W.messages[t.messageId-this.getOffset()]=t.message;this.W.messages.length>1e3;){var n=this.W.messages.shift();r.debug("XDomainStorage: Cleared old message: "+n.data.id)}},me:function(t){this.W.subscribers.push(t.subscriber)},be:function(t){this.W.canonicalOrigins=t.canonicalOrigins},_e:function(t){this.W.disabled=t.disabled}}},3792:function(t,n){n.locatorType={CSS_SELECTOR:"css_selector",JAVASCRIPT:"javascript",URL_REGEX:"url_regex"},n.valueType={STRING:"string",NUMBER:"number",CURRENCY:"currency"},n.nodeNames={INPUT:"INPUT",SELECT:"SELECT"}},4952:function(t,n,e){var i=e(3176).v;n.Error=i("TagError")}
2,1394:function(t,n,e){var i=e(7846).PluginTypes,r=e(9247).get("stores/plugins");n.getTagValue=function(t){var e=r.getPlugin(i.viewTagLocators,t.locatorType);if(!e)throw new n.Error("No locator registered for tag locatorType: "+t.locatorType);return e(t)},n.enums=e(3792),n.Error=e(4952).Error},4482:function(t,n,e){var i=e(7710),r=e(6931),o=e(9479).Promise,a=e(9247).get("stores/async_request");n.makeAsyncRequest=function(t,n){var e,u,c=a.getPromise(t);if(c)return c;var s=new o((function(t,n){e=t,u=n}));return r.dispatch(i.REGISTER_ASYNC_DEFERRED,{source:t,promise:s,resolver:e,rejecter:u}),n&&n(),s},n.resolveRequest=function(t,n){r.dispatch(i.RESOLVE_DEFERRED,{source:t,resolveWith:n})},n.rejectRequest=function(t,n){r.dispatch(i.REJECT_DEFERRED,{source:t,rejectWith:n})}},6920:function(t,n,e){var i=e(496),r=e(8704);n.getLanguage=function(){return r.getNavigatorLanguage()},n.getQueryParams=i.getQueryParams,n.getQueryParamValue=i.getQueryParamValue,n.getUrl=function(){return r.getHref()}},2604:function(t,n,e){var i=e(3176).v,r=e(1308),o=e(4833),a=e(8704),u=e(7710),c=e(9247),s=e(6931),f=c.get("stores/cookie_options"),l=n.SetError=i("CookieSetError"),d=n.MismatchError=i("CookieMismatchError"),v=["co","com","net","org","edu","gov","mil","int","ac","com","net","org"];n.getAll=function(t){var e,i,r,a,u;void 0===t&&(t=!0),e=o.getCookieString().split(/\s*;\s*/);var c={};for(r=0;r<e.length;r++)if((a=(i=e[r]).indexOf("="))>0&&void 0===c[u=n.safeDecodeURIComponent(i.substring(0,a))]){var s=i.substring(a+1);t&&(s=n.safeDecodeURIComponent(s)),c[u]=s}return c},n.safeDecodeURIComponent=function(t){try{return decodeURIComponent(t)}catch(n){return t}},n.get=function(t,e){return n.getAll(e)[t]},n.set=function(t,e,i,c){!1!==c&&(c=!0);var g=[];if(void 0===(i=Object.assign({encodeValue:!0},i)).domain){var m=f.getCurrentDomain();m||(m=function(t,e){!1!==e&&(e=!0);for(var i,r,o=t.hostname.split("."),a=[],c=null,f=o.length-1;f>=0;f--)if(a.unshift(o[f]),i=a.join("."),!(o.length>1&&(1===a.length||2===a.length&&v.includes(a[0]))||h.includes(i))){r={domain:e?"."+i:i};try{n.set(p,Math.random().toString(),r),n.remove(p,r),c=r.domain;break}catch(t){}}return s.dispatch(u.SET_COOKIE_DOMAIN,c),c}(a.getLocation(),!0)),i.domain=m}if(i.domain&&g.push("domain="+i.domain),void 0===i.path&&(i.path="/"),i.path&&g.push("path="+i.path),void 0===i.expires){var b=void 0===i.maxAge?f.getDefaultAgeInSeconds():i.maxAge;i.expires=new Date(r.now()+1e3*b)}if(void 0!==i.expires&&g.push("expires="+i.expires.toUTCString()),i.secure&&g.push("secure"),o.setCookie(t+"="+(i.encodeValue?encodeURIComponent(e):e)+";"+g.join(";")),c){var _=i.encodeValue,y=n.get(t,_);if(y!==e){if(!y)throw new l('Failed to set cookie "'+t+'"');throw new d('Expected "'+e+'" for "'+t+'", got "'+y+'"')}}},n.remove=function(t,e){for(var i=a.getLocation().hostname.split("."),r=1===i.length?0:1;i.length>r&&(2!==i.length||!v.includes(i[0]));)n.set(t,null,Object.assign({},e,{domain:"."+i.join("."),expires:new Date(0)}),!1),i.shift()};var h=["optimizely.test"],p="optimizelyDomainTestCookie"},3176:function(t,n,e){var i=e(1319),r=i("InternalError");n.C=r,n.v=function(t){return i(t,r)}},2562:function(t,n,e){var i=e(9479).Promise;t.exports=function(){var t,n,e=new i((function(e,i){t=e,n=i}));return e.resolve=function(){return t.apply(null,Array.from(arguments)),e},e.reject=function(){return n.apply(null,Array.from(arguments)),e},e}},6273:function(t,n,e){Object.defineProperty(n,"u",{value:!0}),n.getEditorConfig=f,n.getEditorScriptUrl=l,n.persistEditorParams=v,n.loadEmbeddedEditor=function(t){"function"!=typeof(null==window.optimizely?void 0:window.optimizely.push)&&(o.warn("EditorLoader / window.optimizely does not have a push method; it may have been overridden by page code. Resetting to ensure embedded editor compatibility."),window.optimizely=[]);v(),r.setOptOut(!1);var n=f(t),e=l(n);n.pullRequestId&&!isNaN(Number(n.pullRequestId))&&o.debug("Main / Loading editor pull request ID: "+n.pullRequestId),a.addScriptAsync(e)};var i=e(2604),r=e(3204),o=e(5098),a=e(9773),u=e(8704),c=["optimizely_project_id","optimizely_experiment_id","optimizely_section_id","optimizely_variation_id","optimizely_embed_editor","optimizely_use_shadow_dom","optimizely_page_id","optimizely_device_mode","optimizely_events_mode"],s=["optimizely_oauth_token","optimizely_token_expires_in"];function f(t){var n,e={true:"http://localhost:9888/main.js",http:"http://localhost:9888/main.js",https:"https://localhost:9888/main.js"},r=null==(n=i.get("useLocalBundle"))?void 0:n.toLowerCase(),o=i.get("optimizelyVePr");return{useLocalBundle:!!e[r],pullRequestId:o,mfeEntrypoint:e[r]?e[r]:t}}function l(t){var n=t.pullRequestId;return n&&!isNaN(Number(n))?"https://develrc-app.optimizely.com/dist/visual-editor/pull-request/"+n+"/main.js":t.mfeEntrypoint}function d(t){var n={};if(!t)return n;for(var e=t.split("&"),i=0;i<e.length;i++){var r=e[i].indexOf("=");if(-1!==r){var o=e[i].substring(0,r),a=e[i].substring(r+1);try{n[o]=decodeURIComponent(a)}catch(t){n[o]=a}}}return n}function v(){var t=u.getGlobal("sessionStorage");if(t){var n=u.getHref()||"",e=n.indexOf("?"),i=n.indexOf("#"),r=-1!==e?n.substring(e+1,-1!==i?i:void 0):"",a=-1!==i?n.substring(i+1):"";a=a.replace(/^#?\/*/,"");var f=d(r),l=d(a);
2c.forEach((function(n){f[n]&&t.setItem(n,f[n])})),s.forEach((function(n){l[n]&&t.setItem(n,l[n])})),o.log("EditorLoader / Persisted visual editor params to sessionStorage")}}},9229:function(t,n,e){var i=e(2869).cloneDeep;n.deepFreeze=function(t){},n.safeReference=function(t){return i(t)}},2869:function(t,n){function e(t,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](t):t instanceof n}Object.defineProperty(n,"u",{value:!0}),n.cloneDeep=function t(n,r,o){if(void 0===r&&(r=0),null==n)return n;if("object"!==(void 0===n?"undefined":i(n)))return n;if(r>100)throw new Error("cloneDeep: Maximum recursion depth exceeded");if(o||(o=new Map),o.has(n))return o.get(n);var a=Date,u=RegExp,c=Array;if(e(n,a)){return new a(n.getTime())}if(e(n,u)){var s=n,f="";return s.global&&(f+="g"),s.ignoreCase&&(f+="i"),s.multiline&&(f+="m"),s.unicode&&(f+="u"),s.sticky&&(f+="y"),new u(s.source,f)}if(c.isArray(n)){var l=n,d=[];o.set(n,d);for(var v=l.length,h=0;h<v;h++)d[h]=t(l[h],r+1,o);return d}var p=Object.getPrototypeOf(n),g=p&&p!==Object.prototype?Object.create(p):{};for(var m in o.set(n,g),n)Object.prototype.hasOwnProperty.call(n,m)&&(g[m]=t(n[m],r+1,o));return g},n.isEmpty=function(t){return null==t||("string"==typeof t||Array.isArray(t)?0===t.length:"object"==typeof t&&0===Object.keys(t).length)},n.isEqual=function t(n,r){if(n===r)return!0;if(null==n||null==r)return n===r;if((void 0===n?"undefined":i(n))!==(void 0===r?"undefined":i(r)))return!1;if("object"!=typeof n)return n===r;if(Array.isArray(n)&&Array.isArray(r)){if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!t(n[o],r[o]))return!1;return!0}if(Array.isArray(n)!==Array.isArray(r))return!1;if(e(n,Date)&&e(r,Date))return n.getTime()===r.getTime();if(e(n,RegExp)&&e(r,RegExp))return n.source===r.source&&n.global===r.global&&n.ignoreCase===r.ignoreCase&&n.multiline===r.multiline&&n.sticky===r.sticky&&n.unicode===r.unicode;var a=Object.keys(n),u=Object.keys(r);if(a.length!==u.length)return!1;for(var c=0;c<a.length;c++){var s=a[c];if(!Object.prototype.hasOwnProperty.call(r,s)||!t(n[s],r[s]))return!1}return!0},n.isObject=r,n.pick=function(t,n){var e={};if(null==t)return e;for(var i=0;i<n.length;i++){var r=n[i];Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},n.omit=function(t,n){var e={};if(null==t)return e;var i=new Set(n);for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&!i.has(r)&&(e[r]=t[r]);return e},n.merge=function t(n){for(var e=arguments.length,i=new Array(e>1?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];if(!r(n))throw new TypeError("Target must be an object");for(var a=0;a<i.length;a++){var u=i[a];if(r(u))for(var c in u)if(Object.prototype.hasOwnProperty.call(u,c)){var s=u[c],f=n[c];if(void 0===s)continue;r(s)&&r(f)?n[c]=t({},f,s):n[c]=s}}return n},n.mapValues=function(t,n){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=n(t[i],i,t));return e},n.flatten=function(t){for(var n=[],e=0;e<t.length;e++){var i=t[e];if(Array.isArray(i))for(var r=0;r<i.length;r++)n.push(i[r]);else n.push(i)}return n},n.flattenDeep=function t(n){var e=[];if(null==n)return e;for(var i=0;i<n.length;i++){var r=n[i];if(Array.isArray(r))for(var o=t(r),a=0;a<o.length;a++)e.push(o[a]);else e.push(r)}return e},n.pickBy=o,n.omitBy=function(t,n){var e="function"==typeof n;return o(t,(function(t,i){return!(e?n(t,i):r(t)&&Object.keys(n).every((function(e){return t[e]===n[e]})))}))};var i=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t};function r(t){var n=void 0===t?"undefined":i(t);return null!=t&&("object"===n||"function"===n)}function o(t,n){var e=function(e){if(!Object.prototype.hasOwnProperty.call(t,e))return"continue";var a=t[e];(i?n(a,e):r(a)&&Object.keys(n).every((function(t){return a[t]===n[t]})))&&(o[e]=a)},i="function"==typeof n,o={};for(var a in t)e(a);return o}},6817:function(t,n,e){var i=e(2869),r=i.isEmpty,o=i.isObject;n.getFieldValue=function(t,n){Array.isArray(n)||(n=[n]);for(var e=t,i=0;i<n.length;i++){var r=n[i];if(!o(e)||!e.hasOwnProperty(r))return;e=e[r]}return e},n.setFieldValue=function(t,n,e){if(!Array.isArray(n)||r(n))throw new Error("Attempted to set an invali
2d key path: "+n);for(var i=t,a=0;a<n.length-1;a++){var u=n[a];o(i[u])||(i[u]={}),i=i[u]}i[n[n.length-1]]=e}},9949:function(t,n,e){var i=e(2869).isEmpty;n.create=function(t){if(i(t))return null;var n=document.createElement("a");return n.href=t,n}},5098:function(t,n,e){var i=e(7710),r=e(1308),o=e(7846),a=e(6931),u=e(3654);function c(){this.logLevel=null,this.logMatch=null,this.logs=[],this.timebase=r.now()}c.prototype.ye=function(){return null!==this.logLevel},c.prototype.setLogLevel=function(t){var n=this.we(t);null===n?console.error("Unknown log level: "+t):this.logLevel!==n&&(this.log("Setting log level to "+n),this.logLevel=n,this.flush())},c.prototype.setLogMatcher=function(t){this.logMatcher="string"==typeof t?t:"",this.logGroup=0},c.prototype.shouldLog=function(t){return this.ye()&&this.logLevel>=t},c.prototype.matchesLogMessage=function(t,n){var e=this.logMatcher;if(!this.logMatcher)return!0;if(this.logGroup)return"GROUPSTART"===t?this.logGroup++:"GROUPEND"===t&&this.logGroup--,!0;var i=n.some((function(t){if("string"!=typeof t)try{t=u.stringify(t)}catch(t){}return"string"==typeof t&&t.includes(e)}));return i&&"GROUPSTART"===t&&this.logGroup++,i},c.prototype.storeLog=function(t,n){var e={logLevel:t,logMessage:n};a.dispatch(i.LOG,e)},c.prototype.flush=function(){var t=e(9247).get("stores/log");this.logGroup=0;var n=t.getLogs(),i=this;n.forEach((function(t){i.Ee(t.logLevel,t.logMessage,!0)}))},c.prototype.Ee=function(t,n,e){var i,r=t;if(console)switch(t){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{e||this.ye()&&!this.shouldLog(r)||(Array.isArray(n)&&"string"==typeof n[0]&&(n=this.Ie(n)),this.storeLog(t,n)),i&&this.shouldLog(r)&&this.matchesLogMessage(t,n)&&i.apply(console,n)}catch(t){console&&(console.error?console.error(t):console.log(t))}},c.prototype.debug=function(){this.Ee(o.LogLevel.DEBUG,[].slice.call(arguments))},c.prototype.log=function(){this.Ee(o.LogLevel.INFO,[].slice.call(arguments))},c.prototype.logAlways=function(){var t=this.Ie([].slice.call(arguments));console&&console.log&&console.log.apply&&console.log.apply(console,t),this.storeLog(o.LogLevel.INFO,t)},c.prototype.warn=function(){this.Ee(o.LogLevel.WARN,[].slice.call(arguments))},c.prototype.error=function(t){var n=[].slice.call(arguments);1===n.length&&t.stack?(this.Ee(o.LogLevel.ERROR,[this.Ae(),t]),this.Ee(o.LogLevel.INFO,[t.stack])):this.Ee(o.LogLevel.ERROR,n)},c.prototype.groupCollapsed=function(){this.Ee("GROUPSTART",[].slice.call(arguments))},c.prototype.groupEnd=function(){this.Ee("GROUPEND",[].slice.call(arguments))},c.prototype.Ie=function(t){var n=this.Ae().toString();return n.length<6&&(n=("     "+n).slice(-6)),[n+"| Optly / "+t[0]].concat(t.slice(1))},c.prototype.Ae=function(){return this.timebase?r.now()-this.timebase:0},c.prototype.we=function(t){return t&&("TRUE"===(t=t.toUpperCase())&&(t="INFO"),"FALSE"===t&&(t="OFF"),"ALL"===t&&(t="DEBUG"),void 0!==o.LogLevel[t])?o.LogLevel[t]:null},t.exports=new c},8925:function(t,n,e){var i;i=e(1294),t.exports=i},8692:function(t,n){n.isSingleExperimentPolicy=function(t){return"single_experiment"===t||"multivariate"===t}},51:function(t,n,e){var i=e(9479).Promise,r=e(8704);n.pollFor=function(t,n,e){var o,a;return"function"==typeof e?a=e:(o=e||100,a=function(){return--o<-1}),n=n||50,new i((function(e,i){!function o(){var u;if(!a()){try{var c=t();if(c)return e(c)}catch(t){u=t}return r.setTimeout(o,n)}i(u||new Error("Poll timed out"))}()}))}},6409:function(t,n,e){var i=e(9479).Promise;n.firstToResolve=function(t){return new i((function(n){t.forEach((function(t){i.resolve(t).then(n,(function(){}))}))}))}},496:function(t,n,e){var i=e(8704);n.getQueryParams=function(){var t=i.getLocationSearch()||"";if(0===t.indexOf("?")&&(t=t.substring(1)),0===t.length)return[];for(var n=t.split("&"),e=[],r=0;r<n.length;r++){var o="",a="",u=n[r].split("=");u.length>0&&(o=u[0]),u.length>1&&(a=u[1]),e.push([o,a])}return e},n.getQueryParamValue=function(t){for(var e=n.getQueryParams(),i=0;i<e.length;i++)if(e[i][0]===t)return e[i][1]},n.queryStringFromMap=function(t){return Object.keys(t).map((function(n){return n+"="+t[n]})).join("&")}},3282:function(t,n,e){var i=e(5098),r=e(8704);function o(t){this.windowLength=t,this.count=0,this.listeners={},this.isIncrementingTick=!1}o.prototype.countCurrentTick=function(){this.isIncrementingTick||(this.isIncrementingTick=!0,this.increment(),r.setTimeout(function(){this.isIncrementingTick=!1}.bind(this),0))},o.prototype.increment=function(){this.count+=1,(this.listeners[String(this.count)]||[]).forEac
2h((function(t){t()})),r.setTimeout(this.decrement.bind(this),this.windowLength)},o.prototype.decrement=function(){this.count-=1,this.count<0&&(i.warn("Decremented down to negative count: ",this.count),this.count=0)},o.prototype.addListener=function(t,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(n)},t.exports=o},7026:function(t,n,e){var i=e(2869).pick,r=e(9247).get("stores/observed_redirect");n.getReferrer=function(){var t=r.get();return t?t.referrer:null},n.getExperimentAndVariation=function(){var t=r.get();return t&&"string"==typeof t.variationId?i(t,["experimentId","variationId"]):null}},2192:function(t,n,e){var i=e(2869).mapValues,r=e(7710),o=e(1308),a=e(9247),u=e(4833),c=e(7846),s=e(6931),f=e(5098),l=a.get("stores/sandbox"),d=e(8704);n.shouldSandbox=function(){return!1},n.get=function(t){if(!t)throw new Error("Name is required");if(n.shouldSandbox()){l.isInitialized()||v();var e=l.get(t);if(e)return e}return d.getGlobal(t)};var v=function(){try{var t="optimizely_"+o.now(),n=u.createElement("iframe");n.name=t,n.style.display="none",u.appendToHead(n);var e=n.contentWindow,a=n.contentDocument;a.write("<scr"),a.write("ipt></scr"),a.write("ipt>"),a.close();var l=i(c.SandboxedFunctions,(function(t){return e[t]}));s.dispatch(r.SANDBOXED_FUNCTIONS_ADDED,{sandboxedFunctions:l})}catch(t){f.warn("Unable to create a sandbox: ",t)}}},9773:function(t,n,e){var i=e(4833),r=e(5098),o=e(9146);n.addScriptAsync=function(t,n,e){var o,a=i.querySelector("head"),u=e?i.querySelector(e):null,c=i.createElement("script");(c.type="text/javascript",c.async=!0,c.src=t,n&&(c.onload=n),u)?(r.debug("Target element found for selector: "+e+", adding script before it."),null==(o=u.parentNode)||o.insertBefore(c,u)):(r.debug("Target element not found for selector: "+e+", adding script to HEAD instead."),a.insertBefore(c,a.firstChild));r.debug("Asynchronously requesting "+t)},n.addScriptSync=function(t,e){try{var a="optimizely_synchronous_script_"+Math.floor(1e5*Math.random());if(-1!==t.indexOf('"'))return void r.error("Blocked attempt to load unsafe script: "+t);i.write("<scr"),i.write('ipt id="'+a+'" src="'+t+'"></scr'),i.write("ipt>");var u=i.querySelector("#"+a);if(!u)throw new Error("DocumentEnv.write failed to append script");u.onload=e,u.onerror=function(i){r.warn("Failed to load script ("+t+") synchronously:",i),n.addScriptAsync(t,e)}}catch(i){r.debug("DocumentEnv.write failed for "+t+": "+i.message);return o.request({url:t,async:!1,contentType:"text/plain",success:function(t){new Function(t.responseText)(),e&&e()}}).catch((function(i){r.error("Failed to load "+t+" via synchronous XHR: "+i.message),n.addScriptAsync(t,e)}))}}},3615:function(t,n,e){var i=e(9479).Promise,r=e(8704);n.makeTimeoutPromise=function(t){return new i((function(n,e){r.setTimeout((function(){e(new Error("Timed out after "+t+" ms"))}),t)}))}},2260:function(t,n,e){var i=e(2869).isEmpty,r=e(9839),o=e(8704),a=e(7710),u=e(9247),c=e(6931),s=u.get("stores/ua_data");n.get=function(){var t=s.get();return i(t)&&(t=r.parseUA(o.getUserAgent()),c.dispatch(a.SET_UA_DATA,{data:t})),t}},2237:function(t,n){n.guessDomain=function(t,n){if(!t)return"";try{return n?t.match(/:\/\/(.[^/]+)/)[1]:t.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(t){return""}}},9241:function(t,n){n.generate=function(){var t=new Uint8Array(16);crypto.getRandomValues(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;var n=Array.prototype.map.call(t,(function(t){return("0"+t.toString(16)).slice(-2)})).join("");return n.slice(0,8)+"-"+n.slice(8,12)+"-"+n.slice(12,16)+"-"+n.slice(16,20)+"-"+n.slice(20)}},2338:function(t,n,e){var i=e(9479).Promise,r=e(7710),o=e(9247),a=e(6931),u=e(6903),c=e(3176).v,s=e(1308),f=e(4833),l=e(3654),d=e(51),v=e(5007),h=e(8704),p=e(7846).VisitorStorageKeys,g=e(5098),m=o.get("stores/xdomain"),b=n.Error=c("XDomainStorageError");function _(t){var n;if(m.getFrames().find((function(n){return n.origin===t.origin}))){try{n=l.parse(t.data)}catch(n){return void g.debug("XDomain","Ignoring malformed message event:",t)}if("ERROR"===n.type)a.dispatch(r.XDOMAIN_SET_DISABLED,{disabled:!0}),u.emitInternalError(new b("Xdomain Error: "+n.response));
2else if("SYNC"===n.type)m.getSubscribers().forEach((function(t){t(n.response.key,n.response.value)}));else{var e=m.getMessageById(n.id);if(!e){if(g.warn("XDomain","No stored message found for ID",n.id),"number"!=typeof n.id)u.emitInternalError(new b("Message ID is not a number: "+n.id));else{var i=m.getNextMessageId();n.id>=i?u.emitInternalError(new b("Message ID is greater than expected maximum ID ("+n.id+">"+i+")")):n.id<0?u.emitInternalError(new b("Message ID is < 0: "+n.id)):u.emitInternalError(new b("No stored message found for message ID: "+n.id))}return}if(!e.resolver)return void g.warn("XDomain","Message already resolved, ignoring:",n.id);e.resolver(n.response),a.dispatch(r.XDOMAIN_SET_MESSAGE,{messageId:n.id,message:{data:{id:n.id,type:e.data.type,key:e.data.key},startTime:e.startTime,endTime:s.now()}})}}else g.debug("XDomain","No frame found for origin: "+t.origin)}function y(t){return!(["GET","PUT"].includes(t.type)&&!t.key.includes(p.SESSION_STATE))}function w(t,n){return n||(n=m.getDefaultFrame()),new i((function(e){var i={data:Object.assign({},t,{id:m.getNextMessageId(),use_cookie:y(t)}),resolver:e};n?m.isDisabled()||E(i,n):a.dispatch(r.XDOMAIN_SET_MESSAGE,{messageId:i.data.id,message:i})}))}function E(t,n){var e=t.data;a.dispatch(r.XDOMAIN_SET_MESSAGE,{messageId:t.data.id,message:Object.assign({},t,{startTime:s.now()})}),n.target.postMessage(l.stringify(e),n.origin)}n.setItem=function(t,n,e){return w({type:"PUT",key:t,value:n},e)},n.getItem=function(t,n){return w({type:"GET",key:t},n)},n.fetchAll=function(t){return w({type:"GETALL"},t)},n.deleteData=function(t,n){return w({type:"DELETE",visitorId:t},n)},n.subscribe=function(t){a.dispatch(r.XDOMAIN_ADD_SUBSCRIBER,{subscriber:t})},n.loadIframe=function(t,n){return new i((function(e){var i=f.createElement("iframe");i.src=t+n,i.hidden=!0,i.setAttribute("tabindex","-1"),i.setAttribute("title","Optimizely Internal Frame"),i.style.display="none",i.height=0,i.width=0,i.onload=function(){var o={id:m.getNextFrameId(),target:i.contentWindow,origin:t,path:n};a.dispatch(r.XDOMAIN_ADD_FRAME,o),e(o)},f.appendTo(f.querySelector("body"),i)}))},n.getXDomainUserId=function(t,n){var e,i={},r=Object.keys(t);return n.forEach((function(t){i[t]=[],r.forEach((function(n){var r=v.getUserIdFromKey(n,t);!e&&r&&(e=r),r&&!i[t].includes(r)&&i[t].push(r)}))})),g.debug("XDomain: Found userIds:",i),e},n.load=function(t,e){h.addEventListener("message",_);return d.pollFor((function(){return!!f.querySelector("body")})).then((function(){return n.loadIframe(t,e)})).then((function(t){a.dispatch(r.XDOMAIN_SET_DEFAULT_FRAME,t),m.isDisabled()||m.getMessages().forEac
2h((function(n){n.startTime||E(n,t)}))}))}},9146:function(t,n,e){var i=e(2869).isObject,r=e(7710),o=e(1308),a=e(6931),u=e(3654),c=e(5098),s=e(9479).Promise,f=e(2192);n.isCORSSupported=function(){return"withCredentials"in new(f.get("XMLHttpRequest"))},n.request=function(t){return t=Object.assign({method:"GET",async:!0,contentType:"text/plain;charset=UTF-8"},t),new s((function(e,r){if(!n.isCORSSupported())return r("CORS is not supported");var o=new(f.get("XMLHttpRequest"));o.onload=function(){t.success&&t.success(o),e(o)},o.onerror=function(){t.error&&t.error(o),r(o)},i(t.data)&&(t.data=u.stringify(t.data)),o.open(t.method,t.url,t.async),t.withCredentials&&(o.withCredentials=t.withCredentials),o.setRequestHeader("Content-Type",t.contentType),i(t.headers)&&Object.keys(t.headers).forEach((function(n){o.setRequestHeader(n,t.headers[n])})),o.send(t.data)}))},n.retryableRequest=function(t,e,i,u){if(!e)return s.reject(new Error("No id specified for request."));if(!n.isCORSSupported())return s.reject(new Error("CORS is not supported."));void 0===u&&(u=3),void 0===i&&(i=0);var f={id:e,timeStamp:o.now(),data:t,retryCount:i};return a.dispatch(r.SET_PENDING_EVENT,f),c.debug("Sending event ",e),n.request(t).then((function(t){return a.dispatch(r.REMOVE_PENDING_EVENT,{id:e}),t}),(function(t){throw f.retryCount>=u?(a.dispatch(r.REMOVE_PENDING_EVENT,{id:e}),c.warn("Event ",f," could not be sent after ",u," attempts.")):(f.retryCount++,a.dispatch(r.SET_PENDING_EVENT,f),c.debug("Event ",f," failed to send, with error ",t," It will be retried ",u-i," times.")),t}))},n.sendBeacon=function(t,e){if(!t.url||!t.data)return s.reject(new Error("Mu
2st provide required options"));if(navigator&&navigator.sendBeacon)try{var r=i(t.data)?u.stringify(t.data):t.data;if(navigator.sendBeacon(t.url,r))return s.resolve();throw new Error("Unable to sendBeacon")}catch(t){c.warn("sendBeacon failed: ",t)}return t=Object.assign({method:"POST"},t),n.request(t,e)}},7562:function(t,n,e){var i=e(2869).isEmpty,r=e(7710),o=e(9792),a=e(2619),u=e(1308),c=e(9247),s=e(7846),f=e(4198),l=e(6931),d=e(5098),v=e(1394),h=c.get("stores/event_data"),p=c.get("stores/plugins"),g=c.get("stores/rum"),m=c.get("stores/view"),b=c.get("stores/view_data");n.parseViewTags=function(t){var e=n.evaluateViewTags(t);n.setParsedViewTags(t.id,e)},n.updateAllViewTags=function(){m.getActiveViewStates().forEach((function(t){var e=b.get(t.id);n.parseViewTags(e)}))},n.evaluateViewTags=function(t){return t.tags?t.tags.reduce((function(t,n){try{t[n.apiName]=v.getTagValue(n)}catch(t){e=t,(null!=(i=v.Error)&&"undefined"!=typeof Symbol&&i[Symbol.hasInstance]?i[Symbol.hasInstance](e):e instanceof i)?d.warn("Page / Ignoring unparseable tag",n,t):d.error(t)}var e,i;return t}),{}):{}},n.createViewTicket=function(){var t={},n=p.getAllPlugins(s.PluginTypes.viewProviders);return Object.keys(n).forEach((function(e){var i=n[e];t[i.provides]=c.evaluate(i.getter)})),t},n.registerViews=function(t,n){l.dispatch(r.REGISTER_VIEWS,{views:t,forceClean:n})},n.activateViaAPI=function(t,e){e&&n.setUserSuppliedViewTags(t.id,e),n.activateMultiple([t],e)},n.getViewsAndActivate=function(t){var e=b.getAllViewsForActivationType(t);n.activateMultiple(e)},n.activateMultiple=function(t,e){var a=[];return t.forEach((function(t){var i=m.getViewState(t.id),u=n.createViewTicket();if(i.isActive)if(t.deactivationEnabled)try{n.hasValidStaticConditions(t,u)||n.deactivate(t)}catch(e){d.error("Page / Error evaluating whether to deactivate page ",n.description(t),e)}else d.log("Not activating Page, already active ",n.description(t));else{try{if(!n.hasValidStaticConditions(t,u))return"boolean"!=typeof i.isActive&&n.setViewActiveState(t,!1),void d.log("Page / Failed to match page conditions for "+n.description(t),t.staticConditions)}catch(e){return"boolean"!=typeof i.isActive&&n.setViewActiveState(t,!1),void d.error("Page / Error evaluating whether to activate page ",n.description(t),e)}if(a.push(t),n.setViewActiveState(t,!0),d.log("Activated Page",n.description(t)),o.emitViewActivated({view:t,metadata:e}),g.getSampleRum()){var c=t.activationType||s.ViewActivationTypes.immediate;l.dispatch(r.RECORD_ACTIVATION_TYPE_USAGE,{activationType:c,entityId:t.id})}var f=h.getByPageId(t.id);n.toggleEventImplementations(f,!0)}})),i(a)||o.emitViewsActivated({views:a}),a},n.deactivate=function(t){if(m.getViewState(t.id).isActive){n.setViewActiveState(t,!1),d.log("Deactivated Page",n.description(t)),o.emitPageDeactivated({page:t});var e=h.getByPageId(t.id);n.toggleEventImplementations(e,!1)}else d.log("Not deactivating Page, already inactive ",n.description(t))},n.setViewActiveState=function(t,n){l.dispatch(r.SET_VIEW_ACTIVE_STATE,{view:t,timestamp:u.now(),isActive:n})},n.setGlobalTags=function(t){l.dispatch(r.SET_GLOBAL_TAGS,t)},n.setParsedViewTags=function(t,n){l.dispatch(r.UPDATE_PARSED_VIEW_METADATA,{pageId:t,metadata:n})},n.setUserSuppliedViewTags=function(t,n){l.dispatch(r.UPDATE_USER_SUPPLIED_METADATA,{pageId:t,metadata:n})},n.hasValidStaticConditions=function(t,n){var e={};if(i(t.staticConditions))return!0;var o=p.getAllPlugins(s.PluginTypes.viewMatchers);d.groupCollapsed("Page / Evaluating staticConditions:",t.staticConditions),d.debug("Matching to current value:",n);var u=a.evaluate(t.staticConditions,(function(t){var i=t.type,r=o[i];if(!r)throw new Error("Page / No matcher found for type="+i);return r&&(e[t.type]||(e[t.type]=!0)),r.match(n,t)}));return d.groupEnd(),g.getSampleRum()&&u&&l.dispatch(r.RECORD_VIEW_FEATURE_USAGE,{featuresUsed:Object.keys(e),entity
2Id:t.id}),u},n.description=function(t){return'"'+t.name+'" ('+t.id+")"},n.toggleEventImplementations=function(t,n){t.forEach((function(t){if(t.eventType!==f.CUSTOM){var e=p.getPlugin(s.PluginTypes.eventImplementations,t.eventType);e?n?e.attach(t):e.detach(t):d.warn("No implementation found for event type:",t.eventType,"needed for event:",t)}}))},n.isActivationTypeImmediate=function(t){return t===s.ViewActivationTypes.immediate||!t},n.shouldTriggerImmediately=function(t){return t===s.ViewActivationTypes.DOMChanged||t===s.ViewActivationTypes.URLChanged||t===s.ViewActivationTypes.immediate||!t},n.create=function(t,n){return{id:t,apiName:n,category:"other"}},n.createState=function(t){return{id:t,isActive:!0,metadata:{},parsedMetadata:{},userSuppliedMetadata:{}}}},5007:function(t,n,e){Object.defineProperty(n,"u",{value:!0});var i,r=e(2869),o=(r.flattenDeep,r.isEmpty),a=r.omit,u=r.omitBy,c=e(6931),s=e(7710),f=e(7514),l=e(2584),d=e(2604),v=e(1308),h=e(9247),p=e(7846),g=e(3654),m=e(6817),b=e(4955).DT,_=e(5098),y=e(9479).Promise,w=e(496),E=e(7846).VisitorStorageKeys,I=e(8704);i=e(2338);var A=h.get("stores/cookie_options"),T=h.get("stores/global"),S=h.get("stores/layer"),O=h.get("stores/plugins"),k=h.get("stores/rum"),R=h.get("stores/session"),C=h.get("stores/visitor_id"),N=h.get("stores/visitor_bucketing"),D=h.get("stores/visitor"),x=h.get("stores/provider_status");function j(t){var n=L(t),e=b.getItem(n);return"string"==typeof e&&(e=z(e)),e}function M(t){var n;if(t.layerId)n=t;else{var e=t;n={layerId:e.i,pageId:e.p,decisionTimestamp:e.t,decisionTicket:{audienceIds:e.a||[]},decision:{layerId:e.i,experimentId:e.x||null,variationId:e.v||null,isLayerHoldback:e.h||!1}}}return n}function P(t,n,e){try{var r=L(t);e||(n=g.stringify(n));try{b.setItem(r,n)}catch(t){throw _.warn("Visitor / Unable to set localStorage key, error was:",t),new Error("Unable to set localStorage")}i.setItem(r,n)}catch(t){_.warn("Unable to persist visitor data:",t.message)}}function L(t){var e=C.getBucketingId();if(!e)throw new Error("Visitor bucketingId not set");var i=n.getNamespace();if(!i)throw new Error("Namespace is not set");return[e,i,t].join("$$")}function U(t,e){if(!C.getBucketingId())throw new Error("Cannot update local store because bucketingId not set");if(V(t)){var i=n.getStorageKeyFromKey(t);if(Object.keys(E).some((function(t){return E[t]===i}))){var r=L(i);if(!(t.indexOf(r)<=0)&&(e=z(e)))if(i===E.EVENT_QUEUE)c.dispatch(s.SET_FOREIGN_VISITOR_EVENT_QUEUE,{key:t,value:l.deserialize(e)});else if(i===E.EVENTS)c.dispatch(s.SET_FOREIGN_VISITOR_EVENTS,{key:t,value:l.deserialize(e)});else if(i===E.LAYER_STATES)c.dispatch(s.LOAD_PERSISTED_LAYER_STATES,{layerStates:e.map(M),merge:!0});else if(i===E.VARIATION_MAP)c.dispatch(s.MERGE_VARIATION_ID_MAP,{variationIdMap:e});else if(i===E.CONTEXTUAL_MAB)c.dispatch(s.MERGE_CONTEXTUAL_MAB_MAP,{contextualMabMap:e});else if(i===E.VISITOR_PROFILE){var a=e;["custom"].forEach((function(t){var n=O.getPlugin(p.PluginTypes.visitorProfileProviders,t);if(n){if(a.profile&&a.metadata){var e=function(t,n,e){var i=D.getAttribute(n),r=D.getAttributeMetadata(n),a=t.profile[n],u=t.metadata[n];if(o(i))return{data:a,metadata:u};var c={};return Object.keys(a).forEach((function(t){var n,i,o=a[t];r&&r[t]&&(n=r[t].lastModified),u&&u[t]&&(i=u[t].lastModified),(e===p.AttributionTypes.FIRST_TOUCH&&n>=i||e===p.AttributionTypes.LAST_TOUCH&&i>=n||void 0===n&&i)&&(c.data=c.data||{},c.data[t]=o,i&&(c.metadata=c.metadata||{},c.metadata[t]=c.metadata[t]||{},c.metadata[t].lastModified=i))})),c}(a,t,n.attributionType);if(!o(e)){var i=[];Object.keys(e.data||{}).forEach((function(n){var r=e.data[n],o=e.metadata[n],a={key:[t,n],value:r,metadata:o};i.push(a)})),c.dispatch(s.SET_VISITOR_ATTRIBUTES,{attributes:i})}}}else _.debug("Attribute type",t,"not used by any audiences")}))}}}}function V(t){return t.split("$$")[0].indexOf("://")>0}function z(t){try{return g.parse(t)}catch(n){return _.debug("Failed to parse: ",t,n),null}}n.getOrGenerateId=function(){return{randomId:n.getCurrentId()||"oeu"+v.now()+"r"+Math.random()}},n.getCurrentId=function(){var t=C.getVisitorIdLocator();return D.getVisitorIdFromAPI()||(t?function(t){var n,e=t.name;switch(t.type){case p.VisitorIdLocatorType.COOKIE:n=d.get(e);break;case p.VisitorIdLocatorType.JS_VARIABLE:n=I.getGlobalByPath(e);break;case p.VisitorIdLocatorType.LOCALSTORAGE:try{n=I.getGlobal("localStorage").getItem(e)}catch(t){throw new Error("Unable to read localStorage: "+t.toString())}break;case p.VisitorIdLocatorType.QUERY:n=w.getQueryParamValue(e)}
2try{if(!n)throw _.error("Visitor / Customer provided visitor id cannot be found. Type:",t.type," Name:",e),new Error("Failure to obtain visitor id from "+t.type);if("string"!=typeof n&&"number"!=typeof n)throw _.error("Visitor / Customer provided visitor id is not a string or number. Type:",t.type," Name:",e," Id Type:",(i=n)&&"undefined"!=typeof Symbol&&i.constructor===Symbol?"symbol":typeof i),new Error("Customer provided visitor id is not a string or number")}catch(t){throw k.getSampleRum()&&c.dispatch(s.RECORD_VISITOR_ID_ERROR,{isError:!0}),t}var i;k.getSampleRum()&&(c.dispatch(s.RECORD_VISITOR_ID_ERROR,{isError:!1}),c.dispatch(s.RECORD_VISITOR_ID_LOCATOR_USAGE,{visitorIdLocatorType:t.type,entityId:n}));return String(n)}(t):d.get(p.COOKIES.VISITOR_ID))},n.hasSomeData=function(){return b.keys().length>0},n.setId=function(t){var e,r,o=C.getBucketingId();c.dispatch(s.SET_VISITOR_ID,t),C.getBucketingId()!==o&&(!function(){!function(t,n){0;f.initializeStore(t,n)}(j(E.EVENTS)||[],j(E.EVENT_QUEUE)||[]);var t=(e=E.LAYER_STATES,i=C.getBucketingId(),r=[],o=new RegExp(i+"\\$\\$([^$]+?)\\$\\$"+e),b.keys().forEach((function(t){var n=t.match(o);if(n){var e={namespace:n[1],userId:i,item:z(b.getItem(t))};r.push(e)}})),r);var e,i,r,o;t.forEach((function(t){t.item=(t.item||[]).map(M)})),u=t,l=[],u.forEach((function(t){t.item.forEach((function(n){n.namespace=t.namespace,l.push(n)}))})),v=l,c.dispatch(s.LOAD_PERSISTED_LAYER_STATES,{layerStates:v.filter((function(t){return!!t.decision}))}),d=j(E.SESSION_STATE)||{},d=Object.assign({lastSessionTimestamp:0,sessionId:null},d),c.dispatch(s.LOAD_SESSION_STATE,d),function(t){var n,e,i=O.getAllPlugins(p.PluginTypes.visitorProfileProviders),r=Object.keys(i||{}).map((function(t){return i[t]})).filter((function(t){return"function"==typeof t.restorer}));t.profile&&t.metadata?(n=t.profile,e=t.metadata):(n=t,e={});n=Object.keys(n||{}).reduce((function(t,e){var i=n[e],o=i,a=r.find((function(t){return t.provides===e}));return a&&(o=a.restorer(i)),t[e]=o,t}),{}),c.dispatch(s.LOAD_EXISTING_VISITOR_PROFILE,{profile:n,metadata:e})}(j(E.VISITOR_PROFILE)||{});var a=j(E.TRACKER_OPTIMIZELY);a&&(h=a,c.dispatch(s.SET_TRACKER_PERSISTABLE_STATE,h));var u,l;var d;var v;var h;n.loadForeignData(),n.removeLegacySessionStateCookies()}(),n.deleteOldLocalData(),i.deleteData(t));try{C.getVisitorIdLocator()||n.maybePersistVisitorId(t)}catch(t){if(_.error("Visitor / Unable to persist visitorId, disabling tracking"),c.dispatch(s.LOAD_DIRECTIVE,{trackingDisabled:!0}),e=t,null!=(r=d.MismatchError)&&"undefined"!=typeof Symbol&&r[Symbol.hasInstance]?r[Symbol.hasInstance](e):e instanceof r)throw _.error("Visitor / Cookie not set to correct value:",t),new Error("Cookie mismatch error while persisting visitorId");throw t}n.refreshSession()},n.getVariationIdMap=function(){return j(E.VARIATION_MAP)||{}},n.updateVariationIdMap=function(t,n,e){c.dispatch(s.UPDATE_VARIATION_ID_MAP,{layerId:t,experimentId:n,variationId:e})},n.persistVariationIdMap=function(){var t=N.getVariationIdMapString();P(E.VARIATION_MAP,t,!0)},n.getContextualMabMap=function(){return j(E.CONTEXTUAL_MAB)||{}},n.updateContextualMabMap=function(t,n,e){c.dispatch(s.UPDATE_CONTEXTUAL_MAB_MAP,{layerId:t,experimentId:n,variationData:e})},n.persistContextualMabMap=function(){var t=N.getContextualMabMapString();P(E.CONTEXTUAL_MAB,t,!0)},n.getOdpSegments=function(){return j(E.ODP_SEGMENTS)||{}},n.persistOdpSegments=function(t){P(E.ODP_SEGMENTS,t,!1)},n.persistTrackerOptimizelyData=function(t){P(E.TRACKER_OPTIMIZELY,t)},n.refreshSession=function(){c.dispatch(s.REFRESH_SESSION)},n.populateEagerVisitorData=function(t,e){var i=Object.keys(t||{}).reduce((function(n,e){var i=t[e];return i.isLazy||n.push(i),n}),[]);return n.populateVisitorData(i,e)},n.populateLazyVisitorData=function(t,e,i){_.debug("Populating lazy visitor. List of all providers",t);var r=Object.keys(t||{}).reduce((function(n,e){var r=t[e];return r.isLazy&&i.has(r.provides)&&n.push(r),n}),[]);return _.debug("Filtered list of providers that are lazy and present in audiences",r),n.populateVisitorData(r,e)},n.populateVisitorData=function(t,n){n=n||{};var e=function(t){return function(t,n){var e=function(t,e){var i;n.attributionType&&(i=v.now()),c.dispatch(s.SET_VISITOR_ATTRIBUTES,{attributes:[{key:t,value:e,metadata:{lastModified:i}}]})};if(!n.getter)return;var i=n.provides;Array.isArray(i)||(i=[i]),!1;var r,o=n.isSticky&&void 0!==m.getFieldValue(t,i);if(o)return;try{var a=h.evaluate(n.getter);"function"==typeof a&&(a=a((function(){return m.getFieldValue(t,i)}),(function(t){e(i,t)}
2))),void 0!==a&&(n.isAsync?(r=a.then((function(t){e(i,t)}),(function(t){_.warn('Failed to evaluate provider for "'+n.provides+'"; error was:',t)})),c.dispatch(s.SET_VISITOR_ATTRIBUTE_PENDING,{key:i,pending:r})):e(i,a))}catch(t){_.warn('Failed to evaluate getter for provider for "'+n.provides+'"; error was: '+t.message)}return r}(n,t)},i=t.filter((function(t){return!0===t.isAsync})).map(e).filter(Boolean);return t.filter((function(t){return!t.isAsync})).forEach(e),i.length>0?y.all(i):y.resolve()},n.persistBehaviorEvents=function(t){P(E.EVENTS,t)},n.persistBehaviorEventQueue=function(t){P(E.EVENT_QUEUE,t)},n.getPersistedBehaviorEventCount=function(){var t=j(E.EVENTS)||[],n=j(E.EVENT_QUEUE)||[];return l.deserialize(t).length+l.deserialize(n).length},n.persistLayerStates=function(){var t=S.getLayerStates(n.getNamespace());t=t.map((function(t){return a(t,["namespace"])})),P(E.LAYER_STATES,t)},n.persistSessionState=function(){P(E.SESSION_STATE,R.getState())},n.persistVisitorProfile=function(){var t=function(){var t=D.getVisitorProfile(),n=D.getVisitorProfileMetadata(),e=O.getAllPlugins(p.PluginTypes.visitorProfileProviders);if(e){var i=Object.keys(e).reduce((function(t,n){var i=e[n];return i.provides&&(t[i.provides]=i),t}),{});t=u(t,(function(t,n){var e=i[n];return e&&e.isTransient}))}return{profile:t,metadata:n}}();P(E.VISITOR_PROFILE,t)},n.persistVisitorBucketingStore=function(){n.persistVariationIdMap(),n.persistContextualMabMap()},n.getUserIdFromKey=function(t,e){var i;return t.includes(e)&&t.includes("_")&&t.includes("$$")&&t.slice(t.indexOf("$$")).includes(n.getNamespace())&&(i=t.slice(t.indexOf("_")+1,t.indexOf("$$"))),i},n.maybePersistVisitorId=function(t){t.randomId&&(A.getAutoRefresh()||n.getCurrentId()!==t.randomId?(d.set(p.COOKIES.VISITOR_ID,t.randomId),_.log("Persisting visitorId:",t.randomId)):_.log("Not persisting visitorId: value is not changed and also auto-refresh is disabled"))},n.getAttribute=function(t){return D.getAttribute(t)},n.getPendingAttributeValue=function(t){return x.getPendingAttributeValue(t)},n.isForeignKey=V,n.checkKeyForVisitorId=function(t){var e=C.getBucketingId()||n.getCurrentId(),i=n.getIdFromKey(t);return!i||i===e},n.getIdFromKey=function(t){var e=t.split("$$")[0],i=n.getStorageKeyFromKey(t);if(Object.keys(p.StorageKeys).some((function(t){return p.StorageKeys[t]===i})))return null;var r=e.indexOf("_");return-1===r?e:e.substring(r+1)},n.getStorageKeyFromKey=function(t){var n,e=t.split("$$").pop();if(e.indexOf("://")>-1){var i=e.indexOf("_");n=e.substring(i+1)}else n=e;return Object.keys(p.AllStorageKeys).some((function(t){return p.AllStorageKeys[t]===n}))?n:null},n.deleteOldLocalData=function(){b.keys().forEach((function(t){n.isForeignKey(t)||n.checkKeyForVisitorId(t)||b.removeItem(t)}))},n.deleteOldForeignData=function(){b.keys().forEach((function(t){n.isForeignKey(t)&&b.removeItem(t)}))},n.loadForeignData=function(){b.keys().forEach((function(t){var n=b.getItem(t);n&&U(t,n)}))},n.getNamespace=function(){return T.getNamespace()},n.serializeFieldKey=function(t){return Array.isArray(t)?t.join("$$"):t},n.removeLegacySessionStateCookies=function(){var t=d.getAll();Object.keys(t).forEach((function(t){0===t.indexOf(p.COOKIES.SESSION_STATE+"$$")&&d.remove(t)}))}},2394:function(t,n,e){var i=e(7846);n.normalizeClientData=function(t){!t.listTargetingKeys&&t.listTargetingCookies&&(t.listTargetingKeys=t.listTargetingCookies.map((function(t){return{type:i.ListTargetingKeyTypes.COOKIE,key:t}})),delete t.listTargetingCookies)}},480:function(t,n,e){e(9247).register("env/jquery",e(7536))},7536:function(t,n,e){var i,r=e(8704);try{i=$}catch(t){}var o=r.getGlobal("$");t.exports=i&&i!==o?i:o},595:function(t,n,e){e(2869).isEmpty,e(3176).C,e(1308);var i=e(9247),r=(e(4833),e(5098));e(8704),e(9146),i.get("stores/client_metadata"),i.get("stores/global");n.handleError=function(t,n){n?r.error("Uncaught error:",t,n):r.error("Uncaught error:",t)}},4217:function(t,n,e){var i=e(7710),r=e(6903),o=e(5412),a=e(3176).v,u=e(4980),c=e(2562),s=e(9247).get("stores/directive"),f=e(4833),l=e(2075),d=e(6931),v=e(5098),h=e(3282),p=e(7297),g=e(925).create(),m=1e3,b=10,_=a("ChangeOverheatError");function y(t,n){if(this.change=t,this.identifier=n.identifier,this.startTime=n.startTime,s.shouldObserveChangesIndefinitely()){d.dispatch(i.INITIALIZE_CHANGE_METRICS),this.rateMeter=new h(m);var e=null===b?Number.POSITIVE_INFINITY:b;this.rateMeter.addListener(e,function(){v.warn("AppendChange",this,"has overheated and will no longer apply or reapply"),this.cancel(),d.dispatch(i.RECORD_CHANGE_OVERHEATED),r.emitError(new _("Change "+this.identifier+" has overheated"),{layerId:n.action&&n.action.layerId,experimentId:n.action&&n.action.experimentId,variationId:n.action&&n.action.variationId,changeId:t.id,changeType:t.type,movingWindowMilliseconds:m,maxMacroTasksInMovingWindow:e})}.bind(this));for(var o=Math.min(e,50),a=0;a<=o;a++)this.rateMeter.addListener(a,function(t){return function(){d.dispatch(i.RECORD_CHANGE_MACROTASK_RATE,{changeMacrotaskRate:t})}}(a))}}y.prototype.numberOfRootNodes=function(t){var n=document.createElement("div");return n.innerHTML=t,n.childNodes.length},y.prototype.getSiblingElements=function(t,n,e){for(var i=t,r=[],o=0;o<n;o++)e?(r.push(i.nextSibling),i=i.nextSibling):(r.push(i.previousSibling),i=i.previousSibling);return r},y.prototype.apply=function(){this.applyDeferred=c();try{if(!this.numberOfRootNodes(this.change.value))throw new Error("No DOM elements to be created for this change: "+this.change.value);var t=this.applyDeferred.reject.bind(this.applyDeferred,new Error("Unable to find selector.")),n={};s.shouldObserveChangesUntilTimeout()?n={timeout:p.isTimedOut.bind(null,this.startTime),onTimeout:t}:s.isEditor()&&g.waitUntil(p.isTimedOut.bind(null,this.startTime)).then(t,t),this.unobserveSelector=g.observeSelector(this.change.selector,this.maybeApplyToElement.bind(this),n);var e=f.querySelectorAll(this.change.selector),i=this;e.forEach((function(t){i.maybeApplyToElement(t)}))}catch(t){this.applyDeferred.reject(t)}return this.applyDeferred},y.prototype.maybeApplyToElement=function(t){var n=o.CHANGE_ID_ATTRIBUTE_PREFIX+this.change.id;if(t.hasAttribute(n))return v.debug("Not applying AppendChange to element",t,"because it was inserted by this change"),void this.applyDeferred.resolve();this.rateMeter&&this.rateMeter.countCurrentTick(),this.applyOrReapplyToElement.bind(this,t,n)(),this.applyDeferred.resolve()},y.prototype.applyOrReapplyToElement=function(t,n){var e;switch(this.change.operator){case l.DOMInsertionType.AFTER:e=l.insertAdjacentHTMLType.AFTER_END;break;case l.DOMInsertionType.APPEND:e=l.insertAdjacentHTMLType.BEFORE_END;break;case l.DOMInsertionType.BEFORE:e=l.insertAdjacentHTMLType.BEFORE_BEGIN;break;case l.DOMInsertionType.PREPEND:e=l.insertAdjacentHTMLType.AFTER_BEGIN;break;default:e=l.insertAdjacentHTMLType.BEFORE_END}t.insertAdjacentHTML(e,this.change.value),t.setAttribute(n,""),u.setData(t,this.change.id,this.identifier,[]);var i,r,o=this.numberOfRootNodes(this.change.value)-1;e===l.insertAdjacentHTMLType.BEFORE_END?(i=t.lastChild,r=this.getSiblingElements(i,o,!1)):e===l.insertAdjacentHTMLType.AFTER_BEGIN?(i=t.firstChild,r=this.getSiblingElements(i,o,!0)):e===l.insertAdjacentHTMLType.BEFORE_BEGIN?(i=t.previousSibling,r=this.getSiblingElements(i,o,!1)):e===l.insertAdjacentHTMLType.AFTER_END&&(i=t.nextSibling,r=this.getSiblingElements(i,o,!0)),r.unshift(i);var a=this;r.forEach((function(t){var e=t.nodeType===Node.ELEMENT_NODE?t:f.parentElement(t);e.setAttribute(n,"");var i=u.getData(e,a.change.id,a.identifier)||[];i.push(t),u.setData(e,a.change.id,a.identifier,i),f.childrenOf(e).forEach((function(t){t.setAttribute(n,"")}))}))},y.prototype.cancel=function(){this.unobserveSelector&&this.unobserveSelector()},y.prototype.undo=function(){var t=o.CHANGE_ID_ATTRIBUTE_PREFIX+this.change.id,n=f.querySelectorAll("["+t+"]"),e=this;
2return n.forEach((function(n){(u.getData(n,e.change.id,e.identifier)||[]).forEach((function(t){t.parentNode.removeChild(t)})),n.removeAttribute(t),u.removeData(n,e.change.id,e.identifier),f.childrenOf(n).forEach((function(n){n.removeAttribute(t)}))})),c().resolve(l.changeState.UNAPPLIED)},t.exports=function(t){t.registerChangeApplier(l.changeType.APPEND,y)}},3070:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.isEmpty,a=e(2075);n.transformVisibilityAttributesToCSS=function(t){if(!t.attributes)return t;if(t.attributes[a.selectorChangeType.HIDE]||t.attributes[a.selectorChangeType.REMOVE]){var n=Object.assign({css:{}},r(t));return t.attributes[a.selectorChangeType.HIDE]&&(n.css.visibility="hidden",delete n.attributes[a.selectorChangeType.HIDE]),t.attributes[a.selectorChangeType.REMOVE]&&(n.css.display="none",delete n.attributes[a.selectorChangeType.REMOVE]),n}return t},n.createStylesFromChange=function(t,n){if(o(n.css))return n.attributes.style;var e="",i=n.attributes.style||"";return Object.keys(n.css).forEach((function(t){var r=n.css[t];new RegExp(t+"\\s?:").test(i)||(e+=t+":"+r+";")})),void 0===n.attributes.style?(t||"")+e:e+i}},5415:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.isEmpty,a=e(7710),u=e(6903),c=e(5412),s=e(3176).v,f=e(4980),l=e(2562),d=e(9247).get("stores/directive"),v=e(4833),h=e(2075),p=e(6931),g=e(5098),m=e(3524),b=(e(9479).Promise,e(3282)),_=e(7297),y=e(8704),w=e(3070),E=e(925).create(),I={attributes:!0,childList:!0,subtree:!0,characterData:!0},A=1e3,T=10,S=s("ChangeOverheatError");function O(t,n){if(this.change=r(t),this.change=w.transformVisibilityAttributesToCSS(this.change),this.identifier=n.identifier,this.startTime=n.startTime,this.disconnectObserverQueue=[],d.shouldObserveChangesIndefinitely()){p.dispatch(a.INITIALIZE_CHANGE_METRICS),this.rateMeter=new b(A);var e=null===T?Number.POSITIVE_INFINITY:T;this.rateMeter.addListener(e,function(){g.warn("AttributeChange",this,"has overheated and will no longer apply or reapply"),this.cancel(),p.dispatch(a.RECORD_CHANGE_OVERHEATED),u.emitError(new S("Change "+this.identifier+" has overheated"),{layerId:n.action&&n.action.layerId,experimentId:n.action&&n.action.experimentId,variationId:n.action&&n.action.variationId,changeId:t.id,changeType:t.type,movingWindowMilliseconds:A,maxMacroTasksInMovingWindow:e})}.bind(this));for(var i=Math.min(e,50),o=0;o<=i;o++)this.rateMeter.addListener(o,function(t){return function(){p.dispatch(a.RECORD_CHANGE_MACROTASK_RATE,{changeMacrotaskRate:t})}}(o))}this.cancelled=!1}O.prototype.apply=function(){this.applyDeferred=l();try{if(o(this.change.attributes)&&o(this.change.css))return g.debug("Not applying empty AttributeChange"),this.applyDeferred.resolve(),this.applyDeferred;var t=this.applyDeferred.reject.bind(this.applyDeferred,new Error("Unable to find selector.")),n={};d.shouldObserveChangesUntilTimeout()?n={timeout:_.isTimedOut.bind(null,this.startTime),onTimeout:t}:d.isEditor()&&E.waitUntil(_.isTimedOut.bind(null,this.startTime)).then(t,t),this.unobserveSelector=E.observeSelector(this.change.selector,this.maybeApplyToElement.bind(this),n);var e=v.querySelectorAll(this.change.selector),i=this;e.forEach((function(t){i.maybeApplyToElement(t)}))}catch(t){this.applyDeferred.reject(t)}return this.applyDeferred},O.prototype.maybeApplyToElement=function(t){var n=c.CHANGE_ID_ATTRIBUTE_PREFIX+this.change.id;if(t.hasAttribute(n))return g.debug("AttributeChange not being applied. Element already changed, or is a child of an element that was changed by this AttributeChange. "+t),void this.applyDeferred.resolve();this.rateMeter&&this.rateMeter.countCurrentTick();var e=this.applyOrReapplyToElement.bind(this,t,n);e(!1);var i=function(){var n=function(){this.cancelled||m.observe(r,t,I)}.bind(this);return y.setTimeout(n)}.bind(this),r=m.create(function(){this.rateMeter&&this.rateMeter.countCurrentTick(),r.disconnect(),e(!0),i()}.bind(this));i(),this.disconnectObserverQueue.push(r.disconnect.bind(r)),this.applyDeferred.resolve()},O.prototype.applyOrReapplyToElement=function(t,n,e){void 0===e&&(e=!1);var i={},r=this.change.attributes;Object.keys(r).forEach((function(e){var o=r[e];switch(e){case h.selectorChangeType.CLASS:void 0!==t.className&&(i[h.selectorChangeType.CLASS]=t.getAttribute("class")||"",t.setAttribute("class",o));break;case h.selectorChangeType.HREF:void 0!==t.getAttribute("href")&&(i[h.selectorChangeType.HREF]=t.getAttribute("href")||"",t.setAttribute("href",o));break;case h.selectorChangeType.HTML:void 0!==t.innerHTML&&(i[h.selectorChangeType.HTML]=t.innerHTML,t.innerHTML=o,v.childrenOf(t).forEach((function(t){t.setAttribute(n,"")})));break;case h.selectorChangeType.SRC:void 0!==t.src&&(i[h.selectorChangeType.SRCSET]=t.src,t.srcset=o);break;case h.selectorChangeType.SRCSET:void 0!==t.srcset&&(i[h.selectorChangeType.SRCSET]=t.srcset,t.srcset=o);break;case h.selectorChangeType.STYLE:break;case h.selectorChangeType.TEXT:void 0!==t.textContent&&(i[h.selectorChangeType.TEXT]=t.textContent,t.textContent=o);break;default:throw new Error("Unrecognized attribute: "+e)}}));var o=w.createStylesFromChange(t.style.cssText,this.change);"string"==typeof o&&(i[h.selectorChangeType.STYLE]=t.style.cssText,t.style.cssText=o),t.setAttribute(n,""),e&&f.hasData(t)||f.setData(t,this.change.id,this.identifier,i)},O.prototype.cancel=function(){this.cancelled=!0,this.unobserveSelector&&this.unobserveSelector(),this.disconnectObserverQueue.forEach((function(t){try{t()}catch(t){}}))},O.prototype.undo=function(){var t=v.querySelectorAll("["+c.CHANGE_ID_ATTRIBUTE_PREFIX+this.change.id+"]"),n=this;return t.forEach((function(t){var e=f.getData(t,n.change.id,n.identifier);e&&Object.keys(e).forEach((function(n){var i=e[n];switch(n){case h.selectorChangeType.CLASS:t.setAttribute("class",i);break;case h.selectorChangeType.HREF:t.setAttribute("href",i);break;case h.selectorChangeType.HTML:t.innerHTML=i;break;case h.selectorChangeType.SRC:case h.selectorChangeType.SRCSET:t.srcset=i;break;case h.selectorChangeType.STYLE:t.style.cssText=i;break;case h.selectorChangeType.TEXT:t.textContent=i;break;case h.selectorChangeType.HIDE:t.style.visibility=i;break;case h.selectorChangeType.REMOVE:t.style.display=i;break;default:throw new Error("Unrecognized attribute: "+n)}})),t.removeAttribute(c.CHANGE_ID_ATTRIBUTE_PREFIX+n.change.id),f.removeData(t,n.change.id,n.identifier)})),l().resolve(h.changeState.UNAPPLIED)},t.exports=function(t){t.registerChangeApplier(h.changeType.ATTRIBUTE,O)}},1198:function(t,n,e){var i=e(2562),r=e(2075),o=e(5598);function a(t,n){if("function"!=typeof t.value)throw new Error("Custom code must be a function");this.change=t}a.prototype.apply=function(){var t=i();try{o.apply(this.change.value),t.resolve()}catch(n){t.reject(n)}return t},a.prototype.undo=function(){return i().resolve(r.changeState.IGNORED)},t.exports=function(t){t.registerChangeApplier(r.changeType.CUSTOM_CODE,a)}},7769:function(t,n,e){var i=e(9479).Promise,r=e(7710),o=e(7846),a=e(2604),u=e(4833),c=e(2075),s=e(6931),f=e(9949),l=e(5098),d=e(8704);function v(t,n){if(this.change=t,this.config=n,this.reasonShouldNotRedirect=this._checkForReasonNotToRedirect(),!this.reasonShouldNotRedirect){if("string"!=typeof this.change.dest&&"function"!=typeof this.change.dest)throw new Error("Redirect destination is not a string or function");if("function"==typeof this.change.dest&&(this.change.dest=this.change.dest(),"string"!=typeof this.change.dest))throw new Error("Redirect destination function did not evaluate to a string");if(!this.config.action)throw new Error("Redirect changes require an action to be passed in the config.");s.dispatch(r.ANNOUNCE_PENDING_REDIRECT,{layerId:this.config.action.layerId})}}v.prototype.apply=function(){if(this.reasonShouldNotRedirect)return l.warn("Redirect change is not being applied because: "+this.reasonShouldNotRedirect),i.resolve(c.changeState.IGNORED);if(this.reasonInvalid)return l.error("Redirect change cannot be applied because:",this.reasonInvalid),i.reject(this.reasonInvalid);try{this.Te(this.Se())}catch(t){return i.reject(t)}return i.resolve(c.changeState.APPLIED)},v.prototype.Se=function(){var t=f.create(this.change.dest);if(this.change.preserveParameters){var n=d.getLocation().search;n&&(t.search?t.search+="&"+n.substr(1):t.search=n)}return t.toString()},v.prototype.Oe=function(){var t=u.createElement("style");t.setAttribute("type","text/css"),t.innerHTML="body{display:none;visibility:hidden;}",u.appendToHead(t)},v.prototype.Te=function(t){(!this.change.hasOwnProperty("hidePage")||this.change.hidePage)&&this.Oe(),d.setLocation(t)},v.prototype._checkForReasonNotToRedirect=function(){var t=a.get(o.COOKIES.REDIRECT);if(!this.change.allowAdditionalRedirect&&void 0!==t)return"Page was already redirected."},v.prototype.undo=function(){return i.resolve(c.changeState.IGNORED)},t.exports=function(t){t.registerChangeApplier(c.changeType.REDIRECT,v)}},5337:function(t,n,e){var i=e(2562),r=e(2075),o=e(945);e(5303);function a(t,n){this.change=Object.assign({},t),this.identifier=n.identifier}a.prototype.apply=function(){var t={type:"showWidget",name:this.change.widget_id,data:this.change};return o.emit(t),i().resolve(r.changeState.APPLIED)},a.prototype.undo=function(){return o.emit({type:"hideWidget",name:this.change.widget_id,data:this.change}),i().resolve(r.changeState.UNAPPLIED)},t.exports=function(t){t.registerChangeApplier(r.changeType.WIDGET,a)}},8935:function(t,n,e){var i=e(8357),r=e(6883).b,o={selectExperiment:function(t,n,e){if(t.experiments.length<1)throw new r("Unable to find experiment to bu
2cket user into");var o=t.experiments[0];if(!i.isValidExperiment(n,o))throw new r('Audience conditions failed for experiment: "'+o.id+'".');return o}};t.exports=function(t){t.registerDecider("single_experiment",o),t.registerDecider("multivariate",o)}},7010:function(t,n,e){var i=function(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},r=e(6903),o=e(3176).v,a=e(4833),u=e(8925),c=n.Error=o("ClickDelegateError");function s(t){this.handler=t,this.events=[],this.unlistenFn=null,this.clickHandler=function(t){var n=this;this.events.forEach((function(e){try{var o=e.config&&e.config.selector?e.config.selector:e.eventFilter.selector;(function(t,n,e){var o=t.target,a=0;for(;o;){var s;try{s=u(o,n)}catch(u){var f={typeofElementValue:void 0===o?"undefined":i(o),nodeName:o?o.nodeName:null,nodeType:o?o.nodeType:null,targetName:t&&t.target?t.target.nodeName:null,targetType:t&&t.target?t.target.nodeType:null,numParentsTraversed:a,selector:n,errorMessage:u.message,eventId:e.id};return r.emitError(new c("Unable to evaluate match for element"),f),!1}if(s)return!0;o=o.parentElement,a++}return!1})(t,o,e)&&n.handler(e)}catch(t){r.emitError(new c("Unable to handle click for selector"+o+":"+t.message))}}))}.bind(this)}s.prototype.listen=function(){this.unlistenFn=a.addEventListener("click",this.clickHandler,!0)},s.prototype.unlisten=function(){this.unlistenFn&&(this.unlistenFn(),this.unlistenFn=null)},s.prototype.hasEvents=function(){return this.events.length>0},s.prototype.addEvent=function(t){this.events.push(t)},s.prototype.removeEvent=function(t){this.events=this.events.filter((function(n){return n.apiName!==t.apiName}))},t.exports=s},7422:function(t,n,e){var i=e(8433),r=e(7010),o=e(5098),a=e(7562);function u(t){return"apiName: "+t.apiName+", selector: "+t.eventFilter.selector}t.exports=function(t){var n=new r((function(t){a.updateAllViewTags(),i.trackClickEvent(t)?o.log("Tracking click event:",t):o.log("Not tracking click event:",t)}));t.registerEventImplementation("click",{attach:function(t){n.hasEvents()||n.listen(),n.addEvent(t),o.debug("Started listening for click event ("+u(t)+"):",t)},detach:function(t){n.removeEvent(t),n.hasEvents()||n.unlisten(),o.debug("Stopped listening for click event ("+u(t)+"):",t)}})}},2210:function(t,n,e){var i=e(2869),r=i.cloneDeep,o=i.flatten,a=e(770),u=e(2193),c=e(6568);function s(t,n){var e=u.buildFromSpecV0_1(n);if(1!==e.length)throw new Error("Invalid query descriptor; verify that no aggregators are specified");return c.execute(e[0],t)}function f(t,n){return t.map((function(t){return"function"==typeof t.toObject?t.toObject(n):t}))}function l(t,n){if(!t)return["Descriptor not defined"];var e=[];return t.count&&e.push('Unexpected "count" clause specified'),t.pick&&t.pick.modifier&&-1===n.indexOf(t.pick.modifier)&&e.push('Invalid "pick" modifier "'+t.pick.modifier+'"'),(t.filters||[]).forEach((function(t){void 0!==t.modifier&&e.push('Unexpected "filter" modifier "'+t.modifier+'"')})),e.length>0?e:void 0}function d(t,n){var e={revenueAsTag:!1,timeAsTimestamp:!0};if(void 0===n)return f(a.getEvents(t),e);if("number"==typeof n){if(n<=0)throw new Error("Count must be a positive integer, got "+n);return f(a.getEvents(t).slice(-n),e)}var i=l(n,Object.values(u.RECENCY_FILTERS));if(i)throw new Error(i.join("\n"));return f(s(a.getEvents(t),n),e)}function v(t,n){if(!(n=r(n)||{}).pick)throw new Error('No "pick" clause provided in query descriptor');if(!n.pick.name)throw new Error('No field name provided in "pick" clause');n.pick.modifier=n.pick.modifier||u.FREQUENCY_FILTERS.MOST_FREQUENT;var e=l(n,Object.values(u.FREQUENCY_FILTERS));if(e)throw new Error(e.join("\n"));return s(a.getEvents(t),n)}function h(t,n){var e=u.buildFromSpecV0_2(n),i=a.getEvents(t),r=f(c.execute(e,i),{revenueAsTag:!0,timeAsTimestamp:!1});return(n.pick||n.reduce&&"count"===n.reduce.aggregator)&&(r=o(r)),n.reduce&&(r=r[0]),r}t.exports=["stores/visitor_events",function(t){return{getEvents:d.bind(null,t),getByFrequency:v.bind(null,t),query:h.bind(null,t)}}]},1486:function(t,n,e){t.exports=function(t){t.registerApiModule("behavior",e(2210))}},1560:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(2079)),t.registerAudienceMatcher("behavior",e(334))}},334:function(t,n,e){var i=e(3654),r=e(2193),o=e(6568);t.exports={fieldsNeeded:["events"],match:function(t,n){var e=i.parse(n.value);return(void 0===e.version?[e]:r.buildFromSpecV0_1(e)).every((function(n){return o.isSatisfied(n,t.events)}))}}},2079:function(t,n,e){var i=e(770);t.exports={provides:"events",isTransient:!0,getter:[function(){return i.getEvents()}]}},5844:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(391))}},391:function(t,n,e){var i=e(3269),r=e(770),o=e(3654),a=e(2193);t.exports={provides:"customBehavior",shouldTrack:!0,isLazy:!1,getter:["stores/global","stores/visitor_attribute_entity",function(t,n){var e=t.getProjectId(),u=n.getCustomBehavioralAttributes(e).map((function(t){try{return{id:t.id,granularity:i.GRANULARITY.ALL,rule:a.buildFromSpecV0_2(o.parse(t.rule_json))}}catch(t){return}})).filter((function(t){return t})),c=r.getEvents();return i.evaluate(u,c)}]}},7559:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(4515)),t.registerAudienceMatcher("first_session",e(1638))}}
2,1638:function(t){t.exports={fieldsNeeded:["first_session"],match:function(t){return!!t.first_session}}},4515:function(t,n,e){var i=e(35),r=e(770),o=e(6817).getFieldValue,a=e(1587).CURRENT_SESSION_INDEX;t.exports={provides:"first_session",shouldTrack:!0,getter:[function(){var t=r.getEvents();if(t&&t.length>0){var n=t[0];return o(n,[i.FIELDS.SESSION_INDEX])===a}return!0}]}},3269:function(t,n,e){var i=e(5098),r={FIELDS:e(35).FIELDS},o=e(2193),a=e(6568);n.GRANULARITY={ALL:"all",CURRENT_SESSION:"current_session",LAST_30_DAYS:"last_30_days",LAST_60_DAYS:"last_60_days"},n.evaluate=function(t,e){var u={};if(0===e.length){for(var c=0;c<t.length;c++)u[t[c].id]=t[c].defaultValue;return u}var s=function(t){if(0===t.length)return[];for(var n=t.length-1,e=r.FIELDS.SESSION_ID,i=t[n][e];n>0&&i===t[n-1][e];)n--;return t.slice(n)}(e),f=function(t,n){if(0===t.length||n<=0)return[];var e=+new Date-n*o.MILLIS_IN_A_DAY;e-=e%o.MILLIS_IN_A_DAY;for(var i=t.length;i>0&&e<=t[i-1][r.FIELDS.TIME];)i--;return t.slice(i)}(e,60);for(c=0;c<t.length;c++){var l=t[c],d=e;l.granularity===n.GRANULARITY.CURRENT_SESSION?d=s:l.granularity===n.GRANULARITY.LAST_60_DAYS&&(d=f);try{var v=d;l.rule&&(v=a.execute(l.rule,d)),u[l.id]=l.defaultValue,1===v.length?u[l.id]=v[0][0]||l.defaultValue:i.debug("Behavior / Rule for",l.id,"returned",v.length,"results, expected 1")}catch(t){i.error("Behavior / Rule for",l.id,"failed with",t.message||"")}}return u}},770:function(t,n,e){var i=e(2584),r=e(9247).get("stores/visitor_events");n.getEvents=function(){var t=i.getEvents(),n=[].concat.apply([],Object.values(r.getForeignEvents())),e=[].concat.apply([],Object.values(r.getForeignEventQueues())),o=i.mergeAllEvents([t,n,e]);return o.slice(o.length-1e3)}},2193:function(t,n,e){var i=n,r={FIELDS:e(35).FIELDS,FIELDS_V0_2:e(35).FIELDS_V0_2},o=e(3654),a=e(5098),u=e(6568);i.MILLIS_IN_A_DAY=864e5,i.aggregateField=function(t,n){return"string"==typeof n&&(n=[n]),n=n||u.DEFAULT_FIELD,[u.generateAlias(t,n)]},i.groupField=function(t){return"string"==typeof t&&(t=[t]),[(t=t||u.DEFAULT_FIELD).join(".")]};var c={"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","==":"eq"};function s(t){return t=(t||"").toString().trim(),c[t]||t}function f(t,n,e){var o={where:n};if(t.count&&(o.limit=t.count),t.modifier===i.FREQUENCY_FILTERS.MOST_FREQUENT){var a=i.getFieldKeyPathForSource(t.name,e),u=i.aggregate("count"),c=i.aggregateField("count"),s=i.groupField(a);return Object.assign(o,{select:[{field:s}],groupBy:i.groupBy([a]),aggregate:[u],orderBy:[{field:c,direction:"DESC"}]})}return Object.assign(o,{orderBy:[{field:[r.FIELDS.TIME],direction:"DESC"}]})}i.fieldComparison=function(t,n,e){return"string"==typeof n&&(n=[n]),"exists"===(t=s(t))?{op:t,args:[{field:n}]}:{op:t,args:[{field:n},{value:e}]}},i.relativeTimeComparison=function(t,n){return{op:s(t),args:[{op:"-",args:[{eval:"now"},{field:[r.FIELDS.TIME]}]},{value:n*i.MILLIS_IN_A_DAY}]}},i.rangeTimeComparison=function(t){return Array.isArray(t)?{op:"between",args:[{field:[r.FIELDS.TIME]},{value:[t[0]||+new Date(0),t[1]||+new Date]}]}:(a.error("Rule builder","rangeTimeComparison passed invalid range",t),null)},i.groupBy=function(t){for(var n=[],e=0;e<t.length;e++)n[e]={field:t[e]};return n},i.aggregate=function(t,n){return"string"==typeof n&&(n=[n]),{op:t,args:[{field:n=n||u.DEFAULT_FIELD}]}},i.SOURCE_TYPES={BEHAVIOR:"events",CUSTOM_BEHAVIOR:"custom_behavior",DCP:"dcp"},i.FREQUENCY_FILTERS={MOST_FREQUENT:"most_frequent",LEAST_FREQUENT:"least_frequent"},i.RECENCY_FILTERS={MOST_RECENT:"most_recent",LEAST_RECENT:"least_recent"},i.getFieldKeyPathForSource=function(t,n){n=n||i.SOURCE_TYPES.BEHAVIOR;var e=[];return"string"==typeof t?(e=[t],n!==i.SOURCE_TYPES.BEHAVIOR||Object.values(r.FIELDS).includes(t)||(e=[r.FIELDS.OPTIONS,t])):e=t,e},i.buildFromSpecV0_1=function(t){if(!(t.action||t.filters&&0!==t.filters.length))throw new Error('Audience spec must have an "action" field or at least one "filter" '+o.stringify(t));var n=i.fieldComparison("gt",r.FIELDS.TIME,0),e=[],u=[];if(t.action&&(u.push(i.fieldComparison("eq",r.FIELDS.NAME,t.action.value)),t.action.type&&u.push(i.fieldComparison("eq",r.FIELDS.TYPE,t.action.type))),t.time)if("last_days"===t.time.type)u.push(i.relativeTimeComparison("lte",t.time.days));else if("range"===t.time.type){var c=i.rangeTimeComparison([t.time.start,t.time.stop]);c&&u.push(c)}else a.error("Rule builder",'Audience spec has bad "time" type',t.time.type);if(n={op:"and",args:u},t.count&&e.push({where:i.fieldComparison(t.count.comparator,"0",t.count.value),from:{select:[{field:i.aggregateField("count")}],where:n,aggregate:[i.aggregate("count")]}}
2),t.filters&&t.filters.forEach((function(o){var a,c,s=i.getFieldKeyPathForSource(o.name,t.source);if(o.modifier===i.FREQUENCY_FILTERS.MOST_FREQUENT?(a=i.aggregate("count"),c=i.aggregateField("count")):o.modifier===i.RECENCY_FILTERS.MOST_RECENT&&(a=i.aggregate("max",r.FIELDS.TIME),c=i.aggregateField("max",r.FIELDS.TIME)),a){var f=s,l=i.groupField(f);e.push({where:i.fieldComparison(o.comparator,"0",o.value),from:{select:[{field:l}],where:n,groupBy:i.groupBy([f]),aggregate:[a],orderBy:[{field:c,direction:"DESC"}],limit:1}})}else u.push(i.fieldComparison(o.comparator,s,o.value))})),t.pick){if(e.length>0)throw new Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+o.stringify(t));return[f(t.pick,n,t.source)]}return e.length>0?e:[{where:n}]},i.buildFromSpecV0_2=function(t){!function(t){var n=[];if(void 0===t)throw new Error("rule is undefined");if("object"!=typeof t||null===t)throw new Error("rule is not an Object");"0.2"!==t.version&&n.push('version: not "0.2"'),t.filter&&(Array.isArray(t.filter)?t.filter.forEach((function(t,e){var r=i.validateFieldKeyPathV0_2(t.field,i.FieldPurpose.FILTER);r&&n.push("filter["+e+"]: "+r);var o=i.validateComparatorAndValue(t.comparator,t.value);o&&n.push("filter["+e+"]: "+o)})):n.push("filter: not an array"));var e=[],r=[];t.sort&&(t.reduce&&t.reduce.aggregator&&"nth"!==t.reduce.aggregator&&n.push("sort: superfluous because we can apply aggregator "+o.stringify(t.reduce.aggregator)+" to unsorted items"),Array.isArray(t.sort)?t.sort.forEach((function(t,a){var u=i.validateFieldKeyPathV0_2(t.field,i.FieldPurpose.SORT);u&&n.push("sort["+a+"]: "+u),t.field&&"frequency"===t.field[0]?e.push(t):r.push(t);var c=function(t){var n="direction "+(o.stringify(t)||String(t));if(!["ascending","descending"].includes(t))return n+' is not "ascending" or "descending"'}(t.direction);c&&n.push("sort["+a+"]: "+c)})):n.push("sort: not an array"),e.length&&r.length&&n.push('sort: sorting by non-["frequency"] field is pointless because we are going to sort the picked values by ["frequency"]'),e.length&&!t.pick&&n.push('sort: sorting by ["frequency"] is impossible because no values have been picked'));if(t.pick){t.reduce&&"count"===t.reduce.aggregator&&n.push('pick: superfluous because we can apply aggregator "count" to raw events');var a=i.validateFieldKeyPathV0_2(t.pick.field);a&&n.push("pick: "+a)}if(t.reduce){var u=t.reduce.aggregator,c="aggregator "+(o.stringify(u)||String(u)),s=t.reduce.n,f="index "+(o.stringify(s)||String(s));["sum","avg","max","min","count","nth"].includes(u)||n.push("reduce: "+c+" is unknown"),["sum","avg","max","min"].includes(u)&&(t.pick||n.push("reduce: "+c+" is impossible to use because no values have been picked")),"nth"===u?(("number"!=typeof s||isNaN(s)||Math.floor(s)!==s||s<0)&&n.push("reduce: "+f+" is not a non-negative integer (mandated by "+c+")"),t.sort||n.push('reduce: aggregator "nth" is meaningless without a specific sort order')):void 0!==s&&n.push("reduce: "+f+" is defined (not mandated by "+c+")")}if(n.length)throw new Error(n.join("\n"))}(t);var n={where:{op:"and",args:(t.filter||[]).map((function(t){return"age"===t.field[0]?i.relativeTimeComparison(t.comparator||"eq",t.value/i.MILLIS_IN_A_DAY):i.fieldComparison(t.comparator||"eq",i.convertFieldKeyPathFromSpecV0_2(t.field),t.value)}))}};if(t.reduce&&"count"===t.reduce.aggregator)return Object.assign(n,{aggregate:[{op:"count",args:[{field:["*"]}]}],select:[{field:["_count_*"]}]});var e=[],r=[];if(t.sort&&(t.sort.forEach((function(t){["ascending","descending"].includes(t.direction)&&(["time","age"].includes(t.field[0])&&r.push(t),"frequency"===t.field[0]&&e.push(t))})),r.length&&!e.length&&(n.orderBy=r.map((function(t){return"time"===t.field[0]?{field:i.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===t.direction?"ASC":"DESC"}:"age"===t.field[0]?{field:i.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===t.direction?"DESC":"ASC"}:void 0})).filter((function(t){return t})))),t.pick&&t.pick.field){var a=i.convertFieldKeyPathFromSpecV0_2(t.pick.field);if(t.reduce&&["avg","max","min","sum"].includes(t.reduce.aggregator))return Object.assign(n,{aggregate:[{op:t.reduce.aggregator,args:[{field:a}]}],select:[{field:[u.generateAlias(t.reduce.aggregator,a)]}]});n=e.length?Object.assign(n,{groupBy:[{field:a}],aggregate:[{op:"count",args:[{field:["*"]}]}],orderBy:[{field:["_count_*"],direction:"ascending"===e[0].direction?"ASC":"DESC"}],select:[{field:[a.join(".")]}]}):Object.assign(n,{select:[{field:a}]})}if(t.reduce&&"nth"===t.reduce.aggregator){var c=t.reduce.n;if("number"==typeof c&&c>=0&&Number(c)===Math.floor(Number(c)))return Object.assign(n,{offset:c,limit:1})}return n},i.convertFieldKeyPathFromSpecV0_2=function(t){return"tags"===t[0]&&"revenue"===t[1]?["r"]:[r.FIELDS_V0_2[t[0]]].concat(t.slice(1))},i.FieldPurpose={FILTER:"filter",SORT:"sort",PICK:"pick"},i.validateFieldKeyPathV0_2=function(t,n){var e="field "+(o.stringify(t)||String(t));if(!Array.isArray(t)||!t.every((function(t){return"string"==typeof t}
2)))return e+" is not an array of strings";if("tags"===t[0]&&t.length>2||"tags"!==t[0]&&t.length>1)return e+" includes too many strings";if("tags"===t[0]&&t.length<2)return e+" does not specify an exact tag";if(t.length<1)return e+" does not specify a top-level field";var a=Object.keys(r.FIELDS_V0_2),u=["age","frequency"];return n===i.FieldPurpose.FILTER&&(a.push("age"),u=["frequency"]),n===i.FieldPurpose.SORT&&(a=["time","age","frequency"],u=["name","type","category","tags"]),u.includes(t[0])?e+" is not supported here":a.includes(t[0])?void 0:e+" is unknown"},i.validateComparatorAndValue=function(t,n){var e="comparator "+(o.stringify(t)||String(t)),i="value "+(o.stringify(n)||String(n));if("string"!=typeof t&&void 0!==t)return e+" is not a string";switch(t){case void 0:case"eq":case"is":case"contains":break;case"lt":case"gt":case"lte":case"gte":if("number"!=typeof n)return i+" is not a number (mandated by "+e+")";break;case"in":if(!Array.isArray(n))return i+" is not an array (mandated by "+e+")";break;case"between":if(!(Array.isArray(n)&&2===n.length&&"number"==typeof n[0]&&"number"==typeof n[1]&&n[0]<=n[1]))return i+" is not a pair of increasing numbers (mandated by "+e+")";break;case"regex":if(!("string"==typeof n||Array.isArray(n)&&2===n.length&&"string"==typeof n[0]&&"string"==typeof n[1]))return i+" is not a pattern string or a [pattern string, flags string] array (mandated by "+e+")";break;case"exists":if(void 0!==n)return i+" is not undefined (mandated by "+e+")";break;default:return e+" is unknown"}}},6568:function(t,n,e){var i=e(7846),r=e(5098),o=r.log.bind(r),a=e(1308),u=e(6817).getFieldValue,c=e(3654),s=function(t,n,e){if(t.getValueOrDefault)return t.getValueOrDefault(n,e);if(!Array.isArray(n))return e;var i=u(t,n);return void 0===i&&(i=e),i},f=function(t){return"string"==typeof t?t.trim().toLowerCase():t};n.clause={WHERE:"where",GROUP_BY:"groupBy",AGGREGATE:"aggregate",HAVING:"having",ORDER_BY:"orderBy",SELECT:"select",OFFSET:"offset",LIMIT:"limit",FROM:"from"},n.DEFAULT_FIELD=["*"],n.booleanOperators={eq:function(t){var n=t.map(f);return n[0]==n[1]},is:function(t){return t[0]===t[1]},gt:function(t){return t[0]>t[1]},lt:function(t){return t[0]<t[1]},gte:function(t){return t[0]>=t[1]},lte:function(t){return t[0]<=t[1]},in:function(t){return(t[1]||[]).map(f).includes(f(t[0]))},between:function(t){return t[1][0]<=t[0]&&t[0]<=t[1][1]},contains:function(t){var n=t.map((function(t){return"string"==typeof t?t.toLowerCase():t}));return-1!==(n[0]||"").indexOf(n[1])},regex:function(t){try{var n,e;return"string"==typeof t[1]?(n=t[1],e="i"):(n=t[1][0]||"",e=t[1][1]||""),new RegExp(n,e).test(t[0])}catch(t){return r.error("Rules",'In operator "regex", error: '+(t.message||"invalid RegExp /"+[n,e].join("/"))),!1}},exists:function(t){return void 0!==t[0]},and:function(t){return t.every((function(t){return t}))},or:function(t){return t.some((function(t){return t}))},not:function(t){return!t[0]}},n.arithmeticOperators={"+":function(t){return(t[0]||0)+(t[1]||0)},"-":function(t){return(t[0]||0)-(t[1]||0)},"/":function(t){return(t[0]||0)/(t[1]||1)},"%":function(t){return(t[0]||0)%(t[1]||1)}},n.aggregateOperators={sum:function(t,e){for(var i=t[0]||n.DEFAULT_FIELD,r=0,o=0;o<e.length;o++)r+=s(e[o],i,0);return r},avg:function(t,e){if(0===e.length)return 0;for(var i=t[0]||n.DEFAULT_FIELD,r=0,o=0;o<e.length;o++)r+=s(e[o],i,0);return r/e.length},max:function(t,e){for(var i=t[0]||n.DEFAULT_FIELD,r=Number.NEGATIVE_INFINITY,o=0;o<e.length;o++)r=Math.max(r,s(e[o],i,Number.NEGATIVE_INFINITY));return r},min:function(t,e){for(var i=t[0]||n.DEFAULT_FIELD,r=Number.POSITIVE_INFINITY,o=0;o<e.length;o++)r=Math.min(r,s(e[o],i,Number.POSITIVE_INFINITY));return r},count:function(t,n){return n.length}};var l={now:function(){return a.now()}},d=function(t,e){if(e.hasOwnProperty("value"))return e.value;if(e.hasOwnProperty("field"))return s(t,e.field);if(e.hasOwnProperty("eval"))return e.eval in l?l[e.eval]():void r.error("Rules","Unknown function: "+e.eval);if(e.op){var i,o=(i=e.op)in n.booleanOperators?n.booleanOperators[i]:i in n.arithmeticOperators?n.arithmeticOperators[i]:null;if(o){var a=d.bind(null,t);return o((e.args||[]).map((function(t){return a(t)})),t)}r.error("Rules","Unknown operator: "+e.op)}else r.error("Rules","No operator specified: "+c.stringify(e))};n.generateAlias=function(t,n){return"_"+t+"_"+n.join(".")};n.rewrite=function(t){var e=[],i={};function o(t,a){if(Array.isArray(t)&&("and"!==t[0]&&"or"!==t[0]&&"not"!==t[0]&&r.error("Rules","Unexpected operation "+t[0]+". Continuing optimistically."),t={op:t[0],args:t.slice(1)}),t.hasOwnProperty("field")||t.hasOwnProperty("value")||t.hasOwnProperty("eval"))return t;if(a&&t.op in n.aggregateOperators){var u=(t.args&&t.args[0]||{}).field||n.DEFAULT_FIELD,c=n.generateAlias(t.op,u);return c in i||(e.push({op:t.op,args:t.args}),i[c]=!0),{field:[c]}}for(var s=[],f=t.args||[],l=0;l<f.length;l++)s[l]=o(f[l],a);return{op:t.op,args:s}}var a={};t.hasOwnProperty(n.clause.WHERE)&&(a[n.clause.WHERE]=o(t[n.clause.WHERE],!1)),t.hasOwnProperty(n.clause.HAVING)&&(a[n.clause.HAVING]=o(t[n.clause.HAVING],!0)),(t.hasOwnProperty(n.clause.AGGREGATE)||e.length>0)&&(a[n.clause.AGGREGATE]=(t[n.clause.AGGREGATE]||[]).concat(e));for(var u=[n.clause.GROUP_BY,n.clause.ORDER_BY,n.clause.SELECT,n.clause.OFFSET,n.clause.LIMIT],c=0;c<u.length;c++)t.hasOwnProperty(u[c])&&(a[u[c]]=t[u[c]]);return t.hasOwnProperty(n.clause.FROM)&&(a[n.clause.FROM]=n.rewrite(t[n.clause.FROM])),a};var v=function(t,e){e=e||0;var i=[];if(t.hasOwnProperty(n.clause.WHERE)?t[n.clause.WHERE].op?t[n.clause.WHERE].op in n.booleanOperators||i.push("Non-boolean WHERE clause operator"):i.push("Missing WHERE clause operator"):i.push("Missing WHERE clause"),!t.hasOwnProperty(n.clause.HAVING)||(t[n.clause.HAVING].op?t[n.clause.HAVING].op in n.booleanOperators||i.push("Non-boolean HAVING clause operator"):i.push("Missing HAVING clause operator")),t.hasOwnProperty(n.clause.GROUP_BY)&&!t.hasOwnProperty(n.clause.AGGREGATE)&&i.push("No AGGREGATE clause specified with GROUP_BY clause"),t.hasOwnProperty(n.clause.SELECT)){var r=t[n.clause.SELECT];if(Array.isArray(r))for(var o=0;o<r.length;o++)r[o].op&&r[o].op in n.aggregateOperators&&i.push('In SELECT clause, aggregate operator "'+r[o].op+'" specified in selector at index '+o);else i.push("SELECT clause must be an array")}if(t.hasOwnProperty(n.clause.OFFSET)){var a=t[n.clause.OFFSET];("number"!=typeof a||Number(a)<0||Number(a)!==Math.floor(Number(a)))&&i.push("OFFSET must be a non-negative integer")}if(t.hasOwnProperty(n.clause.LIMIT)){var u=t[n.clause.LIMIT];("number"!=typeof u||Number(u)<0||Number(u)!==Math.floor(Number(u)))&&i.push("LIMIT must be a non-negative integer")}return e>0&&(i=i.map((function(t){return"Sub-rule "+e+": "+t}))),t.hasOwnProperty(n.clause.FROM)&&(i=i.concat(v(t[n.clause.FROM],e+1))),i},h=function(t,e){var i,a,u,f=e;if(t.hasOwnProperty(n.clause.FROM)&&(r.debug("Evaluating FROM clause:",t[n.clause.FROM]),f=h(t[n.clause.FROM],f),r.debug("Results after FROM:",f)),r.debug("Evaluating WHERE clause:",t[n.clause.WHERE]),f=f.filter((function(e){return d(e,t[n.clause.WHERE])})),r.debug("Results after WHERE:",f),t.hasOwnProperty(n.clause.AGGREGATE)){r.debug("Evaluating AGGREGATE clause:",t[n.clause.AGGREGATE]);var l=function(t,n){var e={};if(void 0===t||!Array.isArray(t)||0===t.length)return e["*"]={fieldValues:{},events:n},e;
2for(var i=t.map((function(t){return t.field})),r=0;r<n.length;r++){for(var o=n[r],a=[],u={},f=0;f<i.length;f++){var l=i[f],d=s(o,l),v=l.join(".");u[v]=d,a.push(encodeURIComponent(v)+"="+encodeURIComponent(c.stringify(d)))}var h=a.join("&");e.hasOwnProperty(h)||(e[h]={fieldValues:u,events:[]}),e[h].events.push(o)}return e}(t[n.clause.GROUP_BY],f);f=function(t,n){var e=[];return Object.keys(t).forEach((function(i){var r=t[i],o=Object.assign({},r.fieldValues),a=n[i]||{};Object.assign(o,a),e.push(o)})),e}(l,(i=t[n.clause.AGGREGATE],a=l,u={},Object.keys(a).forEach((function(t){var e=a[t];u[t]={};for(var o=0;o<i.length;o++){var c=i[o],s=c.op;if(s in n.aggregateOperators){var f=(c.args&&c.args[0]||{}).field||n.DEFAULT_FIELD,l=n.generateAlias(s,f),d=n.aggregateOperators[s]([f],e.events);u[t][l]=d}else r.error("Rules","Unknown aggregate operator "+s)}})),u)),r.debug("Results after AGGREGATE:",f)}t.hasOwnProperty(n.clause.HAVING)&&(r.debug("Evaluating HAVING clause:",t[n.clause.HAVING]),f=f.filter((function(e){return d(e,t[n.clause.HAVING])})),r.debug("Results after HAVING:",f)),t.hasOwnProperty(n.clause.ORDER_BY)&&(r.debug("Evaluating ORDER_BY clause:",t[n.clause.ORDER_BY]),f=function(t,n){return Array.isArray(t)?0===t.length?n:n.sort((function(n,e){for(var i=0;i<t.length;i++){var r=t[i],o="ASC"===(r.direction||"ASC")?1:-1,a=r.field,u=s(n,a,0),c=s(e,a,0);if(u<c)return-o;if(u>c)return o}return 0})):(o("Rules","groupBy rule must be an array"),n)}(t[n.clause.ORDER_BY],f),r.debug("Results after ORDER_BY:",f));var v,p=0;return t.hasOwnProperty(n.clause.OFFSET)&&(r.debug("Evaluating OFFSET clause:",t[n.clause.OFFSET]),p=Number(t[n.clause.OFFSET])),t.hasOwnProperty(n.clause.LIMIT)&&(r.debug("Evaluating LIMIT clause:",t[n.clause.LIMIT]),v=p+Number(t[n.clause.LIMIT])),(p>0||void 0!==v)&&(f=f.slice(p,v),r.debug("Results after OFFSET/LIMIT:",f)),t.hasOwnProperty(n.clause.SELECT)&&(r.debug("Evaluating SELECT clause:",t[n.clause.SELECT]),f=function(t,n){return n.map((function(n){return t.map((function(t){return d(n,t)}))}))}(t[n.clause.SELECT],f),r.debug("Results after SELECT:",f)),f};n.execute=function(t,e){t=n.rewrite(t),r.shouldLog(i.LogLevel.DEBUG)&&r.groupCollapsed("Evaluating Behavioral Rule"),r.debug("Rule:",t,c.stringify(t)),r.debug("Events:",e);var o=v(t);if(o.length>0)throw new Error("Rule "+c.stringify(t)+" has violations: "+o.join("\n"));var a=h(t,e);return r.debug("Rule result:",a),r.shouldLog(i.LogLevel.DEBUG)&&r.groupEnd(),a},n.isSatisfied=function(t,e){try{return n.execute(t,e).length>0}catch(n){return r.error("Rules","Error "+n.toString()+" while evaluating rule "+c.stringify(t)),!1}}},3946:function(t,n,e){t.exports=function(t){t.registerDependency("sources/browser_id",e(6671)),t.registerVisitorProfileProvider(e(9379)),t.registerVisitorProfileProvider(e(4400)),t.registerAudienceMatcher("browser_version",e(8480))}},8480:function(t,n,e){var i=e(4966).G;t.exports={fieldsNeeded:["browserVersion","browserId"],match:function(t,n){var e=n.value,r=t.browserId,o=t.browserVersion;if(0===e.indexOf(r)){var a=e.substr(r.length);return 0===i(o,a)}return!1}}},9379:function(t){t.exports={provides:"browserId",shouldTrack:!0,isSticky:!0,getter:["sources/browser_id",function(t){return t.getId()}]}},4400:function(t){t.exports={provides:"browserVersion",getter:["sources/browser_id",function(t){return t.getVersion()}]}},6671:function(t,n,e){var i=e(2260);n.getId=function(){return i.get().browser.id},n.getVersion=function(){return i.get().browser.version}},6101:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(2928)),t.registerAudienceMatcher("campaign",e(3087))}},3087:function(t,n,e){var i=e(5571);t.exports={fieldsNeeded:["campaign"],match:function(t,n){return i.hasMatch(n.value,n.match,t.campaign)}}},2928:function(t,n,e){var i=e(6920);t.exports={provides:"campaign",shouldTrack:!0,isSticky:!0,getter:[function(){return i.getQueryParamValue("utm_campaign")}]}},8585:function(t,n,e){var i=e(3654),r=e(9146),o=e(5098),a=e(5007),u=e(2930);n.getCmabPredictionUrl=function(){return"https://prediction.cmab.optimizely.com/predict"},n.getCmabPredictionUrlForExperiment=function(t){return t?n.getCmabPredictionUrl()+"/"+t:""},n.createPayload=function(t,n){var e=t.variations.map((function(t){return t.id})),i=u.getVisitorCmabAttributesForExperiment(t),r=u.getDcpCustomerIds(),o=u.getDcpServiceId();return{instances:[{visitorId:a.getCurrentId(),experimentId:t.id,cmabUUID:n,variationIds:e,attributes:i,dcpCustomerIds:r,dcpServiceId:o}]}},n.parseApiResponse=function(t){var n=null;try{n=i.parse(t)}catch(t){return o.error("CMAB API / Error parsing response:",t),null}return n&&n.predictions&&0!==n.predictions.length?n.predictions[0].variation_id.toString():(o.debug("CMAB API / No predictions foun
2d in API response",n),null)},n.validateVariationId=function(t,n){return t&&n.variations.find((function(n){return n.id===t}))?(o.debug("CMAB API / Variation ID:",t,"from API response found in experiment:",n.id),t):(o.debug("CMAB API / Variation ID:",t,"from API response not found in experiment:",n.id),null)},n.handleCmabApiResponse=function(t,e){if(200!==t.status)return o.error("CMAB API / API call failed with status:",t.status,t.statusText),null;o.debug("CMAB API / API call successful:",t.responseText);var i=n.parseApiResponse(t.responseText);return n.validateVariationId(i,e)},n.makeSyncApiCallWithXHR=function(t,e){o.debug("CMAB API / SYNC / Making a synchronous API call to get variation.");try{var r=n.createPayload(t,e),a=n.getCmabPredictionUrlForExperiment(t.id),u=new XMLHttpRequest;return u.open("POST",a,!1),u.send(i.stringify(r)),n.handleCmabApiResponse(u,t)}catch(t){return o.error("CMAB API / SYNC / API call encountered an error:",t),null}},n.makeAsyncApiCall=function(t,e){o.debug("CMAB API / ASYNC / Making an asynchronous API call to get variation.");var i=n.createPayload(t,e),a=n.getCmabPredictionUrlForExperiment(t.id);return r.request({url:a,contentType:"application/json",method:"POST",data:i})}},9769:function(t,n,e){var i=e(5098),r=e(2930),o=e(8585),a=e(181);n.isCmabEnabled=function(){return!0},n.isExperimentSyncApiEnabled=function(t){return!0},n.defaultToSnippetBucketing=function(t,n,e){i.debug("CMAB / Defaulting to snippet bucketing with variation:",n,"for experiment:",t.id),r.setCmabVariationDataInVisitorStore(t,n,e)},n.processCmabExperiment=function(t,e){if(!n.isCmabEnabled())return i.debug("CMAB / Feature flag is disabled. Defaulting to snippet bucketing with variation:",e,"for experiment:",t.id),e;if(i.debug("CMAB / Feature flag is enabled. Processing CMAB for experiment:",t.id),r.activateTimeoutForNonBucketedCmabExperiments(t),!r.isCmabExperiment(t))return e;var u=r.getCmabVariationDataFromVisitorStore(t);if(!r.isCmabTimeout(t,u))return u.variationId;a.startCmabApiCallPerformanceTimer(t.id);
2var c=null,s=r.generateCmabUUID();if(n.isExperimentSyncApiEnabled(t))try{return(c=o.makeSyncApiCallWithXHR(t,s))?(r.setCmabVariationDataInVisitorStore(t,c,s),a.endCmabApiCallPerformanceTimer(t.id),c):(n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),e)}catch(r){return i.error("CMAB API / SYNC / API call failed with error:",r),n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),null}return o.makeAsyncApiCall(t,s).then((function(u){return(c=o.handleCmabApiResponse(u,t))?(i.debug("CMAB API / ASYNC / Variation:",c,"for experiment:",t.id),r.setCmabVariationDataInVisitorStore(t,c,s),a.endCmabApiCallPerformanceTimer(t.id),c):(n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),e)}),(function(r){return i.error("CMAB API / ASYNC / API call failed with error:",r),n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),null})),n.defaultToSnippetBucketing(t,e,s),a.endCmabApiCallPerformanceTimer(t.id),e},n.getCmabUUIDAndUpdateSessionTimeout=function(t,n){var e=r.getCmabUUIDFromVisitorStore(t,n);return r.updateCmabTimeoutInVisitorStore(t,n),e}},181:function(t,n,e){e(3672),e(5098);n.startCmabApiCallPerformanceTimer=function(t){0},n.endCmabApiCallPerformanceTimer=function(t){0}},2930:function(t,n,e){var i=e(2869),r=i.omit,o=i.omitBy,a=e(8906),u=e(3654),c=e(9247),s=e(9241),f=e(5007),l=e(5098),d=e(7846),v=e(7060),h=c.get("stores/visitor"),p=c.get("stores/plugins"),g=c.get("stores/global"),m=c.get("stores/layer");n.generateCmabUUID=function(){return s.generate()},n.getCmabLayerIdFromExperiment=function(t){return t.experimentMetadata&&t.experimentMetadata.layerId||t.id},n.isCmabExperiment=function(t){var n=t.experimentMetadata&&t.experimentMetadata.allocationPolicy;return n?n===d.AllocationPolicyEnum.CMAB:(l.debug("No allocation policy found in metadata for experiment:",t.id),!1)},n.isVisitorInHoldback=function(t){if(g.isGlobalHoldback())return l.debug("CMAB / Visitor is in global holdback, no timeout"),!0;var e=n.getCmabLayerIdFromExperiment(t),i=m.getLayerState(e);return!!(i&&i.decision&&i.decision.isLayerHoldback)&&(l.debug("CMAB / Visitor is in layer holdback, no timeout"),!0)},n.isCmabTimeout=function(t,e){if(!n.isCmabVariationStorageDataValid(e))return l.debug("CMAB / Timeout CMAB Storage Variation Data is invalid"),!0;if(n.isVisitorInHoldback(t))return!1;var i=e.variationId;return t.variations.find((function(t){return t.id===i}))?n.hasSessionOrAbsoluteTimeoutOccurred(e)?(l.debug("CMAB / Timeout Session or absolute timeout occurred:",e.cmabUUID),!0):(l.debug("CMAB / No timeout happened for:",e.cmabUUID),!1):(l.debug("CMAB / Timeout Variation ID:",i,"not found in experiment:",t.id),!0)},n.hasSessionOrAbsoluteTimeoutOccurred=function(t){if(!n.isCmabVariationStorageDataValid(t))return l.debug("CMAB / Timeout CMAB Storage Variation Data is invalid"),!0;var e=(new Date).getTime();new Date(t.stSessionTimeout).getTime();
2return e-new Date(t.stAbsoluteTimeout).getTime()>864e5},n.isCmabVariationStorageDataValid=function(t){if(!t)return!1;for(var n=["variationId","visitorId","cmabUUID","stSessionTimeout","stAbsoluteTimeout","userAttributeHash"],e=0;e<n.length;e++){var i=n[e];if(!t[i])return l.debug("CMAB / Storage data not found: "+i+" is missing"),!1}return!0},n.activateTimeoutForNonBucketedCmabExperiments=function(t){var e=n.getCmabLayerIdFromExperiment(t),i=t.id;l.debug("CMAB / Visitor is bucketed into experiment id:",i+" from layer id:",e);var a=f.getContextualMabMap();if(a&&a[e]){var u=a[e];l.debug("CMAB / All CMAB experiments found for the layer id:",e,"are:",u),l.debug("CMAB / Excluding the currently bucketed experiment id: ",i," from all CMAB experiments found for the current layer id: ",e);var c=r(u,[i]);c=o(c,(function(t){return t.isTimeout})),l.debug("CMAB / Non-bucketed CMAB experiments which will be timed out:",c),Object.keys(c).forEach((function(t){var n=c[t];n.isTimeout=!0,f.updateContextualMabMap(e,t,n)})),f.persistContextualMabMap()}else l.debug("CMAB / No CMAB experiments found for the current layer id:",e)},n.getCmabUUIDFromVisitorStore=function(t,n){if(!n||!t)return null;var e=f.getContextualMabMap();return e&&e[t]&&e[t][n]?e[t][n].cmabUUID:null},n.updateCmabTimeoutInVisitorStore=function(t,e){var i;if(!e||!t)return null;var r=f.getContextualMabMap();if(null==r||null==(i=r[t])?void 0:i[e]){var o=r[t][e];o.isTimeout||n.hasSessionOrAbsoluteTimeoutOccurred(o)||(o.stSessionTimeout=(new Date).toISOString(),f.updateContextualMabMap(t,e,o),f.persistContextualMabMap())}},n.getCmabVariationDataFromVisitorStore=function(t){var e,i=n.getCmabLayerIdFromExperiment(t),r=f.getContextualMabMap();if(!(null==r||null==(e=r[i])?void 0:e[t.id]))return l.debug("CMAB / No CMAB store found for experiment:",t.id),null;l.debug("CMAB / CMAB store found for experiment:",t.id);var o=r[i][t.id];return l.debug("CMAB / Contextual MAB Variation Data:",o),o},n.setCmabVariationDataInVisitorStore=function(t,e,i){l.debug("CMAB / Setting CMAB store for experiment:",t.id+" with variation:",e+" and cmabUUID:",i);var r=(new Date).toISOString(),o=n.getCmabLayerIdFromExperiment(t),a=n.getVisitorAttributesHash(t),u={variationId:e,visitorId:f.getCurrentId(),cmabUUID:i,stSessionTimeout:r,stAbsoluteTimeout:r,userAttributeHash:a,isTimeout:!1};f.updateContextualMabMap(o,t.id,u),f.persistContextualMabMap()},n.getStringifiedValue=function(t){if("string"==typeof t)return t;var n="";try{n=u.stringify(t)}catch(n){l.error("CMAB / Failed to stringify value for attributes:",t,n)}return n},n.getVisitorCmabAttributesForExperiment=function(t){var e,i=[],r=p.getAllPlugins(d.PluginTypes.audienceMatchers);if(!(null==t||null==(e=t.experimentMetadata)?void 0:e.cmabAttributes))return i;var o=t.experimentMetadata.cmabAttributes,a=o.customAttributes,u=o.standardAttributes;return a.forEach((function(t){var e,r=(null==(e=h.getAttribute(["custom",t.id]))?void 0:e.value)||"";r=n.getStringifiedValue(r),i.push({id:t.id,type:t.type,value:r,client_api_name:t.clientApiName})})),u.forEach((function(t){var e,o,a=(null==(e=r[t.id])||null==(o=e.fieldsNeeded)?void 0:o[0])||t.id,u=h.getAttribute(a)||"";u=n.getStringifiedValue(u),i.push({id:t.id,type:t.type,value:u})})),l.debug("CMAB / Current Visitor CMAB Attributes for Experiment:",t.id,"are:",i),i},n.generateAttributesHash=function(t){return a.hashToHex(a.toByteString(u.stringify(t)),a.Seed.BEHAVIOR_EVENT)},n.getVisitorAttributesHash=function(t){var e=n.getVisitorCmabAttributesForExperiment(t);return n.generateAttributesHash(e)},n.hasAttributesChanged=function(t,e){var i=n.getVisitorAttributesHash(t);return i!==e.userAttributeHash&&(l.debug("CMAB / User attributes hash has changed from:",e.userAttributeHash," to ",i),!0)},n.getDcpCustomerIds=function(){var t=g.getDCPKeyfieldLocators(),n=f.getCurrentId();return v.getCurrentAliases(t,n)},n.getDcpServiceId=function(){return g.getDCPServiceId()}},3098:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(108)),t.registerAudienceMatcher("cookies",e(6691))}},6691:function(t,n,e){var i=e(5571);t.exports={fieldsNeeded:["cookies"],match:function(t,n){var e=n.name,r=n.value,o=n.match,a=t.cookies[e];return i.hasMatch(r,o,a)}}},108:function(t,n,e){var i=e(2604),r=e(9247).get("stores/audience_data");t.exports={provides:"cookies",isLazy:!0,getter:[function(){var t=i.getAll(),n=r.getFeaturesNeeded("cookies");return Object.keys(t).reduce((function(e,i){var r=t[i];return Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=r),e}),{})}]}},4235:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(3826));var n=e(8075);t.registerAudienceMatcher("custom_attribute",n),t.registerAudienceMatcher("custom_dimension",n)}},8075:function(t,n,e){var i=e(5571);n.match=function(t,n){var e;return t.custom&&(e=t.custom[n.name]),"object"==typeof e&&null!==e&&(e=e.value),i.hasMatch(n.value,
2n.match,e)}},3826:function(t,n,e){var i=e(7846),r=e(5098),o=e(9247).get("stores/dimension_data");t.exports={provides:"custom",attributionType:i.AttributionTypes.LAST_TOUCH,restorer:function(t){return Object.keys(t).reduce((function(n,e){var i=t[e],a=e,u=o.getByApiName(e),c=o.getById(e);return"object"!=typeof i||null===i?(r.error('Unable to restore custom attribute "'+e+'" because value is not an object'),n):(!i.id&&u&&(c=u,a=u.id,Object.assign(i,{id:c.segmentId||c.id})),!i.name&&c&&c.apiName&&(i.name=c.apiName),i.id||c||r.warn("Unable to determine ID for custom attribute:",e,"; segmentation is disabled."),n[a]=i,n)}),{})},shouldTrack:!0}},7060:function(t,n,e){var i=e(6920),r=e(2604),o=e(5098),a=e(8704),u="cookie",c="js_variable",s="query_param",f="uid";n.getCurrentAliases=function(t,n){var e={};return t.forEach((function(t){if(!t.is_optimizely){var l=t.dcp_datasource_id,d=t.type,v=t.name||"";if(l){var h=null;switch(d){case u:h=r.get(v);break;case c:try{h=a.getGlobal(v)}catch(t){o.warn("Failed getting global DCP keyfieldLocator:",v)}break;case s:h=i.getQueryParamValue(v);break;case f:h=n}("number"==typeof h||"string"==typeof h)&&(e[l]=h)}else o.error("DCP / No DCP datasource id specified")}})),e}},5549:function(t,n,e){t.exports=function(t){t.registerDependency("sources/device",e(292)),t.registerVisitorProfileProvider(e(5516)),t.registerAudienceMatcher("device",e(3695))}},3695:function(t){t.exports={fieldsNeeded:["device"],match:function(t,n){return t.device===n.value}}},5516:function(t){t.exports={provides:"device",shouldTrack:!0,isSticky:!0,getter:["sources/device",function(t){return t.getDevice()}]}},292:function(t,n,e){var i=e(2260);n.getDevice=function(){var t=i.get().device;return"unknown"!==t.model?t.model:"tablet"===t.type?"tablet":t.isMobile?"mobile":"desktop"}},9186:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(7076)),t.registerAudienceMatcher("device_type",e(6371))}},6371:function(t){t.exports={fieldsNeeded:["device_type"],match:function(t,n){return t.device_type===n.value}}},7076:function(t,n,e){var i=e(2260);t.exports={provides:"device_type",shouldTrack:!0,isSticky:!0,getter:[function(){var t=i.get().device;switch(t.type){case"mobile":return"phone";case"tablet":case"desktop_laptop":return t.type;default:return"other"}}]}},4220:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(6838)),t.registerAudienceMatcher("location",e(9219))}},9219:function(t,n){n.fieldsNeeded=["location"],n.match=function(t,n){if(!t.hasOwnProperty("location"))return!1;var e=t.location,i=n.value.split("|"),r=(i[0]||"").trim(),o=(i[1]||"").trim(),a=(i[2]||"").trim(),u=(i[3]||"").trim(),c=(i.length>4&&i[4]||"").trim();if("GB"===r){o={EN:"ENG",NI:"NIR",SC:"SCT",WA:"WLS"}[o]||o}switch(i.length){case 1:if(e.country===r)return!0;break;case 2:if(e.region===o&&e.country===r)return!0;break;case 3:var s=function(t){if(!t)return"";var n=t.trim().replace(/\s+/g,"").toUpperCase();return n.endsWith("CITY")?n.substring(0,n.length-4):n};if(s(e.city)===s(a)&&(e.region===o||""===o)&&e.country===r)return!0;break;case 4:if(e.continent===u)return!0;break;case 5:if(e.dma===c)return!0}return!1}},6838:function(t,n,e){var i=e(1813);t.exports={provides:"location",isAsync:!0,getter:[function(){return i.getIPDerivedGeolocation()}]}},213:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(1610)),t.registerAudienceMatcher("query",e(5905))}},5905:function(t,n,e){var i=e(5571);n.fieldsNeeded=["queryParams"],n.match=function(t,n){var e=t.queryParams.find((function(t){return t[0]===n.name}));return i.hasMatch(n.value,n.match,e?e[1]:null)}},1610:function(t,n,e){var i=e(6920);t.exports={provides:"queryParams",getter:[function(){return i.getQueryParams()}]}},8052:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(202)),t.registerAudienceMatcher("referrer",e(4563))}},4563:function(t,n,e){var i=e(4632);n.fieldsNeeded=["referrer"],n.match=function(t,n){return null!==t.referrer&&i(t.referrer,n)}},202:function(t,n,e){var i=e(4833),r=e(7026);t.exports={provides:"referrer",shouldTrack:!0,isSticky:!0,getter:[function(){var t=r.getReferrer()||i.getReferrer();return""===t&&(t=null),t}]}},7367:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(1280)),t.registerAudienceMatcher("source_type",e(801))}},801:function(t,n,e){var i=e(5571);n.fieldsNeeded=["source_type"],n.match=function(t,n){return i.hasMatch(n.value,
2n.match,t.source_type)}},1280:function(t,n,e){var i=e(6920),r=e(4833),o=e(7026),a=e(2237),u=["google\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","bing\\.\\w{2,3}(\\.\\w{2,3})?/(search|url)","yahoo\\.\\w{2,3}(\\.\\w{2,3})?/search","baidu\\.\\w{2,3}(\\.\\w{2,3})?/","https://(www)?\\.google\\..*?/?$","https://search\\.yahoo\\..*?/?$","https://(www)?\\.bing\\..*?/?$"];t.exports={provides:"source_type",shouldTrack:!0,isSticky:!1,getter:[function(){return function(t,n){var e,c=t(),s=function(){if(i.getQueryParamValue("utm_source")||i.getQueryParamValue("utm_campaign")||i.getQueryParamValue("gclid")||i.getQueryParamValue("otm_source"))return"campaign";for(var t=o.getReferrer()||r.getReferrer(),n=0;n<u.length;n++){var e=u[n];if(t.match(e))return"search"}return t&&a.guessDomain(t)!==a.guessDomain(i.getUrl())?"referral":"direct"}();e=s,(!c||"direct"!==e)&&n(s)}}]}},9765:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(4666)),t.registerVisitorProfileProvider(e(5645)),t.registerAudienceMatcher("time_and_day",e(1435))}},1435:function(t,n,e){var i=e(8859);n.fieldsNeeded=["currentTimestamp"],n.match=function(t,n){return i.test(n.value,new Date(t.currentTimestamp))}},4666:function(t,n,e){var i=e(1308);t.exports={provides:"currentTimestamp",shouldTrack:!0,isLazy:!0,getter:[function(){return i.now()}]}},5645:function(t){t.exports={provides:"offset",shouldTrack:!0,isLazy:!0,getter:[function(){return(new Date).getTimezoneOffset()}]}},8859:function(t,n){function e(t){var n=t.split(":");if(2!==n.length)throw new Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+t);return 60*parseInt(n[0],10)+parseInt(n[1],10)}n.test=function(t,n){var i=function(t){var n=t.split("_");if(3!==n.length)throw new Error("Invalid time and day string "+t);var e=n[2].split(",");return{start_time:n[0],end_time:n[1],days:e}}(t),r=e(i.start_time),o=e(i.end_time),a=60*n.getHours()+n.getMinutes(),u=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][n.getDay()];return a>=r&&a<=o&&i.days.includes(u)}},5993:function(t,n,e){t.exports=function(t){t.registerVisitorProfileProvider(e(6016))}},6016:function(t){t.exports={provides:"visitorId",getter:["stores/visitor_id",function(t){return t.getRandomId()}]}},74:function(t,n,e){var i,r=e(3654),o=e(5098),a=e(3672),u=e(51),c=e(8172),s=e(8704),f=e(4168),l=e(4341),d=e(9479),v=e(6931),h=e(9247),p=e(7710),g=h.get("stores/tracker_optimizely"),m=h.get("stores/rum"),b=h.get("stores/integration_settings"),_="google_analytics_4",y="gtag",w="dataLayer",E="optimizely_decision",I="experience_impression",A=[],T=function(){var t=g.canSend();if(o.debug("GA4 Integration: Got canSend:",t),t){for(var n=[];A.length>0;){o.debug("GA4 Integration: decisionEventQueue length:",A.length);var e=A.shift(),r=e.firstPartyData,a=e.customEventData;o.debug("GA4 Integration: calling track with decision data:",{firstPartyData:r,customEventData:a}),i?n.push(O(r,a).catch((function(t){o.warn("Tracker for GTM ",_,"failed:",t)}))):n.push(S(r,a).catch((function(t){o.warn("Tracker for ",_,"failed:",t)})))}return Promise.all(n)}return o.debug("GA4 Integration: Not sending events (holding)"),Promise.resolve()},S=function(t,n){return u.pollFor((function(){return function(t){var n=t.getGlobal(y);return n||null}(s)}),200,50).then((function(e){o.log("GA4 Integration: gtag finally exists, sending now."),m.getSampleRum()&&a.timeEnd("gtagReady"),o.debug("GA4 Integration: calling ga4 with data: "+r.stringify(t)),e("event",I,t),o.debug("GA4 Integration: calling ga4 with custom event data: "+r.stringify(n)),e("event",E,n)}))};var O=function(t,n){var e=s.getGlobal(w);o.debug("GA4 Integration: found dataLayer object "+e),e||(o.debug("GA4 Integration: dataLayer object "+w+" is empty, initializing it"),s.setGlobal(w,[]),e=s.getGlobal(w)),o.log("GA4 Integration: attempting push to "+w);try{var i=Object.assign({event:I},t);o.debug("GA4 Integration: pushing data to GTM: "+r.stringify(i)),e.push(i);var a=Object.assign({event:E},n);o.debug("GA4 Integration: pushing custom data to GTM: "+r.stringify(a)),e.push(a)}catch(t){o.warn("GA4 Integration: Push to "+w+" failed: "+t)}return Promise.resolve()},k={preRedirectPolicy:c.PreRedirectPolicies.PERSIST_BEFORE_REDIRECT,postRedirectPolicy:c.PostRedirectPolicies.TRACK_IMMEDIATELY,nonRedirectPolicy:c.NonRedirectPolicies.TRACK_IMMEDIATELY,trackLayerDecision:function(t){var n=t.integrationSettings;if(!n||!n[_])return o.debug("GA4 Integration: did not find vendor "+_+" in integration settings, exiting"),d.resolve();if(!t.experimentId||!t.variationId)return o.debug("GA4 Integration: empty experiment or variation ID, exiting"),d.resolve();var e=b.get(_)||{};i="on"===e.global_is_use_gtm||"on"===n[_].is_using_gtm,o.debug("GA4 Integration: is using GTM: "+i);var r,a,u,c="equal_priority"===t.layerPolicy;return o.debug("GA4 Integration: is personalization campaign: "+c),c?(u="OPT-"+t.layerId+"("+t.layerName+")-"+t.experimentId+"("+t.experimentName+")-"+t.variationId+"("+t.variationName+")",a={Campaign:t.layerName+" ("+t.layerId+")",Variation:t.variationName+" ("+t.variationId+")",Holdback:t.isLayerHoldback}):(u="OPT-"+t.experimentId+"("+t.experimentName+")-"+t.variationId+"("+t.variationName+")",a={Experiment:t.experimentName+" ("+t.experimentId+")",Variation:t.variationName+" ("+t.variationId+")",Holdback:t.isLayerHoldback}
2),r={exp_variant_string:u,Holdback:t.isLayerHoldback},o.debug("GA4 Integration: pushing decision data to queue:",{firstPartyData:r,customEventData:a}),A.push({firstPartyData:r,customEventData:a}),T()},serializeSettings:r.stringify,deserializeSettings:r.parse};t.exports=function(t){t.registerAnalyticsTracker("google_analytics_4",k),f.on({filter:{type:l.TYPES.ANALYTICS,name:"sendEvents"},handler:function(){v.dispatch(p.SET_TRACKER_SEND_EVENTS,!0),T()}}),f.on({filter:{type:l.TYPES.ANALYTICS,name:"maybeSendEvents"},handler:function(){T()}})}},6901:function(t,n,e){var i=e(2869),r=i.isEmpty,o=i.omit,a=i.pick,u=e(6903),c=e(9241),s=e(7710),f=e(3176).v,l=e(3654),d=e(5098),v=e(8172),h=e(5007),p=e(8704),g=e(9146),m=e(9247),b=(e(4833),e(4168)),_=e(4341),y=e(6931),w=m.get("stores/global"),E=m.get("stores/tracker_optimizely"),I=e(9769),A=n.Error=f("OptimizelyTrackerError"),T="client_activation",S="campaign_activated",O="view_activated",k={revenue:{validate:L,sanitize:Math.floor,excludeFeature:!0},quantity:{validate:L,sanitize:Math.floor,excludeFeature:!0},value:{validate:L,sanitize:function(t){return t}}},R="AUTO",C=[function(){return function(t){V(function(t){var n=Object.assign({entity_id:t.pageId,key:t.pageApiName,timestamp:t.timestamp,uuid:t.eventId,type:O},j(t.eventTags));return n}(t),t.userFeatures,Q(t.layerStates))}}],N=[function(){return function(t){!function(t){var n=null!==w.getAnonymizeIP()?w.getAnonymizeIP():void 0,e={account_id:t.accountId,anonymize_ip:n,client_name:t.clientName,client_version:t.clientVersion,project_id:t.projectId,visitors:[]};e.revision=t.revision,e.enrich_decisions=!0;var i={session_id:B(t.sessionId),visitor_id:t.visitorId,attributes:[],snapshots:[]},r=Q(t.layerStates);y.dispatch(s.REGISTER_TRACKER_VISITOR,{data:e,visitor:i,decisions:r}),J()}(t),V(function(t){return{entity_id:null,type:T,uuid:t.eventId,timestamp:t.timestamp}}(t),t.userFeatures,Q(t.layerStates))}}],D=[function(){return function(t){var n;V((n=t,Object.assign({entity_id:n.eventEntityId,key:n.eventApiName,timestamp:n.timestamp,uuid:n.eventId,type:n.eventCategory,properties:M(n.eventProperties)},j(n.eventTags))),t.userFeatures,Q(t.layerStates))}}],x=[function(){return function(t){var n;V((n=t,Object.assign({entity_id:n.eventEntityId,key:n.eventApiName,timestamp:n.timestamp,uuid:n.eventId,type:n.eventCategory},j(n.eventTags))),t.userFeatures,Q(t.layerStates))}}];function j(t){var n=function(t,n,e){try{P(e),t[n]=e}catch(t){u.emitError(new A("Bad value for eventTags["+n+"]: "+t.message))}return t},e=Object.keys(k),i=o(t,e),r=a(t,e),c=Object.keys(i).reduce((function(t,e){return n(t,e,i[e])}),{}),s=Object.keys(r).reduce((function(t,e){var i=r[e],o=k[e];o.excludeFeature||n(c,e,i);try{o.validate(i),t[e]=o.sanitize(i),c[e]=t[e]}catch(t){u.emitError(new A("Bad value for eventMetrics["+e+"]: "+t.message))}return t}),{});return s.tags=c,s}function M(t){if(Object.keys(t).length<=15)return t;var n={},e={},i=0;for(var r in t)i<15?n[r]=t[r]:e[r]=t[r],i++;return d.log("Custom event has more than 15 properties. The following properties were not pushed",e),n}function P(t){if(null==t)throw new Error("Feature value is null");if("object"==typeof t){var n;try{n=l.stringify(t)}catch(t){}throw new Error('Feature value is complex: "'+n)}}function L(t){if(null==t)throw new Error("Metric value is null");if("number"!=typeof t)throw new Error("Metric value is not numeric")}function U(t){return(t||[]).reduce((function(t,n){try{P(n.value),t.push({entity_id:n.id||null,key:n.name,type:n.type,value:n.value})}catch(t){d.warn("Error evaluating user feature",n,t)}return t}),[])}function V(t,n,e){y.dispatch(s.REGISTER_TRACKER_EVENT,{event:t,decisions:e}),z(n),J()}function z(t){var n=U(t);y.dispatch(s.UPDATE_TRACKER_VISITOR_ATTRIBUTES,{attributes:n})}function B(t){return R}function F(){if(E.canSend()){var t=E.hasEventsToSend(),n=E.hasPreviousBatchesToSend();t||n?(n&&(E.getPreviousBatches().forEach(G),y.dispatch(s.RESET_TRACKER_PREVIOUS_BATCHES)),t&&(y.dispatch(s.FINALIZE_BATCH_SNAPSHOT),G(E.getEventBatch()),y.dispatch(s.RESET_TRACKER_EVENTS))):d.debug("Not sending events because there are no events to send")}else d.debug("Not sending events (holding)")}function G(t){d.debug("Sending ticket:",t);var n=c.generate(),e={url:"https://logx.optimizely.com/v1/events",method:"POST",data:q(t)};E.shouldUseBeacon()?g.sendBeacon(e,n):g.retryableRequest(e,n)}function q(t){return Object.assign({},a(t,["account_id","anonymize_ip","client_name","client_version","enrich_decisions","project_id","revision"]),{visitors:t.visitors.map(H)})}function H(t){return{visitor_id:t.visitor_id,session_id:R,attributes:t.attributes.map(Y),snapshots:t.snapshots.map(K)}}function Y(t){return X(t,{entity_id:"e",key:"k",type:"t",value:"v"})}function K(t){var n=t.events;return n=function(t){var n=t.reduce((function(t,n){var e;if(t[e=n.type===O&&r(n.tags)&&r(a(n,Object.keys(k)))?n.type:n.uuid]){var i=t[e].timestamp;n.timestamp>i&&(i=n.timestamp),t[e]=Object.assign({},t[e],{key:t[e].key+"-"+(n.key||""),entity_id:t[e].entity_id+"-"+n.entity_id,timestamp:i})}else t[e]=n;return t}),{});return Object.values(n)}(n),{activationTimestamp:w.getActivationTimestamp(),decisions:t.decisions.map($),events:n.map(W)}}function $(t){var n=X(t,{campaign_id:"c",experiment_id:"x",is_campaign_holdback:"h",variation_id:"v"});return n.m=t.metadata?X(t.metadata,{cmab_uuid:"cmab_uuid"}):{},n}function W(t){return t.key===S&&(t.type=S,delete t.key),X(t,{entity_id:"e",key:"k",quantity:"q",revenue:"$",tags:"a",properties:"p",timestamp:"t",uuid:"u",value:"v",type:"y"})}function X(t,n){return Object.keys(t).reduce((function(e,i){var r=t[i];return i in n&&(e[n[i]||i]=r),e}),{})}function J(){if(E.shouldBatch()){if(!E.isPolling()){p.setTimeout((function t(){F(),E.isPolling()&&p.setTimeout(t,1e3)}),1e3),y.dispatch(s.SET_TRACKER_POLLING,!0),p.setTimeout((function(){y.dispatch(s.SET_TRACKER_BATCHING,!1),y.dispatch(s.SET_TRACKER_POLLING,!1)}),1e4)}}else F()}function Q(t){return t.map((function(t){var n=I.getCmabUUIDAndUpdateSessionTimeout(t.layerId,t.decision.experimentId),e=n?{cmab_uuid:n}:{};return{campaign_id:t.layerId,experiment_id:t.decision.experimentId,variation_id:t.decision.variationId,is_campaign_holdback:t.decision.isLayerHoldback,metadata:e}}))}function Z(){var t=E.getPersistableState();if(t)try{d.debug("Persisting pending batch:",t),h.persistTrackerOptimizelyData(t),y.dispatch(s.SET_TRACKER_DIRTY,!1)}catch(t){d.debug("Failed to persist pending batch:",t)}}var tt={trackLayerDecision:function(t){t.isLayerConcluded?d.debug("Layer is already concluded, skipping decision tracking"):t.timing===v.TrackLayerDecisionTimingFlags.postRedirectPolicy?function(t){var n=U(t.userFeatures),e={account_id:t.accountId,anonymize_ip:t.anonymizeIP,client_name:t.clientName,client_version:t.clientVersion,project_id:t.projectId,visitors:[{session_id:B(t.sessionId),visitor_id:t.visitorId,attributes:n,snapshots:[{decisions:[{campaign_id:t.layerId,experiment_id:t.experimentId,variation_id:t.variationId,is_campaign_holdback:t.isLayerHoldback}],events:[{uuid:t.decisionId,entity_id:t.layerId,timestamp:t.timestamp,type:S}]}]}]};y.dispatch(s.REGISTER_PREVIOUS_BATCH,e),J()}(t):function(t){var n={entity_id:t.layerId,type:S,uuid:t.decisionId,timestamp:t.timestamp};y.dispatch(s.REGISTER_TRACKER_DECISION,{decisionEvent:n,decisions:Q(t.layerStates)}),z(t.userFeatures),J()}(t)},preRedirectPolicy:v.PreRedirectPolicies.PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT,postRedirectPolicy:v.PostRedirectPolicies.TRACK_AFT
2ER_SYNC,nonRedirectPolicy:v.NonRedirectPolicies.TRACK_IMMEDIATELY,onPageActivated:C,onClientActivation:N,onClickEvent:x,onCustomEvent:D};t.exports=function(t){t.registerAnalyticsTracker("optimizely",tt),b.on({filter:{type:_.TYPES.ANALYTICS,name:"sendEvents"},handler:function(){y.dispatch(s.SET_TRACKER_SEND_EVENTS,!0),F()}}),b.on({filter:{type:_.TYPES.ANALYTICS,name:"maybeSendEvents"},handler:function(){F()}}),b.on({filter:{type:_.TYPES.ANALYTICS,name:"holdEvents"},handler:function(){y.dispatch(s.SET_TRACKER_SEND_EVENTS,!1)}}),y.dispatch(s.SET_TRACKER_SEND_EVENTS,!0);var n=b.on({filter:{type:"lifecycle",name:"activated"},handler:function(){E.observe(Z),b.off(n)}})}},3489:function(t,n,e){var i=e(6276),r=e(6335);function o(t){if(!t||"string"!=typeof t.value)return{configured:!1,valid:!1,leg:null};var n=t.value.replace(/^\s+|\s+$/g,"");if(""===n||n.length<3)return{configured:!0,valid:!1,leg:null};var e=i.makeUaTest(n);return e?{configured:!0,valid:!0,leg:{value:n,test:e}}:{configured:!0,valid:!1,leg:null}}function a(t){if(!t)return{configured:!1,legs:[]};if("string"!=typeof t.value||""===t.value.replace(/^\s+|\s+$/g,""))return{configured:!0,legs:[]};for(var n=t.value.split(","),e=[],i=0;i<n.length;i++){var o=n[i].replace(/^\s+|\s+$/g,"");if(""!==o){var a=r.makeIpTest(o);a&&e.push({value:o,test:a})}}return{configured:!0,legs:e}}n.compile=function(t){var n=[];if(!t||!t.rules||!Array.isArray(t.rules))return n;for(var e=0;e<t.rules.length;e++){var i=t.rules[e];if(i){var r=String(e),u=o(i.user_agent),c=a(i.ip);if((u.configured||c.configured)&&(!u.configured||u.valid)){var s=u.configured?u.leg:null;if(c.configured){if(0===c.legs.length)continue;for(var f=0;f<c.legs.length;f++)n.push({id:r,ua:s,ip:c.legs[f]})}else n.push({id:r,ua:s,ip:null})}}}return n}},2958:function(t,n,e){var i=e(3489),r=e(3601),o=e(8704),a=e(9247),u=e(4168),c=e(4341),s=a.get("stores/directive"),f=a.get("stores/global"),l=null,d=!1,v=void 0,h=!1,p=!1;function g(){p&&(p=!1,u.emit({type:c.TYPES.ANALYTICS,name:"sendEvents"}))}function m(){return{enabled:!1,mode:"monitor",compiledRules:[],hasIpRules:!1,hasUaRules:!1,stats:r.createStats()}}function b(){return!!(s&&s.shouldBootstrapDataForPreview&&s.shouldBootstrapDataForPreview())}function _(){if(!d){try{var t=function(){try{return f&&f.getTrafficExclusion?f.getTrafficExclusion():void 0}catch(t){return}}();if(!t)return;d=!0,l=function(t){if(!t||"object"!=typeof t||!t.enabled)return m();for(var n="enforce"===t.mode?"enforce":"monitor",e=i.compile(t),o=!1,a=!1,u=0;u<e.length;u++)e[u].ip&&(o=!0),e[u].ua&&(a=!0);return{enabled:!0,mode:n,compiledRules:e,hasIpRules:o,hasUaRules:a,stats:r.createStats()}}(t)}catch(t){return d=!0,void(l=m())}try{l.enabled&&l.hasIpRules&&!b()&&function(){if(!p){p=!0,u.emit({type:c.TYPES.ANALYTICS,name:"holdEvents"});var t=y;o.setTimeout((function(){y===t&&g()}),2e3)}}()}catch(t){}}}n.evaluate=function(t,n){if(!l||!l.compiledRules)return{matched:!1,ruleId:void 0};for(var e=l.compiledRules,i=null!=n,r=0;r<e.length;r++){var o=e[r];if(o.ua||o.ip){var a=!o.ua||!!o.ua.test(t),u=!o.ip||i&&!!o.ip.test(n);if(a&&u)return{matched:!0,ruleId:o.id}}}return{matched:!1,ruleId:void 0}},n.shouldDrop=function(){try{if(_(),!l||!l.enabled||b()||!l.compiledRules.length)return!1;var t=o.getUserAgent();l.hasIpRules&&function(){if(h)return;h=!0;var t=y;try{var i=e(1813).getIP();i&&"function"==typeof i.then&&i.then((function(i){if(y===t&&"string"==typeof i&&i&&(v=i,l&&l.enabled&&"enforce"===l.mode)){var a=o.getUserAgent(),u=n.evaluate(a,i);if(u.matched){r.recordMatch(l.stats,u.ruleId);try{var c=e(6931),s=e(7710);c.dispatch(s.RESET_TRACKER_EVENTS),c.dispatch(s.RESET_TRACKER_PREVIOUS_BATCHES)}catch(t){}}}g()}),(function(){g()}))}catch(t){}}();var i=l.hasIpRules?v:void 0;r.recordEvaluation(l.stats),l.hasUaRules&&("string"!=typeof t||!t)&&r.recordUnusableUa(l.stats),l.hasIpRules&&("string"!=typeof i||!i)&&r.recordUnresolvedIp(l.stats);var a=n.evaluate(t,i);return!!a.matched&&(r.recordMatch(l.stats,a.ruleId),"enforce"===l.mode)}catch(t){try{l&&r.recordThrew(l.stats)}catch(t){}return!1}};var y=0;n.config=function(){return _(),l},n.getStats=function(){if(_(),!l||!l.enabled)return null;var t=l.stats,n={};for(var e in t.perRuleHits)Object.prototype.hasOwnProperty.call(t.perRuleHits,e)&&(n[e]=t.perRuleHits[e]);for(var i=[],r=l.compiledRules,o=0;o<r.length;o++){var a=r[o];n[a.id]&&i.push({id:a.id,type:a.ua&&a.ip?"ua+ip":a.ua?"ua":"ip",ua:a.ua?a.ua.value:null,ip:a.ip?a.ip.value:null,drops:n[a.id]})}return{enabled:!0,mode:l.mode,evaluated:t.evaluated,matched:t.matched,unusableUa:t.unus
2ableUa,unresolvedIp:t.unresolvedIp,threw:t.threw,perRuleHits:n,matchedRules:i}}},6335:function(t,n){function e(t){if(!/^\d{1,3}$/.test(t))return!1;var n=Number(t);return!(n>255||String(n)!==t)}n.anonymizeIp=function(t){if("string"==typeof t&&""!==t){var n=t.split(".");if(4===n.length){for(var i=0;i<4;i++)if(!e(n[i]))return;return n[0]+"."+n[1]+"."+n[2]+".0"}}},n.makeIpTest=function(t){if(!t||"string"!=typeof t)return null;var e=n.anonymizeIp(t);return void 0===e||e!==t?null:function(e){var i=n.anonymizeIp(e);return void 0!==i&&i===t}}},6276:function(t,n){n.makeUaTest=function(t){if(!t||"string"!=typeof t)return null;var n=t.toLowerCase();return function(t){return"string"==typeof t&&-1!==t.toLowerCase().indexOf(n)}}},3601:function(t,n){n.createStats=function(){return{evaluated:0,matched:0,unusableUa:0,unresolvedIp:0,threw:0,perRuleHits:{}}},n.recordEvaluation=function(t){t&&t.evaluated++},n.recordUnusableUa=function(t){t&&t.unusableUa++},n.recordUnresolvedIp=function(t){t&&t.unresolvedIp++},n.recordThrew=function(t){t&&t.threw++},n.recordMatch=function(t,n){t&&(t.matched++,t.perRuleHits[n]=(t.perRuleHits[n]||0)+1)}},9490:function(t,n,e){t.exports=function(t){t.registerViewProvider(e(366)),t.registerViewMatcher("url",e(2893))}},2893:function(t,n,e){var i=e(4632);t.exports={fieldsNeeded:["url"],match:function(t,n){return i(t.url,n)}}},366:function(t,n,e){var i=e(6920);t.exports={provides:"url",getter:[function(){return i.getUrl()}]}},4207:function(t,n,e){var i=e(4833),r=e(7846),o=e(4168),a=e(4829),u=e(7562),c={token:void 0,setUpObserver:function(){a.createDOMChangedObserver(),this.token=o.on({filter:{type:"viewTrigger",name:"DOMChanged"},handler:function(){u.getViewsAndActivate(r.ViewActivationTypes.DOMChanged)}})},turnOffObserver:function(){o.off(this.token)}};t.exports=function(t){i.isReady()?c.setUpObserver():i.addReadyHandler(c.setUpObserver),t.registerViewTrigger("DOMChanged",c)}},8868:function(t,n,e){var i=e(7710),r=e(9247),o=e(7846),a=e(4168),u=e(6931),c=r.get("stores/history"),s=e(5098),f=e(9479).Promise,l=e(7562),d=e(8704);function v(t){a.emit({type:"viewTrigger",name:"URLChanged",data:{source:t,newURL:d.getHref()}},!0)}t.exports=function(t){var n;n=function(){var t=c.getOriginalPushState().apply(this,arguments);return f.resolve().then((function(){v("pushState")})).catch((function(t){s.error("Error while wrapPushState: ",t)})),t},u.dispatch(i.ENSURE_ORIGINAL_PUSHSTATE),d.getGlobal("history").pushState=n,function(){var t=function(){var t=c.getOriginalReplaceState().apply(this,arguments);return f.resolve().then((function(){v("replaceState")})).catch((function(t){s.error("Error while wrapReplaceState: ",t)})),t};u.dispatch(i.ENSURE_ORIGINAL_REPLACESTATE),d.getGlobal("history").replaceState=t}(),d.addEventListener("popstate",h,!1),d.addEventListener("hashchange",p,!1),a.on({filter:{type:"viewTrigger",name:"URLChanged"},handler:function(){l.getViewsAndActivate(o.ViewActivationTypes.URLChanged)}}),t.registerViewTrigger("URLChanged")};var h=v.bind(null,"popstate"),p=v.bind(null,"hashchange")},3777:function(t,n,e){var i=e(9247),r=e(4168),o=e(4341),a=e(8704),u=i.get("stores/directive"),c="optimizelyPreview",s=function(t){a.getGlobal(c).push(t)};n.initialize=function(t){u.isSlave()&&function(t){var n=!1;if(Array.isArray(window.optimizely)&&window.optimizely.forEach((function(e){Array.isArray(e)&&"verifyPreviewProject"===e[0]&&String(e[1])===t&&(n=!0)})),!n)throw new Error("Preview projectId: "+t+" does not match expected")}(t),r.on({filter:{type:o.TYPES.ANALYTICS,name:"trackEvent"},handler:s}),r.on({filter:{type:o.TYPES.LIFECYCLE,name:"viewActivated"},handler:s}),r.on({filter:{type:o.TYPES.LIFECYCLE,name:"layerDecided"},handler:s}),r.on({filter:{type:"error"},publicOnly:!0,handler:s})},n.setupPreviewGlobal=function(){a.getGlobal(c)||a.setGlobal(c,[])},n.pushToPreviewGlobal=function(t){s(t)}},9132:function(t,n,e){var i=e(2869),r=i.isEmpty,o=i.mapValues,a=i.pick,u=i.pickBy,c=e(9241),s=e(4482),f=e(7514),l=e(1308),d=e(4833),v=e(6931),h=e(4955).DT,p=e(5098),g=e(8363),m=e(9479).Promise,b=e(5007),_=e(8704),y=e(9146),w=e(7710),E=e(7846),I=e(9247),A=I.get("stores/async_request"),T=I.get("stores/client_metadata"),S=I.get("stores/global"),O=I.get("stores/rum"),k=I.get("stores/performance"),R=I.get("stores/xdomain"),C=I.get("stores/view_data"),N=e(351),D="https://rum.optimizely.com/rum",x="1.0";function j(t){return r(t)?m.resolve():(n=function(){return y.request({url:D,method:"POST",data:t,withCredentials:!0}).then((function(t){return s.resolveRequest("RUM_FIRST_BEACON",t),t})).catch((function(t){throw p.error("POST to client-rum failed:",t),s.rejectRequest("RUM_FIRST_BEACON",t),t}))},(e=A.getPromise("RUM_FIRST_BEACON"))?e.then(n):s.makeAsyncRequest("RUM_FIRST_BEACON",n));var n,e}function M(){try{return!d.querySelector("body")}catch(t){return null}}function P(){var t=_.getGlobal("performance"),n=t?t.timing:{},e=k.getMarks()||{},i=O.getApiData(),r=O.getDOMObservationData(),o=N.get("state").getActiveExperimentIds(),a=O.getFeaturesNeededData(),u=d.parseUri(O.getScriptSrc()),c=O.getRumData()||{},s=c.extras||{};Object.assign(s,{apiCalls:i,DOMObservationData:r,paintTimings:U(),activeExperimentIds:o,numPages:C.getNumberOfPages(),snippet:{scheme:u.protocol.slice(0,-1),host:u.host,path:u.pathname},networkInfo:L(),experimental:S.getExperimental(),featuresNeeded:a,beacon:{cjsOnload:!0}});var f=_.getGlobal("Prototype");f&&void 0!==f.Version&&(s.prototypeJS=f.Version);var l=!1;l=!0;var v=R.getFrames();v.length&&(s.xdFramesLoaded=v.length);
2var m={id:O.getRumId(),v:x,project:S.getSnippetId()||S.getProjectId(),navigationTimings:n,userTimings:e,xd:l,apis:Object.keys(i),extras:s,sampleRate:c.sampleRate};(function(){var t=h.keys().map((function(t){var n=b.getStorageKeyFromKey(t);return n?{key:t,isForeign:b.isForeignKey(t),category:n,size:t.length+h.getItem(t).length}:null})).filter(Boolean),n=t.reduce((function(t,n){var e=n.key,i=b.getIdFromKey(e);return i?((n.isForeign?t.foreign:t.local)[i]=!0,t):t}),{local:{},foreign:{}}),e=t.filter((function(t){return!0===t.isForeign})).reduce((function(t,n){return t[n.key.split("_")[0]]=!0,t}),{}),i={local:0,foreign:0},r={local:{},foreign:{}};t.forEach((function(t){var n=t.isForeign?"foreign":"local";i[n]+=t.size,r[n][t.category]||(r[n][t.category]=0),r[n][t.category]+=t.size}));var o={numKeys:h.allKeys().length,sizeKeys:h.allKeys().toString().length,sizeValues:h.allValues().toString().length,idCounts:{local:Object.keys(n.local).length,foreign:Object.keys(n.foreign).length},foreignOriginCount:Object.keys(e).length,byteTotals:i,byteTotalsByCategory:r};return g.estimateStorage().then((function(t){return Object.assign(o,{storageEstimate:t})}))})().then((function(t){return j(Object.assign(m,{lsMetrics:t}))})).catch((function(t){p.warn("RUM / Error sending onload beacon:",t)}))}function L(){var t=_.getGlobal("navigator");if(t&&t.connection)return a(t.connection,["downlink","rtt","effectiveType"])}function U(){var t=_.getGlobal("performance");if(t)try{var n=t.getEntriesByType("paint");if(r(n))return;return n.reduce((function(t,n){return t[n.name]=Math.round(n.startTime),t}),{})}catch(t){return}}n.initialize=function(){var t,n=c.generate().replace(/-/g,"");t=Math.random()<.01;var e=function(){var t=d.getCurrentScript();if(t)return t.src}();v.dispatch(w.SET_RUM_DATA,{id:n,RumHost:D,inRumSample:t,src:e,data:{id:n,sync:M(),timebase:l.now(),sampleRate:.01,url:e,extras:{initialDOMState:d.getReadyState()}}})},n.queueBeacons=function(){return O.getSampleRum()?(function(){try{_.getGlobal("requestAnimationFrame")((function(){var t=O.getRumData().timebase;v.dispatch(w.SET_RUM_DATA,{data:{render:l.now()-(t||0)}})}))}catch(t){return}}(),d.isLoaded()?_.setTimeout(P,3e3):_.addEventListener("load",P),new m((function(t,n){_.setTimeout((function(){(function(){!function(){var t={id:O.getRumId(),v:x,account:S.getAccountId(),project:S.getSnippetId()||S.getProjectId(),snippet:S.getSnippetId(),revision:S.getRevision(),clientVersion:T.getClientVersion(),hasSlave:!1,wxhr:!0,extras:{}},n=b.getPersistedBehaviorEventCount(),e=f.getEventCount();t.numBehaviorEvents=e;var i=e-n;Object.assign(t.extras,{behaviorEventCountDiff:i,behaviorEventCountDecreased:i<0}),Object.assign(t,function(){var t=_.getGlobal("performance");if(!t)return;var n,e=O.getScriptSrc();try{if(e){p.debug("Using derived script src: ",e);var i=t.getEntriesByName(e);i.length>0&&(n=i[0])}if(!n){var r=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi;p.debug("Scanning resource timing entries with regex");var a=t.getEntriesByType("resource");n=a.find((function(t){return r.test(t.name)}))}if(n)return o(E.ResourceTimingAttributes,(function(t,e){var i=n[e];return"number"==typeof i?Math.round(1e3*(i||0))/1e3:"serverTiming"===e?function(t){if(!t||!t.length)return[];for(var n=[],e=0;e<t.length;e++)try{var i=t[e];n.push({name:i.name,duration:i.duration,description:i.description})}catch(t){}return n}(i):void 0}))}catch(t){return}}(),k.getDurationsFor(Object.values(E.RUMPerformanceTimingAttributes))),v.dispatch(w.SET_RUM_DATA,{data:t})}();var t=O.getRumData(),n=k.getMarks()||{};return t.extras=t.extras||{},t.extras.beacon={cjsTimeout:!0},t.userTimings=n,j(t=u(t,(function(t){return void 0!==t})))})().then(t,n)}),3e3)})).catch((function(t){p.warn("RUM / Error sending data:",t)}))):m.resolve()}},2634:function(t,n,e){var i;!function(r,o){"use strict";var a="function",u="undefined",c="object",s="string",f="major",l="model",d="name",v="type",h="vendor",p="version",g="architecture",m="console",b="mobile",_="tablet",y="smarttv",w="wearable",E="embedded",I="Amazon",A="Apple",T="ASUS",S="BlackBerry",O="Browser",k="Chrome",R="Firefox",C="Google",N="Honor",D="Huawei",x="LG",j="Microsoft",M="Motorola",P="Nvidia",L="OnePlus",U="Opera",V="OPPO",z="Samsung",B="Sharp",F="Sony",G="Xiaomi",q="Zebra",H="Facebook",Y="Chromium OS",K="Mac OS",$=" Browser",W=function(t){for(var n={},e=0;e<t.length;e++)n[t[e].toUpperCase()]=t[e];return n},X=function(t,n){return typeof t===s&&-1!==J(n).indexOf(J(t))},J=function(t){return t.toLowerCase()},Q=function(t,n){if(typeof t===s)return t=t.replace(/^\s\s*/,""),typeof n===u?t:t.substring(0,500)},Z=function(t,n){for(var e,i,r,u,s,f,l=0;l<n.length&&!s;){var d=n[l],v=n[l+1];for(e=i=0;e<d.length&&!s&&d[e];)if(s=d[e++].exec(t))for(r=0;r<v.length;r++)f=s[++i],typeof(u=v[r])===c&&u.length>0?2===u.length?typeof u[1]==a?this[u[0]]=u[1].call(this,f):this[u[0]]=u[1]:3===u.length?typeof u[1]!==a||u[1].exec&&u[1].test?this[u[0]]=f?f.replace(u[1],u[2]):o:this[u[0]]=f?u[1].call(this,f,u[2]):o:4===u.length&&(this[u[0]]=f?u[3].call(this,f.replace(u[1],u[2])):o):this[u]=f||o;l+=2}},tt=function(t,n){for(var e in n)if(typeof n[e]===c&&n[e].length>0){for(var i=0;i<n[e].length;i++)if(X(n[e][i],t))return"?"===e?o:e}else if(X(n[e],t))return"?"===e?o:e;return n.hasOwnProperty("*")?n["*"]:t},nt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[p,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,p],[/opios[\/ ]+([\w\.]+)/i],[p,[d,U+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[d,U+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[d,U]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[d,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[d,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[d,R+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[d,U+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[d,U+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[d,"MIUI"+$]],[/fxios\/([\w\.-]+)/i],[p,[d,R]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+$],p],[/samsungbrowser\/([\w\.]+)/i],[p,[d,z+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,H],p],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[d,"GSA"]],[/musical_ly(?:.
2+app_?version\/|_)([\w\.]+)/i],[p,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[d,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,k+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[d,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[p,tt,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[d,R+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[p,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[g,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[g,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[g,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[g,/ower/,"",J]],[/ sun4\w[;\)]/i],[[g,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[g,J]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[h,z],[v,_]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[l,[h,z],[v,b]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[l,[h,A],[v,b]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[l,[h,A],[v,_]],[/(macintosh);/i],[l,[h,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[h,B],[v,b]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[h,N],[v,_]],[/honor([-\w ]+)[;\)]/i],[l,[h,N],[v,b]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[l,[h,D],[v,_]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[l,[h,D],[v,b]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[h,G],[v,_]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[h,G],[v,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[h,V],[v,b]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[h,tt,{OnePlus:["304","403","203"],"*":V}],[v,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[h,"Vivo"],[v,b]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[h,"Realme"],[v,b]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[l,[h,M],[v,b]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[h,M],[v,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[h,x],[v,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[h,x],[v,b]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}
vendor: 4,171 bytes, line 2
2(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[h,"Lenovo"],[v,_]],[/(nokia) (t[12][01])/i],[h,l,[v,_]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[l,/_/g," "],[v,b],[h,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[h,C],[v,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[l,[h,C],[v,b]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[l,[h,F],[v,b]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[h,F],[v,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[h,L],[v,b]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[h,I],[v,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[h,I],[v,b]],[/(playbook);[-\w\),; ]+(rim)/i],[l,h,[v,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[l,[h,S],[v,b]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[h,T],[v,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[h,T],[v,b]],[/(nexus 9)/i],[l,[h,"HTC"],[v,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[l,/_/g," "],[v,b]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[l,[h,"TCL"],[v,_]],[/(itel) ((\w+))/i],[[h,J],l,[v,tt,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[h,"Acer"],[v,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[h,"Meizu"],[v,b]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[h,"Ulefone"],[v,b]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[h,"Energizer"],[v,b]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[h,"Cat"],[v,b]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[h,"Smartfren"],[v,b]],[/droid.+; (a(?:015|06[35]|142p?))/i],[l,[h,"Nothing"],[v,b]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[h,"Archos"],[v,_]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[h,"Archos"],[v,b]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[h,l,[v,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[h,l,[v,b]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,l,[v,_]],[/(surface duo)/i],[l,[h,j],[v,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[h,"Fairphone"],[v,b]],[/(u304aa)/i],[l,[h,"AT&T"],[v,b]],[/\bsie-(\w*)/i],[l,[h,"Siemens"],[v,b]],[/\b(rct\w+) b/i],[l,[h,"RCA"],[v,_]],[/\b(venue[\d ]{2,7}) b/i],[l,[h,"Dell"],[v,_]],[/\b(q(?:mv|ta)\w+) b/i],[l,[h,"Verizon"],[v,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[l,[h,"Barnes & Noble"],[v,_]],[/\b(tm\d{3}\w+) b/i],[l,[h,"NuVision"],[v,_]],[/\b(k88) b/i],[l,[h,"ZTE"],[v,_]],[/\b(nx\d{3}j) b/i],[l,[h,"ZTE"],[v,b]],[/\b(gen\d{3}) b.+49h/i],[l,[h,"Swiss"],[v,b]],[/\b(zur\d{3}) b/i],[l,[h,"Swiss"],[v,_]],[/\b((zeki)?tb.*\b) b/i],[l,[h,"Zeki"],[v,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],l,[v,_]],[/\b(ns-?\w{0,9}) b/i],[l,[h,"Insignia"],[v,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[l,[h,"NextBook"],[v,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],l,[v,b]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],l,[v,b]],[/\b(ph-1) /i],[l,[h,"Essential"],[v,b]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[l,[h,"Envizen"],[v,_]],[/\b(trio[-\w\. ]+) b/i],[l,[h,"MachSpeed"],[v,_]],[/\btu_(1491) b/i],[l,[h,"Rotor"],[v,_]
vendor: 5,528 bytes, line 2
2],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[h,P],[v,_]],[/(sprint) (\w+)/i],[h,l,[v,b]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[h,j],[v,b]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[h,q],[v,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[h,q],[v,b]],[/smart-tv.+(samsung)/i],[h,[v,y]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[h,z],[v,y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,x],[v,y]],[/(apple) ?tv/i],[h,[l,A+" TV"],[v,y]],[/crkey/i],[[l,k+"cast"],[h,C],[v,y]],[/droid.+aft(\w+)( bui|\))/i],[l,[h,I],[v,y]],[/(shield \w+ tv)/i],[l,[h,P],[v,y]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[h,B],[v,y]],[/(bravia[\w ]+)( bui|\))/i],[l,[h,F],[v,y]],[/(mi(tv|box)-?\w+) bui/i],[l,[h,G],[v,y]],[/Hbbtv.*(technisat) (.*);/i],[h,l,[v,y]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Q],[l,Q],[v,y]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[l,[v,y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,l,[v,m]],[/droid.+; (shield)( bui|\))/i],[l,[h,P],[v,m]],[/(playstation \w+)/i],[l,[h,F],[v,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[h,j],[v,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[h,z],[v,w]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[h,l,[v,w]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[h,V],[v,w]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[h,A],[v,w]],[/(opwwe\d{3})/i],[l,[h,L],[v,w]],[/(moto 360)/i],[l,[h,M],[v,w]],[/(smartwatch 3)/i],[l,[h,F],[v,w]],[/(g watch r)/i],[l,[h,x],[v,w]],[/droid.+; (wt63?0{2,3})\)/i],[l,[h,q],[v,w]],[/droid.+; (glass) \d/i],[l,[h,C],[v,w]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,l,[v,w]],[/; (quest( \d| pro)?)/i],[l,[h,H],[v,w]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[v,E]],[/(aeobc)\b/i],[l,[h,I],[v,E]],[/(homepod).+mac os/i],[l,[h,A],[v,E]],[/windows iot/i],[[v,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[l,[v,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[l,[v,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,b]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,p],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,p],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[p,tt,nt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,tt,nt],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,K],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],p],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,p],[/\(bb(10);/i],[p,[d,S]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[p,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[d,R+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[d,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,Y],p],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,p],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,p]]},it=function(t,n){if(typeof t===c&&(n=t,t=o),!(this instanceof it))return new it(t,n).getResult();var e=typeof r!==u&&r.navigator?r.navigator:o,i=t||(e&&e.userAgent?e.userAgent:""),m=e&&e.userAgentData?e.userAgentData:o,y=n?function(t,n){var e={};for(var i in t)n[i]&&n[i].length%2==0?e[i]=n[i].concat(t[i]):e[i]=t[i];return e}(et,n):et,w=e&&e.userAgent==i;return this.getBrowser=function(){var t,n={};return n[d]=o,n[p]=o,Z.call(n,i,y.browser),n[f]=typeof(t=n[p])===s?t.replace(/[^\d\.]/g,"").split(".")[0]:o,w&&e&&e.brave&&typeof e.brave.isBrave==a&&(n[d]="Brave"),n},this.getCPU=function(){var t={};return t[g]=o,Z.call(t,i,y.cpu),t},this.getDevice=function(){var t={};
2return t[h]=o,t[l]=o,t[v]=o,Z.call(t,i,y.device),w&&!t[v]&&m&&m.mobile&&(t[v]=b),w&&"Macintosh"==t[l]&&e&&typeof e.standalone!==u&&e.maxTouchPoints&&e.maxTouchPoints>2&&(t[l]="iPad",t[v]=_),t},this.getEngine=function(){var t={};return t[d]=o,t[p]=o,Z.call(t,i,y.engine),t},this.getOS=function(){var t={};return t[d]=o,t[p]=o,Z.call(t,i,y.os),w&&!t[d]&&m&&m.platform&&"Unknown"!=m.platform&&(t[d]=m.platform.replace(/chrome os/i,Y).replace(/macos/i,K)),t},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(t){return i=typeof t===s&&t.length>500?Q(t,500):t,this},this.setUA(i),this};it.VERSION="1.0.41",it.BROWSER=W([d,p,f]),it.CPU=W([g]),it.DEVICE=W([l,h,v,m,b,y,_,w,E]),it.ENGINE=it.OS=W([d,p]),typeof n!==u?(t.exports&&(n=t.exports=it),n.UAParser=it):e.amdO?(i=function(){return it}.call(n,e,n,t))===o||(t.exports=i):typeof r!==u&&(r.UAParser=it);var rt=typeof r!==u&&(r.jQuery||r.Zepto);if(rt&&!rt.ua){var ot=new it;rt.ua=ot.getResult(),rt.ua.get=function(){return ot.getUA()},rt.ua.set=function(t){ot.setUA(t);var n=ot.getResult();for(var e in n)rt.ua[e]=n[e]}}}("object"==typeof window?window:this)},6473:function(){}},__webpack_module_cache__={};function __webpack_require__(t){var n=__webpack_module_cache__[t];if(void 0!==n)return n.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}__webpack_require__.amdO={},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}();var __webpack_exports__={};function main(){var t=function(t){var n=[__webpack_require__(5993)];n.push(__webpack_require__(1560)),n.push(__webpack_require__(5844)),n.push(__webpack_require__(7559)),n.push(__webpack_require__(1486)),n.push(__webpack_require__(3946)),n.push(__webpack_require__(6101)),n.push(__webpack_require__(3098)),n.push(__webpack_require__(4235)),n.push(__webpack_require__(5549)),n.push(__webpack_require__(9186)),n.push(__webpack_require__(4220)),n.push(__webpack_require__(213)),n.push(__webpack_require__(8052)),n.push(__webpack_require__(7367)),n.push(__webpack_require__(9765)),n.push(__webpack_require__(74)),n.push(__webpack_require__(6901)),n.push(__webpack_require__(9490)),n.push(__webpack_require__(4207)),n.push(__webpack_require__(8868)),n.push(__webpack_require__(7422)),n.push(__webpack_require__(4217)),n.push(__webpack_require__(5415)),n.push(__webpack_require__(1198)),n.push(__webpack_require__(7769)),n.push(__webpack_require__(5337)),n.push(__webpack_require__(8935)),l.initializePlugins(n)};window.performance&&window.performance.mark&&window.performance.mark("optimizely:blockBegin"),__webpack_require__(9132).initialize();var n=__webpack_require__(3672);n.time("gtagReady");var e=__webpack_require__(5098),i=__webpack_require__(9247);__webpack_require__(480);var r=i.get("stores/directive");if(!__webpack_require__(9146).isCORSSupported())throw new Error("CORS is not supported on this browser, aborting.");var o,a=__webpack_require__(2395),u=__webpack_require__(3204),c=__webpack_require__(9773),s=__webpack_require__(6273),f={"accountId": "26669750187", "namespace": "26613100737", "revision": "7725", "anonymizeIP": true, "enableForceParameters": false, "experimental": {"trimPages": true}, "projectId": "26613100737", "layers": [{"changes": null, "id": "27426741783", "name": "P - ReSharper C++ - /promo/", "commitId": "27732000397", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27497331546", "integrationSettings": null, "variations": [{"id": "27506571128", "name": "Original", "actions": []}, {"id": "27490841329", "name": "Variation #1", "actions": [{"viewId": "27678070009", "changes": [{"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "B5A64690-8022-41B4-9927-4AA72B8C407B", "selector": "section:nth-of-type(2)"}, {"css": {}, "dependencies": [], "attributes": {"href": "/resharper-cpp/download/download-thanks.html"}, "type": "attribute", "id": "09DF8B74-C079-46B6-ADFF-A1A6EBC46E71", "selector": ".menu-second__download-button"}]}]}], "weightDistributions": [{"entityId": "27490841329", "endOfRange": 10000}], "name": "P - ReSharper C++ - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27426741783"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27678070009"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27453961100", "name": "P - PhpStorm - /promo/", "commitId": "28372940167", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {"is_using_gtm": "on"}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27465011015", "integrationSettings": null, "variations": [{"id": "27599370209", "name": "Original", "actions": []}
2, {"id": "27438330952", "name": "Variation #1", "actions": [{"viewId": "27578240316", "changes": [{"css": {}, "dependencies": [], "attributes": {"href": "/phpstorm/download/download-thanks.html"}, "type": "attribute", "id": "86595F0E-14F2-495B-BB20-C2AA212B3FB7", "selector": "a[href*=\"/phpstorm/download/\"]"}]}]}], "weightDistributions": [{"entityId": "27438330952", "endOfRange": 10000}], "name": "P - PhpStorm - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27453961100"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27578240316"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27457120270", "name": "P - YouTrack - Dynamic competitive titles - MKT-29028", "commitId": "29372230227", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27511480005", "integrationSettings": null, "variations": [{"id": "27476970223", "name": "Original", "actions": []}, {"id": "27505160142", "name": "Variation #1", "actions": [{"viewId": "27499810022", "changes": [{"id": "7C3B7CD4-37C5-418C-8105-3001CD225793", "type": "custom_code", "value": function($){var utils = window["optimizely"].get('utils');
3const parsedUrl = new URL(window.location.href);
4const searchParams = parsedUrl.searchParams;
5const adgroup = searchParams.get('adgroup');
6
7// Wait for the footer element to appear in the DOM, then change the color
8utils.waitForElement('.rs-subtitle-2').then(function(subtitleElement) {
9  	var adgroupText = '';
10    if (adgroup === 'notion') {
11      	adgroupText = 'Notion';
12    } else if (adgroup === 'clickup') {
13      	adgroupText = 'ClickUp';
14    } else if (adgroup === 'azure_devops_server') {
15      	adgroupText = 'Azure DevOps Server';
16    } else if (adgroup === 'linear') {
17      	adgroupText = 'Linear';
18    } else if (adgroup === 'asana') {
19      	adgroupText = 'Asana';
20    } else if (adgroup === 'gitlab') {
21      	adgroupText = 'GitLab';
22    } else if (adgroup === 'github') {
23      	adgroupText = 'GitHub';
24    } else if (adgroup === 'wrike') {
25      	adgroupText = 'Wrike';
26    } else if (adgroup === 'monday') {
27      	adgroupText = 'Monday.com';
28    } else if (adgroup === 'trello') {
29      	adgroupText = 'Trello';
30    } else if (adgroup === 'fogbugz') {
31      	adgroupText = 'FogBugz';
32    } else if (adgroup === 'redmine') {
33      	adgroupText = 'Redmine';
34    } else if (adgroup === 'bugzilla') {
35      	adgroupText = 'Bugzilla';
36    } else {
37      	// Default text when adgroup doesn't match any specified values
38      	adgroupText = ''; // Setting adgroupText to an empty string
39    }
40    if(adgroupText === ''){
41       subtitleElement.textContent = "Switch to YouTrack and get 25% off. Server or Cloud – your choice!";
42    }else{
43       subtitleElement.textContent = "Looking for a " + adgroupText + " alternative? Switch to YouTrack and get 25% off. Server or Cloud – your choice!";
44    }
45});
46}, "dependencies": []}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "495824A5-B6B4-4E36-994A-4309E844D222", "selector": "._allowMultiline_1o2xc3v_114"}]}]}, {"id": "28517540015", "name": "Variation #1 (1)", "actions": [{"viewId": "27499810022", "changes": [{"id": "2A15C7EE-F215-460C-A1D2-8E7A80CDD1D9", "type": "custom_code", "value": function($){var utils = window["optimizely"].get('utils');
47const parsedUrl = new URL(window.location.href);
48const searchParams = parsedUrl.searchParams;
49const adgroup = searchParams.get('adgroup');
50
51// Wait for the footer element to appear in the DOM, then change the color
52utils.waitForElement('.rs-subtitle-1').then(function(subtitleElement) {
53  	var adgroupText = '';
54    if (adgroup === 'notion') {
55      	adgroupText = 'Notion';
56    } else if (adgroup === 'clickup') {
57      	adgroupText = 'ClickUp';
58    } else if (adgroup === 'azure_devops_server') {
59      	adgroupText = 'Azure DevOps Server';
60    } else if (adgroup === 'linear') {
61      	adgroupText = 'Linear';
62    } else if (adgroup === 'asana') {
63      	adgroupText = 'Asana';
64    } else if (adgroup === 'gitlab') {
65      	adgroupText = 'GitLab';
66    } else if (adgroup === 'github') {
67      	adgroupText = 'GitHub';
68    } else if (adgroup === 'wrike') {
69      	adgroupText = 'Wrike';
70    } else if (adgroup === 'monday') {
71      	adgroupText = 'Monday.com';
72    } else if (adgroup === 'trello') {
73      	adgroupText = 'Trello';
74    } else if (adgroup === 'fogbugz') {
75      	adgroupText = 'FogBugz';
76    } else if (adgroup === 'redmine') {
77      	adgroupText = 'Redmine';
78    } else if (adgroup === 'bugzilla') {
79      	adgroupText = 'Bugzilla';
80    } else {
81      	// Default text when adgroup doesn't match any specified values
82      	adgroupText = ''; // Setting adgroupText to an empty string
83    }
84    
85  // adjust subtitle based on a page language
86  
87  var pageLang = window.current_lang || 'en-us';
88    if (pageLang === 'de-de') {
89      	if(adgroupText === ''){
90       		subtitleElement.textContent = "Wechseln Sie zu YouTrack mit 25% Rabatt. Ob Server oder Cloud – Sie haben die Wahl!";
91        } else if (adgroup === 'notion'||'clickup'||'linear'||'asana'||'wrike'||'trello'||'fogbugz'||'redmine'||'bugzilla') {
92      	subtitleElement.textContent = "Sie sind auf der Suche nac
92h einer " + adgroupText + "-Alternative? Wechseln Sie zu YouTrack mit 25% Rabatt. Ob Server oder Cloud – Sie haben die Wahl!";
93        }else {
94        	subtitleElement.textContent = "Sie sind auf der Suche nach einer Alternative zu " + adgroupText + "? Wechseln Sie zu YouTrack mit 25% Rabatt. Ob Server oder Cloud – Sie haben die Wahl!";
95      	}
96    } else if (pageLang === 'fr-fr') {
97      	if(adgroupText === ''){
98       		subtitleElement.textContent = "Passez à YouTrack et profitez de 25 % de réduction. Server ou Cloud, à vous de choisir !";
99      	}else{
100        	subtitleElement.textContent = "Vous cherchez une alternative à " + adgroupText + " ? Passez à YouTrack et profitez de 25 % de réduction. Server ou Cloud, à vous de choisir ";
101      	}
102    } else if (pageLang === 'ru-ru') {
103      	if(adgroupText === ''){
104       		subtitleElement.textContent = "Переходите на YouTrack и получите скидку 25%. YouTrack в облаке или на вашем сервере — выбирайте сами!";
105      	}else{
106        	subtitleElement.textContent = "Ищете альтернативу " + adgroupText + "? Переходите на YouTrack и получите скидку 25%. YouTrack в облаке или на вашем сервере — выбирайте сами!";
107      	}
108    } else if (pageLang === 'ja-jp') {
109      	if(adgroupText === ''){
110       		subtitleElement.textContent = "YouTrack に乗り換えて 25% オフを適用しましょう。 Server か Cloud かはあなた次第です!";
111      	}else{
112        	subtitleElement.textContent = adgroupText + " の代替製品をお探しですか? YouTrack に乗り換えて 25% オフを適用しましょう。 Server か Cloud かはあなた次第です!";
113      	}
114    } else if (pageLang === 'zh-cn') {
115      	if(adgroupText === ''){
116       		subtitleElement.textContent = "切换到 YouTrack 并享受七五折优惠。 Cloud 或 Server – 由您决定!";
117      	}else{
118        	subtitleElement.textContent = "正在寻找 " + adgroupText + " 的替代品? 切换到 YouTrack 并享受七五折优惠。 Cloud 或 Server – 由您决定!";
119      	}
120     } else if (pageLang === 'es-es') {
121      	if(adgroupText === ''){
122       		subtitleElement.textContent = "Pásese a YouTrack y obtenga un 25 % de descuento. Server o Cloud: ¡usted elige!";
123      	}else{
124        	subtitleElement.textContent = "¿Busca una alternativa a " + adgroupText + "? Pásese a YouTrack y obtenga un 25 % de descuento. Server o Cloud: ¡usted elige!";
125      	}
126    } else if (pageLang === 'pt-br') {
127      	if(adgroupText === ''){
128       		subtitleElement.textContent = "Mude para o YouTrack e ganhe 25% de desconto. Server ou Cloud — você escolhe!";
129      	}else{
130        	subtitleElement.textContent = "Procurando uma alternativa ao " + adgroupText + "? Mude para o YouTrack e ganhe 25% de desconto. Server ou Cloud — você escolhe!";
131      	}
132    } else if (pageLang === 'ko-kr') {
133      	if(adgroupText === ''){
134       		subtitleElement.textContent = "YouTrack으로 전환하고 25% 할인을 받으세요. 서버 또는 클라우드 중에서 선택할 수 있습니다!";
135        } else if (adgroup === 'notion'||'clickup'||'monday'||'redmine') {
136      	subtitleElement.textContent = adgroupText + "을 대체할 도구를 찾고 계신가요? YouTrack으로 전환하고 25% 할인을 받으세요. 서버 또는 클라우드 중에서 선택할 수 있습니다!";
137        }else {
138        	subtitleElement.textContent = adgroupText + "를 대체할 도구를 찾고 계신가요? YouTrack으로 전환하고 25% 할인을 받으세요. 서버 또는 클라우드 중에서 선택할 수 있습니다!";
139      	}
140    } else {
141      	// en-us
142      	if(adgroupText === ''){
143       		subtitleElement.textContent = "Switch to YouTrack and get 25% off. Server or Cloud – your choice!";
144      	}else{
145        	subtitleElement.textContent = "Looking for a " + adgroupText + " alternative? Switch to YouTrack and get 25% off. Server or Cloud – your choice!";
146      	}
147    }
148});
149}, "dependencies": []}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "6834523D-AA84-48D3-A834-2E5A95651C70", "selector": "._allowMultiline_1o2xc3v_114"}]}]}], "weightDistributions": [{"entityId": "28517540015", "endOfRange": 10000}], "name": "P - YouTrack - Dynamic competitive titles - MKT-29028", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27457120270"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27499810022"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27457141132", "name": "P - Rider - /promo/", "commitId": "27653250031", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27465201194", "integrationSettings": null, "variations": [{"id": "27497370971", "name": "Original", "actions": []}, {"id": "27482160911", "name": "Variation #1", "actions": [{"viewId": "27604020182", "changes": [{"css": {}, "dependencies": [], "attributes": {"href": "/rider/download/download-thanks.html"}, "type": "attribute", "id": "A50B24E8-0F73-42F1-AFCA-79B326604351", "selector": ".menu-second__download-button"}, {"css": {}, "dependencies": [], "attributes": {"href": "/rider/download/download-thanks.html"}, "type": "attribute", "id": "B8E0D1F2-4610-4EB0-8651-2900D82B8D7E", "selector": ".wt-col-inline.wt-col-sm-12 > ._modeRock_1o2xc3v_241"}]}]}], "weightDistributions": [{"entityId": "27482160911", "endOfRange": 10000}], "name": "P - Rider - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27457141132"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27604020182"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27463380961", "name": "P - RubyMine - /promo/", "commitId": "27592900038", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27453711165", "integrationSettings": null, "variations": [{"id": "27555660667", "name": "Original", "actions": []}, {"id": "27507590995", "name": "Variation #1", "actions": [{"viewId": "27541060863", "changes": [{"css": {}, "dependencies": [], "attributes": {"href": "/ruby/download/download-thanks.html"}, "type": "attribute", "id": "358AA642-9AD9-47EC-813C-06F4E5B1DD7F", "selector": ".menu-second__download-button"}, {"css": {}, "dependencies": [], "attributes": {"href": "/ruby/download/download-thanks.html"}, "type": "attribute", "id": "0240EEBB-1047-462B-A208-8D9D8DB35962", "selector": ".rubymine-header ._modeClassic_1o2xc3v_168"}, {"css": {}, "dependencies": [], "attributes": {"href": "/ruby/download/download-thanks.html"}, "type": "attribute", "id": "52312A58-4E6D-40AA-8B3D-A53C120F88F2", "selector": "#ruby-professionals ._modeClassic_1o2xc3v_168"}, {"css": {}, "dependencies": [], "attributes": {"href": "/ruby/download/download-thanks.html"}, "type": "attribute", "id": "937634FB-242A-44CD-80AA-16181AC5179B", "selector": ".get-started-section__buttons ._modeRock_1o2xc3v_241"}]}]}], "weightDistributions": [{"entityId": "27507590995", "endOfRange": 10000}], "name": "P - RubyMine - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27463380961"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27541060863"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27474690720", "name": "P - DataGrip - /promo/", "commitId": "27446031378", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27478850932", "integrationSettings": null, "variations": [{"id": "27468941237", "name": "Original", "actions": []}, {"id": "27499270955", "name": "Variation #1", "actions": [{"viewId": "27443960928", "changes": [{"css": {}, "dependencies": [], "attributes": {"href": "/datagrip/download/download-thanks.html"}, "type": "attribute", "id": "2E781021-7D92-492D-99CD-75153F2134A3", "selector": ".menu-second__download-button"}, {"css": {}, "dependencies": [], "attributes": {"href": "/datagrip/download/download-thanks.html"}, "type": "attribute", "id": "A2705A71-5B43-48F6-B9B5-06A6DB38BB1C", "selector": "._modeRock_1o2xc3v_241._sizeL_1o2xc3v_106"}]}]}], "weightDistributions": [{"entityId": "27499270955", "endOfRange": 10000}], "name": "P - DataGrip - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27474690720"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27443960928"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27552250531", "name": "P - CLion - /promo/", "commitId": "27695820054", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27575340510", "integrationSettings": null, "variations": [{"id": "27677800068", "name": "Original", "actions": []}, {"id": "27569640678", "name": "Variation #1", "actions": [{"viewId": "27536390632", "changes": [{"css": {}
149, "dependencies": [], "attributes": {"href": "/clion/download/download-thanks.html"}, "type": "attribute", "id": "7cc104c8d7a842938008741bfdc10a73", "selector": ".menu-second__download-button"}, {"css": {}, "dependencies": [], "attributes": {"href": "/clion/download/download-thanks.html"}, "type": "attribute", "id": "494843d0c9c746e59502cc592777b733", "selector": "._modeRock_1o2xc3v_241"}, {"css": {}, "dependencies": [], "attributes": {"hide": true}, "type": "attribute", "id": "8B0FC2D4-8DD5-4210-8194-14EB7AB93411", "selector": ".wt-row_size_s.wt-row_align-items_center p.rs-text-3_theme_light"}]}]}], "weightDistributions": [{"entityId": "27569640678", "endOfRange": 10000}], "name": "P - CLion - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27552250531"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27536390632"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27607960402", "name": "P - ReSharper - /promo/", "commitId": "27748130191", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27476781155", "integrationSettings": null, "variations": [{"id": "27478191346", "name": "Original", "actions": []}, {"id": "27432391153", "name": "Variation #1", "actions": [{"viewId": "27570340631", "changes": [{"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "1B8E287A-A9F9-4432-99CF-C6D7D5E5B679", "selector": ".wt-section_bg_gray-light.wt-section_theme_light"}, {"css": {}, "dependencies": [], "attributes": {"href": "/resharper/download/download-thanks.html"}, "type": "attribute", "id": "BD20ECCA-82EB-4430-9291-4C17D4153D92", "selector": ".menu-second__download-button"}]}]}], "weightDistributions": [{"entityId": "27432391153", "endOfRange": 10000}], "name": "P - ReSharper - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27607960402"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27570340631"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27617760040", "name": "P - IntelliJ IDEA - /promo/", "commitId": "28788400357", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27607840071", "integrationSettings": null, "variations": [{"id": "27472440320", "name": "Original", "actions": []}, {"id": "27659130008", "name": "Variation #1", "actions": [{"viewId": "27622100054", "changes": [{"css": {}, "dependencies": [], "attributes": {"href": "/idea/download/download-thanks.html"}, "type": "attribute", "id": "621458AF-BE8B-4BF1-9990-7C587824FDDA", "selector": "a[href*=\"/idea/download/\"]"}]}]}], "weightDistributions": [{"entityId": "27659130008", "endOfRange": 10000}], "name": "P - IntelliJ IDEA - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27617760040"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27622100054"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27621830089", "name": "Banner - YouTrack - JetBrains AI Banner - JS-19827", "commitId": "27584500176", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {"is_using_gtm": "on"}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27655370007"], "audienceName": "ncountryCodeCookie - JS-19827", "changes": null, "id": "27636060005", "integrationSettings": null, "variations": [{"id": "27595220328", "name": "Original", "actions": []}
149, {"id": "27465320888", "name": "Variation #1", "actions": [{"viewId": "27615930076", "changes": [{"id": "BAA9F942-556F-4F0A-9202-0C18E74E41E3", "src": "/actions/1e57e05a1903dad51539f0e299c574ea7e45f16ab866f21aa39ff7d126d0ef05.js", "dependencies": [], "type": "widget"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "B5ECE38C-DD22-4D3E-8FA8-990B49830E3A", "selector": "a[href*=\"/legal/docs/terms/jetbrains-ai/service-territory/\"]#optly-link"}]}]}], "weightDistributions": [{"entityId": "27465320888", "endOfRange": 10000}], "name": "Banner - YouTrack - JetBrains AI Banner - JS-19827", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27621830089"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27615930076"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27698020043", "name": "P - WebStorm - /promo/", "commitId": "27448401279", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27682720049", "integrationSettings": null, "variations": [{"id": "27696880004", "name": "Original", "actions": []}, {"id": "27674750067", "name": "Variation #1", "actions": [{"viewId": "27717330076", "changes": [{"css": {}, "dependencies": [], "attributes": {"href": "/webstorm/download/download-thanks.html"}, "type": "attribute", "id": "18de2104f25d4ab5b6f4fd50d78aab79", "selector": ".menu-second__download-button"}, {"css": {}, "dependencies": [], "attributes": {"href": "/webstorm/download/download-thanks.html"}, "type": "attribute", "id": "FE2B147B-CAE9-48DF-B401-B31B062F3A37", "selector": ".wt-button_size_m"}, {"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "724FC8E8-4B10-49BF-8303-08E5380E9D64", "selector": "section:nth-of-type(5)"}]}]}], "weightDistributions": [{"entityId": "27674750067", "endOfRange": 10000}], "name": "P - WebStorm - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27698020043"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27717330076"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "27717820005", "name": "P - GoLand - /promo/", "commitId": "27582650738", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "27678630057", "integrationSettings": null, "variations": [{"id": "27716950062", "n
149ame": "Original", "actions": []}, {"id": "27699930058", "name": "Variation #1", "actions": [{"viewId": "27711390043", "changes": [{"css": {}, "dependencies": [], "attributes": {"href": "/go/download/download-thanks.html"}, "type": "attribute", "id": "f1e594b6d5214e879252deddff8c0015", "selector": ".menu-second__download-button"}, {"css": {}, "dependencies": [], "attributes": {"href": "/go/download/download-thanks.html"}, "type": "attribute", "id": "6506CB1F-C88B-46A4-BA98-A24650BDA132", "selector": ".wt-col-inline.wt-offset-top-sm-48 > .wt-button_size_m"}]}]}], "weightDistributions": [{"entityId": "27699930058", "endOfRange": 10000}], "name": "P - GoLand - /promo/", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "27717820005"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["27711390043"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "28189850649", "name": "P - TeamCity - Pipelines - Product Hunt - JS-19936", "commitId": "28342730587", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {"is_using_gtm": "on"}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "28238900404", "integrationSettings": null, "variations": [{"id": "28197310747", "name": "Original", "actions": []}, {"id": "28306010093", "name": "Variation #1", "actions": [{"viewId": "28239310449", "changes": [{"id": "50FA95E4-9294-4199-B7D4-44E24FF24D03", "src": "/actions/707b1aee3e2933bc2612ceab78c636336ace34f6e43d26d9502e5bd8717b44c8.js", "dependencies": [], "type": "attribute"}, {"id": "4250570E-F30E-4AFF-85EC-3C5E0048C192", "src": "/actions/707b1aee3e2933bc2612ceab78c636336ace34f6e43d26d9502e5bd8717b44c8.js", "dependencies": [], "type": "attribute"}, {"operator": "before", "dependencies": [], "value": "<a href=\"https://www.producthunt.com/posts/teamcity-pipelines-beta?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-teamcity&#0045;pipelines&#0045;beta\" target=\"_blank\"><img src=\"https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=443136&theme=dark&period=daily\" alt=\"TeamCity&#0032;Pipelines&#0032;&#0040;beta&#0041; - Fall&#0032;in&#0032;love&#0032;with&#0032;CI&#0047;CD&#0032;again | Product Hunt\" style=\"width: 250px; height: 54px;padding-bottom: 16px;\" width=\"250\" height=\"54\" /></a>", "type": "append", "id": "8826C9F9-47B1-46F5-86FA-C53D3DF88C2E", "selector": "div.teamcity-pipelines-content > div:nth-child(1) > div"}]}]}], "weightDistributions": [{"entityId": "28306010093", "endOfRange": 10000}], "name": "P - TeamCity - Pipelines - Product Hunt - JS-19936", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "28189850649"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["28239310449"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "28962740017", "name": "P - Rider - JetAsteroids - JS-xxxx", "commitId": "29360180072", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "28968270096", "integrationSettings": null, "variations": [{"id": "28976670093", "name": "Original", "actions": [{"viewId": "29000310062", "changes": [{"id": "B81CA8B4-6C5E-441C-93C0-C7093700AFAB", "type": "append", "selector": "head", "value": "<style>@media only screen and (max-width: 980px) {\n  div#jetbrains-asteroid-game{\n    display:none;\n  }\n}</style>", "dependencies": []}, {"id": "023249B1-ED9E-4F8F-BF28-FF7E67902352", "src": "/actions/56cdca4279ca3b1e10da4521f5e10809d8fd010b5cb15be2e085529217773f3c.js", "dependencies": [], "type": "insert_html"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "130A24A0-0D30-4F58-92DD-FDEFFE3192AD", "selector": "#jetbrains-asteroid-game"}]}]}], "weightDistributions": null, "name": "P - Rider - JetAsteroids - JS-xxxx", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "28962740017"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["29000310062"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "29044210696", "name": "P - Qodana - Dynamic page titles - DM-4589", "commitId": "29244160614", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "29146870008", "integrationSettings": null, "variations": [{"id": "28978630453", "name": "Original", "actions": []}, {"id": "29150520007", "name": "Variation #1", "actions": [{"viewId": "28980690957", "changes": [{"id": "329A9387-D8BC-4380-BA40-AF5C02133974", "type": "custom_code", "value": function($){var utils = window["optimizely"].get('utils');
150const parsedUrl = new URL(window.location.href);
151const searchParams = parsedUrl.searchParams;
152const adgroup = searchParams.get('adgroup');
153
154// Wait for the footer element to appear in the DOM, then change the color
155utils.waitForElement('.rs-hero').then(function(subtitleElement) {
156  	var adgroupText = '';
157    if (adgroup === 'static_code_analysis_tools') {
158      	adgroupText = 'Static Code Analysis Platform for Teams and Enterprises';
159    } else if (adgroup === 'static_code_analysis_java') {
160      	adgroupText = 'Static Code Analysis for Java and 60+ Other Languages';
161    } else if (adgroup === 'static_code_analysis_python') {
162      	adgroupText = 'Static Code Analysis for Python and 60+ Other Languages';
163    } else if (adgroup === 'static_code_analysis_js') {
164      	adgroupText = 'Static Code Analysis for JavaScript and 60+ Other Languages';
165    } else if (adgroup === 'sonarlint') {
166      	adgroupText = 'Static Code Analysis With Best-In-Class IDE Integration';
167    } else {
168      	// Default text when adgroup doesn't match any specified values
169      	adgroupText = 'Code quality done right'; // Setting adgroupText to an empty string
170    }
171    if(adgroupText === ''){
172       subtitleElement.textContent = "Code quality done right";
173    }else{
174       subtitleElement.textContent = adgroupText;
175    }
176});
177}, "dependencies": []}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "F121ED55-2846-4A5E-A6F1-8CC927615C87", "selector": "a[href*=\"qodana.cloud/onboarding\"]"}]}]}], "weightDistributions": [{"entityId": "29150520007", "endOfRange": 10000}], "name": "P - Qodana - Dynamic page titles - DM-4589", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "29044210696"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["28980690957"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "4605317206507520", "name": "Redirect - /resources/industry-reports/& - JS-25313", "commitId": "4593136276602880", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5269265094279168", "integrationSettings": null, "variations": [{"id": "6027599451783168", "name": "Original", "actions": [{"viewId": "6565322512138240", "changes": [{"id": "98FB4571-4364-4ACF-94DE-311FD9657BDE", "type": "redirect", "depen
177dencies": [], "isOpalManaged": false, "allowAdditionalRedirect": false, "dest": "https://www.jetbrains.com/resources/industry-reports/", "preserveParameters": false}]}]}], "weightDistributions": null, "name": "Redirect - /resources/industry-reports/& - JS-25313", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "4605317206507520"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6565322512138240"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "4721786189774848", "name": "Banner - Rider - Xamarin - JS-22033", "commitId": "5105343949176832", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5135337425469440", "integrationSettings": null, "variations": [{"id": "5451673536036864", "name": "Original", "actions": [{"viewId": "6413074316394496", "changes": [{"id": "745232D6-7391-4C9A-A423-E16D1FC3F47B", "src": "/actions/ec8d8e2cec0318b4593e48af7e48e51833b840fe7ed7c7bfdb326353620f1ea5.js", "dependencies": [], "type": "widget"}, {"id": "86724832-FF4D-4431-A193-605C39F627B8", "src": "/actions/ec8d8e2cec0318b4593e48af7e48e51833b840fe7ed7c7bfdb326353620f1ea5.js", "dependencies": ["745232D6-7391-4C9A-A423-E16D1FC3F47B"], "type": "attribute"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "144A5DF9-7AC9-4F24-9CA1-97B22987E230", "selector": "#optly-banner-JS-22033 > p > a"}]}]}], "weightDistributions": null, "name": "Banner - Rider - Xamarin - JS-22033", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "4721786189774848"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6413074316394496"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "4723916631965696", "name": "AB - IDEA - Overview - Request demo -JS-23668", "commitId": "5325290872766464", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "27453331160"], "audienceName": "All visitors - Desktop/Laptop", "changes": null, "id": "5986360394252288", "integrationSettings": null, "variations": [{"id": "6574841378111488", "name": "Original", "actions": [{"viewId": "6487433827581952", "changes": [{"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "19F3956F-1E54-4345-9FA8-5433321A0C2A", "selector": "[data-test='menu-second'] a[href=\"/idea/get-in-touch/\"].menu-item"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "C06A87BE-745A-4B63-B31F-3C77E672840A", "selector": "[data-test='menu-second'] a[href=\"/idea/buy/\"].menu-item"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "74AB4332-7380-41C5-8E8D-B7CE85E3FBC7", "selector": "[data-test='menu-second'] > div > div > div > div:nth-of-type(1) > div:nth-of-type(1) > a:nth-of-type(2)"}]}]}, {"id": "4873159061536768", "name": "Variation #1", "actions": [{"viewId": "6487433827581952", "changes": [{"id": "764FD422-5BAF-4511-91B5-F745B1AF8E57", "type": "custom_code", "value": function($){(function () {
178
179  var selector = "[data-test='menu-second'] a[href*='/idea/buy']";
180
181  var newClasses = "wt-col-inline _rs-link_1owszn1_1 _rs-link_mode_clear_1owszn1_1 _rs-typography_theme_dark_1owszn1_1 _rs-text-2_1owszn1_1 _rs-text_hardness_average_1owszn1_1 menu-second__link menu-item";
182
183  function applyChange() {
184    var elements = document.querySelectorAll(selector);
185
186    elements.forEach(function (el) {
187
188      // 1️⃣ Update classes
189      if (el.className !== newClasses) {
190        el.className = newClasses;
191      }
192
193      // 2️⃣ Prevent duplicate button
194      if (el.nextElementSibling && el.nextElementSibling.classList.contains("optimizely-added-button")) {
195        return;
196      }
197
198      // 3️⃣ Create new button
199      var newButton = document.createElement("a");
200      newButton.setAttribute("data-test", "button");
201      newButton.setAttribute("type", "button");
202      newButton.setAttribute("href", "/idea/get-in-touch/");
203      newButton.className = "_main_10h2pj3_62 _modeOutline_10h2pj3_42 _sizeM_10h2pj3_26 _alignIconLeft_10h2pj3_49 _dark_10h2pj3_9 menu-second__button menu-item optimizely-added-button";
204
205      newButton.innerHTML = '<span class="_content_10h2pj3_207" data-rs-internal="button__content" data-test="button__content">Request a Demo</span>';
206
207      // 4️⃣ Insert after element
208      el.insertAdjacentElement("afterend", newButton);
209
210    });
211  }
212
213  // Run immediately
214  applyChange();
215
216  // Run again after small delay (React mount safety)
217  setTimeout(applyChange, 500);
218  setTimeout(applyChange, 1500);
219
220})();
221}, "dependencies": []}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "DAE6C1DE-7AE9-4DB8-86A6-84E4C62E19F7", "selector": "[data-test='menu-second'] a[href=\"/idea/get-in-touch/\"].menu-item"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "9C174BA5-BDE0-4277-8FF2-36918F0AFAB0", "selector": "[data-test='menu-second'] a[href=\"/idea/buy/\"].menu-item"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "8FC00CDC-16C4-4744-9E76-A88588D86A06", "selector": "a[href=\"/idea/download/\"].menu-item.menu-second__download-button"}]}]}], "weightDistributions": [{"entityId": "6574841378111488", "endOfRange": 10000}], "name": "AB - IDEA - Overview - Request demo -JS-23668", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "4723916631965696"}, "deployed": true}], "policy": "single_experiment", "viewIds": ["6487433827581952"], "weightDistributions": null, "decisionMetadata": null, "concluded": true}, {"changes": null, "id": "4751263120752640", "name": "P - IntelliJ Conf - Sessionize", "commitId": "5085861541314560", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5570039412162560", "integrationSettings": null, "variations": [{"id": "5058930116657152", "name": "Original", "actions": [{"viewId": "6580850469371904", "changes": [{"id": "D3B7C703-30FC-4554-9836-C740A44D4F11", "type": "custom_code", "value": function($){// Custom waitForElement function to check repeatedly for the target container
222function waitForElement(selector, callback) {
223  var checkInterval = setInterval(function () {
224    var element = document.querySelector(selector);
225    if (element) {
226      console.log(`✅ Found ${selector}`, element);
227      clearInterval(checkInterval);
228      callback(element);
229    }
230  }, 500);
230 // Check every 500ms
231}
232
233// Global flag to prevent multiple insertions
234var scheduleInserted = false;
235
236waitForElement('section.v-slim-wrapper:nth-child(4)>div.wt-container', function(targetElement) {
237  // If the schedule container is already present, skip insertion
238  if (targetElement.querySelector('.sessionize-loader')) {
239    console.warn("⚠️ Schedule already inserted, skipping injection.");
240    return;
241  }
242  
243  // Override document.write so that any calls from the Sessionize script
244  // are intercepted and inserted into our target container instead.
245  var originalDocumentWrite = document.write;
246  document.write = function(content) {
247    if (!scheduleInserted) {
248      console.warn("⚠️ document.write() intercepted. Inserting content into target element.");
249      targetElement.insertAdjacentHTML('beforeend', content);
250      scheduleInserted = true;
251    } else {
252      console.warn("⚠️ Schedule already inserted, ignoring document.write() call.");
253    }
254  };
255
256  // Insert required CSS styles for the loader
257  var style = document.createElement("style");
258  style.type = "text/css";
259  style.innerHTML = `
260    .sz-spinner {
261      width: 40px;
262      height: 40px;
263      margin: 100px auto;
264      background-color: #1ab394;
265      border-radius: 100%;
266      -webkit-animation: sz-scaleout 1.0s infinite ease-in-out;
267      animation: sz-scaleout 1.0s infinite ease-in-out;
268    }
269    @-webkit-keyframes sz-scaleout {
270      0% { -webkit-transform: scale(0); }
271      100% { -webkit-transform: scale(1.0); opacity: 0; }
272    }
273    @keyframes sz-scaleout {
274      0% { -webkit-transform: scale(0); transform: scale(0); }
275      100% { -webkit-transform: scale(1.0); transform: scale(1.0); opacity: 0; }
276    }
277  `;
278  document.head.appendChild(style);
279
280  // Create and insert the Sessionize loader container into the target element
281  var sessionizeContainer = document.createElement("div");
282  sessionizeContainer.className = "sessionize-loader";
283  sessionizeContainer.setAttribute("data-sessionize-load-url", "https://sessionize.com/api/v2/aq6rai8u/view/GridSmart?under=True");
284  sessionizeContainer.innerHTML = '<div class="sz-spinner"></div>';
285  targetElement.appendChild(sessionizeContainer);
286
287  // Create and append the Sessionize script to the body
288  var script = document.createElement('script');
289  script.type = "text/javascript";
290  script.src = "https://sessionize.com/api/v2/aq6rai8u/view/GridSmart";
291  script.async = true;
292  document.body.appendChild(script);
293
294  script.onload = function() {
295    console.log("✅ Sessionize script loaded.");
296    // Restore the original document.write
297    document.write = originalDocumentWrite;
298    // Delay slightly and then trigger sessionize.loader() if available
299    setTimeout(function() {
300      if (typeof sessionize !== "undefined" && typeof sessionize.loader === "function") {
301        console.log("✅ Running sessionize.loader()");
302        sessionize.loader();
303      } else {
304        console.warn("❌ sessionize.loader() is not available.");
305      }
306    }, 500);
307  };
308});
309}, "dependencies": []}, {"id": "66A78C98-EACC-4E1D-BC82-BAB472C0F734", "type": "append", "selector": "head", "value": "<style>#sessionize.sessionize-wrapper {\n\tfont-family: JetBrains Sans, Inter, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen, Ubuntu, Cantarell, \"Droid Sans\", \"Helvetica Neue\", Arial, sans-serif !important;\n}</style>", "dependencies": []}, {"css": {}, "dependencies": [], "attributes": {"style": "padding-bottom: 0px !important;"}, "type": "attribute", "id": "85796ECA-19E8-4A93-9D32-EF4D751BDB84", "selector": "section:nth-of-type(2) > div:nth-of-type(1)"}]}]}], "weightDistributions": null, "name": "P - IntelliJ Conf - Sessionize", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "4751263120752640"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6580850469371904"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": [{"dependencies": [], "selector": "head", "type": "append", "value": "<style>/* JS-25469: hide 'Text to SQL' and 'Cloud Code Completion' on /datagrip/sql-support/  */\n#v-wrapper-global > section:nth-child(5) > div > div > div > div > div > div:nth-child(3), #v-wrapper-global > section:nth-child(5) > div > div > div > div > div > div:nth-child(4) {\n  display: none !important;\n}\n\n/* JS-25660 Hide AI block 'Mentioning database objects for AI agents ' on /datagrip/sql-support/  \nJS-25660 Hide AI block 'Mentioning files for AI agents' on /datagrip/working-with-files/ */\n#v-wrapper-global > section:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(5) {\n  display: none !important;\n}\n\n/* JS-25660 Hide AI block 'Security layer for AI' on /datagrip/running-queries/ */\n#v-wrapper-global > section:nth-of-type(4) > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(3) > div:nth-of-type(1) > div:nth-of-type(4) {\n    display: none !important;\n}\n\n/* JS-25660 Hide AI block 'Connect to your database with AI agents' on /datagrip/databases/  */\n#v-wrapper-global > section:nth-of-type(4) > div > div > div > div:nth-of-type(3) > div > div:nth-of-type(2) {\n    display: none !important;\n}</style>", "id": "5708f5c9-1838-40e6-940e-637f842eda50"}], "id": "4817005105119232", "name": "P - DataGrip - Features - Hide AI for China - JS-25469 and  JS-25660", "commitId": "5637118557421568", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["or", "28658270038", "5266534870810624"], "audienceName": "ncountryCodeCookie - CN,Location - China", "changes": null, "id": "6598804634337280", "integrationSettings": null, "variations": [{"id": "5472904727494656", "name": "Original", "actions": [{"viewId": "4594567272464384", "changes": []}]}], "weightDistributions": null, "name": "P - DataGrip - Features - Hide AI for China - JS-25469 and  JS-25660", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "4817005105119232"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["4594567272464384"], "weightDistributions": null, "decisionMetadata": {"experimentPriorities": [[{"entityId": "6598804634337280", "endOfRange": null}]], "experimentWeights": null, "offerConsistency": null}, "concluded": false}, {"changes": null, "id": "4889792798785536", "name": "P - AI China - JS-24154", "commitId": "6041523310034944", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5829211970076672", "integrationSettings": null, "variations": [{"id": "5811787220647936", "name": "Original", "actions": [{"viewId": "4973730921709568", "changes": [{"id": "05FCD15B-4190-4EFB-B4B3-5FCAAB7D545E", "type": "custom_code", "value": function($){/**
310 * Optimizely Web Experiment — AI China Tab Randomization
311 * Randomizes the visual order of Trae / Qoder / CodeBuddy tabs
312 * on each pageload using CSS flexbox order.
313 *
314 * CSS-only reorder: no DOM manipulation, no polling, no clicks.
315 * React's event handlers and state stay completely intact.
316 *
317 * The indicator span is hidden because React positions it via
318 * inline left/width based on DOM order, not visual order.
319 * The _selected_ class ::after pseudo handles the active underline.
320 */
321
322// Fisher-Yates shuffle on [0, 1, 2]
323var orders = [0, 1, 2];
324for (var i = 2; i > 0; i--) {
325  var j = Math.floor(Math.random() * (i + 1));
326  var temp = orders[i];
327  orders[i] = orders[j];
328  orders[j] = temp;
329}
330
331var style = document.createElement('style');
332style.textContent =
333  '[role="tab"]:nth-child(1){order:' + orders[0] + '}' +
334  '[role="tab"]:nth-child(2){order:' + orders[1] + '}' +
335  '[role="tab"]:nth-child(3){order:' + orders[2] + '}' +
336  '[role="tab"]{margin-left:0!important}' +
337  '[class*="tabsContainer"]{gap:24px}' +
338  '[class*="indicator"]{display:none!important}';
339document.head.appendChild(style);
340}, "dependencies": []}]}]}], "weightDistributions": null, "name": "P - AI China - JS-24154", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "4889792798785536"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["4973730921709568"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "4913015959584768", "name": "P - Community Education - Redirect - JS-21676", "commitId": "6102695627456512", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5821799531806720", "integrationSettings": null, "variations": [{"id": "6258062277738496", "name": "Original", "actions": [{"viewId": "5365298967085056", "changes": [{"id": "58FA5BC1-3A4E-46C0-993D-BE1DE55FA759", "type": "redirect", "depen
340dencies": [], "dest": "https://www.jetbrains.com/academy/bootcamps/", "preserveParameters": true, "allowAdditionalRedirect": false}]}]}], "weightDistributions": null, "name": "P - Community Education - Redirect - JS-21676", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "4913015959584768"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5365298967085056"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": [{"dependencies": [], "selector": "head", "type": "append", "value": "<style>/* JS-25469: hide 'Ai Video Section' on /datagrip/features-overview/  */\n#v-wrapper-global > section:nth-of-type(4){\n  display: none!important;\n}</style>", "id": "c94d3973925e46c583386815d6ec3860"}], "id": "5031789759037440", "name": "P -DataGrip features- Hide AI Video and section  -JS-25469 and JS-25660", "commitId": "5091795149783040", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["or", "28658270038", "5266534870810624"], "audienceName": "ncountryCodeCookie - CN,Location - China", "changes": null, "id": "4976774382092288", "integrationSettings": null, "variations": [{"id": "5447501925318656", "name": "Original", "actions": [{"viewId": "6384149265645568", "changes": []}]}], "weightDistributions": null, "name": "P -DataGrip features- Hide AI Video and section  -JS-25469 and JS-25660", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5031789759037440"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6384149265645568"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5038757442224128", "name": "Banner - AI Assistant - EAP - JS-21320", "commitId": "6130105058590720", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5319919590965248", "integrationSettings": null, "variations": [{"id": "5837162468868096", "name": "Original", "actions": [{"viewId": "5713463216439296", "changes": [{"id": "96641C99-9314-4FC0-BD8E-ED79237BD3EC", "src": "/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js", "dependencies": [], "type": "custom_css"}, {"id": "3BE40EEC-9A91-4FDB-BE3A-BF9605821129", "src": "/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js", "dependencies": [], "type": "widget"}, {"id": "AE0BA0AA-0CF9-4895-A268-63195AA8E268", "src": "/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js", "dependencies": ["3BE40EEC-9A91-4FDB-BE3A-BF9605821129"], "type": "attribute"}, {"id": "10DF65A3-F983-4FDC-8E96-3EA11B3AB185", "src": "/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js", "dependencies": ["AE0BA0AA-0CF9-4895-A268-63195AA8E268"], "type": "attribute"}, {"id": "0CAEF448-1029-480E-8B76-4B574185377D", "src": "/actions/f857306943f76672f1038b32469473dc7dd5bca9aba148eb1ee40168ce406a8b.js", "dependencies": ["10DF65A3-F983-4FDC-8E96-3EA11B3AB185"], "type": "attribute"}]}]}], "weightDistributions": null, "name": "Banner - AI Assistant - EAP - JS-21320", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5038757442224128"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5713463216439296"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5143198543118336", "name": "Banner - State of Django - JS-25441", "commitId": "5612423300775936", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5243867811807232", "integrationSettings": null, "variations": [{"id": "6039483995389952", "name": "Original", "actions": [{"viewId": "6017548590776320", "changes": [{"css": {}, "dependencies": [], "attributes": {"html": "Get PyCharm 30% off. Support Django \u2192"}, "type": "attribute", "id": "d75761e3539a4ded9abb9057b2c02678", "selector": "#optly-link", "name": "", "isOpalManaged": false}, {"id": "CCADB04D-B1A8-4CB5-A8B4-BEDCD0FAC5DA", "src": "/actions/e9818c3c6aeb918c1de16bac4ccc8f790e3ed9c901a2711e76ff62fa06c86746.js", "depen
340dencies": [], "type": "widget"}, {"id": "7F35FBFD-574E-4DE9-9033-AB7A40321FC9", "src": "/actions/e9818c3c6aeb918c1de16bac4ccc8f790e3ed9c901a2711e76ff62fa06c86746.js", "dependencies": [], "type": "attribute"}]}]}], "weightDistributions": null, "name": "Banner - State of Django - JS-25441", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5143198543118336"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6017548590776320"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5181621393948672", "name": "Banner - JetBrains AI - China - JS-22515", "commitId": "6143447694835712", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "28658270038"], "audienceName": "ncountryCodeCookie - CN", "changes": null, "id": "6285909880995840", "integrationSettings": null, "variations": [{"id": "6650276870881280", "name": "Original", "actions": [{"viewId": "6363071300501504", "changes": [{"id": "15B0DA0F-D1BD-47B8-86A1-1027A96F7247", "src": "/actions/d580cea3744677d3f3cb9fb44b7d6a8af3e97f4dd7e4d25302fe388bf0875a59.js", "dependencies": [], "type": "widget"}]}]}], "weightDistributions": null, "name": "Banner - JetBrains AI - China - JS-22515", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5181621393948672"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6363071300501504"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5187117899317248", "name": "Redirect - Developers in Startups - JS-25095", "commitId": "5969307417444352", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5578614234677248", "integrationSettings": null, "variations": [{"id": "6004537551486976", "name": "Original", "actions": [{"viewId": "6683838236065792", "changes": [{"id": "A9F63D2C-BB02-44CD-B8A8-A015537A8E89", "type": "redirect", "dependencies": [], "dest": "https://lp.jetbrains.com/developers-in-startups-2026/", "preserveParameters": true, "allowAdditionalRedirect": false}]}]}], "weightDistributions": null, "name": "Redirect - Developers in Startups - JS-25095", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5187117899317248"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6683838236065792"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5214931197362176", "name": "Redirect - CodeCanvas - #contact-sales - JS-22484", "commitId": "6510205152788480", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5108864010420224", "integrationSettings": null, "variations": [{"id": "5569582769897472", "name": "Original", "actions": [{"viewId": "5497595477360640", "changes": [{"id": "3B2BC3B5-1B61-430C-AF06-00FB354DD34B", "type": "redirect", "dependencies": [], "dest": "/codecanvas/get-in-touch/", "preserveParameters": true, "allowAdditionalRedirect": false}]}]}], "weightDistributions": null, "name": "Redirect - CodeCanvas - #contact-sales - JS-22484", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5214931197362176"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5497595477360640"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5224993443807232", "name": "AB - Business - Hero tagline variations - DM-5893", "commitId": "6154963418611712", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "6604680854241280"], "audienceName": "Everyone excl. Linkedin Paid B2B hero taglines", "changes": null, "id": "4945108208975872", "integrationSettings": null, "variations": [{"id": "6352483092529152", "name": "Original", "actions": [{"viewId": "6230177189986304", "changes": []}]}, {"id": "4921500887678976", "name": "Variation #1", "actions": [{"viewId": "6230177189986304", "changes": [{"css": {}, "dependencies": [], "attributes": {"html": "Any agent. Every level of control.<br class=\"wt-display-md-none\"> Powered by JetBrains"}, "type": "attribute", "id": "9B7917CD-48F2-4B65-B4D4-6C0E5207FF89", "selector": "[data-js-crawler='content-root'] > div > div > section > div > h1"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "81F8996B-C7B5-42A3-AE15-F3B63BA54401", "selector": "#b2b-page .business-head-section a[href=\"#get-in-touch\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "7C22C6D5-BA56-4214-BACC-92FC89EDFFDE", "selector": "#get-in-touch form[data-test=\"wtform\"] a[href=\"/store/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "6D70C9F1-1924-46FA-B72A-795F996D4514", "selector": "#sticky_switcher [data-test=\"switcher\"] > button"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "8C58DB75-5210-47EC-8453-1F6E3D420083", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(1)"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "B746B2F5-034C-47C7-877F-2608F01908BC", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(2)"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "CAE9CB0D-FEC7-4C97-BB07-1616CF03A3C3", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(3)"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "DEF95992-2454-4569-94F6-7762051EE739", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(4)"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "F9691974-C6D6-4A5D-BA7F-E476F70516FB", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(5)"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "1DD8EF39-4F84-4630-AB35-26380662ED04", "selector": "#b2b-page a[href=\"/acp/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "5D70FCC5-41D8-41AF-8938-D8DADD8F2A3D", "selector": "#for-your-organisation a[data-test=\"button\"][href=\"/agentic-software-development/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "4C60D707-8A55-4CF8-ABAC-0DF6381C6467", "selector": "#for-your-developers a[href=\"/ides/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "D995E227-E80C-4434-9544-D3B7C6D4085C", "selector": "#for-your-developers a[href=\"https://air.dev/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "30734FCD-BC93-46CC-9AAB-D0FFDB9B6966", "selector": "#security a[data-test=\"button\"][href=\"https://trust-center.jetbrains.com/\"]"}]}]}], "weightDistributions": [{"entityId": "6352483092529152", "endOfRange": 5000}, {"entityId": "4921500887678976", "endOfRange": 10000}], "name": "AB - Business - Hero tagline variations - DM-5893", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5224993443807232"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6230177189986304"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5263519122194432", "name": "Banner - JetBrains AI - /aia-vscode/ - JS-22515", "commitId": "6597613944832000", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "6389419029037056", "integrationSettings": null, "variations": [{"id": "4982044145483776", "name": "Original", "actions": [{"viewId": "5685229243858944", "changes": [{"id": "aa599b142cdf4366b1a3171e107f234d", "src": "/actions/6e779b8c8c1c270cae4e924a67429179ba95253b214a80409c773c42325bac46.js", "depen
340dencies": [], "type": "widget"}]}]}], "weightDistributions": null, "name": "Banner - JetBrains AI - /aia-vscode/ - JS-22515", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5263519122194432"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5685229243858944"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5650267048247296", "name": "P - Vision - Git Client - Download links - JS-23042 ", "commitId": "6620542975868928", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5607079461781504", "integrationSettings": null, "variations": [{"id": "6082632816001024", "name": "Original", "actions": [{"viewId": "6482886308659200", "changes": [{"id": "AAAE4503-1856-4E2D-ADD9-9D39C10DF8F4", "type": "custom_code", "value": function($){// Retrieve the utils library
341var utils = window["optimizely"].get('utils');
342
343// Common path for all JetBrains download links
344const JETBRAINS_DOWNLOAD_PATH = '/idea/download/download-thanks.html';
345
346// Define the link mappings
347const linkMappings = {
348  'mac': 'https://jb.gg/gitclient-dmg',
349  'macM1': 'https://jb.gg/gitclient-aarch64-dmg',
350  'windows': 'https://jb.gg/gitclient-exe',
351  'windowsZip': 'https://jb.gg/gitclient-win-zip',
352  'windowsARM64': 'https://jb.gg/gitclient-aarch64-exe',
353  'linux': 'https://jb.gg/gitclient-tar-gz',
354  'linuxARM64': 'https://jb.gg/git-client-aarch64-tar-gz'
355};
356
357// Poll for each link type every 1 second
358Object.keys(linkMappings).forEach(function(platform) {
359  utils.poll(function() {
360    var links = document.querySelectorAll('a[href*="' + JETBRAINS_DOWNLOAD_PATH + '"]');
361    links.forEach(function(link) {
362      // Parse URL to check platform parameter
363      try {
364        var url = new URL(link.href);
365        var platformParam = url.searchParams.get('platform');
366        if (platformParam === platform) {
367          link.href = linkMappings[platform];
368        }
369      } catch (e) {
370        // Skip if URL parsing fails
371      }
372    });
373  }, 1000);
374});
375}, "dependencies": []}]}]}], "weightDistributions": null, "name": "P - Vision - Git Client - Download links - JS-23042 ", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5650267048247296"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6482886308659200"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5745475867901952", "name": "AB - YouTrack - Nav Menu - Customers vs Teams - DM-5869", "commitId": "6565035252645888", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5103576362516480", "integrationSettings": null, "variations": [{"id": "5251381689319424", "name": "Original", "actions": [{"viewId": "6079953156964352", "changes": []}]}, {"id": "6620407682301952", "name": "Variation #1", "actions": [{"viewId": "6079953156964352", "changes": [{"css": {}, "dependencies": [], "attributes": {"html": "Customers"}, "type": "attribute", "id": "5912F043-AD7D-4DF9-BD80-892534DEA8A7", "selector": "[data-test='menu-second'] > div > div > div > div > span:nth-of-type(3) > [data-test='dropdown-trigger'] > span:nth-of-type(1) > span"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "ACD259B5-DB32-4442-9078-4AAA85D11673", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/customers/\"], [data-test=\"dropdown-content\"] a[href=\"/youtrack/teams/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "6489E876-34B5-4312-AE9F-98B2B8AEB725", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/customers/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "36A93731-E569-4503-AB37-5FE06BA10352", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/teams/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "F66949A2-4B36-4BEA-A1DB-7F1DB8C10EC3", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/features/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "0FF66CF7-56F6-45E2-A4AC-7580F831DCEF", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/whatsnew/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "BA21F4AD-22BE-47C6-8C95-0F6C91481AAC", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/compare/jira-vs-youtrack/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "EDCF38D3-790C-4EB8-A59F-CCE6C1544E19", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/compare/youtrack-competitive-offer/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "E622FEA3-E32D-45CC-A003-C89E63BF5C7C", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/compare/get-product-tour/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "52B4D9FC-1D36-4732-A9EB-7E93F3E42567", "selector": "#js-menu-second-desktop a[href=\"/youtrack/helpdesk/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "2A09510B-95C7-48B6-A688-4EA485C92BCD", "selector": "#js-menu-second-desktop a[href=\"/youtrack/support/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "6F4E769C-A18B-4A65-AB03-649CF01A17C1", "selector": "#js-menu-second-desktop a[href=\"/youtrack/buy/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "93AD13A2-5DF2-4712-888B-277411E683FE", "selector": "#js-menu-second-desktop a[href=\"/youtrack/request-a-demo/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "1FED9D87-6C0D-422B-8A19-3759F4851D88", "selector": "#js-menu-second-desktop a[href=\"/youtrack/download/\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "F7E9DE00-8D0D-4677-9F3B-DEE7F8180CC0", "selector": "#js-menu-second-desktop a[href=\"/youtrack/\"]"}]}]}], "weightDistributions": [{"entityId": "5251381689319424", "endOfRange": 5000}, {"entityId": "6620407682301952", "endOfRange": 10000}], "name": "AB - YouTrack - Nav Menu - Customers vs Teams - DM-5869", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5745475867901952"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6079953156964352"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": [{"id": "F8985764-7551-4CD0-BF57-38428C04AD2A", "type": "custom_code", "value": function($){var utils = window["optimizely"].get('utils');
376
377// Define video mappings by index (0-based)
378var videosByIndex = [
379  {
380    // AI Toolkit Video (1st video - index 0)
381    videos: {
382      '/ru-ru/': '80uyZ21Rlsk',
383      '/de-de/': 'tSrxxFKIKPM',
384      '/fr-fr/': 'AYeVLK3ttSg',
385      '/es-es/': '5FZBf1RMaQY',
386      '/ja-jp/': 'iPOiRUukago',
387      '/pt-br/': '3as7cfLeM0c',
388      '/ko-kr/': 'wHsveJL_fSA',
389      '/zh-cn/': 'Wx4UunIcBg0'
390    }
391  },
392  {
393    // AI Playground Video (2nd video - index 1)
394    videos: {
395      '/ru-ru/': 'RI777Akfmjs',
396      '/de-de/': '_FYQDONNZNE',
397      '/fr-fr/': 'Qcyb1IA-pEw',
398      '/es-es/': 'IZd7L5a0EHc',
399      '/ja-jp/': 'n0xSkmyoQ3I',
400      '/pt-br/': 'z3-LM28dn7I',
401      '/ko-kr/': 'G_5iRltyx7Y',
402      '/zh-cn/': 'KzUtFOLDIZk'
403    }
404  },
405  {
406    // AI Agents Debugger Video (3rd video - index 2)
407    videos: {
408      '/ru-ru/': 'sk_qYSvYjbQ',
409      '/de-de/': 'TFV8IRbyWa0',
410      '/fr-fr/': 'aiVpizTzGlw',
411      '/es-es/': 'KfvvUXOo5YM',
412      '/ja-jp/': 'E5GgEuhsu3I',
413      '/pt-br/': 'zz_WXELqLNo',
414      '/ko-kr/': 's7RC6_t0OW4',
415      '/zh-cn/': 'ogGBY7R7MPM'
416    }
417  }
418];
419
420// Get current language
421function getCurrentLang() {
422  var location = window.location.href;
423  var supportedLangs = ['/ru-ru/', '/de-de/', '/fr-fr/', '/es-es/', '/ja-jp/', '/pt-br/', '/ko-kr/', '/zh-cn/'];
424  
425  for (var i = 0; i < supportedLangs.length; i++) {
426    if (location.includes(supportedLangs[i])) {
427      return supportedLangs[i];
428    }
429  }
430  
431  return null;
432}
433
434function replaceVideo(element, videoId) {
435  // Create iframe
436  var iframe = document.createElement('iframe');
437  iframe.width = '560';
438  iframe.height = '315';
439  iframe.src = 'https://www.youtube.com/embed/' + videoId;
440  iframe.title = 'YouTube video player';
441  iframe.frameBorder = '0';
442  iframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';
443  iframe.referrerPolicy = 'strict-origin-when-cross-origin';
444  iframe.allowFullscreen = true;
445  iframe.style.maxWidth = '100%';
446  iframe.style.height = 'auto';
447  iframe.style.aspectRatio = '16 / 9';
448  
449  // Replace element
450  element.parentNode.replaceChild(iframe, element);
451}
452
453var currentLang = getCurrentLang();
454
455// Only process if language is found
456if (currentLang) {
457  // 100ms delay before waiting for elements
458  setTimeout(function() {
459    // Wait for any video element to appear
460    utils.waitForElement('section div > div.wt-youtube-player').then(function() {
461      // Once at least one exists, get all video elements
462      var videoElements = document.querySelectorAll('section div > div.wt-youtube-player');
463      
464      // Process each video element
465      videoElements.forEach(function(element, index) {
466        if (index < videosByIndex.length && videosByIndex[index].videos[currentLang]) {
467          replaceVideo(element, videosByIndex[index].videos[currentLang]);
468          console.log('Replaced video #' + (index + 1) + ' with ' + currentLang + ' version');
469        }
470      });
471    });
472  }, 100);
473} else {
474  console.warn('No supported language detected in URL');
475}
476}, "dependencies": []}], "id": "5766402494169088", "name": "P - AI Engineers LP - Localized Videos - JS-23185", "commitId": "5693051230748672", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "4921977564037120", "integrationSettings": null, "variations": [{"id": "5725328312631296", "name": "Original", "actions": [{"viewId": "4527233025441792", "changes": [{"id": "5C7328F6-77DD-48C7-95A0-95D67BBC004E", "type": "custom_code", "value": function($){var utils = window["optimizely"].get('utils');
477
478// Define video mappings by index (0-based)
479var videosByIndex = [
480  {
481    // AI Toolkit Video (1st video - index 0)
482    videos: {
483      '/ru-ru/': '80uyZ21Rlsk',
484      '/de-de/': 'tSrxxFKIKPM',
485      '/fr-fr/': 'AYeVLK3ttSg',
486      '/es-es/': '5FZBf1RMaQY',
487      '/ja-jp/': 'iPOiRUukago',
488      '/pt-br/': '3as7cfLeM0c',
489      '/ko-kr/': 'wHsveJL_fSA',
490      '/zh-cn/': 'Wx4UunIcBg0'
491    }
492  },
493  {
494    // AI Playground Video (2nd video - index 1)
495    videos: {
496      '/ru-ru/': 'RI777Akfmjs',
497      '/de-de/': '_FYQDONNZNE',
498      '/fr-fr/': 'Qcyb1IA-pEw',
499      '/es-es/': 'IZd7L5a0EHc',
500      '/ja-jp/': 'n0xSkmyoQ3I',
501      '/pt-br/': 'z3-LM28dn7I',
502      '/ko-kr/': 'G_5iRltyx7Y',
503      '/zh-cn/': 'KzUtFOLDIZk'
504    }
505  },
506  {
507    // AI Agents Debugger Video (3rd video - index 2)
508    videos: {
509      '/ru-ru/': 'sk_qYSvYjbQ',
510      '/de-de/': 'TFV8IRbyWa0',
511      '/fr-fr/': 'aiVpizTzGlw',
512      '/es-es/': 'KfvvUXOo5YM',
513      '/ja-jp/': 'E5GgEuhsu3I',
514      '/pt-br/': 'zz_WXELqLNo',
515      '/ko-kr/': 's7RC6_t0OW4',
516      '/zh-cn/': 'ogGBY7R7MPM'
517    }
518  }
519];
520
521// Get current language
522function getCurrentLang() {
523  var location = window.location.href;
524  var supportedLangs = ['/ru-ru/', '/de-de/', '/fr-fr/', '/es-es/', '/ja-jp/', '/pt-br/', '/ko-kr/', '/zh-cn/'];
525  
526  for (var i = 0; i < supportedLangs.length; i++) {
527    if (location.includes(supportedLangs[i])) {
528      return supportedLangs[i];
529    }
530  }
531  
532  return null;
533}
534
535function replaceVideo(element, videoId) {
536  // Create iframe
537  var iframe = document.createElement('iframe');
538  iframe.width = '560';
539  iframe.height = '315';
540  iframe.src = 'https://www.youtube.com/embed/' + videoId;
541  iframe.title = 'YouTube video player';
542  iframe.frameBorder = '0';
543  iframe.allow = 'accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share';
544  iframe.referrerPolicy = 'strict-origin-when-cross-origin';
545  iframe.allowFullscreen = true;
546  iframe.style.maxWidth = '100%';
547  iframe.style.height = 'auto';
548  iframe.style.aspectRatio = '16 / 9';
549  
550  // Replace element
551  element.parentNode.replaceChild(iframe, element);
552}
553
554var currentLang = getCurrentLang();
555
556// Only process if language is found
557if (currentLang) {
558  // 100ms delay before waiting for elements
559  setTimeout(function() {
560    // Wait for any video element to appear
561    utils.waitForElement('section div > div.wt-youtube-player').then(function() {
562      // Once at least one exists, get all video elements
563      var videoElements = document.querySelectorAll('section div > div.wt-youtube-player');
564      
565      // Process each video element
566      videoElements.forEach(function(element, index) {
567        if (index < videosByIndex.length && videosByIndex[index].videos[currentLang]) {
568          replaceVideo(element, videosByIndex[index].videos[currentLang]);
569          console.log('Replaced video #' + (index + 1) + ' with ' + currentLang + ' version');
570        }
571      });
572    });
573  }, 100);
574} else {
575  console.warn('No supported language detected in URL');
576}
577}, "dependencies": []}]}]}], "weightDistributions": null, "name": "P - AI Engineers LP - Localized Videos - JS-23185", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5766402494169088"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["4527233025441792"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5864286682087424", "name": "P - PyCharm - Anaconda - JS-21570", "commitId": "4921172639350784", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "6521933257244672", "integrationSettings": null, "variations": [{"id": "4724774883033088", "name": "Original", "actions": [{"viewId": "5715952269000704", "changes": [{"css": {}, "dependencies": [], "attributes": {"html": "<img style=\"width: 100%; height: auto; max-width: 536px; display: block;\" src=\"https://resources.jetbrains.com/storage/products/pycharm/promo/anaconda/img/pycharm-anaconda.svg\">"}, "type": "attribute", "id": "499D2EA2-03EC-4A6A-BF6F-45AB037B3DAC", "selector": "[data-js-crawler='content-root'] > div > section > div:nth-of-type(1) > div:nth-of-type(1) > div:nth-of-type(1) > p:nth-of-type(1)"}]}]}], "weightDistributions": null, "name": "P - PyCharm - Anaconda - JS-21570", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5864286682087424"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5715952269000704"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": [{"id": "2E627296-3DF7-4312-B932-5A3858E30C1C", "type": "append", "selector": "head", "value": "<style>/* JS-25182 Nav Menu: hide Products > AI Tools \ndiv[data-test-marker=\"Products\"] > div > div[data-test=\"main-submenu\"] div.main-submenu__column:nth-of-type(2) {\n  display: none !important;\n}\n*/\n\n/* JS-25182 Nav Menu: hide Products > AI Tools > AI in IDEs */\ndiv[data-test-marker=\"Products\"] div[data-test*=\"main-submenu\"] a[href*=\"/ai-ides/\"], div[data-test-marker=\"\u4ea7\u54c1\"] div[data-test*=\"main-submenu\"] a[href*=\"/ai-ides/\"] {\n  display: none !important;\n}\n\n/* JS-25182 Nav Menu: hide Products > Banners */\ndiv[data-test-marker=\"Products\"] div.main-submenu-banners, div[data-test-marker=\"\u4ea7\u54c1\"] div.main-submenu-banners  {\n  visibility: hidden !important;\n}\n\n/* JS-25182 Nav Menu: hide Solutions > JetBrains AI Solutions */\ndiv[data-test-marker=\"Solutions\"] div[class*=\"SubmenuSubColumns\"]:nth-of-type(2) div > div[data-test=\"main-submenu-item\"]:nth-of-type(1), div[data-test-marker=\"\u89e3\u51b3\u65b9\u6848\"] div[class*=\"SubmenuSubColumns\"]:nth-of-type(2) div > div[data-test=\"main-submenu-item\"]:nth-of-type(1) {\n  display: none !important;\n}\n/* JS-25182 Nav Menu: hide Solutions > JetBrains AI Solutions fixup margin */\ndiv[data-test-marker=\"Solutions\"] div[class*=\"SubmenuSubColumns\"]:nth-of-type(2) div > div[data-test=\"main-submenu-item\"]:nth-of-type(2), \ndiv[data-test-marker=\"\u89e3\u51b3\u65b9\u6848\"] div[class*=\"SubmenuSubColumns\"]:nth-of-type(2) div > div[data-test=\"main-submenu-item\"]:nth-of-type(2) {\n  margin-top: 0px !important;\n}\n\n/* JS-25182 Nav Menu: hide Solutions > Banner: AI for teams */\ndiv[data-test-marker=\"Solutions\"] div.main-submenu-banners > div[data-test=\"main-submenu-banner\"]:nth-of-type(1), div[data-test-marker=\"\u89e3\u51b3\u65b9\u6848\"] div.main-submenu-banners > div[data-test=\"main-submenu-banner\"]:nth-of-type(1)  {\n  display: none !important;\n}\n\n/* JS-25182 Nav Menu: hide Business > AI for teams */\ndiv[data-test-marker=\"For Business\"] div[class*=\"SubmenuSubColumns\"]:nth-of-type(2), div[data-test-marker=\"\u5546\u4e1a\u7528\u9014\"] div[class*=\"SubmenuSubColumns\"]:nth-of-type(2) {\n  display: none !important;\n}\n\n/* JS-25182 Nav Menu: hide For Business > Banner: AI for teams */\ndiv[data-test-marker=\"For Business\"] div.main-submenu-banners > div[data-test=\"main-submenu-banner\"]:nth-of-type(1), div[data-test-marker=\"\u5546\u4e1a\u7528\u9014\"] div.main-submenu-banners > div[data-test=\"main-submenu-banner\"]:nth-of-type(1)  {\n  display: none !important;\n}\n\n/* JS-25182 Footer: hide AI */\nli.jb-footer-catalog__item:nth-of-type(1) {\n  display: none !important;\n}</style>
577", "dependencies": []}], "id": "5957023609651200", "name": "P - China AI Sunset - Nav Menu - JS-25182", "commitId": "6296821148942336", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["or", "28658270038", "5266534870810624"], "audienceName": "ncountryCodeCookie - CN,Location - China", "changes": null, "id": "6726311173947392", "integrationSettings": null, "variations": [{"id": "4715922210947072", "name": "Original", "actions": []}], "weightDistributions": null, "name": "P - China AI Sunset - Nav Menu - JS-25182", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5957023609651200"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["4659873625931776"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "5999460124196864", "name": "Redirect - AI IDEs - FAQ", "commitId": "5865039056338944", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5506294010871808", "integrationSettings": null, "variations": [{"id": "5052698689536000", "name": "Original", "actions": [{"viewId": "5341189277220864", "changes": [{"id": "AB7165E1-36BB-4245-860B-A7C2D25C1D7F", "type": "redirect", "dependencies": [], "dest": "https://lp.jetbrains.com/ai-ides-faq/", "preserveParameters": true, "allowAdditionalRedirect": false}]}]}], "weightDistributions": null, "name": "Redirect - AI IDEs - FAQ", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "5999460124196864"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5341189277220864"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "6380579493511168", "name": "Download thanks webstorm cards", "commitId": "4903514588053504", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5269225835593728", "integrationSettings": null, "variations": [{"id": "6274215702167552", "name": "Original", "actions": [{"viewId": "6269523769163776", "changes": [{"id": "3A17281B-DED3-4FFC-AEC5-B1702F41A137", "type": "append", "dependencies": [], "name": "", "isOpalManaged": false, "selector": "head", "value": "<style>.download-thanks-get-started__cards {display: none!important;}\r\n.download-thanks-intro {display: block!important;}</style>"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "0D21FA74-140D-4C50-8DC0-FD282F5B0835", "selector": "[data-js-crawler='content-root'] > div > section > div > div > div > div > div > p:nth-of-type(1) > a"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "180C2DC0-D1E7-45C8-88A8-A76176F7CBAB", "selector": "[data-js-crawler='content-root'] > div > section > div > div > div > div > div > p:nth-of-type(2) > a"}]}]}, {"id": "6254852160880640", "name": "Variation #1", "actions": [{"viewId": "6269523769163776", "changes": [{"id": "6A1A77C2-D5A8-4D44-9C91-52B3B3536372", "type": "append", "selector": "head", "value": "<style>.download-thanks-intro {display: none!important;}\r\n.download-thanks-get-started {display: block!important;}</style>", "dependencies": []}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "CB212436-CFE1-4EE0-B248-D975D99948C8", "selector": "a[href=\"https://download.jetbrains.com/webstorm/WebStorm-2026.2.3.exe\"]"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "D3D23A19-89CC-4416-BC7A-47A67FA4CAAF", "selector": "[data-js-crawler='content-root'] > div > section > div > div > article:nth-of-type(2) > a[data-test='button']"}, {"css": {}, "dependencies": [], "attributes": {}
577, "type": "attribute", "id": "E6C2BBAF-A980-4FC9-9362-A46E1C88CB67", "selector": "[data-js-crawler='content-root'] > div > section > div > div > article:nth-of-type(3) > a[data-test='button']"}]}]}], "weightDistributions": [{"entityId": "6274215702167552", "endOfRange": 5000}, {"entityId": "6254852160880640", "endOfRange": 10000}], "name": "Download thanks webstorm cards", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "6380579493511168"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6269523769163776"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "6450491966619648", "name": "P - MPS - Remix - JS-xxxx", "commitId": "5140939258200064", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5037981107486720", "integrationSettings": null, "variations": [{"id": "6595573613068288", "name": "Original", "actions": [{"viewId": "6310681876627456", "changes": [{"id": "34649B4A-3FE0-4190-8786-7D4D5A763749", "type": "attribute", "dependencies": [], "name": "", "selector": ".header-section__button._sizeL_1coqd7n_29.wt-offset-top-sm-16", "attributes": {"html": "<svg viewBox=\"0 0 28 28\" class=\"_icon_h8tc35_4 _sizeS_h8tc35_18 _allVariants_h8tc35_48 _icon_1coqd7n_188\" style=\"--rs-icon-ar-width: 28; --rs-icon-ar-height: 28;\">\n  <svg viewBox=\"0 0 16 16\" class=\"_variant16_h8tc35_53\">\n    <path d=\"M13.17 6.522a1.75 1.75 0 0 1 0 2.956l-7.483 4.746C4.522 14.964 3 14.126 3 12.746V3.254c0-1.38 1.522-2.216 2.687-1.477z\">\n    </path>\n  </svg>\n  <svg viewBox=\"0 0 20 20\" class=\"_variant20_h8tc35_54\">\n    <path d=\"M16.142 8.285c1.294.777 1.294 2.653 0 3.43l-9.113 5.468c-1.333.8-3.029-.16-3.029-1.715V4.532c0-1.554 1.696-2.514 3.029-1.715z\">\n    </path>\n  </svg>\n  <svg viewBox=\"0 0 24 24\" class=\"_variant24_h8tc35_55\">\n    <path d=\"M19.653 9.886c1.554.981 1.554 3.246 0 4.228L7.835 21.578C6.17 22.629 4 21.433 4 19.464V4.536c0-1.97 2.17-3.165 3.835-2.114z\">\n    </path>\n  </svg>\n  <svg viewBox=\"0 0 28 28\" class=\"_variant28_h8tc35_58\">\n    <path d=\"M22.554 11.427c1.944 1.164 1.944 3.982 0 5.147L9.542 24.368C7.542 25.566 5 24.126 5 21.795V6.206c0-2.33 2.542-3.771 4.542-2.574z\">\n    </path>\n  </svg>\n</svg>\n<span class=\"_content_1coqd7n_207\" data-rs-internal=\"button__content\" data-test=\"button__content\">\n  Watch Video\n</span>"}, "css": {"background-color": "rgba(247, 51, 5, 1)"}}, {"id": "D6613B04-CF9A-4302-A5C2-51C76B60DBE8", "type": "attribute", "dependencies": [], "name": "", "selector": "body > div > div > section > div > div > div > a[data-test='button']", "attributes": {"html": "<span class=\"_content_1coqd7n_207\" data-rs-internal=\"button__content\" data-test=\"button__content\">\n  Download\n</span>"}, "css": {"background-color": "rgba(36, 255, 4, 1)"}}, {"id": "F3B468BA-45D4-4291-A3BD-A8DD54F344A6", "type": "attribute", "dependencies": [], "name": "", "selector": "body > div > div > section > div:nth-of-type(2) > p:nth-of-type(1)", "attributes": {"html": "Optimizely"}, "css": {}}, {"id": "D598D767-B23D-4EB3-B0B5-CBFCAC65BEF9", "type": "attribute", "dependencies": [], "name": "", "selector": "body > div > div > section > div > h1", "attributes": {"html": "Optimizely"}, "css": {}}, {"id": "E01C196A-B361-46BD-8647-CF4DEC2415A8", "type": "attribute", "dependencies": [], "name": "", "selector": "body > div > div > section:nth-of-type(2) > div > h2", "attributes": {"html": "Why Optimizely"}, "css": {}}, {"id": "38166FD2-CBA0-4051-B0C9-6D66D1393831", "type": "append", "dependencies": [], "name": "", "selector": "body > div > div > section > div:nth-of-type(2) > div:nth-of-type(2)", "value": "<a data-test=\"button\" type=\"button\" href=\"/mps/download/\" class=\"_main_1coqd7n_62 _modeRock_1coqd7n_36 _sizeL_1coqd7n_29 _alignIconLeft_1coqd7n_49 _dark_1coqd7n_9 header-section__button\" style=\"background-color: rgb(36, 255, 4);\" data-optly-d6613b04-cf9a-4302-a5c2-51c76b60dbe8=\"\"><span class=\"_content_1coqd7n_207\" data-rs-internal=\"button__content\" data-test=\"button__content\" data-optly-d6613b04-cf9a-4302-a5c2-51c76b60dbe8=\"\">\n  Download\n</span>\n</a>", "operator": "after"}]}]}], "weightDistributions": null, "name": "P - MPS - Remix - JS-xxxx", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "6450491966619648"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6310681876627456"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "6460172206342144", "name": "Banner - WebStorm - Overview - WebStorm 2010", "commitId": "5219351859560448", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5957089684619264", "integrationSettings": null, "variations": [{"id": "6030104246091776", "name": "Original", "actions": [{"viewId": "4850320484859904", "changes": [{"id": "F0BA489B-E441-4F20-B72
5776-8AD9697A716D", "src": "/actions/a2daf73555a93fe306171a05d2dbe6c6d42a27890c82a92ac0e1a3865c425e5a.js", "dependencies": [], "type": "custom_code"}, {"css": {}, "dependencies": [], "attributes": {}, "type": "attribute", "id": "2EDFBE42-EDA5-4E95-A302-9B1360A3120B", "selector": ".toggle-container"}]}]}], "weightDistributions": null, "name": "Banner - WebStorm - Overview - WebStorm 2010", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "6460172206342144"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["4850320484859904"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": [{"id": "25AD3772-CA5D-4FE2-9702-3C2591FBCBBF", "type": "append", "selector": "head", "value": "<style>#announce-placeholder > div.ribbon-banner[data-id=\"announce_621\"]{\n  background-color: #30b4a8 !important;\n}</style>", "dependencies": []}], "id": "6613122539061248", "name": "Banner - Fleet - Air Announce - JS-24812", "commitId": "4858139477016576", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "5514152781807616", "integrationSettings": null, "variations": [{"id": "5209983197904896", "name": "Original", "actions": []}], "weightDistributions": null, "name": "Banner - Fleet - Air Announce - JS-24812", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "6613122539061248"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["6746944979075072"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": [{"dependencies": [], "selector": "head", "type": "append", "value": "<style>/* JS-25469: hide 'Old Video Section' on /datagrip/features-overview/  */\n#v-wrapper-global > section:nth-of-type(5){\n  display: none!important;\n}</style>", "id": "ddba0ec23576488d86b0c4239dbe08b8"}], "id": "6618038957506560", "name": "P - Hide old Video section on DataGrip features (non China)- JS-25660", "commitId": "6485797719769088", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["or", "5259247418605568", "6161507998760960"], "audienceName": "Non China users,ncountryCodeCookie - not CN", "changes": null, "id": "4577345376354304", "integrationSettings": null, "variations": [{"id": "5140295329775616", "name": "Original", "actions": [{"viewId": "5988689279451136", "changes": []}]}], "weightDistributions": null, "name": "P - Hide old Video section on DataGrip features (non China)- JS-25660", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "6618038957506560"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5988689279451136"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}, {"changes": null, "id": "6716398269890560", "name": "Banner - Space - Space Pivot - JS-21677", "commitId": "5568270003077120", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {"is_using_gtm": "on"}, "26667870446": {}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "6066088748777472", "integrationSettings": null, "variations": [{"id": "5418648131600384", "name": "Original", "actions": [{"viewId": "5489087541411840", "changes": [{"id": "2e49ad12c4f14d31a98b52e535f8cfc4", "type": "custom_code", "value": function($){// Retrieve the utils library
578/*
579var utils = window["optimizely"].get("utils");
580
581utils.waitForElement("#optly-link").then(function (bannerElement) {
582  var location = window.location.href;
583  if (location.includes("/zh-cn/")) {
584    bannerElement.innerHTML =
585      "Space 即将更名为 SpaceCode,侧重于 Git 托管和代码审查。了解详情 →";
586  }
587  if (location.includes("/de-de/")) {
588    bannerElement.innerHTML =
589      "Space wird zu SpaceCode, mit dem Schwerpunkt Git-Hosting und Code-Reviews. Mehr erfahren →";
590  }
591  if (location.includes("/fr-fr/")) {
592    bannerElement.innerHTML =
593      "Space devient SpaceCode et est axé sur l'hébergement Git et les révisions de code. En savoir plus →";
594  }
595  if (location.includes("/ja-jp/")) {
596    bannerElement.innerHTML =
597      "Space は Git ホスティングとコードレビューに特化した SpaceCode に生まれ変わります。詳細 →";
598  }
599  if (location.includes("/ko-kr/")) {
600    bannerElement.innerHTML =
601      "Space가 Git 호스팅 및 코드 검토에 초점을 둔 SpaceCode로 변경됩니다. 자세히 알아보기 →";
602  }
603  if (location.includes("/pt-br/")) {
604    bannerElement.innerHTML =
605      "O Space está mudando para SpaceCode, com foco em hospedagem de Git e revisões de código. Saiba mais →";
606  }
607  if (location.includes("/es-es/")) {
608    bannerElement.innerHTML =
609      "Space pasa a ser SpaceCode para centrarse en el alojamiento Git y las revisiones de código. Más información →";
610  }
611  if (location.includes("/ru-ru/")) {
612    bannerElement.innerHTML =
613      "Space меняет направление развития и трансформируется в SpaceCode — решение для Git-хостинга и ревью кода. Подробнее →";
614  }
615});
616*/
617}, "dependencies": []}, {"id": "b9d95865efc54a908544b81b180b9495", "src": "/actions/dddb5b8654be558d73b61338691e47180cee540ddbd826bd9ef989f231a53440.js", "depen
617dencies": [], "type": "widget"}]}]}], "weightDistributions": null, "name": "Banner - Space - Space Pivot - JS-21677", "bucketingStrategy": null, "experimentMetadata": {"allocationPolicy": "manual", "layerId": "6716398269890560"}, "deployed": false}], "policy": "single_experiment", "viewIds": ["5489087541411840"], "weightDistributions": null, "decisionMetadata": null, "concluded": false}], "groups": [], "audiences": [{"id": "27453331160", "name": "All visitors - Desktop/Laptop", "conditions": ["and", ["or", ["or", {"match": null, "name": null, "type": "device", "value": "desktop"}]]]}, {"id": "27655370007", "name": "ncountryCodeCookie - JS-19827", "conditions": ["and", ["or", ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "CN"}], ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "XK"}], ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "VE"}], ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "RU"}], ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "BY"}], ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "MO"}], ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "HK"}]]]}, {"id": "28658270038", "name": "ncountryCodeCookie - CN", "conditions": ["and", ["or", ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "CN"}]]]}, {"id": "5259247418605568", "name": "Non China users", "conditions": ["and", ["or", ["not", ["or", {"match": null, "name": null, "type": "location", "value": "CN"}]], ["not", ["or", {"match": null, "name": "29621180261", "type": "custom_attribute", "value": "CN"}]]]]}, {"id": "5266534870810624", "name": "Location - China", "conditions": ["and", ["or", ["or", {"match": null, "name": null, "type": "location", "value": "CN"}]]]}, {"id": "6161507998760960", "name": "ncountryCodeCookie - not CN", "conditions": ["and", ["or", ["not", ["or", {"match": "exact", "name": "ncountryCodeCookie", "type": "cookies", "value": "CN"}]]]]}, {"id": "6604680854241280", "name": "Everyone excl. Linkedin Paid B2B hero taglines", "conditions": ["and", ["or", ["not", ["or", {"match": "substring", "name": "utm_campaign", "type": "query", "value": "_b2b_business_taglines"}]], ["not", ["or", {"match": "substring", "name": "utm_campaign", "type": "query", "value": "_b2b_why_ides"}]]], ["or", ["not", ["or", {"match": "exact", "name": "utm_source", "type": "query", "value": "linkedin"}]]]]}], "listTargetingKeys": [], "visitorAttributes": [], "visitorIdLocator": null, "integrationSettings": [{"id": "google_analytics_4", "global_is_use_gtm": "on"}], "views": [{"id": "27443960928", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_p__template__promo_4", "name": "URL Targeting for P - DataGrip - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/datagrip/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27499810022", "category": "other", "apiName": "26613100737_url_targeting_for_youtrack_test", "name": "URL Targeting for P - YouTrack - Dynamic competitive titles - MKT-29028", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/youtrack/compare/youtrack-competitive-offer/"}], ["or", {"match": "substring", "type": "url", "value": "adgroup"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "27536390632", "category": "other", "apiName": "26613100737_url_targeting_for_p_clion_promo", "name": "URL Targeting for P - CLion - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/clion/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27541060863", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_p__template__promo_2", "name": "URL Targeting for P - RubyMine - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/ruby/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27570340631", "category": "other", "apiName": "26613100737_url_targeting_for_p__resharper__promo", "name": "URL Targeting for P - ReSharper - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/resharper/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27578240316", "category": "other", "apiName": "26613100737_url_targeting_for_c
617opy_of_p__template__promo_3", "name": "URL Targeting for P - PhpStorm - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/phpstorm/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27604020182", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_p__template__promo_5", "name": "URL Targeting for P - Rider - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/rider/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27615930076", "category": "other", "apiName": "26613100737_url_targeting_for_p__youtrack__jetbrains_ai_banner__", "name": "URL Targeting for Banner - YouTrack - JetBrains AI Banner - JS-19827", "staticConditions": ["and", ["or", {"match": "regex", "type": "url", "value": "https:\\/\\/www\\.jetbrains\\.com\\/([a-z][a-z]\\-[a-z][a-z]\\/)?youtrack\\/"}, {"match": "regex", "type": "url", "value": "https:\\/\\/www\\.jetbrains\\.com\\/([a-z][a-z]\\-[a-z][a-z]\\/)?youtrack\\/features\\/ai_assistant\\.html"}]], "deactivationEnabled": true, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": function callbackFn(activate, options) {
618window.addEventListener('banner-rotator-initialized', function(event) {
619  var rotatorBanners = event.detail.banners;
620  if (rotatorBanners.length === 0) {
621    activate();
622  }
623});
624}
625}, {"id": "27622100054", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_p__template__promo", "name": "URL Targeting for P - IntelliJ IDEA - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/idea/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27678070009", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_p__template__promo_6", "name": "URL Targeting for P - ReSharper C++ - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/resharper-cpp/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27711390043", "category": "other", "apiName": "26613100737_url_targeting_for_p__goland__promo_7", "name": "URL Targeting for P - GoLand - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/go/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "27717330076", "category": "other", "apiName": "26613100737_url_targeting_for_p_webstorm_promo", "name": "URL Targeting for P - WebStorm - /promo/", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/webstorm/promo/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "28239310449", "category": "other", "apiName": "26613100737_url_targeting_for_p__teamcity__pipelines__js19936", "name": "URL Targeting for P - TeamCity - Pipelines - Product Hunt - JS-19936", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/teamcity/pipelines/"}], ["or", {"match": "substring", "type": "url", "value": "www.jetbrains.com"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "28340890724", "category": "other", "apiName": "26613100737_idea_buy", "name": "idea_buy", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/idea/buy/"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "28430050695", "category": "other", "apiName": "26613100737_pycharm_download_downloadthanks", "name": "pycharm_download_download-thanks", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/download/download-thanks.html"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "28468080498", "category": "other", "apiName": "26613100737_pycharm_download_downloadthanks_professional", "name": "pycharm_download_download-thanks_professional", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/download/download-thanks.html"}], ["not", ["or", {"match": "substring", "type": "url", "value": "code=PCC"}]]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "28519850167", "category": "other", "apiName": "26613100737_pycharm_download_downloadthankshtml_community", "name": "pycharm_download_download-thanks.html_community", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/download/download-thanks.html"}], ["or", {"match": "substring", "type": "url", "value": "code=PCC"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "28579210417", "category": "other", "apiName": "26613100737_url_targeting_for_banner__jetbrains_ai__china__js200", "name": "Banner - JetBrains AI - China - JS-20099", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/webstorm/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/datagrip/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/idea/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/ruby/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/pycharm/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/clion/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/go/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/rider/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/resharper/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/resharper-cpp/whatsnew/"}], ["or", {"match": "substring", "type": "url", "value": "/phpstorm/whatsnew/"}], ["or", {"match": "regex", "type": "url", "value": "https://www.jetbrains.com/(zh-cn/)?(webstorm|datagrip|idea|ruby|pycharm|clion|go|rider|resharper|resharper-cpp|phpstorm|grazie)/$"}], ["or", {"match": "substring", "type": "url", "value": "/ai/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": function callbackFn(activate, options) {
626window.addEventListener('banner-rotator-initialized', function(event) {
627  var rotatorBanners = event.detail.banners;
628  if (rotatorBanners.length === 0) {
629    activate();
630  }
631});
632}
633}, {"id": "28980690957", "category": "other", "apiName": "26613100737_url_targeting_for_p__qodana__dynamic_page_titles__dm", "name": "URL Targeting for P - Qodana - Dynamic page titles - DM-4589", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/qodana/"}], ["or", {"match": "substring", "type": "url", "value": "adgroup"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "29000310062", "category": "other", "apiName": "26613100737_url_targeting_for_p__r
633ider__jetasteroids__jsxxxx", "name": "URL Targeting for P - Rider - JetAsteroids - JS-xxxx", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://lp.jetbrains.com/asteroid-game-challenge/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "4527233025441792", "category": "other", "apiName": "26613100737_url_targeting_for_p__ai_engineers_lp__localized_vide", "name": "URL Targeting for P - AI Engineers LP - Localized Videos - JS-23185", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://lp.jetbrains.com/"}], ["or", {"match": "substring", "type": "url", "value": "/pycharm-for-ai-engineers/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "4594567272464384", "category": "other", "apiName": "26613100737_url_targeting_for_p__datagrip__features__hide_ai_for", "name": "URL Targeting for P - DataGrip - SQL Support, Working with files- Hide AI for China - JS-25469 and  JS-25660", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/datagrip/sql-support/"}], ["or", {"match": "substring", "type": "url", "value": "/datagrip/working-with-files/"}], ["or", {"match": "substring", "type": "url", "value": "/datagrip/running-queries/"}], ["or", {"match": "substring", "type": "url", "value": "/datagrip/databases/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "4659873625931776", "category": "other", "apiName": "26613100737_url_targeting_for_p__china_ai_sunset__nav_menu__js25", "name": "URL Targeting for P - China AI Sunset - Nav Menu - JS-25182", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com/"}], ["not", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com/resellers/"}]], ["not", ["or", {"match": "substring", "type": "url", "value": "/help/"}]]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "4850320484859904", "category": "other", "apiName": "26613100737_url_targeting_for_banner__webstorm__overview__websto", "name": "URL Targeting for Banner - WebStorm - Overview - WebStorm 2010", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/webstorm/"}], ["or", {"match": "substring", "type": "url", "value": "var=new"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}
633, {"id": "4962172013379584", "category": "other", "apiName": "26613100737_academy_studentpack", "name": "academy_student-pack", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/academy/student-pack/"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "4973730921709568", "category": "other", "apiName": "26613100737_url_targeting_for_p__ai_china__js24154", "name": "URL Targeting for P - AI China - JS-24154", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://lp.jetbrains.com/ai-china/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5341189277220864", "category": "other", "apiName": "26613100737_url_targeting_for_redirect__ai_ides__faq", "name": "URL Targeting for Redirect - AI IDEs - FAQ", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "www.jetbrains.com"}], ["or", {"match": "substring", "type": "url", "value": "/ai-ides-faq/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5365298967085056", "category": "other", "apiName": "26613100737_url_targeting_for_p__community_education__redirect__", "name": "URL Targeting for P - Community Education - Redirect - JS-21676", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/community/education/"}], ["or", {"match": "substring", "type": "url", "value": "#courses"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "url_changed"}, {"id": "5489087541411840", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_banner__space__space_pivot", "name": "URL Targeting for Banner - Space - Space Pivot - JS-21677", "staticConditions": ["or", ["or", {"match": "regex", "type": "url", "value": "https://www\\.jetbrains\\.com\\/([a-z][a-z]\\-[a-z][a-z]\\/)?space\\/"}, {"match": "substring", "type": "url", "value": "/space/features/code-reviews.html"}, {"match": "substring", "type": "url", "value": "/space-source-code-management/"}, {"match": "substring", "type": "url", "value": "/space/learn/"}, {"match": "substring", "type": "url", "value": "/space/download/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "5497595477360640", "category": "other", "apiName": "26613100737_url_targeting_for_redirect__codecanvas__contactsales", "name": "URL Targeting for Redirect - CodeCanvas - #contact-sales - JS-22484", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/codecanvas/"}], ["or", {"match": "substring", "type": "url", "value": "#contact-sales"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5685229243858944", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_banner__jetbrains_ai__chin", "name": "URL Targeting for Banner - JetBrains AI - /aia-vscode/ - JS-22515", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/zh-cn/aia-vscode/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "5713463216439296", "category": "other", "apiName": "26613100737_url_targeting_for_banner__ai_assistant__eap__js21320", "name": "URL Targeting for Banner - AI Assistant - EAP - JS-21320", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/pycharm/nextversion/"}], ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/idea/nextversion/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5715952269000704", "category": "other", "apiName": "26613100737_url_targeting_for_p__pycharm__anaconda__js21570", "name": "URL Targeting for P - PyCharm - Anaconda - JS-21570", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com"}], ["or", {"match": "substring", "type": "url", "value": "var=anaconda"}], ["or", {"match": "substring", "type": "url", "value": "/pycharm/data-science/"}
633]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5878715926708224", "category": "other", "apiName": "26613100737_go_extendtrial", "name": "go_extend-trial", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/go/"}], ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/go/buy/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "5988689279451136", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_p__hide_ai_video_section_o", "name": "URL Targeting for P - Hide old Video section on DataGrip features (non China)- JS-25660", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/datagrip/features-overview/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6017548590776320", "category": "other", "apiName": "26613100737_url_targeting_banner__django", "name": "URL Targeting for Banner - State of Django - JS-25441", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://lp.jetbrains.com/django-developer-survey-2026/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6079953156964352", "category": "other", "apiName": "26613100737_youtrack_pages__dm5869", "name": "YouTrack pages - DM-5869", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com/youtrack/"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "6230177189986304", "category": "other", "apiName": "26613100737_business", "name": "business", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/business/"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "6269523769163776", "category": "other", "apiName": "26613100737_url_targeting_for_download_thanks_webstorm_cards", "name": "URL Targeting for Download thanks webstorm cards", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "/webstorm/download/download-thanks.html"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6310681876627456", "category": "other", "apiName": "26613100737_url_targeting_for_p__mps__remix__jsxxxx", "name": "URL Targeting for P - MPS - Remix - JS-xxxx", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://entry.i18n.w3jbcom.aws.intellij.net/mps/"}], ["or", {"match": "substring", "type": "url", "value": "var=1"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6363071300501504", "category": "other", "apiName": "26613100737_url_targeting_for_banner__jetbrains_ai__china__js225", "name": "URL Targeting for Banner - JetBrains AI - China - JS-22515", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/whatsnew/"}, {"match": "substring", "type": "url", "value": "/ai/"}, {"match": "substring", "type": "url", "value": "/store/"}, {"match": "substring", "type": "url", "value": "/buy/"}, {"match": "substring", "type": "url", "value": "/junie/"}], ["not", ["or", {"match": "regex", "type": "url", "value": "(youtrack|teamcity|space|qodana|datalore|codecanvas)"}]]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "6384149265645568", "category": "other", "apiName": "26613100737_url_targeting_for_copy_of_p__datagrip__features__hid", "name": "URL Targeting for P -DataGrip features- Hide AI Video and section  -JS-25469 and JS-25660", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/datagrip/features-overview/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6413074316394496", "category": "other", "apiName": "26613100737_url_targeting_for_banner__rider__xamarin__js22033", "name": "URL Targeting for Banner - Rider - Xamarin - JS-22033", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/lp/rider-xamarin/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "6475492526653440", "category": "other", "apiName": "26613100737_wwwjetbrainscom__dm5748", "name": "www.jetbrains.com - DM-5748", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "https://www.jetbrains.com"}], ["not", ["or", {"match": "substring", "type": "url", "value": "var=landing"}]], ["not", ["or", {"match": "substring", "type": "url", "value": "\\/[a-z][a-z]\\-[a-z][a-z]\\/"}]], ["not", ["or", {"match": "substring", "type": "url", "value": "/shop/"}]], ["not", ["or", {"match": "substring", "type": "url", "value": "/lp/"}]], ["not", ["or", {"match": "substring", "type": "url", "value": "/help/"}]]], "deactivationEnabled": true, "undoOnDeactivation": false, "tags": []}, {"id": "6482886308659200", "category": "other", "apiName": "26613100737_url_targeting_for_p__vision__git_client__download_li", "name": "URL Targeting for P - Vision - Git Client - Download links - JS-23042 ", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://lp.jetbrains.com/download-git-client/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6487433827581952", "category": "other", "apiName": "26613100737_url_targeting_for_ab_idea__overview__request_demo_js", "name": "URL Targeting for AB - IDEA - Overview - Request demo -JS-23668", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/idea/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6565322512138240", "category": "other", "apiName": "26613100737_url_targeting_for_redirect__resourcesindustryreports", "name": "URL Targeting for Redirect - /resources/industry-reports/& - JS-25313", "staticConditions": ["and", ["or", {"match": "exact", "type": "url", "value": "https://www.jetbrains.com/resources/industry-reports/&"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "6580850469371904", "category": "other", "apiName": "26613100737_url_targeting_for_p__intellij_conf__sessionize", "n
633ame": "URL Targeting for P - IntelliJ Conf - Sessionize", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://internal.vision.jetbrains.dev/ijconf-2025/agenda/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "dom_changed"}, {"id": "6683838236065792", "category": "other", "apiName": "26613100737_url_targeting_for_redirect__developers_in_startups__", "name": "URL Targeting for Redirect - Developers in Startups - JS-25095", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/developers-in-startups-form/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": [], "activationType": "callback", "activationCode": // This code was automatically generated by Optimizely's Visual Editor.
634// Version: 1.0.1
635// Please exercise caution when modifying, as changes may cause unintended behavior.
636
637
638function trigger(activate, options) {
639  let cancelObserver = null;
640  
641  let lastUrl = location.href;
642
643  function onUrlChange() {
644    activate({ isActive: false });
645
646    if (cancelObserver) {
647      cancelObserver();
648      cancelObserver = null;
649    }
650
651
652    const selector = `#root > div > section div > div[class^="_submitMessage"]`;
653    const utils = window.optimizely.get('utils');
654
655    cancelObserver = utils.observeSelector(selector, function (element) {
656
657      if (!options.isActive) {
658        activate();
659      }
660      cancelObserver = null;
661    }, { once: true });
662  }
663  onUrlChange();
664
665  function checkUrl() {
666    if (location.href !== lastUrl) {
667      lastUrl = location.href;
668      onUrlChange(lastUrl);
669    }
670  }
671
672  const pushState = history.pushState;
673  history.pushState = function (...args) {
674    pushState.apply(this, args);
675    checkUrl();
676  };
677
678  const replaceState = history.replaceState;
679  history.replaceState = function (...args) {
680    replaceState.apply(this, args);
681    checkUrl();
682  };
683  window.addEventListener("popstate", checkUrl);
684  window.addEventListener("hashchange", checkUrl);
685}
686}, {"id": "6693701808816128", "category": "other", "apiName": "26613100737_datalore", "name": "datalore", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://www.jetbrains.com/datalore/"}]], "deactivationEnabled": true, "undoOnDeactivation": true, "tags": []}, {"id": "6746944979075072", "category": "other", "apiName": "26613100737_url_targeting_for_banner__fleet__air_announce__js248", "name": "URL Targeting for Banner - Fleet - Air Announce - JS-24812", "staticConditions": ["and", ["or", {"match": "substring", "type": "url", "value": "/fleet/"}], ["not", ["or", {"match": "substring", "type": "url", "value": "/help/"}]]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}], "events": [{"id": "26590800666", "viewId": null, "name": "download_edu-products", "category": "other", "apiName": "download_edu-products", "eventType": "custom", "eventFilter": null}, {"id": "26592110684", "viewId": null, "name": "download_dottool", "category": "other", "apiName": "download_dottool", "eventType": "custom", "eventFilter": null}, {"id": "26597440531", "viewId": null, "name": "download_goland", "category": "other", "apiName": "download_goland", "eventType": "custom", "eventFilter": null}, {"id": "26612150686", "viewId": null, "name": "download_dotultimate", "category": "other", "apiName": "download_dotultimate", "eventType": "custom", "eventFilter": null}, {"id": "26643290258", "viewId": null, "name": "download_clion", "category": "other", "apiName": "download_clion", "eventType": "custom", "eventFilter": null}, {"id": "26649870313", "viewId": null, "name": "download_datagrip", "category": "other", "apiName": "download_datagrip", "eventType": "custom", "eventFilter": null}, {"id": "26669570229", "viewId": null, "name": "download_idea", "category": "other", "apiName": "download_idea", "eventType": "custom", "eventFilter": null}, {"id": "26751651737", "viewId": null, "name": "download_webstorm", "category": "other", "apiName": "download_webstorm", "eventType": "custom", "eventFilter": null}, {"id": "26774281056", "viewId": null, "name": "download_rider", "category": "other", "apiName": "download_rider", "eventType": "custom", "eventFilter": null}, {"id": "26790720653", "viewId": null, "name": "download_phpstorm", "category": "other", "apiName": "download_phpstorm", "eventType": "custom", "eventFilter": null}, {"id": "26798020769", "viewId": null, "name": "download_pycharm", "category": "other", "apiName": "download_pycharm", "eventType": "custom", "eventFilter": null}, {"id": "26828020330", "viewId": null, "name": "download_teamcity", "category": "other", "apiName": "download_teamcity", "eventType": "custom", "eventFilter": null}, {"id": "26865560220", "viewId": null, "name": "download_fleet", "category": "other", "apiName": "download_fleet", "eventType": "custom", "eventFilter": null}, {"id": "26871750180", "viewId": null, "name": "download_resharper", "category": "other", "apiName": "download_resharper", "eventType": "custom", "eventFilter": null}, {"id": "26875270240", "viewId": null, "name": "download_youtrack", "category": "other", "apiName": "download_youtrack", "eventType": "custom", "eventFilter": null}, {"id": "26879760104", "viewId": null, "name": "download_resharper-cpp", "category": "other", "apiName": "download_resharper-cpp", "eventType": "custom", "eventFilter": null}, {"id": "26880700043", "viewId": null, "name": "download_rubymine", "category": "other", "apiName": "download_rubymine", "eventType": "custom", "eventFilter": null}, {"id": "26958950038", "viewId": null, "name": "download_rustrover", "category": "other", "apiName": "download_rustrover", "eventType": "custom", "eventFilter": null}, {"id": "27507701129", "viewId": "27615930076", "name": "click_optly-link", "category": "other", "apiName": "26613100737_click_optlylink", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/legal/docs/terms/jetbrains-ai/service-territory/\"]#optly-link"}}, {"id": "27745650405", "viewId": null, "name": "purchase_CL", "category": "other", "apiName": "purchase_CL", "eventType": "custom", "eventFilter": null}, {"id": "27831800237", "viewId": "27499810022", "name": "Click Get it free - YouTrack Compare", "category": "other", "apiName": "26613100737_click_event_for__allowmultiline_1o2xc3v_114", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "._allowMultiline_1o2xc3v_114"}}, {"id": "27938750349", "viewId": null, "name": "purchase_II", "category": "other", "apiName": "purchase_II", "eventType": "custom", "eventFilter": null}, {"id": "27940740483", "viewId": null, "name": "purchase_DS", "category": "other", "apiName": "purchase_DS", "eventType": "custom", "eventFilter": null}, {"id": "27944140319", "viewId": null, "name": "purchase_YT", "category": "other", "apiName": "purchase_YT", "eventType": "custom", "eventFilter": null}, {"id": "27944310293", "viewId": null, "name": "purchase_RD", "category": "other", "apiName": "purchase_RD", "eventType": "custom", "eventFilter": null}, {"id": "27946440347", "viewId": null, "name": "purchase_PS", "category": "other", "apiName": "purchase_PS", "eventType": "custom", "eventFilter": null}, {"id": "27951940287", "viewId": null, "name": "purchase_RM", "category": "other", "apiName": "purchase_RM", "eventType": "custom", "eventFilter": null}, {"id": "27957940509", "viewId": null, "name": "purchase_AIP", "category": "other", "apiName": "purchase_AIP", "eventType": "custom", "eventFilter": null}, {"id": "27965690323", "viewId": null, "name": "purchase_QDU", "category": "other", "apiName": "purchase_QDU", "eventType": "custom", "eventFilter": null}, {"id": "27969350286", "viewId": null, "name": "purchase_TC", "category": "other", "apiName": "purchase_TC", "eventType": "custom", "eventFilter": null}, {"id": "27978560322", "viewId": null, "name": "purchase", "category": "other", "apiName": "purchase", "eventType": "custom", "eventFilter": null}, {"id": "27980910333", "viewId": null, "name": "purchase_RS", "category": "other", "apiName": "purchase_RS", "eventType": "custom", "eventFilter": null}, {"id": "28001970258", "viewId": null, "name": "purchase_GO", "category": "other", "apiName": "purchase_GO", "eventType": "custom", "eventFilter": null}, {"id": "28006640157", "viewId": null, "name": "purchase_DG", "category": "other", "apiName": "purchase_DG", "eventType": "custom", "eventFilter": null}, {"id": "28033690148", "viewId": null, "name": "purchase_WS", "category": "other", "apiName": "purchase_WS", "eventType": "custom", "eventFilter": null}, {"id": "28034840034", "viewId": null, "name": "purchase_PC", "category": "other", "apiName": "purchase_PC", "eventType": "custom", "eventFilter": null}, {"id": "28039930057", "viewId": null, "name": "purchase_ALL", "category": "other", "apiName": "purchase_ALL", "eventType": "custom", "eventFilter": null}, {"id": "28072990007", "viewId": null, "name": "purchase_DUL", "category": "other", "apiName": "purchase_DUL", "eventType": "custom", "eventFilter": null}, {"id": "28198870540", "viewId": "28239310449", "name": "click_get-started", "category": "other", "apiName": "26613100737_click_getstarted", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href^=\"http://authservice.core.teamcity.com\"]"}}, {"id": "28346610384", "viewId": "28340890724", "name": "click_buy_idea", "category": "other", "apiName": "26613100737_click_buy_idea", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/shop/buy\"]"}}, {"id": "28363870492", "viewId": "28340890724", "name": "click_buy_individual_idea", "category": "other", "apiName": "26613100737_click_buy_individual_idea", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/shop/buy?item=P:\"]"}}, {"id": "28371160599", "viewId": null, "name": "Visit Page: go", "category": "other", "apiName": "visit_page_go", "eventType": "custom", "eventFilter": null}, {"id": "28411880197", "viewId": "28239310449", "name": "click_product-hunt", "category": "other", "apiName": "26613100737_click_producthunt_2", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href^=\"https://www.producthunt.com\"]"}}, {"id": "28455510085", "viewId": "28340890724", "name": "click_quote_idea", "category": "other", "apiName": "26613100737_click_quote_idea", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/shop/quote\"]"}}, {"id": "28467490026", "viewId": "28340890724", "name": "click_buy_organization_idea", "category": "other", "apiName": "26613100737_click_buy_organization_idea", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/shop/buy?item=C:\"]"}}
686, {"id": "29031250005", "viewId": "29000310062", "name": "click_canvas", "category": "other", "apiName": "26613100737_click_canvas", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#jetbrains-asteroid-game"}}, {"id": "29268140193", "viewId": "28980690957", "name": "click_try_for_free", "category": "other", "apiName": "26613100737_click_try_for_free", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"qodana.cloud/onboarding\"]"}}, {"id": "29384840127", "viewId": null, "name": "Visit Page: Space", "category": "other", "apiName": "visit_page_space", "eventType": "custom", "eventFilter": null}, {"id": "29586910132", "viewId": null, "name": "consent_analytics_storage", "category": "other", "apiName": "consent_analytics_storage", "eventType": "custom", "eventFilter": null}, {"id": "29608770194", "viewId": null, "name": "select_promotion", "category": "other", "apiName": "select_promotion", "eventType": "custom", "eventFilter": null}, {"id": "29610230195", "viewId": null, "name": "view_promotion", "category": "other", "apiName": "view_promotion", "eventType": "custom", "eventFilter": null}, {"id": "29613510200", "viewId": null, "name": "consent_all", "category": "other", "apiName": "consent_all", "eventType": "custom", "eventFilter": null}, {"id": "29631030117", "viewId": null, "name": "consent_ad_storage", "category": "other", "apiName": "consent_ad_storage", "eventType": "custom", "eventFilter": null}, {"id": "29655510005", "viewId": null, "name": "consent_personalization_storage", "category": "other", "apiName": "consent_personalization_storage", "eventType": "custom", "eventFilter": null}, {"id": "30003550463", "viewId": null, "name": "purchase_PLARAVEL", "category": "other", "apiName": "purchase_PLARAVEL", "eventType": "custom", "eventFilter": null}, {"id": "4508556955746304", "viewId": "6475492526653440", "name": "store_pricing_menu_item_click_dm-5748", "category": "other", "apiName": "26613100737_store_pricing_menu_item_click_", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "nav a[href=\"https://www.jetbrains.com/store/?section=personal&billing=yearly\"],\nnav [data-test-marker=\"Store\"] [data-test=\"main-menu-item-action\"][aria-label=\"Store: Open submenu\"]"}}, {"id": "4571392339869696", "viewId": "6413074316394496", "name": "click_optly-link_rider-xamarin", "category": "other", "apiName": "26613100737_click_optlylink_riderxamarin", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#optly-banner-JS-22033 > p > a"}}
686, {"id": "4590157582565376", "viewId": "4962172013379584", "name": "click_apply_academy_student-pack", "category": "other", "apiName": "26613100737_click_apply_academy_studentpack", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"www.jetbrains.com/shop/eform/students\"]"}}, {"id": "4727456295288832", "viewId": "6269523769163776", "name": "learn_more_ai_webstorm_click", "category": "other", "apiName": "26613100737_learn_more_ai_webstorm_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-js-crawler='content-root'] > div > section > div > div > article:nth-of-type(3) > a[data-test='button']"}}, {"id": "4768089655476224", "viewId": "6079953156964352", "name": "try_free_link_click_menu", "category": "other", "apiName": "26613100737_try_free_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#js-menu-second-desktop a[href=\"/youtrack/download/\"]"}}, {"id": "4777069089914880", "viewId": "6230177189986304", "name": "jb_ides_link_click VCesZJ9MtQT5zPKjWU4YC", "category": "other", "apiName": "26613100737_jb_ides_link_click_VCesZJ9MtQT5zPKjWU4YC", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-developers a[href=\"/ides/\"]"}}, {"id": "4802221548765184", "viewId": null, "name": "get-in-touch_datalore", "category": "other", "apiName": "get-in-touch_datalore", "eventType": "custom", "eventFilter": null}, {"id": "4824329668526080", "viewId": "6079953156964352", "name": "teams_customers_overall_click", "category": "other", "apiName": "26613100737_teams_customers_menu_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/customers/\"], [data-test=\"dropdown-content\"] a[href=\"/youtrack/teams/\"]"}}, {"id": "4903623277150208", "viewId": null, "name": "download_aia", "category": "other", "apiName": "download_aia", "eventType": "custom", "eventFilter": null}, {"id": "4921196951633920", "viewId": "6079953156964352", "name": "pricing_link_click_menu", "category": "other", "apiName": "26613100737_pricing_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#js-menu-second-desktop a[href=\"/youtrack/buy/\"]"}}, {"id": "4975559594213376", "viewId": "6269523769163776", "name": "dg_sign_click", "category": "other", "apiName": "26613100737_dg_sign_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-js-crawler='content-root'] > div > section > div > div > div > div > div > p:nth-of-type(2) > a"}}, {"id": "4996359321812992", "viewId": "6693701808816128", "name": "click_signup_datalore", "category": "other", "apiName": "26613100737_click_signup_datalore", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "form#datalore-signup [data-test='submit-button'], a[href*=\"/api/google/\"],a[href*=\"/api/jetbrains/\"],a[href*=\"account.jetbrains.com/signup\"]"}}, {"id": "5012042422157312", "viewId": "6230177189986304", "name": "sticky_banner_for_org_click", "category": "other", "apiName": "26613100737_sticky_banner_for_org_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(2)"}}, {"id": "5015292061941760", "viewId": "28340890724", "name": "click_request_extended_trial", "category": "other", "apiName": "26613100737_click_request_extended_trial", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href=\"https://www.jetbrains.com/shop/eform/extended-trial/II/\"]"}}, {"id": "5046498159755264", "viewId": "6230177189986304", "name": "sticky_banner_security_click VMnGBacp2f5U2LUAwkhYW", "category": "other", "apiName": "26613100737_sticky_banner_security_click_VMnGBacp2f5U2LUAwkhYW", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(4)"}}, {"id": "5060232951365632", "viewId": null, "name": "scroll", "category": "other", "apiName": "scroll", "eventType": "custom", "eventFilter": null}, {"id": "5075828222984192", "viewId": "6230177189986304", "name": "trust_portal_link_click", "category": "other", "apiName": "26613100737_trust_portal_link_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#security a[data-test=\"button\"][href=\"https://trust-center.jetbrains.com/\"]"}}, {"id": "5170042256490496", "viewId": "6079953156964352", "name": "customer_stories_click", "category": "other", "apiName": "26613100737_customers_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/customers/\"]"}}, {"id": "5202066203738112", "viewId": "6230177189986304", "name": "sticky_banner_open_system_click KrdrSfkuiz8qWVGzLokRC", "category": "other", "apiName": "26613100737_sticky_banner_open_system_clic_KrdrSfkuiz8qWVGzLokRC", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(1)"}}, {"id": "5207732205125632", "viewId": "6079953156964352", "name": "features_link_click_menu", "category": "other", "apiName": "26613100737_features_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/features/\"]"}}, {"id": "5292674142437376", "viewId": "6230177189986304", "name": "ai_for_teams_orgs_link_click ArngNRKhdeT124wGGawfx", "category": "other", "apiName": "26613100737_ai_for_teams_orgs_link_click_ArngNRKhdeT124wGGawfx", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-organisation a[data-test=\"button\"][href=\"/agentic-software-development/\"]"}}, {"id": "5304079864299520", "viewId": "6230177189986304", "name": "hero_get_in_touch_click NdBTSdyjuSFNBfkAk3aPm", "category": "other", "apiName": "26613100737_hero_get_in_touch_click_NdBTSdyjuSFNBfkAk3aPm", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#b2b-page .business-head-section a[href=\"#get-in-touch\"]"}}, {"id": "5340019043336192", "viewId": "6230177189986304", "name": "sticky_banner_get_in_touch_click JTif2CjqB8T9x8LsZ2JSF", "category": "other", "apiName": "26613100737_sticky_banner_get_in_touch_cli_JTif2CjqB8T9x8LsZ2JSF", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(5)"}}, {"id": "5346218157539328", "viewId": "6230177189986304", "name": "ai_for_teams_orgs_link_click", "category": "other", "apiName": "26613100737_ai_for_teams_orgs_link_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-organisation a[data-test=\"button\"][href=\"/agentic-software-development/\"]"}}, {"id": "5348837684936704", "viewId": "6230177189986304", "name": "form_self_serve_options_click", "category": "other", "apiName": "26613100737_form_self_serve_options_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#get-in-touch form[data-test=\"wtform\"] a[href=\"/store/\"]"}}, {"id": "5362081585692672", "viewId": "6079953156964352", "name": "jiravsyoutrack_link_click_menu", "category": "other", "apiName": "26613100737_jiravsyoutrack_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/compare/jira-vs-youtrack/\"]"}}, {"id": "5378824039301120", "viewId": "6230177189986304", "name": "air_link_click FFU8V3NX28JATNY5PxjiF", "category": "other", "apiName": "26613100737_air_link_click_FFU8V3NX28JATNY5PxjiF", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-developers a[href=\"https://air.dev/\"]"}}, {"id": "5393048568332288", "viewId": "6079953156964352", "name": "book_demo_link_click_menu", "category": "other", "apiName": "26613100737_book_demo_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#js-menu-second-desktop a[href=\"/youtrack/request-a-demo/\"]"}}, {"id": "5414255741108224", "viewId": "6230177189986304", "name": "acp_page_link_click KXvHjg5D9TzmuHMRDNkGr", "category": "other", "apiName": "26613100737_acp_page_link_click_KXvHjg5D9TzmuHMRDNkGr", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#b2b-page a[href=\"/acp/\"]"}}, {"id": "5423670168911872", "viewId": "28340890724", "name": "click_contact_us_sales_support", "category": "other", "apiName": "26613100737_click_contact_us_sales_support", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href=\"/support/sales/#product=idea\"]"}}, {"id": "5524137653829632", "viewId": null, "name": "download_product", "category": "other", "apiName": "download_product", "eventType": "custom", "eventFilter": null}, {"id": "5547995083571200", "viewId": "6230177189986304", "name": "sticky_banner_any_click 95KeyxTPdMe8p9PSeG49r", "category": "other", "apiName": "26613100737_sticky_banner_any_click_95KeyxTPdMe8p9PSeG49r", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button"}}, {"id": "5549794909749248", "viewId": "6079953156964352", "name": "helpdesk_link_click_menu", "category": "other", "apiName": "26613100737_helpdesk_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#js-menu-second-desktop a[href=\"/youtrack/helpdesk/\"]"}}, {"id": "5573892863950848", "viewId": "6230177189986304", "name": "trust_portal_link_click T2MHiysW3HwVJPwjrZ8tb", "category": "other", "apiName": "26613100737_trust_portal_link_click_T2MHiysW3HwVJPwjrZ8tb", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#security a[data-test=\"button\"][href=\"https://trust-center.jetbrains.com/\"]"}}, {"id": "5596854497312768", "viewId": "6230177189986304", "name": "sticky_banner_security_click", "category": "other", "apiName": "26613100737_sticky_banner_security_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(4)"}}, {"id": "5659462745194496", "viewId": "6693701808816128", "name": "click_get-demo_datalore", "category": "other", "apiName": "26613100737_click_getdemo_datalore", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href^=\"/datalore/get-in-touch/\"]"}}, {"id": "5708915998982144", "viewId": "6230177189986304", "name": "air_link_click A2jF884Jh9eZPBVzCFz3V", "category": "other", "apiName": "26613100737_air_link_click_A2jF884Jh9eZPBVzCFz3V", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-developers a[href=\"https://air.dev/\"]"}}, {"id": "5732817699602432", "viewId": "6693701808816128", "name": "click_signup_jetbrains_datalore", "category": "other", "apiName": "26613100737_click_signup_jetbrains_datalore", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/api/jetbrains/\"]"}}, {"id": "5747487355437056", "viewId": null, "name": "download_air", "category": "other", "apiName": "download_air", "eventType": "custom", "eventFilter": null}
686, {"id": "5757157071650816", "viewId": "6230177189986304", "name": "sticky_banner_for_devs_click", "category": "other", "apiName": "26613100737_sticky_banner_for_devs_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(3)"}}, {"id": "5765340014051328", "viewId": null, "name": "download_junie", "category": "other", "apiName": "download_junie", "eventType": "custom", "eventFilter": null}, {"id": "5765406831411200", "viewId": "6079953156964352", "name": "product_tour_link_click_menu", "category": "other", "apiName": "26613100737_product_tour_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/compare/get-product-tour/\"]"}}, {"id": "5846360639930368", "viewId": "6269523769163776", "name": "sha_checksum_click", "category": "other", "apiName": "26613100737_sha_checksum_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-js-crawler='content-root'] > div > section > div > div > div > div > div > p:nth-of-type(1) > a"}}, {"id": "5877985876639744", "viewId": "6230177189986304", "name": "sticky_banner_get_in_touch_click EpvaewSkG9okqXgap5aZR", "category": "other", "apiName": "26613100737_sticky_banner_get_in_touch_cli_EpvaewSkG9okqXgap5aZR", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(5)"}}, {"id": "5902968996757504", "viewId": "6230177189986304", "name": "sticky_banner_for_devs_click MWZ2LdTKWPAHHy61m3mV1", "category": "other", "apiName": "26613100737_sticky_banner_for_devs_click_MWZ2LdTKWPAHHy61m3mV1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(3)"}}, {"id": "5918299674902528", "viewId": "28340890724", "name": "click_links_special_categories", "category": "other", "apiName": "26613100737_click_links_special_categories", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href=\"/academy/student-pack/\"], a[href=\"/academy/teacher-pack/\"], a[href=\"/community/opensource/#support\"], a[href=\"/support/sales/\"], a[href=\"/startups/#startup-program\"], a[href=\"/academy/bootcamps/\"], a[href=\"/community/dev-recognition/\"], a[href=\"/community/support/#section=communities\"], a[href=\"/buy/competitive/?product=idea\"], a[href=\"https://lp.jetbrains.com/intellij-idea-extended-trial/\"], a[href=\"/community/content-creators/\"]"}}, {"id": "5968463020163072", "viewId": "6230177189986304", "name": "sticky_banner_any_click 4DzCeiT1jCrr9efQKTDat", "category": "other", "apiName": "26613100737_sticky_banner_any_click_4DzCeiT1jCrr9efQKTDat", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button"}}, {"id": "5974536372355072", "viewId": "6230177189986304", "name": "sticky_banner_security_click FyjVkSLz4knHz2c6Qo4oL", "category": "other", "apiName": "26613100737_sticky_banner_security_click_FyjVkSLz4knHz2c6Qo4oL", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(4)"}}, {"id": "5976584400666624", "viewId": "6017548590776320", "name": "Click Event for #optly-link", "category": "other", "apiName": "26613100737_click_event_for_optlylink", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#optly-link"}}, {"id": "5989950544936960", "viewId": "5713463216439296", "name": "click_optly-banner-JS-21320", "category": "other", "apiName": "26613100737_click_optlybannerjs21320", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "div#optly-banner-JS-21320"}}, {"id": "6018869628764160", "viewId": "6230177189986304", "name": "ai_for_teams_orgs_link_click M2YaA1CSfGSuydxCDtFVL", "category": "other", "apiName": "26613100737_ai_for_teams_orgs_link_click_M2YaA1CSfGSuydxCDtFVL", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-organisation a[data-test=\"button\"][href=\"/agentic-software-development/\"]"}}, {"id": "6019085591379968", "viewId": "6693701808816128", "name": "click_signup_google_datalore", "category": "other", "apiName": "26613100737_click_signup_google_datalore", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/api/google/\"]"}}, {"id": "6032234151411712", "viewId": "28340890724", "name": "click_buy_APP_only", "category": "other", "apiName": "26613100737_click_buy_app_only", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/shop/buy?item=C:N:ALL\"], a[href*=\"/shop/buy?item=P:N:ALL\"]"}}, {"id": "6045766593019904", "viewId": "6230177189986304", "name": "form_self_serve_options_click 7di1WDy2KobfcHaRC8ixj", "category": "other", "apiName": "26613100737_form_self_serve_options_click_7di1WDy2KobfcHaRC8ixj", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#get-in-touch form[data-test=\"wtform\"] a[href=\"/store/\"]"}}, {"id": "6059267990487040", "viewId": "6230177189986304", "name": "hero_get_in_touch_click", "category": "other", "apiName": "26613100737_hero_get_in_touch_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#b2b-page .business-head-section a[href=\"#get-in-touch\"]"}}, {"id": "6065769027469312", "viewId": "6079953156964352", "name": "support_link_click_menu", "category": "other", "apiName": "26613100737_support_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#js-menu-second-desktop a[href=\"/youtrack/support/\"]"}}, {"id": "6091942577045504", "viewId": null, "name": "signup_business", "category": "other", "apiName": "signup_business", "eventType": "custom", "eventFilter": null}, {"id": "6110945036992512", "viewId": "6230177189986304", "name": "sticky_banner_for_org_click Nek7STXgQud8CBgGs3VZS", "category": "other", "apiName": "26613100737_sticky_banner_for_org_click_Nek7STXgQud8CBgGs3VZS", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(2)"}}, {"id": "6136842817372160", "viewId": "6230177189986304", "name": "form_self_serve_options_click 2GpqWL6EVFm1PZVcfCfLA", "category": "other", "apiName": "26613100737_form_self_serve_options_click_2GpqWL6EVFm1PZVcfCfLA", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#get-in-touch form[data-test=\"wtform\"] a[href=\"/store/\"]"}}, {"id": "6141631370362880", "viewId": "6230177189986304", "name": "jb_ides_link_click QeMQJ4czMP7gc6jpR3Mcd", "category": "other", "apiName": "26613100737_jb_ides_link_click_QeMQJ4czMP7gc6jpR3Mcd", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-developers a[href=\"/ides/\"]"}}, {"id": "6197364510162944", "viewId": "6269523769163776", "name": "direct_click", "category": "other", "apiName": "26613100737_direct_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href=\"https://download.jetbrains.com/webstorm/WebStorm-2026.2.3.exe\"]"}}, {"id": "6238047111479296", "viewId": "6230177189986304", "name": "sticky_banner_for_devs_click LXtGTW9uMR689GkGyJHso", "category": "other", "apiName": "26613100737_sticky_banner_for_devs_click_LXtGTW9uMR689GkGyJHso", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(3)"}}, {"id": "6261678289977344", "viewId": "6230177189986304", "name": "air_link_click", "category": "other", "apiName": "26613100737_air_link_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-developers a[href=\"https://air.dev/\"]"}}, {"id": "6302135697014784", "viewId": null, "name": "signup_teamcity_on-prem", "category": "other", "apiName": "signup_teamcity_on-prem", "eventType": "custom", "eventFilter": null}, {"id": "6308150440099840", "viewId": "6230177189986304", "name": "sticky_banner_for_org_click WP8ZH9fHLzNxKBjoar8wZ", "category": "other", "apiName": "26613100737_sticky_banner_for_org_click_WP8ZH9fHLzNxKBjoar8wZ", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(2)"}}, {"id": "6317077229731840", "viewId": null, "name": "signup_teamcity_cloud", "category": "other", "apiName": "signup_teamcity_cloud", "eventType": "custom", "eventFilter": null}, {"id": "6382361747652608", "viewId": null, "name": "get-in-touch_idea", "category": "other", "apiName": "get-in-touch_idea", "eventType": "custom", "eventFilter": null}, {"id": "6383419911831552", "viewId": null, "name": "signup_teamcity_pipelines", "category": "other", "apiName": "signup_teamcity_pipelines", "eventType": "custom", "eventFilter": null}, {"id": "6402795805343744", "viewId": null, "name": "purchase_AIPU", "category": "other", "apiName": "purchase_aipu", "eventType": "custom", "eventFilter": null}, {"id": "6418574049280000", "viewId": "6230177189986304", "name": "trust_portal_link_click QbgJxNJj3a2YU32WJDhxn", "category": "other", "apiName": "26613100737_trust_portal_link_click_QbgJxNJj3a2YU32WJDhxn", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#security a[data-test=\"button\"][href=\"https://trust-center.jetbrains.com/\"]"}}, {"id": "6454116138876928", "viewId": "6475492526653440", "name": "individual_licenses_top_nav_link_clicks_dm-5748", "category": "other", "apiName": "26613100737_personal_licenses_top_nav_link_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "nav a[href=\"https://www.jetbrains.com/store/?section=personal&billing=yearly\"],\na[data-test=\"main-submenu-item-link\"][href=\"/store/#personal\"]"}}, {"id": "6463730456723456", "viewId": "28340890724", "name": "click_learn_more_students_teachers", "category": "other", "apiName": "26613100737_click_learn_more_students_teachers", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href=\"/academy/student-pack/\"]"}}, {"id": "6513896217903104", "viewId": "6230177189986304", "name": "hero_get_in_touch_click CBEVgfYz1cH5249fgdcsn", "category": "other", "apiName": "26613100737_hero_get_in_touch_click_CBEVgfYz1cH5249fgdcsn", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#b2b-page .business-head-section a[href=\"#get-in-touch\"]"}}, {"id": "6538629558829056", "viewId": "6230177189986304", "name": "acp_page_link_click H3rBWQA8KXby7fHwb6KSH", "category": "other", "apiName": "26613100737_acp_page_link_click_H3rBWQA8KXby7fHwb6KSH", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#b2b-page a[href=\"/acp/\"]"}}, {"id": "6574963595935744", "viewId": "6693701808816128", "name": "click_signup_email_datalore", "category": "other", "apiName": "26613100737_click_signup_email_datalore", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "form#datalore-signup [data-test='submit-button']"}}, {"id": "6632619146739712", "viewId": "6079953156964352", "name": "comp_offer_link_click_menu", "category": "other", "apiName": "26613100737_comp_offer_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/compare/youtrack-competitive-offer/\"]"}}, {"id": "6646190840741888", "viewId": "6079953156964352", "name": "youtrack_topleft_link_click_menu", "category": "other", "apiName": "26613100737_youtrack_topleft_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#js-menu-second-desktop a[href=\"/youtrack/\"]"}}, {"id": "6662039309910016", "viewId": "5878715926708224", "name": "click_extended-trial-go", "category": "other", "apiName": "26613100737_click_extendedtrialgo", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/shop/eform/extended-trial/go/\"]"}}, {"id": "6663960999493632", "viewId": "6230177189986304", "name": "jb_ides_link_click", "category": "other", "apiName": "26613100737_jb_ides_link_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#for-your-developers a[href=\"/ides/\"]"}}, {"id": "6675821350354944", "viewId": "6079953156964352", "name": "whatsnew_link_click_menu", "category": "other", "apiName": "26613100737_whatsnew_link_click_menu", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/whatsnew/\"]"}}, {"id": "6676654104248320", "viewId": "6230177189986304", "name": "acp_page_link_click", "category": "other", "apiName": "26613100737_acp_page_link_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#b2b-page a[href=\"/acp/\"]"}}, {"id": "6681665183940608", "viewId": "6269523769163776", "name": "getting_started_guide_click", "category": "other", "apiName": "26613100737_getting_started_guide_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-js-crawler='content-root'] > div > section > div > div > article:nth-of-type(2) > a[data-test='button']"}}, {"id": "6691493484691456", "viewId": "6230177189986304", "name": "sticky_banner_open_system_click 4jGBseGXVgb8CASe4QEyX", "category": "other", "apiName": "26613100737_sticky_banner_open_system_clic_4jGBseGXVgb8CASe4QEyX", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(1)"}}, {"id": "6720228225187840", "viewId": "6230177189986304", "name": "sticky_banner_get_in_touch_click", "category": "other", "apiName": "26613100737_sticky_banner_get_in_touch_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(5)"}}, {"id": "6724732203040768", "viewId": "6230177189986304", "name": "sticky_banner_open_system_click", "category": "other", "apiName": "26613100737_sticky_banner_open_system_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button:nth-of-type(1)"}}, {"id": "6735089845927936", "viewId": "28340890724", "name": "click_buy_idea_only", "category": "other", "apiName": "26613100737_click_buy_idea_only", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"/shop/buy?item=C:N:II\"], a[href*=\"/shop/buy?item=P:N:II\"]"}}, {"id": "6738668065390592", "viewId": null, "name": "signup_teamcity", "category": "other", "apiName": "signup_teamcity", "eventType": "custom", "eventFilter": null}, {"id": "6739273787899904", "viewId": "6079953156964352", "name": "teams_click", "category": "other", "apiName": "26613100737_teams_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "[data-test=\"dropdown-content\"] a[href=\"/youtrack/teams/\"]"}}, {"id": "6754474516021248", "viewId": "6230177189986304", "name": "sticky_banner_any_click", "category": "other", "apiName": "26613100737_sticky_banner_any_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sticky_switcher [data-test=\"switcher\"] > button"}}], "dimensions": [{"id": "26849170434", "name": "session_type", "apiName": "session_type", "segmentId": null}, {"id": "28101220033", "name": "screen_breakpoint", "apiName": "screen_breakpoint", "segmentId": null}, {"id": "28253990137", "name": "campaign_brand-type", "apiName": "campaign_brand-type", "segmentId": null}, {"id": "28769210013", "name": "Google Analytics ID", "apiName": "ga_id", "segmentId": null}
686, {"id": "29621180261", "name": "country", "apiName": "country", "segmentId": null}], "projectJS": function(){var currentDomain = window.location.hostname;
687var domainPattern = /^.*\.jetbrains\.com$/;
688var domainStagingPattern = /^.*\.intellij\.net$/;
689var domainLocalPattern = /^localhost$/;
690if (domainPattern.test(currentDomain) || domainStagingPattern.test(currentDomain) || domainLocalPattern.test(currentDomain)) {} 
691else {
692   window["optimizely"].push("disable");
693}
694
695window.dataLayer = window.dataLayer || [];
696window.dataLayer.push({
697  'event': 'optimizely_init'
698});
699
700// Log active experiments/personalizations to the console - JS-24568
701window.optimizely = window.optimizely || [];
702window.optimizely.push({
703  type: "addListener",
704  filter: { type: "lifecycle", name: "campaignDecided" },
705  handler: function(event) {
706    var decision = event.data.decision;
707    if (decision.isCampaignHoldback) return;
708
709    var data = window.optimizely.get("data");
710    var exp = data.experiments[decision.experimentId];
711    var name = exp ? exp.name : "";
712
713    if (!name || name.indexOf("Banner") === 0) return;
714
715    console.debug("%c[Optly]%c " + name, "color: #0037ff; font-weight: bold;", "");
716  }
717});
718}, "plugins": [function(PluginManager) {
719  var Hogan=function(t){function r(e){if(n[e])return n[e].exports;var i=n[e]={exports:{},id:e,loaded:!1};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}var n={};return r.m=t,r.c=n,r.p="",r(0)}([function(t,r){function n(t){this.r=t,this.buf=""}function e(t,r){var n;if(r&&"object"==typeof r)if(void 0!==r[t])n=r[t];return n}function i(t){return String(null===t||void 0===t?"":t)}function o(t){return t=i(t),p.test(t)?t.replace(u,"&amp;").replace(f,"&lt;").replace(c,"&gt;").replace(l,"&#39;").replace(a,"&quot;"):t}t.exports=n,n.prototype={r:function(t,r,n){return""},v:o,t:i,render:function(t,r,n){return this.ri([t],r||{},n)},ri:function(t,r,n){return this.r(t,r,n)},rs:function(t,r,n){var e=t[t.length-1];if(!s(e))return void n(t,r,this);for(var i=0;i<e.length;i++)t.push(e[i]),n(t,r,this),t.pop()},s:function(t,r,n,e,i,o,u){var f;if(s(t)&&0===t.length)return!1;if(f=!!t,!e&&f&&r)r.push("object"==typeof t?t:r[r.length-1]);return f},d:function(t,r,n,i){var o,u=t.split("."),f=this.f(u[0],r,n,i),c=null;if("."===t&&s(r[r.length-2]))f=r[r.length-1];else for(var l=1;l<u.length;l++)if(o=e(u[l],f),void 0!==o)c=f,f=o;else f="";if(i&&!f)return!1;if(!i&&"function"==typeof f)r.push(c),f=this.mv(f,r,n),r.pop();return f},f:function(t,r,n,i){for(var o=!1,u=null,f=!1,c=r.length-1;c>=0;c--)if(u=r[c],o=e(t,u),void 0!==o){f=!0;break}if(!f)return i?!1:"";if(!i&&"function"==typeof o)o=this.mv(o,r,n);return o},b:function(t){this.buf+=t},fl:function(){var t=this.buf;return this.buf="",t},mv:function(t,r,n){var e=r[r.length-1],o=t.call(e);if("function"==typeof o)return this.ct(i(o.call(e)),e,n);else return o}};var u=/&/g,f=/</g,c=/>/g,l=/'/g,a=/"/g,p=/[&<>"']/,s=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}}]);
720  PluginManager.registerAnalyticsTracker('26667870446', {
721      preRedirectPolicy: 'PERSIST_BEFORE_REDIRECT',
722      postRedirectPolicy: 'TRACK_IMMEDIATELY',
723      nonRedirectPolicy: 'TRACK_IMMEDIATELY',
724      trackLayerDecision: function(decisionData) {
725        var extension = decisionData.integrationSettings && decisionData.integrationSettings['26667870446'];
726        if (!extension) {
727          return;
728        }
729        var campaign = {
730          id: decisionData.layerId,
731          name: decisionData.layerName,
732          policy: decisionData.layerPolicy,
733          integrationStringVersion: decisionData.integrationStringVersion,
734        };
735        var campaignId = campaign.id;
736        var experimentId = decisionData.experimentId;
737        var variationId = decisionData.variationId;
738        var isHoldback = decisionData.isLayerHoldback;
739        extension.$fieldDefaults = [];
740        (function(widg) {
741  var i = 0;
742  var field;
743  for (; i < widg.$fieldDefaults.length; ++i) {
744    field = widg.$fieldDefaults[i];
745    if (!widg.hasOwnProperty(field.name)) {
746      widg[field.name] = field.default_value;
747    }
748  }
749  })(extension);
750        var state = window['optimizely'].get('state');
751var campaignObject = state.getDecisionObject({'campaignId':campaignId});
752
753if(campaignObject !== null){
754 var utils = window["optimizely"].get("utils");
755 utils.waitUntil(function() {
756 	return typeof(clarity) === 'function';
757 }).then(function() {
758   //console.log('clarity is finally a function. Sending now.');
759   clarity("set", "Optimizely", campaignObject.experiment +' - ' + campaignObject.variation);
760 });
761}
762
763      },
764      serializeSettings: JSON.stringify,
765      deserializeSettings: JSON.parse,
766    });
767    
768
769PluginManager.registerWidget({
770      widgetId: '27273030100',
771      showFn: function(event) {
772        var $ = window.optimizely.get('jquery');
773        var widget = event.data.config;
774        var _template = new Hogan(function(c,p,i) {var t=this;t.b(i=i||"");t.b("<div id=\"optly-banner-");t.b(t.v(t.d("extension.promotionId",c,p,0)));t.b("\" class=\"optly-banner\">");t.b("\n" + i);t.b("      <p>");t.b("\n" + i);t.b("      	<a href=\"");t.b(t.v(t.d("extension.promotionLink",c,p,0)));t.b("\" id=\"optly-link\" target=\"_blank\">");t.b(t.t(t.d("extension.promotionCreative",c,p,0)));t.b("</a>");t.b("\n" + i);t.b("        <button aria-label=\"Close\" id=\"optly-banner_close\">
774×</button>");t.b("\n" + i);t.b("      </p>");t.b("\n" + i);t.b("</div>");return t.fl(); })
775        widget.$id = "27273030100";
776        widget.$instance = event.data.id;
777        widget.$render = _template.render.bind(_template)
778        widget.$fieldDefaults = [{"name":"promotionId","default_value":"JS-1234"},{"name":"promotionName","default_value":"Rider 50% discount"},{"name":"promotionCreative","default_value":"🎁 Get 50% OFF Rider"},{"name":"promotionLink","default_value":"https://www.jetbrains.com/"},{"name":"insertAfter","default_value":"div.page__header"},{"name":"positionToInsert","default_value":"afterbegin"}];
779        (function(widg) {
780  var i = 0;
781  var field;
782  for (; i < widg.$fieldDefaults.length; ++i) {
783    field = widg.$fieldDefaults[i];
784    if (!widg.hasOwnProperty(field.name)) {
785      widg[field.name] = field.default_value;
786    }
787  }
788  })(widget);
789        widget.$html = _template.render({ widget: widget, extension: widget })
790        var extension = widget;
791        widget._styleTag = document.createElement('style');
792widget._styleTag.id = 'widget-css-27273030100';
793widget._styleTag.innerHTML = '.optly-banner {  position: relative;  z-index: 100;  text-align: center;  background-color: #6B57FF;  font-family: "JetBrains Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, Arial, sans-serif;  font-size: 16px;  font-weight: 530;  line-height: 24px;}.optly-banner > p {  margin: 0 16px;  padding: 10px;  color: #FFFFFF;}.optly-banner > p > a {  padding: 0 4px;  color: inherit;}.optly-banner > p > a:hover {  padding: 0 4px;  text-decoration: underline;  color: inherit;}.optly-banner > p > span {  justify-content: center;  padding: 2px 8px;  border: 1px solid #FFF;  border-radius: 4px;  letter-spacing: 0.058px;  font-size: 13px;  font-weight: 400;}.optly-banner > p > button {  position: absolute;  top: 6px;  right: 0;  float: right;  width: 32px;  height: 32px;  margin-right: 14px;  border: none;  cursor: pointer;  color: inherit;  background-color: transparent;  font-size: 24px;}/* banners.pcss */._academy-banner-optly,._dot-memory-banner-optly,._dottrace-banner-optly,._fleet-banner-optly,._go-banner-optly,._grazie-banner-optly,._hub-banner-optly,._jetbrains-banner-optly,._phpstorm-banner-optly,._toolbox-app-banner-optly {  background-color: #6B57FF;}._ai-banner-optly,._gamedev-banner-optly,._license-vault-banner-optly {  background-color: #8D48FF;}._appcode-banner-optly,._upsource-banner-optly {  background-color: #167dff;}._aqua-banner-optly,._codecanvas-banner-optly,._compose-multiplatform-banner-optly,._datalore-banner-optly,._dataspell-banner-optly,._dot-cover-banner-optly,._dotpeek-banner-optly,._riderflow-banner-optly,._space-banner-optly,._teamcity-banner-optly,._webstorm-banner-optly {  background-color: #0068FD;}._clion-banner-optly,._cpp-banner-optly,._mps-banner-optly,._pycharm-banner-optly {  background-color: #088484;}._code-with-me-banner-optly,._pycharm-edu-banner-optly {  background-color: #28b8a0;}._datagrip-banner-optly,._kotlin-multiplatform-banner-optly,._ruby-banner-optly {  background-color: #7E42FF;}._idea-banner-optly {  background-color: #0047FD;}._ides-banner-optly,._rider-banner-optly {  background-color: #671FFF;}._kotlin-banner-optly {  background-color: #675ce9;}._qodana-banner-optly,._resharper-banner-optly,._resharper-cpp-banner-optly,._writerside-banner-optly {  background-color: #DF2477;}._rust-banner-optly {  background-color: #00874D;}._youtrack-banner-optly {  background-color: #E20F86;}';
794document.getElementsByTagName('head')[0].appendChild(widget._styleTag);
795        const utils = window.optimizely.get('utils');
796
797const bannerId = 'optly-banner-' + extension.promotionId;
798// Check if the banner is closed
799const isClosed = window.localStorage.getItem(bannerId) || false;
800// Check if there are other banners
801const optlyBanner = window.optlyBanner || false;
802
803let productClass = '_jetbrains-banner-optly';
804
805const path = window.location.pathname.toLowerCase();
806
807if (path.includes('/academy/')) {
808  productClass = '_academy-banner-optly';
809} else if (path.includes('/ai/')) {
810  productClass = '_ai-banner-optly';
811} else if (path.includes('/appcode/')) {
812  productClass = '_appcode-banner-optly';
813} else if (path.includes('/aqua/')) {
814  productClass = '_aqua-banner-optly';
815} else if (path.includes('/clion/')) {
816  productClass = '_clion-banner-optly';
817} else if (path.includes('/code-with-me/')) {
818  productClass = '_code-with-me-banner-optly';
819} else if (path.includes('/codecanvas/')) {
820  productClass = '_codecanvas-banner-optly';
821} else if (path.includes('/compose-multiplatform/')) {
822  productClass = '_compose-multiplatform-banner-optly';
823} else if (path.includes('/cpp/')) {
824  productClass = '_cpp-banner-optly';
825} else if (path.includes('/datagrip/')) {
826  productClass = '_datagrip-banner-optly';
827} else if (path.includes('/datalore/')) {
828  productClass = '_datalore-banner-optly';
829} else if (path.includes('/dataspell/')) {
830  productClass = '_dataspell-banner-optly';
831} else if (path.includes('/dot-cover/')) {
832  productClass = '_dot-cover-banner-optly';
833} else if (path.includes('/dot-memory/')) {
834  productClass = '_dot-memory-banner-optly';
835} else if (path.includes('/dotpeek/')) {
836  productClass = '_dotpeek-banner-optly';
837} else if (path.includes('/dottrace/')) {
838  productClass = '_dottrace-banner-optly';
839} else if (path.includes('/fleet/')) {
840  productClass = '_fleet-banner-optly';
841} else if (path.includes('/gamedev/')) {
842  productClass = '_gamedev-banner-optly';
843} else if (path.includes('/go/')) {
844  productClass = '_go-banner-optly';
845} else if (path.includes('/grazie/')) {
846  productClass = '_grazie-banner-optly';
847} else if (path.includes('/hub/')) {
848  productClass = '_hub-banner-optly';
849} else if (path.includes('/ides/')) {
850  productClass = '_ides-banner-optly';
851} else if (path.includes('/idea/')) {
852  productClass = '_idea-banner-optly';
853} else if (path.includes('/kotlin/')) {
854  productClass = '_kotlin-banner-optly';
855} else if (path.includes('/kotlin-multiplatform/')) {
856  productClass = '_kotlin-multiplatform-banner-optly';
857} else if (path.includes('/license-vault/')) {
858  productClass = '_license-vault-banner-optly';
859} else if (path.includes('/mps/')) {
860  productClass = '_mps-banner-optly';
861} else if (path.includes('/phpstorm/')) {
862  productClass = '_phpstorm-banner-optly';
863
864} else if (path.includes('/pycharm/')) {
865  productClass = '_pycharm-banner-optly';
866} else if (path.includes('/pycharm-edu/')) {
867  productClass = '_pycharm-edu-banner-optly';
868} else if (path.includes('/qodana/')) {
869  productClass = '_qodana-banner-optly';
870} else if (path.includes('/resharper/')) {
871  productClass = '_resharper-banner-optly';
872} else if (path.includes('/resharper-cpp/')) {
873  productClass = '_resharper-cpp-banner-optly';
874} else if (path.includes('/rider')) {
875  productClass = '_rider-banner-optly';
876} else if (path.includes('/riderflow/')) {
877  productClass = '_riderflow-banner-optly';
878}
878 else if (path.includes('/ruby/')) {
879  productClass = '_ruby-banner-optly';
880} else if (path.includes('/rust/')) {
881  productClass = '_rust-banner-optly';
882} else if (path.includes('/space/')) {
883  productClass = '_space-banner-optly';
884} else if (path.includes('/teamcity/')) {
885  productClass = '_teamcity-banner-optly';
886} else if (path.includes('/toolbox-app/')) {
887  productClass = '_toolbox-app-banner-optly';
888} else if (path.includes('/upsource/')) {
889  productClass = '_upsource-banner-optly';
890} else if (path.includes('/webstorm/')) {
891  productClass = '_webstorm-banner-optly';
892} else if (path.includes('/writerside/')) {
893  productClass = '_writerside-banner-optly';
894} else if (path.includes('/youtrack/')) {
895  productClass = '_youtrack-banner-optly';
896} else {
897  productClass = '_jetbrains-banner-optly';
898}
899
900if (!isClosed && !optlyBanner) {
901  window.optlyBanner = true;
902
903  utils.waitForElement(extension.insertAfter).then(function(elem) {
904    const isHeader = elem.matches('div.page__header');
905    const positionToInsert = isHeader ? 'afterbegin' : extension.positionToInsert;
906
907    elem.insertAdjacentHTML(positionToInsert, extension.$html);
908    const bannerElement = document.getElementById(bannerId);
909    // Change background color based on a product
910    bannerElement.classList.add(productClass);
911
912    try {
913      const promotionData = {
914        id: extension.promotionId,
915        name: extension.promotionName,
916        creative: extension.promotionCreative,
917        position: 'ribbon'
918      };
919
920      promoView(promotionData);
921
922      const optlyLink = document.querySelector('a#optly-link');
923      addEventListenerToElement(optlyLink, 'click', function(event) {
924        promoClick(promotionData);
925      });
926      addEventListenerToElement(optlyLink, 'touchstart', function(event) {
927        promoClick(promotionData);
928      });
929
930      const optlyCloseButton = document.querySelector('button#optly-banner_close');
931      addEventListenerToElement(optlyCloseButton, 'click', function(event) {
932        bannerElement.style.display = 'none';
933        window.localStorage.setItem(bannerId, 'true');
934      });
935      addEventListenerToElement(optlyCloseButton, 'touchstart', function(event) {
936        bannerElement.style.display = 'none';
937        window.localStorage.setItem(bannerId, 'true');
938      });
939    } catch (error) {
940      // Silent error handling
941    }
942  });
943}
944
945/**
946 * Records a promotion view event in the data layer
947 * @param {Object} promotion - The promotion data
948 */
949function promoView(promotion) {
950  window.dataLayer = window.dataLayer || [];
951  dataLayer.push({
952    event: 'promotionView',
953    ecommerce: {
954      promoView: {
955        promotions: [
956          {
957            id: promotion.id,
958            name: promotion.name,
959            creative: promotion.creative,
960            position: promotion.position
961          }
962        ]
963      }
964    }
965  });
966}
967
968/**
969 * Records a promotion click event in the data layer
970 * @param {Object} promotion - The promotion data
971 */
972function promoClick(promotion) {
973  window.dataLayer = window.dataLayer || [];
974  dataLayer.push({
975    event: 'promotionClick',
976    ecommerce: {
977      promoClick: {
978        promotions: [
979          {
980            id: promotion.id,
981            name: promotion.name,
982            creative: promotion.creative,
983            position: promotion.position
984          }
985        ]
986      }
987    }
988  });
989}
990
991/**
992 * Adds an event listener to an element if it exists
993 * @param {HTMLElement} element - The target element
994 * @param {string} eventType - The event type
995 * @param {Function} callback - The callback function
996 */
997function addEventListenerToElement(element, eventType, callback) {
998  if (element) {
999    element.addEventListener(eventType, callback);
1000  }
1001}
1002      },
1003      hideFn: function(event) {
1004        var $ = window.optimizely.get('jquery');
1005        var widget = event.data.config;
1006        widget.$id = "27273030100";
1007        widget.$instance = event.data.id;
1008        widget.$fieldDefaults = [{"name":"promotionId","default_value":"JS-1234"},{"name":"promotionName","default_value":"Rider 50% discount"}
1008,{"name":"promotionCreative","default_value":"🎁 Get 50% OFF Rider"},{"name":"promotionLink","default_value":"https://www.jetbrains.com/"},{"name":"insertAfter","default_value":"div.page__header"},{"name":"positionToInsert","default_value":"afterbegin"}];
1009        (function(widg) {
1010  var i = 0;
1011  var field;
1012  for (; i < widg.$fieldDefaults.length; ++i) {
1013    field = widg.$fieldDefaults[i];
1014    if (!widg.hasOwnProperty(field.name)) {
1015      widg[field.name] = field.default_value;
1016    }
1017  }
1018  })(widget);
1019        var extension = widget;
1020        widget._styleTag = document.getElementById('widget-css-27273030100');
1021if (widget._styleTag) widget._styleTag.parentNode.removeChild(widget._styleTag);
1022        /*
1023 * Editor now supports ES6 compliant code. Note that adding ES6
1024 * specific code to an experiment will break for users running
1025 * ES5-only browsers as code entered is not transpiled down to ES5.
1026 */
1027 
1028	var bannerId = "optly-banner-" + extension.promotionId;
1029  var extensionElement = document.getElementById(bannerId);
1030	window.localStorage.removeItem(bannerId);
1031
1032  if (extensionElement) {
1033    extensionElement.parentElement.removeChild(extensionElement);
1034  }
1035
1036      },
1037    });
1038}
1039], "interestGroups": [], "tagGroups": []},l=__webpack_require__(6046),d="initializeOptimizelyPreview";if(l.initGlobalStore(f),u.populateDirectiveData(),r.clientHasAlreadyInitialized())e.warn("Main / Disabling because Optimizely has already initialized on this page load. Are there multiple snippets on the page?");else if(r.shouldBailForDesktopApp())e.log("Main / Disabling because of desktop app.");else if(r.conflictInObservingChanges())e.log("Main / Disabling: Observe Changes Indefinitely is on, but browser does not support it.");else{if(r.shouldLoadInnie())a.registerFunction("getProjectId",(function(){return f.projectId})),a.registerFunction("getAccountId",(function(){return f.accountId})),c.addScriptAsync("https://app.optimizely.com/js/innie.js"),e.log("Main / Disabling in favor of the editor client.");else if(r.shouldLoadEmbeddedEditor())e.log("Main / Loading embedded editor"),s.loadEmbeddedEditor("https://app.optimizely.com/dist/visual-editor/main.js");else if(r.shouldLoadPreview()){(r.isSlave()?window.optimizely:window.optimizely=window.optimizely||[]).push({type:"load",data:f}),e.log("Main / Disabling in favor of the preview client."),__webpack_require__(3777).setupPreviewGlobal(),__webpack_require__(3777).pushToPreviewGlobal({type:"pushPreviewData",name:"liveCommitData",data:f}),r.isSlave()||(a.registerFunction("getProjectId",(function(){return f.projectId})),c.addScriptSync("https://cdn.optimizely.com/js/preview2/26613100737.js"))}else if(r.shouldBootstrapDataForPreview()){a.registerFunction(d,(function(n){t(),a.unregisterFunction(d)}));var v=r.isSlave()?PROJECT_ID_FOR_SLAVE_PREVIEW:a.getFunction("getProjectId")();p=r.getProjectToken(),g=v,m=r.getPreviewLayerIds(),o="/dist/preview_data.js?token=__TOKEN__&preview_layer_ids=__PREVIEW_LAYER_IDS__".replace("__TOKEN__",p).replace("__PROJECT_ID__",g).replace("__PREVIEW_LAYER_IDS__",m.join(",")).replace("__GET_ONLY_PREVIEW_LAYERS__",!0);var h=r.getForceVariationIds();h&&h.length>0&&(o+="&optimizely_x="+h.join(",")),c.addScriptSync(o),__webpack_require__(3777).setupPreviewGlobal(),c.addScriptAsync("/dist/js/preview_ui.js")}else r.shouldBootstrapDataForEditor()?(a.registerFunction(d,(function(n){t(),a.unregisterFunction(d)})),c.addScriptAsync(window.optimizely_editor_data_endpoint)):r.shouldInitialize()&&t();var p,g,m;n.timeEnd("block");var b=n.now();n.setMark("optimizelyFinished",b,b)}}try{main()}catch(t){try{__webpack_require__(595).handleError(t)}catch(t){console.log(t)}}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.