Replace absolute image paths

This commit is contained in:
adilallo committed 2025-08-20 12:30:59 -06:00
1 parent 6e274124c3
commit e871c9de4b
100 files changed
+90292 -62

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
try{
(()=>{var kn=Object.defineProperty;var Se=(e,t)=>()=>(e&&(t=e(e=0)),t);var Nn=(e,t)=>{for(var a in t)kn(e,a,{get:t[a],enumerable:!0})};var O=Se(()=>{});var w=Se(()=>{});var k=Se(()=>{});var mt={};Nn(mt,{A:()=>Mn,ActionBar:()=>Ln,AddonPanel:()=>Fn,Badge:()=>le,Bar:()=>Hn,Blockquote:()=>Un,Button:()=>re,ClipboardCode:()=>Gn,Code:()=>Bn,DL:()=>zn,Div:()=>Wn,DocumentWrapper:()=>jn,EmptyTabContent:()=>Ce,ErrorFormatter:()=>Yn,FlexBar:()=>Vn,Form:()=>qn,H1:()=>Kn,H2:()=>Qn,H3:()=>Xn,H4:()=>Zn,H5:()=>Jn,H6:()=>ea,HR:()=>ta,IconButton:()=>ie,Img:()=>na,LI:()=>aa,Link:()=>Ie,ListItem:()=>ra,Loader:()=>oa,Modal:()=>la,OL:()=>ia,P:()=>ca,Placeholder:()=>sa,Pre:()=>ua,ProgressSpinner:()=>da,ResetWrapper:()=>ma,ScrollArea:()=>Oe,Separator:()=>fa,Spaced:()=>pa,Span:()=>ha,StorybookIcon:()=>ya,StorybookLogo:()=>ba,SyntaxHighlighter:()=>we,TT:()=>ga,TabBar:()=>Sa,TabButton:()=>va,TabWrapper:()=>Ea,Table:()=>Ia,Tabs:()=>xa,TabsState:()=>Ra,TooltipLinkList:()=>ke,TooltipMessage:()=>Aa,TooltipNote:()=>pe,UL:()=>$a,WithTooltip:()=>de,WithTooltipPure:()=>Ta,Zoom:()=>_a,codeCommon:()=>Ca,components:()=>Oa,createCopyToClipboardFunction:()=>wa,default:()=>Dn,getStoryHref:()=>ka,interleaveSeparators:()=>Na,nameSpaceClassNames:()=>Pa,resetComponents:()=>Da,withReset:()=>Ma});var Dn,Mn,Ln,Fn,le,Hn,Un,re,Gn,Bn,zn,Wn,jn,Ce,Yn,Vn,qn,Kn,Qn,Xn,Zn,Jn,ea,ta,ie,na,aa,Ie,ra,oa,la,ia,ca,sa,ua,da,ma,Oe,fa,pa,ha,ya,ba,we,ga,Sa,va,Ea,Ia,xa,Ra,ke,Aa,pe,$a,de,Ta,_a,Ca,Oa,wa,ka,Na,Pa,Da,Ma,Ne=Se(()=>{O();w();k();Dn=__STORYBOOK_COMPONENTS__,{A:Mn,ActionBar:Ln,AddonPanel:Fn,Badge:le,Bar:Hn,Blockquote:Un,Button:re,ClipboardCode:Gn,Code:Bn,DL:zn,Div:Wn,DocumentWrapper:jn,EmptyTabContent:Ce,ErrorFormatter:Yn,FlexBar:Vn,Form:qn,H1:Kn,H2:Qn,H3:Xn,H4:Zn,H5:Jn,H6:ea,HR:ta,IconButton:ie,Img:na,LI:aa,Link:Ie,ListItem:ra,Loader:oa,Modal:la,OL:ia,P:ca,Placeholder:sa,Pre:ua,ProgressSpinner:da,ResetWrapper:ma,ScrollArea:Oe,Separator:fa,Spaced:pa,Span:ha,StorybookIcon:ya,StorybookLogo:ba,SyntaxHighlighter:we,TT:ga,TabBar:Sa,TabButton:va,TabWrapper:Ea,Table:Ia,Tabs:xa,TabsState:Ra,TooltipLinkList:ke,TooltipMessage:Aa,TooltipNote:pe,UL:$a,WithTooltip:de,WithTooltipPure:Ta,Zoom:_a,codeCommon:Ca,components:Oa,createCopyToClipboardFunction:wa,getStoryHref:ka,interleaveSeparators:Na,nameSpaceClassNames:Pa,resetComponents:Da,withReset:Ma}=__STORYBOOK_COMPONENTS__});O();w();k();O();w();k();O();w();k();var o=__REACT__,{Children:P,Component:ri,Fragment:me,Profiler:oi,PureComponent:ct,StrictMode:li,Suspense:ii,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ci,act:si,cloneElement:V,createContext:fe,createElement:m,createFactory:ui,createRef:st,forwardRef:L,isValidElement:U,lazy:di,memo:mi,startTransition:fi,unstable_act:pi,useCallback:R,useContext:ve,useDebugValue:hi,useDeferredValue:yi,useEffect:G,useId:ut,useImperativeHandle:bi,useInsertionEffect:gi,useLayoutEffect:Ee,useMemo:j,useReducer:dt,useRef:z,useState:H,useSyncExternalStore:Si,useTransition:vi,version:Ei}=__REACT__;Ne();O();w();k();var _i=__STORYBOOK_API__,{ActiveTabs:Ci,Consumer:Oi,ManagerContext:wi,Provider:ki,RequestResponseError:Ni,addons:xe,combineParameters:Pi,controlOrMetaKey:Di,controlOrMetaSymbol:Mi,eventMatchesShortcut:Li,eventToShortcut:Fi,experimental_MockUniversalStore:Hi,experimental_UniversalStore:Ui,experimental_getStatusStore:ft,experimental_getTestProviderStore:Gi,experimental_requestResponse:Bi,experimental_useStatusStore:pt,experimental_useTestProviderStore:zi,experimental_useUniversalStore:Wi,internal_fullStatusStore:ji,internal_fullTestProviderStore:Yi,internal_universalStatusStore:Vi,internal_universalTestProviderStore:qi,isMacLike:Ki,isShortcutTaken:Qi,keyToSymbol:Xi,merge:Zi,mockChannel:Ji,optionOrAltSymbol:ec,shortcutMatchesShortcut:tc,shortcutToHumanString:nc,types:Pe,useAddonState:De,useArgTypes:ac,useArgs:rc,useChannel:ht,useGlobalTypes:oc,useGlobals:yt,useParameter:bt,useSharedState:lc,useStoryPrepared:ic,useStorybookApi:Re,useStorybookState:gt}=__STORYBOOK_API__;O();w();k();var mc=__STORYBOOK_ICONS__,{AccessibilityAltIcon:fc,AccessibilityIcon:St,AccessibilityIgnoredIcon:pc,AddIcon:hc,AdminIcon:yc,AlertAltIcon:bc,AlertIcon:gc,AlignLeftIcon:Sc,AlignRightIcon:vc,AppleIcon:Ec,ArrowBottomLeftIcon:Ic,ArrowBottomRightIcon:xc,ArrowDownIcon:Rc,ArrowLeftIcon:Ac,ArrowRightIcon:$c,ArrowSolidDownIcon:Tc,ArrowSolidLeftIcon:_c,ArrowSolidRightIcon:Cc,ArrowSolidUpIcon:Oc,ArrowTopLeftIcon:wc,ArrowTopRightIcon:kc,ArrowUpIcon:Nc,AzureDevOpsIcon:Pc,BackIcon:Dc,BasketIcon:Mc,BatchAcceptIcon:Lc,BatchDenyIcon:Fc,BeakerIcon:Hc,BellIcon:Uc,BitbucketIcon:Gc,BoldIcon:Bc,BookIcon:zc,BookmarkHollowIcon:Wc,BookmarkIcon:jc,BottomBarIcon:Yc,BottomBarToggleIcon:Vc,BoxIcon:qc,BranchIcon:Kc,BrowserIcon:Qc,ButtonIcon:Xc,CPUIcon:Zc,CalendarIcon:Jc,CameraIcon:es,CameraStabilizeIcon:ts,CategoryIcon:ns,CertificateIcon:as,ChangedIcon:rs,ChatIcon:os,CheckIcon:vt,ChevronDownIcon:ls,ChevronLeftIcon:is,ChevronRightIcon:cs,ChevronSmallDownIcon:Et,ChevronSmallLeftIcon:ss,ChevronSmallRightIcon:us,ChevronSmallUpIcon:ds,ChevronUpIcLine truncated
${l}`),o.createElement(Bt,{language:"css",wrapLongLines:!0},`/* selector */
${c} {}`))}var ho={minor:"neutral",moderate:"warning",serious:"negative",critical:"critical"},yo={minor:"Minor",moderate:"Moderate",serious:"Serious",critical:"Critical"},bo=E.div(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",borderBottom:`1px solid ${e.appBorderColor}`,containerType:"inline-size",fontSize:e.typography.size.s2})),go=E(Et)({transition:"transform 0.1s ease-in-out"}),So=E.div(({theme:e})=>({display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"6px 10px 6px 15px",minHeight:40,background:"none",color:"inherit",textAlign:"left",cursor:"pointer",width:"100%","&:hover":{color:e.color.secondary}})),vo=E.div(({theme:e})=>({display:"flex",alignItems:"baseline",flexGrow:1,fontSize:e.typography.size.s2,gap:8})),Eo=E.div(({theme:e})=>({display:"none",color:e.textMutedColor,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,"@container (min-width: 800px)":{display:"block"}})),Io=E.div(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",color:e.textMutedColor,width:28,height:28})),Be=({items:e,empty:t,type:a,handleSelectionChange:n,selectedItems:r,toggleOpen:i})=>o.createElement(o.Fragment,null,e&&e.length?e.map(l=>{let c=`${a}.${l.id}`,d=`details:${c}`,s=r.get(c),f=je(l);return o.createElement(bo,{key:c},o.createElement(So,{onClick:u=>i(u,a,l),"data-active":!!s},o.createElement(vo,null,o.createElement("strong",null,f),o.createElement(Eo,null,l.id)),l.impact&&o.createElement(le,{status:a===W.PASS?"neutral":ho[l.impact]},yo[l.impact]),o.createElement(Io,null,l.nodes.length),o.createElement(ie,{onClick:u=>i(u,a,l),"aria-label":`${s?"Collapse":"Expand"} details for ${f}`,"aria-expanded":!!s,"aria-controls":d},o.createElement(go,{style:{transform:`rotate(${s?-180:0}deg)`}}))),s?o.createElement(po,{id:d,item:l,type:a,selection:s,handleSelectionChange:n}):o.createElement("div",{id:d}))}):o.createElement(Ce,{title:t})),Je=function(e,t){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(a[r]=n[r])},Je(e,t)};function xo(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Je(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}var et=function(){return et=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},et.apply(this,arguments)};function Ro(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]]);return a}var Te=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function Ao(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var lt=Ao,$o=typeof Te=="object"&&Te&&Te.Object===Object&&Te,To=$o,_o=To,Co=typeof self=="object"&&self&&self.Object===Object&&self,Oo=_o||Co||Function("return this")(),vn=Oo,wo=vn,ko=function(){return wo.Date.now()},No=ko,Po=/\s/;function Do(e){for(var t=e.length;t--&&Po.test(e.charAt(t)););return t}var Mo=Do,Lo=Mo,Fo=/^\s+/;function Ho(e){return e&&e.slice(0,Lo(e)+1).replace(Fo,"")}var Uo=Ho,Go=vn,Bo=Go.Symbol,En=Bo,jt=En,In=Object.prototype,zo=In.hasOwnProperty,Wo=In.toString,he=jt?jt.toStringTag:void 0;function jo(e){var t=zo.call(e,he),a=e[he];try{e[he]=void 0;var n=!0}catch{}var r=Wo.call(e);return n&&(t?e[he]=a:delete e[he]),r}var Yo=jo,Vo=Object.prototype,qo=Vo.toString;function Ko(e){return qo.call(e)}var Qo=Ko,Yt=En,Xo=Yo,Zo=Qo,Jo="[object Null]",el="[object Undefined]",Vt=Yt?Yt.toStringTag:void 0;function tl(e){return e==null?e===void 0?el:Jo:Vt&&Vt in Object(e)?Xo(e):Zo(e)}var nl=tl;function al(e){return e!=null&&typeof e=="object"}var rl=al,ol=nl,ll=rl,il="[object Symbol]";function cl(e){return typeof e=="symbol"||ll(e)&&ol(e)==il}var sl=cl,ul=Uo,qt=lt,dl=sl,Kt=NaN,ml=/^[-+]0x[0-9a-f]+$/i,fl=/^0b[01]+$/i,pl=/^0o[0-7]+$/i,hl=parseInt;function yl(e){if(typeof e=="number")return e;if(dl(e))return Kt;if(qt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=qt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ul(e);var a=fl.test(e);return a||pl.test(e)?hl(e.slice(2),a?2:8):ml.test(e)?Kt:+e}var bl=yl,gl=lt,ze=No,Qt=bl,Sl="Expected a function",vl=Math.max,El=Math.min;function Il(e,t,a){var n,r,i,l,c,d,s=0,f=!1,u=!1,p=!0;if(typeof e!="function")throw new TypeError(Sl);t=Qt(t)||0,gl(a)&&(f=!!a.leading,u="maxWait"in a,i=u?vl(Qt(a.maxWait)||0,t):i,p="trailing"in a?!!a.trailing:p);function b($){var x=n,F=r;return n=r=void 0,s=$,l=e.apply(F,x),l}function h($){return s=$,c=setTimeout(g,t),f?b($):l}function I($){var x=$-d,F=$-s,q=t-x;return u?El(q,i- Line truncated
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
@@ -0,0 +1,356 @@
try{
(()=>{var Lt=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var _e={NODE_ENV:"production",NODE_PATH:[],STORYBOOK:"true",PUBLIC_URL:"."};var a=__REACT__,{Children:_6,Component:Tt,Fragment:I6,Profiler:R6,PureComponent:B6,StrictMode:P6,Suspense:V6,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:H6,act:j6,cloneElement:D6,createContext:He,createElement:S,createFactory:z6,createRef:U6,forwardRef:W,isValidElement:wl,lazy:$6,memo:W6,startTransition:q6,unstable_act:G6,useCallback:K,useContext:Gt,useDebugValue:Y6,useDeferredValue:K6,useEffect:te,useId:J6,useImperativeHandle:Q6,useInsertionEffect:X6,useLayoutEffect:ef,useMemo:ft,useReducer:Cl,useRef:Ee,useState:Le,useSyncExternalStore:tf,useTransition:nf,version:af}=__REACT__;var sf=__STORYBOOK_TYPES__,{Addon_TypesEnum:Tr}=__STORYBOOK_TYPES__;var pf=__STORYBOOK_API__,{ActiveTabs:hf,Consumer:ff,ManagerContext:gf,Provider:vf,RequestResponseError:yf,addons:ga,combineParameters:bf,controlOrMetaKey:Ef,controlOrMetaSymbol:kf,eventMatchesShortcut:wf,eventToShortcut:Cf,experimental_MockUniversalStore:Sf,experimental_UniversalStore:xf,experimental_getStatusStore:va,experimental_getTestProviderStore:Sl,experimental_requestResponse:Nf,experimental_useStatusStore:xl,experimental_useTestProviderStore:Nl,experimental_useUniversalStore:Mf,internal_fullStatusStore:Ff,internal_fullTestProviderStore:Af,internal_universalStatusStore:Lf,internal_universalTestProviderStore:Tf,isMacLike:Zf,isShortcutTaken:Of,keyToSymbol:_f,merge:If,mockChannel:Rf,optionOrAltSymbol:Bf,shortcutMatchesShortcut:Pf,shortcutToHumanString:Vf,types:Hf,useAddonState:Ml,useArgTypes:jf,useArgs:Df,useChannel:ya,useGlobalTypes:Fl,useGlobals:Al,useParameter:Ll,useSharedState:zf,useStoryPrepared:Uf,useStorybookApi:Zt,useStorybookState:wn}=__STORYBOOK_API__;var Yf=__STORYBOOK_THEMING__,{CacheProvider:Kf,ClassNames:Jf,Global:Qf,ThemeProvider:Xf,background:e8,color:Cn,convert:t8,create:n8,createCache:a8,createGlobal:r8,createReset:i8,css:se,darken:l8,ensure:o8,ignoreSsrWarning:s8,isPropValid:d8,jsx:c8,keyframes:Ct,lighten:u8,styled:k,themes:m8,typography:p8,useTheme:Sn,withTheme:h8}=__STORYBOOK_THEMING__;var b8=__STORYBOOK_COMPONENTS__,{A:E8,ActionBar:k8,AddonPanel:w8,Badge:Tl,Bar:C8,Blockquote:S8,Button:xn,ClipboardCode:x8,Code:Zl,DL:N8,Div:M8,DocumentWrapper:F8,EmptyTabContent:A8,ErrorFormatter:L8,FlexBar:T8,Form:Z8,H1:O8,H2:_8,H3:I8,H4:R8,H5:B8,H6:P8,HR:V8,IconButton:Ol,Img:H8,LI:j8,Link:Ot,ListItem:D8,Loader:Zr,Modal:z8,OL:U8,P:$8,Placeholder:W8,Pre:q8,ProgressSpinner:_l,ResetWrapper:G8,ScrollArea:Y8,Separator:K8,Spaced:J8,Span:Q8,StorybookIcon:X8,StorybookLogo:e9,SyntaxHighlighter:t9,TT:n9,TabBar:a9,TabButton:r9,TabWrapper:i9,Table:l9,Tabs:o9,TabsState:s9,TooltipLinkList:Il,TooltipMessage:Rl,TooltipNote:ba,UL:d9,WithTooltip:ke,WithTooltipPure:c9,Zoom:u9,codeCommon:m9,components:p9,createCopyToClipboardFunction:h9,getStoryHref:f9,interleaveSeparators:g9,nameSpaceClassNames:v9,resetComponents:y9,withReset:b9}=__STORYBOOK_COMPONENTS__;var Nn=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:S9,createPortal:Ea,createRoot:x9,findDOMNode:N9,flushSync:M9,hydrate:F9,hydrateRoot:A9,render:L9,unmountComponentAtNode:Bl,unstable_batchedUpdates:T9,unstable_renderSubtreeIntoContainer:Pl,version:Z9}=__REACT_DOM__;var od='@keyframes Bc2PgW_ya{to{translate:0 var(--sh)}}@keyframes Bc2PgW_xa{to{translate:var(--xlp)0}}@keyframes Bc2PgW_r{50%{rotate:var(--hr)180deg}to{rotate:var(--r)360deg}}.Bc2PgW_c{z-index:1200;width:0;height:0;position:relative;overflow:visible}.Bc2PgW_p{animation:xa var(--dc)forwards cubic-bezier(var(--x1),var(--x2),var(--x3),var(--x4));animation-name:Bc2PgW_xa}.Bc2PgW_p>div{animation:ya var(--dc)forwards cubic-bezier(var(--y1),var(--y2),var(--y3),var(--y4));width:var(--w);height:var(--h);animation-name:Bc2PgW_ya;position:absolute;top:0;left:0}.Bc2PgW_p>div:before{content:"";background-color:var(--bgc);animation:r var(--rd)infinite linear;border-radius:var(--br);width:100%;height:100%;animation-name:Bc2PgW_r;display:block}',Vl="Bc2PgW_p",sd="Bc2PgW_c",Hl=["#FFC700","#FF0000","#2E3191","#41BBC7"],jl=3500,Dl=.5,zl=150,Ul="mix",$l=12,Wl="",ql=!0,Gl=800,Yl=1600;function dd(e,t={}){let{colors:n=Hl,duration:r=jl,force:i=Dl,particleCount:l=zl,particleShape:o=Ul,particleSize:s=$l,particleClass:d=Wl,destroyAfterDone:c=ql,stageHeight:u=Gl,stageWidth:m=Yl}=t;(function(f){if(document.querySelector("style[data-neoconfetti]"))return;let E=Or("style");E.dataset.neoconfetti="",E.textContent=f,_r(document.head,E)})(od),e.classList.add(sd),e.style.setProperty("--sh",u+"px");let p=[],v=[],g=()=>Mn(nt()*(hd-1)),y=(f,E)=>o!=="rectangles"&&(f==="circles"||fd(E));function w(f,E){let C=g(),Z=y(o,C),M=(X,oe)=>f.style.setProperty(X,oe+"");M("--xlp",Ir(ka(Xl(E,90)-180),0,180,-m/2,m/2)+"px"),M("--dc",r-Mn(1e3*nt())+"ms");let V=nt()<udLine truncated
`),n="",r=0,i=0,l=t.length-1,o=0;o<t.length;o++)xa.lastIndex=0,xa.test(t[o])&&(o&&(!r||xa.lastIndex<r)&&(r=xa.lastIndex),i=i||o,l=o);for(var s=i;s<=l;s++)s!==i&&(n+=`
`),n+=t[s].slice(r).replace(/\\"""/g,'"""');return n}function Q(){for(var e=0|ue.charCodeAt(G++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|ue.charCodeAt(G++))if(e===35)for(;(e=ue.charCodeAt(G++))!==10&&e!==13;);G--}var xs=/[_A-Za-z]\w*/y;function ut(){var e;if(e=Re(xs))return{kind:"Name",value:e}}var xu=/(?:null|true|false)/y,Ns=/\$[_A-Za-z]\w*/y,Nu=/-?\d+/y,Mu=/(?:\.\d+)?[eE][+-]?\d+|\.\d+/y,Fu=/\\/g,Au=/"""(?:"""|(?:[\s\S]*?[^\\])""")/y,Lu=/"(?:"|[^\r\n]*?[^\\]")/y;function ja(e){var t,n;if(n=Re(xu))t=n==="null"?{kind:"NullValue"}:{kind:"BooleanValue",value:n==="true"};else if(!e&&(n=Re(Ns)))t={kind:"Variable",name:{kind:"Name",value:n.slice(1)}};else if(n=Re(Nu)){var r=n;(n=Re(Mu))?t={kind:"FloatValue",value:r+n}:t={kind:"IntValue",value:r}}else if(n=Re(xs))t={kind:"EnumValue",value:n};else if(n=Re(Au))t={kind:"StringValue",value:Su(n.slice(3,-3)),block:!0};else if(n=Re(Lu))t={kind:"StringValue",value:Fu.test(n)?JSON.parse(n):n.slice(1,-1),block:!1};else if(t=function(i){var l;if(ue.charCodeAt(G)===91){G++,Q();for(var o=[];l=ja(i);)o.push(l);if(ue.charCodeAt(G++)!==93)throw ye("ListValue");return Q(),{kind:"ListValue",values:o}}}(e)||function(i){if(ue.charCodeAt(G)===123){G++,Q();for(var l=[],o;o=ut();){if(Q(),ue.charCodeAt(G++)!==58)throw ye("ObjectField");Q();var s=ja(i);if(!s)throw ye("ObjectField");l.push({kind:"ObjectField",name:o,value:s})}if(ue.charCodeAt(G++)!==125)throw ye("ObjectValue");return Q(),{kind:"ObjectValue",fields:l}}}(e))return t;return Q(),t}function Ms(e){var t=[];if(Q(),ue.charCodeAt(G)===40){G++,Q();for(var n;n=ut();){if(Q(),ue.charCodeAt(G++)!==58)throw ye("Argument");Q();var r=ja(e);if(!r)throw ye("Argument");t.push({kind:"Argument",name:n,value:r})}if(!t.length||ue.charCodeAt(G++)!==41)throw ye("Argument");Q()}return t}function on(e){var t=[];for(Q();ue.charCodeAt(G)===64;){G++;var n=ut();if(!n)throw ye("Directive");Q(),t.push({kind:"Directive",name:n,arguments:Ms(e)})}return t}function Tu(){var e=ut();if(e){Q();var t;if(ue.charCodeAt(G)===58){if(G++,Q(),t=e,!(e=ut()))throw ye("Field");Q()}return{kind:"Field",alias:t,name:e,arguments:Ms(!1),directives:on(!1),selectionSet:Er()}}}function Fs(){var e;if(Q(),ue.charCodeAt(G)===91){G++,Q();var t=Fs();if(!t||ue.charCodeAt(G++)!==93)throw ye("ListType");e={kind:"ListType",type:t}}else if(e=ut())e={kind:"NamedType",name:e};else throw ye("NamedType");return Q(),ue.charCodeAt(G)===33?(G++,Q(),{kind:"NonNullType",type:e}):e}var Zu=/on/y;function As(){if(Re(Zu)){Q();var e=ut();if(!e)throw ye("NamedType");return Q(),{kind:"NamedType",name:e}}}var Ou=/\.\.\./y;function _u(){if(Re(Ou)){Q();var e=G,t;if((t=ut())&&t.value!=="on")return{kind:"FragmentSpread",name:t,directives:on(!1)};G=e;var n=As(),r=on(!1),i=Er();if(!i)throw ye("InlineFragment");return{kind:"InlineFragment",typeCondition:n,directives:r,selectionSet:i}}}function Er(){var e;if(Q(),ue.charCodeAt(G)===123){G++,Q();for(var t=[];e=_u()||Tu();)t.push(e);if(!t.length||ue.charCodeAt(G++)!==125)throw ye("SelectionSet");return Q(),{kind:"SelectionSet",selections:t}}}var Iu=/fragment/y;function Ru(){if(Re(Iu)){Q();var e=ut();if(!e)throw ye("FragmentDefinition");Q();var t=As();if(!t)throw ye("FragmentDefinition");var n=on(!1),r=Er();if(!r)throw ye("FragmentDefinition");return{kind:"FragmentDefinition",name:e,typeCondition:t,directives:n,selectionSet:r}}}var Bu=/(?:query|mutation|subscription)/y;function Pu(){var e,t,n=[],r=[];(e=Re(Bu))&&(Q(),t=ut(),n=function(){var l,o=[];if(Q(),ue.charCodeAt(G)===40){for(G++,Q();l=Re(Ns);){if(Q(),ue.charCodeAt(G++)!==58)throw ye("VariableDefinition");var s=Fs(),d=void 0;if(ue.charCodeAt(G)===61&&(G++,Q(),!(d=ja(!0))))throw ye("VariableDefinition");Q(),o.push({kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:l.slice(1)}},type:s,defaultValue:d,directives:on(!0)})}if(ue.charCodeAt(G++)!==41)throw ye("VariableDefinition");Q()}return o}(),r=on(!1));var i=Er();if(i)return{kind:"OperationDefinition",operation:e||"query",name:t,variableDefinitions:n,directives:r,selectionSet:i}}function Vu(e,t){return ue=typeof e.body=="string"?e.body:e,G=0,function(){var n;Q();for(var r=[];n=Ru()||Pu();)r.push(n);return{kind:"Document",definitions:r}}()}function Hu(e){return JSON.stringify(e)}function ju(e){return`"""
`+e.replace(/"""/g,'\\"""')+`
"""`}var je=e=>!(!e||!e.length),Se={OperationDefinition(e){if(e.operation==="query"&&!e.name&&!je(e.variableDefinitions)&&!je(e.directives))return Se.SelectionSet(e.selectionSet);var t=e.operation;return e.name&&(t+=" "+e.name.value),je(e.variableDefinitions)&&(e.name||(t+=" "),t+="("+e.variableDefinitions.map(Se.VariableDefinition).join(", ")+")"),je(e.directives)&&(t+=" "+e.directives.map(Se.Directive).join(" ")),t+" "+Se.SelectionSet(e.selectionSet)},VariableDefinition(e){var t=Se.Variable(e.variable)+": "+De(e.type);return e.defaultValue&&(t+=" = "+De(e.defaultValue)),je(e.directives)&&(t+=" "+e.directives.map(Se.Directive).join(" ")),t},Field(e){var t=(e.alias?e.alias.value+": ":"")+e.name.value;if(je(e.arguments)){var n=e.arguments.map(Se.Argument),r=t+"("+n.join(", ")+")";t=r.length>80?t+`(
`+n.join(`
`).replace(/\n/g,`
`)+`
)`:r}return je(e.directives)&&(t+=" "+e.directives.map(Se.Directive).join(" ")),e.selectionSet?t+" "+Se.SelectionSet(e.selectionSet):t},StringValue:e=>e.block?ju(e.value):Hu(e.value),BooleanValue:e=>""+e.value,NullValue:e=>"null",IntValue:e=>e.value,FloatValue:e=>e.value,EnumValue:e=>e.value,Name:e=>e.value,Variable:e=>"$"+e.name.value,ListValue:e=>"["+e.values.map(De).join(", ")+"]",ObjectValue:e=>"{"+e.fields.map(Se.ObjectField).join(", ")+"}",ObjectField:e=>e.name.value+": "+De(e.value),Document:e=>je(e.definitions)?e.definitions.map(De).join(`
`):"",SelectionSet:e=>`{
`+e.selections.map(De).join(`
`).replace(/\n/g,`
`)+`
}`,Argument:e=>e.name.value+": "+De(e.value),FragmentSpread(e){var t="..."+e.name.value;return je(e.directives)&&(t+=" "+e.directives.map(Se.Directive).join(" ")),t},InlineFragment(e){var t="...";return e.typeCondition&&(t+=" on "+e.typeCondition.name.value),je(e.directives)&&(t+=" "+e.directives.map(Se.Directive).join(" ")),t+" "+De(e.selectionSet)},FragmentDefinition(e){var t="fragment "+e.name.value;return t+=" on "+e.typeCondition.name.value,je(e.directives)&&(t+=" "+e.directives.map(Se.Directive).join(" ")),t+" "+De(e.selectionSet)},Directive(e){var t="@"+e.name.value;return je(e.arguments)&&(t+="("+e.arguments.map(Se.Argument).join(", ")+")"),t},NamedType:e=>e.name.value,ListType:e=>"["+De(e.type)+"]",NonNullType:e=>De(e.type)+"!"};function De(e){return Se[e.kind]?Se[e.kind](e):""}var al=()=>{},Pe=al;function Je(e){return{tag:0,0:e}}function oa(e){return{tag:1,0:e}}var xo=()=>typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator",Du=e=>e;function Ze(e){return t=>n=>{var r=Pe;t(i=>{i===0?n(0):i.tag===0?(r=i[0],n(i)):e(i[0])?n(i):r(0)})}}function wi(e){return t=>n=>t(r=>{r===0||r.tag===0?n(r):n(oa(e(r[0])))})}function Da(e){return t=>n=>{var r=[],i=Pe,l=!1,o=!1;t(s=>{o||(s===0?(o=!0,r.length||n(0)):s.tag===0?i=s[0]:(l=!1,function(d){var c=Pe;d(u=>{if(u===0){if(r.length){var m=r.indexOf(c);m>-1&&(r=r.slice()).splice(m,1),r.length||(o?n(0):l||(l=!0,i(0)))}}else u.tag===0?(r.push(c=u[0]),c(0)):r.length&&(n(u),c(0))})}(e(s[0])),l||(l=!0,i(0))))}),n(Je(s=>{if(s===1){o||(o=!0,i(1));for(var d=0,c=r,u=r.length;d<u;d++)c[d](1);r.length=0}else{!o&&!l?(l=!0,i(0)):l=!1;for(var m=0,p=r,v=r.length;m<v;m++)p[m](0)}}))}}function zu(e){return Da(Du)(e)}function qn(e){return zu(Wu(e))}function rl(e){return t=>n=>{var r=!1;t(i=>{if(!r)if(i===0)r=!0,n(0),e();else if(i.tag===0){var l=i[0];n(Je(o=>{o===1?(r=!0,l(1),e()):l(o)}))}else n(i)})}}function za(e){return t=>n=>{var r=!1;t(i=>{if(!r)if(i===0)r=!0,n(0);else if(i.tag===0){var l=i[0];n(Je(o=>{o===1&&(r=!0),l(o)}))}else e(i[0]),n(i)})}}function Ci(e){return t=>n=>t(r=>{r===0?n(0):r.tag===0?(n(r),e()):n(r)})}function Gn(e){var t=[],n=Pe,r=!1;return i=>{t.push(i),t.length===1&&e(l=>{if(l===0){for(var o=0,s=t,d=t.length;o<d;o++)s[o](0);t.length=0}else if(l.tag===0)n=l[0];else{r=!1;for(var c=0,u=t,m=t.length;c<m;c++)u[c](l)}}),i(Je(l=>{if(l===1){var o=t.indexOf(i);o>-1&&(t=t.slice()).splice(o,1),t.length||n(1)}else r||(r=!0,n(0))}))}}function No(e){return t=>n=>{var r=Pe,i=Pe,l=!1,o=!1,s=!1,d=!1;t(c=>{d||(c===0?(d=!0,s||n(0)):c.tag===0?r=c[0]:(s&&(i(1),i=Pe),l?l=!1:(l=!0,r(0)),function(u){s=!0,u(m=>{s&&(m===0?(s=!1,d?n(0):l||(l=!0,r(0))):m.tag===0?(o=!1,(i=m[0])(0)):(n(m),o?o=!1:i(0)))})}(e(c[0]))))}),n(Je(c=>{c===1?(d||(d=!0,r(1)),s&&(s=!1,i(1))):(!d&&!l&&(l=!0,r(0)),s&&!o&&(o=!0,i(0)))}))}}function kr(e){return t=>n=>{var r=Pe,i=!1,l=0;t(o=>{i||(o===0?(i=!0,n(0)):o.tag===0?e<=0?(i=!0,n(0),o[0](1)):r=o[0]:l++<e?(n(o),!i&&l>=e&&(i=!0,n(0),r(1))):n(o))}),n(Je(o=>{o===1&&!i?(i=!0,r(1)):o===0&&!i&&l<e&&r(0)}))}}function Ls(e){return t=>n=>{var r=Pe,i=Pe,l=!1;t(o=>{l||(o===0?(l=!0,i(1),n(0)):o.tag===0?(r=o[0],e(s=>{s===0||(s.tag===0?(i=s[0])(0):(l=!0,i(1),r(1),n(0)))})):n(o))}),n(Je(o=>{o===1&&!l?(l=!0,r(1),i(1)):l||r(0)}))}}function Ts(e,t){return n=>r=>{var i=Pe,l=!1;n(o=>{l||(o===0?(l=!0,r(0)):o.tag===0?(i=o[0],r(o)):e(o[0])?r(o):(l=!0,t&&r(o),r(0),i(1)))})}}function Uu(e){return t=>e()(t)}function Zs(e){return t=>{var n=e[xo()]&&e[xo()]()||e,r=!1,i=!1,l=!1,o;t(Je(async s=>{if(s===1)r=!0,n.return&&n.return();else if(i)l=!0;else{for(l=i=!0;l&&!r;)if((o=await n.next()).done)r=!0,n.return&&await n.return(),t(0);else try{l=!1,t(oa(o.value))}catch(d){if(n.throw)(r=!!(await n.throw(d)).done)&&t(0);else throw d}i=!1}}))}}function $u(e){return e[Symbol.asyncIterator]?Zs(e):t=>{var n=e[Symbol.iterator](),r=!1,i=!1,l=!1,o;t(Je(s=>{if(s===1)r=!0,n.return&&n.return();else if(i)l=!0;else{for(l=i=!0;l&&!r;)if((o=n.next()).done)r=!0,n.return&&n.return(),t(0);else try{l=!1,t(oa(o.value))}catch(d){if(n.throw)(r=!!n.throw(d).done)&&t(0);else throw d}i=!1}}))}}var Wu=$u;function jn(e){return t=>{var n=!1;t(Je(r=>{r===1?n=!0:n||(n=!0,t(oa(e)),t(0))}))}}function Os(e){return t=>{var n=!1,r=e({next(i){n||t(oa(i))},complete(){n||(n=!0,t(0))}});t(Je(i=>{i===1&&!n&&(n=!0,r())}))}}function Si(){var e,t;return{source:Gn(Os(n=>(e=n.next,t=n.complete,al))),next(n){e&&e(n)},complete(){t&&t()}}}function Mo(e){return Os(t=>(e.then(n=>{Promise.resolve(n).then(()=>{t.next(n),t.complete()})}),al))}function sn(e){return t=>{var n=Pe,r=!1;return t(i=>{i===0?r=!0:i.tag===0?(n=i[0])(0):r||(e(i[0]),n(0))}),{unsubscribe(){r||(r=!0,n(1))}}}}function qu(e){sn(t=>{})(e)}function il(e){return new Promise(t=>{var n=Pe,r;e(i=>{i===0?Promise.resolve(r).then(t):i.tag===0?(n=i[0])(0):(r=i[0],n(0))})})}var Gu=e=>e&&e.message&&(e.extensions||e.name==="GraphQLError")?e:typeof e=="object"&&e.message?new ki(e.message,e.nodes,e.source,e.positions,e.path,e,e.extensions||{}):new ki(e),ll=class extends Error{constructor(e Line truncated
`),l+=`[GraphQL] ${o.message}`;return l})(e.networkError,t);super(n),this.name="CombinedError",this.message=n,this.graphQLErrors=t,this.networkError=e.networkError,this.response=e.response}toString(){return this.message}},xi=(e,t)=>{for(var n=0|(t||5381),r=0,i=0|e.length;r<i;r++)n=(n<<5)+n+e.charCodeAt(r);return n},Pt=new Set,Fo=new WeakMap,Qt=e=>{if(e===null||Pt.has(e))return"null";if(typeof e!="object")return JSON.stringify(e)||"";if(e.toJSON)return Qt(e.toJSON());if(Array.isArray(e)){var t="[";for(var n of e)t.length>1&&(t+=","),t+=Qt(n)||"null";return t+="]"}else if($a!==dn&&e instanceof $a||Wa!==dn&&e instanceof Wa)return"null";var r=Object.keys(e).sort();if(!r.length&&e.constructor&&Object.getPrototypeOf(e).constructor!==Object.prototype.constructor){var i=Fo.get(e)||Math.random().toString(36).slice(2);return Fo.set(e,i),Qt({__key:i})}Pt.add(e);var l="{";for(var o of r){var s=Qt(e[o]);s&&(l.length>1&&(l+=","),l+=Qt(o)+":"+s)}return Pt.delete(e),l+="}"},Ni=(e,t,n)=>{if(!(n==null||typeof n!="object"||n.toJSON||Pt.has(n)))if(Array.isArray(n))for(var r=0,i=n.length;r<i;r++)Ni(e,`${t}.${r}`,n[r]);else if(n instanceof $a||n instanceof Wa)e.set(t,n);else{Pt.add(n);for(var l of Object.keys(n))Ni(e,`${t}.${l}`,n[l])}},Ua=e=>(Pt.clear(),Qt(e)),dn=class{},$a=typeof File<"u"?File:dn,Wa=typeof Blob<"u"?Blob:dn,Yu=/("{3}[\s\S]*"{3}|"(?:\\.|[^"])*")/g,Ku=/(?:#[^\n\r]+)?(?:[\r\n]+|$)/g,Ju=(e,t)=>t%2==0?e.replace(Ku,`
`):e,Ao=e=>e.split(Yu).map(Ju).join("").trim(),Lo=new Map,Ra=new Map,ol=e=>{var t;return typeof e=="string"?t=Ao(e):e.loc&&Ra.get(e.__key)===e?t=e.loc.source.body:(t=Lo.get(e)||Ao(De(e)),Lo.set(e,t)),typeof e!="string"&&!e.loc&&(e.loc={start:0,end:t.length,source:{body:t,name:"gql",locationOffset:{line:1,column:1}}}),t},To=e=>{var t=xi(ol(e));if(e.definitions){var n=_s(e);n&&(t=xi(`
# ${n}`,t))}return t},Qu=e=>{var t,n;return typeof e=="string"?(t=To(e),n=Ra.get(t)||Vu(e)):(t=e.__key||To(e),n=Ra.get(t)||e),n.loc||ol(n),n.__key=t,Ra.set(t,n),n},nn=(e,t,n)=>{var r=t||{},i=Qu(e),l=Ua(r),o=i.__key;return l!=="{}"&&(o=xi(l,o)),{key:o,query:i,variables:r,extensions:n}},_s=e=>{for(var t of e.definitions)if(t.kind===Cu.OPERATION_DEFINITION)return t.name?t.name.value:void 0},Zo=(e,t,n)=>{if(!("data"in t||"errors"in t&&Array.isArray(t.errors)))throw new Error("No Content");var r=e.kind==="subscription";return{operation:e,data:t.data,error:Array.isArray(t.errors)?new ll({graphQLErrors:t.errors,response:n}):void 0,extensions:t.extensions?{...t.extensions}:void 0,hasNext:t.hasNext==null?r:t.hasNext,stale:!1}},Mi=(e,t)=>{if(typeof e=="object"&&e!=null&&(!e.constructor||e.constructor===Object||Array.isArray(e))){e=Array.isArray(e)?[...e]:{...e};for(var n of Object.keys(t))e[n]=Mi(e[n],t[n]);return e}return t},Xu=(e,t,n,r)=>{var i=e.error?e.error.graphQLErrors:[],l=!!e.extensions||!!t.extensions,o={...e.extensions,...t.extensions},s=t.incremental;"path"in t&&(s=[t]);var d={data:e.data};if(s){var c=function(m){Array.isArray(m.errors)&&i.push(...m.errors),m.extensions&&(Object.assign(o,m.extensions),l=!0);var p="data",v=d,g=[];if(m.path)g=m.path;else if(r){var y=r.find(C=>C.id===m.id);m.subPath?g=[...y.path,...m.subPath]:g=y.path}for(var w=0,b=g.length;w<b;p=g[w++])v=v[p]=Array.isArray(v[p])?[...v[p]]:{...v[p]};if(m.items)for(var h=+p>=0?p:0,f=0,E=m.items.length;f<E;f++)v[h+f]=Mi(v[h+f],m.items[f]);else m.data!==void 0&&(v[p]=Mi(v[p],m.data))};for(var u of s)c(u)}else d.data=t.data||e.data,i=t.errors||i;return{operation:e.operation,data:d.data,error:i.length?new ll({graphQLErrors:i,response:n}):void 0,extensions:l?o:void 0,hasNext:t.hasNext!=null?t.hasNext:e.hasNext,stale:!1}},Is=(e,t,n)=>({operation:e,data:void 0,error:new ll({networkError:t,response:n}),extensions:void 0,hasNext:!1,stale:!1});function e2(e){return{query:e.extensions&&e.extensions.persistedQuery&&!e.extensions.persistedQuery.miss?void 0:ol(e.query),operationName:_s(e.query),variables:e.variables||void 0,extensions:e.extensions}}var t2=(e,t)=>{var n=e.kind==="query"&&e.context.preferGetMethod;if(!n||!t)return e.context.url;var r=new URL(e.context.url);for(var i in t){var l=t[i];l&&r.searchParams.set(i,typeof l=="object"?Ua(l):l)}var o=r.toString();return o.length>2047&&n!=="force"?(e.context.preferGetMethod=!1,e.context.url):o},n2=(e,t)=>{if(t&&!(e.kind==="query"&&e.context.preferGetMethod)){var n=Ua(t),r=(s=>{var d=new Map;return($a!==dn||Wa!==dn)&&(Pt.clear(),Ni(d,"variables",s)),d})(t.variables);if(r.size){var i=new FormData;i.append("operations",n),i.append("map",Ua({...[...r.keys()].map(s=>[s])}));var l=0;for(var o of r.values())i.append(""+l++,o);return i}return n}},a2=(e,t)=>{var n={accept:e.kind==="subscription"?"text/event-stream, multipart/mixed":"application/graphql-response+json, application/graphql+json, application/json, text/event-stream, multipart/mixed"},r=(typeof e.context.fetchOptions=="function"?e.context.fetchOptions():e.context.fetchOptions)||{};if(r.headers)for(var i in r.headers)n[i.toLowerCase()]=r.headers[i];var l=n2(e,t);return typeof l=="string"&&!n["content-type"]&&(n["content-type"]="application/json"),{...r,method:l?"POST":"GET",body:l,headers:n}},r2=typeof TextDecoder<"u"?new TextDecoder:null,i2=/boundary="?([^=";]+)"?/i,l2=/data: ?([^\n]+)/,Oo=e=>e.constructor.name==="Buffer"?e.toString():r2.decode(e);async function*_o(e){if(e.body[Symbol.asyncIterator])for await(var t of e.body)yield Oo(t);else{var n=e.body.getReader(),r;try{for(;!(r=await n.read()).done;)yield Oo(r.value)}finally{n.cancel()}}}async function*Io(e,t){var n="",r;for await(var i of e)for(n+=i;(r=n.indexOf(t))>-1;)yield n.slice(0,r),n=n.slice(r+t.length)}async function*o2(e,t,n){var r=!0,i=null,l;try{yield await Promise.resolve();var o=(l=await(e.context.fetch||fetch)(t,n)).headers.get("Content-Type")||"",s;/multipart\/mixed/i.test(o)?s=async function*(u,m){var p=u.match(i2),v="--"+(p?p[1]:"-"),g=!0,y;for await(var w of Io(_o(m),`\r
`+v)){if(g){g=!1;var b=w.indexOf(v);if(b>-1)w=w.slice(b+v.length);else continue}try{yield y=JSON.parse(w.slice(w.indexOf(`\r
\r
`)+4))}catch(h){if(!y)throw h}if(y&&y.hasNext===!1)break}y&&y.hasNext!==!1&&(yield{hasNext:!1})}(o,l):/text\/event-stream/i.test(o)?s=async function*(u){var m;for await(var p of Io(_o(u),`
`)){var v=p.match(l2);if(v){var g=v[1];try{yield m=JSON.parse(g)}catch(y){if(!m)throw y}if(m&&m.hasNext===!1)break}}m&&m.hasNext!==!1&&(yield{hasNext:!1})}(l):/text\//i.test(o)?s=async function*(u){var m=await u.text();try{var p=JSON.parse(m);yield p}catch{throw new Error(m)}}(l):s=async function*(u){yield JSON.parse(await u.text())}(l);var d;for await(var c of s)c.pending&&!i?d=c.pending:c.pending&&(d=[...d,...c.pending]),i=i?Xu(i,c,l,d):Zo(e,c,l),r=!1,yield i,r=!0;i||(yield i=Zo(e,{},l))}catch(u){if(!r)throw u;yield Is(e,l&&(l.status<200||l.status>=300)&&l.statusText?new Error(l.statusText):u,l)}}function s2(e,t,n){var r;return typeof AbortController<"u"&&(n.signal=(r=new AbortController).signal),rl(()=>{r&&r.abort()})(Ze(i=>!!i)(Zs(o2(e,t,n))))}var Fi=(e,t)=>{if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(i=>Fi(i));if(e&&typeof e=="object"&&(t||"__typename"in e)){var n={};for(var r in e)r==="__typename"?Object.defineProperty(n,"__typename",{enumerable:!1,value:e.__typename}):n[r]=Fi(e[r]);return n}else return e};function Ro(e){var t=n=>e(n);return t.toPromise=()=>il(kr(1)(Ze(n=>!n.stale&&!n.hasNext)(t))),t.then=(n,r)=>t.toPromise().then(n,r),t.subscribe=n=>sn(n)(t),t}function qa(e,t,n){return{...t,kind:e,context:t.context?{...t.context,...n}:n||t.context}}var d2=()=>{},c2=({forward:e,dispatchDebug:t})=>n=>{var r=Da(l=>{var o=e2(l),s=t2(l,o),d=a2(l,o),c=Ls(Ze(u=>u.kind==="teardown"&&u.key===l.key)(n))(s2(l,s,d));return c})(Ze(l=>l.kind!=="teardown"&&(l.kind!=="subscription"||!!l.context.fetchSubscriptions))(n)),i=e(Ze(l=>l.kind==="teardown"||l.kind==="subscription"&&!l.context.fetchSubscriptions)(n));return qn([r,i])},u2=e=>({client:t,forward:n,dispatchDebug:r})=>e.reduceRight((i,l)=>l({client:t,forward(o){return Gn(i(Gn(o)))},dispatchDebug(o){}}),n),m2=({onOperation:e,onResult:t,onError:n})=>({forward:r})=>i=>Da(l=>{n&&l.error&&n(l.error,l.operation);var o=t&&t(l)||l;return"then"in o?Mo(o):jn(o)})(r(Da(l=>{var o=e&&e(l)||l;return"then"in o?Mo(o):jn(o)})(i))),p2=({dispatchDebug:e})=>t=>Ze(n=>!1)(t),h2=function e(t){var n=0,r=new Map,i=new Map,l=new Set,o=[],s={url:t.url,fetchSubscriptions:t.fetchSubscriptions,fetchOptions:t.fetchOptions,fetch:t.fetch,preferGetMethod:t.preferGetMethod,requestPolicy:t.requestPolicy||"cache-first"},d=Si();function c(h){(h.kind==="mutation"||h.kind==="teardown"||!l.has(h.key))&&(h.kind==="teardown"?l.delete(h.key):h.kind!=="mutation"&&l.add(h.key),d.next(h))}var u=!1;function m(h){if(h&&c(h),!u){for(u=!0;u&&(h=o.shift());)c(h);u=!1}}var p=h=>{var f=Ls(Ze(E=>E.kind==="teardown"&&E.key===h.key)(d.source))(Ze(E=>E.operation.kind===h.kind&&E.operation.key===h.key&&(!E.operation.context._instance||E.operation.context._instance===h.context._instance))(b));return t.maskTypename&&(f=wi(E=>({...E,data:Fi(E.data,!0)}))(f)),h.kind!=="query"?f=Ts(E=>!!E.hasNext,!0)(f):f=No(E=>{var C=jn(E);return E.stale||E.hasNext?C:qn([C,wi(()=>(E.stale=!0,E))(kr(1)(Ze(Z=>Z.key===h.key)(d.source)))])})(f),h.kind!=="mutation"?f=rl(()=>{l.delete(h.key),r.delete(h.key),i.delete(h.key),u=!1;for(var E=o.length-1;E>=0;E--)o[E].key===h.key&&o.splice(E,1);c(qa("teardown",h,h.context))})(za(E=>{if(E.stale){for(var C of o)if(C.key===E.operation.key){l.delete(C.key);break}}else E.hasNext||l.delete(h.key);r.set(h.key,E)})(f)):f=Ci(()=>{c(h)})(f),Gn(f)},v=this instanceof e?this:Object.create(e.prototype),g=Object.assign(v,{suspense:!!t.suspense,operations$:d.source,reexecuteOperation(h){if(h.kind==="teardown")m(h);else if(h.kind==="mutation"||i.has(h.key)){for(var f=!1,E=0;E<o.length;E++)f=f||o[E].key===h.key;f||l.delete(h.key),o.push(h),Promise.resolve().then(m)}},createRequestOperation(h,f,E){return E||(E={}),qa(h,f,{_instance:h==="mutation"?n=n+1|0:void 0,...s,...E,requestPolicy:E.requestPolicy||s.requestPolicy,suspense:E.suspense||E.suspense!==!1&&g.suspense})},executeRequestOperation(h){return h.kind==="mutation"?Ro(p(h)):Ro(Uu(()=>{var f=i.get(h.key);f||i.set(h.key,f=p(h)),f=Ci(()=>{m(h)})(f);var E=r.get(h.key);return h.kind==="query"&&E&&(E.stale||E.hasNext)?No(jn)(qn([f,Ze(C=>C===r.get(h.key))(jn(E))])):f}))},executeQuery(h,f){var E=g.createRequestOperation("query",h,f);return g.executeRequestOperation(E)},executeSubscription(h,f){var E=g.createRequestOperation("subscription",h,f);return g.executeRequestOperation(E)},executeMutation(h,f){var E=g.createRequestOperation("mutation",h,f);return g.executeRequestOperation(E)},readQuery(h,f,E){var C=null;return sn(Z=>{C=Z})(g.query(h,f,E)).unsubscribe(),C},query:(h,f,E)=>g.executeQuery(nn(h,f),E),subscription:(h,f,E)=>g.executeSubscription(nn(h,f),E),mutation:(h,f,E)=>g.executeMutation(nn(h,f),E)}),y=d2,w=u2(t.exchanges),b=Gn(w({client:g,dispatchDebug:y,forward:p2({dispatchDebug:y})})(d.source));return qu(b),g},f2={},wr=He(f2),g2=wr.Provider;wr.Consumer;wr.displayName="UrqlContext";var sl=()=>{var e=Gt(wr);return e},Ai={fetching:!1,stale:!1,error:void 0,data:void 0,extensions:void 0,operation:void 0},v2=(e,t)=>e===t||!(!e||!t||e.key!==t.key),$Line truncated
query VisualTestsProjectCountQuery {
viewer {
projectCount
accounts {
newProjectUrl
}
}
}
`),Um=({onBack:e,hasProjectId:t,setAccessToken:n,setCreatedProjectId:r,exchangeParameters:i})=>{let l=sl(),o=hs(),{user_code:s,verificationUrl:d}=i,c=Ee(),u=Ee(),m=Ee(),p=K(async y=>{if(y.message==="login"&&u.current?.(d),y.message==="grant")try{let w=await cc(i);if(!w)throw new Error("Failed to fetch an access token");c.current=w;let b=Ps(w),{data:h}=await l.query(zm,{},{fetchOptions:b});if(!h?.viewer)throw new Error("Failed to fetch initial project list");if(h.viewer.projectCount>0||t)n(c.current),m.current?.();else{if(!h.viewer.accounts[0])throw new Error("User has no accounts!");if(!h.viewer.accounts[0].newProjectUrl)throw new Error("Unexpected missing project URL");u.current?.(h.viewer.accounts[0].newProjectUrl)}}catch(w){o("Login Error",w)}y.message==="createdProject"&&(c.current?(n(c.current),r(`Project:${y.projectId}`),m.current?.()):o("Unexpected missing access token",new Error))},[d,i,l,t,n,o,r]),[v,g]=Gs(p);return u.current=v,m.current=g,a.createElement(pe,{footer:null,ignoreConfig:!0},a.createElement(nl,{onBack:e}),a.createElement(de,null,a.createElement(ne,null,a.createElement("div",null,a.createElement(le,null,"Verify your account"),a.createElement("div",null,a.createElement(j,{center:!0,muted:!0},"Check this verification code on Chromatic to grant access to your published Storybooks.")),a.createElement(Dm,null,s?.split("").map((y,w)=>a.createElement("li",{key:`${w}-${y}`},y.replace(/[^A-Z0-9]/,""))))),a.createElement(re,{variant:"solid",size:"medium",onClick:()=>v(d)},"Go to Chromatic"))))},Ys=e=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M5.06982 9.68493L7.99484 4.63927L14.5786 4.62406C14.5252 4.52043 14.4696 4.41742 14.4109 4.31532C12.372 0.768556 7.84405 -0.453864 4.29726 1.58495C3.24614 2.1892 2.39921 3.01211 1.78076 3.96327L5.06982 9.68493Z",fill:"#DB4437"}),a.createElement("path",{d:"M10.9276 9.68457L5.09539 9.6743L1.79036 3.98022C1.72727 4.07822 1.66591 4.17795 1.60682 4.27985C-0.445348 7.81892 0.759985 12.3515 4.29905 14.4037C5.34791 15.0118 6.48403 15.3338 7.617 15.3939L10.9276 9.68457Z",fill:"#0F9D58"}),a.createElement("path",{d:"M7.98649 4.61194L10.9032 9.66241L7.63525 15.3778C7.75167 15.3833 7.86871 15.3863 7.98649 15.3863C12.0775 15.3863 15.3939 12.0699 15.3939 7.97893C15.3939 6.76648 15.1025 5.62211 14.5861 4.61194L7.98649 4.61194Z",fill:"#FFCD40"}),a.createElement("path",{d:"M8.01367 4.6366V6.40005L14.613 4.6366H8.01367Z",fill:"url(#paint0_radial_466_21161)"}),a.createElement("path",{d:"M1.78198 4.00098L6.60102 8.8192L5.09764 9.687L1.78198 4.00098Z",fill:"url(#paint1_radial_466_21161)"}),a.createElement("path",{d:"M7.6626 15.4017L9.42689 8.81921L10.9303 9.68702L7.6626 15.4017Z",fill:"url(#paint2_radial_466_21161)"}),a.createElement("ellipse",{cx:"8.01347",cy:"8.00358",rx:"3.36699",ry:"3.36699",fill:"#F1F1F1"}),a.createElement("ellipse",{cx:"8.01367",cy:"8.00354",rx:"2.69361",ry:"2.6936",fill:"#4285F4"}),a.createElement("defs",null,a.createElement("radialGradient",{id:"paint0_radial_466_21161",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(7.69229 4.63226) scale(7.07721 1.89116)"},a.createElement("stop",{stopColor:"#3E2723",stopOpacity:"0.2"}),a.createElement("stop",{offset:"1",stopColor:"#3E2723",stopOpacity:"0.01"})),a.createElement("radialGradient",{id:"paint1_radial_466_21161",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(1.77445 4.00677) scale(6.56938 7.75127)"},a.createElement("stop",{stopColor:"#3E2723",stopOpacity:"0.2"}),a.createElement("stop",{offset:"1",stopColor:"#3E2723",stopOpacity:"0.01"})),a.createElement("radialGradient",{id:"paint2_radial_466_21161",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(8.00025 8.01489) scale(7.39644 14.8995)"},a.createElement("stop",{stopColor:"#263238",stopOpacity:"0.2"}),a.createElement("stop",{offset:"1",stopColor:"#263238",stopOpacity:"0.01"})))),Ks=e=>a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},a.createElement("path",{d:"M14.9596 5.19849C14.6332 4.41337 13.9721 3.56574 13.453 3.29783C13.8755 4.12612 14.12 4.95699 14.2134 5.57708C14.2134 5.5783 14.2139 5.58133 14.2149 5.58958C13.3657 3.47293 11.9257 2.61943 10.7499 0.761053C10.6905 0.667084 10.631 0.572865 10.573 0.473553C10.5434 0.422834 10.5159 0.371004 10.4903 0.318178C10.4414 0.223861 10.4038 0.124166 10.378 0.0211155C10.3782 0.0162369 10.3765 0.0114673 10.3734 0.00774353C10.3702 0.0040198 10.3658 0.00161108 10.3609 0.000990505C10.3563 -0.000330168 10.3515 -0.000330168 10.3468 0.000990505C10.3458 0.0013655 10.3442 0.00258425 10.3431 0.00302175C10.3414 0.003678 10.3393 0.005178 10.3376 0.00614675C10.3384 0.00502175 10.3402 0.0024905 10.3407 0.00189675C8.45416 1.10677 7.81416 3.15068 7.75535 4.17327C7.00199 4.22506 6.28171 4.50262 5.68841 4.96977C5.62629 4.9173 5.56135 4.86827 5.49388 4.8229C5.3227 4.2240 Line truncated
0% {
transform: translate(0, 0);
}
4.41177% {
transform: translate(3px, 0);
}
8.82353% {
transform: translate(0, 0);
}
13.23529% {
transform: translate(3px, 0);
}
17.64706% {
transform: translate(0, 0);
}
22.05882% {
transform: translate(3px, 0);
}
26.47059% {
transform: translate(0, 0);
}
100% {
transform: translate(0, 0);
}
`,Yr=k(e4)(({theme:e})=>({background:e.base==="dark"?`color-mix(in srgb, ${e.color.positive}, transparent 50%)`:e.color.positive,color:"white",width:20,height:20,padding:4,borderRadius:"50%"})),Kr=k(t4)(({theme:e})=>({background:e.background.hoverable,color:e.color.secondary,width:20,height:20,padding:4,borderRadius:"50%",animation:`${n4} 3.72s ease infinite`,transformOrigin:"50% 50%"})),a4=k.ul({textAlign:"left",listStyleType:"none",margin:0,padding:0,li:{display:"flex",gap:10,padding:10,lineHeight:"20px"}}),Jr=k.div({width:"100%",display:"flex",flexDirection:"column",gap:8}),Na=k.pre(({theme:e})=>({margin:0,padding:"10px 12px",fontSize:"12px",background:e.background.content,border:`1px solid ${e.appBorderColor}`,borderRadius:4})),r4=({gitInfoError:e})=>{let t=e?.message.includes("git init"),n=t||e?.message.includes("one commit"),r=e?.message.includes("user.email");return Ve("Errors",t?"GitNotFound":"GitError"),a.createElement(pe,{footer:null},a.createElement(de,null,r?a.createElement(ne,null,a.createElement("div",null,a.createElement(le,null,"Configure your Git email"),a.createElement(j,{center:!0,muted:!0},"Chromatic requires Git to be configured with an email address to connect local builds to CI builds and link builds to user accounts.")),a.createElement(j,{center:!0,muted:!0},"Run this command to set an email address:"),a.createElement(Na,null,'git config user.email "you@example.com"'),a.createElement(j,{muted:!0,small:!0},a.createElement(Ne,{target:"_blank",href:"https://www.chromatic.com/docs/privacy-policy/",withArrow:!0,secondary:!0},"Privacy policy"))):a.createElement(ne,null,a.createElement("div",null,a.createElement(le,null,"Set up a Git repository"),a.createElement(j,{center:!0,muted:!0},"Chromatic requires Git to associate test results with commits and branches. Run these steps to get started:")),a.createElement(a4,null,a.createElement("li",null,t?a.createElement(Kr,null):a.createElement(Yr,null),a.createElement(Jr,null,a.createElement("span",null,"Initialize a Git repository"),t&&a.createElement(Na,null,"git init"))),a.createElement("li",null,n?a.createElement(Kr,null):a.createElement(Yr,null),a.createElement(Jr,null,a.createElement("span",null,"Stage all files"),n&&a.createElement(Na,null,"git add ."))),a.createElement("li",null,n?a.createElement(Kr,null):a.createElement(Yr,null),a.createElement(Jr,null,a.createElement("span",null,"Commit the changes"),n&&a.createElement(Na,null,'git commit -m "Initial commit"')))),a.createElement(Ne,{target:"_blank",href:"https://www.chromatic.com/docs/visual-tests-addon#git-addon",withArrow:!0,secondary:!0},"Visual tests requirements"))))},i4=k(Ji)(({theme:e})=>({width:40,height:40,padding:10,background:e.color.positive,borderRadius:"100%",color:"white"})),l4=k(Ne)(()=>({marginTop:5})),o4=Qe(`
query ProjectQuery($projectId: ID!) {
project(id: $projectId) {
id
name
webUrl
lastBuild {
branch
number
}
}
}
`),s4=({projectId:e,configFile:t,goToNext:n})=>{Ve("LinkProject","LinkedProject");let[{data:r,fetching:i,error:l}]=dl({query:o4,variables:{projectId:e}});return a.createElement(pe,{footer:a.createElement(br,null,a.createElement(Ue,null,r?.project?.lastBuild&&a.createElement(j,{style:{marginLeft:5}},"Last build: ",r.project.lastBuild.number," on branch"," ",r.project.lastBuild.branch)),a.createElement(Ue,{push:!0},a.createElement(yr,null)))},a.createElement(de,null,a.createElement(ne,null,i&&a.createElement("p",null,"Loading..."),l&&a.createElement("p",null,l.message),r?.project&&a.createElement(a.Fragment,null,a.createElement(i4,null),a.createElement("div",null,a.createElement(le,null,"Project linked!"),a.createElement(j,{center:!0,muted:!0,style:{maxWidth:500}},"The ",a.createElement(Te,null,"projectId")," for ",a.createElement("strong",null,r.project.name)," was added in"," ",a.createElement(Te,null,t)," to sync tests with Chromatic. Please commit this change to continue using this addon.")),a.createElement(bt,null,a.createElement(re,{variant:"solid",size:"medium",onClick:()=>n()},"Catch a UI change"),a.createElement(l4,{href:"https://www.chromatic.com/docs/cli",target:"_blank",withArrow:!0,secondary:!0},"What's a project ID?"))))))};function d4(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e=="string"?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,"");var i=r.reduce(function(s,d){var c=d.match(/\n([\t ]+|(?!\s).)/g);return c?s.concat(c.map(function(u){var m,p;return(p=(m=u.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&p!==void 0?p:0})):s},[]);if(i.length){var l=new RegExp(`
[ ]{`+Math.min.apply(Math,i)+"}","g");r=r.map(function(s){return s.replace(l,`
`)})}r[0]=r[0].replace(/^\r?\n/,"");var o=r[0];return t.forEach(function(s,d){var c=o.match(/(?:^|\n)( *)$/),u=c?c[1]:"",m=s;typeof s=="string"&&s.includes(`
`)&&(m=String(s).split(`
`).map(function(p,v){return v===0?p:""+u+p}).join(`
`)),o+=m+r[d+1]}),o}var c4=k.div(({theme:e})=>({"&& > *":{margin:0},"&& pre":{color:e.base==="light"?e.color.darker:e.color.lighter,background:e.base==="light"?e.color.lightest:e.color.darkest,fontSize:"12px",lineHeight:"16px",textAlign:"left",padding:"15px !important"}})),u4="https://www.chromatic.com/docs/visual-tests-addon/#configure";function m4({projectId:e,configFile:t}){return Ve("LinkProject","LinkingProjectFailed"),a.createElement(pe,null,a.createElement(de,null,a.createElement(ne,null,a.createElement("div",null,a.createElement(le,null,"Add the project ID to your Chromatic config"),a.createElement(j,{center:!0,muted:!0},"The ",a.createElement(Te,null,"projectId")," will be used to sync tests with Chromatic. Please commit this change to continue using the addon. The file should be saved at"," ",a.createElement(Te,null,t),".")),a.createElement(c4,null,a.createElement(Te,null,d4`
{
"projectId": "${e}",
}
`)),a.createElement(Ne,{secondary:!0,withArrow:!0,target:"_blank",href:u4},"What's this for?"))))}var p4=Qe(`
query SelectProjectsQuery {
viewer {
accounts {
id
name
avatarUrl
newProjectUrl
projects {
id
name
webUrl
lastBuild {
branch
number
}
}
}
}
}
`),h4=({createdProjectId:e,setCreatedProjectId:t,onUpdateProject:n})=>{let r=a.useCallback(async i=>{await n(i)},[n]);return a.createElement(v4,{createdProjectId:e,setCreatedProjectId:t,onSelectProjectId:r})},Ma=k.div(({theme:e})=>({fontSize:`${e.typography.size.s1-1}px`,fontWeight:e.typography.weight.bold,color:e.base==="light"?e.color.dark:e.color.light,backgroundColor:"inherit",padding:"7px 15px",borderBottom:`1px solid ${e.appBorderColor}`,lineHeight:"18px",letterSpacing:"0.38em",textTransform:"uppercase"})),Ho=k.div({}),jo=k.div(({theme:e})=>({background:e.base==="light"?e.color.lighter:e.color.darker})),Do=k.div(({theme:e})=>({background:e.base==="light"?e.color.lightest:e.color.darkest,borderRadius:5,border:`1px solid ${e.appBorderColor}`,height:260,maxWidth:420,minWidth:260,width:"100%",overflow:"hidden",textAlign:"left",position:"relative",display:"flex","> *":{flex:1,display:"flex",flexDirection:"column",width:"50%"}})),Fa=k.div({height:"100%",overflowY:"auto"}),f4=k(ne)({width:"100%"}),g4=k(O5)({marginRight:10});function v4({createdProjectId:e,setCreatedProjectId:t,onSelectProjectId:n}){let[{data:r,fetching:i,error:l},o]=dl({query:p4});te(()=>{let h=setInterval(o,5e3);return()=>clearInterval(h)},[o]);let[s,d]=Be("selectedAccountId"),c=r?.viewer?.accounts.find(h=>h.id===s),u=K(h=>d(h.id),[d]);te(()=>{!s&&r?.viewer?.accounts&&u(r.viewer.accounts[0])},[r,s,u]);let[m,p]=Be("isSelectingProject",!1),v=K(h=>{p(!0),n(h.id);let f=setTimeout(()=>{p(!1)},1e3);return()=>clearTimeout(f)},[n,p]),g=K(async h=>{h.message==="createdProject"&&(o(),t(h.projectId))},[o,t]),[y,w]=Gs(g),b=e&&c?.projects?.find(h=>h?.id.endsWith(e));return te(()=>{b&&(w(),v(b))},[b,v,w]),Ve("LinkProject","LinkProject"),a.createElement(pe,null,a.createElement(de,null,a.createElement(f4,null,a.createElement("div",null,a.createElement(le,null,"Select a project"),a.createElement(j,{muted:!0},"Your tests will sync with this project.")),l&&a.createElement("p",null,l.message),!r&&i&&a.createElement(Do,null,a.createElement(Ho,null,a.createElement(Ma,null,"Accounts"),a.createElement(Fa,null,a.createElement(qe,{appearance:"secondary",isLoading:!0}),a.createElement(qe,{appearance:"secondary",isLoading:!0}),a.createElement(qe,{appearance:"secondary",isLoading:!0}),a.createElement(qe,{appearance:"secondary",isLoading:!0}),a.createElement(qe,{appearance:"secondary",isLoading:!0}))),a.createElement(jo,null,a.createElement(Ma,null,"Projects"),a.createElement(Fa,{"data-testid":"right-list"},a.createElement(qe,{appearance:"secondary",isLoading:!0}),a.createElement(qe,{appearance:"secondary",isLoading:!0}),a.createElement(qe,{appearance:"secondary",isLoading:!0})))),r?.viewer?.accounts&&a.createElement(Do,null,a.createElement(Ho,null,a.createElement(Ma,null,"Accounts"),a.createElement(Fa,{"data-testid":"left-list"},r.viewer.accounts?.map(h=>a.createElement(qe,{key:h.id,title:h.name,appearance:"secondary",left:a.createElement(g4,{src:h.avatarUrl??void 0,size:"tiny"}),onClick:()=>u(h),active:s===h.id})))),a.createElement(jo,null,a.createElement(Ma,null,"Projects"),a.createElement(Fa,{"data-testid":"right-list"},c&&a.createElement(qe,{isLink:!1,onClick:()=>{if(!c?.newProjectUrl)throw new Error("Unexpected missing `newProjectUrl` on account");y(c.newProjectUrl)},title:a.createElement(Ne,{isButton:!0,withArrow:!0},"Create new project")}),c?.projects?.map(h=>h&&a.createElement(qe,{appearance:"secondary",key:h.id,title:h.name,right:a.createElement(Ec,{"aria-label":h.name}),onClick:()=>v(h),disabled:m}))))))))}var y4=()=>a.createElement(pe,{footer:null},a.createElement(de,null,a.createElement(ne,null,a.createElement("div",null,a.createElement(le,null,"Visual tests"),a.createElement(j,{center:!0,muted:!0},"Visual tests only runs locally. To test this Storybook, clone it to your machine and run ",a.createElement(Te,null,"npx storybook dev"),"."))))),b4=({offline:e=!1})=>a.createElement(pe,{footer:null},a.createElement(de,null,a.createElement(ne,null,a.createElement("div",null,a.createElement(le,null,"Can't connect to Chromatic"),a.createElement(j,{center:!0,muted:!0},e?"You're offline. Double check your internet connection.":"We're having trouble connecting to the Chromatic API.")),!e&&a.createElement(Ne,{href:"https://status.chromatic.com",target:"_blank",rel:"noreferrer",withArrow:!0},"Chromatic API status")))),E4=()=>(Ve("Uninstalled","uninstalled"),a.createElement(pe,{footer:!1},a.createElement(de,null,a.createElement(ne,null,a.createElement("div",null,a.createElement(le,null,"Uninstall complete"),a.createElement(j,{center:!0,muted:!0},"Visual tests will vanish the next time you restart your Storybook.")))))),Qs={isRunning:!1,startBuild:()=>{},stopBuild:()=>{}},Xs=He(Qs),sa=()=>ht(Xs,"RunBuild"),k4=({children:e,watchState:t=Qs})=>a.createElement(Xs.Provider,{value:t},e),_i={PENDING:"status-value:warning",FAILED:"status-value:error",DENIED:"status-value:error",BROKEN:"status-value:error",IN_PROGRESS:"status-value:pending",ACCEPTED:"status-value:success",PASSED: Line truncated
@keyframes joyride-beacon-inner {
20% {
opacity: 0.9;
}
90% {
opacity: 0.7;
}
}
@keyframes joyride-beacon-outer {
0% {
transform: scale(1);
}
45% {
opacity: 0.7;
transform: scale(0.75);
}
100% {
opacity: 0.9;
transform: scale(1);
}
}
`)),t.appendChild(n)}componentDidMount(){let{shouldFocus:e}=this.props;setTimeout(()=>{O.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){let e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){let{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:l,size:o,step:s,styles:d}=this.props,c=O.string(i.open)?i.open:(0,s3.default)(i.open),u={"aria-label":c,onClick:l,onMouseEnter:l,ref:this.setBeaconRef,title:c},m;return e?m=S(e,{continuous:t,index:n,isLastStep:r,size:o,step:s,...u}):m=S("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:d.beacon,type:"button",...u},S("span",{style:d.beaconInner}),S("span",{style:d.beaconOuter})),m}};function Z3({styles:e}){return S("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})}var O3=Z3,_3=class extends Tt{constructor(){super(...arguments),_(this,"isActive",!1),_(this,"resizeTimeout"),_(this,"scrollTimeout"),_(this,"scrollParent"),_(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),_(this,"handleMouseMove",e=>{let{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:i,top:l,width:o}=this.spotlightStyles,s=i==="fixed"?e.clientY:e.pageY,d=i==="fixed"?e.clientX:e.pageX,c=s>=l&&s<=l+n,u=d>=r&&d<=r+o&&c;u!==t&&this.updateState({mouseOverSpotlight:u})}),_(this,"handleScroll",()=>{let{target:e}=this.props,t=Mt(e);if(this.scrollParent!==document){let{isScrolling:n}=this.state;n||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else la(t,"sticky")&&this.updateState({})}),_(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){let{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,i=Mt(r);this.scrollParent=Mr(i??document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;let{lifecycle:n,spotlightClicks:r}=this.props,{changed:i}=lr(e,this.props);i("lifecycle",q.TOOLTIP)&&((t=this.scrollParent)==null||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{let{isScrolling:l}=this.state;l||this.updateState({showSpotlight:!0})},100)),(i("spotlightClicks")||i("disableOverlay")||i("lifecycle"))&&(r&&n===q.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):n!==q.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(e=this.scrollParent)==null||e.removeEventListener("scroll",this.handleScroll)}get spotlightStyles(){var e,t,n;let{showSpotlight:r}=this.state,{disableScrollParentFix:i=!1,spotlightClicks:l,spotlightPadding:o=0,styles:s,target:d}=this.props,c=Mt(d),u=A0(c),m=la(c),p=f3(c,o,i);return{...f1()?s.spotlightLegacy:s.spotlight,height:Math.round(((e=u?.height)!=null?e:0)+o*2),left:Math.round(((t=u?.left)!=null?t:0)-o),opacity:r?1:0,pointerEvents:l?"none":"auto",position:m?"fixed":"absolute",top:p,transition:"opacity 0.2s",width:Math.round(((n=u?.width)!=null?n:0)+o*2)}}updateState(e){this.isActive&&this.setState(t=>({...t,...e}))}render(){let{mouseOverSpotlight:e,showSpotlight:t}=this.state,{disableOverlay:n,disableOverlayClose:r,lifecycle:i,onClickOverlay:l,placement:o,styles:s}=this.props;if(n||i!==q.TOOLTIP)return null;let d=s.overlay;f1()&&(d=o==="center"?s.overlayLegacyCenter:s.overlayLegacy);let c={cursor:r?"default":"pointer",height:u3(),pointerEvents:e?"none":"auto",...d},u=o!=="center"&&t&&S(O3,{styles:this.spotlightStyles});if(L0()==="safari"){let{mixBlendMode:m,zIndex:p,...v}=c;u=S("div",{style:{...v}},u),delete c.backgroundColor}return S("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:l,role:"presentation",style:c},u)}},I3=class extends Tt{constructor(){super(...arguments),_(this,"node",null)}componentDidMount(){let{id:e}=this.props;xt()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),Zn||this.renderReact15())}componentDidUpdate(){xt()&&(Zn||this.renderReact15())}componentWillUnmount(){!xt()||!this.node||(Zn||Bl(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!xt())return;let{children:e}=this.props;this.node&&Pl(this,e,this.node)}renderReact16(){if(!xt()||!Zn)return null;let{children:e}=this.props;return this.node?Ea(e,this.node):null}render(){return Zn?this.renderReact16():null}};function R3({styles:e,...t}){let{color:n,height:r,width:i,...l}=e;return a.createElement("button",{style:l,type:"button" Line truncated
query AddonVisualTestsBuild(
$projectId: ID!
$branch: String!
$gitUserEmailHash: String!
$repositoryOwnerName: String
$storyId: String!
$testStatuses: [TestStatus!]!
$selectedBuildId: ID!
$hasSelectedBuildId: Boolean!
) {
project(id: $projectId) {
name
manageUrl
account {
billingUrl
suspensionReason
}
features {
uiTests
}
lastBuildOnBranch: lastBuild(
branches: [$branch]
repositoryOwnerName: $repositoryOwnerName
localBuilds: { localBuildEmailHash: $gitUserEmailHash }
) {
...LastBuildOnBranchBuildFields
...SelectedBuildFields @skip(if: $hasSelectedBuildId)
}
lastBuild {
id
slug
branch
}
}
selectedBuild: build(id: $selectedBuildId) @include(if: $hasSelectedBuildId) {
...SelectedBuildFields
}
viewer {
preferences {
vtaOnboarding
}
projectMembership(projectId: $projectId) {
userCanReview: meetsAccessLevel(minimumAccessLevel: REVIEWER)
}
}
}
`),Y3=Qe(`
fragment LastBuildOnBranchBuildFields on Build {
__typename
id
status
committedAt
... on StartedBuild {
testsForStatus: tests(first: 1000, statuses: $testStatuses) {
nodes {
...StatusTestFields
}
}
testsForStory: tests(storyId: $storyId) {
nodes {
...LastBuildOnBranchTestFields
}
}
}
... on CompletedBuild {
result
testsForStatus: tests(first: 1000, statuses: $testStatuses) {
nodes {
...StatusTestFields
}
}
testsForStory: tests(storyId: $storyId) {
nodes {
...LastBuildOnBranchTestFields
}
}
}
}
`),K3=Qe(`
fragment SelectedBuildFields on Build {
__typename
id
number
branch
commit
committedAt
uncommittedHash
status
... on StartedBuild {
startedAt
testsForStory: tests(storyId: $storyId) {
nodes {
...StoryTestFields
}
}
}
... on CompletedBuild {
startedAt
testsForStory: tests(storyId: $storyId) {
nodes {
...StoryTestFields
}
}
}
}
`),I0=Qe(`
fragment StatusTestFields on Test {
id
status
result
story {
storyId
}
}
`),J3=Qe(`
fragment LastBuildOnBranchTestFields on Test {
status
result
}
`),Q3=Qe(`
fragment StoryTestFields on Test {
id
status
result
webUrl
comparisons {
id
result
browser {
id
key
name
version
}
captureDiff {
diffImage(signed: true) {
imageUrl
imageWidth
}
focusImage(signed: true) {
imageUrl
imageWidth
}
}
headCapture {
captureImage(signed: true) {
backgroundColor
imageUrl
imageWidth
imageHeight
thumbnailUrl
}
captureError {
kind
... on CaptureErrorInteractionFailure {
error
}
... on CaptureErrorJSError {
error
}
... on CaptureErrorFailedJS {
error
}
}
}
baseCapture {
captureImage(signed: true) {
imageUrl
imageWidth
imageHeight
}
}
}
mode {
name
globals
}
story {
storyId
name
component {
name
}
}
}
`),X3=Qe(`
mutation ReviewTest($input: ReviewTestInput!) {
reviewTest(input: $input) {
updatedTests {
id
status
}
userErrors {
... on UserError {
__typename
message
}
... on BuildSupersededError {
build {
id
}
}
... on TestUnreviewableError {
test {
id
}
}
}
}
}
`),e7=({projectId:e,storyId:t,gitInfo:n,selectedBuildInfo:r})=>{let[{data:i,error:l,operation:o},s]=dl({query:G3,variables:{projectId:e,storyId:t,testStatuses:Object.keys(_i),branch:n.branch||"",...n.slug?{repositoryOwnerName:n.slug.split("/",1)[0]}:{},gitUserEmailHash:n.userEmailHash,selectedBuildId:r?.buildId||"",hasSelectedBuildId:!!r}});te(()=>{let y=setInterval(s,5e3);return()=>clearInterval(y)},[s]);let d=o&&t&&o.variables.storyId!==t,c=an(Y3,i?.project?.lastBuildOnBranch),u=[...an(J3,c&&"testsForStory"in c&&c.testsForStory?c.testsForStory.nodes:[])],m=c?.committedAt>n.committedAt,p=!!c&&!m,v=!!c&&u.every(y=>y.status!=="IN_PROGRESS"),g=an(K3,i?.selectedBuild??(v?i?.project?.lastBuildOnBranch:void 0));return{account:i?.project?.account,features:i?.project?.features,manageUrl:i?.project?.manageUrl,hasData:!!i&&!d,hasProject:!!i?.project,hasSelectedBuild:g?.branch.split(":").at(-1)===n.branch,lastBuildOnBranch:c,lastBuildOnBranchIsNewer:m,lastBuildOnBranchIsReady:v,lastBuildOnBranchIsSelectable:p,selectedBuild:g,selectedBuildMatchesGit:g?.branch.split(":").at(-1)===n.branch&&g?.commit===n.commit&&g?.uncommittedHash===n.uncommittedHash,rerunQuery:s,queryError:l,userCanReview:!!i?.viewer?.projectMembership?.userCanReview,vtaOnboarding:i?.viewer?.preferences?.vtaOnboarding}},El=He(null),R0=He(null),t7=()=>ht(El,"Build"),B0=()=>{let{selectedBuild:e}=ht(El,"Build");if(!e)throw new Error("No selectedBuild on Build context");return e},Wt=()=>ht(R0,"Story"),ai=({children:e,watchState:t})=>{let n=!!t?.selectedBuild&&"testsForStory"in t.selectedBuild,r=t?.selectedBuild&&"testsForStory"in t.selectedBuild&&t.selectedBuild.testsForStory?.nodes,i=[...an(Q3,r||[])],l=bl(i),{toggleDiff:o}=vn();return te(()=>o(l.changeCount>0),[o,l.changeCount]),a.createElement(El.Provider,{value:ft(()=>t,[JSON.stringify(t?.selectedBuild)])},a.createElement(R0.Provider,{value:{hasTests:n,tests:i,summary:l,...q3(i)}},e))},n7=k.div({zIndex:9999,position:"fixed",top:0,left:"50%",width:"50%",height:"100%"}),a7=a.memo(function({timeToFade:e=5e3,colors:t=["#CA90FF","#FC521F","#66BF3C","#FF4785","#FFAE00","#1EA7FD"],...n}){return a.createElement(n7,null,a.createElement(no,{colors:t,particleCount:200,duration:e,stageHeight:window.innerHeight,stageWidth:window.innerWidth,destroyAfterDone:!0,...n}))}),r7=k.div(({theme:e})=>({background:e.base==="light"?e.color.lightest:"#292A2C",width:260,padding:15,borderRadius:5,boxShadow:"0px 0px 32px 0px #00000029"})),i7=k.div({display:"flex",flexDirection:"column",alignItems:"flex-start"}),l7=k.div(({theme:e})=>({fontSize:13,lineHeight:"18px",fontWeight:700,color:e.color.defaultText})),o7=k.div(({theme:e})=>({fontSize:13,lineHeight:"18px",textAlign:"start",color:e.color.defaultText,margin:0,marginTop:5})),s7=k.div({display:"flex",justifyContent:"flex-end",marginTop:15}),d7=({isLastStep:e,step:t,primaryProps:n,tooltipProps:r})=>a.createElement(r7,{...r},a.createElement(i7,null,t.title&&a.createElement(l7,null,t.title),a.createElement(o7,null,t.content)),(t.hideNextButton||t.hideBackButton)&&a.createElement(s7,{id:"buttonSkip"},!t.hideSkipButton&&!e&&a.createElement(re,{size:"medium",onClick:t.onSkipWalkthroughButtonClick,link:!0,style:{paddingRight:12,paddingLeft:12,marginRight:8}},"Skip"),!t.hideNextButton&&a.createElement(re,{...n,onClick:n.onClick,variant:"solid",...t.onNextButtonClick?{onClick:t.onNextButtonClick}:{}},t.nextButtonText||"Next"))),E1="setFilter",c7=({managerApi:e,skipWalkthrough:t,startWalkthrough:n,completeWalkthrough:r})=>{let i=Sn(),l=Wt(),o=l?.selectedTest?.result==="CHANGED",s=l?.selectedTest?.status!=="ACCEPTED",d=JSON.stringify(wn().layout),c=Ee(d);c.current!==d&&(window.dispatchEvent(new Event("resize")),c.current=d),te(()=>{n()}),te(()=>{e.getCurrentStoryData()?.type!=="story"&&e.jumpToStory(1),e.togglePanel(!0),e.togglePanelPosition("right"),e.setSelectedPanel(rn)},[e]);let[u,m]=Be("showConfetti",!1),[p,v]=Be("stepIndex",0),g=()=>v((y=0)=>y+1);return te(()=>{let y=document.getElementById("storybook-explorer-tree"),w=Array.from(y instanceof HTMLElement?y.children:[]).filter(b=>b instanceof HTMLElement).slice(1);return w.forEach(b=>b.style.display="none"),()=>w.forEach(b=>b.style.display="")},[]),te(()=>{let y=()=>{v(1),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},100)};return e.on(lo,y),e.on(E1,y),()=>{e.off(lo,y),e.off(E1,y)}},[e,v]),te(()=>{l?.selectedTest?.status==="ACCEPTED"&&p===5&&(m(!0),v(6))},[l?.selectedTest?.status,u,m,p,v]),a.createElement(a.Fragment,null,u&&a.createElement(a7,null),a.createElement(D3,{steps:[{target:"#sidebar-bottom-wrapper",title:"Changes found",content:a.createElement(a.Fragment,null,"The visual tests addon will detect changes in all of your stories and allow you to review them before opening a pull request.",a.createElement("br",null),a.createElement("br",null),"Click the number at the bottom-right to only show stories with visual changes."),floaterProps:{target:"#warnings-found-filter",options:{preventOverflow:{boundariesElement:"windo Line truncated
"info info"
"actions actions"
"label controls"
`,gridTemplateColumns:"1fr fit-content(50%)",gridTemplateRows:"auto auto auto",borderBottom:`1px solid ${e.appBorderColor}`,"@container (min-width: 300px)":{gridTemplateAreas:`
"info actions"
"label controls"
`,gridTemplateColumns:"1fr auto",gridTemplateRows:"auto auto"},"@container (min-width: 800px)":{gridTemplateAreas:'"info label controls actions"',gridTemplateColumns:"auto 1fr auto auto",gridTemplateRows:"39px"}})),P1=k.div({display:"grid",gridTemplateAreas:`
"header"
"main"
"footer"
`,gridTemplateColumns:"1fr",gridTemplateRows:"auto 1fr auto",height:"100%","&[hidden]":{display:"none"}}),V1=k.div(({theme:e})=>({gridArea:"header",position:"sticky",zIndex:1,top:0,background:e.background.content,"@container (min-width: 800px)":{background:e.background.app}})),i6=k.div(({theme:e})=>({gridArea:"main",overflowY:"auto",maxHeight:"100%",background:e.background.content})),H1=k.div({gridArea:"footer",position:"sticky",zIndex:1,bottom:0}),l6=k.div(({children:e,theme:t})=>({display:"flex",alignItems:"center",border:`0px solid ${t.appBorderColor}`,borderTopWidth:1,borderBottomWidth:e?1:0,height:e?40:0,padding:e?"0 15px":0})),o6=k.div(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,color:e.color.defaultText,lineHeight:"18px",padding:15,whiteSpace:"pre-wrap",wordBreak:"break-word"})),oi=k.div(({theme:e})=>({background:e.background.hoverable,padding:"10px 15px",lineHeight:"18px",position:"relative",borderBottom:`1px solid ${e.appBorderColor}`})),s6=({isOutdated:e,isStarting:t,isBuildFailed:n,shouldSwitchToLastBuildOnBranch:r,switchToLastBuildOnBranch:i,hidden:l,storyId:o})=>{let{baselineImageVisible:s,diffVisible:d,focusVisible:c}=vr(),{toggleBaselineImage:u,toggleSettings:m,toggleWarnings:p}=vn(),v=B0(),g="startedAt"in v&&v.startedAt,y=Wt(),{tests:w}=y,b=a.useRef(o),h=a.useRef(y.selectedComparison?.id),f=a.useRef(v.id),{selectedTest:E,selectedComparison:C}=y,Z=w.every(({result:fe,status:ce})=>fe==="ADDED"&&ce!=="ACCEPTED"),M=!Z&&E?.result==="ADDED"&&E?.status!=="ACCEPTED",V=!Z&&C?.result==="ADDED"&&E?.result!=="ADDED"&&E?.status!=="ACCEPTED";te(()=>{(b.current!==o||h.current!==y.selectedComparison?.id||f.current!==v.id||Z||M||V)&&(u(!1),m(!1),p(!1)),h.current=y.selectedComparison?.id,b.current=o,f.current=v.id},[v.id,o,y,u,m,p,Z,M,V]);let D=a.createElement(r6,{tests:w,startedAt:g,isStarting:t,isBuildFailed:n,isOutdated:e,shouldSwitchToLastBuildOnBranch:r,switchToLastBuildOnBranch:i});if(t||!w.length)return a.createElement(P1,{hidden:l},a.createElement(V1,null,a.createElement(B1,null,D)),a.createElement(H1,null,a.createElement(L1,null)));let X=bl(w),{isInProgress:oe}=X,ve=C?.headCapture?.captureError&&"error"in C?.headCapture?.captureError&&C?.headCapture?.captureError?.error;return a.createElement(P1,{hidden:l},a.createElement(V1,null,a.createElement(B1,null,D,a.createElement(lh,{isOutdated:e}))),a.createElement(i6,null,oe&&a.createElement(Zr,null),!oe&&Z&&a.createElement(oi,null,a.createElement(j,null,"New story found. Accept this snapshot as a test baseline."," ",a.createElement(Ne,{withArrow:!0,href:"https://www.chromatic.com/docs/branching-and-baselines",target:"_blank"},"Learn more"))),!oe&&M&&a.createElement(oi,null,a.createElement(j,null,"New mode found. Accept this snapshot as a test baseline."," ",a.createElement(Ne,{withArrow:!0,href:"https://www.chromatic.com/docs/branching-and-baselines",target:"_blank"},"Learn more"))),!oe&&V&&a.createElement(oi,null,a.createElement(j,null,"New browser found. Accept this snapshot as a test baseline."," ",a.createElement(Ne,{withArrow:!0,href:"https://www.chromatic.com/docs/branching-and-baselines",target:"_blank"},"Learn more"))),!oe&&C&&a.createElement(G7,{key:C.id,componentName:E?.story?.component?.name,storyName:E?.story?.name,testUrl:E?.webUrl,comparisonResult:C.result??void 0,latestImage:C.headCapture?.captureImage??void 0,baselineImage:C.baseCapture?.captureImage??void 0,baselineImageVisible:s,diffImage:C.captureDiff?.diffImage??void 0,focusImage:C.captureDiff?.focusImage??void 0,diffVisible:d,focusVisible:c}),!oe&&ve&&a.createElement(a.Fragment,null,a.createElement(l6,null,a.createElement("b",null,"Error stack trace")),a.createElement(o6,null,ve.stack||ve.message))),a.createElement(H1,null,a.createElement(L1,null)))},d6=k(Tl)({padding:"4px 8px",margin:"0 6px"}),c6=({onClose:e})=>a.createElement(ys,null,a.createElement(Ei,null,a.createElement(Ha,null,"Warnings",a.createElement(d6,{status:"warning"},"2"),a.createElement(tl,{onClick:e},a.createElement(el,{"aria-label":"Close"}))),a.createElement("p",null,"It's essential that your components and stories render in a consistent fashion to prevent false positives. Two issues detected in this story may cause false positives."),a.createElement("p",null,a.createElement(re,{variant:"outline"},a.createElement(cs,null),"Docs"),a.createElement(re,{variant:"outline"},a.createElement(xc,null),"Get support"))));k.div(({theme:e})=>({color:e.color.warning,background:e.background.warning,padding:10,lineHeight:"18px",position:"relative"}));var u6=({branch:e,dismissBuildError:t,isOutdated:n,localBuildProgress:r,switchToLastBuildOnBranch:i,storyId:l})=>{let{settingsVisible:o,warningsVisible:s}=vr(),{toggleSettings:d,toggleWarnings:c}=vn(),{isRunning:u,startBuild:m,stopBuild:p}=sa(),{lastBuildOnBranch:v,lastBuildOnBranchIsReady:g,lastBuildOnBranchIsSelectable:y}=t7(),w=B0(),b=Wt(),{buildIsReviewable:h,userCanReview:f}=z0(),E=!!(!h&&g&&y&&i),C=v?.status==="IN_PROGRESS",Z=u||!h&&!E,M=r&&r? Line truncated
mutation UpdateUserPreferences($input: UserPreferencesInput!) {
updateUserPreferences(input: $input) {
updatedPreferences {
vtaOnboarding
}
}
}
`),f6=({lastBuildOnBranch:e,vtaOnboarding:t})=>{let n=Zt(),{notifications:r,storyId:i}=wn(),[l,o]=a.useState(!1),s=a.useCallback(()=>{o(!0),r.forEach(({id:h})=>n.clearNotification(h))},[n,r]),[d,c]=a.useState(!1),u=a.useCallback(()=>c(!0),[]),[m,p]=a.useState(!0);a.useEffect(()=>{if(n?.getUrlState?.().queryParams.vtaOnboarding==="true"){p(!1);return}t&&p(t==="COMPLETED"||t==="DISMISSED")},[n,t]);let[{fetching:v},g]=Rs(h6),y=a.useCallback(async h=>{await g({input:{vtaOnboarding:h?"COMPLETED":"DISMISSED"}}),p(!0),c(!1);let E=new URL(window.location.href);E.searchParams.has("vtaOnboarding")&&(E.searchParams.delete("vtaOnboarding"),window.history.replaceState({},"",E.href))},[g]),w=a.useMemo(()=>(e&&"testsForStatus"in e&&e.testsForStatus?.nodes&&an(I0,e.testsForStatus.nodes)||[]).some(h=>h?.status==="PENDING"&&h?.result==="CHANGED"&&h?.story?.storyId===i),[e,i]),b=!l&&!m&&!d;return{showOnboarding:b,showGuidedTour:!b&&!m,completeOnboarding:s,skipOnboarding:a.useCallback(()=>y(!1),[y]),completeWalkthrough:a.useCallback(()=>y(!0),[y]),skipWalkthrough:a.useCallback(()=>y(!1),[y]),startWalkthrough:u,lastBuildHasChangesForStory:w,isUpdating:v}},g6=({isOutdated:e,selectedBuildInfo:t,setSelectedBuildInfo:n,dismissBuildError:r,localBuildProgress:i,setOutdated:l,updateBuildStatus:o,projectId:s,gitInfo:d,storyId:c})=>{let u=Zt(),{addNotification:m,setOptions:p,togglePanel:v}=u,g=e7({projectId:s,storyId:c,gitInfo:d,selectedBuildInfo:t}),{account:y,features:w,manageUrl:b,hasData:h,hasProject:f,hasSelectedBuild:E,lastBuildOnBranch:C,lastBuildOnBranchIsReady:Z,lastBuildOnBranchIsSelectable:M,selectedBuild:V,selectedBuildMatchesGit:D,queryError:X,rerunQuery:oe,userCanReview:ve}=g,fe=K(({onDismiss:qt})=>{qt(),p({selectedPanel:rn}),v(!0)},[p,v]),ce=p6({buildIsReviewable:!!V&&V.id===C?.id,userCanReview:ve,onReviewSuccess:oe,onReviewError:(qt,ad)=>{qt instanceof Error&&m({id:`${U}/errorAccepting/${Date.now()}`,content:{headline:`Failed to ${ad.status==="ACCEPTED"?"accept":"unaccept"} changes`,subHeadline:qt.message},icon:a.createElement(ln,{color:Cn.negative}),duration:8e3,onClick:fe})}});te(()=>l(!D),[D,l]);let be=C&&"testsForStatus"in C&&C.testsForStatus?.nodes&&an(I0,C.testsForStatus.nodes),wt=M?C4(be||[]):[];te(()=>{o(wt)},[JSON.stringify(wt),o]),te(()=>{n(qt=>S4(qt,{shouldSwitchToLastBuildOnBranch:M&&Z,lastBuildOnBranchId:C?.id,storyId:c}))},[M,Z,C?.id,n,c]);let ge=K(()=>C?.id&&M&&n({buildId:C.id,storyId:c}),[n,M,C?.id,c]),{showOnboarding:kn,showGuidedTour:tt,completeOnboarding:J0,completeWalkthrough:Q0,skipOnboarding:X0,skipWalkthrough:ed,startWalkthrough:td,lastBuildHasChangesForStory:nd}=f6(g);return w&&!w.uiTests?a.createElement(x4,{manageUrl:b}):y?.suspensionReason?a.createElement(e0,{billingUrl:y.billingUrl,suspensionReason:y.suspensionReason}):kn&&f?a.createElement(a.Fragment,null,!h||X?a.createElement(a.Fragment,null):a.createElement(ai,{watchState:g},a.createElement(O7,{gitInfo:d,projectId:s,updateBuildStatus:o,dismissBuildError:r,localBuildProgress:i,showInitialBuildScreen:!V,onComplete:J0,onSkip:X0,lastBuildHasChangesForStory:nd}))):a.createElement(a.Fragment,null,!V||!E||!h||X?a.createElement(m6,{queryError:X,hasData:h,hasProject:f,hasSelectedBuild:E,branch:d.branch,dismissBuildError:r,localBuildProgress:i,...M&&{switchToLastBuildOnBranch:ge}}):a.createElement(U7,{watchState:ce},a.createElement(ai,{watchState:g},a.createElement(u6,{branch:d.branch,dismissBuildError:r,isOutdated:e,localBuildProgress:i,...C&&{lastBuildOnBranch:C},...M&&{switchToLastBuildOnBranch:ge},userCanReview:ve,storyId:c}))),tt&&a.createElement(ai,{watchState:{selectedBuild:V}},a.createElement(c7,{managerApi:u,skipWalkthrough:ed,startWalkthrough:td,completeWalkthrough:Q0})))},v6=e=>{let[t,n]=Be("selectedBuildInfo");return a.createElement(g6,{selectedBuildInfo:t,setSelectedBuildInfo:n,...e})},Y0=({localBuildProgress:e,accessToken:t})=>{let n=ya({}),r=Gt(hr),[i,l]=Le(!1),[o,s]=Le(!1),d=e?["initialize","build","upload"].includes(e?.currentStep):!1,c=e?!["aborted","complete","error","limited"].includes(e.currentStep):i,u=ft(()=>bi("startBuild",()=>{s(!1),l(!0),n(zd,{accessToken:t}),r?.({action:"startBuild"})},1e3,!1),[t,n,r]),m=ft(()=>bi("startBuild",()=>{d?(l(!1),n(Ud),r?.({action:"stopBuild"})):s(!0)},1e3,!1),[d,n,r]);return te(()=>{let p=i&&setTimeout(()=>l(!1),5e3);return()=>{p&&clearTimeout(p)}},[i]),{isDisallowed:o,isRunning:c,startBuild:u,stopBuild:m}},Jt=new Map,y6=()=>{let e=ya({[Jd]:t=>{let n=Jt.get(t.requestId);if(n)if(Jt.delete(t.requestId),"error"in t)n.reject(new Error(t.error));else{let{body:r,headers:i,status:l,statusText:o}=t.response,s=new Response(r,{headers:i,status:l,statusText:o});n.resolve(s)}}});return async(t,{signal:n,...r}={})=>{if(n?.aborted)return Promise.reject(n.reason);let i=Math.random().toString(36).slice(2);return n?.addEventListener("abort",()=>{e(Yd,{requestId:i}),Jt.get(i)?.reject(n.reason),Jt.delete(i)}),e(Kd,{requestId:i,input:t,init:r}),new Promise((l,o)=>{Jt.set(i,{resolve:l,reject:o}),setTimeout(()=>{o(ne Line truncated
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
@@ -0,0 +1,40 @@
Bundled license information:
filesize/dist/filesize.esm.js:
/**
* filesize
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 10.1.6
*/
@chromatic-com/storybook/dist/manager.mjs:
/*! Bundled license information:
popper.js/dist/esm/popper.js:
(**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*)
*/
+151
View File
@@ -0,0 +1,151 @@
try{
(()=>{var l=__REACT__,{Children:lt,Component:dt,Fragment:ft,Profiler:ct,PureComponent:mt,StrictMode:ht,Suspense:bt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gt,act:yt,cloneElement:vt,createContext:xt,createElement:St,createFactory:Tt,createRef:wt,forwardRef:Pt,isValidElement:_t,lazy:kt,memo:Ct,startTransition:Et,unstable_act:Rt,useCallback:It,useContext:Ot,useDebugValue:Ft,useDeferredValue:Ht,useEffect:G,useId:jt,useImperativeHandle:zt,useInsertionEffect:At,useLayoutEffect:Mt,useMemo:Bt,useReducer:Nt,useRef:Lt,useState:K,useSyncExternalStore:Dt,useTransition:$t,version:qt}=__REACT__;var Ut=__STORYBOOK_COMPONENTS__,{A:Zt,ActionBar:Jt,AddonPanel:U,Badge:Qt,Bar:Xt,Blockquote:Vt,Button:er,ClipboardCode:tr,Code:rr,DL:ar,Div:nr,DocumentWrapper:or,EmptyTabContent:sr,ErrorFormatter:ir,FlexBar:pr,Form:ur,H1:lr,H2:dr,H3:fr,H4:cr,H5:mr,H6:hr,HR:br,IconButton:gr,Img:yr,LI:vr,Link:xr,ListItem:Sr,Loader:Tr,Modal:wr,OL:Pr,P:_r,Placeholder:kr,Pre:Cr,ProgressSpinner:Er,ResetWrapper:Rr,ScrollArea:Ir,Separator:Or,Spaced:Fr,Span:Hr,StorybookIcon:jr,StorybookLogo:zr,SyntaxHighlighter:Z,TT:Ar,TabBar:Mr,TabButton:Br,TabWrapper:Nr,Table:Lr,Tabs:Dr,TabsState:$r,TooltipLinkList:qr,TooltipMessage:Wr,TooltipNote:Yr,UL:Gr,WithTooltip:Kr,WithTooltipPure:Ur,Zoom:Zr,codeCommon:Jr,components:Qr,createCopyToClipboardFunction:Xr,getStoryHref:Vr,interleaveSeparators:ea,nameSpaceClassNames:ta,resetComponents:ra,withReset:J}=__STORYBOOK_COMPONENTS__;var ia=__STORYBOOK_API__,{ActiveTabs:pa,Consumer:ua,ManagerContext:la,Provider:da,RequestResponseError:fa,addons:H,combineParameters:ca,controlOrMetaKey:ma,controlOrMetaSymbol:ha,eventMatchesShortcut:ba,eventToShortcut:ga,experimental_MockUniversalStore:ya,experimental_UniversalStore:va,experimental_getStatusStore:xa,experimental_getTestProviderStore:Sa,experimental_requestResponse:Ta,experimental_useStatusStore:wa,experimental_useTestProviderStore:Pa,experimental_useUniversalStore:_a,internal_fullStatusStore:ka,internal_fullTestProviderStore:Ca,internal_universalStatusStore:Ea,internal_universalTestProviderStore:Ra,isMacLike:Ia,isShortcutTaken:Oa,keyToSymbol:Fa,merge:Ha,mockChannel:ja,optionOrAltSymbol:za,shortcutMatchesShortcut:Aa,shortcutToHumanString:Ma,types:Q,useAddonState:Ba,useArgTypes:Na,useArgs:La,useChannel:X,useGlobalTypes:Da,useGlobals:$a,useParameter:V,useSharedState:qa,useStoryPrepared:Wa,useStorybookApi:Ya,useStorybookState:Ga}=__STORYBOOK_API__;var Qa=__STORYBOOK_THEMING__,{CacheProvider:Xa,ClassNames:Va,Global:en,ThemeProvider:ee,background:tn,color:rn,convert:te,create:an,createCache:nn,createGlobal:on,createReset:sn,css:pn,darken:un,ensure:ln,ignoreSsrWarning:j,isPropValid:dn,jsx:fn,keyframes:cn,lighten:mn,styled:x,themes:z,typography:hn,useTheme:A,withTheme:bn}=__STORYBOOK_THEMING__;var W="storybook/docs",le=`${W}/panel`,re="docs",ae=`${W}/snippet-rendered`;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)({}).hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},d.apply(null,arguments)}function de(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},C(e,t)}function fe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,C(e,t)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},L(e)}function ce(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function oe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oe=function(){return!!e})()}function me(e,t,r){if(oe())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var n=new(e.bind.apply(e,a));return r&&C(n,r.prototype),n}function D(e){var t=typeof Map=="function"?new Map:void 0;return D=function(r){if(r===null||!ce(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return me(r,arguments,L(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),C(a,r)},D(e)}var he={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
`,9:`Please provide a number of steps to the modularScale helper.
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
`,16:`You must provide a template to this method.
`,17:`You passed an unsupported selector state to this method.
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,25:`fontFace expects localFonts to be an array.
`,26:`fontFace expects fileFormats to be an array.
`,27:`radialGradient requries at least 2 color-stops to properly render.
`,28:`Please supply a filename to retinaImage() as the first argument.
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
`,34:`borderRadius expects a radius value as a string or number as the second argument.
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,36:`Property must be a string value.
`,37:`Syntax Error at %s.
`,38:`Formula contains a function that needs parentheses at %s.
`,39:`Formula is missing closing parenthesis at %s.
`,40:`Formula has too many closing parentheses at %s.
`,41:`All values in a formula must have the same unit or be unitless.
`,42:`Please provide a number of steps to the modularScale helper.
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,53:`fontFace expects localFonts to be an array.
`,54:`fontFace expects fileFormats to be an array.
`,55:`fontFace expects a name of a font-family.
`,56:`linearGradient requries at least 2 color-stops to properly render.
`,57:`radialGradient requries at least 2 color-stops to properly render.
`,58:`Please supply a filename to retinaImage() as the first argument.
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
`,62:`borderRadius expects a radius value as a string or number as the second argument.
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
`,67:`You must provide a template to this method.
`,68:`You passed an unsupported selector state to this method.
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
`,73:`Please provide a valid CSS variable.
`,74:`CSS variable not found and no default was provided.
`,75:`important requires a valid style object, got a %s instead.
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
`,78:`base must be set in "px" or "%" but you set it in "%s".
`};function be(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t[0],n=[],o;for(o=1;o<t.length;o+=1)n.push(t[o]);return n.forEach(function(s){a=a.replace(/%[a-z]/,s)}),a}var b=function(e){fe(t,e);function t(r){for(var a,n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return a=e.call(this,be.apply(void 0,[he[r]].concat(o)))||this,de(a)}return t}(D(Error));function M(e){return Math.round(e*255)}function ge(e,t,r){return M(e)+","+M(t)+","+M(r)}function E(e,t,r,a){if(a===void 0&&(a=ge),t===0)return a(r,r,r);var n=(e%360+360)%360/60,o=(1-Math.abs(2*r-1))*t,s=o*(1-Math.abs(n%2-1)),i=0,p=0,u=0;n>=0&&n<1?(i=o,p=s):n>=1&&n<2?(i=s,p=o):n>=2&&n<3?(p=o,u=s):n>=3&&n<4?(p=s,u=o):n>=4&&n<5?(i=s,u=o):n>=5&&n<6&&(i=o,u=s);var h=r-o/2,m=i+h,f=p+h,w=u+h;return a(m,f,w)}var ne={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ye(e){if(typeof e!="string")return e;var t=e.toLowerCase();return ne[t]?"#"+ne[t]:e}var ve=/^#[a-fA-F0-9]{6}$/,xe=/^#[a-fA-F0-9]{8}$/,Se=/^#[a-fA-F0-9]{3}$/,Te=/^#[a-fA-F0-9]{4}$/,B=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,we=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Pe=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_e=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function S(e){if(typeof e!="string")throw new b(3);var t=ye(e);if(t.match(ve))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(xe)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Se))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Te)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=B.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:par Line truncated
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
@@ -0,0 +1,127 @@
try{
(()=>{var So=Object.defineProperty;var pe=(e,t)=>()=>(e&&(t=e(e=0)),t);var wo=(e,t)=>{for(var n in t)So(e,n,{get:t[n],enumerable:!0})};var Z=pe(()=>{});var Q=pe(()=>{});var ee=pe(()=>{});var m,il,De,al,sl,ll,cl,vn,ul,pl,Wt,dl,V,fl,hl,En,Ht,On,ml,yl,gl,nt,bl,vl,El,se,Ol,Sl,wl,Tl,Il,Cl,Ut,ae,Pl,Rl,xl,Et=pe(()=>{Z();Q();ee();m=__REACT__,{Children:il,Component:De,Fragment:al,Profiler:sl,PureComponent:ll,StrictMode:cl,Suspense:vn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ul,act:pl,cloneElement:Wt,createContext:dl,createElement:V,createFactory:fl,createRef:hl,forwardRef:En,isValidElement:Ht,lazy:On,memo:ml,startTransition:yl,unstable_act:gl,useCallback:nt,useContext:bl,useDebugValue:vl,useDeferredValue:El,useEffect:se,useId:Ol,useImperativeHandle:Sl,useInsertionEffect:wl,useLayoutEffect:Tl,useMemo:Il,useReducer:Cl,useRef:Ut,useState:ae,useSyncExternalStore:Pl,useTransition:Rl,version:xl}=__REACT__});var Fe,kl,Ot,Ll,jl,Ml,Dl,Fl,Bl,Sn,Wl,wn,Hl,St=pe(()=>{Z();Q();ee();Fe=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:kl,createPortal:Ot,createRoot:Ll,findDOMNode:jl,flushSync:Ml,hydrate:Dl,hydrateRoot:Fl,render:Bl,unmountComponentAtNode:Sn,unstable_batchedUpdates:Wl,unstable_renderSubtreeIntoContainer:wn,version:Hl}=__REACT_DOM__});var wt,zt=pe(()=>{Z();Q();ee();wt="addon-controls"});var Kl,Jl,Xl,Zl,Ql,ec,tc,nc,rc,oc,ic,ac,sc,lc,cc,uc,pc,dc,fc,hc,mc,yc,gc,bc,vc,Ec,Tn,Oc,Sc,wc,Tc,Ic,Cc,Pc,Rc,xc,_c,Ac,Nc,kc,Lc,jc,Mc,Dc,Fc,Bc,Wc,Hc,Uc,In,zc,Gc,Yc,qc,$c,Vc,Kc,Jc,Gt=pe(()=>{Z();Q();ee();Kl=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:Jl,ARGTYPES_INFO_RESPONSE:Xl,CHANNEL_CREATED:Zl,CHANNEL_WS_DISCONNECT:Ql,CONFIG_ERROR:ec,CREATE_NEW_STORYFILE_REQUEST:tc,CREATE_NEW_STORYFILE_RESPONSE:nc,CURRENT_STORY_WAS_SET:rc,DOCS_PREPARED:oc,DOCS_RENDERED:ic,FILE_COMPONENT_SEARCH_REQUEST:ac,FILE_COMPONENT_SEARCH_RESPONSE:sc,FORCE_REMOUNT:lc,FORCE_RE_RENDER:cc,GLOBALS_UPDATED:uc,NAVIGATE_URL:pc,PLAY_FUNCTION_THREW_EXCEPTION:dc,PRELOAD_ENTRIES:fc,PREVIEW_BUILDER_PROGRESS:hc,PREVIEW_KEYDOWN:mc,REGISTER_SUBSCRIPTION:yc,REQUEST_WHATS_NEW_DATA:gc,RESET_STORY_ARGS:bc,RESULT_WHATS_NEW_DATA:vc,SAVE_STORY_REQUEST:Ec,SAVE_STORY_RESPONSE:Tn,SELECT_STORY:Oc,SET_CONFIG:Sc,SET_CURRENT_STORY:wc,SET_FILTER:Tc,SET_GLOBALS:Ic,SET_INDEX:Cc,SET_STORIES:Pc,SET_WHATS_NEW_CACHE:Rc,SHARED_STATE_CHANGED:xc,SHARED_STATE_SET:_c,STORIES_COLLAPSE_ALL:Ac,STORIES_EXPAND_ALL:Nc,STORY_ARGS_UPDATED:kc,STORY_CHANGED:Lc,STORY_ERRORED:jc,STORY_FINISHED:Mc,STORY_HOT_UPDATED:Dc,STORY_INDEX_INVALIDATED:Fc,STORY_MISSING:Bc,STORY_PREPARED:Wc,STORY_RENDERED:Hc,STORY_RENDER_PHASE_CHANGED:Uc,STORY_SPECIFIED:In,STORY_THREW_EXCEPTION:zc,STORY_UNCHANGED:Gc,TELEMETRY_ERROR:Yc,TOGGLE_WHATS_NEW_NOTIFICATIONS:qc,UNHANDLED_ERRORS_WHILE_PLAYING:$c,UPDATE_GLOBALS:Vc,UPDATE_QUERY_PARAMS:Kc,UPDATE_STORY_ARGS:Jc}=__STORYBOOK_CORE_EVENTS__});var Vu,Ku,Ju,Xu,Zu,Qu,ep,Pn,tp,np,rp,op,ip,ap,sp,lp,Tt,cp,up,pp,dp,fp,hp,mp,Rn,yp,gp,bp,vp,Ep,ze,Op,Sp,wp,Tp,Ip,Cp,Pp,Rp,xp,_p,Ap,Np,xn,kp,Lp,jp,Mp,Dp,Fp,Bp,Wp,Hp,Up,zp,Gp,Yp,qp,$p,Vp,Kp,Jp,Xp,Zp,Qp,ed,_n=pe(()=>{Z();Q();ee();Vu=__STORYBOOK_COMPONENTS__,{A:Ku,ActionBar:Ju,AddonPanel:Xu,Badge:Zu,Bar:Qu,Blockquote:ep,Button:Pn,ClipboardCode:tp,Code:np,DL:rp,Div:op,DocumentWrapper:ip,EmptyTabContent:ap,ErrorFormatter:sp,FlexBar:lp,Form:Tt,H1:cp,H2:up,H3:pp,H4:dp,H5:fp,H6:hp,HR:mp,IconButton:Rn,Img:yp,LI:gp,Link:bp,ListItem:vp,Loader:Ep,Modal:ze,OL:Op,P:Sp,Placeholder:wp,Pre:Tp,ProgressSpinner:Ip,ResetWrapper:Cp,ScrollArea:Pp,Separator:Rp,Spaced:xp,Span:_p,StorybookIcon:Ap,StorybookLogo:Np,SyntaxHighlighter:xn,TT:kp,TabBar:Lp,TabButton:jp,TabWrapper:Mp,Table:Dp,Tabs:Fp,TabsState:Bp,TooltipLinkList:Wp,TooltipMessage:Hp,TooltipNote:Up,UL:zp,WithTooltip:Gp,WithTooltipPure:Yp,Zoom:qp,codeCommon:$p,components:Vp,createCopyToClipboardFunction:Kp,getStoryHref:Jp,interleaveSeparators:Xp,nameSpaceClassNames:Zp,resetComponents:Qp,withReset:ed}=__STORYBOOK_COMPONENTS__});var id,ad,sd,ld,Yt,cd,It,qt,ud,pd,dd,fd,hd,md,yd,gd,bd,vd,rt,Ed,J,An,Od,Nn,Sd,kn=pe(()=>{Z();Q();ee();id=__STORYBOOK_THEMING__,{CacheProvider:ad,ClassNames:sd,Global:ld,ThemeProvider:Yt,background:cd,color:It,convert:qt,create:ud,createCache:pd,createGlobal:dd,createReset:fd,css:hd,darken:md,ensure:yd,ignoreSsrWarning:gd,isPropValid:bd,jsx:vd,keyframes:rt,lighten:Ed,styled:J,themes:An,typography:Od,useTheme:Nn,withTheme:Sd}=__STORYBOOK_THEMING__});var Pd,Rd,xd,_d,Ad,Nd,kd,Ld,jd,Md,Dd,Fd,Bd,Wd,Hd,Ln,Ud,zd,Gd,Yd,qd,$d,Vd,Kd,Jd,Xd,Zd,Qd,ef,tf,nf,rf,of,af,sf,lf,cf,uf,pf,df,ff,hf,mf,yf,gf,bf,vf,Ef,Of,Sf,wf,Tf,If,Cf,Pf,Rf,xf,_f,Af,Nf,kf,Lf,jf,jn,Mf,Df,Ff,Bf,Wf,Hf,Uf,zf,Gf,Yf,qf,$f,Vf,Kf,Jf,Xf,Zf,Qf,eh,th,nh,rh,oh,ih,ah,sh,lh,ch,uh,ph,dh,fh,hh,mh,yh,gh,bh,vh,Eh,Oh,Sh,wh,Th,Ih,Ch,Ph,Rh,xh,_h,Ah,Nh,kh,Lh,jh,Mh,Dh,Fh,Bh,Wh,Hh,Uh,zh,Gh,Yh,qh,$h,Vh,Kh,Jh,Xh,Zh,Qh,em,tm,nm,rm,om,im,am,sm,lm,cm,um,pm,dm,fm,hm,mm,ym,gm,bm,vm,Em,Om,Sm,wm,Tm,Im,Cm,Pm,Rm,xm,_m,Am,Nm,km,Lm,jm,Mm,Dm,Fm,Bm,Wm,Hm,Um,zm,Gm,Ym,qm,$m,Vm,Km,Jm,Xm,Zm,Qm,ey,ty,ny,ry,oy,iy,ay,sy,ly,cy,uy,py,dy,fy,hy,my,yy,gy,by,vy,Ey,Oy,Line truncated
@keyframes pulsate {
0% {
box-shadow: rgba(2,156,253,1) 0 0 2px 1px, 0 0 0 0 rgba(2, 156, 253, 0.7), 0 0 0 0 rgba(2, 156, 253, 0.4);
}
50% {
box-shadow: rgba(2,156,253,1) 0 0 2px 1px, 0 0 0 20px rgba(2, 156, 253, 0), 0 0 0 40px rgba(2, 156, 253, 0);
}
100% {
box-shadow: rgba(2,156,253,1) 0 0 2px 1px, 0 0 0 0 rgba(2, 156, 253, 0), 0 0 0 0 rgba(2, 156, 253, 0);
}
}
`,o=document.createElement("style");o.id="sb-onboarding-pulsating-effect",o.innerHTML=r,document.head.appendChild(o)}else n.style.boxShadow="rgba(2,156,253,1) 0 0 2px 1px";return()=>{let r=document.querySelector("#sb-onboarding-pulsating-effect");r&&r.remove(),n&&(n.style.animation="",n.style.boxShadow="")}},[e,t]),null}function Dr(e){return t=>typeof t===e}function ei(e,t){let{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!oe(e[r],t[r]))return!1;return!0}function ti(e,t){if(e.byteLength!==t.byteLength)return!1;let n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}function ni(e,t){if(e.size!==t.size)return!1;for(let n of e.entries())if(!t.has(n[0]))return!1;for(let n of e.entries())if(!oe(n[1],t.get(n[0])))return!1;return!0}function ri(e,t){if(e.size!==t.size)return!1;for(let n of e.entries())if(!t.has(n[0]))return!1;return!0}function oe(e,t){if(e===t)return!0;if(e&&tr(e)&&t&&tr(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return ei(e,t);if(e instanceof Map&&t instanceof Map)return ni(e,t);if(e instanceof Set&&t instanceof Set)return ri(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return ti(e,t);if(er(e)&&er(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=n.length;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=n.length;o--!==0;){let i=n[o];if(!(i==="_owner"&&e.$$typeof)&&!oe(e[i],t[i]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}function jt(e){let t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ai(t))return t}function fe(e){return t=>jt(t)===e}function ai(e){return oi.includes(e)}function Je(e){return t=>typeof t===e}function si(e){return ii.includes(e)}function C(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}return C.array(e)?"Array":C.plainFunction(e)?"Function":jt(e)||"Object"}function ci(...e){return e.every(t=>_.string(t)||_.array(t)||_.plainObject(t))}function ui(e,t,n){return Fr(e,t)?[e,t].every(_.array)?!e.some(ar(n))&&t.some(ar(n)):[e,t].every(_.plainObject)?!Object.entries(e).some(ir(n))&&Object.entries(t).some(ir(n)):t===n:!1}function nr(e,t,n){let{actual:r,key:o,previous:i,type:a}=n,s=we(e,o),c=we(t,o),l=[s,c].every(_.number)&&(a==="increased"?s<c:s>c);return _.undefined(r)||(l=l&&c===r),_.undefined(i)||(l=l&&s===i),l}function rr(e,t,n){let{key:r,type:o,value:i}=n,a=we(e,r),s=we(t,r),c=o==="added"?a:s,l=o==="added"?s:a;if(!_.nullOrUndefined(i)){if(_.defined(c)){if(_.array(c)||_.plainObject(c))return ui(c,l,i)}else return oe(l,i);return!1}return[a,s].every(_.array)?!l.every(un(c)):[a,s].every(_.plainObject)?pi(Object.keys(c),Object.keys(l)):![a,s].every(p=>_.primitive(p)&&_.defined(p))&&(o==="added"?!_.defined(a)&&_.defined(s):_.defined(a)&&!_.defined(s))}function or(e,t,{key:n}={}){let r=we(e,n),o=we(t,n);if(!Fr(r,o))throw new TypeError("Inputs have different types");if(!ci(r,o))throw new TypeError("Inputs don't have length");return[r,o].every(_.plainObject)&&(r=Object.keys(r),o=Object.keys(o)),[r,o]}function ir(e){return([t,n])=>_.array(e)?oe(e,n)||e.some(r=>oe(r,n)||_.array(n)&&un(n)(r)):_.plainObject(e)&&e[t]?!!e[t]&&oe(e[t],n):oe(e,n)}function pi(e,t){return t.some(n=>!e.includes(n))}function ar(e){return t=>_.array(e)?e.some(n=>oe(n,t)||_.array(t)&&un(t)(n)):oe(e,t)}function ot(e,t){return _.array(e)?e.some(n=>oe(n,t)):oe(e,t)}function un(e){return t=>e.some(n=>oe(n,t))}function Fr(...e){return e.every(_.array)||e.every(_.number)||e.every(_.plainObject)||e.every(_.string)}function we(e,t){return _.plainObject(e)||_.array(e)?_.string(t)?t.split(".").reduce((n,r)=>n&&n[r],e):_.number(t)?e[t]:e:e}function At(e,t){if([e,t].some(_.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(n=>_.plainObject(n)||_.array(n)))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return rr(e,t,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,o)=>{try{let i=we(e,n),a=we(t,n),s=_.defined(r),c=_.defined(o);if(s||c){let l=c?ot(o,i):!ot(r,i),p=ot(r,a);return l&&p}return[i,a].every(_.array)||[i,a].every(_.plainObject)?!oe(i,a):i!==a}catch{return!1}},changedFrom:(n,r,o)=>{if(!_.defined(n))return!1;try{let i=we(e,n),a=we(t,n),s=_.defined(o);return ot(r,i)&&(s?ot(o,a):!s)}catch{return!1}},decreased:(n,r,o)=>{if(!_.defined(n))return!1;try{return nr(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch{return!1}},emptied:n=>{try{let[r,o]=or(e,t,{key:n});return!!r.length&&!o.length}catch{return!1}},filled:n=>{try{le Line truncated
`).length,U=[{key:"2:Controls",target:"#control-primary",title:"Interactive story playground",content:m.createElement(m.Fragment,null,"See how a story renders with different data and state without touching code. Try it out by toggling this button.",m.createElement(Qn,{targetSelector:"#control-primary",pulsating:!0})),offset:20,placement:"right",disableBeacon:!0,disableOverlay:!0,spotlightClicks:!0,onNextButtonClick:()=>{document.querySelector("#control-primary").click()}},{key:"3:SaveFromControls",target:'button[aria-label="Create new story with these settings"]',title:"Save your changes as a new story",content:m.createElement(m.Fragment,null,"Great! Storybook stories represent the key states of each of your components. After modifying a story, you can save your changes from here or reset it.",m.createElement(Qn,{targetSelector:"button[aria-label='Create new story with these settings']"})),offset:6,placement:"top",disableBeacon:!0,disableOverlay:!0,spotlightClicks:!0,onNextButtonClick:()=>{document.querySelector('button[aria-label="Create new story with these settings"]').click()},styles:{tooltip:{width:400}}},{key:"5:StoryCreated",target:'#storybook-explorer-tree [data-selected="true"]',title:"You just added your first story!",content:m.createElement(m.Fragment,null,"Well done! You just created your first story from the Storybook manager. This automatically added a few lines of code in"," ",m.createElement($s,null,h?.sourceFileName),".",v&&m.createElement(Yt,{theme:qt(An.dark)},m.createElement(Vs,null,m.createElement(xn,{language:"jsx",showLineNumbers:!0,startingLineNumber:w},v)))),offset:12,placement:"right",disableBeacon:!0,disableOverlay:!0,styles:{tooltip:{width:400}}}];return m.createElement(Yt,{theme:Ks},r&&m.createElement(Jo,null),i==="1:Intro"?m.createElement(qs,{onDismiss:()=>a("2:Controls")}):i==="6:IntentSurvey"?m.createElement(js,{onComplete:b,onDismiss:S}):m.createElement(Ps,{step:i,steps:U,onClose:S,onComplete:()=>a("6:IntentSurvey")}))}var Co,Ar,Po,Nr,Ro,xo,ue,_o,We,Ao,No,ko,cn,Lo,kr,jo,Lr,jr,Mo,Do,Fo,Bo,Dn,Wo,Fn,Bn,Wn,Hn,Un,zn,Gn,Yn,qn,$n,Vn,Uo,zo,Go,Kn,Ct,Ee,ct,Yo,$t,Vt,Jn,Ge,Kt,Xn,Mr,Zn,qo,$o,Ko,Jo,Jt,Xo,Zo,er,tr,Qo,oi,ii,li,_,di,Br,sr,Pt,Rt,O,pt,fi,yi,gi,lr,cr,Ei,Oi,Ve,ce,ji,eo,Xt,Zt,Vi,Ki,Mt,fr,on,Ji,Xi,Zi,le,ta,na,hr,mr,ra,an,la,ca,ua,k,Oa,Sa,wa,H,at,io,ao,Aa,co,uo,Na,La,ja,gn,Ma,Da,A,$,de,L,B,st,Ja,mo,Xa,Za,Qa,lt,Pr,go,xr,ns,is,as,ss,ls,cs,ps,fs,hs,ms,bo,ys,gs,bs,vs,Es,Os,Ss,ws,Ts,Is,Cs,xs,_s,As,Ns,ks,Ls,js,Ds,vo,Fs,Bs,Ws,Hs,Us,zs,Gs,Ys,_r,qs,$s,Vs,Ks,Oo=pe(()=>{Z();Q();ee();Et();Et();_n();zt();Gt();kn();St();St();Mn();Co=Object.create,Ar=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Nr=Object.getOwnPropertyNames,Ro=Object.getPrototypeOf,xo=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[Nr(e)[0]])((t={exports:{}}).exports,t),t.exports},_o=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Nr(t))!xo.call(e,o)&&o!==n&&Ar(e,o,{get:()=>t[o],enumerable:!(r=Po(t,o))||r.enumerable});return e},We=(e,t,n)=>(n=e!=null?Co(Ro(e)):{},_o(t||!e||!e.__esModule?Ar(n,"default",{value:e,enumerable:!0}):n,e)),Ao=ue({"../../node_modules/scroll/index.js"(e,t){var n=new Error("Element already at target scroll position"),r=new Error("Scroll cancelled"),o=Math.min,i=Date.now;t.exports={left:a("scrollLeft"),top:a("scrollTop")};function a(l){return function(p,u,d,h){d=d||{},typeof d=="function"&&(h=d,d={}),typeof h!="function"&&(h=c);var f=i(),g=p[l],S=d.ease||s,b=isNaN(d.duration)?350:+d.duration,x=!1;return g===u?h(n,p[l]):requestAnimationFrame(v),y;function y(){x=!0}function v(w){if(x)return h(r,p[l]);var U=i(),I=o(1,(U-f)/b),z=S(I);p[l]=z*(u-g)+g,I<1?requestAnimationFrame(v):requestAnimationFrame(function(){h(null,p[l])})}}}function s(l){return .5*(1-Math.cos(Math.PI*l))}function c(){}}}),No=ue({"../../node_modules/scrollparent/scrollparent.js"(e,t){(function(n,r){typeof define=="function"&&define.amd?define([],r):typeof t=="object"&&t.exports?t.exports=r():n.Scrollparent=r()})(e,function(){function n(o){var i=getComputedStyle(o,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function r(o){if(o instanceof HTMLElement||o instanceof SVGElement){for(var i=o.parentNode;i.parentNode;){if(n(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return r})}}),ko=ue({"../../node_modules/react-innertext/index.js"(e,t){var n=function(i){return Object.prototype.hasOwnProperty.call(i,"props")},r=function(i,a){return i+o(a)},o=function(i){return i===null||typeof i=="boolean"||typeof i>"u"?"":typeof i=="number"?i.toString():typeof i=="string"?i:Array.isArray(i)?i.reduce(r,""):n(i)&&Object.prototype.hasOwnProperty.call(i.props,"children")?o(i.props.children):""};o.default=o,t.exports=o}}),cn=ue({"../../node_modules/deepmerge/dist/cjs.js"(e,t){var n=function(y){return r(y)&&!o(y)};function r(y){return!!y&&typeof y=="object"}function o(y){var v=Object.prototype.toString.call(y);return v==="[object Reg Line truncated
Valid keys: `+JSON.stringify(Object.keys(E),null," "));var ne=T(F,q,j,G,M+"."+q,o);if(ne)return ne}return null}return x(N)}function xe(E){switch(typeof E){case"number":case"string":case"undefined":return!0;case"boolean":return!E;case"object":if(Array.isArray(E))return E.every(xe);if(E===null||l(E))return!0;var N=h(E);if(N){var W=N.call(E),D;if(N!==E.entries){for(;!(D=W.next()).done;)if(!xe(D.value))return!1}else for(;!(D=W.next()).done;){var j=D.value;if(j&&!xe(j[1]))return!1}}else return!1;return!0;default:return!1}}function _e(E,N){return E==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function ye(E){var N=typeof E;return Array.isArray(E)?"array":E instanceof RegExp?"object":_e(N,E)?"symbol":N}function Ae(E){if(typeof E>"u"||E===null)return""+E;var N=ye(E);if(N==="object"){if(E instanceof Date)return"date";if(E instanceof RegExp)return"regexp"}return N}function Bt(E){var N=Ae(E);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function vt(E){return!E.constructor||!E.constructor.name?f:E.constructor.name}return g.checkPropTypes=a,g.resetWarningCache=a.resetWarningCache,g.PropTypes=g,g}}}),Fo=ue({"../../node_modules/prop-types/index.js"(e,t){n=kr(),r=!0,t.exports=Do()(n.isElement,r);var n,r}}),Bo='@keyframes Bc2PgW_ya{to{translate:0 var(--sh)}}@keyframes Bc2PgW_xa{to{translate:var(--xlp)0}}@keyframes Bc2PgW_r{50%{rotate:var(--hr)180deg}to{rotate:var(--r)360deg}}.Bc2PgW_c{z-index:1200;width:0;height:0;position:relative;overflow:visible}.Bc2PgW_p{animation:xa var(--dc)forwards cubic-bezier(var(--x1),var(--x2),var(--x3),var(--x4));animation-name:Bc2PgW_xa}.Bc2PgW_p>div{animation:ya var(--dc)forwards cubic-bezier(var(--y1),var(--y2),var(--y3),var(--y4));width:var(--w);height:var(--h);animation-name:Bc2PgW_ya;position:absolute;top:0;left:0}.Bc2PgW_p>div:before{content:"";background-color:var(--bgc);animation:r var(--rd)infinite linear;border-radius:var(--br);width:100%;height:100%;animation-name:Bc2PgW_r;display:block}',Dn="Bc2PgW_p",Wo="Bc2PgW_c",Fn=["#FFC700","#FF0000","#2E3191","#41BBC7"],Bn=3500,Wn=.5,Hn=150,Un="mix",zn=12,Gn="",Yn=!0,qn=800,$n=1600;Vn=200,Uo=800,zo=.1,Go=.3,Kn=.5,Ct=Math.abs,Ee=Math.random,ct=Math.round,Yo=Math.max,$t=e=>document.createElement(e),Vt=(e,t)=>e.appendChild(t),Jn=(e,t)=>Array.from({length:e},(n,r)=>({color:t[r%t.length],degree:360*r/e})),Ge=(e,t=2)=>ct((e+Number.EPSILON)*10**t)/10**t,Kt=(e,t,n,r,o)=>(e-t)*(o-r)/(n-t)+r,Xn=(e,t)=>e+t>360?e+t-360:e+t,Mr=()=>Ee()>.5,Zn=Object.entries,qo=6,$o=e=>e!==1&&Mr();Ko=J.div({zIndex:9999,position:"fixed",top:0,left:"50%",width:"50%",height:"100%"}),Jo=m.memo(function({timeToFade:e=5e3,colors:t=["#CA90FF","#FC521F","#66BF3C","#FF4785","#FFAE00","#1EA7FD"],...n}){return m.createElement(Ko,null,m.createElement(Vo,{colors:t,particleCount:200,duration:5e3,stageHeight:window.innerHeight,stageWidth:window.innerWidth,destroyAfterDone:!0,...n}))});Jt="STORYBOOK_ADDON_ONBOARDING_CHANNEL";Xo=Dr("function"),Zo=e=>e===null,er=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",tr=e=>!Qo(e)&&!Zo(e)&&(Xo(e)||typeof e=="object"),Qo=Dr("undefined");oi=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ii=["bigint","boolean","null","number","string","symbol","undefined"];li=["innerHTML","ownerDocument","style","attributes","nodeValue"];C.array=Array.isArray;C.arrayOf=(e,t)=>!C.array(e)&&!C.function(t)?!1:e.every(n=>t(n));C.asyncGeneratorFunction=e=>jt(e)==="AsyncGeneratorFunction";C.asyncFunction=fe("AsyncFunction");C.bigint=Je("bigint");C.boolean=e=>e===!0||e===!1;C.date=fe("Date");C.defined=e=>!C.undefined(e);C.domElement=e=>C.object(e)&&!C.plainObject(e)&&e.nodeType===1&&C.string(e.nodeName)&&li.every(t=>t in e);C.empty=e=>C.string(e)&&e.length===0||C.array(e)&&e.length===0||C.object(e)&&!C.map(e)&&!C.set(e)&&Object.keys(e).length===0||C.set(e)&&e.size===0||C.map(e)&&e.size===0;C.error=fe("Error");C.function=Je("function");C.generator=e=>C.iterable(e)&&C.function(e.next)&&C.function(e.throw);C.generatorFunction=fe("GeneratorFunction");C.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;C.iterable=e=>!C.nullOrUndefined(e)&&C.function(e[Symbol.iterator]);C.map=fe("Map");C.nan=e=>Number.isNaN(e);C.null=e=>e===null;C.nullOrUndefined=e=>C.null(e)||C.undefined(e);C.number=e=>Je("number")(e)&&!C.nan(e);C.numericString=e=>C.string(e)&&e.length>0&&!Number.isNaN(Number(e));C.object=e=>!C.nullOrUndefined(e)&&(C.function(e)||typeof e=="object");C.oneOf=(e,t)=>C.array(e)?e.indexOf(t)>-1:!1;C.plainFunction=fe("Function");C.plainObject=e=>{if(jt(e)!=="Object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};C.primitive=e=>C.null(e)||si(typeof e);C.promise=fe("Promise");C.propertyOf=(e,t,n)=>{if(!C.object(e)||!t)return!1;let r=e Line truncated
@keyframes joyride-beacon-inner {
20% {
opacity: 0.9;
}
90% {
opacity: 0.7;
}
}
@keyframes joyride-beacon-outer {
0% {
transform: scale(1);
}
45% {
opacity: 0.7;
transform: scale(0.75);
}
100% {
opacity: 0.9;
transform: scale(1);
}
}
`)),t.appendChild(n)}componentDidMount(){let{shouldFocus:e}=this.props;_.domElement(this.beacon)||console.warn("beacon is not a valid DOM element"),setTimeout(()=>{_.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){let e=document.getElementById("joyride-beacon-animation");e?.parentNode&&e.parentNode.removeChild(e)}render(){let{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:o,onClickOrHover:i,size:a,step:s,styles:c}=this.props,l=Se(o.open),p={"aria-label":l,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:l},u;return e?u=V(e,{continuous:t,index:n,isLastStep:r,size:a,step:s,...p}):u=V("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...p},V("span",{style:c.beaconInner}),V("span",{style:c.beaconOuter})),u}};ps=us;fs=ds,hs=class extends De{constructor(){super(...arguments),A(this,"handleClickBack",e=>{e.preventDefault();let{helpers:t}=this.props;t.prev()}),A(this,"handleClickClose",e=>{e.preventDefault();let{helpers:t}=this.props;t.close("button_close")}),A(this,"handleClickPrimary",e=>{e.preventDefault();let{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),A(this,"handleClickSkip",e=>{e.preventDefault();let{helpers:t}=this.props;t.skip()}),A(this,"getElementsProps",()=>{let{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:i}=this.props,{back:a,close:s,last:c,next:l,nextLabelWithProgress:p,skip:u}=i.locale,d=Se(a),h=Se(s),f=Se(c),g=Se(l),S=Se(u),b=s,x=h;if(e){if(b=l,x=g,i.showProgress&&!n){let y=Se(p,{step:t+1,steps:o});b=ln(p,t+1,o),x=y}n&&(b=c,x=f)}return{backProps:{"aria-label":d,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:d},closeProps:{"aria-label":h,children:s,"data-action":"close",onClick:this.handleClickClose,role:"button",title:h},primaryProps:{"aria-label":x,children:b,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:x},skipProps:{"aria-label":S,children:u,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:S},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){let{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:o,step:i}=this.props,{beaconComponent:a,tooltipComponent:s,...c}=i,l;if(s){let p={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:c,setTooltipRef:r};l=V(s,{...p})}else l=V(fs,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:o,step:i});return l}},ms=class extends De{constructor(){super(...arguments),A(this,"scope",null),A(this,"tooltip",null),A(this,"handleClickHoverBeacon",e=>{let{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:L.TOOLTIP})}),A(this,"setTooltipRef",e=>{this.tooltip=e}),A(this,"setPopper",(e,t)=>{var n;let{action:r,lifecycle:o,step:i,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||i.placement==="center")&&o===L.INIT&&a.update({action:r,lifecycle:L.READY}),(n=i.floaterProps)!=null&&n.getPopper&&i.floaterProps.getPopper(e,t)}),A(this,"renderTooltip",e=>{let{continuous:t,helpers:n,index:r,size:o,step:i}=this.props;return V(hs,{continuous:t,helpers:n,index:r,isLastStep:r+1===o,setTooltipRef:this.setTooltipRef,size:o,step:i,...e})})}componentDidMount(){let{debug:e,index:t}=this.props;Le({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;let{action:n,callback:r,continuous:o,controlled:i,debug:a,helpers:s,index:c,lifecycle:l,shouldScroll:p,status:u,step:d,store:h}=this.props,{changed:f,changedFrom:g}=At(e,this.props),S=s.info(),b=o&&n!==$.CLOSE&&(c>0||n===$.PREV),x=f("action")||f("index")||f("lifecycle")||f("status"),y=g("lifecycle",[L.TOOLTIP,L.INIT],L.INIT),v=f("action",[$.NEXT,$.PREV,$.SKIP,$.CLOSE]),w=i&&c===e.index;if(v&&(y||w)&&r({...S,index:e.index,lifecycle:L.COMPLETE,step:e.step,type:de.STEP_AFTER}),d.placement==="center"&&u===B.RUNNING&&f("index")&&n!==$.START&&l===L.INIT&&h.update({lifecycle:L.READY}),x){let U=Re(d.target),I=!!U;I&&Ha(U)?(g("status",B.READY,B.RUNNING)||g("lifecycle",L.INIT,L.READY))&&r({...S,step:d,type:de.STEP_BEFORE}):(console.warn(I?"Target not visible":"Target not mounted",d),r({...S,type:de.TARGET_NOT_FOUND,step:d}),i||h.update({index:c+(n===$.PREV?-1:1)}))}g("lifecycle",L.INIT,L.READY)&&h.update({lifecycle:Ir(d)||b?L.TOOLTIP:L.BEACON}),f("index")&&Le({title:`step:${l}`,data:[{key:"props",value:this.props}],debug:a}),f("lifecycle",L.BEACON)&&r({...S,step:d,type:de.BEACON}),f("lifecycle",L.TOOLTIP)&&(r({...S,step:d,type:de.TOOLTIP}),p&&this.tooltip&&(this.scope=new ls(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),g("lifecycle",[L.TOOLTIP,L.INIT],L.INIT)&&((t=this.scope)==null||t.removeScope(),h.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){let{lifecycle:e,step:t}=this.props;return Ir(t)||e===L.TOOL Line truncated
all: unset;
box-sizing: border-box;
border: 0;
border-radius: 0.25rem;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 0.75rem;
background: ${({theme:e,variant:t})=>t==="primary"?e.color.secondary:t==="secondary"?e.color.lighter:t==="outline"?"transparent":t==="white"?e.color.lightest:e.color.secondary};
color: ${({theme:e,variant:t})=>t==="primary"?e.color.lightest:t==="secondary"||t==="outline"?e.darkest:t==="white"?e.color.secondary:e.color.lightest};
box-shadow: ${({variant:e})=>e==="secondary"||e==="outline"?"#D9E8F2 0 0 0 1px inset":"none"};
height: 32px;
font-size: 0.8125rem;
font-weight: 700;
font-family: ${({theme:e})=>e.typography.fonts.base};
transition: background-color, box-shadow, color, opacity;
transition-duration: 0.16s;
transition-timing-function: ease-in-out;
text-decoration: none;
&:hover {
background-color: ${({theme:e,variant:t})=>t==="primary"?"#0b94eb":t==="secondary"?"#eef4f9":t==="outline"?"transparent":t==="white"?e.color.lightest:"#0b94eb"};
color: ${({theme:e,variant:t})=>t==="primary"?e.color.lightest:t==="secondary"||t==="outline"?e.darkest:t==="white"?e.color.darkest:e.color.lightest};
}
&:focus {
box-shadow: ${({variant:e})=>e==="primary"?"inset 0 0 0 1px rgba(0, 0, 0, 0.2)":e==="secondary"||e==="outline"?"inset 0 0 0 1px #0b94eb":e==="white"?"none":"inset 0 0 0 2px rgba(0, 0, 0, 0.1)"};
}
`,bs=En(function({children:e,onClick:t,variant:n="primary",...r},o){return m.createElement(gs,{ref:o,onClick:t,variant:n,...r},e)}),vs=J.div`
padding: 15px;
border-radius: 5px;
`,Es=J.div`
display: flex;
flex-direction: column;
align-items: flex-start;
`,Os=J.div`
display: flex;
align-items: center;
align-self: stretch;
justify-content: space-between;
margin: -5px -5px 5px 0;
`,Ss=J.div`
line-height: 18px;
font-weight: 700;
font-size: 14px;
margin: 5px 5px 5px 0;
`,ws=J.p`
font-size: 14px;
line-height: 18px;
text-align: start;
text-wrap: balance;
margin: 0;
margin-top: 5px;
`,Ts=J.div`
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 15px;
`,Is=J.span`
font-size: 13px;
`,Cs=({index:e,size:t,step:n,closeProps:r,primaryProps:o,tooltipProps:i})=>(se(()=>{let a=document.createElement("style");return a.id="#sb-onboarding-arrow-style",a.innerHTML=`
.__floater__arrow { container-type: size; }
.__floater__arrow span { background: ${It.secondary}; }
.__floater__arrow span::before, .__floater__arrow span::after {
content: '';
display: block;
width: 2px;
height: 2px;
background: ${It.secondary};
box-shadow: 0 0 0 2px ${It.secondary};
border-radius: 3px;
flex: 0 0 2px;
}
@container (min-height: 1px) {
.__floater__arrow span { flex-direction: column; }
}
`,document.head.appendChild(a),()=>{let s=document.querySelector("#sb-onboarding-arrow-style");s&&s.remove()}},[]),m.createElement(vs,{...i,style:n.styles?.tooltip},m.createElement(Es,null,m.createElement(Os,null,n.title&&m.createElement(Ss,null,n.title),m.createElement(Rn,{...r,onClick:r.onClick,variant:"solid"},m.createElement(jn,null))),m.createElement(ws,null,n.content)),m.createElement(Ts,{id:"buttonNext"},m.createElement(Is,null,e+1," of ",t),!n.hideNextButton&&m.createElement(bs,{...o,onClick:n.onNextButtonClick||o.onClick,variant:"white"},e+1===t?"Done":"Next"))));xs=J(ze.Content)(({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,gap:8})),_s=J.div({display:"grid",gridTemplateColumns:"1fr 1fr",gap:14,marginBottom:8}),As=J.div(({theme:e})=>({marginTop:8,marginBottom:2,fontWeight:e.typography.weight.bold})),Ns=J.label({display:"flex",gap:8,'&:has(input[type="checkbox"]:not(:disabled), input[type="radio"]:not(:disabled))':{cursor:"pointer"}}),ks=J(ze.Actions)({marginTop:8}),Ls=J(Tt.Checkbox)({margin:2}),js=({onComplete:e,onDismiss:t})=>{let[n,r]=ae(!1),[o,i]=ae({building:{label:"What are you building?",type:"checkbox",required:!0,options:en({"design-system":{label:"Design system"},"application-ui":{label:"Application UI"}}),values:{"design-system":!1,"application-ui":!1}},interest:{label:"Which of these are you interested in?",type:"checkbox",required:!0,options:en({"ui-documentation":{label:"Generating UI docs"},"functional-testing":{label:"Functional testing"},"accessibility-testing":{label:"Accessibility testing"},"visual-testing":{label:"Visual testing"},"ai-augmented-development":{label:"Building UI with AI"},"team-collaboration":{label:"Team collaboration"},"design-handoff":{label:"Design handoff"}}),values:{"ui-documentation":!1,"functional-testing":!1,"accessibility-testing":!1,"visual-testing":!1,"ai-augmented-development":!1,"team-collaboration":!1,"design-handoff":!1}},referrer:{label:"How did you discover Storybook?",type:"select",required:!0,options:en({"we-use-it-at-work":{label:"We use it at work"},"via-friend-or-colleague":{label:"Via friend or colleague"},"via-social-media":{label:"Via social media"},youtube:{label:"YouTube"},"web-search":{label:"Web Search"},"ai-agent":{label:"AI Agent (e.g. ChatGPT)"}}),values:{"we-use-it-at-work":!1,"via-friend-or-colleague":!1,"via-social-media":!1,youtube:!1,"web-search":!1,"ai-agent":!1}}}),a=(c,l,p)=>{let u=o[c];i(d=>{if(u.type==="checkbox"){let h={...u.values,[l]:!!p};return{...d,[c]:{...u,values:h}}}if(u.type==="select"){let h=Object.fromEntries(Object.entries(u.values).map(([f])=>[f,f===l]));return{...d,[c]:{...u,values:h}}}return d})},s=Object.values(o).every(c=>c.required?Object.values(c.values).some(l=>l===!0):!0);return m.createElement(ze,{defaultOpen:!0,width:420,onEscapeKeyDown:t},m.createElement(Tt,{onSubmit:c=>{s&&(c.preventDefault(),r(!0),e(Object.fromEntries(Object.entries(o).map(([l,p])=>[l,p.values]))))},id:"intent-survey-form"},m.createElement(xs,null,m.createElement(ze.Header,null,m.createElement(ze.Title,null,"Help improve Storybook")),Object.keys(o).map(c=>{let l=o[c];return m.createElement(m.Fragment,{key:c},m.createElement(As,null,l.label),l.type==="checkbox"&&m.createElement(_s,null,Object.entries(l.options).map(([p,u])=>{let d=`${c}:${p}`;return m.createElement("div",{key:d},m.createElement(Ns,{htmlFor:d},m.createElement(Ls,{name:d,id:d,checked:l.values[p],disabled:n,onChange:h=>a(c,p,h.target.checked)}),u.label))})),l.type==="select"&&m.createElement(Tt.Select,{name:c,id:c,value:Object.entries(l.values).find(([,p])=>p)?.[0]||"",required:l.required,disabled:n,onChange:p=>a(c,p.target.value)},m.createElement("option",{disabled:!0,hidden:!0,value:""},"Select an option..."),Object.entries(l.options).map(([p,u])=>m.createElement("option",{key:p,value:p},u.label))))}),m.createElement(ks,null,m.createElement(Pn,{disabled:n||!s,size:"medium",type:"submit",variant:"solid"},"Submit")))))};Ds=rt({from:{opacity:0},to:{opacity:1}}),vo=rt({from:{transform:"translate(0, 20px)",opacity:0},to:{transform:"translate(0, 0)",opacity:1}}),Fs=rt({from:{opacity:0,transform:"scale(0.8)"},to:{opacity:1,transform:"scale(1)"}}),Bs=rt({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ws=J.div(({visible:e})=>({position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",opacity:e?1:0,alignItems:"center",justifyContent:"center",zIndex:1e3,transition:"opacity 1s 0.5s"})),Hs=J.div({position:"absolute",top:0,left:0,right:0,bottom:0,animation:`${Ds} 2s`,background:`
radial-gradient(90% 90%, #ff4785 0%, #db5698 30%, #1ea7fdcc 100%),
radial-gradient(circle, #ff4785 0%, transparent 80%),
radial-gradient(circle at 30% 40%, #fc521f99 0%, #fc521f66 20%, transparent 40%),
radial-gradient(circle at 75% 75%, #fc521f99 0%, #fc521f77 18%, transparent 30%)`,"&::before":{opacity:.5,background:`
radial-gradient(circle at 30% 40%, #fc521f99 0%, #fc521f66 10%, transparent 20%),
radial-gradient(circle at 75% 75%, #fc521f99 0%, #fc521f77 8%, transparent 20%)`,content:'""',position:"absolute",top:"-50vw",left:"-50vh",transform:"translate(-50%, -50%)",width:"calc(100vw + 100vh)",height:"calc(100vw + 100vh)",animation:`${Bs} 12s linear infinite`}}),Us=J.div(({visible:e})=>({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:"white",textAlign:"center",width:"90vw",minWidth:290,maxWidth:410,opacity:e?1:0,transition:"opacity 0.5s",h1:{fontSize:45,fontWeight:"bold",animation:`${vo} 1.5s 1s backwards`}})),zs=J.div({display:"flex",marginTop:40,div:{display:"flex",flexBasis:"33.33%",flexDirection:"column",alignItems:"center",animation:`${vo} 1s backwards`,"&:nth-child(1)":{animationDelay:"2s"},"&:nth-child(2)":{animationDelay:"2.5s"},"&:nth-child(3)":{animationDelay:"3s"}},svg:{marginBottom:10}}),Gs=J.button({display:"inline-flex",position:"relative",alignItems:"center",justifyContent:"center",marginTop:40,width:48,height:48,padding:0,borderRadius:"50%",border:0,outline:"none",background:"rgba(255, 255, 255, 0.3)",cursor:"pointer",transition:"background 0.2s",animation:`${Fs} 1.5s 4s backwards`,"&:hover, &:focus":{background:"rgba(255, 255, 255, 0.4)"}}),Ys=J(Ln)({width:30,color:"white"}),_r=J.svg(({progress:e})=>({position:"absolute",top:-1,left:-1,width:"50px!important",height:"50px!important",transform:"rotate(-90deg)",color:"white",circle:{r:"24",cx:"25",cy:"25",fill:"transparent",stroke:e?"currentColor":"transparent",strokeWidth:"1",strokeLinecap:"round",strokeDasharray:Math.PI*48}})),qs=({onDismiss:e,duration:t=6e3})=>{let[n,r]=ae(-4e5/t),[o,i]=ae(!0),a=n>=100,s=nt(()=>{i(!1);let c=setTimeout(e,1500);return()=>clearTimeout(c)},[e]);return se(()=>{if(!t)return;let c=1e3/50,l=100/(t/c),p=setInterval(()=>r(u=>u+l),c);return()=>clearInterval(p)},[t]),se(()=>{a&&s()},[a,s]),m.createElement(Ws,{visible:o},m.createElement(Hs,null),m.createElement(Us,{visible:o},m.createElement("h1",null,"Meet your new frontend workshop"),m.createElement(zs,null,m.createElement("div",null,m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"32"},m.createElement("path",{d:"M4.06 0H32.5v28.44h-3.56V32H.5V3.56h3.56V0Zm21.33 7.11H4.06v21.33h21.33V7.11Z",fill:"currentColor"})),"Development"),m.createElement("div",null,m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32"},m.createElement("path",{d:"M15.95 32c-1.85 0-3.1-1.55-3.1-3.54 0-1.1.45-2.78 1.35-5.03.9-2.3 1.35-4.51 1.35-6.81a22.21 22.21 0 0 0-5.1 3.67c-2.5 2.47-4.95 4.9-7.55 4.9-1.6 0-2.9-1.1-2.9-2.43 0-1.46 1.35-2.91 4.3-3.62 1.45-.36 3.1-.75 4.95-1.06 1.8-.31 3.8-1.02 5.9-2.08a23.77 23.77 0 0 0-6.1-2.12C5.3 13.18 2.3 12.6 1 11.28.35 10.6 0 9.9 0 9.14 0 7.82 1.2 6.8 2.95 6.8c2.65 0 5.75 3.1 7.95 5.3 1.1 1.1 2.65 2.21 4.65 3.27v-.57c0-1.77-.15-3.23-.55-4.3-.8-2.11-2.05-5.43-2.05-6.97 0-2.04 1.3-3.54 3.1-3.54 1.75 0 3.1 1.41 3.1 3.54 0 1.06-.45 2.78-1.35 5.12-.9 2.35-1.35 4.6-1.35 6.72 2.85-1.59 2.5-1.41 4.95-3.5 2.35-2.29 4-3.7 4.9-4.23.95-.58 1.9-.84 2.9-.84 1.6 0 2.8.97 2.8 2.34 0 1.5-1.25 2.78-4.15 3.62-1.4.4-3.05.75-4.9 1.1-1.9.36-3.9 1.07-6.1 2.13a23.3 23.3 0 0 0 5.95 2.08c3.65.7 6.75 1.32 8.15 2.6.7.67 1.05 1.33 1.05 2.08 0 1.33-1.2 2.43-2.95 2.43-2.95 0-6.75-4.15-8.2-5.61-.7-.7-2.2-1.72-4.4-2.96v.57c0 1.9.45 4.03 1.3 6.32.85 2.3 1.3 3.94 1.3 4.95 0 2.08-1.35 3.54-3.1 3.54Z",fill:"currentColor"})),"Testing"),m.createElement("div",null,m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"32"},m.createElement("path",{d:"M.5 16a16 16 0 1 1 32 0 16 16 0 0 1-32 0Zm16 12.44A12.44 12.44 0 0 1 4.3 13.53a8 8 0 1 0 9.73-9.73 12.44 12.44 0 1 1 2.47 24.64ZM12.06 16a4.44 4.44 0 1 1 0-8.89 4.44 4.44 0 0 1 0 8.89Z",fill:"currentColor",fillRule:"evenodd"})),"Documentation")),m.createElement(Gs,{onClick:s},m.createElement(Ys,null),m.createElement(_r,{xmlns:"http://www.w3.org/2000/svg"},m.createElement("circle",null)),m.createElement(_r,{xmlns:"http://www.w3.org/2000/svg",progress:!0},m.createElement("circle",{strokeDashoffset:Math.PI*48*(1-Math.max(0,Math.min(n,100))/100)})))))},$s=J.span(({theme:e})=>({display:"inline-flex",borderRadius:3,padding:"0 5px",marginBottom:-2,opacity:.8,fontFamily:e.typography.fonts.mono,fontSize:11,border:e.base==="dark"?e.color.darkest:e.color.lightest,color:e.base==="dark"?e.color.lightest:e.color.darkest,backgroundColor:e.base==="dark"?"black":e.color.light,boxSizing:"border-box",lineHeight:"17px"})),Vs=J.div(({theme:e})=>({background:e.background.content,borderRadius:3,marginTop:15,padding:10,fontSize:e.typography.size.s1,".linenumber":{opacity:.5}})),Ks=qt()});Z();Q();ee();Z();Q();ee();Et();St();zt();Gt();Z();Q();ee();var tu=__STORYBOOK_API__,{ActiveTabs:nu,Consumer:ru,ManagerContext:ou,Provider:iu,RequestResponseError:au,addons:Cn,combineParameters:su,controlOrMetaKey:lu,controlOrMetaSymbol:cu,eventMatchesShortcut:uu,eventToShortcut:pu,experimental_MockUniversalStore:du,experimental_UniversalStore:fu,experimental_getStatusS Line truncated
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
@@ -0,0 +1,971 @@
try{
(()=>{var P1=Object.defineProperty;var Ke=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var co=(e,t)=>()=>(e&&(t=e(e=0)),t);var N1=(e,t)=>{for(var r in t)P1(e,r,{get:t[r],enumerable:!0})};var te=co(()=>{});var re=co(()=>{});var ne=co(()=>{});var xc={};N1(xc,{A:()=>j1,ActionBar:()=>Cn,AddonPanel:()=>Dn,Badge:()=>gr,Bar:()=>Tn,Blockquote:()=>M1,Button:()=>Je,ClipboardCode:()=>$1,Code:()=>q1,DL:()=>U1,Div:()=>H1,DocumentWrapper:()=>V1,EmptyTabContent:()=>kn,ErrorFormatter:()=>z1,FlexBar:()=>Ai,Form:()=>$e,H1:()=>G1,H2:()=>W1,H3:()=>Y1,H4:()=>K1,H5:()=>X1,H6:()=>J1,HR:()=>Z1,IconButton:()=>ce,Img:()=>Q1,LI:()=>eE,Link:()=>Ze,ListItem:()=>tE,Loader:()=>rE,Modal:()=>It,OL:()=>nE,P:()=>xi,Placeholder:()=>oE,Pre:()=>aE,ProgressSpinner:()=>iE,ResetWrapper:()=>wi,ScrollArea:()=>Si,Separator:()=>Ci,Spaced:()=>sE,Span:()=>lE,StorybookIcon:()=>uE,StorybookLogo:()=>cE,SyntaxHighlighter:()=>On,TT:()=>dE,TabBar:()=>pE,TabButton:()=>mE,TabWrapper:()=>hE,Table:()=>fE,Tabs:()=>gE,TabsState:()=>yE,TooltipLinkList:()=>In,TooltipMessage:()=>bE,TooltipNote:()=>vt,UL:()=>EE,WithTooltip:()=>De,WithTooltipPure:()=>Di,Zoom:()=>Ti,codeCommon:()=>Qt,components:()=>vE,createCopyToClipboardFunction:()=>AE,default:()=>L1,getStoryHref:()=>xE,interleaveSeparators:()=>wE,nameSpaceClassNames:()=>SE,resetComponents:()=>CE,withReset:()=>er});var L1,j1,Cn,Dn,gr,Tn,M1,Je,$1,q1,U1,H1,V1,kn,z1,Ai,$e,G1,W1,Y1,K1,X1,J1,Z1,ce,Q1,eE,Ze,tE,rE,It,nE,xi,oE,aE,iE,wi,Si,Ci,sE,lE,uE,cE,On,dE,pE,mE,hE,fE,gE,yE,In,bE,vt,EE,De,Di,Ti,Qt,vE,AE,xE,wE,SE,CE,er,J=co(()=>{te();re();ne();L1=__STORYBOOK_COMPONENTS__,{A:j1,ActionBar:Cn,AddonPanel:Dn,Badge:gr,Bar:Tn,Blockquote:M1,Button:Je,ClipboardCode:$1,Code:q1,DL:U1,Div:H1,DocumentWrapper:V1,EmptyTabContent:kn,ErrorFormatter:z1,FlexBar:Ai,Form:$e,H1:G1,H2:W1,H3:Y1,H4:K1,H5:X1,H6:J1,HR:Z1,IconButton:ce,Img:Q1,LI:eE,Link:Ze,ListItem:tE,Loader:rE,Modal:It,OL:nE,P:xi,Placeholder:oE,Pre:aE,ProgressSpinner:iE,ResetWrapper:wi,ScrollArea:Si,Separator:Ci,Spaced:sE,Span:lE,StorybookIcon:uE,StorybookLogo:cE,SyntaxHighlighter:On,TT:dE,TabBar:pE,TabButton:mE,TabWrapper:hE,Table:fE,Tabs:gE,TabsState:yE,TooltipLinkList:In,TooltipMessage:bE,TooltipNote:vt,UL:EE,WithTooltip:De,WithTooltipPure:Di,Zoom:Ti,codeCommon:Qt,components:vE,createCopyToClipboardFunction:AE,getStoryHref:xE,interleaveSeparators:wE,nameSpaceClassNames:SE,resetComponents:CE,withReset:er}=__STORYBOOK_COMPONENTS__});te();re();ne();te();re();ne();te();re();ne();var c=__REACT__,{Children:po,Component:Et,Fragment:ft,Profiler:mI,PureComponent:hI,StrictMode:fI,Suspense:Ec,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gI,act:yI,cloneElement:Pe,createContext:Lr,createElement:Y,createFactory:bI,createRef:EI,forwardRef:vc,isValidElement:vI,lazy:Ac,memo:Xe,startTransition:AI,unstable_act:xI,useCallback:Q,useContext:mo,useDebugValue:wI,useDeferredValue:SI,useEffect:X,useId:CI,useImperativeHandle:DI,useInsertionEffect:TI,useLayoutEffect:ho,useMemo:Me,useReducer:kI,useRef:ye,useState:z,useSyncExternalStore:OI,useTransition:II,version:RI}=__REACT__;J();te();re();ne();var jI=__STORYBOOK_ICONS__,{AccessibilityAltIcon:MI,AccessibilityIcon:$I,AccessibilityIgnoredIcon:qI,AddIcon:go,AdminIcon:UI,AlertAltIcon:HI,AlertIcon:VI,AlignLeftIcon:zI,AlignRightIcon:GI,AppleIcon:WI,ArrowBottomLeftIcon:YI,ArrowBottomRightIcon:KI,ArrowDownIcon:XI,ArrowLeftIcon:JI,ArrowRightIcon:ZI,ArrowSolidDownIcon:QI,ArrowSolidLeftIcon:eR,ArrowSolidRightIcon:tR,ArrowSolidUpIcon:rR,ArrowTopLeftIcon:nR,ArrowTopRightIcon:oR,ArrowUpIcon:aR,AzureDevOpsIcon:iR,BackIcon:sR,BasketIcon:lR,BatchAcceptIcon:uR,BatchDenyIcon:cR,BeakerIcon:dR,BellIcon:pR,BitbucketIcon:mR,BoldIcon:hR,BookIcon:fR,BookmarkHollowIcon:gR,BookmarkIcon:yR,BottomBarIcon:bR,BottomBarToggleIcon:ER,BoxIcon:vR,BranchIcon:AR,BrowserIcon:wc,ButtonIcon:xR,CPUIcon:wR,CalendarIcon:SR,CameraIcon:CR,CameraStabilizeIcon:DR,CategoryIcon:TR,CertificateIcon:kR,ChangedIcon:OR,ChatIcon:IR,CheckIcon:yo,ChevronDownIcon:bo,ChevronLeftIcon:RR,ChevronRightIcon:Sc,ChevronSmallDownIcon:Eo,ChevronSmallLeftIcon:BR,ChevronSmallRightIcon:_R,ChevronSmallUpIcon:Cc,ChevronUpIcon:Dc,ChromaticIcon:FR,ChromeIcon:PR,CircleHollowIcon:NR,CircleIcon:vo,ClearIcon:LR,CloseAltIcon:jR,CloseIcon:MR,CloudHollowIcon:$R,CloudIcon:qR,CogIcon:UR,CollapseIcon:HR,CommandIcon:VR,CommentAddIcon:zR,CommentIcon:GR,CommentsIcon:WR,CommitIcon:YR,CompassIcon:KR,ComponentDrivenIcon:XR,ComponentIcon:JR,ContrastIcon:ZR,ContrastIgnoredIcon:QR,ControlsIcon:eB,CopyIcon:tB,CreditIcon:rB,CrossIcon:nB,DashboardIcon:oB,DatabaseIcon:aB,DeleteIcon:iB,DiamondIcon:sB,DirectionIcon:lB,DiscordIcon:uB,DocChartIcon:cB,DocListIcon:dB,DocumentIcon:yr,DownloadIcon:pB,DragIcon:mB,EditIcon:hB,EllipsisIcon:fB,EmailIcon:gB,ExpandAltIcon:yB,ExpandIcon:bB,EyeCloseIcon:Tc,EyeIcon:kc,FaceHappyIcon:EB,FaceNeutralIcon:vB,FaceSadIcon:AB,FaLine truncated
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(a,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,l){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",m=s;typeof s=="string"&&s.includes(`
`)&&(m=String(s).split(`
`).map(function(p,f){return f===0?p:""+d+p}).join(`
`)),i+=m+n[l+1]}),i}Ae(ke,"dedent");function Li({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}Ae(Li,"parseErrorCode");var Ed=class vd extends Error{constructor(t){super(vd.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return Li({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:n,message:o}){let a;return t===!0?a=`https://storybook.js.org/error/${Li({code:r,category:n})}`:typeof t=="string"?a=t:Array.isArray(t)&&(a=`
${t.map(i=>` - ${i}`).join(`
`)}`),`${o}${a!=null?`
More info: ${a}
`:""}`}};Ae(Ed,"StorybookError");var Te=Ed,TE=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))(TE||{}),Ad=class extends Te{constructor(t){super({category:"PREVIEW_API",code:1,message:ke`
Couldn't find story matching id '${t.storyId}' after HMR.
- Did you just rename a story?
- Did you remove it from your CSF file?
- Are you sure a story with the id '${t.storyId}' exists?
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
- Also check the browser console and terminal for potential error messages.`}),this.data=t}};Ae(Ad,"MissingStoryAfterHmrError");var xd=Ad,wd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:ke`
We detected that you use an implicit action arg while ${t.phase} of your story.
${t.deprecated?`
This is deprecated and won't work in Storybook 8 anymore.
`:""}
Please provide an explicit spy to your args like this:
import { fn } from 'storybook/test';
...
args: {
${t.name}: fn()
}`}),this.data=t}};Ae(wd,"ImplicitActionsDuringRendering");var Sd=wd,Cd=class extends Te{constructor(){super({category:"PREVIEW_API",code:3,message:ke`
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
You probably meant to call \`await preview.extract()\` which does the above for you.`})}};Ae(Cd,"CalledExtractOnStoreError");var Dd=Cd,Td=class extends Te{constructor(){super({category:"PREVIEW_API",code:4,message:ke`
Expected your framework's preset to export a \`renderToCanvas\` field.
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};Ae(Td,"MissingRenderToCanvasError");var kd=Td,Od=class extends Te{constructor(t){super({category:"PREVIEW_API",code:5,message:ke`
Called \`Preview.${t.methodName}()\` before initialization.
The preview needs to load the story index before most methods can be called. If you want
to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first.
If you didn't call the above code, then likely it was called by an addon that needs to
do the above.`}),this.data=t}};Ae(Od,"CalledPreviewMethodBeforeInitializationError");var rt=Od,Id=class extends Te{constructor(t){super({category:"PREVIEW_API",code:6,message:ke`
Error fetching \`/index.json\`:
${t.text}
If you are in development, this likely indicates a problem with your Storybook process,
check the terminal for errors.
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
build.`}),this.data=t}};Ae(Id,"StoryIndexFetchError");var Rd=Id,Bd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:7,message:ke`
Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF
references, or autodocs for a CSF file that some doesn't refer to itself.
This likely is an internal error in Storybook's indexing, or you've attached the
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};Ae(Bd,"MdxFileWithNoCsfReferencesError");var _d=Bd,Fd=class extends Te{constructor(){super({category:"PREVIEW_API",code:8,message:ke`
Couldn't find any stories in your Storybook.
- Please check your stories field of your main.js config: does it match correctly?
- Also check the browser console and terminal for error messages.`})}};Ae(Fd,"EmptyIndexError");var Pd=Fd,Nd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:9,message:ke`
Couldn't find story matching '${t.storySpecifier}'.
- Are you sure a story with that id exists?
- Please check your stories field of your main.js config.
- Also check the browser console and terminal for error messages.`}),this.data=t}};Ae(Nd,"NoStoryMatchError");var Ld=Nd,jd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:10,message:ke`
Couldn't find story matching id '${t.storyId}' after importing a CSF file.
The file was indexed as if the story was there, but then after importing the file in the browser
we didn't find the story. Possible reasons:
- You are using a custom story indexer that is misbehaving.
- You have a custom file loader that is removing or renaming exports.
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};Ae(jd,"MissingStoryFromCsfFileError");var Md=jd,$d=class extends Te{constructor(){super({category:"PREVIEW_API",code:11,message:ke`
Cannot access the Story Store until the index is ready.
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
remove access to the store entirely`})}};Ae($d,"StoryStoreAccessedBeforeInitializationError");var qd=$d,Ud=class extends Te{constructor(t){super({category:"PREVIEW_API",code:12,message:ke`
Incorrect use of mount in the play function.
To use mount in the play function, you must satisfy the following two requirements:
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
This makes sure that Storybook does not start rendering the story before the play function begins.
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
This is because destructuring statements and async/await usages are otherwise transpiled away,
which prevents Storybook from recognizing your usage of \`mount\`.
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
More info: https://storybook.js.org/docs/writing-tests/interaction-testing#run-code-before-the-component-gets-rendered
Received the following play function:
${t.playFunction}`}),this.data=t}};Ae(Ud,"MountMustBeDestructuredError");var qr=Ud,Hd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:14,message:ke`
No render function available for storyId '${t.id}'
`}),this.data=t}};Ae(Hd,"NoRenderFunctionError");var Lo=Hd,Vd=class extends Te{constructor(){super({category:"PREVIEW_API",code:15,message:ke`
No component is mounted in your story.
This usually occurs when you destructure mount in the play function, but forget to call it.
For example:
async play({ mount, canvasElement }) {
// 👈 mount should be called: await mount();
const canvas = within(canvasElement);
const button = await canvas.findByRole('button');
await userEvent.click(button);
};
Make sure to either remove it or call mount in your play function.
`})}};Ae(Vd,"NoStoryMountedError");var zd=Vd,kE=class extends Te{constructor(t){super({category:"PREVIEW_API",code:16,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}};Ae(kE,"StatusTypeIdMismatchError");var OE=class extends Te{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:ke`
You are importing avif images, but you don't have sharp installed.
You have to install sharp in order to use image optimization features in Next.js.
`})}};Ae(OE,"NextJsSharpError");var IE=class extends Te{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:ke`
Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment.
`}),this.data=t}};Ae(IE,"NextjsRouterMocksNotAvailable");var RE=class extends Te{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:ke`
There was a failure when generating detailed ArgTypes in ${t.language} for:
${JSON.stringify(t.type,null,2)}
Storybook will fall back to use a generic type description instead.
This type is either not supported or it is a bug in the docgen generation in Storybook.
If you think this is a bug, please detail it as much as possible in the Github issue.
`}),this.data=t}};Ae(RE,"UnknownArgTypesError");var BE=class extends Te{constructor(t){super({category:"ADDON_VITEST",code:1,message:ke`
Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension.
The Storybook plugin only supports values in the following units:
- px, vh, vw, em, rem and %.
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
`}),this.data=t}};Ae(BE,"UnsupportedViewportDimensionError");var _E=class extends Te{constructor(){super({category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}};Ae(_E,"ElementA11yParameterError");te();re();ne();var FE=Object.create,os=Object.defineProperty,PE=Object.getOwnPropertyDescriptor,NE=Object.getOwnPropertyNames,LE=Object.getPrototypeOf,jE=Object.prototype.hasOwnProperty,w=(e,t)=>os(e,"name",{value:t,configurable:!0}),jo=(e=>typeof Ke<"u"?Ke:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ke<"u"?Ke:t)[r]}):e)(function(e){if(typeof Ke<"u")return Ke.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ME=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of NE(t))!jE.call(e,o)&&o!==r&&os(e,o,{get:()=>t[o],enumerable:!(n=PE(t,o))||n.enumerable});return e},Jr=(e,t,r)=>(r=e!=null?FE(LE(e)):{},ME(t||!e||!e.__esModule?os(r,"default",{value:e,enumerable:!0}):r,e)),ip=Ne((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return w(function a(i,s,l){function u(p,f){if(!s[p]){if(!i[p]){var g=typeof jo=="function"&&jo;if(!f&&g)return g(p,!0);if(d)return d(p,!0);var y=new Error("Cannot find module '"+p+"'");throw y.code="MODULE_NOT_FOUND",y}var E=s[p]={exports:{}};i[p][0].call(E.exports,function(b){var x=i[p][1][b];return u(x||b)},E,E.exports,a,i,s,l)}return s[p].exports}w(u,"s");for(var d=typeof jo=="function"&&jo,m=0;m<l.length;m++)u(l[m]);return u},"e")({1:[function(a,i,s){i.exports=function(l){if(typeof Map!="function"||l){var u=a("./similar");return new u}else return new Map}},{"./similar":2}],2:[function(a,i,s){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}w(l,"Similar"),l.prototype.get=function(u){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,u))return this.lastItem.val;if(d=this.indexOf(u),d>=0)return this.lastItem=this.list[d],this.list[d].val},l.prototype.set=function(u,d){var m;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=d,this):(m=this.indexOf(u),m>=0?(this.lastItem=this.list[m],this.list[m].val=d,this):(this.lastItem={key:u,val:d},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(u){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),d=this.indexOf(u),d>=0)return this.size--,this.list.splice(d,1)[0]},l.prototype.has=function(u){var d;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(d=this.indexOf(u),d>=0?(this.lastItem=this.list[d],!0):!1)},l.prototype.forEach=function(u,d){var m;for(m=0;m<this.size;m++)u.call(d||this,this.list[m].val,this.list[m].key,this)},l.prototype.indexOf=function(u){var d;for(d=0;d<this.size;d++)if(this.isEqual(this.list[d].key,u))return d;return-1},l.prototype.isEqual=function(u,d){return u===d||u!==u&&d!==d},i.exports=l},{}],3:[function(a,i,s){var l=a("map-or-similar");i.exports=function(p){var f=new l(!1),g=[];return function(y){var E=w(function(){var b=f,x,S,T=arguments.length-1,_=Array(T+1),O=!0,k;if((E.numArgs||E.numArgs===0)&&E.numArgs!==T+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(k=0;k<T;k++){if(_[k]={cacheItem:b,arg:arguments[k]},b.has(arguments[k])){b=b.get(arguments[k]);continue}O=!1,x=new l(!1),b.set(arguments[k],x),b=x}return O&&(b.has(arguments[T])?S=b.get(arguments[T]):O=!1),O||(S=y.apply(null,arguments),b.set(arguments[T],S)),p>0&&(_[T]={cacheItem:b,arg:arguments[T]},O?u(g,_):g.push(_),g.length>p&&d(g.shift())),E.wasMemoized=O,E.numArgs=T+1,S},"memoizerific");return E.limit=p,E.wasMemoized=!1,E.cache=f,E.lru=g,E}};function u(p,f){var g=p.length,y=f.length,E,b,x;for(b=0;b<g;b++){for(E=!0,x=0;x<y;x++)if(!m(p[b][x].arg,f[x].arg)){E=!1;break}if(E)break}p.push(p.splice(b,1)[0])}w(u,"moveToMostRecentLru");function d(p){var f=p.length,g=p[f-1],y,E;for(g.cacheItem.delete(g.arg),E=f-2;E>=0&&(g=p[E],y=g.cacheItem.get(g.arg),!y||!y.size);E--)g.cacheItem.delete(g.arg)}w(d,"removeCachedResult");function m(p,f){return p===f||p!==p&&f!==f}w(m,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),sp=Ne(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o. Line truncated
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,q=!1,V;return{s:w(function(){D=D.call(v)},"s"),n:w(function(){var G=D.next();return M=G.done,G},"n"),e:w(function(G){q=!0,V=G},"e"),f:w(function(){try{!M&&D.return!=null&&D.return()}finally{if(q)throw V}},"f")}}w(a,"_createForOfIteratorHelper");function i(v,A){if(v){if(typeof v=="string")return s(v,A);var D=Object.prototype.toString.call(v).slice(8,-1);if(D==="Object"&&v.constructor&&(D=v.constructor.name),D==="Map"||D==="Set")return Array.from(v);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return s(v,A)}}w(i,"_unsupportedIterableToArray");function s(v,A){(A==null||A>v.length)&&(A=v.length);for(var D=0,N=new Array(A);D<A;D++)N[D]=v[D];return N}w(s,"_arrayLikeToArray");var l=GE(),u={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var v={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return x(0,5).forEach(function(A){x(0,5).forEach(function(D){x(0,5).forEach(function(N){return m(A,D,N,v)})})}),x(0,23).forEach(function(A){var D=A+232,N=p(A*10+8);v[D]="#"+N+N+N}),v}w(d,"getDefaultColors");function m(v,A,D,N){var F=16+v*36+A*6+D,M=v>0?v*40+55:0,q=A>0?A*40+55:0,V=D>0?D*40+55:0;N[F]=f([M,q,V])}w(m,"setStyleColor");function p(v){for(var A=v.toString(16);A.length<2;)A="0"+A;return A}w(p,"toHexString");function f(v){var A=[],D=a(v),N;try{for(D.s();!(N=D.n()).done;){var F=N.value;A.push(p(F))}}catch(M){D.e(M)}finally{D.f()}return"#"+A.join("")}w(f,"toColorHexString");function g(v,A,D,N){var F;return A==="text"?F=_(D,N):A==="display"?F=E(v,D,N):A==="xterm256Foreground"?F=B(v,N.colors[D]):A==="xterm256Background"?F=P(v,N.colors[D]):A==="rgb"&&(F=y(v,D)),F}w(g,"generateOutput");function y(v,A){A=A.substring(2).slice(0,-1);var D=+A.substr(0,2),N=A.substring(5).split(";"),F=N.map(function(M){return("0"+Number(M).toString(16)).substr(-2)}).join("");return k(v,(D===38?"color:#":"background-color:#")+F)}w(y,"handleRgb");function E(v,A,D){A=parseInt(A,10);var N={"-1":w(function(){return"<br/>"},"_"),0:w(function(){return v.length&&b(v)},"_"),1:w(function(){return O(v,"b")},"_"),3:w(function(){return O(v,"i")},"_"),4:w(function(){return O(v,"u")},"_"),8:w(function(){return k(v,"display:none")},"_"),9:w(function(){return O(v,"strike")},"_"),22:w(function(){return k(v,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:w(function(){return L(v,"i")},"_"),24:w(function(){return L(v,"u")},"_"),39:w(function(){return B(v,D.fg)},"_"),49:w(function(){return P(v,D.bg)},"_"),53:w(function(){return k(v,"text-decoration:overline")},"_")},F;return N[A]?F=N[A]():4<A&&A<7?F=O(v,"blink"):29<A&&A<38?F=B(v,D.colors[A-30]):39<A&&A<48?F=P(v,D.colors[A-40]):89<A&&A<98?F=B(v,D.colors[8+(A-90)]):99<A&&A<108&&(F=P(v,D.colors[8+(A-100)])),F}w(E,"handleDisplay");function b(v){var A=v.slice(0);return v.length=0,A.reverse().map(function(D){return"</"+D+">"}).join("")}w(b,"resetStyles");function x(v,A){for(var D=[],N=v;N<=A;N++)D.push(N);return D}w(x,"range");function S(v){return function(A){return(v===null||A.category!==v)&&v!=="all"}}w(S,"notCategory");function T(v){v=parseInt(v,10);var A=null;return v===0?A="all":v===1?A="bold":2<v&&v<5?A="underline":4<v&&v<7?A="blink":v===8?A="hide":v===9?A="strike":29<v&&v<38||v===39||89<v&&v<98?A="foreground-color":(39<v&&v<48||v===49||99<v&&v<108)&&(A="background-color"),A}w(T,"categoryForCode");function _(v,A){return A.escapeXML?l.encodeXML(v):v}w(_,"pushText");function O(v,A,D){return D||(D=""),v.push(A),"<".concat(A).concat(D?' style="'.concat(D,'"'):"",">")}w(O,"pushTag");function k(v,A){return O(v,"span",A)}w(k,"pushStyle");function B(v,A){return O(v,"span","color:"+A)}w(B,"pushForegroundColor");function P(v,A){return O(v,"span","background-color:"+A)}w(P,"pushBackgroundColor");function L(v,A){var D;if(v.slice(-1)[0]===A&&(D=v.pop()),D)return"</"+A+">"}w(L,"closeTag");function j(v,A,D){var N=!1,F=3;function M(){return""}w(M,"remove");function q(me,ue){return D("xterm256Foreground",ue),""}w(q,"removeXterm256Foreground");function V(me,ue){return D("xterm256Background",ue),""}w(V,"removeXterm256Background");function G(me){return A.newline?D("display",-1):D("text",me),""}w(G,"newline");function se(me,ue){N=!0,ue.trim().length===0&&(ue="0"),ue=ue.trimRight(";").split(";");var ht=a(ue),Sn;try{for(ht.s();!(Sn=ht.n()).done;){var Ei=Sn.value;D("display",Ei)}}catch(vi){ht.e(vi)}finally{ht.f()}return""}w(se,"ansiMess");function pe(me){return D("text",me),""}w(pe,"realText");function ae(me){return D("rgb",me),""}w(ae,"rgb");var we=[{pattern:/^\x08+/,sub:M},{pattern:/^\x1b\[[012]?K/,sub:M},{pattern:/^\x1b\[\(B/,sub:M},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ae},{pattern:/^\x1b\[38;5;(\d+)m/,sub:q},{pattern:/^\x1b\[48;5;(\d+)m/,sub:V},{pattern:/^\n/,sub:G},{pattern:/^\r+\n/,sub:G},{pattern:/^\r/,sub:G},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:se},{patt Line truncated
Previous: ${o.deps}
Incoming: ${r}`),(r==null||o.deps==null||!JE(r,o.deps))&&(t(o),o.deps=r),o}throw ss()}w(gp,"useHook");function Pn(e,t,r){let{memoizedState:n}=gp(e,o=>{o.memoizedState=t()},r);return n}w(Pn,"useMemoLike");function us(e,t){return Pn("useMemo",e,t)}w(us,"useMemo");function Fn(e,t){return Pn("useCallback",()=>e,t)}w(Fn,"useCallback");function cs(e,t){return Pn(e,()=>({current:t}),[])}w(cs,"useRefLike");function ZE(e){return cs("useRef",e)}w(ZE,"useRef");function yp(){let e=ls();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{ut.getChannel().emit(To)}catch{Z.warn("State updates of Storybook preview hooks work only in browser")}}w(yp,"triggerUpdate");function ds(e,t){let r=cs(e,typeof t=="function"?t():t),n=w(o=>{r.current=typeof o=="function"?o(r.current):o,yp()},"setState");return[r.current,n]}w(ds,"useStateLike");function QE(e){return ds("useState",e)}w(QE,"useState");function ev(e,t,r){let n=r!=null?()=>r(t):t,[o,a]=ds("useReducer",n);return[o,w(i=>a(s=>e(s,i)),"dispatch")]}w(ev,"useReducer");function Bt(e,t){let r=Wo(),n=Pn("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}w(Bt,"useEffect");function tv(e,t=[]){let r=ut.getChannel();return Bt(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),Fn(r.emit.bind(r),[r])}w(tv,"useChannel");function Yo(){let{currentContext:e}=Wo();if(e==null)throw ss();return e}w(Yo,"useStoryContext");function rv(e,t){let{parameters:r}=Yo();if(e)return r[e]??t}w(rv,"useParameter");function nv(){let e=ut.getChannel(),{id:t,args:r}=Yo(),n=Fn(a=>e.emit(Po,{storyId:t,updatedArgs:a}),[e,t]),o=Fn(a=>e.emit(Oo,{storyId:t,argNames:a}),[e,t]);return[r,n,o]}w(nv,"useArgs");function ov(){let e=ut.getChannel(),{globals:t}=Yo(),r=Fn(n=>e.emit(Fo,{globals:n}),[e]);return[t,r]}w(ov,"useGlobals");var s6=w(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=w(a=>(i,s)=>{let l=s.parameters&&s.parameters[t];return l&&l.disable||n&&!a&&!l?i(s):r(i,s,{options:a,parameters:l})},"decorator");return(...a)=>typeof a[0]=="function"?o()(...a):(...i)=>{if(i.length>1)return a.length>1?o(a)(...i):o(...a)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed,
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator");function bp(){}w(bp,"noop");function Gi(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}w(Gi,"getSymbols");function Wi(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}w(Wi,"getTag");var av="[object RegExp]",iv="[object String]",sv="[object Number]",lv="[object Boolean]",Yd="[object Arguments]",uv="[object Symbol]",cv="[object Date]",dv="[object Map]",pv="[object Set]",mv="[object Array]",hv="[object Function]",fv="[object ArrayBuffer]",$i="[object Object]",gv="[object Error]",yv="[object DataView]",bv="[object Uint8Array]",Ev="[object Uint8ClampedArray]",vv="[object Uint16Array]",Av="[object Uint32Array]",xv="[object BigUint64Array]",wv="[object Int8Array]",Sv="[object Int16Array]",Cv="[object Int32Array]",Dv="[object BigInt64Array]",Tv="[object Float32Array]",kv="[object Float64Array]";function xt(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}w(xt,"isPlainObject");function Gr(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];r[a]=t(i,a,e)}return r}w(Gr,"mapValues");function Ep(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];t(i,a)&&(r[a]=i)}return r}w(Ep,"pickBy");function vp(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}w(vp,"eq");function Ap(e,t,r){return Vr(e,t,void 0,void 0,void 0,void 0,r)}w(Ap,"isEqualWith");function Vr(e,t,r,n,o,a,i){let s=i(e,t,r,n,o,a);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return e===t;case"number":return e===t||Object.is(e,t);case"function":return e===t;case"object":return zr(e,t,a,i)}return zr(e,t,a,i)}w(Vr,"isEqualWithImpl");function zr(e,t,r,n){if(Object.is(e,t))return!0;let o=Wi(e),a=Wi(t);if(o===Yd&&(o=$i),a===Yd&&(a=$i),o!==a)return!1;switch(o){case iv:return e.toString()===t.toString();case sv:{let l=e.valueOf(),u=t.valueOf();return vp(l,u)}case lv:case cv:case uv:return Object.is(e.valueOf(),t.valueOf());case av:return e.source===t.source&&e.flags===t.flags;case hv:return e===t}r=r??new Map;let i=r.get(e),s=r.get(t);if(i!=null&&s!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(o){case dv:{if(e.size!==t.size)return!1;for(let[l,u]of e.entries())if(!t.has(l)||!Vr(u,t.get(l),l,e,t,r,n))return!1;return!0}case pv:{if(e.size!==t.size)return!1;let l=Array.from(e.values()),u=Array.from(t.values());for(let d=0;d<l.length;d++){let m=l[d],p=u.findIndex(f=>Vr(m,f,void 0,e,t,r,n));if(p===-1)return!1;u.splice(p,1)}return!0}case mv:case bv:case Ev:case vv:case Av:case xv:case wv:case Sv:case Cv:case Dv:case Tv:case kv:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let l=0;l<e.length;l++)if(!Vr(e[l],t[l],l,e,t,r,n))return!1;return!0}case fv:return e.byteLength!==t.byteLength?!1:zr(new Uint8Array(e),new Uint8Array(t),r,n);case yv:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:zr(new Uint8Array(e),new Uint8Array(t),r,n);case gv:return e.name===t.name&&e.message===t.message;case $i:{if(!(zr(e.constructor,t.constructor,r,n)||xt(e)&&xt(t)))return!1;let l=[...Object.keys(e),...Gi(e)],u=[...Object.keys(t),...Gi(t)];if(l.length!==u.length)return!1;for(let d=0;d<l.length;d++){let m=l[d],p=e[m];if(!Object.hasOwn(t,m))return!1;let f=t[m];if(!Vr(p,f,m,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}w(zr,"areObjectsEqual");function xp(e,t){return Ap(e,t,bp)}w(xp,"isEqual");var qi=Jr(ip(),1);function wt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(s,l){var u=l.match(/\n([\t ]+|(?!\s).)/g);return u?s.concat(u.map(function(d){var m,p;return(p=(m=d.match(/[\t ]/g))===null||m===void 0?void 0:m.length)!==null&&p!==void 0?p:0})):s},[]);if(o.length){var a=new RegExp(`
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(a,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,l){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",m=s;typeof s=="string"&&s.includes(`
`)&&(m=String(s).split(`
`).map(function(p,f){return f===0?p:""+d+p}).join(`
`)),i+=m+n[l+1]}),i}w(wt,"dedent");var Ur=Symbol("incompatible"),Yi=w((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?Ur:e.reduce((n,o,a)=>{let i=Yi(o,{type:r.value});return i!==Ur&&(n[a]=i),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Ur:Object.entries(e).reduce((n,[o,a])=>{let i=Yi(a,{type:r.value[o]});return i===Ur?n:Object.assign(n,{[o]:i})},{});default:return Ur}},"map"),Ov=w((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let a=Yi(o,t[n]);return a===Ur?r:Object.assign(r,{[n]:a})},{}),"mapArgsToTypes"),Ki=w((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=Ki(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!xt(e)||!xt(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=Ki(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),Iv=w((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function a(){return n in e&&(r[n]=e[n]),r}if(w(a,"allowArg"),!o)return a();if(!Array.isArray(o))return yt.error(wt`
Invalid argType: '${n}.options' should be an array.
More info: https://storybook.js.org/docs/api/arg-types
`),a();if(o.some(m=>m&&["object","function"].includes(typeof m)))return yt.error(wt`
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
More info: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
`),a();let i=Array.isArray(e[n]),s=i&&e[n].findIndex(m=>!o.includes(m)),l=i&&s===-1;if(e[n]===void 0||o.includes(e[n])||l)return a();let u=i?`${n}[${s}]`:n,d=o.map(m=>typeof m=="string"?`'${m}'`:String(m)).join(", ");return yt.warn(`Received illegal value for '${u}'. Supported options: ${d}`),r},{}),"validateOptions"),Bn=Symbol("Deeply equal"),Uo=w((e,t)=>{if(typeof e!=typeof t)return t;if(xp(e,t))return Bn;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Uo(e[a],o);return i!==Bn&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return xt(e)&&xt(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Uo(e?.[n],t?.[n]);return o===Bn?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),wp="UNTARGETED";function Sp({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=wp}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}w(Sp,"groupArgsByTarget");function Cp(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}w(Cp,"deleteUndefined");var Dp=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Uo(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Bn&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=Iv(r,t.argTypes);this.argsByStoryId[t.id]=Ki(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=Ov(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=Cp({...this.argsByStoryId[t],...r})}};w(Dp,"ArgsStore");var Rv=Dp,Tp=w((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),kp=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Uo(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=Tp(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==Bn&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:Z.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)};for(let r in t)t[r]===void 0&&(this.globals[r]=this.initialGlobals[r])}};w(kp,"GlobalsStore");var Bv=kp,_v=Jr(ip(),1),Fv=(0,_v.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),Op=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(a=>a.id.startsWith(t));let{name:n,title:o}=t;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new xd({storyId:t});return r}importPathToEntry(t){return Fv(this.entries)[t]}};w(Op,"StoryIndexStore");var Pv=Op,Nv=w(e=>typeof e=="string"?{name:e}:e,"normalizeType"),Lv=w(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),jv=w((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=Nv(r)),n?a.control=Lv(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),Ho=w(e=>Gr(e,jv),"normalizeInputTypes"),be=w(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),Mv=wt`
CSF .story annotations deprecated; annotate story functions directly:
- StoryFn.story.name => StoryFn.storyName
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
`;function Vo(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(Z.debug("deprecated story",a),$r(Mv));let i=Jo(e),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,l=[...be(n.decorators),...be(a?.decorators)],u={...a?.parameters,...n.parameters},d={...a?.args,...n.args},m={...a?.argTypes,...n.argTypes},p=[...be(n.loaders),...be(a?.loaders)],f=[...be(n.beforeEach),...be(a?.beforeEach)],g=[...be(n.afterEach),...be(a?.afterEach)],{render:y,play:E,tags:b=[],globals:x={}}=n,S=u.__id||Xo(r.id,i);return{moduleExport:t,id:S,name:s,tags:b,decorators:l,parameters:u,args:d,argTypes:Ho(m),loaders:p,beforeEach:f,afterEach:g,globals:x,...y&&{render:y},...o&&{userStoryFn:o},...E&&{play:E}}}w(Vo,"normalizeStory");function zo(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:Nn(n||t),...e,title:t,...o&&{argTypes:Ho(o)},parameters:{fileName:r,...e.parameters}}}w(zo,"normalizeComponentAnnotations");var $v=w(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Z.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),qv=w(e=>{let{options:t}=e;t?.storySort&&Z.error("The storySort option parameter can only be set globally")},"checkStorySort"),Mo=w(e=>{e&&($v(e),qv(e))},"checkDisallowedParameters");function Ip(e,t,r){let{default:n,__namedExportsOrder:o,...a}=e,i=Object.values(a)[0];if(Ar(i)){let u=zo(i.meta.input,r,t);Mo(u.parameters);let d={meta:u,stories:{},moduleExports:e};return Object.keys(a).forEach(m=>{if(Xr(m,u)){let p=Vo(m,a[m].input,u);Mo(p.parameters),d.stories[p.id]=p}}),d.projectAnnotations=i.meta.preview.composed,d}let s=zo(n,r,t);Mo(s.parameters);let l={meta:s,stories:{},moduleExports:e};return Object.keys(a).forEach(u=>{if(Xr(u,s)){let d=Vo(u,a[u],s);Mo(d.parameters),l.stories[d.id]=d}}),l}w(Ip,"processCSFFile");function Rp(e){return e!=null&&Bp(e).includes("mount")}w(Rp,"mountDestructured");function Bp(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Xi(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?Xi(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}w(Bp,"getUsedProps");function Xi(e){let t=[],r=[],n=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){let i=e.substring(n,a).trim();i&&t.push(i),n=a+1}let o=e.substring(n).trim();return o&&t.push(o),t}w(Xi,"splitByComma");function _p(e,t,r){let n=r(e);return o=>t(n,o)}w(_p,"decorateStory");function Fp({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:l,...u}={}){return u}w(Fp,"sanitizeStoryContextUpdate");function Pp(e,t){let r={},n=w(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Fp(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>_p(a,i,n),e);return a=>(r.value=a,o(a))}w(Pp,"defaultDecorateStory");var Wr=w((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let l=o[i];Array.isArray(s)||typeof l>"u"?o[i]=s:xt(s)&&xt(l)?t[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>xt(i))?n[o]=Wr(...a):n[o]=a[a.length-1]}),n},"combineParameters");function ps(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=ms(e,t,r),s=w(async O=>{let k={};for(let B of[be(r.loaders),be(t.loaders),be(e.loaders)]){if(O.abortSignal.aborted)return k;let P=await Promise.all(B.map(L=>L(O)));Object.assign(k,...P)}return k},"applyLoaders"),l=w(async O=>{let k=new Array;for(let B of[...be(r.beforeEach),...be(t.beforeEach),...be(e.beforeEach)]){if(O.abortSignal.aborted)return k;let P=await B(O);P&&k.push(P)}return k},"applyBeforeEach"),u=w(async O=>{let k=[...be(r.afterEach),...be(t.afterEach),...be(e.afterEach)].reverse();for(let B of k){if(O.abortSignal.aborted)return;await B(O)}},"applyAfterEach"),d=w(O=>O.originalStoryFn(O.args,O),"undecoratedStoryFn"),{applyDecorators:m=Pp,runStep:p}=r,f=[...be(e?.decorators),...be(t?.decorators),...be(r?.decorators)],g=e?.userStoryFn||e?.render||t.render||r.render,y=XE(m)(d,f),E=w(O=>y(O),"unboundStoryFn"),b=e?.play??t?.play,x=Rp(b);if(!g&&!x)throw new Lo({id:o});let S=w(O=>async()=>(await O.renderToCanvas(),O.canvas),"defaultMount"),T=e.mount??t.mount??r.mount??S,_=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:g,undecoratedStoryFn:d,unboundStoryFn:E,applyLoaders:s,applyBeforeEach:l,applyAfterEach:u,playFunction:b,runStep:p,mount:T,testingLibraryRender:_,renderToCanvas:r.renderToCanvas,usesMount:x}}w(ps,"prepareStory");function Np(e,t,r){return{...ms(void 0,e,t),moduleExport:r}}w(Np,"prepareMeta");function ms(e,t,r){let n=["dev","test"],o=H.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=en(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=Wr(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:l=[]}=r,u=Wr(r.argTypes,t.a Line truncated
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
Consider using the mapping feature or fully custom args:
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Ji(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Gr(e,o=>Ji(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Lp=w(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=Gr(n,(i,s)=>({name:s,type:Ji(i,`${t}.${s}`,new Set)})),a=Gr(r,(i,s)=>({name:s}));return Wr(o,a,r)},"inferArgTypes");Lp.secondPass=!0;var Kd=w((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Uv=w((e,t,r)=>!t&&!r?e:e&&Ep(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||Kd(a,t))&&(!r||!Kd(a,r))}),"filterArgTypes"),Hv=w((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Z.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),jp=w(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=Uv(t,n,o),s=Gr(i,(l,u)=>l?.type&&Hv(l,u.toString(),a));return Wr(s,i)},"inferControls");jp.secondPass=!0;function Go({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,afterEach:i,initialGlobals:s,...l}){return{...e&&{argTypes:Ho(e)},...t&&{globalTypes:Ho(t)},decorators:be(n),loaders:be(o),beforeEach:be(a),afterEach:be(i),argTypesEnhancers:[...r||[],Lp,jp],initialGlobals:s,...l}}w(Go,"normalizeProjectAnnotations");var Vv=w(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function Mp(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}w(Mp,"composeStepRunners");function Yr(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}w(Yr,"getField");function jt(e,t,r={}){return Yr(e,t).reduce((n,o)=>{let a=be(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}w(jt,"getArrayField");function Rn(e,t){return Object.assign({},...Yr(e,t))}w(Rn,"getObjectField");function Hr(e,t){return Yr(e,t).pop()}w(Hr,"getSingletonField");function Kr(e){let t=jt(e,"argTypesEnhancers"),r=Yr(e,"runStep"),n=jt(e,"beforeAll");return{parameters:Wr(...Yr(e,"parameters")),decorators:jt(e,"decorators",{reverseFileOrder:!(H.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Rn(e,"args"),argsEnhancers:jt(e,"argsEnhancers"),argTypes:Rn(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Rn(e,"initialGlobals"),globalTypes:Rn(e,"globalTypes"),loaders:jt(e,"loaders"),beforeAll:Vv(n),beforeEach:jt(e,"beforeEach"),afterEach:jt(e,"afterEach"),render:Hr(e,"render"),renderToCanvas:Hr(e,"renderToCanvas"),applyDecorators:Hr(e,"applyDecorators"),runStep:Mp(r),tags:jt(e,"tags"),mount:Hr(e,"mount"),testingLibraryRender:Hr(e,"testingLibraryRender")}}w(Kr,"composeConfigs");function fs(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}w(fs,"isTestEnvironment");function gs(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
animation: none !important;
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
animation-delay: 0s !important;
animation-direction: ${e?"reverse":"normal"} !important;
animation-play-state: paused !important;
transition: none !important;
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}w(gs,"pauseAnimations");async function ys(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...bs(globalThis.document)],o=w(async()=>{if(t||e?.aborted)return;let a=n.flatMap(i=>i?.getAnimations?.()||[]).filter(i=>i.playState==="running"&&!$p(i));a.length>0&&(await Promise.all(a.map(i=>i.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}w(ys,"waitForAnimations");function bs(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...bs(r.shadowRoot)),t),[])}w(bs,"getShadowRoots");function $p(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}w($p,"isInfiniteAnimation");var qp=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};w(qp,"ReporterAPI");var Up=qp;function Hp(e,t,r){return Ar(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:t,preview:r}}w(Hp,"getCsfFactoryAnnotations");function zv(e){globalThis.defaultProjectAnnotations=e}w(zv,"setDefaultProjectAnnotations");var Gv="ComposedStory",Wv="Unnamed Story";function Vp(e){return e?Kr([e]):{}}w(Vp,"extractAnnotation");function Yv(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Kr([...Qr(),globalThis.defaultProjectAnnotations??{},Kr(t.map(Vp))]),globalThis.globalProjectAnnotations??{}}w(Yv,"setProjectAnnotations");var nr=[];function zp(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??Gv;let a=zo(t),i=o||e.storyName||e.story?.name||e.name||Wv,s=Vo(i,e,a),l=Go(Kr([n??globalThis.globalProjectAnnotations??{},r??{}])),u=ps(s,a,l),d={...Tp(l.globalTypes),...l.initialGlobals,...u.storyGlobals},m=new Up,p=w(()=>{let b=hs({hooks:new fp,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:m,loaded:{},abortSignal:new AbortController().signal,step:w((x,S)=>u.runStep(x,S,b),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,u.renderToCanvas&&(b.renderToCanvas=async()=>{let x=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:w(()=>{},"showMain"),showError:w(S=>{throw new Error(`${S.title}
${S.description}`)},"showError"),showException:w(S=>{throw S},"showException"),forceRemount:!0,storyContext:b,storyFn:w(()=>u.unboundStoryFn(b),"storyFn"),unboundStoryFn:u.unboundStoryFn},b.canvasElement);x&&nr.push(x)}),b.mount=u.mount(b),b},"initializeContext"),f,g=w(async b=>{let x=p();return x.canvasElement??=globalThis?.document?.body,f&&(x.loaded=f.loaded),Object.assign(x,b),u.playFunction(x)},"play"),y=w(b=>{let x=p();return Object.assign(x,b),Gp(u,x)},"run"),E=u.playFunction?g:void 0;return Object.assign(w(function(b){let x=p();return f&&(x.loaded=f.loaded),x.args={...x.initialArgs,...b},u.unboundStoryFn(x)},"storyFn"),{id:u.id,storyName:i,load:w(async()=>{for(let x of[...nr].reverse())await x();nr.length=0;let b=p();b.loaded=await u.applyLoaders(b),nr.push(...(await u.applyBeforeEach(b)).filter(Boolean)),f=b},"load"),globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:E,run:y,reporting:m,tags:u.tags})}w(zp,"composeStory");var Kv=w((e,t,r,n)=>zp(e,t,r,{},n),"defaultComposeStory");function Xv(e,t,r=Kv){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=e,s=n;return Object.entries(i).reduce((l,[u,d])=>{let{story:m,meta:p}=Hp(d);return!s&&p&&(s=p),Xr(u,s)?Object.assign(l,{[u]:r(m,s,t,u)}):l},{})}w(Xv,"composeStories");function Jv(e){return e.extend({mount:w(async({mount:t,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(wt`
Portable stories in Playwright CT only work when referencing JSX elements.
Please use JSX format for your components such as:
instead of:
await mount(MyComponent, { props: { foo: 'bar' } })
do:
await mount(<MyComponent foo="bar"/>)
More info: https://storybook.js.org/docs/api/portable-stories-playwright
`);let{props:i,...s}=o;await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u);return("__pw_type"in d?d.type:d)?.load?.()},s);let l=await t(o,...a);return await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u),m="__pw_type"in d?d.type:d,p=document.querySelector("#root");return m?.play?.({canvasElement:p})},s),l})},"mount")})}w(Jv,"createPlaywrightTest");async function Gp(e,t){for(let a of[...nr].reverse())await a();if(nr.length=0,!t.canvasElement){let a=document.createElement("div");globalThis?.document?.body?.appendChild(a),t.canvasElement=a,nr.push(()=>{globalThis?.document?.body?.contains(a)&&globalThis?.document?.body?.removeChild(a)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;nr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new qr({playFunction:r.toString()})}),await r(t));let o;fs()?o=gs():await ys(t.abortSignal),await e.applyAfterEach(t),await o?.()}w(Gp,"runStory");var Xd=1e3,Zv=1e4,Wp=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new Pv(t),this.projectAnnotations=Go(Kr([...Qr(),n]));let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new Rv,this.userGlobals=new Bv({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,qi.default)(Xd)(Ip),this.prepareMetaWithCache=(0,qi.default)(Xd)(Np),this.prepareStoryWithCache=(0,qi.default)(Zv)(ps)}setProjectAnnotations(t){this.projectAnnotations=Go(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new Md({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new fp,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,a=new Up;return hs({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:a,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,...r){this.cleanupCallbacks[t.id]=(this.cleanupCallbacks[t.id]||[]).concat(r)}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new Dd;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let s=r[i],l=this.storyFromCSFFile({storyId:o,csfFile:s});return!t.includeDocsOnly&&l.parameters.docsOnly||(n[o]=Object.entries(l).reduce((u,[d,m])=>d==="moduleExport"||typeof m=="function"?u:Array.isArray(m)?Object.assign(u,{[d]:m.slice().sort()}):Object.assign(u,{[d]:m}),{args:l.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...l.storyGlobals}})),n},{})}};w(Wp,"StoryStore");var Qv=Wp;function Yp(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}w(Yp,"slash");var eA=w(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize Line truncated
CSF Auto-title received a numeric fileName. This typically happens when
webpack is mis-configured in production mode. To force webpack to produce
filenames, set optimization.moduleIds = "named" in your webpack config.
`);let i=Yp(String(e));if(o.exec(i)){if(!r){let s=i.replace(n,""),l=Zi([a,s]).split("/");return l=eA(l),l.join("/")}return a?Zi([a,r]):r}},"userOrAutoTitleFromSpecifier"),P6=w((e,t,r)=>{for(let n=0;n<t.length;n+=1){let o=tA(e,t[n],r);if(o)return o}return r||void 0},"userOrAutoTitle"),Jd=/\s*\/\s*/,rA=w((e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],a=t.title.trim().split(Jd),i=r.title.trim().split(Jd);e.includeNames&&(a.push(t.name),i.push(r.name));let s=0;for(;a[s]||i[s];){if(!a[s])return-1;if(!i[s])return 1;let l=a[s],u=i[s];if(l!==u){let m=o.indexOf(l),p=o.indexOf(u),f=o.indexOf("*");return m!==-1||p!==-1?(m===-1&&(f!==-1?m=f:m=o.length),p===-1&&(f!==-1?p=f:p=o.length),m-p):n==="configure"?0:l.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=o.indexOf(l);d===-1&&(d=o.indexOf("*")),o=d!==-1&&Array.isArray(o[d+1])?o[d+1]:[],s+=1}return 0},"storySort"),nA=w((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=rA(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),N6=w((e,t,r)=>{try{return nA(e,t,r)}catch(n){throw new Error(wt`
Error sorting stories with sort parameter ${t}:
> ${n.message}
Are you using a V6-style sort function in V7 mode?
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
`)}},"sortStoriesV7"),Ko=new Error("prepareAborted"),{AbortController:Zd}=globalThis;function Qi(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}w(Qi,"serializeError");var Kp=class{constructor(t,r,n,o,a,i,s={autoplay:!0,forceInitialArgs:!1},l){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=s,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=w(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Zd,this.renderId=Date.now(),l&&(this.story=l,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(gt,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(gt,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Ko}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:s,name:l,tags:u,applyLoaders:d,applyBeforeEach:m,applyAfterEach:p,unboundStoryFn:f,playFunction:g,runStep:y}=o;r&&!t&&(this.cancelRender(),this.abortController=new Zd);let E=this.abortController.signal,b=!1,x=o.usesMount;try{let S={...this.storyContext(),viewMode:this.viewMode,abortSignal:E,canvasElement:n,loaded:{},step:w(($,v)=>y($,v,S),"step"),context:null,canvas:{},userEvent:{},renderToCanvas:w(async()=>{let $=await this.renderToScreen(T,n);this.teardownRender=$||(()=>{}),b=!0},"renderToCanvas"),mount:w(async(...$)=>{this.callbacks.showStoryDuringRender?.();let v=null;return await this.runPhase(E,"rendering",async()=>{v=await o.mount(S)(...$)}),x&&await this.runPhase(E,"playing"),v},"mount")};S.context=S;let T={componentId:i,title:s,kind:s,id:a,name:l,story:l,tags:u,...this.callbacks,showError:w($=>(this.phase="errored",this.callbacks.showError($)),"showError"),showException:w($=>(this.phase="errored",this.callbacks.showException($)),"showException"),forceRemount:r||this.notYetRendered,storyContext:S,storyFn:w(()=>f(S),"storyFn"),unboundStoryFn:f};if(await this.runPhase(E,"loading",async()=>{S.loaded=await d(S)}),E.aborted)return;let _=await m(S);if(this.store.addCleanupCallbacks(o,..._),this.checkIfAborted(E)||(!b&&!x&&await S.mount(),this.notYetRendered=!1,E.aborted))return;let O=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,k=new Set,B=w($=>{$.error&&k.add($.error)},"onError"),P=w($=>{$.reason&&k.add($.reason)},"onUnhandledRejection");if(this.renderOptions.autoplay&&r&&g&&this.phase!=="errored"){window?.addEventListener?.("error",B),window?.addEventListener?.("unhandledrejection",P),this.disableKeyListeners=!0;try{if(x?await g(S):(S.mount=async()=>{throw new qr({playFunction:g.toString()})},await this.runPhase(E,"playing",async()=>g(S))),!b)throw new zd;this.checkIfAborted(E),!O&&k.size>0?await this.runPhase(E,"errored"):await this.runPhase(E,"played")}catch($){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(E,"errored",async()=>{this.channel.emit(ko,Qi($))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw $;console.error($)}if(!O&&k.size>0&&this.channel.emit(_o,Array.from(k).map(Qi)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",P),window?.removeEventListener?.("error",B),E.aborted)return}await this.runPhase(E,"completing",async()=>{fs()?this.store.addCleanupCallbacks(o,gs()):await ys(E)}),await this.runPhase(E,"completed",async()=>{this.channel.emit(rr,a)}),this.phase!=="errored"&&await this.runPhase(E,"afterEach",async()=>{await p(S)});let L=!O&&k.size>0,j=S.reporting.reports.some($=>$.status==="failed"),U=L||j;await this.runPhase(E,"finished",async()=>this.channel.emit(Pi,{storyId:a,status:U?"error":"success",reporters:S.reporting.reports}))}catch(S){this.phase="errored",this.callbacks.showException(S),await this.runPhase(E,"finished",async()=>this.channel.emit(Pi,{storyId:a,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerende Line truncated
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
- ... or vice versa?
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};w(Jp,"DocsContext");var Zp=Jp,Qp=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ko;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Zp(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,s=w(async()=>{try{await i(n,o,t),this.channel.emit(Do,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:l})=>{!l||!t||a.unmount(t)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};w(Qp,"CsfDocsRender");var Qd=Qp,em=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ko;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Zp(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters??{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:s}=i,l=w(async()=>{try{await s(n,a,t),this.channel.emit(Do,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!t||(i.unmount(t),this.torndown=!0)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};w(em,"MdxDocsRender");var ep=em,lA=globalThis;function tm(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}w(tm,"focusInInput");var rm="attached-mdx",uA="unattached-mdx";function nm({tags:e}){return e?.includes(uA)||e?.includes(rm)}w(nm,"isMdxEntry");function qo(e){return e.type==="story"}w(qo,"isStoryRender");function om(e){return e.type==="docs"}w(om,"isDocsRender");function am(e){return om(e)&&e.subtype==="csf"}w(am,"isCsfDocsRender");var im=class extends iA{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),lA.onkeydown=this.onKeydown.bind(this),this.channel.on(Ro,this.onSetCurrentStory.bind(this)),this.channel.on(bd,this.onUpdateQueryParams.bind(this)),this.channel.on(ld,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new rt({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new rt({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyInd Line truncated
Omitted potentially unsafe URL args.
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url
`),r),{})},"parseArgsParam"),{history:um,document:or}=H;function cm(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}w(cm,"pathToId");var dm=w(({selection:e,extraParams:t})=>{let r=or?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:a,...i}=(0,ts.parse)(r);return`?${(0,ts.stringify)({...i,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),hA=w(e=>{if(!e)return;let t=dm({selection:e}),{hash:r=""}=or.location;or.title=e.storyId,um.replaceState({},"",`${or.location.pathname}${t}${r}`)},"setPath"),fA=w(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),_n=w(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return _n(e[0]);if(fA(e))return _n(Object.values(e).filter(Boolean))}},"getFirstString"),gA=w(()=>{if(typeof or<"u"){let e=or.location.search.slice(1),t=(0,ts.parse)(e),r=typeof t.args=="string"?rp(t.args):void 0,n=typeof t.globals=="string"?rp(t.globals):void 0,o=_n(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");let a=_n(t.path),i=a?cm(a):_n(t.id);if(i)return{storySpecifier:i,args:r,globals:n,viewMode:o}}return null},"getSelectionSpecifierFromPath"),pm=class{constructor(){this.selectionSpecifier=gA()}setSelection(t){this.selection=t,hA(this.selection)}setQueryParams(t){let r=dm({extraParams:t}),{hash:n=""}=or.location;um.replaceState({},"",`${or.location.pathname}${r}${n}`)}};w(pm,"UrlStore");var yA=pm,bA=Jr(WE(),1),EA=Jr(is(),1),{document:qe}=H,np=100,mm=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(mm||{}),Hi={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Vi={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},op=new bA.default({escapeXML:!0}),hm=class{constructor(){if(this.testing=!1,typeof qe<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,EA.parse)(qe.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),qe.documentElement.scrollTop=0,qe.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return qe.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),qe.documentElement.scrollTop=0,qe.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return qe.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){qe.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=Vi[t];qe.body.classList.remove(this.currentLayoutClass),qe.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){Vi[t]||Z.warn(wt`
The desired layout: ${t} is not a valid option.
The possible options are: ${Object.keys(Vi).join(", ")}, none.
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(mm).forEach(r=>{r===t?qe.body.classList.add(Hi[r]):qe.body.classList.remove(Hi[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,a=t.split(`
`);a.length>1&&([n]=a,o=a.slice(1).join(`
`).replace(/^\n/,"")),qe.getElementById("error-message").innerHTML=op.toHtml(n),qe.getElementById("error-stack").innerHTML=op.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),np)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),np)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){qe.body.classList.add(Hi.MAIN)}};w(hm,"WebView");var vA=hm,AA=class extends cA{constructor(t,r){super(t,r,new yA,new vA),this.importFn=t,this.getProjectAnnotations=r,H.__STORYBOOK_PREVIEW__=this}};w(AA,"PreviewWeb");var{document:vr}=H,xA=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],wA="script",ap="scripts-root";function ns(){let e=vr.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),vr.dispatchEvent(e)}w(ns,"simulateDOMContentLoaded");function fm(e,t,r){let n=vr.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):vr.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}w(fm,"insertScript");function Es(e,t,r=0){e[r](()=>{r++,r===e.length?t():Es(e,t,r)})}w(Es,"insertScriptsSequentially");function SA(e){let t=vr.getElementById(ap);t?t.innerHTML="":(t=vr.createElement("div"),t.id=ap,vr.body.appendChild(t));let r=Array.from(e.querySelectorAll(wA));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||xA.includes(a))&&n.push(i=>fm(o,i,t))}),n.length&&Es(n,ns,void 0)}else ns()}w(SA,"simulatePageLoad");var gm="storybook/docs",cP=`${gm}/panel`,CA=`${gm}/snippet-rendered`;async function DA(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:o}=t,a=r&&e?r?.(e,t):e,i=a?await a:void 0;ut.getChannel().emit(CA,{id:n,source:i,args:o})}w(DA,"emitTransformCode");te();re();ne();var gP=__STORYBOOK_TEST__,{buildQueries:yP,clearAllMocks:ym,configure:bP,createEvent:EP,expect:vP,findAllByAltText:AP,findAllByDisplayValue:xP,findAllByLabelText:wP,findAllByPlaceholderText:SP,findAllByRole:CP,findAllByTestId:DP,findAllByText:TP,findAllByTitle:kP,findByAltText:OP,findByDisplayValue:IP,findByLabelText:RP,findByPlaceholderText:BP,findByRole:_P,findByTestId:FP,findByText:PP,findByTitle:NP,fireEvent:LP,fn:bm,getAllByAltText:jP,getAllByDisplayValue:MP,getAllByLabelText:$P,getAllByPlaceholderText:qP,getAllByRole:UP,getAllByTestId:HP,getAllByText:VP,getAllByTitle:zP,getByAltText:GP,getByDisplayValue:WP,getByLabelText:YP,getByPlaceholderText:KP,getByRole:XP,getByTestId:JP,getByText:ZP,getByTitle:QP,getConfig:eN,getDefaultNormalizer:tN,getElementError:rN,getNodeText:nN,getQueriesForElement:oN,getRoles:aN,getSuggestedQuery:iN,isInaccessible:sN,isMockFunction:Em,logDOM:lN,logRoles:uN,mocked:cN,mocks:dN,onMockCall:vm,prettyDOM:pN,prettyFormat:mN,queries:hN,queryAllByAltText:fN,queryAllByAttribute:gN,queryAllByDisplayValue:yN,queryAllByLabelText:bN,queryAllByPlaceholderText:EN,queryAllByRole:vN,queryAllByTestId:AN,queryAllByText:xN,queryAllByTitle:wN,queryByAltText:SN,queryByAttribute:CN,queryByDisplayValue:DN,queryByLabelText:TN,queryByPlaceholderText:kN,queryByRole:ON,queryByTestId:IN,queryByText:RN,queryByTitle:BN,queryHelpers:_N,resetAllMocks:Am,restoreAllMocks:xm,sb:FN,screen:PN,spyOn:NN,uninstrumentedUserEvent:wm,userEvent:LN,waitFor:jN,waitForElementToBeRemoved:MN,within:Sm}=__STORYBOOK_TEST__;te();re();ne();var TA=Object.defineProperty,C=(e,t)=>TA(e,"name",{value:t,configurable:!0}),kA={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[ Line truncated
`)&&(m=r.spacingOuter+s+m+r.spacingOuter+n),m=`{${m}}`),`${r.spacingInner+n+l.prop.open+u+l.prop.close}=${l.value.open}${m}${l.value.close}`}).join("")}C(da,"printProps");function pa(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?Zs(i,t):a(i,t,r,n,o))).join("")}C(pa,"printChildren");function Zs(e,t){let r=t.colors.content;return r.open+Js(e)+r.close}C(Zs,"printText");function eh(e,t){let r=t.colors.comment;return`${r.open}<!--${Js(e)}-->${r.close}`}C(eh,"printComment");function ma(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}C(ma,"printElement");function ha(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}C(ha,"printElementAsLeaf");var MA=1,th=3,rh=8,nh=11,$A=/^(?:(?:HTML|SVG)\w*)?Element$/;function oh(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}C(oh,"testHasAttribute");function ah(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||oh(e);return r===MA&&($A.test(t)||o)||r===th&&t==="Text"||r===rh&&t==="Comment"||r===nh&&t==="DocumentFragment"}C(ah,"testNode");var qA=C(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&ah(e)},"test$3");function ih(e){return e.nodeType===th}C(ih,"nodeIsText");function sh(e){return e.nodeType===rh}C(sh,"nodeIsComment");function Qo(e){return e.nodeType===nh}C(Qo,"nodeIsFragment");var UA=C((e,t,r,n,o,a)=>{if(ih(e))return Zs(e.data,t);if(sh(e))return eh(e.data,t);let i=Qo(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?ha(i,t):ma(i,da(Qo(e)?[]:Array.from(e.attributes,s=>s.name).sort(),Qo(e)?{}:[...e.attributes].reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,n,o,a),pa(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},"serialize$3"),HA={serialize:UA,test:qA},VA="@@__IMMUTABLE_ITERABLE__@@",zA="@@__IMMUTABLE_LIST__@@",GA="@@__IMMUTABLE_KEYED__@@",WA="@@__IMMUTABLE_MAP__@@",Cm="@@__IMMUTABLE_ORDERED__@@",YA="@@__IMMUTABLE_RECORD__@@",KA="@@__IMMUTABLE_SEQ__@@",XA="@@__IMMUTABLE_SET__@@",JA="@@__IMMUTABLE_STACK__@@",rn=C(e=>`Immutable.${e}`,"getImmutableName"),fa=C(e=>`[${e}]`,"printAsLeaf"),Un=" ",Dm="\u2026";function lh(e,t,r,n,o,a,i){return++n>t.maxDepth?fa(rn(i)):`${rn(i)+Un}{${sn(e.entries(),t,r,n,o,a)}}`}C(lh,"printImmutableEntries");function uh(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}C(uh,"getRecordEntries");function ch(e,t,r,n,o,a){let i=rn(e._name||"Record");return++n>t.maxDepth?fa(i):`${i+Un}{${sn(uh(e),t,r,n,o,a)}}`}C(ch,"printImmutableRecord");function dh(e,t,r,n,o,a){let i=rn("Seq");return++n>t.maxDepth?fa(i):e[GA]?`${i+Un}{${e._iter||e._object?sn(e.entries(),t,r,n,o,a):Dm}}`:`${i+Un}[${e._iter||e._array||e._collection||e._iterable?ua(e.values(),t,r,n,o,a):Dm}]`}C(dh,"printImmutableSeq");function ea(e,t,r,n,o,a,i){return++n>t.maxDepth?fa(rn(i)):`${rn(i)+Un}[${ua(e.values(),t,r,n,o,a)}]`}C(ea,"printImmutableValues");var ZA=C((e,t,r,n,o,a)=>e[WA]?lh(e,t,r,n,o,a,e[Cm]?"OrderedMap":"Map"):e[zA]?ea(e,t,r,n,o,a,"List"):e[XA]?ea(e,t,r,n,o,a,e[Cm]?"OrderedSet":"Set"):e[JA]?ea(e,t,r,n,o,a,"Stack"):e[KA]?dh(e,t,r,n,o,a):ch(e,t,r,n,o,a),"serialize$2"),QA=C(e=>e&&(e[VA]===!0||e[YA]===!0),"test$2"),ex={serialize:ZA,test:QA};function Qs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Qs,"getDefaultExportFromCjs");var Tm={exports:{}},he={},km;function ph(){return km||(km=1,function(){function e(y){if(typeof y=="object"&&y!==null){var E=y.$$typeof;switch(E){case t:switch(y=y.type,y){case n:case a:case o:case u:case d:case f:return y;default:switch(y=y&&y.$$typeof,y){case s:case l:case p:case m:return y;case i:return y;default:return E}}case r:return E}}}C(e,"typeOf");var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");he.ContextConsumer=i,he.ContextProvider=s,he.Element=t,he.ForwardRef=l,he.Fragment=n,he.Lazy=p,he.Memo=m,he.Portal=r,he.Profiler=a,he.StrictMode=o,he.Suspense=u,he.SuspenseList=d,he.isContextConsumer=function(y){return e(y)===i},he.isContextProvider=function(y){return e(y)===s},he.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},he.isForwardRef=function(y){return e(y)===l},he.isFragment=function(y){return e(y)===n},he.isLazy=function(y){return e(y)===p},he.isMemo=function(y){return e(y)===m},he.isPortal=function(y){return e(y)===r},he.isProfiler=function(y){r Line truncated
${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new wh(s.message,s.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}C(nl,"printPlugin");function ol(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new wh(n.message,n.stack)}return null}C(ol,"findPlugin");function $t(e,t,r,n,o,a){let i=ol(t.plugins,e);if(i!==null)return nl(i,e,t,r,n,o);let s=tl(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:rl(e,t,r,n,o,a)}C($t,"printer");var al={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},kh=Object.keys(al),St={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:al};function Oh(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(St,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}C(Oh,"validateOptions");function Ih(){return kh.reduce((e,t)=>{let r=al[t],n=r&&Ut[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}C(Ih,"getColorsHighlight");function Rh(){return kh.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}C(Rh,"getColorsEmpty");function il(e){return e?.printFunctionName??St.printFunctionName}C(il,"getPrintFunctionName");function sl(e){return e?.escapeRegex??St.escapeRegex}C(sl,"getEscapeRegex");function ll(e){return e?.escapeString??St.escapeString}C(ll,"getEscapeString");function Rs(e){return{callToJSON:e?.callToJSON??St.callToJSON,colors:e?.highlight?Ih():Rh(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:St.compareKeys,escapeRegex:sl(e),escapeString:ll(e),indent:e?.min?"":Bh(e?.indent??St.indent),maxDepth:e?.maxDepth??St.maxDepth,maxWidth:e?.maxWidth??St.maxWidth,min:e?.min??St.min,plugins:e?.plugins??St.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:il(e),spacingInner:e?.min?" ":`
`,spacingOuter:e?.min?"":`
`}}C(Rs,"getConfig");function Bh(e){return Array.from({length:e+1}).join(" ")}C(Bh,"createIndent");function Ct(e,t){if(t&&(Oh(t),t.plugins)){let n=ol(t.plugins,e);if(n!==null)return nl(n,e,Rs(t),"",0,[])}let r=tl(e,il(t),sl(t),ll(t));return r!==null?r:rl(e,Rs(t),"",0,[])}C(Ct,"format");var ul={AsymmetricMatcher:_A,DOMCollection:jA,DOMElement:HA,Immutable:ex,ReactElement:lx,ReactTestComponent:px,Error:yx},Fm={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},bx={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},nn="\u2026";function _h(e,t){let r=Fm[bx[t]]||Fm[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}C(_h,"colorise");function Fh({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:s=[],truncate:l=1/0,stylize:u=String}={},d){let m={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:d,stylize:u};return m.colors&&(m.stylize=_h),m}C(Fh,"normaliseOptions");function Ph(e){return e>="\uD800"&&e<="\uDBFF"}C(Ph,"isHighSurrogate");function Ht(e,t,r=nn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&Ph(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}C(Ht,"truncate");function bt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",s="",l="";for(let u=0;u<o;u+=1){let d=u+1===e.length,m=u+2===e.length;l=`${nn}(${e.length-u})`;let p=e[u];t.truncate=a-i.length-(d?0:n.length);let f=s||r(p,t)+(d?"":n),g=i.length+f.length,y=g+l.length;if(d&&g>a&&i.length+l.length<=a||!d&&!m&&y>a||(s=d?"":r(e[u+1],t)+(m?"":n),!d&&m&&y>a&&g+s.length>a))break;if(i+=f,!d&&!m&&g+s.length>=a){l=`${nn}(${e.length-u-1})`;break}l=""}return`${i}${l}`}C(bt,"inspectList");function Nh(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}C(Nh,"quoteComplexKey");function on([e,t],r){return r.truncate-=2,typeof e=="string"?e=Nh(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}C(on,"inspectProperty");function Lh(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=bt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=bt(r.map(a=>[a,e[a]]),t,on)),`[ ${n}${o?`, ${o}`:""} ]`}C(Lh,"inspectArray");var Ex=C(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function _t(e,t){let r=Ex(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let s=`${t.stylize(Ht(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=s.length,e[i]!==e.length&&t.truncate<=3){o+=`${nn}(${e.length-e[i]+1})`;break}o+=s}let a="";return n.length&&(a=bt(n.map(i=>[i,e[i]]),t,on)),`${r}[ ${o}${a?`, ${a}`:""} ]`}C(_t,"inspectTypedArray");function jh(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Ht(n[1],t.truncate-o.length-1)}`,"date")}C(jh,"inspectDate");function Bs(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Ht(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}C(Bs,"inspectFunction");function Mh([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}C(Mh,"inspectMapEntry");function $h(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}C($h,"mapToEntries");function qh(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${bt($h(e),t,Mh)} }`)}C(qh,"inspectMap");var vx=Number.isNaN||(e=>e!==e);function _s(e,t){return vx(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Ht(String(e),t.truncate),"number")}C(_s,"inspectNumber");function Fs(e,t){let r=Ht(e.toString(),t.truncate-1);return r!==nn&&(r+="n"),t.stylize(r,"bigint")}C(Fs,"inspectBigInt");function Uh(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Ht(o,n)}/${r}`,"regexp")}C(Uh,"inspectRegExp");function Hh(e){let t=[];return e.forEach(r=>{t.push(r)}),t}C(Hh,"arrayFromSet");function Vh(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${bt(Hh(e),t)} }`)}C(Vh,"inspectSet");var Line truncated
`)}C(ra,"inspectNodeCollection");function Jh(e,t){switch(e.nodeType){case 1:return cl(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}C(Jh,"inspectNode");function cl(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=bt(r.map(d=>[d,e.getAttribute(d)]),t,Xh," ")),t.truncate-=s.length;let l=t.truncate,u=ra(e.children,t);return u&&u.length>l&&(u=`${nn}(${e.children.length})`),`${o}${s}${a}${u}${i}`}C(cl,"inspectHTML");var Dx=typeof Symbol=="function"&&typeof Symbol.for=="function",xs=Dx?Symbol.for("chai/inspect"):"@@chai/inspect",ws=Symbol.for("nodejs.util.inspect.custom"),Nm=new WeakMap,Lm={},jm={undefined:C((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:C((e,t)=>t.stylize("null","null"),"null"),boolean:C((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:C((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:_s,Number:_s,bigint:Fs,BigInt:Fs,string:Ps,String:Ps,function:Bs,Function:Bs,symbol:Ns,Symbol:Ns,Array:Lh,Date:jh,Map:qh,Set:Vh,RegExp:Uh,Promise:Sx,WeakSet:C((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:C((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Yh,Int8Array:_t,Uint8Array:_t,Uint8ClampedArray:_t,Int16Array:_t,Uint16Array:_t,Int32Array:_t,Uint32Array:_t,Float32Array:_t,Float64Array:_t,Generator:C(()=>"","Generator"),DataView:C(()=>"","DataView"),ArrayBuffer:C(()=>"","ArrayBuffer"),Error:Kh,HTMLCollection:ra,NodeList:ra},Tx=C((e,t,r)=>xs in e&&typeof e[xs]=="function"?e[xs](t):ws in e&&typeof e[ws]=="function"?e[ws](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Nm.has(e.constructor)?Nm.get(e.constructor)(e,t):Lm[r]?Lm[r](e,t):"","inspectCustom"),kx=Object.prototype.toString;function na(e,t={}){let r=Fh(t,na),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=kx.call(e).slice(8,-1)),o in jm)return jm[o](e,r);if(n&&e){let i=Tx(e,r,o);if(i)return typeof i=="string"?i:na(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?$n(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?cl(e,r):"constructor"in e?e.constructor!==Object?Wh(e,r):$n(e,r):e===Object(e)?$n(e,r):r.stylize(String(e),o)}C(na,"inspect");var{AsymmetricMatcher:Ox,DOMCollection:Ix,DOMElement:Rx,Immutable:Bx,ReactElement:_x,ReactTestComponent:Fx}=ul,Mm=[Fx,_x,Rx,Ix,Bx,Ox];function an(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Ct(e,{maxDepth:t,escapeString:!1,plugins:Mm,...n})}catch{a=Ct(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Mm,...n})}return a.length>=o&&t>1?an(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}C(an,"stringify");var Px=/%[sdjifoOc%]/g;function Zh(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(tn(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(Px,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():tn(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return tn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return tn(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let s=i.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${tn(a)}`;return o}C(Zh,"format");function tn(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),na(e,t)}C(tn,"inspect");function Qh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(Qh,"getDefaultExportFromCjs");function ef(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}C(ef,"isFinalObj");function oa(e){return Object.prototype.toString.apply(e).slice(8,-1)}C(oa,"getType");function tf(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}C(tf,"collectOwnProperties");function dl(e){let t=new Set;return ef(e)?[]:(tf(e,t),Array.from(t))}C(dl,"getOwnProperties");var rf={forceWritable:!1};function Ls(e,t=rf){return aa(e,new WeakMap,t)}C(Ls,"deepClone");function aa(e,t,r=rf){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=aa(e[n],t,r);return o}if(Object.prototype.toString.caLine truncated
`)}C(pf,"joinAlignedDiffsNoExpand");function mf(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Ue:return hl(a,i,t);case Le:return fl(a,i,t);default:return gl(a,i,t)}}).join(`
`)}C(mf,"joinAlignedDiffsExpand");var Ss=C(e=>e,"noColor"),hf=5,$x=0;function ff(){return{aAnnotation:"Expected",aColor:Ut.green,aIndicator:"-",bAnnotation:"Received",bColor:Ut.red,bIndicator:"+",changeColor:Ut.inverse,changeLineTrailingSpaceColor:Ss,commonColor:Ut.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Ss,compareKeys:void 0,contextLines:hf,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Ut.yellow,printBasicPrototype:!1,truncateThreshold:$x,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Ss}}C(ff,"getDefaultOptions");function gf(e){return e&&typeof e=="function"?e:void 0}C(gf,"getCompareKeys");function yf(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:hf}C(yf,"getContextLines");function ar(e={}){return{...ff(),...e,compareKeys:gf(e.compareKeys),contextLines:yf(e.contextLines)}}C(ar,"normalizeDiffOptions");function wr(e){return e.length===1&&e[0].length===0}C(wr,"isEmptyString");function bf(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ue:t+=1;break;case Le:r+=1;break}}),{a:t,b:r}}C(bf,"countChanges");function Ef({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:s},l){if(s)return"";let u="",d="";if(i){let f=String(l.a),g=String(l.b),y=n.length-e.length,E=" ".repeat(Math.max(0,y)),b=" ".repeat(Math.max(0,-y)),x=g.length-f.length,S=" ".repeat(Math.max(0,x)),T=" ".repeat(Math.max(0,-x));u=`${E} ${r} ${S}${f}`,d=`${b} ${a} ${T}${g}`}let m=`${r} ${e}${u}`,p=`${a} ${n}${d}`;return`${t(m)}
${o(p)}
`}C(Ef,"printAnnotation");function ya(e,t,r){return Ef(r,bf(e))+(r.expand?mf(e,r):pf(e,r))+(t?r.truncateAnnotationColor(`
${r.truncateAnnotation}`):"")}C(ya,"printDiffLines");function Hn(e,t,r){let n=ar(r),[o,a]=yl(wr(e)?[]:e,wr(t)?[]:t,n);return ya(o,a,n)}C(Hn,"diffLinesUnified");function vf(e,t,r,n,o){if(wr(e)&&wr(r)&&(e=[],r=[]),wr(t)&&wr(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Hn(e,t,o);let[a,i]=yl(r,n,o),s=0,l=0;return a.forEach(u=>{switch(u[0]){case Ue:u[1]=e[s],s+=1;break;case Le:u[1]=t[l],l+=1;break;default:u[1]=t[l],s+=1,l+=1}}),ya(a,i,ar(o))}C(vf,"diffLinesUnified2");function yl(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,s=a!==e.length||i!==t.length,l=C((p,f)=>e[p]===t[f],"isCommon"),u=[],d=0,m=0;for(cf(a,i,l,C((p,f,g)=>{for(;d!==f;d+=1)u.push(new xe(Ue,e[d]));for(;m!==g;m+=1)u.push(new xe(Le,t[m]));for(;p!==0;p-=1,d+=1,m+=1)u.push(new xe(Se,t[m]))},"foundSubsequence"));d!==a;d+=1)u.push(new xe(Ue,e[d]));for(;m!==i;m+=1)u.push(new xe(Le,t[m]));return[u,s]}C(yl,"diffLinesRaw");function $s(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}C($s,"getType");function qs(e){return e.includes(`\r
`)?`\r
`:`
`}C(qs,"getNewLineSymbol");function Af(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let p=e.includes(`
`),f=t.includes(`
`),g=qs(e),y=qs(t),E=p?`${e.split(g,o).join(g)}
`:e,b=f?`${t.split(y,o).join(y)}
`:t;a=E.length,i=b.length}let s=a!==e.length||i!==t.length,l=C((p,f)=>e[p]===t[f],"isCommon"),u=0,d=0,m=[];return cf(a,i,l,C((p,f,g)=>{u!==f&&m.push(new xe(Ue,e.slice(u,f))),d!==g&&m.push(new xe(Le,t.slice(d,g))),u=f+p,d=g+p,m.push(new xe(Se,t.slice(g,d)))},"foundSubsequence")),u!==a&&m.push(new xe(Ue,e.slice(u))),d!==i&&m.push(new xe(Le,t.slice(d))),[m,s]}C(Af,"diffStrings");function xf(e,t,r){return t.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}C(xf,"concatenateRelevantDiffs");var wf=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new xe(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new xe(this.op,xf(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new xe(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){let r=t[1];if(r.includes(`
`)){let n=r.split(`
`),o=n.length-1;n.forEach((a,i)=>{i<o?(this.pushSubstring(a),this.pushLine()):a.length!==0&&this.pushSubstring(a)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};C(wf,"ChangeBuffer");var Vm=wf,Sf=class{deleteBuffer;insertBuffer;lines;constructor(t,r){this.deleteBuffer=t,this.insertBuffer=r,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let r=t[1].length===0;(!r||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!r||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let r=t[0],n=t[1];if(n.includes(`
`)){let o=n.split(`
`),a=o.length-1;o.forEach((i,s)=>{if(s===0){let l=new xe(r,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else s<a?this.pushDiffCommonLine(new xe(r,i)):i.length!==0&&this.pushDiffChangeLines(new xe(r,i))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};C(Sf,"CommonBuffer");var qx=Sf;function Cf(e,t){let r=new Vm(Ue,t),n=new Vm(Le,t),o=new qx(r,n);return e.forEach(a=>{switch(a[0]){case Ue:r.align(a);break;case Le:n.align(a);break;default:o.align(a)}}),o.getLines()}C(Cf,"getAlignedDiffs");function Df(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Se&&(o!==r||n[1]!==`
`))}return e.some(r=>r[0]===Se)}C(Df,"hasCommonDiff");function Tf(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
`)||t.includes(`
`),[o,a]=bl(n?`${e}
`:e,n?`${t}
`:t,!0,r);if(Df(o,n)){let i=ar(r),s=Cf(o,i.changeColor);return ya(s,a,i)}}return Hn(e.split(`
`),t.split(`
`),r)}C(Tf,"diffStringsUnified");function bl(e,t,r,n){let[o,a]=Af(e,t,n);return r&&af(o),[o,a]}C(bl,"diffStringsRaw");function ia(e,t){let{commonColor:r}=ar(t);return r(e)}C(ia,"getCommonMessage");var{AsymmetricMatcher:Ux,DOMCollection:Hx,DOMElement:Vx,Immutable:zx,ReactElement:Gx,ReactTestComponent:Wx}=ul,kf=[Wx,Gx,Vx,Hx,zx,Ux,ul.Error],Us={maxDepth:20,plugins:kf},Of={callToJSON:!1,maxDepth:8,plugins:kf};function If(e,t,r){if(Object.is(e,t))return"";let n=$s(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==$s(t)){let i=function(S){return S.length<=E?S:`${S.slice(0,E)}...`};C(i,"truncate");let{aAnnotation:s,aColor:l,aIndicator:u,bAnnotation:d,bColor:m,bIndicator:p}=ar(r),f=sa(Of,r),g=Ct(e,f),y=Ct(t,f),E=1e5;g=i(g),y=i(y);let b=`${l(`${u} ${s}:`)}
${g}`,x=`${m(`${p} ${d}:`)}
${y}`;return`${b}
${x}`}if(!a)switch(n){case"string":return Hn(e.split(`
`),t.split(`
`),r);case"boolean":case"number":return Rf(e,t,r);case"map":return ta(Hs(e),Hs(t),r);case"set":return ta(Vs(e),Vs(t),r);default:return ta(e,t,r)}}C(If,"diff");function Rf(e,t,r){let n=Ct(e,Us),o=Ct(t,Us);return n===o?"":Hn(n.split(`
`),o.split(`
`),r)}C(Rf,"comparePrimitive");function Hs(e){return new Map(Array.from(e.entries()).sort())}C(Hs,"sortMap");function Vs(e){return new Set(Array.from(e.values()).sort())}C(Vs,"sortSet");function ta(e,t,r){let n,o=!1;try{let i=sa(Us,r);n=zs(e,t,i,r)}catch{o=!0}let a=ia(lf,r);if(n===void 0||n===a){let i=sa(Of,r);n=zs(e,t,i,r),n!==a&&!o&&(n=`${ia(jx,r)}
${n}`)}return n}C(ta,"compareObjects");function sa(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=ar(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}C(sa,"getFormatOptions");function zs(e,t,r,n){let o={...r,indent:0},a=Ct(e,o),i=Ct(t,o);if(a===i)return ia(lf,n);{let s=Ct(e,r),l=Ct(t,r);return vf(s.split(`
`),l.split(`
`),a.split(`
`),i.split(`
`),n)}}C(zs,"getObjectsDifference");var zm=2e4;function Gs(e){return oa(e)==="Object"&&typeof e.asymmetricMatch=="function"}C(Gs,"isAsymmetricMatcher");function Ws(e,t){let r=oa(e),n=oa(t);return r===n&&(r==="Object"||r==="Array")}C(Ws,"isReplaceable");function Bf(e,t,r){let{aAnnotation:n,bAnnotation:o}=ar(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=zm&&e.length<=zm&&t!==e){if(t.includes(`
`)||e.includes(`
`))return Tf(t,e,r);let[u]=bl(t,e,!0),d=u.some(g=>g[0]===Se),m=_f(n,o),p=m(n)+Pf(Ys(u,Ue,d)),f=m(o)+Ff(Ys(u,Le,d));return`${p}
${f}`}let a=Ls(t,{forceWritable:!0}),i=Ls(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:l}=El(i,a);return If(s,l,r)}C(Bf,"printDiffOrStringify");function El(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Ws(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),dl(t).forEach(o=>{let a=t[o],i=e[o];if(Gs(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Gs(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Ws(i,a)){let s=El(i,a,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}C(El,"replaceAsymmetricMatcher");function _f(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}C(_f,"getLabelPrinter");var Yx="\xB7";function vl(e){return e.replace(/\s+$/gm,t=>Yx.repeat(t.length))}C(vl,"replaceTrailingSpaces");function Ff(e){return Ut.red(vl(an(e)))}C(Ff,"printReceived");function Pf(e){return Ut.green(vl(an(e)))}C(Pf,"printExpected");function Ys(e,t,r){return e.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===t?r?Ut.inverse(o[1]):o[1]:""),"")}C(Ys,"getCommonAndChangedSubstrings");var Kx="@@__IMMUTABLE_RECORD__@@",Xx="@@__IMMUTABLE_ITERABLE__@@";function Nf(e){return e&&(e[Xx]||e[Kx])}C(Nf,"isImmutable");var Jx=Object.getPrototypeOf({});function Ks(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}C(Ks,"getUnserializableMessage");function qt(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&jn(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&jn(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&jn(()=>r.name??(r.name=e.name)),e.cause!=null&&jn(()=>r.cause??(r.cause=qt(e.cause,t)))),qt(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Nf(e))return qt(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${Zh(e.sample)}`;if(typeof e.toJSON=="function")return qt(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=qt(n,t)}catch(a){r[o]=Ks(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==Jx;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=qt(e[o],t)}catch(a){delete r[o],r[o]=Ks(a)}}),n=Object.getPrototypeOf(n);return r}}C(qt,"serializeValue");function jn(e){try{return e()}catch{}}C(jn,"safe");function Lf(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}C(Lf,"normalizeErrorMessage");function Al(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=Bf(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=an(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=an(n.actual,10));try{typeof n.message=="string"&&(n.message=Lf(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Al(n.cause,t,r))}catch{}try{return qt(n)}catch(o){return qt(new Error(`Failed to fully serialize error: ${o?.message}
Inner error message: ${n?.message}`))}}C(Al,"processError");var Mt={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Cs=globalThis.__STORYBOOK_ADDONS_PREVIEW,Zx=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(Zx||{}),Qx=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Gm=C(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),ew=C(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),tw=C(e=>{if(!Gm(e)&&!ew(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Gm(t)},"isInstrumentable"),rw=C(e=>{try{return new e.constructor}catch{return{}}},"construct"),Ds=C(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),Wm=C((e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},"getRetainedState"),jf=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=C(()=>{try{this.state=H.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=C(()=>{try{H.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=C(({storyId:l,renderPhase:u,isPlaying:d=!0,isDebugging:m=!1})=>{let p=this.getState(l);this.setState(l,{...Ds(),...Wm(p,m),renderPhase:u||p.renderPhase,shadowCalls:m?p.shadowCalls:[],chainedCallIds:m?p.chainedCallIds:new Set,playUntil:m?p.playUntil:void 0,isPlaying:d,isDebugging:m}),this.sync(l)},"resetState"),r=C(l=>({storyId:u,playUntil:d})=>{this.getState(u).isDebugging||this.setState(u,({calls:p})=>({calls:[],shadowCalls:p.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let m=this.getLog(u);this.setState(u,({shadowCalls:p})=>{if(d||!m.length)return{playUntil:d};let f=p.findIndex(g=>g.id===m[0].callId);return{playUntil:p.slice(0,f).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),l.emit(br,{storyId:u,isDebugging:!0})},"start"),n=C(l=>({storyId:u})=>{let d=this.getLog(u).filter(p=>!p.ancestors?.length),m=d.reduceRight((p,f,g)=>p>=0||f.status==="waiting"?p:g,-1);r(l)({storyId:u,playUntil:d[m-1]?.callId})},"back"),o=C(l=>({storyId:u,callId:d})=>{let{calls:m,shadowCalls:p,resolvers:f}=this.getState(u),g=m.find(({id:E})=>E===d),y=p.find(({id:E})=>E===d);if(!g&&y&&Object.values(f).length>0){let E=this.getLog(u).find(b=>b.status==="waiting")?.callId;y.id!==E&&this.setState(u,{playUntil:y.id}),Object.values(f).forEach(b=>b())}else r(l)({storyId:u,playUntil:d})},"goto"),a=C(l=>({storyId:u})=>{let{resolvers:d}=this.getState(u);if(Object.values(d).length>0)Object.values(d).forEach(m=>m());else{let m=this.getLog(u).find(p=>p.status==="waiting")?.callId;m?r(l)({storyId:u,playUntil:m}):i({storyId:u})}},"next"),i=C(({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(u=>u())},"end"),s=C(({storyId:l,newPhase:u})=>{let{isDebugging:d}=this.getState(l);if(u==="preparing"&&d)return t({storyId:l,renderPhase:u});if(u==="playing")return t({storyId:l,renderPhase:u,isDebugging:d});u==="played"?this.setState(l,{renderPhase:u,isLocked:!1,isPlaying:!1,isDebugging:!1}):u==="errored"?this.setState(l,{renderPhase:u,isLocked:!1,isPlaying:!1}):u==="aborted"?this.setState(l,{renderPhase:u,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:u}),this.sync(l)},"renderPhaseChanged");Cs&&Cs.ready().then(()=>{this.channel=Cs.getChannel(),this.channel.on(br,t),this.channel.on(gt,s),this.channel.on(Ro,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Mt.START,r(this.channel)),this.channel.on(Mt.BACK,n(this.channel)),this.channel.on(Mt.GOTO,o(this.channel)),this.channel.on(Mt.NEXT,a(this.channel)),this.channel.on(Mt.END,i)})}getState(t){return this.state[t]||Ds()}setState(t,r){if(t){let n=this.getState(t),o=typeof r=="function"?r(n):r;this.state={...this.state,[t]:{...n,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((r,[n,o])=>{let a=Wm(o);return a&&(r[n]=Object.assign(Ds(),a)),r},{});let t={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Mt.SYNC,t),this.updateParentWindowState()}getLog(t){let{calls:r,shadowCalls:n}=this.getState(t),o=[...n];r.forEach((i,s)=>{o[s]=i});let a=new Set;return o.reduceRight((i,s)=>(s.args.forEach(l=>{l? Line truncated
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(s){return s.replace(a,`
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(s,l){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",m=s;typeof s=="string"&&s.includes(`
`)&&(m=String(s).split(`
`).map(function(p,f){return f===0?p:""+d+p}).join(`
`)),i+=m+n[l+1]}),i}I(ka,"dedent");var yL=Symbol("incompatible"),bL=Symbol("Deeply equal"),xg="UNTARGETED";function wg({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=xg}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}I(wg,"groupArgsByTarget");var bw=I((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),Ew=I(e=>typeof e=="string"?{name:e}:e,"normalizeType"),vw=I(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),Aw=I((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=Ew(r)),n?a.control=vw(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),wa=I(e=>dn(e,Aw),"normalizeInputTypes"),oe=I(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),xw=ka`
CSF .story annotations deprecated; annotate story functions directly:
- StoryFn.story.name => StoryFn.storyName
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
`;function Sg(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(Z.debug("deprecated story",a),$r(xw));let i=Jo(e),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,l=[...oe(n.decorators),...oe(a?.decorators)],u={...a?.parameters,...n.parameters},d={...a?.args,...n.args},m={...a?.argTypes,...n.argTypes},p=[...oe(n.loaders),...oe(a?.loaders)],f=[...oe(n.beforeEach),...oe(a?.beforeEach)],g=[...oe(n.afterEach),...oe(a?.afterEach)],{render:y,play:E,tags:b=[],globals:x={}}=n,S=u.__id||Xo(r.id,i);return{moduleExport:t,id:S,name:s,tags:b,decorators:l,parameters:u,args:d,argTypes:wa(m),loaders:p,beforeEach:f,afterEach:g,globals:x,...y&&{render:y},...o&&{userStoryFn:o},...E&&{play:E}}}I(Sg,"normalizeStory");function Cg(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:Nn(n||t),...e,title:t,...o&&{argTypes:wa(o)},parameters:{fileName:r,...e.parameters}}}I(Cg,"normalizeComponentAnnotations");function Dg(e){return e!=null&&Tg(e).includes("mount")}I(Dg,"mountDestructured");function Tg(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Dl(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?Dl(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}I(Tg,"getUsedProps");function Dl(e){let t=[],r=[],n=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){let i=e.substring(n,a).trim();i&&t.push(i),n=a+1}let o=e.substring(n).trim();return o&&t.push(o),t}I(Dl,"splitByComma");function kg(e,t,r){let n=r(e);return o=>t(n,o)}I(kg,"decorateStory");function Og({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:l,...u}={}){return u}I(Og,"sanitizeStoryContextUpdate");function Ig(e,t){let r={},n=I(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Og(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>kg(a,i,n),e);return a=>(r.value=a,o(a))}I(Ig,"defaultDecorateStory");var lr=I((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let l=o[i];Array.isArray(s)||typeof l>"u"?o[i]=s:Aa(s)&&Aa(l)?t[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>Aa(i))?n[o]=lr(...a):n[o]=a[a.length-1]}),n},"combineParameters");function Rg(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=Bg(e,t,r),s=I(async O=>{let k={};for(let B of[oe(r.loaders),oe(t.loaders),oe(e.loaders)]){if(O.abortSignal.aborted)return k;let P=await Promise.all(B.map(L=>L(O)));Object.assign(k,...P)}return k},"applyLoaders"),l=I(async O=>{let k=new Array;for(let B of[...oe(r.beforeEach),...oe(t.beforeEach),...oe(e.beforeEach)]){if(O.abortSignal.aborted)return k;let P=await B(O);P&&k.push(P)}return k},"applyBeforeEach"),u=I(async O=>{let k=[...oe(r.afterEach),...oe(t.afterEach),...oe(e.afterEach)].reverse();for(let B of k){if(O.abortSignal.aborted)return;await B(O)}},"applyAfterEach"),d=I(O=>O.originalStoryFn(O.args,O),"undecoratedStoryFn"),{applyDecorators:m=Ig,runStep:p}=r,f=[...oe(e?.decorators),...oe(t?.decorators),...oe(r?.decorators)],g=e?.userStoryFn||e?.render||t.render||r.render,y=yw(m)(d,f),E=I(O=>y(O),"unboundStoryFn"),b=e?.play??t?.play,x=Dg(b);if(!g&&!x)throw new Lo({id:o});let S=I(O=>async()=>(await O.renderToCanvas(),O.canvas),"defaultMount"),T=e.mount??t.mount??r.mount??S,_=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:g,undecoratedStoryFn:d,unboundStoryFn:E,applyLoaders:s,applyBeforeEach:l,applyAfterEach:u,playFunction:b,runStep:p,mount:T,testingLibraryRender:_,renderToCanvas:r.renderToCanvas,usesMount:x}}I(Rg,"prepareStory");function Bg(e,t,r){let n=["dev","test"],o=H.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=en(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=lr(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:l=[]}=r,u=lr(r.argTypes,t.argTypes,e?.argTypes);if(e){let b=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=b&&b.length>0}let d={...r.args,...t.args,...e?.args},m={...t.globals,...e?.globals},p={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:d,argTypes:u,storyGlobals:m};p.argTypes=s.reduce((b,x)=>x({...p,argTypes:b}),p.argTypes);let f={...d};p.initialArgs=[...l].reduce((b,x)=>({...b,...x({...p,initialArgs:b})}),f);let{name:g,story:y,...E}=p;return E}I(Bg,"preparePartialAnnotations");function _g(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(H.FEATURES?.argTypeTargetsV7){let a=wg(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[xg]||{}}}let n=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let l=I(u=>{let d=r.argTypes[i].mapping;return d&&u in d?d[u]:u},"mappingFn");return a[i] Line truncated
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
Consider using the mapping feature or fully custom args:
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Tl(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:dn(e,o=>Tl(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Fg=I(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=dn(n,(i,s)=>({name:s,type:Tl(i,`${t}.${s}`,new Set)})),a=dn(r,(i,s)=>({name:s}));return lr(o,a,r)},"inferArgTypes");Fg.secondPass=!0;var Hf=I((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),ww=I((e,t,r)=>!t&&!r?e:e&&Ag(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||Hf(a,t))&&(!r||!Hf(a,r))}),"filterArgTypes"),Sw=I((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Z.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),Pg=I(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=ww(t,n,o),s=dn(i,(l,u)=>l?.type&&Sw(l,u.toString(),a));return lr(s,i)},"inferControls");Pg.secondPass=!0;function Bl({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,afterEach:i,initialGlobals:s,...l}){return{...e&&{argTypes:wa(e)},...t&&{globalTypes:wa(t)},decorators:oe(n),loaders:oe(o),beforeEach:oe(a),afterEach:oe(i),argTypesEnhancers:[...r||[],Fg,Pg],initialGlobals:s,...l}}I(Bl,"normalizeProjectAnnotations");var Cw=I(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function Ng(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}I(Ng,"composeStepRunners");function pn(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}I(pn,"getField");function zt(e,t,r={}){return pn(e,t).reduce((n,o)=>{let a=oe(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}I(zt,"getArrayField");function Gn(e,t){return Object.assign({},...pn(e,t))}I(Gn,"getObjectField");function un(e,t){return pn(e,t).pop()}I(un,"getSingletonField");function _l(e){let t=zt(e,"argTypesEnhancers"),r=pn(e,"runStep"),n=zt(e,"beforeAll");return{parameters:lr(...pn(e,"parameters")),decorators:zt(e,"decorators",{reverseFileOrder:!(H.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Gn(e,"args"),argsEnhancers:zt(e,"argsEnhancers"),argTypes:Gn(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Gn(e,"initialGlobals"),globalTypes:Gn(e,"globalTypes"),loaders:zt(e,"loaders"),beforeAll:Cw(n),beforeEach:zt(e,"beforeEach"),afterEach:zt(e,"afterEach"),render:un(e,"render"),renderToCanvas:un(e,"renderToCanvas"),applyDecorators:un(e,"applyDecorators"),runStep:Ng(r),tags:zt(e,"tags"),mount:un(e,"mount"),testingLibraryRender:un(e,"testingLibraryRender")}}I(_l,"composeConfigs");function Lg(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}I(Lg,"isTestEnvironment");function jg(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
animation: none !important;
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
animation-delay: 0s !important;
animation-direction: ${e?"reverse":"normal"} !important;
animation-play-state: paused !important;
transition: none !important;
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}I(jg,"pauseAnimations");async function Mg(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...Fl(globalThis.document)],o=I(async()=>{if(t||e?.aborted)return;let a=n.flatMap(i=>i?.getAnimations?.()||[]).filter(i=>i.playState==="running"&&!$g(i));a.length>0&&(await Promise.all(a.map(i=>i.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}I(Mg,"waitForAnimations");function Fl(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...Fl(r.shadowRoot)),t),[])}I(Fl,"getShadowRoots");function $g(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}I($g,"isInfiniteAnimation");var qg=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};I(qg,"ReporterAPI");var Dw=qg,Tw="ComposedStory",kw="Unnamed Story",sr=[];function Ug(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??Tw;let a=Cg(t),i=o||e.storyName||e.story?.name||e.name||kw,s=Sg(i,e,a),l=Bl(_l([n??globalThis.globalProjectAnnotations??{},r??{}])),u=Rg(s,a,l),d={...bw(l.globalTypes),...l.initialGlobals,...u.storyGlobals},m=new Dw,p=I(()=>{let b=_g({hooks:new fw,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:m,loaded:{},abortSignal:new AbortController().signal,step:I((x,S)=>u.runStep(x,S,b),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,u.renderToCanvas&&(b.renderToCanvas=async()=>{let x=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:I(()=>{},"showMain"),showError:I(S=>{throw new Error(`${S.title}
${S.description}`)},"showError"),showException:I(S=>{throw S},"showException"),forceRemount:!0,storyContext:b,storyFn:I(()=>u.unboundStoryFn(b),"storyFn"),unboundStoryFn:u.unboundStoryFn},b.canvasElement);x&&sr.push(x)}),b.mount=u.mount(b),b},"initializeContext"),f,g=I(async b=>{let x=p();return x.canvasElement??=globalThis?.document?.body,f&&(x.loaded=f.loaded),Object.assign(x,b),u.playFunction(x)},"play"),y=I(b=>{let x=p();return Object.assign(x,b),Hg(u,x)},"run"),E=u.playFunction?g:void 0;return Object.assign(I(function(b){let x=p();return f&&(x.loaded=f.loaded),x.args={...x.initialArgs,...b},u.unboundStoryFn(x)},"storyFn"),{id:u.id,storyName:i,load:I(async()=>{for(let x of[...sr].reverse())await x();sr.length=0;let b=p();b.loaded=await u.applyLoaders(b),sr.push(...(await u.applyBeforeEach(b)).filter(Boolean)),f=b},"load"),globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:E,run:y,reporting:m,tags:u.tags})}I(Ug,"composeStory");async function Hg(e,t){for(let a of[...sr].reverse())await a();if(sr.length=0,!t.canvasElement){let a=document.createElement("div");globalThis?.document?.body?.appendChild(a),t.canvasElement=a,sr.push(()=>{globalThis?.document?.body?.contains(a)&&globalThis?.document?.body?.removeChild(a)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;sr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new qr({playFunction:r.toString()})}),await r(t));let o;Lg()?o=jg():await Mg(t.abortSignal),await e.applyAfterEach(t),await o?.()}I(Hg,"runStory");var Ow=!1,Sl="Invariant failed";function Sa(e,t){if(!e){if(Ow)throw new Error(Sl);var r=typeof t=="function"?t():t,n=r?"".concat(Sl,": ").concat(r):Sl;throw new Error(n)}}I(Sa,"invariant");var Vg={};hg(Vg,{argsEnhancers:()=>Nw});var Pl="storybook/actions",ML=`${Pl}/panel`,Iw=`${Pl}/action-event`,$L=`${Pl}/action-clear`,Rw={depth:10,clearOnStoryChange:!0,limit:50},zg=I((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:zg(r,t)},"findProto"),Bw=I(e=>!!(typeof e=="object"&&e&&zg(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),_w=I(e=>{if(Bw(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function Oa(e,t={}){let r={...Rw,...t},n=I(function(...o){if(t.implicit){let m=("__STORYBOOK_PREVIEW__"in H?H.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(p=>p.phase==="playing"||p.phase==="rendering");if(m){let p=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,f=new Sd({phase:m.phase,name:e,deprecated:p});if(p)console.warn(f);else throw f}}let a=ut.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,l=o.map(_w),u=o.length>1?l:l[0],d={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:s+(r.depth||3)}};a.emit(Iw,d)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}I(Oa,"action");var Gg=I((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),Fw=I(e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[s,l])=>(Gg(s,t)&&(i[s]=Oa(s,{implicit:!0,id:n})),i),{})},"inferActionsFromArgTypesRegex"),Pw=I(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(Gg(a,t)&&(o[a]=Oa(typeof i.action=="string"?i.action:a)),o),{})},"addActionsFromArgTypes"),Nw=[Pw,Fw],Wg={};hg(Wg,{loaders:()=>jw});var Vf=!1,Lw=I(e=>{let{parameters:t}=e;t?.actions?.disable||Vf||(vm((r,n)=>{let o=r.getMockName();o!=="spy"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>o.startsWith(a)))&&Oa(o)(n)}),Vf=!0)},"logActionsWhenMockCalled"),jw=[Lw],zf=I(()=>({...Vg,...Wg}),"default"),Mw="storybook/background",Ca="backgrounds",HL={UPDATE:`${Mw}/update`},$w={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Dt}=globalThis,qw=I(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),Gf=I(e=>{(Array.isArray(e)?e:[e]).forEach(Uw)},"clearStyles"),Uw=I(e=>{if(!Dt)return;let t=Dt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),Hw=I((e,t)=>{if(!Dt)return;let r=Dt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Dt.createElement("style");n.setAttribute("id", Line truncated
${y} {
background: ${p} !important;
${Gw}
}`;if(!g){Gf(B);return}Vw(B,j,P)},[y,B,P,g,p]);let L=o==="docs"?`${Yf}-docs-${a}`:`${Yf}`;return Bt(()=>{if(!f){Gf(L);return}let j=[`${T*S}px ${T*S}px`,`${T*S}px ${T*S}px`,`${T}px ${T}px`,`${T}px ${T}px`].join(", "),U=`
${E} {
background-size: ${j} !important;
background-position: ${O}px ${k}px, ${O}px ${k}px, ${O}px ${k}px, ${O}px ${k}px !important;
background-blend-mode: difference !important;
background-image: linear-gradient(rgba(130, 130, 130, ${_}) 1px, transparent 1px),
linear-gradient(90deg, rgba(130, 130, 130, ${_}) 1px, transparent 1px),
linear-gradient(rgba(130, 130, 130, ${_/2}) 1px, transparent 1px),
linear-gradient(90deg, rgba(130, 130, 130, ${_/2}) 1px, transparent 1px) !important;
}
`;Hw(L,U)},[S,T,E,L,f,O,k,_]),e()},"withBackgroundAndGrid"),Yw=globalThis.FEATURES?.backgrounds?[Ww]:[],Kw={[Ca]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},Xw={[Ca]:{value:void 0,grid:!1}},Kf=I(()=>({decorators:Yw,parameters:Kw,initialGlobals:Xw}),"default"),{step:Jw}=Vn({step:I(async(e,t,r)=>t(r),"step")},{intercept:!0}),Xf=I(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:Jw}),"default"),Ia="storybook/highlight",Zw=`${Ia}/add`,Qw=`${Ia}/remove`,eS=`${Ia}/reset`,tS=`${Ia}/scroll-into-view`,Jf=2147483647,ir=28,Zf={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},rS="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Oe=I((e,t={},r)=>{let n=rS.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},"createElement"),ba=I(e=>Zf[e]&&Oe("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Zf[e].map(t=>Oe("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),nS=I(e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),oS=I(e=>e instanceof Function,"isFunction"),zn=new Map,Sr=new Map,Ea=new Map,Vt=I(e=>{let t=Symbol();return Sr.set(t,[]),zn.set(t,e),{get:I(()=>zn.get(t),"get"),set:I(r=>{let n=zn.get(t),o=oS(r)?r(n):r;o!==n&&(zn.set(t,o),Sr.get(t)?.forEach(a=>{Ea.get(a)?.(),Ea.set(a,a(o))}))},"set"),subscribe:I(r=>(Sr.get(t)?.push(r),()=>{let n=Sr.get(t);n&&Sr.set(t,n.filter(o=>o!==r))}),"subscribe"),teardown:I(()=>{Sr.get(t)?.forEach(r=>{Ea.get(r)?.(),Ea.delete(r)}),Sr.delete(t),zn.delete(t)},"teardown")}},"useStore"),Qf=I(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(a)||[]];for(let s of i){let l=r.get(s);(!l||l.priority<=o)&&r.set(s,{...n,priority:o,selectors:Array.from(new Set((l?.selectors||[]).concat(a)))})}}}return r},"mapElements"),aS=I(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{let{top:s,left:l,width:u,height:d}=t.getBoundingClientRect(),{position:m}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i,top:m==="fixed"?s:s+window.scrollY,left:m==="fixed"?l:l+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),eg=I((e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},"isOverMenu"),tg=I((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<ir&&(o=o-Math.round((ir-i)/2),i=ir),a<ir&&(n=n-Math.round((ir-a)/2),a=ir),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:s,y:l}=r;return s>=n&&s<=n+a&&l>=o&&l<=o+i},"isTargeted"),iS=I((e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=0,centered:s=!1}=r,{scrollX:l,scrollY:u,innerHeight:d,innerWidth:m}=window,p=Math.min(e.style.position==="fixed"?o-u:o,d-e.clientHeight-a-i+u),f=s?e.clientWidth/2:0,g=e.style.position==="fixed"?Math.max(Math.min(n-l,m-f-a),f+a):Math.max(Math.min(n,m-f-a+l),f Line truncated
#${Ee} {
position: absolute;
z-index: ${Jf};
width: 300px;
padding: 0px;
margin: 15px 0 0 0;
transform: translateX(-50%);
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
background: white;
border: none;
border-radius: 6px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
color: #2E3438;
}
#${Ee} ul {
list-style: none;
margin: 0;
padding: 0;
}
#${Ee} > ul {
max-height: 300px;
overflow-y: auto;
padding: 4px 0;
}
#${Ee} li {
padding: 0 4px;
margin: 0;
}
#${Ee} li > :not(ul) {
display: flex;
padding: 8px;
margin: 0;
align-items: center;
gap: 8px;
border-radius: 4px;
}
#${Ee} button {
width: 100%;
border: 0;
background: transparent;
color: inherit;
text-align: left;
font-family: inherit;
font-size: inherit;
}
#${Ee} button:focus-visible {
outline-color: #029CFD;
}
#${Ee} button:hover {
background: rgba(2, 156, 253, 0.07);
color: #029CFD;
cursor: pointer;
}
#${Ee} li code {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
line-height: 16px;
font-size: 11px;
}
#${Ee} li svg {
flex-shrink: 0;
margin: 1px;
color: #73828C;
}
#${Ee} li > button:hover svg, #${Ee} li > button:focus-visible svg {
color: #029CFD;
}
#${Ee} .element-list li svg {
display: none;
}
#${Ee} li.selectable svg, #${Ee} li.selected svg {
display: block;
}
#${Ee} .menu-list {
border-top: 1px solid rgba(38, 85, 115, 0.15);
}
#${Ee} .menu-list > li:not(:last-child) {
padding-bottom: 4px;
margin-bottom: 4px;
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
}
#${Ee} .menu-items, #${Ee} .menu-items li {
padding: 0;
}
#${Ee} .menu-item {
display: flex;
}
#${Ee} .menu-item-content {
display: flex;
flex-direction: column;
flex-grow: 1;
}
`]))}let B=d.get(),P=B?[B]:s.get();if(P.length&&(k.style.position=getComputedStyle(P[0].element).position==="fixed"?"fixed":"absolute",k.appendChild(Oe("ul",{class:"element-list"},P.map(j=>{let U=P.length>1&&!!j.menu?.some(A=>A.some(D=>!D.selectors||D.selectors.some(N=>j.selectors.includes(N)))),$=U?{class:"selectable",onClick:I(()=>d.set(j),"onClick"),onMouseEnter:I(()=>u.set(j),"onMouseEnter"),onMouseLeave:I(()=>u.set(void 0),"onMouseLeave")}:B?{class:"selected",onClick:I(()=>d.set(void 0),"onClick")}:{},v=U||B;return Oe("li",$,[Oe(v?"button":"div",v?{type:"button"}:{},[B?ba("chevronLeft"):null,Oe("code",{},[j.element.outerHTML]),U?ba("chevronRight"):null])])})))),d.get()||s.get().length===1){let j=d.get()||s.get()[0],U=j.menu?.filter($=>$.some(v=>!v.selectors||v.selectors.some(A=>j.selectors.includes(A))));U?.length&&k.appendChild(Oe("ul",{class:"menu-list"},U.map($=>Oe("li",{},[Oe("ul",{class:"menu-items"},$.map(({id:v,title:A,description:D,iconLeft:N,iconRight:F,clickEvent:M})=>{let q=M&&(()=>e.emit(M,v,lS(j)));return Oe("li",{},[Oe(q?"button":"div",q?{class:"menu-item",type:"button",onClick:q}:{class:"menu-item"},[N?ba(N):null,Oe("div",{class:"menu-item-content"},[Oe(D?"strong":"span",{},[A]),D&&Oe("span",{},[D])]),F?ba(F):null])])}))]))))}let L=a.get();L?(Object.assign(k.style,{display:"block",left:`${k.style.position==="fixed"?L.x-window.scrollX:L.x}px`,top:`${k.style.position==="fixed"?L.y-window.scrollY:L.y}px`}),rg(k),requestAnimationFrame(()=>iS(k,L,{topOffset:15,centered:!0}))):(sS(k),Object.assign(k.style,{display:"none"}))},"renderMenu");s.subscribe(E),d.subscribe(E);let b=I(k=>{let B=nS(k);r.set(P=>{let L=B.id?P.filter(j=>j.id!==B.id):P;return B.selectors?.length?[...L,B]:L})},"addHighlight"),x=I(k=>{k&&r.set(B=>B.filter(P=>P.id!==k))},"removeHighlight"),S=I(()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),s.set([]),l.set([]),u.set(void 0),d.set(void 0)},"resetState"),T,_=I((k,B)=>{let P="scrollIntoView-highlight";clearTimeout(T),x(P);let L=t.querySelector(k);if(!L){console.warn(`Cannot scroll into view: ${k} not found`);return}L.scrollIntoView({behavior:"smooth",block:"center",...B});let j=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(U=>[...U,{id:P,priority:1e3,selectors:[k],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${j} 3s linear forwards`},keyframes:`@keyframes ${j} {
0% { outline: 2px solid #1EA7FD; }
20% { outline: 2px solid #1EA7FD00; }
40% { outline: 2px solid #1EA7FD; }
60% { outline: 2px solid #1EA7FD00; }
80% { outline: 2px solid #1EA7FD; }
100% { outline: 2px solid #1EA7FD00; }
}`}]),T=setTimeout(()=>x(P),3500)},"scrollIntoView"),O=I(k=>{requestAnimationFrame(()=>i.set({x:k.pageX,y:k.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",O),e.on(Zw,b),e.on(Qw,x),e.on(eS,S),e.on(tS,_),e.on(gt,({newPhase:k})=>{k==="loading"&&S()})},"useHighlights");globalThis?.FEATURES?.highlight&&ut?.ready&&ut.ready().then(cS);var og=I(()=>({}),"default"),xa="storybook/measure-addon",JL=`${xa}/tool`,dS="measureEnabled",ZL={RESULT:`${xa}/result`,REQUEST:`${xa}/request`,CLEAR:`${xa}/clear`};function Nl(){let e=H.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}I(Nl,"getDocumentWidthAndHeight");function Yg(){let e=H.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Sa(t!=null);let{width:r,height:n}=Nl();return Da(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",H.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}I(Yg,"createCanvas");function Da(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=H.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}I(Da,"setCanvasWidthAndHeight");var Ie={};function Kg(){Ie.canvas||(Ie=Yg())}I(Kg,"init");function Ll(){Ie.context&&Ie.context.clearRect(0,0,Ie.width??0,Ie.height??0)}I(Ll,"clear");function Xg(e){Ll(),e(Ie.context)}I(Xg,"draw");function Jg(){Sa(Ie.canvas,"Canvas should exist in the state."),Sa(Ie.context,"Context should exist in the state."),Da(Ie.canvas,Ie.context,{width:0,height:0});let{width:e,height:t}=Nl();Da(Ie.canvas,Ie.context,{width:e,height:t}),Ie.width=e,Ie.height=t}I(Jg,"rescale");function Zg(){Ie.canvas&&(Ll(),Ie.canvas.parentNode?.removeChild(Ie.canvas),Ie={})}I(Zg,"destroy");var ln={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Gt=6;function kl(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}I(kl,"roundedRect");function Qg(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let s=n-r.left-r.right-t.left-t.right,l=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,d=a+r.top+t.top;return e==="top"?u+=s/2:e==="right"?(u+=s,d+=l/2):e==="bottom"?(u+=s/2,d+=l):e==="left"?d+=l/2:e==="center"&&(u+=s/2,d+=l/2),{x:u,y:d}}I(Qg,"positionCoordinate");function e2(e,t,{margin:r,border:n,padding:o},a,i){let s=I(p=>0,"shift"),l=0,u=0,d=i?1:.5,m=i?a*2:0;return e==="padding"?s=I(p=>o[p]*d+m,"shift"):e==="border"?s=I(p=>o[p]+n[p]*d+m,"shift"):e==="margin"&&(s=I(p=>o[p]+n[p]+r[p]*d+m,"shift")),t==="top"?u=-s("top"):t==="right"?l=s("right"):t==="bottom"?u=s("bottom"):t==="left"&&(l=-s("left")),{offsetX:l,offsetY:u}}I(e2,"offset");function t2(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}I(t2,"collide");function r2(e,t,r){return e==="top"?t.y=r.y-r.h-Gt:e==="right"?t.x=r.x+r.w/2+Gt+t.w/2:e==="bottom"?t.y=r.y+r.h+Gt:e==="left"&&(t.x=r.x-r.w/2-Gt-t.w/2),{x:t.x,y:t.y}}I(r2,"overlapAdjustment");function jl(e,t,{x:r,y:n,w:o,h:a},i){return kl(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${ln[t]}dd`,e.fill(),e.strokeStyle=ln[t],e.stroke(),e.fillStyle=ln.text,e.fillText(i,r,n),kl(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${ln[t]}dd`,e.fill(),e.strokeStyle=ln[t],e.stroke(),e.fillStyle=ln.text,e.fillText(i,r,n),{x:r,y:n,w:o,h:a}}I(jl,"textWithRect");function Ml(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+Gt*2,a=n+Gt*2;return{w:o,h:a}}I(Ml,"configureText");function n2(e,t,{type:r,position:n="center",text:o},a,i=!1){let{x:s,y:l}=Qg(n,t),{offsetX:u,offsetY:d}=e2(r,n,t,Gt+1,i);s+=u,l+=d;let{w:m,h:p}=Ml(e,o);if(a&&t2({x:s,y:l,w:m,h:p},a)){let f=r2(n,{x:s,y:l,w:m,h:p},a);s=f.x,l=f.y}return jl(e,r,{x:s,y:l,w:m,h:p},o)}I(n2,"drawLabel");function o2(e,{w:t,h:r}){let n=t*.5+Gt,o=r*.5+Gt;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}I(o2,"floatingOffset");function a2(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:a}=t,i=a[o.x],s=a[o.y],{w:l,h:u}=Ml(e,n),{offsetX:d,offsetY:m}=o2(o,{w:l,h:u});return i+=d,s+=m,jl(e,r,{x:i,y:s,w:l,h:u},n)}I(a2,"drawFloatingLabel");function cn(e,t,r,n){let o=[];r.forEach((a,i)=>{let s=n&&a.position==="center"?a2(e,t,a):n2(e,t,a,o[i-1],n);o[i]=s})}I(cn,"drawStack");function i2(e,t,r,n){let o=r.reduce((a,i)=>(Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),a[i.position]?.push(i),a),{});o.top&&cn(e,t,o.top,n),o.right&&cn(e,t,o.right,n),o.bottom&&cn(e,t,o.bottom,n),o.left&&cn(e,t,o.left,n),o.center&&cn(e,t,o.center,n)}I(i2,"labelStacks");var Ra={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},ag=30;function ct(e){return parseInt(e.rep Line truncated
${e} body {
outline: 1px solid #2980b9 !important;
}
${e} article {
outline: 1px solid #3498db !important;
}
${e} nav {
outline: 1px solid #0088c3 !important;
}
${e} aside {
outline: 1px solid #33a0ce !important;
}
${e} section {
outline: 1px solid #66b8da !important;
}
${e} header {
outline: 1px solid #99cfe7 !important;
}
${e} footer {
outline: 1px solid #cce7f3 !important;
}
${e} h1 {
outline: 1px solid #162544 !important;
}
${e} h2 {
outline: 1px solid #314e6e !important;
}
${e} h3 {
outline: 1px solid #3e5e85 !important;
}
${e} h4 {
outline: 1px solid #449baf !important;
}
${e} h5 {
outline: 1px solid #c7d1cb !important;
}
${e} h6 {
outline: 1px solid #4371d0 !important;
}
${e} main {
outline: 1px solid #2f4f90 !important;
}
${e} address {
outline: 1px solid #1a2c51 !important;
}
${e} div {
outline: 1px solid #036cdb !important;
}
${e} p {
outline: 1px solid #ac050b !important;
}
${e} hr {
outline: 1px solid #ff063f !important;
}
${e} pre {
outline: 1px solid #850440 !important;
}
${e} blockquote {
outline: 1px solid #f1b8e7 !important;
}
${e} ol {
outline: 1px solid #ff050c !important;
}
${e} ul {
outline: 1px solid #d90416 !important;
}
${e} li {
outline: 1px solid #d90416 !important;
}
${e} dl {
outline: 1px solid #fd3427 !important;
}
${e} dt {
outline: 1px solid #ff0043 !important;
}
${e} dd {
outline: 1px solid #e80174 !important;
}
${e} figure {
outline: 1px solid #ff00bb !important;
}
${e} figcaption {
outline: 1px solid #bf0032 !important;
}
${e} table {
outline: 1px solid #00cc99 !important;
}
${e} caption {
outline: 1px solid #37ffc4 !important;
}
${e} thead {
outline: 1px solid #98daca !important;
}
${e} tbody {
outline: 1px solid #64a7a0 !important;
}
${e} tfoot {
outline: 1px solid #22746b !important;
}
${e} tr {
outline: 1px solid #86c0b2 !important;
}
${e} th {
outline: 1px solid #a1e7d6 !important;
}
${e} td {
outline: 1px solid #3f5a54 !important;
}
${e} col {
outline: 1px solid #6c9a8f !important;
}
${e} colgroup {
outline: 1px solid #6c9a9d !important;
}
${e} button {
outline: 1px solid #da8301 !important;
}
${e} datalist {
outline: 1px solid #c06000 !important;
}
${e} fieldset {
outline: 1px solid #d95100 !important;
}
${e} form {
outline: 1px solid #d23600 !important;
}
${e} input {
outline: 1px solid #fca600 !important;
}
${e} keygen {
outline: 1px solid #b31e00 !important;
}
${e} label {
outline: 1px solid #ee8900 !important;
}
${e} legend {
outline: 1px solid #de6d00 !important;
}
${e} meter {
outline: 1px solid #e8630c !important;
}
${e} optgroup {
outline: 1px solid #b33600 !important;
}
${e} option {
outline: 1px solid #ff8a00 !important;
}
${e} output {
outline: 1px solid #ff9619 !important;
}
${e} progress {
outline: 1px solid #e57c00 !important;
}
${e} select {
outline: 1px solid #e26e0f !important;
}
${e} textarea {
outline: 1px solid #cc5400 !important;
}
${e} details {
outline: 1px solid #33848f !important;
}
${e} summary {
outline: 1px solid #60a1a6 !important;
}
${e} command {
outline: 1px solid #438da1 !important;
}
${e} menu {
outline: 1px solid #449da6 !important;
}
${e} del {
outline: 1px solid #bf0000 !important;
}
${e} ins {
outline: 1px solid #400000 !important;
}
${e} img {
outline: 1px solid #22746b !important;
}
${e} iframe {
outline: 1px solid #64a7a0 !important;
}
${e} embed {
outline: 1px solid #98daca !important;
}
${e} object {
outline: 1px solid #00cc99 !important;
}
${e} param {
outline: 1px solid #37ffc4 !important;
}
${e} video {
outline: 1px solid #6ee866 !important;
}
${e} audio {
outline: 1px solid #027353 !important;
}
${e} source {
outline: 1px solid #012426 !important;
}
${e} canvas {
outline: 1px solid #a2f570 !important;
}
${e} track {
outline: 1px solid #59a600 !important;
}
${e} map {
outline: 1px solid #7be500 !important;
}
${e} area {
outline: 1px solid #305900 !important;
}
${e} a {
outline: 1px solid #ff62ab !important;
}
${e} em {
outline: 1px solid #800b41 !important;
}
${e} strong {
outline: 1px solid #ff1583 !important;
}
${e} i {
outline: 1px solid #803156 !important;
}
${e} b {
outline: 1px solid #cc1169 !important;
}
${e} u {
outline: 1px solid #ff0430 !important;
}
${e} s {
outline: 1px solid #f805e3 !important;
}
${e} small {
outline: 1px solid #d107b2 !important;
}
${e} abbr {
outline: 1px solid #4a0263 !important;
}
${e} q {
outline: 1px solid #240018 !important;
}
${e} cite {
outline: 1px solid #64003c !important;
}
${e} dfn {
outline: 1px solid #b4005a !important;
}
${e} sub {
outline: 1px solid #dba0c8 !important;
}
${e} sup {
outline: 1px solid #cc0256 !important;
}
${e} time {
outline: 1px solid #d6606d !important;
}
${e} code {
outline: 1px solid #e04251 !important;
}
${e} kbd {
outline: 1px solid #5e001f !important;
}
${e} samp {
outline: 1px solid #9c0033 !important;
}
${e} var {
outline: 1px solid #d90047 !important;
}
${e} mark {
outline: 1px solid #ff0053 !important;
}
${e} bdi {
outline: 1px solid #bf3668 !important;
}
${e} bdo {
outline: 1px solid #6f1400 !important;
}
${e} ruby {
outline: 1px solid #ff7b93 !important;
}
${e} rt {
outline: 1px solid #ff2f54 !important;
}
${e} rp {
outline: 1px solid #803e49 !important;
}
${e} span {
outline: 1px solid #cc2643 !important;
}
${e} br {
outline: 1px solid #db687d !important;
}
${e} wbr {
outline: 1px solid #db175b !important;
}`}I(g2,"outlineCSS");var bS=I((e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[f2]),o=t.viewMode==="docs",a=us(()=>g2(o?'[data-story-block="true"]':".sb-show-main"),[t]);return Bt(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?yS(i,a):lg(i),()=>{lg(i)}},[n,a,t]),e()},"withOutline"),ES=globalThis.FEATURES?.outline?[bS]:[],vS={[f2]:!1},ug=I(()=>({decorators:ES,initialGlobals:vS}),"default"),AS=I(({parameters:e})=>{e?.test?.mockReset===!0?Am():e?.test?.clearMocks===!0?ym():e?.test?.restoreMocks!==!1&&xm()},"resetAllMocksLoader"),Il=I((e,t=0,r)=>{if(t>5||e==null)return e;if(Em(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=bm(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Il(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Il(o,t,n));return e}return e},"traverseArgs"),xS=I(({initialArgs:e})=>{Il(e)},"nameSpiesAndWrapActionsInSpies"),cg=!1,wS=I(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=Sm(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=Vn({userEvent:wm.setup()},{intercept:!0}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:I(()=>t,"get"),configurable:!0});let r=HTMLElement.prototype.focus;cg||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:I(n=>{r=n,cg=!0},"set"),get:I(()=>r,"get")}})}},"enhanceContext"),dg=I(()=>({loaders:[AS,xS,wS]}),"default"),y2="storybook/viewport",SS="viewport",c8=`${y2}/panel`,d8=`${y2}/tool`,CS={[SS]:{value:void 0,isRotated:!1}},pg=I(()=>({initialGlobals:CS}),"default");function Qr(){return[(sg.default??sg)(),(Kf.default??Kf)(),(og.default??og)(),(ug.default??ug)(),(pg.default??pg)(),(zf.default??zf)(),(Xf.default??Xf)(),(dg.default??dg)()]}I(Qr,"getCoreAnnotations");function DS(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:n,...o}=e;return t=Bl(_l([...Qr(),...n??[],o])),t},meta(n){return b2(n,this)}};return globalThis.globalProjectAnnotations=r.composed,r}I(DS,"definePreview");function Wt(e){return e}I(Wt,"definePreviewAddon");function TS(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}I(TS,"isPreview");function kS(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}I(kS,"isMeta");function b2(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r={}){return $l(typeof r=="function"?{render:r}:r,this)}}}I(b2,"defineMeta");function Ar(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}I(Ar,"isStory");function $l(e,t){let r,n=I(()=>(r||(r=Ug(e,t.input,void 0,t.preview.composed)),r),"compose");return{_tag:"Story",input:e,meta:t,__compose:n,get composed(){let o=n(),{args:a,argTypes:i,parameters:s,id:l,tags:u,globals:d,storyName:m}=o;return{args:a,argTypes:i,parameters:s,id:l,tags:u,name:m,globals:d}},get play(){return e.play??t.input?.play??(async()=>{})},get run(){return n().run??(async()=>{})},extend(o){return $l({...this.input,...o,args:{...this.input.args,...o.args},argTypes:lr(this.input.argTypes,o.argTypes),afterEach:[...oe(this.input?.afterEach??[]),...oe(o.afterEach??[])],beforeEach:[...oe(this.input?.beforeEach??[]),...oe(o.beforeEach??[])],decorators:[...oe(this.input?.decorators??[]),...oe(o.decorators??[])],globals:{...this.input.globals,...o.globals},loaders:[...oe(this.input?.loaders??[]),...oe(o.loaders??[])],parameters:lr(this.input.parameters,o.parameters),tags:en(...this.input.tags??[],...o.tags??[])},this.meta)}}}I($l,"defineStory");var Nn=I(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),mg=I((e,t)=>{let r=Nn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),Xo=I((e,t)=>`${mg(e,"kind")}${t?`--${mg(t,"name")}`:""}`,"toId"),Jo=I(e=>fg(e),"storyNameFromExport");function Rl(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}I(Rl,"matches");function Xr(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Rl(e,t))&&(!r||!Rl(e,r))}I(Xr,"isExportStory");var p8=I((e,{rootSeparator:t,groupSeparator:r})=>{let[n,o]=e.split(t,2),a=(o||e).split(r).filter(i=>!!i);return{root:o?n:null,groups:a}},"parseKind"),en=I((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();var OS=Object.create,ci=Object.defineProperty,IS=Object.getOwnPropertyDescriptor,RS=Object.getOwnPropertyNames,BS=Object.getPrototypeOf,_S=Object.pr Line truncated
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,q=!1,V;return{s:h(function(){D=D.call(v)},"s"),n:h(function(){var G=D.next();return M=G.done,G},"n"),e:h(function(G){q=!0,V=G},"e"),f:h(function(){try{!M&&D.return!=null&&D.return()}finally{if(q)throw V}},"f")}}h(a,"_createForOfIteratorHelper");function i(v,A){if(v){if(typeof v=="string")return s(v,A);var D=Object.prototype.toString.call(v).slice(8,-1);if(D==="Object"&&v.constructor&&(D=v.constructor.name),D==="Map"||D==="Set")return Array.from(v);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return s(v,A)}}h(i,"_unsupportedIterableToArray");function s(v,A){(A==null||A>v.length)&&(A=v.length);for(var D=0,N=new Array(A);D<A;D++)N[D]=v[D];return N}h(s,"_arrayLikeToArray");var l=mC(),u={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:d()};function d(){var v={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return x(0,5).forEach(function(A){x(0,5).forEach(function(D){x(0,5).forEach(function(N){return m(A,D,N,v)})})}),x(0,23).forEach(function(A){var D=A+232,N=p(A*10+8);v[D]="#"+N+N+N}),v}h(d,"getDefaultColors");function m(v,A,D,N){var F=16+v*36+A*6+D,M=v>0?v*40+55:0,q=A>0?A*40+55:0,V=D>0?D*40+55:0;N[F]=f([M,q,V])}h(m,"setStyleColor");function p(v){for(var A=v.toString(16);A.length<2;)A="0"+A;return A}h(p,"toHexString");function f(v){var A=[],D=a(v),N;try{for(D.s();!(N=D.n()).done;){var F=N.value;A.push(p(F))}}catch(M){D.e(M)}finally{D.f()}return"#"+A.join("")}h(f,"toColorHexString");function g(v,A,D,N){var F;return A==="text"?F=_(D,N):A==="display"?F=E(v,D,N):A==="xterm256Foreground"?F=B(v,N.colors[D]):A==="xterm256Background"?F=P(v,N.colors[D]):A==="rgb"&&(F=y(v,D)),F}h(g,"generateOutput");function y(v,A){A=A.substring(2).slice(0,-1);var D=+A.substr(0,2),N=A.substring(5).split(";"),F=N.map(function(M){return("0"+Number(M).toString(16)).substr(-2)}).join("");return k(v,(D===38?"color:#":"background-color:#")+F)}h(y,"handleRgb");function E(v,A,D){A=parseInt(A,10);var N={"-1":h(function(){return"<br/>"},"_"),0:h(function(){return v.length&&b(v)},"_"),1:h(function(){return O(v,"b")},"_"),3:h(function(){return O(v,"i")},"_"),4:h(function(){return O(v,"u")},"_"),8:h(function(){return k(v,"display:none")},"_"),9:h(function(){return O(v,"strike")},"_"),22:h(function(){return k(v,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:h(function(){return L(v,"i")},"_"),24:h(function(){return L(v,"u")},"_"),39:h(function(){return B(v,D.fg)},"_"),49:h(function(){return P(v,D.bg)},"_"),53:h(function(){return k(v,"text-decoration:overline")},"_")},F;return N[A]?F=N[A]():4<A&&A<7?F=O(v,"blink"):29<A&&A<38?F=B(v,D.colors[A-30]):39<A&&A<48?F=P(v,D.colors[A-40]):89<A&&A<98?F=B(v,D.colors[8+(A-90)]):99<A&&A<108&&(F=P(v,D.colors[8+(A-100)])),F}h(E,"handleDisplay");function b(v){var A=v.slice(0);return v.length=0,A.reverse().map(function(D){return"</"+D+">"}).join("")}h(b,"resetStyles");function x(v,A){for(var D=[],N=v;N<=A;N++)D.push(N);return D}h(x,"range");function S(v){return function(A){return(v===null||A.category!==v)&&v!=="all"}}h(S,"notCategory");function T(v){v=parseInt(v,10);var A=null;return v===0?A="all":v===1?A="bold":2<v&&v<5?A="underline":4<v&&v<7?A="blink":v===8?A="hide":v===9?A="strike":29<v&&v<38||v===39||89<v&&v<98?A="foreground-color":(39<v&&v<48||v===49||99<v&&v<108)&&(A="background-color"),A}h(T,"categoryForCode");function _(v,A){return A.escapeXML?l.encodeXML(v):v}h(_,"pushText");function O(v,A,D){return D||(D=""),v.push(A),"<".concat(A).concat(D?' style="'.concat(D,'"'):"",">")}h(O,"pushTag");function k(v,A){return O(v,"span",A)}h(k,"pushStyle");function B(v,A){return O(v,"span","color:"+A)}h(B,"pushForegroundColor");function P(v,A){return O(v,"span","background-color:"+A)}h(P,"pushBackgroundColor");function L(v,A){var D;if(v.slice(-1)[0]===A&&(D=v.pop()),D)return"</"+A+">"}h(L,"closeTag");function j(v,A,D){var N=!1,F=3;function M(){return""}h(M,"remove");function q(me,ue){return D("xterm256Foreground",ue),""}h(q,"removeXterm256Foreground");function V(me,ue){return D("xterm256Background",ue),""}h(V,"removeXterm256Background");function G(me){return A.newline?D("display",-1):D("text",me),""}h(G,"newline");function se(me,ue){N=!0,ue.trim().length===0&&(ue="0"),ue=ue.trimRight(";").split(";");var ht=a(ue),Sn;try{for(ht.s();!(Sn=ht.n()).done;){var Ei=Sn.value;D("display",Ei)}}catch(vi){ht.e(vi)}finally{ht.f()}return""}h(se,"ansiMess");function pe(me){return D("text",me),""}h(pe,"realText");function ae(me){return D("rgb",me),""}h(ae,"rgb");var we=[{pattern:/^\x08+/,sub:M},{pattern:/^\x1b\[[012]?K/,sub:M},{pattern:/^\x1b\[\(B/,sub:M},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ae},{pattern:/^\x1b\[38;5;(\d+)m/,sub:q},{pattern:/^\x1b\[48;5;(\d+)m/,sub:V},{pattern:/^\n/,sub:G},{pattern:/^\r+\n/,sub:G},{pattern:/^\r/,sub:G},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:se},{patt Line truncated
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
`,9:`Please provide a number of steps to the modularScale helper.
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
`,16:`You must provide a template to this method.
`,17:`You passed an unsupported selector state to this method.
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,25:`fontFace expects localFonts to be an array.
`,26:`fontFace expects fileFormats to be an array.
`,27:`radialGradient requries at least 2 color-stops to properly render.
`,28:`Please supply a filename to retinaImage() as the first argument.
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
`,34:`borderRadius expects a radius value as a string or number as the second argument.
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,36:`Property must be a string value.
`,37:`Syntax Error at %s.
`,38:`Formula contains a function that needs parentheses at %s.
`,39:`Formula is missing closing parenthesis at %s.
`,40:`Formula has too many closing parentheses at %s.
`,41:`All values in a formula must have the same unit or be unitless.
`,42:`Please provide a number of steps to the modularScale helper.
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
`,53:`fontFace expects localFonts to be an array.
`,54:`fontFace expects fileFormats to be an array.
`,55:`fontFace expects a name of a font-family.
`,56:`linearGradient requries at least 2 color-stops to properly render.
`,57:`radialGradient requries at least 2 color-stops to properly render.
`,58:`Please supply a filename to retinaImage() as the first argument.
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
`,62:`borderRadius expects a radius value as a string or number as the second argument.
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
`,67:`You must provide a template to this method.
`,68:`You passed an unsupported selector state to this method.
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
`,73:`Please provide a valid CSS variable.
`,74:`CSS variable not found and no default was provided.
`,75:`important requires a valid style object, got a %s instead.
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
`,78:`base must be set in "px" or "%" but you set it in "%s".
`};function Vy(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}h(Vy,"format");var at=function(e){qy(t,e);function t(r){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n=e.call(this,Vy.apply(void 0,[CC[r]].concat(a)))||this,$y(n)}return h(t,"PolishedError"),t}(ni(Error));function Eu(e,t){return e.substr(-t.length)===t}h(Eu,"endsWith");var DC=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function vu(e){if(typeof e!="string")return e;var t=e.match(DC);return t?parseFloat(e):e}h(vu,"stripUnit");var TC=h(function(e){return function(t,r){r===void 0&&(r="16px");var n=t,o=r;if(typeof t=="string"){if(!Eu(t,"px"))throw new at(69,e,t);n=vu(t)}if(typeof r=="string"){if(!Eu(r,"px"))throw new at(70,e,r);o=vu(r)}if(typeof n=="string")throw new at(71,t,e);if(typeof o=="string")throw new at(72,r,e);return""+n/o+e}},"pxtoFactory"),zy=TC,M8=zy("em"),$8=zy("rem");function Ya(e){return Math.round(e*255)}h(Ya,"colorToInt");function Gy(e,t,r){return Ya(e)+","+Ya(t)+","+Ya(r)}h(Gy,"convertToInt");function xn(e,t,r,n){if(n===void 0&&(n=Gy),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),s=0,l=0,u=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,u=i):o>=3&&o<4?(l=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);var d=r-a/2,m=s+d,p=l+d,f=u+d;return n(m,p,f)}h(xn,"hslToRgb");var o0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Wy(e){if(typeof e!="string")return e;var t=e.toLowerCase();return o0[t]?"#"+o0[t]:e}h(Wy,"nameToHex");var kC=/^#[a-fA-F0-9]{6}$/,OC=/^#[a-fA-F0-9]{8}$/,IC=/^#[a-fA-F0-9]{3}$/,RC=/^#[a-fA-F0-9]{4}$/,ru=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,BC=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,_C=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,FC=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Rr(e){if(typeof e!="string")throw new at(3);var t= Line truncated
`).match(o),m=!1;return{items:d.map(function(p,f){let g=a.exec(p)[0].length,y=new RegExp("^ {1,"+g+"}","gm"),E=p.replace(y,"").replace(a,""),b=f===d.length-1,x=E.indexOf(`
`)!==-1||b&&m;m=x;let S=l.inline,T=l.list,_;l.list=!0,x?(l.inline=!1,_=wn(E)+`
`):(l.inline=!0,_=wn(E));let O=s(_,l);return l.inline=S,l.list=T,O}),ordered:r,start:u}},render:h((i,s,l)=>e(i.ordered?"ol":"ul",{key:l.key,start:i.type===K.orderedList?i.start:void 0},i.items.map(function(u,d){return e("li",{key:d},s(u,l))})),"render")}}h(Su,"Ce");var tD=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),rD=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Db=[hb,fb,gb,yb,Eb,bb,Ab,Sb,Cb],nD=[...Db,/^[^\n]+(?: \n|\n{2,})/,xu,vb,wu];function wn(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}h(wn,"ze");function yn(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}h(yn,"Le");function Tb(e){return $5.test(e)?"right":j5.test(e)?"center":M5.test(e)?"left":null}h(Tb,"Ae");function Cu(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function s(){if(!i)return;let l=a[a.length-1];l.push.apply(l,t(i,r)),i=""}return h(s,"a"),e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((l,u,d)=>{l.trim()==="|"&&(s(),n)?u!==0&&u!==d.length-1&&a.push([]):i+=l}),s(),r.inTable=o,a}h(Cu,"Oe");function kb(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(L5,"").split("|").map(Tb):[],o=e[3]?function(i,s,l){return i.trim().split(`
`).map(function(u){return Cu(u,s,l,!0)})}(e[3],t,r):[],a=Cu(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:K.table}:{children:a,type:K.paragraph}}h(kb,"Te");function Du(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}h(Du,"Be");function Br(e){return e.inline=1,e}h(Br,"Me");function Yt(e){return Br(function(t,r){return r.inline?e.exec(t):null})}h(Yt,"Re");function Kt(e){return Br(function(t,r){return r.inline||r.simple?e.exec(t):null})}h(Kt,"Ie");function Ft(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}h(Ft,"De");function bn(e){return Br(function(t){return e.exec(t)})}h(bn,"Ue");function Ob(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
`).every(o=>(o+=`
`,!Db.some(a=>a.test(o))&&(r+=o,!!o.trim())));let n=wn(r);return n==""?null:[r,,n]}h(Ob,"Ne");var oD=/(javascript|vbscript|data(?!:image)):/i;function Ib(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(oD.test(t))return null}catch{return null}return e}h(Ib,"He");function Tu(e){return e.replace(K5,"$1")}h(Tu,"Pe");function eo(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}h(eo,"_e");function Rb(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}h(Rb,"Fe");function Bb(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}h(Bb,"We");var nu=h((e,t,r)=>({children:eo(t,e[2],r)}),"Ge");function Xa(){return{}}h(Xa,"Ze");function Ja(){return null}h(Ja,"qe");function _b(...e){return e.filter(Boolean).join(" ")}h(_b,"Qe");function Za(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}h(Za,"Ve");function Fb(e="",t={}){function r(p,f,...g){let y=Za(t.overrides,`${p}.props`,{});return t.createElement(function(E,b){let x=Za(b,E);return x?typeof x=="function"||typeof x=="object"&&"render"in x?x:Za(b,`${E}.component`,E):E}(p,t.overrides),mr({},f,y,{className:_b(f?.className,y.className)||void 0}),...g)}h(r,"u");function n(p){p=p.replace(w5,"");let f=!1;t.forceInline?f=!0:t.forceBlock||(f=P5.test(p)===!1);let g=u(l(f?p:`${wn(p).replace(W5,"")}
`,{inline:f}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let y=t.wrapper||(f?"span":"div"),E;if(g.length>1||t.forceWrapper)E=g;else{if(g.length===1)return E=g[0],typeof E=="string"?r("span",{key:"outer"},E):E;E=null}return t.createElement(y,{key:"outer"},E)}h(n,"Z");function o(p,f){let g=f.match(c5);return g?g.reduce(function(y,E){let b=E.indexOf("=");if(b!==-1){let x=function(O){return O.indexOf("-")!==-1&&O.match(D5)===null&&(O=O.replace(R5,function(k,B){return B.toUpperCase()})),O}(E.slice(0,b)).trim(),S=function(O){let k=O[0];return(k==='"'||k==="'")&&O.length>=2&&O[O.length-1]===k?O.slice(1,-1):O}(E.slice(b+1).trim()),T=s0[x]||x;if(T==="ref")return y;let _=y[T]=function(O,k,B,P){return k==="style"?function(L){let j=[],U="",$=!1,v=!1,A="";if(!L)return j;for(let N=0;N<L.length;N++){let F=L[N];if(F!=='"'&&F!=="'"||$||(v?F===A&&(v=!1,A=""):(v=!0,A=F)),F==="("&&U.endsWith("url")?$=!0:F===")"&&$&&($=!1),F!==";"||v||$)U+=F;else{let M=U.trim();if(M){let q=M.indexOf(":");if(q>0){let V=M.slice(0,q).trim(),G=M.slice(q+1).trim();j.push([V,G])}}U=""}}let D=U.trim();if(D){let N=D.indexOf(":");if(N>0){let F=D.slice(0,N).trim(),M=D.slice(N+1).trim();j.push([F,M])}}return j}(B).reduce(function(L,[j,U]){return L[j.replace(/(-[a-z])/g,$=>$[1].toUpperCase())]=P(U,O,j),L},{}):u5.indexOf(k)!==-1?P(B,O,k):(B.match(T5)&&(B=B.slice(1,B.length-1)),B==="true"||B!=="false"&&B)}(p,x,S,t.sanitizer);typeof _=="string"&&(xu.test(_)||wu.test(_))&&(y[T]=n(_.trim()))}else E!=="style"&&(y[s0[E]||E]=!0);return y},{}):null}h(o,"q"),t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||Ib,t.slugify=t.slugify||yn,t.namedCodesToUnicode=t.namedCodesToUnicode?mr({},l0,t.namedCodesToUnicode):l0,t.createElement=t.createElement||Y;let a=[],i={},s={[K.blockQuote]:{match:Ft(hb),order:1,parse(p,f,g){let[,y,E]=p[0].replace(m5,"").match(h5);return{alert:y,children:f(E,g)}},render(p,f,g){let y={key:g.key};return p.alert&&(y.className="markdown-alert-"+t.slugify(p.alert.toLowerCase(),yn),p.children.unshift({attrs:{},children:[{type:K.text,text:p.alert}],noInnerParse:!0,type:K.htmlBlock,tag:"header"})),r("blockquote",y,f(p.children,g))}},[K.breakLine]:{match:bn(f5),order:1,parse:Xa,render:h((p,f,g)=>r("br",{key:g.key}),"render")},[K.breakThematic]:{match:Ft(g5),order:1,parse:Xa,render:h((p,f,g)=>r("hr",{key:g.key}),"render")},[K.codeBlock]:{match:Ft(gb),order:0,parse:h(p=>({lang:void 0,text:wn(p[0].replace(/^ {4}/gm,"")).replace(u0,"$1")}),"parse"),render:h((p,f,g)=>r("pre",{key:g.key},r("code",mr({},p.attrs,{className:p.lang?`lang-${p.lang}`:""}),p.text)),"render")},[K.codeFenced]:{match:Ft(fb),order:0,parse:h(p=>({attrs:o("code",p[3]||""),lang:p[2]||void 0,text:p[4],type:K.codeBlock}),"parse")},[K.codeInline]:{match:Kt(y5),order:3,parse:h(p=>({text:p[2].replace(u0,"$1")}),"parse"),render:h((p,f,g)=>r("code",{key:g.key},p.text),"render")},[K.footnote]:{match:Ft(v5),order:0,parse:h(p=>(a.push({footnote:p[2],identifier:p[1]}),{}),"parse"),render:Ja},[K.footnoteReference]:{match:Yt(A5),order:1,parse:h(p=>({target:`#${t.slugify(p[1],yn)}`,text:p[1]}),"parse"),render:h((p,f,g)=>r("a",{key:g.key,href:t.sanitizer(p.target,"a","href")},r("sup",{key:g.key},p.text)),"render")},[K.gfmTask]:{match:Yt(S5),order:1,parse:h(p=>({completed:p[1].toLowerCase()==="x"}),"parse"),render:h((p,f,g)=>r("input",{checked:p.completed,key:g.key,readOnly:!0,type:"checkbox"}),"render")},[K.heading]:{match:Ft(t.enforceAtxHeadings?bb:yb),order:1,parse:h((p,f,g)=>({children:eo(f,p[2],g),id:t.slugify(p[2],yn),level:p[1].length}),"parse"),render:h((p,f,g)=>r(`h${p.level}`,{id:p.id,key:g.key},f(p.children,g)),"render")},[K.headingSetext]:{match:Ft(Eb),order:0,parse:h((p,f,g)=>({children:eo(f,p[1],g),level:p[2]==="="?1:2,type:K.heading}),"parse")},[K.htmlBlock]:{match:bn(xu),order:1,parse(p,f,g){let[,y]=p[3].match(Y5),E=new RegExp(`^${y}`,"gm"),b=p[3].replace(E,""),x=(S=b,nD.some(B=>B.test(S))?Bb:eo);var S;let T=p[1].toLowerCase(),_=l5.indexOf(T)!==-1,O=(_?T:p[1]).trim(),k={attrs:o(O,p[2]),noInnerParse:_,tag:O};return g.inAnchor=g.inAnchor||T==="a",_?k.text=p[3]:k.children=x(f,b,g),g.inAnchor=!1,k},render:h((p,f,g)=>r(p.tag,mr({key:g.key},p.attrs),p.text||(p.children?f(p.children,g):"")),"render")},[K.htmlSelfClosing]:{match:bn(wu),order:1,parse(p){let f=p[1].trim();return{attrs:o(f,p[2]||""),tag:f}},render:h((p,f,g)=>r(p.tag,mr({},p.attrs,{key:g.key})),"render")},[K.htmlComment]:{match:bn(vb),order:1,parse:h(()=>({}),"parse"),render:Ja},[K.image]:{match:Kt(rD),order:1,parse:h(p=>({alt:p[1],target:Tu(p[2]),title:p[3]}),"parse"),render:h((p,f,g)=>r("img",{key:g.key,alt:p.alt||void 0,title:p.title||void 0,src:t.sanitizer(p.target,"img","src")}),"render")},[K.link]:{match:Yt(tD),order:3,parse:h((p,f,g)=>({children:Rb(f,p[1],g),target:Tu(p[2]),title:p[3]}),"parse"),render:h((p,f,g)=>r("a",{key:g.key,href:t.sanitizer(p.target,"a","href"),title:p.title},f(p.children,g)),"render")},[K.linkAngleBraceStyleDetector]:{match:Yt(I5),order:0,parse:h(p Line truncated
`,"render")},[K.paragraph]:{match:Br(Ob),order:3,parse:nu,render:h((p,f,g)=>r("p",{key:g.key},f(p.children,g)),"render")},[K.ref]:{match:Yt(B5),order:0,parse:h(p=>(i[p[1]]={target:p[2],title:p[4]},{}),"parse"),render:Ja},[K.refImage]:{match:Kt(_5),order:0,parse:h(p=>({alt:p[1]||void 0,ref:p[2]}),"parse"),render:h((p,f,g)=>i[p.ref]?r("img",{key:g.key,alt:p.alt,src:t.sanitizer(i[p.ref].target,"img","src"),title:i[p.ref].title}):null,"render")},[K.refLink]:{match:Yt(F5),order:0,parse:h((p,f,g)=>({children:f(p[1],g),fallbackChildren:p[0],ref:p[2]}),"parse"),render:h((p,f,g)=>i[p.ref]?r("a",{key:g.key,href:t.sanitizer(i[p.ref].target,"a","href"),title:i[p.ref].title},f(p.children,g)):r("span",{key:g.key},p.fallbackChildren),"render")},[K.table]:{match:Ft(Ab),order:1,parse:kb,render(p,f,g){let y=p;return r("table",{key:g.key},r("thead",null,r("tr",null,y.header.map(function(E,b){return r("th",{key:b,style:Du(y,b)},f(E,g))}))),r("tbody",null,y.cells.map(function(E,b){return r("tr",{key:b},E.map(function(x,S){return r("td",{key:S,style:Du(y,S)},f(x,g))}))})))}},[K.text]:{match:bn(G5),order:4,parse:h(p=>({text:p[0].replace(C5,(f,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:f)}),"parse"),render:h(p=>p.text,"render")},[K.textBolded]:{match:Kt(q5),order:2,parse:h((p,f,g)=>({children:f(p[2],g)}),"parse"),render:h((p,f,g)=>r("strong",{key:g.key},f(p.children,g)),"render")},[K.textEmphasized]:{match:Kt(U5),order:3,parse:h((p,f,g)=>({children:f(p[2],g)}),"parse"),render:h((p,f,g)=>r("em",{key:g.key},f(p.children,g)),"render")},[K.textEscaped]:{match:Kt(z5),order:1,parse:h(p=>({text:p[1],type:K.text}),"parse")},[K.textMarked]:{match:Kt(H5),order:3,parse:nu,render:h((p,f,g)=>r("mark",{key:g.key},f(p.children,g)),"render")},[K.textStrikethroughed]:{match:Kt(V5),order:3,parse:nu,render:h((p,f,g)=>r("del",{key:g.key},f(p.children,g)),"render")}};t.disableParsingRawHTML===!0&&(delete s[K.htmlBlock],delete s[K.htmlSelfClosing]);let l=function(p){let f=Object.keys(p);function g(y,E){let b,x,S=[],T="",_="";for(E.prevCapture=E.prevCapture||"";y;){let O=0;for(;O<f.length;){if(T=f[O],b=p[T],E.inline&&!b.match.inline){O++;continue}let k=b.match(y,E);if(k){_=k[0],E.prevCapture+=_,y=y.substring(_.length),x=b.parse(k,g,E),x.type==null&&(x.type=T),S.push(x);break}O++}}return E.prevCapture="",S}return h(g,"n"),f.sort(function(y,E){let b=p[y].order,x=p[E].order;return b!==x?b-x:y<E?-1:1}),function(y,E){return g(function(b){return b.replace(E5,`
`).replace(x5,"").replace(N5," ")}(y),E)}}(s),u=(d=function(p,f){return function(g,y,E){let b=p[g.type].render;return f?f(()=>b(g,y,E),g,y,E):b(g,y,E)}}(s,t.renderRule),h(function p(f,g={}){if(Array.isArray(f)){let y=g.key,E=[],b=!1;for(let x=0;x<f.length;x++){g.key=x;let S=p(f[x],g),T=typeof S=="string";T&&b?E[E.length-1]+=S:S!==null&&E.push(S),b=T}return g.key=y,E}return d(f,p,g)},"e"));var d;let m=n(e);return a.length?r("div",null,m,r("footer",{key:"footer"},a.map(function(p){return r("div",{id:t.slugify(p.identifier,yn),key:p.identifier},p.identifier,u(l(p.footnote,{inline:!0})))}))):m}h(Fb,"Xe");var aD=h(e=>{let{children:t="",options:r}=e,n=function(o,a){if(o==null)return{};var i,s,l={},u=Object.keys(o);for(s=0;s<u.length;s++)a.indexOf(i=u[s])>=0||(l[i]=o[i]);return l}(e,s5);return Pe(Fb(t,r),n)},"default");Ot();var iD=R.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:de(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Zn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Zn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Zn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Zn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),sD=h(e=>e==="true","parse"),lD=h(({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=Q(()=>r(!1),[r]),s=!!a?.table?.readonly;if(t===void 0)return c.createElement(Je,{variant:"outline",size:"medium",id:so(e),onClick:i,disabled:s},"Set boolean");let l=mt(e),u=typeof t=="string"?sD(t):t;return c.createElement(iD,{"aria-disabled":s,htmlFor:l,"aria-label":e},c.createElement("input",{id:l,type:"checkbox",onChange:d=>r(d.target.checked),checked:u,role:"switch",disabled:s,name:e,onBlur:n,onFocus:o}),c.createElement("span",{"aria-hidden":"true"},"False"),c.createElement("span",{"aria-hidden":"true"},"True"))},"BooleanControl");Ot();var uD=h(e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},"parseDate"),cD=h(e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},"parseTime"),dD=h(e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},"formatDate"),pD=h(e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},"formatTime"),c0=R($e.Input)(({readOnly:e})=>({opacity:e?.5:1})),mD=R.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),hD=h(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,s]=z(!0),l=ye(),u=ye(),d=!!a?.table?.readonly;X(()=>{i!==!1&&(l&&l.current&&(l.current.value=t?dD(t):""),u&&u.current&&(u.current.value=t?pD(t):""))},[t]);let m=h(g=>{if(!g.target.value)return r();let y=uD(g.target.value),E=new Date(t??"");E.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());let b=E.getTime();b&&r(b),s(!!b)},"onDateChange"),p=h(g=>{if(!g.target.value)return r();let y=cD(g.target.value),E=new Date(t??"");E.setHours(y.getHours()),E.setMinutes(y.getMinutes());let b=E.getTime();b&&r(b),s(!!b)},"onTimeChange"),f=mt(e);return c.createElement(mD,null,c.createElement(c0,{type:"date",max:"9999-12-31",ref:l,id:`${f}-date`,name:`${f}-date`,readOnly:d,onChange:m,onFocus:n,onBlur:o}),c.createElement(c0,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:u,onChange:p,readOnly:d,onFocus:n,onBlur:o}),i?null:c.createElement("div",null,"invalid"))},"DateControl");Ot();var fD=R.label({display:"flex"}),gD=h(e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},"parse"),yD=R($e.Input)(({readOnly:e})=>({opacity:e?.5:1})),bD=h(({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:s,argT Line truncated
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Or(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Or(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Tt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Tt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Tt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Or(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Or(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Tt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Tt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
${Or(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
${Or(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Tt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),Qb=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),n3=R(Qb)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),o3=R.div({display:"flex",alignItems:"center",width:"100%"});function e1(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}h(e1,"getNumberOfDecimalPlaces");var a3=h(({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:s,argType:l})=>{let u=h(f=>{r(gD(f.target.value))},"handleChange"),d=t!==void 0,m=Me(()=>e1(a),[a]),p=!!l?.table?.readonly;return c.createElement(o3,{"aria-readonly":p},c.createElement(Qb,null,n),c.createElement(r3,{id:mt(e),type:"range",disabled:p,onChange:u,name:e,min:n,max:o,step:a,onFocus:s,onBlur:i,value:t??n}),c.createElement(n3,{numberOFDecimalsPlaces:m,max:o},d?t.toFixed(m):"--"," / ",o))},"RangeControl");Ot();var i3=R.label({display:"flex"}),s3=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),l3=h(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let s=h(f=>{r(f.target.value)},"handleChange"),l=!!i?.table?.readonly,[u,d]=z(!1),m=Q(()=>{r(""),d(!0)},[d]);if(t===void 0)return c.createElement(Je,{variant:"outline",size:"medium",disabled:l,id:so(e),onClick:m},"Set string");let p=typeof t=="string";return c.createElement(i3,null,c.createElement($e.Textarea,{id:mt(e),maxLength:a,onChange:s,disabled:l,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:p?void 0:"error",name:e,value:p?t:"",onFocus:n,onBlur:o}),a&&c.createElement(s3,{isMaxed:t?.length===a},t?.length??0," / ",a))},"TextControl");Ot();var u3=R($e.Input)({padding:10});function t1(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}h(t1,"revokeOldUrls");var c3=h(({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=ye(null),i=o?.control?.readOnly;function s(l){if(!l.target.files)return;let u=Array.from(l.target.files).map(d=>URL.createObjectURL(d));e(u),t1(n||[])}return h(s,"handleFileChange"),X(()=>{n==null&&a.current&&(a.current.value="")},[n,t]),c.createElement(u3,{ref:a,id:mt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},"FilesControl"),d3=Ac(()=>Promise.resolve().then(()=>(lC(),Ny))),p3=h(e=>c.createElement(Ec,{fallback:c.createElement("div",null)},c.createElement(d3,{...e})),"ColorControl"),m3={array:b0,object:b0,boolean:lD,color:p3,date:hD,number:bD,check:fn,"inline-check":fn,radio:fn,"inline-radio":fn,select:fn,"multi-select":fn,range:a3,text:l3,file:c3},E0=h(()=>c.createElement(c.Fragment,null,"-"),"NoControl"),h3=h(({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,s]=z(!1),[l,u]=z({value:t});X(()=>{i||u({value:t})},[i,t]);let d=Q(y=>(u({value:y}),r({[o]:y}),y),[r,o]),m=Q(()=>s(!1),[]),p=Q(()=>s(!0),[]);if(!a||a.disable){let y=a?.disable!==!0&&e?.type?.name!=="function";return n&&y?c.createElement(Ze,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):c.createElement(E0,null)}let f={name:o,argType:e,value:l.value,onChange:d,onBlur:m,onFocus:p},g=m3[a.type]||E0;return c.createElement(g,{...f,...a,controlType:a.type})},"ArgControl"),f3=R.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Qt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),g3=h(({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:c.createElement(c.Fragment,null,c.createElement(f3,null,c.createElement("tbody",null,n&&c.createElement("tr",{key:"deprecated"},c.createElement("td",{colSpan:2},c.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>c.createElement("tr",{key:a.name},c.createElement("td",null,c.createElement("code",null,a.name)),c.createElement("td",null,a.description))),o&&c.createElement("tr",{key:"returns"},c Line truncated
`);return c.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:At.size.s1,...t}},n.flatMap((o,a)=>{if(o.startsWith("expect(")){let m=R0(o,7),p=m?7+m.length:0,f=m&&o.slice(p).match(/\.(to|last|nth)[A-Z]\w+\(/);if(f){let g=p+(f.index??0)+f[0].length,y=R0(o,g);if(y)return["expect(",c.createElement(du,{key:`received_${m}`,value:m}),o.slice(p,g),c.createElement(pu,{key:`expected_${y}`,value:y}),o.slice(g+y.length),c.createElement("br",{key:`br${a}`})]}}if(o.match(/^\s*- /))return[c.createElement(pu,{key:o+a,value:o}),c.createElement("br",{key:`br${a}`})];if(o.match(/^\s*\+ /)||o.match(/^Received: $/))return[c.createElement(du,{key:o+a,value:o}),c.createElement("br",{key:`br${a}`})];let[,i,s]=o.match(/^(Expected|Received): (.*)$/)||[];if(i&&s)return i==="Expected"?["Expected: ",c.createElement(pu,{key:o+a,value:cu(s),parsed:!0}),c.createElement("br",{key:`br${a}`})]:["Received: ",c.createElement(du,{key:o+a,value:cu(s),parsed:!0}),c.createElement("br",{key:`br${a}`})];let[,l,u]=o.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(l&&u)return[`${l} of calls: `,c.createElement(_r,{key:o+a,value:Number(u)}),c.createElement("br",{key:`br${a}`})];let[,d]=o.match(/^Received has value: (.+)$/)||[];return d?["Received has value: ",c.createElement(_r,{key:o+a,value:cu(d)}),c.createElement("br",{key:`br${a}`})]:[c.createElement("span",{key:o+a,dangerouslySetInnerHTML:{__html:r.toHtml(o)}}),c.createElement("br",{key:`br${a}`})]}))},"MatcherResult"),lO=R.div({width:14,height:14,display:"flex",alignItems:"center",justifyContent:"center"}),R1=h(({status:e})=>{let t=Qe();switch(e){case"done":return c.createElement(yo,{color:t.color.positive,"data-testid":"icon-done"});case"error":return c.createElement(Uc,{color:t.color.negative,"data-testid":"icon-error"});case"active":return c.createElement(jc,{color:t.color.secondary,"data-testid":"icon-active"});case"waiting":return c.createElement(lO,{"data-testid":"icon-waiting"},c.createElement(vo,{color:de(.5,"#CCCCCC"),size:6}));default:return null}},"StatusIcon"),uO=R.div({fontFamily:At.fonts.mono,fontSize:At.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"}),cO=R("div",{shouldForwardProp:h(e=>!["call","pausedAt"].includes(e.toString()),"shouldForwardProp")})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:At.fonts.base,fontSize:13,...t.status==="error"&&{backgroundColor:e.base==="dark"?de(.93,e.color.negative):e.background.warning},paddingLeft:(t.ancestors?.length??0)*20}),({theme:e,call:t,pausedAt:r})=>r===t.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${e.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${e.color.warning}`}}),dO=R.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),pO=R("button",{shouldForwardProp:h(e=>!["call"].includes(e.toString()),"shouldForwardProp")})(({theme:e,disabled:t,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:t||r.status==="error"?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status==="error"?e.color.warning:e.color.secondary}`,background:r.status==="error"?"transparent":e.background.hoverable},"& > div":{opacity:r.status==="waiting"?.5:1}})),mO=R.div({display:"flex",alignItems:"center",padding:6}),hO=R(ce)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),fO=R(vt)(({theme:e})=>({fontFamily:e.typography.fonts.base})),mu=R("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:At.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),gO=R.span(({theme:e})=>({color:e.base==="dark"?"#5EC1FF":"#0271B6"})),yO=R.span(({theme:e})=>({color:e.base==="dark"?"#eee":"#444"})),bO=R.p(({theme:e})=>({color:e.base==="dark"?e.color.negative:e.color.negativeText,fontSize:e.typography.size.s2,maxWidth:500,textWrap:"balance"})),EO=h(({exception:e})=>{let t=yi();if(!e)return null;if(e.callId===Lt)return Y(mu,null,Y("pre",null,Y(gO,null,e.name,":")," ",Y(yO,null,e.message)),Y(bO,null,"The component failed to render properly. Automated component tests will not run until this is resolved. Check the full error message in Storybook\u2019s canvas to debug."));if(fc(e))return Y(B0,{...e});if(hc(e))return Y(mu,null,Y(B0,{message:`${e.message}${e.diff?`
${e.diff}`:""}`,style:{padding:0}}),Y("p",null,"See the full stack trace in the browser console."));let r=e.message.split(`
`),n=r.length>1;return Y(mu,null,Y("pre",{dangerouslySetInnerHTML:{__html:t.toHtml(r[0])}}),n&&Y("p",null,"See the full stack trace in the browser console."))},"Exception"),vO=h(({call:e,callsById:t,controls:r,controlStates:n,childCallIds:o,isHidden:a,isCollapsed:i,toggleCollapsed:s,pausedAt:l})=>{let[u,d]=z(!1),m=!n.goto||!e.interceptable||!!e.ancestors?.length;return a||e.id===Lt?null:Y(cO,{call:e,pausedAt:l},Y(dO,{isInteractive:m},Y(pO,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:m,onMouseEnter:()=>n.goto&&d(!0),onMouseLeave:()=>n.goto&&d(!1)},Y(R1,{status:u?"active":e.status}),Y(uO,{style:{marginLeft:6,marginBottom:1}},Y(bc,{call:e,callsById:t}))),Y(mO,null,(o?.length??0)>0&&Y(De,{hasChrome:!1,tooltip:Y(fO,{note:`${i?"Show":"Hide"} interactions`})},Y(hO,{onClick:s,"aria-label":i?"Expand interaction":"Collapse interaction"},i?Y(bo,null):Y(Dc,null))))),e.status==="error"&&e.exception?.callId===e.id&&Y(EO,{exception:e.exception}))},"Interaction"),AO={rendering:"mediumdark",playing:"warning",completed:"positive",errored:"negative",aborted:"purple"},xO={rendering:"Wait",playing:"Runs",completed:"Pass",errored:"Fail",aborted:"Bail"},wO=R.div(({theme:e,status:t})=>({display:"inline-block",padding:"4px 6px 4px 8px",borderRadius:"4px",backgroundColor:e.color[AO[t]],color:"white",fontFamily:At.fonts.base,textTransform:"uppercase",fontSize:At.size.s1,letterSpacing:3,fontWeight:At.weight.bold,minWidth:65,textAlign:"center"})),SO=h(({status:e})=>{let t=xO[e];return c.createElement(wO,{"aria-label":"Status of the test run",status:e},t)},"StatusBadge"),CO=R.div(({theme:e})=>({boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.background.app,position:"sticky",top:0,zIndex:1})),DO=R.nav({height:40,display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:15}),TO=R(Je)(({theme:e})=>({borderRadius:4,padding:6,color:e.textMutedColor,"&:not(:disabled)":{"&:hover,&:focus-visible":{color:e.color.secondary}}})),Jn=R(vt)(({theme:e})=>({fontFamily:e.typography.fonts.base})),no=R(ce)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),kO=R(Ci)({marginTop:0}),OO=R(xi)(({theme:e})=>({color:e.textMutedColor,justifyContent:"flex-end",textAlign:"right",whiteSpace:"nowrap",marginTop:"auto",marginBottom:1,paddingRight:15,fontSize:13})),_0=R.div({display:"flex",alignItems:"center"}),IO=R(no)({marginLeft:9}),RO=R(TO)({marginLeft:9,marginRight:9,marginBottom:1,lineHeight:"12px"}),BO=R(no)(({theme:e,animating:t,disabled:r})=>({opacity:r?.5:1,svg:{animation:t?`${e.animation.rotate360} 200ms ease-out`:void 0}})),_O=h(({controls:e,controlStates:t,status:r,storyFileName:n,onScrollToEnd:o})=>{let a=r==="errored"?"Scroll to error":"Scroll to end",i=Qe();return c.createElement(CO,null,c.createElement(Tn,{backgroundColor:i.background.app},c.createElement(DO,{"aria-label":"Component tests toolbar"},c.createElement(_0,null,c.createElement(SO,{status:r}),c.createElement(RO,{onClick:o,disabled:!o},a),c.createElement(kO,null),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go to start"})},c.createElement(IO,{"aria-label":"Go to start",onClick:e.start,disabled:!t.start},c.createElement($c,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go back"})},c.createElement(no,{"aria-label":"Go back",onClick:e.back,disabled:!t.back},c.createElement(Lc,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go forward"})},c.createElement(no,{"aria-label":"Go forward",onClick:e.next,disabled:!t.next},c.createElement(Mc,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go to end"})},c.createElement(no,{"aria-label":"Go to end",onClick:e.end,disabled:!t.end},c.createElement(Ic,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Rerun"})},c.createElement(BO,{"aria-label":"Rerun",onClick:e.rerun},c.createElement(Vc,null)))),n&&c.createElement(_0,null,c.createElement(OO,null,n)))))},"Subnav"),FO=R.div(({theme:{color:e,typography:t,background:r}})=>({textAlign:"start",padding:"11px 15px",fontSize:`${t.size.s2-1}px`,fontWeight:t.weight.regular,lineHeight:"1rem",background:r.app,borderBottom:`1px solid ${e.border}`,color:e.defaultText,backgroundClip:"padding-box",position:"relative",code:{fontSize:`${t.size.s1-1}px`,color:"inherit",margin:"0 0.2em",padding:"0 0.2em",background:"rgba(255, 255, 255, 0.8)",borderRadius:"2px",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.1)"}})),PO=h(({browserTestStatus:e})=>{let t=tt().getDocsUrl({subpath:ok,versioned:!0,renderer:!0}),[r,n]=e==="error"?["the CLI","this browser"]:["this browser","the CLI"];return c.createElement(FO,null,"This interaction test passed in ",r,", but the tests failed in ",n,"."," ",c.createElement(Ze,{href:t,target:"_blank",withArrow:!0},"Learn what could cause this"))},"TestDiscrepancyMessage"),NO=R.div(({theme:e})=>({height:"100%",background:e.background.content})),F0=R Line truncated
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
@@ -0,0 +1,3 @@
try{
(()=>{var n=__REACT__,{Children:Lt,Component:Ut,Fragment:jt,Profiler:Mt,PureComponent:Nt,StrictMode:Ht,Suspense:Ft,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Gt,act:$t,cloneElement:zt,createContext:Wt,createElement:Kt,createFactory:Yt,createRef:Vt,forwardRef:Zt,isValidElement:qt,lazy:Jt,memo:Qt,startTransition:Xt,unstable_act:en,useCallback:L,useContext:V,useDebugValue:tn,useDeferredValue:nn,useEffect:U,useId:on,useImperativeHandle:rn,useInsertionEffect:an,useLayoutEffect:ln,useMemo:Z,useReducer:cn,useRef:q,useState:R,useSyncExternalStore:sn,useTransition:un,version:dn}=__REACT__;var hn=__STORYBOOK_TYPES__,{Addon_TypesEnum:J}=__STORYBOOK_TYPES__;var Tn=__STORYBOOK_API__,{ActiveTabs:bn,Consumer:yn,ManagerContext:Cn,Provider:_n,RequestResponseError:An,addons:x,combineParameters:wn,controlOrMetaKey:On,controlOrMetaSymbol:Rn,eventMatchesShortcut:xn,eventToShortcut:Pn,experimental_MockUniversalStore:kn,experimental_UniversalStore:Q,experimental_getStatusStore:j,experimental_getTestProviderStore:X,experimental_requestResponse:Bn,experimental_useStatusStore:M,experimental_useTestProviderStore:ee,experimental_useUniversalStore:te,internal_fullStatusStore:Dn,internal_fullTestProviderStore:Ln,internal_universalStatusStore:Un,internal_universalTestProviderStore:jn,isMacLike:Mn,isShortcutTaken:Nn,keyToSymbol:Hn,merge:Fn,mockChannel:Gn,optionOrAltSymbol:$n,shortcutMatchesShortcut:zn,shortcutToHumanString:Wn,types:Kn,useAddonState:Yn,useArgTypes:Vn,useArgs:Zn,useChannel:qn,useGlobalTypes:Jn,useGlobals:Qn,useParameter:Xn,useSharedState:eo,useStoryPrepared:to,useStorybookApi:ne,useStorybookState:no}=__STORYBOOK_API__;var co=__STORYBOOK_COMPONENTS__,{A:so,ActionBar:io,AddonPanel:uo,Badge:mo,Bar:go,Blockquote:Io,Button:N,ClipboardCode:po,Code:ho,DL:fo,Div:vo,DocumentWrapper:So,EmptyTabContent:Eo,ErrorFormatter:To,FlexBar:bo,Form:P,H1:yo,H2:Co,H3:_o,H4:Ao,H5:wo,H6:Oo,HR:Ro,IconButton:f,Img:xo,LI:Po,Link:H,ListItem:k,Loader:ko,Modal:F,OL:Bo,P:Do,Placeholder:Lo,Pre:Uo,ProgressSpinner:oe,ResetWrapper:jo,ScrollArea:Mo,Separator:No,Spaced:Ho,Span:Fo,StorybookIcon:Go,StorybookLogo:$o,SyntaxHighlighter:zo,TT:Wo,TabBar:Ko,TabButton:Yo,TabWrapper:Vo,Table:Zo,Tabs:qo,TabsState:Jo,TooltipLinkList:Qo,TooltipMessage:Xo,TooltipNote:b,UL:er,WithTooltip:y,WithTooltipPure:tr,Zoom:nr,codeCommon:or,components:rr,createCopyToClipboardFunction:ar,getStoryHref:lr,interleaveSeparators:cr,nameSpaceClassNames:sr,resetComponents:ir,withReset:ur}=__STORYBOOK_COMPONENTS__;var pr=__STORYBOOK_ICONS__,{AccessibilityAltIcon:hr,AccessibilityIcon:fr,AccessibilityIgnoredIcon:vr,AddIcon:Sr,AdminIcon:Er,AlertAltIcon:Tr,AlertIcon:br,AlignLeftIcon:yr,AlignRightIcon:Cr,AppleIcon:_r,ArrowBottomLeftIcon:Ar,ArrowBottomRightIcon:wr,ArrowDownIcon:Or,ArrowLeftIcon:Rr,ArrowRightIcon:xr,ArrowSolidDownIcon:Pr,ArrowSolidLeftIcon:kr,ArrowSolidRightIcon:Br,ArrowSolidUpIcon:Dr,ArrowTopLeftIcon:Lr,ArrowTopRightIcon:Ur,ArrowUpIcon:jr,AzureDevOpsIcon:Mr,BackIcon:Nr,BasketIcon:Hr,BatchAcceptIcon:Fr,BatchDenyIcon:Gr,BeakerIcon:$r,BellIcon:zr,BitbucketIcon:Wr,BoldIcon:Kr,BookIcon:Yr,BookmarkHollowIcon:Vr,BookmarkIcon:Zr,BottomBarIcon:qr,BottomBarToggleIcon:Jr,BoxIcon:Qr,BranchIcon:Xr,BrowserIcon:ea,ButtonIcon:ta,CPUIcon:na,CalendarIcon:oa,CameraIcon:ra,CameraStabilizeIcon:aa,CategoryIcon:la,CertificateIcon:ca,ChangedIcon:sa,ChatIcon:ia,CheckIcon:ua,ChevronDownIcon:da,ChevronLeftIcon:ma,ChevronRightIcon:ga,ChevronSmallDownIcon:Ia,ChevronSmallLeftIcon:pa,ChevronSmallRightIcon:ha,ChevronSmallUpIcon:fa,ChevronUpIcon:va,ChromaticIcon:Sa,ChromeIcon:Ea,CircleHollowIcon:Ta,CircleIcon:ba,ClearIcon:ya,CloseAltIcon:Ca,CloseIcon:re,CloudHollowIcon:_a,CloudIcon:Aa,CogIcon:wa,CollapseIcon:Oa,CommandIcon:Ra,CommentAddIcon:xa,CommentIcon:Pa,CommentsIcon:ka,CommitIcon:Ba,CompassIcon:Da,ComponentDrivenIcon:La,ComponentIcon:Ua,ContrastIcon:ja,ContrastIgnoredIcon:Ma,ControlsIcon:Na,CopyIcon:Ha,CreditIcon:Fa,CrossIcon:Ga,DashboardIcon:$a,DatabaseIcon:za,DeleteIcon:Wa,DiamondIcon:Ka,DirectionIcon:Ya,DiscordIcon:Va,DocChartIcon:Za,DocListIcon:qa,DocumentIcon:Ja,DownloadIcon:Qa,DragIcon:Xa,EditIcon:el,EllipsisIcon:tl,EmailIcon:nl,ExpandAltIcon:ol,ExpandIcon:rl,EyeCloseIcon:al,EyeIcon:ae,FaceHappyIcon:ll,FaceNeutralIcon:cl,FaceSadIcon:sl,FacebookIcon:il,FailedIcon:ul,FastForwardIcon:dl,FigmaIcon:ml,FilterIcon:gl,FlagIcon:Il,FolderIcon:pl,FormIcon:hl,GDriveIcon:fl,GithubIcon:vl,GitlabIcon:Sl,GlobeIcon:El,GoogleIcon:Tl,GraphBarIcon:bl,GraphLineIcon:yl,GraphqlIcon:Cl,GridAltIcon:_l,GridIcon:Al,GrowIcon:wl,HeartHollowIcon:Ol,HeartIcon:Rl,HomeIcon:xl,HourglassIcon:Pl,InfoIcon:le,ItalicIcon:kl,JumpToIcon:Bl,KeyIcon:Dl,LightningIcon:Ll,LightningOffIcon:Ul,LinkBrokenIcon:jl,LinkIcon:Ml,LinkedinIcon:Nl,LinuxIcon:Hl,ListOrderedIcon:Fl,ListUnorderedIcon:Gl,LocationIcon:$l,LockIcon:zl,MarkdownIcon:Wl,MarkupIcon:Kl,MediumIcon:Yl,MemoryIcon:Vl,MenuIcon:Zl,MergeIcon:ql,MirrorIcon:Jl,MobileIcon:Ql,MoonIcon:Xl,NutIcon:ec,OutboxIcon:tc,OutlineIcon:nc,PaintBrushIcon:oc,PaperClipIcon:rc,ParagraphIcon:ac,PassedIcon:lc,PLine truncated
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }