1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0dab6-9a04-0000-6d14-c52692d55e20";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="10d9dabe-8e8a-5aa1-8538-8581afbd8c75")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20660,e=>{"use strict";function t(){return(t=Object.assign.bind()).apply(null,arguments)}e.s(["default",()=>t])},343118,e=>{"use strict";e.s(["default",0,function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}])},86243,e=>{"use strict";var t=e.i(497965),r=e.i(577424),n=e.i(496887),i=e.i(803568),o=e.i(485411),a=e.i(934974),s=e.i(439291),l=e.i(56262),c=e.i(116435),u=e.i(749933),d=e.i(866513);function f(e){return e?.current?e.current.scrollHeight:"auto"}let p="u">typeof window&&window.requestAnimationFrame,h={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},m=(0,l.factory)((e,l)=>{let{children:m,in:g,transitionDuration:v,transitionTimingFunction:w,style:b,onTransitionEnd:y,animateOpacity:x,keepMounted:S,..._}=(0,o.useProps)("Collapse",h,e),E=(0,i.useMantineTheme)(),C=(0,r.useReducedMotion)(),k=E.respectReducedMotion&&C?0:v,P=function({transitionDuration:e,transitionTimingFunction:t="ease",onTransitionEnd:r=()=>{},opened:i,keepMounted:o=!1}){let a=(0,n.useRef)(null),s={height:0,overflow:"hidden",...o?{}:{display:"none"}},[l,h]=(0,n.useState)(i?{}:s),m=e=>{(0,c.flushSync)(()=>h(e))},g=e=>{m(t=>({...t,...e}))};function v(r){let n=e||function(e){if(!e||"string"==typeof e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}(r);return{transition:`height ${n}ms ${t}, opacity ${n}ms ${t}`}}(0,u.useDidUpdate)(()=>{"function"==typeof p&&(i?p(()=>{g({willChange:"height",display:"block",overflow:"hidden"}),p(()=>{let e=f(a);g({...v(e),height:e})})}):p(()=>{let e=f(a);g({...v(e),willChange:"height",height:e}),p(()=>g({height:0,overflow:"hidden"}))}))},[i]);let w=e=>{if(e.target===a.current&&"height"===e.propertyName)if(i){let e=f(a);e===l.height?m({}):g({height:e}),r()}else 0===l.height&&(m(s),r())};return function({style:e={},refKey:t="ref",...r}={}){let o=r[t],s={"aria-hidden":!i,...r,[t]:(0,d.mergeRefs)(a,o),onTransitionEnd:w,style:{boxSizing:"border-box",...e,...l}};return n.default.version.startsWith("18")?i||(s.inert=""):s.inert=!i,s}}({opened:g,transitionDuration:k,transitionTimingFunction:w,onTransitionEnd:y,keepMounted:S});return 0===k?g?(0,t.jsx)(s.Box,{..._,children:m}):null:(0,t.jsx)(s.Box,{...P({style:{opacity:g||!x?1:0,transition:x?`opacity ${k}ms ${w}`:"none",...(0,a.getStyleObject)(b,E)},ref:l,..._}),children:m})});m.displayName="@mantine/core/Collapse",e.s(["Collapse",0,m],86243)},417270,e=>{"use strict";var t=e.i(497965),r=e.i(496887),n=e.i(296748),i=e.i(485411),o=e.i(56262),a={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"},s=e.i(598348);let[l,c]=(0,e.i(541940).createSafeContext)("Drawer component was not found in tree"),u=(0,o.factory)((e,r)=>{let{classNames:n,className:o,style:a,styles:l,vars:u,...d}=(0,i.useProps)("DrawerBody",null,e),f=c();return(0,t.jsx)(s.ModalBaseBody,{ref:r,...f.getStyles("body",{classNames:n,style:a,styles:l,className:o}),...d})});u.classes=a,u.displayName="@mantine/core/DrawerBody";var d=e.i(404173);let f=(0,o.factory)((e,r)=>{let{classNames:n,className:o,style:a,styles:s,vars:l,...u}=(0,i.useProps)("DrawerCloseButton",null,e),f=c();return(0,t.jsx)(d.ModalBaseCloseButton,{ref:r,...f.getStyles("close",{classNames:n,style:a,styles:s,className:o}),...u})});f.classes=a,f.displayName="@mantine/core/DrawerCloseButton";var p=e.i(225175),h=e.i(762243);let m=(0,o.factory)((e,r)=>{let{classNames:n,className:o,style:a,styles:s,vars:l,children:u,radius:d,__hidden:f,...m}=(0,i.useProps)("DrawerContent",null,e),g=c(),v=g.scrollAreaComponent||h.NativeScrollArea;return(0,t.jsx)(p.ModalBaseContent,{...g.getStyles("content",{className:o,style:a,styles:s,classNames:n}
1),innerProps:g.getStyles("inner",{className:o,style:a,styles:s,classNames:n}),ref:r,...m,radius:d||g.radius||0,"data-hidden":f||void 0,children:(0,t.jsx)(v,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:u})})});m.classes=a,m.displayName="@mantine/core/DrawerContent";var g=e.i(803961);let v=(0,o.factory)((e,r)=>{let{classNames:n,className:o,style:a,styles:s,vars:l,...u}=(0,i.useProps)("DrawerHeader",null,e),d=c();return(0,t.jsx)(g.ModalBaseHeader,{ref:r,...d.getStyles("header",{classNames:n,style:a,styles:s,className:o}),...u})});v.classes=a,v.displayName="@mantine/core/DrawerHeader";var w=e.i(611524);let b=(0,o.factory)((e,r)=>{let{classNames:n,className:o,style:a,styles:s,vars:l,...u}=(0,i.useProps)("DrawerOverlay",null,e),d=c();return(0,t.jsx)(w.ModalBaseOverlay,{ref:r,...d.getStyles("overlay",{classNames:n,style:a,styles:s,className:o}),...u})});b.classes=a,b.displayName="@mantine/core/DrawerOverlay";var y=e.i(134332),x=e.i(776298),S=e.i(110774),_=e.i(57724),E=e.i(495519),C=e.i(490827),k=e.i(769291);let P={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},j={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},R={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,n.getDefaultZIndex)("modal"),position:"left"},T=(0,S.createVarsResolver)((e,{position:t,size:r,offset:n})=>({root:{"--drawer-size":(0,x.getSize)(r,"drawer-size"),"--drawer-flex":function(e){if("top"===e||"bottom"===e)return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}(t),"--drawer-height":"left"===t||"right"===t?void 0:"var(--drawer-size)","--drawer-align":function(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}(t),"--drawer-justify":"right"===t?"flex-end":void 0,"--drawer-offset":(0,y.rem)(n)}})),I=(0,o.factory)((e,r)=>{let n=(0,i.useProps)("DrawerRoot",R,e),{classNames:o,className:s,style:c,styles:u,unstyled:d,vars:f,scrollAreaComponent:p,position:h,transitionProps:m,radiu
1s:g,attributes:v,...w}=n,{dir:b}=(0,E.useDirection)(),y=(0,_.useStyles)({name:"Drawer",classes:a,props:n,className:s,style:c,classNames:o,styles:u,unstyled:d,attributes:v,vars:f,varsResolver:T}),x=("rtl"===b?j:P)[h];return(0,t.jsx)(l,{value:{scrollAreaComponent:p,getStyles:y,radius:g},children:(0,t.jsx)(C.ModalBase,{ref:r,...y("root"),transitionProps:{transition:x,...m},"data-offset-scrollbars":p===k.ScrollArea.Autosize||void 0,unstyled:d,...w})})});I.classes=a,I.displayName="@mantine/core/DrawerRoot";let[O,A]=(0,e.i(414358).createOptionalContext)();function M({children:e}){let[i,o]=(0,r.useState)([]),[a,s]=(0,r.useState)((0,n.getDefaultZIndex)("modal"));return(0,t.jsx)(O,{value:{stack:i,addModal:(e,t)=>{o(t=>[...new Set([...t,e])]),s(e=>"number"==typeof t&&"number"==typeof e?Math.max(e,t):e)},removeModal:e=>o(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${a} + ${i.indexOf(e)} + 1)`,currentId:i[i.length-1],maxZIndex:a},children:e})}M.displayName="@mantine/core/DrawerStack";var L=e.i(831524);let N=(0,o.factory)((e,r)=>{let{classNames:n,className:o,style:a,styles:s,vars:l,...u}=(0,i.useProps)("DrawerTitle",null,e),d=c();return(0,t.jsx)(L.ModalBaseTitle,{ref:r,...d.getStyles("title",{classNames:n,style:a,styles:s,className:o}),...u})});N.classes=a,N.displayName="@mantine/core/DrawerTitle";let $={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:(0,n.getDefaultZIndex)("modal"),withOverlay:!0,withCloseButton:!0},D=(0,o.factory)((e,o)=>{let{title:a,withOverlay:s,overlayProps:l,withCloseButton:c,closeButtonProps:d,children:p,opened:h,stackId:g,zIndex:w,...y}=(0,i.useProps)("Drawer",$,e),x=A(),S=!!a||c,_=x&&g?{closeOnEscape:x.currentId===g,trapFocus:x.currentId===g,zIndex:x.getZIndex(g)}:{},E=!1!==s&&(g&&x?x.currentId===g:h);return(0,r.useEffect)(()=>{x&&g&&(h?x.addModal(g,w||(0,n.getDefaultZIndex)("modal")):x.removeModal(g))},[h,g,w]),(0,t.jsxs)(I,{ref:o,opened:h,zIndex:x&&g?x.getZIndex(g):w,...y,..._,children:[s&&(0,t.jsx)(b,{visible:E,transitionProps:x&&g?{duration:0}:void 0,...l}),(0,t.jsxs)(m,{__hidden:!!x&&!!g&&!!h&&g!==x.currentId,children:[S&&(0,t.jsxs)(v,{children:[a&&(0,t.jsx)(N,{children:a}),c&&(0,t.jsx)(f,{...d})]}),(0,t.jsx)(u,{children:p})]})]})});D.classes=a,D.displayName="@mantine/core/Drawer",D.Root=I,D.Overlay=b,D.Content=m,D.Body=u,D.Header=v,D.Title=N,D.CloseButton=f,D.Stack=M,e.s(["Drawer",0,D],417270)},107734,e=>{"use strict";var t=e.i(497965),r=e.i(496887),n=e.i(874742),i=e.i(870142),o=e.i(133e3),a=e.i(57724),s=e.i(485411),l=e.i(26387),c=e.i(56262),u=e.i(977642),d=e.i(790987),f=e.i(527921),p=e.i(726359),h=e.i(884823),m=e.i(587712),g=e.i(337580),v=e.i(182494),w=e.i(866513),b=e.i(439291),y=e.i(51738),x={field:"m_45c4369d"};let S={type:"visible"},_=(0,c.factory)((e,r)=>{let n=(0,s.useProps)("PillsInputField",S,e),{classNames:i,className:o,style:l,styles:c,unstyled:u,vars:d,type:f,disabled:p,id:h,pointer:m,mod:g,attributes:_,...E}=n,C=(0,v.usePillsInputContext)(),k=(0,y.useInputWrapperContext)(),P=(0,a.useStyles)({name:"PillsInputField",classes:x,props:n,className:o,style:l,classNames:i,styles:c,unstyled:u,attributes:_,rootSelector:"field"}),j=p||C?.disabled;return(0,t.jsx)(b.Box,{component:"input",ref:(0,w.useMergedRef)(r,C?.fieldRef),"data-type":f,disabled:j,mod:[{disabled:j,pointer:m},g],...P("field"),...E,id:k?.inputId||h,"aria-invalid":C?.hasError,"aria-describedby":k?.describedBy,type:"text",onMouseDown:e=>!m&&e.stopPropagation()})});_.classes=x,_.displayName="@mantine/core/PillsInputField";let E={size:"sm"},C=(0,c.factory)((e,n)=>{let{children:i,onMouseDown:o,onClick:a,size:l,disabled:c,__staticSelector:u,error:d,variant:f,...p}=(0,s.useProps)("PillsInput",E,e),h=(0,r.useRef)(null);return(0,t.jsx)(v.PillsInputProvider,{value:{fieldRef:h,size:l,disabled:c,hasError:!!d,variant:f},children:(0,t.jsx)(m.InputBase,{size:l,error:d,variant:f,component:"div",ref:n,"data-no-overflow":!0,onMouseDown:e=>{e.preventDefault(),o?.(e),h.current?.focus()},onClick:e=>{e.preventDefault();let t=e.currentTarget.closest("fieldset");t?.disabled||(h.current?.focus(),a?.(e))},...p,multiline:!0,disabled:c,__staticSelector:u||"PillsInput",withAria:!1,children:i})})});C.displayName="@mantine/core/PillsInput",C.Field=_;var k=e.i(961029);let P={xs:41,sm:50,md:60,lg:72,xl:89},j={maxValues:1/0,withCheckIcon:!0,checkIconPosition:"left",hiddenInputValuesDivider:",",clearSearchOnChange:!0,openOnFocus:!0,size:"sm"},R=(0,c.factory)((e,c)=>{let m=(0,s.useProps)("MultiSelect",j,e),{classNames:v,className:w,style:b,styles:y,unstyled:x,vars:S,size:_,value:E,defaultValue:R,onChange:T,onKeyDown:I,variant:O,data:A,dropdownOpened:M,defaultDropdownOpened:L,onDropdownOpen:N,onDropdownClose:$,selectFirstOptionOnChange:D,selectFirstOptionOnDropdownOpen:W,onOptionSubmit:B,comboboxProps:U,filter:z,limit:F,withScrollArea:V,maxDropdownHeight:H,searchValue:q,defaultSearchValue:G,onSearchChange:Y,readOnly:K,disabled:J,onFocus:X,onBlur:Z,radius:Q,rightSection:ee,rightSectionWidth:et,rightSectionPointerEvents:er,rightSectionProps:en,leftSection:ei,leftSectionWidth:eo,leftSectionPointerEvents:ea,leftSectionProps:es,inputContainer:el,inputWrapperOrder:ec,withAsterisk:eu,labelProps:ed,descriptionProps:ef,errorProps:ep,wrapperProps:eh,description:em,label:eg,error:ev,maxValues:ew,searchable:eb,nothingFoundMessage:ey,withCheckIcon:ex,withAlignedLabels:eS,checkIconPosition:e_,hidePickedOptions:eE,withErrorStyles:eC,name:ek,form:eP,id:ej,clearable:eR,clearButtonProps:eT,hiddenInputProps:eI,placeholder:eO,hiddenInputValuesDivider:eA,required:eM,mod:eL,renderOption:eN,onRemove:e$,onClear:eD,scrollAreaProps:eW,chevronColor:eB,attributes:eU,clearSearchOnChange:ez,openOnFocus:eF,...eV}=m,eH=(0,n.useId)(ej),eq=(0,u.getParsedComboboxData)(A),eG=(0,d.getOptionsLockup)(eq),eY=(0,r.useRef)({}),eK=(0,h.useCombobox)({opened:M,defaultOpened:L,onDropdownOpen:()=>{N?.(),W&&eK.selectFirstOption()},onDropdownClose:()=>{$?.(),eK.resetSelectedOption()}}),{styleProps:eJ,rest:{type:eX,autoComplete:eZ,...eQ}}=(0,l.extractStyleProps)(eV),[e0,e1]=(0,i.useUncontrolled)({value:E,defaultValue:R,finalValue:[],onChange:T}),[e4,e6]=(0,i.useUncontrolled)({value:q,defaultValue:G,finalValue:"",onChange:Y}),e7=e=>{e6(e),eK.resetSelectedOption()},e9=(0,a.useStyles)({name:"MultiSelect",classes:{},props:m,classNames:v,styles:y,unstyled:x,attributes:eU}),{resolvedClassNames:e8,resolvedStyles:e5}=(0,o.useResolvedStylesApi)({props:m,styles:y,classNames:v}),e3=e0.map((e,r)=>{let n=eG[e]||eY.current[e];return(0,t.jsx)(g.Pill,{withRemoveButton:!K&&!eG[e]?.disabled,onRemove:()=>{e1(e0.filter(t=>e!==t)),e$?.(e)},unstyled:x,disabled:J,...e9("pill"),children:n?.label||e},`${e}-${r}`)});(0,r.useEffect)(()=>{D&&eK.selectFirstOption()},[D,e4]),(0,r.useEffect)(()=>
1{e0.forEach(e=>{e in eG&&(eY.current[e]=eG[e])})},[eG,e0]);let e2=(0,t.jsx)(f.Combobox.ClearButton,{...eT,onClear:()=>{eD?.(),e1([]),e7("")}}),te=function({data:e,value:t}){let r=t.map(e=>e.trim().toLowerCase());return e.reduce((e,t)=>((0,k.isOptionsGroup)(t)?e.push({group:t.group,items:t.items.filter(e=>-1===r.indexOf(e.value.toLowerCase().trim()))}):-1===r.indexOf(t.value.toLowerCase().trim())&&e.push(t),e),[])}({data:eq,value:e0}),tt=eR&&e0.length>0&&!J&&!K,tr=tt?{paddingInlineEnd:P[_]??P.sm}:void 0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(f.Combobox,{store:eK,classNames:e8,styles:e5,unstyled:x,size:_,readOnly:K,__staticSelector:"MultiSelect",attributes:eU,onOptionSubmit:e=>{B?.(e),ez&&e7(""),eK.updateSelectedOptionIndex("selected"),e0.includes(eG[e].value)?(e1(e0.filter(t=>t!==eG[e].value)),e$?.(eG[e].value)):e0.length<ew&&e1([...e0,eG[e].value])},...U,children:[(0,t.jsx)(f.Combobox.DropdownTarget,{children:(0,t.jsx)(C,{...eJ,__staticSelector:"MultiSelect",classNames:e8,styles:e5,unstyled:x,size:_,className:w,style:b,variant:O,disabled:J,radius:Q,__defaultRightSection:(0,t.jsx)(f.Combobox.Chevron,{size:_,error:ev,unstyled:x,color:eB}),__clearSection:e2,__clearable:tt,rightSection:ee,rightSectionPointerEvents:er||"none",rightSectionWidth:et,rightSectionProps:en,leftSection:ei,leftSectionWidth:eo,leftSectionPointerEvents:ea,leftSectionProps:es,inputContainer:el,inputWrapperOrder:ec,withAsterisk:eu,labelProps:ed,descriptionProps:ef,errorProps:ep,wrapperProps:eh,description:em,label:eg,error:ev,withErrorStyles:eC,__stylesApiProps:{...m,rightSectionPointerEvents:er||"none",multiline:!0},pointer:!eb,onClick:()=>eb?eK.openDropdown():eK.toggleDropdown(),"data-expanded":eK.dropdownOpened||void 0,id:eH,required:eM,mod:eL,attributes:eU,children:(0,t.jsxs)(g.Pill.Group,{attributes:eU,disabled:J,unstyled:x,...e9("pillsList",{style:tr}),children:[e3,(0,t.jsx)(f.Combobox.EventsTarget,{autoComplete:eZ,children:(0,t.jsx)(C.Field,{...eQ,ref:c,id:eH,placeholder:eO,type:eb||eO?"visible":"hidden",...e9("inputField"),unstyled:x,onFocus:e=>{X?.(e),eF&&eb&&eK.openDropdown()},onBlur:e=>{Z?.(e),eK.closeDropdown(),e7("")},onKeyDown:e=>{I?.(e)," "!==e.key||eb||(e.preventDefault(),eK.toggleDropdown()),"Backspace"===e.key&&0===e4.length&&e0.length>0&&(e$?.(e0[e0.length-1]),e1(e0.slice(0,e0.length-1)))},value:e4,onChange:e=>{e7(e.currentTarget.value),eb&&eK.openDropdown(),D&&eK.selectFirstOption()},disabled:J,readOnly:K||!eb,pointer:!eb})})]})})}),(0,t.jsx)(p.OptionsDropdown,{data:eE?te:eq,hidden:K||J,filter:z,search:e4,limit:F,hiddenWhenEmpty:!ey,withScrollArea:V,maxDropdownHeight:H,filterOptions:eb,value:e0,checkIconPosition:e_,withCheckIcon:ex,withAlignedLabels:eS,nothingFoundMessage:ey,unstyled:x,labelId:eg?`${eH}-label`:void 0,"aria-label":eg?void 0:eV["aria-label"],renderOption:eN,scrollAreaProps:eW})]}),(0,t.jsx)(f.Combobox.HiddenInput,{name:ek,valuesDivider:eA,value:e0,form:eP,disabled:J,...eI})]})});R.classes={...m.InputBase.classes,...f.Combobox.classes},R.displayName="@mantine/core/MultiSelect",e.s(["MultiSelect",0,R],107734)},337580,182494,e=>{"use strict";var t=e.i(497965);e.i(496887);var r=e.i(776298),n=e.i(110774),i=e.i(485411),o=e.i(57724),a=e.i(439291),s=e.i(56262),l=e.i(53259),c=e.i(414358);let[u,d]=(0,c.createOptionalContext)();e.s(["PillsInputProvider",0,u,"usePillsInputContext",0,d],182494);var f={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};let[p,h]=(0,c.createOptionalContext)(),m=(0,n.createVarsResolver)((e,{gap:t},{size:n})=>({group:{"--pg-gap":void 0!==t?(0,r.getSize)(t):(0,r.getSize)(n,"pg-gap")}})),g=(0,s.factory)((e,r)=>{let n=(0,i.useProps)("PillGroup",null,e),{classNames:s,className:l,style:c,styles:u,unstyled:h,vars:g,size:v,disabled:w,attributes:b,...y}=n,x=d(),S=x?.size||v||void 0,_=(0,o.useStyles)({name:"PillGroup",classes:f,props:n,className:l,style:c,classNames:s,styles:u,unstyled:h,attributes:b,vars:g,varsResolver:m,stylesCtx:{size:S},rootSelector:"group"});return(0,t.jsx)(p,{value:{size:S,disabled:w},children:(0,t.jsx)(a.Box,{ref:r,size:S,..._("group"),...y})})});g.classes=f,g.displayName="@mantine/core/PillGroup";let v={variant:"default"},w=(0,n.createVarsResolver)((e,{radius:t},{size:n})=>({root:{"--pill-fz":(0,r.getSize)(n,"pill-fz"),"--pill-height":(0,r.getSize)(n,"pill-height"),"--pill-radius":void 0===t?void 0:(0,r.getRadius)(t)}})),b=(0,s.factory)((e,r)=>{let n=(0,i.useProps)("Pill",v,e),{classNames:s,className:c,style:u,styles:p,unstyled:m,vars:g,variant:b,children:y,withRemoveButton:x,onRemove:S,removeButtonProps:_,radiu
1s:E,size:C,disabled:k,mod:P,attributes:j,...R}=n,T=h(),I=d(),O=C||T?.size||void 0,A=I?.variant==="filled"?"contrast":b||"default",M=(0,o.useStyles)({name:"Pill",classes:f,props:n,className:c,style:u,classNames:s,styles:p,unstyled:m,attributes:j,vars:g,varsResolver:w,stylesCtx:{size:O}});return(0,t.jsxs)(a.Box,{component:"span",ref:r,variant:A,size:O,...M("root",{variant:A}),mod:[{"with-remove":x&&!k,disabled:k||T?.disabled},P],...R,children:[(0,t.jsx)("span",{...M("label"),children:y}),x&&(0,t.jsx)(l.CloseButton,{variant:"transparent",radius:E,tabIndex:-1,"aria-hidden":!0,unstyled:m,..._,...M("remove",{className:_?.className,style:_?.style}),onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),_?.onMouseDown?.(e)},onClick:e=>{e.stopPropagation(),S?.(),_?.onClick?.(e)}})]})});b.classes=f,b.displayName="@mantine/core/Pill",b.Group=g,e.s(["Pill",0,b],337580)},964773,e=>{"use strict";var t=e.i(497965),r=e.i(20660),n=e.i(343118),i=e.i(496887),o=e.i(266250),a=function(e){var t=i.default.useRef(e);return(0,o.default)(function(){t.current=e}),t},s=function(e,t){"function"==typeof e?e(t):e.current=t},l=function(e,t){var r=i.default.useRef();return i.default.useCallback(function(n){e.current=n,r.current&&s(r.current,null),r.current=t,t&&s(t,n)},[t])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},u=function(e){Object.keys(c).forEach(function(t){e.style.setProperty(t,c[t],"important")})},d=null,f=function(e,t){var r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize},p=function(){},h=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],m=!!document.documentElement.currentStyle,g=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var r=h.reduce(function(e,r){return e[r]=t[r],e},{}),n=r.boxSizing;if(""===n)return null;m&&"border-box"===n&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),o=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:o}};function v(e,t,r){var n=a(r);i.useLayoutEffect(function(){var r=function(e){return n.current(e)};if(e)return e.addEventListener(t,r),function(){return e.removeEventListener(t,r)}},[])}var w=function(e,t){v(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},b=function(e){v(window,"resize",e)},y=function(e){v(document.fonts,"loadingdone",e)},x=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],S=i.forwardRef(function(e,t){var o=e.cacheMeasurements,a=e.maxRows,s=e.minRows,c=e.onChange,h=void 0===c?p:c,m=e.onHeightChange,v=void 0===m?p:m,S=(0,n.default)(e,x),_=void 0!==S.value,E=i.useRef(null),C=l(E,t),k=i.useRef(0),P=i.useRef(),j=function(){var e=E.current,t=o&&P.current?P.current:g(e);if(t){P.current=t;var r,n,i,l,c,p,h,m,w,b,y,x=(r=e.value||e.placeholder||"x",void 0===(n=s)&&(n=1),void 0===(i=a)&&(i=1/0),d||((d=document.createElement("textarea")).setAttribute("tabindex","-1"),d.setAttribute("aria-hidden","true"),u(d)),null===d.parentNode&&document.body.appendChild(d),l=t.paddingSize,c=t.borderSize,h=(p=t.sizingStyle).boxSizing,Object.keys(p).forEach(function(e){d.style[e]=p[e]}),u(d),d.value=r,m=f(d,t),d.value=r,m=f(d,t),d.value="x",b=(w=d.scrollHeight-l)*n,"border-box"===h&&(b=b+l+c),m=Math.max(b,m),y=w*i,"border-box"===h&&(y=y+l+c),[m=Math.min(y,m),w]),S=x[0],_=x[1];k.current!==S&&(k.current=S,e.style.setProperty("height",S+"px","important"),v(S,{rowHeight:_}))}};return i.useLayoutEffect(j),w(E,function(){if(!_){var e=E.current.value;requestAnimationFrame(function(){var t=E.current;t&&e!==t.value&&j()})}}),b(j),y(j),i.createElement("textarea",(0,r.default)({},S,{onChange:function(e){_||j(),h(e)},ref:C}))}),_=e.i(503267),E=e.i(485411),C=e.i(56262),k=e.i(587712);let P={size:"sm"},j=(0,C.factory)((e,r)=>{let{autosize:n,maxRows:i,minRows:o,__staticSelector:a,resize:s,...l}=(0,E.useProps)("Textarea",P,e),c=n&&"test"!==(0,_.getEnv)();return(0,t.jsx)(k.InputBase,{component:c?S:"textarea",ref:r,...l,__staticSelector:a||"Textarea",multiline:!0,"data-no-overflow":n&&void 0===i||void 0,__vars:{"--input-resize":s},...c?{maxRows:i,minRows:o}:{}})});j.classes=k.InputBase.classes,j.displayName="@mantine/core/Textarea",e.s(["Textarea",0,j],964773)},934974,e=>{"use strict";e.s(["getStyleObject",0,function e(t,r){return Array.isArray(t)?[...t].reduce((t,n)=>({...t,...e(n,r)}),{}):"function"==typeof t?t(r):null==t?{}:t}])},503267,e=>{"use strict";var t=e.i(437866);e.s(["getEnv",0,function(){return void 0!==t.default&&t.default.env&&1?"production":"development"}])},32465,e=>{"use strict";
1var t=e.i(497965),r=e.i(496887);let n={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"â",consistentWeeks:!1},i=(0,r.createContext)(n);e.s(["DatesProvider",0,function({settings:e,children:r}){return(0,t.jsx)(i.Provider,{value:{...n,...e},children:r})},"DatesProviderContext",0,i])},767707,e=>{"use strict";var t=e.i(496887);e.s(["useDocumentVisibility",0,function(){let[e,r]=(0,t.useState)("visible");return(0,t.useEffect)(()=>{r(document.visibilityState);let e=()=>r(document.visibilityState);return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),e}])},498642,e=>{"use strict";var t=e.i(497965),r=e.i(496887),n=e.i(392334),i=e.i(296748),o=e.i(818711),a=e.i(439291),s=e.i(416694),l=e.i(69074);let c=(0,r.createContext)(null);function u({id:e,cancelProps:n,confirmProps:i,labels:o={cancel:"",confirm:""},closeOnConfirm:d=!0,closeOnCancel:f=!0,groupProps:p,onCancel:h,onConfirm:m,children:g}){let{cancel:v,confirm:w}=o,b=function(){let e=(0,r.useContext)(c);if(!e)throw Error("[@mantine/modals] useModals hook was called outside of context, wrap your app with ModalsProvider component");return e}();return(0,t.jsxs)(t.Fragment,{children:[g&&(0,t.jsx)(a.Box,{mb:"md",children:g}),(0,t.jsxs)(s.Group,{mt:g?0:"md",justify:"flex-end",...p,children:[(0,t.jsx)(l.Button,{variant:"default",...n,onClick:t=>{"function"==typeof n?.onClick&&n?.onClick(t),"function"==typeof h&&h(),f&&b.closeModal(e)},children:n?.children||v}),(0,t.jsx)(l.Button,{...i,onClick:t=>{"function"==typeof i?.onClick&&i?.onClick(t),"function"==typeof m&&m(),d&&b.closeModal(e)},children:i?.children||w})]})]})}c.displayName="@mantine/modals/ModalsContext";var d=e.i(940270);function f(e,t){t&&"confirm"===e.type&&e.props.onCancel?.(),e.props.onClose?.()}function p(e,t){switch(t.type){case"OPEN":return{current:t.modal,modals:[...e.modals,t.modal]};case"CLOSE":{if(!e.modals.find(e=>e.id===t.modalId))return e;let r=e.modals.filter(e=>e.id!==t.modalId);return{current:r[r.length-1]||e.current,modals:r}}case"CLOSE_ALL":if(!e.modals.length)return e;return{current:e.current,modals:[]};case"UPDATE":{let{modalId:r,newProps:n}=t,i=e.modals.map(e=>e.id!==r?e:"content"===e.type||"confirm"===e.type?{...e,props:{...e.props,...n}}:"context"===e.type?{...e,props:{...e.props,...n,innerProps:{...e.props.innerProps,...n.innerProps}}}:e),o=e.current?.id===r&&i.find(e=>e.id===r)||e.current;return{...e,modals:i,current:o}}default:return e}}e.s(["ModalsProvider",0,function({children:e,modalProps:a,labels:s,modals:l}){let[h,m]=(0,r.useReducer)(p,{modals:[],current:null}),g=(0,r.useRef)(h);g.current=h;let v=(0,r.useCallback)(e=>{g.current.modals.concat().reverse().forEach(t=>{f(t,e)}),m({type:"CLOSE_ALL",canceled:e})},[g,m]),w=(0,r.useCallback)(({modalId:e,...t})=>{let r=e||(0,o.randomId)();return m({type:"OPEN",modal:{id:r,type:"content",props:t}}),r},[m]),b=(0,r.useCallback)(({modalId:e,...t})=>{let r=e||(0,o.randomId)();return m({type:"OPEN",modal:{id:r,type:"confirm",props:t}}),r},[m]),y=(0,r.useCallback)((e,{modalId:t,...r})=>{let n=t||(0,o.randomId)();return m({type:"OPEN",modal:{id:n,type:"context",props:r,ctx:e}}),n},[m]),x=(0,r.useCallback)((e,t)=>{let r=g.current.modals.find(t=>t.id===e);r&&f(r,t),m({type:"CLOSE",modalId:e,canceled:t})},[g,m]),S=(0,r.useCallback)(({modalId:e,...t})=>{m({type:"UPDATE",modalId:e,newProps:t})},[m]),_=(0,r.useCallback)(({modalId:e,...t})=>{m({type:"UPDATE",modalId:e,newProps:t})},[m]);(0,d.useModalsEvents)({openModal:w,openConfirmModal:b,openContextModal:({modal:e,...t})=>y(e,t),closeModal:x,closeContextModal:x,closeAllModals:v,updateModal:S,updateContextModal:_});let E={modalProps:a||{},modals:h.modals,openModal:w,openConfirmModal:b,openContextModal:y,closeModal:x,closeContextModal:x,closeAll:v,updateModal:S,updateContextModal:_},{modalProps:C,content:k}=(()=>{let e=g.current.current;switch(e?.type){case"context":{let{innerProps:r,...n}=e.props,i=l[e.ctx];return{modalProps:n,content:(0,t.jsx)(i,{innerProps:r,context:E,id:e.id})}}case"confirm":{let{modalProps:r,confirmProps:n}=function(e){if(!e)return{confirmProps:{},modalProps:{}};let{id:t,children:r,onCancel:n,onConfirm:i,closeOnConfirm:o,closeOnCancel:a,cancelProps:s,confirmProps:l,groupProps:c,labels:u,...d}=e;return{confirmProps:{id:t,children:r,onCancel:n,onConfirm:i,closeOnConfirm:o,closeOnCancel:a,cancelProps:s,confirmProps:l,groupProps:c,labels:u},modalProps:{id:t,...d}}}(e.props);return{modalProps:r,content:(0,t.jsx)(u,{...n,id:e.id,labels:e.props.labels||s})}}case"content":{let{children:t,...r}=e.props;return{modalProps:r,content:t}}default:return{modalProps:{},content:null}}})();return(0,t.jsxs)(c.Provider,{value:E,children:[(0,t.jsx)(n.Modal,{zIndex:(0,i.getDefaultZIndex)("modal")+1,...a,...C,opened:h.modals.length>0,onClose:()=>x(h.current?.id),children:k}),e]})}],498642)},322755,e=>{"use strict";
1var t=e.i(497965),r=e.i(496887),n=e.i(343118);function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)}var a=e.i(116435);let s=r.default.createContext(null);var l="unmounted",c="exited",u="entering",d="entered",f="exiting",p=function(e){function t(t,r){var n,i=e.call(this,t,r)||this,o=r&&!r.isMounting?t.enter:t.appear;return i.appearStatus=null,t.in?o?(n=c,i.appearStatus=u):n=d:n=t.unmountOnExit||t.mountOnEnter?l:c,i.state={status:n},i.nextCallback=null,i}o(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===l?{status:c}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==u&&r!==d&&(t=u):(r===u||r===d)&&(t=f)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},i.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===u){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:a.default.findDOMNode(this);r&&r.scrollTop}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:l})},i.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[a.default.findDOMNode(this),n],o=i[0],s=i[1],l=this.getTimeouts(),c=n?l.appear:l.enter;(e||r)&&1?(this.props.onEnter(o,s),this.safeSetState({status:u},function(){t.props.onEntering(o,s),t.onTransitionEnd(c,function(){t.safeSetState({status:d},function(){t.props.onEntered(o,s)})})})):this.safeSetState({status:d},function(){t.props.onEntered(o)})},i.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:a.default.findDOMNode(this);t?(this.props.onExit(n),this.safeSetState({status:f},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:c},function(){e.props.onExited(n)})})})):this.safeSetState({status:c},function(){e.props.onExited(n)})},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},i.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},i.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:a.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],s=i[1];this.props.addEndListener(o,s)}null!=e&&setTimeout(this.nextCallback,e)},i.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,i=t.children,o=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return r.default.createElement(s.Provider,{value:null},"function"==typeof i?i(e,o):r.default.cloneElement(r.default.Children.only(i),o))},t}(r.default.Component);function h(){}p.contextType=s,p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},p.UNMOUNTED=l,p.EXITED=c,p.ENTERING=u,p.ENTERED=d,p.EXITING=f;var m=e.i(20660);function g(e,t){var n=Object.create(null);return e&&r.Children.map(e,function(e){return e}
1).forEach(function(e){n[e.key]=t&&(0,r.isValidElement)(e)?t(e):e}),n}function v(e,t,r){return null!=r[t]?r[t]:e.props[t]}var w=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},b=function(e){function t(t,r){var n=e.call(this,t,r)||this,i=n.handleExited.bind(function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}o(t,e);var i=t.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,i,o=t.children,a=t.handleExited;return{children:t.firstRender?g(e.children,function(t){return(0,r.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:v(t,"appear",e),enter:v(t,"enter",e),exit:v(t,"exit",e)})}):(Object.keys(i=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var l in t){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];s[i[l][n]]=r(c)}s[l]=r(l)}for(n=0;n<o.length;n++)s[o[n]]=r(o[n]);return s}(o,n=g(e.children))).forEach(function(t){var s=i[t];if((0,r.isValidElement)(s)){var l=t in o,c=t in n,u=o[t],d=(0,r.isValidElement)(u)&&!u.props.in;c&&(!l||d)?i[t]=(0,r.cloneElement)(s,{onExited:a.bind(null,s),in:!0,exit:v(s,"exit",e),enter:v(s,"enter",e)}):c||!l||d?c&&l&&(0,r.isValidElement)(u)&&(i[t]=(0,r.cloneElement)(s,{onExited:a.bind(null,s),in:u.props.in,exit:v(s,"exit",e),enter:v(s,"enter",e)})):i[t]=(0,r.cloneElement)(s,{in:!1})}}),i),firstRender:!1}},i.handleExited=function(e,t){var r=g(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,m.default)({},t.children);return delete r[e.key],{children:r}}))},i.render=function(){var e=this.props,t=e.component,i=e.childFactory,o=(0,n.default)(e,["component","childFactory"]),a=this.state.contextValue,l=w(this.state.children).map(i);return(delete o.appear,delete o.enter,delete o.exit,null===t)?r.default.createElement(s.Provider,{value:a},l):r.default.createElement(s.Provider,{value:a},r.default.createElement(t,o,l))},t}(r.default.Component);b.propTypes={},b.defaultProps={component:"div",childFactory:function(e){return e}};var y=e.i(296748),x=e.i(110774),S=e.i(134332),_=e.i(56262),E=e.i(485411),C=e.i(803568),k=e.i(57724),P=e.i(255304),j=e.i(439291),R=e.i(592512);let T=e=>(e+1)%1e6;var I=e.i(577424),O=e.i(749933);let A=["bottom-center","bottom-left","bottom-right","top-center","top-left","top-right"],M={left:"translateX(-100%)",right:"translateX(100%)","top-center":"translateY(-100%)","bottom-center":"translateY(100%)"},L={left:"translateX(0)",right:"translateX(0)","top-center":"translateY(0)","bottom-center":"translateY(0)"};var N=e.i(72469);let $=(0,r.forwardRef)(({data:e,onHide:n,autoClose:i,...o},a)=>{var s;let{autoClose:l,message:c,...u}=e,d="number"==typeof(s=e.autoClose)?s:!1!==s&&!1!==i&&i,f=(0,r.useRef)(-1),p=()=>window.clearTimeout(f.current),h=()=>{n(e.id),p()},m=()=>{"number"==typeof d&&(f.current=window.setTimeout(h,d))};return(0,r.useEffect)(()=>{e.onOpen?.(e)},[]),(0,r.useEffect)(()=>(m(),p),[d]),(0,t.jsx)(N.Notification,{...o,...u,onClose:h,ref:a,onMouseEnter:p,onMouseLeave:m,children:c})});$.displayName="@mantine/notifications/NotificationContainer";var D={root:"m_b37d9ac7",notification:"m_5ed0edd0"},W=e.i(231832);let B={position:"bottom-right",autoClose:4e3,transitionDuration:250,containerWidth:440,notificationMaxHeight:200,limit:5,zIndex:(0,y.getDefaultZIndex)("overlay"),store:W.notificationsStore,withinPortal:!0},U=(0,x.createVarsResolver)((e,{zIndex:t,containerWidth:r})=>({root:{"--notifications-z-index":t?.toString(),"--notifications-container-width":(0,S.rem)(r)}})),z=(0,_.factory)((e,n)=>{var i;let o=(0,E.useProps)("Notifications",B,e),{classNames:a,className:s,style:l,styles:c,unstyled:u,vars:d,position:f,autoClose:h,transitionDuration:m,containerWidth:g,notificationMaxHeight:v,limit:w,zIndex:y,store:x,portalProps:S,withinPortal:_,...N}=o,z=(0,C.useMantineTheme)(),F=(0,W.useNotifications)(x),V=function(){let[,e]=(0,r.useReducer)(T,0);return e}(),H=(0,I.useReducedMotion)(),q=(0,r.useRef)({}),G=(0,r.useRef)(0),Y=z.respectReducedMotion&&H?1:m,K=(0,k.useStyles)({name:"Notifications",classes:D,props:o,className:s,style:l,classNames:a,styles:c,unstyled:u,vars:d,varsResolver:U});(0,r.useEffect)(()=>{x?.updateState(e=>({...e,limit:w||5,defaultPosition:f}))},[w,f]),(0,O.useDidUpdate)(()=>{F.notifications.length>G.current&&setTimeout(()=>V(),0),G.current=F.notifications.length},[F.notifications]);let J=(i=F.notifications,i.reduce((e,t)=>
1(e[t.position||f].push(t),e),A.reduce((e,t)=>(e[t]=[],e),{}))),X=A.reduce((e,r)=>(e[r]=J[r].map(({style:e,...n})=>(0,t.jsx)(p,{timeout:Y,onEnter:()=>q.current[n.id].offsetHeight,nodeRef:{current:q.current[n.id]},children:i=>(0,t.jsx)($,{ref:e=>{e&&(q.current[n.id]=e)},data:n,onHide:e=>(0,W.hideNotification)(e,x),autoClose:h,...K("notification",{style:{...function({state:e,maxHeight:t,position:r,transitionDuration:n}){let[i,o]=r.split("-"),a="center"===o?`${i}-center`:o,s={opacity:0,maxHeight:t,transform:M[a],transitionDuration:`${n}ms, ${n}ms, ${n}ms`,transitionTimingFunction:"cubic-bezier(.51,.3,0,1.21), cubic-bezier(.51,.3,0,1.21), linear",transitionProperty:"opacity, transform, max-height"},l={opacity:1,transform:L[a]},c={opacity:0,maxHeight:0,transform:M[a]};return{...s,...{entering:l,entered:l,exiting:c,exited:c}[e]}}({state:i,position:r,transitionDuration:Y,maxHeight:v}),...e}})})},n.id)),e),{});return(0,t.jsxs)(P.OptionalPortal,{withinPortal:_,...S,children:[(0,t.jsx)(j.Box,{...K("root"),"data-position":"top-center",ref:n,...N,children:(0,t.jsx)(b,{children:X["top-center"]})}),(0,t.jsx)(j.Box,{...K("root"),"data-position":"top-left",...N,children:(0,t.jsx)(b,{children:X["top-left"]})}),(0,t.jsx)(j.Box,{...K("root",{className:R.RemoveScroll.classNames.fullWidth}),"data-position":"top-right",...N,children:(0,t.jsx)(b,{children:X["top-right"]})}),(0,t.jsx)(j.Box,{...K("root",{className:R.RemoveScroll.classNames.fullWidth}),"data-position":"bottom-right",...N,children:(0,t.jsx)(b,{children:X["bottom-right"]})}),(0,t.jsx)(j.Box,{...K("root"),"data-position":"bottom-left",...N,children:(0,t.jsx)(b,{children:X["bottom-left"]})}),(0,t.jsx)(j.Box,{...K("root"),"data-position":"bottom-center",...N,children:(0,t.jsx)(b,{children:X["bottom-center"]})})]})});z.classes=D,z.displayName="@mantine/notifications/Notifications",z.show=W.notifications.show,z.hide=W.notifications.hide,z.update=W.notifications.update,z.clean=W.notifications.clean,z.cleanQueue=W.notifications.cleanQueue,z.updateState=W.notifications.updateState,e.s(["Notifications",0,z],322755)},808950,e=>{"use strict";let t=(0,e.i(496887).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",0,t])},185937,e=>{"use strict";var t=e.i(496887);e.s(["useConstant",0,function(e){let r=(0,t.useRef)(null);return null===r.current&&(r.current=e()),r.current}])},617413,e=>{"use strict";e.s(["resolveTransition",0,function(e,t){if(e?.inherit&&t){let{inherit:r,...n}=e;return{...t,...n}}return e}])},709569,e=>{"use strict";var t=e.i(10553),r=e.i(497965);e.s(["default",0,function({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}])},222225,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},769500,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return u},htmlEscapeJsonString:function(){return c}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,s={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function c(e){return e.replace(a,e=>o[e])}function u(e){return e.replace(l,e=>s[e])}},605058,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return w}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(665568),a=e.r(195783),s=e.r(497965),l=o._(e.r(116435)),c=a._(e.r(496887)),u=e.r(952853),d=e.r(865742),f=e.r(222225),p=e.r(769500),h=new Map,m=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:a="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,f=r||t;if(f&&m.has(f))return;if(h.has(t)){m.add(f),h.get(t).then(n,c);return}let p=()=>{i&&i(),m.add(f)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});o?(g.innerHTML=o.__html||"",p()):a?(g.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",p()):t&&(g.src=t,h.set(t,v)),(0,d.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(g)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}):g(e)}function w(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function b(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:a,stylesheets:d,...h}=e,{updateScripts:v,scripts:w,getIsSsr:b,appDir:y,nonce:x}=(0,c.useContext)(u.HeadManagerContext);x=h.nonce||x;let S=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;S.current||(i&&e&&m.has(e)&&i(),S.current=!0)},[i,t,r]);let _=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!_.current){if("afterInteractive"===o)g(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}));_.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(v?(w[o]=(w[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:a,...h,nonce:x}]),v(w)):b&&b()?m.add(t||r):b&&!b()&&g({...e,nonce:x})),y){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:x,crossOrigin:h.crossOrigin}:{as:"script",nonce:x,crossOrigin:h.crossOrigin}),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([r,{...h,id:t}]))})`}});"afterInteractive"===o&&r&&l.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:x,crossOrigin:h.crossOrigin}:{as:"script",nonce:x,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let y=b;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},849634,(e,t,r)=>{"use strict";var n=e.r(496887).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;r.c=function(e){return n.H.useMemoCache(e)}},948830,(e,t,r)=>{"use strict";t.exports=e.r(849634)},308850,e=>{"use strict";var t=e.i(497965),r=e.i(948830);"u">typeof registration&®istration.scope;var n=class{promise;resolve;reject;
1constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};let i=(e,t)=>new Promise(r=>{let n=new MessageChannel;n.port1.onmessage=e=>{r(e.data)},e.postMessage(t,[n.port2])});var o=class{type;target;sw;originalEvent;isExternal;constructor(e,t){this.type=e,Object.assign(this,t)}},a=class{_eventListenerRegistry=new Map;addEventListener(e,t){this._getEventListenersByType(e).add(t)}removeEventListener(e,t){this._getEventListenersByType(e).delete(t)}dispatchEvent(e){for(let t of(e.target=this,this._getEventListenersByType(e.type)))t(e)}_getEventListenersByType(e){return this._eventListenerRegistry.has(e)||this._eventListenerRegistry.set(e,new Set),this._eventListenerRegistry.get(e)}};function s(e,t){let{href:r}=location;return new URL(e,r).href===new URL(t,r).href}let l={type:"SKIP_WAITING"};var c=class extends a{_scriptURL;_registerOptions={};_updateFoundCount=0;_swDeferred=new n;_activeDeferred=new n;_controllingDeferred=new n;_registrationTime=0;_isUpdate;_compatibleControllingSW;_registration;_sw;_ownSWs=new Set;_externalSW;_waitingTimeout;constructor(e,t={}){super(),this._scriptURL=e,this._registerOptions=t,navigator.serviceWorker.addEventListener("message",this._onMessage)}async register({immediate:e=!1}={}){e||"complete"===document.readyState||await new Promise(e=>window.addEventListener("load",e)),this._isUpdate=!!navigator.serviceWorker.controller,this._compatibleControllingSW=this._getControllingSWIfCompatible(),this._registration=await this._registerScript(),this._compatibleControllingSW&&(this._sw=this._compatibleControllingSW,this._activeDeferred.resolve(this._compatibleControllingSW),this._controllingDeferred.resolve(this._compatibleControllingSW),this._compatibleControllingSW.addEventListener("statechange",this._onStateChange,{once:!0}));let t=this._registration.waiting;return t&&s(t.scriptURL,this._scriptURL.toString())&&(this._sw=t,Promise.resolve().then(()=>{this.dispatchEvent(new o("waiting",{sw:t,wasWaitingBeforeRegister:!0}))})),this._sw&&(this._swDeferred.resolve(this._sw),this._ownSWs.add(this._sw)),this._registration.addEventListener("updatefound",this._onUpdateFound),navigator.serviceWorker.addEventListener("controllerchange",this._onControllerChange),this._registration}async update(){this._registration&&await this._registration.update()}get active(){return this._activeDeferred.promise}get controlling(){return this._controllingDeferred.promise}getSW(){return void 0!==this._sw?Promise.resolve(this._sw):this._swDeferred.promise}
1async messageSW(e){return i(await this.getSW(),e)}messageSkipWaiting(){this._registration?.waiting&&i(this._registration.waiting,l)}_getControllingSWIfCompatible(){let e=navigator.serviceWorker.controller;if(e&&s(e.scriptURL,this._scriptURL.toString()))return e}async _registerScript(){try{let e=await navigator.serviceWorker.register(this._scriptURL,this._registerOptions);return this._registrationTime=performance.now(),e}catch(e){throw e}}_onUpdateFound=e=>{let t=this._registration,r=t.installing,n=this._updateFoundCount>0||!s(r.scriptURL,this._scriptURL.toString())||performance.now()>this._registrationTime+6e4;n?(this._externalSW=r,t.removeEventListener("updatefound",this._onUpdateFound)):(this._sw=r,this._ownSWs.add(r),this._swDeferred.resolve(r)),this.dispatchEvent(new o("installing",{sw:r,originalEvent:e,isExternal:n,isUpdate:this._isUpdate})),++this._updateFoundCount,r.addEventListener("statechange",this._onStateChange)};_onStateChange=e=>{let t=this._registration,r=e.target,{state:n}=r,i=r===this._externalSW,a={sw:r,isExternal:i,originalEvent:e};!i&&this._isUpdate&&(a.isUpdate=!0),this.dispatchEvent(new o(n,a)),"installed"===n?this._waitingTimeout=self.setTimeout(()=>{"installed"===n&&t.waiting===r&&this.dispatchEvent(new o("waiting",a))},200):"activating"===n&&(clearTimeout(this._waitingTimeout),i||this._activeDeferred.resolve(r))};_onControllerChange=e=>{let t=this._sw,r=t!==navigator.serviceWorker.controller;this.dispatchEvent(new o("controlling",{isExternal:r,originalEvent:e,sw:t,isUpdate:this._isUpdate})),r||this._controllingDeferred.resolve(t)};_onMessage=async e=>{let{data:t,ports:r,source:n}=e;
1await this.getSW(),this._ownSWs.has(n)&&this.dispatchEvent(new o("message",{data:t,originalEvent:e,ports:r,sw:n}))}},u=e.i(496887);let d=(0,u.createContext)(null);function f(e){let n,i,o,a,s,l,f,h=(0,r.c)(19),{swUrl:m,disable:g,register:v,cacheOnNavigation:w,reloadOnOnline:b,options:y,children:x}=e,S=void 0!==g&&g,_=void 0===v||v,E=void 0===w||w,C=void 0===b||b;h[0]!==S||h[1]!==y||h[2]!==_||h[3]!==m?(n=()=>{if("u"<typeof window||S)return null;let e=y?.scope||"/";if(!(window.serwist&&window.serwist instanceof c)&&"serviceWorker"in navigator){let t,r;window.serwist=new c(m,{...y,scope:e,type:y?.type||"module"}),_&&(t=new URL(e,document.baseURI),r=new URL("./",t.href).pathname,location.pathname.startsWith(r))&&window.serwist.register()}return window.serwist??null},h[0]=S,h[1]=y,h[2]=_,h[3]=m,h[4]=n):n=h[4];let[k]=(0,u.useState)(n);h[5]!==E||h[6]!==k?(i=()=>{let e=async e=>{window.navigator.onLine&&e&&k?.messageSW({type:"CACHE_URLS",payload:{urlsToCache:[e]}})},t=()=>e(window.location.pathname),r=history.pushState,n=history.replaceState;return E&&(history.pushState=(...t)=>{r.apply(history,t),e(t[2])},history.replaceState=(...t)=>{n.apply(history,t),e(t[2])},window.addEventListener("online",t)),()=>{history.pushState=r,history.replaceState=n,window.removeEventListener("online",t)}},h[5]=E,h[6]=k,h[7]=i):i=h[7];let P=k?.messageSW;return h[8]!==E||h[9]!==P?(o=[P,E],h[8]=E,h[9]=P,h[10]=o):o=h[10],(0,u.useEffect)(i,o),h[11]!==C?(s=()=>(C&&window.addEventListener("online",p),()=>{window.removeEventListener("online",p)}),a=[C],h[11]=C,h[12]=a,h[13]=s):(a=h[12],s=h[13]),(0,u.useEffect)(s,a),h[14]!==k?(l={serwist:k},h[14]=k,h[15]=l):l=h[15],h[16]!==x||h[17]!==l?(f=(0,t.jsx)(d.Provider,{value:l,children:x}),h[16]=x,h[17]=l,h[18]=f):f=h[18],f}function p(){return location.reload()}e.s(["ServiceWorkerRegistration",0,({children:e})=>(0,t.jsx)(f,{swUrl:"/sw.js",register:!0,reloadOnOnline:!0,children:e})],308850)},266250,e=>{"use strict";var t=e.i(496887).useLayoutEffect;e.s(["default",0,t])},129356,e=>{"use strict";var t=e.i(381022),r=e.i(809850),n=e.i(767707),i=e.i(1564),o=e.i(496887),a=e.i(193540),s=e.i(201711);e.s(["AppBadgeSeenReporter",0,()=>{let e=(0,r.useLogger)(),{currentUserId:l}=(0,a.useAuth)(),c=(0,n.useDocumentVisibility)(),[u]=(0,t.useMutation)(s.AppBadgeSeenReporter_StampSeenDocument),d=(0,o.useRef)(null),f=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(!l||"visible"!==c)return;let t=()=>{if(f.current)return;let t=(0,i.default)(),r=d.current;r?.userId===l&&t.valueOf()-r.atMs<6e4||(f.current=!0,u({variables:{userId:l,seenAt:t.toISOString()}}).then(()=>{d.current={userId:l,atMs:t.valueOf()}}).catch(t=>{e.error("Failed to stamp app badge seen watermark",{error:t})}).finally(()=>{f.current=!1}))};t();let r=window.setInterval(t,6e4);return()=>window.clearInterval(r)},[l,c,u,e]),null}])},718971,e=>{"use strict";var t=e.i(497965),r=e.i(439291),n=e.i(396040);e.s(["AuthModal",0,function({innerProps:e}){return(0,t.jsx)(r.Box,{"data-theme":"next","data-theme-scope-exempt":!0,children:(0,t.jsx)(n.AuthForm,{handleLoginCompletion:e?.handleLoginCompletion})})}])},191451,e=>{"use strict";var t=e.i(497965),r=e.i(809850),n=e.i(351250),i=e.i(496887),o=e.i(566677);let a=[{reason:"firefox-ios-injected-script",scope:"all",test:/__firefox__/},{reason:"chrome-ios-injected-script",scope:"all",test:/__gCrWeb/},{reason:"crypto-wallet-extension",scope:"all",test:/window\.ethereum|\.selectedAddress\b|\bisMetaMask\b|\bevmAsk\b/},{reason:"darkreader-extension",scope:"all",test:/DarkReader/i},{reason:"browser-extension-url",scope:"origin",test:/(?:chrome-extension|moz-extension|safari-web-extension|safari-extension):\/\//i}],s=(...e)=>e.filter(e=>"string"==typeof e).join("\n"),l=({message:e,source:t,stack:r})=>{let n=s(e,t,r),i=s(t,r);for(let e of a){let t="origin"===e.scope?i:n;if(e.test.test(t))return{errorClass:"third_party_injected",errorClassReason:e.reason}}return{errorClass:"first_party"}},c=new Map,u=(e,t)=>{let r=c.get(e);if(!r||t-r.windowStart>=6e4){let n=r&&r.suppressed>0?`Suppressed ${r.suppressed} repeat(s) of an identical client error in the previous 60s`:void 0;if(!(c.size<200)){for(let[e,r]of c)t-r.windowStart>=6e4&&c.delete(e);for(;c.size>=200;){let e=c.keys().next().value;if(void 0===e)break;c.delete(e)}}return c.set(e,{windowStart:t,reported:1,suppressed:0,noticeEmitted:!1}),{report:!0,summary:n}}return r.reported<5?(r.reported+=1,{report:!0}):(r.suppressed+=1,r.noticeEmitted)?{report:!1}:(r.noticeEmitted=!0,{report:!1,summary:"Rate-limiting an identical client error after 5 reports this minute; further repeats this window are suppressed"})};e.s(["ClientLoggerProvider",0,({userId:e,children:a})=>{let s=(0,n.usePathname)(),c=(0,r.useLogger)();return(0,i.useEffect)(()=>{let e=e=>{let{message:t,filename:r,lineno:n,colno:i,error:a}=e,s=(0,o.errorDetails)(a);if(t.includes("ResizeObserver loop")||null==a&&t.startsWith("Script error"))return;let{report:d,summary:f}=u(`error|${t}|${r}|${n}|${i}`,Date.now());f&&c.warn("Client error reporter throttle",{detail:f}),d&&c.error("Uncaught error",{...(0,o.clientErrorContext)(),...s,message:t,source:r,line:n,column:i,stack:s.stack,...l({message:t,source:r,stack:s.stack})})},t=e=>{let t=(0,o.errorDetails)(e.reason),r=t.errorMessage??"Unknown rejection";if(r.includes("Object Not Found Matching Id")&&r.includes("MethodName:")&&r.includes("ParamCount:"))return;let n=t.stack??r,{report:i,summary:a}=u(`rejection|${n.slice(0,300)}`,Date.now());a&&c.warn("Client error reporter throttle",{detail:a}),i&&c.error("Unhandled promise rejection",{...(0,o.clientErrorContext)(),...t,reason:r,stack:t.stack,...l({message:r,stack:t.stack})})};return window.addEventListener("error",e),window.addEventListener("unhandledrejection",t),()=>{window.removeEventListener("error",e),window.removeEventListener("unhandledrejection",t)}},[s,e,c]),(0,t.jsx)(t.Fragment,{children:a})}],191451)},743675,e=>{"use strict";
1var t=e.i(497965),r=e.i(484375),n=e.i(351250),i=e.i(496887),o=e.i(566677),a=e.i(355596);let s="error-reload-attempted";class l extends i.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return(0,n.unstable_rethrow)(e),{hasError:!0}}componentDidCatch(e,t){(0,n.unstable_rethrow)(e);let i=(0,o.errorDetails)(e);r.log.error("ErrorBoundary caught an error",{...(0,o.clientErrorContext)(),...i,error:i.errorMessage,componentStack:t.componentStack}),sessionStorage.getItem(s)||(sessionStorage.setItem(s,"true"),window.location.reload())}handleReturnToApp=async()=>{{if(sessionStorage.removeItem(s),localStorage.clear(),sessionStorage.clear(),"caches"in window)try{let e=await caches.keys();await Promise.all(e.map(e=>caches.delete(e)))}catch(e){r.log.error("Failed to clear caches",{error:e})}let e=Date.now();window.location.href=`/explore?_t=${e}`}};render(){return this.state.hasError?sessionStorage.getItem(s)?(0,t.jsx)(a.ErrorPage,{code:"",title:"Something Went Wrong",message:"We're sorry, but we encountered an unexpected error. Please try again later or contact us if the problem persists.",buttonLabel:"Return to Explore",redirectPath:"/explore",onRedirect:this.handleReturnToApp,showCarousel:!1}):null:this.props.children}}e.s(["ErrorBoundary",0,l])},901010,e=>{e.v({frame:"LeaderLockup-module__B76Mrq__frame",leaderAvatar:"LeaderLockup-module__B76Mrq__leaderAvatar",swayMark:"LeaderLockup-module__B76Mrq__swayMark"})},609099,e=>{e.v({dismissIcon:"StoreBadge-module__7TjJ0a__dismissIcon",root:"StoreBadge-module__7TjJ0a__root"})},610124,e=>{e.v({root:"ContentBox-module__erfSVW__root"})},576773,e=>{e.v({authContent:"Modal-module__mlqmCG__authContent",authHeader:"Modal-module__mlqmCG__authHeader",authInner:"Modal-module__mlqmCG__authInner",body:"Modal-module__mlqmCG__body",close:"Modal-module__mlqmCG__close",compactContent:"Modal-module__mlqmCG__compactContent",compactHeader:"Modal-module__mlqmCG__compactHeader",compactSheetHeader:"Modal-module__mlqmCG__compactSheetHeader",content:"Modal-module__mlqmCG__content",fullBleedContent:"Modal-module__mlqmCG__fullBleedContent",header:"Modal-module__mlqmCG__header",labelOnlyHeader:"Modal-module__mlqmCG__labelOnlyHeader",title:"Modal-module__mlqmCG__title"})},193780,e=>{e.v({root:"Stack-module__E5ZNKa__root"})},374346,e=>{"use strict";var t=e.i(497965),r=e.i(127502),n=e.i(439291),i=e.i(185877),o=e.i(392334),a=e.i(202557),s=e.i(444674),l=e.i(398986),c=e.i(803568),u=e.i(42456),d=e.i(43067),f=e.i(728603),p=e.i(500361),h=e.i(743383),m=e.i(610124),m=m,g=e.i(576773),g=g,v=e.i(193780),v=v;e.s(["ModalDrawer",0,()=>{let{isOpen:e,drawerContent:w,closeDrawer:b}=(0,h.useModalDrawer)(),y=(0,c.useMantineTheme)(),x=(0,u.useMediaQuery)(`(min-width: ${y.breakpoints.sm})`)??!1;if(!w)return null;let S=w.fullBleed??!1,_=w.fullHeight??!1,E=w.authCard??!1,C=w.compactHeader??!1,k=!w.title&&!!w.ariaLabel,P={...g.default,header:(0,f.default)(g.default.header,{[g.default.authHeader]:E,[g.default.compactHeader]:C,[g.default.labelOnlyHeader]:k}),content:(0,f.default)(g.default.content,{[g.default.authContent]:E,[g.default.compactContent]:C,[g.default.fullBleedContent]:S}),inner:(0,f.default)({[g.default.authInner]:E})},j=S?0:C?"lg":"sm",R=(0,t.jsx)(a.Stack,{justify:"space-between",gap:0,classNames:v.default,children:(0,t.jsx)(n.Box,{className:m.default.root,px:j,onWheel:e=>e.stopPropagation(),children:(0,t.jsx)(a.Stack,{gap:S?0:"xs",ta:"left",...E&&{maw:400,mx:"auto",w:"100%"},children:w?.content})})}),T=(0,t.jsx)(a.Stack,{gap:S?0:"xs",ta:"left",px:S?0:"xxs",children:w?.content});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.Modal,{opened:e&&x,onClose:b,title:w?.title?(0,t.jsxs)(a.Stack,{gap:"xxs",children:[(0,t.jsx)(l.Title,{order:C?5:4,fw:C?800:void 0,children:w.title}),w?.subtitle&&(0,t.jsx)(s.Text,{size:C?"sm":"md",c:C?"dimmed":void 0,children:w.subtitle})]}):w?.ariaLabel,size:w?.width||"lg",centered:!E,zIndex:1003,classNames:P,withCloseButton:!!w?.title,styles:{..."string"==typeof w?.width&&w.width.includes("%")?{content:{maxWidth:w.width,width:w.width}}:{},...S?{body:{padding:0}}:{}},overlayProps:{blur:6,zIndex:1002,backgroundOpacity:.85,color:"oklch(96% 0.005 95)"}
1,visibleFrom:"sm",children:R}),(0,t.jsx)(n.Box,{hiddenFrom:"sm",children:(0,t.jsx)(p.BottomSheet,{opened:e&&!x,onClose:b,fullBleed:S,fullHeight:_,authCard:E,ariaLabel:w.ariaLabel,children:(0,t.jsxs)(a.Stack,{gap:"sm",align:"stretch",w:"100%",children:[w?.title&&(0,t.jsxs)(a.Stack,{gap:"xxs",w:"100%",px:"xxs",classNames:{root:(0,f.default)({[g.default.compactSheetHeader]:C})},children:[(0,t.jsxs)(i.Flex,{justify:"space-between",align:"center",w:"100%",children:[(0,t.jsx)(l.Title,{order:C?5:4,fw:C?800:void 0,ta:"left",children:w.title}),(0,t.jsx)(r.ActionIcon,{variant:"subtle",c:"neutral.3",size:"md",onClick:b,children:(0,t.jsx)(d.default,{width:24,height:24,fill:"var(--mantine-color-neutral-3)"})})]}),w?.subtitle&&(0,t.jsx)(s.Text,{size:C?"sm":"md",c:C?"dimmed":void 0,children:w.subtitle})]}),T]})})})]})}],374346)},48241,e=>{"use strict";var t=e.i(809850),r=e.i(351250),n=e.i(496887),i=e.i(149210),o=e.i(834816),a=e.i(680609),s=e.i(628487),l=e.i(740990),c=e.i(50899);(0,a.installAndroidBridgeListener)(),(0,s.installPushNotificationClickListener)();let u="_twa";e.s(["NativeBridgeInit",0,()=>{let e=(0,r.useRouter)(),a=(0,t.useLogger)();return(0,n.useEffect)(()=>{let e=new URLSearchParams(window.location.search);if(!e.has(u))return;e.delete(u);let t=e.toString(),r=window.location.pathname+(t?`?${t}`:"")+window.location.hash;try{window.history.replaceState(window.history.state,"",r)}catch{}},[]),(0,n.useEffect)(()=>{if(!(0,l.isIOSApp)())return;let e=()=>{(0,c.trackScreenshotTaken)({pathname:window.location.pathname})};return window.addEventListener("screenshot-taken",e),()=>{window.removeEventListener("screenshot-taken",e)}},[]),(0,n.useEffect)(()=>{if((0,l.isIOSApp)())return(0,s.subscribePushNotificationClick)(t=>{let r=(0,s.parsePushNotificationClickUrl)(t,window.location.origin);if(null===r)return void a.error("[native-bridge] malformed or unsafe push-notification-click",{detail:t});(0,s.markPushClickNavigated)();let{locale:n}=(0,o.splitLocale)(window.location.pathname);e.push(n!==i.DEFAULT_LOCALE&&(0,o.shouldLocalize)(r)?(0,o.localeRoute)(n,r):r)})},[e,a]),null}])},630706,e=>{"use strict";var t=e.i(785739),r=e.i(809850),n=e.i(496887),i=e.i(193540),o=e.i(201711),a=e.i(998461),s=e.i(570459),l=e.i(346243),c=e.i(856434),u=e.i(87993),d=e.i(300558);let f=e=>e instanceof Error&&e.message.includes("Uniqueness violation");e.s(["NativePushReconciler",0,()=>{let e=(0,r.useLogger)(),p=(0,n.useEffectEvent)((t,r,n)=>{e[t](r,n)}),h=(0,t.useApolloClient)(),{currentUserId:m}=(0,i.useAuth)(),{isAvailable:g,getToken:v,getPermissionState:w}=(0,c.useNativePushBridge)();return(0,n.useEffect)(()=>{if(!g||!m||(0,s.isNativePushSettledFor)(m))return;let e=!1,t=(0,a.legacyClaimEndpointFor)((0,a.parseLegacyNativeRecord)(localStorage.getItem(a.LEGACY_NATIVE_ENDPOINT_KEY)),m),r=()=>{localStorage.removeItem(a.LEGACY_NATIVE_ENDPOINT_KEY)};return(async()=>{let n=await w();if(e)return;if("authorized"!==n&&"provisional"!==n&&"ephemeral"!==n)return void(0,s.settleNativePush)(m);let i=await v();if(e)return;if((0,d.isPushWritesClosed)())return void(0,s.settleNativePush)(m);let a=`fcm://${i}`,c=(0,u.getDeviceId)(),g=e=>{for(let t of e)(0,l.addPushSubscriptionToCache)(h.cache,t)},b=async e=>{let{data:t}=await h.query({query:o.PushNotification_SubscriptionsDocument,fetchPolicy:"network-only"});if(!(t?.pushSubscriptions??[]).some(e=>e.deviceId===c))return p("warn","Device id contested by another account",{endpoint:a.slice(0,20)}),!1;let r=await h.mutate({mutation:o.PushNotification_CollapseRolloutDuplicateDocument,variables:{deviceId:c,deleteEndpoint:e,endpoint:a,p256dhKey:null,authKey:null,userAgent:navigator.userAgent}});return r.data?.deletePushSubscriptions&&(0,l.removeUnkeyedEndpointRowFromCache)(h.cache,e),g(r.data?.updatePushSubscriptions?.returning??[]),p("info","Collapsed rollout-duplicate push rows",{endpoint:a.slice(0,20)}),!0};if(null!==t&&t!==a)try{let n=await h.mutate({mutation:o.PushNotification_MigrateLegacyEndpointDocument,variables:{deviceId:c,legacyEndpoint:t,endpoint:a}});if(e)return;let i=n.data?.updatePushSubscriptions?.returning??[];g(i),i.length>0&&p("info","Migrated legacy push row to rotated token",{endpoint:a.slice(0,20)}),r()}catch(n){if(e||!f(n))throw n;if((0,d.isPushWritesClosed)())return void(0,s.settleNativePush)(m);if(await b(t)&&r(),e)return}try{if((0,d.isPushWritesClosed)())return void(0,s.settleNativePush)(m);let n=await h.mutate({mutation:o.PushNotification_ClaimEndpointRowDocument,variables:{deviceId:c,endpoint:a,p256dhKey:null,authKey:null,userAgent:navigator.userAgent}});if(e)return;
1let i=n.data?.updatePushSubscriptions?.returning??[];if(g(i),i.length>0&&p("info","Claimed push subscription row for install",{endpoint:a.slice(0,20)}),null!==t&&t===a&&r(),(0,d.isPushWritesClosed)())return void(0,s.settleNativePush)(m);let l=await h.mutate({mutation:o.PushNotification_RepairEndpointDocument,variables:{deviceId:c,endpoint:a}});if(e)return;(l.data?.updatePushSubscriptions?.affectedRows??0)>0&&p("info","Repaired rotated FCM token subscription",{endpoint:a.slice(0,20)})}catch(t){if(e||!f(t))throw t;if((0,d.isPushWritesClosed)())return void(0,s.settleNativePush)(m);if(await b(a),e)return}(0,s.settleNativePush)(m)})().catch(t=>{e||(p("error","Native push launch repair failed",{error:t instanceof Error?t.message:"Unknown error"}),(0,s.settleNativePush)(m))}),()=>{e=!0}},[g,m,h,v,w]),null}])},277373,e=>{"use strict";(0,e.i(820430).installHistoryStamping)(),e.s(["NavigationHistoryInit",0,()=>null])},176299,e=>{"use strict";var t=e.i(497965),r=e.i(484375),n=e.i(281159),i=e.i(745913),o=e.i(496887),a=e.i(809850),s=e.i(736952),l=e.i(185877),c=e.i(416694),u=e.i(202557),d=e.i(444674),f=e.i(43067),p=e.i(889721),h=e.i(824066),m=e.i(331107),g=e.i(574025),v=e.i(743383),w=e.i(356170),b=e.i(50899),y=e.i(98686),x=e.i(609099),x=x;let S=({shouldShow:e,onDismiss:r})=>{let i=(0,h.useTranslations)("InstallPromptManager"),{openDrawer:S,
1closeDrawer:_}=(0,v.useModalDrawer)(),{isInstalled:E,installMethod:C,dismissPrompt:k}=function(){let e=(0,a.useLogger)(),t=(0,n.useOs)(),[r,i]=(0,o.useState)(null),[s,l]=(0,o.useState)(!1),[c,u]=(0,w.useLocalStorage)({key:"pwa-install-state",defaultValue:{userChoice:null,hasTriedInstall:!1}}),d="ios"===t,f=(0,o.useRef)(!0),p=(0,o.useCallback)(e=>{u(t=>({...t,...e}))},[u]);(0,o.useEffect)(()=>{f.current=!0;let t=null,r=()=>{if(!f.current)return;let e=window.matchMedia("(display-mode: standalone)").matches,t="standalone"in navigator&&!0===navigator.standalone,r=window.matchMedia("(display-mode: window-controls-overlay)").matches;l(e||t||r)},n=t=>{f.current&&(e.debug("PWA: beforeinstallprompt event fired"),t.preventDefault(),i(t))},o=()=>{f.current&&((0,b.trackEvent)({category:"interaction",action:"pwa_installed"}),i(null),l(!0),p({userChoice:"accepted",hasTriedInstall:!0}))},a=()=>{r()};return r(),window.addEventListener("beforeinstallprompt",n),window.addEventListener("appinstalled",o),(t=window.matchMedia("(display-mode: standalone)")).addEventListener?t.addEventListener("change",a):t.addListener(a),()=>{f.current=!1,window.removeEventListener("beforeinstallprompt",n),window.removeEventListener("appinstalled",o),t&&(t.removeEventListener?t.removeEventListener("change",a):t.removeListener(a))}},[p,e]);let h=(0,o.useCallback)(async()=>{if(e.info("PWA: promptToInstall called",{hasDeferredPrompt:!!r,isMounted:f.current}),!f.current||!r)return void e.warn("PWA: Cannot show prompt - preconditions not met",{isMounted:f.current,hasDeferredPrompt:!!r});try{p({hasTriedInstall:!0}),e.info("PWA: Calling deferredPrompt.prompt()"),await r.prompt(),e.info("PWA: deferredPrompt.prompt() completed, waiting for user choice");let{outcome:t}=await r.userChoice;if(e.info("PWA: User choice received",{outcome:t}),(0,b.trackEvent)({category:"interaction",action:"pwa_prompt_outcome",properties:{outcome:t}}),!f.current)return;p({userChoice:"accepted"===t?"accepted":null,hasTriedInstall:!0}),"accepted"===t&&i(null)}catch(t){if(e.error("Failed to show PWA install prompt",{error:t}),!f.current)return;p({hasTriedInstall:!0,userChoice:null})}},[r,p,e]),m=(0,o.useCallback)(()=>{f.current&&(i(null),p({userChoice:"dismissed",hasTriedInstall:!0}))},[p]),g=r?"browser-prompt":d?"manual-ios":null,v=!s&&(!!r||d);return{isInstallable:v,isInstalled:s,isIOS:d,canShowPrompt:v,promptToInstall:h,dismissPrompt:m,userChoice:c.userChoice,installMethod:g,hasTriedInstall:c.hasTriedInstall}}(),P=(0,a.useLogger)(),j=(0,o.useMemo)(()=>C??"manual",[C]),R=(0,o.useCallback)(()=>{(0,y.recordPWAInstallNeverShow)(),k(),_(),r?.()},[k,_,r]);return(0,o.useEffect)(()=>{if(!e||E)return;P.info("PWA: Opening drawer",{mode:j}),(0,y.recordPWAInstallShown)();let n=(0,t.jsx)(m.TrackedButton,{variant:"subtle",onClick:R,leftSection:(0,t.jsx)(f.default,{className:x.default.dismissIcon}),trackingName:"pwa-prompt-dismiss","aria-label":i("donTShowInstallationPromptAgain"),children:i("donTShowAgain")});S({title:"Install the Sway app!",onClose:()=>{r?.()},content:(0,t.jsxs)(u.Stack,{gap:"md",children:[(0,t.jsx)(d.Text,{size:"md",children:i("getElectionRemindersFasterAccessTo")}),(0,t.jsxs)(c.Group,{gap:16,wrap:"nowrap",justify:"center",children:[(0,t.jsx)(s.Anchor,{href:g.APP_STORE_URL,target:"_blank",rel:"noopener noreferrer",display:"flex",children:(0,t.jsx)(p.default,{src:"/assets/app-store-badge.svg",alt:i("downloadOnTheAppStore"),width:140,height:46,className:x.default.root})}),(0,t.jsx)(s.Anchor,{href:g.PLAY_STORE_URL,target:"_blank",rel:"noopener noreferrer",display:"flex",children:(0,t.jsx)(p.default,{src:"/assets/google-play-badge.svg",alt:i("getItOnGooglePlay"),width:158,height:46,className:x.default.root})})]}),(0,t.jsx)(l.Flex,{justify:"flex-end",children:n})]})})},[e,E,j,S,R,r,P]),null};var _=e.i(374346);let E="pwa-install-trigger";e.s(["PWAInstallManager",0,()=>{let[e,a]=(0,o.useState)(!1),[s,l]=(0,o.useState)(""),c=(0,i.usePathname)(),u=(0,n.useOs)(),d="ios"===u||"android"===u;return((0,o.useEffect)(()=>{if(!d)return;let e=()=>{r.log.info("PWA: Install trigger event received"),a(!0)};return window.addEventListener(E,e),()=>{window.removeEventListener(E,e)}},[d]),s!==c&&(e&&a(!1),l(c)),d)?(0,t.jsxs)(v.ModalDrawerProvider,{children:[(0,t.jsx)(_.ModalDrawer,{}),(0,t.jsx)(S,{shouldShow:e,onDismiss:()=>{a(!1)}})]}):null}],176299)},52766,e=>{"use strict";let t;var r=e.i(757202),n=e.i(496887);let i=[["iabjs://","android-inapp-browser"],["webkit-masked-url://","browser-extension"],["chrome-extension://","browser-extension"],["moz-extension://","browser-extension"],["safari-web-extension://","browser-extension"]],o=[{kind:"firefox-ios",matches:e=>e.includes("__firefox__")},{kind:"ios-inapp-webview",matches:e=>"undefined is not an object (evaluating 'window.webkit.messageHandlers')"===e},{kind:"browser-extension",matches:e=>e.includes("runtime.sendMessage")||e.includes("Extension context invalidated")||e.includes("DarkReader")||e.includes("window.ethereum")},{kind:"resize-observer",matches:e=>e.includes("ResizeObserver loop")}],a=e=>{if("string"!=typeof e)return null;let t=i.find(([t])=>e.startsWith(t));return t?t[1]:null};var s=e.i(610889),l=e.i(934327),c=e.i(845944);function u(e){if(!e)return null;try{let t=new URL(e);for(let e of Array.from(t.searchParams.keys()))e.startsWith("utm_")&&t.searchParams.delete(e);return t.toString()}catch{return e}}e.s(["PostHogInit",0,({trackingBlocked:e=!1})=>((0,n.useEffect)(()=>
1{if((0,s.isCapabilityTokenPath)(window.location.pathname))return;if(e)return void r.default.opt_out_capturing();let n="phc_eawhTNWkc1nkM44649KxgIN3vpVSfxYHLeW1uSc2sM0",i="https://ph.sway.co",d=!!n&&!!i;r.default.init(n||"phc_offline_placeholder",{api_host:i||"http://localhost:0",ui_host:"https://us.posthog.com",advanced_disable_decide:!d,autocapture:d,capture_pageview:"history_change",capture_exceptions:d,disable_session_recording:!d,defaults:"2025-11-30",before_send:e=>{if(!e)return e;let r=e.properties;if(r&&("string"==typeof r.$current_url&&(r.$current_url=(0,l.redactSensitiveUrl)(r.$current_url)),"string"==typeof r.$referrer&&(r.$referrer=(0,l.redactSensitiveUrl)(r.$referrer))),"$exception"===e.event){let t=(e=>{if(!Array.isArray(e))return null;for(let t of e){let e=t?.stacktrace?.frames;if(Array.isArray(e))for(let t of e){let e=a(t?.filename);if(e)return e}}for(let t of e){let e=t?.value;if("string"!=typeof e)continue;let r=o.find(t=>t.matches(e));if(r)return r.kind}return null})(e.properties?.$exception_list);return t&&(e.event="client_exception_noise",e.properties&&(e.properties.noise_kind=t)),e}if("$pageview"===e.event){let r=e.properties?.$current_url,n=t;if(n&&r&&n!==r&&u(n)===u(r))return t=r,null;t=r}return e},session_recording:{maskAllInputs:!0,maskInputFn:(e,t)=>t?.closest(".ph-mask-input")?"*".repeat(e.length):t?.closest(".ph-show-input")?e:"*".repeat(e.length),maskTextSelector:".ph-mask-text"},loaded:c.markPostHogReady})},[e]),null)],52766)},905622,e=>{"use strict";var t=e.i(497965),r=e.i(839007);e.s(["QRCodeShareModal",0,({innerProps:e})=>(0,t.jsx)(r.QRCodeShareContent,{...e})])},148804,e=>{"use strict";var t=e.i(809850),r=e.i(496887),n=e.i(668002),i=e.i(59730),o=e.i(453948);let a=["returnUrl","returnTo"];e.s(["ReferralUrlHandler",0,()=>{let{pathname:e,searchParams:s}=(0,n.useCurrentUrl)(),{captureReferrer:l,currentProfileSlug:c}=(0,o.useReferral)(),u=(0,t.useLogger)(),d=(0,r.useRef)(null),f=e?.split("/").filter(Boolean)??[],p="g"===f[0]&&f.length>2&&"party"!==f[2],h=1===f.length&&"login"===f[0],m=s.get("ref"),g=p?f[1]:void 0,v=p?m?{referrerSlug:m,groupSlug:g,source:"group",attributionMethod:"explicit_ref"}:null:h?function(e){let t,r=e.get("ref");if(r)return{referrerSlug:r,source:"profile",attributionMethod:"explicit_ref"};let n=a.map(t=>e.get(t)).find(e=>!!e);if(!n)return null;try{t=new URL(n,"http://placeholder")}catch{return null}if("/voter-guide"!==t.pathname)return null;let i=t.searchParams.get("ref");if(!i)return null;let o=(t.searchParams.get("j")??"").split(",").map(e=>e.trim()).filter(Boolean);return{referrerSlug:i,groupSlug:1===o.length?o[0]:void 0,source:"voter_guide",attributionMethod:"explicit_ref"}}(s):null,w=v?`${v.referrerSlug}|${v.groupSlug??""}`:null;return(0,r.useLayoutEffect)(()=>{v&&w&&w!==d.current&&(0,i.isValidSlug)(v.referrerSlug)&&v.referrerSlug!==c&&(d.current=w,l(v))},[v,w,c,l]),(0,r.useEffect)(()=>{if(p&&c&&e&&m!==c)try{let e=new URL(window.location.href);e.searchParams.set("ref",c),window.history.replaceState({},"",e.toString())}catch(e){u.error("Failed to update URL with referrer slug",{error:e})}},[p,c,m,e,u]),null}],148804)},837117,e=>{"use strict";var t=e.i(497965),r=e.i(1564),n=e.i(496887);let i=(0,n.createContext)(null);e.s(["RequestNowContext",0,i,"RequestNowProvider",0,({now:e,children:o})=>{let[a,s]=(0,n.useState)(e);return(0,n.useEffect)(()=>{let t=(0,r.default)(e).diff((0,r.default)()),n=setInterval(()=>s((0,r.default)().add(t,"ms").toDate()),6e4);return()=>clearInterval(n)},[e]),(0,t.jsx)(i.Provider,{value:a,children:o})}])},519742,e=>{"use strict";var t=e.i(497965),r=e.i(736952),n=e.i(444674),i=e.i(343623),o=e.i(496887),a=e.i(574025),s=e.i(740990);let l="sway-twa-update-shown";e.s(["TwaUpdateBanner",0,()=>((0,o.useEffect)(()=>{if((0,s.isTwaNeedsUpdate)()){try{if("1"===window.sessionStorage.getItem(l))return;window.sessionStorage.setItem(l,"1")}catch{}(0,i.showToast)({id:"twa-update-available",title:"Update the Sway app",message:(0,t.jsxs)(n.Text,{size:"sm",children:["A newer version of the Sway Android app is available."," ",(0,t.jsx)(r.Anchor,{href:a.PLAY_STORE_URL,target:"_blank",rel:"noopener noreferrer",children:"Get it on Google Play"}),"."]}),color:"blue",autoClose:!1,withCloseButton:!0})}},[]),null)])},770382,e=>{"use strict";
1var t=e.i(497965),r=e.i(437866),n=e.i(496887),i=e.i(351250);function o(){return"u">typeof window}function a(){return"production"}function s(){return"development"===((o()?window.vam:a())||"production")}function l(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function c(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function u(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0},t){var r;if(!o())return;let{beforeSend:n,src:i,dataset:l}=function(e,t){var r,n;let i=e;if(t)try{i={...null==(r=JSON.parse(t))?void 0:r.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=a();return}window.vam=e}(i.mode);let o={sdkn:"@vercel/analytics"+(i.framework?`/${i.framework}`:""),sdkv:"2.0.1"};return i.disableAutoTrack&&(o.disableAutoTrack="1"),i.viewEndpoint&&(o.viewEndpoint=c(i.viewEndpoint)),i.eventEndpoint&&(o.eventEndpoint=c(i.eventEndpoint)),i.sessionEndpoint&&(o.sessionEndpoint=c(i.sessionEndpoint)),s()&&!1===i.debug&&(o.debug="false"),i.dsn&&(o.dsn=i.dsn),i.endpoint?o.endpoint=i.endpoint:i.basePath&&(o.endpoint=c(`${i.basePath}/insights`)),{beforeSend:i.beforeSend,src:(n=i).scriptSrc?c(n.scriptSrc):s()?"https://va.vercel-scripts.com/v1/script.debug.js":n.basePath?c(`${n.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:o}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),n&&(null==(r=window.va)||r.call(window,"beforeSend",n)),document.head.querySelector(`script[src*="${i}"]`))return;let u=document.createElement("script");for(let[e,t]of(u.src=i,Object.entries(l)))u.dataset[e]=t;u.defer=!0,u.onerror=()=>{let e=s()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${i}. ${e}`)},document.head.appendChild(u)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var r;null==(r=window.va)||r.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null}function d(e){let t,o,a,{route:s,path:c}=(t=(0,i.useParams)(),o=(0,i.useSearchParams)(),a=(0,i.usePathname)(),t?{route:function(e,t){if(!e||!t)return e;let r=e;try{let e=Object.entries(t);for(let[t,n]of e)if(!Array.isArray(n)){let e=l(n);e.test(r)&&(r=r.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=l(n.join("/"));e.test(r)&&(r=r.replace(e,`/[...${t}]`))}return r}catch{return e}}(a,Object.keys(t).length?t:Object.fromEntries(o.entries())),path:a}:{route:null,path:a});return n.default.createElement(u,{path:c,route:s,...e,basePath:function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
1(),configString:function(){if(void 0!==r.default&&void 0!==r.default.env)return'{"analytics":{"scriptSrc":"b613e90604b7dcf9/script.js","viewEndpoint":"b613e90604b7dcf9/view","eventEndpoint":"b613e90604b7dcf9/event","sessionEndpoint":"b613e90604b7dcf9/session"},"speedInsights":{"scriptSrc":"3a8bc8dcfdcdf4be/script.js","endpoint":"3a8bc8dcfdcdf4be/vitals"}}'}(),framework:"next"})}function f(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(d,{...e}))}var p=e.i(610889),h=e.i(934327);e.s(["VercelAnalytics",0,()=>{let e=(0,i.usePathname)();return(0,p.isCapabilityTokenPath)(e)?null:(0,t.jsx)(f,{beforeSend:e=>({...e,url:(0,h.redactSensitiveUrl)(e.url)??e.url})})}],770382)},656734,e=>{"use strict";var t=e.i(497965),r=e.i(437866),n=e.i(496887),i=e.i(351250);function o(){return false}function a(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function s(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function l(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!t.current){let n=function(e={},t){var r;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){window.siq=window.siq||[],window.siq.push(e)});let{beforeSend:n,src:i,dataset:a}=function(e,t){var r,n;let i=e;if(t)try{i={...null==(r=JSON.parse(t))?void 0:r.speedInsights,...e}}catch{}let a={sdkn:"@vercel/speed-insights"+(i.framework?`/${i.framework}`:""),sdkv:"2.0.0"};return i.sampleRate&&(a.sampleRate=i.sampleRate.toString()),i.route&&(a.route=i.route),o()&&!1===i.debug&&(a.debug="false"),i.dsn&&(a.dsn=i.dsn),i.endpoint?a.endpoint=s(i.endpoint):i.basePath&&(a.endpoint=s(`${i.basePath}/speed-insights/vitals`)),{src:(n=i).scriptSrc?s(n.scriptSrc):o()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":n.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":n.basePath?s(`${n.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js",beforeSend:i.beforeSend,dataset:a}}(e,t);if(document.head.querySelector(`script[src*="${i}"]`))return null;n&&(null==(r=window.si)||r.call(window,"beforeSend",n));let l=document.createElement("script");for(let[e,t]of(l.src=i,l.defer=!0,Object.entries(a)))l.dataset[e]=t;return l.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${i}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(l),{setRoute:e=>{l.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e},e.configString??function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}());n&&(t.current=n.setRoute)}},[e]),(0,n.useEffect)(()=>{t.current&&e.route&&t.current(e.route)},[e.route]),null}function c(e){let t=(()=>{let e=(0,i.useParams)(),t=(0,i.useSearchParams)()||new URLSearchParams,r=(0,i.usePathname)();if(!e)return null;let n=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!n)return r;let o=r;try{let e=Object.entries(n);for(let[t,r]of e)if(!Array.isArray(r)){let e=a(r);e.test(o)&&(o=o.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=a(r.join("/"));e.test(o)&&(o=o.replace(e,`/[...${t}]`))}return o}catch{return r}})();return n.default.createElement(l,{route:t,...e,framework:"next",basePath:function(){if(void 0!==r.default&&void 0!==r.default.env)return r.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
1(),configString:function(){if(void 0!==r.default&&void 0!==r.default.env)return'{"analytics":{"scriptSrc":"b613e90604b7dcf9/script.js","viewEndpoint":"b613e90604b7dcf9/view","eventEndpoint":"b613e90604b7dcf9/event","sessionEndpoint":"b613e90604b7dcf9/session"},"speedInsights":{"scriptSrc":"3a8bc8dcfdcdf4be/script.js","endpoint":"3a8bc8dcfdcdf4be/vitals"}}'}()})}function u(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(c,{...e}))}var d=e.i(934327);e.s(["VercelSpeedInsights",0,()=>(0,t.jsx)(u,{beforeSend:e=>({...e,url:(0,d.redactSensitiveUrl)(e.url)??e.url})})],656734)},525589,e=>{"use strict";var t=e.i(497965),r=e.i(558503);e.s(["VoterVerificationModal",0,function({innerProps:e}){return(0,t.jsx)(r.VoterVerificationForm,{hideTitle:!0,personId:e?.personId||"",onVerificationSuccess:e?.onVerificationSuccess})}])},574025,e=>{"use strict";e.s(["APP_STORE_URL",0,"https://apps.apple.com/us/app/sway-vote-together/id6756804681","PLAY_STORE_URL",0,"https://play.google.com/store/apps/details?id=co.sway.www"])},479488,e=>{"use strict";var t=e.i(497965),r=e.i(368715),n=e.i(542422);e.s(["ApolloClientProvider",0,({children:e})=>(0,t.jsx)(r.ApolloNextAppProvider,{makeClient:n.getClient,children:e})])},828726,e=>{"use strict";var t,r=e.i(497965),n=e.i(496887),i=((t=i||{}).PRIMARY="primary",t.SECONDARY="secondary",t.TERTIARY="tertiary",t);let o=(0,n.createContext)(void 0);e.s(["FooterProvider",0,({children:e})=>{let[t,i]=(0,n.useState)({}),[a,s]=(0,n.useState)({}),[l,c]=(0,n.useState)({}),[u,d]=(0,n.useState)({}
1),[f,p]=(0,n.useState)("primary"),[h,m]=(0,n.useState)(null),[g,v]=(0,n.useState)(null),w=(0,n.useCallback)(e=>{i(e)},[]),b=(0,n.useCallback)(e=>{s(e)},[]),y=(0,n.useCallback)(e=>{c(e)},[]),x=(0,n.useCallback)(e=>{d(e)},[]),S=(0,n.useCallback)(e=>{p(e)},[]),_=(0,n.useCallback)(e=>{m(e)},[]),E=(0,n.useCallback)(e=>{v(e)},[]),C=void 0!==t.children&&null!==t.children||void 0!==a.children&&null!==a.children||void 0!==l.children&&null!==l.children,k=(0,n.useCallback)(()=>{w({})},[w]),P=(0,n.useCallback)(()=>{b({})},[b]),j=(0,n.useCallback)(()=>{y({})},[y]),R=(0,n.useCallback)(()=>{x({})},[x]),T=(0,n.useCallback)(()=>{w({}),b({}),y({}),x({}),S("primary"),_(null),E(null)},[w,b,y,x,S,_,E]);return(0,r.jsx)(o.Provider,{value:{buttonPrimaryProps:t,buttonSecondaryProps:a,buttonTertiaryProps:l,islandProps:u,hasFooterActions:C,footerSetting:f,sidebarHeading:h,sidebarDescription:g,setButtonPrimaryProps:w,setButtonSecondaryProps:b,setButtonTertiaryProps:y,setIslandProps:x,setFooterSetting:S,setSidebarHeading:_,setSidebarDescription:E,clearButtonPrimaryProps:k,clearButtonSecondaryProps:P,clearButtonTertiaryProps:j,clearIslandProps:R,clearAllFooterProps:T},children:e})},"FooterSetting",()=>i,"useFooter",0,()=>{let e=(0,n.useContext)(o);if(void 0===e)throw Error("useFooter must be used within a FooterProvider");return e}])},320384,e=>{"use strict";var t=e.i(497965),r=e.i(496887),n=e.i(439291),i=e.i(202557),o=e.i(444674),a=e.i(889721),s=e.i(824066),l=e.i(352881),c=e.i(331107),u=e.i(302121),d=e.i(743383),f=e.i(901010),f=f;let p=({infoModalData:e,isIssuePage:p})=>{let h=(0,s.useTranslations)("InfoModal"),{closeDrawer:m,updateDrawer:g}=(0,d.useModalDrawer)(),[v,w]=(0,r.useState)(0);(0,r.useEffect)(()=>{p&&g({title:(e=>{switch(e){case 1:return"More about the Sway Page";case 2:return"What's next?";default:return"What is Sway?"}})(v)})},[v,p,g]);let b=e=>{w(e)};return(0,t.jsxs)(i.Stack,{gap:"sm",align:"center",children:[p&&e?.leaderPhotoUrl&&(0,t.jsxs)(n.Box,{pos:"relative",w:70,h:60,className:f.default.frame,children:[(0,t.jsx)(a.default,{src:"/assets/blackcurrant-logo.svg",alt:h("sway"),width:50,height:50,className:f.default.swayMark}),(0,t.jsx)(l.ProfileAvatar,{profilePhotoUrl:e.leaderPhotoUrl,displayName:e.leaderName,size:60,isPublicProfile:!0,className:f.default.leaderAvatar})]}),p?(0,t.jsxs)(i.Stack,{gap:"sm",align:"center",children:[0===v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Text,{size:"md",children:["Sway is a new network for political influence. You can help"," ",(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:e?.leaderName})," ","make an impact on"," ",(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:e?.issueTitle})," ",'simply by clicking the "Vote with Me" button on this Sway Page.']}),(0,t.jsx)(c.TrackedButton,{fullWidth:!0,mt:"sm",variant:"secondary",onClick:()=>b(1),trackingName:"info_modal_continue_step_0_click",children:h("continue")})]}),1===v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Text,{size:"md",children:["The Sway Page has three main sections. The first shares more about ",e?.leaderName,"'s topic and why it matters. The second shares where the topic is relevant. The last section contains the ballot items that"," ",e?.leaderName," will be making recommendations for."]}),(0,t.jsx)(c.TrackedButton,{fullWidth:!0,mt:"sm",variant:"secondary",onClick:()=>b(2),trackingName:"info_modal_continue_step_1_click",children:h("continue2")})]}),2===v&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o.Text,{size:"md",children:["If you support ",e?.leaderName," on"," ",e?.issueTitle,', click the "Vote with Me" button. After, you\'ll be asked to'," ",(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:"verify your voter registration"}),". This allows ",e?.leaderName," to more effectively advocate for both of you. Plus, you'll receive a"," ",(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:"personalized ballot guide"})," ","to make voting easier before the next election."]}),(0,t.jsx)(c.TrackedButton,{fullWidth:!0,mt:"sm",variant:"secondary",onClick:()=>{w(0),m()},trackingName:"info_modal_finish_click",children:h("letSGo")})]}),(0,t.jsxs)(o.Text,{size:"sm",c:"neutral.6",fw:500,children:[v+1,"/3"]})]}):(0,t.jsxs)(i.Stack,{gap:"sm",children:[(0,t.jsx)(o.Text,{size:"md",children:h("swayIsAFreeAppWhere")}),(0,t.jsxs)("ul",{style:{margin:0,paddingLeft:"1.2rem"},children:[(0,t.jsx)("li",{children:(0,t.jsxs)(o.Text,{size:"md",component:"span",children:[(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:"Join a group"})," ","led by someone you trust"]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(o.Text,{size:"md",component:"span",children:[(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:"Get a personalized ballot"}),", with recommendations from your groups"]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(o.Text,{size:"md",component:"span",children:[(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:"Recruit friends"})," ","to help elect candidates you like"]})}),(0,t.jsx)("li",{children:(0,t.jsxs)(o.Text,{size:"md",component:"span",children:[(0,t.jsx)(o.Text,{component:"span",fw:"bold",children:"Vote as a team."})," ","Bigger groups have more power."]})})]}),(0,t.jsxs)(o.Text,{size:"md",children:[h("freeNoAdsYourDataStays")," ",(0,t.jsx)(u.TrackedLink,{href:"/info",trackingName:"info_modal_learn_more_click",children:h("learnMore")})," ",h("orSeeOur")," ",(0,t.jsx)(u.TrackedLink,{href:"/faq",trackingName:"info_modal_faq_click",children:h("faq")}),"."]})]})]})};var h=e.i(73449);let m=(0,r.createContext)(void 0);e.s(["HeaderProvider",0,({children:e})=>{let[n,i]=(0,r.useState)(),[o,a]=(0,r.useState)(null),[s,l]=(0,r.useState)(null),[c,u]=(0,r.useState)(null),[f,g]=(0,r.useState)(!1),{openDrawer:v}=(0,d.useModalDrawer)(),w=(0,r.useCallback)((e,r=!1)=>{let o=e??n;e&&i(e),v({title:"What is Sway?",content:(0,t.jsx)(p,{infoModalData:o,isIssuePage:r})})},[n,v]),b=(0,r.useCallback)(e=>w(void 0,e),[w]),y=(0,r.useCallback)(e=>{e&&i(e);
1try{let t=localStorage.getItem(h.INFO_MODAL_TRACKER_KEY),r=t?JSON.parse(t):{count:0,lastShown:0},n=Date.now();if(r.count>=3||n-r.lastShown<72e5)return;w(e,!0),localStorage.setItem(h.INFO_MODAL_TRACKER_KEY,JSON.stringify({count:r.count+1,lastShown:n}))}catch{w(e,!0)}},[w]),x=(0,r.useCallback)(e=>{a(()=>e)},[]),S=(0,r.useCallback)(e=>{l(()=>e)},[]),_=(0,r.useCallback)(e=>{u(()=>e)},[]),E=(0,r.useMemo)(()=>({infoModalData:n,setInfoModalData:i,openInfoModal:b,openInfoModalIfAllowed:y,shareAction:o,setShareAction:x,backAction:s,setBackAction:S,joinAction:c,setJoinAction:_,isJoinPending:f,setIsJoinPending:g}),[n,b,y,o,x,s,S,c,_,f]);return(0,t.jsx)(m.Provider,{value:E,children:e})},"useHeader",0,()=>{let e=(0,r.useContext)(m);if(!e)throw Error("useHeader must be used within HeaderProvider");return e}],320384)},223368,e=>{"use strict";var t=e.i(497965);function r(e){return"auto"===e||"dark"===e||"light"===e}var n=e.i(665673),i=e.i(98869),o=e.i(389819),a=e.i(134332),s=e.i(496887),l=e.i(803568);function c(){let e=(0,l.useMantineTheme)(),r=(0,n.useMantineStyleNonce)(),s=(0,i.keys)(e.breakpoints).reduce((t,r)=>{let n=e.breakpoints[r].includes("px"),i=(0,o.px)(e.breakpoints[r]),s=n?`${i-.1}px`:(0,a.em)(i-.1),l=n?`${i}px`:(0,a.em)(i);return`${t}@media (max-width: ${s}) {.mantine-visible-from-${r} {display: none !important;}}@media (min-width: ${l}) {.mantine-hidden-from-${r} {display: none !important;}}`},"");return(0,t.jsx)("style",{"data-mantine-styles":"classes",nonce:r?.(),dangerouslySetInnerHTML:{__html:s}})}function u(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join("")}function d(e,t){let r=t?[t]:[":root",":host"],n=u(e.variables),i=n?`${r.join(", ")}{${n}}`:"",o=u(e.dark),a=u(e.light),s=e=>r.map(t=>":host"===t?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(", "),l=o?`${s("dark")}{${o}}`:"",c=a?`${s("light")}{${a}}`:"";return`${i} 2 3${l} 4 5${c}`}var f=e.i(632874),p=e.i(483585),h=e.i(290723),m=e.i(404779);function g({theme:e,color:t,colorScheme:r,name:n=t,withColorValues:i=!0}){if(!e.colors[t])return{};if("light"===r){let r=(0,p.getPrimaryShade)(e,"light"),o={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-filled)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${r})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${9===r?8:r+1})`,[`--mantine-color-${n}-light`]:(0,m.alpha)(e.colors[t][r],.1),[`--mantine-color-${n}-light-hover`]:(0,m.alpha)(e.colors[t][r],.12),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${r})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${r})`,[`--mantine-color-${n}-outline-hover`]:(0,m.alpha)(e.colors[t][r],.05)};return i?{[`--mantine-color-${n}-0`]:e.colors[t][0],[`--mantine-color-${n}-1`]:e.colors[t][1],[`--mantine-color-${n}-2`]:e.colors[t][2],[`--mantine-color-${n}-3`]:e.colors[t][3],[`--mantine-color-${n}-4`]:e.colors[t][4],[`--mantine-color-${n}-5`]:e.colors[t][5],[`--mantine-color-${n}-6`]:e.colors[t][6],[`--mantine-color-${n}-7`]:e.colors[t][7],[`--mantine-color-${n}-8`]:e.colors[t][8],[`--mantine-color-${n}-9`]:e.colors[t][9],...o}:o}let o=(0,p.getPrimaryShade)(e,"dark"),a={[`--mantine-color-${n}-text`]:`var(--mantine-color-${n}-4)`,[`--mantine-color-${n}-filled`]:`var(--mantine-color-${n}-${o})`,[`--mantine-color-${n}-filled-hover`]:`var(--mantine-color-${n}-${9===o?8:o+1})`,[`--mantine-color-${n}-light`]:(0,m.alpha)(e.colors[t][Math.max(0,o-2)],.15),[`--mantine-color-${n}-light-hover`]:(0,m.alpha)(e.colors[t][Math.max(0,o-2)],.2),[`--mantine-color-${n}-light-color`]:`var(--mantine-color-${n}-${Math.max(o-5,0)})`,[`--mantine-color-${n}-outline`]:`var(--mantine-color-${n}-${Math.max(o-4,0)})`,[`--mantine-color-${n}-outline-hover`]:(0,m.alpha)(e.colors[t][Math.max(o-4,0)],.05)};return i?{[`--mantine-color-${n}-0`]:e.colors[t][0],[`--mantine-color-${n}-1`]:e.colors[t][1],[`--mantine-color-${n}-2`]:e.colors[t][2],[`--mantine-color-${n}-3`]:e.colors[t][3],[`--mantine-color-${n}-4`]:e.colors[t][4],[`--mantine-color-${n}-5`]:e.colors[t][5],[`--mantine-color-${n}-6`]:e.colors[t][6],[`--mantine-color-${n}-7`]:e.colors[t][7],[`--mantine-color-${n}-8`]:e.colors[t][8],[`--mantine-color-${n}-9`]:e.colors[t][9],...a}:a}function v(e,t,r){(0,i.keys)(t).forEach(n=>Object.assign(e,{[`--mantine-${r}-${n}`]:t[n]}))}let w=e=>{let t=(0,p.getPrimaryShade)(e,"light"),r=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:(0,a.rem)(e.defaultRadius),n={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-we
5ight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":r,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":(0,h.getPrimaryContrastColor)(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":(0,h.getPrimaryContrastColor)(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};v(n.variables,e.breakpoints,"breakpoint"),v(n.variables,e.spacing,"spacing"),v(n.variables,e.fontSizes,"font-size"),v(n.variables,e.lineHeights,"line-height"),v(n.variables,e.shadows,"shadow"),v(n.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((t,r)=>{n.variables[`--mantine-primary-color-${r}`]=`var(--mantine-color-${e.primaryColor}-${r})`}),(0,i.keys)(e.colors).forEach(t=>{let r=e.colors[t];if(r&&"object"==typeof r&&"mantine-virtual-color"in r){Object.assign(n.light,g({theme:e,name:r.name,color:r.light,colorScheme:"light",withColorValues:!0})),Object.assign(n.dark,g({theme:e,name:r.name,color:r.dark,colorScheme:"dark",withColorValues:!0}));return}r.forEach((e,r)=>{n.variables[`--mantine-color-${t}-${r}`]=e}),Object.assign(n.light,g({theme:e,color:t,colorScheme:"light",withColorValues:!1})),Object.assign(n.dark,g({theme:e,color:t,colorScheme:"dark",withColorValues:!1}))});let o=e.headings.sizes;return(0,i.keys)(o).forEach(t=>{n.variables[`--mantine-${t}-font-size`]=o[t].fontSize,n.variables[`--mantine-${t}-line-height`]=o[t].lineHeight,n.variables[`--mantine-${t}-font-weight`]=o[t].fontWeight||e.headings.fontWeight}),n},b=w(e.i(590883).DEFAULT_THEME);function y({cssVariablesSelector:e,deduplicateCssVariables:r}){let o,a=(0,l.useMantineTheme)(),s=(0,n.useMantineStyleNonce)(),c=function({theme:e,generator:t}){let r=w(e),n=t?.(e);return n?(0,f.deepMerge)(r,n):r}({theme:a,generator:(0,n.useMantineCssVariablesResolver)()}),u=(void 0===e||":root"===e||":host"===e)&&r,p=d(u?(o={variables:{},light:{},dark:{}},(0,i.keys)(c.variables).forEach(e=>{b.variables[e]!==c.variables[e]&&(o.variables[e]=c.variables[e])}),(0,i.keys)(c.light).forEach(e=>{b.light[e]!==c.light[e]&&(o.light[e]=c.light[e])}
5),(0,i.keys)(c.dark).forEach(e=>{b.dark[e]!==c.dark[e]&&(o.dark[e]=c.dark[e])}),o):c,e);return p?(0,t.jsx)("style",{"data-mantine-styles":!0,nonce:s?.(),dangerouslySetInnerHTML:{__html:`${p}${u?"":d({variables:{},dark:{"--mantine-color-scheme":"dark"},light:{"--mantine-color-scheme":"light"}},e)}`}}):null}y.displayName="@mantine/CssVariables";var x=e.i(97732);function S(e,t){let r="u">typeof window&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches;t()?.setAttribute("data-mantine-color-scheme","auto"!==e?e:r?"dark":"light")}function _({theme:e,children:i,getStyleNonce:o,withStaticClasses:a=!0,withGlobalClasses:u=!0,deduplicateCssVariables:d=!0,withCssVariables:f=!0,cssVariablesSelector:p,classNamesPrefix:h="mantine",colorSchemeManager:m=function({key:e="mantine-color-scheme-value"}={}){let t;return{get:t=>{if("u"<typeof window)return t;try{let n=window.localStorage.getItem(e);return r(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&r(t.newValue)&&n(t.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}(),defaultColorScheme:g="light",getRootElement:v=()=>document.documentElement,cssVariablesResolver:w,forceColorScheme:b,stylesTransform:E,env:C}){let{colorScheme:k,setColorScheme:P,clearColorScheme:j}=function({manager:e,defaultColorScheme:t,getRootElement:r,forceColorScheme:n}){let i=(0,s.useRef)(null),[o,a]=(0,s.useState)(()=>e.get(t)),l=n||o,c=(0,s.useCallback)(t=>{n||(S(t,r),a(t),e.set(t))},[e.set,l,n]),u=(0,s.useCallback)(()=>{a(t),S(t,r),e.clear()},[e.clear,t]);return(0,s.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),(0,x.useIsomorphicEffect)(()=>{S(e.get(t),r)},[]),(0,s.useEffect)(()=>{if(n)return S(n,r),()=>{};void 0===n&&S(o,r),"u">typeof window&&"matchMedia"in window&&(i.current=window.matchMedia("(prefers-color-scheme: dark)"));let e=e=>{"auto"===o&&S(e.matches?"dark":"light",r)};return i.current?.addEventListener("change",e),()=>i.current?.removeEventListener("change",e)},[o,n]),{colorScheme:l,setColorScheme:c,clearColorScheme:u}}({defaultColorScheme:g,forceColorScheme:b,manager:m,getRootElement:v});return!function({respectReducedMotion:e,getRootElement:t}){(0,x.useIsomorphicEffect)(()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")},[e])}({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:v}),(0,t.jsx)(n.MantineContext.Provider,{value:{colorScheme:k,setColorScheme:P,clearColorScheme:j,getRootElement:v,classNamesPrefix:h,getStyleNonce:o,cssVariablesResolver:w,cssVariablesSelector:p??":root",withStaticClasses:a,stylesTransform:E,env:C},children:(0,t.jsxs)(l.MantineThemeProvider,{theme:e,children:[f&&(0,t.jsx)(y,{cssVariablesSelector:p,deduplicateCssVariables:d}),u&&(0,t.jsx)(c,{}),i]})})}_.displayName="@mantine/core/MantineProvider";var E=e.i(32465),C=e.i(367754);function k(e,t){return Object.fromEntries(Object.entries(t).map(([t,r])=>[`--${e}-${t}`,r]))}function P(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[`--${e}`,t]))}let j=()=>({variables:{...k("space",C.space),...k("radius",C.radius),...k("size",C.size),...k("weight",C.weight),...k("letter-spacing",C.letterSpacing),...k("shadow",C.shadow),...k("bg",C.bg),...k("tint",C.tint),...function(e){let t={};for(let[r,n]of Object.entries(e))t[`--type-${r}-size`]=n.size,t[`--type-${r}-lh`]=n.lh;return t}(C.type),...P(C.text),...P(C.border),...P(C.interactive),...P(C.misc)},light:{},dark:{}});var R=e.i(704660);e.s(["MantineProvider",0,({children:e})=>(0,t.jsx)(_,{theme:R.mantineTheme,cssVariablesResolver:j,children:(0,t.jsx)(E.DatesProvider,{settings:{weekendDays:[]},children:e})})],223368)},162538,e=>{"use strict";var t=e.i(497965),r=e.i(496887),n=e.i(617413),i=e.i(808950),o=e.i(185937);function a({children:e,...s}){let l=(0,r.useContext)(i.MotionConfigContext);(s={...l,...s}).transition=(0,n.resolveTransition)(s.transition,l.transition),s.isStatic=(0,o.useConstant)(()=>s.isStatic);let c=(0,r.useMemo)(()=>s,[JSON.stringify(s.transition),s.transformPagePoint,s.reducedMotion,s.skipAnimations,s.isValidProp]);return(0,t.jsx)(i.MotionConfigContext.Provider,{value:c,children:e})}e.s(["MotionProvider",0,({children:e})=>(0,t.jsx)(a,{reducedMotion:"user",children:e})],162538)},711363,e=>{"use strict";
5var t=e.i(497965),r=e.i(803568),n=e.i(356170),i=e.i(42456),o=e.i(934766),a=e.i(351250),s=e.i(496887),l=e.i(73967),c=e.i(193540);let u=(0,s.createContext)({source:null,stepIndex:0,spotlitTab:null,advance:()=>{},skip:()=>{}}),d=()=>{let e=new URL(window.location.href);e.searchParams.has(l.NAV_TOUR_PARAM)&&(e.searchParams.delete(l.NAV_TOUR_PARAM),window.history.replaceState({},"",e.toString()))};e.s(["NavTourProvider",0,({children:e})=>{let f=(0,a.useSearchParams)(),p=(0,r.useMantineTheme)(),h=(0,o.useMounted)(),m=(0,i.useMediaQuery)(`(min-width: ${p.breakpoints.sm})`),{currentUserId:g,isLoading:v}=(0,c.useAuth)(),[w,b]=(0,n.useLocalStorage)({key:"sway-nav-tour-seen",defaultValue:!1,getInitialValueInEffect:!1}),[y,x]=(0,s.useState)(0),S=(0,l.parseNavTourSource)(f.get(l.NAV_TOUR_PARAM)),_=h&&!v,E=w||!0===m||void 0===g,C=_&&!E&&null!==S?S:null;(0,s.useEffect)(()=>{_&&null!==S&&E&&d()},[_,S,E]);let k=(0,s.useCallback)(()=>{b(!0),x(0),d()},[b]),P=(0,s.useCallback)(()=>{y<l.NAV_TOUR_STEPS.length-1?x(y+1):k()},[y,k]),j=(0,s.useMemo)(()=>({source:C,stepIndex:y,spotlitTab:null===C?null:l.NAV_TOUR_STEPS[y],advance:P,skip:k}),[C,y,P,k]);return(0,t.jsx)(u.Provider,{value:j,children:e})},"useNavTour",0,()=>(0,s.useContext)(u)])},372668,e=>{"use strict";var t=e.i(497965),r=e.i(496887);let n=(0,r.createContext)({pageTitle:"Sway",secondaryTitle:null,setPageTitle:()=>{}});e.s(["PageTitleProvider",0,function({children:e,initialTitle:i="Sway",initialSecondaryTitle:o=null}){let[a,s]=(0,r.useState)(i),[l,c]=(0,r.useState)(o);return(0,t.jsx)(n.Provider,{value:{pageTitle:a,secondaryTitle:l,setPageTitle:(e,t=null)=>{s(e),c(t)}},children:e})},"usePageTitle",0,function(){return(0,r.useContext)(n)}])},711650,e=>{"use strict";var t=e.i(497965),r=e.i(496887);let n=(0,r.createContext)(void 0),i=(0,r.createContext)(void 0);e.s(["SidebarProvider",0,({children:e})=>{let[o,a]=(0,r.useState)(null),s=(0,r.useCallback)(e=>{a(e)},[]),l=null!==o,c=(0,r.useMemo)(()=>({sidebarContent:o,hasSidebarContent:l}),[o,l]);return(0,t.jsx)(i.Provider,{value:s,children:(0,t.jsx)(n.Provider,{value:c,children:e})})},"useSetSidebarContent",0,()=>{let e=(0,r.useContext)(i);if(void 0===e)throw Error("useSetSidebarContent must be used within a SidebarProvider");return e},"useSidebar",0,()=>{let e=(0,r.useContext)(n);if(void 0===e)throw Error("useSidebar must be used within a SidebarProvider");return e}])},531538,e=>{"use strict";var t=e.i(496887);let r=null,n=new Set,i=e=>(n.add(e),()=>n.delete(e)),o=()=>r,a=()=>null;e.s(["setHeaderInfoAction",0,e=>{for(let t of(r=e,n))t()},"useHeaderInfoAction",0,()=>(0,t.useSyncExternalStore)(i,o,a)])},453948,239821,e=>{"use strict";var t=e.i(356170),r=e.i(496887),n=e.i(193540),i=e.i(1564),o=e.i(201711);function a(e){return Date.now()-e<6048e5}function s(e,t){if(!e)return null;try{let{current:r}=JSON.parse(e);if(!r||!a(r.capturedAt)||t&&r.referrerSlug===t)return null;return r}catch{return null}}let l={ballot_party:o.ReferralSourcesEnum.BALLOT_PARTY,group:o.ReferralSourcesEnum.GROUP,profile:o.ReferralSourcesEnum.PROFILE,voter_guide:o.ReferralSourcesEnum.VOTER_GUIDE},c={explicit_ref:o.ReferralAttributionMethodsEnum.EXPLICIT_REF,group_leader_fallback:o.ReferralAttributionMethodsEnum.GROUP_LEADER_FALLBACK};e.s(["isWithinReferralWindow",0,a,"parseCurrentReferralEntry",0,s,"referralAttributionColumns",0,function(e){return{source:e.source?l[e.source]:o.ReferralSourcesEnum.UNKNOWN,attributionMethod:e.attributionMethod?c[e.attributionMethod]:o.ReferralAttributionMethodsEnum.LEGACY_UNKNOWN,referralCapturedAt:(0,i.default)(e.capturedAt).toISOString()}}],239821);var u=e.i(59730);let d="sway_referral",f={current:null,history:[]};e.s(["REFERRAL_STORAGE_KEY",0,d,"getReferralEntryFromStorage",0,function(e){try{return s(localStorage.getItem(d),e)}catch{return null}},"getReferralEntryFromStorageForGroup",0,function(e,t){if(!e)return null;try{let r=localStorage.getItem(d);if(!r)return null;let{current:n,history:i}=JSON.parse(r);if(n&&a(n.capturedAt)&&n.groupSlug===e){if(t&&n.referrerSlug===t)return null;return n}let o=i.find(t=>t.groupSlug===e&&a(t.capturedAt));if(o){if(t&&o.referrerSlug===t)return null;return o}return null}catch{return null}},"useReferral",0,function(){let{currentProfileSlug:e}=(0,n.useAuth)(),[i,o]=(0,t.useLocalStorage)({key:d,defaultValue:f}),s=(0,r.useCallback)(({referrerSlug:t,groupSlug:r,source:n,attributionMethod:i})=>{(0,u.isValidSlug)(t)&&t!==e&&o(e=>{let o={referrerSlug:t,capturedAt:Date.now(),groupSlug:r,source:n,attributionMethod:i},a=[o,...e.history.filter(e=>e.referrerSlug!==t)].slice(0,10);return{current:o,history:a}})},[e,o]),l=(0,r.useCallback)(()=>{let{current:t}=i;return t&&a(t.capturedAt)&&t.referrerSlug!==e?t:null},[i,e]),c=(0,r.useCallback)(()=>{let{current:t}=i;return t&&a(t.capturedAt)&&t.referrerSlug!==e?t.referrerSlug:null},[i,e]),p=(0,r.useCallback)(t=>{let{current:r,history:n}=i;
5if(r&&a(r.capturedAt)&&r.groupSlug===t)return r.referrerSlug!==e?r.referrerSlug:null;let o=n.find(e=>e.groupSlug===t&&a(e.capturedAt));return o&&o.referrerSlug!==e?o.referrerSlug:c()},[i,e,c]),h=(0,r.useCallback)(()=>{o(f)},[o]),m=(0,r.useMemo)(()=>i.history,[i.history]);return(0,r.useMemo)(()=>({captureReferrer:s,getCurrentValidReferrer:c,getCurrentReferralEntry:l,getCurrentReferrerForGroup:p,clearReferral:h,referralHistory:m,currentProfileSlug:e??null}),[s,c,l,p,h,m,e])}],453948)},610889,e=>{"use strict";e.s(["isCapabilityTokenPath",0,e=>!!e&&(e.startsWith("/m/")||"/unsubscribe"===e||"/settings/communications"===e)])},73967,e=>{"use strict";var t=e.i(1564),r=e.i(708502);let n="nav_tour",i=["onboarding","join_group"];e.s(["NAV_TOUR_BAR_TARGET",0,"nav-bar","NAV_TOUR_PARAM",0,n,"NAV_TOUR_STEPS",0,["explore","ballot","home","turnout","profile"],"isNewAccount",0,(e,r)=>null!=e&&60>r.diff((0,t.default)(e),"minute"),"navTourTarget",0,e=>`nav-${e}`,"parseNavTourSource",0,e=>i.find(t=>t===e)??null,"withNavTourParam",0,(e,t)=>{let i=new URLSearchParams;return i.set(n,t),(0,r.constructUrl)(e,i)}])},628487,e=>{"use strict";let t;var r=e.i(484375),n=e.i(740990);let i=!1,o=null,a=!1,s="sway-push-click-navigated",l=!1;e.s(["hasPushClickNavigated",0,()=>{if(l)return!0;try{return"1"===window.sessionStorage.getItem(s)}catch(e){return(0,r.createLogger)().warn("[push-notification-click] sessionStorage read failed",{error:e}),!1}},"installPushNotificationClickListener",0,()=>{!a&&(0,n.isIOSApp)()&&(a=!0,window.addEventListener("push-notification-click",e=>{let{detail:r}=e;o?o(r):(t=r,i=!0)}))},"markPushClickNavigated",0,()=>{l=!0;try{window.sessionStorage.setItem(s,"1")}catch(e){(0,r.createLogger)().warn("[push-notification-click] sessionStorage write failed",{error:e})}},"parsePushNotificationClickUrl",0,(e,t)=>{let r,n=e;if("string"==typeof e)try{n=JSON.parse(e)}catch{return null}if("object"!=typeof n||null===n||Array.isArray(n))return null;let{url:i}=n;if("string"!=typeof i||""===i)return"/";try{r=new URL(i,t)}catch{return null}return r.origin!==t||r.pathname.startsWith("//")?null:`${r.pathname}${r.search}${r.hash}`},"subscribePushNotificationClick",0,e=>{if(o=e,i){let r=t;t=void 0,i=!1,e(r)}return()=>{o===e&&(o=null)}}])},59730,e=>{"use strict";e.s(["isValidSlug",0,function(e){return"string"==typeof e&&e.length>0&&e.length<=40}])},820430,e=>{"use strict";let t="__swayPrevInApp",r=e=>{if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},n=e=>{if(!r(e))return null;let n=e[t];return"boolean"==typeof n?n:null},i=(e,n)=>null==e?{[t]:n}:r(e)?{...e,[t]:n}:e;e.s(["hasInAppHistoryBehind",0,()=>!0===n(window.history.state),"installHistoryStamping",0,()=>{if(window.__swayHistoryStampingInstalled)return;window.__swayHistoryStampingInstalled=!0;let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history);window.history.pushState=(t,r,n)=>{window.__swayLastNavWasPush=!0,e(i(t,!0),r,n)},window.addEventListener("click",e=>{0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||(window.__swayLastNavWasPush=!0)},{capture:!0,passive:!0}),window.addEventListener("popstate",()=>{window.__swayLastNavWasPush=!1}),window.history.replaceState=(e,r,o)=>{let a=n(window.history.state);t(null===a?e:i(e,a),r,o)}},"wasLastNavigationPush",0,()=>!0===window.__swayLastNavWasPush])}]); 6 7//# chunkId=10d9dabe-8e8a-5aa1-8538-8581afbd8c75
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.