cdn.optimizely.com
Open in
urlscan Pro
2a02:26f0:3500:88e::13b8
Public Scan
URL:
https://cdn.optimizely.com/js/16488430484.js
Submission: On April 05 via api from US — Scanned from DE
Submission: On April 05 via api from US — Scanned from DE
Form analysis
0 forms found in the DOMText Content
/*! For license information please see client.min.js.LICENSE.txt */ (function(){var __webpack_modules__={7584:function(n,t,i){var e;!function(r,o){"use strict";var a="function",u="undefined",c="object",s="string",f="model",l="name",d="type",h="vendor",v="version",p="architecture",g="console",m="mobile",_="tablet",w="smarttv",y="wearable",b="embedded",E="Amazon",I="Apple",A="ASUS",T="BlackBerry",S="Firefox",k="Google",R="Huawei",N="LG",D="Microsoft",C="Motorola",O="Opera",x="Samsung",P="Sharp",M="Sony",L="Xiaomi",V="Zebra",U="Facebook",F=function(n){for(var t={},i=0;i<n.length;i++)t[n[i].toUpperCase()]=n[i];return t},z=function(n,t){return typeof n===s&&-1!==G(t).indexOf(G(n))},G=function(n){return n.toLowerCase()},j=function(n,t){if(typeof n===s)return n=n.replace(/^\s\s*/,""),typeof t===u?n:n.substring(0,350)},B=function(n,t){for(var i,e,r,u,s,f,l=0;l<t.length&&!s;){var d=t[l],h=t[l+1];for(i=e=0;i<d.length&&!s&&d[i];)if(s=d[i++].exec(n))for(r=0;r<h.length;r++)f=s[++e],typeof(u=h[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}},q=function(n,t){for(var i in t)if(typeof t[i]===c&&t[i].length>0){for(var e=0;e<t[i].length;e++)if(z(t[i][e],n))return"?"===i?o:i}else if(z(t[i],n))return"?"===i?o:i;return n},H={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"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,v],[/opios[\/ ]+([\w\.]+)/i],[v,[l,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[v,[l,O]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[l,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[l,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[l,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[l,"IE"]],[/yabrowser\/([\w\.]+)/i],[v,[l,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure Browser"],v],[/\bfocus\/([\w\.]+)/i],[v,[l,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[v,[l,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[l,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[l,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[v,[l,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 Browser"]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 Browser"],v],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[l,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,U],v],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[l,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[l,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[l,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,"Chrome WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[v,q,{"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],[l,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[l,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[l,v],[/(cobalt)\/([\w\.]+)/i],[l,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,G]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,G]]],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],[f,[h,x],[d,_]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[h,x],[d,m]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[h,I],[d,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[h,I],[d,_]],[/(macintosh);/i],[f,[h,I]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[h,P],[d,m]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[h,R],[d,_]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[h,R],[d,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[h,L],[d,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[h,L],[d,_]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[h,"OPPO"],[d,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[h,"Vivo"],[d,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[h,"Realme"],[d,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[h,C],[d,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[h,C],[d,_]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[h,N],[d,_]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[h,N],[d,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[h,"Lenovo"],[d,_]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[h,"Nokia"],[d,m]],[/(pixel c)\b/i],[f,[h,k],[d,_]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[h,k],[d,m]],[/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],[f,[h,M],[d,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[h,M],[d,_]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[h,"OnePlus"],[d,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[h,E],[d,_]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[h,E],[d,m]],[/(playbook);[-\w\),; ]+(rim)/i],[f,h,[d,_]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[h,T],[d,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[h,A],[d,_]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[h,A],[d,m]],[/(nexus 9)/i],[f,[h,"HTC"],[d,_]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[f,/_/g," "],[d,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[h,"Acer"],[d,_]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[h,"Meizu"],[d,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,f,[d,m]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/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,f,[d,_]],[/(surface duo)/i],[f,[h,D],[d,_]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[h,"Fairphone"],[d,m]],[/(u304aa)/i],[f,[h,"AT&T"],[d,m]],[/\bsie-(\w*)/i],[f,[h,"Siemens"],[d,m]],[/\b(rct\w+) b/i],[f,[h,"RCA"],[d,_]],[/\b(venue[\d ]{2,7}) b/i],[f,[h,"Dell"],[d,_]],[/\b(q(?:mv|ta)\w+) b/i],[f,[h,"Verizon"],[d,_]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[h,"Barnes & Noble"],[d,_]],[/\b(tm\d{3}\w+) b/i],[f,[h,"NuVision"],[d,_]],[/\b(k88) b/i],[f,[h,"ZTE"],[d,_]],[/\b(nx\d{3}j) b/i],[f,[h,"ZTE"],[d,m]],[/\b(gen\d{3}) b.+49h/i],[f,[h,"Swiss"],[d,m]],[/\b(zur\d{3}) b/i],[f,[h,"Swiss"],[d,_]],[/\b((zeki)?tb.*\b) b/i],[f,[h,"Zeki"],[d,_]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],f,[d,_]],[/\b(ns-?\w{0,9}) b/i],[f,[h,"Insignia"],[d,_]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[h,"NextBook"],[d,_]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],f,[d,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],f,[d,m]],[/\b(ph-1) /i],[f,[h,"Essential"],[d,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[h,"Envizen"],[d,_]],[/\b(trio[-\w\. ]+) b/i],[f,[h,"MachSpeed"],[d,_]],[/\btu_(1491) b/i],[f,[h,"Rotor"],[d,_]],[/(shield[\w ]+) b/i],[f,[h,"Nvidia"],[d,_]],[/(sprint) (\w+)/i],[h,f,[d,m]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[h,D],[d,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[h,V],[d,_]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[h,V],[d,m]],[/smart-tv.+(samsung)/i],[h,[d,w]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[h,x],[d,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,N],[d,w]],[/(apple) ?tv/i],[h,[f,"Apple TV"],[d,w]],[/crkey/i],[[f,"Chromecast"],[h,k],[d,w]],[/droid.+aft(\w)( bui|\))/i],[f,[h,E],[d,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[h,P],[d,w]],[/(bravia[\w ]+)( bui|\))/i],[f,[h,M],[d,w]],[/(mitv-\w{5}) bui/i],[f,[h,L],[d,w]],[/Hbbtv.*(technisat) (.*);/i],[h,f,[d,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,j],[f,j],[d,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[d,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,f,[d,g]],[/droid.+; (shield) bui/i],[f,[h,"Nvidia"],[d,g]],[/(playstation [345portablevi]+)/i],[f,[h,M],[d,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[h,D],[d,g]],[/((pebble))app/i],[h,f,[d,y]],[/droid.+; (glass) \d/i],[f,[h,k],[d,y]],[/droid.+; (wt63?0{2,3})\)/i],[f,[h,V],[d,y]],[/(quest( 2| pro)?)/i],[f,[h,U],[d,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[d,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[d,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[d,_]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[d,_]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[d,m]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[l,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[l,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[l,[v,q,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,"Windows"],[v,q,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,"Mac OS"],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,v],[/\(bb(10);/i],[v,[l,T]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[l,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[l,"webOS"]],[/crkey\/([\d\.]+)/i],[v,[l,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,"Chromium OS"],v],[/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) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,v],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[l,v]]},K=function(n,t){if(typeof n===c&&(t=n,n=o),!(this instanceof K))return new K(n,t).getResult();var i=n||(typeof r!==u&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),e=typeof r!==u&&r.navigator&&r.navigator.userAgentData?r.navigator.userAgentData:o,a=t?function(n,t){var i={};for(var e in n)t[e]&&t[e].length%2==0?i[e]=t[e].concat(n[e]):i[e]=n[e];return i}(Y,t):Y;return this.getBrowser=function(){var n,t={};return t.name=o,t.version=o,B.call(t,i,a.browser),t.major=typeof(n=t.version)===s?n.replace(/[^\d\.]/g,"").split(".")[0]:o,t},this.getCPU=function(){var n={};return n.architecture=o,B.call(n,i,a.cpu),n},this.getDevice=function(){var n={};return n.vendor=o,n.model=o,n.type=o,B.call(n,i,a.device),!n.type&&e&&e.mobile&&(n.type=m),n},this.getEngine=function(){var n={};return n.name=o,n.version=o,B.call(n,i,a.engine),n},this.getOS=function(){var n={};return n.name=o,n.version=o,B.call(n,i,a.os),!n.name&&e&&"Unknown"!=e.platform&&(n.name=e.platform.replace(/chrome/i,"Chromium").replace(/mac/i,"Mac ")),n},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(n){return i=typeof n===s&&n.length>350?j(n,350):n,this},this.setUA(i),this};K.VERSION="0.7.33",K.BROWSER=F([l,v,"major"]),K.CPU=F([p]),K.DEVICE=F([f,h,d,g,m,w,_,y,b]),K.ENGINE=K.OS=F([l,v]),typeof t!==u?(n.exports&&(t=n.exports=K),t.UAParser=K):i.amdO?(e=function(){return K}.call(t,i,t,n))===o||(n.exports=e):typeof r!==u&&(r.UAParser=K)}("object"==typeof window?window:this)},2347:function(n,t,i){var e=i(1247)(),r=i(1047);n.exports=function(n,t){function i(t){if(!(this instanceof i))return new i(t);try{throw new Error(t)}catch(o){o.name=n,this.stack=o.stack}e&&this.stack&&(this.stack=r(this.stack,n,t)),this.message=t||"",this.name=n}return i.prototype=new(t||Error),i.prototype.constructor=i,i.prototype.inspect=function(){return this.message?"["+n+": "+this.message+"]":"["+n+"]"},i.prototype.name=n,i}},1047:function(n){"use strict";n.exports=function(n,t,i){var e=t;return i&&(e+=": "+i),n=e+n.slice(n.indexOf("\n"))}},1247:function(n){"use strict";n.exports=function(){var n=new Error("yep");return!!n.stack&&"Error: yep\n"===n.stack.substr(0,11)}},126:function(n,t,i){n.exports=function(){"use strict";function n(n){return"function"==typeof n||"object"==typeof n&&null!==n}function t(n){return"function"==typeof n}undefined;var e=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)},r=0,o=undefined,a=undefined,u=function(n,t){y[r]=n,y[r+1]=t,2===(r+=2)&&(a?a(b):I())};function c(n){a=n}function s(n){u=n}var f="undefined"!=typeof window?window:undefined,l=f||{},d=l.MutationObserver||l.WebKitMutationObserver,h="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),v="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){return function(){return process.nextTick(b)}}function g(){return void 0!==o?function(){o(b)}:w()}function m(){var n=0,t=new d(b),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=n=++n%2}}function _(){var n=new MessageChannel;return n.port1.onmessage=b,function(){return n.port2.postMessage(0)}}function w(){var n=setTimeout;return function(){return n(b,1)}}var y=new Array(1e3);function b(){for(var n=0;n<r;n+=2)(0,y[n])(y[n+1]),y[n]=undefined,y[n+1]=undefined;r=0}function E(){try{undefined;var n=i(9254);return o=n.runOnLoop||n.runOnContext,g()}catch(t){return w()}}var I=undefined;function A(n,t){var i=arguments,e=this,r=new this.constructor(k);r[S]===undefined&&Q(r);var o,a=e._state;return a?(o=i[a-1],u((function(){return $(a,r,o,e._result)}))):B(e,r,n,t),r}function T(n){var t=this;if(n&&"object"==typeof n&&n.constructor===t)return n;var i=new t(k);return F(i,n),i}I=h?p():d?m():v?_():f===undefined?E():w();var S=Math.random().toString(36).substring(16);function k(){}var R=void 0,N=1,D=2,C=new H;function O(){return new TypeError("You cannot resolve a promise with itself")}function x(){return new TypeError("A promises callback cannot return that same promise.")}function P(n){try{return n.then}catch(t){return C.error=t,C}}function M(n,t,i,e){try{n.call(t,i,e)}catch(r){return r}}function L(n,t,i){u((function(n){var e=!1,r=M(i,t,(function(i){e||(e=!0,t!==i?F(n,i):G(n,i))}),(function(t){e||(e=!0,j(n,t))}),"Settle: "+(n._label||" unknown promise"));!e&&r&&(e=!0,j(n,r))}),n)}function V(n,t){t._state===N?G(n,t._result):t._state===D?j(n,t._result):B(t,undefined,(function(t){return F(n,t)}),(function(t){return j(n,t)}))}function U(n,i,e){i.constructor===n.constructor&&e===A&&i.constructor.resolve===T?V(n,i):e===C?(j(n,C.error),C.error=null):e===undefined?G(n,i):t(e)?L(n,i,e):G(n,i)}function F(t,i){t===i?j(t,O()):n(i)?U(t,i,P(i)):G(t,i)}function z(n){n._onerror&&n._onerror(n._result),q(n)}function G(n,t){n._state===R&&(n._result=t,n._state=N,0!==n._subscribers.length&&u(q,n))}function j(n,t){n._state===R&&(n._state=D,n._result=t,u(z,n))}function B(n,t,i,e){var r=n._subscribers,o=r.length;n._onerror=null,r[o]=t,r[o+N]=i,r[o+D]=e,0===o&&n._state&&u(q,n)}function q(n){var t=n._subscribers,i=n._state;if(0!==t.length){for(var e=undefined,r=undefined,o=n._result,a=0;a<t.length;a+=3)e=t[a],r=t[a+i],e?$(i,e,r,o):r(o);n._subscribers.length=0}}function H(){this.error=null}var Y=new H;function K(n,t){try{return n(t)}catch(i){return Y.error=i,Y}}function $(n,i,e,r){var o=t(e),a=undefined,u=undefined,c=undefined,s=undefined;if(o){if((a=K(e,r))===Y?(s=!0,u=a.error,a.error=null):c=!0,i===a)return void j(i,x())}else a=r,c=!0;i._state!==R||(o&&c?F(i,a):s?j(i,u):n===N?G(i,a):n===D&&j(i,a))}function W(n,t){try{t((function(t){F(n,t)}),(function(t){j(n,t)}))}catch(i){j(n,i)}}var X=0;function J(){return X++}function Q(n){n[S]=X++,n._state=undefined,n._result=undefined,n._subscribers=[]}function Z(n,t){this._instanceConstructor=n,this.promise=new n(k),this.promise[S]||Q(this.promise),e(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?G(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&G(this.promise,this._result))):j(this.promise,nn())}function nn(){return new Error("Array Methods must be provided an Array")}function tn(n){return new Z(this,n).promise}function en(n){var t=this;return e(n)?new t((function(i,e){for(var r=n.length,o=0;o<r;o++)t.resolve(n[o]).then(i,e)})):new t((function(n,t){return t(new TypeError("You must pass an array to race."))}))}function rn(n){var t=new this(k);return j(t,n),t}function on(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function an(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function un(n){this[S]=J(),this._result=this._state=undefined,this._subscribers=[],k!==n&&("function"!=typeof n&&on(),this instanceof un?W(this,n):an())}function cn(){var n=undefined;if("undefined"!=typeof i.g)n=i.g;else if("undefined"!=typeof self)n=self;else try{n=Function("return this")()}catch(r){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=n.Promise;if(t){var e=null;try{e=Object.prototype.toString.call(t.resolve())}catch(r){}if("[object Promise]"===e&&!t.cast)return}n.Promise=un}return Z.prototype._enumerate=function(){for(var n=this.length,t=this._input,i=0;this._state===R&&i<n;i++)this._eachEntry(t[i],i)},Z.prototype._eachEntry=function(n,t){var i=this._instanceConstructor,e=i.resolve;if(e===T){var r=P(n);if(r===A&&n._state!==R)this._settledAt(n._state,t,n._result);else if("function"!=typeof r)this._remaining--,this._result[t]=n;else if(i===un){var o=new i(k);U(o,n,r),this._willSettleAt(o,t)}else this._willSettleAt(new i((function(t){return t(n)})),t)}else this._willSettleAt(e(n),t)},Z.prototype._settledAt=function(n,t,i){var e=this.promise;e._state===R&&(this._remaining--,n===D?j(e,i):this._result[t]=i),0===this._remaining&&G(e,this._result)},Z.prototype._willSettleAt=function(n,t){var i=this;B(n,undefined,(function(n){return i._settledAt(N,t,n)}),(function(n){return i._settledAt(D,t,n)}))},un.all=tn,un.race=en,un.resolve=T,un.reject=rn,un._setScheduler=c,un._setAsap=s,un._asap=u,un.prototype={constructor:un,then:A,"catch":function(n){return this.then(null,n)}},un.polyfill=cn,un.Promise=un,un}()},4717:function(n){"use strict";n.exports=function(n){var t,i={};if(!(n instanceof Object)||Array.isArray(n))throw new Error("keyMirror(...): Argument must be an object.");for(t in n)n.hasOwnProperty(t)&&(i[t]=t);return i}},730:function(n){"use strict";n.exports=function(n,t,i,e){Object.defineProperty(n,t,{get:function(){var n=i.call(this);return Object.defineProperty(this,t,{value:n,enumerable:!!e,writable:!0}),n},set:function(n){return Object.defineProperty(this,t,{value:n,enumerable:!!e,writable:!0}),n},enumerable:!!e,configurable:!0})}},503:function(n){"use strict";var t=Element.prototype,i=t.matches||t.matchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;n.exports=function(n,t){if(i)return i.call(n,t);for(var e=n.parentNode.querySelectorAll(t),r=0;r<e.length;r++)if(e[r]==n)return!0;return!1}},4868:function(n){!function(){function t(n,t){var i,e,r,o,a,u,c,s;for(i=3&n.length,e=n.length-i,r=t,a=3432918353,u=461845907,s=0;s<e;)c=255&n.charCodeAt(s)|(255&n.charCodeAt(++s))<<8|(255&n.charCodeAt(++s))<<16|(255&n.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,i){case 3:c^=(255&n.charCodeAt(s+2))<<16;case 2:c^=(255&n.charCodeAt(s+1))<<8;case 1:r^=c=(65535&(c=(c=(65535&(c^=255&n.charCodeAt(s)))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*u+(((c>>>16)*u&65535)<<16)&4294967295}return r^=n.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 i=t;i.v2=function(n,t){for(var i,e=n.length,r=t^e,o=0;e>=4;)i=1540483477*(65535&(i=255&n.charCodeAt(o)|(255&n.charCodeAt(++o))<<8|(255&n.charCodeAt(++o))<<16|(255&n.charCodeAt(++o))<<24))+((1540483477*(i>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(i=1540483477*(65535&(i^=i>>>24))+((1540483477*(i>>>16)&65535)<<16)),e-=4,++o;switch(e){case 3:r^=(255&n.charCodeAt(o+2))<<16;case 2:r^=(255&n.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&n.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0},i.v3=t,n.exports=i}()},6926:function(n,t,i){n=i.nmd(n),function(){var e,r="Expected a function",o="__lodash_hash_undefined__",a=9007199254740991,u="[object Arguments]",c="[object Array]",s="[object Boolean]",f="[object Date]",l="[object Error]",d="[object Function]",h="[object GeneratorFunction]",v="[object Map]",p="[object Number]",g="[object Object]",m="[object RegExp]",_="[object Set]",w="[object String]",y="[object Symbol]",b="[object WeakMap]",E="[object ArrayBuffer]",I="[object Float32Array]",A="[object Float64Array]",T="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",R="[object Uint8Array]",N="[object Uint8ClampedArray]",D="[object Uint16Array]",C="[object Uint32Array]",O=/[&<>"'`]/g,x=RegExp(O.source),P=/\w*$/,M=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,V={};V[I]=V[A]=V[T]=V[S]=V[k]=V[R]=V[N]=V[D]=V[C]=!0,V[u]=V[c]=V[E]=V[s]=V[f]=V[l]=V[d]=V[v]=V[p]=V[g]=V[m]=V[_]=V[w]=V[b]=!1;var U={};U[u]=U[c]=U[E]=U[s]=U[f]=U[I]=U[A]=U[T]=U[S]=U[k]=U[v]=U[p]=U[g]=U[m]=U[_]=U[w]=U[y]=U[R]=U[N]=U[D]=U[C]=!0,U[l]=U[d]=U[b]=!1;var F={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},z={"function":!0,object:!0},G=z[typeof t]&&t&&!t.nodeType?t:e,j=z.object&&n&&!n.nodeType?n:e,B=j&&j.exports===G?G:e,q=on(G&&j&&"object"==typeof i.g&&i.g),H=on(z[typeof self]&&self),Y=on(z[typeof window]&&window),K=on(z[typeof this]&&this),$=q||Y!==(K&&K.window)&&Y||H||K||Function("return this")();function W(n,t){return n.set(t[0],t[1]),n}function X(n,t){return n.add(t),n}function J(n,t){return nn(It(n),Ai)}function Q(n,t){return!!n.length&&en(n,t,0)>-1}function Z(n,t,i){for(var e=-1,r=n.length;++e<r;)if(i(t,n[e]))return!0;return!1}function nn(n,t){for(var i=-1,e=t.length,r=n.length;++i<e;)n[r+i]=t[i];return n}function tn(n,t,i){for(var r=-1,o=n.length;++r<o;){var a=n[r],u=t(a);if(null!=u&&(c===e?u==u:i(u,c)))var c=u,s=a}return s}function en(n,t,i){if(t!=t)return function(n,t,i){var e=n.length,r=t+(i?0:-1);for(;i?r--:++r<e;){var o=n[r];if(o!=o)return r}return-1}(n,i);for(var e=i-1,r=n.length;++e<r;)if(n[e]===t)return e;return-1}function rn(n,t,i,e,r){return r(n,(function(n,r,o){i=e?(e=!1,n):t(i,n,r,o)})),i}function on(n){return n&&n.Object===Object?n:null}function an(n){return F[n]}function un(n){var t=!1;if(null!=n&&"function"!=typeof n.toString)try{t=!!(n+"")}catch(i){}return t}function cn(n,t){return n="number"==typeof n||L.test(n)?+n:-1,t=null==t?a:t,n>-1&&n%1==0&&n<t}var sn=Array.prototype,fn=Object.prototype,ln=Function.prototype.toString,dn=fn.hasOwnProperty,hn=0,vn=ln.call(Object),pn=fn.toString,gn=$._,mn=RegExp("^"+ln.call(dn).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_n=$.Reflect,wn=$.Symbol,yn=$.Uint8Array,bn=_n?_n.enumerate:e,En=Object.getPrototypeOf,In=Object.getOwnPropertySymbols,An=Object.create,Tn=fn.propertyIsEnumerable,Sn=sn.splice,kn=$.isFinite,Rn=Object.keys,Nn=Math.max,Dn=Ot($,"Map"),Cn=Ot($,"Set"),On=Ot($,"WeakMap"),xn=Ot(Object,"create"),Pn=Dn?ln.call(Dn):"",Mn=Cn?ln.call(Cn):"",Ln=On?ln.call(On):"",Vn=wn?wn.prototype:e,Un=Vn?Vn.valueOf:e;function Fn(n){if(ui(n)&&!Zt(n)){if(n instanceof zn)return n;if(dn.call(n,"__wrapped__"))return function(n){var t=new zn(n.u,n.l);return t.m=It(n.m),t}(n)}return new zn(n)}function zn(n,t){this.u=n,this.m=[],this.l=!!t}function Gn(){}function jn(n,t){return xn?n[t]!==e:dn.call(n,t)}function Bn(n){var t=-1,i=n?n.length:0;for(this.clear();++t<i;){var e=n[t];this.set(e[0],e[1])}}function qn(n){var t=-1,i=n?n.length:0;for(this.I=new Bn;++t<i;)this.push(n[t])}function Hn(n,t){var i=n.I;if(Lt(t)){var e=i.I;return("string"==typeof t?e.string:e.hash)[t]===o}return i.has(t)}function Yn(n){var t=-1,i=n?n.length:0;for(this.clear();++t<i;){var e=n[t];this.set(e[0],e[1])}}function Kn(n,t){var i=Xn(n,t);return!(i<0)&&(i==n.length-1?n.pop():Sn.call(n,i,1),!0)}function $n(n,t){var i=Xn(n,t);return i<0?e:n[i][1]}function Wn(n,t){return Xn(n,t)>-1}function Xn(n,t){for(var i=n.length;i--;)if(Xt(n[i][0],t))return i;return-1}function Jn(n,t,i){var e=Xn(n,t);e<0?n.push([t,i]):n[e][1]=i}function Qn(n,t,i,r){return n===e||Xt(n,fn[i])&&!dn.call(r,i)?t:n}function Zn(n,t,i){(i!==e&&!Xt(n[t],i)||"number"==typeof t&&i===e&&!(t in n))&&(n[t]=i)}function nt(n,t,i){var r=n[t];dn.call(n,t)&&Xt(r,i)&&(i!==e||t in n)||(n[t]=i)}function tt(n){return"function"==typeof n?n:Ti}function it(n,t,i,r,o,a,c){var l;if(r&&(l=a?r(n,o,a,c):r(n)),l!==e)return l;if(!ai(n))return n;var b=Zt(n);if(b){if(l=function(n){var t=n.length,i=n.constructor(t);t&&"string"==typeof n[0]&&dn.call(n,"index")&&(i.index=n.index,i.input=n.input);return i}(n),!t)return It(n)}else{var O=Pt(n),x=O==d||O==h;if(ei(n))return function(n,t){if(t)return n.slice();var i=new n.constructor(n.length);return n.copy(i),i}(n,t);if(O==g||O==u||x&&!a){if(un(n))return a?n:{};if(l=function(n){return"function"!=typeof n.constructor||Vt(n)?{}:et(En(n))}(x?{}:n),!t)return l=function(n,t){return n&&St(t,wi(t),n)}(l,n),i?Rt(n,l):l}else{if(!U[O])return a?n:{};l=function(n,t,i){var e=n.constructor;switch(t){case E:return Tt(n);case s:case f:return new e(+n);case I:case A:case T:case S:case k:case R:case N:case D:case C:return function(n,t){var i=t?Tt(n.buffer):n.buffer;return new n.constructor(i,n.byteOffset,n.length)}(n,i);case v:return function(n){return Bt(function(n){var t=-1,i=Array(n.size);return n.forEach((function(n,e){i[++t]=[e,n]})),i}(n),W,new n.constructor)}(n);case p:case w:return new e(n);case m:return function(n){var t=new n.constructor(n.source,P.exec(n));return t.lastIndex=n.lastIndex,t}(n);case _:return Bt(function(n){var t=-1,i=Array(n.size);return n.forEach((function(n){i[++t]=n})),i}(o=n),X,new o.constructor);case y:return r=n,Un?Object(Un.call(r)):{}}var r;var o}(n,O,t)}}c||(c=new Yn);var M=c.get(n);return M||(c.set(n,l),(b?ut:lt)(n,(function(e,o){nt(l,o,it(e,t,i,r,o,n,c))})),i&&!b?Rt(n,l):l)}function et(n){return ai(n)?An(n):{}}function rt(n,t,i){if("function"!=typeof n)throw new TypeError(r);return setTimeout((function(){n.apply(e,i)}),t)}var ot,at,ut=(ot=lt,function(n,t){if(null==n)return n;if(!ni(n))return ot(n,t);for(var i=n.length,e=at?i:-1,r=Object(n);(at?e--:++e<i)&&!1!==t(r[e],e,r););return n});function ct(n,t){var i=[];return ut(n,(function(n,e,r){t(n,e,r)&&i.push(n)})),i}function st(n,t,i,e){e||(e=[]);for(var r=-1,o=n.length;++r<o;){var a=n[r];t>0&&ti(a)&&(i||Zt(a)||Qt(a))?t>1?st(a,t-1,i,e):nn(e,a):i||(e[e.length]=a)}return e}var ft=function(n){return function(t,i,e){for(var r=-1,o=Object(t),a=e(t),u=a.length;u--;){var c=a[n?u:++r];if(!1===i(o[c],c,o))break}return t}}();function lt(n,t){return n&&ft(n,t,wi)}function dt(n,t){return ct(t,(function(t){return ri(n[t])}))}function ht(n,t,i,r,o){return n===t||(null==n||null==t||!ai(n)&&!ui(t)?n!=n&&t!=t:function(n,t,i,r,o,a){var d=Zt(n),h=Zt(t),v=c,_=c;d||(v=(v=pn.call(n))==u?g:v);h||(_=(_=pn.call(t))==u?g:_);var y=v==g&&!un(n),b=_==g&&!un(t),E=v==_;a||(a=[]);var I=Gt(a,(function(t){return t[0]===n}));if(I&&I[1])return I[1]==t;if(a.push([n,t]),E&&!y){var A=d||fi(n)?function(n,t,i,r,o,a){var u=-1,c=2&o,s=1&o,f=n.length,l=t.length;if(f!=l&&!(c&&l>f))return!1;var d=!0;for(;++u<f;){var h,v=n[u],p=t[u];if(h!==e){if(h)continue;d=!1;break}if(s){if(!At(t,(function(n){return v===n||i(v,n,r,o,a)}))){d=!1;break}}else if(v!==p&&!i(v,p,r,o,a)){d=!1;break}}return d}(n,t,i,r,o,a):function(n,t,i,e,r,o,a){switch(i){case s:case f:return+n==+t;case l:return n.name==t.name&&n.message==t.message;case p:return n!=+n?t!=+t:n==+t;case m:case w:return n==t+""}return!1}(n,t,v);return a.pop(),A}if(!(2&o)){var T=y&&dn.call(n,"__wrapped__"),S=b&&dn.call(t,"__wrapped__");if(T||S){A=i(T?n.value():n,S?t.value():t,r,o,a);return a.pop(),A}}if(!E)return!1;A=function(n,t,i,r,o,a){var u=2&o,c=wi(n),s=c.length,f=wi(t).length;if(s!=f&&!u)return!1;var l=s;for(;l--;){var d=c[l];if(!(u?d in t:dn.call(t,d)))return!1}var h=!0,v=u;for(;++l<s;){var p,g=n[d=c[l]],m=t[d];if(!(p===e?g===m||i(g,m,r,o,a):p)){h=!1;break}v||(v="constructor"==d)}if(h&&!v){var _=n.constructor,w=t.constructor;_==w||!("constructor"in n)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(h=!1)}return h}(n,t,i,r,o,a);return a.pop(),A}(n,t,ht,i,r,o))}function vt(n){var t=typeof n;return"function"==t?n:null==n?Ti:("object"==t?mt:bt)(n)}function pt(n){n=null==n?n:Object(n);var t=[];for(var i in n)t.push(i);return t}function gt(n,t){var i=-1,e=ni(n)?Array(n.length):[];return ut(n,(function(n,r,o){e[++i]=t(n,r,o)})),e}function mt(n){var t=wi(n);return function(i){var r=t.length;if(null==i)return!r;for(i=Object(i);r--;){var o=t[r];if(!(o in i)||!ht(n[o],i[o],e,3))return!1}return!0}}function _t(n,t,i,r,o){if(n!==t){var a=Zt(t)||fi(t)?e:yi(t);ut(a||t,(function(u,c){if(a&&(u=t[c=u]),ai(u))o||(o=new Yn),function(n,t,i,r,o,a,u){var c=n[i],s=t[i],f=u.get(s);if(f)return void Zn(n,i,f);var l=a?a(c,s,i+"",n,t,u):e,d=l===e;d&&(l=s,Zt(s)||fi(s)?Zt(c)?l=c:ti(c)?l=It(c):(d=!1,l=it(s,!a)):function(n){if(!ui(n)||pn.call(n)!=g||un(n))return!1;var t=En(n);if(null===t)return!0;var i=t.constructor;return"function"==typeof i&&i instanceof i&&ln.call(i)==vn}(s)||Qt(s)?Qt(c)?l=St(h=c,yi(h)):!ai(c)||r&&ri(c)?(d=!1,l=it(s,!a)):l=c:d=!1);var h;u.set(s,l),d&&o(l,s,r,a,u);u["delete"](s),Zn(n,i,l)}(n,t,c,i,_t,r,o);else{var s=r?r(n[c],u,c+"",n,t,o):e;s===e&&(s=u),Zn(n,c,s)}}))}}function wt(n,t){return n=Object(n),Bt(t,(function(t,i){return i in n&&(t[i]=n[i]),t}),{})}function yt(n,t){var i={};return function(n,t){null==n||ft(n,t,yi)}(n,(function(n,e){t(n,e)&&(i[e]=n)})),i}function bt(n){return function(t){return null==t?e:t[n]}}function Et(n,t,i){var e=-1,r=n.length;t<0&&(t=-t>r?0:r+t),(i=i>r?r:i)<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(r);++e<r;)o[e]=n[e+t];return o}function It(n){return Et(n,0,n.length)}function At(n,t){var i;return ut(n,(function(n,e,r){return!(i=t(n,e,r))})),!!i}function Tt(n){var t=new n.constructor(n.byteLength);return new yn(t).set(new yn(n)),t}bn&&!Tn.call({valueOf:1},"valueOf")&&(pt=function(n){return function(n){for(var t,i=[];!(t=n.next()).done;)i.push(t.value);return i}(bn(n))});var St=kt;function kt(n,t,i,e){i||(i={});for(var r=-1,o=t.length;++r<o;){var a=t[r];nt(i,a,e?e(i[a],n[a],a,i,n):n[a])}return i}function Rt(n,t){return St(n,xt(n),t)}function Nt(n){return Wt((function(t,i){var r=-1,o=i.length,a=o>1?i[o-1]:e;for(a="function"==typeof a?(o--,a):e,t=Object(t);++r<o;){var u=i[r];u&&n(t,u,r,a)}return t}))}function Dt(n,t,i,e){if("function"!=typeof n)throw new TypeError(r);var o=1&t,a=function(n){return function(){var t=arguments,i=et(n.prototype),e=n.apply(i,t);return ai(e)?e:i}}(n);return function u(){for(var t=-1,r=arguments.length,c=-1,s=e.length,f=Array(s+r),l=this&&this!==$&&this instanceof u?a:n;++c<s;)f[c]=e[c];for(;r--;)f[c++]=arguments[++t];return l.apply(o?i:this,f)}}var Ct=bt("length");function Ot(n,t){var i=n[t];return function(n){if(null==n)return!1;if(ri(n))return mn.test(ln.call(n));return ui(n)&&(un(n)?mn:M).test(n)}(i)?i:e}var xt=In||function(){return[]};function Pt(n){return pn.call(n)}function Mt(n){var t=n?n.length:e;return oi(t)&&(Zt(n)||si(n)||Qt(n))?function(n,t){for(var i=-1,e=Array(n);++i<n;)e[i]=t(i);return e}(t,String):null}function Lt(n){var t=typeof n;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=n||null==n}function Vt(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||fn)}(Dn&&Pt(new Dn)!=v||Cn&&Pt(new Cn)!=_||On&&Pt(new On)!=b)&&(Pt=function(n){var t=pn.call(n),i=t==g?n.constructor:null,e="function"==typeof i?ln.call(i):"";if(e)switch(e){case Pn:return v;case Mn:return _;case Ln:return b}return t});var Ut=Wt((function(n,t){return Zt(n)||(n=null==n?[]:[Object(n)]),t=st(t,1),J(n)}));function Ft(n){return n?n[0]:e}function zt(n){var t=Fn(n);return t.l=!0,t}function Gt(n,t){return function(n,t,i,e){var r;return i(n,(function(n,i,o){if(t(n,i,o))return r=e?i:n,!1})),r}(n,vt(t),ut)}function jt(n,t){return ut(n,tt(t))}function Bt(n,t,i){return rn(n,vt(t),i,arguments.length<3,ut)}function qt(n,t){var i;if("function"!=typeof t)throw new TypeError(r);return n=di(n),function(){return--n>0&&(i=t.apply(this,arguments)),n<=1&&(t=e),i}}var Ht=Wt((function(n,t,i){return Dt(n,33,t,i)})),Yt=Wt((function(n,t){return rt(n,1,t)})),Kt=Wt((function(n,t,i){return rt(n,hi(t)||0,i)}));var $t=Wt((function(n,t){return Dt(n,32,e,t)}));function Wt(n,t){if("function"!=typeof n)throw new TypeError(r);return t=Nn(t===e?n.length-1:di(t),0),function(){for(var i=arguments,e=-1,r=Nn(i.length-t,0),o=Array(r);++e<r;)o[e]=i[t+e];var a=Array(t+1);for(e=-1;++e<t;)a[e]=i[e];return a[t]=o,n.apply(this,a)}}function Xt(n,t){return n===t||n!=n&&t!=t}function Jt(n,t){return n>t}function Qt(n){return ti(n)&&dn.call(n,"callee")&&(!Tn.call(n,"callee")||pn.call(n)==u)}var Zt=Array.isArray;function ni(n){return null!=n&&oi(Ct(n))&&!ri(n)}function ti(n){return ui(n)&&ni(n)}var ii,ei=(ii=!1,function(){return ii});function ri(n){var t=ai(n)?pn.call(n):"";return t==d||t==h}function oi(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=a}function ai(n){var t=typeof n;return!!n&&("object"==t||"function"==t)}function ui(n){return!!n&&"object"==typeof n}function ci(n){return"number"==typeof n||ui(n)&&pn.call(n)==p}function si(n){return"string"==typeof n||!Zt(n)&&ui(n)&&pn.call(n)==w}function fi(n){return ui(n)&&oi(n.length)&&!!V[pn.call(n)]}function li(n,t){return n<t}var di=Number,hi=Number;function vi(n){return"string"==typeof n?n:null==n?"":n+""}var pi=Nt((function(n,t){St(t,wi(t),n)})),gi=Nt((function(n,t){St(t,yi(t),n)})),mi=Nt((function(n,t,i,e){kt(t,yi(t),n,e)}));var _i=Wt((function(n){return n.push(e,Qn),mi.apply(e,n)}));function wi(n){var t=Vt(n);if(!t&&!ni(n))return function(n){return Rn(Object(n))}(n);var i=Mt(n),e=!!i,r=i||[],o=r.length;for(var a in n)!dn.call(n,a)||e&&("length"==a||cn(a,o))||t&&"constructor"==a||r.push(a);return r}function yi(n){for(var t=-1,i=Vt(n),e=pt(n),r=e.length,o=Mt(n),a=!!o,u=o||[],c=u.length;++t<r;){var s=e[t];a&&("length"==s||cn(s,c))||"constructor"==s&&(i||!dn.call(n,s))||u.push(s)}return u}var bi=Nt((function(n,t,i){_t(n,t,i)})),Ei=Wt((function(n,t){return null==n?{}:(t=gt(st(t,1),String),wt(n,function(n,t,i,e){var r,o=-1,a=Q,u=!0,c=n.length,s=[],f=t.length;if(!c)return s;i&&(t=gt(t,(r=i,function(n){return r(n)}))),e?(a=Z,u=!1):t.length>=200&&(a=Hn,u=!1,t=new qn(t));n:for(;++o<c;){var l=n[o],d=i?i(l):l;if(u&&d==d){for(var h=f;h--;)if(t[h]===d)continue n;s.push(l)}else a(t,d,e)||s.push(l)}return s}(yi(n),t)))}));var Ii=Wt((function(n,t){return null==n?{}:wt(n,st(t,1))}));function Ai(n){return n?function(n,t){return gt(t,(function(t){return n[t]}))}(n,wi(n)):[]}function Ti(n){return n}var Si,ki=vt;function Ri(n,t,i){var e=wi(t),r=dt(t,e);null!=i||ai(t)&&(r.length||!e.length)||(i=t,t=n,n=this,r=dt(t,wi(t)));var o=!ai(i)||!("chain"in i)||i.chain,a=ri(n);return ut(r,(function(i){var e=t[i];n[i]=e,a&&(n.prototype[i]=function(){var t=this.l;if(o||t){var i=n(this.u),r=i.m=It(this.m);return r.push({func:e,args:arguments,thisArg:n}),i.l=t,i}return e.apply(n,nn([this.value()],arguments))})})),n}zn.prototype=et(Fn.prototype),zn.prototype.constructor=zn,Gn.prototype=xn?xn(null):fn,Bn.prototype.clear=function(){this.I={hash:new Gn,map:Dn?new Dn:[],string:new Gn}},Bn.prototype["delete"]=function(n){var t=this.I;return Lt(n)?function(n,t){return jn(n,t)&&delete n[t]}("string"==typeof n?t.string:t.hash,n):Dn?t.map["delete"](n):Kn(t.map,n)},Bn.prototype.get=function(n){var t=this.I;return Lt(n)?function(n,t){if(xn){var i=n[t];return i===o?e:i}return dn.call(n,t)?n[t]:e}("string"==typeof n?t.string:t.hash,n):Dn?t.map.get(n):$n(t.map,n)},Bn.prototype.has=function(n){var t=this.I;return Lt(n)?jn("string"==typeof n?t.string:t.hash,n):Dn?t.map.has(n):Wn(t.map,n)},Bn.prototype.set=function(n,t){var i=this.I;return Lt(n)?function(n,t,i){n[t]=xn&&i===e?o:i}("string"==typeof n?i.string:i.hash,n,t):Dn?i.map.set(n,t):Jn(i.map,n,t),this},qn.prototype.push=function(n){var t=this.I;if(Lt(n)){var i=t.I;("string"==typeof n?i.string:i.hash)[n]=o}else t.set(n,o)},Yn.prototype.clear=function(){this.I={array:[],map:null}},Yn.prototype["delete"]=function(n){var t=this.I,i=t.array;return i?Kn(i,n):t.map["delete"](n)},Yn.prototype.get=function(n){var t=this.I,i=t.array;return i?$n(i,n):t.map.get(n)},Yn.prototype.has=function(n){var t=this.I,i=t.array;return i?Wn(i,n):t.map.has(n)},Yn.prototype.set=function(n,t){var i=this.I,e=i.array;e&&(e.length<199?Jn(e,n,t):(i.array=null,i.map=new Bn(e)));var r=i.map;return r&&r.set(n,t),this},Fn.assign=pi,Fn.assignIn=gi,Fn.before=qt,Fn.bind=Ht,Fn.chain=zt,Fn.compact=function(n){return ct(n,Boolean)},Fn.concat=Ut,Fn.create=function(n,t){var i=et(n);return t?pi(i,t):i},Fn.defaults=_i,Fn.defer=Yt,Fn.delay=Kt,Fn.filter=function(n,t){return ct(n,vt(t))},Fn.flatten=function(n){return(n?n.length:0)?st(n,1):[]},Fn.flattenDeep=function(n){return(n?n.length:0)?st(n,Infinity):[]},Fn.iteratee=ki,Fn.keys=wi,Fn.map=function(n,t){return gt(n,vt(t))},Fn.mapValues=function(n,t){var i={};return t=vt(t),lt(n,(function(n,e,r){i[e]=t(n,e,r)})),i},Fn.matches=function(n){return mt(pi({},n))},Fn.merge=bi,Fn.mixin=Ri,Fn.negate=function(n){if("function"!=typeof n)throw new TypeError(r);return function(){return!n.apply(this,arguments)}},Fn.omit=Ei,Fn.omitBy=function(n,t){return t=vt(t),yt(n,(function(n,i){return!t(n,i)}))},Fn.once=function(n){return qt(2,n)},Fn.partial=$t,Fn.pick=Ii,Fn.pickBy=function(n,t){return null==n?{}:yt(n,vt(t))},Fn.slice=function(n,t,i){var r=n?n.length:0;return t=null==t?0:+t,i=i===e?r:+i,r?Et(n,t,i):[]},Fn.sortBy=function(n,t){var i=0;return t=vt(t),gt(gt(n,(function(n,e,r){return{value:n,index:i++,criteria:t(n,e,r)}})).sort((function(n,t){return function(n,t){if(n!==t){var i=null===n,r=n===e,o=n==n,a=null===t,u=t===e,c=t==t;if(n>t&&!a||!o||i&&!u&&c||r&&c)return 1;if(n<t&&!i||!c||a&&!r&&o||u&&o)return-1}return 0}(n.criteria,t.criteria)||n.index-t.index})),bt("value"))},Fn.tap=function(n,t){return t(n),n},Fn.thru=function(n,t){return t(n)},Fn.toArray=function(n){return ni(n)?n.length?It(n):[]:Ai(n)},Fn.values=Ai,Fn.extend=gi,Ri(Fn,Fn),Fn.clone=function(n){return ai(n)?Zt(n)?It(n):St(n,wi(n)):n},Fn.cloneDeep=function(n){return it(n,!0,!0)},Fn.escape=function(n){return(n=vi(n))&&x.test(n)?n.replace(O,an):n},Fn.every=function(n,t,i){return function(n,t){var i=!0;return ut(n,(function(n,e,r){return i=!!t(n,e,r)})),i}(n,vt(t=i?e:t))},Fn.find=Gt,Fn.findIndex=function(n,t){return n&&n.length?function(n,t,i){for(var e=n.length,r=i?e:-1;i?r--:++r<e;)if(t(n[r],r,n))return r;return-1}(n,vt(t)):-1},Fn.forEach=jt,Fn.forOwn=function(n,t){return n&<(n,tt(t))},Fn.has=function(n,t){return null!=n&&dn.call(n,t)},Fn.head=Ft,Fn.identity=Ti,Fn.includes=function(n,t,i,e){n=ni(n)?n:Ai(n),i=i&&!e?di(i):0;var r=n.length;return i<0&&(i=Nn(r+i,0)),si(n)?i<=r&&n.indexOf(t,i)>-1:!!r&&en(n,t,i)>-1},Fn.indexOf=function(n,t,i){for(var e=n?n.length:0,r=((i="number"==typeof i?i<0?Nn(e+i,0):i:0)||0)-1,o=t==t;++r<e;){var a=n[r];if(o?a===t:a!=a)return r}return-1},Fn.isArguments=Qt,Fn.isArray=Zt,Fn.isBoolean=function(n){return!0===n||!1===n||ui(n)&&pn.call(n)==s},Fn.isDate=function(n){return ui(n)&&pn.call(n)==f},Fn.isEmpty=function(n){if(ni(n)&&(Zt(n)||si(n)||ri(n.splice)||Qt(n)))return!n.length;for(var t in n)if(dn.call(n,t))return!1;return!0},Fn.isEqual=function(n,t){return ht(n,t)},Fn.isFinite=function(n){return"number"==typeof n&&kn(n)},Fn.isFunction=ri,Fn.isNaN=function(n){return ci(n)&&n!=+n},Fn.isNull=function(n){return null===n},Fn.isNumber=ci,Fn.isObject=ai,Fn.isRegExp=function(n){return ai(n)&&pn.call(n)==m},Fn.isString=si,Fn.isUndefined=function(n){return n===e},Fn.last=function(n){var t=n?n.length:0;return t?n[t-1]:e},Fn.max=function(n){return n&&n.length?tn(n,Ti,Jt):e},Fn.min=function(n){return n&&n.length?tn(n,Ti,li):e},Fn.noConflict=function(){return $._===this&&($._=gn),this},Fn.noop=function(){},Fn.reduce=Bt,Fn.result=function(n,t,i){var r=null==n?e:n[t];return r===e&&(r=i),ri(r)?r.call(n):r},Fn.size=function(n){return null==n?0:(n=ni(n)?n:wi(n)).length},Fn.some=function(n,t,i){return At(n,vt(t=i?e:t))},Fn.uniqueId=function(n){var t=++hn;return vi(n)+t},Fn.each=jt,Fn.first=Ft,Ri(Fn,(Si={},lt(Fn,(function(n,t){dn.call(Fn.prototype,t)||(Si[t]=n)})),Si),{chain:!1}),Fn.VERSION="4.6.1",ut(["pop","join","replace","reverse","split","push","shift","sort","splice","unshift"],(function(n){var t=(/^(?:replace|split)$/.test(n)?String.prototype:sn)[n],i=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|join|replace|shift)$/.test(n);Fn.prototype[n]=function(){var n=arguments;return e&&!this.l?t.apply(this.value(),n):this[i]((function(i){return t.apply(i,n)}))}})),Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return n=this.u,Bt(this.m,(function(n,t){return t.func.apply(t.thisArg,nn([n],t.args))}),n);var n},(Y||H||{})._=Fn,G&&j&&(B&&((j.exports=Fn)._=Fn),G._=Fn)}.call(this)},9587:function(n,t,i){n.exports=i(6926)._.noConflict()},2322:function(n,t,i){var e=i(4868).v3,r=Math.pow(2,32),o=function(n,t){return(e(n,t)>>>0)/r};n.exports={Seed:{IGNORING:0,BUCKETING:1,FALLBACK:2,HOLDBACK:3,BEHAVIOR_EVENT:2716770798},hashToHex:function(n,t){var i=e(n,t);return(i>>>16).toString(16)+(65535&i).toString(16)},hashToInt:function(n,t,i){return Math.floor(o(n,t)*i)},hashToReal:o,toByteString:function(n){var t=String.fromCharCode;return n.replace(/[\S\s]/gi,(function(n){n=n.charCodeAt(0);var i=t(255&n);return n>255&&(i=t(n>>>8&255)+i),n>65535&&(i=t(n>>>16)+i),i}))}}},7435:function(n,t){t.generate=function i(n){return n?(n^16*Math.random()>>n/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,i)}},3993:function(n,t,i){var e=i(9587),r=i(2339).get("stores/audience_data"),o=i(497),a=i(609),u=i(5075),c=i(5005);function s(n){var t=["type","selector","attributes","value"],i=e.extend({},n);return i.changeSet=e.map(n.changeSet,(function(n){return e.pick(c.dereferenceChangeId(n),t)})),i}t.emitLayerDecided=function(n){var t=n.decisionTicket?n.decisionTicket.audienceIds:[],i=e.map(t,(function(n){return{id:n,name:r.get(n).name}})),u={type:a.TYPES.LIFECYCLE,name:"layerDecided",data:e.extend(n,{audiences:i})},s=c.translateLayerEventToCampaignEvent(u);o.emit(u),o.emit(s)},t.emitViewActivated=function(n){var t={type:a.TYPES.LIFECYCLE,name:"viewActivated",data:n},i=c.translateViewActivatedToPageActivated(t);o.emit(t),o.emit(i)},t.emitViewsActivated=function(n){var t={type:a.TYPES.LIFECYCLE,name:"viewsActivated",data:n};o.emit(t)},t.emitPageDeactivated=function(n){var t={type:a.TYPES.LIFECYCLE,name:"pageDeactivated",data:n};o.emit(t)},t.emitActivateEvent=function(){o.emit({type:a.TYPES.LIFECYCLE,name:"activate"},!0)},t.emitActivatedEvent=function(){o.emit({type:a.TYPES.LIFECYCLE,name:"activated"})},t.emitInitializedEvent=function(){var n={type:a.TYPES.LIFECYCLE,name:"initialized"};window.optimizely&&(window.optimizely.initialized=!0),o.emit(n)},t.emitOriginsSyncedEvent=function(){var n={type:a.TYPES.LIFECYCLE,name:"originsSynced"};o.emit(n)},t.emitActionAppliedEvent=function(n){var t={type:n.type,campaignId:n.layerId,pageId:n.pageId,experimentId:n.experimentId,variationId:n.variationId};u.defineProperty(t,"changes",(function(){return s(n).changeSet}),"actionAppliedEvent");var i={type:a.TYPES.ACTION,name:"applied",data:t};o.emit(i)},t.emitActionsForDecisionAppliedEvent=function(n,t){var i={decision:n};u.defineProperty(i,"actions",(function(){return e.map(t,s)}),"appliedAllForDecisionEvent");var r={type:a.TYPES.ACTION,name:"appliedAllForDecision",data:i};o.emit(r)},t.emitSendEvents=function(){var n={type:a.TYPES.ANALYTICS,name:"sendEvents"};o.emit(n)},t.emitHoldEvents=function(){var n={type:a.TYPES.ANALYTICS,name:"holdEvents"};o.emit(n)}},8084:function(n,t,i){var e=i(9587),r=i(438),o=i(5075),a=i(5005),u=i(1658),c=i(1361);function s(n,t,i,r){var o=n.getLayerState(r),a=t.get(r),c=i.get();if(!o||!a)return c?{layer:{name:c.layerName,id:c.layerId,policy:c.layerPolicy,integrationStringVersion:c.integrationStringVersion},experiment:{name:c.experimentName,id:c.experimentId},variation:{name:c.variationName,id:c.variationId},isLayerHoldback:!1}:null;if(u.isSingleExperimentPolicy(a.policy)&&o.decision.isLayerHoldback)return null;var s,f,l=o.decision.experimentId,d=o.decision.variationId;return l&&d&&(s=e.find(a.experiments,{id:l}))&&(f=e.find(s.variations,{id:d}))?{layer:{name:a.name,id:a.id,policy:a.policy,integrationStringVersion:a.integrationStringVersion},experiment:{name:s.name,id:s.id},variation:{name:f.name,id:f.id},isLayerHoldback:o.decision.isLayerHoldback}:null}function f(n,t,i,r,o,a){var s=[],f=n.getLayerStates();a.onlySingleExperiments&&(f=e.filter(f,(function(n){var i=t.get(n.layerId);return i&&u.isSingleExperimentPolicy(i.policy)})));var l=e.map(f,(function(n){var t=!!n.decision.variationId,i=n.decisionActivationId&&n.decisionActivationId===r.getActivationId(),o=c.getExperimentAndVariation(),a=o?o.variationId:null,u=t&&n.decision.variationId===a;return e.extend(n,{isActive:t&&i||u,visitorRedirected:u})})),d=o?e.filter(l,o):l;return e.each(d,(function(n){var r=function(n,t,i,r){var o,a,u=n.layerId,c=t.get(u)||{},s=e.map(c.experiments,(function(n){return e.pick(n,["id","name"])}));if(!r&&c.decisionMetadata&&c.decisionMetadata.offerConsistency)return;var f={id:u,campaignName:c.name||null,experiment:null,allExperiments:s,variation:null,reason:n.decision.reason,isActive:!!n.isActive,visitorRedirected:n.visitorRedirected,isInCampaignHoldback:n.decision.isLayerHoldback};n.decision&&n.decision.experimentId&&(o=e.find(c.experiments,{id:n.decision.experimentId})),o&&(f.experiment=e.pick(o,["id","name","campaignName"])),o&&n.decision.variationId&&(a=e.find(o.variations,{id:n.decision.variationId})),a&&(f.variation=e.pick(a,["id","name"]));var l=e.map(n.decisionTicket.audienceIds,(function(n){return e.pick(i.get(n),["id","name"])}));return f.audiences=l,c.decisionMetadata&&c.decisionMetadata.offerConsistency&&(f.pageId=n.pageId),f}(n,t,i,a.includeOfferConsistency);r&&s.push(r)})),s}t.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(n,t,i,r,u,c,s,f,l){var d={},h={},v={},p={audiences:n.getAudiencesMap(),events:i.getEventsMap(),campaigns:d,pages:u.getPagesMap(),experiments:h,variations:v,projectId:l.getProjectId(),snippetId:l.getSnippetId(),accountId:l.getAccountId(),dcpServiceId:l.getDCPServiceId(),revision:l.getRevision(),clientName:t.getClientName(),clientVersion:t.getClientVersion()},g=a.dereferenceChangeId;return e.each(r.getAll(),(function(n){o.defineProperty(d,n.id,(function(){var t=e.extend({},n);return o.defineProperty(t,"changes",(function(){return e.map(n.changes,g)}),"campaign"),o.defineProperty(t,"experiments",(function(){return e.map(n.experiments,(function(n){return h[n.id]}))}),"campaign"),t}),"campaignMap","byId"),e.each(n.experiments,(function(n){o.defineProperty(h,n.id,(function(){var t=e.extend({},n);return o.defineProperty(t,"changes",(function(){return e.map(n.changes,g)}),"experiment"),o.defineProperty(t,"variations",(function(){return e.map(n.variations,(function(n){return v[n.id]}))}),"experiment"),t}),"experimentMap","byId"),e.each(n.variations,(function(n){o.defineProperty(v,n.id,(function(){var t=e.extend({},n);return o.defineProperty(t,"actions",(function(){return e.map(n.actions,(function(n){return e.extend({},n,{changes:e.map(n.changes,g)})}))}),"variation"),t}),"variationMap","byId")}))}))})),p.groups=c.getGroupsMap(),p}],t.visitor=["stores/visitor",function(n){return e.cloneDeep(n.getVisitorProfile())}],t.visitor_id=["stores/visitor_id",function(n){return{randomId:n.getRandomId()}}],t.state=["stores/audience_data","stores/layer_data","stores/layer","stores/view_data","stores/view","stores/global","stores/observed_redirect",function(n,t,i,o,a,l,d){return{getCampaignStates:function(r){var o={},a=f(i,t,n,l,r,{includeOfferConsistency:!1});return e.each(a,(function(n){o[n.id]=n})),o},getExperimentStates:function(r){var o=f(i,t,n,l,r,{includeOfferConsistency:!1,onlySingleExperiments:!0}),a=["audiences","variation","reason","visitorRedirected","isActive"];return e.reduce(o,(function(n,t){var i=t.allExperiments[0];return n[i.id]=e.extend({},e.pick(t,a),{id:i.id,experimentName:i.name,isInExperimentHoldback:t.isInCampaignHoldback}),n}),{})},getCampaignStateLists:function(r){var o={},a=f(i,t,n,l,r,{includeOfferConsistency:!0});return e.each(a,(function(n){var t=n.id;o[t]||(o[t]=[]),o[t].push(n)})),o},getPageStates:function(n){var t=a.getAll(),i=e.reduce(t,(function(n,t){var i=o.get(t.id);return n[t.id]=e.extend({},e.pick(i,["id","name","apiName","category","staticConditions","tags"]),e.pick(t,["isActive","metadata"])),n[t.id].isActive=!!n[t.id].isActive,n}),{});return n?e.pickBy(i,n):i},isGlobalHoldback:function(){return l.isGlobalHoldback()},getActivationId:function(){return l.getActivationId()},getVariationMap:function(){var n=i.getLayerStates(),r={};return e.each(n,(function(n){var i=t.get(n.layerId);if(n.decision&&n.decision.experimentId&&(r[n.decision.experimentId]={id:n.decision.variationId,name:null,index:null},i)){var o=e.find(i.experiments,{id:n.decision.experimentId});if(o&&n.decision.variationId)var a=e.find(o.variations,{id:n.decision.variationId}),u=e.findIndex(o.variations,{id:n.decision.variationId});a&&(r[n.decision.experimentId]={id:n.decision.variationId,name:a.name,index:u})}})),r},getActiveExperimentIds:function(){var n={};return e.each(this.getCampaignStateLists({isActive:!0}),(function(t){e.each(t,(function(t){n[t.experiment.id]=!0}))})),e.keys(n)},getRedirectInfo:function(){var n=c.getExperimentAndVariation();return n&&(n.referrer=c.getReferrer()),n},getDecisionString:function(n){if(!n)throw new Error("Must pass a config to getDecisionString");n=e.extend({maxLength:255,shouldCleanString:!1},n);var o=s(i,t,d,n.campaignId);return o?r.generateAnalyticsString(o.layer,o.experiment,o.variation,o.isLayerHoldback,n.maxLength,n.shouldCleanString):null},getDecisionObject:function(n){if(!n)throw new Error("Must pass a config to getDecisionObject");n=e.extend({maxLength:255,shouldCleanString:!1},n);var o=s(i,t,d,n.campaignId);if(!o)return null;var a=r.formatNamesAndIdsForAnalytics(o.layer,o.experiment,o.variation,n.shouldCleanString),c=e.mapValues(a.names,(function(t,i){return r.combineAndTruncateIdAndName(t,a.idStrings[i],n.maxLength)})),f={experiment:c.experiment,variation:c.variation};return u.isSingleExperimentPolicy(o.layer.policy)||e.extend(f,{campaign:c.layer,holdback:o.isLayerHoldback}),f}}}],t.utils=i(2822).create(),t.jquery=["env/jquery",function(n){return n}],t.event_emitter=i(4633)},5834:function(n,t,i){var e=i(1364),r=i(4465),o="optimizelyDataApi";t.registerFunction=function(n,t){var i=r.getGlobal(o);i||(i={},r.setGlobal(o,i)),i[n]||(i[n]=t)},t.unregisterFunction=function(n){var t=r.getGlobal(o);t&&t[n]&&(t[n]=function(){e.log('Ignoring attempt to call "'+o+"."+n+'" which has been unregistered.')})},t.getFunction=function(n){return r.getGlobal(o)[n]}},5580:function(n,t,i){var e=i(9587),r=i(1364),o=i(8084),a=i(2339),u=a.get("stores/plugins"),c=i(7547),s=i(373),f=i(2141),l=[i(531),i(9994),i(724)],d=["clientMetadata","cookieDomain","disable","load","optOut","rum"];t.push=function(n,t){var i,o,a,u;if(!e.isArray(n)&&e.isObject(n))u=e.isUndefined(n.version)?1:n.version,i=n.type,a=[n];else if(e.isArray(n))u=0,i=n[0],a=n.slice(1);else{if(!e.isString(n))return r.warn("API / Ignoring non-array/object/string argument:",n),!1;u=0,i=n,a=[]}if(l[u]&&(o=l[u][i]),t&&-1===d.indexOf(i))return r.debug("API / Ignoring non high priority function:",i,a),!1;if(!o)return r.warn('API / No function found for "'+i+'" (v'+u+") with arguments:",a),!1;r.log('API / Executing: "'+i,'" with arguments:',a);try{o.apply(null,a),f.dispatch(c.RECORD_API_USAGE,{methodName:u?"v"+u+"."+i:i})}catch(s){r.error(s)}return!0},t.get=function(n){r.log('API / Getting module: "'+n+'"');var t=o[n];if(t?e.isArray(t)&&(t=a.evaluate(t)):t=u.getPlugin(s.PluginTypes.apiModules,n),t)return f.dispatch(c.RECORD_API_USAGE,{methodName:"get."+n}),t;r.warn('Module "'+n+'" not found.')}},5075:function(n,t,i){var e=i(730),r=i(7547),o=i(2141),a=i(1364);t.defineProperty=function(n,t,i,u,c){e(n,t,(function(){var n=["prop",u,c||t].join(".");return a.debug('Evaluating getter: "'+n+'"'),o.dispatch(r.RECORD_API_USAGE,{methodName:n}),i()}),!0)}},531:function(n,t,i){var e=i(9587),r=i(9994);function o(n){var t,i={};if(n)if(a(n))t=Number(n);else{if("object"!=typeof n)throw new Error("tracker: Revenue argument "+n+"not a number.");if("revenue"in(i=e.extend({},n))){if(!a(i.revenue))throw new Error("tracker: Revenue value "+i.revenue+"not a number.");t=Number(i.revenue),delete i.revenue}}return e.isUndefined(t)||(i.revenue=t),i}function a(n){return e.isNumber(n)||e.isString(n)&&Number(n)==n}t.activateGeoDelayedExperiments=function(n,t){t||(t=n.lists?"odds":"cdn3"),r.dataFromSource({data:n,source:t})},t.activateSiteCatalyst=function(n){n&&n.sVariable&&r.integrationSettings({id:"adobe_analytics",settings:{sVariableReference:n.sVariable}})},t.bucketVisitor=function(n,t){if(n&&t){var i={experimentId:String(n)};t>256?i.variationId=String(t):i.variationIndex=String(t),r.bucketVisitor(i)}},t.bucketUser=t.bucketVisitor,t.disable=function(n){r.disable({scope:n})},t.log=function(n){e.isUndefined(n)&&(n=!0),r.log({level:n?"INFO":"OFF"})},t.optOut=function(n){e.isUndefined(n)&&(n=!0),r.optOut({isOptOut:n})},t.setCookieDomain=function(n){r.cookieDomain({cookieDomain:n})},t.setCookieExpiration=function(n){r.cookieExpiration({cookieExpirationDays:n})},t.setDimensionValue=function(n,t){var i={};i[n]=t,r.user({attributes:i})},t.setUserId=function(n){r.user({userId:n})},t.setGA4UserId=function(n){r.ga4User({ga4UserId:n})},t.storeThirdPartyData=function(n,t){r.dataFromSource({source:n,data:t})},t.trackEvent=function(n,t){r.event({eventName:n,tags:o(t)})}},5005:function(n,t,i){var e=i(9587),r=i(2339),o=i(9338),a=i(5075),u=r.get("stores/change_data");t.translateDecisionToCampaignDecision=function(n){return c(e.cloneDeep(n),{layerId:"campaignId",isLayerHoldback:"isCampaignHoldback"})},t.translateLayerEventToCampaignEvent=function(n){var i={};return a.defineProperty(i,"campaign",(function(){return function(n){var i=e.cloneDeep(n);return i.changes&&(i.changes=e.map(i.changes,t.dereferenceChangeId)),i.experiments&&e.each(i.experiments,(function(n){n.changes&&(n.changes=e.map(n.changes,t.dereferenceChangeId)),n.variations&&e.each(n.variations,(function(n){n.actions&&e.each(n.actions,(function(n){n.changes&&(n.changes=e.map(n.changes,t.dereferenceChangeId))}))}))})),i}(n.data.layer)}),"campaignEvent"),i.decisionTicket=n.data.decisionTicket,i.decision=this.translateDecisionToCampaignDecision(n.data.decision),i.audiences=n.data.audiences,{type:"lifecycle",name:"campaignDecided",data:i}},t.translateViewActivatedToPageActivated=function(n){return{type:"lifecycle",name:"pageActivated",data:{page:n.data.view}}},t.dereferenceChangeId=function(n){var t=u.getChange(n);return t?o.safeReference(t):n};var c=function(n,t){var i=e.omit(n,e.keys(t));return e.each(t,(function(t,e){i[t]=n[e]})),i}},2822:function(n,t,i){var e=i(4222).Promise,r=i(2774).t,o=i(5476).poll,a=i(1582).b,u=i(8209).A;t.create=function(){return{observeSelector:r,poll:o,Promise:e,waitForElement:a,waitUntil:u}}},3290:function(n){n.exports={DEFAULT_INTERVAL:20}},2774:function(n,t,i){var e=i(9587),r=(i(7547),i(2339)),o=r.get("stores/directive"),a=i(1357),u=(i(765),i(373),i(2141),i(7435).generate),c=i(5476),s=i(4465),f=(r.get("stores/rum"),{once:!1,onTimeout:null,timeout:null}),l={},d=function(n){d=function(){if(!o.shouldObserveChangesIndefinitely())return function(n){var t=c.poll(e.partial(v,n));l[n].cancelObservation=function(){t(),delete l[n]}};var n,t=function(){this.disconnect(),e.each(e.keys(l),v),this.observe(r,i)},i={attributes:!0,childList:!0,subtree:!0,characterData:!0},r=a.getDocumentElement();return n=new MutationObserver(t),function(t){var o=l[t];n.observe(r,i),o.cancelObservation=function(){delete l[t],e.isEmpty(l)&&n.disconnect()}}}(),d(n)};function h(n){var t=l[n];t&&t.cancelObservation&&t.cancelObservation()}function v(n){if(l[n]){if(function(n){var t=n.options.timeout;if(null!==t)if("function"==typeof t)try{return t()}catch(i){}else if(Date.now()-n.startTime>t)return!0;return!1}(l[n]))return 0===l[n].matchedCount&&e.isFunction(l[n].options.onTimeout)&&l[n].options.onTimeout(),void h(n);var t=a.querySelectorAll(l[n].selector);t.length&&(e.each(t,(function(t){t.T&&t.T[n]||l[n].callbackQueue.push(t)})),function(n){for(;l[n]&&l[n].callbackQueue.length;){var t=l[n].callbackQueue.shift();if(p(t,n),l[n].matchedCount=l[n].matchedCount+1,l[n].callback(t),l[n]&&l[n].options.once)return void h(n)}}(n))}}function p(n,t){n.T||(n.T={}),n.T[t]=!0}t.t=function(n,t,i){if(!function(n){try{a.querySelector(n)}catch(t){return!1}return!0}(n))throw new Error("observeSelector expects a valid css selector as its first argument");if(!e.isFunction(t))throw new Error("observeSelector expects a function as its second argument");if(i&&(!e.isObject(i)||e.isFunction(i)))throw new Error("observeSelector expects an object as its third argument");var r=u();return i=e.assign({},f,i||{}),l[r]={callback:t,callbackQueue:[],matchedCount:0,options:i,selector:n,startTime:Date.now()},d(r),s.setTimeout(e.bind(v,null,r),0),e.partial(h,r)}},5476:function(n,t,i){var e=i(9587),r=(i(7547),i(2339)),o=(i(373),i(2141),i(7435).generate),a=i(4465),u=i(3290).DEFAULT_INTERVAL,c=(r.get("stores/rum"),{});function s(n){c[n]&&e.each(c[n].callbacks,(function(n){n.call(null)}))}function f(n,t){c[t]&&c[t].callbacks[n]&&(delete c[t].callbacks[n],e.some(c[t].callbacks)||(clearInterval(c[t].id),delete c[t]))}t.poll=function(n,t){e.isNumber(t)||(t=u),c[t]||(c[t]={callbacks:{},id:a.setInterval(e.partial(s,t),t)});var i=o();return c[t].callbacks[i]=n,e.partial(f,i,t)},t.cancelAll=function(){e.each(c,(function(n,t){clearInterval(n.id),delete c[t]}))}},1582:function(n,t,i){var e=i(4222).Promise,r=i(2774).t;t.b=function(n){return new e((function(t,i){r(n,t,{once:!0})}))}},8209:function(n,t,i){var e=i(4222).Promise,r=i(5476).poll;t.A=function(n){return new e((function(t,i){if(n())t();else var e=r((function(){n()&&(e(),t())}))}))}},9994:function(n,t,i){var e=i(9587),r=i(7547),o=i(5580),a=i(8084),u=i(7546),c=i(373),s=i(5539),f=i(3993),l=i(1056),d=i(6451).U,h=i(1319),v=i(2970),p=(i(3560),i(8835)),g=i(497),m=i(2141),_=i(2588),w=i(9211),y=i(1364),b=i(6386),E=(i(6667),i(6160)),I=i(1600),A=i(2339),T=A.get("stores/dimension_data"),S=A.get("stores/view"),k=A.get("stores/view_data"),R=A.get("stores/visitor_id"),N=A.get("stores/layer_data"),D=A.get("stores/directive"),C=!1,O=t.ApiListenerError=d("ApiListenerError");t.event=function(n){var t;switch(n.eventType){case"click":t=function(n){var t;return n.eventData&&(t=p.create(n.eventData.id,n.eventData.apiName,"click",n.eventData)),function(){var n=s.trackClickEvent(t);n?y.log("API / Tracking click event:",n):y.log("API / Not tracking click event:",n)}}(n);break;case"decision":t=function(n){var t=n.eventData,i=w.createLayerState(t.layerId,t.experimentId,t.variationId,t.isLayerHoldback),e=w.createSingle(t.layerId,t.experimentId,t.variationId);return function(){w.recordLayerDecision(i.layerId,i.decisionTicket,i.decision),y.log("API / Tracking decision event:",i),s.trackDecisionEvent(i.decision,i.decisionTicket,e)}}(n);break;case"pageview":t=function(n){var t=E.create(n.eventData.id,n.eventData.apiName),i=E.createState(t.id);return function(){var n=s.trackViewActivation(t,i);n?y.log("API / Tracking pageview event:",n):y.log("API / Not tracking pageview event:",n)}}(n);break;default:t=function(n){var t;return n.eventId&&(t=p.create(n.eventId,n.eventName,"custom")),E.updateAllViewTags(),function(){s.trackCustomEvent(n.eventName,n.tags,t)?y.log("API / Tracking custom event:",n.eventName,n.tags):y.log("API / Not tracking custom event:",n.eventName)}}(n)}R.getBucketingId()?t():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postActivate,cleanupFn:t})},t.clientMetadata=function(n){C},t.priorRedirectString=function(n){},t.microsnippetError=function(n){},t.rum=function(n){m.dispatch(r.SET_RUM_DATA,n.eventData)},t.initialViewStates=function(n){var t=e.map(n.states,(function(n,t){return{id:t,isActive:n}}));E.registerViews(t)},t.page=function(n){var t=k.getByApiName(n.pageName);if(!t)throw new Error('Unknown page "'+n.pageName+'"');var i=!n.hasOwnProperty("isActive")||n.isActive,e=function(){i?E.activateViaAPI(t,n.tags):(E.deactivate(t),y.log("API / Deactivated Page",E.description(t)))};R.getBucketingId()?e():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postViewsActivated,cleanupFn:e})},t.tags=function(n){E.setGlobalTags(n.tags)},t.user=function(n){y.log("API / Setting visitor custom attributes:",n.attributes),e.each(n.attributes,(function(n,t){var i,e,r=t,o=T.getById(t)||T.getByApiName(t);o&&(r=o.id,i=o.apiName,e=o.segmentId||o.id);var a={id:e,value:n};i&&(a.name=i),x(r,a,!0)}))},t.ga4User=function(n){n.ga4UserId?(y.log("API / Setting ga4 user id in the global store:",n.ga4UserId),m.dispatch(r.SET_GA4_USER_ID,n)):y.error('API / Argument "ga4UserId" is missing')};var x=function(n,t,i){var e=[{key:i?["custom",n]:[n],value:t,metadata:{lastModified:h.now()}}],o=function(){m.dispatch(r.SET_VISITOR_ATTRIBUTES,{attributes:e})};R.getBucketingId()?o():m.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postVisitorProfileLoad,cleanupFn:o})};t.optOut=function(n){var t=!n.hasOwnProperty("isOptOut")||n.isOptOut;v.setOptOut(t)},t.cookieExpiration=function(n){var t=n.cookieExpirationDays;t<90&&(y.error('Argument "cookieExpirationDays"=',t,"less than minimum days:",90,", setting to minimum."),t=90),y.log("API / Setting cookie age to",t,"days."),m.dispatch(r.SET_COOKIE_AGE,86400*t)},t.extendCookieLifetime=function(n){n=e.extend({isEnabled:!0},n),y.log("API / Setting cookie automatic lifetime extension to",n.isEnabled),m.dispatch(r.SET_COOKIE_AUTO_REFRESH,n.isEnabled)},t.cookieDomain=function(n){y.log("API / Setting cookie domain to",n.cookieDomain),m.dispatch(r.SET_COOKIE_DOMAIN,n.cookieDomain)},t.disable=function(n){if(n.scope){if("tracking"!==n.scope)throw new Error('Unknown "scope" for disable: '+n.scope);y.log("API / Disabling tracking"),m.dispatch(r.LOAD_DIRECTIVE,{trackingDisabled:!0})}else y.log("API / Disabling everything"),m.dispatch(r.LOAD_DIRECTIVE,{disabled:!0})},t.log=function(n){var t=n.level,i=n.match;e.isUndefined(t)&&(t="INFO"),e.isUndefined(i)&&(i=""),y.setLogMatcher(i),y.setLogLevel(t)},t.registerModule=function(n){var t="custom/"+n.moduleName;if(a[t]||o.get(t))throw new Error('Module name "'+t+'" is reserved. Will not be registered as plugin.');b.registerApiModule(t,n.module)},t.dataFromSource=function(n){var t=n.source;l.makeAsyncRequest(t),l.resolveRequest(t,n.data)},t.addListener=function(n){if(!e.isFunction(n.handler))throw new Error("A handler function must be supplied");(n=e.omit(n,"type")).publicOnly=!0,n.emitErrors=!0;var t=n.handler;n.handler=function(n){try{return t(n)}catch(i){throw new O(i)}},g.on(n)},t.removeListener=function(n){if(!n.token)throw new Error("Must supply a token to removeListener");g.off(n.token)},t.load=function(n){n.data=e.extend({},n.data),u.normalizeClientData(n.data),m.dispatch(r.DATA_LOADED,{data:n.data})},t.integrationSettings=function(n){if(!n.id)throw new Error("id is required");if(!n.settings)throw new Error("settings is required");m.dispatch(r.SET_INTEGRATION_SETTINGS,e.extend({},n.settings,{id:n.id}))},t.bucketVisitor=function(n){if(!n.variationId&&e.isUndefined(n.variationIndex)||n.variationId&&n.variationIndex)throw new Error("One of a variationId or a variationIndex is required.");if(!n.experimentId)throw new Error("An experimentId is required.");var t,i,r=n.campaignId;if(r){if(!(t=N.get(r)))throw new Error("Could not find layer "+r)}else if(!(r=(t=N.getLayerByExperimentId(n.experimentId)).id))throw new Error("Could not find layer for experiment "+n.experimentId);if(!(i=e.find(t.experiments,{id:n.experimentId})))throw new Error("Could not find experiment "+n.experimentId+" in layer "+r);var o=n.variationId;if(e.isUndefined(n.variationIndex)){if(!e.find(i.variations,{id:o}))throw new Error("Cound not find variation "+o+" in experiment "+n.experimentId)}else if(!(o=i.variations[n.variationIndex].id))throw new Error("Could not find variation at index "+n.variationIndex+" in experiment "+n.experimentId);I.updateVariationIdMap(r,n.experimentId,o),R.getBucketingId()&&I.persistVariationIdMap()},t.waitForOriginSync=function(n){if(!e.isArray(n.canonicalOrigins))throw new Error("canonicalOrigins must be an array. Got: "+_.stringify(n.canonicalOrigins));e.each(n.canonicalOrigins,(function(n){if(!e.isString(n))throw new Error("Each item in canonicalOrigins must be a string. Found type "+(void 0===n?"undefined":(t=n)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t));var t})),m.dispatch(r.XDOMAIN_SET_CANONICAL_ORIGINS,{canonicalOrigins:n.canonicalOrigins})},t.disableCrossOrigin=function(){y.log("API / cross origin tracking is DISABLED"),m.dispatch(r.XDOMAIN_SET_DISABLED,{disabled:!0})},t.activate=function(){D.shouldActivate()?(e.forEach(S.getActiveViewStates(),(function(n){E.deactivate(k.get(n.id))})),m.dispatch(r.RESET_VIEW_STATES),f.emitActivateEvent()):y.debug("Not activating.")},t.sendEvents=function(){f.emitSendEvents()},t.holdEvents=function(){f.emitHoldEvents()}},724:function(){},5832:function(n,t,i){var e=i(9587),r=i(6451).U,o=t.ActivationCodeError=r("ActivationCodeError"),a=t.ProjectJSError=r("ProjectJSError"),u=i(2246),c=i(7547),s=i(5539),f=i(3993),l=i(9685),d=i(411),h=i(7546),v=i(1319),p=i(7388),g=i(2339),m=i(2970),_=i(1357),w=i(373),y=i(497),b=i(609),E=i(7941),I=i(2141),A=i(1214),T=i(9211),S=i(5290).mM,k=i(1364),R=i(9250),N=i(8725),D=i(6386),C=i(9805),O=i(4222).Promise,x=i(8121),P=i(6667),M=i(9425),L=i(4725),V=i(6160),U=i(1600),F=i(4465),z=(g=i(2339)).get("stores/session"),G=g.get("stores/audience_data"),j=g.get("stores/action_data"),B=g.get("stores/cleanup"),q=g.get("stores/directive"),H=g.get("stores/global"),Y=g.get("stores/group_data"),K=g.get("stores/layer_data"),$=g.get("stores/layer"),W=g.get("stores/pending_events"),X=g.get("stores/plugins"),J=g.get("stores/rum"),Q=g.get("stores/visitor"),Z=g.get("stores/view_data"),nn=g.get("stores/view"),tn=g.get("stores/visitor_id"),en=g.get("stores/visitor_bucketing"),rn=g.get("stores/xdomain"),on=i(5580),an=i(3560),un=i(1752),cn=t;function sn(){var n=null;e.isNumber(n)&&0===K.getCount()?(k.log("Activating after delay of",n,"ms because no Experiments are running"),I.dispatch(c.SET_RUM_DATA,{data:{activateDfd:!0}}),F.setTimeout(f.emitActivateEvent,n)):f.emitActivateEvent()}function fn(n){an.handleError(n.data.error,n.data.metadata)}function ln(n,t){I.dispatch(c.SET_RUM_DATA,{data:{extras:{xdAttempt:n,xdError:t?t.toString():void 0}}})}function dn(n,t,i){n=n||[];var r=X.getAllPlugins(w.PluginTypes.visitorProfileProviders),o=H.getGlobalHoldbackThreshold(),a=Q.getVisitorProfile();U.populateLazyVisitorData(r,a);var u=tn.getBucketingId();if(!u)throw new Error("bucketingId not set");var c,s=Q.getVisitorProfile();t&&(c=en.getVariationIdMap()[t.id]);var f={bucketingId:u,visitorProfile:s,audiences:n,globalHoldback:o,preferredVariationMap:c,layer:t};return t&&i&&p.isPageIdRelevant(t)?e.map(i,(function(n){return p.createTicket(e.extend({},f,{pageId:n}))})):[p.createTicket(f)]}function hn(n,i,r,o){try{var a=function(n){return{bucketingId:tn.getBucketingId(),preferredLayerId:en.getPreferredLayerMap()[n.id]}}(o),u=p.decideGroup(o,a);if(u.reason)return k.debug("Not activating Group",A.description(o),"; reason:",u.reason),J.getSampleRum()&&I.dispatch(c.RECORD_LAYER_FEATURE_USAGE,{feature:"mutex",entityId:o.id}),O.resolve();var s=K.get(u.layerId);if(!s)return k.debug("Visitor was bucketed into a Campaign ("+u.layerId+") which is not in this snippet"),O.resolve();var f=e.filter(s.pageIds,e.partial(e.includes,r));return e.isEmpty(f)?(k.debug("Not activating Group",A.description(o),"; reason: visitor was bucketed into a Campaign/Experiment not related to the currently-activating Page(s)"),O.resolve()):(J.getSampleRum()&&I.dispatch(c.RECORD_LAYER_FEATURE_USAGE,{feature:"mutex",entityId:o.id}),t.decideAndExecuteLayerASAP(n,i,f,s))}catch(l){return k.error("Error getting decision for Group",A.description(o),"; ",l),O.reject(l)}}function vn(n,t){var i={};return e.each(n,(function(n){e.isArray(n)?e.extend(i,vn(n,t)):e.isObject(n)&&t[n.type]&&(i[n.type]=!0)})),i}function pn(n){var t=[];return e.each(n,(function(n){t.push(n.name,n)})),t}function gn(n){var t=B.getCleanupFns(n);if(t.length>0){for(;t.length>0;)t.shift()();I.dispatch(c.CLEAR_CLEANUP_FN,{lifecycle:n})}}t.initialize=function(n){return this.initGlobalStore(n.clientData),this.initializePlugins(n.plugins)},t.initGlobalStore=function(n){h.normalizeClientData(n),y.on({filter:{type:"error"},handler:fn}),I.dispatch(c.DATA_LOADED,{data:n}),k.log("Initialized with DATA:",n)},t.initializePlugins=function(n){if(e.isArray(window.optimizely)&&(window.optimizely=e.filter(window.optimizely,(function(n){var t=!0;return!on.push(n,t)}))),m.setOptOut(q.shouldOptOut()),!q.isDisabled()&&!q.shouldOptOut()){un.queueBeacons(),_.isReady()?I.dispatch(c.SET_DOMCONTENTLOADED):_.addReadyHandler((function(){I.dispatch(c.SET_DOMCONTENTLOADED)})),N.time("projectJS");var i=H.getProjectJS();if(e.isFunction(i))try{E.apply(i)}catch(h){k.error("Error while executing projectJS: ",h),d.emitError(new a(h))}N.timeEnd("projectJS"),e.each(n||[],(function(n){try{n(D)}catch(h){d.emitInternalError(h)}})),e.each(H.getPlugins()||[],(function(n){try{E.apply(n,[D])}catch(h){d.emitError(h)}})),P.load();var r=y.on({filter:{type:"lifecycle",name:"activated"},handler:function(){Q.observe(U.persistVisitorProfile),$.observe(U.persistLayerStates),z.observe(U.persistSessionState),W.observe(R.persistPendingEvents),en.observe(U.persistVisitorBucketingStore),y.off(r)}});y.on({filter:{type:"lifecycle",name:"viewsActivated"},handler:t.onViewsActivated}),y.on({filter:{type:"lifecycle",name:"pageDeactivated"},handler:t.onPageDeactivated}),t.initializeApi();var o=R.getPendingEvents();if(o&&(I.dispatch(c.LOAD_PENDING_EVENTS,{events:o}),R.retryPendingEvents(o)),y.on({filter:{type:"lifecycle",name:"activate"},handler:t.activate}),f.emitInitializedEvent(),!q.shouldActivate())return O.resolve();var u=[];if(rn.isDisabled())sn();else{var s=t.initializeXDomainStorage();if(u.push(s),Boolean(rn.getCanonicalOrigins())){var l=M.makeTimeoutPromise(1e3);O.race([s,l])["catch"]((function(n){k.error("Failed to initialize xDomain storage: ",n)})).then(sn)["catch"](an.handleError)}else sn()}return O.all(u)}k.log("Controller / Is disabled")},t.activate=function(){try{var n=[];k.log("Activated client"),gn(w.Lifecycle.preActivate);var t=v.now();I.dispatch(c.ACTIVATE,{activationId:String(t),activationTimestamp:t});var i=Z.getAll();V.registerViews(i),U.setId(U.getOrGenerateId()),n.push(s.trackPostRedirectDecisionEvent()),I.dispatch(c.MERGE_VARIATION_ID_MAP,{variationIdMap:U.getVariationIdMap()}),I.dispatch(c.MERGE_PREFERRED_LAYER_MAP,{preferredLayerMap:U.getPreferredLayerMap()}),gn(w.Lifecycle.postVisitorProfileLoad),n.push((h=X.getAllPlugins(w.PluginTypes.visitorProfileProviders),g=Q.getVisitorProfile(),U.populateEagerVisitorData(h,g)).then((function(){k.log("Populated visitor profile")})));var r=dn(),o=p.decideGlobal(r);k.log("Made global decision",r,"->",o),I.dispatch(c.RECORD_GLOBAL_DECISION,o);var a=s.trackClientActivation();a?k.log("Tracked activation event",a):k.log("Not tracking activation event");var u=cn.setUpViewActivation(i),l=[];return e.each(u,(function(n){l=l.concat(V.activateMultiple([n]))})),gn(w.Lifecycle.postViewsActivated),gn(w.Lifecycle.postActivate),f.emitActivatedEvent(),O.all(n).then((function(){y.emit({type:b.TYPES.LIFECYCLE,name:"activateDeferredDone"}),k.log("All immediate effects of activation resolved")}),d.emitError)}catch(m){return d.emitError(m),O.reject(m)}var h,g},cn.setUpViewActivation=function(n){var t=[];return e.each(n,(function(n){e.isBoolean(nn.getViewState(n.id).isActive)&&V.isActivationTypeImmediate(n.activationType)?k.debug("Skipping page: already evaluated, presumably at the edge",V.description(n)):V.shouldTriggerImmediately(n.activationType)?t.push(n):n.activationType===w.ViewActivationTypes.callback?(k.debug("Setting up conditional activation for Page",V.description(n)),cn.activateViewOnCallback(n)):n.activationType===w.ViewActivationTypes.polling?(k.debug("Setting up polling activation for Page",V.description(n)),C.pollFor(e.partial(E.apply,n.activationCode),null,e.partial(L.isTimedOut,v.now())).then((function(){V.activateMultiple([n])}))["catch"]((function(t){k.warn("Failed to activate view ",n,t)}))):n.activationType!==w.ViewActivationTypes.manual&&d.emitError(new Error("Unknown view activationType: "+n.activationType))})),t},cn.activateViewOnCallback=function(n){var t={pageId:n.id};Object.defineProperty(t,"isActive",{get:function(){return nn.isViewActive(n.id)}});try{E.apply(n.activationCode,[function(t){var i=e.extend({},t,{pageName:n.apiName,type:"page"});on.push(i)},t])}catch(r){var i=new o("("+r.toString()+") in activationCode for "+V.description(n));d.emitError(i,{originalError:r,userError:!0})}},t.onViewsActivated=function(n){var i,r=n.data.views,o=e.map(r,"id");try{if(!tn.getBucketingId())throw new Error("View activated with no visitorId set");var a=function(n){var i=K.getAllByPageIds(n),r=q.getForceVariationIds(),o=q.getForceAudienceIds(),a=!e.isEmpty(r);a&&k.log("Force variations are in use. Disabling mutual exclusivity.");var u=a?{individual:i}:e.reduce(i,(function(n,t){return t.groupId?n.groups[t.groupId]||(n.groups[t.groupId]=Y.get(t.groupId)):n.individual.push(t),n}),{groups:{},individual:[]});k.log("Deciding Campaigns/Experiments for Page(s)",n);var c=e.map(u.groups,A.description).join(", ");k.log("Groups:",c);var s=e.map(u.individual,T.description).join(", ");k.log("Campaigns/Experiments not in Groups (by Campaign id):",s);var f=e.map(u.groups,e.partial(hn,r,o,n))||[],l=e.map(u.individual,(function(i){var a=e.filter(i.pageIds,e.partial(e.includes,n));return t.decideAndExecuteLayerASAP(r,o,a,i)})),d=f.concat(l);return O.all(d).then((function(t){var i=e.filter(t,(function(n){return!!n}));return k.log("All Campaigns/Experiments for Page(s) (by Campaign id)",n,"resolved:",e.map(i,T.description).join(", ")),i}))}(o)["catch"](d.emitError);return i=O.all(e.map(r,(function(n){var t=function(){V.parseViewTags(n);var t=s.trackViewActivation(n);t?k.log("Tracked activation for Page",V.description(n),t):k.log("Not Tracking activation for Page",V.description(n))};return _.isReady()?O.resolve(t()):C.pollFor(_.isReady,1e3).then(t)}))),O.all([a,i])}catch(u){d.emitError(u)}},t.onPageDeactivated=function(n){var t=n.data.page,i=j.getAllActionIdsByPageId(t.id);e.each(i,(function(n){var i=j.getActionState(n);i&&(e.each(i,(function(n,i){if(n.cancel)try{n.cancel(),k.debug("Controller / Canceled change",i,"observation due to deactivation of page:",t)}catch(e){k.error("Controller / Error canceling change",i,"observation upon deactivation of page.",e)}if(t.undoOnDeactivation&&n.undo)try{n.undo(),k.debug("Controller / Undid change",i,"due to deactivation of page:",t)}catch(r){k.error("Controller / Error undoing change upon deactivation of page.",r)}})),I.dispatch(c.REMOVE_ACTION_STATE,{actionId:n}),k.debug("Controller / Undid changes and/or canceled change observation due to deactivation of page:",t,n))}))},t.initializeApi=function(){var n={push:on.push};n.get=on.get;var t=window.optimizely;e.isArray(t)&&e.each(t,(function(t){n.push(t)})),n.data={note:"Obsolete, use optimizely.get('data') instead"},n.state={},window.optimizely=n},t.persistItemsWithId=function(n){return e.each(n,(function(n,t){U.checkKeyForVisitorId(t)&&S.setItem(t,n)})),n},t.initializeXDomainStorage=function(){var n=i(9851),r=!!U.getCurrentId(),o=!!r&&U.hasSomeData();r?o?k.log("xd / Existing visitor; has data on this origin"):k.log("xd / Existing visitor; new to this origin"):k.log("xd / New visitor");var a=H.getAccountId(),u="https://a16488430484.cdn.optimizely.com".replace("__SUBDOMAIN__","a"+a+"."),s="/client_storage/a"+a+".html";n.subscribe((function(n,t){U.checkKeyForVisitorId(n)&&S.setItem(n,t)}));var l=n.fetchAll().then((function(t){if(!tn.getVisitorIdLocator()){var i=rn.getCanonicalOrigins();if(i){var e=n.getXDomainUserId(t,i);e&&(k.log("Syncing cross-origin visitor randomId:",e),U.maybePersistVisitorId({randomId:e}))}}return U.deleteOldForeignData(),t})).then(t.persistItemsWithId).then((function(n){if(U.loadForeignData(),r&&!o){var t=!e.isEmpty(n);k.debug("xd / Loaded foreign data? ",t),ln(t)}k.log("Loaded visitor data from foreign origins"),f.emitOriginsSyncedEvent()}),(function(n){throw r&&!o&&(k.debug("xd / Failed to load foreign data:",n),ln(!1,n)),n}));return O.all([n.load(u,s)["catch"]((function(n){throw k.debug("xd / Failed to load iframe:",n),r&&!o&&ln(!1,n),n})),l["catch"]((function(n){k.debug("xd / Ignored error syncing foreign data (expected if waitForOriginSync used):",n.message),k.debug("xd / Enqueuing sync to happen after visitorId set."),I.dispatch(c.ADD_CLEANUP_FN,{lifecycle:w.Lifecycle.postVisitorProfileLoad,cleanupFn:f.emitOriginsSyncedEvent})}))])},t.decideAndExecuteLayerASAP=function(n,i,r,o){return new O((function(a,d){try{!function(n,t,i,r,o){if(t.length||i.length)return void o(dn([],void 0,r));var a=T.relatedAudienceIds(n),u=e.reduce(a,(function(n,t){var i=G.get(t);return!i||n.push(i),n}),[]),s=X.getAllPlugins(w.PluginTypes.audienceMatchers);if(J.getSampleRum()){var f={};if(e.each(u,(function(n){e.extend(f,vn(n.conditions,s))})),!e.isEmpty(f)){var d=e.keys(f);I.dispatch(c.RECORD_AUDIENCE_USAGE,{audienceTypes:d,layerId:n.id})}}!function(n,t,i,r){var o=e.reduce(n,(function(n,i){return e.extend(n,l.requiredAudienceFieldsForConditions(i.conditions,t))}),{}),a=e.reduce(o,(function(n,t){if(e.isUndefined(U.getAttribute(t))){var i=U.getPendingAttributeValue(t);e.isUndefined(i)||n.push(i)}return n}),[]);if(0===a.length)return r();var u=[].concat(n),c=x.firstToResolve(e.map(a,(function(n){return O.resolve(n).then((function(){var n=Q.getVisitorProfile();if(u=e.filter(u,(function(i){return e.isUndefined(l.isInAudience(n,i,t))})),!e.isEmpty(u))throw new Error("At least one audience is still pending")}))})));O.race([c,new O((function(n,t){F.setTimeout(t,i)}))]).then((function(){k.log("Activating Campaign after pending Audiences resolved",n),r()}),(function(){k.log("Activating Campaign after timeout on Audiences",n),r()}))}(u,s,T.getActivationTimeout(n),(function(){var t=dn(u,n,r);e.map(t,(function(t){!function(n,t,i){var r=e.map(n.audienceIds,e.bind(G.get,G)),o=e.filter(t,(function(t){return!e.includes(n.audienceIds,t.id)}));k.log("When deciding Campaign",T.description(i),"visitor is in audiences:",pn(r),"and not in audiences:",pn(o))}(t,u,n)})),o(t)}))}(o,n,i,r,(function(l){e.each(l,(function(a){var l=a.pageId?[a.pageId]:r;k.debug("Deciding layer: ",o,"with decisionTicket: ",a,"and actionViewIds: ",l),function(n,i,r,o,a){var l=T.description(n);k.log("Activating Campaign",l,"on Page(s)",o),r.length&&(k.log("Applying force audienceIds:",r,"to Campaign",l),(a=e.cloneDeep(a)).audienceIds=r);var d=t.decideLayer(n,a,i),h=!(!i.length&&!r.length),v=t.getActionsForDecision(n,d,h),g=function(n,t){return e.filter(n,(function(n){return e.isUndefined(n.pageId)||e.includes(t,n.pageId)}))}(v.actions,o);if(v.maybeExecute&&function(n,t,i,r){var o=T.description(t);k.log("Preparing actions",n,"for Campaign",o,"on Page(s)",r),e.forEach(n,u.prepareAction)}(g,n,0,o),e.forEach(o,(function(){s.trackDecisionEvent(d,a)})),f.emitLayerDecided({layer:n,decisionTicket:a,decision:d}),d.error)throw d.error;if(J.getSampleRum()){I.dispatch(c.RECORD_LAYER_POLICY_USAGE,{policy:n.policy,layerId:n.id});var m=function(n){var t={};return e.each(n,(function(n){e.each(n.changeSet,(function(n){t[n.type]||(t[n.type]=!0)}))})),t}(v.actions);I.dispatch(c.RECORD_CHANGE_TYPE_USAGE,{changeTypes:e.keys(m),layerId:n.id}),e.isEmpty(n.integrationSettings)||I.dispatch(c.RECORD_INTEGRATION_USAGE,{integrations:T.getIntegrationTypes(n),layerId:n.id})}if(!p.isInCohort(d))return void k.log("Not activating Campaign: "+T.description(n)+"; not in the cohort because:",d.reason);v.maybeExecute&&function(n,t,i,r){var o=T.description(t);k.log("Executing actions",n,"for Campaign",o,"on Page(s)",r),O.all(e.map(n,(function(n){return u.executePreparedAction(n).then(e.partial(f.emitActionAppliedEvent,n))}))).then((function(){k.log("All page actions for",i,"applied:",n),f.emitActionsForDecisionAppliedEvent(i,n)}))["catch"]((function(n){k.warn("Error evaluating page actions for decision",i,"because:",n)}))}(g,n,d,o)}(o,n,i,l,a)})),a(o)}))}catch(h){k.error("Error getting decision for Campaign: "+T.description(o),h),d(h)}}))},t.decideLayer=function(n,t,i){var e;var r=T.description(n);e=i.length?p.getDummyLayerDecision(n,i):p.decideLayer(n,t),k.log("Recording decision for Campaign",r,t,"->",e),T.recordLayerDecision(n.id,t,e),e.variationId&&e.experimentId&&U.updateVariationIdMap(n.id,e.experimentId,e.variationId),n.groupId&&U.updatePreferredLayerMap(n.groupId,n.id);return e},t.getActionsForDecision=function(n,t,i){var e=T.description(n),r="NOT applying changes for Campaign",o={actions:[],maybeExecute:!1};if(o.actions=[].concat(j.getLayerActions(t.layerId)||[],j.getExperimentActions(t.experimentId)||[],j.getExperimentVariationActions(t.experimentId,t.variationId)||[]),!i&&H.isGlobalHoldback())return k.log(r,e,"(visitor is in global holdback)"),o;if(t.isLayerHoldback)return k.log(r,e,"(visitor is in layer holdback)"),o;if(!t.experimentId||!t.variationId)return k.log(r,e,"(visitor is not eligible for any Experiments)"),o;return o.maybeExecute=!0,k.log("Got Actions for Campaign:",e,o.actions),o}},854:function(n,t,i){var e=i(126).Promise,r=i(1319),o=i(2339).get("stores/plugins"),a=i(373),u=i(1364);t.create=function(n,t,i){var c={identifier:n.id,action:t,startTime:i||r.now()};try{var s=o.getPlugin(a.PluginTypes.changeAppliers,n.type);if(!s)throw new Error("Unrecognized change type "+n.type);return new s(n,c)}catch(f){return u.error("Change applier was never properly constructed:",f),{apply:function(){return e.reject(f)}}}}},4989:function(n){n.exports={SELECTOR_POLLING_MAX_TIME:2e3,CHANGE_DATA_KEY:"optimizelyChangeData",CHANGE_ID_ATTRIBUTE_PREFIX:"data-optly-"}},613:function(n,t,i){var e=i(9587),r=i(4989).CHANGE_DATA_KEY;function o(n,t){return[n,t].join("_")}t.getData=function(n,t,i){var e=o(t,i);return n[r]&&n[r][e]?n[r][e]:null},t.hasData=function(n){return Boolean(n&&n[r]&&!e.isEmpty(n[r]))},t.removeData=function(n,t,i){n[r]&&delete n[r][o(t,i)]},t.setData=function(n,t,i,e){if("object"!=typeof e)throw new Error("setData expects an object");n[r]||(n[r]={}),n[r][o(t,i)]=e}},8062:function(n,t,i){var e=i(4717);n.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",STYLE:"style",TEXT:"text",HIDE:"hide",REMOVE:"remove"},changeApplierState:e({APPLIED:null,APPLYING:null,UNAPPLIED:null,UNDOING:null}),changeState:e({BLOCKED:null,UNAPPLIED:null,APPLIED:null,APPLYING:null,UNDOING:null,TIMED_OUT:null,IGNORED:null,ERROR:null})}},2246:function(n,t,i){var e=i(9587),r=i(7547),o=i(411),a=i(1056),u=i(6451).U,c=i(1319),s=i(2339),f=i(2141),l=i(1364),d=i(4222).Promise,h=i(1317),v=s.get("stores/global"),p=s.get("stores/action_data"),g=s.get("stores/change_data"),m=s.get("stores/session"),_=i(854);i(4725).initialize();var w=u("ActionError");function y(n,t,i){if(p.getActionState(t.id)){var o=p.getChangeApplier(n.id,t.id);if(e.isUndefined(o)){var a={changeId:n.id,actionId:t.id,changeApplier:_.create(n,t,i)};f.dispatch(r.SET_CHANGE_APPLIER,a)}else l.warn("Action / Attempted to prepare a change which is already being applied: ",n)}else l.warn("Action / Attempted to prepare change for inactive action: ",t)}function b(n,t,i,r){if(!e.includes(r,t)){if(!n[String(t)]){var u=g.getChange(t);if(!u){var s="Change with id "+t+" is absent";return r.length&&(s+=" but listed as a dependency for "+r[r.length-1]),void l.warn(s)}n[String(t)]=new d((function(s){var f=e.map(u.dependencies||[],(function(e){return b(n,e,i,r.concat([t]))}));if(u.src){var v="change_"+u.src,m=a.makeAsyncRequest(v,(function(){return h.addScriptAsync("https://cdn.optimizely.com/public/16488430484/data"+u.src,(function(){a.resolveRequest(v)}))})).then((function(){var n=g.getChange(u.id);n||o.emitError(new w("Failed to load async change from src: "+u.src)),y(n,i,c.now())}));f.push(m)}d.all(f).then((function(){var n=c.now(),e=p.getChangeApplier(t,i.id);return e?(l.debug("Action / Applying change:",u),e.apply().then((function(t){t?l.log(t):l.debug("Action / Applied change for the first time in "+(c.now()-n)+"ms:",u),s()}))):(l.debug("Action / Not applying change ",t," - No changeApplier found."),void s())}))["catch"]((function(n){l.error("Action / Failed to apply change:",u,n),s()}))}))}return n[String(t)]}l.error("Change with id "+t+" has circular dependencies: "+r.concat(t))}t.prepareAction=function(n){l.debug("Action / Preparing:",n),f.dispatch(r.ACTION_EXECUTED,{actionId:n.id,sessionId:m.getSessionId(),layerId:n.layerId,pageId:n.pageId,timestamp:c.now(),activationId:v.getActivationId()});var t=c.now();e.forEach(n.changeSet,(function(i){var o=e.isObject(i)?i.id:i,a=g.getChange(o);a||(f.dispatch(r.ADD_CHANGE,i),a=g.getChange(i.id)),a.src||y(a,n,t)}))},t.executePreparedAction=function(n){l.debug("Action / Executing:",n);var t={},i=e.map(n.changeSet,(function(i){var r=e.isObject(i)?i.id:i;return b(t,r,n,[])}));return d.all(i).then((function(){l.debug("changes for action id="+n.id+" applied")}))}},4725:function(n,t,i){var e=i(4989),r=i(2339).get("stores/directive");function o(){("interactive"===document.readyState||"complete"===document.readyState)&&(t.domReadyTime=Date.now())}t.domReadyTime=null,t.initialize=function(){o(),document.addEventListener("readystatechange",o,!0)},t.isTimedOut=function(n){var i=Date.now();if(!t.domReadyTime||!n)return!1;var o=Math.max(n,t.domReadyTime);return r.isEditor()&&(o=t.domReadyTime),!(i-o<e.SELECTOR_POLLING_MAX_TIME)}},5539:function(n,t,i){var e=i(9587),r=i(7547),o=i(411),a=i(4921),u=i(1319),c=i(7537),s=i(2339),f=i(1357),l=i(373),d=i(7391),h=i(497),v=i(609),p=i(2994),g=i(2141),m=i(9211),_=i(1364),w=(i(8725),i(4222).Promise),y=i(1361),b=i(6667),E=i(9425),I=i(7143),A=i(7435),T=s.get("stores/client_metadata"),S=s.get("stores/global"),k=s.get("stores/session"),R=s.get("stores/view"),N=s.get("stores/plugins"),D=s.get("stores/layer"),C=s.get("stores/layer_data"),O=s.get("stores/observed_redirect"),x=s.get("stores/pending_redirect"),P=s.get("stores/visitor"),M=s.get("stores/directive"),L=s.get("stores/event_data"),V=s.get("stores/visitor_id");function U(n,t){return e.extend({},n,{isLayerHoldback:t,isGlobalHoldback:!1,clientName:e.isNull(n.clientName)?c.NAME:n.clientName,integrationStringVersion:e.isNull(n.integrationStringVersion)?1:n.integrationStringVersion,anonymizeIP:e.isNull(S.getAnonymizeIP())?void 0:S.getAnonymizeIP(),activationId:S.getActivationId(),decisionTicketAudienceIds:[],sessionId:k.getSessionId(),activeViewStates:[],userFeatures:G(P.getVisitorProfile()),layerStates:D.getLayerStatesForAnalytics()})}function F(n){var t=y.getReferrer()||f.getReferrer();return{eventId:A.generate(),timestamp:u.now(),revision:S.getRevision(),clientName:T.getClientName(),clientVersion:T.getClientVersion(),projectId:S.getProjectId(),accountId:S.getAccountId(),activationId:S.getActivationId(),sessionId:k.getSessionId(),isGlobalHoldback:S.isGlobalHoldback(),namespace:S.getNamespace(),referrer:t,visitorId:V.getRandomId(),activeViewStates:n.activeViewStates,layerStates:n.layerStates,userFeatures:G(n.visitorProfile)}}function z(n){var t,i;return n.pageId?(t=n.pageId,(i=R.getViewState(t))&&i.isActive?i.metadata:{}):{}}function G(n){var t=N.getAllPlugins(l.PluginTypes.visitorProfileProviders),i=e.filter(t,{shouldTrack:!0}),r={id:null,type:null,name:"",value:null,shouldIndex:!0};return e.reduce(i,(function(t,i){try{var o=i.provides,a=n[o],u=[];if(!e.isUndefined(a)){e.isObject(a)?u=e.map(a,(function(n,t){var i=e.isObject(n)?n:{value:n};return e.extend({},{type:o,name:t},i)})):u.push({type:o,value:a});var c=e(u).map((function(n){return e.pick(e.extend({},r,n),e.keys(r))})).filter((function(n){return!!n.value})).value();t=t.concat(c)}}catch(s){_.warn("Error evaluating userFeature against visitorProfile:",s)}return t}),[])}function j(n,t,i){var r=function(n,t){var i=[];return e.each(N.getAllPlugins(l.PluginTypes.analyticsTrackers),(function(e,r){if(e[n]&&(!t||!e[t]))try{i.push({name:r,hookFn:s.evaluate(e[n])})}catch(o){_.error(o)}})),i}(n,i);_.debug("Found "+r.length+" analytics integrations defining a "+n+" hook"),_.debug("Calling each with data: ",t),e.each(r,(function(n){try{_.debug("Calling plugin: "+n.name),n.hookFn(t),_.debug("Called plugin: "+n.name)}catch(i){_.error(i)}}))}function B(n,t,i){var r=function(n,t){0;var i=[];return e.each(N.getAllPlugins(l.PluginTypes.analyticsTrackers),(function(r,o){e.includes(t,r[n])&&i.push({name:o,hookFn:r.trackLayerDecision})})),i}(n,t);_.debug("Found "+r.length+" analytics integrations defining a trackLayerDecision "+n+" timing of "+t.join("|")),_.debug("Calling each with data: ",i),e.each(r,(function(n){try{_.debug("Calling plugin: "+n.name),n.hookFn(i),_.debug("Called plugin: "+n.name)}catch(t){_.error(t)}}))}t.trackClientActivation=function(){if(M.shouldSendTrackingData()){var n,t=(n=F({activeViewStates:[],visitorProfile:P.getVisitorProfile(),layerStates:D.getLayerStatesForAnalytics()}),e.extend(n,{eventTags:{}}));return j("onClientActivation",t),t}},t.trackCustomEvent=function(n,t,i){t=t||{},i||(i=L.getByApiName(n));var r=function(n,t,i){var r=F({activeViewStates:R.getActiveViewStates(),visitorProfile:P.getVisitorProfile(),layerStates:D.getLayerStatesForAnalytics()}),o=i&&i.pageId?z(i):R.getActiveViewTags(),a=e.extend({},o,t),u=i&&i.category?i.category:d.OTHER;return e.extend(r,{eventEntityId:i&&i.id,eventApiName:n,eventCategory:u,eventTags:a})}(n,t,i),u={name:n,type:p.CUSTOM,category:r.eventCategory,tags:e.omit(r.eventTags,"revenue")};if(e.isUndefined(t.revenue)||(u.revenue=t.revenue),o.emitAnalyticsEvent({name:i?i.name||i.apiName:n,apiName:i?i.apiName:void 0,type:p.CUSTOM,tags:e.omit(r.eventTags,"revenue"),category:r.eventCategory,metrics:u.revenue?{revenue:u.revenue}:{}},!M.shouldSendTrackingData()),M.shouldSendTrackingData())return a.addEvent(u),j("onCustomEvent",r),r},t.trackDecisionEvent=function(n,t,i){i||(i=C.get(n.layerId));var o=A.generate();g.dispatch(r.RECORD_LAYER_DECISION_EVENT_ID,{layerId:n.layerId,pageId:t.pageId,decisionId:o});var a=function(n,t,i,r){var o=null,a=null,c=null;if(t.experimentId){var s=e.find(r.experiments,{id:t.experimentId});if(s&&(o=s.name||null,c=s.integrationSettings,t.variationId)){var l=e.find(s.variations,{id:t.variationId});l&&(a=l.name||null)}}var d=y.getReferrer()||f.getReferrer();return{sessionId:k.getSessionId(),decisionTicketAudienceIds:i.audienceIds,visitorId:V.getRandomId(),decisionId:n,activationId:S.getActivationId(),namespace:S.getNamespace(),timestamp:u.now(),pageId:i.pageId||null,variationId:t.variationId,variationName:a,experimentId:t.experimentId,experimentName:o,layerId:t.layerId,layerName:r.name,layerPolicy:r.policy,accountId:S.getAccountId(),projectId:S.getProjectId(),revision:String(S.getRevision()),clientName:T.getClientName(),clientVersion:T.getClientVersion(),referrer:d,integrationStringVersion:r.integrationStringVersion||1,integrationSettings:e.extend({},r.integrationSettings,c)}}(o,n,t,i),c=x.isExpectingRedirect(),s=x.getLayerId(),l=m.description(i);if(c&&s===i.id&&(b.persist(a,"COOKIE"),_.log("Relaying decision for redirect Campaign",l)),M.shouldSendTrackingData()){var d=U(a,n.isLayerHoldback);if(c&&s===i.id){var h=I.TrackLayerDecisionTimingFlags.preRedirectPolicy;d.timing=h,B(h,[I.PreRedirectPolicies.PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT],d),_.log("Called trackLayerDecision for redirect Campaign",l,d)}else{h=I.TrackLayerDecisionTimingFlags.nonRedirectPolicy;d.timing=h,B(h,[I.NonRedirectPolicies.TRACK_IMMEDIATELY],d),_.log("Called trackLayerDecision for non-redirect Campaign",l,d)}}else _.log("Analytics / Not tracking decision for Campaign",m.description(i))},t.trackPostRedirectDecisionEvent=function(){if(!M.shouldSendTrackingData()||O.hasTracked())return w.resolve();var n=O.get();if(!n)return w.resolve();var t=U(n,!1),i=I.TrackLayerDecisionTimingFlags.postRedirectPolicy;t.timing=i,B(i,[I.PostRedirectPolicies.TRACK_IMMEDIATELY],t);var e=new w((function(n){var t=h.on({filter:{type:v.TYPES.LIFECYCLE,name:"originsSynced"},handler:function(){n(),h.off(t)}})})),o=E.makeTimeoutPromise(1e3);return w.race([e,o]).then((function(){_.log("Calling trackers after successful sync")}),(function(n){_.warn("Calling trackers after failed sync:",n)})).then((function(){(t=U(n,!1)).timing=I.TrackLayerDecisionTimingFlags.postRedirectPolicy,B(I.TrackLayerDecisionTimingFlags.postRedirectPolicy,[I.PostRedirectPolicies.TRACK_AFTER_SYNC],t),g.dispatch(r.REGISTER_TRACKED_REDIRECT_DATA)}))["catch"]((function(n){_.error("Error when calling trackers after sync:",n)}))},t.trackClickEvent=function(n){var t=function(n){var t=F({activeViewStates:R.getActiveViewStates(),visitorProfile:P.getVisitorProfile(),layerStates:D.getLayerStatesForAnalytics()}),i=n.config&&n.config.selector?n.config.selector:n.eventFilter.selector,r=n.apiName,o=n.category||d.OTHER,a=n.id,u=z(n);return e.extend(t,{eventApiName:r,eventCategory:o,eventEntityId:a,eventTags:u,pageId:n.pageId,selector:i})}(n),i={name:n.apiName,type:n.eventType,category:t.eventCategory,tags:t.eventTags};if(o.emitAnalyticsEvent({name:n.name||n.apiName,apiName:n?n.apiName:void 0,type:n.eventType,category:t.eventCategory,tags:t.eventTags,metrics:{}},!M.shouldSendTrackingData()),M.shouldSendTrackingData())return a.addEvent(i),j("onClickEvent",t),t},t.trackViewActivation=function(n,t){if(t||(t=R.getViewState(n.id)),t.isActive){var i=function(n,t){var i=F({activeViewStates:R.getActiveViewStates(),visitorProfile:P.getVisitorProfile(),layerStates:D.getLayerStatesForAnalytics()});return e.extend(i,{pageId:n.id,pageApiName:n.apiName,viewCategory:n.category,eventTags:t.metadata})}(n,t);if(o.emitAnalyticsEvent({name:n.name||i.pageApiName,apiName:i.pageApiName,type:p.PAGEVIEW,category:i.viewCategory,tags:i.eventTags,metrics:{}},!M.shouldSendTrackingData()),M.shouldSendTrackingData())return a.addEvent({name:i.pageApiName,type:p.PAGEVIEW,category:i.viewCategory,tags:i.eventTags}),g.dispatch(r.TRACK_VIEW_ACTIVATED_EVENT,{pageId:n.id,eventData:i}),j("onPageActivated",i),i}else _.debug("Inactive view passed to `trackViewActivation`")}},6667:function(n,t,i){var e=i(9587),r=i(7547),o=i(441),a=i(411),u=i(2339),c=i(373),s=i(2141),f=i(1364),l=i(7143),d=u.get("stores/plugins"),h=".",v=[{name:"sessionId",relayName:"s"},{name:"decisionTicketAudienceIds",relayName:"as",valueToValueString:function(n){return e.map(n,encodeURIComponent).join(",")},encodeValueString:e.identity,decodeValueString:e.identity,valueFromValueString:function(n){return e.map(n.split(","),o.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(n,t){var i=null;if(n){var r=d.getPlugin(c.PluginTypes.analyticsTrackers,t);if(r&&e.isFunction(r.serializeSettings))try{i=r.serializeSettings(n)}catch(o){f.warn("Analytics / Failed to persist integrationSettings for plugin:",t,o)}}return i},valueFromValueString:function(n,t){var i=null,r=d.getPlugin(c.PluginTypes.analyticsTrackers,t);if(r&&e.isFunction(r.deserializeSettings))try{i=r.deserializeSettings(n)}catch(o){f.warn("Analytics / Failed to persist integrationSettings for plugin:",t,o)}return i},isNullable:!0}],p={},g={};e.forEach(v,(function(n){p[n.name]=n,g[n.relayName]=n})),t.persist=function(n,t){t===l.RedirectRelayMedia.COOKIE?function(n){try{var t=function(n){var t=[],i=e.reduce(n,(function(n,i,r){var o=p[r];return o?(o.isMulti?e.forEach(i,(function(t,i){t=o.valueToValueString?o.valueToValueString(t,i):String(t),e.isNull(t)||(t=(o.encodeValueString||encodeURIComponent)(t),n.push(encodeURIComponent(o.relayName+h+i)+"="+t))})):e.isNull(i)||(i=(o.valueToValueString||String)(i),i=(o.encodeValueString||encodeURIComponent)(i),n.push(o.relayName+"="+i)),n):(t.push(r),n)}),[]);if(t.length)throw new Error("Relay / Don't know how to relay some fields: "+t);return i.sort(),i.join("&")}(n)}catch(i){return f.error("Relay / Error computing redirect relay cookie: ",i),void a.emitError(i)}f.debug("Relay / Setting redirect relay cookie:",t);try{o.set(c.COOKIES.REDIRECT,t,{maxAge:5,encodeValue:!1})}catch(r){f.error("Relay / Failed to set redirect relay cookie",r),a.emitError(r)}}(n):f.error("Relay / Unsupported redirect relay medium: "+t)},t.load=function(n){if(n||(n=function(){var n=o.get(c.COOKIES.REDIRECT,!1);if(n)return f.log("Relay / Found redirect cookie:",n),n}()),n){var t=function(n){var t={},i=n.split("&");return e.forEach(i,(function(n){var i=n.split("=");if(2===i.length){var r=o.safeDecodeURIComponent(i[0]),u=g[r];if(u||(u=e.find(v,(function(n){return n.isMulti&&0===r.indexOf(n.relayName+h)})))){var c=i[1];try{if(u.isMulti){t[u.name]=t[u.name]||{};var s=r.substring(u.relayName.length+h.length);c=(u.decodeValueString||o.safeDecodeURIComponent)(c),c=(u.valueFromValueString||e.identity)(c,s),t[u.name][s]=c}else c=(u.decodeValueString||o.safeDecodeURIComponent)(c),c=(u.valueFromValueString||e.identity)(c),t[u.name]=c}catch(l){return f.warn("Relay / Skipping segment due to decode or parse error:",n,l),void a.emitError(l)}}else f.warn("Relay / Skipping segment with unknown field identifier:",n,r)}else f.warn("Relay / Skipping invalid segment:",n)})),t}(n);if(t){var i=[];if(e.forEach(v,(function(n){(e.isNull(t[n.name])||e.isUndefined(t[n.name]))&&(n.isNullable?t[n.name]=null:(delete t[n.name],i.push(n.name)))})),!i.length)return s.dispatch(r.LOAD_REDIRECT_DATA,t),s.dispatch(r.ADD_CLEANUP_FN,{lifecycle:c.Lifecycle.postVisitorProfileLoad,cleanupFn:function(){var n,i;i=(n=t).pageId||void 0,s.dispatch(r.RECORD_LAYER_DECISION,{layerId:n.layerId,decision:{layerId:n.layerId,experimentId:n.experimentId,variationId:n.variationId,isLayerHoldback:!1},decisionTicket:{audienceIds:n.decisionTicketAudienceIds,bucketingId:n.visitorId,globalHoldback:0,preferredVariationMap:void 0,pageId:i,activationId:n.activationId},sessionId:n.sessionId,activationId:n.activationId,timestamp:n.timestamp,revision:n.revision,namespace:n.namespace,pageId:i}),s.dispatch(r.RECORD_LAYER_DECISION_EVENT_ID,{layerId:n.layerId,pageId:i,decisionId:n.decisionId}),s.dispatch(r.ACTION_EXECUTED,{sessionId:n.sessionId,layerId:n.layerId,pageId:n.pageId,timestamp:n.timestamp,activationId:n.activationId})}}),t;f.error("Relay / Observed redirect data with missing fields:",i)}}}},411:function(n,t,i){var e=i(497);t.emitError=function(n,t,i){e.emit({type:"error",name:n.name||"Error",data:{error:n,metadata:t}},i||!1,!0)},t.emitInternalError=function(n,i){t.emitError(n,i,!0)},t.emitAnalyticsEvent=function(n,t){var i={type:"analytics",name:"trackEvent",data:n};e.emit(i,t)}},9685:function(n,t,i){var e=i(9587),r=i(1973),o=i(7098),a=i(1364),u=i(1600);function c(n,t){var i="function"==typeof n?n(t):n;return"string"==typeof i&&(i=[i]),e.isArray(i)?i:(a.warn("Couldn't determine fieldsNeeded for matcher; assuming []"),[])}function s(n){return n.name?n.name+" ("+n.id+")":n.id}t.isInAudience=function(n,t,i){var u,f=function(n,t){return function(i){var r=i.type,u=t[r];if(!u)throw new Error("Audience / No matcher found for type="+r);if(u.fieldsNeeded)for(var s=c(u.fieldsNeeded,i),f=0;f<s.length;f++){var l=s[f],d=o.getFieldValue(n,l);if(e.isUndefined(d))return void a.debug("Audience / Required field",l,"for type",r,"has no value")}a.debug("Matching condition:",i,"to values:",n);var h=u.match(n,i);if(!e.isUndefined(h))return!!h}}(n,i);a.groupCollapsed("Checking audience",t.name,t.id,t),a.debug("Visitor Profile:",n);try{var l=r.evaluate(t.conditions,f)}catch(d){u=d,l=!1}return a.groupEnd(),u&&a.error("Audience / Error evaluating audience",s(t),":",u),a.log("Is "+(l?"in":"NOT in")+" audience:",s(t)),l},t.requiredAudienceFieldsForConditions=function f(n,t){var i={};return e.each(n,(function(n){if(e.isArray(n))e.extend(i,f(n,t));else if(e.isObject(n)){var r=t[n.type];if(r){var o=c(r.fieldsNeeded,n);e.each(o,(function(n){i[u.serializeFieldKey(n)]=n}))}}})),i}},3986:function(n,t){t.FIELDS={NAME:"n",TIME:"t",TYPE:"y",CATEGORY:"c",REVENUE:"r",SESSION_ID:"s",OPTIONS:"o",SESSION_INDEX:"si"},t.FIELDS_V0_2={name:t.FIELDS.NAME,time:t.FIELDS.TIME,type:t.FIELDS.TYPE,category:t.FIELDS.CATEGORY,tags:t.FIELDS.OPTIONS,session_index:t.FIELDS.SESSION_INDEX}},9598:function(n,t,i){var e=i(9587),r=i(3986),o=i(7098).getFieldValue,a=i(2322);function u(n,t,i,o,a){this[r.FIELDS.NAME]=n,this[r.FIELDS.TYPE]=t,e.isString(i)&&i.trim().length>0&&(this[r.FIELDS.CATEGORY]=i),o&&e.keys(o).length>0&&(this[r.FIELDS.OPTIONS]=o),e.isUndefined(a)||(this[r.FIELDS.REVENUE]=a)}function c(n,t,i,o){this.eventBase=n,this[r.FIELDS.TIME]=t,e.isUndefined(i)||(this[r.FIELDS.SESSION_ID]=i),e.isUndefined(o)||(this[r.FIELDS.SESSION_INDEX]=o)}t.x=u,u.prototype.digest=function(){var n=function(n,t){return encodeURIComponent(n)+"="+encodeURIComponent(t)},t=[];if(t.push(n(r.FIELDS.NAME,this[r.FIELDS.NAME])),t.push(n(r.FIELDS.TYPE,this[r.FIELDS.TYPE])),this[r.FIELDS.CATEGORY]&&t.push(n(r.FIELDS.CATEGORY,this[r.FIELDS.CATEGORY])),this[r.FIELDS.REVENUE]&&t.push(n(r.FIELDS.REVENUE,this[r.FIELDS.REVENUE])),!this[r.FIELDS.OPTIONS])return t.join("&");var i=this[r.FIELDS.OPTIONS]||{},o=e.filter(e.keys(i),(function(n){return i.hasOwnProperty(n)}));o=o.sort();for(var a=0;a<o.length;a++)t.push(n(o[a],i[o[a]]));return t.join("&")},u.prototype.hash=function(){return this.hash_||(this.hash_=a.hashToHex(a.toByteString(this.digest()),a.Seed.BEHAVIOR_EVENT)),this.hash_},u.prototype.setHash=function(n){this.hash_=n},u.prototype.reHash=function(){this.hash_=null,this.hash()},u.prototype.equals=function(n){if(this.hash()!==n.hash()||this[r.FIELDS.NAME]!==n[r.FIELDS.NAME]||this[r.FIELDS.TYPE]!==n[r.FIELDS.TYPE]||this[r.FIELDS.CATEGORY]!==n[r.FIELDS.CATEGORY]||this[r.FIELDS.REVENUE]!==n[r.FIELDS.REVENUE])return!1;var t=this[r.FIELDS.OPTIONS]||{},i=n[r.FIELDS.OPTIONS]||{},o=e.filter(e.keys(t),(function(n){return t.hasOwnProperty(n)})),a=e.filter(e.keys(i),(function(n){return i.hasOwnProperty(n)}));if(o.length!==a.length)return!1;for(var u=0;u<o.length;u++){var c=o[u];if(!i.hasOwnProperty(c)||t[c]!==i[c])return!1}return!0},u.prototype.getValueOrDefault=function(n,t){var i=o(this,n);return e.isUndefined(i)?t:i},u.prototype.setFieldValue=function(n,t){n!==r.FIELDS.NAME&&n!==r.FIELDS.TYPE&&n!==r.FIELDS.CATEGORY&&n!==r.FIELDS.REVENUE&&n!==r.FIELDS.OPTIONS||(this[n]=t,this.reHash())},t.j=c,c.prototype.getValueOrDefault=function(n,t){if(0===n.length)return this;var i={};i[r.FIELDS.TIME]=this[r.FIELDS.TIME],i[r.FIELDS.SESSION_ID]=this[r.FIELDS.SESSION_ID],i[r.FIELDS.SESSION_INDEX]=this[r.FIELDS.SESSION_INDEX];var a=o(i,n);return e.isUndefined(a)?this.eventBase.getValueOrDefault(n,t):a},c.prototype.setFieldValue=function(n,t){n===r.FIELDS.TIME||n===r.FIELDS.SESSION_ID||n===r.FIELDS.SESSION_INDEX?this[n]=t:this.eventBase.setFieldValue(n,t)};var s={n:"name",y:"type",c:"category",r:"revenue",s:"session_id",o:"tags",si:"session_index"};c.prototype.readableEvent=function(){var n,t,i=function(n){return e.isString(n)?'"'+n+'"':n},o=this,a=[];e.each([r.FIELDS.NAME,r.FIELDS.TYPE,r.FIELDS.CATEGORY,r.FIELDS.REVENUE,r.FIELDS.SESSION_ID],(function(r){n=s[r],t=o.getValueOrDefault([r]),e.isUndefined(t)||a.push(n+": "+i(t))}));var u=[];if(n=s[r.FIELDS.OPTIONS],t=o.getValueOrDefault([r.FIELDS.OPTIONS]),e.isUndefined(t)||(e.each(t,(function(n,t){u.push(t+": "+String(i(n)))})),a.push(n+": {\n\t\t"+u.join(",\n\t\t")+"\n\t}")),t=o.getValueOrDefault([r.FIELDS.TIME]),e.isNumber(t)&&(t=i(new Date(t).toString())),!e.isUndefined(t)){a.push("timestamp: "+t)}return"{\n\t"+a.join(",\n\t")+"\n}"},c.prototype.toObject=function(n){var t,i,o={},a=this;e.each([r.FIELDS.NAME,r.FIELDS.TYPE,r.FIELDS.CATEGORY,r.FIELDS.REVENUE,r.FIELDS.OPTIONS,r.FIELDS.SESSION_INDEX],(function(n){t=s[n],i=a.getValueOrDefault([n],n===r.FIELDS.OPTIONS?{}:void 0),e.isUndefined(i)||(o[t]=i)}));var u=s[r.FIELDS.OPTIONS],c=s[r.FIELDS.REVENUE];if(n&&n.revenueAsTag&&o[c]&&(o[u]=o[u]||{},o[u][c]=o[c],delete o[c]),i=a.getValueOrDefault([r.FIELDS.TIME]),e.isNumber(i))if(n&&n.timeAsTimestamp){o.timestamp=new Date(i)}else{o.time=i}return o}},4921:function(n,t,i){var e=i(3364);t.initializeStore=e.initialize,t.addEvent=e.addEvent,t.getEvents=e.getEvents,t.getEventCount=e.getEventCount},1946:function(n,t,i){var e=i(9598).j,r=i(1319),o=i(3986),a=i(9598).x;t.CURRENT_SESSION_INDEX=0;var u=18e5;function c(n,i){var e;e=t.isInSameSession(n,i)?n.getValueOrDefault([o.FIELDS.SESSION_ID]):i.getValueOrDefault([o.FIELDS.TIME]),i.setFieldValue(o.FIELDS.SESSION_ID,e)}function s(n,i,e){var r,a=n.getValueOrDefault([o.FIELDS.SESSION_INDEX]);r=t.isInSameSession(i,n)?a:e?a+1:a-1,i.setFieldValue(o.FIELDS.SESSION_INDEX,r)}t.isInSameSession=function(n,t){var i=n.getValueOrDefault([o.FIELDS.TIME],0),e=t.getValueOrDefault([o.FIELDS.TIME],0);return Math.abs(i-e)<u},t.updateSessionId=function(n,t){if(n){var i=n.getValueOrDefault([o.FIELDS.TIME]),r=n.getValueOrDefault([o.FIELDS.SESSION_ID]),u=t.getValueOrDefault([o.FIELDS.TIME]);i="number"!=typeof i?u-36e5:i,r="number"!=typeof r?i:r,c(n=new e(new a("",""),i,r),t)}else t.setFieldValue(o.FIELDS.SESSION_ID,t.getValueOrDefault([o.FIELDS.TIME]))},t.updateSessionIndex=function(n,t){if(n){var i=n.getValueOrDefault([o.FIELDS.TIME]),r=n.getValueOrDefault([o.FIELDS.SESSION_INDEX]),u=t.getValueOrDefault([o.FIELDS.TIME]),c=n.getValueOrDefault([o.FIELDS.SESSION_ID]);i="number"!=typeof i?u-36e5:i,r="number"!=typeof r?0:r,c="number"!=typeof c?i:c,s(n=new e(new a("",""),i,c,r),t,!1)}else t.setFieldValue(o.FIELDS.SESSION_INDEX,0)},t.sessionize=function(n){var i=n.length;if(0!==i){n[0].setFieldValue(o.FIELDS.SESSION_ID,n[0].getValueOrDefault([o.FIELDS.TIME]));for(var e=1;e<i;e++)c(n[e-1],n[e]);var a=t.CURRENT_SESSION_INDEX,f=n[i-1].getValueOrDefault([o.FIELDS.TIME]);r.now()-f>u&&(a+=1),n[i-1].setFieldValue(o.FIELDS.SESSION_INDEX,a);for(e=i-1;e>0;e--)s(n[e],n[e-1],!0)}},t.reindexIfNecessary=function(n,t,i){var e=function(n){for(var t=0;t<n.length;t++){var i=n[t].getValueOrDefault([o.FIELDS.SESSION_INDEX]);n[t].setFieldValue(o.FIELDS.SESSION_INDEX,i+1)}};-1===n.getValueOrDefault([o.FIELDS.SESSION_INDEX])&&(e(t),e(i))},t.sessionSortPredicate=function(n,t){return n[o.FIELDS.TIME]-t[o.FIELDS.TIME]},t.applyMigrations=function(n){return!1}},3364:function(n,t,i){var e=i(9587),r=i(7547),o=i(1319),a=i(7391),u=i(2141),c=i(1364),s=i(1600),f=t,l=i(9598).j,d=i(3986),h=i(9598).x,v=i(1946),p=i(2339),g=p.get("stores/visitor_events"),m=p.get("stores/visitor_events_manager"),_={EVENTBASE:"eb",HASH:"h",TIMEBASE:"tb",TIMESTAMPS:"ts",DELTA:"d",INDEX:"i"};function w(n){u.dispatch(r.SET_VISITOR_EVENTS,n)}function y(n){u.dispatch(r.UPDATE_BEHAVIOR_STORE,{key:"baseMap",value:n})}function b(n){u.dispatch(r.UPDATE_BEHAVIOR_STORE,{key:"eventQueue",value:n})}function E(n){u.dispatch(r.UPDATE_BEHAVIOR_STORE,{key:"lastEvent",value:n})}function I(){return g.getEvents()}function A(){return m.getBaseMap()}function T(){return m.getEventQueue()}function S(){return m.getLastEvent()}function k(){var n=I().concat(T()),t=!1;return n.length>1e3&&(n=n.slice(-1e3),t=!0),w(n),b([]),t}t.initialize=function(n,t){if(!m.getInitialized()){f.S(n,t);var i=I();i.length>0&&E(i[i.length-1]);var e=T();e.length>0&&E(e[e.length-1]),u.dispatch(r.UPDATE_BEHAVIOR_STORE,{key:"initialized",value:!0})}},t.addEvent=function(n){c.debug("Behavior store: adding event",n);var t=f.k(n);E(t),b(T().concat(t)),v.reindexIfNecessary(S(),I(),T()),f.R(T())},t.getEvents=function(){return T().length>0&&(k()&&v.sessionize(I()),f.N(I()),f.R(T())),I()},t.getEventCount=function(){return T().length+I().length},f.S=function(n,t){f.D(n,t)&&(f.N(I()),f.R(T())),v.sessionize(I())},f.D=function(n,t){if(0===n.length&&0===t.length)return w([]),b([]),!1;var i=!1,e=n[0]||t[0];return _.EVENTBASE in e?(w(f.C(n)),b(f.C(t))):(i=!0,w(f.O(n)),b(f.O(t))),T().length>0&&(k(),i=!0),w(f._updateBaseMapAndMaybeDedupe(I())),f._migrateEventBasesAndUpdateStore()&&(i=!0),i},f.O=function(n){for(var t=[],i=0;i<n.length;i++){var e=n[i],r=f.P(e);t[i]=new l(r,e[d.FIELDS.TIME])}return t},f._migrateEventBasesAndUpdateStore=function(){var n=!1,t=f.M();return v.applyMigrations(t)&&(n=!0,y({}),w(f._updateBaseMapAndMaybeDedupe(I())),b(f._updateBaseMapAndMaybeDedupe(T()))),n},f.L=function(){return o.now()},f.k=function(n){var t,i=n.name,e=n.type||"default",r=n.category||a.OTHER,o=n.tags||{};n.revenue&&(t=n.revenue);var u=new h(i,e,r,o,t);u=f.V(u);var c=f.L(),s=new l(u,c,-1);return v.updateSessionId(S(),s),v.updateSessionIndex(S(),s),s},f._updateBaseMapAndMaybeDedupe=function(n){for(var t=0;t<n.length;t++)n[t].eventBase=f.V(n[t].eventBase);return n},f.N=function(n){var t=f.F(n);s.persistBehaviorEvents(t)},f.R=function(n){var t=f.F(n);s.persistBehaviorEventQueue(t)},f.B=function(){var n;m.getCleared()||(w([]),b([]),f.N(I()),f.R(T()),y({}),E(null),n=!0,u.dispatch(r.UPDATE_BEHAVIOR_STORE,{key:"cleared",value:n}))},f.V=function(n){var t=n.hash(),i=A(),r=i[t];if(e.isUndefined(r))return i[t]=[n],y(i),n;for(var o=0;o<r.length;o++)if(n.equals(r[o]))return r[o];return r.push(n),y(i),n},f.M=function(){var n=[],t=A();for(var i in t)!t.hasOwnProperty(i)||(n=n.concat(t[i]));return n},f.F=function(n){for(var t=function(n){var t={};t[d.FIELDS.NAME]=n.getValueOrDefault([d.FIELDS.NAME]),t[d.FIELDS.TYPE]=n.getValueOrDefault([d.FIELDS.TYPE]);var i=n.getValueOrDefault([d.FIELDS.CATEGORY]);e.isUndefined(i)||(t[d.FIELDS.CATEGORY]=i);var r=n.getValueOrDefault([d.FIELDS.REVENUE]);e.isUndefined(r)||(t[d.FIELDS.REVENUE]=r);var o=n.getValueOrDefault([d.FIELDS.OPTIONS]);return e.isUndefined(o)||(t[d.FIELDS.OPTIONS]=o),t},i=_,r=[],o="_idx_",a=0;a<n.length;a++){var u,c,s=n[a],f=s.eventBase;if(f.hasOwnProperty(o)){u=r[f._idx_];var l=s[d.FIELDS.TIME]-(u[i.TIMEBASE]||0);(c={})[i.DELTA]=l,c[i.INDEX]=a,u[i.TIMESTAMPS].push(c)}else(u={})[i.EVENTBASE]=t(s),u[i.HASH]=f.hash(),u[i.TIMEBASE]=s[d.FIELDS.TIME],(c={})[i.DELTA]=0,c[i.INDEX]=a,u[i.TIMESTAMPS]=[c],r.push(u),f._idx_=r.length-1}for(a=0;a<n.length;a++)delete n[a].eventBase._idx_;return r},f.P=function(n,t){var i=new h(n[d.FIELDS.NAME],n[d.FIELDS.TYPE],n[d.FIELDS.CATEGORY],n[d.FIELDS.OPTIONS],n[d.FIELDS.REVENUE]);return e.isUndefined(t)||i.setHash(t),i},f.C=function(n){for(var t=_,i=[],e=0;e<n.length;e++)for(var r=n[e],o=f.P(r[t.EVENTBASE],r[t.HASH]),a=r[t.TIMEBASE],u=r[t.TIMESTAMPS],c=0;c<u.length;c++){var s=u[c],d=new l(o,a+s[t.DELTA]);i[s[t.INDEX]]=d}return i},t.deserialize=function(n){return f.C(n)},t.mergeAllEvents=function(n){var t=[].concat.apply([],n);return t.sort(v.sessionSortPredicate),v.sessionize(t),t}},7547:function(n,t,i){var e=i(4717);n.exports=e({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,RECORD_LAYER_DECISION_EVENT_ID:null,TRACK_VIEW_ACTIVATED_EVENT:null,REGISTER_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_SEND_EVENTS:null,SET_TRACKER_PERSISTABLE_STATE:null,SET_TRACKER_DIRTY:null,UPDATE_TRACKER_VISITOR_ATTRIBUTES:null,SET_UA_DATA:null})},373:function(n,t,i){var e=i(9587),r=i(4717);t.COOKIES={OPT_OUT:"optimizelyOptOut",PREVIEW:"optimizelyPreview",REDIRECT:"optimizelyRedirectData",SESSION_STATE:"optimizelySessionState",TOKEN:"optimizelyToken",VISITOR_ID:"optimizelyEndUserId",VISITOR_UUID:"optimizelyPPID"},t.LayerActivationTypes={CONDITIONAL:"conditional",IMMEDIATE:"immediate",MANUAL:"manual",READY:"ready",TIMEOUT:"timeout"},t.LogLevel={OFF:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},t.Lifecycle=r({preActivate:null,postVisitorProfileLoad:null,postViewsActivated:null,postActivate:null}),t.ViewActivationTypes={immediate:"immediate",manual:"manual",callback:"callback",polling:"polling",URLChanged:"url_changed",DOMChanged:"dom_changed"},t.StorageKeys={PENDING_EVENTS:"pending_events",RELAYED_EVENTS:"relayed_events"},t.PluginTypes=r({visitorProfileProviders:null,viewProviders:null,audienceMatchers:null,viewMatchers:null,analyticsTrackers:null,viewTagLocators:null,userFeatureDefs:null,apiModules:null,changeAppliers:null,deciders:null,eventImplementations:null,viewTriggers:null}),t.ResourceTimingAttributes=r({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}),t.RUMPerformanceTimingAttributes=r({blockTime:null}),t.AttributionTypes=r({FIRST_TOUCH:null,LAST_TOUCH:null}),t.SandboxedFunctions=r({XMLHttpRequest:null}),t.PerformanceData=r({performance_marks:null,resource_timing:null,performance_timing:null}),t.PerformanceCounters=r({mutation_observer_invocation:null,polling_invocation:null,match_selector_invocation:null}),t.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"},t.AllStorageKeys=e.assign({},t.StorageKeys,t.VisitorStorageKeys),t.ListTargetingKeyTypes={COOKIE:"c",QUERY:"q",JS_VARIABLE:"j"},t.VisitorIdLocatorType={COOKIE:"cookie",JS_VARIABLE:"js",LOCALSTORAGE:"localStorage",QUERY:"query"}},7391:function(n){n.exports={OTHER:"other"}},609:function(n,t){t.TYPES={ACTION:"action",ANALYTICS:"analytics",EDITOR:"editor",LIFECYCLE:"lifecycle"}},2994:function(n){n.exports={CLICK:"click",CUSTOM:"custom",ENGAGEMENT:"engagement",PAGEVIEW:"pageview"}},7143:function(n,t,i){var e=i(4717);t.TrackLayerDecisionTimingFlags=e({preRedirectPolicy:null,postRedirectPolicy:null,nonRedirectPolicy:null}),t.PreRedirectPolicies=e({PERSIST_BEFORE_AND_TRACK_DURING_REDIRECT:null,PERSIST_BEFORE_REDIRECT:null}),t.PostRedirectPolicies=e({TRACK_IMMEDIATELY:null,TRACK_AFTER_SYNC:null}),t.NonRedirectPolicies=e({TRACK_IMMEDIATELY:null}),t.RedirectRelayMedia=e({COOKIE:null})},2453:function(n,t,i){var e=i(2322),r=t.TOTAL_POINTS=1e4;t.bucketingNumber=function(n,t,i){return e.hashToInt(n+t,i,r)},t.isHoldback=function(n,i){return t.bucketingNumber(n,i.id,e.Seed.IGNORING)<(i.holdback||0)},t.chooseWeightedCandidate=function(n,i,r){for(var o=t.bucketingNumber(n,i,e.Seed.BUCKETING),a=0;a<r.length;a++)if(r[a].endOfRange>o)return r[a].entityId;throw new Error("Unable to choose candidate")}},4746:function(n,t,i){var e=i(9587),r=i(7547),o=i(2453),a=i(1973),u=i(4170).E,c=i(2141),s=i(1364);t.isValidExperiment=function(n,t){var i,r=e.partial(e.includes,n);return s.groupCollapsed("Decision / Evaluating audiences for experiment:",t,n),i=!t.audienceIds||a.evaluate(t.audienceIds,r),s.groupEnd(),s.debug("Decision / Experiment",t,"is valid?",i),i},t.selectVariation=function(n,t,i,a,f){if(!n.variations||0===n.variations.length)throw new u('No variations in selected experiment "'+n.id+'"');if(!n.weightDistributions&&n.variations.length>1)throw new u('On selected experiment "'+n.id+'", weightDistributions must be defined if # variations > 1');var l;if(n.bucketingStrategy&&"impression"===n.bucketingStrategy)if(1===n.variations.length)l=n.variations[0].id;else{var d=a;l=o.chooseWeightedCandidate(i+d,n.id,n.weightDistributions)}else if(l=1===n.variations.length?n.variations[0].id:o.chooseWeightedCandidate(i,n.id,n.weightDistributions),f&&f[n.id]){s.debug("Decision / Using preferredVariationMap to select variation for experiment:",n.id);var h=f[n.id];if(!e.find(n.variations,{id:h}))return c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"stoppedVariation",id:n.id}),s.debug("Decision / Preferred variation:",h,"not found on experiment:",n.id,". Visitor not bucketed."),null;h!==l&&(c.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"preferredVariation",id:n.id}),l=h)}var v=e.find(n.variations,{id:l});if(v)return s.debug("Decision / Selected variation:",v),v;throw new u('Unable to find selected variation: "'+l+'".')},t.getExperimentById=function(n,t){var i=e.find(n.experiments,{id:t});if(i)return i;throw new u("Unable to find selected experiment.")},t.hasVariationActionsOnView=function(n,t){return s.debug("Decision / Checking variation:",n,"for actions on pageId:",t),!!e.find(n.actions,(function(n){return n.pageId===t&&!e.isEmpty(n.changes)}))}},4170:function(n,t){function i(n){this.message=n}i.prototype=new Error,t.E=i},7388:function(n,t,i){var e=i(9587),r=i(7547),o=i(411),a=i(9685),u=i(2453),c=i(4746),s=i(4170).E,f=i(2339),l=i(373),d=i(2141),h=i(1214),v=i(9211),p=i(1364),g=i(1658),m=f.get("stores/plugins"),_=f.get("stores/global"),w=f.get("stores/layer_data");function y(n){var t=m.getPlugin(l.PluginTypes.deciders,n);if(e.isEmpty(t))throw new Error("No deciders found for policy: "+n);return t}t.isPageIdRelevant=function(n){if(!n)return!1;var t=y(n.policy);return e.isFunction(t.includePageIdInDecisionTicket)?t.includePageIdInDecisionTicket(n):!0===t.includePageIdInDecisionTicket},t.createTicket=function(n){var t,i,r,o=e.pick(n,["bucketingId","globalHoldback","preferredVariationMap","pageId"]);return e.extend(o,{audienceIds:(t=n.visitorProfile,i=n.audiences,r=m.getAllPlugins(l.PluginTypes.audienceMatchers),e.reduce(i,(function(n,i){return a.isInAudience(t,i,r)&&n.push(i.id),n}),[])),activationId:_.getActivationId()}),o},t.decideGlobal=function(n){return{isGlobalHoldback:u.isHoldback(n.bucketingId,{id:null,holdback:n.globalHoldback})}},t.decideGroup=function(n,t){p.debug("Decision / Deciding layer for group: ",h.description(n));var i,o,a=t.preferredLayerId,c=!!a;try{(i=u.chooseWeightedCandidate(t.bucketingId,n.id,n.weightDistributions))&&"None"!==i||(o='Group traffic allocation. Visitor maps to a "hole" in the bucket space left by an experiment or campaign that\'s since been removed from the group')}catch(l){o="Group traffic allocation. Visitor maps to a point in the bucket space which has never been covered by any experiment or campaign."}if(c&&(p.debug("Decision / Using preferredLayerMap to select layer for group:",h.description(n)),a!==i&&(d.dispatch(r.RECORD_STICKY_BUCKETING_FEATURE,{feature:"preferredLayer",id:n.id}),i=a)),o)return{layerId:null,reason:o};if(!e.find(n.weightDistributions,{entityId:i})){var f="Visitor was"+(c?" sticky-":" non-sticky ")+"bucketed into a campaign ("+i+") which is not in the group";if(!c)throw new s(f);return{layerId:null,reason:f}}return{layerId:i}},t.decideLayer=function(n,t){var i,r;p.debug("Deciding: ",n,t);var a,f,l=y(n.policy),d={layerId:n.id,experimentId:null,variationId:null,isLayerHoldback:u.isHoldback(t.bucketingId,n)};if(e.isEmpty(n.experiments))throw new s("No experiments in layer.");try{if(l.decideLayer){p.debug("Decision / Using decider's custom decideLayer.");var h=l.decideLayer(n,t);i=h.experiment,r=h.variation}else p.debug("Decision / Using default decideLayer behavior."),i=l.selectExperiment(n,t.audienceIds,t.bucketingId),r=c.selectVariation(i,t.audienceIds,t.bucketingId,t.activationId,t.preferredVariationMap)}catch(v){a=v,(null!=(f=s)&&"undefined"!=typeof Symbol&&f[Symbol.hasInstance]?f[Symbol.hasInstance](a):a instanceof f)?d.reason=v.message:d.error=v}return d.experimentId=i?i.id:null,d.variationId=r?r.id:null,d.error&&(d.error.name="DecisionEngineError",o.emitError(d.error)),d},t.getDummyLayerDecision=function(n,t){var i,e=function(n,t){for(var i=0;i<n.experiments.length;i++)for(var e=0;e<n.experiments[i].variations.length;e++)if(t.indexOf(n.experiments[i].variations[e].id)>-1)return{experimentId:n.experiments[i].id,variationId:n.experiments[i].variations[e].id};return null}(n,t);return e?(p.log("Decision / Applying force variation:",e.variationId,"to Campaign",v.description(n)),i={layerId:n.id,variationId:e.variationId,experimentId:e.experimentId,isLayerHoldback:!1,reason:"force"}):(p.log("No variation matches ids:",t,"in Campaign",v.description(n)),i={layerId:n.id,variationId:null,experimentId:null,isLayerHoldback:!1,reason:"force"}),i},t.isInCohort=function(n){if(!n.experimentId||!n.variationId)return!1;var t=w.get(n.layerId);return!(g.isSingleExperimentPolicy(t.policy)&&n.isLayerHoldback)}},2339:function(n,t,i){var e=i(9587),r=i(2514),o=i(2141),a=i(8087),u=r.create(),c={action_data:i(7093),async_request:i(2800),audience_data:i(605),change_data:i(5315),cleanup:i(8989),client_metadata:i(7073),cookie_options:i(4131),event_data:i(679),event_emitter:i(2350),dimension_data:i(5843),directive:i(8718),global:i(8554),history:i(4070),integration_settings:i(4824),layer:i(8901),layer_data:i(7071),log:i(6700),observed_redirect:i(7033),pending_events:i(5464),performance:i(8864),plugins:i(6095),provider_status:i(3559),pending_redirect:i(7056),rum:i(6944),sandbox:i(3083),session:i(4127),tracker_optimizely:i(374),ua_data:i(8051),view:i(5966),view_data:i(2358),visitor:i(5750),visitor_attribute_entity:i(6179),visitor_events:i(7901),visitor_events_manager:i(1248),visitor_id:i(7985),visitor_bucketing:i(5513),xdomain:i(6996)};c.group_data=i(7277),o.registerStores(c),e.forOwn(c,(function(n,t){u.register("stores/"+t,o.getStore(t))})),u.register("core/plugins/matchers/key_value",a),n.exports=u},2970:function(n,t,i){var e=i(9587),r=i(7547),o=i(411),a=i(441),u=i(6451).U,c=i(373),s=i(2141),f=i(1364),l=t.JSONParseError=u("JSONParseError"),d=i(1440),h=i(2588),v=i(4465),p="optimizely_show_preview",g="optimizely_disable",m="optimizely_editor",_="optimizely_p13n",w="optimizely_x_audiences",y="optimizely_x",b="optimizely_show_preview",E="optimizely_opt_out",I="optimizely_token",A="optimizely_force_tracking";t.populateDirectiveData=function(){var n,t,i,u,T,S,k,R;!function(){var n="OFF",t=d.getQueryParamValue("optimizely_log");if(t){var i=t.split(":");""!==i[0]&&(n=String(i[0]).toUpperCase()),void 0!==i[1]&&f.setLogMatch(i[1])}f.setLogLevel(n)}(),function(){var n=v.getUserAgent()||"";if(!e.isString(n))return void f.warn("Directive / userAgent not a string");n=n.toLowerCase();var t=["googlebot","yahoo! slurp","bingbot","bingpreview","msnbot","keynote","ktxn","khte","gomezagent","alertsite","yottaamonitor","pingdom.com_bot","aihitbot","baiduspider","adsbot-google","mediapartners-google","applebot","catchpoint","phantomjs","moatbot","facebookexternalhit"],i=function(t){if(e.includes(n,t))return f.warn("Directive / Matches bot:",t),!0};e.some(t,i)&&(f.log("Directive / Disabling tracking"),s.dispatch(r.LOAD_DIRECTIVE,{trackingDisabled:!0}))}(),n=Boolean(e.result(window.optimizely,"initialized")),s.dispatch(r.LOAD_DIRECTIVE,{alreadyInitialized:n}),s.dispatch(r.LOAD_DIRECTIVE,{mutationObserverAPISupported:v.isMutationObserverAPISupported()}),function(){var n=a.get(c.COOKIES.OPT_OUT),t=d.getQueryParamValue(E),i="You have successfully opted out of Optimizely for this domain.",e="You are NOT opted out of Optimizely for this domain.";if("true"===t||"false"===t){var o="true"===t;s.dispatch(r.LOAD_DIRECTIVE,{shouldOptOut:o}),v.alert(o?i:e)}else n&&s.dispatch(r.LOAD_DIRECTIVE,{shouldOptOut:"true"===n})}(),function(){var n=!1,t=[p,g];t.push(m);for(var i=0;i<t.length;i++)if("true"===d.getQueryParamValue(t[i])){f.warn("Directive / Not activating because "+t[i]+" is set."),n=!0;break}s.dispatch(r.LOAD_DIRECTIVE,{disabled:n})}(),s.dispatch(r.LOAD_DIRECTIVE,{isEditor:!1}),s.dispatch(r.LOAD_DIRECTIVE,{isPreview:!1}),(t=d.getQueryParamValue(b))&&f.log("Directive / Is legacy preview mode"),s.dispatch(r.LOAD_DIRECTIVE,{isLegacyPreview:!!t}),s.dispatch(r.LOAD_DIRECTIVE,{isSlave:!1}),i=v.getGlobal("optlyDesktop"),(u=!(!i||e.isUndefined(i.p13nInner)))&&f.log("Directive / Is running in desktop app editor"),s.dispatch(r.LOAD_DIRECTIVE,{isRunningInDesktopApp:u}),(T="true"===d.getQueryParamValue(_))&&f.log("Directive / Is running in editor"),s.dispatch(r.LOAD_DIRECTIVE,{isRunningInV2Editor:T}),S=a.get(c.COOKIES.TOKEN)||null,k=d.getQueryParamValue(I)||S,s.dispatch(r.LOAD_DIRECTIVE,{projectToken:k}),function(){var n=a.get(c.COOKIES.PREVIEW),t=[],i=d.getQueryParamValue(w);if(i)t=a.safeDecodeURIComponent(i).split(",");else if(n)try{t=h.parse(n).forceAudienceIds}catch(v){var e=new l("Failed to parse previewCookie in registerForceAudienceIds: "+n),u={originalMessage:v.message,userError:!0};o.emitError(e,u)}t.length&&(f.log("Directive / Force Audience IDs:",t),s.dispatch(r.LOAD_DIRECTIVE,{forceAudienceIds:t}))}(),function(){var n=a.get(c.COOKIES.PREVIEW),t=[],i=d.getQueryParamValue(y);if(i)t=a.safeDecodeURIComponent(i).split(",");else if(n)try{t=h.parse(n).forceVariationIds}catch(v){var e=new l("Failed to parse previewCookie in registerForceVariationIds: "+n),u={originalMessage:v.message,userError:!0};o.emitError(e,u)}t.length&&(f.log("Directive / Force Variation IDs:",t),s.dispatch(r.LOAD_DIRECTIVE,{forceVariationIds:t}))}(),(R=d.getQueryParamValue(A))&&s.dispatch(r.LOAD_DIRECTIVE,{forceTracking:R})};t.setOptOut=function(n){n?(f.warn("Directive / Opting out"),a.set(c.COOKIES.OPT_OUT,"true",{maxAge:31536e4},!0)):a.remove(c.COOKIES.OPT_OUT),s.dispatch(r.LOAD_DIRECTIVE,{shouldOptOut:n})}},1319:function(n,t){t.now=function(){return+new Date}},7537:function(n,t){t.VERSION="0.194.0",t.NAME="js"},1357:function(n,t,i){var e=i(2339).get("stores/global");i(9907);t.getDocumentElement=function(){return document.documentElement},t.getCookieString=function(){return document.cookie||""},t.setCookie=function(n){document.cookie=n},t.querySelector=function(n){return document.querySelector(n)},t.querySelectorAll=function(n){return document.querySelectorAll(n)},t.parseUri=function(n){var i=t.createElement("a");return i.href=n,i},t.childrenOf=function(n){return Array.prototype.slice.call(n.querySelectorAll("*"))},t.createElement=function(n){return document.createElement(n)},t.isReady=function(){return e.domContentLoadedHasFired()||"interactive"===document.readyState||"complete"===document.readyState},t.isLoaded=function(){return"complete"===document.readyState},t.addReadyHandler=function(n){return document.addEventListener("DOMContentLoaded",n),function(){t.removeReadyHandler(n)}},t.removeReadyHandler=function(n){return function(){document.removeEventListener("DOMContentLoaded",n)}},t.getReferrer=function(){return document.referrer},t.getReadyState=function(){return document.readyState},t.write=function(n){if("loading"!==t.getReadyState())throw new Error("Aborting attempt to write to already-loaded document");document.write(n)},t.appendToHead=function(n){return t.appendTo(document.head,n)},t.appendTo=function(n,t){n.appendChild(t)},t.addEventListener=function(n,t,i){return document.addEventListener(n,t,i),function(){document.removeEventListener(n,t,i)}},t.getCurrentScript=function(){if(document.currentScript)return document.currentScript},t.parentElement=function(n){for(var t=n.parentNode;t.nodeType!==Node.ELEMENT_NODE;)t=t.parentNode;return t}},5290:function(n,t,i){var e,r,o="optimizely_data",a=i(6451).U,u=i(6540),c=i(4465),s=a("StorageError");try{r=c.getGlobal("localStorage")}catch(f){throw new s("Unable to read localStorage: "+f.toString())}if(!r)throw new s("localStorage is undefined");e=u.create(r,o),t.mM=e},765:function(n,t){t.create=function(n){return new MutationObserver(n)},t.observe=function(n,t,i){n.observe(t,i)}},9670:function(n,t,i){var e=i(4222).Promise,r=i(4465);t.estimateStorage=function(){var n=r.getGlobal("navigator");try{return n.storage.estimate()}catch(t){return e.resolve({usage:null,quota:null})}}},8725:function(n,t,i){var e=i(7547),r=i(6451).U,o=i(1319),a=i(2141),u=i(4465),c=i(2339).get("stores/rum"),s="optimizely:",f=t.Error=r("PerformanceError");function l(){return u.getGlobal("performance")}t.time=function(n){if(c.getSampleRum()){var t=l();if(t&&t.mark){var i=s+n;t.clearMarks(i+"Begin"),t.mark(i+"Begin")}}},t.timeEnd=function(n){if(c.getSampleRum()){var t=l();if(t&&t.mark){var i=s+n,r=t.getEntriesByName(i+"Begin");if(0===r.length)throw new f("Called timeEnd without matching time: "+n);t.clearMarks(i+"End"),t.mark(i+"End");var o=n+"Time",u=t.getEntriesByName(i+"End")[0].startTime-r[0].startTime;a.dispatch(e.SET_PERFORMANCE_MARKS_DATA,{name:o,data:{startTime:Math.round(1e3*r[0].startTime)/1e3,duration:Math.round(1e3*u)/1e3}})}}},t.setMark=function(n,t,i){if(c.getSampleRum()){var r=l();if(r&&r.mark){var o=s+n;r.mark(o),a.dispatch(e.SET_PERFORMANCE_MARKS_DATA,{name:n,data:{startTime:Math.round(1e3*t)/1e3,duration:Math.round(1e3*i)/1e3}})}}},t.now=function(){var n=l();return n?n.now():o.now()}},4465:function(n,t,i){var e=i(9587),r=i(1364);t.getUserAgent=function(){return window.navigator.userAgent},t.getLocationSearch=function(){return window.location.search},t.getNavigatorLanguage=function(){return window.navigator.language||window.navigator.userLanguage},t.getHref=function(){return window.location.href},t.getLocation=function(){return window.location},t.setLocation=function(n){window.location.replace(n)},t.setGlobal=function(n,t){window[n]=t},t.getGlobal=function(n){return window[n]},t.getGlobalByPath=function(n){for(var t=n.split("."),i=window;t.length;)try{i=i[t.shift()]}catch(e){throw r.error("Attempted to access nonexistent property. Path ",n),new Error("Attempted to access nonexistent property. Path "+n)}return i},t.addEventListener=function(){return window.addEventListener.apply(window,arguments)},t.removeEventListener=function(){return window.removeEventListener.apply(window,arguments)},t.isMutationObserverAPISupported=function(){return!e.isUndefined(window.MutationObserver)},t.alert=function(n){alert(n)},t.setTimeout=function(n,t){return setTimeout((function(){try{n()}catch(t){r.warn("Deferred function threw error:",t)}}),t)},t.setInterval=function(n,t){return setInterval((function(){try{n()}catch(t){r.warn("Polling function threw error:",t)}}),t)}},8835:function(n,t,i){var e=i(9587);t.create=function(n,t,i,r){return e.extend({category:"other"},r,{id:n,apiName:t,eventType:i})}},497:function(n,t,i){var e=i(9587),r=i(7435),o=i(7547),a=i(411),u=i(2339),c=i(2141),s=i(1364),f=u.get("stores/event_emitter");t.on=function(n){return n.token||(n.token=r.generate()),c.dispatch(o.ADD_EMITTER_HANDLER,n),n.token},t.off=function(n){c.dispatch(o.REMOVE_EMITTER_HANDLER,{token:n})},t.emit=function(n,t,i){var r=f.getHandlers(n,t);e.each(r,(function(e){try{e.handler.call({$di:u},n)}catch(r){!i&&e.emitErrors?(s.error("Error in handler for event:",n,r),a.emitError(r,null,t)):s.warn("Suppressed error in handler for event:",n,r)}}))}},4633:function(n,t,i){var e=i(497);t.on=function(n){return n.publicOnly=!0,e.on(n)},t.off=e.off,t.emit=function(n){e.emit(n)}},7941:function(__unused_webpack_module,exports,__webpack_require__){var createError=__webpack_require__(2347),di=__webpack_require__(2339),Logger=__webpack_require__(1364),CSP_MODE=!1,EXEC_WITH_JQUERY=!0,ExecError=exports.Error=createError("ExecError");exports.apply=function(n,t){t=t||[],EXEC_WITH_JQUERY&&(t=t.concat(di.get("env/jquery")));try{return n.apply(void 0,t)}catch(i){throw Logger.warn("Error applying function",n,"with args:",t,i),new ExecError(i)}},exports.eval=function(str){if(CSP_MODE)throw new ExecError("eval is not supported in CSP mode");try{return EXEC_WITH_JQUERY&&(str="var $ = optimizely.get('jquery');"+str),eval(str)}catch(e){throw Logger.warn("Error executing JS:",str,e),new ExecError(e)}}},2141:function(n,t,i){var e=i(2609);n.exports=e.create()},1214:function(n,t,i){var e=i(9587);t.description=function(n){var t=!!n.name?'"'+n.name+'" ':"",i=function(n){return e.map(n.weightDistributions,"entityId")}(n).join(", ");return t+"(id "+n.id+", campaigns: "+i+")"}},9211:function(n,t,i){var e=i(9587),r=i(7547),o=i(1319),a=i(2339),u=i(2141),c=a.get("stores/global"),s=a.get("stores/session");t.recordLayerDecision=function(n,t,i){return u.dispatch(r.RECORD_LAYER_DECISION,{layerId:n,decision:i,decisionTicket:t,sessionId:s.getSessionId(),activationId:c.getActivationId(),timestamp:o.now(),revision:c.getRevision(),namespace:c.getNamespace(),pageId:t.pageId}),i},t.relatedAudienceIds=function(n){var t={},i=["and","or","not"];return e.each(n.experiments,(function(n){e.each(e.flattenDeep(n.audienceIds),(function(n){e.includes(i,n)||(t[n]=!0)}))})),e.keys(t)},t.getActivationTimeout=function(n){var t=n.activation;return t&&null!==t.timeout&&void 0!==t.timeout?t.timeout:2e3},t.description=function(n){return(n.name?'"'+n.name+'" ':"")+"("+n.id+")"},t.createSingle=function(n,t,i){return{id:n,policy:"single_experiment",holdback:0,experiments:[{id:t||"",variations:[{id:i||"",actions:[]}],audienceIds:[]}],integrationStringVersion:1}},t.createLayerState=function(n,t,i,e){return void 0===e&&(e=!1),{layerId:n,decision:{layerId:n,experimentId:t,variationId:i,isLayerHoldback:e||!1},decisionTicket:{audienceIds:[]}}},t.getIntegrationTypes=function(n){return e.keys(e.reduce(e.keys(n.integrationSettings),(function(n,t){return e.isNaN(Number(t))||(t="custom"),n[t]=1,n}),{}))}},1185:function(n,t,i){var e=i(9587);t.y=function(n,t){if(!t)return 0;for(var i=t.toString().split("."),r=n.toString().split("."),o=0;o<i.length;o++){if(e.isUndefined(r[o]))return-1;if(isNaN(Number(r[o]))){if(r[o]!==i[o])return-1}else{if(Number(r[o])<Number(i[o]))return-1;if(Number(r[o])>Number(i[o]))return 1}}return 0}},1973:function(n,t,i){var e=i(9587),r=i(2588),o=i(1364),a="or",u="not";var c={};function s(n,t){var i;if(e.isArray(n)){var u,s;n[0]in c?(u=n[0],s=n.slice(1)):(u=a,s=n),o.groupCollapsed('Condition / Applying operator "'+u+'" with args',r.stringify(s));try{i=c[u](s,t),o.debug("Condition / Result:",i)}finally{o.groupEnd()}return i}return i=t(n),o.debug("Condition / Evaluated:",r.stringify(n),":",i),i}c["and"]=function(n,t){for(var i,r,o=0;o<n.length;o++){if(!1===(i=s(n[o],t)))return!1;e.isUndefined(i)&&(r=!0)}if(!r)return!0},c[a]=function(n,t){for(var i,r=!1,o=0;o<n.length;o++){if(!0===(i=s(n[o],t)))return!0;e.isUndefined(i)&&(r=!0)}if(!r)return!1},c[u]=function(n,t){if(1!==n.length)return!1;var i=s(n[0],t);return e.isUndefined(i)?void 0:!i},n.exports={evaluate:s}},389:function(n,t,i){var e=i(9587),r=i(7584);function o(n){if((n=(n||"").toLowerCase())in c)return n;var t=e.keys(c);return e.find(t,(function(t){var i=c[t];return e.includes(i,n)}))||"unknown"}function a(n,t,i){return t||("unknown"===n?"unknown":i?"mobile":"desktop_laptop")}t.parseUA=function(n){var t=new r(n),i=t.getBrowser(),e=t.getOS(),c=t.getDevice(),f=(e.name||"unknown").toLowerCase(),l=(i.name||"unknown").toLowerCase(),d=u(c.type,l,f);return{browser:{id:o(i.name),version:i.version},platform:{name:f,version:e.version},device:{model:s[c.model]||"unknown",type:a(l,c.type,d),isMobile:d}}};var u=function(n,t,i){if(e.includes(["mobile","tablet"],n)||e.includes(["opera mini"],t))return!0;return!!e.includes(["android","blackberry","ios","windows phone"],i)},c={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"]},s={iPhone:"iphone",iPad:"ipad"}},2514:function(n,t,i){var e=i(9587);function r(){this.q={}}r.prototype.register=function(n,t){if(1!==arguments.length){if(this.q[n])throw new Error("Module already registered for: "+n);this.q[n]=t}else{var i=this;e.each(n,(function(n,t){i.register(t,n)}))}},r.prototype.get=function(n){return this.q[n]},r.prototype.getModuleKeys=function(){var n=this.q;return e.keys(n)},r.prototype.evaluate=function(n){var t=n.length,i=n.slice(0,t-1),r=n[t-1];if("function"!=typeof r)throw new Error("Evaluate must take a function as last element in array");var o=e.map(i,e.bind(this.get,this));return r.apply(null,o)},r.prototype.reset=function(){this.q={}},n.exports={create:function(){return new r}}},4777:function(n,t,i){var e=i(9587);function r(n,t,i){this.H=n,this.Y=t,this.K=0,this.$=!1,this.W={},e.extend(this,i),this.X={},this.initialize&&this.initialize()}r.prototype.J=function(n,t){var i=this.W[n];i&&"function"==typeof i&&i.call(this,t,n)},r.prototype.Z=function(){return e.cloneDeep(this.X)},r.prototype.on=function(n,t){this.W[n]=e.bind(t,this)},r.prototype.observe=function(n){return this.Y.nn(this.H,n)},r.prototype.emitChange=function(){this.$=!0,this.K++},r.prototype.hasChanges=function(){return this.$},r.prototype.resetChange=function(){this.$=!1},r.prototype.getStateId=function(){return this.K},r.prototype.tn=function(){this.reset&&"function"==typeof this.reset&&this.reset(),this.initialize()},n.exports=r},2609:function(n,t,i){var e=i(9587),r=i(4777);function o(n){n=n||{},this.en={},this.rn={},this.an=0,this.un=[],this.cn=[]}function a(n,t){return function(){var i=n.indexOf(t);-1!==i&&n.splice(i,1)}}o.prototype.registerStores=function(n){e.forOwn(n,e.bind((function(n,t){this.en[t]=new r(t,this,n)}),this))},o.prototype.getStore=function(n){return this.en[n]},o.prototype.dispatch=function(n,t){this.dispatchId++,e.each(this.un,e.bind((function(i){i.call(this,n,t)}),this)),e.forOwn(this.en,(function(i){i.J(n,t)})),e.each(this.cn,e.bind((function(i){i.call(this,n,t)}),this)),e.forOwn(this.en,e.bind((function(n,t){n.hasChanges()&&this.rn[t]&&(n.resetChange(),e.each(this.rn[t],(function(t){t(n)})))}),this))},o.prototype.reset=function(){this.rn={},e.forOwn(this.en,(function(n,t){n.tn()}))},o.prototype.getState=function(){var n={};return e.forOwn(this.en,(function(t,i){n[i]=t.Z()})),n},o.prototype.onPreAction=function(n){var t=this.un;return t.push(n),a(t,n)},o.prototype.onPostAction=function(n){var t=this.cn;return t.push(n),a(t,n)},o.prototype.nn=function(n,t){return this.rn[n]||(this.rn[n]=[]),this.rn[n].push(t),a(this.rn[n],t)},n.exports={create:function(n){return new o(n)}}},2588:function(n,t,i){var e=i(9587);function r(n){var t,i,r=[Array.prototype],o=[];e.each(r,(function(n){e.isUndefined(n.toJSON)||(o.push(n.toJSON),delete n.toJSON)}));try{t=n()}catch(a){i=a}finally{e.each(o,(function(n,t){r[t].toJSON=n}))}if(i)throw i;return t}t.stringify=function(){return r(e.bind((function(){return JSON.stringify.apply(null,this)}),arguments))},t.parse=JSON.parse},8201:function(n,t,i){var e=i(9587);t.hasMatch=function(n,t,i){var r=!e.isUndefined(i)&&null!==i,o=!e.isUndefined(n)&&null!==n;switch(t||(o?"exact":"exists")){case"exists":return r;case"exact":return r&&String(i)===n;case"substring":return r&&String(i).indexOf(n)>-1;case"regex":try{return!(!o||!r)&&new RegExp(n).test(String(i))}catch(f){}return!1;case"range":var a=n.split(":"),u=parseFloat(a[0]),c=parseFloat(a[1]),s=parseFloat(i);return s>=u&&s<=c;default:return!1}}},4222:function(n,t,i){n.exports=i(126)},6540:function(n,t,i){var e=i(9587),r=i(1364);function o(n,t){this.sn=n,this.fn=t}o.prototype.ln=function(n){return[this.fn,n].join("$$")},o.prototype.dn=function(n){return n.replace(this.fn+"$$","")},o.prototype.setItem=function(n,t){try{this.sn.setItem(this.ln(n),t)}catch(i){r.warn("Failed to save",n,"to localStorage:",i)}},o.prototype.removeItem=function(n){this.sn.removeItem(this.ln(n))},o.prototype.getItem=function(n){var t=null;try{t=this.sn.getItem(this.ln(n))}catch(i){}return t},o.prototype.keys=function(){var n=e.keys(this.sn);return e.map(e.filter(n,e.bind((function(n){return e.includes(n,this.fn)}),this)),e.bind(this.dn,this))},o.prototype.allKeys=function(){return e.keys(this.sn)},o.prototype.allValues=function(){return e.values(this.sn)},n.exports={create:function(n,t){return new o(n,t)},mockStorage:{keys:function(){},getItem:function(n){},removeItem:function(n){},setItem:function(n,t){}}}},9250:function(n,t,i){var e=i(9587),r=i(411),o=i(373),a=i(2588),u=i(5290).mM,c=i(1364),s=i(6388),f=i(2339).get("stores/pending_events"),l=o.StorageKeys.PENDING_EVENTS;t.persistPendingEvents=function(){try{var n=f.getEventsString();u.setItem(l,n),i(9851).setItem(l,n)}catch(t){c.warn("PendingEvents / Unable to set localStorage key, error was: ",t),r.emitInternalError(t)}},t.getPendingEvents=function(){try{return a.parse(u.getItem(l))}catch(n){return null}},t.retryPendingEvents=function(n){e.forOwn(n,(function(n,t){s.retryableRequest(n.data,t,n.retryCount)})),e.isEmpty(n)||c.log("Retried pending events: ",n)}},6386:function(n,t,i){var e=i(9587),r=i(7547),o=i(2339),a=i(373),u=i(497),c=i(2141);t.registerApiModule=function(n,t){e.isArray(t)&&(t=o.evaluate(t)),c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.apiModules,name:n,plugin:t})},t.registerDependency=function(n,t){o.get(n)||o.register(n,t)},t.registerVisitorProfileProvider=function(n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.visitorProfileProviders,name:n.provides,plugin:n})},t.registerViewProvider=function(n){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewProviders,name:n.provides,plugin:n})},t.registerAudienceMatcher=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.audienceMatchers,name:n,plugin:t})},t.registerViewMatcher=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewMatchers,name:n,plugin:t})},t.registerAnalyticsTracker=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.analyticsTrackers,name:n,plugin:t})},t.registerViewTagLocator=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewTagLocators,name:n,plugin:t})},t.registerAudiencePlugin=function(n){n.dependencies&&e.each(n.dependencies,(function(n,i){t.registerDependency(i,n)}));var i,r,a="vendor."+n.vendor;i=e.isString(n.provider)?o.get(n.provider)(n.vendor):e.isFunction(n.provider)?n.provider(n.vendor):e.cloneDeep(n.provider),t.registerVisitorProfileProvider(e.extend(i,{provides:a})),r=e.isString(n.matcher)?o.get(n.matcher):n.matcher;var u={fieldsNeeded:[a],match:function(n,t){return r(n[a],t)}};t.registerAudienceMatcher(a,u)},t.registerWidget=function(n){return e.isArray(n)&&(n=o.evaluate(n)),{showToken:u.on({filter:{type:"showWidget",name:n.widgetId},handler:n.showFn}),hideToken:u.on({filter:{type:"hideWidget",name:n.widgetId},handler:n.hideFn})}},t.registerChangeApplier=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.changeAppliers,name:n,plugin:t})},t.registerDecider=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.deciders,name:n,plugin:t})},t.registerEventImplementation=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.eventImplementations,name:n,plugin:t})},t.registerViewTrigger=function(n,t){c.dispatch(r.REGISTER_PLUGIN,{type:a.PluginTypes.viewTriggers,name:n,plugin:t})}},438:function(n,t,i){var e=i(9587),r=i(2339),o=":",a="holdback",u="treatment",c="",s=i(1364),f=i(1658);function l(n){return n.replace(/[^a-zA-Z0-9\.\~\!\*\(\)\']+/g,"_")}t.formatNamesAndIdsForAnalytics=function(n,t,i,o){var a={layer:n.name||c,experiment:t.name||c,variation:i.name||c};o&&(a=e.mapValues(a,l));var u,s=!n.integrationStringVersion||1===n.integrationStringVersion;if(a.experiment===c&&s)if(u=t.audienceIds,!e.isEmpty(u)&&e.includes(["and","or","not"],u[0]))a.experiment="Exp";else{var f=r.get("stores/audience_data");a.experiment=function(n,t){return e.isEmpty(t)?"everyone_else":e.reduce(t,(function(t,i){var e=n.get(i);return e?t+l(e.name?e.name:e.id)+",":t}),"").slice(0,-1)}(f,t.audienceIds)}return{names:a,idStrings:{layer:"("+l(n.id)+")",experiment:"("+l(t.id)+")",variation:"("+l(i.id)+")"}}},t.combineAndTruncateIdAndName=function(n,t,i){var e=i-t.length;if(e<0&&(s.warn("maxLength must be at least long enough to fit the entity ID, which is length"+t.length+". Defaulting to only use entity ID as name."),n=c),n===c)return t;if(n.length>e){var r=Math.min(n.length,e);return(n=n.substring(0,r))+t}return n+" "+t},t.generateAnalyticsString=function(n,i,r,c,s,l){return n.integrationStringVersion&&2===n.integrationStringVersion?function(n,i,r,u,c,s){if(f.isSingleExperimentPolicy(n.policy)&&u)return;var l=!f.isSingleExperimentPolicy(n.policy)&&u,d=t.formatNamesAndIdsForAnalytics(n,i,r,s),h=[d.names.experiment,d.names.variation],v=[d.idStrings.experiment,d.idStrings.variation];f.isSingleExperimentPolicy(n.policy)||(h.unshift(d.names.layer),v.unshift(d.idStrings.layer));var p=e.reduce(v,(function(n,t){return n+t.length}),0),g=h.length-1+(l?1:0),m=p+g*o.length;if(l&&(m+=a.length),m>c)throw new Error("The analytics string size is too low to send the entity IDs.");for(var _=c-m,w=h.length,y=[],b=h.length-1;b>=0;b--){var E=h[b],I=Math.min(E.length,Math.floor(_/w));_-=I,w--,y.unshift(E.substring(0,I))}var A=e.map(y,(function(n,t){return n+v[t]}));return l&&A.push(a),A.join(o)}(n,i,r,c,s,l):function(n,i,r,c,s,l){var d=c?a:u,h=3*o.length,v=t.formatNamesAndIdsForAnalytics(n,i,r,l),p=v.names,g=v.idStrings,m=e.reduce(g,(function(n,t){return n+t.length}),0);if(m+h+d.length>s)throw new Error("The analytics string size is too low to send the campaign, experiment, and variation IDs.");var _=s-m-h-d.length,w={};w.variation=Math.min(p.variation.length,Math.floor(_/3)),_-=w.variation,w.experiment=Math.min(p.experiment.length,Math.floor(_/2)),_-=w.experiment,w.layer=_;var y={};e.each(p,(function(n,t){y[t]=n.substring(0,w[t])}));var b=[];return f.isSingleExperimentPolicy(n.policy)||b.push(y.layer+g.layer),(b=b.concat([y.experiment+g.experiment,y.variation+g.variation,d])).join(o)}(n,i,r,c,s,l)}},2723:function(n,t,i){var e=i(9587);n.exports=function(n,t){n=function(n){var t=n.split("?");if(t[1]){var i=t[1].split("#"),r=i[0],a=i[1],u=r.split("&"),c=[];return e.each(u,(function(n){0!==n.indexOf(o)&&c.push(n)})),t[1]="",c.length>0&&(t[1]="?"+c.join("&")),a&&(t[1]+="#"+a),t.join("")}return n}(n);var i=t.value;switch(t.match){case"exact":return(n=c(n))===c(i);case"regex":try{return Boolean(n.match(i))}catch(r){}return!1;case"simple":return(n=u(n))===(i=u(i));case"substring":return n=c(n,!0),i=c(i,!0),-1!==n.indexOf(i);default:return!1}};var r=["www."],o="optimizely_",a=["https?://.*?.?optimizelyedit.(com|test)/","https?://.*.?optimizelypreview.(com|test)/","https?://(edit|preview)(-hrd|-devel)?.optimizely.(com|test)/","https?://.*?.?optimizelyedit(-hrd)?.appspot.com/","https?://"];function u(n){return c(function(n){var t=n.indexOf("?");return-1!==t&&(n=n.substring(0,t)),-1!==(t=n.indexOf("#"))&&(n=n.substring(0,t)),n}(n))}function c(n,t){n=(n=n.replace("/?","?")).toLowerCase().replace(/[/&?]+$/,"");var i=a.slice(0);t||(i=i.concat(r));for(var e=i.length,o=0;o<e;o++){var u=i[o],c=new RegExp("^"+u);n=n.replace(c,"")}return n}},8087:function(n,t,i){var e=i(9587),r=i(7098).getFieldValue,o=i(8201);n.exports=function(n,t){var i=r(n,t.name.split("."));return e.isArray(i)?e.some(i,e.partial(o.hasMatch,t.value,t.match)):o.hasMatch(t.value,t.match,i)}},8944:function(n,t,i){var e=i(1056),r=i(1317),o="cdn3";t.getIP=function(){return e.makeAsyncRequest(o,a).then((function(n){return n.ip}))},t.getIPDerivedGeolocation=function(){return e.makeAsyncRequest(o,a).then((function(n){return n.location}))};function a(){r.addScriptAsync("//cdn3.optimizely.com/js/geo4.js")}},7093:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338),a=i(1364);n.exports={initialize:function(){this.X={actions:{},actionState:{}},this.on(r.DATA_LOADED,this.hn),this.on(r.ACTION_EXECUTED,this.vn),this.on(r.SET_CHANGE_APPLIER,this.pn),this.on(r.REMOVE_ACTION_STATE,this.gn)},hn:function(n){var t=this;e.isEmpty(n.data.layers)||(e.each(n.data.layers,(function(n){var i;if(n.changes){var r="layerId:"+n.id;i={id:r,layerId:n.id,changeSet:n.changes,type:"layer"},o.deepFreeze(i),t.X.actions[r]=i}e.each(n.experiments,(function(r){if(r.changes){var a="experimentId:"+r.id;i={id:a,layerId:n.id,experimentId:r.id,changeSet:r.changes,type:"experiment"},o.deepFreeze(i),t.X.actions[a]=i}e.each(r.variations,(function(a){e.each(a.actions,(function(e){var u=e.pageId||e.viewId,c=r.id+":"+a.id+":"+u;i={id:c,layerId:n.id,experimentId:r.id,variationId:a.id,pageId:u,changeSet:e.changes,type:"variation"},o.deepFreeze(i),t.X.actions[c]=i}))}))}))})),this.emitChange())},vn:function(n){var t=n.actionId;e.isUndefined(t)||this.X.actionState[t]||(this.X.actionState[t]={})},pn:function(n){var t=n.actionId,i=n.changeId;this.X.actionState[t]?this.X.actionState[t][i]=n.changeApplier:a.warn("Action Data / Attempted to set changeApplier for inactive action: ",t)},gn:function(n){delete this.X.actionState[n.actionId]},get:function(n){return o.safeReference(this.X.actions[n])},getActionState:function(n){return o.safeReference(this.X.actionState[n])},getByChangeId:function(n){return e.find(this.X.actions,{changeSet:[{id:n}]})},getAllActionIdsByPageId:function(n){return e.map(e.filter(this.X.actions,{pageId:n}),"id")},getChangeApplier:function(n,t){var i=this.X.actionState[t];if(i)return i[n]},getExperimentVariationActions:function(n,t){return o.safeReference(e.filter(this.X.actions,{experimentId:n,variationId:t}))},getLayerActions:function(n){return o.safeReference(e.filter(this.X.actions,{id:"layerId:"+n}))},getExperimentActions:function(n){return o.safeReference(e.filter(this.X.actions,{id:"experimentId:"+n}))},getAll:function(){return o.safeReference(e.values(this.X.actions))}}},2800:function(n,t,i){var e=i(7547);n.exports={initialize:function(){this.X={},this.on(e.REGISTER_ASYNC_DEFERRED,this.mn),this.on(e.RESOLVE_DEFERRED,this._n),this.on(e.REJECT_DEFERRED,this.wn)},getRequest:function(n){return this.X[n]},getPromise:function(n){var t=this.getRequest(n);if(t)return t.promise},mn:function(n){this.X[n.source]={promise:n.promise,resolver:n.resolver,rejecter:n.rejecter}},_n:function(n){var t=this.getRequest(n.source);if(!t)throw new Error("No request registered for source: "+n.source);t.resolver(n.resolveWith)},wn:function(n){var t=this.getRequest(n.source);if(!t)throw new Error("No request registered for source: "+n.source);if(!t.rejecter)throw new Error("No rejecter registered for source: "+n.source);t.rejecter(n.rejectWith)}}},605:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338);function a(n,t){return t||(t={}),n?(e.each(n,(function(n){if(!e.isString(n)){if(e.isObject(n)){var i=n.type,r=n.name||"_";t[i]||(t[i]={}),t[i][r]=!0}e.isArray(n)&&a(n,t)}})),t):t}n.exports={initialize:function(){this.X={audiences:{},featuresNeeded:{}},this.on(r.DATA_LOADED,this.hn)},hn:function(n){e.isEmpty(n.data.audiences)||(e.each(n.data.audiences,e.bind((function(n){o.deepFreeze(n),e.merge(this.X.featuresNeeded,a(n.conditions)),this.X.audiences[n.id]=n}),this)),this.emitChange())},getAll:function(){return o.safeReference(e.values(this.X.audiences))},getFeaturesNeeded:function(n){return o.safeReference(this.X.featuresNeeded[n]||{})},getAudiencesMap:function(){return o.safeReference(this.X.audiences)},get:function(n){return o.safeReference(this.X.audiences[n])},getAudienceName:function(n){return e.find(e.values(this.X.audiences),{id:n}).name||"Aud "+n}}},5315:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338);n.exports={initialize:function(){this.X={},this.on(r.ADD_CHANGE,this.yn),this.on(r.DATA_LOADED,this.hn)},getChange:function(n){return this.X[n]},hn:function(n){e.isEmpty(n.data.changes)||e.each(n.data.changes,e.bind(this.yn,this))},yn:function(n){o.deepFreeze(n),this.X[n.id]=n,this.emitChange()}}},8989:function(n,t,i){var e=i(9587),r=i(7547),o=i(373);n.exports={initialize:function(){this.X={},e.each(o.Lifecycle,e.bind((function(n){this.X[n]=[]}),this)),this.on(r.ADD_CLEANUP_FN,this.bn),this.on(r.CLEAR_CLEANUP_FN,this.En)},getCleanupFns:function(n){return e.cloneDeep(this.X[n])},bn:function(n){this.X[n.lifecycle].push(n.cleanupFn),this.emitChange()},En:function(n){var t=this.X[n.lifecycle];if(n.cleanupFn){var i=t.indexOf(n.cleanupFn);i>-1&&(t.splice(i,1),this.emitChange())}else this.X[n.lifecycle]=[],this.emitChange()}}},7073:function(n,t,i){var e=i(7547),r=i(7537);n.exports={initialize:function(){this.X={name:r.NAME,version:r.VERSION},this.on(e.SET_CLIENT_NAME,this.In),this.on(e.SET_CLIENT_VERSION,this.An)},getClientName:function(){return this.X.name},getClientVersion:function(){return this.X.version},In:function(n){n&&(this.X.name=n),this.emitChange()},An:function(n){n&&(this.X.version=n),this.emitChange()}}},4131:function(n,t,i){var e=i(7547);n.exports={initialize:function(){this.X={currentDomain:null,defaultAgeSeconds:15552e3,autoRefresh:true},this.on(e.SET_COOKIE_DOMAIN,this.Tn),this.on(e.SET_COOKIE_AGE,this.Sn),this.on(e.SET_COOKIE_AUTO_REFRESH,this.kn)},getCurrentDomain:function(){return this.X.currentDomain},getDefaultAgeInSeconds:function(){return this.X.defaultAgeSeconds},getAutoRefresh:function(){return this.X.autoRefresh},Tn:function(n){this.X.currentDomain=n,this.emitChange()},Sn:function(n){this.X.defaultAgeSeconds=n,this.emitChange()},kn:function(n){this.X.autoRefresh=n,this.emitChange()}}},5843:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338);n.exports={initialize:function(){this.X={},this.on(r.DATA_LOADED,this.hn)},hn:function(n){e.isEmpty(n.data.dimensions)||(e.each(n.data.dimensions,e.bind((function(n){o.deepFreeze(n),this.X[n.id]=n}),this)),this.emitChange())},getAll:function(){return o.safeReference(e.values(this.X))},getById:function(n){return o.safeReference(this.X[n])},getByApiName:function(n){return o.safeReference(e.find(e.values(this.X),{apiName:n}))}}},8718:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.X={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},this.on(r.LOAD_DIRECTIVE,this.Rn)},getAll:function(){return e.cloneDeep(this.X)},conflictInObservingChanges:function(){return!1},isDisabled:function(){return this.X.disabled},isEditor:function(){return this.X.isEditor},clientHasAlreadyInitialized:function(){return this.X.alreadyInitialized},getForceAudienceIds:function(){return this.X.forceAudienceIds},getForceVariationIds:function(){return this.X.forceVariationIds},getPreviewLayerIds:function(){return this.X.previewLayerIds},getProjectToken:function(){return this.X.projectToken},getForceTracking:function(){return this.X.forceTracking},shouldActivate:function(){return!this.X.isEditor&&!this.isDisabled()},shouldBootstrapDataForPreview:function(){return this.X.isPreview},shouldBootstrapDataForEditor:function(){return this.X.isEditor},shouldInitialize:function(){return!(this.shouldLoadPreview()||this.isDisabled()||this.getProjectToken())},shouldLoadPreview:function(){return!(this.X.isPreview||this.X.isLegacyPreview||!this.getProjectToken()||this.X.isEditor)},shouldBailForDesktopApp:function(){return!this.X.isEditor&&this.X.isRunningInDesktopApp},shouldLoadInnie:function(){return!this.X.isSlave&&!this.X.isEditor&&this.X.isRunningInV2Editor},shouldObserveChangesIndefinitely:function(){return!1},shouldObserveChangesUntilTimeout:function(){return!this.shouldObserveChangesIndefinitely()},shouldOptOut:function(){return this.X.shouldOptOut},shouldSendTrackingData:function(){return!this.X.trackingDisabled&&(!!this.X.forceTracking||!this.X.isPreview&&e.isEmpty(this.getForceVariationIds())&&e.isEmpty(this.getForceAudienceIds()))},isSlave:function(){return this.X.isSlave},isRunningInDesktopApp:function(){return this.X.isRunningInDesktopApp},isRunningInV2Editor:function(){return this.X.isRunningInV2Editor},Rn:function(n){e.extend(this.X,n),this.emitChange()}}},679:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338);n.exports={initialize:function(){this.X={},this.on(r.DATA_LOADED,this.hn)},getAll:function(){return o.safeReference(e.values(this.X))},getEventsMap:function(){return o.safeReference(this.X)},get:function(n){return o.safeReference(this.X[n])},getByApiName:function(n){return o.safeReference(e.find(e.values(this.X),{apiName:n}))},getByPageId:function(n){return o.safeReference(e.filter(this.X,{pageId:n}))},hn:function(n){e.isEmpty(n.data.events)||(e.each(n.data.events,e.bind((function(n){n.pageId||(n.pageId=n.viewId),o.deepFreeze(n),this.X[n.id]=n}),this)),this.emitChange())}}},2350:function(n,t,i){var e=i(9587),r=i(7547);function o(n){var t=[];return n&&e.isObject(n)?(n.type&&t.push(n.type),t.push("|"),n.type&&n.name&&t.push(n.name),t.join("")):"|"}n.exports={initialize:function(){this.X={handlers:{}},this.on(r.ADD_EMITTER_HANDLER,this.Nn),this.on(r.REMOVE_EMITTER_HANDLER,this.Dn)},getHandlers:function(n,t){var i=[null,{type:n.type},{type:n.type,name:n.name}],r=[];return e.each(i,e.bind((function(n){var t=o(n),i=this.X.handlers[t];i&&(r=r.concat(i))}),this)),t&&(r=e.filter(r,(function(n){return!n.publicOnly}))),r},Nn:function(n){var t=o(n.filter);this.X.handlers[t]||(this.X.handlers[t]=[]),this.X.handlers[t].push({handler:n.handler,token:n.token,publicOnly:!!n.publicOnly,emitErrors:!!n.emitErrors}),this.emitChange()},Dn:function(n){var t=!1,i=n.token;e.forOwn(this.X.handlers,e.bind((function(n,r){var o=e.filter(n,(function(n){return n.token!==i}));o.length!==n.length&&(t=!0,this.X.handlers[r]=o)}),this)),t&&this.emitChange()}}},8554:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338);n.exports={initialize:function(){this.X={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},this.on(r.DATA_LOADED,this.Cn),this.on(r.ACTIVATE,this.On),this.on(r.RECORD_GLOBAL_DECISION,this.xn),this.on(r.SET_DOMCONTENTLOADED,this.Pn),this.on(r.SET_GA4_USER_ID,this.Mn)},getRevision:function(){return this.X.revision},getGlobalHoldbackThreshold:function(){return this.X.holdback},getProjectId:function(){return this.X.projectId},getSnippetId:function(){return this.X.snippetId},getAccountId:function(){return this.X.accountId},getNamespace:function(){return this.X.namespace},getActivationId:function(){return this.X.activationId},getActivationTimestamp:function(){return this.X.activationTimestamp},getAnonymizeIP:function(){return this.X.anonymizeIP},isGlobalHoldback:function(){return!!this.X.isGlobalHoldback},getListTargetingKeys:function(){return this.X.listTargetingKeys.slice()},getDCPServiceId:function(){return this.X.dcpServiceId},getDCPKeyfieldLocators:function(){return this.X.dcpKeyfieldLocators},getRecommenderServices:function(){return this.X.recommenderServices},getProjectJS:function(){return this.X.projectJS},getPlugins:function(){return this.X.plugins},getExperimental:function(){return o.safeReference(this.X.experimental)},getGA4UserId:function(){return this.X.ga4UserId},domContentLoadedHasFired:function(){return this.X.domContentLoaded},On:function(n){this.X.activationId=n.activationId,this.X.activationTimestamp=n.activationTimestamp,this.X.isGlobalHoldback=null},xn:function(n){var t=n.isGlobalHoldback;if(null!==this.X.isGlobalHoldback&&this.X.isGlobalHoldback!==t)throw new Error("Attempted to change already set global holdback!");this.X.isGlobalHoldback=t,this.emitChange()},Mn:function(n){var t=n.ga4UserId;if(!t)throw new Error('Argument "payload.ga4UserId" is missing');this.X.ga4UserId=t,this.emitChange()},Cn:function(n){var t=e.pick(n.data,["holdback","accountId","projectId","snippetId","namespace","revision","listTargetingKeys","dcpServiceId","dcpKeyfieldLocators","recommenderServices","anonymizeIP","plugins","projectJS","experimental","ga4UserId"]);if(0!==e.keys(t).length){e.extend(this.X,{listTargetingKeys:[],dcpServiceId:null,dcpKeyfieldLocators:[]},t),this.emitChange()}},Pn:function(){this.X.domContentLoaded=!0,this.emitChange()}}},7277:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338);n.exports={initialize:function(){this.X={},this.on(r.DATA_LOADED,this.hn)},hn:function(n){e.isEmpty(n.data.groups)||(e.each(n.data.groups,e.bind((function(n){o.deepFreeze(n),this.X[n.id]=n}),this)),this.emitChange())},getAll:function(){return o.safeReference(e.values(this.X))},getGroupsMap:function(){return o.safeReference(this.X)},get:function(n){return o.safeReference(this.X[n])}}},4070:function(n,t,i){var e=i(9587),r=i(7547),o=i(4465);n.exports={initialize:function(){this.X={originalPushState:null,originalReplaceState:null},this.on(r.ENSURE_ORIGINAL_PUSHSTATE,this.Ln),this.on(r.ENSURE_ORIGINAL_REPLACESTATE,this.Vn)},getOriginalPushState:function(){return this.X.originalPushState},getOriginalReplaceState:function(){return this.X.originalReplaceState},Ln:function(){this.X.originalPushState||(this.X.originalPushState=e.bind(o.getGlobal("history").pushState,o.getGlobal("history")))},Vn:function(){this.X.originalReplaceState||(this.X.originalReplaceState=e.bind(o.getGlobal("history").replaceState,o.getGlobal("history")))}}},4824:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.X={},this.on(r.DATA_LOADED,this.hn),this.on(r.SET_INTEGRATION_SETTINGS,this.Un)},hn:function(n){e.isEmpty(n.data.integrationSettings)||(e.each(n.data.integrationSettings,e.bind((function(n){this.X[n.id]=n}),this)),this.emitChange())},Un:function(n){var t=this.X[n.id];t?e.extend(t,n):this.X[n.id]=n},getAll:function(){return e.cloneDeep(e.values(this.X))},get:function(n){return e.cloneDeep(this.X[n])},getReference:function(n){return this.X[n]}}},8901:function(n,t,i){var e=i(9587),r=i(7547),o=i(1364),a="*";n.exports={initialize:function(){this.X={},this.on(r.LOAD_PERSISTED_LAYER_STATES,this.Fn),this.on(r.RECORD_LAYER_DECISION,this.zn),this.on(r.RECORD_LAYER_DECISION_EVENT_ID,this.Gn)},getLayerState:function(n,t){if(this.X[n]){var i=this.X[n];if(e.keys(i).length>1&&!t)throw new Error("View Id must be specified when more than one layerState for layer.");return t?e.cloneDeep(e.find(i,{pageId:t})):e.cloneDeep(i["*"])}},getLayerStates:function(n){var t=[];for(var i in this.X)e.forEach(this.X[i],(function(i){(e.isUndefined(n)||i.namespace===n)&&t.push(e.cloneDeep(i))}));return t},getLayerStatesForAnalytics:function(){var n=[];for(var t in this.X)e.forEach(this.X[t],(function(t){n.push(e.pick(t,["layerId","decision","decisionEventId"]))}));return n},Fn:function(n){n.merge||(this.X={}),e.each(n.layerStates,e.bind((function(n){var t=n.layerId;n.pageId||(n.pageId=n.viewId);var i=n.pageId||a,r=this.X[t];if(e.isUndefined(r))this.X[t]={},this.X[t][i]=n;else{var o=r[i];(!o||n.decisionTimestamp>(o.decisionTimestamp||0))&&(this.X[t][i]=n)}}),this)),this.emitChange()},zn:function(n){var t={layerId:n.layerId,revision:n.revision,namespace:n.namespace,pageId:n.pageId,decisionTicket:n.decisionTicket,decision:n.decision,decisionActivationId:n.activationId,decisionTimestamp:n.timestamp,decisionEventId:null},i=this.X[n.layerId]||{};n.pageId?(delete i["*"],i[n.pageId]=t):(i={})["*"]=t,this.X[n.layerId]=i,this.emitChange()},Gn:function(n){var t=n.layerId,i=n.pageId||a;this.X[t]?this.X[t][i]?(this.X[t][i].decisionEventId=n.decisionId,this.emitChange()):o.warn("Not recording decision event: Layer state not found for view",i):o.warn("Not recording decision event: Campaign not registered",t)}}},7071:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338),a=i(1658);n.exports={initialize:function(){this.X={layers:{},experiments:{},variations:{}},this.on(r.DATA_LOADED,this.hn)},hn:function(n){if(!e.isEmpty(n.data.layers)){var t=this;e.each(n.data.layers,(function(n){e.each(n.experiments,(function(i){n.pageIds||(n.pageIds=n.viewIds),i.campaignName||a.isSingleExperimentPolicy(n.policy)?a.isSingleExperimentPolicy(n.policy)&&n.groupId&&(i.groupId=n.groupId):i.campaignName=n.name,e.each(i.variations,(function(n){e.each(n.actions,(function(n){n.pageId||(n.pageId=n.viewId)})),t.X.variations[n.id]=n})),t.X.experiments[i.id]=i})),o.deepFreeze(n),t.X.layers[n.id]=n})),this.emitChange()}},getAll:function(){return o.safeReference(e.values(this.X.layers))},getCampaignsMap:function(){return o.safeReference(this.X.layers)},getExperimentsMap:function(){return o.safeReference(this.X.experiments)},getVariationsMap:function(){return o.safeReference(this.X.variations)},getCount:function(){return e.keys(this.X.layers).length},getAllByPageIds:function(n){return o.safeReference(e.filter(this.X.layers,(function(t){return e.some(n,e.partial(e.includes,t.pageIds))})))},get:function(n){return o.safeReference(this.X.layers[n])},getLayerByExperimentId:function(n){var t=e.find(this.X.layers,(function(t){return e.find(t.experiments,{id:n})}));return o.safeReference(t)},getExperimentByVariationId:function(n){var t;return e.some(this.X.layers,(function(i){return e.some(i.experiments,(function(i){return e.find(i.variations,{id:n})&&(t=i),t})),t})),o.safeReference(t)}}},6700:function(n,t,i){var e=i(7547);n.exports={initialize:function(){this.X={logs:[]},this.on(e.LOG,this.jn)},getLogs:function(){return this.X.logs},jn:function(n){this.X.logs.push(n),this.emitChange()},Z:function(){return this.X.logs.slice()}}},7033:function(n,t,i){var e=i(7547),r=i(9338);n.exports={initialize:function(){this.X={data:null,hasTracked:null},this.on(e.LOAD_REDIRECT_DATA,this.Bn),this.on(e.REGISTER_TRACKED_REDIRECT_DATA,this.qn)},get:function(){return r.safeReference(this.X.data)},hasTracked:function(){return this.X.hasTracked},Bn:function(n){r.deepFreeze(n),this.X.data=n,this.X.hasTracked=!1,this.emitChange()},qn:function(){this.X.hasTracked=!0}}},5464:function(n,t,i){var e=i(9587),r=i(7547),o=i(2588);n.exports={initialize:function(){this.X={},this.on(r.SET_PENDING_EVENT,this.Hn),this.on(r.REMOVE_PENDING_EVENT,this.Yn),this.on(r.LOAD_PENDING_EVENTS,this.Kn)},getEvents:function(){return this.X},getEventsString:function(){return o.stringify(this.X)},Hn:function(n){e.keys(this.X).length>=1e3&&this.$n();var t=n.id,i=n.retryCount;this.X[t]&&this.X[t].retryCount===i||(this.X[t]={id:t,timeStamp:n.timeStamp,data:n.data,retryCount:i},this.emitChange())},Yn:function(n){delete this.X[n.id],this.emitChange()},Kn:function(n){this.X=n.events,this.$n(),this.emitChange()},$n:function(){for(var n=e.sortBy(this.X,"timeStamp"),t=0;t<=n.length-1e3;t++)delete this.X[n[t].id];this.emitChange()}}},7056:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.X={layerId:null},this.on(r.ANNOUNCE_PENDING_REDIRECT,this.Bn)},isExpectingRedirect:function(){return e.isString(this.X.layerId)},getLayerId:function(){return this.X.layerId},Bn:function(n){this.isExpectingRedirect()||(this.X.layerId=n.layerId,this.emitChange())}}},8864:function(n,t,i){var e=i(9587),r=i(7547),o=i(373);n.exports={initialize:function(){this.X={},this.X[o.PerformanceData.performance_marks]={},this.on(r.SET_PERFORMANCE_MARKS_DATA,this.Wn)},Wn:function(n){e.isUndefined(this.X[o.PerformanceData.performance_marks][n.name])&&(this.X[o.PerformanceData.performance_marks][n.name]=[]),this.X[o.PerformanceData.performance_marks][n.name].push(n.data),this.emitChange()},getMarks:function(){return e.mapValues(this.X[o.PerformanceData.performance_marks],(function(n){return e.map(n,(function(n){return[n.startTime,n.duration]}))}))},getDurationsFor:function(n){return e.reduce(n,e.bind((function(n,t){var i=this.X[o.PerformanceData.performance_marks][t];return i&&(n[t]=Math.round(e.reduce(i,(function(n,t){return n+t.duration}),0))),n}),this),{})}}},6095:function(n,t,i){var e=i(9587),r=i(7547),o=i(373),a=i(1364);n.exports={initialize:function(){this.X=e.mapValues(o.PluginTypes,(function(){return{}})),this.on(r.REGISTER_PLUGIN,this.Xn)},Xn:function(n){var t=n.type,i=n.name,e=n.plugin;if(!t||!i)throw new Error("Missing information needed to register plugins: "+t+":"+i);if(!this.X[t])throw new Error("Invalid plugin type specified: "+t);this.X[t][i]=e,a.debug("Plugin Store: Registering Plugin :",n)},getAllPlugins:function(n){if(!n)return this.X;if(this.X[n])return this.X[n];throw new Error("Invalid plugin type: "+n)},getPlugin:function(n,t){if(!t||!n)throw new Error("Missing plugin parameters");return this.getAllPlugins(n)[t]||null}}},3559:function(n,t,i){var e=i(9587),r=i(7547),o=i(7098);n.exports={initialize:function(){this.X={},this.on(r.SET_VISITOR_ATTRIBUTE_PENDING,this.Jn)},getPendingAttributeValue:function(n){return n=e.isArray(n)?n.concat("pending"):[n,"pending"],o.getFieldValue(this.X,n)},Jn:function(n){o.setFieldValue(this.X,n.key,{pending:n.pending}),this.emitChange()}}},6944:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.X={inRumSample:!1,id:null,src:null,RumHost:null,data:{extras:{}},apis:{},DOMObservation:{},featuresNeeded:{}},this.on(r.SET_RUM_DATA,this.Qn),this.on(r.RECORD_API_USAGE,this.Zn),this.on(r.INITIALIZE_CHANGE_METRICS,this.nt),this.on(r.RECORD_ACTIVATION_TYPE_USAGE,this.tt),this.on(r.RECORD_AUDIENCE_USAGE,this.it),this.on(r.RECORD_CHANGE_MACROTASK_RATE,this.et),this.on(r.RECORD_CHANGE_OVERHEATED,this.rt),this.on(r.RECORD_CHANGE_TYPE_USAGE,this.ot),this.on(r.RECORD_DOM_OBSERVATION_OCCURENCE,this.ut),this.on(r.RECORD_INTEGRATION_USAGE,this.ct),this.on(r.RECORD_LAYER_FEATURE_USAGE,this.st),this.on(r.RECORD_LAYER_POLICY_USAGE,this.ft),this.on(r.RECORD_VIEW_FEATURE_USAGE,this.dt),this.on(r.RECORD_VIEWS_INITIALLY_ACTIVATED_COUNT,this.ht),this.on(r.RECORD_VISITOR_ID_LOCATOR_USAGE,this.vt),this.on(r.RECORD_VISITOR_ID_ERROR,this._t),this.on(r.RECORD_STICKY_BUCKETING_FEATURE,this.wt)},Qn:function(n){e.merge(this.X,n),this.emitChange()},Zn:function(n){this.X.apis[n.methodName]||(this.X.apis[n.methodName]=0),this.X.apis[n.methodName]++,this.emitChange()},nt:function(){e.isUndefined(this.X.data.extras.changeMacrotaskRate)&&(this.X.data.extras.changeMacrotaskRate=0),e.isUndefined(this.X.data.extras.numOverheatedChanges)&&(this.X.data.extras.numOverheatedChanges=0)},et:function(n){e.isUndefined(this.X.data.extras.changeMacrotaskRate)&&(this.X.data.extras.changeMacrotaskRate=0),n.changeMacrotaskRate>this.X.data.extras.changeMacrotaskRate&&(this.X.data.extras.changeMacrotaskRate=n.changeMacrotaskRate),this.emitChange()},rt:function(){e.isUndefined(this.X.data.extras.numOverheatedChanges)&&(this.X.data.extras.numOverheatedChanges=0),this.X.data.extras.numOverheatedChanges++,this.emitChange()},ut:function(n){this.X.DOMObservation[n.counterName]||(this.X.DOMObservation[n.counterName]=0),this.X.DOMObservation[n.counterName]++,this.emitChange()},yt:function(n,t,i){e.isUndefined(this.X.featuresNeeded[n])&&(this.X.featuresNeeded[n]={});var r=this.X.featuresNeeded[n];e.each(t,(function(n){r[n]||(r[n]={}),r[n][i]||(r[n][i]=!0)}))},ct:function(n){this.yt("integrations",n.integrations,n.layerId)},ot:function(n){this.yt("changeTypes",n.changeTypes,n.layerId)},tt:function(n){this.yt("activationTypes",[n.activationType],n.entityId),this.emitChange()},dt:function(n){this.yt("viewFeatures",n.featuresUsed,n.entityId),this.emitChange()},st:function(n){this.yt("layerFeatures",[n.feature],n.entityId),this.emitChange()},ft:function(n){this.yt("policy",[n.policy],n.layerId),this.emitChange()},it:function(n){this.yt("audiences",n.audienceTypes,n.layerId),this.emitChange()},ht:function(n){this.X.data.extras.viewsInitiallyActivatedCount=n.viewsInitiallyActivatedCount,this.emitChange()},vt:function(n){this.yt("visitorIdLocatorType",[n.visitorIdLocatorType],n.entityId),this.emitChange()},_t:function(n){this.X.data.extras.errorCustomVisitorId=n.isError,this.emitChange()},wt:function(n){this.yt("stickyBucketing",[n.feature],n.id)},getSampleRum:function(){return this.X.inRumSample},getRumId:function(){return this.X.id},getRumHost:function(){return this.X.RumHost},getApiData:function(){return this.X.apis},getDOMObservationData:function(){return this.X.DOMObservation},getRumData:function(){return e.cloneDeep(this.X.data)},getScriptSrc:function(){return this.X.src},getFeaturesNeededData:function(){var n=this.X.featuresNeeded,t={};return e.forOwn(n,(function(n,i){var r=e.keys(n);e.isEmpty(r)||(t[i]={}),e.forEach(r,(function(r){t[i][r]=e.keys(n[r]).length}))})),t}}},3083:function(n,t,i){var e=i(7547);n.exports={initialize:function(){this.X={initialized:!1,natives:{}},this.on(e.SANDBOXED_FUNCTIONS_ADDED,this.bt)},bt:function(n){if(!n.sandboxedFunctions)throw new Error("No sandboxedFunctions found in payload");this.X.natives=n.sandboxedFunctions,this.X.initialized=!0,this.emitChange()},getAll:function(){return this.X.natives},get:function(n){if(!n)throw new Error("Missing name parameter");return this.X.natives[n]||null},isInitialized:function(){return this.X.initialized}}},4127:function(n,t,i){var e=i(9587),r=i(7547),o=i(1319),a=i(7435);n.exports={initialize:function(){this.X={lastSessionTimestamp:0,sessionId:null},this.on(r.REFRESH_SESSION,this.Et),this.on(r.LOAD_SESSION_STATE,this.It)},getState:function(){return e.cloneDeep(this.X)},getSessionId:function(){return this.X.sessionId},It:function(n){this.X.sessionId=n.sessionId,this.X.lastSessionTimestamp=n.lastSessionTimestamp,this.emitChange()},Et:function(){var n=o.now(),t=this.X.lastSessionTimestamp;(!this.X.sessionId||n-t>18e5)&&(this.X.sessionId=a.generate()),this.X.lastSessionTimestamp=n,this.emitChange()}}},374:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.At(),this.on(r.FINALIZE_BATCH_SNAPSHOT,this.Tt),this.on(r.REGISTER_PREVIOUS_BATCH,this.St),this.on(r.REGISTER_TRACKER_VISITOR,this.kt),this.on(r.REGISTER_TRACKER_EVENT,this.Rt),this.on(r.REGISTER_TRACKER_DECISION,this.Nt),this.on(r.RESET_TRACKER_EVENTS,this.Dt),this.on(r.RESET_TRACKER_STORE,this.At),this.on(r.RESET_TRACKER_PREVIOUS_BATCHES,this.Ct),this.on(r.SET_TRACKER_POLLING,this.Ot),this.on(r.SET_TRACKER_BATCHING,this.xt),this.on(r.SET_TRACKER_SEND_EVENTS,this.Pt),this.on(r.SET_TRACKER_PERSISTABLE_STATE,this.Mt),this.on(r.SET_TRACKER_DIRTY,this.Lt),this.on(r.UPDATE_TRACKER_VISITOR_ATTRIBUTES,this.Vt)},getPersistableState:function(){return this.X.isDirty?this.hasEventsToSend()||this.hasPreviousBatchesToSend()?{data:this.X.data,decisions:this.X.decisions,decisionEvents:this.X.decisionEvents,previousBatches:this.X.previousBatches}:{}:null},Mt:function(n){e.isEmpty(this.X.data)||e.isEmpty(n.data)||(this.Tt(),this.X.previousBatches.push(this.getEventBatch())),this.X.data=n.data||{},this.X.decisions=n.decisions||[],this.X.decisionEvents=n.decisionEvents||[],e.isEmpty(this.X.previousBatches)||e.isEmpty(n.previousBatches)?this.X.previousBatches=n.previousBatches||[]:this.X.previousBatches=this.X.previousBatches.concat(n.previousBatches),this.emitChange()},Lt:function(n){this.X.isDirty=n,this.emitChange()},Rt:function(n){var t=this.Ut();(e.isEmpty(t.snapshots)||!e.isEmpty(this.X.decisionEvents))&&this.Ft(),this.zt().events.push(n.event),this.X.decisions=n.decisions,this.Lt(!0)},Nt:function(n){this.X.decisionEvents.push(n.decisionEvent),this.X.decisions=n.decisions,this.Lt(!0)},kt:function(n){e.isEmpty(this.X.data)?this.X.data=n.data:this.Tt(),this.X.data.visitors.push(n.visitor),this.X.decisions=n.decisions,this.X.decisionEvents=[],this.Lt(!0)},St:function(n){this.X.previousBatches.push(n),this.Lt(!0)},At:function(){this.X={polling:!1,shouldBatch:!0,data:{},decisions:[],decisionEvents:[],canSend:!1,isDirty:!1,previousBatches:[]},this.emitChange()},Dt:function(){var n=this.Ut();this.X.data.visitors=[n],n.snapshots=[],this.Lt(!0)},Ct:function(){this.X.previousBatches=[],this.Lt(!0)},Ot:function(n){this.X.polling=n,this.emitChange()},xt:function(n){this.X.shouldBatch=n,this.emitChange()},Pt:function(n){this.X.canSend=n,this.emitChange()},getEventBatch:function(){return e.cloneDeep(this.X.data)},getPreviousBatches:function(){return e.cloneDeep(this.X.previousBatches)},Gt:function(){return this.X.decisionEvents.slice()},jt:function(){this.X.decisionEvents=[]},Bt:function(){return this.X.decisions.slice()},isPolling:function(){return this.X.polling},shouldBatch:function(){return this.X.shouldBatch},zt:function(){return e.last(this.Ut().snapshots)},Ut:function(){return e.last(this.X.data.visitors)},Ft:function(){var n=this.Gt();this.Ut().snapshots.push({decisions:this.Bt(),events:n}),this.jt(),this.Lt(!0)},Tt:function(){this.X.decisionEvents.length>0&&this.Ft()},hasEventsToSend:function(){if(!e.isEmpty(this.X.decisionEvents))return!0;if(!e.isEmpty(this.X.data)&&e.some(this.X.data.visitors||[],(function(n){return n.snapshots.length>0})))return!0;return!1},hasPreviousBatchesToSend:function(){return!e.isEmpty(this.X.previousBatches)},canSend:function(){return this.X.canSend},Vt:function(n){var t=this.Ut();t&&(t.attributes=n.attributes)}}},8051:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.X={},this.on(r.SET_UA_DATA,this.hn)},hn:function(n){e.isEmpty(this.X)&&(this.X=n.data)},get:function(){return e.cloneDeep(this.X)}}},5966:function(n,t,i){var e=i(9587),r=i(7547),o=i(1364),a={globalTags:{},viewStates:{},shouldBatch:!1};n.exports={initialize:function(){this.X=e.cloneDeep(a),this.on(r.REGISTER_VIEWS,this.qt),this.on(r.SET_VIEW_ACTIVE_STATE,this.Ht),this.on(r.UPDATE_PARSED_VIEW_METADATA,this.Yt),this.on(r.UPDATE_USER_SUPPLIED_METADATA,this.Kt),this.on(r.TRACK_VIEW_ACTIVATED_EVENT,this.$t),this.on(r.SET_GLOBAL_TAGS,this.Wt),this.on(r.RESET_VIEW_STATES,this.Xt),this.on(r.SET_VIEW_BATCHING,this.xt)},getAll:function(){var n={};for(var t in this.X.viewStates)n[t]=this.getViewState(t);return n},shouldBatch:function(){return this.X.shouldBatch},getViewState:function(n){var t=e.cloneDeep(this.X.viewStates[n]),i=this.X.globalTags;return t.metadata=e.extend({},t.parsedMetadata,i,t.userSuppliedMetadata),t},getActiveViewTags:function(){var n=this.getActiveViewStates(),t=e.map(n,(function(n){return n.metadata})),i=[{}].concat(t);return e.extend.apply(e,i)},getActivationEventId:function(n){return this.X.viewStates[n]?this.X.viewStates[n].activationEventId:null},getActiveViewStates:function(){return e.reduce(this.X.viewStates,e.bind((function(n,t,i){return this.isViewActive(i)&&n.push(this.getViewState(i)),n}),this),[])},isViewActive:function(n){var t=this.X.viewStates[n];return t||o.warn("No Page registered with id",n),!!t.isActive},getGlobalTags:function(){return e.cloneDeep(this.X.globalTags)},Xt:function(){this.X.viewStates={},this.emitChange()},qt:function(n){e.each(n.views,e.bind((function(n){var t=n.id;this.X.viewStates[t]={id:t,isActive:e.isBoolean(n.isActive)?n.isActive:null,activatedTimestamp:null,activationEventId:null,parsedMetadata:{},userSuppliedMetadata:{}}}),this)),this.emitChange()},Ht:function(n){var t=n.view.id;if(!this.X.viewStates[t])throw new Error("No view exists with id "+t);this.X.viewStates[t].isActive=n.isActive,n.isActive?this.X.viewStates[t].activatedTimestamp=n.timestamp:(this.X.viewStates[t].parsedMetadata={},this.X.viewStates[t].userSuppliedMetadata={}),this.emitChange()},Yt:function(n){var t=n.pageId;if(!this.X.viewStates[t])throw new Error("No view exists with id "+t);e.assign(this.X.viewStates[t].parsedMetadata,n.metadata),this.emitChange()},Kt:function(n){var t=n.pageId;if(!this.X.viewStates[t])throw new Error("No view exists with id "+t);e.assign(this.X.viewStates[t].userSuppliedMetadata,n.metadata),this.emitChange()},$t:function(n){var t=n.pageId;this.X.viewStates[t]&&(this.X.viewStates[t].activationEventId=n.eventData.eventId,this.emitChange())},Wt:function(n){e.extend(this.X.globalTags,n),this.emitChange()},xt:function(n){this.X.shouldBatch=n,this.emitChange()}}},2358:function(n,t,i){var e=i(9587),r=i(7547),o=i(9338);n.exports={initialize:function(){this.X={views:{},apiNamesToViews:{}},this.on(r.DATA_LOADED,this.hn)},getAll:function(){return o.safeReference(e.values(this.X.views))},getPagesMap:function(){return o.safeReference(this.X.views)},get:function(n){return o.safeReference(this.X.views[n])},getByApiName:function(n){return o.safeReference(this.X.apiNamesToViews[n])},apiNameToId:function(n){var t=this.X.apiNamesToViews[n];if(t)return t.id},idToApiName:function(n){var t=this.X.views[n];if(t)return t.apiName},getNumberOfPages:function(){return e.keys(this.X.views).length},getAllViewsForActivationType:function(n){return e.filter(this.X.views,{activationType:n})},hn:function(n){e.isEmpty(n.data.views)||(e.each(n.data.views,e.bind((function(n){o.deepFreeze(n),this.X.views[n.id]=n,this.X.apiNamesToViews[n.apiName]=n}),this)),this.emitChange())}}},5750:function(n,t,i){var e=i(9587),r=i(7547),o=i(7098);n.exports={initialize:function(){this.X={profile:{},metadata:{},visitorId:null},this.on(r.SET_VISITOR_ID_VIA_API,this.Jt),this.on(r.SET_VISITOR_ATTRIBUTES,this.Qt),this.on(r.LOAD_EXISTING_VISITOR_PROFILE,this.Zt)},getVisitorProfile:function(){return this.X.profile},getVisitorProfileMetadata:function(){return this.X.metadata},getAttribute:function(n){var t=this.X.profile;return e.cloneDeep(o.getFieldValue(t,n))},getAttributeMetadata:function(n){return e.cloneDeep(this.X.metadata[n])},getVisitorIdFromAPI:function(){return this.X.visitorId},Zt:function(n){this.X.profile=n.profile,this.X.metadata=n.metadata,this.emitChange()},Qt:function(n){e.each(n.attributes,e.bind((function(n){var t=n.key;o.setFieldValue(this.X.profile,t,n.value),n.metadata&&e.forOwn(n.metadata,e.bind((function(n,i){o.setFieldValue(this.X.metadata,t.concat(i),n)}),this))}),this)),this.emitChange()},Jt:function(n){this.X.visitorId=n,this.emitChange()}}},6179:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.X={},this.on(r.DATA_LOADED,this.ni)},getCustomBehavioralAttributes:function(){return e.filter(this.X,(function(n){return!!n.rule_json}))},getVisitorAttribute:function(n){var t=e.values(this.X);if(n.datasourceId&&(t=e.filter(t,{dcp_datasource_id:String(n.datasourceId)})),n.attributeName&&n.attributeId)throw new Error("Must not specify both attribute name and attribute ID");if(n.attributeId){var i=this.X[n.attributeId];if(!i)throw new Error("Unrecognized attribute ID: "+n.attributeId);return i}if(n.attributeName){var r=e.filter(t,{name:n.attributeName});if(!r.length)throw new Error("Unrecognized attribute name: "+n.attributeName);if(r.length>1)throw new Error("Too many attributes with name: "+n.attributeName);return r[0]}throw new Error("Must specify attribute name or attribute ID")},ni:function(n){e.isEmpty(n.data.visitorAttributes)||(e.each(n.data.visitorAttributes,e.bind((function(n){this.X[n.id]=n}),this)),this.emitChange())}}},5513:function(n,t,i){var e=i(9587),r=i(7547),o=i(2588);n.exports={initialize:function(){this.X={variationIdMap:{},preferredLayerMap:{}},this.on(r.UPDATE_VARIATION_ID_MAP,this.ti),this.on(r.MERGE_VARIATION_ID_MAP,this.ii),this.on(r.UPDATE_PREFERRED_LAYER_MAP,this.ei),this.on(r.MERGE_PREFERRED_LAYER_MAP,this.ri)},getVariationIdMap:function(){return e.cloneDeep(this.X.variationIdMap)},getVariationIdMapString:function(){return o.stringify(this.X.variationIdMap)},ti:function(n){var t=this.X.variationIdMap[n.layerId]||{};t[n.experimentId]!==n.variationId&&(t[n.experimentId]=n.variationId,this.X.variationIdMap[n.layerId]=t,this.emitChange())},ii:function(n){var t=this.getVariationIdMap(),i=n.variationIdMap;e.each(t||{},(function(n,t){i[t]?e.assign(i[t],n):i[t]=n})),this.X.variationIdMap=i,this.emitChange()},getPreferredLayerMap:function(){return e.cloneDeep(this.X.preferredLayerMap)},getPreferredLayerMapString:function(){return o.stringify(this.X.preferredLayerMap)},getPreferredLayerId:function(n){return this.X.preferredLayerMap[n]},ei:function(n){this.X.preferredLayerMap[n.groupId]!==n.layerId&&(this.X.preferredLayerMap[n.groupId]=n.layerId,this.emitChange())},ri:function(n){var t=this.getPreferredLayerMap(),i=n.preferredLayerMap;e.assign(i,t),this.X.preferredLayerMap=i,this.emitChange()}}},7901:function(n,t,i){i(9587);var e=i(7547);i(9598).j;n.exports={initialize:function(){this.X={events:[],foreignEvents:{},foreignEventQueues:{}},this.on(e.SET_VISITOR_EVENTS,this.hn),this.on(e.SET_FOREIGN_VISITOR_EVENTS,this.oi),this.on(e.SET_FOREIGN_VISITOR_EVENT_QUEUE,this.ai)},getEvents:function(){return this.X.events},getForeignEvents:function(){return this.X.foreignEvents},getForeignEventQueues:function(){return this.X.foreignEventQueues},hn:function(n){this.X.events=n,this.emitChange()},oi:function(n){this.X.foreignEvents[n.key]=n.value},ai:function(n){this.X.foreignEventQueues[n.key]=n.value}}},1248:function(n,t,i){var e=i(7547);n.exports={initialize:function(){this.X={baseMap:{},eventQueue:[],lastEvent:null,initialized:!1,cleared:!1},this.on(e.UPDATE_BEHAVIOR_STORE,this.ui)},getBaseMap:function(){return this.X.baseMap},getEventQueue:function(){return this.X.eventQueue},getLastEvent:function(){return this.X.lastEvent},getCleared:function(){return this.X.cleared},getInitialized:function(){return this.X.initialized},ui:function(n){this.X[n.key]=n.value}}},7985:function(n,t,i){var e=i(9587),r=i(7547);n.exports={initialize:function(){this.X={randomId:null,visitorIdLocator:null},this.on(r.SET_VISITOR_ID,this.hn),this.on(r.DATA_LOADED,this.ci)},getBucketingId:function(){return this.getRandomId()},getRandomId:function(){return this.X.randomId},getVisitorIdLocator:function(){return this.X.visitorIdLocator},hn:function(n){e.extend(this.X,n),this.emitChange()},ci:function(n){e.isEmpty(n.data.visitorIdLocator)||(this.X.visitorIdLocator=n.data.visitorIdLocator,this.emitChange())}}},6996:function(n,t,i){var e=i(9587),r=i(1364),o=i(7547);n.exports={initialize:function(){this.X={frames:[],defaultFrame:null,messages:[],subscribers:[],canonicalOrigins:null,disabled:!1},this.on(o.XDOMAIN_SET_DEFAULT_FRAME,this.fi),this.on(o.XDOMAIN_ADD_FRAME,this.li),this.on(o.XDOMAIN_SET_MESSAGE,this.di),this.on(o.XDOMAIN_ADD_SUBSCRIBER,this.hi),this.on(o.XDOMAIN_SET_CANONICAL_ORIGINS,this.vi),this.on(o.XDOMAIN_SET_DISABLED,this.pi)},getMessages:function(){return e.cloneDeep(this.X.messages)},getOffset:function(){return 0===this.X.messages.length?0:this.X.messages[0].data.id},getNextMessageId:function(){return this.X.messages.length+this.getOffset()},getMessageById:function(n){return this.X.messages[n-this.getOffset()]},getSubscribers:function(){return this.X.subscribers},getFrames:function(){return this.X.frames},getNextFrameId:function(){return this.X.frames.length},getDefaultFrame:function(){return this.X.defaultFrame},getCanonicalOrigins:function(){return e.cloneDeep(this.X.canonicalOrigins)},isDisabled:function(){return this.X.disabled},fi:function(n){this.X.defaultFrame=n},li:function(n){this.X.frames.push(n)},di:function(n){for(this.X.messages[n.messageId-this.getOffset()]=n.message;this.X.messages.length>1e3;){var t=this.X.messages.shift();r.debug("XDomainStorage: Cleared old message: "+t.data.id)}},hi:function(n){this.X.subscribers.push(n.subscriber)},vi:function(n){this.X.canonicalOrigins=n.canonicalOrigins},pi:function(n){this.X.disabled=n.disabled}}},3835:function(n,t){t.locatorType={CSS_SELECTOR:"css_selector",JAVASCRIPT:"javascript",URL_REGEX:"url_regex"},t.valueType={STRING:"string",NUMBER:"number",CURRENCY:"currency"},t.nodeNames={INPUT:"INPUT",SELECT:"SELECT"}},4647:function(n,t,i){var e=i(6451).U;t.Error=e("TagError")},957:function(n,t,i){var e=i(373).PluginTypes,r=i(2339).get("stores/plugins");t.getTagValue=function(n){var i=r.getPlugin(e.viewTagLocators,n.locatorType);if(!i)throw new t.Error("No locator registered for tag locatorType: "+n.locatorType);return i(n)},t.enums=i(3835),t.Error=i(4647).Error},1056:function(n,t,i){var e=i(7547),r=i(2141),o=i(4222).Promise,a=i(2339).get("stores/async_request");t.makeAsyncRequest=function(n,t){var i,u,c=a.getPromise(n);if(c)return c;var s=new o((function(n,t){i=n,u=t}));return r.dispatch(e.REGISTER_ASYNC_DEFERRED,{source:n,promise:s,resolver:i,rejecter:u}),t&&t(),s},t.resolveRequest=function(n,t){r.dispatch(e.RESOLVE_DEFERRED,{source:n,resolveWith:t})},t.rejectRequest=function(n,t){r.dispatch(e.REJECT_DEFERRED,{source:n,rejectWith:t})}},1440:function(n,t,i){var e=i(5661),r=i(4465);t.getLanguage=function(){return r.getNavigatorLanguage()},t.getQueryParams=e.getQueryParams,t.getQueryParamValue=e.getQueryParamValue,t.getUrl=function(){return r.getHref()}},441:function(n,t,i){var e=i(9587),r=i(6451).U,o=i(1319),a=i(1357),u=i(4465),c=i(7547),s=i(2339),f=i(2141),l=s.get("stores/cookie_options"),d=t.SetError=r("CookieSetError"),h=t.MismatchError=r("CookieMismatchError");t.getAll=function(n){var i,r,o,u,c;e.isUndefined(n)&&(n=!0),i=a.getCookieString().split(/\s*;\s*/);var s={};for(o=0;o<i.length;o++)if((u=(r=i[o]).indexOf("="))>0&&void 0===s[c=t.safeDecodeURIComponent(r.substring(0,u))]){var f=r.substring(u+1);n&&(f=t.safeDecodeURIComponent(f)),s[c]=f}return s},t.safeDecodeURIComponent=function(n){try{return decodeURIComponent(n)}catch(t){return n}},t.get=function(n,i){return t.getAll(i)[n]},t.set=function(n,i,r,s){r=e.extend({encodeValue:!0},r),!1!==s&&(s=!0);var g=[];if(e.isUndefined(r.domain)){var m=l.getCurrentDomain();m||(m=function(n,i){!1!==i&&(i=!0);for(var r,o,a=n.hostname.split("."),u=[],s=null,l=a.length-1;l>=0;l--)if(u.unshift(a[l]),r=u.join("."),!e.includes(v,r)){o={domain:i?"."+r:r};try{t.set(p,Math.random().toString(),o),t.remove(p,o),s=o.domain;break}catch(d){}}return f.dispatch(c.SET_COOKIE_DOMAIN,s),s}(u.getLocation(),!0)),r.domain=m}if(r.domain&&g.push("domain="+r.domain),e.isUndefined(r.path)&&(r.path="/"),r.path&&g.push("path="+r.path),e.isUndefined(r.expires)){var _=e.isUndefined(r.maxAge)?l.getDefaultAgeInSeconds():r.maxAge;r.expires=new Date(o.now()+1e3*_)}if(e.isUndefined(r.expires)||g.push("expires="+r.expires.toUTCString()),r.secure&&g.push("secure"),a.setCookie(n+"="+(r.encodeValue?encodeURIComponent(i):i)+";"+g.join(";")),s){var w=r.encodeValue,y=t.get(n,w);if(y!==i){if(!y)throw new d('Failed to set cookie "'+n+'"');throw new h('Expected "'+i+'" for "'+n+'", got "'+y+'"')}}},t.remove=function(n,i){for(var r=u.getLocation().hostname.split(".");r.length>0;)t.set(n,null,e.extend({},i,{domain:"."+r.join("."),expires:new Date(0)}),!1),r.shift()};var v=["optimizely.test"],p="optimizelyDomainTestCookie"},6451:function(n,t,i){var e=i(2347),r=e("InternalError");t.G=r,t.U=function(n){return e(n,r)}},2506:function(n,t,i){var e=i(9587),r=i(4222).Promise;n.exports=function(){var n,t,i=new r((function(i,e){n=i,t=e}));return i.resolve=function(){return n.apply(null,e.toArray(arguments)),i},i.reject=function(){return t.apply(null,e.toArray(arguments)),i},i}},9338:function(n,t,i){var e=i(9587);t.deepFreeze=function(n){},t.safeReference=function(n){return e.cloneDeep(n)}},7098:function(n,t,i){var e=i(9587);t.getFieldValue=function(n,t){e.isArray(t)||(t=[t]);for(var i=n,r=0;r<t.length;r++){var o=t[r];if(!e.isObject(i)||!i.hasOwnProperty(o))return;i=i[o]}return i},t.setFieldValue=function(n,t,i){if(!e.isArray(t)||e.isEmpty(t))throw new Error("Attempted to set an invalid key path: "+t);for(var r=n,o=0;o<t.length-1;o++){var a=t[o];e.isObject(r[a])||(r[a]={}),r=r[a]}r[t[t.length-1]]=i}},1237:function(n,t,i){var e=i(9587);t.create=function(n){if(e.isEmpty(n))return null;var t=document.createElement("a");return t.href=n,t}},1364:function(n,t,i){var e=i(9587),r=i(7547),o=i(1319),a=i(373),u=i(2141),c=i(2588);function s(){this.logLevel=null,this.logMatch=null,this.logs=[],this.timebase=o.now()}s.prototype.gi=function(){return!e.isNull(this.logLevel)},s.prototype.setLogLevel=function(n){var t=this.mi(n);null===t?console.error("Unknown log level: "+n):this.logLevel!==t&&(this.log("Setting log level to "+t),this.logLevel=t,this.flush())},s.prototype.setLogMatcher=function(n){e.isString(n)?this.logMatcher=n:this.logMatcher="",this.logGroup=0},s.prototype.shouldLog=function(n){return this.gi()&&this.logLevel>=n},s.prototype.matchesLogMessage=function(n,t){var i=this.logMatcher;if(!this.logMatcher)return!0;if(this.logGroup)return"GROUPSTART"===n?this.logGroup++:"GROUPEND"===n&&this.logGroup--,!0;var r=e.some(t,(function(n){if(!e.isString(n))try{n=c.stringify(n)}catch(t){}return e.isString(n)&&e.includes(n,i)}));return r&&"GROUPSTART"===n&&this.logGroup++,r},s.prototype.storeLog=function(n,t){var i={logLevel:n,logMessage:t};u.dispatch(r.LOG,i)},s.prototype.flush=function(){var n=i(2339).get("stores/log");this.logGroup=0;var t=n.getLogs();e.each(t,e.bind((function(n){this._i(n.logLevel,n.logMessage,!0)}),this))},s.prototype._i=function(n,t,i){var r,o=n;if(console)switch(n){case"GROUPSTART":r=console.groupCollapsed,o=a.LogLevel.DEBUG;break;case"GROUPEND":r=console.groupEnd,o=a.LogLevel.DEBUG;break;case a.LogLevel.ERROR:r=console.error;break;case a.LogLevel.WARN:r=console.warn;break;case a.LogLevel.DEBUG:r=console.debug;break;default:r=console.log}try{i||this.gi()&&!this.shouldLog(o)||(e.isArray(t)&&e.isString(t[0])&&(t=this.wi(t)),this.storeLog(n,t)),r&&this.shouldLog(o)&&this.matchesLogMessage(n,t)&&r.apply(console,t)}catch(u){console&&(console.error?console.error(u):console.log(u))}},s.prototype.debug=function(){this._i(a.LogLevel.DEBUG,[].slice.call(arguments))},s.prototype.log=function(){this._i(a.LogLevel.INFO,[].slice.call(arguments))},s.prototype.logAlways=function(){var n=this.wi([].slice.call(arguments));console&&console.log&&console.log.apply&&console.log.apply(console,n),this.storeLog(a.LogLevel.INFO,n)},s.prototype.warn=function(){this._i(a.LogLevel.WARN,[].slice.call(arguments))},s.prototype.error=function(n){var t=[].slice.call(arguments);1===t.length&&n.stack?(this._i(a.LogLevel.ERROR,[this.yi(),n]),this._i(a.LogLevel.INFO,[n.stack])):this._i(a.LogLevel.ERROR,t)},s.prototype.groupCollapsed=function(){this._i("GROUPSTART",[].slice.call(arguments))},s.prototype.groupEnd=function(){this._i("GROUPEND",[].slice.call(arguments))},s.prototype.wi=function(n){var t=this.yi().toString();return t.length<6&&(t=(" "+t).slice(-6)),[t+"| Optly / "+n[0]].concat(n.slice(1))},s.prototype.yi=function(){return this.timebase?o.now()-this.timebase:0},s.prototype.mi=function(n){return n&&("TRUE"===(n=n.toUpperCase())&&(n="INFO"),"FALSE"===n&&(n="OFF"),"ALL"===n&&(n="DEBUG"),!e.isUndefined(a.LogLevel[n]))?a.LogLevel[n]:null},n.exports=new s},2781:function(n,t,i){n.exports=i(503)},1658:function(n,t){t.isSingleExperimentPolicy=function(n){return"single_experiment"===n||"multivariate"===n}},9805:function(n,t,i){var e=i(9587),r=i(4222).Promise,o=i(4465);t.pollFor=function(n,t,i){var a,u;return e.isFunction(i)?u=i:(a=i||100,u=function(){return--a<-1}),t=t||50,new r((function(i,e){!function r(){var a;if(!u()){try{var c=n();if(c)return i(c)}catch(s){a=s}return o.setTimeout(r,t)}e(a||new Error("Poll timed out"))}()}))}},8121:function(n,t,i){var e=i(9587),r=i(4222).Promise;t.firstToResolve=function(n){return new r((function(t){e.each(n,(function(n){r.resolve(n).then(t,(function(){}))}))}))}},5661:function(n,t,i){var e=i(9587),r=i(4465);t.getQueryParams=function(){var n=r.getLocationSearch()||"";if(0===n.indexOf("?")&&(n=n.substring(1)),0===n.length)return[];for(var t=n.split("&"),i=[],e=0;e<t.length;e++){var o="",a="",u=t[e].split("=");u.length>0&&(o=u[0]),u.length>1&&(a=u[1]),i.push([o,a])}return i},t.getQueryParamValue=function(n){for(var i=t.getQueryParams(),e=0;e<i.length;e++)if(i[e][0]===n)return i[e][1]},t.queryStringFromMap=function(n){return e.map(n,(function(n,t){return t+"="+n})).join("&")}},192:function(n,t,i){var e=i(9587),r=i(1364),o=i(4465);function a(n){this.windowLength=n,this.count=0,this.listeners={},this.isIncrementingTick=!1}a.prototype.countCurrentTick=function(){this.isIncrementingTick||(this.isIncrementingTick=!0,this.increment(),o.setTimeout(e.bind((function(){this.isIncrementingTick=!1}),this),0))},a.prototype.increment=function(){this.count+=1,e.forEach(this.listeners[String(this.count)],(function(n){n()})),o.setTimeout(e.bind(this.decrement,this),this.windowLength)},a.prototype.decrement=function(){this.count-=1,this.count<0&&(r.warn("Decremented down to negative count: ",this.count),this.count=0)},a.prototype.addListener=function(n,t){this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push(t)},n.exports=a},1361:function(n,t,i){var e=i(9587),r=i(2339).get("stores/observed_redirect");t.getReferrer=function(){var n=r.get();return n?n.referrer:null},t.getExperimentAndVariation=function(){var n=r.get();return n&&e.isString(n.variationId)?e.pick(n,["experimentId","variationId"]):null}},1717:function(n,t,i){var e=i(9587),r=i(7547),o=i(1319),a=i(2339),u=i(1357),c=i(373),s=i(2141),f=i(1364),l=a.get("stores/sandbox"),d=i(4465);t.shouldSandbox=function(){return!1},t.get=function(n){if(!n)throw new Error("Name is required");if(t.shouldSandbox()){l.isInitialized()||h();var i=l.get(n);if(i)return i}return d.getGlobal(n)};var h=function(){try{var n="optimizely_"+o.now(),t=u.createElement("iframe");t.name=n,t.style.display="none",u.appendToHead(t);var i=t.contentWindow,a=t.contentDocument;a.write("<script><\/script>"),a.close();var l=e.mapValues(c.SandboxedFunctions,(function(n){return i[n]}));s.dispatch(r.SANDBOXED_FUNCTIONS_ADDED,{sandboxedFunctions:l}),t.parentNode.removeChild(t)}catch(d){f.warn("Unable to create a sandbox: ",d)}}},1317:function(n,t,i){var e=i(1357),r=i(1364),o=i(6388);t.addScriptAsync=function(n,t){var i=e.querySelector("head"),o=e.createElement("script");o.type="text/javascript",o.async=!0,o.src=n,t&&(o.onload=t),i.insertBefore(o,i.firstChild),r.debug("Asynchronously requesting "+n)},t.addScriptSync=function(n,i){try{var a="optimizely_synchronous_script_"+Math.floor(1e5*Math.random());if(-1!==n.indexOf('"'))return void r.error("Blocked attempt to load unsafe script: "+n);e.write('<script id="'+a+'" src="'+n+'"><\/script>');var u=e.querySelector("#"+a);if(!u)throw new Error("DocumentEnv.write failed to append script");u.onload=i,u.onerror=function(e){r.warn("Failed to load script ("+n+") synchronously:",e),t.addScriptAsync(n,i)}}catch(c){r.debug("DocumentEnv.write failed for "+n+": "+c.message);return o.request({url:n,async:!1,contentType:"text/plain",success:function(n){new Function(n.responseText)(),i&&i()}})["catch"]((function(e){r.error("Failed to load "+n+" via synchronous XHR: "+e.message),t.addScriptAsync(n,i)}))}}},9425:function(n,t,i){var e=i(4222).Promise,r=i(4465);t.makeTimeoutPromise=function(n){return new e((function(t,i){r.setTimeout((function(){i(new Error("Timed out after "+n+" ms"))}),n)}))}},5085:function(n,t,i){var e=i(9587),r=i(389),o=i(4465),a=i(7547),u=i(2339),c=i(2141),s=u.get("stores/ua_data");t.get=function(){var n=s.get();return e.isEmpty(n)&&(n=r.parseUA(o.getUserAgent()),c.dispatch(a.SET_UA_DATA,{data:n})),n}},7419:function(n,t){t.guessDomain=function(n,t){if(!n)return"";try{return t?n.match(/:\/\/(.[^/]+)/)[1]:n.match(/:\/\/(?:www[0-9]?\.)?(.[^/:]+)/)[1]}catch(i){return""}}},9851:function(n,t,i){var e=i(9587),r=i(4222).Promise,o=i(7547),a=i(2339),u=i(2141),c=i(411),s=i(6451).U,f=i(1319),l=i(1357),d=i(2588),h=i(9805),v=i(1600),p=i(4465),g=i(1364),m=a.get("stores/xdomain"),_=t.Error=s("XDomainStorageError");function w(n){var t;if(e.find(m.getFrames(),{origin:n.origin})){try{t=d.parse(n.data)}catch(a){return void g.debug("XDomain","Ignoring malformed message event:",n)}if("ERROR"===t.type)u.dispatch(o.XDOMAIN_SET_DISABLED,{disabled:!0}),c.emitInternalError(new _("Xdomain Error: "+t.response));else if("SYNC"===t.type)e.each(m.getSubscribers(),(function(n){n(t.response.key,t.response.value)}));else{var i=m.getMessageById(t.id);if(!i){if(g.warn("XDomain","No stored message found for ID",t.id),e.isNumber(t.id)){var r=m.getNextMessageId();t.id>=r?c.emitInternalError(new _("Message ID is greater than expected maximum ID ("+t.id+">"+r+")")):t.id<0?c.emitInternalError(new _("Message ID is < 0: "+t.id)):c.emitInternalError(new _("No stored message found for message ID: "+t.id))}else c.emitInternalError(new _("Message ID is not a number: "+t.id));return}if(!i.resolver)return void g.warn("XDomain","Message already resolved, ignoring:",t.id);i.resolver(t.response),u.dispatch(o.XDOMAIN_SET_MESSAGE,{messageId:t.id,message:{data:{id:t.id,type:i.data.type,key:i.data.key},startTime:i.startTime,endTime:f.now()}})}}else g.debug("XDomain","No frame found for origin: "+n.origin)}function y(n,t){return t||(t=m.getDefaultFrame()),new r((function(i){var r={data:e.extend({},n,{id:m.getNextMessageId()}),resolver:i};t?m.isDisabled()||b(r,t):u.dispatch(o.XDOMAIN_SET_MESSAGE,{messageId:r.data.id,message:r})}))}function b(n,t){var i=n.data;u.dispatch(o.XDOMAIN_SET_MESSAGE,{messageId:n.data.id,message:e.extend({},n,{startTime:f.now()})}),t.target.postMessage(d.stringify(i),t.origin)}t.setItem=function(n,t,i){return y({type:"PUT",key:n,value:t},i)},t.getItem=function(n,t){return y({type:"GET",key:n},t)},t.fetchAll=function(n){return y({type:"GETALL"},n)},t.deleteData=function(n,t){return y({type:"DELETE",visitorId:n},t)},t.subscribe=function(n){u.dispatch(o.XDOMAIN_ADD_SUBSCRIBER,{subscriber:n})},t.loadIframe=function(n,t){return new r((function(i){var e=l.createElement("iframe");e.src=n+t,e.hidden=!0,e.setAttribute("tabindex","-1"),e.setAttribute("title","Optimizely Internal Frame"),e.style.display="none",e.height=0,e.width=0,e.onload=function(){var r={id:m.getNextFrameId(),target:e.contentWindow,origin:n,path:t};u.dispatch(o.XDOMAIN_ADD_FRAME,r),i(r)},l.appendTo(l.querySelector("body"),e)}))},t.getXDomainUserId=function(n,t){var i,r={},o=e.keys(n);return e.each(t,(function(n){r[n]=[],e.each(o,(function(t){var o=v.getUserIdFromKey(t,n);!i&&o&&(i=o),o&&!e.includes(r[n],o)&&r[n].push(o)}))})),g.debug("XDomain: Found userIds:",r),i},t.load=function(n,i){p.addEventListener("message",w);return h.pollFor((function(){return!!l.querySelector("body")})).then((function(){return t.loadIframe(n,i)})).then((function(n){u.dispatch(o.XDOMAIN_SET_DEFAULT_FRAME,n),m.isDisabled()||e.each(m.getMessages(),(function(t){t.startTime||b(t,n)}))}))}},6388:function(n,t,i){var e=i(9587),r=i(7547),o=i(1319),a=i(2141),u=i(2588),c=i(1364),s=i(4222).Promise,f=i(1717);t.isCORSSupported=function(){return"withCredentials"in new(f.get("XMLHttpRequest"))},t.request=function(n){return n=e.extend({method:"GET",async:!0,contentType:"text/plain;charset=UTF-8"},n),new s((function(i,r){if(!t.isCORSSupported())return r("CORS is not supported");var o=new(f.get("XMLHttpRequest"));o.onload=function(){n.success&&n.success(o),i(o)},o.onerror=function(){n.error&&n.error(o),r(o)},e.isObject(n.data)&&(n.data=u.stringify(n.data)),o.open(n.method,n.url,n.async),n.withCredentials&&(o.withCredentials=n.withCredentials),o.setRequestHeader("Content-Type",n.contentType),e.isObject(n.headers)&&e.forEach(n.headers,(function(n,t){o.setRequestHeader(t,n)})),o.send(n.data)}))},t.retryableRequest=function(n,i,u,f){if(!i)return s.reject(new Error("No id specified for request."));if(!t.isCORSSupported())return s.reject(new Error("CORS is not supported."));e.isUndefined(f)&&(f=3),e.isUndefined(u)&&(u=0);var l={id:i,timeStamp:o.now(),data:n,retryCount:u};return a.dispatch(r.SET_PENDING_EVENT,l),c.debug("Sending event ",i),t.request(n).then((function(n){return a.dispatch(r.REMOVE_PENDING_EVENT,{id:i}),n}),(function(n){throw l.retryCount>=f?(a.dispatch(r.REMOVE_PENDING_EVENT,{id:i}),c.warn("Event ",l," could not be sent after ",f," attempts.")):(l.retryCount++,a.dispatch(r.SET_PENDING_EVENT,l),c.debug("Event ",l," failed to send, with error ",n," It will be retried ",f-u," times.")),n}))},t.sendBeacon=t.request},6160:function(n,t,i){var e=i(9587),r=i(7547),o=i(3993),a=i(1973),u=i(1319),c=i(2339),s=i(373),f=i(2994),l=i(2141),d=i(1364),h=i(957),v=c.get("stores/event_data"),p=c.get("stores/plugins"),g=c.get("stores/rum"),m=c.get("stores/view"),_=c.get("stores/view_data");function w(n,t){e.forEach(n,(function(n){if(n.eventType!==f.CUSTOM){var i=p.getPlugin(s.PluginTypes.eventImplementations,n.eventType);i?t?i.attach(n):i.detach(n):d.warn("No implementation found for event type:",n.eventType,"needed for event:",n)}}))}t.parseViewTags=function(n){var i=t.evaluateViewTags(n);t.setParsedViewTags(n.id,i)},t.updateAllViewTags=function(){var n=m.getActiveViewStates();e.each(n,(function(n){var i=_.get(n.id);t.parseViewTags(i)}))},t.evaluateViewTags=function(n){return n.tags?e.reduce(n.tags,(function(n,t){try{n[t.apiName]=h.getTagValue(t)}catch(r){i=r,(null!=(e=h.Error)&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](i):i instanceof e)?d.warn("Page / Ignoring unparseable tag",t,r):d.error(r)}var i,e;return n}),{}):{}},t.createViewTicket=function(){var n={};return e.each(p.getAllPlugins(s.PluginTypes.viewProviders),(function(t){n[t.provides]=c.evaluate(t.getter)})),n},t.registerViews=function(n){l.dispatch(r.REGISTER_VIEWS,{views:n})},t.activateViaAPI=function(n,i){i&&t.setUserSuppliedViewTags(n.id,i),t.activateMultiple([n],i)},t.getViewsAndActivate=function(n){var i=_.getAllViewsForActivationType(n);t.activateMultiple(i)},t.activateMultiple=function(n,i){var a=[];return e.each(n,(function(n){var u=m.getViewState(n.id),c=t.createViewTicket();if(u.isActive)if(n.deactivationEnabled)try{t.hasValidStaticConditions(n,c)||t.deactivate(n)}catch(h){d.error("Page / Error evaluating whether to deactivate page ",t.description(n),h)}else d.log("Not activating Page, already active ",t.description(n));else{try{if(!t.hasValidStaticConditions(n,c))return e.isBoolean(u.isActive)||t.setViewActiveState(n,!1),void d.log("Page / Failed to match page conditions for "+t.description(n),n.staticConditions)}catch(h){return e.isBoolean(u.isActive)||t.setViewActiveState(n,!1),void d.error("Page / Error evaluating whether to activate page ",t.description(n),h)}if(a.push(n),t.setViewActiveState(n,!0),d.log("Activated Page",t.description(n)),o.emitViewActivated({view:n,metadata:i}),g.getSampleRum()){var f=n.activationType||s.ViewActivationTypes.immediate;l.dispatch(r.RECORD_ACTIVATION_TYPE_USAGE,{activationType:f,entityId:n.id})}w(v.getByPageId(n.id),!0)}})),e.isEmpty(a)||o.emitViewsActivated({views:a}),a},t.deactivate=function(n){m.getViewState(n.id).isActive?(t.setViewActiveState(n,!1),d.log("Deactivated Page",t.description(n)),o.emitPageDeactivated({page:n}),w(v.getByPageId(n.id),!1)):d.log("Not deactivating Page, already inactive ",t.description(n))},t.setViewActiveState=function(n,t){l.dispatch(r.SET_VIEW_ACTIVE_STATE,{view:n,timestamp:u.now(),isActive:t})},t.setGlobalTags=function(n){l.dispatch(r.SET_GLOBAL_TAGS,n)},t.setParsedViewTags=function(n,t){l.dispatch(r.UPDATE_PARSED_VIEW_METADATA,{pageId:n,metadata:t})},t.setUserSuppliedViewTags=function(n,t){l.dispatch(r.UPDATE_USER_SUPPLIED_METADATA,{pageId:n,metadata:t})},t.hasValidStaticConditions=function(n,t){var i={};if(e.isEmpty(n.staticConditions))return!0;var o=p.getAllPlugins(s.PluginTypes.viewMatchers);d.groupCollapsed("Page / Evaluating staticConditions:",n.staticConditions),d.debug("Matching to current value:",t);var u=a.evaluate(n.staticConditions,(function(n){var e=n.type,r=o[e];if(!r)throw new Error("Page / No matcher found for type="+e);return r&&(i[n.type]||(i[n.type]=!0)),r.match(t,n)}));return d.groupEnd(),g.getSampleRum()&&u&&l.dispatch(r.RECORD_VIEW_FEATURE_USAGE,{featuresUsed:e.keys(i),entityId:n.id}),u},t.description=function(n){return'"'+n.name+'" ('+n.id+")"},t.isActivationTypeImmediate=function(n){return n===s.ViewActivationTypes.immediate||!n},t.shouldTriggerImmediately=function(n){return n===s.ViewActivationTypes.DOMChanged||n===s.ViewActivationTypes.URLChanged||n===s.ViewActivationTypes.immediate||!n},t.create=function(n,t){return{id:n,apiName:t,category:"other"}},t.createState=function(n){return{id:n,isActive:!0,metadata:{},parsedMetadata:{},userSuppliedMetadata:{}}}},1600:function(n,t,i){var e,r=i(9587),o=i(2141),a=i(7547),u=i(4921),c=i(3364),s=i(441),f=i(1319),l=i(2339),d=i(373),h=i(2588),v=i(7098),p=i(5290).mM,g=i(1364),m=i(4222).Promise,_=i(5661),w=i(373).VisitorStorageKeys,y=i(4465);e=i(9851);var b=l.get("stores/cookie_options"),E=l.get("stores/global"),I=l.get("stores/layer"),A=l.get("stores/plugins"),T=l.get("stores/rum"),S=l.get("stores/session"),k=l.get("stores/visitor_id"),R=l.get("stores/visitor_bucketing"),N=l.get("stores/visitor"),D=l.get("stores/provider_status");function C(n,t){var i=function(n,i){var e;t.attributionType&&(e=f.now()),o.dispatch(a.SET_VISITOR_ATTRIBUTES,{attributes:[{key:n,value:i,metadata:{lastModified:e}}]})};if(t.getter){var e=t.provides;if(r.isArray(e)||(e=[e]),!(t.isSticky&&!r.isUndefined(v.getFieldValue(n,e)))){var u;try{var c=l.evaluate(t.getter);r.isFunction(c)&&(c=c((function(){return v.getFieldValue(n,e)}),(function(n){i(e,n)}))),r.isUndefined(c)||(t.isAsync?(u=c.then((function(n){i(e,n)}),(function(n){g.warn('Failed to evaluate provider for "'+t.provides+'"; error was:',n)})),o.dispatch(a.SET_VISITOR_ATTRIBUTE_PENDING,{key:e,pending:u})):i(e,c))}catch(s){g.warn('Failed to evaluate getter for provider for "'+t.provides+'"; error was: '+s.message)}return u}}}function O(n){var t=M(n),i=p.getItem(t);return r.isString(i)&&(i=U(i)),i}function x(n){var t;if(n.layerId)t=n;else{var i=n;t={layerId:i.i,pageId:i.p,decisionTimestamp:i.t,decisionTicket:{audienceIds:i.a||[]},decision:{layerId:i.i,experimentId:i.x||null,variationId:i.v||null,isLayerHoldback:i.h||!1}}}return t}function P(n,t,i){try{var r=M(n);i||(t=h.stringify(t));try{p.setItem(r,t)}catch(o){throw g.warn("Visitor / Unable to set localStorage key, error was:",o),new Error("Unable to set localStorage")}e.setItem(r,t)}catch(o){g.warn("Unable to persist visitor data:",o.message)}}function M(n){var i=k.getBucketingId();if(!i)throw new Error("Visitor bucketingId not set");var e=t.getNamespace();if(!e)throw new Error("Namespace is not set");return[i,e,n].join("$$")}function L(n,i){if(!k.getBucketingId())throw new Error("Cannot update local store because bucketingId not set");if(V(n)){var e=t.getStorageKeyFromKey(n);if(r.includes(w,e)){var u=M(e);if(!(n.indexOf(u)<=0)&&(i=U(i)))if(e===w.EVENT_QUEUE)o.dispatch(a.SET_FOREIGN_VISITOR_EVENT_QUEUE,{key:n,value:c.deserialize(i)});else if(e===w.EVENTS)o.dispatch(a.SET_FOREIGN_VISITOR_EVENTS,{key:n,value:c.deserialize(i)});else if(e===w.LAYER_STATES)o.dispatch(a.LOAD_PERSISTED_LAYER_STATES,{layerStates:r.map(i,x),merge:!0});else if(e===w.VARIATION_MAP)o.dispatch(a.MERGE_VARIATION_ID_MAP,{variationIdMap:i});else if(e===w.VISITOR_PROFILE){var s=i;r.each(["custom"],(function(n){var t=A.getPlugin(d.PluginTypes.visitorProfileProviders,n);if(t){if(s.profile&&s.metadata){var i=function(n,t,i){var e=N.getAttribute(t),o=N.getAttributeMetadata(t),a=n.profile[t],u=n.metadata[t];if(r.isEmpty(e))return{data:a,metadata:u};var c={};return r.forOwn(a,(function(n,t){var e,a;o&&o[t]&&(e=o[t].lastModified),u&&u[t]&&(a=u[t].lastModified),(i===d.AttributionTypes.FIRST_TOUCH&&e>=a||i===d.AttributionTypes.LAST_TOUCH&&a>=e||r.isUndefined(e)&&a)&&(c.data=c.data||{},c.data[t]=n,a&&(c.metadata=c.metadata||{},c.metadata[t]=c.metadata[t]||{},c.metadata[t].lastModified=a))})),c}(s,n,t.attributionType);if(!r.isEmpty(i)){var e=[];r.forOwn(i.data,(function(t,r){var o=i.metadata[r],a={key:[n,r],value:t,metadata:o};e.push(a)})),o.dispatch(a.SET_VISITOR_ATTRIBUTES,{attributes:e})}}}else g.debug("Attribute type",n,"not used by any audiences")}))}}}}function V(n){return n.split("$$")[0].indexOf("://")>0}function U(n){try{return h.parse(n)}catch(t){return g.debug("Failed to parse: ",n,t),null}}t.getOrGenerateId=function(){return{randomId:t.getCurrentId()||"oeu"+f.now()+"r"+Math.random()}},t.getCurrentId=function(){var n=k.getVisitorIdLocator();return N.getVisitorIdFromAPI()||(n?function(n){var t,i=n.name;switch(n.type){case d.VisitorIdLocatorType.COOKIE:t=s.get(i);break;case d.VisitorIdLocatorType.JS_VARIABLE:t=y.getGlobalByPath(i);break;case d.VisitorIdLocatorType.LOCALSTORAGE:try{t=y.getGlobal("localStorage").getItem(i)}catch(u){throw new Error("Unable to read localStorage: "+u.toString())}break;case d.VisitorIdLocatorType.QUERY:t=_.getQueryParamValue(i)}try{if(!t)throw g.error("Visitor / Customer provided visitor id cannot be found. Type:",n.type," Name:",i),new Error("Failure to obtain visitor id from "+n.type);if(!r.isString(t)&&!r.isNumber(t))throw g.error("Visitor / Customer provided visitor id is not a string or number. Type:",n.type," Name:",i," Id Type:",(e=t)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e),new Error("Customer provided visitor id is not a string or number")}catch(c){throw T.getSampleRum()&&o.dispatch(a.RECORD_VISITOR_ID_ERROR,{isError:!0}),c}var e;T.getSampleRum()&&(o.dispatch(a.RECORD_VISITOR_ID_ERROR,{isError:!1}),o.dispatch(a.RECORD_VISITOR_ID_LOCATOR_USAGE,{visitorIdLocatorType:n.type,entityId:t}));return String(t)}(n):s.get(d.COOKIES.VISITOR_ID))},t.hasSomeData=function(){return p.keys().length>0},t.setId=function(n){var i,c,f=k.getBucketingId();o.dispatch(a.SET_VISITOR_ID,n),k.getBucketingId()!==f&&(!function(){!function(n,t){0;u.initializeStore(n,t)}(O(w.EVENTS)||[],O(w.EVENT_QUEUE)||[]);var n=(i=w.LAYER_STATES,e=k.getBucketingId(),c=[],s=new RegExp(e+"\\$\\$([^$]+?)\\$\\$"+i),r.each(p.keys(),(function(n){var t=n.match(s);if(t){var i={namespace:t[1],userId:e,item:U(p.getItem(n))};c.push(i)}})),c);var i,e,c,s;r.forEach(n,(function(n){n.item=r.map(n.item,x)})),l=n,h=[],r.each(l,(function(n){r.each(n.item,(function(t){t.namespace=n.namespace,h.push(t)}))})),g=h,o.dispatch(a.LOAD_PERSISTED_LAYER_STATES,{layerStates:r.filter(g,(function(n){return!!n.decision}))}),v=O(w.SESSION_STATE)||{},v=r.extend({lastSessionTimestamp:0,sessionId:null},v),o.dispatch(a.LOAD_SESSION_STATE,v),function(n){var t,i,e=A.getAllPlugins(d.PluginTypes.visitorProfileProviders),u=r.filter(e,(function(n){return r.isFunction(n.restorer)}));n.profile&&n.metadata?(t=n.profile,i=n.metadata):(t=n,i={});t=r.reduce(t,(function(n,t,i){var e=t,o=r.find(u,{provides:i});return o&&(e=o.restorer(t)),n[i]=e,n}),{}),o.dispatch(a.LOAD_EXISTING_VISITOR_PROFILE,{profile:t,metadata:i})}(O(w.VISITOR_PROFILE)||{});var f=O(w.TRACKER_OPTIMIZELY);f&&(m=f,o.dispatch(a.SET_TRACKER_PERSISTABLE_STATE,m));var l,h;var v;var g;var m;t.loadForeignData(),t.removeLegacySessionStateCookies()}(),t.deleteOldLocalData(),e.deleteData(n));try{k.getVisitorIdLocator()||t.maybePersistVisitorId(n)}catch(l){if(g.error("Visitor / Unable to persist visitorId, disabling tracking"),o.dispatch(a.LOAD_DIRECTIVE,{trackingDisabled:!0}),i=l,null!=(c=s.MismatchError)&&"undefined"!=typeof Symbol&&c[Symbol.hasInstance]?c[Symbol.hasInstance](i):i instanceof c)throw g.error("Visitor / Cookie not set to correct value:",l),new Error("Cookie mismatch error while persisting visitorId");throw l}t.refreshSession()},t.getVariationIdMap=function(){return O(w.VARIATION_MAP)||{}},t.updateVariationIdMap=function(n,t,i){o.dispatch(a.UPDATE_VARIATION_ID_MAP,{layerId:n,experimentId:t,variationId:i})},t.persistVariationIdMap=function(){var n=R.getVariationIdMapString();P(w.VARIATION_MAP,n,!0)},t.getPreferredLayerMap=function(){return O(w.LAYER_MAP)||{}},t.updatePreferredLayerMap=function(n,t){o.dispatch(a.UPDATE_PREFERRED_LAYER_MAP,{groupId:n,layerId:t})},t.persistTrackerOptimizelyData=function(n){P(w.TRACKER_OPTIMIZELY,n)},t.refreshSession=function(){o.dispatch(a.REFRESH_SESSION)},t.populateEagerVisitorData=function(n,i){var e=r.filter(n,(function(n){return!n.isLazy}));return t.populateVisitorData(e,i)},t.populateLazyVisitorData=function(n,i){var e=r.filter(n,(function(n){return n.isLazy}));return t.populateVisitorData(e,i)},t.populateVisitorData=function(n,t){t=t||{};var i=r.partial(C,t),e=r(n).filter({isAsync:!0}).map(i).filter().value();return r.forEach(r.filter(n,(function(n){return!n.isAsync})),i),e.length>0?m.all(e):m.resolve()},t.persistBehaviorEvents=function(n){P(w.EVENTS,n)},t.persistBehaviorEventQueue=function(n){P(w.EVENT_QUEUE,n)},t.getPersistedBehaviorEventCount=function(){var n=O(w.EVENTS)||[],t=O(w.EVENT_QUEUE)||[];return c.deserialize(n).length+c.deserialize(t).length},t.persistLayerStates=function(){var n=I.getLayerStates(t.getNamespace());n=r.map(n,(function(n){return r.omit(n,"namespace")})),P(w.LAYER_STATES,n)},t.persistSessionState=function(){P(w.SESSION_STATE,S.getState())},t.persistVisitorProfile=function(){P(w.VISITOR_PROFILE,function(){var n=N.getVisitorProfile(),t=N.getVisitorProfileMetadata(),i=A.getAllPlugins(d.PluginTypes.visitorProfileProviders);if(i){var e=r.reduce(i,(function(n,t){return t.provides&&(n[t.provides]=t),n}),{});n=r.omitBy(n,(function(n,t){var i=e[t];return i&&i.isTransient}))}return{profile:n,metadata:t}}())},t.persistVisitorBucketingStore=function(){var n;t.persistVariationIdMap(),n=R.getPreferredLayerMapString(),P(w.LAYER_MAP,n,!0)},t.getUserIdFromKey=function(n,i){var e;return r.includes(n,i)&&r.includes(n,"_")&&r.includes(n,"$$")&&r.includes(n.slice(n.indexOf("$$")),t.getNamespace())&&(e=n.slice(n.indexOf("_")+1,n.indexOf("$$"))),e},t.maybePersistVisitorId=function(n){n.randomId&&(b.getAutoRefresh()||t.getCurrentId()!==n.randomId?(s.set(d.COOKIES.VISITOR_ID,n.randomId),g.log("Persisting visitorId:",n.randomId)):g.log("Not persisting visitorId: value is not changed and also auto-refresh is disabled"))},t.getAttribute=function(n){return N.getAttribute(n)},t.getPendingAttributeValue=function(n){return D.getPendingAttributeValue(n)},t.isForeignKey=V,t.checkKeyForVisitorId=function(n){var i=k.getBucketingId()||t.getCurrentId(),e=t.getIdFromKey(n);return!e||e===i},t.getIdFromKey=function(n){var i=n.split("$$")[0],e=t.getStorageKeyFromKey(n);if(r.includes(d.StorageKeys,e))return null;var o=i.indexOf("_");return-1===o?i:i.substring(o+1)},t.getStorageKeyFromKey=function(n){var t,i=n.split("$$").pop();if(i.indexOf("://")>-1){var e=i.indexOf("_");t=i.substring(e+1)}else t=i;return r.includes(r.values(d.AllStorageKeys),t)?t:null},t.deleteOldLocalData=function(){var n=p.keys();r.each(n,(function(n){t.isForeignKey(n)||t.checkKeyForVisitorId(n)||p.removeItem(n)}))},t.deleteOldForeignData=function(){var n=p.keys();r.each(n,(function(n){t.isForeignKey(n)&&p.removeItem(n)}))},t.loadForeignData=function(){r.each(p.keys(),(function(n){var t=p.getItem(n);t&&L(n,t)}))},t.getNamespace=function(){return E.getNamespace()},t.serializeFieldKey=function(n){return r.isArray(n)?n.join("$$"):n},t.removeLegacySessionStateCookies=function(){var n=s.getAll();r.forEach(r.keys(n),(function(n){0===n.indexOf(d.COOKIES.SESSION_STATE+"$$")&&s.remove(n)}))}},7546:function(n,t,i){var e=i(9587),r=i(373);t.normalizeClientData=function(n){!n.listTargetingKeys&&n.listTargetingCookies&&(n.listTargetingKeys=e.map(n.listTargetingCookies,(function(n){return{type:r.ListTargetingKeyTypes.COOKIE,key:n}})),delete n.listTargetingCookies)}},3374:function(n,t,i){i(2339).register("env/jquery",i(4849))},4849:function(n,t,i){var e,r=i(4465);try{e=$}catch(a){}var o=r.getGlobal("$");n.exports=e&&e!==o?e:o},9907:function(n){n.exports={}},3560:function(n,t,i){i(9587),i(6451).G,i(1319);var e=i(2339),r=(i(1357),i(1364));i(4465),i(6388),e.get("stores/client_metadata"),e.get("stores/global");t.handleError=function(n,t){t?r.error("Uncaught error:",n,t):r.error("Uncaught error:",n)}},4826:function(n,t,i){var e=i(9587),r=i(7547),o=i(411),a=i(4989),u=i(6451).U,c=i(613),s=i(2506),f=i(2339).get("stores/directive"),l=i(1357),d=i(8062),h=i(2141),v=i(1364),p=i(192),g=i(4725),m=i(2822).create(),_=1e3,w=10,y=u("ChangeOverheatError");function b(n,t){if(this.change=n,this.identifier=t.identifier,this.startTime=t.startTime,f.shouldObserveChangesIndefinitely()){h.dispatch(r.INITIALIZE_CHANGE_METRICS),this.rateMeter=new p(_);var i=e.isNull(w)?Number.POSITIVE_INFINITY:w;this.rateMeter.addListener(i,e.bind((function(){v.warn("AppendChange",this,"has overheated and will no longer apply or reapply"),this.cancel(),h.dispatch(r.RECORD_CHANGE_OVERHEATED),o.emitError(new y("Change "+this.identifier+" has overheated"),{layerId:t.action&&t.action.layerId,experimentId:t.action&&t.action.experimentId,variationId:t.action&&t.action.variationId,changeId:n.id,changeType:n.type,movingWindowMilliseconds:_,maxMacroTasksInMovingWindow:i})}),this));for(var a=Math.min(i,50),u=0;u<=a;u++)this.rateMeter.addListener(u,e.partial((function(n){h.dispatch(r.RECORD_CHANGE_MACROTASK_RATE,{changeMacrotaskRate:n})}),u))}}b.prototype.numberOfRootNodes=function(n){var t=document.createElement("div");return t.innerHTML=n,t.childNodes.length},b.prototype.getSiblingElements=function(n,t,i){for(var e=n,r=[],o=0;o<t;o++)i?(r.push(e.nextSibling),e=e.nextSibling):(r.push(e.previousSibling),e=e.previousSibling);return r},b.prototype.apply=function(){this.applyDeferred=s();try{if(!this.numberOfRootNodes(this.change.value))throw new Error("No DOM elements to be created for this change: "+this.change.value);var n=e.partial(this.applyDeferred.reject,new Error("Unable to find selector.")),t={};f.shouldObserveChangesUntilTimeout()?t={timeout:e.partial(g.isTimedOut,this.startTime),onTimeout:n}:f.isEditor()&&m.waitUntil(e.partial(g.isTimedOut,this.startTime)).then(n,n),this.unobserveSelector=m.observeSelector(this.change.selector,e.bind(this.maybeApplyToElement,this),t);var i=l.querySelectorAll(this.change.selector);e.each(i,e.bind(this.maybeApplyToElement,this))}catch(r){this.applyDeferred.reject(r)}return this.applyDeferred},b.prototype.maybeApplyToElement=function(n){var t=a.CHANGE_ID_ATTRIBUTE_PREFIX+this.change.id;if(n.hasAttribute(t))return v.debug("Not applying AppendChange to element",n,"because it was inserted by this change"),void this.applyDeferred.resolve();this.rateMeter&&this.rateMeter.countCurrentTick(),e.bind(this.applyOrReapplyToElement,this,n,t)(),this.applyDeferred.resolve()},b.prototype.applyOrReapplyToElement=function(n,t){var i;switch(this.change.operator){case d.DOMInsertionType.AFTER:i=d.insertAdjacentHTMLType.AFTER_END;break;case d.DOMInsertionType.APPEND:i=d.insertAdjacentHTMLType.BEFORE_END;break;case d.DOMInsertionType.BEFORE:i=d.insertAdjacentHTMLType.BEFORE_BEGIN;break;case d.DOMInsertionType.PREPEND:i=d.insertAdjacentHTMLType.AFTER_BEGIN;break;default:i=d.insertAdjacentHTMLType.BEFORE_END}n.insertAdjacentHTML(i,this.change.value),n.setAttribute(t,""),c.setData(n,this.change.id,this.identifier,[]);var r,o,a=this.numberOfRootNodes(this.change.value)-1;i===d.insertAdjacentHTMLType.BEFORE_END?(r=n.lastChild,o=this.getSiblingElements(r,a,!1)):i===d.insertAdjacentHTMLType.AFTER_BEGIN?(r=n.firstChild,o=this.getSiblingElements(r,a,!0)):i===d.insertAdjacentHTMLType.BEFORE_BEGIN?(r=n.previousSibling,o=this.getSiblingElements(r,a,!1)):i===d.insertAdjacentHTMLType.AFTER_END&&(r=n.nextSibling,o=this.getSiblingElements(r,a,!0)),o.unshift(r),e.each(o,e.bind((function(n){var i=n.nodeType===Node.ELEMENT_NODE?n:l.parentElement(n);i.setAttribute(t,"");var r=c.getData(i,this.change.id,this.identifier)||[];r.push(n),c.setData(i,this.change.id,this.identifier,r),e.each(l.childrenOf(i),(function(n){n.setAttribute(t,"")}))}),this))},b.prototype.cancel=function(){this.unobserveSelector&&this.unobserveSelector()},n.exports=function(n){n.registerChangeApplier(d.changeType.APPEND,b)}},6295:function(n,t,i){var e=i(9587),r=i(8062);t.transformVisibilityAttributesToCSS=function(n){if(!n.attributes)return n;if(n.attributes[r.selectorChangeType.HIDE]||n.attributes[r.selectorChangeType.REMOVE]){var t=e.extend({css:{}},e.cloneDeep(n));return n.attributes[r.selectorChangeType.HIDE]&&(t.css.visibility="hidden",delete t.attributes[r.selectorChangeType.HIDE]),n.attributes[r.selectorChangeType.REMOVE]&&(t.css.display="none",delete t.attributes[r.selectorChangeType.REMOVE]),t}return n},t.createStylesFromChange=function(n,t){if(e.isEmpty(t.css))return t.attributes.style;var i="",r=t.attributes.style||"";return e.each(t.css,(function(n,t){new RegExp(t+"\\s?:").test(r)||(i+=t+":"+n+";")})),e.isUndefined(t.attributes.style)?(n||"")+i:i+r}},2126:function(n,t,i){var e=i(9587),r=(i(4222).Promise,i(7547)),o=i(411),a=i(4989),u=i(6451).U,c=i(613),s=i(2506),f=i(2339).get("stores/directive"),l=i(1357),d=i(8062),h=i(2141),v=i(1364),p=(i(765),i(192)),g=i(4725),m=(i(4465),i(6295)),_=i(2822).create(),w=1e3,y=10,b=u("ChangeOverheatError");function E(n,t){if(this.change=e.cloneDeep(n),this.change=m.transformVisibilityAttributesToCSS(this.change),this.identifier=t.identifier,this.startTime=t.startTime,this.disconnectObserverQueue=[],f.shouldObserveChangesIndefinitely()){h.dispatch(r.INITIALIZE_CHANGE_METRICS),this.rateMeter=new p(w);var i=e.isNull(y)?Number.POSITIVE_INFINITY:y;this.rateMeter.addListener(i,e.bind((function(){v.warn("AttributeChange",this,"has overheated and will no longer apply or reapply"),this.cancel(),h.dispatch(r.RECORD_CHANGE_OVERHEATED),o.emitError(new b("Change "+this.identifier+" has overheated"),{layerId:t.action&&t.action.layerId,experimentId:t.action&&t.action.experimentId,variationId:t.action&&t.action.variationId,changeId:n.id,changeType:n.type,movingWindowMilliseconds:w,maxMacroTasksInMovingWindow:i})}),this));for(var a=Math.min(i,50),u=0;u<=a;u++)this.rateMeter.addListener(u,e.partial((function(n){h.dispatch(r.RECORD_CHANGE_MACROTASK_RATE,{changeMacrotaskRate:n})}),u))}this.cancelled=!1}E.prototype.apply=function(){this.applyDeferred=s();try{if(e.isEmpty(this.change.attributes)&&e.isEmpty(this.change.css))return v.debug("Not applying empty AttributeChange"),this.applyDeferred.resolve(),this.applyDeferred;var n=e.partial(this.applyDeferred.reject,new Error("Unable to find selector.")),t={};f.shouldObserveChangesUntilTimeout()?t={timeout:e.partial(g.isTimedOut,this.startTime),onTimeout:n}:f.isEditor()&&_.waitUntil(e.partial(g.isTimedOut,this.startTime)).then(n,n),this.unobserveSelector=_.observeSelector(this.change.selector,e.bind(this.maybeApplyToElement,this),t);var i=l.querySelectorAll(this.change.selector);e.each(i,e.bind(this.maybeApplyToElement,this))}catch(r){this.applyDeferred.reject(r)}return this.applyDeferred},E.prototype.maybeApplyToElement=function(n){var t=a.CHANGE_ID_ATTRIBUTE_PREFIX+this.change.id;if(n.hasAttribute(t))return v.debug("AttributeChange not being applied. Element already changed, or is a child of an element that was changed by this AttributeChange. "+n),void this.applyDeferred.resolve();this.rateMeter&&this.rateMeter.countCurrentTick();var i=e.bind(this.applyOrReapplyToElement,this,n,t);i(),this.applyDeferred.resolve()},E.prototype.applyOrReapplyToElement=function(n,t){var i={};e.forOwn(this.change.attributes,(function(r,o){switch(o){case d.selectorChangeType.CLASS:e.isUndefined(n.className)||(i[d.selectorChangeType.CLASS]=n.className,n.className=r);break;case d.selectorChangeType.HREF:e.isUndefined(n.href)||(i[d.selectorChangeType.HREF]=n.href,n.href=r);break;case d.selectorChangeType.HTML:e.isUndefined(n.innerHTML)||(i[d.selectorChangeType.HTML]=n.innerHTML,n.innerHTML=r,e.each(l.childrenOf(n),(function(n){n.setAttribute(t,"")})));break;case d.selectorChangeType.SRC:e.isUndefined(n.src)||(i[d.selectorChangeType.SRC]=n.src,n.src=r);break;case d.selectorChangeType.STYLE:break;case d.selectorChangeType.TEXT:e.isUndefined(n.textContent)||(i[d.selectorChangeType.TEXT]=n.textContent,n.textContent=r);break;default:throw new Error("Unrecognized attribute: "+o)}}));var r=m.createStylesFromChange(n.style.cssText,this.change);e.isString(r)&&(i[d.selectorChangeType.STYLE]=n.style.cssText,n.style.cssText=r),n.setAttribute(t,""),c.setData(n,this.change.id,this.identifier,i)},E.prototype.cancel=function(){this.cancelled=!0,this.unobserveSelector&&this.unobserveSelector(),e.each(this.disconnectObserverQueue,(function(n){try{n()}catch(t){}}))},n.exports=function(n){n.registerChangeApplier(d.changeType.ATTRIBUTE,E)}},9359:function(n,t,i){var e=i(9587),r=i(4222).Promise,o=i(7547),a=i(373),u=i(441),c=i(1357),s=i(8062),f=i(2141),l=i(1237),d=i(1364),h=i(4465);function v(n,t){if(this.change=n,this.config=t,this.reasonShouldNotRedirect=this._checkForReasonNotToRedirect(),!this.reasonShouldNotRedirect){if(!e.isString(this.change.dest)&&!e.isFunction(this.change.dest))throw new Error("Redirect destination is not a string or function");if(e.isFunction(this.change.dest)&&(this.change.dest=this.change.dest(),!e.isString(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.");f.dispatch(o.ANNOUNCE_PENDING_REDIRECT,{layerId:this.config.action.layerId})}}v.prototype.apply=function(){if(this.reasonShouldNotRedirect)return d.warn("Redirect change is not being applied because: "+this.reasonShouldNotRedirect),r.resolve(s.changeState.IGNORED);if(this.reasonInvalid)return d.error("Redirect change cannot be applied because:",this.reasonInvalid),r.reject(this.reasonInvalid);try{this.bi(this.Ei())}catch(n){return r.reject(n)}return r.resolve(s.changeState.APPLIED)},v.prototype.Ei=function(){var n=l.create(this.change.dest);if(this.change.preserveParameters){var t=h.getLocation().search;t&&(n.search?n.search+="&"+t.substr(1):n.search=t)}return n.toString()},v.prototype.Ii=function(){var n=c.createElement("style");n.setAttribute("type","text/css"),n.innerHTML="body{display:none;visibility:hidden;}",c.appendToHead(n)},v.prototype.bi=function(n){(!this.change.hasOwnProperty("hidePage")||this.change.hidePage)&&this.Ii(),h.setLocation(n)},v.prototype._checkForReasonNotToRedirect=function(){var n=u.get(a.COOKIES.REDIRECT);if(!this.change.allowAdditionalRedirect&&!e.isUndefined(n))return"Page was already redirected."},n.exports=function(n){n.registerChangeApplier(s.changeType.REDIRECT,v)}},2254:function(n,t,i){var e=i(4746),r=i(4170).E,o={selectExperiment:function(n,t,i){if(n.experiments.length<1)throw new r("Unable to find experiment to bucket user into");var o=n.experiments[0];if(!e.isValidExperiment(t,o))throw new r('Audience conditions failed for experiment: "'+o.id+'".');return o}};n.exports=function(n){n.registerDecider("single_experiment",o),n.registerDecider("multivariate",o)}},948:function(n,t,i){var e=function(n){return n&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},r=i(9587),o=i(411),a=i(6451).U,u=i(1357),c=i(2781),s=t.Error=a("ClickDelegateError");function f(n){this.handler=n,this.events=[],this.unlistenFn=null,this.clickHandler=r.bind((function(n){r.forEach(this.events,r.bind((function(t){try{var i=t.config&&t.config.selector?t.config.selector:t.eventFilter.selector;(function(n,t,i){var a=n.target,u=0;for(;a;){var f;try{f=c(a,t)}catch(d){var l={typeofElementValue:void 0===a?"undefined":e(a),nodeName:r.result(a,["nodeName"],null),nodeType:r.result(a,["nodeType"],null),targetName:r.result(n,["target","nodeName"],null),targetType:r.result(n,["target","nodeType"],null),numParentsTraversed:u,selector:t,errorMessage:d.message,eventId:i.id};return o.emitError(new s("Unable to evaluate match for element"),l),!1}if(f)return!0;a=a.parentElement,u++}return!1})(n,i,t)&&this.handler(t)}catch(a){o.emitError(new s("Unable to handle click for selector"+i+":"+a.message))}}),this))}),this)}f.prototype.listen=function(){this.unlistenFn=u.addEventListener("click",this.clickHandler,!0)},f.prototype.unlisten=function(){this.unlistenFn&&(this.unlistenFn(),this.unlistenFn=null)},f.prototype.hasEvents=function(){return this.events.length>0},f.prototype.addEvent=function(n){this.events.push(n)},f.prototype.removeEvent=function(n){this.events=r.filter(this.events,(function(t){return t.apiName!==n.apiName}))},n.exports=f},9981:function(n,t,i){var e=i(5539),r=i(948),o=i(1364),a=i(6160);function u(n){return"apiName: "+n.apiName+", selector: "+n.eventFilter.selector}n.exports=function(n){var t=new r((function(n){a.updateAllViewTags(),e.trackClickEvent(n)?o.log("Tracking click event:",n):o.log("Not tracking click event:",n)}));n.registerEventImplementation("click",{attach:function(n){t.hasEvents()||t.listen(),t.addEvent(n),o.debug("Started listening for click event ("+u(n)+"):",n)},detach:function(n){t.removeEvent(n),t.hasEvents()||t.unlisten(),o.debug("Stopped listening for click event ("+u(n)+"):",n)}})}},217:function(n,t,i){var e=i(9587),r=i(4130),o=i(2336),a=i(488);function u(n,t){var i=o.buildFromSpecV0_1(t);if(1!==i.length)throw new Error("Invalid query descriptor; verify that no aggregators are specified");return a.execute(i[0],n)}function c(n,t){return e.map(n,(function(n){return e.isFunction(n.toObject)?n.toObject(t):n}))}function s(n,t){if(!n)return["Descriptor not defined"];var i=[];return n.count&&i.push('Unexpected "count" clause specified'),n.pick&&n.pick.modifier&&-1===t.indexOf(n.pick.modifier)&&i.push('Invalid "pick" modifier "'+n.pick.modifier+'"'),e.each(n.filters,(function(n){e.isUndefined(n.modifier)||i.push('Unexpected "filter" modifier "'+n.modifier+'"')})),i.length>0?i:void 0}function f(n,t){var i={revenueAsTag:!1,timeAsTimestamp:!0};if(e.isUndefined(t))return c(r.getEvents(n),i);if(e.isNumber(t)){if(t<=0)throw new Error("Count must be a positive integer, got "+t);return c(r.getEvents(n).slice(-t),i)}var a=s(t,e.values(o.RECENCY_FILTERS));if(a)throw new Error(a.join("\n"));return c(u(r.getEvents(n),t),i)}function l(n,t){if(!(t=e.cloneDeep(t)||{}).pick)throw new Error('No "pick" clause provided in query descriptor');if(!t.pick.name)throw new Error('No field name provided in "pick" clause');t.pick.modifier=t.pick.modifier||o.FREQUENCY_FILTERS.MOST_FREQUENT;var i=s(t,e.values(o.FREQUENCY_FILTERS));if(i)throw new Error(i.join("\n"));return u(r.getEvents(n),t)}function d(n,t){var i=o.buildFromSpecV0_2(t),u=r.getEvents(n),s=c(a.execute(i,u),{revenueAsTag:!0,timeAsTimestamp:!1});return(t.pick||t.reduce&&"count"===t.reduce.aggregator)&&(s=e.flatten(s)),t.reduce&&(s=s[0]),s}n.exports=["stores/visitor_events",function(n){return{getEvents:e.partial(f,n),getByFrequency:e.partial(l,n),query:e.partial(d,n)}}]},9095:function(n,t,i){n.exports=function(n){n.registerApiModule("behavior",i(217))}},8416:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(9739)),n.registerAudienceMatcher("behavior",i(842))}},842:function(n,t,i){var e=i(9587),r=i(2588),o=i(2336),a=i(488);n.exports={fieldsNeeded:["events"],match:function(n,t){var i,u=r.parse(t.value);return i=e.isUndefined(u.version)?[u]:o.buildFromSpecV0_1(u),e.every(i,(function(t){return a.isSatisfied(t,n.events)}))}}},9739:function(n,t,i){var e=i(4130);n.exports={provides:"events",isTransient:!0,getter:[function(){return e.getEvents()}]}},368:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(7036))}},7036:function(n,t,i){var e=i(9587),r=i(3725),o=i(4130),a=i(2588),u=i(2336);n.exports={provides:"customBehavior",shouldTrack:!0,isLazy:!1,getter:["stores/global","stores/visitor_attribute_entity",function(n,t){var i=n.getProjectId(),c=e.filter(e.map(t.getCustomBehavioralAttributes(i),(function(n){try{return{id:n.id,granularity:r.GRANULARITY.ALL,rule:u.buildFromSpecV0_2(a.parse(n.rule_json))}}catch(t){return}}))),s=o.getEvents();return r.evaluate(c,s)}]}},768:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(7303)),n.registerAudienceMatcher("first_session",i(5071))}},5071:function(n){n.exports={fieldsNeeded:["first_session"],match:function(n){return!!n.first_session}}},7303:function(n,t,i){var e=i(3986),r=i(4130),o=i(7098).getFieldValue,a=i(1946).CURRENT_SESSION_INDEX;n.exports={provides:"first_session",shouldTrack:!0,getter:[function(){var n=r.getEvents();if(n&&n.length>0){var t=n[0];return o(t,[e.FIELDS.SESSION_INDEX])===a}return!0}]}},3725:function(n,t,i){var e=i(1364),r={FIELDS:i(3986).FIELDS},o=i(2336),a=i(488);t.GRANULARITY={ALL:"all",CURRENT_SESSION:"current_session",LAST_30_DAYS:"last_30_days",LAST_60_DAYS:"last_60_days"},t.evaluate=function(n,i){var u={};if(0===i.length){for(var c=0;c<n.length;c++)u[n[c].id]=n[c].defaultValue;return u}var s=function(n){if(0===n.length)return[];for(var t=n.length-1,i=r.FIELDS.SESSION_ID,e=n[t][i];t>0&&e===n[t-1][i];)t--;return n.slice(t)}(i),f=function(n,t){if(0===n.length||t<=0)return[];var i=+new Date-t*o.MILLIS_IN_A_DAY;i-=i%o.MILLIS_IN_A_DAY;for(var e=n.length;e>0&&i<=n[e-1][r.FIELDS.TIME];)e--;return n.slice(e)}(i,60);for(c=0;c<n.length;c++){var l=n[c],d=i;l.granularity===t.GRANULARITY.CURRENT_SESSION?d=s:l.granularity===t.GRANULARITY.LAST_60_DAYS&&(d=f);try{var h=d;l.rule&&(h=a.execute(l.rule,d)),u[l.id]=l.defaultValue,1===h.length?u[l.id]=h[0][0]||l.defaultValue:e.debug("Behavior / Rule for",l.id,"returned",h.length,"results, expected 1")}catch(v){e.error("Behavior / Rule for",l.id,"failed with",v.message||"")}}return u}},4130:function(n,t,i){var e=i(9587),r=i(3364),o=i(2339).get("stores/visitor_events");t.getEvents=function(){var n=r.getEvents(),t=[].concat.apply([],e.values(o.getForeignEvents())),i=[].concat.apply([],e.values(o.getForeignEventQueues())),a=r.mergeAllEvents([n,t,i]);return a.slice(a.length-1e3)}},2336:function(n,t,i){var e=t,r=i(9587),o={FIELDS:i(3986).FIELDS,FIELDS_V0_2:i(3986).FIELDS_V0_2},a=i(2588),u=i(1364),c=i(488);e.MILLIS_IN_A_DAY=864e5,e.aggregateField=function(n,t){return r.isString(t)&&(t=[t]),t=t||c.DEFAULT_FIELD,[c.generateAlias(n,t)]},e.groupField=function(n){return r.isString(n)&&(n=[n]),[(n=n||c.DEFAULT_FIELD).join(".")]};var s={"<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","==":"eq"};function f(n){return n=(n||"").toString().trim(),s[n]||n}function l(n,t,i){var a={where:t};if(n.count&&(a.limit=n.count),n.modifier===e.FREQUENCY_FILTERS.MOST_FREQUENT){var u=e.getFieldKeyPathForSource(n.name,i),c=e.aggregate("count"),s=e.aggregateField("count"),f=e.groupField(u);return r.extend(a,{select:[{field:f}],groupBy:e.groupBy([u]),aggregate:[c],orderBy:[{field:s,direction:"DESC"}]})}return r.extend(a,{orderBy:[{field:[o.FIELDS.TIME],direction:"DESC"}]})}e.fieldComparison=function(n,t,i){return n=f(n),r.isString(t)&&(t=[t]),"exists"===n?{op:n,args:[{field:t}]}:{op:n,args:[{field:t},{value:i}]}},e.relativeTimeComparison=function(n,t){return{op:f(n),args:[{op:"-",args:[{eval:"now"},{field:[o.FIELDS.TIME]}]},{value:t*e.MILLIS_IN_A_DAY}]}},e.rangeTimeComparison=function(n){return r.isArray(n)?{op:"between",args:[{field:[o.FIELDS.TIME]},{value:[n[0]||+new Date(0),n[1]||+new Date]}]}:(u.error("Rule builder","rangeTimeComparison passed invalid range",n),null)},e.groupBy=function(n){for(var t=[],i=0;i<n.length;i++)t[i]={field:n[i]};return t},e.aggregate=function(n,t){return r.isString(t)&&(t=[t]),{op:n,args:[{field:t=t||c.DEFAULT_FIELD}]}},e.SOURCE_TYPES={BEHAVIOR:"events",CUSTOM_BEHAVIOR:"custom_behavior",DCP:"dcp"},e.FREQUENCY_FILTERS={MOST_FREQUENT:"most_frequent",LEAST_FREQUENT:"least_frequent"},e.RECENCY_FILTERS={MOST_RECENT:"most_recent",LEAST_RECENT:"least_recent"},e.getFieldKeyPathForSource=function(n,t){t=t||e.SOURCE_TYPES.BEHAVIOR;var i=[];return r.isString(n)?(i=[n],t!==e.SOURCE_TYPES.BEHAVIOR||r.includes(r.values(o.FIELDS),n)||(i=[o.FIELDS.OPTIONS,n])):i=n,i},e.buildFromSpecV0_1=function(n){if(!(n.action||n.filters&&0!==n.filters.length))throw new Error('Audience spec must have an "action" field or at least one "filter" '+a.stringify(n));var t=e.fieldComparison("gt",o.FIELDS.TIME,0),i=[],c=[];if(n.action&&(c.push(e.fieldComparison("eq",o.FIELDS.NAME,n.action.value)),n.action.type&&c.push(e.fieldComparison("eq",o.FIELDS.TYPE,n.action.type))),n.time)if("last_days"===n.time.type)c.push(e.relativeTimeComparison("lte",n.time.days));else if("range"===n.time.type){var s=e.rangeTimeComparison([n.time.start,n.time.stop]);s&&c.push(s)}else u.error("Rule builder",'Audience spec has bad "time" type',n.time.type);if(t={op:"and",args:c},n.count&&i.push({where:e.fieldComparison(n.count.comparator,"0",n.count.value),from:{select:[{field:e.aggregateField("count")}],where:t,aggregate:[e.aggregate("count")]}}),n.filters&&r.each(n.filters,(function(r){var a,u,s=e.getFieldKeyPathForSource(r.name,n.source);if(r.modifier===e.FREQUENCY_FILTERS.MOST_FREQUENT?(a=e.aggregate("count"),u=e.aggregateField("count")):r.modifier===e.RECENCY_FILTERS.MOST_RECENT&&(a=e.aggregate("max",o.FIELDS.TIME),u=e.aggregateField("max",o.FIELDS.TIME)),a){var f=s,l=e.groupField(f);i.push({where:e.fieldComparison(r.comparator,"0",r.value),from:{select:[{field:l}],where:t,groupBy:e.groupBy([f]),aggregate:[a],orderBy:[{field:u,direction:"DESC"}],limit:1}})}else c.push(e.fieldComparison(r.comparator,s,r.value))})),n.pick){if(i.length>0)throw new Error('A "pick" clause must not be specified with "count" or "most_recent", "most_frequent" modifiers'+a.stringify(n));return[l(n.pick,t,n.source)]}return i.length>0?i:[{where:t}]},e.buildFromSpecV0_2=function(n){!function(n){var t=[];if(r.isUndefined(n))throw new Error("rule is undefined");if(!r.isObject(n))throw new Error("rule is not an Object");"0.2"!==n.version&&t.push('version: not "0.2"'),n.filter&&(r.isArray(n.filter)?r.each(n.filter,(function(n,i){var r=e.validateFieldKeyPathV0_2(n.field,e.FieldPurpose.FILTER);r&&t.push("filter["+i+"]: "+r);var o=e.validateComparatorAndValue(n.comparator,n.value);o&&t.push("filter["+i+"]: "+o)})):t.push("filter: not an array"));var i=[],o=[];n.sort&&(n.reduce&&n.reduce.aggregator&&"nth"!==n.reduce.aggregator&&t.push("sort: superfluous because we can apply aggregator "+a.stringify(n.reduce.aggregator)+" to unsorted items"),r.isArray(n.sort)?r.each(n.sort,(function(n,u){var c=e.validateFieldKeyPathV0_2(n.field,e.FieldPurpose.SORT);c&&t.push("sort["+u+"]: "+c),n.field&&"frequency"===n.field[0]?i.push(n):o.push(n);var s=function(n){var t="direction "+(a.stringify(n)||String(n));if(!r.includes(["ascending","descending"],n))return t+' is not "ascending" or "descending"'}(n.direction);s&&t.push("sort["+u+"]: "+s)})):t.push("sort: not an array"),i.length&&o.length&&t.push('sort: sorting by non-["frequency"] field is pointless because we are going to sort the picked values by ["frequency"]'),i.length&&!n.pick&&t.push('sort: sorting by ["frequency"] is impossible because no values have been picked'));if(n.pick){n.reduce&&"count"===n.reduce.aggregator&&t.push('pick: superfluous because we can apply aggregator "count" to raw events');var u=e.validateFieldKeyPathV0_2(n.pick.field);u&&t.push("pick: "+u)}if(n.reduce){var c=n.reduce.aggregator,s="aggregator "+(a.stringify(c)||String(c)),f=n.reduce.n,l="index "+(a.stringify(f)||String(f));r.includes(["sum","avg","max","min","count","nth"],c)||t.push("reduce: "+s+" is unknown"),r.includes(["sum","avg","max","min"],c)&&(n.pick||t.push("reduce: "+s+" is impossible to use because no values have been picked")),"nth"===c?((!r.isNumber(f)||isNaN(f)||parseInt(f,10)!==f||f<0)&&t.push("reduce: "+l+" is not a non-negative integer (mandated by "+s+")"),n.sort||t.push('reduce: aggregator "nth" is meaningless without a specific sort order')):r.isUndefined(f)||t.push("reduce: "+l+" is defined (not mandated by "+s+")")}if(t.length)throw new Error(t.join("\n"))}(n);var t={where:{op:"and",args:r.map(n.filter||[],(function(n){return"age"===n.field[0]?e.relativeTimeComparison(n.comparator||"eq",n.value/e.MILLIS_IN_A_DAY):e.fieldComparison(n.comparator||"eq",e.convertFieldKeyPathFromSpecV0_2(n.field),n.value)}))}};if(n.reduce&&"count"===n.reduce.aggregator)return r.extend(t,{aggregate:[{op:"count",args:[{field:["*"]}]}],select:[{field:["_count_*"]}]});var i=[],o=[];if(n.sort&&(r.each(n.sort,(function(n){r.includes(["ascending","descending"],n.direction)&&(r.includes(["time","age"],n.field[0])&&o.push(n),"frequency"===n.field[0]&&i.push(n))})),o.length&&!i.length&&(t.orderBy=r.filter(r.map(o,(function(n){return"time"===n.field[0]?{field:e.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===n.direction?"ASC":"DESC"}:"age"===n.field[0]?{field:e.convertFieldKeyPathFromSpecV0_2(["time"]),direction:"ascending"===n.direction?"DESC":"ASC"}:void 0}))))),n.pick&&n.pick.field){var u=e.convertFieldKeyPathFromSpecV0_2(n.pick.field);if(n.reduce&&r.includes(["avg","max","min","sum"],n.reduce.aggregator))return r.extend(t,{aggregate:[{op:n.reduce.aggregator,args:[{field:u}]}],select:[{field:[c.generateAlias(n.reduce.aggregator,u)]}]});t=i.length?r.extend(t,{groupBy:[{field:u}],aggregate:[{op:"count",args:[{field:["*"]}]}],orderBy:[{field:["_count_*"],direction:"ascending"===i[0].direction?"ASC":"DESC"}],select:[{field:[u.join(".")]}]}):r.extend(t,{select:[{field:u}]})}if(n.reduce&&"nth"===n.reduce.aggregator){var s=n.reduce.n;if(r.isNumber(s)&&s>=0&&Number(s)===Math.floor(Number(s)))return r.extend(t,{offset:s,limit:1})}return t},e.convertFieldKeyPathFromSpecV0_2=function(n){return"tags"===n[0]&&"revenue"===n[1]?["r"]:[o.FIELDS_V0_2[n[0]]].concat(n.slice(1))},e.FieldPurpose={FILTER:"filter",SORT:"sort",PICK:"pick"},e.validateFieldKeyPathV0_2=function(n,t){var i="field "+(a.stringify(n)||String(n));if(!r.isArray(n)||!r.every(n,r.isString))return i+" is not an array of strings";if("tags"===n[0]&&n.length>2||"tags"!==n[0]&&n.length>1)return i+" includes too many strings";if("tags"===n[0]&&n.length<2)return i+" does not specify an exact tag";if(n.length<1)return i+" does not specify a top-level field";var u=r.keys(o.FIELDS_V0_2),c=["age","frequency"];return t===e.FieldPurpose.FILTER&&(u.push("age"),c=["frequency"]),t===e.FieldPurpose.SORT&&(u=["time","age","frequency"],c=["name","type","category","tags"]),r.includes(c,n[0])?i+" is not supported here":r.includes(u,n[0])?void 0:i+" is unknown"},e.validateComparatorAndValue=function(n,t){var i="comparator "+(a.stringify(n)||String(n)),e="value "+(a.stringify(t)||String(t));if(!r.isString(n)&&!r.isUndefined(n))return i+" is not a string";switch(n){case void 0:case"eq":case"is":case"contains":break;case"lt":case"gt":case"lte":case"gte":if(!r.isNumber(t))return e+" is not a number (mandated by "+i+")";break;case"in":if(!r.isArray(t))return e+" is not an array (mandated by "+i+")";break;case"between":if(!(r.isArray(t)&&2===t.length&&r.isNumber(t[0])&&r.isNumber(t[1])&&t[0]<=t[1]))return e+" is not a pair of increasing numbers (mandated by "+i+")";break;case"regex":if(!(r.isString(t)||r.isArray(t)&&2===t.length&&r.isString(t[0])&&r.isString(t[1])))return e+" is not a pattern string or a [pattern string, flags string] array (mandated by "+i+")";break;case"exists":if(!r.isUndefined(t))return e+" is not undefined (mandated by "+i+")";break;default:return i+" is unknown"}}},488:function(n,t,i){var e=i(9587),r=i(373),o=i(1364),a=e.bind(o.log,o),u=i(1319),c=i(7098).getFieldValue,s=i(2588),f=function(n,t,i){if(n.getValueOrDefault)return n.getValueOrDefault(t,i);if(!e.isArray(t))return i;var r=c(n,t);return void 0===r&&(r=i),r},l=function(n){return"string"==typeof n?n.trim().toLowerCase():n};t.clause={WHERE:"where",GROUP_BY:"groupBy",AGGREGATE:"aggregate",HAVING:"having",ORDER_BY:"orderBy",SELECT:"select",OFFSET:"offset",LIMIT:"limit",FROM:"from"},t.DEFAULT_FIELD=["*"],t.booleanOperators={eq:function(n){var t=e.map(n,l);return t[0]==t[1]},is:function(n){return n[0]===n[1]},gt:function(n){return n[0]>n[1]},lt:function(n){return n[0]<n[1]},gte:function(n){return n[0]>=n[1]},lte:function(n){return n[0]<=n[1]},"in":function(n){var t=e.map(n[1]||[],l);return e.includes(t,l(n[0]))},between:function(n){return n[1][0]<=n[0]&&n[0]<=n[1][1]},contains:function(n){var t=e.map(n,(function(n){return"string"==typeof n?n.toLowerCase():n}));return-1!==(t[0]||"").indexOf(t[1])},regex:function(n){try{var t,i;return e.isString(n[1])?(t=n[1],i="i"):(t=n[1][0]||"",i=n[1][1]||""),new RegExp(t,i).test(n[0])}catch(r){return o.error("Rules",'In operator "regex", error: '+(r.message||"invalid RegExp /"+[t,i].join("/"))),!1}},exists:function(n){return void 0!==n[0]},and:function(n){return e.every(n,(function(n){return n}))},or:function(n){return e.some(n,(function(n){return n}))},not:function(n){return!n[0]}},t.arithmeticOperators={"+":function(n){return(n[0]||0)+(n[1]||0)},"-":function(n){return(n[0]||0)-(n[1]||0)},"/":function(n){return(n[0]||0)/(n[1]||1)},"%":function(n){return(n[0]||0)%(n[1]||1)}},t.aggregateOperators={sum:function(n,i){for(var e=n[0]||t.DEFAULT_FIELD,r=0,o=0;o<i.length;o++)r+=f(i[o],e,0);return r},avg:function(n,i){if(0===i.length)return 0;for(var e=n[0]||t.DEFAULT_FIELD,r=0,o=0;o<i.length;o++)r+=f(i[o],e,0);return r/i.length},max:function(n,i){for(var e=n[0]||t.DEFAULT_FIELD,r=Number.NEGATIVE_INFINITY,o=0;o<i.length;o++)r=Math.max(r,f(i[o],e,Number.NEGATIVE_INFINITY));return r},min:function(n,i){for(var e=n[0]||t.DEFAULT_FIELD,r=Number.POSITIVE_INFINITY,o=0;o<i.length;o++)r=Math.min(r,f(i[o],e,Number.POSITIVE_INFINITY));return r},count:function(n,t){return t.length}};var d={now:function(){return u.now()}},h=function(n,i){if(i.hasOwnProperty("value"))return i.value;if(i.hasOwnProperty("field"))return f(n,i.field);if(i.hasOwnProperty("eval"))return i.eval in d?d[i.eval]():void o.error("Rules","Unknown function: "+i.eval);if(i.op){var r,a=(r=i.op)in t.booleanOperators?t.booleanOperators[r]:r in t.arithmeticOperators?t.arithmeticOperators[r]:null;if(a){var u=e.partial(h,n),c=i.args||[];return a(e.map(c,(function(n){return u(n)})),n)}o.error("Rules","Unknown operator: "+i.op)}else o.error("Rules","No operator specified: "+s.stringify(i))};t.generateAlias=function(n,t){return"_"+n+"_"+t.join(".")};t.rewrite=function(n){var i=[],r={};function a(n,u){if(e.isArray(n)&&("and"!==n[0]&&"or"!==n[0]&&"not"!==n[0]&&o.error("Rules","Unexpected operation "+n[0]+". Continuing optimistically."),n={op:n[0],args:n.slice(1)}),n.hasOwnProperty("field")||n.hasOwnProperty("value")||n.hasOwnProperty("eval"))return n;if(u&&n.op in t.aggregateOperators){var c=(n.args&&n.args[0]||{}).field||t.DEFAULT_FIELD,s=t.generateAlias(n.op,c);return s in r||(i.push({op:n.op,args:n.args}),r[s]=!0),{field:[s]}}for(var f=[],l=n.args||[],d=0;d<l.length;d++)f[d]=a(l[d],u);return{op:n.op,args:f}}var u={};n.hasOwnProperty(t.clause.WHERE)&&(u[t.clause.WHERE]=a(n[t.clause.WHERE],!1)),n.hasOwnProperty(t.clause.HAVING)&&(u[t.clause.HAVING]=a(n[t.clause.HAVING],!0)),(n.hasOwnProperty(t.clause.AGGREGATE)||i.length>0)&&(u[t.clause.AGGREGATE]=(n[t.clause.AGGREGATE]||[]).concat(i));for(var c=[t.clause.GROUP_BY,t.clause.ORDER_BY,t.clause.SELECT,t.clause.OFFSET,t.clause.LIMIT],s=0;s<c.length;s++)n.hasOwnProperty(c[s])&&(u[c[s]]=n[c[s]]);return n.hasOwnProperty(t.clause.FROM)&&(u[t.clause.FROM]=t.rewrite(n[t.clause.FROM])),u};var v=function(n,i){i=i||0;var r=[];if(n.hasOwnProperty(t.clause.WHERE)?n[t.clause.WHERE].op?n[t.clause.WHERE].op in t.booleanOperators||r.push("Non-boolean WHERE clause operator"):r.push("Missing WHERE clause operator"):r.push("Missing WHERE clause"),!n.hasOwnProperty(t.clause.HAVING)||(n[t.clause.HAVING].op?n[t.clause.HAVING].op in t.booleanOperators||r.push("Non-boolean HAVING clause operator"):r.push("Missing HAVING clause operator")),n.hasOwnProperty(t.clause.GROUP_BY)&&!n.hasOwnProperty(t.clause.AGGREGATE)&&r.push("No AGGREGATE clause specified with GROUP_BY clause"),n.hasOwnProperty(t.clause.SELECT)){var o=n[t.clause.SELECT];if(e.isArray(o))for(var a=0;a<o.length;a++)o[a].op&&o[a].op in t.aggregateOperators&&r.push('In SELECT clause, aggregate operator "'+o[a].op+'" specified in selector at index '+a);else r.push("SELECT clause must be an array")}if(n.hasOwnProperty(t.clause.OFFSET)){var u=n[t.clause.OFFSET];(!e.isNumber(u)||Number(u)<0||Number(u)!==Math.floor(Number(u)))&&r.push("OFFSET must be a non-negative integer")}if(n.hasOwnProperty(t.clause.LIMIT)){var c=n[t.clause.LIMIT];(!e.isNumber(c)||Number(c)<0||Number(c)!==Math.floor(Number(c)))&&r.push("LIMIT must be a non-negative integer")}return i>0&&(r=e.map(r,(function(n){return"Sub-rule "+i+": "+n}))),n.hasOwnProperty(t.clause.FROM)&&(r=r.concat(v(n[t.clause.FROM],i+1))),r},p=function(n,i){var r,u,c,l=i;if(n.hasOwnProperty(t.clause.FROM)&&(o.debug("Evaluating FROM clause:",n[t.clause.FROM]),l=p(n[t.clause.FROM],l),o.debug("Results after FROM:",l)),o.debug("Evaluating WHERE clause:",n[t.clause.WHERE]),l=e.filter(l,(function(i){return h(i,n[t.clause.WHERE])})),o.debug("Results after WHERE:",l),n.hasOwnProperty(t.clause.AGGREGATE)){o.debug("Evaluating AGGREGATE clause:",n[t.clause.AGGREGATE]);var d=function(n,t){var i={};if(void 0===n||!e.isArray(n)||0===n.length)return i["*"]={fieldValues:{},events:t},i;for(var r=e.map(n,(function(n){return n.field})),o=0;o<t.length;o++){for(var a=t[o],u=[],c={},l=0;l<r.length;l++){var d=r[l],h=f(a,d),v=d.join(".");c[v]=h,u.push(encodeURIComponent(v)+"="+encodeURIComponent(s.stringify(h)))}var p=u.join("&");i.hasOwnProperty(p)||(i[p]={fieldValues:c,events:[]}),i[p].events.push(a)}return i}(n[t.clause.GROUP_BY],l);l=function(n,t){var i=[];return e.each(n,(function(n,r){var o=e.extend({},n.fieldValues),a=t[r]||{};e.extend(o,a),i.push(o)})),i}(d,(r=n[t.clause.AGGREGATE],u=d,c={},e.each(u,(function(n,i){c[i]={};for(var e=0;e<r.length;e++){var a=r[e],u=a.op;if(u in t.aggregateOperators){var s=(a.args&&a.args[0]||{}).field||t.DEFAULT_FIELD,f=t.generateAlias(u,s),l=t.aggregateOperators[u]([s],n.events);c[i][f]=l}else o.error("Rules","Unknown aggregate operator "+u)}})),c)),o.debug("Results after AGGREGATE:",l)}n.hasOwnProperty(t.clause.HAVING)&&(o.debug("Evaluating HAVING clause:",n[t.clause.HAVING]),l=e.filter(l,(function(i){return h(i,n[t.clause.HAVING])})),o.debug("Results after HAVING:",l)),n.hasOwnProperty(t.clause.ORDER_BY)&&(o.debug("Evaluating ORDER_BY clause:",n[t.clause.ORDER_BY]),l=function(n,t){return e.isArray(n)?0===n.length?t:t.sort((function(t,i){for(var e=0;e<n.length;e++){var r=n[e],o="ASC"===(r.direction||"ASC")?1:-1,a=r.field,u=f(t,a,0),c=f(i,a,0);if(u<c)return-o;if(u>c)return o}return 0})):(a("Rules","groupBy rule must be an array"),t)}(n[t.clause.ORDER_BY],l),o.debug("Results after ORDER_BY:",l));var v,g=0;return n.hasOwnProperty(t.clause.OFFSET)&&(o.debug("Evaluating OFFSET clause:",n[t.clause.OFFSET]),g=Number(n[t.clause.OFFSET])),n.hasOwnProperty(t.clause.LIMIT)&&(o.debug("Evaluating LIMIT clause:",n[t.clause.LIMIT]),v=g+Number(n[t.clause.LIMIT])),(g>0||!e.isUndefined(v))&&(l=l.slice(g,v),o.debug("Results after OFFSET/LIMIT:",l)),n.hasOwnProperty(t.clause.SELECT)&&(o.debug("Evaluating SELECT clause:",n[t.clause.SELECT]),l=function(n,t){return e.map(t,(function(t){return e.map(n,(function(n){return h(t,n)}))}))}(n[t.clause.SELECT],l),o.debug("Results after SELECT:",l)),l};t.execute=function(n,i){n=t.rewrite(n),o.shouldLog(r.LogLevel.DEBUG)&&o.groupCollapsed("Evaluating Behavioral Rule"),o.debug("Rule:",n,s.stringify(n)),o.debug("Events:",i);var e=v(n);if(e.length>0)throw new Error("Rule "+s.stringify(n)+" has violations: "+e.join("\n"));var a=p(n,i);return o.debug("Rule result:",a),o.shouldLog(r.LogLevel.DEBUG)&&o.groupEnd(),a},t.isSatisfied=function(n,i){try{return t.execute(n,i).length>0}catch(e){return o.error("Rules","Error "+e.toString()+" while evaluating rule "+s.stringify(n)),!1}}},447:function(n,t,i){n.exports=function(n){n.registerDependency("sources/browser_id",i(5858)),n.registerVisitorProfileProvider(i(4890)),n.registerVisitorProfileProvider(i(4396)),n.registerAudienceMatcher("browser_version",i(1095))}},1095:function(n,t,i){var e=i(1185).y;n.exports={fieldsNeeded:["browserVersion","browserId"],match:function(n,t){var i=t.value,r=n.browserId,o=n.browserVersion;if(0===i.indexOf(r)){var a=i.substr(r.length);return 0===e(o,a)}return!1}}},4890:function(n){n.exports={provides:"browserId",shouldTrack:!0,isSticky:!0,getter:["sources/browser_id",function(n){return n.getId()}]}},4396:function(n){n.exports={provides:"browserVersion",getter:["sources/browser_id",function(n){return n.getVersion()}]}},5858:function(n,t,i){var e=i(5085);t.getId=function(){return e.get().browser.id},t.getVersion=function(){return e.get().browser.version}},845:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(2174)),n.registerAudienceMatcher("campaign",i(7516))}},7516:function(n,t,i){var e=i(8201);n.exports={fieldsNeeded:["campaign"],match:function(n,t){return e.hasMatch(t.value,t.match,n.campaign)}}},2174:function(n,t,i){var e=i(1440);n.exports={provides:"campaign",shouldTrack:!0,isSticky:!0,getter:[function(){return e.getQueryParamValue("utm_campaign")}]}},4083:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(5660));var t=i(1395);n.registerAudienceMatcher("custom_attribute",t),n.registerAudienceMatcher("custom_dimension",t)}},1395:function(n,t,i){var e=i(9587),r=i(8201);t.match=function(n,t){var i;return n.custom&&(i=n.custom[t.name]),e.isObject(i)&&(i=i.value),r.hasMatch(t.value,t.match,i)}},5660:function(n,t,i){var e=i(9587),r=i(373),o=i(1364),a=i(2339).get("stores/dimension_data");n.exports={provides:"custom",attributionType:r.AttributionTypes.LAST_TOUCH,restorer:function(n){return e.reduce(n,(function(n,t,i){var r=i,u=a.getByApiName(i),c=a.getById(i);return e.isObject(t)?(!t.id&&u&&(c=u,r=u.id,e.extend(t,{id:c.segmentId||c.id})),!t.name&&c&&c.apiName&&(t.name=c.apiName),t.id||c||o.warn("Unable to determine ID for custom attribute:",i,"; segmentation is disabled."),n[r]=t,n):(o.error('Unable to restore custom attribute "'+i+'" because value is not an object'),n)}),{})},shouldTrack:!0}},2739:function(n,t,i){n.exports=function(n){n.registerDependency("sources/device",i(2380)),n.registerVisitorProfileProvider(i(7964)),n.registerAudienceMatcher("device",i(171))}},171:function(n){n.exports={fieldsNeeded:["device"],match:function(n,t){return n.device===t.value}}},7964:function(n){n.exports={provides:"device",shouldTrack:!0,isSticky:!0,getter:["sources/device",function(n){return n.getDevice()}]}},2380:function(n,t,i){var e=i(5085);t.getDevice=function(){var n=e.get().device;return"unknown"!==n.model?n.model:"tablet"===n.type?"tablet":n.isMobile?"mobile":"desktop"}},8412:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(6171)),n.registerAudienceMatcher("device_type",i(1690))}},1690:function(n){n.exports={fieldsNeeded:["device_type"],match:function(n,t){return n.device_type===t.value}}},6171:function(n,t,i){var e=i(5085);n.exports={provides:"device_type",shouldTrack:!0,isSticky:!0,getter:[function(){var n=e.get().device;switch(n.type){case"mobile":return"phone";case"tablet":case"desktop_laptop":return n.type;default:return"other"}}]}},5006:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(5065)),n.registerAudienceMatcher("location",i(9566))}},9566:function(n,t){t.fieldsNeeded=["location"],t.match=function(n,t){if(!n.hasOwnProperty("location"))return!1;var i=n.location,e=t.value.split("|"),r=(e[0]||"").trim(),o=(e[1]||"").trim(),a=(e[2]||"").trim(),u=(e[3]||"").trim(),c=(e.length>4&&e[4]||"").trim();switch(e.length){case 1:if(i.country===r)return!0;break;case 2:if(i.region===o&&i.country===r)return!0;break;case 3:if(i.city===a&&(i.region===o||""===o)&&i.country===r)return!0;break;case 4:if(i.continent===u)return!0;break;case 5:if(i.dma===c)return!0}return!1}},5065:function(n,t,i){var e=i(8944);n.exports={provides:"location",isAsync:!0,getter:[function(){return e.getIPDerivedGeolocation()}]}},1076:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(6817)),n.registerAudienceMatcher("referrer",i(3951))}},3951:function(n,t,i){var e=i(2723);t.fieldsNeeded=["referrer"],t.match=function(n,t){return null!==n.referrer&&e(n.referrer,t)}},6817:function(n,t,i){var e=i(1357),r=i(1361);n.exports={provides:"referrer",shouldTrack:!0,isSticky:!0,getter:[function(){var n=r.getReferrer()||e.getReferrer();return""===n&&(n=null),n}]}},2698:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(5458)),n.registerAudienceMatcher("source_type",i(7897))}},7897:function(n,t,i){var e=i(8201);t.fieldsNeeded=["source_type"],t.match=function(n,t){return e.hasMatch(t.value,t.match,n.source_type)}},5458:function(n,t,i){var e=i(1440),r=i(1357),o=i(1361),a=i(7419),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\\..*?/?$"];n.exports={provides:"source_type",shouldTrack:!0,isSticky:!1,getter:[function(){return function(n,t){var i,c=n(),s=function(){if(e.getQueryParamValue("utm_source")||e.getQueryParamValue("gclid")||e.getQueryParamValue("otm_source"))return"campaign";for(var n=o.getReferrer()||r.getReferrer(),t=0;t<u.length;t++){var i=u[t];if(n.match(i))return"search"}return n&&a.guessDomain(n)!==a.guessDomain(e.getUrl())?"referral":"direct"}();i=s,(!c||"direct"!==i)&&t(s)}}]}},4863:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(1213)),n.registerVisitorProfileProvider(i(5631)),n.registerAudienceMatcher("time_and_day",i(2392))}},2392:function(n,t,i){var e=i(8921);t.fieldsNeeded=["currentTimestamp"],t.match=function(n,t){return e.test(t.value,new Date(n.currentTimestamp))}},1213:function(n,t,i){var e=i(1319);n.exports={provides:"currentTimestamp",shouldTrack:!0,isLazy:!0,getter:[function(){return e.now()}]}},5631:function(n){n.exports={provides:"offset",shouldTrack:!0,isLazy:!0,getter:[function(){return(new Date).getTimezoneOffset()}]}},8921:function(n,t,i){var e=i(9587);function r(n){var t=n.split(":");if(2!==t.length)throw new Error("optly.timeAndDayInterval.timeStringToMinutes: Invalid time string "+n);return 60*parseInt(t[0],10)+parseInt(t[1],10)}t.test=function(n,t){var i=function(n){var t=n.split("_");if(3!==t.length)throw new Error("Invalid time and day string "+n);var i=t[2].split(",");return{start_time:t[0],end_time:t[1],days:i}}(n),o=r(i.start_time),a=r(i.end_time),u=60*t.getHours()+t.getMinutes(),c=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][t.getDay()];return u>=o&&u<=a&&e.includes(i.days,c)}},452:function(n,t,i){n.exports=function(n){n.registerVisitorProfileProvider(i(8805))}},8805:function(n){n.exports={provides:"visitorId",getter:["stores/visitor_id",function(n){return n.getRandomId()}]}},5141:function(n,t,i){var e=i(2588),r=i(1364),o=i(8725),a=i(9805),u=i(7143),c=i(4465),s=i(2339).get("stores/rum"),f="google_analytics_4",l="gtag",d="dataLayer",h="optimizely_decision",v="experience_impression",p=function(n,t){return a.pollFor((function(){return function(n){var t=n.getGlobal(l);return t||null}(c)}),200,50).then((function(i){r.log("GA4 Integration: gtag finally exists, sending now."),s.getSampleRum()&&o.timeEnd("gtagReady"),r.debug("GA4 Integration: calling ga4 with data: "+e.stringify(n)),i("event",v,n),r.debug("GA4 Integration: calling ga4 with custom event data: "+e.stringify(t)),i("event",h,t)}))};var g=function(n,t){var i=c.getGlobal(d);r.debug("GA4 Integration: found dataLayer object "+i),i||(r.debug("GA4 Integration: dataLayer object dataLayer is empty, initializing it"),c.setGlobal(d,[]),i=c.getGlobal(d)),r.log("GA4 Integration: attempting push to dataLayer");try{var o=Object.assign({event:v},n);r.debug("GA4 Integration: pushing data to GTM: "+e.stringify(o)),i.push(o);var a=Object.assign({event:h},t);r.debug("GA4 Integration: pushing custom data to GTM: "+e.stringify(a)),i.push(a)}catch(u){r.warn("GA4 Integration: Push to dataLayer failed: "+u)}return Promise.resolve()},m={preRedirectPolicy:u.PreRedirectPolicies.PERSIST_BEFORE_REDIRECT,postRedirectPolicy:u.PostRedirectPolicies.TRACK_IMMEDIATELY,nonRedirectPolicy:u.NonRedirectPolicies.TRACK_IMMEDIATELY,trackLayerDecision:function(n){var t=n.integrationSettings;if(t&&t[f]){if(n.experimentId&&n.variationId){var i="on"===t[f].is_using_gtm;r.debug("GA4 Integration: is using GTM: "+i);var e,o,a="equal_priority"===n.layerPolicy;r.debug("GA4 Integration: is personalization campaign: "+a),a?(e="OPT-"+n.layerId+"("+n.layerName+")-"+n.experimentId+"("+n.experimentName+")-"+n.variationId+"("+n.variationName+")",o={Campaign:n.layerName+" ("+n.layerId+")",Variation:n.variationName+" ("+n.variationId+")",Holdback:n.isLayerHoldback}):(e="OPT-"+n.experimentId+"("+n.experimentName+")-"+n.variationId+"("+n.variationName+")",o={Experiment:n.experimentName+" ("+n.experimentId+")",Variation:n.variationName+" ("+n.variationId+")",Holdback:n.isLayerHoldback});var u={exp_variant_string:e};return i?g(u,o)["catch"]((function(n){r.warn("Tracker for GTM ",f,"failed:",n)})):p(u,o)["catch"]((function(n){r.warn("Tracker for ",f,"failed:",n)}))}r.debug("GA4 Integration: empty experiment or variation ID, exiting")}else r.debug("GA4 Integration: did not find vendor "+f+" in integration settings, exiting")},serializeSettings:e.stringify,deserializeSettings:e.parse};n.exports=function(n){n.registerAnalyticsTracker("google_analytics_4",m)}},8768:function(n,t,i){var e=i(2588),r=i(1364),o=i(9805),a=i(1361),u=i(7143),c=i(4465),s="google_universal_analytics",f=i(438);var l=function(n,t){return o.pollFor((function(){return function(n){var t=n.getGlobal("GoogleAnalyticsObject");return t?n.getGlobal(t):null}(c)}),200,50).then((function(i){var e=t.universal_analytics_tracker,r=e?e+".":"",o=t.universal_analytics_slot,u=a.getReferrer();u&&i(r+"set","referrer",u);var c={nonInteraction:!0};c["dimension"+o]=n,i(r+"send","event","Optimizely","Assigned To Campaign",c)}))},d={preRedirectPolicy:u.PreRedirectPolicies.PERSIST_BEFORE_REDIRECT,postRedirectPolicy:u.PostRedirectPolicies.TRACK_IMMEDIATELY,nonRedirectPolicy:u.NonRedirectPolicies.TRACK_IMMEDIATELY,trackLayerDecision:function(n){var t=n.integrationSettings;if(t&&t[s]&&n.experimentId&&n.variationId){var i={id:n.layerId,name:n.layerName,policy:n.layerPolicy,integrationStringVersion:n.integrationStringVersion},e={id:n.experimentId,name:n.experimentName},o={id:n.variationId,name:n.variationName},a=n.isLayerHoldback,u=f.generateAnalyticsString(i,e,o,a,150,!0);if(u)return l(u,t[s])["catch"]((function(n){r.warn("Tracker for",s,"failed:",n)}))}},serializeSettings:e.stringify,deserializeSettings:e.parse};n.exports=function(n){n.registerAnalyticsTracker("google_universal_analytics",d)}},3191:function(n,t,i){var e=i(9587),r=i(411),o=i(7435),a=i(7547),u=i(6451).U,c=i(2588),s=i(1364),f=i(7143),l=i(1600),d=i(4465),h=i(6388),v=i(2339),p=(i(1357),i(497)),g=i(609),m=i(2141),_=v.get("stores/global"),w=v.get("stores/tracker_optimizely"),y=t.Error=u("OptimizelyTrackerError"),b="client_activation",E="campaign_activated",I="view_activated",A={revenue:{validate:O,sanitize:Math.floor,excludeFeature:!0},quantity:{validate:O,sanitize:Math.floor,excludeFeature:!0},value:{validate:O,sanitize:e.identity}},T="AUTO",S=[function(){return function(n){P(function(n){return e.extend({entity_id:n.pageId,key:n.pageApiName,timestamp:n.timestamp,uuid:n.eventId,type:I},D(n.eventTags))}(n),n.userFeatures,K(n.layerStates))}}],k=[function(){return function(n){!function(n){var t=e.isNull(_.getAnonymizeIP())?void 0:_.getAnonymizeIP(),i={account_id:n.accountId,anonymize_ip:t,client_name:n.clientName,client_version:n.clientVersion,project_id:n.projectId,visitors:[]};i.revision=n.revision,i.enrich_decisions=!0;var r={session_id:L(n.sessionId),visitor_id:n.visitorId,attributes:[],snapshots:[]},o=K(n.layerStates);m.dispatch(a.REGISTER_TRACKER_VISITOR,{data:i,visitor:r,decisions:o}),Y()}(n),P(function(n){return{entity_id:null,type:b,uuid:n.eventId,timestamp:n.timestamp}}(n),n.userFeatures,K(n.layerStates))}}],R=[function(){return function(n){var t;P((t=n,e.extend({entity_id:t.eventEntityId,key:t.eventApiName,timestamp:t.timestamp,uuid:t.eventId,type:t.eventCategory},D(t.eventTags))),n.userFeatures,K(n.layerStates))}}],N=[function(){return function(n){var t;P((t=n,e.extend({entity_id:t.eventEntityId,key:t.eventApiName,timestamp:t.timestamp,uuid:t.eventId,type:t.eventCategory},D(t.eventTags))),n.userFeatures,K(n.layerStates))}}];function D(n){var t=function(n,t,i){try{C(t),n[i]=t}catch(e){r.emitError(new y("Bad value for eventTags["+i+"]: "+e.message))}return n},i=e.keys(A),o=e.omit(n,i),a=e.pick(n,i),u=e.reduce(o,t,{}),c=e.reduce(a,(function(n,i,e){var o=A[e];o.excludeFeature||t(u,i,e);try{o.validate(i),n[e]=o.sanitize(i),u[e]=n[e]}catch(a){r.emitError(new y("Bad value for eventMetrics["+e+"]: "+a.message))}return n}),{});return c.tags=u,c}function C(n){if(null==n)throw new Error("Feature value is null");if("object"==typeof n){var t;try{t=c.stringify(n)}catch(i){}throw new Error('Feature value is complex: "'+t)}}function O(n){if(null==n)throw new Error("Metric value is null");if(!e.isNumber(n))throw new Error("Metric value is not numeric")}function x(n){return e.reduce(n,(function(n,t){try{C(t.value),n.push({entity_id:t.id||null,key:t.name,type:t.type,value:t.value})}catch(i){s.warn("Error evaluating user feature",t,i)}return n}),[])}function P(n,t,i){m.dispatch(a.REGISTER_TRACKER_EVENT,{event:n,decisions:i}),M(t),Y()}function M(n){var t=x(n);m.dispatch(a.UPDATE_TRACKER_VISITOR_ATTRIBUTES,{attributes:t})}function L(n){return T}function V(){if(w.canSend()){var n=w.hasEventsToSend(),t=w.hasPreviousBatchesToSend();n||t?(t&&(e.each(w.getPreviousBatches(),U),m.dispatch(a.RESET_TRACKER_PREVIOUS_BATCHES)),n&&(m.dispatch(a.FINALIZE_BATCH_SNAPSHOT),U(w.getEventBatch()),m.dispatch(a.RESET_TRACKER_EVENTS))):s.debug("Not sending events because there are no events to send")}else s.debug("Not sending events (holding)")}function U(n){s.debug("Sending ticket:",n);var t=o.generate();h.retryableRequest({url:"https://logx.optimizely.com/v1/events",method:"POST",data:F(n)},t)}function F(n){return e.extend({},e.pick(n,["account_id","anonymize_ip","client_name","client_version","enrich_decisions","project_id","revision"]),{visitors:e.map(n.visitors,z)})}function z(n){return{visitor_id:n.visitor_id,session_id:T,attributes:e.map(n.attributes,G),snapshots:e.map(n.snapshots,j)}}function G(n){return H(n,{entity_id:"e",key:"k",type:"t",value:"v"})}function j(n){var t=n.events;return t=function(n){var t=e.reduce(n,(function(n,t){var i;if(n[i=t.type===I&&e.isEmpty(t.tags)&&e.isEmpty(e.pick(t,e.keys(A)))?t.type:t.uuid]){var r=n[i].timestamp;t.timestamp>r&&(r=t.timestamp),n[i]=e.extend({},n[i],{key:n[i].key+"-"+(t.key||""),entity_id:n[i].entity_id+"-"+t.entity_id,timestamp:r})}else n[i]=t;return n}),{});return e.values(t)}(t),{activationTimestamp:_.getActivationTimestamp(),decisions:e.map(n.decisions,B),events:e.map(t,q)}}function B(n){return H(n,{campaign_id:"c",experiment_id:"x",is_campaign_holdback:"h",variation_id:"v"})}function q(n){return n.key===E&&(n.type=E,delete n.key),H(n,{entity_id:"e",key:"k",quantity:"q",revenue:"$",tags:"a",timestamp:"t",uuid:"u",value:"v",type:"y"})}function H(n,t){return e.reduce(n,(function(n,i,e){return e in t&&(n[t[e]||e]=i),n}),{})}function Y(){if(w.shouldBatch()){if(!w.isPolling()){d.setTimeout((function n(){V(),w.isPolling()&&d.setTimeout(n,1e3)}),1e3),m.dispatch(a.SET_TRACKER_POLLING,!0),d.setTimeout((function(){m.dispatch(a.SET_TRACKER_BATCHING,!1),m.dispatch(a.SET_TRACKER_POLLING,!1)}),1e4)}}else V()}function K(n){return e.map(n,(function(n){return{campaign_id:n.layerId,experiment_id:n.decision.experimentId,variation_id:n.decision.variationId,is_campaign_holdback:n.decision.isLayerHoldback}}))}function $(){var n=w.getPersistableState();if(n)try{s.debug("Persisting pending batch:",n),l.persistTrackerOptimizelyData(n),m.dispatch(a.SET_TRACKER_DIRTY,!1)}catch(t){s.debug("Failed to persist pending batch:",t)}}var W={trackLayerDecision:function(n){n.timing===f.TrackLayerDecisionTimingFlags.postRedirectPolicy?function(n){var t=x(n.userFeatures),i={account_id:n.accountId,anonymize_ip:n.anonymizeIP,client_name:n.clientName,client_version:n.clientVersion,project_id:n.projectId,visitors:[{session_id:L(n.sessionId),visitor_id:n.visitorId,attributes:t,snapshots:[{decisions:[{campaign_id:n.layerId,experiment_id:n.experimentId,variation_id:n.variationId,is_campaign_holdback:n.isLayerHoldback}],events:[{uuid:n.decisionId,entity_id:n.layerId,timestamp:n.timestamp,type:E}]}]}]};m.dispatch(a.REGISTER_PREVIOUS_BATCH,i),Y()}(n):function(n){var t={entity_id:n.layerId,type:E,uuid:n.decisionId,timestamp:n.timestamp};m.dispatch(a.REGISTER_TRACKER_DECISION,{decisionEvent:t,decisions:K(n.layerStates)}),M(n.userFeatures),Y()}(n)},postRedirectPolicy:f.PostRedirectPolicies.TRACK_AFTER_SYNC,nonRedirectPolicy:f.NonRedirectPolicies.TRACK_IMMEDIATELY,onPageActivated:S,onClientActivation:k,onClickEvent:N,onCustomEvent:R};n.exports=function(n){n.registerAnalyticsTracker("optimizely",W),p.on({filter:{type:g.TYPES.ANALYTICS,name:"sendEvents"},handler:function(){m.dispatch(a.SET_TRACKER_SEND_EVENTS,!0),w.isPolling()||V()}}),p.on({filter:{type:g.TYPES.ANALYTICS,name:"holdEvents"},handler:function(){m.dispatch(a.SET_TRACKER_SEND_EVENTS,!1)}}),m.dispatch(a.SET_TRACKER_SEND_EVENTS,!0);var t=p.on({filter:{type:"lifecycle",name:"activated"},handler:function(){w.observe($),p.off(t)}})}},8968:function(n,t,i){n.exports=function(n){n.registerViewProvider(i(5207)),n.registerViewMatcher("url",i(1158))}},1158:function(n,t,i){var e=i(2723);n.exports={fieldsNeeded:["url"],match:function(n,t){return e(n.url,t)}}},5207:function(n,t,i){var e=i(1440);n.exports={provides:"url",getter:[function(){return e.getUrl()}]}},7545:function(n,t,i){var e=i(9587),r=i(2339),o=i(497),a=i(609),u=i(4465),c=r.get("stores/directive"),s="optimizelyPreview",f=function(n){u.getGlobal(s).push(n)};t.initialize=function(n){c.isSlave()&&function(n){var t=!1;if(e.isArray(window.optimizely)&&e.each(window.optimizely,(function(i){e.isArray(i)&&"verifyPreviewProject"===i[0]&&String(i[1])===n&&(t=!0)})),!t)throw new Error("Preview projectId: "+n+" does not match expected")}(n),o.on({filter:{type:a.TYPES.ANALYTICS,name:"trackEvent"},handler:f}),o.on({filter:{type:a.TYPES.LIFECYCLE,name:"viewActivated"},handler:f}),o.on({filter:{type:a.TYPES.LIFECYCLE,name:"layerDecided"},handler:f}),o.on({filter:{type:"error"},publicOnly:!0,handler:f})},t.setupPreviewGlobal=function(){u.getGlobal(s)||u.setGlobal(s,[])},t.pushToPreviewGlobal=function(n){f(n)}},1752:function(n,t,i){var e=i(9587),r=i(7435),o=i(1056),a=i(4921),u=i(1319),c=i(1357),s=i(2141),f=i(5290).mM,l=i(1364),d=i(9670),h=i(4222).Promise,v=i(1600),p=i(4465),g=i(6388),m=i(7547),_=i(373),w=i(2339),y=w.get("stores/async_request"),b=w.get("stores/client_metadata"),E=w.get("stores/global"),I=w.get("stores/rum"),A=w.get("stores/performance"),T=w.get("stores/xdomain"),S=w.get("stores/view_data"),k=i(5580),R="https://rum.optimizely.com/rum",N="1.0";function D(n){return e.isEmpty(n)?h.resolve():(t=function(){return g.request({url:R,method:"POST",data:n,withCredentials:!0}).then((function(n){return o.resolveRequest("RUM_FIRST_BEACON",n),n}))["catch"]((function(n){throw l.error("POST to client-rum failed:",n),o.rejectRequest("RUM_FIRST_BEACON",n),n}))},(i=y.getPromise("RUM_FIRST_BEACON"))?i.then(t):o.makeAsyncRequest("RUM_FIRST_BEACON",t));var t,i}function C(){try{return!c.querySelector("body")}catch(n){return null}}function O(){var n=p.getGlobal("performance"),t=n?n.timing:{},i=A.getMarks()||{},r=I.getApiData(),o=I.getDOMObservationData(),a=k.get("state").getActiveExperimentIds(),u=I.getFeaturesNeededData(),s=c.parseUri(I.getScriptSrc()),l=I.getRumData()||{},h=l.extras||{};e.assign(h,{apiCalls:r,DOMObservationData:o,paintTimings:P(),activeExperimentIds:a,numPages:S.getNumberOfPages(),snippet:{scheme:s.protocol.slice(0,-1),host:s.host,path:s.pathname},networkInfo:x(),experimental:E.getExperimental(),featuresNeeded:u,beacon:{cjsOnload:!0}});var g=p.getGlobal("Prototype");g&&!e.isUndefined(g.Version)&&(h.prototypeJS=g.Version);var m=!1;m=!0;var _=T.getFrames();_.length&&(h.xdFramesLoaded=_.length);var w={id:I.getRumId(),v:N,project:E.getSnippetId()||E.getProjectId(),navigationTimings:t,userTimings:i,xd:m,apis:e.keys(r),extras:h,sampleRate:l.sampleRate};(function(){var n=f.keys(),t=e.filter(e.map(n,(function(n){var t=v.getStorageKeyFromKey(n);return t?{key:n,isForeign:v.isForeignKey(n),category:t,size:n.length+f.getItem(n).length}:null}))),i=e.reduce(t,(function(n,t){var i=t.key,e=v.getIdFromKey(i);return e?((t.isForeign?n.foreign:n.local)[e]=!0,n):n}),{local:{},foreign:{}}),r=e.chain(t).filter({isForeign:!0}).reduce((function(n,t){return n[t.key.split("_")[0]]=!0,n}),{}).value(),o={local:0,foreign:0},a={local:{},foreign:{}};e.forEach(t,(function(n){var t=n.isForeign?"foreign":"local";o[t]+=n.size,a[t][n.category]||(a[t][n.category]=0),a[t][n.category]+=n.size}));var u={numKeys:f.allKeys().length,sizeKeys:f.allKeys().toString().length,sizeValues:f.allValues().toString().length,idCounts:{local:e.keys(i.local).length,foreign:e.keys(i.foreign).length},foreignOriginCount:e.keys(r).length,byteTotals:o,byteTotalsByCategory:a};return d.estimateStorage().then((function(n){return e.assign(u,{storageEstimate:n})}))})().then((function(n){D(e.assign(w,{lsMetrics:n}))}))}function x(){var n=p.getGlobal("navigator");if(n&&n.connection)return e.pick(n.connection,["downlink","rtt","effectiveType"])}function P(){var n=p.getGlobal("performance");if(n)try{var t=n.getEntriesByType("paint");if(e.isEmpty(t))return;return e.reduce(t,(function(n,t){return n[t.name]=Math.round(t.startTime),n}),{})}catch(i){return}}t.initialize=function(){var n,t=r.generate().replace(/-/g,"");n=Math.random()<.01;var i=function(){var n=c.getCurrentScript();if(n)return n.src}();s.dispatch(m.SET_RUM_DATA,{id:t,RumHost:R,inRumSample:n,src:i,data:{id:t,sync:C(),timebase:u.now(),sampleRate:.01,url:i,extras:{initialDOMState:c.getReadyState()}}})},t.queueBeacons=function(){return I.getSampleRum()?(function(){try{p.getGlobal("requestAnimationFrame")((function(){var n=I.getRumData().timebase;s.dispatch(m.SET_RUM_DATA,{data:{render:u.now()-(n||0)}})}))}catch(n){return}}(),c.isLoaded()?p.setTimeout(O,3e3):p.addEventListener("load",O),new h((function(n,t){p.setTimeout((function(){(function(){!function(){var n={id:I.getRumId(),v:N,account:E.getAccountId(),project:E.getSnippetId()||E.getProjectId(),snippet:E.getSnippetId(),revision:E.getRevision(),clientVersion:b.getClientVersion(),hasSlave:!1,wxhr:!0,extras:{}},t=v.getPersistedBehaviorEventCount(),i=a.getEventCount();n.numBehaviorEvents=i;var r=i-t;e.extend(n.extras,{behaviorEventCountDiff:r,behaviorEventCountDecreased:r<0}),e.assign(n,function(){var n=p.getGlobal("performance");if(!n)return;var t,i=I.getScriptSrc();try{if(i){l.debug("Using derived script src: ",i);var r=n.getEntriesByName(i);r.length>0&&(t=r[0])}if(!t){var o=/\/\/[^.]+\.optimizely\.(com|test)\/(js|api\/client)\/[\d]+\.js/gi;l.debug("Scanning resource timing entries with regex");var a=n.getEntriesByType("resource");t=e.find(a,(function(n){return o.test(n.name)}))}if(t)return e.mapValues(_.ResourceTimingAttributes,(function(n,i){var e=t[i];return"number"==typeof e?Math.round(1e3*(e||0))/1e3:"serverTiming"===i?e||[]:void 0}))}catch(u){return}}(),A.getDurationsFor(e.values(_.RUMPerformanceTimingAttributes))),s.dispatch(m.SET_RUM_DATA,{data:n})}();var n=I.getRumData(),t=A.getMarks()||{};return n.extras=n.extras||{},n.extras.beacon={cjsTimeout:!0},n.userTimings=t,D(n=e.pickBy(n,(function(n){return!e.isUndefined(n)})))})().then(n,t)}),3e3)}))["catch"]((function(n){l.warn("RUM / Error sending data:",n)}))):h.resolve()}},9254:function(){}},__webpack_module_cache__={};function __webpack_require__(n){var t=__webpack_module_cache__[n];if(t!==undefined)return t.exports;var i=__webpack_module_cache__[n]={id:n,loaded:!1,exports:{}};return __webpack_modules__[n].call(i.exports,i,i.exports,__webpack_require__),i.loaded=!0,i.exports}__webpack_require__.amdO={},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),__webpack_require__.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n};var __webpack_exports__={};!function(){try{!function(){var n=function(n){var t=[__webpack_require__(452)];t.push(__webpack_require__(8416)),t.push(__webpack_require__(368)),t.push(__webpack_require__(768)),t.push(__webpack_require__(9095)),t.push(__webpack_require__(447)),t.push(__webpack_require__(845)),t.push(__webpack_require__(4083)),t.push(__webpack_require__(2739)),t.push(__webpack_require__(8412)),t.push(__webpack_require__(5006)),t.push(__webpack_require__(1076)),t.push(__webpack_require__(2698)),t.push(__webpack_require__(4863)),t.push(__webpack_require__(8768)),t.push(__webpack_require__(5141)),t.push(__webpack_require__(3191)),t.push(__webpack_require__(8968)),t.push(__webpack_require__(9981)),t.push(__webpack_require__(4826)),t.push(__webpack_require__(2126)),t.push(__webpack_require__(9359)),t.push(__webpack_require__(2254)),f.initializePlugins(t)};window.performance&&window.performance.mark&&window.performance.mark("optimizely:blockBegin"),__webpack_require__(1752).initialize();var t=__webpack_require__(8725);t.time("gtagReady");var i=__webpack_require__(1364),e=__webpack_require__(2339);__webpack_require__(3374);var r=e.get("stores/directive");if(!__webpack_require__(6388).isCORSSupported())throw new Error("CORS is not supported on this browser, aborting.");var o,a=__webpack_require__(5834),u=__webpack_require__(2970),c=__webpack_require__(1317),s={"accountId": "16488430484", "namespace": "16488430484", "revision": "2426", "anonymizeIP": true, "enableForceParameters": true, "experimental": {"trimPages": false}, "projectId": "16488430484", "layers": [{"changes": null, "id": "28490360005", "name": "Paid Acquisition - Bring us all a bit closer - Prospecting 03/26/2024 - Get Started for Free CTA", "commitId": "28504470063", "groupId": null, "holdback": 0, "activation": {}, "integrationSettings": {"google_analytics_4": {"is_using_gtm": "on"}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": null, "audienceName": "Everyone else", "changes": null, "id": "28492220021", "integrationSettings": null, "variations": [{"id": "28422460593", "name": "Original", "actions": []}, {"id": "28494580004", "name": "Variation #1", "actions": [{"viewId": "28348210831", "changes": [{"css": {}, "dependencies": [], "attributes": {"html": "Get Started"}, "type": "attribute", "id": "8053e71affce40b1bd158e42f17d7cac", "selector": "#sidemenu-get-a-quote"}, {"css": {}, "dependencies": [], "attributes": {"html": "Every Bitly plan includes Link Management, QR Codes and Link-in-bio \u2014 and the data you need to track them"}, "type": "attribute", "id": "99cd6224a51641019926a324e6353b5a", "selector": ".fancy-list .header-m"}, {"css": {}, "dependencies": [], "attributes": {"html": "\u2014 and the data you need to track them", "remove": true}, "type": "attribute", "id": "c2850ca54c3e43c988af374d89861f63", "selector": ".fancy-list h4"}, {"css": {}, "dependencies": [], "attributes": {"html": "Get Started for Free"}, "type": "attribute", "id": "39ca9597479f43fcb5ac3548677a88a8", "selector": "#pricing_clicked_link_management"}, {"css": {}, "dependencies": [], "attributes": {"html": "Get Started for Free"}, "type": "attribute", "id": "d847ab211de34015800114bbc2cf709e", "selector": "#pricing_clicked_qr_codes"}, {"css": {}, "dependencies": [], "attributes": {"html": "Get Started for Free"}, "type": "attribute", "id": "2bb94a28791649f2ba6b96ff8dfb87a1", "selector": "#pricing_clicked_link_in_bio"}, {"css": {}, "dependencies": [], "attributes": {"html": "Connect and ignite action with every link.", "style": "min-height:0"}, "type": "attribute", "id": "b9181fa8718946e59f635242edd987c2", "selector": ".align-top > div:nth-of-type(1) p:nth-of-type(1)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Turn your links into powerful brand assets with simple customization."}, "type": "attribute", "id": "fa2597dd75e141b287e10e914fe2e03d", "selector": ".align-top > div:nth-of-type(1) li:nth-of-type(1)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Aggregate, manage and track all of your links from a single, centralized location."}, "type": "attribute", "id": "ec9bddb8a48d4697ae3d4b40c06afbed", "selector": ".align-top > div:nth-of-type(1) li:nth-of-type(2)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Capture data with every click so you can make smarter decisions."}, "type": "attribute", "id": "f899000bd55240368b7cd06d7c3aa499", "selector": ".align-top > div:nth-of-type(1) li:nth-of-type(3)"}, {"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "757e05916c8d4fb2a98e10ddad7b1520", "selector": ".align-top > div:nth-of-type(1) li:nth-of-type(4)"}, {"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "b04b83ec68d4456e85e25700294303e2", "selector": ".align-top > div:nth-of-type(1) strong"}, {"css": {}, "dependencies": [], "attributes": {"html": "Create custom QR Codes in seconds.", "style": "min-height:0"}, "type": "attribute", "id": "64a7d93beff94c53b192384ca6f4788e", "selector": ".align-top > div:nth-of-type(2) p:nth-of-type(1)"}, {"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "d403cb694001448e865b7c2dd23b2406", "selector": ".align-top > div:nth-of-type(2) strong"}, {"css": {}, "dependencies": [], "attributes": {"html": "Customize QR Codes with your logo, brand colors and more to grab attention."}, "type": "attribute", "id": "b4583299d98d4dee9f579ca51ca10ddd", "selector": ".align-top > div:nth-of-type(2) li:nth-of-type(1)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Analyze detailed scan data so you know which QR Codes are working."}, "type": "attribute", "id": "3041176fb2714a89abba25a455be9bec", "selector": ".align-top > div:nth-of-type(2) li:nth-of-type(2)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Manage QR Codes and links in a single shared dashboard."}, "type": "attribute", "id": "9c8c40c241c24a15a3bd85e845a87663", "selector": ".align-top > div:nth-of-type(2) li:nth-of-type(3)"}, {"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "c8ac8af528b1436fb008ad816bb6839f", "selector": ".align-top > div:nth-of-type(2) li:nth-of-type(4)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Get your links working 10x harder.", "style": "min-height:0"}, "type": "attribute", "id": "744cde1f68d54a8f9dc22a09e85beadd", "selector": ".fancy-list div:nth-of-type(3) p:nth-of-type(1)"}, {"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "70761f24793949c89846ed10bc4588b6", "selector": ".fancy-list div:nth-of-type(3) strong"}, {"css": {}, "dependencies": [], "attributes": {"html": "Drive more views, sales, subscribers and leads with custom mini landing pages."}, "type": "attribute", "id": "767b7d4b7cbd47eb99ed7aa3b9e844ce", "selector": ".fancy-list div:nth-of-type(3) li:nth-of-type(1)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Build personalized connection experiences without any coding."}, "type": "attribute", "id": "5b2e74f519b64b60b0e9e94d2ed31bd6", "selector": ".fancy-list div:nth-of-type(3) li:nth-of-type(2)"}, {"css": {}, "dependencies": [], "attributes": {"html": "Aggregate, manage and track all your links from one centralized location."}, "type": "attribute", "id": "879732734c304fca99a0ed0fdfcac6e4", "selector": ".fancy-list div:nth-of-type(3) li:nth-of-type(3)"}, {"css": {}, "dependencies": [], "attributes": {"remove": true}, "type": "attribute", "id": "289bc9e3e15444b18418c0a24491e709", "selector": ".fancy-list div:nth-of-type(3) li:nth-of-type(4)"}, {"css": {}, "dependencies": [], "attributes": {"html": "<div class=\"hero-wrap\"> <div class=\"grid-container\"> <div class=\"inner-content grid-x grid-margin-x grid-padding-x\"> <div class=\"cell large-12\"><h1 style=\"text-align: left; margin-bottom: 24px;\">Bitly made link management effortless.<br> Now, our Connections Platform<br>helps you do so much more.</h1>\n <h2>Maciej, add your content here.</h2> \n <p><a id=\"getStartedForFreeBtn1\" class=\"button button-large smooth\" href=\"#pricing\" data-label=\"Get Started for Free\">Get Started for Free</a></p> </div> </div> </div> </div>"}, "type": "attribute", "id": "6168878e47fb4511b09612fd8adef344", "selector": ".hero-content"}, {"css": {}, "dependencies": [], "attributes": {"html": "Short Links, QR Codes, Link-in-bio, and Analytics."}, "type": "attribute", "id": "80ccd37b40cd4d998dcc50c002732098", "selector": ".large-12 > h2"}, {"css": {}, "dependencies": [], "attributes": {"html": "Bitly goes beyond URL shortening.<br data-optly-8d12c929-2a06-465b-a507-2cc25093b151=\"\">Now, our Connections Platform<br data-optly-8d12c929-2a06-465b-a507-2cc25093b151=\"\">helps you do so much more."}, "type": "attribute", "id": "a014c907962a45d4a67b7cc5a14bc8da", "selector": "h1"}, {"id": "29D3FD77-833B-4FEB-8F60-8F138C6C351D", "type": "append", "dependencies": [], "selector": ".testimonial-block", "value": "<h3 style=\"text-align:center;margin-top:80px;text-wrap:balance;max-width:900px;margin:80px auto 0\">Plans for businesses of all sizes \u2014 start with the one that's right for you</h3>", "operator": "append"}]}]}], "weightDistributions": [{"entityId": "28422460593", "endOfRange": 5000}, {"entityId": "28494580004", "endOfRange": 10000}], "name": "Paid Acquisition - Bring us all a bit closer - Prospecting 03/26/2024 - Get Started for Free CTA", "bucketingStrategy": null}], "policy": "single_experiment", "viewIds": ["28348210831"], "weightDistributions": null, "decisionMetadata": null}, {"changes": null, "id": "28562840221", "name": "Homepage - Q1 2024 Website Redesign", "commitId": "28581090342", "groupId": null, "holdback": 8000, "activation": {}, "integrationSettings": {"google_analytics_4": {"is_using_gtm": "on"}}, "integrationStringVersion": 2, "experiments": [{"audienceIds": ["and", "16902246480"], "audienceName": "United States Only", "changes": null, "id": "28581060329", "integrationSettings": null, "variations": [{"id": "28643310006", "name": "V1 Original", "actions": [{"viewId": "28631890021", "changes": [{"dest": "https://bitly.com/pages/home", "allowAdditionalRedirect": true, "dependencies": [], "preserveParameters": true, "type": "redirect", "id": "f1fe2a241e0247239d2c01bddd16a053"}]}]}, {"id": "28569110291", "name": "V2 Redesign", "actions": [{"viewId": "28631890021", "changes": [{"dest": "https://bitly.com/pages/home/cp", "allowAdditionalRedirect": true, "dependencies": [], "preserveParameters": true, "type": "redirect", "id": "c367124f3c92456980461a879f5b496a"}]}]}], "weightDistributions": [{"entityId": "28643310006", "endOfRange": 5000}, {"entityId": "28569110291", "endOfRange": 10000}], "name": "Homepage - Q1 2024 Website Redesign", "bucketingStrategy": null}], "policy": "single_experiment", "viewIds": ["28631890021"], "weightDistributions": null, "decisionMetadata": null}], "groups": [], "audiences": [{"id": "16902246480", "name": "United States Only", "conditions": ["and", ["or", ["or", {"match": null, "name": null, "type": "location", "value": "US"}]]]}], "listTargetingKeys": [], "visitorAttributes": [], "visitorIdLocator": null, "integrationSettings": [], "views": [{"id": "16900371632", "category": "other", "apiName": "16488430484_clicks_to__get_started_free_homepage_hero_utm", "name": "Clicks to - Get Started Free (Homepage Hero utm)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=site-free-linkbar&utm_source=organic&utm_medium=website&utm_campaign=null&utm_cta=web2-blank-home-hero-getstarted-getstarted-pricing"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16902271553", "category": "other", "apiName": "16488430484_get_a_quote_form", "name": "Get a Quote Form", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/discover-enterprise"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16908392282", "category": "other", "apiName": "16488430484_sitewide", "name": "Sitewide", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "https://bitly.com/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16908570892", "category": "other", "apiName": "16488430484_thank_you", "name": "Thank You", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/pages/thank-you"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16911475303", "category": "other", "apiName": "16488430484_pricing_page", "name": "Pricing Page", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/pages/pricing"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/pricing/v1"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/pricing/v2"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/pricing/v3"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16916161619", "category": "other", "apiName": "16488430484_clicks_to__get_a_quote_pricing_page_utm", "name": "Clicks to - Get a Quote UTM (Pricing Page)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=Pricing&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-pricing-enterprisebutton-getenterprise-getenterprise-enterprise"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16917125329", "category": "other", "apiName": "16488430484_clicks_to__get_a_quote_digital_marketing_utm", "name": "Clicks to - Get a Quote (Solutions - Digital Marketing utm)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=Digital%20Marketing&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-digitalmarketing-hero-getenterprise-getenterprise-enterprise"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16919584762", "category": "other", "apiName": "16488430484_clicks_to__get_a_quote_features__all_utm", "name": "Clicks to - Get a Quote UTM (Features Pages)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=Link%20Shortening&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-linkshortening-hero-getenterprise-getenterprise-enterprise"}, {"match": "substring", "type": "url", "value": "utm_content=Branded%20Links&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-brandedlinks-hero-getenterprise-getenterprise-enterprise"}, {"match": "substring", "type": "url", "value": "utm_content=Mobile%20Links&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-mobilelinks-hero-getenterprise-getenterprise-enterprise"}, {"match": "substring", "type": "url", "value": "utm_content=Campaign%20Management&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-campaignmanagement-hero-getenterprise-getenterprise-enterprise"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16919732211", "category": "other", "apiName": "16488430484_clicks_to__get_started_free_homepage_footer_utm", "name": "Clicks to - Get Started Free UTM (Sitewide Footer)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=site-free-linkbar&utm_source=organic&utm_medium=website&utm_campaign=null&utm_cta=site-global-linkbar"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16921263725", "category": "other", "apiName": "16488430484_clicks_to__get_a_quote_solutions__all_utm", "name": "Clicks to - Get a Quote UTM (Solutions Pages)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=Social%20Media&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-socialmedia-hero-getenterprise-getenterprise-enterprise"}, {"match": "substring", "type": "url", "value": "utm_content=Digital%20Marketing&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-digitalmarketing-hero-getenterprise-getenterprise-enterprise"}, {"match": "substring", "type": "url", "value": "utm_content=Customer%20Service&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-customerservice-hero-getenterprise-getenterprise-enterprise"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16921272314", "category": "other", "apiName": "16488430484_homepage", "name": "Homepage", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16922110282", "category": "other", "apiName": "16488430484_solutions", "name": "Solutions", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/solutions/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16931742269", "category": "other", "apiName": "16488430484_clicks_to__get_a_quote_sitewide_nav_utm", "name": "Clicks to - Get a Quote UTM (Sitewide Nav)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=Navigation&utm_source=organic&utm_medium=website&utm_campaign=website"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16933412642", "category": "other", "apiName": "16488430484_clicks_to__get_a_quote_why_bitly__all_utm", "name": "Clicks to - Get a Quote UTM (Why Bitly Pages)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "utm_content=Bitly%20101&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-bitly101-hero-getenterprise-getenterprise-enterprise"}, {"match": "substring", "type": "url", "value": "utm_content=Integrations%20&%20API&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-integrations-hero-getenterprise-getenterprise-enterprise"}, {"match": "substring", "type": "url", "value": "utm_content=Enterprise-Class&utm_source=organic&utm_medium=website&utm_campaign=website&utm_cta=web2-blank-enterprise-hero-getenterprise-getenterprise-enterprise"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16933492182", "category": "other", "apiName": "16488430484_why_bitly", "name": "Why Bitly", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/why-bitly/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "16937132072", "category": "other", "apiName": "16488430484_feature_pages", "name": "Feature Pages", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "/features/"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "17106890394", "category": "other", "apiName": "16488430484_hybrid_pricing__for_basic_increase_in_price_test", "name": "Hybrid Pricing - For Basic Increase in Price Test", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/pages/pricing"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/pricing/v2"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/pricing/v1"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "17489692392", "category": "other", "apiName": "16488430484_get_a_quote_homepage_hero", "name": "Get a Quote (Homepage Hero)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "https://bitly.com/pages/landing/discover-enterprise/?utm_content=Home&utm_source=organic&utm_medium=website"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "17545080032", "category": "other", "apiName": "16488430484_get_started_for_free_home_page", "name": "Get Started for Free (Home Page)", "staticConditions": ["or", ["or", {"match": "substring", "type": "url", "value": "https://bitly.com/pages/pricing?utm_content=site-free-linkbar&utm_source=organic&utm_medium=website&utm_campaign=null&utm_cta=web2-blank-home-hero-getstarted-getstarted-pricing"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "21498430537", "category": "other", "apiName": "16488430484_paid_search_lp_hybrid_page", "name": "Paid Search LP Hybrid Page", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/url-shortener"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/url-shortener-lp"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/introduction-to-bitly"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/introduction-to-bitly-lp"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/bitly-introduction"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/qr-codes-lp"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/qr-codes-get-started"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/bringing-us-all-a-bit-closer-lp"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/bringing-us-a-bit-closer-lp"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "21784960102", "category": "other", "apiName": "16488430484_homepage_hybrid_page", "name": "Homepage Hybrid Page", "staticConditions": ["or", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/pages/home/v1"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/home/v2"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/home/v3"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/home/v4"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/home"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/home/cp"}, {"match": "simple", "type": "url", "value": "https://bitly.com/pages/home/bcp"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "28348210831", "category": "other", "apiName": "16488430484_url_targeting_for_paid_acquisition_bringing_us_all", "name": "URL Targeting for Paid Acquisition - Bring us all a bit closer - Prospecting 03/26/2024 - Get Started for Free CTA", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com/pages/landing/bringing-us-all-a-bit-closer"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}, {"id": "28631890021", "category": "other", "apiName": "16488430484_url_targeting_for_homepage_Q1_2024_redesign", "name": "URL Targeting for Homepage - Q1 2024 Website Redesign", "staticConditions": ["and", ["or", {"match": "simple", "type": "url", "value": "https://bitly.com"}]], "deactivationEnabled": false, "undoOnDeactivation": false, "tags": []}], "events": [{"id": "16894773342", "viewId": "16933492182", "name": "Clicks to - Get Started (Why Bitly)", "category": "other", "apiName": "16488430484_clicks_to__get_started_why_bitly", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".button-large"}}, {"id": "16926040376", "viewId": "16921272314", "name": "Clicks to - Get Started (Hero)", "category": "other", "apiName": "16488430484_clicks_to__get_started_hero", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".large-7 a.button-large"}}, {"id": "16929541392", "viewId": "16922110282", "name": "Clicks to - Get Started (Solutions Page)", "category": "other", "apiName": "16488430484_clicks_to__get_started_solutions", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".button-large"}}, {"id": "16931741714", "viewId": "16911475303", "name": "Clicks to - Get Started (Pricing Page)", "category": "other", "apiName": "16488430484_clicks_to__get_started_pricing", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#basic-signup.button"}}, {"id": "16935391630", "viewId": "16911475303", "name": "Clicks to - Get Started Free (Pricing Page)", "category": "other", "apiName": "16488430484_clicks_to__get_started_free_pricing", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#pricing-top > div:nth-of-type(1) a.button"}}, {"id": "16939291448", "viewId": "16937132072", "name": "Clicks to - Get Started (Features Page)", "category": "other", "apiName": "16488430484_clicks_to__get_started_features", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".button-large"}}, {"id": "17033624353", "viewId": "17106890394", "name": "V2 Pricing - Free Click", "category": "other", "apiName": "16488430484_basic_price_increase__free", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#post-5451 > div > section.full-width-content.text-content.no-padding-bottom > div > div > div > h2 > a, #post-60 > div > section.full-width-content.text-content.no-padding-bottom > div > div > div > h2 > a, #post-6362 > div > section.full-width-content.text-content.no-padding-bottom > div > div > div > h2 > a, #post-6379 > div > section.full-width-content.text-content.no-padding-bottom > div > div > div > h2 > a, #post-6438 > div > section.full-width-content.text-content.no-padding-bottom > div > div > div > h2 > a"}}, {"id": "17067432350", "viewId": "17106890394", "name": "V2 Pricing - Basic Click", "category": "other", "apiName": "16488430484_basic_price_increase__basic", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#pricing-top > div:nth-child(1) > div > div.plan-cta > p > a, #basic-signup"}}, {"id": "17136070004", "viewId": "17106890394", "name": "V2 Pricing - Customized Solutions Click", "category": "other", "apiName": "16488430484_basic_price_increase__customized", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".no-price a.button, #pricing-top > div.plan-column.cell.large-auto.no-price.separate > div > div.plan-cta > p > a, #pricing-top > div:nth-child(2) > div > div.plan-cta > p > a, #pricing-top > div.plan-column.cell.large-auto.no-price > div > div.plan-cta > p > a, #pricing-top > div.plan-column.cell.large-auto.no-price.separate > div > div.plan-cta > p > a, #pricing-top > div:nth-child(3) > div > div.plan-cta > p > a"}}, {"id": "19956214918", "viewId": "17106890394", "name": "V2 Pricing - Premium Click", "category": "other", "apiName": "16488430484_v2_pricing__premium_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#pricing-top > div:nth-of-type(2) a.button, #pricing-top > div:nth-child(2) > div > div.plan-cta > p > a"}}, {"id": "20486563830", "viewId": "16911475303", "name": "V3 Pricing - Growth Click", "category": "other", "apiName": "16488430484_v3_pricing_growth_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#growth-plan-btn-top, #growth-plan-column-link-top, #growth-plan-column-link-bottom"}}, {"id": "20490095422", "viewId": "16911475303", "name": "V3 Pricing - Enterprise Click", "category": "other", "apiName": "16488430484_v3_pricing__enterprise_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#enterprise-plan-btn-top, #enterprise-plan-column-link-top, #enterprise-plan-column-link-bottom"}}, {"id": "20495704366", "viewId": "16911475303", "name": "V3 Pricing - Free Click", "category": "other", "apiName": "16488430484_v3_pricing__free_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#free-plan-btn-top, #free-plan-body-link, #free-plan-column-link-top, #free-plan-column-link-bottom, #free-plan-btn-footer-widget-pricing"}}, {"id": "20501423626", "viewId": "16911475303", "name": "V3 Pricing - Premium Click", "category": "other", "apiName": "16488430484_v3_pricing__premium_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#premium-plan-btn-top, #premium-plan-column-link-top, #premium-plan-column-link-bottom"}}, {"id": "21456662581", "viewId": "21498430537", "name": "Free Clicks", "category": "other", "apiName": "16488430484_free_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#free-plan-body-link"}}, {"id": "21507171909", "viewId": "21498430537", "name": "Enterprise Clicks", "category": "other", "apiName": "16488430484_enterprise_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#enterprise-plan-btn-top"}}, {"id": "21509341264", "viewId": "21498430537", "name": "Premium Clicks", "category": "other", "apiName": "16488430484_premium_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#premium-plan-btn-top"}}, {"id": "21531530161", "viewId": "21498430537", "name": "Growth Clicks", "category": "other", "apiName": "16488430484_basic_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#growth-plan-btn-top"}}, {"id": "21711592755", "viewId": "16911475303", "name": "V3 Pricing - Core Click", "category": "other", "apiName": "16488430484_v3_pricing_core_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#core-plan-btn-top, #core-plan-column-link-top, #core-plan-column-link-bottom"}}, {"id": "21730631551", "viewId": "21784960102", "name": "All Pricing Clicks", "category": "other", "apiName": "16488430484_all_pricing_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".off-canvas-wrapper a[href*=\"pricing\"]"}}, {"id": "21740490372", "viewId": "21784960102", "name": "Get a Quote Clicks", "category": "other", "apiName": "16488430484_get_a_quote_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sidemenu-get-a-quote-2, #heroGetAQuoteLnk"}}, {"id": "21763430786", "viewId": "21784960102", "name": "Hero Banner - Pricing Clicks", "category": "other", "apiName": "16488430484_hero_banner__pricing_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#getStartedForFreeBtn1"}}, {"id": "21805540934", "viewId": "21784960102", "name": "Body - Learn More Clicks", "category": "other", "apiName": "16488430484_learn_more_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#product_clicked_link_management, #product_clicked_qr_codes, #product_clicked_link_in_bio"}}, {"id": "21825101118", "viewId": "21784960102", "name": "Body - Pricing / Sign Up Clicks", "category": "other", "apiName": "16488430484_body__get_started_for_free_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#pricing_clicked_link_management, #signup_clicked_link_management, #pricing_clicked_qr_codes, #signup_clicked_qr_codes, #pricing_clicked_link_in_bio, #signup_clicked_link_in_bio"}}, {"id": "21898771653", "viewId": "16911475303", "name": "V3 Pricing - Growth Monthly Click", "category": "other", "apiName": "16488430484_v3_pricing_growth_monthly_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".is-year #growth-plan-btn-top, .is-year #growth-plan-column-link-top, .is-year #growth-plan-column-link-bottom"}}, {"id": "21916411726", "viewId": "16911475303", "name": "V3 Pricing - Premium Monthly Click", "category": "other", "apiName": "16488430484_v3_pricing__premium_monthly_click", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": ".is-year #premium-plan-btn-top, .is-year #premium-plan-column-link-top, .is-year #premium-plan-column-link-bottom"}}, {"id": "22013110381", "viewId": "21498430537", "name": "Shorten Clicks", "category": "other", "apiName": "16488430484_shorten_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#shorten_btn"}}, {"id": "22015000348", "viewId": "21498430537", "name": "Core Clicks", "category": "other", "apiName": "16488430484_starter_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#core-plan-btn-top"}}, {"id": "22142970402", "viewId": "21784960102", "name": "Homepage Pop-up Clicks", "category": "other", "apiName": "16488430484_homepage_popup_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#homepage-modal-btn"}}, {"id": "22309400762", "viewId": "21784960102", "name": "Anonymous Shortener Clicks", "category": "other", "apiName": "16488430484_anonymous_shortener_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#shorten_btn"}}, {"id": "23495822224", "viewId": "21498430537", "name": "Header CTA Clicks", "category": "other", "apiName": "16488430484_nav_cta", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#sidemenu-get-a-quote"}}, {"id": "23572630622", "viewId": "21498430537", "name": "Hero CTA Clicks", "category": "other", "apiName": "16488430484_hero_cta", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#hero-cta"}}, {"id": "24168501132", "viewId": "21784960102", "name": "Free Hook - Short Link Sign Up Clicks", "category": "other", "apiName": "16488430484_free_hook__link_sign_up_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#form-short-link-submit"}}, {"id": "24250010677", "viewId": "21784960102", "name": "Free Hook - LIB Tab Clicks", "category": "other", "apiName": "16488430484_free_hook__linkinbio_tab_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#tab-lib"}}, {"id": "24252920247", "viewId": "21784960102", "name": "Free Hook - LIB Sign Up Clicks", "category": "other", "apiName": "16488430484_free_hook__lib_sign_up_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#form-lib-submit"}}, {"id": "24263920269", "viewId": "21784960102", "name": "Free Hook - QR Code Tab Clicks", "category": "other", "apiName": "16488430484_free_hook__qr_code_tab_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#tab-qr-code"}}, {"id": "24268640325", "viewId": "21784960102", "name": "Free Hook - QR Code Sign Up Clicks", "category": "other", "apiName": "16488430484_free_hook__qr_code_sign_up_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#form-qr-submit"}}, {"id": "24297410047", "viewId": "21784960102", "name": "Free Hook - Short Link Tab Clicks", "category": "other", "apiName": "16488430484_free_hook__short_link_tab_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#tab-short-link"}}, {"id": "24941301900", "viewId": "21498430537", "name": "Free Hook - Short Link Tab Clicks", "category": "other", "apiName": "16488430484_free_hook__short_link_tab_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#tab-short-link"}}, {"id": "24978630648", "viewId": "21498430537", "name": "Free Hook - QR Code Tab Clicks", "category": "other", "apiName": "16488430484_free_hook__qr_code_tab_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#tab-qr-code"}}, {"id": "25012570159", "viewId": "21498430537", "name": "Free Hook - Short Link Sign Up Clicks", "category": "other", "apiName": "16488430484_free_hook__short_link_sign_up_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#form-short-link-submit"}}, {"id": "25017740395", "viewId": "21498430537", "name": "Free Hook - QR Code Sign Up Clicks", "category": "other", "apiName": "16488430484_free_hook__qr_code_sign_up_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#form-qr-submit"}}, {"id": "25031830038", "viewId": "21498430537", "name": "Free Hook - LIB Sign Up Clicks", "category": "other", "apiName": "16488430484_free_hook__lib_sign_up_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#form-lib-submit"}}, {"id": "25039500176", "viewId": "21498430537", "name": "Free Hook - LIB Tab Clicks", "category": "other", "apiName": "16488430484_free_hook__lib_tab_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#tab-lib"}}, {"id": "25149930891", "viewId": "21498430537", "name": "Learn More Clicks", "category": "other", "apiName": "16488430484_learn_more_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#product_clicked_link_management, #product_clicked_qr_codes, #product_clicked_link_in_bio"}}, {"id": "25183320788", "viewId": "21498430537", "name": "Body - Get Started Clicks", "category": "other", "apiName": "16488430484_body__get_started_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#pricing_clicked_link_management, #qrcg_clicked_qr_codes, #pricing_clicked_link_in_bio"}}, {"id": "25675710391", "viewId": "21784960102", "name": "Integrations Widget Clicks", "category": "other", "apiName": "16488430484_integrations_cta_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#integrations_cta_clicked"}}, {"id": "25719220256", "viewId": "21784960102", "name": "All Sign Up Clicks", "category": "other", "apiName": "16488430484_sign_up_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "a[href*=\"sign_up\"]"}}, {"id": "25808110582", "viewId": "21784960102", "name": "Body - Get Started For Free Clicks", "category": "other", "apiName": "16488430484_body__get_started_for_free_clicks_1", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#pricing_clicked_link_management, #pricing_clicked_qr_codes, #pricing_clicked_link_in_bio"}}, {"id": "26650781522", "viewId": null, "name": "Core Subs", "category": "other", "apiName": "sign_up_core_annually", "eventType": "custom", "eventFilter": null}, {"id": "26755620980", "viewId": null, "name": "Growth Annual Subs", "category": "other", "apiName": "sign_up_growth_annually", "eventType": "custom", "eventFilter": null}, {"id": "26761040599", "viewId": null, "name": "Premium Annual Subs", "category": "other", "apiName": "sign_up_premium_annually", "eventType": "custom", "eventFilter": null}, {"id": "26797320345", "viewId": null, "name": "Premium Monthly Subs", "category": "other", "apiName": "sign_up_premium_monthly", "eventType": "custom", "eventFilter": null}, {"id": "26798030153", "viewId": null, "name": "Growth Monthly Subs", "category": "other", "apiName": "sign_up_growth_monthly", "eventType": "custom", "eventFilter": null}, {"id": "26815520007", "viewId": null, "name": "Free Signups", "category": "other", "apiName": "sign_up_free", "eventType": "custom", "eventFilter": null}, {"id": "28575820196", "viewId": "21784960102", "name": "Hero Banner - Sign Up Clicks", "category": "other", "apiName": "16488430484_hero_banner__sign_up_clicks", "eventType": "click", "eventFilter": {"filterType": "target_selector", "selector": "#heroSignupBtn"}}], "dimensions": [], "interestGroups": [], "tagGroups": []},f=__webpack_require__(5832),l="initializeOptimizelyPreview";if(f.initGlobalStore(s),u.populateDirectiveData(),r.clientHasAlreadyInitialized())i.warn("Main / Disabling because Optimizely has already initialized on this page load. Are there multiple snippets on the page?");else if(r.shouldBailForDesktopApp())i.log("Main / Disabling because of desktop app.");else if(r.conflictInObservingChanges())i.log("Main / Disabling: Observe Changes Indefinitely is on, but browser does not support it.");else{if(r.shouldLoadInnie())a.registerFunction("getProjectId",(function(){return s.projectId})),a.registerFunction("getAccountId",(function(){return s.accountId})),c.addScriptAsync("https://app.optimizely.com/js/innie.js"),i.log("Main / Disabling in favor of the editor client.");else if(r.shouldLoadPreview())(r.isSlave()?window.optimizely:window.optimizely=window.optimizely||[]).push({type:"load",data:s}),i.log("Main / Disabling in favor of the preview client."),__webpack_require__(7545).setupPreviewGlobal(),__webpack_require__(7545).pushToPreviewGlobal({type:"pushPreviewData",name:"liveCommitData",data:s}),r.isSlave()||(a.registerFunction("getProjectId",(function(){return s.projectId})),c.addScriptSync("https://cdn-assets-prod.s3.amazonaws.com/js/preview2/16488430484.js"));else if(r.shouldBootstrapDataForPreview()){a.registerFunction(l,(function(t){n(),a.unregisterFunction(l)}));var d=r.isSlave()?PROJECT_ID_FOR_SLAVE_PREVIEW:a.getFunction("getProjectId")();h=r.getProjectToken(),v=d,p=r.getPreviewLayerIds(),o="/dist/preview_data.js?token=__TOKEN__&preview_layer_ids=__PREVIEW_LAYER_IDS__".replace("__TOKEN__",h).replace("__PROJECT_ID__",v).replace("__PREVIEW_LAYER_IDS__",p.join(",")).replace("__GET_ONLY_PREVIEW_LAYERS__",!0),c.addScriptSync(o),__webpack_require__(7545).setupPreviewGlobal(),c.addScriptAsync("/dist/js/preview_ui.js")}else r.shouldBootstrapDataForEditor()?(a.registerFunction(l,(function(t){n(),a.unregisterFunction(l)})),c.addScriptAsync(window.optimizely_editor_data_endpoint)):r.shouldInitialize()&&n();var h,v,p;t.timeEnd("block");var g=t.now();t.setMark("optimizelyFinished",startTime=g,duration=g)}}()}catch(n){try{__webpack_require__(3560).handleError(n)}catch(t){console.log(t)}}}()})();