"use strict";(globalThis.webpackChunkweb_stories_wp=globalThis.webpackChunkweb_stories_wp||[]).push([[3669],{2039:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16.355 6.854a.5.5 0 0 0-.707-.708l-9.48 9.484a.499.499 0 0 0 0 .743l9.48 9.483a.5.5 0 0 0 .707-.707L7.71 16.5H25.5a.5.5 0 1 0 0-1H7.71l8.645-8.647Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgArrowLeftLarge)},98477:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.5 8A1.5 1.5 0 0 0 8 9.5v4A1.5 1.5 0 0 0 9.5 15h4a1.5 1.5 0 0 0 1.5-1.5v-4A1.5 1.5 0 0 0 13.5 8h-4ZM9 9.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4ZM18.5 8A1.5 1.5 0 0 0 17 9.5v4a1.5 1.5 0 0 0 1.5 1.5h4a1.5 1.5 0 0 0 1.5-1.5v-4A1.5 1.5 0 0 0 22.5 8h-4ZM18 9.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4ZM9.5 17A1.5 1.5 0 0 0 8 18.5v4A1.5 1.5 0 0 0 9.5 24h4a1.5 1.5 0 0 0 1.5-1.5v-4a1.5 1.5 0 0 0-1.5-1.5h-4ZM9 18.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4Zm9.5-1.5a1.5 1.5 0 0 0-1.5 1.5v4a1.5 1.5 0 0 0 1.5 1.5h4a1.5 1.5 0 0 0 1.5-1.5v-4a1.5 1.5 0 0 0-1.5-1.5h-4Zm-.5 1.5a.5.5 0 0 1 .5-.5h4a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-4a.5.5 0 0 1-.5-.5v-4Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgBox4)},30648:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M23.847 10.14a.5.5 0 0 1 .013.707l-10.625 11a.5.5 0 0 1-.72 0L8.14 17.318a.5.5 0 0 1 .72-.695l4.015 4.157L23.14 10.153a.5.5 0 0 1 .707-.013Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgCheckmark)},61887:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.853 13.145a.5.5 0 0 1 .003.707l-4.959 5.004a.5.5 0 0 1-.71 0l-2.042-2.06a.5.5 0 0 1 .71-.705l1.687 1.702 4.603-4.645a.5.5 0 0 1 .708-.003Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgCheckmarkSmall)},76517:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"m20 15-4 3-4-3"})))},i=(0,o.memo)(SvgChevronDownSmall)},99832:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,d:"m10.5 18 5.5-5.5 5.5 5.5"})))},i=(0,o.memo)(SvgChevronUp)},18969:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.854 9.146a.5.5 0 1 0-.708.708L15.293 16l-6.147 6.146a.5.5 0 0 0 .708.708L16 16.707l6.146 6.147a.5.5 0 0 0 .708-.708L16.707 16l6.147-6.146a.5.5 0 0 0-.708-.708L16 15.293 9.854 9.146Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgCross)},48068:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 9a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm0-1a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm0 10a1 1 0 1 0 0 2 1 1 0 0 0 0-2Zm-.5-2a.5.5 0 0 0 1 0v-4a.5.5 0 0 0-1 0v4Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgExclamationOutline)},37233:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 8a3 3 0 0 0-3 3v3h-1.5a1.5 1.5 0 0 0-1.5 1.5v7a1.5 1.5 0 0 0 1.5 1.5h9a1.5 1.5 0 0 0 1.5-1.5v-7a1.5 1.5 0 0 0-1.5-1.5H19v-3a3 3 0 0 0-3-3Zm2 6v-3a2 2 0 1 0-4 0v3h4Zm-4.5 1h-2a.5.5 0 0 0-.5.5v7a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.5-.5h-7Zm2.5 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgLockClosed)},42914:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9 14.636a5.636 5.636 0 1 1 11.272 0 5.636 5.636 0 0 1-11.272 0Zm9.961 5.033a6.636 6.636 0 1 1 .707-.707l4.184 4.184a.5.5 0 1 1-.707.707l-4.184-4.184Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgMagnifier)},25252:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"m17.672 11.579-7.514 7.514a.5.5 0 0 0-.137.256l-.51 2.552a.5.5 0 0 0 .588.588l2.552-.51a.5.5 0 0 0 .255-.137l7.515-7.515-2.749-2.748Zm3.346-2.64a1.5 1.5 0 0 0-2.12 0L9.45 18.386a1.5 1.5 0 0 0-.41.766l-.511 2.552a1.5 1.5 0 0 0 1.765 1.766l2.552-.51a1.5 1.5 0 0 0 .767-.411l9.446-9.447a1.5 1.5 0 0 0 0-2.121L21.02 8.939Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgPencil)},96921:(e,t,r)=>{r.d(t,{default:()=>i});var n,o=r(67294);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return o.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},i),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 9.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V11h-4V9.5ZM13 11H8.5a.5.5 0 0 0 0 1h15a.5.5 0 0 0 0-1H19V9.5A1.5 1.5 0 0 0 17.5 8h-3A1.5 1.5 0 0 0 13 9.5V11Zm-2.5 3a.5.5 0 0 1 .5.5v7a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5v-7a.5.5 0 0 1 1 0v7a2.5 2.5 0 0 1-2.5 2.5h-7a2.5 2.5 0 0 1-2.5-2.5v-7a.5.5 0 0 1 .5-.5Zm3.5.5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-1 0v-5a.5.5 0 0 1 .5-.5Zm4.5.5a.5.5 0 0 0-1 0v5a.5.5 0 0 0 1 0v-5Z",clipRule:"evenodd"})))},i=(0,o.memo)(SvgTrash)},86290:(e,t,r)=>{r.d(t,{default:()=>f});var n=r(38627),o=r(3526);const a=new RegExp(" ","gi");r(41792),r(70560);var i=r(83285),l=r(30890),s=r(56491),c=r(80812),d=r(30776);const u={d:"dd",D:"EEE",j:"d",l:"EEEE",N:"i",S:e=>(0,i.default)(e,"do").replace((0,i.default)(e,"d"),""),w:e=>Number((0,i.default)(e,"i"))-1,z:e=>Number((0,i.default)(e,"DDD"))-1,W:"I",F:"MMMM",m:"MM",M:"MMM",n:"M",t:e=>(0,l.default)(e),L:e=>Number((0,s.default)(e)),o:"RRRR",Y:"yyyy",y:"yy",a:"aaa",A:"aa",B(e){const t=(0,c.default)(e,"+0100"),r=parseInt((0,i.default)(t,"s")),n=parseInt((0,i.default)(t,"m")),o=parseInt((0,i.default)(t,"H"));return Math.round((r+60*n+3600*o)/86.4)},g:"h",G:"H",h:"hh",H:"HH",i:"mm",s:"ss",u:"SSSSSS",v:"SSS",e:"zzzz",I:()=>0,O:"xx",P:"xxx",T:"zzz",Z(e){const t=(0,o.default)((0,n.default)(e,(0,d.default)()),"XXX",(0,d.default)());if("Z"===t)return 0;const r="-"===t[0]?-1:1,a=t.substring(1).split(":").map(Number);return r*(60*a[0]+a[1])*60},c:e=>(0,o.default)((0,n.default)(e,(0,d.default)()),"yyyy-MM-dd'T'HH:mm:ssxxx",(0,d.default)()),r:e=>(0,o.default)((0,n.default)(e,(0,d.default)()),"EEE, dd MMM yyyy HH:mm:ss xx",(0,d.default)()),U:"t"};const p=function(e,t){let r,n;const o=[];for(r=0;r{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(86290),o=r(40877);const __WEBPACK_DEFAULT_EXPORT__=function(e){const t=(0,o.getSettings)(),{dateFormat:r}=t;return(0,n.default)(e,r)}},30776:(e,t,r)=>{r.d(t,{default:()=>p});var n=r(82512),o=r.n(n);function a(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}var i=r(40877),l=r(83057),s=r(36823);const c={lessThanXMinutes:e=>(0,l.default)(/* translators: Time difference between two dates, in minutes (min=minute). %s: Number of minutes. */ (0,s._n)("less than %s min","less than %s mins",e,"web-stories"),String(e)),xMinutes:e=>(0,l.default)(/* translators: Time difference between two dates, in minutes. %s: Number of minutes. */ (0,s._n)("%s minute","%s minutes",e,"web-stories"),String(e)),aboutXHours:e=>1===e?(0,s.__)("an hour","web-stories"):(0,l.default)(/* translators: Time difference between two dates, in hours. %s: Number of hours. */ (0,s._n)("%s hour","%s hours",e,"web-stories"),String(e)),xHours:e=>(0,l.default)(/* translators: Time difference between two dates, in hours. %s: Number of hours. */ (0,s._n)("%s hour","%s hours",e,"web-stories"),String(e))};function d(e,t,r){r=r||{};const n=c[e](t);return r.addSuffix?(r.comparison||0)>0?(0,l.default)(/* translators: %s: Human-readable time difference. */ (0,s.__)("in %s","web-stories"),n):(0,l.default)(/* translators: %s: Human-readable time difference. */ (0,s.__)("%s ago","web-stories"),n):n}const u=function(){const e=(0,i.getSettings)(),{timezone:t,gmtOffset:r}=e;return t||(Number.isNaN(Number(r))?"+00":function(e){const t=e<0?"-":"+",r=Math.abs(e),n=r<=12,o=n?Math.round(r%1*60):Math.round(r%60),a=n?Math.floor(r):Math.floor(r/60),i=String(a).padStart(2,"0");if(o>0)return`${t}${i}:${String(o).padStart(2,"0")}`;return`${t}${i}`}(r))};const p=function(){const e=(0,i.getSettings)(),{locale:t,weekStartsOn:r,months:n,monthsShort:l,weekdays:s,weekdaysShort:c,weekdaysInitials:p}=e,f={narrow:l||["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:l||["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:n||["January","February","March","April","May","June","July","August","September","October","November","December"]},m={narrow:p||["S","M","T","W","T","F","S"],short:c||["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:c||["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:s||["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},g={...o().localize,month:a({values:f,defaultWidth:"wide"}),day:a({values:m,defaultWidth:"wide"})},h={...o(),code:t||o().code,formatDistance:d,localize:g,options:{weekStartsOn:r}};return{weekStartsOn:r,timeZone:u(),locale:h}}},40877:(e,t,r)=>{r.d(t,{getSettings:()=>i,updateSettings:()=>a});const n={dateFormat:"F j, Y",timeFormat:"g:i a",gmtOffset:0,timezone:"",timezoneAbbr:"",weekStartsOn:0};let o={...n};function a(e){o={...o,...e}}function i(){return o}},58228:(e,t,r)=>{r.d(t,{Button:()=>N,ButtonAsLink:()=>L});var n=r(67294),o=r(69845),a=r(12788),i=r(41708),l=r(38668),s=r(72165),c=r(85703),d=r(5574);const u=(0,a.css)(["display:flex;align-items:center;justify-content:space-around;padding:0;margin:0;background:transparent;border:none;cursor:pointer;color:",";",";",";&:active{background-color:",";color:",";}&:disabled,&[aria-disabled='true']{pointer-events:none;background-color:",";color:",";}transition:background-color ",",color ",";"],(e=>{let{theme:t}=e;return t.colors.fg.primary}),(e=>{let{theme:t}=e;return i.focusableOutlineCSS(t.colors.border.focus)}),(e=>{let{theme:t,size:r}=e;return l.expandPresetStyles({preset:{...t.typography.presets.label[r===d.ButtonSize.Small?s.TextSize.Small:s.TextSize.Medium]},theme:t})}),(e=>{let{theme:t}=e;return t.colors.interactiveBg.active}),(e=>{let{theme:t}=e;return t.colors.interactiveFg.active}),(e=>{let{theme:t}=e;return t.colors.interactiveBg.disable}),(e=>{let{theme:t}=e;return t.colors.fg.disable}),d.BUTTON_TRANSITION_TIMING,d.BUTTON_TRANSITION_TIMING),p=(0,a.css)(["&:hover,&:focus{color:",";}"],(e=>{let{theme:t}=e;return t.colors.interactiveFg.active})),f={[d.ButtonType.Primary]:e=>{let{theme:t}=e;return(0,a.css)(["background-color:",";color:",";&:active{background-color:",";color:",";}&:hover,&:focus{background-color:",";color:"," !important;}"],t.colors.interactiveBg.brandNormal,t.colors.interactiveFg.brandNormal,t.colors.interactiveBg.active,t.colors.interactiveFg.active,t.colors.interactiveBg.brandHover,t.colors.interactiveFg.brandHover)},[d.ButtonType.Secondary]:e=>{let{theme:t}=e;return(0,a.css)(["background-color:",";&:hover,&:focus{background-color:",";}&:disabled{&:hover,&:focus{background-color:",";}}"],t.colors.interactiveBg.secondaryNormal,t.colors.interactiveBg.secondaryHover,t.colors.interactiveBg.disable)},[d.ButtonType.Tertiary]:e=>{let{theme:t}=e;return(0,a.css)(["background-color:",";&:hover,&:focus{background-color:",";}&:disabled,&[aria-disabled='true']{background-color:",";&:hover,&:focus{background-color:",";}}"],t.colors.interactiveBg.tertiaryNormal,t.colors.interactiveBg.tertiaryHover,t.colors.interactiveBg.tertiaryNormal,t.colors.interactiveBg.tertiaryNormal)},[d.ButtonType.Quaternary]:e=>{let{theme:t}=e;return(0,a.css)(["background-color:",";border:1px solid ",";&:hover{border-color:",";}&:focus{box-shadow:none;border-color:",";}&:active{border-color:",";background-color:",";}",";"," &:disabled,&[aria-disabled='true']{border-color:",";background-color:",";}"],t.colors.interactiveBg.quaternaryNormal,t.colors.border.defaultNormal,t.colors.border.quaternaryHover,t.colors.border.quaternaryHover,t.colors.border.quaternaryActive,t.colors.interactiveBg.quaternaryNormal,i.focusableOutlineCSS,(e=>{let{isToggled:r}=e;return r&&(0,a.css)(["border-color:",";"],t.colors.border.defaultPress)}),t.colors.border.disable,t.colors.interactiveBg.quaternaryNormal)},[d.ButtonType.Plain]:(0,a.css)([""])},m=(0,a.css)(["",";min-width:1px;min-height:1em;border-radius:",";padding:",";"],(e=>{let{$type:t}=e;return t&&f[t]}),(e=>{let{theme:t}=e;return t.borders.radius.small}),(e=>{let{size:t}=e;return t===d.ButtonSize.Small?"8px 16px":"18px 32px"})),g=(0,a.css)(["",";border-radius:",";"," svg{width:","px;height:","px;}"],(e=>{let{$type:t}=e;return t&&f[t]}),(e=>{let{theme:t}=e;return t.borders.radius.small}),(e=>{let{size:t}=e;return(0,a.css)(["width:","px;height:","px;"],t===d.ButtonSize.Small?c.THEME_CONSTANTS.ICON_SIZE:c.THEME_CONSTANTS.LARGE_BUTTON_SIZE,t===d.ButtonSize.Small?c.THEME_CONSTANTS.ICON_SIZE:c.THEME_CONSTANTS.LARGE_BUTTON_SIZE)}),c.THEME_CONSTANTS.ICON_SIZE,c.THEME_CONSTANTS.ICON_SIZE),h=(0,a.css)(["border-radius:",";"],(e=>{let{theme:t}=e;return t.borders.radius.round})),b=(0,a.css)(["",";width:","px;height:","px;svg{width:100%;height:100%;}"],(e=>{let{$type:t}=e;return t&&f[t]}),c.THEME_CONSTANTS.ICON_SIZE,c.THEME_CONSTANTS.ICON_SIZE);function y(e){switch(e){case d.ButtonSize.Small:return s.TextSize.Small;case d.ButtonSize.Medium:default:return s.TextSize.Medium}}const v=(0,a.css)(["",""],(e=>{let{theme:t,size:r}=e;return(0,a.css)(["",";color:",";border-radius:0;:hover{color:",";}&:active,&:disabled,&[aria-disabled='true']{background-color:",";}"],l.expandPresetStyles({preset:t.typography.presets.link[y(r)],theme:t}),t.colors.fg.linkNormal,t.colors.fg.linkHover,t.colors.opacity.footprint)})),w=a.default.button.withConfig({displayName:"button__ButtonRectangle",componentId:"sc-1wfpfsz-0"})([""," ",""],u,m),x=a.default.a.withConfig({displayName:"button__AnchorRectangle",componentId:"sc-1wfpfsz-1"})([""," "," ",""],u,p,m),S=a.default.button.withConfig({displayName:"button__ButtonSquare",componentId:"sc-1wfpfsz-2"})([""," ",""],u,g),E=a.default.a.withConfig({displayName:"button__AnchorSquare",componentId:"sc-1wfpfsz-3"})([""," "," ",""],u,p,g),C=a.default.button.withConfig({displayName:"button__ButtonCircle",componentId:"sc-1wfpfsz-4"})([""," "," ",""],u,g,h),O=a.default.a.withConfig({displayName:"button__AnchorCircle",componentId:"sc-1wfpfsz-5"})([""," "," "," ",""],u,p,g,h),_=a.default.button.withConfig({displayName:"button__ButtonIcon",componentId:"sc-1wfpfsz-6"})([""," ",""],u,b),I=a.default.a.withConfig({displayName:"button__AnchorIcon",componentId:"sc-1wfpfsz-7"})([""," "," ",""],u,p,b),k=a.default.button.withConfig({displayName:"button__ButtonLink",componentId:"sc-1wfpfsz-8"})([""," ",""],u,v),T=a.default.a.withConfig({displayName:"button__AnchorLink",componentId:"sc-1wfpfsz-9"})([""," "," ",""],u,p,v),N=(0,o.forwardRef)((function Button(e,t){let{size:r=d.ButtonSize.Medium,type:o=d.ButtonType.Plain,variant:a=d.ButtonVariant.Rectangle,children:i,...l}=e;const s={ref:t,size:r,$type:o,...l};switch(a){case d.ButtonVariant.Rectangle:return n.createElement(w,s,i);case d.ButtonVariant.Circle:return n.createElement(C,s,i);case d.ButtonVariant.Square:return n.createElement(S,s,i);case d.ButtonVariant.Icon:return n.createElement(_,s,i);case d.ButtonVariant.Link:return n.createElement(k,s,i);default:return null}})),L=(0,o.forwardRef)((function ButtonAsLink(e,t){let{size:r=d.ButtonSize.Medium,type:o=d.ButtonType.Plain,variant:a=d.ButtonVariant.Rectangle,children:i,...l}=e;const s={ref:t,size:r,$type:o,...l};switch(a){case d.ButtonVariant.Rectangle:return n.createElement(x,s,i);case d.ButtonVariant.Circle:return n.createElement(O,s,i);case d.ButtonVariant.Square:return n.createElement(E,s,i);case d.ButtonVariant.Icon:return n.createElement(I,s,i);case d.ButtonVariant.Link:return n.createElement(T,s,i);default:return null}}))},5574:(e,t,r)=>{r.d(t,{BUTTON_TRANSITION_TIMING:()=>i,ButtonSize:()=>o,ButtonType:()=>n,ButtonVariant:()=>a});let n=function(e){return e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Quaternary="quaternary",e.Plain="plain",e}({}),o=function(e){return e.Small="small",e.Medium="medium",e}({}),a=function(e){return e.Circle="circle",e.Rectangle="rectangle",e.Square="square",e.Icon="icon",e.Link="link",e}({});const i="0.3s ease 0s"},83308:(e,t,r)=>{r.d(t,{default:()=>m});var n=r(67294),o=r(36823),a=r(69845),i=r(12788),l=r(30648),s=r(41708);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t}=e;return(0,i.css)(["position:absolute;height:","px;width:","px;border-radius:",";border:","px solid ",";pointer-events:none;"],d,d,t.borders.radius.small,1,t.colors.border.defaultNormal)})),p=(0,i.default)(l.default).attrs({role:"img"}).withConfig({displayName:"checkbox__StyledCheckmark",componentId:"sc-5lv9m4-1"})(["height:auto;width:32px;color:",";"],(e=>{let{theme:t}=e;return t.colors.fg.primary})),f=i.default.div.withConfig({displayName:"checkbox__CheckboxContainer",componentId:"sc-5lv9m4-2"})((e=>{let{theme:t}=e;return(0,i.css)(["position:relative;display:flex;justify-content:center;align-items:center;height:","px;width:","px;min-height:","px;min-width:","px;input[type='checkbox']{position:absolute;width:","px;height:","px;margin:0;padding:0;opacity:0;cursor:pointer;:disabled{~ ","{border-color:",";}~ ","{color:",";}}&:focus-visible:not(:active) ~ ","{",";}:active ~ ","{border-color:",";box-shadow:0 0 0 8px ",";}}"],d,d,d,d,25,25,u,t.colors.border.disable,p,t.colors.fg.disable,u,(0,s.focusCSS)(t.colors.border.focus),u,t.colors.border.defaultNormal,t.colors.shadow.active)})),m=(0,a.forwardRef)(((e,t)=>{let{checked:r,disabled:a,className:i="",...l}=e;return n.createElement(f,{className:i},n.createElement("input",c({type:"checkbox",ref:t,checked:Boolean(r),disabled:a,"aria-checked":r},l)),r&&n.createElement(p,{"aria-label":(0,o.__)("Checked","web-stories")}),n.createElement(u,null))}))},63094:(e,t,r)=>{r.d(t,{default:()=>g});var n=r(67294),o=r(69845),a=r(12788),i=r(38668),l=r(72165),s=r(41708);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t,active:r,disabled:n}=e;return r&&!n?t.colors.interactiveBg.secondaryNormal:"transparent"},u=a.default.div.withConfig({displayName:"chip__Infix",componentId:"sc-oghxqk-0"})(["display:inline-block;margin-right:",";margin-left:",";height:28px;"],(e=>{let{before:t=!1}=e;return t?"-8px":"4px"}),(e=>{let{before:t=!1}=e;return t?"4px":"-8px"})),p=a.default.span.withConfig({displayName:"chip__StyledChip",componentId:"sc-oghxqk-1"})(["padding:0 12px;background:transparent;border:none;&:focus{outline:none;}"]),f=a.default.button.withConfig({displayName:"chip__ChipContainer",componentId:"sc-oghxqk-2"})((e=>{let{theme:t,disabled:r}=e;return(0,a.css)(["display:inline-flex;justify-content:center;align-items:center;height:36px;padding:0;background-color:",";border:1px solid ",";border-radius:",";transition:all 0.3s ease-in-out;transition-property:background-color,border-color,height,width,transform;cursor:",";"," :active{background-color:",";}:hover:not(:active){border-color:",";}",",","{white-space:nowrap;cursor:",";color:",";",";}"],d,r?t.colors.border.disable:t.colors.interactiveBg.secondaryNormal,t.borders.radius.x_large,r?"default":"pointer",s.focusableOutlineCSS,d({theme:t,active:!0,disabled:r}),r?t.colors.border.disable:t.colors.border.defaultHover,u,p,r?"default":"pointer",r?t.colors.fg.disable:t.colors.fg.primary,i.expandPresetStyles({preset:t.typography.presets.paragraph[l.TextSize.Small],theme:t}))})),m=(0,o.forwardRef)(((e,t)=>{let{children:r,prefix:o,suffix:a,...i}=e;return n.createElement(f,c({ref:t},i),o&&n.createElement(u,{before:!0},o),n.createElement(p,null,r),a&&n.createElement(u,null,a))}));m.displayName="Chip";const g=m},40918:(e,t,r)=>{r.d(t,{default:()=>p});var n=r(67294),o=r(12788),a=r(37723),i=r(69845);const l=(0,o.keyframes)(["100%{transform:rotate(360deg)}"]),s=(0,o.keyframes)(["0%{stroke-dasharray:1,200;stroke-dashoffset:0;}50%{stroke-dasharray:100,200;stroke-dashoffset:-15;}100%{stroke-dasharray:100,200;stroke-dashoffset:-125;}"]),c=o.default.div.attrs({role:"progressbar"}).withConfig({displayName:"circular__Wrapper",componentId:"sc-9ce9zw-0"})(["width:",";height:",";animation:"," 1.4s linear infinite;"],(e=>{let{size:t}=e;return`${t}px`}),(e=>{let{size:t}=e;return`${t}px`}),l),d=o.default.svg.withConfig({displayName:"circular__StyledSpinner",componentId:"sc-9ce9zw-1"})(["display:block;"]),u=o.default.circle.withConfig({displayName:"circular__StyledCircle",componentId:"sc-9ce9zw-2"})(["animation:"," 1.4s ease-in-out infinite;stroke:",";"],s,(e=>{let{theme:t}=e;return`${t.colors.accent.secondary}`}));const p=function CircularProgress(e){let{size:t=24,thickness:r=2}=e;const o=(0,i.useRef)(null);return n.createElement(a.default,{nodeRef:o,in:!0,appear:!0,timeout:0},n.createElement(c,{ref:o,size:t},n.createElement(d,{viewBox:`${t/2} ${t/2} ${t} ${t}`},n.createElement(u,{cx:t,cy:t,r:(t-r)/2,fill:"none",strokeWidth:r,stroke:"currentColor"}))))}},48652:(e,t,r)=>{r.d(t,{default:()=>p});var n=r(67294),o=r(12788),a=r(67745),i=r(69845),l=r(58228),s=r(8921),c=r(16330);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{isHorizontal:t,isIconMenu:r,forcePadding:n,theme:o}=e;return{height:t?"32px":void 0,padding:!n&&(t||r)?0:void 0,borderRadius:t||r?o.borders.radius.small:0}}),(e=>{let{theme:t}=e;return t.colors.fg.disable}),(e=>{let{theme:t}=e;return t.colors.interactiveBg.secondaryHover}),(e=>{let{theme:t}=e;return t.colors.interactiveBg.secondaryPress})),p=(0,i.forwardRef)((function Button(e,t){let{id:r,onBlur:o,onClick:l,onFocus:c,forcePadding:p=!1,dismissOnClick:f=!0,...m}=e;const{focusedId:g,isIconMenu:h,isHorizontal:b,onDismiss:y,onMenuItemBlur:v,onMenuItemFocus:w}=(0,s.default)((e=>{let{state:t,actions:r}=e;return{focusedId:t.focusedId,isIconMenu:t.isIconMenu,isHorizontal:t.isHorizontal,onDismiss:r.onDismiss,onMenuItemBlur:r.onMenuItemBlur,onMenuItemFocus:r.onMenuItemFocus}})),x=(0,i.useMemo)(a.default,[]),S=r||x;return n.createElement(u,d({ref:t,id:S,tabIndex:g===S?0:-1,role:"menuitem",isIconMenu:h,isHorizontal:b,forcePadding:p,onBlur:e=>{v(),o?.(e)},onClick:e=>{l(e),f&&y(e.nativeEvent)},onFocus:e=>{w(S),c?.(e)}},m))}))},22728:(e,t,r)=>{r.d(t,{default:()=>l});var n=r(67294),o=r(12788),a=r(8921);const i=o.default.div.withConfig({displayName:"separator__Line",componentId:"sc-1sjb4ry-0"})(["display:block;flex-shrink:0;",""],(e=>{let{isHorizontal:t,isIconMenu:r,theme:n}=e;return t?`\n width: 1px;\n height: 89%; /* 32px out of 36px */\n margin: auto 2px; /* there's an extra 6px horizontal flexbox gap */\n background-color: ${n.colors.divider.secondary};\n `:`\n height: 1px;\n margin: 2px auto; /* there's an extra 6px vertical flexbox gap */\n width: ${r?40:100}%;\n background-color: ${n.colors.divider.primary};\n `}));const l=function Separator(){const e=(0,a.default)((e=>{let{state:{isIconMenu:t,isHorizontal:r}}=e;return{isIconMenu:t,isHorizontal:r}}));return n.createElement(i,e)}},16330:(e,t,r)=>{r.d(t,{menuItemStyles:()=>l});var n=r(12788),o=r(38668),a=r(72165),i=r(5574);const l=(0,n.css)(["",";display:flex;justify-content:space-between;align-items:center;padding:2px 16px;border:0;color:",";font-weight:500;text-align:left;transition:background-color ",";"],(e=>{let{theme:t}=e;return o.expandPresetStyles({preset:t.typography.presets.paragraph[a.TextSize.XSmall],theme:t})}),(e=>{let{theme:t}=e;return t.colors.fg.primary}),i.BUTTON_TRANSITION_TIMING)},68660:(e,t,r)=>{r.d(t,{CONTEXT_MENU_MIN_WIDTH:()=>o,CONTEXT_MENU_SKIP_ELEMENT:()=>n});const n="context-menu-skip-element",o=200},46710:(e,t,r)=>{r.d(t,{default:()=>A});var n=r(67294),o=r(69845),a=r(36823),i=r(46315),l=r(12788);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{isOpen:t}=e;return t?"block":"none"}),(e=>{let{isInline:t}=e;return t?"relative":"absolute"}),(e=>{let{popoverZIndex:t=c}=e;return t})),u=l.default.div.withConfig({displayName:"styled__Shadow",componentId:"sc-16ikxuv-1"})(["position:absolute;top:0;right:0;bottom:0;left:0;border-radius:",";box-shadow:0px 4px 4px rgba(0,0,0,0.25);pointer-events:none;"],(e=>{let{theme:t,$isHorizontal:r}=e;return r?t.borders.radius.medium:t.borders.radius.small}));function SmartPopover(e){let{isRTL:t,...r}=e;const a=(0,o.useCallback)((e=>{if(!e)return;const r=e.getBoundingClientRect(),n=window.innerWidth-r.width,o=window.innerHeight-r.height,a=t?r.x<0:n0&&void 0!==arguments[0]?arguments[0]:i.noop;const t=(0,o.useRef)(null),r=(0,o.useRef)(i.noop),n=(0,o.useRef)(e);return n.current=e,(0,o.useCallback)((e=>{t.current&&document.removeEventListener("mousedown",r.current,!0),e&&(r.current=t=>{e===t.target||t.target instanceof Node&&e.contains(t.target)||n.current?.(t)},document.addEventListener("mousedown",r.current,!0)),t.current=e}),[])};var m=r(38785),g=r(58979),h=r(8921),b=r(68660);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t}=e;return(0,l.css)(["background-color:",";border-radius:",";border:1px solid ",";gap:6px;display:flex;"," *:last-child{margin-bottom:0;}"],(e=>{let{isSecondary:r}=e;return r?t.colors.bg.secondary:t.colors.bg.primary}),(e=>{let{isHorizontal:r}=e;return r?t.borders.radius.medium:t.borders.radius.small}),t.colors.border.disable,(e=>{let{isHorizontal:t,isIconMenu:r}=e;return t?(0,l.css)(["height:52px;padding:7px 10px;align-items:center;"]):(0,l.css)(["flex-direction:column;width:",";padding:",";max-width:","px;",";"],r?"40px":"auto",r?"4px 3px":"8px 0",300,!r&&(0,l.css)(["min-width:","px;"],b.CONTEXT_MENU_MIN_WIDTH))}))}));function w(e,t){const r=Array.from(e.querySelectorAll(p.FOCUSABLE_SELECTORS.join(", "))).filter((e=>e instanceof HTMLElement));return t?r:r.filter((e=>!e.matches(`[role="menu"], [role="menu"] [role="menu"] *, .${b.CONTEXT_MENU_SKIP_ELEMENT}`)))}const x=(0,o.forwardRef)(((e,t)=>{let{children:r,disableControlledTabNavigation:a,isOpen:l,onFocus:s=i.noop,isSubMenu:c=!1,isSecondary:d=!1,parentMenuRef:u,onCloseSubMenu:b=i.noop,dismissOnEscape:x=!0,...S}=e;const{isRTL:E}=S,{focusedId:C,isIconMenu:O,isHorizontal:_,onDismiss:I,setFocusedId:k}=(0,h.default)((e=>{let{state:t,actions:r}=e;return{focusedId:t.focusedId,isIconMenu:t.isIconMenu,isHorizontal:t.isHorizontal,onDismiss:r.onDismiss,setFocusedId:r.setFocusedId}})),T=f((()=>l&&!c&&I())),N=(0,m.default)(t),L=(0,o.useCombinedRefs)(T,N),R=(0,o.useCallback)((e=>{if(s(e),!N.current)return;const t=[...N.current.children],r=t.length&&![...t].some((t=>t.contains(e.target)));if(N.current===e.target&&r){const e=w(N.current);document.dispatchEvent(new KeyboardEvent("keydown",{key:"tab"})),e.length>0&&e[0]instanceof HTMLElement&&e[0].focus()}}),[s,N]),M=(0,o.useCallback)((e=>{let t=e.findIndex((e=>e.id===C));return-1===t&&(t=e.findIndex((e=>e.id===document.activeElement?.id))),t}),[C]),B=(0,o.useCallback)((e=>{const{key:t}=e;if("Escape"===t)return void I(e);if(!N.current)return;const r=w(N.current,c);let n=M(r);-1===n&&r.length&&(k(r[0].id),n=0);const o=_?p.KEYS.LEFT:p.KEYS.UP;if([o,_?p.KEYS.RIGHT:p.KEYS.DOWN].includes(t)){let e=n+(o===t?-1:1);-1===e&&(e=r.length-1);const a=r[e%r.length];return a?.focus(),void k(a.id||null)}const a=_?p.KEYS.UP:E?p.KEYS.RIGHT:p.KEYS.LEFT;if(c&&a===t&&u.current){const e=u.current.querySelector('button[aria-expanded="true"]');e?.focus(),b()}}),[N,c,M,_,E,u,I,k,b]);(0,o.useEffect)((()=>{if(l&&N.current){const e=w(N.current);e.length&&e[0]instanceof HTMLElement&&(e[0].focus(),k(e[0].id))}}),[l,N,k]);const z=(0,o.useMemo)((()=>a?{key:[]}:{key:["tab"],shift:!0}),[a]);return(0,g.useKeyDownEffect)(N,{key:x?["esc","down","up","left","right"]:["down","up","left","right"]},B,[B,x]),(0,g.useKeyDownEffect)(N,z,I,[z,I]),n.createElement(v,y({ref:L,"data-testid":"context-menu-list",role:"menu",isIconMenu:O,isHorizontal:_,isSecondary:d,tabIndex:N.current?.contains(document.activeElement)?-1:0,onFocus:R},S),r)}));var S=r(85703);let E=function(e){return e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e}({});const C={[`${E.Top}_${E.Left}`]:`${E.Top}_${E.Left}`,[`${E.Top}_${E.Right}`]:`${E.Top}_${E.Right}`,[`${E.Bottom}_${E.Right}`]:`${E.Bottom}_${E.Right}`,[`${E.Bottom}_${E.Left}`]:`${E.Bottom}_${E.Left}`};function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{animationFinished:t}=e;return t?"normal":"hidden"}),(e=>{let{theme:t}=e;return t.borders.radius.small}),k),L=l.default.div.withConfig({displayName:"animationContainer__MenuCounterRevealer",componentId:"sc-mgrs2o-2"})(["border-radius:",";"],(e=>{let{theme:t}=e;return t.borders.radius.small})),R=(0,l.default)(d).withConfig({displayName:"animationContainer__ButtonInner",componentId:"sc-mgrs2o-3"})([""," ",";transform:",";","{","}","{transition:",";","}","{transition:",";","}","{transition:",";transform:",";transform-origin:",";}"],k,(e=>{let{isInline:t}=e;return t&&"position: relative"}),(e=>{let{align:t}=e;switch(t){case C.top_left:return`translate(${_[E.Left]}%, ${_[E.Top]}%)`;case C.top_right:return`translate(${_[E.Right]}%, ${_[E.Top]}%)`;case C.bottom_right:return`translate(${_[E.Right]}%, ${_[E.Bottom]}%)`;default:return`translate(${_[E.Left]}%, ${_[E.Bottom]}%)`}}),T,(e=>{switch(e.align){case C.top_right:return(0,l.css)(["top:0;right:0;"]);case C.top_left:return(0,l.css)(["top:0;left:0;"]);case C.bottom_right:return(0,l.css)(["right:0;bottom:0;"]);default:return(0,l.css)(["left:0;bottom:0;"])}}),N,(e=>e.isReady?I:"none"),(e=>{switch(e.align){case C.top_right:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(50%, -50%)");case C.top_left:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(-50%, -50%)");case C.bottom_right:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(50%, 50%)");default:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(-50%, 50%)")}}),L,(e=>e.isReady?I:"none"),(e=>{switch(e.align){case C.top_right:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(-50%, 50%)");case C.top_left:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(50%, 50%)");case C.bottom_right:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(-50%, -50%)");default:return(0,l.css)(["transform:",";"],e.isReady?"none":"translate(50%, -50%)")}}),u,(e=>e.isReady?I:"none"),(e=>e.isReady?"none":"scale(0.5)"),(e=>{switch(e.align){case C.top_right:return"right top";case C.top_left:return"left top";case C.bottom_right:return"right bottom";default:return"left bottom"}}));const M=function AnimationContainer(e){let{children:t,isOpen:r,...a}=e;const[i,l]=(0,o.useState)(null),[s,c]=(0,o.useState)(!1),[d,p]=(0,o.useState)(!0),f=(0,o.useRef)(null),m=(0,o.useRef)(null);return(0,o.useLayoutEffect)((()=>{if(!r)return void l(null);if(!m.current||!f.current)return;const e=m.current.getBoundingClientRect(),t=f.current.getBoundingClientRect(),n=e.left+e.width*(_[E.Left]/100),o=e.bottom+e.height*(_[E.Bottom]/100),a=n+t.width>window.innerWidth?E.Right:E.Left,i=0>o-t.height?E.Top:E.Bottom;l(C[`${i}_${a}`])}),[r]),(0,o.useEffect)((()=>{if(!r)return;p(!1);const e=setTimeout((()=>p(!0)),175);return()=>clearTimeout(e)}),[r]),(0,o.useEffect)((()=>{const e=requestAnimationFrame((()=>c(Boolean(i))));return()=>cancelAnimationFrame(e)}),[i]),n.createElement(R,O({align:i,isOpen:r,isReady:s,ref:m},a),n.createElement(T,null,n.createElement(N,{animationFinished:r&&d},n.createElement(L,{ref:f},t)),n.createElement(u,null)))};var B=r(84878);function ContextMenuProvider(e){let{children:t,isIconMenu:r=!1,isHorizontal:a=!1,onDismiss:i}=e;const[l,s]=(0,o.useState)(null),c=(0,o.useCallback)((e=>s(e)),[]),d={state:{focusedId:l,isIconMenu:r,isHorizontal:a},actions:{onDismiss:i,onMenuItemBlur:(0,o.useCallback)((()=>s(null)),[]),onMenuItemFocus:c,setFocusedId:s}};return n.createElement(B.default.Provider,{value:d},t)}function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{animate:r,"aria-label":l=(0,a.__)("Menu","web-stories"),children:s,id:c,isAlwaysVisible:d,isIconMenu:p=!1,isHorizontal:f=!1,isInline:m=!1,onDismiss:g=i.noop,popoverZIndex:h,...b}=e;const{isRTL:y}=b,v=(0,o.useMemo)((()=>r?M:SmartPopover),[r]);return n.createElement(ContextMenuProvider,{isIconMenu:p,isHorizontal:f,onDismiss:g},n.createElement(v,{"aria-label":l,isInline:m,role:d?null:"dialog",isOpen:d||b.isOpen,isRTL:y,popoverZIndex:h},n.createElement(x,z({"aria-label":l,ref:t,"aria-expanded":b.isOpen},b),s),!r&&n.createElement(u,{$isHorizontal:f})))}))},84878:(e,t,r)=>{r.d(t,{default:()=>n});const n=(0,r(69845).createContext)({state:{focusedId:null,isIconMenu:!1,isHorizontal:!1},actions:{onDismiss:()=>{},onMenuItemBlur:()=>{},onMenuItemFocus:()=>{},setFocusedId:()=>{}}})},8921:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(69845),o=r(84878);const __WEBPACK_DEFAULT_EXPORT__=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.identity;return(0,n.useContextSelector)(o.default,e)}},80125:(e,t,r)=>{r.d(t,{default:()=>H});var n=r(67294),o=(r(67602),r(70928),r(69845)),a=r(12788),i=r(41708),l=r(38785),s=r(88442),c=r(59470),d=r(67745),u=r(36823),p=r(38668),f=r(42914),m=r(18969),g=r(58228),h=r(5574),b=r(46315);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t svg{height:100%;width:auto;color:",";fill:",";}"],(e=>{let{theme:t}=e;return t.colors.fg.primary}),(e=>{let{theme:t}=e;return t.colors.fg.primary})),x=a.default.div.withConfig({displayName:"searchInput__SearchIconContainer",componentId:"sc-1jy0xcc-1"})([""," left:0;height:28px;"],w),S=(0,a.default)(g.Button).attrs({variant:h.ButtonVariant.Icon}).withConfig({displayName:"searchInput__ClearButton",componentId:"sc-1jy0xcc-2"})(["",";right:0;height:20.5px;opacity:0.4;"],w),E=a.default.input.attrs({type:"search",role:"combobox","aria-autocomplete":"list"}).withConfig({displayName:"searchInput__Input",componentId:"sc-1jy0xcc-3"})(["width:100%;padding:6px 20px 6px 30px;border-radius:",";background:",";border:1px solid ",";color:",";"," &::-ms-clear{display:none;}&:placeholder-shown{text-overflow:ellipsis;}&::-webkit-input-placeholder{text-overflow:ellipsis;}&::-moz-placeholder{text-overflow:ellipsis;}&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{appearance:none;}&:focus{border-color:",";}"],(e=>{let{theme:t}=e;return t.borders.radius.small}),(e=>{let{theme:t}=e;return t.colors.bg.primary}),(e=>{let{theme:t}=e;return t.colors.border.defaultActive}),(e=>{let{theme:t}=e;return t.colors.fg.primary}),p.expandTextPreset(((e,t)=>{let{paragraph:r}=e,{Small:n}=t;return r[n]})),(e=>{let{theme:t}=e;return t.colors.border.focus})),C=(0,o.forwardRef)((function SearchInput(e,t){let{isExpanded:r,onClose:a,value:i,onChange:l,focusFontListFirstOption:s=b.noop,placeholder:c=(0,u.__)("Search","web-stories"),...d}=e;const p=(0,o.useCallback)((e=>{e.stopPropagation();const{key:t}=e;"Escape"===t?a():"ArrowDown"===t&&s()}),[a,s]);return n.createElement(v,null,n.createElement(E,y({ref:t,"aria-expanded":r,value:i,onKeyDown:p,placeholder:c,size:Math.min(c.length,35),onChange:e=>l(e.target.value),"aria-label":(0,u.__)("Search","web-stories")},d)),n.createElement(x,null,n.createElement(f.default,null)),i.trim().length>0&&n.createElement(S,{onClick:()=>l("")},n.createElement(m.default,null)))}));r(53476),r(49411),r(15716),r(33442),r(61964),r(69878),r(52915),r(97895),r(22275),r(31107),r(41792);const O=e=>t=>e.filter((e=>{let{name:r}=e;return r.toLowerCase().includes(t.toLowerCase())})),_=e=>e.trim().length>=2,I=a.default.div.withConfig({displayName:"container__Container",componentId:"sc-1g4yn9j-0"})(["position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:100%;min-width:120px;z-index:2;background-color:",";border-radius:",";padding:5px;margin-top:16px;"," "," ",";"],(e=>{let{theme:t}=e;return t.colors.bg.primary}),(e=>{let{theme:t}=e;return t.borders.radius.small}),(e=>{let{isInline:t}=e;return t&&(0,a.css)(["position:absolute;margin-top:0;padding:0;min-width:initial;width:initial;"])}),(e=>{let{theme:t,hasDropDownBorder:r}=e;return r&&(0,a.css)(["border:1px solid ",";"],t.colors.border.defaultNormal)}),(e=>{let{$containerStyleOverrides:t}=e;return t}));const k=(0,o.forwardRef)((function OptionsContainerWithRef(e,t){let{onClose:r,isOpen:a,getOptionsByQuery:i,hasSearch:l,renderContents:s,isInline:c,hasDropDownBorder:u=!1,containerStyleOverrides:p,title:f,placeholder:m}=e;const g=(0,o.useRef)(null),[h,b]=(0,o.useState)(""),[y,v]=(0,o.useState)(null),[w,x]=(0,o.useState)(!0),[S,E]=(0,o.useState)(0);(0,o.useFocusOut)(g,r,[r]);const O=(0,o.useDebouncedCallback)((()=>{i?.(h)?.then(v)}),500);(0,o.useEffect)((()=>{i&&_(h)?O():v(null)}),[i,h,O]),(0,o.useEffect)((()=>{a&&t&&"current"in t&&t.current&&t.current.focus()}),[a,t]);const k=(0,o.useMemo)((()=>`list-${(0,d.default)()}`),[]);return n.createElement(I,{role:"dialog",title:f,ref:g,isInline:c,hasDropDownBorder:u,$containerStyleOverrides:p},l&&n.createElement(C,{ref:t,value:h,onChange:b,onClose:r,isExpanded:w,focusFontListFirstOption:()=>E((e=>e+1)),"aria-owns":k,placeholder:m}),s({searchKeyword:h,setIsExpanded:x,trigger:S,queriedOptions:y,listId:k}))}));r(30005);var T=r(72165),N=r(6992),L=r(49775);function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t}=e;return t.colors.fg.tertiary}));const z=(0,o.memo)((0,o.forwardRef)((function OptionListWithRef(e,t){let{keyword:r="",value:a="",onSelect:i=b.noop,onClose:s=b.noop,onExpandedChange:c=b.noop,focusTrigger:p=0,options:f=[],primaryOptions:m,primaryLabel:g,priorityOptionGroups:h=[],searchResultsLabel:y,renderer:v=M,onObserve:w,focusSearch:x=b.noop,listId:S,listStyleOverrides:E,noMatchesFoundLabel:C=(0,u.__)("No matches found","web-stories")}=e;const I=(0,l.default)(t),k=(0,o.useRef)([]),[T,N]=(0,o.useState)(-1),R=(0,o.useRef)([]),z=(0,o.useMemo)((()=>_(r)&&f?[{label:y,options:O(f)(r)}]:[...h?.length?h:[],{label:g,options:m}]),[r,f,h,m,g,y]),A=I.current,P=(0,o.useMemo)((()=>A?new window.IntersectionObserver((e=>{if(w){const t=e.filter((e=>e.isIntersecting)).map((e=>e.target)).filter((e=>e instanceof HTMLElement)).map((e=>e.dataset.option)).filter((e=>Boolean(e)));R.current=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{const e=k.current;return w&&e.forEach((e=>e&&P?.observe(e))),()=>{w&&e.forEach((e=>e&&P?.unobserve(e))),k.current=[]}}),[P,w,z,v]);const j=(0,o.useMemo)((()=>z.flatMap((e=>{let{options:t}=e;return t}))),[z]),H=(0,o.useCallback)((e=>{const{key:t}=e;e.stopPropagation(),e.preventDefault(),"Tab"===t&&e.shiftKey&&x(),"Escape"===t?s():"Enter"===t?j[T]&&i(j[T]):"ArrowUp"===t?N((e=>Math.max(0,e-1))):"ArrowDown"===t&&N((e=>Math.min(j.length-1,e+1)))}),[T,j,s,i,x]);(0,o.useFocusOut)(I,(()=>N(-1)),[]),(0,o.useEffect)((()=>{const e=I.current;if(!e)return;if(-1===T)return void e.scrollTo(0,0);const t=k.current[T];t&&(t.focus(),e.scrollTo(0,t.offsetTop-e.clientHeight/2))}),[T,j,r,s,I]);const D=j.length>0;return(0,o.useEffect)((()=>c(D)),[c,D]),(0,o.useEffect)((()=>{p>0&&N(0)}),[p]),j.length<=0?n.createElement(L.NoResult,null,C):n.createElement(L.List,{ref:I,tabIndex:0,id:S,role:"listbox",onKeyDown:H,"aria-label":(0,u.__)("Option List Selector","web-stories"),"aria-required":!1,$listStyleOverrides:E},z.map(((e,t)=>{const r=`group-${(0,d.default)()}`;return e.options.length>0&&n.createElement(L.GroupList,{key:r,role:"group","aria-labelledby":r},e.label&&n.createElement(L.GroupLabel,{id:r,role:"presentation"},n.createElement(B,null,e.label)),e.options.map(((e,r)=>{const o=((e,t,r)=>e.slice(0,t).map((e=>e.options.length)).reduce(((e,t)=>e+t),0)+r)(z,t,r);return n.createElement(v,{key:e.id||"",role:"option",tabIndex:-1,"aria-selected":a===e.id,"aria-posinset":o+1,"aria-setsize":j.length,"data-option":e.id,onClick:()=>i(e),ref:e=>k.current[o]=e,option:e,value:a})})))})))})));function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t}=e;return i.focusableOutlineCSS(t.colors.border.focus,t.colors.bg.secondary)})),j=a.default.div.withConfig({displayName:"datalist__Container",componentId:"sc-jbfg0f-0"})(["display:flex;flex-direction:column;flex-grow:1;"]),H=(0,o.forwardRef)((function Datalist(e,t){let{onChange:r,disabled:a=!1,selectedId:i,options:d,hasSearch:u=!1,getOptionsByQuery:p,onObserve:f,primaryOptions:m,primaryLabel:g,priorityOptionGroups:h,searchResultsLabel:b,renderer:y,activeItemRenderer:v,isInline:w=!1,dropDownLabel:x="",highlightStylesOverride:S,hasDropDownBorder:E=!1,zIndex:C,listStyleOverrides:O,containerStyleOverrides:_,title:I,dropdownButtonLabel:T,className:N,offsetOverride:L=!1,noMatchesFoundLabel:R,searchPlaceholder:M,maxWidth:B,getPrimaryOptions:H,...D}=e;const F=(0,l.default)(t),$=(0,o.useRef)(null),W=(0,o.useRef)(null);if(!d&&!p)throw new Error("Dropdown initiated with invalid params: options or getOptionsByQuery has to be set");u||(m=d);const[q,V]=(0,o.useState)(!1),[Z,X]=(0,o.useState)([]),K=(0,o.useCallback)((()=>{V(!1),F.current?.focus()}),[F]),G=(0,o.useCallback)((()=>V((e=>!e))),[]),Y=(0,o.useDebouncedCallback)(K,100),U=(0,o.useCallback)((e=>{r(e),V(!1),F.current?.focus()}),[r,F]),Q=(0,o.useCallback)((()=>{$.current?.focus()}),[]),J=n.createElement(k,{ref:$,isOpen:q,onClose:Y,getOptionsByQuery:p,hasSearch:u,isInline:w,title:I,hasDropDownBorder:E,containerStyleOverrides:_,placeholder:M,renderContents:e=>{let{searchKeyword:t,setIsExpanded:r,trigger:o,queriedOptions:a,listId:l}=e;return n.createElement(z,{ref:W,listId:l,value:i,keyword:t,onSelect:U,onClose:Y,onExpandedChange:r,focusTrigger:o,onObserve:f,options:d||a,primaryOptions:Z,primaryLabel:g,priorityOptionGroups:h,searchResultsLabel:b,focusSearch:Q,renderer:y,listStyleOverrides:O,noMatchesFoundLabel:R})}});(0,o.useEffect)((()=>{H?H().then((e=>{X(e)})):m&&X(m)}),[X,p,H,m]);const ee=Z.find((e=>{let{id:t}=e;return t===i}));return n.createElement(j,{className:N},n.createElement(s.default,A({"aria-pressed":q,"aria-haspopup":!0,"aria-expanded":q,ref:F,activeItemLabel:ee?.name,activeItemRenderer:v,dropDownLabel:x,onSelectClick:G,selectButtonStylesOverride:S||P,"aria-label":T,isOpen:q,disabled:a},D)),q&&!a&&w&&J,!a&&!w&&n.createElement(c.default,{anchor:F,isOpen:q,zIndex:C,offsetOverride:L,maxWidth:B||240,fillWidth:!0},J))}))},49775:(e,t,r)=>{r.d(t,{GroupLabel:()=>u,GroupList:()=>d,List:()=>c,ListElement:()=>p,NoResult:()=>m,OverflowEllipses:()=>g,Selected:()=>f});var n=r(12788),o=r(41708),a=r(38668),i=r(72165),l=r(30648),s=r(6992);const c=n.default.div.withConfig({displayName:"styled__List",componentId:"sc-12ll0ao-0"})(["width:100%;overflow-x:visible;overflow-y:auto;overscroll-behavior:none auto;max-height:305px;padding:4px;margin:10px 0 0 0;font-size:14px;text-align:left;list-style:none;border-radius:",";"," ",""],(e=>{let{theme:t}=e;return t.borders.radius.small}),o.focusableOutlineCSS,(e=>{let{$listStyleOverrides:t}=e;return t})),d=n.default.ul.withConfig({displayName:"styled__GroupList",componentId:"sc-12ll0ao-1"})(["margin:0;padding:0;"]),u=n.default.li.withConfig({displayName:"styled__GroupLabel",componentId:"sc-12ll0ao-2"})(["background:transparent;padding:8px;margin:0;"]),p=n.default.li.attrs((e=>{let{fontFamily:t}=e;return{style:{fontFamily:t}}})).withConfig({displayName:"styled__ListElement",componentId:"sc-12ll0ao-3"})(["display:flex;align-items:center;position:relative;padding:6px 16px;margin:6px 0 0 0;cursor:pointer;background-clip:padding-box;color:",";border-radius:",";"," "," line-height:16px;:first-of-type{margin-top:0;}:hover{background-color:",";}:focus{outline:none;}"],(e=>{let{theme:t}=e;return t.colors.fg.primary}),(e=>{let{theme:t}=e;return t.borders.radius.small}),a.expandTextPreset(((e,t)=>{let{label:r}=e,{Small:n}=t;return r[n]})),o.focusableOutlineCSS,(e=>{let{theme:t}=e;return t.colors.interactiveBg.tertiaryHover})),f=(0,n.default)(l.default).withConfig({displayName:"styled__Selected",componentId:"sc-12ll0ao-4"})(["width:16px;min-width:16px;height:auto;margin-right:4px;color:",";"],(e=>{let{theme:t}=e;return t.colors.fg.primary})),m=(0,n.default)(s.Text.Paragraph).attrs((()=>({size:i.TextSize.XSmall}))).withConfig({displayName:"styled__NoResult",componentId:"sc-12ll0ao-5"})(["width:100%;padding:13px 11px;margin:0;text-align:center;color:",";"],(e=>{let{theme:t}=e;return t.colors.fg.secondary})),g=n.default.span.withConfig({displayName:"styled__OverflowEllipses",componentId:"sc-12ll0ao-6"})(["white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"])},39304:(e,t,r)=>{r.d(t,{default:()=>p});var n=r(67294),o=r(12788),a=r(72165),i=r(95735),l=r(49527);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t}=e;return t.colors.fg.primary}),(e=>{let{theme:t}=e;return t.colors.bg.primary}),(e=>{let{theme:t}=e;return t.borders.radius.medium}),(e=>{let{theme:t}=e;return`1px solid ${t.colors.divider.primary}`})),d=o.default.div.withConfig({displayName:"dialog__DialogContent",componentId:"sc-1p8gxmh-1"})(["padding:8px 0 12px;margin:0;overflow-y:auto;color:",";"],(e=>{let{theme:t}=e;return t.colors.fg.primary})),u=o.default.div.withConfig({displayName:"dialog__DialogActions",componentId:"sc-1p8gxmh-2"})(["display:flex;justify-content:flex-end;width:100%;& > button,& > a{margin-right:10px;margin-left:6px;&:last-child{margin-right:0;}}"]);const p=function Dialog(e){let{children:t,title:r,actions:o=[],isOpen:p=!1,onClose:f,contentLabel:m,...g}=e;return n.createElement(i.default,s({isOpen:p,onClose:f,contentLabel:m||r},g),n.createElement(c,null,Boolean(r)&&n.createElement(l.Headline,{as:"h2",size:a.TextSize.XSmall},r),n.createElement(d,null,t),Boolean(o)&&n.createElement(u,null,o)))}},73829:(e,t,r)=>{r.d(t,{default:()=>l});var n=r(12788),o=r(85703),a=r(76517);const i={up:[180,0],down:[0,180],left:[-90,0],right:[90,0]},l=(0,n.default)(a.default).withConfig({displayName:"disclosure__Disclosure",componentId:"sc-1xdydn4-0"})(["height:","px;width:auto;margin:0 -10px;color:",";transition:transform ",";transform:",";"],o.THEME_CONSTANTS.ICON_SIZE,(e=>{let{disabled:t,theme:r}=e;return t?r.colors.fg.disable:r.colors.fg.secondary}),(e=>{let{duration:t=0}=e;return t}),(e=>{let{direction:t="down",$isOpen:r=!1}=e;const[n,o]=i[t];return`rotate(${r?o:n}deg);`}))},76274:(e,t,r)=>{r.d(t,{default:()=>x});var n=r(67294),o=r(69845),a=r(67745),i=r(83057),l=r(36823),s=r(80852),c=r(28395),d=r(59470),u=r(38785),p=r(12788),f=r(72165),m=r(6992);const g=p.default.div.withConfig({displayName:"dropDown__DropDownContainer",componentId:"sc-vmb8nl-0"})(["display:flex;flex-direction:column;width:100%;"]),h=(0,p.default)(m.Text.Paragraph).attrs({size:f.TextSize.Small}).withConfig({displayName:"dropDown__Hint",componentId:"sc-vmb8nl-1"})(["margin-top:12px;padding-left:2px;color:",";"],(e=>{let{theme:t,hasError:r}=e;return r?t.colors.fg.negative:t.colors.fg.tertiary}));var b=r(88442),y=(r(67602),r(70928),r(49411),r(62488)),v=r(19574);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t(0,y.getGroups)(t)),[t]),u=(0,o.useMemo)((()=>r&&0!==d.length?d.flatMap((e=>e.options)).find((e=>String(e.value).toLowerCase()===String(r).toLowerCase())):null),[r,d]);return(0,o.useEffect)((()=>{if(n){const e=t.length?(0,i.default)(/* translators: %d number of options in dropdown */ (0,l._n)("%d result found, use left and right or up and down arrow keys to navigate.","%d results found, use left and right or up and down arrow keys to navigate.",t.length,"web-stories"),String(t.length)):(0,l.__)("No results found.","web-stories");s(e)}}),[n,t.length,s]),{activeOption:u,groups:d,isOpen:n,setIsOpen:c}}({options:C,selectedValue:T}),D=(0,o.useCallback)((e=>{if(!e.current)return;const{bottom:t,top:r}=e.current.getBoundingClientRect();B.startsWith("bottom")&&t>=window.innerHeight&&z(c.Placement.Top),B.startsWith("top")&&r<=0&&z(c.Placement.Bottom)}),[B]),F=(0,o.useCallback)((e=>{e.preventDefault(),P((e=>!e))}),[P]),$=(0,o.useCallback)((()=>{P(!1),M.current?.focus(),z(O)}),[P,M,O]),W=(0,o.useCallback)(((e,t)=>{E?.(e,t),S||$()}),[$,S,E]),q=(0,o.useMemo)((()=>`list-${(0,a.default)()}`),[]),V=(0,o.useMemo)((()=>`select-button-${(0,a.default)()}`),[]),Z=n.createElement(s.default,w({activeValue:A?.value,parentId:V,listId:q,menuAriaLabel:(0,i.default)(/* translators: %s: dropdown aria label or general dropdown label if there is no specific aria label. */ (0,l.__)("%s Option List Selector","web-stories"),r||f),onDismissMenu:$,handleMenuItemSelect:W,groups:H,isAbsolute:k},R));return n.createElement(g,{className:L},n.createElement(b.default,w({activeItemLabel:A?.label,"aria-pressed":j,"aria-disabled":p,"aria-expanded":j,"aria-label":r||f,"aria-owns":q,disabled:p,dropDownLabel:f,hasError:m,id:V,isOpen:j,onSelectClick:F,direction:N,ref:M},R)),!p&&k?j&&Z:n.createElement(d.default,{anchor:M,isOpen:j,placement:B,refCallback:D,fillWidth:_,zIndex:I,ignoreMaxOffsetY:!0},Z),x&&n.createElement(h,{hasError:m},x))}))},88442:(e,t,r)=>{r.d(t,{default:()=>g});var n=r(67294),o=r(69845),a=r(73829),i=r(12788),l=r(41708),s=r(72165),c=r(6992);const d=i.default.button.withConfig({displayName:"select__SelectButton",componentId:"sc-9ab8mb-0"})((e=>{let{theme:t,hasError:r,$isOpen:n,selectButtonStylesOverride:o,autoHeight:a}=e;return(0,i.css)(["width:100%;height:",";display:flex;align-items:center;justify-content:space-between;border-radius:",";background-color:",";border:1px solid ",";padding:8px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;"," &:hover{border-color:",";}"," &:disabled{pointer-events:none;border-color:",";&:hover{border-color:",";}label,span,svg{color:",";}}",";"],a?"auto":"36px",t.borders.radius.small,t.colors.opacity.footprint,t.colors.border[n?"defaultActive":"defaultNormal"],l.focusableOutlineCSS,t.colors.border[n?"defaultActive":"defaultHover"],r&&(0,i.css)([""," border-color:",";&:active,&:hover,&:focus{border-color:",";}"],l.focusableOutlineCSS(t.colors.interactiveBg.negativeNormal),t.colors.interactiveBg.negativeNormal,t.colors.interactiveBg.negativeHover),t.colors.border.disable,t.colors.border.disable,t.colors.fg.disable,o)})),u=(0,i.default)(c.Text.Span).attrs({size:s.TextSize.Small}).withConfig({displayName:"select__Value",componentId:"sc-9ab8mb-1"})(["max-width:100%;padding-right:12px;color:",";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;",";"],(e=>{let{theme:t}=e;return t.colors.fg.primary}),(e=>{let{selectValueStylesOverride:t}=e;return t})),p=(0,i.default)(c.Text.Span).attrs({size:s.TextSize.Small}).withConfig({displayName:"select__LabelText",componentId:"sc-9ab8mb-2"})(["color:",";padding-right:8px;white-space:nowrap;overflow:hidden;text-overflow:clip;"],(e=>{let{theme:t}=e;return t.colors.fg.secondary})),f=i.default.span.withConfig({displayName:"select__Label",componentId:"sc-9ab8mb-3"})(["display:flex;align-items:center;color:",";cursor:pointer;"],(e=>{let{theme:t}=e;return t.colors.fg.secondary}));function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{activeItemLabel:r,activeItemRenderer:o,disabled:i,dropDownLabel:l,hasError:s,isOpen:c,onSelectClick:g,placeholder:h="",direction:b="down",...y}=e;const v=o;return n.createElement(d,m({"aria-haspopup":!0,$isOpen:c,disabled:i,hasError:s,onClick:g,ref:t,autoHeight:Boolean(o)},y),v?n.createElement(v,null):n.createElement(u,{selectValueStylesOverride:y.selectValueStylesOverride},r||h),n.createElement(f,null,l&&n.createElement(p,null,l),n.createElement(a.default,{direction:b,$isOpen:c})))}))},61736:(e,t,r)=>{r.d(t,{default:()=>b});var n=r(67294),o=(r(67602),r(30005),r(69845)),a=r(12788),i=r(31338),l=r(72165),s=r(92414),c=r(6992);const d=a.default.div.withConfig({displayName:"infiniteScroller__ScrollMessage",componentId:"sc-smx7an-0"})(["width:100%;padding:140px 0 40px;margin:-100px auto 0;text-align:center;p{color:",";}"],(e=>{let{theme:t}=e;return t.colors.fg.tertiary})),u=a.default.div.withConfig({displayName:"infiniteScroller__LoadingContainer",componentId:"sc-smx7an-1"})(["display:flex;justify-content:center;"]),p=a.default.span.withConfig({displayName:"infiniteScroller__AriaOnlyAlert",componentId:"sc-smx7an-2"})(["",""],i.visuallyHidden);var f=function(e){return e.Loadable="loadable",e.LoadingInternal="loading_internal",e.LoadingExternal="loading_external",e.Complete="complete",e}(f||{}),m=function(e){return e.OnInternalLoad="internal on load",e.OnExternalLoad="external on load",e.OnAllLoaded="all loaded",e.OnLoadSuccess="load success",e.OnCanLoadMore="can load more",e}(m||{});const g={[f.Loadable]:{[m.OnInternalLoad]:f.LoadingInternal,[m.OnExternalLoad]:f.LoadingExternal},[f.LoadingInternal]:{[m.OnAllLoaded]:f.Complete,[m.OnLoadSuccess]:f.Loadable},[f.LoadingExternal]:{[m.OnAllLoaded]:f.Complete,[m.OnLoadSuccess]:f.Loadable},[f.Complete]:{[m.OnCanLoadMore]:f.Loadable}},h=(e,t)=>g[e][t]||e;const b=function InfiniteScroller(e){let{allDataLoadedMessage:t,allDataLoadedAriaMessage:r,onLoadMore:a,canLoadMore:i,isLoading:g,loadingAriaMessage:b,loadingSpinnerProps:y={animationSize:50,circleSize:6}}=e;const v=(0,o.useRef)(null),w=(0,o.useRef)(a);w.current=a;const[x,S]=(0,o.useReducer)(h,f.Loadable),E=(0,o.useMemo)((()=>x===f.LoadingInternal?b:x===f.LoadingExternal||i?null:r),[r,b,x,i]);(0,o.useEffect)((()=>{x===f.LoadingInternal&&w.current?.()}),[x]),(0,o.useEffect)((()=>{g&&S(m.OnExternalLoad)}),[g]),(0,o.useEffect)((()=>{g||S(i?m.OnLoadSuccess:m.OnAllLoaded)}),[g,i]),(0,o.useEffect)((()=>{i&&S(m.OnCanLoadMore)}),[i]),(0,o.useEffect)((()=>{if(!v.current)return;const e=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&S(m.OnInternalLoad)}))}),{rootMargin:"0px",threshold:0}),t=v.current;return e.observe(t),()=>{e.unobserve(t)}}),[]);const C=(0,o.useMemo)((()=>x===f.LoadingExternal?null:i?n.createElement(u,null,n.createElement(s.default,y)):t?n.createElement(c.Text.Paragraph,{size:l.TextSize.Small},t):null),[t,i,x,y]);return n.createElement(d,{"data-testid":"load-more-on-scroll",ref:v},E&&n.createElement(p,{role:"status"},E),C)}},99270:(e,t,r)=>{r.d(t,{default:()=>f});var n=r(67294),o=r(69845),a=r(12788),i=r(67745),l=r(72165),s=r(41708),c=r(63995);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{focused:t,hasError:r,theme:n,styleOverride:o}=e;return(0,a.css)(["display:flex;align-items:center;justify-content:space-between;height:36px;padding:4px 12px;border:1px solid ",";border-radius:",";overflow:hidden;",";",";:focus-within{",";}",";"],n.colors.border[r?"negativeNormal":"defaultNormal"],n.borders.radius.small,t&&!r&&(0,a.css)(["border-color:",";"],n.colors.border.defaultActive),t&&(0,a.css)(["","{color:",";}"],c.Suffix,n.colors.fg.primary),(0,s.focusCSS)(n.colors.border.focus),o)})),p=(0,o.forwardRef)(((e,t)=>{let{inputClassName:r,className:a,disabled:s,hasError:p,hint:f,id:m,label:g,onBlur:h,onFocus:b,hasFocus:y=!1,suffix:v,unit:w="",value:x="",isIndeterminate:S=!1,containerStyleOverride:E="",...C}=e;const O=(0,o.useMemo)((()=>m||(0,i.default)()),[m]),[_,I]=(0,o.useState)(y),[k,T]=(0,o.useState)(!1);let N=x;w&&"string"==typeof x&&x.length&&(N=`${x}${_?"":`${w}`}`),S&&(N="");const L=Boolean(v);return n.createElement(c.Container,{className:a},g&&n.createElement(c.Label,{htmlFor:O,disabled:s},g),n.createElement(u,{focused:_,hasError:p,styleOverride:E},n.createElement(c.BaseInput,d({id:O,disabled:s,ref:e=>{"function"==typeof t?t(e):t&&(t.current=e),e&&_&&!k&&(e.select(),T(!0))},onFocus:e=>{b?.(e),I(!0),T(!1)},onBlur:e=>{h?.(e),I(!1)},value:N,hasSuffix:L,className:r},C)),L&&n.createElement(c.Suffix,{size:l.TextSize.Small,onClick:()=>I(!0)},v)),f&&n.createElement(c.Hint,{hasError:p},f))}));p.displayName="Input";const f=p},31119:(e,t,r)=>{r.d(t,{default:()=>u});var n=r(67294),o=r(69845),a=r(58979),i=r(13012);function l(e,t){let{allowEmpty:r,isFloat:n,min:o,max:a}=t;if(`${String(e)}`.length>0){let t=n?parseFloat(String(e)):parseInt(String(e));return void 0!==o&&(t=Math.max(o,t)),void 0!==a&&(t=Math.min(a,t)),isNaN(t)?null:t}return r?"":null}const s=e=>{let{allowEmpty:t,updateOnChange:r,isFloat:n,padZero:a,max:s,min:c,onChange:d,value:u,ref:p}=e;const f=(0,o.useRef)(null),m=p&&"current"in p?p:f,g=(0,o.useRef)(u),h=(0,o.useRef)(!1),[b,y]=(0,o.useState)(u),v=(0,o.useMemo)((()=>({allowEmpty:t,isFloat:n,padZero:a,max:s,min:c})),[t,n,a,s,c]),w=(0,o.useCallback)((e=>{let r=l(g.current,v);if(h.current||null===r)null!==b&&(r=l(b,v));else{const e=l(b,v);null!==e&&(r=e)}h.current=!1,null!==r?(y(r),r!==g.current&&d(e,r)):void 0!==c?(y(c),d(e,c)):t?(y(""),d(e,"")):(y("0"),d(e,"0"))}),[t,b,c,d,v]),x=(0,o.useCallback)((e=>{const n=e.target.value.trim();if(""===n)return y(""),void(r&&t&&d(e,""));if(isNaN(Number(n)))"-"===n&&(y(n),r&&d(e,n));else{if(""===e.target.value&&t)return y(""),void(r&&d(e,""));const o=v.isFloat?parseFloat(e.target.value):parseInt(e.target.value);if(void 0!==s&&o>s)return void(o>s&&(y(n.charAt(n.length-1)),r&&d(e,Number(e.target.value.trim().charAt(n.length-1)))));const a=void 0!==s?String(s).length:0,i=!e.target.value.endsWith(".")&&v.padZero?String(o).padStart(a,"0"):n;y(i),r&&d(e,Number(i))}}),[t,s,d,v,r]),S=(0,o.useCallback)((e=>{const{altKey:t,key:r}=e,n=function(e,t){let{allowEmpty:r,isFloat:n,min:o,max:a}=t;if(r&&0===`${String(e)}`.length)return!0;const i=n?parseFloat(String(e)):parseInt(String(e));return!(void 0!==o&&ia||isNaN(i))}(b,v);let o=n?l(b,v):0;o=null===o?"":o;const a=(0,i.default)(v.isFloat&&t?.1:1);"ArrowUp"===r?o=void 0!==s?Math.min(s,(0,i.default)(o).plus(a).toNumber()):(0,i.default)(o).plus(a).toNumber():"ArrowDown"===r&&(o=void 0!==c?Math.max(c,(0,i.default)(o).minus(a).toNumber()):(0,i.default)(o).minus(a).toNumber()),y(o),d(e,Number(o))}),[b,s,c,d,v]),E=(0,o.useCallback)((()=>{y(g.current),h.current=!0,m?.current?.blur()}),[m]);return(0,o.useEffect)((()=>{g.current=u,y(u)}),[u]),{currentValue:b,inputRef:m,handleBlur:w,handleChange:x,handleEsc:E,handleKeyUpAndDown:S,isIndeterminate:g.current===b}};var c=r(99270);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t=String(y).length?h?String(y).padStart(e,"0"):String(y):String(y).replace(/^0+/,"")}}else O="0";else O=String(y);return n.createElement(c.default,d({ref:E,onBlur:e=>{i?.(e),v(e)},onChange:e=>{u&&l?.(e),w(e)},value:O,isIndeterminate:C&&g},b))}))},63995:(e,t,r)=>{r.d(t,{BaseInput:()=>u,Container:()=>l,Hint:()=>c,Label:()=>s,Suffix:()=>d});var n=r(12788),o=r(6992),a=r(38668),i=r(72165);const l=n.default.div.withConfig({displayName:"styled__Container",componentId:"sc-61rjdo-0"})(["position:relative;display:inline-block;width:100%;min-width:40px;"]),s=(0,n.default)(o.Text.Label).withConfig({displayName:"styled__Label",componentId:"sc-61rjdo-1"})(["margin-bottom:12px;display:inline-block;"]),c=(0,n.default)(o.Text.Paragraph).withConfig({displayName:"styled__Hint",componentId:"sc-61rjdo-2"})(["display:inline-block;margin-top:12px;color:",";"],(e=>{let{hasError:t,theme:r}=e;return r.colors.fg[t?"negative":"tertiary"]})),d=(0,n.default)(o.Text.Span).withConfig({displayName:"styled__Suffix",componentId:"sc-61rjdo-3"})(["background:transparent;color:",";white-space:nowrap;svg{width:32px;height:32px;margin:2px -10px;display:block;}"],(e=>{let{theme:t}=e;return t.colors.fg.tertiary})),u=n.default.input.withConfig({displayName:"styled__BaseInput",componentId:"sc-61rjdo-4"})((e=>{let{hasSuffix:t,theme:r}=e;return(0,n.css)(["height:100%;width:100%;padding:0;"," background-color:inherit;border:none;outline:none;box-shadow:none;color:",";",";::placeholder{color:",";}:disabled{color:",";border-color:",";& ~ ","{color:",";}}:focus{box-shadow:none;}:active:enabled{color:",";}"],t&&(0,n.css)(["padding-right:8px;"]),r.colors.fg.primary,a.expandPresetStyles({preset:{...r.typography.presets.paragraph[i.TextSize.Small]},theme:r}),r.colors.fg.tertiary,r.colors.fg.disable,r.colors.border.disable,d,r.colors.fg.disable,r.colors.fg.primary)}))},65583:(e,t,r)=>{r.d(t,{default:()=>o});const n={undo:"mod+z",redo:"shift+mod+z",delete:["del","backspace"],clone:"mod+d"},o=(0,r(69845).createContext)({keys:n})},97959:(e,t,r)=>{r.d(t,{default:()=>u});r(41792);var n=r(69845),o=r(58979);function a(e){const t=e?.querySelector("button, a");t&&t.focus()}function i(e,t,r,n){const o=n?-1:1;return e===t?o:e===r?-1*o:0}function l(e,t){let r,n=0;for(const t of e.children){const{x:e}=t.getBoundingClientRect();if(void 0!==r&&en||t<=0||r>o||r<=0)return-1;const i=o*(t-1)+(r-1);return i>=a?a-1:i}const u=function(e){let{currentItemId:t,items:r,containerRef:u,gridRef:p,itemRefs:f,isRTL:m,arrangeItem:g}=e;const[h,b]=(0,n.useState)(null),y=(0,n.useMemo)((()=>r.map((e=>{let{id:t}=e;return t}))),[r]);(0,n.useEffect)((()=>{b(t)}),[t]),(0,o.useKeyDownEffect)(u,{key:["up","down","left","right"]},(e=>{let{key:t}=e;switch(t){case"ArrowLeft":case"ArrowRight":{const e=i(t,"ArrowRight","ArrowLeft",m);if(0===e)return;const r=(null!==h?y.indexOf(h):-1)+e;if(r<0||r===y.length)return;const n=y[r];b(n);const o=f?.current?.[n];a(o);break}case"ArrowUp":case"ArrowDown":{if(!p.current)return;const{rows:e,columns:r}=l(p.current,y.length),n=null!==h?y.indexOf(h):-1,o="ArrowDown"===t?1:-1,i=d({row:s(n,r)+o,column:c(n,r),numRows:e,numColumns:r,numItems:y.length});if(i<0)return;const u=y[i];b(u);const m=f?.current?.[u];a(m);break}}}),[h,m,y,f,p,t]),(0,o.useKeyDownEffect)(u,{key:["mod+up","mod+down","mod+left","mod+right"],shift:!0},(e=>{const{key:t,shiftKey:r}=e;let n,o=!1;switch(e.preventDefault(),t){case"ArrowLeft":case"ArrowRight":{const e=i(t,"ArrowRight","ArrowLeft",m);if(0===e)return;const a=null!==h?y.indexOf(h):-1;n=a,r?n=e<0?0:y.length-1:n+=e,o=n!==a&&n>=0&&n<=y.length-1;break}case"ArrowUp":case"ArrowDown":{if(!p.current)return;const{rows:e,columns:r}=l(p.current,y.length),o=null!==h?y.indexOf(h):-1,a="ArrowDown"===t?1:-1;if(n=d({row:s(o,r)+a,column:c(o,r),numRows:e,numColumns:r,numItems:y.length}),n<0)return;break}}o&&void 0!==n&&g&&h&&g(h,n)}),[t,y,m,p,f,h,g])}},92414:(e,t,r)=>{r.d(t,{default:()=>g});var n=r(67294),o=(r(41792),r(69845)),a=r(12788),i=r(67745),l=r(36823),s=r(31338),c=r(85703);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{animationSize:t}=e;return t}),(e=>{let{animationSize:t}=e;return t}),(e=>{let{theme:t}=e;return t.colors.interactiveBg.brandNormal})),m=a.default.div.withConfig({displayName:"loadingSpinner__Circle",componentId:"sc-10eor9p-2"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) ",";height:","px;width:","px;background-color:",";border-radius:",";animation-name:",";animation-fill-mode:both;animation-duration:","s;animation-iteration-count:infinite;animation-timing-function:",";"],(e=>{let{$position:{x:t,y:r}}=e;return`translate(${t}px, ${r}px)`}),(e=>{let{circleSize:t}=e;return t}),(e=>{let{circleSize:t}=e;return t}),(e=>{let{theme:t}=e;return t.colors.interactiveBg.brandNormal}),(e=>{let{theme:t}=e;return t.borders.radius.round}),(e=>{let{circleIndex:t,numCircles:r}=e;return(0,a.keyframes)(["0%{opacity:1}","{opacity:1}","{opacity:0.3}","{opacity:1}"],100*t/r+"%",100*(t+1)/r+"%",100*(t+1)/r+1+"%")}),.85,c.BEZIER.inOutQuad);const g=function LoadingSpinner(e){let{animationSize:t=95,circleSize:r=12,loadingMessage:a=(0,l.__)("Loading","web-stories"),numCircles:s=11,...c}=e;const g=(0,o.useMemo)((()=>new Array(s).fill(1).map((()=>(0,i.default)()))),[s]);return n.createElement(f,d({animationSize:t},c),a&&n.createElement(p,{role:"status"},a),g.map(((e,o)=>{const a=((e,t)=>u*e/t)(o,s),i=((e,t)=>{const r=t/2,n=Math.sin(e)*r,o=-Math.cos(e)*r;return{x:n.toFixed(1),y:o.toFixed(1)}})(a,t);return n.createElement(m,{key:e,circleIndex:o,circleSize:r,numCircles:s,$position:i})})))}},63903:(e,t,r)=>{r.d(t,{ListGroup:()=>i,ListItem:()=>s,ListItemDisplayText:()=>c,ListItemLabel:()=>l,ListItemLabelDisplayText:()=>d,NoOptionsContainer:()=>u,NoOptionsMessage:()=>p});var n=r(12788),o=r(41708),a=r(6992);const i=n.default.ul.withConfig({displayName:"list__ListGroup",componentId:"sc-1qrqs02-0"})(["list-style-type:none;margin:6px 0;display:block;padding-inline-start:0;margin-block-start:0;margin-block-end:0;width:100%;"]),l=n.default.li.withConfig({displayName:"list__ListItemLabel",componentId:"sc-1qrqs02-1"})(["display:flex;padding:6px 2px 6px 8px;margin:4px 8px;align-items:center;"]),s=n.default.li.withConfig({displayName:"list__ListItem",componentId:"sc-1qrqs02-2"})(["position:relative;display:grid;grid-template-columns:32px 1fr;padding:6px 8px;margin:4px 8px;align-items:center;",""],(e=>{let{disabled:t,theme:r}=e;return(0,n.css)(["border-radius:",";cursor:",";",";&:hover{background-color:",";}"," svg{color:",";}& > span{grid-column-start:2;}"],r.borders.radius.small,t?"default":"pointer",o.focusableOutlineCSS(r.colors.border.focus),r.colors.bg.tertiary,t&&(0,n.css)(["pointer-events:none;span{color:",";}"],r.colors.fg.secondary),r.colors.fg.primary)})),c=(0,n.default)(a.Text.Span).withConfig({displayName:"list__ListItemDisplayText",componentId:"sc-1qrqs02-3"})((e=>{let{theme:t}=e;return(0,n.css)(["color:",";"],t.colors.fg.primary)})),d=(0,n.default)(a.Text.Span).withConfig({displayName:"list__ListItemLabelDisplayText",componentId:"sc-1qrqs02-4"})((e=>{let{theme:t}=e;return(0,n.css)(["color:",";"],t.colors.form.dropDownSubtitle)})),u=n.default.div.withConfig({displayName:"list__NoOptionsContainer",componentId:"sc-1qrqs02-5"})(["display:flex;align-items:center;justify-items:center;width:100%;"]),p=(0,n.default)(a.Text.Paragraph).withConfig({displayName:"list__NoOptionsMessage",componentId:"sc-1qrqs02-6"})(["padding:6px 16px;margin:4px auto;color:",";"],(e=>{let{theme:t}=e;return t.colors.fg.secondary}))},80852:(e,t,r)=>{r.d(t,{default:()=>I});var n=r(67294),o=r(69845),a=r(12788),i=r(64239);const l=208,s=["up","down","left","right"],c=["esc","tab"],d=["space","enter"],u=a.default.div.withConfig({displayName:"menu__MenuContainer",componentId:"sc-1he0ofy-0"})((e=>{let{dropDownHeight:t=l,styleOverride:r="",theme:n,isAbsolute:o}=e;return(0,a.css)(["position:relative;display:flex;flex-direction:row;flex-wrap:wrap;width:calc(100% - 2px);max-height:","px;overflow-x:visible;overflow-y:auto;overscroll-behavior:none auto;z-index:2;margin-top:16px;margin-bottom:8px;padding:4px 0;background-color:",";border-radius:",";border:1px solid ",";",";",";",";"],t,n.colors.bg.primary,n.borders.radius.small,n.colors.divider.primary,o&&(0,a.css)(["position:absolute;top:0;left:0;right:0;"]),r,i.scrollbarCSS)}));r(67602),r(49411);function p(e){return null==e||""===e}var f=r(58979);var m=r(72165),g=r(63903);const h=e=>{let{emptyText:t}=e;return t?n.createElement(g.NoOptionsContainer,null,n.createElement(g.NoOptionsMessage,{size:m.TextSize.XSmall},t)):null};r(41792);var b=r(62488),y=r(36823),v=r(61887);function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{isManyGroups:t,label:r,listId:o,children:a,role:i="group"}=e;const l=t?{"aria-label":r}:{"aria-labelledby":o};return n.createElement(g.ListGroup,C({role:i},l),r&&n.createElement(E,{label:r}),a)};const _=function ListGroup(e){let{groups:t,activeValue:r,listLength:o,listId:a,hasMenuRole:i,handleMenuItemSelect:l,renderItem:s,optionsRef:c}=e;const d=s||S,u=t.length>1;return n.createElement(n.Fragment,null,t.map(((e,s)=>{let{label:p,options:f}=e;return n.createElement(O,{key:p||`menuGroup_${s}`,isManyGroups:u,label:p,listId:a,role:i?"menu":"listbox"},f.map(((e,a)=>{const u=e.value===r,p=(0,b.getInset)(t,s,a);return n.createElement(d,{key:String(e.value),"aria-posinset":p+1,"aria-selected":u,"aria-setsize":o,id:`dropDownMenuItem-${String(e.value)}`,isSelected:u,onClick:t=>!e.disabled&&l(t.nativeEvent,e.value),option:e,role:i?"menuitem":"option",ref:e=>{e&&c?.current&&(c.current[p]=e)},tabIndex:0})})))})))};const I=function Menu(e){let{dropDownHeight:t,emptyText:r,menuStylesOverride:a,hasMenuRole:i,handleReturnToParent:l,isMenuFocused:m=!0,isRTL:g,groups:b=[],listId:y,handleMenuItemSelect:v,onDismissMenu:w,renderItem:x,activeValue:S,menuAriaLabel:E,parentId:C,isAbsolute:O=!1}=e;const I=(0,o.useRef)(null),k=(0,o.useRef)([]),{focusedIndex:T,listLength:N}=function(e){let{activeValue:t,handleMenuItemSelect:r,handleReturnToParent:n,isRTL:a,groups:i=[],listRef:l,onDismissMenu:u}=e;const m=(0,o.useMemo)((()=>i.flatMap((e=>{let{options:t}=e;return t}))),[i]),g=m.length,[h,b]=(0,o.useState)(t),y=(0,o.useCallback)((()=>m.findIndex((e=>String(e?.value)===String(h)))),[m,h]);(0,o.useEffect)((()=>{p(h)||-1===y()&&b(null)}),[h,y]);const v=(0,o.useMemo)((()=>p(h)?0:y()),[h,y]),w=(0,o.useCallback)((e=>b(m[v+e].value)),[m,v]),x=(0,o.useCallback)((e=>{let{key:t}=e;const r=["ArrowUp",a?"ArrowRight":"ArrowLeft"].includes(t),o=["ArrowDown",a?"ArrowLeft":"ArrowRight"].includes(t);r?0===v?n?.():w(-1):o&&v{const t=m[v]?.disabled;if(t)return()=>{};const n=h||m[v].value;return r(e,n)}),[m,v,h,r]);return(0,f.useKeyDownEffect)(l,{key:d,shift:!0},S,[S]),(0,f.useKeyDownEffect)(l,{key:c},(e=>u?.(e)),[u]),(0,f.useKeyDownEffect)(l,{key:s},x,[x]),(0,o.useFocusOut)(l,(e=>u?.(e)),[]),(0,o.useMemo)((()=>({focusedValue:h,focusedIndex:v,listLength:g})),[v,h,g])}({activeValue:S,handleMenuItemSelect:v,isRTL:g,groups:b,listRef:I,onDismissMenu:w,handleReturnToParent:l});return(0,o.useEffect)((()=>{const e=I?.current;if(!e||null===T||!m)return;if(-1===T)return void e.scrollTo(0,0);const t=k.current[T];t&&(t.focus(),e.scrollTo?.(0,t.offsetTop-e.clientHeight/2))}),[T,m]),n.createElement(u,{id:y,dropDownHeight:t,styleOverride:a,ref:I,"aria-label":E,"aria-labelledby":C,"aria-expanded":"true",isAbsolute:O},0===b.length?n.createElement(h,{emptyText:r}):n.createElement(_,{groups:b,activeValue:S,listId:y,listLength:N,hasMenuRole:i,handleMenuItemSelect:v,renderItem:x,optionsRef:k}))}},62488:(e,t,r)=>{r.d(t,{getGroups:()=>o,getInset:()=>a});r(67602),r(28244),r(53476),r(41792),r(31107);function n(e){return"object"==typeof e&&void 0!==e.value}function o(e){if(0===e.length)return[];if(e.some((e=>"object"==typeof e&&"options"in e))){return e.map((e=>({...e,options:(e.options||[]).filter(n)}))).filter((e=>{let{options:t}=e;return t.length>0}))}const t=e.filter(n);return t.length?[{options:t}]:[]}function a(e,t,r){return e.slice(0,t).map((e=>{let{options:t}=e;return t.length})).reduce(((e,t)=>e+t),0)+r}},98075:(e,t,r)=>{r.d(t,{BODY_CLASS:()=>n,CONTENT_CLASS:()=>o,OVERLAY_CLASS:()=>a});const n="WebStories_ReactModal__Body--open",o="WebStories_ReactModal__Content",a="WebStories_ReactModal__Overlay"},95735:(e,t,r)=>{r.d(t,{default:()=>p});var n=r(67294),o=r(69845),a=r(83253),i=r.n(a),l=r(12788),s=r(98075);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t({position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:10,backgroundColor:e.colors.interactiveBg.modalScrim,display:"flex",alignItems:"center",justifyContent:"center"}),u={overflow:"auto",outline:"none",display:"flex",maxHeight:"100%",justifyContent:"center"};const p=function Modal(e){let{closeTimeoutMS:t=100,children:r,contentStyles:a,modalStyles:p={},onClose:f,overlayStyles:m,...g}=e;const h=(0,o.useContextReact)(l.ThemeContext);return n.createElement(i(),c({className:s.CONTENT_CLASS,closeTimeoutMS:t,onRequestClose:f,overlayClassName:s.OVERLAY_CLASS,bodyOpenClassName:s.BODY_CLASS,style:{maxHeight:"100vh",...p,overlay:{...d(h),...m},content:{...u,...a}}},g),r)}},40132:(e,t,r)=>{r.d(t,{ModalGlobalStyle:()=>a});var n=r(12788),o=r(98075);const a=(0,n.createGlobalStyle)([".","{opacity:0;transition:opacity 0.1s ease-out;}.",".ReactModal__Overlay--after-open{opacity:1;}.",".ReactModal__Overlay--before-close{opacity:0;}"],o.OVERLAY_CLASS,o.OVERLAY_CLASS,o.OVERLAY_CLASS)},37169:(e,t,r)=>{r.d(t,{default:()=>f});var n=r(67294),o=r(12788),a=r(67391),i=r(90518),l=r(38668),s=r(34591);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t,variant:r}=e;return(0,o.css)(["color:",";background-color:",";border-radius:",";"],t.colors.fg.primary,t.colors.bg[r],t.borders.radius.round)}),24,(e=>{let{digitLen:t}=e;return 24+d(t)}),(e=>{let{digitLen:t,$isSmall:r}=e;return r&&(0,o.css)(["height:","px;width:","px;"],20,20+d(t))})),p=o.default.span.withConfig({displayName:"notificationBubble__Inner",componentId:"sc-1o8hryh-1"})([""," "," ",";font-weight:",";color:",";user-select:none;"],a.fullSizeAbsolute,i.centerContent,(e=>{let{$isSmall:t,theme:r}=e;return l.expandTextPreset(((e,r)=>{let{paragraph:n}=e;return n[t?r.XSmall:r.Small]}))({theme:r})}),(e=>{let{theme:t}=e;return t.typography.weight.bold}),(e=>{let{$invertColor:t,theme:r}=e;return t?r.colors.inverted.fg.primary:r.colors.fg.primary}));const f=function NotificationBubble(e){let{notificationCount:t,isSmall:r,variant:o=s.BubbleVariant.Accent,invertTextColor:a,...i}=e;return n.createElement(u,c({variant:o,$isSmall:r,digitLen:t?.toString().length||1},i),n.createElement(p,{$invertColor:a,$isSmall:r},t))}},34591:(e,t,r)=>{r.d(t,{BubbleVariant:()=>n});let n=function(e){return e.Primary="primary",e.Secondary="secondary",e.Tertiary="tertiary",e.Quaternary="quaternary",e.Positive="positive",e.Negative="negative",e.Accent="accent",e}({})},50212:(e,t,r)=>{r.d(t,{default:()=>u});var n=r(67294),o=r(69845),a=r(12788),i=r(41708),l=r(38668),s=r(72165);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{isActive:t,theme:r,styleOverride:n}=e;return(0,a.css)(["display:flex;align-items:center;justify-content:space-around;padding:6px 16px;height:32px;background-color:",";border:none;border-radius:",";",";color:",";cursor:pointer;",";&:disabled{pointer-events:none;color:",";}transition:color 0.3s ease 0s;transition:background-color 0.3s ease 0s;",";"],t?r.colors.interactiveBg.primaryNormal:r.colors.opacity.footprint,r.borders.radius.x_large,i.focusableOutlineCSS(r.colors.border.focus),t?r.colors.bg.primary:r.colors.fg.secondary,l.expandPresetStyles({preset:r.typography.presets.label[s.TextSize.Small],theme:r}),t?r.colors.bg.primary:r.colors.fg.disable,n)})),u=(0,o.forwardRef)((function Pill(e,t){let{children:r,isActive:o,onClick:a,pillStyleOverride:i,...l}=e;return n.createElement(d,c({ref:t,isActive:o,onClick:a,styleOverride:i},l),r)}))},59470:(e,t,r)=>{r.d(t,{default:()=>f});var n=r(67294),o=r(69845),a=r(46315),i=r(27182),l=r(25789),s=r(61049),c=r(28395);const d=0,u=2,p=0;const f=function Popup(e){let{anchor:t,dock:r,children:f,renderContents:m,placement:g=c.Placement.Bottom,spacing:h,isOpen:b,fillWidth:y=!1,refCallback:v=a.noop,zIndex:w=u,ignoreMaxOffsetY:x,offsetOverride:S=!1,maxWidth:E}=e;const{topOffset:C=d,leftOffset:O=p,isRTL:_=!1}=(0,i.default)(),[I,k]=(0,o.useState)(null),T=(0,o.useRef)(!1),N=(0,o.useRef)(null),L=(0,o.useCallback)((e=>{if(!T.current||!t?.current)return;if(e instanceof Event&&e.target instanceof Element&&N.current?.contains(e.target))return;const n=t.current?(0,l.getOffset)({placement:g,spacing:h,anchor:t,dock:r,popup:N,isRTL:_,topOffset:C,ignoreMaxOffsetY:x,offsetOverride:S}):l.EMPTY_OFFSET,o=N.current?.getBoundingClientRect();k({offset:(()=>{if(!o)return null;if(o.x<=O)switch(g){case c.Placement.BottomEnd:case c.Placement.TopEnd:return{...n,x:_?n.x:o.width+O};case c.Placement.LeftEnd:case c.Placement.Left:case c.Placement.LeftStart:return{...n,x:_?n.x:o.width+-o.x-O};case c.Placement.BottomStart:case c.Placement.TopStart:case c.Placement.RightEnd:case c.Placement.RightStart:case c.Placement.Right:return{...n,x:o.width};default:return{...n,x:o.width/2+(_?0:O)}}return _&&o.right>=n.bodyRight-O?{...n,x:n.bodyRight-o.width-O}:null})()||n,height:o?.height||null})}),[t,g,h,r,_,C,O,x,S]);return(0,o.useEffect)((()=>(T.current=!0,()=>{T.current=!1})),[]),(0,o.useEffect)((()=>{I?.height&&I.height!==N.current?.getBoundingClientRect()?.height&&L()}),[I?.height,L]),(0,o.useLayoutEffect)((()=>{if(b)return T.current=!0,L(),document.addEventListener("scroll",L,!0),()=>{document.removeEventListener("scroll",L,!0),T.current=!1}}),[b,L]),(0,o.useLayoutEffect)((()=>{T.current&&v(N)}),[I,v]),(0,o.useResizeEffect)({current:document.body},L,[L]),I&&b?(0,o.createPortal)(n.createElement(c.PopupContainer,{ref:N,fillWidth:Boolean(y),maxWidth:E,$offset:I.offset,topOffset:C,zIndex:w,transforms:(0,s.getTransforms)(g,_)},m?m({propagateDimensionChange:L}):f),document.body):null}},25789:(e,t,r)=>{r.d(t,{EMPTY_OFFSET:()=>a,getOffset:()=>i});var n=r(28395),o=r(61049);const a={x:0,y:0,width:0,height:0,bodyRight:0};function i(e){let{placement:t,spacing:r,anchor:i,dock:l,popup:s,isRTL:c,ignoreMaxOffsetY:d,offsetOverride:u,topOffset:p=0}=e;if(!i.current)return a;const f=i.current.getBoundingClientRect(),m=document.body.getBoundingClientRect(),g=s.current?.getBoundingClientRect(),h=l?.current?.getBoundingClientRect();g&&(g.height=Math.max(g.height,s.current?.scrollHeight||0),g.width=Math.max(g.width,s.current?.scrollWidth||0));const{height:b=0,width:y=0}=g||{},{x:v=0,y:w=0}=r||{},x=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0;const i=(o?o.left:r.left)-t,l=(o?o.right:r.right)+t,s=o?o.left+o.width/2:r.left+r.width/2;switch(e){case n.Placement.BottomStart:case n.Placement.TopStart:case n.Placement.Left:case n.Placement.LeftEnd:case n.Placement.LeftStart:return a?l:i;case n.Placement.BottomEnd:case n.Placement.TopEnd:case n.Placement.Right:case n.Placement.RightEnd:case n.Placement.RightStart:return a?i:l;case n.Placement.Bottom:case n.Placement.Top:return s;default:return 0}}(t,v,f,h,c),S=c?m.width-(0,o.getXTransforms)(t,c)*y:m.width-y-(0,o.getXTransforms)(t,c)*y,E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;switch(e){case n.Placement.Bottom:case n.Placement.BottomStart:case n.Placement.BottomEnd:case n.Placement.LeftEnd:case n.Placement.RightEnd:return r.top+r.height+t;case n.Placement.Top:case n.Placement.TopStart:case n.Placement.TopEnd:case n.Placement.LeftStart:case n.Placement.RightStart:return r.top-t;case n.Placement.Right:case n.Placement.Left:return r.top+r.height/2;default:return 0}}(t,w,f),C=m.height+m.y-b-(0,o.getYTransforms)(t)*b,O={width:f.width,height:f.height,bodyRight:m?.right};return u?{x,y:E,...O}:{x:Math.max(0,Math.min(x,S)),y:d?E:Math.max(p,Math.min(E,C)),...O}}},61049:(e,t,r)=>{r.d(t,{getTransforms:()=>i,getXTransforms:()=>o,getYTransforms:()=>a});var n=r(28395);function o(e,t){return e.startsWith("left")?t?0:-1:e.startsWith("right")||e.endsWith("-start")?t?-1:0:e.endsWith("-end")?t?0:-1:-.5}function a(e){return e.startsWith("top")||e===n.Placement.RightEnd||e===n.Placement.LeftEnd?-1:e===n.Placement.Right||e===n.Placement.Left?-.5:0}function i(e,t){const r=o(e,t),n=a(e);if(!r&&!n)return"";return`translate(${100*(r||0)}%, ${100*(n||0)}%)`}},38090:(e,t,r)=>{r.d(t,{default:()=>O});var n,o=r(67294),a=r(69845),i=r(12788);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...a}=e;return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 32 32","aria-labelledby":r},a),t?o.createElement("title",{id:r},t):null,n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.148 12.146a.5.5 0 0 1 .707.708L16.708 16l3.148 3.148a.5.5 0 1 1-.707.707l-3.148-3.148-3.147 3.147a.5.5 0 0 1-.708-.707l3.148-3.147-3.147-3.147a.5.5 0 0 1 .707-.707l3.147 3.147 3.147-3.148Z",clipRule:"evenodd"})))},s=(0,o.memo)(SvgCrossSmall);var c=r(76517),d=r(42914),u=r(38668),p=r(72165),f=r(41708),m=r(1782);const g=i.default.div.withConfig({displayName:"input__InputContainer",componentId:"sc-hhun7d-0"})((e=>{let{theme:t}=e;return(0,i.css)(["display:flex;position:relative;height:36px;width:100%;max-width:400px;background-color:transparent;color:",";"],t.colors.fg.primary)})),h=i.default.input.withConfig({displayName:"input__Input",componentId:"sc-hhun7d-1"})((e=>{let{theme:t,hasError:r}=e;return(0,i.css)(["position:absolute;height:100%;width:100%;background-color:transparent;outline:none;cursor:pointer;",";color:",";border:1px solid ",";padding:8px 20px 8px 40px;&::placeholder{color:",";}&[aria-expanded='true']{border-color:",";}border-radius:",";&::-ms-clear{display:none;}&::-webkit-search-decoration,&::-webkit-search-cancel-button,&::-webkit-search-results-button,&::-webkit-search-results-decoration{appearance:none;}&:hover{border-color:",";}",";"," &:disabled{pointer-events:none;border-color:",";color:",";&:hover{border-color:",";}}"],u.expandPresetStyles({preset:t.typography.presets.paragraph[p.TextSize.Small],theme:t}),t.colors.fg.primary,t.colors.border.defaultNormal,t.colors.fg.tertiary,t.colors.border.defaultActive,t.borders.radius.small,t.colors.border.defaultHover,f.focusableOutlineCSS(t.colors.border.focus),r&&(0,i.css)(["border-color:",";&:active,&:hover{border-color:",";}"],t.colors.interactiveBg.negativeHover,t.colors.interactiveBg.negativeHover),t.colors.border.disable,t.colors.fg.disable,t.colors.border.disable)})),b=(0,i.css)(["display:flex;align-items:center;width:32px;background-color:transparent;color:",";border:0;margin:auto 1px auto auto;padding:0;align-self:flex-end;cursor:pointer;"],(e=>{let{theme:t}=e;return t.colors.fg.secondary})),y=i.default.button.withConfig({displayName:"input__ClearButton",componentId:"sc-hhun7d-2"})(["",";display:",";outline:none;",";height:30px;z-index:",";"],b,(e=>{let{isVisible:t}=e;return t?"flex":"none"}),(e=>{let{theme:t}=e;return f.focusableOutlineCSS(t.colors.border.focus)}),m.Z_INDEX.CLEAR_BUTTON),v=(0,i.default)(s).withConfig({displayName:"input__ClearIcon",componentId:"sc-hhun7d-3"})(["width:32px;height:auto;margin:auto;"]),w=i.default.div.withConfig({displayName:"input__ChevronDecoration",componentId:"sc-hhun7d-4"})(["",";display:",";visibility:",";height:100%;",""],b,(e=>{let{isVisible:t}=e;return t?"flex":"none"}),(e=>{let{isVisible:t}=e;return t?"visible":"collapsed"}),(e=>{let{disabled:t,theme:r}=e;return t&&(0,i.css)(["pointer-events:none;color:",";"],r.colors.fg.disable)})),x=(0,i.default)(c.default).withConfig({displayName:"input__ChevronIcon",componentId:"sc-hhun7d-5"})(["width:32px;height:auto;margin:auto;",""],(e=>{let{$isMenuOpen:t}=e;return t&&(0,i.css)(["transform:rotate(180deg);"])})),S=i.default.div.withConfig({displayName:"input__SearchDecoration",componentId:"sc-hhun7d-6"})((e=>{let{theme:t,activeSearch:r,disabled:n}=e;return(0,i.css)(["",";position:absolute;height:100%;margin:0;left:8px;color:",";pointer-events:none;",""],b,r?t.colors.fg.tertiary:t.colors.fg.primary,n&&(0,i.css)(["color:",";"],t.colors.fg.disable))})),E=(0,i.default)(d.default).withConfig({displayName:"input__SearchIcon",componentId:"sc-hhun7d-7"})(["position:relative;width:32px;height:auto;margin:auto;"]);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{ariaClearLabel:r,clearId:n,disabled:i,handleClearInput:l=(()=>{}),handleTabClear:s,inputValue:c,isOpen:d,listId:u,className:p="",...f}=e;const[m,b]=(0,a.useState)(!1),[O,_]=(0,a.useState)(!1),I=(0,a.useMemo)((()=>c.length>0&&d),[d,c]),k=(0,a.useMemo)((()=>0===c.length&&!d),[d,c]),T=(0,a.useCallback)((e=>{let{key:t}=e;"Tab"===t&&s?.()}),[s]),N=(0,a.useCallback)((e=>{_(""===e),b(d)}),[d]);return o.createElement(g,{className:p},o.createElement(h,C({"aria-disabled":i,autoComplete:"off",disabled:i,onInput:e=>N(e.currentTarget.value),ref:t,type:"search",value:c},u&&{role:"combobox","aria-expanded":d,"aria-controls":u,"aria-owns":u,"aria-autocomplete":"list"},f)),o.createElement(S,{activeSearch:k,"aria-hidden":!0,disabled:i},o.createElement(E,{id:n})),o.createElement(y,{type:"button",isVisible:I&&m,tabIndex:0,"aria-label":I&&m?r:"",onClick:l,onKeyDown:T},o.createElement(v,{id:n,"data-testid":"clear-search-icon"})),o.createElement(w,{disabled:i,"aria-hidden":I&&m||O,isVisible:(!I||!m)&&!O&&c.length>0},o.createElement(x,{$isMenuOpen:d,"data-testid":"chevron-search-icon"})))}))},26707:(e,t,r)=>{r.d(t,{default:()=>z});var n=r(67294),o=(r(15716),r(33442),r(61964),r(69878),r(52915),r(97895),r(22275),r(41792),r(67602),r(30005),r(69845)),a=r(12788),i=r(94537),l=r(37723),s=r(67745),c=r(19574),d=r(84967),u=r(36823),p=r(58228),f=r(61887),m=r(48068),g=r(18969),h=r(6992),b=r(41708),y=r(72165),v=r(46315);let w=function(e){return e.TopLeft="top-left",e.BottomLeft="bottom-left",e.TopRight="top-right",e.BottomRight="bottom-right",e.Top="top",e.Bottom="bottom",e}({}),x=function(e){return e.Success="success",e.Error="error",e}({});function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{theme:t}=e;return t.colors.inverted.bg.primary}),(e=>{let{theme:t}=e;return t.colors.inverted.fg.primary}),(e=>{let{theme:t}=e;return`1px solid ${(0,d.rgba)(t.colors.standard.white,.24)}`}),(e=>{let{theme:t}=e;return t.borders.radius.medium}),(e=>{let{customZIndex:t}=e;return t||15})),C=(0,a.default)(h.Text.Paragraph).withConfig({displayName:"snackbarMessage__Message",componentId:"sc-wpiwrk-1"})(["color:",";max-width:430px;padding-right:",";"],(e=>{let{theme:t}=e;return t.colors.inverted.fg.primary}),(e=>{let{hasAction:t,hasThumbnail:r}=e;return r?"16px":t?"52px":"0px"})),O=a.default.div.withConfig({displayName:"snackbarMessage__ActionContainer",componentId:"sc-wpiwrk-2"})(["display:flex;align-items:center;justify-content:flex-end;"]),_=a.default.div.withConfig({displayName:"snackbarMessage__ThumbnailWrapper",componentId:"sc-wpiwrk-3"})(["position:relative;margin-left:16px;margin-right:","px;"],(e=>{let{hasAction:t}=e;return t?16:0})),I=a.default.img.withConfig({displayName:"snackbarMessage__Thumbnail",componentId:"sc-wpiwrk-4"})(["max-height:45px;max-width:45px;min-height:","px;min-width:","px;background-color:",";border-radius:",";",";"],30,30,(e=>{let{theme:t}=e;return t.colors.fg.tertiary}),(e=>{let{theme:t}=e;return t.borders.radius.small}),(e=>{let{theme:t,status:r}=e;return r===x.Success?(0,a.css)(["border:1px solid ",";"],t.colors.green[20]):r===x.Error?(0,a.css)(["border:1px solid ",";"],t.colors.red[20]):void 0})),k=a.default.div.withConfig({displayName:"snackbarMessage__ThumbnailIcon",componentId:"sc-wpiwrk-5"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);",";svg{width:100%;height:auto;}"],(e=>{let{theme:t,status:r}=e;return r===x.Success?(0,a.css)(["width:30px;color:",";"],t.colors.fg.positive):r===x.Error?(0,a.css)(["width:20px;color:",";"],t.colors.fg.negative):void 0})),T=(0,a.default)(p.Button).withConfig({displayName:"snackbarMessage__ActionButton",componentId:"sc-wpiwrk-6"})(["align-self:flex-end;min-width:1px;height:2em;padding:0;color:",";font-weight:",";"," &:hover,&:active{color:",";}"],(e=>{let{theme:t}=e;return t.colors.inverted.fg.linkNormal}),(e=>{let{theme:t}=e;return t.typography.weight.bold}),(e=>{let{theme:t}=e;return(0,b.focusableOutlineCSS)(t.colors.border.focus,t.colors.inverted.bg.primary)}),(e=>{let{theme:t}=e;return t.colors.inverted.fg.linkHover})),N=(0,a.default)(p.Button).withConfig({displayName:"snackbarMessage__CloseButton",componentId:"sc-wpiwrk-7"})(["height:2em;padding:0;margin-left:16px;color:",";"," svg{height:32px;}"],(e=>{let{theme:t}=e;return t.colors.inverted.fg.primary}),(e=>{let{theme:t}=e;return(0,b.focusableOutlineCSS)(t.colors.border.focus,t.colors.inverted.bg.primary)}));const L=function SnackbarMessage(e){let{"aria-label":t,actionLabel:r,onAction:a=v.noop,onDismiss:i=v.noop,isPreventAutoDismiss:l,isPreventActionDismiss:s,thumbnail:c,message:d,removeMessageTimeInterval:p,showCloseButton:h=!0,placement:b=w.Bottom,actionHelpText:L,...R}=e;const M=(0,o.useRef)(null);M.current=l?v.noop:i;const B=(0,o.useRef)("number"==typeof p&&p<=1e4&&p>=1200?p:1e4);(0,o.useEffect)((()=>{if(!M.current)return v.noop;const e=setTimeout((()=>M.current?.()),B.current);return()=>clearTimeout(e)}),[]);const z=(0,o.useCallback)((e=>{a(e),!s&&i()}),[a,i,s]),A=Boolean(r),P=Boolean(r);return n.createElement(E,S({role:"alert",hasAction:A,placement:b},R),n.createElement(C,{"aria-label":t,size:y.TextSize.Small,hasAction:A,hasThumbnail:P},d),c&&n.createElement(_,{hasAction:A},n.createElement(I,{decoding:"async",crossOrigin:"anonymous",src:c.src,alt:c.alt,status:c.status}),n.createElement(k,{status:c.status},c.status===x.Success&&n.createElement(f.default,null),c.status===x.Error&&n.createElement(m.default,null))),(r||h)&&n.createElement(O,null,r&&n.createElement(T,{onClick:z},r),h&&n.createElement(N,{onClick:i,"aria-label":(0,u.__)("Close","web-stories"),tabIndex:-1},n.createElement(g.default,{"aria-hidden":!0}))))};function R(){return R=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{placement:t="center"}=e;return 0===t.indexOf("top")?0:"inherit"}),(e=>{let{placement:t="center"}=e;return 0===t.indexOf("bottom")?0:"inherit"}),(function(e){let{placement:t}=e;switch(t){case w.Top:case w.Bottom:return"\n left: calc(50% + 4rem);\n transform: translateX(-50%);\n width: auto;\n ";case w.TopLeft:case w.BottomLeft:return"left: 60px;";case w.TopRight:case w.BottomRight:return"right: 60px;";default:return"left: 60px;"}}),(e=>{let{alignItems:t="center"}=e;return t}));const B=a.default.div.withConfig({displayName:"snackbarContainer__ChildContainer",componentId:"sc-w93jca-1"})(["&.react-snackbar-alert__snackbar-container-enter{opacity:0;}&.react-snackbar-alert__snackbar-container-enter-active{opacity:1;transition:all 300ms ease-out;}&.react-snackbar-alert__snackbar-container-exit{opacity:1;}&.react-snackbar-alert__snackbar-container-exit-active{opacity:0;transition:all 100ms ease-out;}"]);const z=function SnackbarContainer(e){let{component:t=L,notifications:r=[],onRemove:a,placement:d=w.Bottom,max:u=1}=e;const p=(0,c.default)("assertive"),f=(0,o.useRef)(new Set),m=(0,o.useMemo)((()=>r.map((()=>(0,s.default)()))),[r]),g=0===d.indexOf("top")?[...r].reverse():r,h=(0,o.useCallback)((e=>()=>{a?.(e),e.onDismiss?.()}),[a]);return(0,o.useEffect)((()=>{"number"==typeof u&&r.length>u&&a?.(r.slice(0,r.length-u))}),[u,r,a]),(0,o.useEffect)((()=>{r.forEach((e=>{if(!f.current.has(e)){const t=`${String(e.message)} ${e.actionHelpText||""}`.trim();p(t),f.current.add(e)}}))}),[r,p]),n.createElement(M,{placement:d},n.createElement(i.default,null,g.map((e=>{const{actionLabel:r,dismissible:a,message:i,onAction:s,preventActionDismiss:c,preventAutoDismiss:u,timeout:p,...f}=e,g=e.id||m[0],b=(0,o.createRef)();return n.createElement(l.default,{in:!0,key:g,timeout:300,unmountOnExit:!0,nodeRef:b,classNames:"react-snackbar-alert__snackbar-container"},n.createElement(B,{ref:b},n.createElement(t,R({},f,{"aria-hidden":!0,placement:d,onDismiss:h(e),onAction:s,actionLabel:r,message:i,showCloseButton:a,removeMessageTimeInterval:p,isPreventAutoDismiss:u,isPreventActionDismiss:c}))))}))))}},33773:(e,t,r)=>{r.d(t,{default:()=>v});var n=r(67294),o=(r(36208),r(12788)),a=r(69845),i=r(67745),l=r(31338),s=r(72165),c=r(41708),d=r(6992);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{hasOffset:t}=e;return t&&"left: 50%"})),g=o.default.div.withConfig({displayName:"switch__SwitchContainer",componentId:"sc-1b94qxc-2"})(["position:relative;height:","px;display:flex;flex-direction:row;justify-content:center;align-items:center;appearance:none;background:",";border-radius:100px;color:",";cursor:pointer;",";"],32,(e=>{let{theme:t,darkTheme:r}=e;return r?t.colors.divider.secondary:t.colors.bg.tertiary}),(e=>{let{theme:t}=e;return t.colors.fg.primary}),(e=>{let{disabled:t,theme:r,darkTheme:n}=e;return t?(0,o.css)(["cursor:default;background:",";","{background-color:",";}"],r.colors.divider.tertiary,m,r.colors.interactiveBg.disable):(0,o.css)([":hover ","{background-color:",";}"],m,n?r.colors.interactiveBg.primaryHover:r.colors.interactiveBg.brandNormal)})),h=o.default.input.attrs({type:"radio"}).withConfig({displayName:"switch__HiddenRadioButton",componentId:"sc-1b94qxc-3"})(["position:absolute;height:0;width:0;padding:0;min-width:unset;appearance:none;border:0;box-shadow:none;margin:-1px;outline:none;overflow:hidden;opacity:0;"]),b=(0,o.default)(d.Text.Label).attrs({size:s.TextSize.Small}).withConfig({displayName:"switch__RadioButtonLabel",componentId:"sc-1b94qxc-4"})(["display:flex;align-items:center;justify-content:center;flex:1;height:","px;width:50%;padding:0px 6px;z-index:1;color:",";background-color:",";border-radius:100px;cursor:pointer;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;transition:all 0.15s ease-out;"," :focus-within ~ span{",";}"],32,(e=>{let{isActive:t,theme:r,darkTheme:n}=e;return t?n?r.colors.inverted.fg.primary:r.colors.fg.primary:r.colors.fg.secondary}),(e=>{let{isActive:t,theme:r,darkTheme:n}=e;return t&&(n?r.colors.interactiveBg.primaryNormal:r.colors.interactiveBg.brandNormal)}),(e=>{let{$disabled:t,theme:r}=e;return t&&(0,o.css)(["cursor:default;color:",";"],r.colors.fg.disable)}),c.focusCSS()),y=(0,a.forwardRef)((function Switch(e,t){let{className:r,disabled:o,groupLabel:l,id:s,offLabel:c,onChange:d,onLabel:y,value:v=!1,darkTheme:w=!0,...x}=e;const S=(0,a.useMemo)((()=>({group:s||(0,i.default)(),offInput:(0,i.default)(),onInput:(0,i.default)()})),[s]),E=(0,a.useCallback)((e=>{d(e,e.target.value===p.On)}),[d]);return n.createElement(g,{ref:t,className:r,role:"radiogroup","aria-labelledby":S.group,"aria-disabled":o,disabled:o,darkTheme:w},n.createElement(f,{id:S.group},l),n.createElement(b,{htmlFor:S.onInput,isActive:v,disabled:o,darkTheme:w},y,n.createElement(h,u({checked:v,disabled:o,id:S.onInput,onChange:E,value:p.On},x))),n.createElement(b,{htmlFor:S.offInput,isActive:!v,disabled:o,darkTheme:w},c,n.createElement(h,u({checked:!v,disabled:o,id:S.offInput,onChange:E,value:p.Off},x))),n.createElement(m,{hasOffset:!v}))}));y.displayName="Switch";const v=y},97783:(e,t,r)=>{r.d(t,{default:()=>C});var n=r(67294),o=r(12788),a=r(69845),i=r(72165),l=r(46315),s=r(27182),c=r(28395),d=r(90180),u=r(6992),p=r(25789),f=r(61049);const m="tooltip-tail",g=o.default.svg.withConfig({displayName:"tail__SvgForTail",componentId:"sc-bxihlv-0"})(["position:absolute;width:0;height:0;"]),h=o.default.span.withConfig({displayName:"tail__Tail",componentId:"sc-bxihlv-1"})(["@supports (clip-path:url('#","')){position:absolute;display:block;height:","px;width:","px;",";background-color:inherit;border:none;border-bottom:none;clip-path:url('#","');}"],m,8,34,(e=>{let{placement:t,translateX:r,isRTL:n}=e;return(e=>{let{placement:t,translateX:r,isRTL:n}=e;switch(t){case c.Placement.Top:case c.Placement.TopStart:case c.Placement.TopEnd:return(0,o.css)(["bottom:-","px;/*! @noflip */ transform:translateX(","px) rotate(180deg);"],7,r);case c.Placement.Bottom:case c.Placement.BottomStart:case c.Placement.BottomEnd:return(0,o.css)(["top:-","px;/*! @noflip */ transform:translateX(","px);"],7,r);case c.Placement.Left:case c.Placement.LeftStart:case c.Placement.LeftEnd:return(0,o.css)(["right:-","px;transform:rotate(",");"],20,n?"-90deg":"90deg");case c.Placement.Right:case c.Placement.RightStart:case c.Placement.RightEnd:return(0,o.css)(["left:-","px;transform:rotate(",");"],20,n?"90deg":"-90deg");default:return""}})({placement:t,translateX:r,isRTL:n})}),m);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{shown:t}=e;return t?1:0}),(e=>{let{shown:t}=e;return t?"all":"none"}),(e=>{let{zIndex:t}=e;return t}),(e=>{let{theme:t}=e;return t.colors.inverted.bg.primary}),(e=>{let{styleOverride:t}=e;return t})),x=(0,o.default)(u.Text.Paragraph).withConfig({displayName:"tooltip__TooltipText",componentId:"sc-128lmkf-2"})(["color:",";padding:10px;"],(e=>{let{theme:t}=e;return t.colors.inverted.fg.primary})),S=e=>{let{x:t,width:r}=e;return t+r/2};let E=0;const C=function Tooltip(e){let{title:t,shortcut:r="",hasTail:o=!1,placement:u=c.Placement.Bottom,children:C,onFocus:O=l.noop,onBlur:_=l.noop,isDelayed:I=!1,forceAnchorRef:k,className:T,popupZIndexOverride:N,styleOverride:L,...R}=e;const{leftOffset:M=y,isRTL:B}=(0,s.default)(),[z,A]=(0,a.useState)(!1),[P,j]=(0,a.useState)(0),H=(0,a.useRef)(null),D=(0,a.useRef)(null),F=(0,a.useRef)(u),[$,W]=(0,a.useState)(u),q=(0,a.useRef)(!1),[V,Z]=(0,a.useState)({}),X=(0,a.useRef)(!1),K=(0,a.useRef)(null),G=Boolean(z&&(r||t)),[Y,U]=(0,a.useState)({}),Q=(0,a.useMemo)((()=>({x:u.startsWith("left")||u.startsWith("right")?8:0,y:u.startsWith("top")||u.startsWith("bottom")?8:0})),[u]),J=(0,a.useCallback)((()=>k||H),[k]),ee=(0,a.useCallback)((()=>{X.current&&H?.current&&Z({offset:H.current?(0,p.getOffset)({placement:$,spacing:Q,anchor:J(),popup:K,isRTL:B,ignoreMaxOffsetY:!0}):void 0})}),[$,Q,J,B]),te=(0,a.useCallback)(((e,t)=>{let{offset:r}=e,{left:n,right:o,height:a}=t;if(!r)return;const i=r.y+a+8,l=$.startsWith("bottom")&&i>=window.innerHeight,s=Math.trunc(n)<(B?0:M),d=B&&Math.trunc(o)>r.bodyRight-M;l?$.endsWith("-start")?W(c.Placement.TopStart):$.endsWith("-end")?W(c.Placement.TopEnd):W(c.Placement.Top):s?U({x:(B?0:M)-n}):d&&U({x:r.bodyRight-o-M})}),[$,B,M]),re=(0,a.useCallback)((()=>{const e=J(),t=e.current?.getBoundingClientRect(),r=D.current?.getBoundingClientRect();if(!r||!t)return;te(V,r);const n=S(t)-S(r);j(n)}),[te,V,J]),ne=(0,a.useDebouncedCallback)((()=>{W(F.current)}),100),oe=(0,a.useRef)(null),ae=(0,a.useCallback)((()=>{const e=()=>{q.current&&A(!0)};if(I){performance.now()-E<500&&e(),oe.current&&clearTimeout(oe.current),oe.current=setTimeout(e,1e3)}else e()}),[I]),ie=(0,a.useCallback)((()=>{A(!1),ne(),I&&oe.current&&(clearTimeout(oe.current),z&&(E=performance.now()))}),[ne,I,z]);return(0,a.useEffect)((()=>(q.current=!0,()=>{q.current=!1})),[]),(0,a.useEffect)((()=>(X.current=!0,()=>{X.current=!1})),[]),(0,a.useLayoutEffect)((()=>{if(G)return X.current=!0,ee(),document.addEventListener("scroll",ee,!0),()=>{document.removeEventListener("scroll",ee,!0),X.current=!1}}),[G,ee]),(0,a.useLayoutEffect)((()=>{X.current&&re()}),[re]),(0,a.useResizeEffect)({current:document.body},ee,[ee]),n.createElement(n.Fragment,null,n.createElement(v,b({onPointerEnter:ae,onPointerLeave:ie,onFocus:e=>{A(!0),O(e)},onBlur:e=>{A(!1),_(e),ne()},ref:H},R),C),V?.offset&&G?(0,a.createPortal)(n.createElement(c.PopupContainer,{ref:K,$offset:Y?{...V.offset,x:(V.offset?.x||0)+(Y?.x||0)}:V.offset,noOverFlow:!0,zIndex:N||2,transforms:(0,f.getTransforms)($,B)},n.createElement(w,{className:T,ref:D,shown:z,zIndex:N||2,styleOverride:L},n.createElement(x,{size:i.TextSize.XSmall},r?`${t} (${(0,d.prettifyShortcut)(r)})`:t),o&&n.createElement(n.Fragment,null,n.createElement(g,null,n.createElement("clipPath",{id:m,clipPathUnits:"objectBoundingBox"},n.createElement("path",{d:"M1,1 L0.868,1 C0.792,1,0.72,0.853,0.676,0.606 L0.585,0.098 C0.562,-0.033,0.513,-0.033,0.489,0.098 L0.399,0.606 C0.355,0.853,0.283,1,0.207,1 L0,1 L1,1"}))),n.createElement(h,{placement:$,translateX:-(Y?.x||0)||P,isRTL:B})))),document.body):null)}},49527:(e,t,r)=>{r.d(t,{Headline:()=>s});var n=r(12788),o=r(72165),a=r(38668),i=r(41708),l=r(97831);const s=n.default.h1.withConfig({displayName:"headline__Headline",componentId:"sc-yhwct1-0"})(["",";"," ",""],l.defaultTypographyStyle,(e=>{let{theme:t,size:r=o.TextSize.Medium}=e;return a.expandPresetStyles({preset:t.typography.presets.headline[r],theme:t})}),(e=>{let{as:t,theme:r}=e;return"a"===t&&(0,n.css)([":hover{color:",";}",""],r.colors.fg.linkHover,i.focusableOutlineCSS(r.colors.border.focus))}))},18275:(e,t,r)=>{r.d(t,{Link:()=>b});var n,o,a=r(67294),i=r(12788),l=r(69845),s=r(38668),c=r(41708),d=r(72165),u=r(97831);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{title:t,titleId:r,...i}=e;return a.createElement("svg",p({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24","aria-labelledby":r},i),t?a.createElement("title",{id:r},t):null,n||(n=a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"})),o||(o=a.createElement("path",{d:"M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"})))},f=(0,a.memo)(SvgLaunch);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{size:t,theme:r}=e;return(0,i.css)(["",";",";color:",";text-decoration:none;cursor:pointer;vertical-align:baseline;:hover{color:",";}:focus{color:"," !important;}",""],u.defaultTypographyStyle,s.expandPresetStyles({preset:r.typography.presets.link[t],theme:r}),r.colors.fg.linkNormal,r.colors.fg.linkHover,r.colors.fg.linkNormal,c.focusableOutlineCSS(r.colors.border.focus))}));function ConditionalSpanWrapper(e){let{isWrapped:t,children:r}=e;return t?a.createElement("span",null,r):a.createElement(a.Fragment,null,r)}const b=(0,l.forwardRef)((function Link(e,t){let{children:r,size:n=d.TextSize.Medium,...o}=e;const i="_blank"===o.target;return a.createElement(h,m({ref:t,size:n},o),a.createElement(ConditionalSpanWrapper,{isWrapped:i},r,i&&a.createElement(g,null)))}))},97831:(e,t,r)=>{r.d(t,{defaultTypographyStyle:()=>o});var n=r(12788);const o=e=>{let{theme:t}=e;return(0,n.css)(["font-family:",";color:",";margin:0;padding:0;&:focus{box-shadow:none;}"],t.typography.family.primary,t.colors.fg.primary)}},6992:(e,t,r)=>{r.d(t,{Text:()=>u});var n=r(12788),o=r(72165),a=r(38668),i=r(97831);const l=e=>{let{isBold:t=!1,size:r=o.TextSize.Medium,theme:l}=e;return(0,n.css)(["",";",";font-weight:",";"],i.defaultTypographyStyle,a.expandPresetStyles({preset:l.typography.presets.paragraph[r],theme:l}),t?l.typography.weight.bold:l.typography.presets.paragraph[r].weight)},s=n.default.p.withConfig({displayName:"text__Paragraph",componentId:"sc-1kd0vh8-0"})(["",";"],l),c=n.default.span.withConfig({displayName:"text__Span",componentId:"sc-1kd0vh8-1"})(["",";"],l),d=n.default.kbd.withConfig({displayName:"text__Kbd",componentId:"sc-1kd0vh8-2"})(["",";background-color:transparent;white-space:nowrap;"],l),u={Label:n.default.label.withConfig({displayName:"text__Label",componentId:"sc-1kd0vh8-3"})(["",";color:",";"],(e=>{let{isBold:t=!1,size:r=o.TextSize.Medium,theme:l}=e;return(0,n.css)(["",";",";font-weight:",";"],i.defaultTypographyStyle,a.expandPresetStyles({preset:l.typography.presets.label[r],theme:l}),t?l.typography.weight.bold:l.typography.presets.label[r].weight)}),(e=>{let{disabled:t,theme:r}=e;return t?r.colors.fg.disable:"auto"})),Span:c,Kbd:d,Paragraph:s}},19269:(e,t,r)=>{r.d(t,{VisuallyHidden:()=>a});var n=r(12788),o=r(31338);const a=n.default.span.withConfig({displayName:"visuallyHidden__VisuallyHidden",componentId:"sc-35d3te-0"})(["",";"],o.visuallyHidden)},84394:(e,t,r)=>{r.d(t,{default:()=>n});const n=(0,r(69845).createContext)({isRTL:!1,leftOffset:0,topOffset:0})},61265:(e,t,r)=>{r.d(t,{default:()=>n});const n=r(84394).default.Provider},27182:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(69845),o=r(84394);const __WEBPACK_DEFAULT_EXPORT__=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.identity;return(0,n.useContextSelector)(o.default,e)}},88864:(e,t,r)=>{r.d(t,{default:()=>n});const n=(0,r(69845).createContext)({showSnackbar:()=>!1,clearSnackbar:()=>!1,removeSnack:()=>!1,currentSnacks:[],placement:""})},97222:(e,t,r)=>{r.d(t,{default:()=>l});var n=r(67294),o=(r(67602),r(53476),r(70928),r(69845)),a=r(67745),i=r(88864);const l=function SnackbarProvider(e){let{children:t,placement:r="bottom"}=e;const[l,s]=(0,o.useState)([]),c=(0,o.useCallback)((e=>{s((t=>t.filter((t=>Array.isArray(e)?!e.find((e=>{let{id:r}=e;return r===t.id})):t.id!==e.id))))}),[]),d=(0,o.useCallback)((e=>{const t={id:(0,a.default)(),...e};s((e=>[...e,t]))}),[]),u=(0,o.useCallback)((()=>{s([])}),[]),p=(0,o.useMemo)((()=>({showSnackbar:d,clearSnackbar:u,removeSnack:c,currentSnacks:l,placement:r})),[d,u,c,l,r]);return n.createElement(i.default.Provider,{value:p},t)}},71028:(e,t,r)=>{r.d(t,{useSnackbar:()=>a});var n=r(69845),o=r(88864);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.identity;return(0,n.useContextSelector)(o.default,e)}},15705:(e,t,r)=>{r.d(t,{setAppElement:()=>a});var n=r(83253),o=r.n(n);const{setAppElement:a}=o()},68114:(e,t,r)=>{r.d(t,{dark:()=>p,light:()=>f});var n=r(84967);const o={gray:{90:"#131516",85:"#1B1F20",80:"#26292A",75:"#2E3133",70:"#393D3F",60:"#4B5253",50:"#5E6668",40:"#767E80",30:"#919899",20:"#ADB1B3",10:"#C8CBCC",5:"#E4E5E6"},violet:{90:"#351E7A",80:"#482A90",70:"#5732A3",60:"#6B3DBA",50:"#7B46CB",40:"#9464E1",30:"#B488FC",20:"#CBACFF",10:"#DFCDFE",5:"#F3EBFF"},blue:{90:"#2C2864",80:"#364286",70:"#4157A3",60:"#476ABD",50:"#4F7ED9",40:"#5D96EB",30:"#79B3FF",20:"#9CC9FF",10:"#C2DDFF",5:"#E5F2FF"},red:{90:"#690000",80:"#7E0000",70:"#930500",60:"#AC1501",50:"#C42300",40:"#D43626",30:"#E45F53",20:"#F28B82",10:"#FFC4C5",5:"#FFE7E9"},green:{90:"#133B20",80:"#205630",70:"#296B3C",60:"#34824B",50:"#3F9A5A",40:"#5EAE75",30:"#81C995",20:"#A5D7B3",10:"#C8E7D0",5:"#E8F5EC"}},a={primary:o.violet[30],secondary:o.blue[30]},i={negative:"#D93025",positive:"#188038",warning:"#f4b844"},l={black:"#000",white:"#FFF"},s={loading:"linear-gradient(270deg, #4285f4 0%, #0f0bc8 57%, #4285f4 110%)",placeholder:"linear-gradient(180deg, #fff0, #000c)",posterOverlay:"linear-gradient(to top, rgba(33, 33, 33, 0.9), rgba(33, 33, 33, 0))"},c={footprint:"transparent",white64:(0,n.rgba)(l.white,.64),white24:(0,n.rgba)(l.white,.24),white16:(0,n.rgba)(l.white,.16),white8:(0,n.rgba)(l.white,.08),black64:(0,n.rgba)(l.black,.64),black40:(0,n.rgba)(l.black,.4),black32:(0,n.rgba)(l.black,.32),black24:(0,n.rgba)(l.black,.24),black10:(0,n.rgba)(l.black,.1),black3:(0,n.rgba)(l.black,.03),blue24:(0,n.rgba)(o.blue[30],.24),violet24:(0,n.rgba)(o.violet[30],.24),overlay:(0,n.rgba)("#1E1F1F",.5),overlayDark:(0,n.rgba)(l.black,.47),overlayExtraDark:(0,n.rgba)(l.black,.7)},d={gradient:s,fg:{primary:o.gray[5],secondary:o.gray[20],tertiary:o.gray[30],disable:o.gray[50],linkNormal:o.blue[30],linkHover:o.blue[40],positive:o.green[30],negative:o.red[30]},bg:{primary:o.gray[90],secondary:o.gray[80],tertiary:o.gray[70],quaternary:o.gray[60],positive:o.green[90],negative:o.red[90],storyPreview:"#202125",accent:a.primary},interactiveFg:{active:o.gray[5],brandNormal:o.gray[90],brandHover:o.gray[90],brandPress:o.violet[40]},interactiveBg:{active:o.violet[70],disable:o.gray[85],brandNormal:o.violet[20],brandHover:o.violet[30],brandPress:o.violet[40],primaryNormal:o.gray[10],primaryHover:o.gray[20],primaryPress:o.gray[30],secondaryNormal:o.gray[70],secondaryHover:o.gray[60],secondaryPress:o.gray[50],tertiaryNormal:c.footprint,tertiaryHover:o.gray[70],tertiaryPress:o.gray[60],quaternaryNormal:c.footprint,negativeNormal:o.red[40],negativeHover:o.red[30],negativePress:o.red[20],positiveNormal:o.green[40],positiveHover:o.green[30],positivePress:o.green[20],previewOverlay:c.black10,modalScrim:c.white8},border:{focus:o.blue[30],disable:o.gray[75],defaultNormal:o.gray[70],defaultHover:o.gray[40],defaultPress:o.gray[30],defaultActive:o.gray[10],positiveNormal:o.green[40],positiveHover:o.green[30],positivePress:o.green[20],positiveActive:o.green[10],quaternaryNormal:o.gray[70],quaternaryHover:o.gray[40],quaternaryPress:l.black,quaternaryActive:o.gray[30],negativeNormal:o.red[40],negativeHover:o.red[30],negativePress:o.red[20],negativeActive:o.red[10],selection:o.blue[30]},divider:{primary:c.white24,secondary:c.white8,tertiary:c.black24},form:{dropDownSubtitle:o.gray[20]},shadow:{active:c.white16}},u={gradient:s,fg:{primary:o.gray[90],secondary:o.gray[70],tertiary:o.gray[50],disable:o.gray[30],linkNormal:o.blue[50],linkHover:o.blue[60],positive:o.green[80],negative:o.red[80]},bg:{primary:l.white,secondary:o.gray[5],tertiary:o.gray[10],quaternary:o.gray[20],positive:o.green[10],negative:o.red[10],storyPreview:"#202125",accent:a.primary},interactiveFg:{active:o.gray[90],brandNormal:o.gray[90],brandHover:o.gray[90],brandPress:o.violet[40]},interactiveBg:{active:o.violet[10],disable:o.gray[10],brandNormal:o.violet[20],brandHover:o.violet[30],brandPress:o.violet[40],primaryNormal:o.gray[90],primaryHover:o.gray[80],primaryPress:o.gray[70],secondaryNormal:o.gray[20],secondaryHover:o.gray[30],secondaryPress:o.gray[40],tertiaryNormal:c.footprint,tertiaryHover:o.gray[10],tertiaryPress:o.gray[20],quaternaryNormal:c.footprint,negativeNormal:o.red[20],negativeHover:o.red[30],negativePress:o.red[40],positiveNormal:o.green[20],positiveHover:o.green[30],positivePress:o.green[40],previewOverlay:c.white16,modalScrim:c.black40},border:{focus:o.blue[40],disable:o.gray[10],defaultNormal:o.gray[20],defaultHover:o.gray[30],defaultPress:o.gray[40],defaultActive:o.gray[90],positiveNormal:o.green[20],positiveHover:o.green[30],positivePress:o.green[40],positiveActive:o.green[90],negativeNormal:o.red[20],negativeHover:o.red[30],negativePress:o.red[40],negativeActive:o.red[90],quaternaryNormal:o.gray[20],quaternaryHover:o.gray[30],quaternaryPress:l.white,quaternaryActive:o.gray[40],selection:o.blue[40]},divider:{primary:c.black24,secondary:c.black10,tertiary:c.white24},form:{dropDownSubtitle:o.gray[50]},shadow:{active:c.black10}},p={standard:l,accent:a,status:i,opacity:c,...o,...d,inverted:{...u}},f={standard:l,accent:a,status:i,opacity:c,...o,...u,inverted:{...d}}},85703:(e,t,r)=>{r.d(t,{BEZIER:()=>o,THEME_CONSTANTS:()=>n});const n={BREAKPOINTS:{TABLET:{maxWidth:1120,minWidth:768}},ICON_SIZE:32,LARGE_BUTTON_SIZE:56,SCROLLBAR_WIDTH:11},o={linear:"linear",inQuad:"cubic-bezier(0.55, 0.085, 0.68, 0.53)",outQuad:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",inOutQuad:"cubic-bezier(0.455, 0.03, 0.515, 0.955)",inCubic:"cubic-bezier(0.55, 0.055, 0.675, 0.19)",outCubic:"cubic-bezier(0.215, 0.61, 0.355, 1)",inOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1)",inQuart:"cubic-bezier(0.895, 0.03, 0.685, 0.22)",outQuart:"cubic-bezier(0.165, 0.84, 0.44, 1)",inOutQuart:"cubic-bezier(0.77, 0, 0.175, 1)",inQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",outQuint:"cubic-bezier(0.23, 1, 0.32, 1)",inOutQuint:"cubic-bezier(0.86, 0, 0.07, 1)",inSine:"cubic-bezier(0.47, 0, 0.745, 0.715)",outSine:"cubic-bezier(0.39, 0.575, 0.565, 1)",inOutSine:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",inExpo:"cubic-bezier(0.95, 0.05, 0.795, 0.035)",outExpo:"cubic-bezier(0.19, 1, 0.22, 1)",inOutExpo:"cubic-bezier(1, 0, 0, 1)",inCirc:"cubic-bezier(0.6, 0.04, 0.98, 0.335)",outCirc:"cubic-bezier(0.075, 0.82, 0.165, 1)",inOutCirc:"cubic-bezier(0.785, 0.135, 0.15, 0.86)",default:"cubic-bezier(0.4, 0.4, 0.0, 1)"}},5488:(e,t,r)=>{r.d(t,{Styles:()=>a});var n=r(12788),o=r(64239);const a=(0,n.createGlobalStyle)(["*,*::after,*::before{box-sizing:border-box;}",";"],o.scrollbarCSS)},90518:(e,t,r)=>{r.d(t,{centerContent:()=>n});const n=(0,r(12788).css)(["display:flex;align-items:center;justify-content:center;"])},38668:(e,t,r)=>{r.d(t,{expandPresetStyles:()=>a,expandTextPreset:()=>i});var n=r(12788),o=r(72165);const a=e=>{let{preset:t,theme:r}=e;return t?(0,n.css)(["font-family:",";font-size:","px;font-weight:",";letter-spacing:","px;line-height:","px;text-decoration:none;"],r.typography.family.primary,t.size,t.weight,t.letterSpacing,t.lineHeight):(0,n.css)([""])},i=e=>t=>{let{theme:r}=t;return a({preset:e(r.typography.presets,o.TextSize),theme:r})}},75097:(e,t,r)=>{r.d(t,{focusableOutlineCSS:()=>n.focusableOutlineCSS});var n=r(41708)},41708:(e,t,r)=>{r.d(t,{focusCSS:()=>o,focusableOutlineCSS:()=>a});var n=r(12788);const o=(e,t)=>(0,n.css)(["outline:none;box-shadow:",";"],(r=>{let{theme:n}=r;return`0px 0px 0 2px ${t||n.colors.bg.primary}, 0px 0px 0 4px ${"string"==typeof e?e:n.colors.border.focus}`})),a=(e,t)=>{const r="string"==typeof e?e:e?.theme?.colors?.border?.focus;return(0,n.css)(["&:focus-visible{",";}"],o(r,t))}},64239:(e,t,r)=>{r.d(t,{scrollbarCSS:()=>a});var n=r(12788),o=r(85703);const a=()=>(0,n.css)(["scrollbar-width:thin;scrollbar-color:"," ",";::-webkit-scrollbar{width:","px;height:","px;}::-webkit-scrollbar-track{background:",";}::-webkit-scrollbar-thumb{background-clip:content-box;background-color:",";border:2px solid transparent;border-radius:10px;}::-webkit-scrollbar-corner{background-color:transparent;}"],(e=>{let{theme:t}=e;return t.colors.interactiveBg.secondaryNormal}),(e=>{let{theme:t}=e;return t.colors.inverted.divider.secondary}),o.THEME_CONSTANTS.SCROLLBAR_WIDTH,o.THEME_CONSTANTS.SCROLLBAR_WIDTH,(e=>{let{theme:t}=e;return t.colors.inverted.divider.secondary}),(e=>{let{theme:t}=e;return t.colors.interactiveBg.secondaryNormal}))},31338:(e,t,r)=>{r.d(t,{visuallyHidden:()=>n});const n=(0,r(12788).css)(["position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;"])},56394:(e,t,r)=>{r.d(t,{theme:()=>s});var n=r(68114),o=r(72165);const a={family:{primary:"'Google Sans', sans-serif"},weight:{bold:700,regular:400},presets:{display:{[o.TextSize.Large]:{weight:700,size:122,lineHeight:124,letterSpacing:-2.4},[o.TextSize.Medium]:{weight:700,size:58,lineHeight:64,letterSpacing:-1.4},[o.TextSize.Small]:{weight:700,size:36,lineHeight:40,letterSpacing:-1}},headline:{[o.TextSize.XXLarge]:{weight:400,size:42,lineHeight:56,letterSpacing:0},[o.TextSize.XLarge]:{weight:400,size:36,lineHeight:44,letterSpacing:0},[o.TextSize.Large]:{weight:400,size:32,lineHeight:40,letterSpacing:0},[o.TextSize.Medium]:{weight:400,size:28,lineHeight:36,letterSpacing:0},[o.TextSize.Small]:{weight:400,size:24,lineHeight:32,letterSpacing:0},[o.TextSize.XSmall]:{weight:500,size:20,lineHeight:24,letterSpacing:0},[o.TextSize.XXSmall]:{weight:700,size:16,lineHeight:24,letterSpacing:0},[o.TextSize.XXXSmall]:{weight:700,size:14,lineHeight:20,letterSpacing:0}},paragraph:{[o.TextSize.XLarge]:{weight:400,size:24,lineHeight:32,letterSpacing:-.02},[o.TextSize.Large]:{weight:400,size:18,lineHeight:24,letterSpacing:0},[o.TextSize.Medium]:{weight:400,size:16,lineHeight:24,letterSpacing:0},[o.TextSize.Small]:{weight:400,size:14,lineHeight:20,letterSpacing:0},[o.TextSize.XSmall]:{weight:400,size:12,lineHeight:20,letterSpacing:.16}},link:{[o.TextSize.XLarge]:{weight:400,size:24,lineHeight:32,letterSpacing:-.02},[o.TextSize.Large]:{weight:700,size:18,lineHeight:24,letterSpacing:0},[o.TextSize.Medium]:{weight:700,size:16,lineHeight:24,letterSpacing:0},[o.TextSize.Small]:{weight:700,size:14,lineHeight:20,letterSpacing:0},[o.TextSize.XSmall]:{weight:700,size:12,lineHeight:20,letterSpacing:.16}},label:{[o.TextSize.Large]:{weight:400,size:18,lineHeight:24,letterSpacing:0},[o.TextSize.Medium]:{weight:400,size:16,lineHeight:20,letterSpacing:0},[o.TextSize.Small]:{weight:400,size:14,lineHeight:12,letterSpacing:0},[o.TextSize.XSmall]:{weight:400,size:12,lineHeight:20,letterSpacing:0}}}},i={wide:1441,desktop:1121,tablet:801,mobile:800,mobileSmall:684,min:684},l={wide:`screen and (min-width: ${i.wide}px)`,desktop:`screen and (min-width: ${i.desktop}px)`,tablet:`screen and (min-width: ${i.tablet}px)`,tabletMax:`screen and (max-width: ${i.desktop}px)`,mobile:`screen and (max-width: ${i.mobile}px)`,mobileSmall:`screen and (max-width: ${i.mobileSmall}px)`,min:`screen and (max-width: ${i.min}px)`},s={borders:{radius:{small:"4px",medium:"8px",x_large:"50px",round:"9999px"}},typography:a,colors:{...n.dark},breakpoint:{...l,raw:i}}},72165:(e,t,r)=>{r.d(t,{TextSize:()=>n});let n=function(e){return e.XXLarge="xxlarge",e.XLarge="xlarge",e.Large="large",e.Medium="medium",e.Small="small",e.XSmall="xsmall",e.XXSmall="xxsmall",e.XXXSmall="xxxsmall",e}({})},83706:(e,t,r)=>{r.d(t,{FOCUSABLE_SELECTORS:()=>o,KEYS:()=>n});const n={DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",ENTER:"Enter",SPACE:"Space",TAB:"Tab"},o=["button:not(:disabled)","[href]","input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"])']},35575:(e,t,r)=>{r.d(t,{default:()=>n});r(67602),r(30005);function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(t).forEach((t=>{let[r,o]=t;void 0!==o&&(o&&"object"==typeof o&&!Array.isArray(o)?("key"in e||e[r]||Object.assign(e,{[r]:{}}),n(e[r],o)):Object.assign(e,{[r]:o}))})),e}},46315:(e,t,r)=>{r.d(t,{noop:()=>n});const n=()=>{}},38999:(e,t,r)=>{r.d(t,{SESSION_STORAGE_PREFIX:()=>o,sessionStore:()=>a});r(20691);var n=r(36382);const o={LOCAL_AUTOSAVE_PREFIX:"wp_stories_autosave_story"};const a={getItemByKey:function(e){let t;try{const r=window.sessionStorage.getItem(e);r&&(t=JSON.parse(r))}catch(e){e instanceof Error&&(0,n.trackError)("session_storage_read",e.message)}return t},setItemByKey:function(e,t){try{window.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){e instanceof Error&&(0,n.trackError)("session_storage_write",e.message)}},deleteItemByKey:function(e){try{window.sessionStorage.removeItem(e)}catch(e){e instanceof Error&&(0,n.trackError)("session_storage_delete",e.message)}}}},85934:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});r(67602),r(30005);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){const r=new Map;return e.forEach((e=>{r.set(e[t],e)})),[...r.values()]}},38785:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(69845);const __WEBPACK_DEFAULT_EXPORT__=function(e){const t=(0,n.useRef)({current:null}),r=(0,n.useRef)(null);return Object.defineProperty(t.current,"current",{get:()=>r.current,set:t=>{if(!Object.is(r.current,t)){if(r.current=t,!e)return;"function"==typeof e?e(r.current):e.current=r.current}}}),t.current}},19574:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(69845);const __WEBPACK_DEFAULT_EXPORT__=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"polite";const t=(0,n.useRef)(null),r=(0,n.useCallback)((()=>{if(t.current)return()=>{t.current&&(document.body.removeChild(t.current),t.current=null)};const r="web-stories-aria-live-region-"+e,n=document.getElementById(r);if(n)return t.current=n,()=>{t.current=null};const o=document.createElement("div");return o.id=r,o.className="web-stories-aria-live-region",o.setAttribute("style","position: absolute;margin: -1px;padding: 0;height: 1px;width: 1px;overflow: hidden;clip: rect(1px, 1px, 1px, 1px);-webkit-clip-path: inset(50%);clip-path: inset(50%);border: 0;word-wrap: normal !important;"),o.setAttribute("aria-live",e),o.setAttribute("aria-relevant","additions text"),o.setAttribute("aria-atomic","true"),document.body.appendChild(o),t.current=o,()=>{document.body.removeChild(o),t.current=null}}),[e]);return(0,n.useEffect)(r,[r]),(0,n.useCallback)((e=>{if(!t.current)return;r();const n=document.querySelectorAll(".web-stories-aria-live-region");for(const e of n)e.textContent="";t.current.textContent=e}),[r])}},36823:(e,t,r)=>{r.d(t,{__:()=>__,_n:()=>_n,_x:()=>_x,setLocaleData:()=>i});var n=r(35577);const o="web-stories",a=new n.default({[o]:{"":{plural_forms:e=>1===e?0:1}}});function i(e){const t=e.locale_data["web-stories"]||e.locale_data.messages;a.data[o]={...a.data[o],...t,"":{...a.data[o][""]}}}function __(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return a.dcnpgettext(t,void 0,e)}function _x(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o;return a.dcnpgettext(r,t,e)}function _n(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o;return a.dcnpgettext(n,void 0,e,t,r)}},83057:(e,t,r)=>{r.d(t,{default:()=>n});const n=r(65197).default},30385:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(83057),o=r(36823);const __WEBPACK_DEFAULT_EXPORT__=function(e){switch(e.length){case 0:return"";case 1:return e[0];case 2:return(0,n.default)(/* translators: %1$s: first item of list. %2$s: second item of list. */ (0,o.__)("%1$s or %2$s","web-stories"),e[0],e[1]);default:return(0,n.default)(/* translators: %1$s: is a comma separated list. %2$s: last entry in list */ (0,o.__)("%1$s, or %2$s","web-stories"),e.slice(0,e.length-1).join(/* translators: delimiter used in a list */ (0,o.__)(", ","web-stories")),e[e.length-1])}}},13013:(e,t,r)=>{r.d(t,{default:()=>s});var n=r(67294),o=(r(41792),r(67602),r(53476),r(69845));r(70560);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];do{r.push(i(e,t)),e=e.nextSibling}while(null!==e);return r}function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{childNodes:r,nodeType:n,textContent:i}=e;if(Node.TEXT_NODE===n)return i;const l=e.hasChildNodes()?Array.from(r).map((e=>a(e,t))):null,{localName:s}=e;return s in t?(0,o.cloneElement)(t[s],{},l):(0,o.createElement)(s,null,l)}const l=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];const s=function TranslateWithMarkup(e){let{mapping:t={},children:r}=e;t=Object.fromEntries(Object.entries(t).map((e=>{let[t,r]=e;return[t.toLowerCase(),r]})));const i=Object.keys(t).filter((e=>l.includes(e))).join(" ");if(i.length>0)throw new Error(`Found disallowed void elements in TranslateWithMarkup map: ${i}`);const s=(new DOMParser).parseFromString(r,"text/html").body.firstChild;return s?n.createElement(o.Fragment,null,a(s,t).map(((e,t)=>n.createElement(o.Fragment,{key:t},e)))):null}},60298:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(e){let{src:t,srcset:r,width:n,height:o}=e;return new Promise(((e,a)=>{const i=new window.Image(n?Number(n):void 0,o?Number(o):void 0);i.onload=()=>e(i),i.onerror=a,i.decoding="async",i.crossOrigin="anonymous",r&&(i.srcset=r),i.src=t}))}},84158:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});const __WEBPACK_DEFAULT_EXPORT__=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return 1!==n?{color:{r:e,g:t,b:r,a:n}}:{color:{r:e,g:t,b:r}}}},80448:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(84967),o=r(84158);const __WEBPACK_DEFAULT_EXPORT__=function(e){const t=(0,n.parseToRgb)(e),{red:r,green:a,blue:i}=t,l="alpha"in t?t.alpha:void 0;return(0,o.default)(r,a,i,l)}},35389:(e,t,r)=>{r.d(t,{createContext:()=>n.createContext,identity:()=>o,useContext:()=>n.useContext});var n=r(44682);const o=e=>e},77780:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(28544);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){return e===t||(Array.isArray(e)&&Array.isArray(t)?(0,n.shallowEqualArrays)(e,t):"object"==typeof e&&"object"==typeof t&&(0,n.shallowEqualObjects)(e,t))}},12439:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(73935),o=r(67294);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){return(0,o.useCallback)((function(){for(var t=arguments.length,r=new Array(t),o=0;oe(...r)))}),t)}},81967:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});r(67602),r(30005);var n=r(67294);const __WEBPACK_DEFAULT_EXPORT__=function(){for(var e=arguments.length,t=new Array(e),r=0;r{o.current.forEach((t=>{"function"!=typeof t?t&&(t.current=e):t(e)}))}),[])}},14714:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(44682),o=r(67294),a=r(77780);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.default;const i=(0,o.useRef)();return(0,n.useContextSelector)(e,(e=>{const n=t(e);return i.current&&r(i.current,n)?i.current:(i.current=n,n)}))}},94547:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(67294);const __WEBPACK_DEFAULT_EXPORT__=function(e,t,r){(0,n.useLayoutEffect)((()=>{const r=e?.current;if(!r)return;const n=e=>{e.relatedTarget&&!r.contains(e.relatedTarget)&&t(e)},o=e=>{r.contains(e.target)||t(e)};r.addEventListener("focusout",n);const a={capture:!0},i=r.ownerDocument;return i.addEventListener("pointerdown",o,a),()=>{r.removeEventListener("focusout",n),i.removeEventListener("pointerdown",o,a)}}),r||[])}},2780:(e,t,r)=>{r.d(t,{default:()=>o});var n=r(67294);function o(e){const t=(0,n.useRef)();return(0,n.useEffect)((()=>{t.current=e}),[e]),t.current}},13039:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(67294);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;(0,n.useEffect)((()=>{if(!e?.current||!ResizeObserver)return;const r=new ResizeObserver((r=>{window.requestAnimationFrame((()=>{if(!e?.current)return;const n=void 0!==r?.length&&r?.length>0?r[r.length-1]:null;if(n){const{width:e,height:r}=n.contentRect;t({width:e,height:r})}}))}));return r.observe(e?.current),()=>{r.disconnect()}}),r||[])}},52583:(e,t,r)=>{r(67602),r(30005),r(67294)},85562:(e,t,r)=>{r.d(t,{DATA_LAYER:()=>n});const n="webStoriesTrackingDataLayer"},57714:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(85562),o=r(60946);const a="data-web-stories-tracking";async function i(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(document.querySelector(`script[${a}]`))return;try{await(t=`https://www.googletagmanager.com/gtag/js?id=${o.config.trackingIdGA4}&l=${n.DATA_LAYER}`,new Promise(((e,r)=>{const n=document.createElement("script");n.setAttribute(a,""),n.async=!0,n.src=t,n.addEventListener("load",e),n.addEventListener("error",r),document.head.appendChild(n)})))}catch{return}var t;const r=o.config.appName,i="/"+o.config.appName.replace(/ /g,"-").toLowerCase();(0,o.gtag)("js",new Date),(0,o.gtag)("set","user_properties",{...o.config.userProperties,app_version:o.config.appVersion,page_title:r,page_path:i}),(0,o.gtag)("config",o.config.trackingIdGA4,{app_name:o.config.appName,app_version:o.config.appVersion,send_page_view:e,transport_type:"beacon"})}const __WEBPACK_DEFAULT_EXPORT__=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.config.trackingAllowed&&!o.config.trackingEnabled&&(await i(e),o.config.trackingEnabled=!0)}},26962:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(5532);const __WEBPACK_DEFAULT_EXPORT__=function(e){const t=window.performance.now();return()=>{const r=window.performance.now()-t;(0,n.default)(e,{value:r})}}},49388:(e,t,r)=>{r.d(t,{default:()=>d});var n=r(60946),o=r(57714),a=r(68729);const i=["ResizeObserver loop limit exceeded"];function l(e){if(e.filename&&!e.filename.includes("web-stories"))return;if(i.includes(e.message))return;const t=`${e.message} (${e.lineno}:${e.colno})`;(0,a.default)("uncaught_error",t,!0)}function s(e){const t=e.reason||"Promise rejection";(0,a.default)("uncaught_promise",t)}const c=function(){window.addEventListener("error",l),window.addEventListener("unhandledrejection",s)};const d=async function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n.config.appName=e,await(0,o.default)(t),c()}},49379:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(60946),o=r(57714);const __WEBPACK_DEFAULT_EXPORT__=async function(){return await(0,o.default)(),Boolean(n.config.trackingEnabled)}},60946:(e,t,r)=>{r.d(t,{config:()=>c,gtag:()=>o});r(70560);var n=r(85562);const o=function(){window[n.DATA_LAYER]=window[n.DATA_LAYER]||[],window[n.DATA_LAYER].push(arguments)},{trackingAllowed:a,trackingIdGA4:i,appVersion:l,userProperties:s}=window.webStoriesTrackingSettings||{},c={trackingAllowed:!1,trackingEnabled:!1,trackingIdGA4:"",userProperties:{},appName:"",trackingAllowed:a,trackingIdGA4:i,appVersion:l,userProperties:s}},87438:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(60946);const __WEBPACK_DEFAULT_EXPORT__=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((r=>{const o=setTimeout((()=>{window.console.warn(`[Web Stories] Tracking event "${e}" took too long to fire.`),r()}),1e3);(0,n.gtag)("event",e,{...t,event_callback:()=>{clearTimeout(o),r()}})}))}},36864:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(49379),o=r(87438);const __WEBPACK_DEFAULT_EXPORT__=async function(e,t){const{currentTarget:r}=e||{};return r&&await(0,n.default)()?"_blank"===r?.target||e.ctrlKey||e.shiftKey||e.metaKey||1===e.button?(0,o.default)(t):(e.preventDefault(),(0,o.default)(t).finally((()=>{document.location=r.href}))):Promise.resolve()}},68729:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(49379),o=r(87438);const __WEBPACK_DEFAULT_EXPORT__=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!await(0,n.default)())return Promise.resolve();const a={description:`${e}: ${t}`,fatal:r};return(0,o.default)("exception",a)}},5532:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(49379),o=r(87438);const __WEBPACK_DEFAULT_EXPORT__=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return await(0,n.default)()?(0,o.default)(e,t):Promise.resolve()}},20886:(e,t,r)=>{r.d(t,{default:()=>n});r(98858),r(61318),r(33228);function n(e,t){let r,n=!1;try{r=new URL(e)}catch{r=new URL(e,document.location.href),n=!0}for(const e in t){if(!Object.prototype.hasOwnProperty.call(t,e))continue;const n=t[e];null!=n&&r.searchParams.set(e,n)}return n?r.pathname+r.search:r.href}},88272:(e,t,r)=>{r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});r(41792);const __WEBPACK_DEFAULT_EXPORT__=function(e,t){return Object.fromEntries(Object.entries(e).map((e=>{let[r,n]=e;return[r,n.bind(null,t)]})))}},19167:(e,t,r)=>{r.d(t,{snakeToCamelCaseObjectKeys:()=>a});r(41792);function n(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.includes("_")||e.includes("-")?e.toLowerCase().replace(/([a-z])([_|-][a-z])/g,((e,t,r)=>t+r.toUpperCase().replace("_","").replace("-",""))):e}function o(e){return e&&"object"==typeof e&&!Array.isArray(e)}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return o(e)?Object.fromEntries(Object.entries(e).map((e=>{let[r,i]=e;return[n(r),o(i)&&!t.includes(r)?a(i):i]}))):e}}}]);