(self.webpackChunkui=self.webpackChunkui||[]).push([[17],{146:function(t,e,n){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.convertWeightsToThresholds=e.assignWeighted=e.sampleN=e.showCanary=e.assignUniform=e.uniformIndex=void 0;const r=o(n(121));function c(t,e){if(0===e)return 0;const n=BigInt(`0x${(0,r.default)(t).substr(0,15)}`);return Number(n%BigInt(e))}function i(t){const e={};let n=0,o=0;return[...new Set(t)].sort(((t,e)=>t-e)).forEach((r=>{const c=t.filter((t=>t>=r)).map((t=>t-o)),i=(1-n)*function(t){return Math.min(...t)/t.reduce(((t,e)=>t+e),0)*t.length}(c);o=r,n+=i,e[r]=n})),t.map((t=>Math.round(100*e[t])))}e.uniformIndex=c,e.assignUniform=function(t,e){return e[c(t,e.length)]},e.showCanary=function(t,e=0){return e>0&&c(t,100)0&&e.length>0;){const r=c(t,e.length),i=e.splice(r,1)[0];o.push(i),n--}return o},e.assignWeighted=function(t,e){const n=i(e.map((t=>t.weight))),o=c(t,100),r=[...e];for(;r.length>1;){const e=c(t,r.length),i=r.splice(e,1)[0],s=n.splice(e,1)[0];if(i&&o{(()=>{"use strict";var e={8578(t,e){e.getFromRemote=async function({contentLookupKey:t,contentObject:e,projectId:o,localRemoteCache:r,cacheTTL:c=3e3,handle:i,liveRef:s,contentCacheEndpoint:u}){const a=()=>s&&u?async function(t,{contentObjectType:e,projectId:n,liveRef:o}){const r=`${t.replace(/\/+$/,"")}/${encodeURIComponent(n)}/content-cache/preview/${encodeURIComponent(e)}/${encodeURIComponent(o)}`,c=await fetch(r,{method:"GET"});if(!c.ok)throw new Error(`LIVE content fetch failed: ${c.status}`);return c.json()}(u,{contentObjectType:e.type,projectId:o,liveRef:s}):async function(t,e){return(await fetch("https://deploys.services.outsmartly.app/content",{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}})).json()}(0,{contentLookupKey:t,contentObjectString:JSON.stringify(e),projectId:o,handle:i,ACTION:"GET_CONTENT"}).then((t=>{if(t.success)return t.object;throw r&&delete n[l],new Error(t.error)}));if(!r)return a();const l=function(t,e,n,o){return`${e}:${t}:${null!=n?n:""}:${null!=o?o:""}`}(t,o,i,s);if(n[l])return n[l].promise;const f=a();return setTimeout((()=>{delete n[l]}),c),n[l]={promise:f},f};const n={}}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var c=n[t]={exports:{}};return e[t](c,c.exports,o),c.exports}var r={};(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.setupContent=function({getFromCache:t,getFromCacheList:o,selectContentResult:r,projectId:c,featureAssignments:i,localRemoteCache:s}){const u=o?async t=>(await o([t]))[0]:t;return async function(t,o){var a;const l=Boolean(o&&t.key),f=`content_${l?`${t.type}_${o}`:t.type}`,p=`__${f}`,h=null==i?void 0:i[f];if(null==h?void 0:h.startsWith("SKA-")){const e=`__content_${t.type}_${h}`,n=await u(e);if(n){const{__meta:t,...e}=n;return e}}if(c&&(null==h?void 0:h.startsWith("LIVE-"))){const o=null!==(a=null==i?void 0:i.contentCacheEndpoint)&&void 0!==a?a:n,r=await(0,e.getFromRemote)({contentLookupKey:p,contentObject:t,projectId:c,localRemoteCache:s,liveRef:h,contentCacheEndpoint:o}),{__meta:u,...l}=r;return l}let d=null;if(c&&"true"===(null==i?void 0:i[`preview_${t.type}`])){const n="product_mf"!==t.type&&"collection_mf"!==t.type||!l?null==i?void 0:i[f]:String(o);d=await(0,e.getFromRemote)({contentLookupKey:p,contentObject:t,projectId:c,localRemoteCache:s,handle:n})}if(d||(d=await u(p)),!d)return void(s&&console.warn(`No content found for "${t.type}"`));const y=await r(t,d,f);if(!y)return y;const{__meta:m,...v}=y;return v}};const e=o(8578),n="https://canvas.outsmartly.app"})(),t.exports=r})()},73:t=>{"use strict";t.exports=function(t,e){e||(e={}),"function"==typeof e&&(e={cmp:e});var n,o="boolean"==typeof e.cycles&&e.cycles,r=e.cmp&&(n=e.cmp,function(t){return function(e,o){var r={key:e,value:t[e]},c={key:o,value:t[o]};return n(r,c)}}),c=[];return function t(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);var n,i;if(Array.isArray(e)){for(i="[",n=0;n