!function(){var e={4882:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.upgradeActivationRule=t.isUbCode=t.ACTIVATION_RULE_VERSION=void 0,i(r(7176),t);var o=r(2316);Object.defineProperty(t,"ACTIVATION_RULE_VERSION",{enumerable:!0,get:function(){return o.ACTIVATION_RULE_VERSION}}),Object.defineProperty(t,"isUbCode",{enumerable:!0,get:function(){return o.isUbCode}}),Object.defineProperty(t,"upgradeActivationRule",{enumerable:!0,get:function(){return o.upgradeActivationRule}})},7176:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2316:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.upgradeActivationRule=t.ACTIVATION_RULE_VERSION=t.isUbCode=void 0;var n=r(4962);Object.defineProperty(t,"isUbCode",{enumerable:!0,get:function(){return n.isUbCode}});var i=r(4254);Object.defineProperty(t,"ACTIVATION_RULE_VERSION",{enumerable:!0,get:function(){return i.ACTIVATION_RULE_VERSION}}),Object.defineProperty(t,"upgradeActivationRule",{enumerable:!0,get:function(){return i.upgradeActivationRule}})},4962:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUbCode=void 0;const r=/[a-z0-9]{12}4[a-z0-9]{19}/;t.isUbCode=function(e){return r.test(e)}},4254:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ACTIVATION_RULE_VERSION=t.upgradeActivationRule=void 0;const n=r(49),i=r(9912),o=r(1231),s=r(734),a=r(653),u=r(2532),c=r(2059),l=r(3562),d=r(3817),p=r(5295),f=r(1368),h=r(5697),b=r(7810),g=r(1243),v=r(5572),m=r(3453),y=r(4142),w=r(3623),_=r(6752),C={19:_.v19Downgrade,18:w.v18Downgrade,17:y.v17Downgrade,16:m.v16Downgrade,15:v.v15Downgrade,14:g.v14Downgrade,13:b.v13Downgrade,12:h.v12Downgrade,11:f.v11Downgrade,10:p.v10Downgrade,9:d.v9Downgrade,8:l.v8Downgrade,7:c.v7Downgrade,6:u.v6Downgrade,5:a.v5Downgrade,4:s.v4Downgrade,3:o.v3Downgrade,2:i.v2Downgrade,1:n.v1Downgrade},S={18:_.v19Upgrade,17:w.v18Upgrade,16:y.v17Upgrade,15:m.v16Upgrade,14:v.v15Upgrade,13:g.v14Upgrade,12:b.v13Upgrade,11:h.v12Upgrade,10:f.v11Upgrade,9:p.v10Upgrade,8:d.v9Upgrade,7:l.v8Upgrade,6:c.v7Upgrade,5:u.v6Upgrade,4:a.v5Upgrade,3:s.v4Upgrade,2:o.v3Upgrade,1:i.v2Upgrade,0:n.v1Upgrade},T=e=>"object"==typeof e&&!Object.prototype.hasOwnProperty.call(e,"schemaVersion");function A(e,t){return e in t}const E=e=>A(e,S),x=e=>A(e,C);function O(e){return 0===e||"number"==typeof e&&typeof E(e-1)&&typeof x(e)}t.upgradeActivationRule=function e(t){return r=>{const n=function(e){return T(e)?0:e.schemaVersion}(r);if(function(e,t){if(!O(e))throw new Error(`Rule has unknown schema version: ${e}`);if(!O(t))throw new Error(`Requested upgrade to unknown schema version: ${t}`)}(n,t),nt){const i=C[n](r);return e(t)(i)}return r}},t.ACTIVATION_RULE_VERSION=Object.keys(C).map((e=>parseInt(e,10))).sort(((e,t)=>t-e))[0]},49:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v1Upgrade=t.v1Downgrade=void 0;t.v1Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,id:s,event:a,version:u,parentVersion:c,meta:l,targets:d}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,id:s,event:a,version:u,parentVersion:c,meta:l,targets:d}};t.v1Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,id:s,event:a,version:u,parentVersion:c,meta:l,targets:d}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,id:s,event:a,version:u,parentVersion:c,meta:l,targets:d,frequency:{name:"everyVisit",parameters:[{name:"visitFrequency",value:"1"}]},schemaVersion:1}}},9912:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v2Upgrade=t.v2Downgrade=void 0;t.v2Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,urlTargets:p}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,targets:p,schemaVersion:1}};t.v2Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,targets:p}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:{type:"none"},urlTargets:p,schemaVersion:2}}},1231:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v3Upgrade=t.v3Downgrade=void 0;t.v3Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,urlTargets:f}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,urlTargets:f,schemaVersion:2}};t.v3Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,urlTargets:f}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,urlTargets:f,geoTargets:{enabled:!1,rules:[]},schemaVersion:3}}},734:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v4Upgrade=t.v4Downgrade=void 0;t.v4Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,geoTargets:f,urlTargets:h}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,geoTargets:f,urlTargets:h,schemaVersion:3}};t.v4Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,geoTargets:f,urlTargets:h}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,id:a,event:u,version:c,parentVersion:l,meta:d,cookieTarget:p,geoTargets:f,urlTargets:h,referrerTargets:{enabled:!1,rules:[]},schemaVersion:4}}},653:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v5Upgrade=t.v5Downgrade=void 0;t.v5Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,urlTargets:u,cookieTarget:c,geoTargets:l,meta:d,id:p,event:f,version:h,parentVersion:b}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,urlTargets:u,cookieTarget:c,geoTargets:l,meta:d,id:p,event:f,version:h,parentVersion:b,schemaVersion:4}};t.v5Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,meta:p,cookieTarget:f,geoTargets:h,urlTargets:b}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,meta:p,cookieTarget:f,geoTargets:h,urlTargets:b,dimensions:{mobileEnabled:null,desktop:{width:0,height:0},mobile:{width:0,height:0}},schemaVersion:5}}},2532:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v6Upgrade=t.v6Downgrade=void 0;t.v6Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,dimensions:i,displaySettings:o,published:s,referrerTargets:a,urlTargets:u,cookieTarget:c,geoTargets:l,meta:d,id:p,event:f,version:h,parentVersion:b}=e,g=e.frequency;return"visitCount"===g.name&&"1"===g.parameters[0].value&&(g.name="firstVisit"),{ubCode:t,embUuid:r,meta:d,urlTargets:u,trigger:n,displaySettings:o,dimensions:i,published:s,frequency:g,referrerTargets:a,cookieTarget:c,geoTargets:l,id:p,event:f,version:h,parentVersion:b,schemaVersion:5}};t.v6Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,dimensions:o,published:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,meta:p,cookieTarget:f,geoTargets:h,urlTargets:b}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,dimensions:o,frequency:{name:"firstVisit"===e.frequency.name?"visitCount":e.frequency.name,parameters:e.frequency.parameters},published:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,meta:p,cookieTarget:f,geoTargets:h,urlTargets:b,schemaVersion:6}}},2059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v7Upgrade=t.v7Downgrade=void 0;t.v7Downgrade=e=>{const t=e.urlTargets.domain,r={include:e.urlTargets.rules.filter((e=>"show"===e.visibility)).map((e=>{const{value:r,type:n}=e;return{domain:t,type:n,val:r}})),exclude:e.urlTargets.rules.filter((e=>"hide"===e.visibility)).map((e=>{const{value:r,type:n}=e;return{domain:t,type:n,val:r}}))},n=e.cookieTargets,i=n.enabled&&n.rules.length>0?{type:n.rules[0].visibility,name:n.rules[0].name}:{type:"none",name:null},o={enabled:e.geoTargets.enabled,rules:e.geoTargets.rules.map((e=>({property:e.type,value:e.value})))},{ubCode:s,embUuid:a,trigger:u,displaySettings:c,published:l,frequency:d,referrerTargets:p,id:f,event:h,version:b,parentVersion:g,dimensions:v}=e;return{ubCode:s,embUuid:a,trigger:u,displaySettings:c,published:l,frequency:d,referrerTargets:p,id:f,event:h,version:b,parentVersion:g,dimensions:v,meta:{...e.meta,targetDomain:t},cookieTarget:i,geoTargets:o,urlTargets:r,schemaVersion:6}};t.v7Upgrade=e=>{const{targetDomain:t,...r}=e.meta,n=e.urlTargets.include.map((e=>({type:e.type,value:e.val,visibility:"show"}))),i=e.urlTargets.exclude.map((e=>({type:e.type,value:e.val,visibility:"hide"}))),o={domain:t,rules:n.concat(i)},s={enabled:"none"!==e.cookieTarget.type,rules:"none"!==e.cookieTarget.type?[{visibility:e.cookieTarget.type,name:e.cookieTarget.name}]:[]},a=e.geoTargets.rules.map((e=>({type:e.property,visibility:"show",value:e.value}))),u={enabled:e.geoTargets.enabled,rules:a},{ubCode:c,embUuid:l,trigger:d,displaySettings:p,published:f,frequency:h,referrerTargets:b,id:g,event:v,version:m,parentVersion:y,dimensions:w}=e;return{ubCode:c,embUuid:l,trigger:d,displaySettings:p,published:f,frequency:h,referrerTargets:b,id:g,event:v,version:m,parentVersion:y,dimensions:w,meta:r,cookieTargets:s,geoTargets:u,urlTargets:o,schemaVersion:7}}},3562:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v8Upgrade=t.v8Downgrade=void 0;t.v8Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,event:u,version:c,parentVersion:l,dimensions:d,meta:p,urlTargets:f,cookieTargets:h,geoTargets:b}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:{name:"overlay"},published:i,frequency:o,referrerTargets:s,id:a,event:u,version:c,parentVersion:l,dimensions:d,meta:p,cookieTargets:h,geoTargets:b,urlTargets:f,schemaVersion:7}};t.v8Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,displaySettings:a,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:a,published:i,frequency:o,referrerTargets:s,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,cookieTargets:b,geoTargets:g,urlTargets:h,schemaVersion:8}}},3817:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v9Upgrade=t.v9Downgrade=void 0;t.v9Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,event:u,version:c,parentVersion:l,dimensions:d,meta:p,urlTargets:f,cookieTargets:h,geoTargets:b,displaySettings:g}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:g,published:i,frequency:o,referrerTargets:s,id:a,event:u,version:c,parentVersion:l,dimensions:d,meta:p,cookieTargets:h,geoTargets:b,urlTargets:f,schemaVersion:8}};t.v9Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,displaySettings:a,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g}=e;return{ubCode:t,embUuid:r,trigger:n,displaySettings:a,published:i,frequency:o,referrerTargets:s,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,cookieTargets:b,geoTargets:g,urlTargets:h,integrations:{googleAnalytics:{enabled:!1}},schemaVersion:9}}},5295:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v10Upgrade=t.v10Downgrade=void 0;t.v10Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,meta:p,urlTargets:f,cookieTargets:h,geoTargets:b,displaySettings:g}=e,{mobileEnabled:v,desktop:m,mobile:y}=e.dimensions;let w;return w=!0===v?{mobileEnabled:!0,desktop:m,mobile:y}:!1===v?{mobileEnabled:!1,desktop:m,mobile:y}:{mobileEnabled:null,desktop:m,mobile:y},{ubCode:t,embUuid:r,trigger:n,displaySettings:g,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,meta:p,cookieTargets:h,geoTargets:b,urlTargets:f,schemaVersion:9,dimensions:w}};t.v10Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,displaySettings:a,id:u,integrations:c,event:l,version:d,parentVersion:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g}=e,{mobileEnabled:v,desktop:m,mobile:y}=e.dimensions;let w;return w=!0===v?{desktopEnabled:!0,mobileEnabled:!0,desktop:m,mobile:y}:!1===v?{desktopEnabled:!0,mobileEnabled:!1,desktop:m,mobile:y}:{desktopEnabled:null,mobileEnabled:null,desktop:m,mobile:y},{ubCode:t,embUuid:r,trigger:n,displaySettings:a,published:i,frequency:o,referrerTargets:s,id:u,event:l,version:d,parentVersion:p,dimensions:w,meta:f,cookieTargets:b,geoTargets:g,urlTargets:h,integrations:c,schemaVersion:10}}},1368:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v11Upgrade=t.v11Downgrade=void 0;t.v11Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,cookieTargets:h,urlTargets:b,integrations:g}=e,v=e.geoTargets.rules.filter((e=>!e.hasOwnProperty("city")&&!e.hasOwnProperty("regionCode")&&e.hasOwnProperty("countryCode"))).map((e=>({type:"countryCode",value:e.countryCode,visibility:e.visibility})));return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,cookieTargets:h,geoTargets:{enabled:e.geoTargets.enabled,rules:v},urlTargets:b,integrations:g,schemaVersion:10}};t.v11Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,cookieTargets:h,urlTargets:b,integrations:g}=e,v=e.geoTargets.rules.filter((e=>"countryCode"===e.type)).map((e=>({countryCode:e.value,visibility:e.visibility})));return{ubCode:t,embUuid:r,trigger:n,displaySettings:i,published:o,frequency:s,referrerTargets:a,id:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,cookieTargets:h,geoTargets:{enabled:e.geoTargets.enabled,rules:v},urlTargets:b,integrations:g,schemaVersion:11}}},5697:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v12Upgrade=t.v12Downgrade=void 0;t.v12Downgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,displaySettings:v}=e;return{schemaVersion:11,ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,displaySettings:v}};t.v12Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,displaySettings:v}=e;return{schemaVersion:12,ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,dimensions:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:{enabled:!1,startTime:0,endTime:0},displaySettings:v}}},7810:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v13Upgrade=t.v13Downgrade=void 0;t.v13Downgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,trigger:i,published:o,frequency:s,referrerTargets:a,id:u,integrations:c,event:l,version:d,parentVersion:p,dimensions:f,meta:h,urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m,displaySettings:y}=e;return{schemaVersion:12,ubCode:t,embUuid:n,trigger:i,published:o,frequency:s,referrerTargets:a,id:u,integrations:c,event:l,version:d,parentVersion:p,dimensions:f,meta:{...h,clientUuid:r},urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m,displaySettings:y}};t.v13Upgrade=e=>{const{ubCode:t,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,dimensions:p,urlTargets:f,cookieTargets:h,geoTargets:b,scheduling:g,displaySettings:v}=e,{clientUuid:m,...y}=e.meta;return{schemaVersion:13,ubCode:t,clientUuid:m,embUuid:r,trigger:n,published:i,frequency:o,referrerTargets:s,id:a,integrations:u,event:c,version:l,parentVersion:d,dimensions:p,meta:y,urlTargets:f,cookieTargets:h,geoTargets:b,scheduling:g,displaySettings:v}}},1243:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v14Upgrade=t.v14Downgrade=void 0;t.v14Downgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,trigger:i,published:o,frequency:s,referrerTargets:a,id:u,integrations:c,event:l,version:d,parentVersion:p,dimensions:f,meta:h,urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m,displaySettings:y}=e;return{schemaVersion:13,ubCode:t,clientUuid:r,embUuid:n,trigger:i,published:o,frequency:s,referrerTargets:a,id:u,integrations:c,event:l,version:d,parentVersion:p,dimensions:f,meta:h,urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m,displaySettings:y}};t.v14Upgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,trigger:i,published:o,frequency:s,referrerTargets:a,id:u,integrations:c,event:l,version:d,parentVersion:p,dimensions:f,meta:h,urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m,displaySettings:y}=e;return{schemaVersion:14,ubCode:t,clientUuid:r,embUuid:n,variantLetter:"a",trigger:i,published:o,frequency:s,referrerTargets:a,id:u,integrations:c,event:l,version:d,parentVersion:p,dimensions:f,meta:h,urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m,displaySettings:y}}},5572:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v15Upgrade=t.v15Downgrade=void 0;t.v15Downgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,dimensions:h,meta:b,urlTargets:g,cookieTargets:v,geoTargets:m,scheduling:y,displaySettings:w}=e;return{schemaVersion:14,ubCode:t,clientUuid:r,embUuid:n,variantLetter:i.reduce(((e,t)=>t.weight>e.weight?t:e),{letter:"a",weight:0}).letter,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,dimensions:h,meta:b,urlTargets:g,cookieTargets:v,geoTargets:m,scheduling:y,displaySettings:w}};t.v15Upgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,variantLetter:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,dimensions:h,meta:b,urlTargets:g,cookieTargets:v,geoTargets:m,scheduling:y,displaySettings:w}=e;return{schemaVersion:15,ubCode:t,clientUuid:r,embUuid:n,variants:[{letter:i,trackingId:c,weight:1}],trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,dimensions:h,meta:b,urlTargets:g,cookieTargets:v,geoTargets:m,scheduling:y,displaySettings:w}}},3453:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v16Upgrade=t.v16Downgrade=void 0;t.v16Downgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,meta:h,urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m}=e,y=i.reduce(((e,t)=>!e||t.weight>e.weight?t:e),null);return{schemaVersion:15,ubCode:t,clientUuid:r,embUuid:n,variants:i.map((e=>({letter:e.letter,trackingId:e.trackingId,weight:e.weight}))),trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,dimensions:y?y.dimensions:{desktopEnabled:null,mobileEnabled:null,desktop:{width:0,height:0},mobile:{width:0,height:0}},meta:h,urlTargets:b,cookieTargets:g,geoTargets:v,scheduling:m,displaySettings:y?y.display:{name:"overlay"}}};t.v16Upgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,dimensions:h,meta:b,urlTargets:g,cookieTargets:v,geoTargets:m,scheduling:y,displaySettings:w}=e;return{schemaVersion:16,ubCode:t,clientUuid:r,embUuid:n,variants:i.map((e=>({letter:e.letter,trackingId:e.trackingId,weight:e.weight,dimensions:h,display:w}))),trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:l,event:d,version:p,parentVersion:f,meta:b,urlTargets:g,cookieTargets:v,geoTargets:m,scheduling:y}}},4142:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v17Upgrade=t.v17Downgrade=void 0;t.v17Downgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,event:l,version:d,parentVersion:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:v}=e;return{schemaVersion:16,ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:{googleAnalytics:{enabled:e.integrations.googleAnalytics.enabled}},event:l,version:d,parentVersion:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:v}};t.v17Upgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,event:l,version:d,parentVersion:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:v}=e;return{schemaVersion:17,ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,integrations:{googleAnalytics:{enabled:e.integrations.googleAnalytics.enabled,appendVariant:!1}},event:l,version:d,parentVersion:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:v}}},3623:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v18Upgrade=t.v18Downgrade=void 0;t.v18Downgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,published:i,id:o,event:s,version:a,parentVersion:u,meta:c}=e;if("embeddable"===e.type){const{variants:l,trigger:d,frequency:p,referrerTargets:f,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:v,integrations:m}=e.rule;return{schemaVersion:17,ubCode:t,clientUuid:r,embUuid:n,variants:l,trigger:d,published:i,frequency:p,referrerTargets:f,id:o,integrations:m,event:s,version:a,parentVersion:u,meta:c,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:v}}throw new Error("Split test rules are not supported in this version")};t.v18Upgrade=e=>{const{ubCode:t,clientUuid:r,embUuid:n,variants:i,trigger:o,published:s,frequency:a,referrerTargets:u,id:c,event:l,version:d,parentVersion:p,meta:f,urlTargets:h,cookieTargets:b,geoTargets:g,scheduling:v}=e;return{schemaVersion:18,ubCode:t,clientUuid:r,embUuid:n,published:s,id:c,event:l,version:d,parentVersion:p,meta:f,type:"embeddable",rule:{cookieTargets:b,frequency:a,geoTargets:g,integrations:e.integrations,referrerTargets:u,scheduling:v,trigger:o,urlTargets:h,variants:i}}}},6752:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.v19Upgrade=t.v19Downgrade=void 0;t.v19Downgrade=e=>{if("embeddable"===e.type)return{...e,schemaVersion:18};const{state:t,trackingGroupId:r,forwardQueryParams:n,gdprComplianceRequired:i,variants:o}=e.rule,s=o.map((({letter:e,name:t,weight:r,url:n})=>({letter:e,name:t,weight:r,url:n,trackingId:""})));return{...e,schemaVersion:18,rule:{state:t,experimentId:r,forwardQueryParams:n,gdprComplianceRequired:i,variants:s}}};t.v19Upgrade=e=>{if("embeddable"===e.type)return{...e,schemaVersion:19};const{experimentId:t,variants:r,...n}=e.rule,i=r.map((({letter:e,name:t,weight:r,url:n})=>({letter:e,name:t,weight:r,url:n})));return{...e,schemaVersion:19,rule:{...n,variants:i,trackingGroupId:t,conversionGoals:[]}}}},1225:function(e){e.exports={overlayFadeOutSpeed:"300ms",overlayFadeInSpeed:"400ms",overlayFadeTransitionFn:"ease",overlayPadding:"30px",stickyBarSlideInSpeed:"300ms",stickyBarSlideOutSpeed:"200ms",stickyBarSlideTransitionFn:"ease-in-out"}},7427:function(e,t){"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},o=t||{},a=e.split(i),u=o.decode||r,c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r0){var s=r.indexOf(this);~s?r.splice(s+1):r.push(this),~s?n.splice(s,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o);return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r},1183:function(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},5228:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u1)for(var r=1;rthis._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(e){var t=Array.prototype.slice.call(arguments,1);return this._plugins.push([e,t]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(e){return this._globalContext.user=e,this},setExtraContext:function(e){return this._mergeContext("extra",e),this},setTagsContext:function(e){return this._mergeContext("tags",e),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(s(this._globalContext))},setEnvironment:function(e){return this._globalOptions.environment=e,this},setRelease:function(e){return this._globalOptions.release=e,this},setDataCallback:function(e){var t=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=a(e)?function(r){return e(r,t)}:e,this},setShouldSendCallback:function(e){var t=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=a(e)?function(r){return e(r,t)}:e,this},setTransport:function(e){return this._globalOptions.transport=e,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return!!this._hasJSON&&(!!this._globalServer||(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1))},afterLoad:function(){var e=window.RavenConfig;e&&this.config(e.dsn,e.config).install()},showReportDialog:function(e){if(window.document){var t=(e=e||{}).eventId||this.lastEventId();if(!t)throw new i("Missing eventId");var r=e.dsn||this._dsn;if(!r)throw new i("Missing DSN");var n=encodeURIComponent,o="";o+="?eventId="+n(t),o+="&dsn="+n(r);var s=e.user||this._globalContext.user;s&&(s.name&&(o+="&name="+n(s.name)),s.email&&(o+="&email="+n(s.email)));var a=this._getGlobalServer(this._parseDSN(r)),u=document.createElement("script");u.async=!0,u.src=a+"/api/embed/error-page/"+o,(document.head||document.body).appendChild(u)}},_ignoreNextOnError:function(){var e=this;this._ignoreOnError+=1,setTimeout((function(){e._ignoreOnError-=1}))},_triggerEvent:function(e,t){var r,n;if(this._hasDocument){for(n in t=t||{},e="raven"+e.substr(0,1).toUpperCase()+e.substr(1),document.createEvent?(r=document.createEvent("HTMLEvents")).initEvent(e,!0,!0):(r=document.createEventObject()).eventType=e,t)d(t,n)&&(r[n]=t[n]);if(document.createEvent)document.dispatchEvent(r);else try{document.fireEvent("on"+r.eventType.toLowerCase(),r)}catch(e){}}},_breadcrumbEventHandler:function(e){var t=this;return function(r){if(t._keypressTimeout=null,t._lastCapturedEvent!==r){t._lastCapturedEvent=r;var n,i=r.target;try{n=m(i)}catch(e){n=""}t.captureBreadcrumb({category:"ui."+e,message:n})}}},_keypressEventHandler:function(){var e=this;return function(t){var r=t.target,n=r&&r.tagName;if(n&&("INPUT"===n||"TEXTAREA"===n)){var i=e._keypressTimeout;i||e._breadcrumbEventHandler("input")(t),clearTimeout(i),e._keypressTimeout=setTimeout((function(){e._keypressTimeout=null}),1e3)}}},_captureUrlChange:function(e,t){var r=y(this._location.href),n=y(t),i=y(e);this._lastHref=t,r.protocol===n.protocol&&r.host===n.host&&(t=n.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),this.captureBreadcrumb({category:"navigation",data:{to:t,from:e}})},_instrumentTryCatch:function(){var e=this,t=e._wrappedBuiltIns;function r(t){return function(r,n){for(var i=new Array(arguments.length),o=0;o2?arguments[2]:void 0;return r&&e._captureUrlChange(e._lastHref,r+""),t.apply(this,arguments)}}),r)}if(t.console&&"console"in window&&console.log){var c=function(t,r){e.captureBreadcrumb({message:t,level:r.level,category:"console"})};f(["debug","info","warn","error","log"],(function(e,t){C(console,t,c)}))}},_restoreBuiltIns:function(){for(var e;this._wrappedBuiltIns.length;){var t=(e=this._wrappedBuiltIns.shift())[0],r=e[1],n=e[2];t[r]=n}},_drainPlugins:function(){var e=this;f(this._plugins,(function(t,r){var n=r[0],i=r[1];n.apply(e,[e].concat(i))}))},_parseDSN:function(e){var t=T.exec(e),r={},n=7;try{for(;n--;)r[S[n]]=t[n]||""}catch(t){throw new i("Invalid DSN: "+e)}if(r.pass&&!this._globalOptions.allowSecretKey)throw new i("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return r},_getGlobalServer:function(e){var t="//"+e.host+(e.port?":"+e.port:"");return e.protocol&&(t=e.protocol+":"+t),t},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(e,t){var r=this._prepareFrames(e,t);this._triggerEvent("handle",{stackInfo:e,options:t}),this._processException(e.name,e.message,e.url,e.lineno,r,t)},_prepareFrames:function(e,t){var r=this,n=[];if(e.stack&&e.stack.length&&(f(e.stack,(function(e,t){var i=r._normalizeFrame(t);i&&n.push(i)})),t&&t.trimHeadFrames))for(var i=0;i0&&(e.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),l(e.tags)&&delete e.tags,this._globalContext.user&&(e.user=this._globalContext.user),t.environment&&(e.environment=t.environment),t.release&&(e.release=t.release),t.serverName&&(e.server_name=t.serverName),a(t.dataCallback)&&(e=t.dataCallback(e)||e),e&&!l(e)&&(a(t.shouldSendCallback)&&!t.shouldSendCallback(e)||this._sendProcessedPayload(e))},_sendProcessedPayload:function(e,t){var r=this,n=this._globalOptions;if(this._lastEventId=e.event_id||(e.event_id=v()),e=this._trimPacket(e),this._logDebug("debug","Raven about to send:",e),this.isSetup()){var i={sentry_version:"7",sentry_client:"raven-js/"+this.VERSION,sentry_key:this._globalKey};this._globalSecret&&(i.sentry_secret=this._globalSecret);var o=e.exception&&e.exception.values[0];this.captureBreadcrumb({category:"sentry",message:o?(o.type?o.type+": ":"")+o.value:e.message,event_id:e.event_id,level:e.level||"error"});var s=this._globalEndpoint;(n.transport||this._makeRequest).call(this,{url:s,auth:i,data:e,options:n,onSuccess:function(){r._triggerEvent("success",{data:e,src:s}),t&&t()},onError:function(n){r._triggerEvent("failure",{data:e,src:s}),n=n||new Error("Raven send failed (no additional details provided)"),t&&t(n)}})}},_makeRequest:function(e){var t=new XMLHttpRequest;if("withCredentials"in t||"undefined"!=typeof XDomainRequest){var r=e.url;"withCredentials"in t?t.onreadystatechange=function(){4===t.readyState&&n()}:(t=new XDomainRequest,r=r.replace(/^https?:/,""),t.onload=n),t.open("POST",r+"?"+g(e.auth)),t.send(s(e.data))}function n(){200===t.status?e.onSuccess&&e.onSuccess():e.onError&&e.onError(new Error("Sentry error code: "+t.status))}},_logDebug:function(e){this._originalConsoleMethods[e]&&this.debug&&Function.prototype.apply.call(this._originalConsoleMethods[e],this._originalConsole,[].slice.call(arguments,1))},_mergeContext:function(e,t){u(t)?delete this._globalContext[e]:this._globalContext[e]=h(this._globalContext[e]||{},t)}},E.prototype.setUser=E.prototype.setUserContext,E.prototype.setReleaseContext=E.prototype.setRelease,e.exports=E},5687:function(e,t,r){"use strict";var n=r(6904),i=window.Raven,o=new n;o.noConflict=function(){return window.Raven=i,o},o.afterLoad(),e.exports=o},2931:function(e){"use strict";var t=Object.prototype;function r(e){return void 0===e}function n(e){return"[object String]"===t.toString.call(e)}function i(e){return"object"==typeof e&&null!==e}function o(e,t){var n,i;if(r(e.length))for(n in e)s(e,n)&&t.call(null,n,e[n]);else if(i=e.length)for(n=0;n1&&i+3*r.length+t.length>=80);)r.push(t),i+=t.length,e=e.parentNode;return r.reverse().join(" > ")},htmlElementAsString:a,parseUrl:function(e){var t=e.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var r=t[6]||"",n=t[8]||"";return{protocol:t[2],host:t[4],path:t[5],relative:t[5]+r+n}},fill:function(e,t,r,n){var i=e[t];e[t]=r(i),n&&n.push([e,t,i])}}},5641:function(e,t,r){"use strict";var n=r(2931),i=n.hasKey,o=n.isString,s=n.isUndefined,a={collectWindowErrors:!0,debug:!1},u=[].slice,c="?",l=/^(?:Uncaught (?:exception: )?)?((?:Eval|Internal|Range|Reference|Syntax|Type|URI)Error): ?(.*)$/;function d(){return"undefined"==typeof document?"":document.location.href}a.report=function(){var e,t,r=[],n=null,s=null,p=null;function f(e,t){var n=null;if(!t||a.collectWindowErrors){for(var o in r)if(i(r,o))try{r[o].apply(null,[e].concat(u.call(arguments,2)))}catch(e){n=e}if(n)throw n}}function h(t,r,n,i,s){if(p)a.computeStackTrace.augmentStackTraceWithInitialElement(p,r,n,t),b();else if(s)f(a.computeStackTrace(s),!0);else{var u,h={url:r,line:n,column:i},g=void 0,v=t;if(o(t))(u=t.match(l))&&(g=u[1],v=u[2]);h.func=c,f({name:g,message:v,url:d(),stack:[h]},!0)}return!!e&&e.apply(this,arguments)}function b(){var e=p,t=n;n=null,p=null,s=null,f.apply(null,[e,!1].concat(t))}function g(e,t){var r=u.call(arguments,1);if(p){if(s===e)return;b()}var i=a.computeStackTrace(e);if(p=i,s=e,n=r,window.setTimeout((function(){s===e&&b()}),i.incomplete?2e3:0),!1!==t)throw e}return g.subscribe=function(n){!function(){if(t)return;e=window.onerror,window.onerror=h,t=!0}(),r.push(n)},g.unsubscribe=function(e){for(var t=r.length-1;t>=0;--t)r[t]===e&&r.splice(t,1)},g.uninstall=function(){!function(){if(!t)return;window.onerror=e,t=!1,e=void 0}(),r=[]},g}(),a.computeStackTrace=function(){function e(e){if(!s(e.stack)&&e.stack){for(var t,r,n=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,i=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[native).*?)(?::(\d+))?(?::(\d+))?\s*$/i,o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=e.stack.split("\n"),u=[],l=(/^(.*) is undefined$/.exec(e.message),0),p=a.length;l0&&e.stack[0].url===i.url){if(e.stack[0].line===i.line)return!1;if(!e.stack[0].line&&e.stack[0].func===i.func)return e.stack[0].line=i.line,!1}return e.stack.unshift(i),e.partial=!0,!0}return e.incomplete=!0,!1}function r(e,i){for(var o,s,u=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,l=[],p={},f=!1,h=r.caller;h&&!f;h=h.caller)if(h!==n&&h!==a.report){if(s={url:null,func:c,line:null,column:null},h.name?s.func=h.name:(o=u.exec(h.toString()))&&(s.func=o[1]),void 0===s.func)try{s.func=o.input.substring(0,o.input.indexOf("{"))}catch(e){}p[""+h]?f=!0:p[""+h]=!0,l.push(s)}i&&l.splice(0,i);var b={name:e.name,message:e.message,url:d(),stack:l};return t(b,e.sourceURL||e.fileName,e.line||e.lineNumber,e.message||e.description),b}function n(t,n){var i=null;n=null==n?0:+n;try{if(i=e(t))return i}catch(e){if(a.debug)throw e}try{if(i=r(t,n+1))return i}catch(e){if(a.debug)throw e}return{name:t.name,message:t.message,url:d()}}return n.augmentStackTraceWithInitialElement=t,n.computeStackTraceFromStackProp=e,n}(),e.exports=a},2063:function(e){"use strict";e.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return 80!==e;case"https":case"wss":return 443!==e;case"ftp":return 21!==e;case"gopher":return 70!==e;case"file":return!1}return 0!==e}},4280:function(e){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},5072:function(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n=2&&(r=r.slice(2)):b(i)?r=n[4]:i?o&&(r=r.slice(2)):u>=2&&b(t.protocol)&&(r=n[4]),{protocol:i,slashes:o||b(i),slashesCount:u,rest:r}}function v(e,t,r){if(e=(e=d(e)).replace(s,""),!(this instanceof v))return new v(e,t,r);var o,a,u,c,f,m,y=p.slice(),w=typeof t,_=this,C=0;for("object"!==w&&"string"!==w&&(r=t,t=null),r&&"function"!=typeof r&&(r=i.parse),o=!(a=g(e||"",t=h(t))).protocol&&!a.slashes,_.slashes=a.slashes||o&&t.slashes,_.protocol=a.protocol||t.protocol||"",e=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||l.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!b(_.protocol)))&&(y[3]=[/(.*)/,"pathname"]);C2;)o.push(arguments[c]);for(t&&null!=t.children&&(o.length||o.push(t.children),delete t.children);o.length;)if((a=o.pop())&&void 0!==a.pop)for(c=a.length;c--;)o.push(a[c]);else"boolean"==typeof a&&(a=null),(u="function"!=typeof e)&&(null==a?a="":"number"==typeof a?a=String(a):"string"!=typeof a&&(u=!1)),u&&r?l[l.length-1]+=a:l===s?l=[a]:l.push(a),r=u;var d=new n;return d.nodeName=e,d.children=l,d.attributes=null==t?void 0:t,d.key=null==t?void 0:t.key,void 0!==i.vnode&&i.vnode(d),d}function u(e,t){for(var r in t)e[r]=t[r];return e}var c="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var l=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,d=[];function p(e){!e._dirty&&(e._dirty=!0)&&1==d.push(e)&&(i.debounceRendering||c)(f)}function f(){var e,t=d;for(d=[];e=t.pop();)e._dirty&&P(e)}function h(e,t,r){return"string"==typeof t||"number"==typeof t?void 0!==e.splitText:"string"==typeof t.nodeName?!e._componentConstructor&&b(e,t.nodeName):r||e._componentConstructor===t.nodeName}function b(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function g(e){var t=u({},e.attributes);t.children=e.children;var r=e.nodeName.defaultProps;if(void 0!==r)for(var n in r)void 0===t[n]&&(t[n]=r[n]);return t}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,r,n,i){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)r&&r(null),n&&n(e);else if("class"!==t||i)if("style"===t){if(n&&"string"!=typeof n&&"string"!=typeof r||(e.style.cssText=n||""),n&&"object"==typeof n){if("string"!=typeof r)for(var o in r)o in n||(e.style[o]="");for(var o in n)e.style[o]="number"==typeof n[o]&&!1===l.test(o)?n[o]+"px":n[o]}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),n?r||e.addEventListener(t,y,s):e.removeEventListener(t,y,s),(e._listeners||(e._listeners={}))[t]=n}else if("list"!==t&&"type"!==t&&!i&&t in e){try{e[t]=null==n?"":n}catch(e){}null!=n&&!1!==n||"spellcheck"==t||e.removeAttribute(t)}else{var a=i&&t!==(t=t.replace(/^xlink:?/,""));null==n||!1===n?a?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof n&&(a?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),n):e.setAttribute(t,n))}else e.className=n||""}function y(e){return this._listeners[e.type](i.event&&i.event(e)||e)}var w=[],_=0,C=!1,S=!1;function T(){for(var e;e=w.pop();)i.afterMount&&i.afterMount(e),e.componentDidMount&&e.componentDidMount()}function A(e,t,r,n,i,o){_++||(C=null!=i&&void 0!==i.ownerSVGElement,S=null!=e&&!("__preactattr_"in e));var s=E(e,t,r,n,o);return i&&s.parentNode!==i&&i.appendChild(s),--_||(S=!1,o||T()),s}function E(e,t,r,n,i){var o=e,s=C;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||i)?e.nodeValue!=t&&(e.nodeValue=t):(o=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(o,e),x(e,!0))),o.__preactattr_=!0,o;var a,u,c=t.nodeName;if("function"==typeof c)return function(e,t,r,n){var i=e&&e._component,o=i,s=e,a=i&&e._componentConstructor===t.nodeName,u=a,c=g(t);for(;i&&!u&&(i=i._parentComponent);)u=i.constructor===t.nodeName;i&&u&&(!n||i._component)?(j(i,c,3,r,n),e=i.base):(o&&!a&&(D(o),e=s=null),i=U(t.nodeName,c,r),e&&!i.nextBase&&(i.nextBase=e,s=null),j(i,c,1,r,n),e=i.base,s&&e!==s&&(s._component=null,x(s,!1)));return e}(e,t,r,n);if(C="svg"===c||"foreignObject"!==c&&C,c=String(c),(!e||!b(e,c))&&(a=c,(u=C?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,o=u,e)){for(;e.firstChild;)o.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(o,e),x(e,!0)}var l=o.firstChild,d=o.__preactattr_,p=t.children;if(null==d){d=o.__preactattr_={};for(var f=o.attributes,y=f.length;y--;)d[f[y].name]=f[y].value}return!S&&p&&1===p.length&&"string"==typeof p[0]&&null!=l&&void 0!==l.splitText&&null==l.nextSibling?l.nodeValue!=p[0]&&(l.nodeValue=p[0]):(p&&p.length||null!=l)&&function(e,t,r,n,i){var o,s,a,u,c,l=e.childNodes,d=[],p={},f=0,b=0,g=l.length,m=0,y=t?t.length:0;if(0!==g)for(var w=0;w0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},r}(B);function K(e){return e}function X(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),z(K,e)}function G(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof i&&(r=e.pop()),null===n&&1===e.length&&e[0]instanceof T?e[0]:X(r)(F(e,n))}var Y=new T((function(e){return e.complete()}));function J(e){return e?function(e){return new T((function(t){return e.schedule((function(){return t.complete()}))}))}(e):Y}function Q(e){var t=new T((function(t){t.next(e),t.complete()}));return t._isScalar=!0,t.value=e,t}function Z(){for(var e=[],t=0;t=2&&(r=!0),function(n){return n.lift(new te(e,t,r))}}var te=function(){function e(e,t,r){void 0===r&&(r=!1),this.accumulator=e,this.seed=t,this.hasSeed=r}return e.prototype.call=function(e,t){return t.subscribe(new re(e,this.accumulator,this.seed,this.hasSeed))},e}(),re=function(e){function r(t,r,n,i){var o=e.call(this,t)||this;return o.accumulator=r,o._seed=n,o.hasSeed=i,o.index=0,o}return t(r,e),Object.defineProperty(r.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),r.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},r.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.accumulator(this.seed,e,r)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},r}(y);var ne=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new ie(e,this.nextOrObserver,this.error,this.complete))},e}(),ie=function(e){function r(t,r,i,o){var s=e.call(this,t)||this;return s._tapNext=C,s._tapError=C,s._tapComplete=C,s._tapError=i||C,s._tapComplete=o||C,n(r)?(s._context=s,s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||C,s._tapError=r.error||C,s._tapComplete=r.complete||C),s}return t(r,e),r.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},r.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},r.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},r}(y),oe=r(4882),se=function(e){return function(t){return{type:e,payload:t}}},ae="CLOSE_EMB",ue=se(ae),ce="CLOSE_EMB_COMPLETE",le=se(ce),de="SET_ACTIVATION_RULES",pe=se(de),fe="SET_ACTIVATION_RULES_PREVIEW",he=se(fe),be="SET_LOCATION_HREF",ge=se(be),ve="EMB_FORM_CONFIRMATION",me=se(ve),ye="FORM_SUBMIT_EVENT",we=se(ye),_e="LINK_CLICK_EVENT",Ce=se(_e),Se="LOG",Te=se(Se),Ae="EMB_LOADED",Ee=se(Ae),xe="TRIGGER_EMB",Oe=se(xe),ke="SET_VIEWPORT",Ue=se(ke),Ie="SET_SCROLL_POSITION",je=se(Ie),Pe="SET_VISITOR_ID",De=se(Pe);function Ve(){for(var e=[r.g.postMessage,r.g.addEventListener,Array.prototype.map,Array.prototype.forEach,Array.prototype.filter,Element.prototype.setAttribute,Function.prototype.apply,Date.now,document.head],t=0;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?(i=window.console)[e].apply(i,[Je,"[".concat(String(r[0]),"]")].concat(Xe(r.slice(1)))):(o=window.console)[e].apply(o,[Je].concat(r))}:Ke};function et(e){var t=e.action,r=e.prev,n=e.next;Qe("groupCollapsed")&&t&&"LOG"!==t.type&&(window.console.groupCollapsed("action ".concat(t.type)),window.console.log("%cprev state","font-weight: bold; color: #9e9e9e",r),window.console.log("%caction","font-weight: bold; color: #03a9f4",t),window.console.log("%cnext state","font-weight: bold; color: #4caf50",n),window.console.groupEnd())}function tt(e,t){var r=$e(e,t),n="development"===e||"actions"===We.parse(t)["ub-debug"];return{log:r?Ze("log"):Ke,warn:r?Ze("warn"):Ke,error:r?Ze("error"):Ke,logAction:n?et:Ke}}var rt="v0.183.0",nt="https://13b7b4b33f0c4282b4fcc0def81662a4@sentry.io/77159";var it=r(9879),ot=r.n(it),st=r(3976),at=r.n(st);function ut(e,t){return function(r){return r.lift(new ct(e,t))}}var ct=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.predicate,this.thisArg))},e}(),lt=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return t(r,e),r.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},r}(y);function dt(e){return function(t){return t.lift(new pt(e))}}var pt=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new ft(e,this.value))},e}(),ft=function(e){function r(t,r){var n=e.call(this,t)||this;return n.value=r,n}return t(r,e),r.prototype._next=function(e){this.destination.next(this.value)},r}(y);Object.prototype.toString;function ht(e,t,r,i){return n(r)&&(i=r,r=void 0),i?ht(e,t,r).pipe(N((function(e){return u(e)?i.apply(void 0,e):i(e)}))):new T((function(n){bt(e,t,(function(e){arguments.length>1?n.next(Array.prototype.slice.call(arguments)):n.next(e)}),n,r)}))}function bt(e,t,r,n,i){var o;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var s=e;e.addEventListener(t,r,i),o=function(){return s.removeEventListener(t,r,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var a=e;e.on(t,r),o=function(){return a.off(t,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var u=e;e.addListener(t,r),o=function(){return u.removeListener(t,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,l=e.length;c=0}function Ct(e,t,r){void 0===e&&(e=0);var n=-1;return _t(t)?n=Number(t)<1?1:Number(t):E(t)&&(r=t),E(r)||(r=wt),new T((function(t){var i=_t(e)?e:+e-r.now();return r.schedule(St,i,{index:0,period:n,subscriber:t})}))}function St(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}function Tt(){return function(e){return e.lift(new At(e))}}var At=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new Et(e,r),i=t.subscribe(n);return n.closed||(n.connection=r.connect()),i},e}(),Et=function(e){function r(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return t(r,e),r.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},r}(y),xt=function(e){function r(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return t(r,e),r.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},r.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},r.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new g).add(this.source.subscribe(new kt(this.getSubject(),this))),e.closed?(this._connection=null,e=g.EMPTY):this._connection=e),e},r.prototype.refCount=function(){return Tt()(this)},r}(T).prototype,Ot={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:xt._subscribe},_isComplete:{value:xt._isComplete,writable:!0},getSubject:{value:xt.getSubject},connect:{value:xt.connect},refCount:{value:xt.refCount}},kt=function(e){function r(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return t(r,e),r.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},r.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},r.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},r}(qe);var Ut=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),i=r(n).subscribe(e);return i.add(t.subscribe(n)),i},e}();function It(){return new Le}function jt(){return function(e){return Tt()((t=It,function(e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof r)return e.lift(new Ut(n,r));var i=Object.create(e,Ot);return i.source=e,i.subjectFactory=n,i})(e));var t,r}}var Pt=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Dt(e,this.compare,this.keySelector))},e}(),Dt=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return t(r,e),r.prototype.compare=function(e,t){return e===t},r.prototype._next=function(e){var t=e;if(this.keySelector&&(t=f(this.keySelector)(e))===d)return this.destination.error(d.e);var r=!1;if(this.hasKey){if((r=f(this.compare)(this.key,t))===d)return this.destination.error(d.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=t,this.destination.next(e))},r}(y);function Vt(e){return function(t){return t.lift(new Bt(e))}}var Rt,Mt,Bt=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Nt(e,this.total))},e}(),Nt=function(e){function r(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return t(r,e),r.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},r}(y),qt=ht(window,"keydown").pipe(jt()),Lt=ht(window,"scroll").pipe(jt()),Ft=G(ht(window,"resize"),ht(window,"orientationchange")).pipe(jt()),Ht=ht(document,"mousemove").pipe(jt()),zt=ht(document,"click").pipe(jt()),Wt=G(ht(document,"mouseleave"),ht(document.documentElement,"mouseleave")).pipe(jt()),$t=G(ht(document,"mouseenter"),ht(document.documentElement,"mouseenter")).pipe(jt()),Kt=G(ht(window,"hashchange"),ht(window,"popstate"),Ct(0,250)).pipe(N((function(){return window.location.href})),(function(e){return e.lift(new Pt(Rt,Mt))}),Vt(1),jt());function Xt(){for(var e=[],t=0;t0&&t[i].height>0?i:null}function ar(){return Z(je({fromScrollEvent:!1,scrollPosition:ir()}))}function ur(e){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ur(e)}var cr=function(e){return"string"==typeof e},lr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return cr(e)?e.replace(/^\s+|\s+$/g,""):""},dr=function(){var e=arguments.length>1?arguments[1]:void 0;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(e).length>0},pr=function(e){return void 0!==e&&cr(e)?e.toLowerCase():""},fr=function(e){return cr(e)&&e.length>0},hr=function(e,t){return void 0!==e&&void 0!==t&&e.slice(0,t.length)===t},br=function(e,t){return void 0!==e&&void 0!==t&&e.slice(e.length-t.length,e.length)===t},gr=function(e,t){for(var r=e.length,n=-1;++n0?F(e,r):J(r):Q(e[0]),t)}}function Ir(e,t){return"function"==typeof t?function(r){return r.pipe(Ir((function(r,n){return H(e(r,n)).pipe(N((function(e,i){return t(r,e,n,i)})))})))}:function(t){return t.lift(new jr(e))}}var jr=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Pr(e,this.project))},e}(),Pr=function(e){function r(t,r){var n=e.call(this,t)||this;return n.project=r,n.index=0,n}return t(r,e),r.prototype._next=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,r)},r.prototype._innerSub=function(e,t,r){var n=this.innerSubscription;n&&n.unsubscribe();var i=new x(this,void 0,void 0);this.add(i),this.innerSubscription=M(this,e,t,r,i)},r.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},r.prototype._unsubscribe=function(){this.innerSubscription=null},r.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},r.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(t)},r}(B);var Dr=function(e){var t,r,n=parseInt(e,10);return Kt.pipe(dt(!0),Ur(!0),(t=Ct(1e3*n),r?Ir((function(){return t}),r):Ir((function(){return t}))),dt(!0))};function Vr(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof t?z((function(){return e}),t,r):("number"==typeof t&&(r=t),z((function(){return e}),r))}var Rr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var r=new Mr(e),n=M(r,this.notifier);return n&&!r.seenValue?(r.add(n),t.subscribe(r)):r},e}(),Mr=function(e){function r(t){var r=e.call(this,t)||this;return r.seenValue=!1,r}return t(r,e),r.prototype.notifyNext=function(e,t,r,n,i){this.seenValue=!0,this.complete()},r.prototype.notifyComplete=function(){},r}(B),Br=function(e){if(!document.documentElement)return!1;var t=document.documentElement,r=t.clientHeight,n=t.clientWidth,i=e.clientX,o=e.clientY;return o<10||i>n-10||o>r-10||i<10},Nr=function(e,t){return Ct(e).pipe(Vr(Wt),ut(Br),Vr(Ct(t).pipe((r=G($t,Lt),function(e){return e.lift(new Rr(r))}))));var r},qr=function(e){var t=function(e,t){return Ct(t).pipe(Vr(Ht),ee((function(e,t){return{nextY:t.clientY,prevY:e.nextY}}),{}),Vt(1),ut((function(t){return t.nextYe.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0&&t.top+nr().height=e*o/100})),Yt(2e3),dt(!0));case"scrollUp":return Wr();case"clickClass":return kr(".".concat(s.value),t.device.isIOS);case"clickId":return kr("#".concat(s.value),t.device.isIOS);case"clickSelector":return kr(s.value,t.device.isIOS);default:return r=new Error("Unknown trigger type"),new T(n?function(e){return n.schedule(Er,0,{error:r,subscriber:e})}:function(e){return e.error(r)})}}var Kr=function(e){return function(t){return $r(t,e).pipe(N((function(){var e="";try{e=document.cookie}catch(e){}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=(arguments.length>1?arguments[1]:void 0).cookieTargets,r=t.enabled,n=t.rules[0];if(!r||!n)return!0;var i=!!Ar.parse(e)[n.name];switch(n.visibility){case"show":return i||""===n.name;case"hide":return!i;default:return!1}}(e,t)?Tr().shouldShowOverlay(t.id)?Tr().shouldShow(t.embUuid)?Oe({id:t.id}):Te({messages:[t.embUuid,"Not displaying due to _ubeConfig.shouldShow() callback"]}):Te({messages:[t.id,"Not displaying due to _ubeConfig.shouldShowOverlay() callback"]}):Te({messages:[t.id,"Not displaying due to cookie targeting rule",t.cookieTargets]})})))}};var Xr=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Gr(e,this.dueTime,this.scheduler))},e}(),Gr=function(e){function r(t,r,n){var i=e.call(this,t)||this;return i.dueTime=r,i.scheduler=n,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return t(r,e),r.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Yr,this.dueTime,this))},r.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},r.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},r.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},r}(y);function Yr(e){e.debouncedNext()}function Jr(){return Ft.pipe(dt(!0),(e=10,void 0===t&&(t=wt),function(r){return r.lift(new Xr(e,t))}),Ur(!0),N(nr),N((function(e){return Ue({viewport:e})})));var e,t}var Qr=r(6148);function Zr(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Zr.prototype=Object.create(Error.prototype);var en=Zr;var tn=function(){function e(e){if(this.total=e,this.total<0)throw new en}return e.prototype.call=function(e,t){return t.subscribe(new rn(e,this.total))},e}(),rn=function(e){function r(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return t(r,e),r.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},r}(y),nn="undefined"!=typeof window&&window,on="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,sn=void 0!==r.g&&r.g,an=nn||sn||on;function un(e,t){return void 0===t&&(t=null),new bn({method:"GET",url:e,headers:t})}function cn(e,t,r){return new bn({method:"POST",url:e,body:t,headers:r})}function ln(e,t){return new bn({method:"DELETE",url:e,headers:t})}function dn(e,t,r){return new bn({method:"PUT",url:e,body:t,headers:r})}function pn(e,t,r){return new bn({method:"PATCH",url:e,body:t,headers:r})}var fn=N((function(e,t){return e.response}));function hn(e,t){return fn(new bn({method:"GET",url:e,responseType:"json",headers:t}))}var bn=function(e){function r(t){var r=e.call(this)||this,n={async:!0,createXHR:function(){return this.crossDomain?function(){if(an.XMLHttpRequest)return new an.XMLHttpRequest;if(an.XDomainRequest)return new an.XDomainRequest;throw new Error("CORS is not supported by your browser")}():function(){if(an.XMLHttpRequest)return new an.XMLHttpRequest;var e=void 0;try{for(var t=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(e=t[r],new an.ActiveXObject(e))break}catch(e){}return new an.ActiveXObject(e)}catch(e){throw new Error("XMLHttpRequest is not supported by your browser")}}()},crossDomain:!0,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof t)n.url=t;else for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return r.request=n,r}var n;return t(r,e),r.prototype._subscribe=function(e){return new gn(e,this.request)},r.create=((n=function(e){return new r(e)}).get=un,n.post=cn,n.delete=ln,n.put=dn,n.patch=pn,n.getJSON=hn,n),r}(T),gn=function(e){function r(t,r){var n=e.call(this,t)||this;n.request=r,n.done=!1;var i=r.headers=r.headers||{};return r.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in i||an.FormData&&r.body instanceof an.FormData||void 0===r.body||(i["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=n.serializeBody(r.body,r.headers["Content-Type"]),n.send(),n}return t(r,e),r.prototype.next=function(e){this.done=!0;var t=this,r=t.xhr,n=t.request,i=t.destination,o=new vn(e,r,n);o.response===d?i.error(d.e):i.next(o)},r.prototype.send=function(){var e=this.request,t=this.request,r=t.user,n=t.method,i=t.url,o=t.async,s=t.password,a=t.headers,u=t.body,c=f(e.createXHR).call(e);if(c===d)this.error(d.e);else{this.xhr=c,this.setupEvents(c,e);if((r?f(c.open).call(c,n,i,o,r,s):f(c.open).call(c,n,i,o))===d)return this.error(d.e),null;if(o&&(c.timeout=e.timeout,c.responseType=e.responseType),"withCredentials"in c&&(c.withCredentials=!!e.withCredentials),this.setHeaders(c,a),(u?f(c.send).call(c,u):f(c.send).call(c))===d)return this.error(d.e),null}return c},r.prototype.serializeBody=function(e,t){if(!e||"string"==typeof e)return e;if(an.FormData&&e instanceof an.FormData)return e;if(t){var r=t.indexOf(";");-1!==r&&(t=t.substring(0,r))}switch(t){case"application/x-www-form-urlencoded":return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&");case"application/json":return JSON.stringify(e);default:return e}},r.prototype.setHeaders=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])},r.prototype.setupEvents=function(e,t){var r=t.progressSubscriber;function n(e){var t=n,r=t.subscriber,i=t.progressSubscriber,o=t.request;i&&i.error(e);var s=new Cn(this,o);s.response===d?r.error(d.e):r.error(s)}if(e.ontimeout=n,n.request=t,n.subscriber=this,n.progressSubscriber=r,e.upload&&"withCredentials"in e){var i,o;if(r)i=function(e){i.progressSubscriber.next(e)},an.XDomainRequest?e.onprogress=i:e.upload.onprogress=i,i.progressSubscriber=r;o=function(e){var t=o,r=t.progressSubscriber,n=t.subscriber,i=t.request;r&&r.error(e);var s=new yn("ajax error",this,i);s.response===d?n.error(d.e):n.error(s)},e.onerror=o,o.request=t,o.subscriber=this,o.progressSubscriber=r}function s(e){}function a(e){var t=a,r=t.subscriber,n=t.progressSubscriber,i=t.request;if(4===this.readyState){var o=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;if(0===o&&(o=s?200:0),o<400)n&&n.complete(),r.next(e),r.complete();else{n&&n.error(e);var u=new yn("ajax error "+o,this,i);u.response===d?r.error(d.e):r.error(u)}}}e.onreadystatechange=s,s.subscriber=this,s.progressSubscriber=r,s.request=t,e.onload=a,a.subscriber=this,a.progressSubscriber=r,a.request=t},r.prototype.unsubscribe=function(){var t=this.done,r=this.xhr;!t&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),e.prototype.unsubscribe.call(this)},r}(y),vn=function(){return function(e,t,r){this.originalEvent=e,this.xhr=t,this.request=r,this.status=t.status,this.responseType=t.responseType||r.responseType,this.response=_n(this.responseType,t)}}();function mn(e,t,r){return Error.call(this),this.message=e,this.name="AjaxError",this.xhr=t,this.request=r,this.status=t.status,this.responseType=t.responseType||r.responseType,this.response=_n(this.responseType,t),this}mn.prototype=Object.create(Error.prototype);var yn=mn;function wn(e){return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null")}function _n(e,t){switch(e){case"json":return f(wn)(t);case"xml":return t.responseXML;default:return"response"in t?t.response:t.responseText}}var Cn=function(e,t){return yn.call(this,"ajax timeout",e,t),this.name="AjaxTimeoutError",this},Sn=bn.create;var Tn={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let An;const En=new Uint8Array(16);function xn(){if(!An&&(An="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!An))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return An(En)}const On=[];for(let e=0;e<256;++e)On.push((e+256).toString(16).slice(1));function kn(e,t=0){return On[e[t+0]]+On[e[t+1]]+On[e[t+2]]+On[e[t+3]]+"-"+On[e[t+4]]+On[e[t+5]]+"-"+On[e[t+6]]+On[e[t+7]]+"-"+On[e[t+8]]+On[e[t+9]]+"-"+On[e[t+10]]+On[e[t+11]]+On[e[t+12]]+On[e[t+13]]+On[e[t+14]]+On[e[t+15]]}var Un=function(e,t,r){if(Tn.randomUUID&&!t&&!e)return Tn.randomUUID();const n=(e=e||{}).random||(e.rng||xn)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return kn(n)};function In(){return Un().replace(/-/g,"")}var jn,Pn,Dn={development:"-integration",integration:"-integration",production:""},Vn=function(e,t){return"//".concat(e,".events").concat(Dn[t||"integration"],".ubembed.com")};function Rn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;t0&&i.height+xi>n.height)?{height:Math.max(n.height,i.height+xi),left:o.left,overflow:"visible",position:"absolute",top:o.top}:{}}},{key:"render",value:function(){var e=this.props,t=e.emb,r=e.onClose,n=e.isVisible,i=e.children,o=mr("\n ub-emb-overlay\n ".concat(n?"ub-emb-visible":"","\n ").concat(t.isMobile?"ub-emb-mobile":"","\n "));return mi("div",{className:o},mi("div",{className:"ub-emb-backdrop",onClick:r}),mi("div",{className:"ub-emb-scroll-wrapper",onClick:r,style:this.getScrollWrapperStyle()},i))}}],r&&wi(t.prototype,r),n&&wi(t,n),o}(Qr.uA);Ei=void 0,(Ai="defaultProps")in(Ti=Oi)?Object.defineProperty(Ti,Ai,{value:Ei,enumerable:!0,configurable:!0,writable:!0}):Ti[Ai]=Ei,Oi.defaultProps={children:[]};var ki=r(5606),Ui=r(4179),Ii={};Ii.styleTagTransform=ii(),Ii.setAttributes=ei(),Ii.insert=Qn().bind(null,"head"),Ii.domAPI=Yn(),Ii.insertStyleElement=ri();Xn()(Ui.A,Ii),Ui.A&&Ui.A.locals&&Ui.A.locals;var ji=r(6148).h;function Pi(e){return Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pi(e)}function Di(e,t){for(var r=0;r0?Bi({},o.position,i?0:-a):{},c=mr("\n ub-emb-bar\n ".concat(i?"ub-emb-visible":"","\n ").concat(s?"ub-emb-mobile":"","\n ").concat(n.isIOS?"ub-emb-ios":"","\n ")),l=i?er.stickyBarSlideInSpeed:er.stickyBarSlideOutSpeed,d="\n html body {\n transition: margin ".concat(l," ease-in-out;\n }\n .lp-pom-body {\n position: relative;\n }\n "),p="\n html body {\n margin-".concat(o.position,": ").concat(a,"px !important;\n }")+("bottom"===o.position?"\n .lp-pom-body .ub-emb-bar.ub-emb-visible {\n height: ".concat(a,"px;\n }"):"");return ji("div",{className:c},ji("style",null,d),i?ji("style",null,p):ji("noscript",null),ji("div",{className:"ub-emb-bar-frame",style:u},r))}}],r&&Di(t.prototype,r),n&&Di(t,n),o}(Qr.uA);Bi(Ni,"defaultProps",void 0),Ni.defaultProps={children:[]};var qi=r(6148).h;function Li(e){return Li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Li(e)}function Fi(e,t){for(var r=0;r2&&void 0!==arguments[2]&&arguments[2]}))},onLoad:function(e){return i(Ee({id:a,pageSize:e}))}}),qi(bi,{isMobile:u,isVisible:l,size:h,hostPageUrl:n.locationHref||r.g.location.href,src:t.confirmationSrc,onClose:function(){return e.handleClose(t)},onFormConfirmation:Ke,onFormSubmit:Ke,onLinkClick:function(e){return i(Ce({id:a,isConversion:e,linkUrl:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",shouldRedirect:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}))},onLoad:Ke}))}));return qi("div",null,o)}}],n&&Fi(t.prototype,n),i&&Fi(t,i),s}(Qr.uA);function Xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gi(e){for(var t=1;t1?ao.removeAttribute("content"):ao.setAttribute("content",""),document.head&&document.head.removeChild(ao))}};function po(e){return function(e){if(Array.isArray(e))return fo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(e){return e.timestamp>Date.now()-Vo}))}function Bo(e){return"".concat(Do).concat(e)}function No(e,t){var r=e.getItem(Bo(t));if(!r)return Ro;try{return jo(jo({},Ro),JSON.parse(r))}catch(e){return Ro}}var qo=r(6148).h;function Lo(e){return function(e){if(Array.isArray(e))return Fo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Fo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:"a",n=arguments.length>3?arguments[3]:void 0;if("development"===n&&0===t.indexOf("mock"))return"".concat(t,"?variant=").concat(r);var i=$o[n||"integration"];return"//".concat(e,".pages").concat(i,".ubembed.com/").concat(t,"/").concat(r,".html")}function Xo(e,t){if("click"===t.trigger.name)return!0;var r=function(e){return So(e,vo)}(e)+1,n=Oo(e);return function(e,t,r){return 0===e.map((function(e){var n=parseInt(e.value,10);switch(e.name){case"visitCount":return t===n;case"visitCountAbove":return t>n;case"visitFrequency":return t%n==0||n<1;case"viewCountBelow":return r=e.bounds.south,a=o<=e.bounds.east&&o>=e.bounds.west;if(s&&a)return!0}try{r=new RegExp("^".concat(e.city,"\\b"),"i"),n=new RegExp("^".concat(t.city,"\\b"),"i")}catch(e){return!1}var u,c=!(e.regionCode&&(u=t.regionCode,/^([A-Z]|\d){1,3}$/.test(u)))||Yo(e,t,["regionCode"]),l=r.test(t.city)||n.test(e.city);return c&&l}(t,e):"regionCode"in t?Yo(t,e,["regionCode","countryCode"]):"countryCode"in t?Yo(t,e,["countryCode"]):"continentCode"in t&&Yo(t,e,["continentCode"])}},Qo=function(e){return"city"in e?4:"regionCode"in e?3:"countryCode"in e?2:"continentCode"in e?1:0};var Zo=r(1160),es=r.n(Zo);function ts(e){return function(e){if(Array.isArray(e))return rs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return rs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rs(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:"");if("exact"!==t&&!fr(r))return!0;var n=function(e,t){var r=new(es())(e);-1===t.indexOf("?")&&r.set("query",""),-1===t.indexOf("#")&&r.set("hash",""),"/"!==r.pathname||/\/$/.test(e)||r.set("pathname","");var n=r.toString();return-1===t.indexOf("http")&&(n=n.replace(/^https?:\/\//,"")),n}(e,r);switch(t){case"exact":return n===r;case"contains":return-1!==e.indexOf(r);case"startswith":return hr(n,r);case"endswith":return br(n,r);default:return!1}},as=function(e){return function(t){var r=t.referrerTargets;if(!r.enabled)return!0;var n=r.rules.reduce((function(e,t){var r="hide"===t.visibility?"exclude":"include";return is(is({},e),{},os({},r,[].concat(ts(e[r]),[{type:t.type,value:t.value}])))}),{include:[],exclude:[]}),i=function(t){return ss(e,t.type,t.value)};return!dr(n.exclude,i)&&(dr(n.include,i)||0===n.include.length)}},us=function(e,t){var r=t.scheduling.enabled,n=t.scheduling.startTime||0,i=t.scheduling.endTime||1/0;return!r||e>=n&&e<=i};function cs(e){var t=e.display,r=e.trigger;return[t.name,r.name,r.value].join(":")}var ls=r(2834),ds=r.n(ls),ps=function(e){return function(t){var r=t.urlTargets.rules,n=function(t){return function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=new(es())(e),i=n.pathname,o=n.query,s=n.hash,a=pr(i),u=a+pr(o)+pr(s),c=pr(r),l=ds()(c);switch(t){case"exact":var d=l.replace(/(^\/*|\/*$)/g,""),p=new RegExp("^/?".concat(d,"/?$"));return fr(c)&&(p.test(u)||p.test(a));case"contains":return fr(c)&&new RegExp(l).test(u);case"startswith":return fr(c)&&(hr(u,c)||hr(u,"/".concat(c)));case"endswith":return fr(c)&&(br(u,c)||br(u,"".concat(c,"/")));case"homepage":return"/"===a||""===a;case"everywhere":return!0;default:return!1}}(e,t.type,t.value)},i=r.filter((function(e){return"show"===e.visibility})),o=r.filter((function(e){return"hide"===e.visibility}));return!dr(o,n)&&dr(i,n)}};function fs(e){var t,r=e.device,n=e.embeddable,i=e.geoData,o=e.locationHref,s=e.precedingEmbeddables,a=e.referrer,u=e.timestamp,c=n.activationRule;return ps(o)(c)?function(e,t){var r=t.display,n=t.pageSize,i=n.desktop,o=n.mobile;return 0===i.width&&0===i.height&&0===o.width&&0===o.height||null!==sr(r.name,n,nr(),e.isMobile)}(r,n)?function(e,t){var r=t.geoTargets,n=r.enabled,i=r.rules;if(!e||!n||0===i.length)return!0;var o=i.filter(Go),s=i.filter(Jo(e));0===o.length&&s.push({visibility:"show",continentCode:"",displayName:""});var a=s.reduce((function(e,t){return!e||Qo(t)>Qo(e)?t:e}),null);return Go(a)}(i,c)?as(a)(c)?n.closedAt>0&&!Wo(n)?{status:"cancelled",logVisit:!1,disqualifier:"previously shown"}:(t=n.visitorData,"click"!==c.trigger.name&&0!==xo(t)?{status:"cancelled",logVisit:!1,disqualifier:"already converted"}:us(u,c)?Xo(n.visitorData,c)?function(e,t){var r=cs(t);return e.every((function(e){return cs(e)!==r}))}(s,n)?{status:"cancelled"===n.status?"preloading":n.status,logVisit:!0,disqualifier:null}:{status:"cancelled",logVisit:!0,disqualifier:"uniqueness"}:{status:"cancelled",logVisit:!0,disqualifier:"frequency"}:{status:"cancelled",logVisit:!0,disqualifier:"scheduling"}):{status:"cancelled",logVisit:!1,disqualifier:"referrer targeting"}:{status:"cancelled",logVisit:!1,disqualifier:"geo targeting"}:{status:"cancelled",logVisit:!1,disqualifier:"dimensions"}:{status:"cancelled",logVisit:!1,disqualifier:"URL targeting"}}function hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,i,o=[],s=!0,a=!1;try{for(r=r.call(e);!(s=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(a)throw i}}return o}(e,t)||gs(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bs(e){return function(e){if(Array.isArray(e))return vs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||gs(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gs(e,t){if(e){if("string"==typeof e)return vs(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vs(e,t):void 0}}function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1})).map((function(e){return[e.id,"Selected variant ".concat(e.variantLetter," from ")+"".concat(e.activationRule.variants.length," variants")]}))),bs(t.filter((function(e){return"preloading"===e.status})).map((function(e){return[e.id,"Preloading"]}))));return ys(ys({},e),{},{logMessages:s})}(ys(ys({},e),{},{embeddables:a,locationHref:n}))}function Ss(e,t,r,n,i){var o=e.clientUuid,s=e.embUuid,a=e.id,u=e.integrations,c=e.ubCode,l=e.variants,d=l.filter((function(e){return e.letter===i.variantLetter&&e.weight>0}))[0]||function(e,t){if("number"!=typeof e||e<0||e>=1)throw new Error("Invalid random seed: ".concat(e));for(var r=t.reduce((function(e,t){if("number"!=typeof t.weight||t.weight<0)throw new Error("Invalid variant weight: ".concat(t.weight));return e+t.weight}),0)*e,n=0,i=0;ie.length)&&(t=e.length);for(var r=0,n=new Array(t);r