@prozorro/prozorro-ui 0.0.13 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/app/assets/{Color-FRDS63T2-BVVRSzFu.js → Color-FRDS63T2-CsRhr6UV.js} +1 -1
  2. package/dist/app/assets/{Colors.stories-BV0C2AcY.js → Colors.stories-DEYuJMOg.js} +1 -1
  3. package/dist/app/assets/{DocsRenderer-LL677BLK-BvkMeFSH.js → DocsRenderer-LL677BLK-SyKdr26F.js} +5 -5
  4. package/dist/app/assets/{Grid.stories-0uJYxh6v.js → Grid.stories-tNIqG0RU.js} +1 -1
  5. package/dist/app/assets/{PzAccordion-BK8qPIGx.js → PzAccordion-DBbwPot5.js} +1 -1
  6. package/dist/app/assets/{PzAccordion.stories-CBJM1l8G.js → PzAccordion.stories-BD4F7neV.js} +1 -1
  7. package/dist/app/assets/{PzAccordionTable.stories-0OZ08OCM.js → PzAccordionTable.stories-CLxILIcz.js} +1 -1
  8. package/dist/app/assets/{PzArrayClamp.stories-CVsbMoOI.js → PzArrayClamp.stories-250Iry9s.js} +1 -1
  9. package/dist/app/assets/{PzBreadcrumb.stories-AEkdP3Sx.js → PzBreadcrumb.stories-DxWT_6Cp.js} +1 -1
  10. package/dist/app/assets/{PzBtn-B9m7S5t4.js → PzBtn-BarWYLTu.js} +1 -1
  11. package/dist/app/assets/{PzBtn.stories-C0en9cjk.js → PzBtn.stories-BWjSm42O.js} +1 -1
  12. package/dist/app/assets/{PzCheckbox-4-y3QxIg.js → PzCheckbox-Bb0mjuwf.js} +1 -1
  13. package/dist/app/assets/{PzCheckbox.stories-0AqtpX2R.js → PzCheckbox.stories-Ru96TO_g.js} +1 -1
  14. package/dist/app/assets/{PzCheckboxGroup.stories-Bc2Q0qzm.js → PzCheckboxGroup.stories-Cffc_uJm.js} +1 -1
  15. package/dist/app/assets/{PzClamp.stories-ClQxjI3w.js → PzClamp.stories-kXcV_LYB.js} +1 -1
  16. package/dist/app/assets/{PzCopyToClipboard.stories-DpySg5be.js → PzCopyToClipboard.stories-DD4GX3Qh.js} +1 -1
  17. package/dist/app/assets/{PzDate-B7IRRe08.js → PzDate-SHTdqF8l.js} +1 -1
  18. package/dist/app/assets/{PzDate.stories-BMKH61UJ.js → PzDate.stories-D70HsLfD.js} +1 -1
  19. package/dist/app/assets/{PzDateRange.stories-DermFDVN.js → PzDateRange.stories-BSLqMAnO.js} +1 -1
  20. package/dist/app/assets/{PzDomHandler.stories-BZmKmq7h.js → PzDomHandler.stories-CISBkLbf.js} +1 -1
  21. package/dist/app/assets/{PzDropdown.stories-D21VL1Wl.js → PzDropdown.stories-BIScOgwc.js} +1 -1
  22. package/dist/app/assets/{PzFileInput.stories-CdV-8Ur5.js → PzFileInput.stories-CvrmXAoF.js} +1 -1
  23. package/dist/app/assets/{PzGrid.stories-jBExFoH9.js → PzGrid.stories-Dpy8NJxB.js} +1 -1
  24. package/dist/app/assets/{PzHint-Cs9J6pTd.js → PzHint-DtoBnvk8.js} +1 -1
  25. package/dist/app/assets/{PzHint.stories-qTU73X-T.js → PzHint.stories-D_aFAFoU.js} +1 -1
  26. package/dist/app/assets/{PzIcon-4heVmbY5.js → PzIcon-BNOyrXpI.js} +1 -1
  27. package/dist/app/assets/{PzIcon.stories-CHQJZBkl.js → PzIcon.stories-kQuMesD2.js} +1 -1
  28. package/dist/app/assets/{PzImage.stories-cr2I1Mv8.js → PzImage.stories-CAlceQdK.js} +1 -1
  29. package/dist/app/assets/{PzImageInput.stories-wOMiRK50.js → PzImageInput.stories-CJ3H4r2M.js} +1 -1
  30. package/dist/app/assets/{PzInfoBlockLayout.stories-DkIvXHsN.js → PzInfoBlockLayout.stories-keXGmy5F.js} +1 -1
  31. package/dist/app/assets/{PzInfoHint-DyFMEGP1.js → PzInfoHint-DVZaeDRk.js} +1 -1
  32. package/dist/app/assets/{PzInfoHint.stories-CbQPKqr-.js → PzInfoHint.stories-B0TumIIo.js} +1 -1
  33. package/dist/app/assets/{PzInput.stories-DFL76csJ.js → PzInput.stories-WWEWGJx6.js} +1 -1
  34. package/dist/app/assets/{PzInputDate.stories-DtbZSO2I.js → PzInputDate.stories-CfVVzhZL.js} +1 -1
  35. package/dist/app/assets/{PzInputNumber.stories-BnWkdIia.js → PzInputNumber.stories-FbaF-WKa.js} +1 -1
  36. package/dist/app/assets/{PzKeyValue.stories-D62cy2Nn.js → PzKeyValue.stories-q0wvaZLn.js} +1 -1
  37. package/dist/app/assets/{PzLabel-BGjTUIxv.js → PzLabel-uBBiovdd.js} +1 -1
  38. package/dist/app/assets/{PzLabel.stories-Bsn2on9n.js → PzLabel.stories-Cgh8DZae.js} +1 -1
  39. package/dist/app/assets/{PzLink-PMftGlCf.js → PzLink-cHGgru27.js} +1 -1
  40. package/dist/app/assets/{PzLink.stories-uYyu1A1Y.js → PzLink.stories-CBPhBsoj.js} +1 -1
  41. package/dist/app/assets/{PzListNav.stories-CzdiB1vJ.js → PzListNav.stories-BLC_908q.js} +1 -1
  42. package/dist/app/assets/{PzLoader.stories-BKbYZbCg.js → PzLoader.stories-icHvHyeI.js} +1 -1
  43. package/dist/app/assets/{PzModal.stories-D2Ix-15K.js → PzModal.stories-Bz9rN_Bk.js} +1 -1
  44. package/dist/app/assets/{PzMultiSelect.stories-ZraFVUKD.js → PzMultiSelect.stories-C6RrYe_m.js} +1 -1
  45. package/dist/app/assets/{PzNav.stories-G7KKxcZ2.js → PzNav.stories-B1UW2NeF.js} +1 -1
  46. package/dist/app/assets/{PzNumberFormat.stories-Cbj23Stp.js → PzNumberFormat.stories-Bzy6pqy8.js} +1 -1
  47. package/dist/app/assets/{PzPagination-DoBWX1Bo.js → PzPagination-64Zqms6p.js} +1 -1
  48. package/dist/app/assets/{PzPagination.stories-Cebi1pnM.js → PzPagination.stories-m4xmQWk_.js} +1 -1
  49. package/dist/app/assets/{PzPriceFormat.stories-BUxyBQoC.js → PzPriceFormat.stories-C1oI44R1.js} +1 -1
  50. package/dist/app/assets/{PzRadioGroup.stories-BniR4fVs.js → PzRadioGroup.stories-8BnKXSiz.js} +1 -1
  51. package/dist/app/assets/{PzRouterLink.stories-DXaqIXWs.js → PzRouterLink.stories-DZBqUeZO.js} +1 -1
  52. package/dist/app/assets/{PzScrollTo.stories-Ck6gWxiu.js → PzScrollTo.stories-BiKgHmHx.js} +1 -1
  53. package/dist/app/assets/{PzSearchResultItemLayout.stories-BUAZX2y1.js → PzSearchResultItemLayout.stories-tzfIkApC.js} +1 -1
  54. package/dist/app/assets/{PzSelect-CuDRkOrL.js → PzSelect-8HoFvfgg.js} +1 -1
  55. package/dist/app/assets/{PzSelect.stories-BB855vvD.js → PzSelect.stories-V_R6IELU.js} +1 -1
  56. package/dist/app/assets/{PzSkeleton-Cniu9lo6.js → PzSkeleton-BZ2PdJaY.js} +1 -1
  57. package/dist/app/assets/{PzSkeleton.stories-B2Am1ZYO.js → PzSkeleton.stories-gkc0hqvG.js} +1 -1
  58. package/dist/app/assets/{PzStatus-C3v_r0Oj.js → PzStatus-HQirNlkP.js} +1 -1
  59. package/dist/app/assets/{PzStatus.stories-mQSY87YP.js → PzStatus.stories-Cny2cCre.js} +1 -1
  60. package/dist/app/assets/{PzTable-Bwa8_IhX.js → PzTable-DhCHEj75.js} +1 -1
  61. package/dist/app/assets/{PzTable.stories-95TCj8y6.js → PzTable.stories-DGe1cVdK.js} +1 -1
  62. package/dist/app/assets/{PzTabs.stories-n-w_IPjO.js → PzTabs.stories-Dcmpgvvz.js} +1 -1
  63. package/dist/app/assets/{PzTag-DkreR1ah.js → PzTag-BewNXH-3.js} +1 -1
  64. package/dist/app/assets/{PzTag.stories-B3pQ3jt7.js → PzTag.stories-p43OTaSD.js} +1 -1
  65. package/dist/app/assets/{PzText-REfIJddB.js → PzText-CUyxiENy.js} +1 -1
  66. package/dist/app/assets/{PzText.stories-735Z3n9m.js → PzText.stories-CQOCvrVB.js} +1 -1
  67. package/dist/app/assets/{PzTextClamp.stories-DeNGHabI.js → PzTextClamp.stories-CbEPAEnK.js} +1 -1
  68. package/dist/app/assets/{PzTextarea.stories-CnHN5KKO.js → PzTextarea.stories-COr1Xu_M.js} +1 -1
  69. package/dist/app/assets/{PzValidatorXSS.stories-BwMdWW4N.js → PzValidatorXSS.stories-pzhUMBPc.js} +1 -1
  70. package/dist/app/assets/{Spacing.stories-DDQc5HL2.js → Spacing.stories-DZ5uSIKi.js} +1 -1
  71. package/dist/app/assets/{Typography.stories-DvalSfqI.js → Typography.stories-CuQV1Rli.js} +1 -1
  72. package/dist/app/assets/{WithTooltip-65CFNBJE-DkkeYwH0.js → WithTooltip-65CFNBJE-DWjyIDqC.js} +1 -1
  73. package/dist/app/assets/{floating-vue-Bvgx7aQ5.js → floating-vue-DW-LDDfy.js} +1 -1
  74. package/dist/app/assets/{floating-vue-BNQ4rNf7.js → floating-vue-vcYqNIEs.js} +1 -1
  75. package/dist/app/assets/{formatter-EIJCOSYU-DcIAKjRL.js → formatter-EIJCOSYU-CYaJiluP.js} +1 -1
  76. package/dist/app/assets/{iframe-BfW4-zQw.js → iframe-CpzqL6zW.js} +3 -3
  77. package/dist/app/assets/iframe-Cq0zFDNe.css +1 -0
  78. package/dist/app/assets/{index-02P5Hwc1.js → index-CWybat0Z.js} +1 -1
  79. package/dist/app/assets/{syntaxhighlighter-OH4MV7E3-Ceel2kqU.js → syntaxhighlighter-OH4MV7E3-CugE9DiU.js} +1 -1
  80. package/dist/app/assets/{text-clamp.esm-BHxuNfNm.js → text-clamp.esm-BHtvX3pg.js} +1 -1
  81. package/dist/app/iframe.html +2 -2
  82. package/dist/app/project.json +1 -1
  83. package/dist/package.json +1 -1
  84. package/dist/style.css +1 -1
  85. package/package.json +1 -1
  86. package/src/styles/{_grid.scss → base/_grid.scss} +1 -1
  87. package/src/styles/{_spacing.scss → base/_spacing.scss} +7 -7
  88. package/src/styles/main.scss +4 -4
  89. package/dist/app/assets/iframe-4qk0Ss25.css +0 -1
  90. /package/src/styles/{_colors.scss → base/_colors.scss} +0 -0
  91. /package/src/styles/{_reset.scss → base/_reset.scss} +0 -0
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-OH4MV7E3-Ceel2kqU.js","./iframe-BfW4-zQw.js","./preload-helper-C1FmrZbK.js","./iframe-4qk0Ss25.css","./_commonjsHelpers-Cpj98o6Y.js","./formatter-EIJCOSYU-DcIAKjRL.js","./WithTooltip-65CFNBJE-DkkeYwH0.js","./Color-FRDS63T2-BVVRSzFu.js"])))=>i.map(i=>d[i]);
2
- var J6=Object.defineProperty;var e8=(e,t,r)=>t in e?J6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ln=(e,t,r)=>e8(e,typeof t!="symbol"?t+"":t,r);import{_ as Qn}from"./preload-helper-C1FmrZbK.js";import{g as wy}from"./_commonjsHelpers-Cpj98o6Y.js";import{a9 as Ov,aa as t8,ab as r8,ac as n8,ad as a8,ae as l8,af as i8,ag as o8,ah as qp,ai as Hi,aj as Dv,ak as s8,al as u8,am as c8,an as d8,ao as f8,ap as p8,aq as h8,ar as g8,as as m8,at as y8,au as b8,av as v8,aw as E8,ax as S8,ay as x8,az as $8,aA as _8,aB as Rv,c as Ft,aC as qu,b as Gt,aD as Dt,aE as ko,aF as Wp,aG as Cd,aH as C8,aI as T8,aJ as Nv,aK as Xp}from"./iframe-BfW4-zQw.js";function w8(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(n,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function A8(){}function O8(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function D8(e,t,r){return is(e,t,void 0,void 0,void 0,void 0,r)}function is(e,t,r,n,a,l,i){let o=i(e,t,r,n,a,l);if(o!==void 0)return o;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 bs(e,t,l,i)}return bs(e,t,l,i)}function bs(e,t,r,n){if(Object.is(e,t))return!0;let a=Ov(e),l=Ov(t);if(a===Rv&&(a=qp),l===Rv&&(l=qp),a!==l)return!1;switch(a){case o8:return e.toString()===t.toString();case i8:{let s=e.valueOf(),u=t.valueOf();return O8(s,u)}case l8:case a8:case n8:return Object.is(e.valueOf(),t.valueOf());case r8:return e.source===t.source&&e.flags===t.flags;case t8:return e===t}r=r??new Map;let i=r.get(e),o=r.get(t);if(i!=null&&o!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(a){case _8:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!is(u,t.get(s),s,e,t,r,n))return!1;return!0}case $8:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(p=>is(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case x8:case S8:case E8:case v8:case b8:case y8:case m8:case g8:case h8:case p8:case f8:case d8:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!is(e[s],t[s],s,e,t,r,n))return!1;return!0}case c8:return e.byteLength!==t.byteLength?!1:bs(new Uint8Array(e),new Uint8Array(t),r,n);case u8:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:bs(new Uint8Array(e),new Uint8Array(t),r,n);case s8:return e.name===t.name&&e.message===t.message;case qp:{if(!(bs(e.constructor,t.constructor,r,n)||Hi(e)&&Hi(t)))return!1;let s=[...Object.keys(e),...Dv(e)],u=[...Object.keys(t),...Dv(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let p=t[d];if(!is(f,p,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function pn(e,t){return D8(e,t,A8)}var Lv="backgrounds",R8="outline",N8={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function L8(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}var Oi={PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Mv={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>{var r,n;return t?e.type!=="story"||!((r=e.tags)!=null&&r.includes(Oi.PLAY_FN)):e.type==="story"&&!!((n=e.tags)!=null&&n.includes(Oi.PLAY_FN))},_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},M8=e=>(t,r)=>{var n,a;return r?!((n=t.tags)!=null&&n.includes(e)):!!((a=t.tags)!=null&&a.includes(e))},ZC=Ft({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(a,l)=>"%"+((l<16?"0":"")+l.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(a){let l=a.length;if(l===0)return"";let i="",o=0,s=0;e:for(;s<l;s++){let u=a.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(o<s&&(i+=a.slice(o,s)),o=s+1,i+=t[u]),++s===l)break e;u=a.charCodeAt(s)}if(o<s&&(i+=a.slice(o,s)),u<2048){o=s+1,i+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){o=s+1,i+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=l)throw new Error("URI malformed");let c=a.charCodeAt(s)&1023;o=s+1,u=65536+((u&1023)<<10|c),i+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return o===0?a:o<l?i+a.slice(o):i}}}),Ay=Ft({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=ZC(),r=l=>{switch(typeof l){case"string":return(0,t.encodeString)(l);case"bigint":case"boolean":return""+l;case"number":if(Number.isFinite(l))return l<1e21?""+l:(0,t.encodeString)(""+l);break}return l instanceof Date?(0,t.encodeString)(l.toISOString()):""};e.defaultValueSerializer=r;var n=l=>l instanceof Date;e.defaultShouldSerializeObject=n;var a=l=>l;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:a,valueSerializer:e.defaultValueSerializer,keyDeserializer:a,shouldSerializeObject:e.defaultShouldSerializeObject}}}),QC=Ft({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=a,e.stringifyObject=c;var t=Ay(),r=ZC();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function a(d,f,p,b,v){if(n(f))return d;let S=d[f];return typeof S=="object"&&S!==null?S:!b&&(v||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[f]=[]:d[f]={}}var l=20,i="[]",o="[",s="]",u=".";function c(d,f,p=0,b,v){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:h=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:y=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:T=t.defaultOptions.valueSerializer,shouldSerializeObject:_=t.defaultOptions.shouldSerializeObject}=f,C=typeof x=="number"?String.fromCharCode(x):x,O=v===!0&&h,D=S==="dot"||S==="js"&&!v;if(p>l)return"";let L="",w=!0,I=!1;for(let k in d){let M=d[k];if(M===void 0)continue;let B;b?(B=b,O?y==="bracket"&&(B+=i):D?(B+=u,B+=k):(B+=o,B+=k,B+=s)):B=k,w||(L+=C),typeof M=="object"&&M!==null&&!_(M)?(I=M.pop!==void 0,(E||h&&I)&&(L+=c(M,f,p+1,B,I))):(L+=(0,r.encodeString)(B),L+="=",L+=T(M,k)),w&&(w=!1)}return L}}}),F8=Ft({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=a;var t=12,r=0,n=[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,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,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,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(o){let s=o.indexOf("%");if(s===-1)return o;let u=o.length,c="",d=0,f=0,p=s,b=t;for(;s>-1&&s<u;){let v=i(o[s+1],4),S=i(o[s+2],0),h=v|S,y=n[h];if(b=n[256+b+y],f=f<<6|h&n[364+y],b===t)c+=o.slice(d,p),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=p=o.indexOf("%",d);else{if(b===r)return null;if(s+=3,s<u&&o.charCodeAt(s)===37)continue;return null}}return c+o.slice(d)}var l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function i(o,s){let u=l[o];return u===void 0?255:u<<s}}}),B8=Ft({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=QC(),r=Ay(),n=F8(),a=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=a;var l=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=l;var i=/\+/g,o=function(){};o.prototype=Object.create(null);function s(c,d,f,p,b){let v=c.substring(d,f);return p&&(v=v.replace(i," ")),b&&(v=(0,n.decodeURIComponent)(v)||v),v}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:p=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:b=r.defaultOptions.arrayRepeatSyntax,nesting:v=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:h=r.defaultOptions.nestingSyntax,delimiter:y=r.defaultOptions.delimiter}=d??{},E=typeof y=="string"?y.charCodeAt(0):y,x=h==="js",T=new o;if(typeof c!="string")return T;let _=c.length,C="",O=-1,D=-1,L=-1,w=T,I,k="",M="",B=!1,$=!1,A=!1,R=!1,P=!1,N=!1,z=0,U=-1,K=-1,G=-1;for(let H=0;H<_+1;H++){if(z=H!==_?c.charCodeAt(H):E,z===E){if(N=D>O,N||(D=H),L!==D-1&&(M=s(c,L+1,U>-1?U:D,A,B),k=p(M),I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,x&&P,void 0))),N||k!==""){N&&(C=c.slice(D+1,H),R&&(C=C.replace(i," ")),$&&(C=(0,n.decodeURIComponent)(C)||C));let V=f(C,k);if(S){let q=w[k];q===void 0?U>-1?w[k]=[V]:w[k]=V:q.pop?q.push(V):w[k]=[q,V]}else w[k]=V}C="",O=H,D=H,B=!1,$=!1,A=!1,R=!1,P=!1,U=-1,L=H,w=T,I=void 0,k=""}else z===93?(S&&b==="bracket"&&G===91&&(U=K),v&&(h==="index"||x)&&D<=O&&(L!==K&&(M=s(c,L+1,H,A,B),k=p(M),I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,void 0,void 0)),I=k,A=!1,B=!1),L=H,P=!1)):z===46?v&&(h==="dot"||x)&&D<=O&&(L!==K&&(M=s(c,L+1,H,A,B),k=p(M),I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,x)),I=k,A=!1,B=!1),P=!0,L=H):z===91?v&&(h==="index"||x)&&D<=O&&(L!==K&&(M=s(c,L+1,H,A,B),k=p(M),x&&I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,x)),I=k,A=!1,B=!1,P=!1),L=H):z===61?D<=O?D=H:$=!0:z===43?D>O?R=!0:A=!0:z===37&&(D>O?$=!0:B=!0);K=H,G=z}return T}}}),P8=Ft({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=QC();function r(n,a){if(n===null||typeof n!="object")return"";let l=a??{};return(0,t.stringifyObject)(n,l)}}}),JC=Ft({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(l,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(l,s,u)}:function(l,i,o,s){s===void 0&&(s=o),l[s]=i[o]}),r=e&&e.__exportStar||function(l,i){for(var o in l)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,l,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=B8();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var a=P8();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),r(Ay(),e)}}),I8="Invariant failed";function sm(e,t){if(!e)throw new Error(I8)}var zl=Ft({"../../node_modules/memoizerific/memoizerific.js"(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"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,a,l){function i(u,c){if(!a[u]){if(!n[u]){var d=typeof qu=="function"&&qu;if(!c&&d)return d(u,!0);if(o)return o(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=a[u]={exports:{}};n[u][0].call(p.exports,function(b){var v=n[u][1][b];return i(v||b)},p,p.exports,r,n,a,l)}return a[u].exports}for(var o=typeof qu=="function"&&qu,s=0;s<l.length;s++)i(l[s]);return i}({1:[function(r,n,a){n.exports=function(l){if(typeof Map!="function"||l){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}l.prototype.get=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(o=this.indexOf(i),o>=0)return this.lastItem=this.list[o],this.list[o].val},l.prototype.set=function(i,o){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=o,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=o,this):(this.lastItem={key:i,val:o},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),o=this.indexOf(i),o>=0)return this.size--,this.list.splice(o,1)[0]},l.prototype.has=function(i){var o;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(o=this.indexOf(i),o>=0?(this.lastItem=this.list[o],!0):!1)},l.prototype.forEach=function(i,o){var s;for(s=0;s<this.size;s++)i.call(o||this,this.list[s].val,this.list[s].key,this)},l.prototype.indexOf=function(i){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,i))return o;return-1},l.prototype.isEqual=function(i,o){return i===o||i!==i&&o!==o},n.exports=l},{}],3:[function(r,n,a){var l=r("map-or-similar");n.exports=function(u){var c=new l(!1),d=[];return function(f){var p=function(){var b=c,v,S,h=arguments.length-1,y=Array(h+1),E=!0,x;if((p.numArgs||p.numArgs===0)&&p.numArgs!==h+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<h;x++){if(y[x]={cacheItem:b,arg:arguments[x]},b.has(arguments[x])){b=b.get(arguments[x]);continue}E=!1,v=new l(!1),b.set(arguments[x],v),b=v}return E&&(b.has(arguments[h])?S=b.get(arguments[h]):E=!1),E||(S=f.apply(null,arguments),b.set(arguments[h],S)),u>0&&(y[h]={cacheItem:b,arg:arguments[h]},E?i(d,y):d.push(y),d.length>u&&o(d.shift())),p.wasMemoized=E,p.numArgs=h+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function i(u,c){var d=u.length,f=c.length,p,b,v;for(b=0;b<d;b++){for(p=!0,v=0;v<f;v++)if(!s(u[b][v].arg,c[v].arg)){p=!1;break}if(p)break}u.push(u.splice(b,1)[0])}function o(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function Ar(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 a=n.reduce(function(o,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?o.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):o},[]);if(a.length){var l=new RegExp(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./syntaxhighlighter-OH4MV7E3-CugE9DiU.js","./iframe-CpzqL6zW.js","./preload-helper-C1FmrZbK.js","./iframe-Cq0zFDNe.css","./_commonjsHelpers-Cpj98o6Y.js","./formatter-EIJCOSYU-CYaJiluP.js","./WithTooltip-65CFNBJE-DWjyIDqC.js","./Color-FRDS63T2-CsRhr6UV.js"])))=>i.map(i=>d[i]);
2
+ var J6=Object.defineProperty;var e8=(e,t,r)=>t in e?J6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ln=(e,t,r)=>e8(e,typeof t!="symbol"?t+"":t,r);import{_ as Qn}from"./preload-helper-C1FmrZbK.js";import{g as wy}from"./_commonjsHelpers-Cpj98o6Y.js";import{a9 as Ov,aa as t8,ab as r8,ac as n8,ad as a8,ae as l8,af as i8,ag as o8,ah as qp,ai as Hi,aj as Dv,ak as s8,al as u8,am as c8,an as d8,ao as f8,ap as p8,aq as h8,ar as g8,as as m8,at as y8,au as b8,av as v8,aw as E8,ax as S8,ay as x8,az as $8,aA as _8,aB as Rv,c as Ft,aC as qu,b as Gt,aD as Dt,aE as ko,aF as Wp,aG as Cd,aH as C8,aI as T8,aJ as Nv,aK as Xp}from"./iframe-CpzqL6zW.js";function w8(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(n,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function A8(){}function O8(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function D8(e,t,r){return is(e,t,void 0,void 0,void 0,void 0,r)}function is(e,t,r,n,a,l,i){let o=i(e,t,r,n,a,l);if(o!==void 0)return o;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 bs(e,t,l,i)}return bs(e,t,l,i)}function bs(e,t,r,n){if(Object.is(e,t))return!0;let a=Ov(e),l=Ov(t);if(a===Rv&&(a=qp),l===Rv&&(l=qp),a!==l)return!1;switch(a){case o8:return e.toString()===t.toString();case i8:{let s=e.valueOf(),u=t.valueOf();return O8(s,u)}case l8:case a8:case n8:return Object.is(e.valueOf(),t.valueOf());case r8:return e.source===t.source&&e.flags===t.flags;case t8:return e===t}r=r??new Map;let i=r.get(e),o=r.get(t);if(i!=null&&o!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(a){case _8:{if(e.size!==t.size)return!1;for(let[s,u]of e.entries())if(!t.has(s)||!is(u,t.get(s),s,e,t,r,n))return!1;return!0}case $8:{if(e.size!==t.size)return!1;let s=Array.from(e.values()),u=Array.from(t.values());for(let c=0;c<s.length;c++){let d=s[c],f=u.findIndex(p=>is(d,p,void 0,e,t,r,n));if(f===-1)return!1;u.splice(f,1)}return!0}case x8:case S8:case E8:case v8:case b8:case y8:case m8:case g8:case h8:case p8:case f8:case d8:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let s=0;s<e.length;s++)if(!is(e[s],t[s],s,e,t,r,n))return!1;return!0}case c8:return e.byteLength!==t.byteLength?!1:bs(new Uint8Array(e),new Uint8Array(t),r,n);case u8:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:bs(new Uint8Array(e),new Uint8Array(t),r,n);case s8:return e.name===t.name&&e.message===t.message;case qp:{if(!(bs(e.constructor,t.constructor,r,n)||Hi(e)&&Hi(t)))return!1;let s=[...Object.keys(e),...Dv(e)],u=[...Object.keys(t),...Dv(t)];if(s.length!==u.length)return!1;for(let c=0;c<s.length;c++){let d=s[c],f=e[d];if(!Object.hasOwn(t,d))return!1;let p=t[d];if(!is(f,p,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}function pn(e,t){return D8(e,t,A8)}var Lv="backgrounds",R8="outline",N8={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};function L8(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}var Oi={PLAY_FN:"play-fn",DEV:"dev",TEST:"test"},Mv={_docs:(e,t)=>t?e.type!=="docs":e.type==="docs",_play:(e,t)=>{var r,n;return t?e.type!=="story"||!((r=e.tags)!=null&&r.includes(Oi.PLAY_FN)):e.type==="story"&&!!((n=e.tags)!=null&&n.includes(Oi.PLAY_FN))},_test:(e,t)=>t?e.type!=="story"||e.subtype!=="test":e.type==="story"&&e.subtype==="test"},M8=e=>(t,r)=>{var n,a;return r?!((n=t.tags)!=null&&n.includes(e)):!!((a=t.tags)!=null&&a.includes(e))},ZC=Ft({"../../node_modules/picoquery/lib/string-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(a,l)=>"%"+((l<16?"0":"")+l.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(a){let l=a.length;if(l===0)return"";let i="",o=0,s=0;e:for(;s<l;s++){let u=a.charCodeAt(s);for(;u<128;){if(r[u]!==1&&(o<s&&(i+=a.slice(o,s)),o=s+1,i+=t[u]),++s===l)break e;u=a.charCodeAt(s)}if(o<s&&(i+=a.slice(o,s)),u<2048){o=s+1,i+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){o=s+1,i+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++s,s>=l)throw new Error("URI malformed");let c=a.charCodeAt(s)&1023;o=s+1,u=65536+((u&1023)<<10|c),i+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return o===0?a:o<l?i+a.slice(o):i}}}),Ay=Ft({"../../node_modules/picoquery/lib/shared.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=ZC(),r=l=>{switch(typeof l){case"string":return(0,t.encodeString)(l);case"bigint":case"boolean":return""+l;case"number":if(Number.isFinite(l))return l<1e21?""+l:(0,t.encodeString)(""+l);break}return l instanceof Date?(0,t.encodeString)(l.toISOString()):""};e.defaultValueSerializer=r;var n=l=>l instanceof Date;e.defaultShouldSerializeObject=n;var a=l=>l;e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:a,valueSerializer:e.defaultValueSerializer,keyDeserializer:a,shouldSerializeObject:e.defaultShouldSerializeObject}}}),QC=Ft({"../../node_modules/picoquery/lib/object-util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=a,e.stringifyObject=c;var t=Ay(),r=ZC();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}function a(d,f,p,b,v){if(n(f))return d;let S=d[f];return typeof S=="object"&&S!==null?S:!b&&(v||typeof p=="number"||typeof p=="string"&&p*0===0&&p.indexOf(".")===-1)?d[f]=[]:d[f]={}}var l=20,i="[]",o="[",s="]",u=".";function c(d,f,p=0,b,v){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:h=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:y=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:T=t.defaultOptions.valueSerializer,shouldSerializeObject:_=t.defaultOptions.shouldSerializeObject}=f,C=typeof x=="number"?String.fromCharCode(x):x,O=v===!0&&h,D=S==="dot"||S==="js"&&!v;if(p>l)return"";let L="",w=!0,I=!1;for(let k in d){let M=d[k];if(M===void 0)continue;let B;b?(B=b,O?y==="bracket"&&(B+=i):D?(B+=u,B+=k):(B+=o,B+=k,B+=s)):B=k,w||(L+=C),typeof M=="object"&&M!==null&&!_(M)?(I=M.pop!==void 0,(E||h&&I)&&(L+=c(M,f,p+1,B,I))):(L+=(0,r.encodeString)(B),L+="=",L+=T(M,k)),w&&(w=!1)}return L}}}),F8=Ft({"../../node_modules/picoquery/lib/decode-uri-component.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=a;var t=12,r=0,n=[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,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,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,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,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(o){let s=o.indexOf("%");if(s===-1)return o;let u=o.length,c="",d=0,f=0,p=s,b=t;for(;s>-1&&s<u;){let v=i(o[s+1],4),S=i(o[s+2],0),h=v|S,y=n[h];if(b=n[256+b+y],f=f<<6|h&n[364+y],b===t)c+=o.slice(d,p),c+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,d=s+3,s=p=o.indexOf("%",d);else{if(b===r)return null;if(s+=3,s<u&&o.charCodeAt(s)===37)continue;return null}}return c+o.slice(d)}var l={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function i(o,s){let u=l[o];return u===void 0?255:u<<s}}}),B8=Ft({"../../node_modules/picoquery/lib/parse.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=QC(),r=Ay(),n=F8(),a=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberKeyDeserializer=a;var l=c=>{let d=Number(c);return Number.isNaN(d)?c:d};e.numberValueDeserializer=l;var i=/\+/g,o=function(){};o.prototype=Object.create(null);function s(c,d,f,p,b){let v=c.substring(d,f);return p&&(v=v.replace(i," ")),b&&(v=(0,n.decodeURIComponent)(v)||v),v}function u(c,d){let{valueDeserializer:f=r.defaultOptions.valueDeserializer,keyDeserializer:p=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:b=r.defaultOptions.arrayRepeatSyntax,nesting:v=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:h=r.defaultOptions.nestingSyntax,delimiter:y=r.defaultOptions.delimiter}=d??{},E=typeof y=="string"?y.charCodeAt(0):y,x=h==="js",T=new o;if(typeof c!="string")return T;let _=c.length,C="",O=-1,D=-1,L=-1,w=T,I,k="",M="",B=!1,$=!1,A=!1,R=!1,P=!1,N=!1,z=0,U=-1,K=-1,G=-1;for(let H=0;H<_+1;H++){if(z=H!==_?c.charCodeAt(H):E,z===E){if(N=D>O,N||(D=H),L!==D-1&&(M=s(c,L+1,U>-1?U:D,A,B),k=p(M),I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,x&&P,void 0))),N||k!==""){N&&(C=c.slice(D+1,H),R&&(C=C.replace(i," ")),$&&(C=(0,n.decodeURIComponent)(C)||C));let V=f(C,k);if(S){let q=w[k];q===void 0?U>-1?w[k]=[V]:w[k]=V:q.pop?q.push(V):w[k]=[q,V]}else w[k]=V}C="",O=H,D=H,B=!1,$=!1,A=!1,R=!1,P=!1,U=-1,L=H,w=T,I=void 0,k=""}else z===93?(S&&b==="bracket"&&G===91&&(U=K),v&&(h==="index"||x)&&D<=O&&(L!==K&&(M=s(c,L+1,H,A,B),k=p(M),I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,void 0,void 0)),I=k,A=!1,B=!1),L=H,P=!1)):z===46?v&&(h==="dot"||x)&&D<=O&&(L!==K&&(M=s(c,L+1,H,A,B),k=p(M),I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,x)),I=k,A=!1,B=!1),P=!0,L=H):z===91?v&&(h==="index"||x)&&D<=O&&(L!==K&&(M=s(c,L+1,H,A,B),k=p(M),x&&I!==void 0&&(w=(0,t.getDeepObject)(w,I,k,x)),I=k,A=!1,B=!1,P=!1),L=H):z===61?D<=O?D=H:$=!0:z===43?D>O?R=!0:A=!0:z===37&&(D>O?$=!0:B=!0);K=H,G=z}return T}}}),P8=Ft({"../../node_modules/picoquery/lib/stringify.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=QC();function r(n,a){if(n===null||typeof n!="object")return"";let l=a??{};return(0,t.stringifyObject)(n,l)}}}),JC=Ft({"../../node_modules/picoquery/lib/main.js"(e){var t=e&&e.__createBinding||(Object.create?function(l,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(l,s,u)}:function(l,i,o,s){s===void 0&&(s=o),l[s]=i[o]}),r=e&&e.__exportStar||function(l,i){for(var o in l)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,l,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=B8();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return n.parse}});var a=P8();Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),r(Ay(),e)}}),I8="Invariant failed";function sm(e,t){if(!e)throw new Error(I8)}var zl=Ft({"../../node_modules/memoizerific/memoizerific.js"(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"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,a,l){function i(u,c){if(!a[u]){if(!n[u]){var d=typeof qu=="function"&&qu;if(!c&&d)return d(u,!0);if(o)return o(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var p=a[u]={exports:{}};n[u][0].call(p.exports,function(b){var v=n[u][1][b];return i(v||b)},p,p.exports,r,n,a,l)}return a[u].exports}for(var o=typeof qu=="function"&&qu,s=0;s<l.length;s++)i(l[s]);return i}({1:[function(r,n,a){n.exports=function(l){if(typeof Map!="function"||l){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function l(){return this.list=[],this.lastItem=void 0,this.size=0,this}l.prototype.get=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(o=this.indexOf(i),o>=0)return this.lastItem=this.list[o],this.list[o].val},l.prototype.set=function(i,o){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=o,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=o,this):(this.lastItem={key:i,val:o},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(i){var o;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),o=this.indexOf(i),o>=0)return this.size--,this.list.splice(o,1)[0]},l.prototype.has=function(i){var o;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(o=this.indexOf(i),o>=0?(this.lastItem=this.list[o],!0):!1)},l.prototype.forEach=function(i,o){var s;for(s=0;s<this.size;s++)i.call(o||this,this.list[s].val,this.list[s].key,this)},l.prototype.indexOf=function(i){var o;for(o=0;o<this.size;o++)if(this.isEqual(this.list[o].key,i))return o;return-1},l.prototype.isEqual=function(i,o){return i===o||i!==i&&o!==o},n.exports=l},{}],3:[function(r,n,a){var l=r("map-or-similar");n.exports=function(u){var c=new l(!1),d=[];return function(f){var p=function(){var b=c,v,S,h=arguments.length-1,y=Array(h+1),E=!0,x;if((p.numArgs||p.numArgs===0)&&p.numArgs!==h+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<h;x++){if(y[x]={cacheItem:b,arg:arguments[x]},b.has(arguments[x])){b=b.get(arguments[x]);continue}E=!1,v=new l(!1),b.set(arguments[x],v),b=v}return E&&(b.has(arguments[h])?S=b.get(arguments[h]):E=!1),E||(S=f.apply(null,arguments),b.set(arguments[h],S)),u>0&&(y[h]={cacheItem:b,arg:arguments[h]},E?i(d,y):d.push(y),d.length>u&&o(d.shift())),p.wasMemoized=E,p.numArgs=h+1,S};return p.limit=u,p.wasMemoized=!1,p.cache=c,p.lru=d,p}};function i(u,c){var d=u.length,f=c.length,p,b,v;for(b=0;b<d;b++){for(p=!0,v=0;v<f;v++)if(!s(u[b][v].arg,c[v].arg)){p=!1;break}if(p)break}u.push(u.splice(b,1)[0])}function o(u){var c=u.length,d=u[c-1],f,p;for(d.cacheItem.delete(d.arg),p=c-2;p>=0&&(d=u[p],f=d.cacheItem.get(d.arg),!f||!f.size);p--)d.cacheItem.delete(d.arg)}function s(u,c){return u===c||u!==u&&c!==c}},{"map-or-similar":1}]},{},[3])(3)})}});function Ar(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 a=n.reduce(function(o,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?o.concat(u.map(function(c){var d,f;return(f=(d=c.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&f!==void 0?f:0})):o},[]);if(a.length){var l=new RegExp(`
3
3
  [ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(o){return o.replace(l,`
4
4
  `)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(o,s){var u=i.match(/(?:^|\n)( *)$/),c=u?u[1]:"",d=o;typeof o=="string"&&o.includes(`
5
5
  `)&&(d=String(o).split(`
@@ -707,7 +707,7 @@ More info: ${l}
707
707
  *
708
708
  * This source code is licensed under the MIT license found in the
709
709
  * LICENSE file in the root directory of this source tree.
710
- */var io=g;function RW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var NW=typeof Object.is=="function"?Object.is:RW,LW=io.useState,MW=io.useEffect,FW=io.useLayoutEffect,BW=io.useDebugValue;function PW(e,t){var r=t(),n=LW({inst:{value:r,getSnapshot:t}}),a=n[0].inst,l=n[1];return FW(function(){a.value=r,a.getSnapshot=t,vg(a)&&l({inst:a})},[e,r,t]),MW(function(){return vg(a)&&l({inst:a}),e(function(){vg(a)&&l({inst:a})})},[e]),BW(r),r}function vg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!NW(e,r)}catch{return!0}}function IW(e,t){return t()}var kW=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IW:PW;ZO.useSyncExternalStore=io.useSyncExternalStore!==void 0?io.useSyncExternalStore:kW;XO.exports=ZO;var zW=XO.exports,ze=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},No=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),ia=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),Ge=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Xl={margin:"16px 0"},A1=F.div(Ge),HW=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return m.createElement("a",{href:r,target:n,...t})},QO=F(HW)(({theme:e})=>({...Ge({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}})),JO=F.blockquote(({theme:e})=>({...Ge({theme:e}),...Xl,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Al=[],oo=null,UW=g.lazy(async()=>{let{SyntaxHighlighter:e}=await Qn(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-OH4MV7E3-Ceel2kqU.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return Al.length>0&&(Al.forEach(t=>{e.registerLanguage(...t)}),Al=[]),oo===null&&(oo=e),{default:t=>m.createElement(e,{...t})}}),jW=g.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Qn(()=>import("./syntaxhighlighter-OH4MV7E3-Ceel2kqU.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),Qn(()=>import("./formatter-EIJCOSYU-DcIAKjRL.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)]);return Al.length>0&&(Al.forEach(r=>{e.registerLanguage(...r)}),Al=[]),oo===null&&(oo=e),{default:r=>m.createElement(e,{...r,formatter:t})}}),Pu=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},e.format!==!1?m.createElement(jW,{...e}):m.createElement(UW,{...e}));Pu.registerLanguage=(...e)=>{if(oo!==null){oo.registerLanguage(...e);return}Al.push(e)};var KW=e=>typeof e=="string",GW=/[\n\r]/g,VW=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...ia({theme:e})})),YW=F(Pu)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),O1=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=g.Children.toArray(t);return a.filter(KW).some(l=>l.match(GW))?m.createElement(YW,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):m.createElement(VW,{...r,className:e},a)},e3=F.dl(({theme:e})=>({...Ge({theme:e}),...Xl,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),t3=F.div(Ge),r3=F.h1(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),D1=F.h2(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),R1=F.h3(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m1}px`})),n3=F.h4(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s3}px`})),a3=F.h5(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`})),l3=F.h6(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),i3=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),o3=F.img({maxWidth:"100%"}),s3=F.li(({theme:e})=>({...Ge({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":ia({theme:e})})),qW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},u3=F.ol(({theme:e})=>({...Ge({theme:e}),...Xl,...qW,listStyle:"decimal"})),c3=F.p(({theme:e})=>({...Ge({theme:e}),...Xl,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":ia({theme:e})})),d3=F.pre(({theme:e})=>({...Ge({theme:e}),...Xl,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),f3=F.span(({theme:e})=>({...Ge({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),p3=F.title(ia),h3=F.table(({theme:e})=>({...Ge({theme:e}),...Xl,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),WW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},g3=F.ul(({theme:e})=>({...Ge({theme:e}),...Xl,...WW,listStyle:"disc"})),m3={h1:e=>m.createElement(r3,{...ze(e,"h1")}),h2:e=>m.createElement(D1,{...ze(e,"h2")}),h3:e=>m.createElement(R1,{...ze(e,"h3")}),h4:e=>m.createElement(n3,{...ze(e,"h4")}),h5:e=>m.createElement(a3,{...ze(e,"h5")}),h6:e=>m.createElement(l3,{...ze(e,"h6")}),pre:e=>m.createElement(d3,{...ze(e,"pre")}),a:e=>m.createElement(QO,{...ze(e,"a")}),hr:e=>m.createElement(i3,{...ze(e,"hr")}),dl:e=>m.createElement(e3,{...ze(e,"dl")}),blockquote:e=>m.createElement(JO,{...ze(e,"blockquote")}),table:e=>m.createElement(h3,{...ze(e,"table")}),img:e=>m.createElement(o3,{...ze(e,"img")}),div:e=>m.createElement(t3,{...ze(e,"div")}),span:e=>m.createElement(f3,{...ze(e,"span")}),li:e=>m.createElement(s3,{...ze(e,"li")}),ul:e=>m.createElement(g3,{...ze(e,"ul")}),ol:e=>m.createElement(u3,{...ze(e,"ol")}),p:e=>m.createElement(c3,{...ze(e,"p")}),code:e=>m.createElement(O1,{...ze(e,"code")}),tt:e=>m.createElement(p3,{...ze(e,"tt")}),resetwrapper:e=>m.createElement(A1,{...ze(e,"resetwrapper")})};F.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${aa(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Lt(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${aa(.9,e.color.secondary)}`};default:return{}}});const{deprecate:XW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ZW=0,QW=e=>e.button===ZW&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,JW=(e,t)=>{QW(e)&&(e.preventDefault(),t(e))},eX=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),tX=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Lt(.07,e.color.secondary),"svg path:not([fill])":{fill:Lt(.07,e.color.secondary)}},"&:active":{color:Lt(.1,e.color.secondary),"svg path:not([fill])":{fill:Lt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),so=g.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,isButton:i=void 0,href:o,...s},u)=>(i!==void 0&&XW("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),m.createElement(tX,{as:o?"a":"button",href:o,...s,ref:u,isButton:!o||i===!0,onClick:r&&e?c=>JW(c,r):r,className:l},m.createElement(eX,{withArrow:n,containsIcon:a},t,n&&m.createElement(I5,null)))));so.displayName="Link";F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:j0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function P$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rX(...e){return t=>{let r=!1,n=e.map(a=>{let l=P$(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<n.length;a++){let l=n[a];typeof l=="function"?l():P$(e[a],null)}}}}var nX=Symbol.for("react.lazy"),hf=bM[" use ".trim().toString()];function aX(e){return typeof e=="object"&&e!==null&&"then"in e}function y3(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nX&&"_payload"in e&&aX(e._payload)}function lX(e){let t=oX(e),r=g.forwardRef((n,a)=>{let{children:l,...i}=n;y3(l)&&typeof hf=="function"&&(l=hf(l._payload));let o=g.Children.toArray(l),s=o.find(uX);if(s){let u=s.props.children,c=o.map(d=>d===s?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:d);return pe.jsx(t,{...i,ref:a,children:g.isValidElement(u)?g.cloneElement(u,void 0,c):null})}return pe.jsx(t,{...i,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var iX=lX("Slot");function oX(e){let t=g.forwardRef((r,n)=>{let{children:a,...l}=r;if(y3(a)&&typeof hf=="function"&&(a=hf(a._payload)),g.isValidElement(a)){let i=dX(a),o=cX(l,a.props);return a.type!==g.Fragment&&(o.ref=n?rX(n,i):i),g.cloneElement(a,o)}return g.Children.count(a)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sX=Symbol("radix.slottable");function uX(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sX}function cX(e,t){let r={...t};for(let n in t){let a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...i)=>{let o=l(...i);return a(...i),o}:a&&(r[n]=a):n==="style"?r[n]={...a,...l}:n==="className"&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function dX(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var fX=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),b3=({note:e,...t})=>m.createElement(fX,{...t},e);const{deprecate:pX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ve=typeof document<"u"?m.useLayoutEffect:()=>{};function hX(e){let[t,r]=g.useState(e),n=g.useRef(t),a=g.useRef(null),l=g.useRef(()=>{if(!a.current)return;let o=a.current.next();if(o.done){a.current=null;return}n.current===o.value?l.current():r(o.value)});ve(()=>{n.current=t,a.current&&l.current()});let i=g.useCallback(o=>{a.current=o(n.current),l.current()},[l]);return[t,i]}var v3={prefix:String(Math.round(Math.random()*1e10)),current:0},E3=m.createContext(v3),gX=m.createContext(!1),Eg=new WeakMap;function mX(e=!1){let t=g.useContext(E3),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=Eg.get(l);i==null?Eg.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,Eg.delete(l))}r.current=++t.current}return r.current}function yX(e){let t=g.useContext(E3),r=mX(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function bX(e){let t=m.useId(),[r]=g.useState(Zl()),n=r?"react-aria":`react-aria${v3.prefix}`;return e||`${n}-${t}`}var vX=typeof m.useId=="function"?bX:yX;function EX(){return!1}function SX(){return!0}function xX(e){return()=>{}}function Zl(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(xX,EX,SX):g.useContext(gX)}var $X=!!(typeof window<"u"&&window.document&&window.document.createElement),Ii=new Map,ps;typeof FinalizationRegistry<"u"&&(ps=new FinalizationRegistry(e=>{Ii.delete(e)}));function Ot(e){let[t,r]=g.useState(e),n=g.useRef(null),a=vX(t),l=g.useRef(null);if(ps&&ps.register(l,a),$X){let i=Ii.get(a);i&&!i.includes(n)?i.push(n):Ii.set(a,[n])}return ve(()=>{let i=a;return()=>{ps&&ps.unregister(l),Ii.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function _X(e,t){if(e===t)return e;let r=Ii.get(e);if(r)return r.forEach(a=>a.current=t),t;let n=Ii.get(t);return n?(n.forEach(a=>a.current=e),e):t}function md(e=[]){let t=Ot(),[r,n]=hX(t),a=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ve(a,[t,a,...e]),r}function Iu(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Ee=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fr=e=>e&&"window"in e&&e.window===e?e:Ee(e).defaultView||window;function Cr(e,t){return t&&e?e.contains(t):!1}var bt=(e=document)=>e.activeElement;function Ze(e){return e.target}function CX(e,t,r,n){return e.createTreeWalker(t,r,n)}function S3(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=S3(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function TX(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=S3(e))&&(n&&(n+=" "),n+=t);return n}var wX=TX;function oe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let a in n){let l=t[a],i=n[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Iu(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=wX(l,i):a==="id"&&l&&i?t.id=_X(l,i):t[a]=i!==void 0?i:l}}return t}function N1(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(a=>{let l=I$(a,t);return r||(r=typeof l=="function"),l});if(r)return()=>{n.forEach((a,l)=>{typeof a=="function"?a():I$(e[l],null)})}}}function I$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var AX=new Set(["id"]),OX=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),DX=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),RX=new Set(["dir","lang","hidden","inert","translate"]),k$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),NX=/^(data-.*)$/;function Ve(e,t={}){let{labelable:r,isLink:n,global:a,events:l=a,propNames:i}=t,o={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(AX.has(s)||r&&OX.has(s)||n&&DX.has(s)||a&&RX.has(s)||l&&(k$.has(s)||s.endsWith("Capture")&&k$.has(s.slice(0,-7)))||i!=null&&i.has(s)||NX.test(s))&&(o[s]=e[s]);return o}function Qt(e){if(LX())e.focus({preventScroll:!0});else{let t=MX(e);e.focus(),FX(t)}}var Dc=null;function LX(){if(Dc==null){Dc=!1;try{document.createElement("div").focus({get preventScroll(){return Dc=!0,!0}})}catch{}}return Dc}function MX(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function FX(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Cp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function L1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function oa(e){let t=null;return()=>(t==null&&(t=e()),t)}var Pl=oa(function(){return L1(/^Mac/i)}),BX=oa(function(){return L1(/^iPhone/i)}),x3=oa(function(){return L1(/^iPad/i)||Pl()&&navigator.maxTouchPoints>1}),Tp=oa(function(){return BX()||x3()}),PX=oa(function(){return Pl()||Tp()}),$3=oa(function(){return Cp(/AppleWebKit/i)&&!_3()}),_3=oa(function(){return Cp(/Chrome/i)}),M1=oa(function(){return Cp(/Android/i)}),IX=oa(function(){return Cp(/Firefox/i)}),kX=g.createContext({isNative:!0,open:UX,useHref:e=>e});function wp(){return g.useContext(kX)}function zX(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Il(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;IX()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Pl()?l=!0:i=!0);let u=$3()&&Pl()&&!x3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Il.isOpening=r,Qt(e),e.dispatchEvent(u),Il.isOpening=!1}Il.isOpening=!1;function HX(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function UX(e,t){HX(e,r=>Il(r,t))}function C3(e){let t=wp();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function jX(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&zX(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Ca=new Map,K0=new Set;function z$(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);a||(a=new Set,Ca.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),Ca.delete(n.target)),Ca.size===0)){for(let l of K0)l();K0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?z$():document.addEventListener("DOMContentLoaded",z$));function KX(){for(let[e]of Ca)"isConnected"in e&&!e.isConnected&&Ca.delete(e)}function T3(e){requestAnimationFrame(()=>{KX(),Ca.size===0?e():K0.add(e)})}function Ap(){let e=g.useRef(new Map),t=g.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),r=g.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),n=g.useCallback(()=>{e.current.forEach((a,l)=>{r(a.eventTarget,a.type,l,a.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Op(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=Ot(r),a&&n?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!n&&!a&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}function an(e){let t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(a=>{if(typeof e=="function"){let l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,r.current&&(r.current(),r.current=void 0),a!=null&&(r.current=n(a))}}),[n])}var Sg,GX=(Sg=m.useInsertionEffect)!==null&&Sg!==void 0?Sg:ve;function xt(e){let t=g.useRef(null);return GX(()=>{t.current=e},[e]),g.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function H$(e,t){let r=g.useRef(!0),n=g.useRef(null);ve(()=>(r.current=!0,()=>{r.current=!1}),[]),ve(()=>{r.current?r.current=!1:(!n.current||t.some((a,l)=>!Object.is(a,n[l])))&&e(),n.current=t},t)}function VX(){return typeof window.ResizeObserver<"u"}function gf(e){let{ref:t,box:r,onResize:n}=e,a=xt(n);g.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if(VX()){let i=new window.ResizeObserver(o=>{o.length&&a()});return i.observe(l,{box:r}),()=>{l&&i.unobserve(l)}}else return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}},[t,r])}function F1(e,t){ve(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function uo(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function w3(e,t){let r=e;for(uo(r,t)&&(r=r.parentElement);r&&!uo(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function YX(e,t){let r=[];for(;e&&e!==document.documentElement;)uo(e,t)&&r.push(e),e=e.parentElement;return r}function fi(e){return Pl()?e.metaKey:e.ctrlKey}var qX=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xg(e){return e instanceof HTMLInputElement&&!qX.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var WX=0,$g=new Map;function XX(e){let[t,r]=g.useState();return ve(()=>{if(!e)return;let n=$g.get(e);if(n)r(n.element.id);else{let a=`react-aria-description-${WX++}`;r(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),n={refCount:0,element:l},$g.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),$g.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function hs(e,t,r,n){let a=xt(r),l=r==null;g.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,n),()=>{i.removeEventListener(t,a,n)}},[e,t,n,l])}function A3(e,t){let r=U$(e,t,"left"),n=U$(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),b=i+parseInt(u,10),v=o+parseInt(s,10),S=b+e.clientWidth,h=v+e.clientHeight,y=parseInt(c,10)||0,E=parseInt(f,10)||0,x=parseInt(d,10)||0,T=parseInt(p,10)||0;r<=i+T?i=r-parseInt(u,10)-T:r+a>S-x&&(i+=r+a-S+x),n<=v+y?o=n-parseInt(s,10)-y:n+l>h-E&&(o+=n+l-h+E),e.scrollLeft=i,e.scrollTop=o}function U$(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[n];break}t=t.offsetParent}return a}function j$(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,o=window.getComputedStyle(i).overflow==="hidden";if(o){let s=YX(e);o||s.push(i);for(let u of s)A3(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,a,l;t==null||(a=t.containingElement)===null||a===void 0||(n=a.scrollIntoView)===null||n===void 0||n.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}function O3(e){return e.pointerType===""&&e.isTrusted?!0:M1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ZX(e){return!M1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function K$(e){let t=g.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var QX="react-aria-clear-focus",JX="react-aria-focus";function D3(e,t=!0){let[r,n]=g.useState(!0),a=r&&t;return ve(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),N3(e,a,g.useCallback(()=>n(!1),[])),a}function R3(e,t){let[r,n]=g.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let a=r==="exiting";return N3(e,a,g.useCallback(()=>{n(l=>l==="exiting"?"closed":l)},[])),a}function N3(e,t,r){ve(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let a=!1;return Promise.all(n.map(l=>l.finished)).then(()=>{a||vo.flushSync(()=>{r()})}).catch(()=>{}),()=>{a=!0}}},[e,t,r])}var eZ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function tZ(e){let t=Fr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a=r!=="none"&&n!=="hidden"&&n!=="collapse";if(a){let{getComputedStyle:l}=e.ownerDocument.defaultView,{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function rZ(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function B1(e,t){return eZ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&tZ(e)&&rZ(e,t)&&(!e.parentElement||B1(e.parentElement,e))}var P1=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],nZ=P1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";P1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var aZ=P1.join(':not([hidden]):not([tabindex="-1"]),');function L3(e){return e.matches(nZ)&&B1(e)&&!M3(e)}function lZ(e){return e.matches(aZ)&&B1(e)&&!M3(e)}function M3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var _g,iZ=typeof document<"u"?(_g=m.useInsertionEffect)!==null&&_g!==void 0?_g:m.useLayoutEffect:()=>{};function Dp(e,t,r){let[n,a]=g.useState(e||t),l=g.useRef(n),i=g.useRef(e!==void 0),o=e!==void 0;g.useEffect(()=>{i.current,i.current=o},[o]);let s=o?e:n;iZ(()=>{l.current=s});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...f)=>{let p=typeof d=="function"?d(l.current):d;Object.is(l.current,p)||(l.current=p,a(p),u(),r==null||r(p,...f))},[r]);return[s,c]}function su(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function I1(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function F3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function B3(e){let t=g.useRef({isFocused:!1,observer:null});ve(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=xt(n=>{e==null||e(n)});return g.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=n.target,l=i=>{if(t.current.isFocused=!1,a.disabled){let o=I1(i);r(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var mf=!1;function oZ(e){for(;e&&!L3(e);)e=e.parentElement;let t=Fr(e),r=t.document.activeElement;if(!r||r===e)return;mf=!0;let n=!1,a=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Qt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},o=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Qt(r),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),mf=!1,n=!1},u=requestAnimationFrame(s);return s}var wi="default",G0="",yd=new WeakMap;function sZ(e){if(Tp()){if(wi==="default"){let t=Ee(e);G0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}wi="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";yd.set(e,e.style[t]),e.style[t]="none"}}function G$(e){if(Tp()){if(wi!=="disabled")return;wi="restoring",setTimeout(()=>{T3(()=>{if(wi==="restoring"){let t=Ee(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=G0||""),G0="",wi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yd.has(e)){let t=yd.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),yd.delete(e)}}var uu=m.createContext({register:()=>{}});uu.displayName="PressResponderContext";function uZ(e,t){return t.get?t.get.call(e):t.value}function P3(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function cZ(e,t){var r=P3(e,t,"get");return uZ(e,r)}function dZ(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fZ(e,t,r){dZ(e,t),t.set(e,r)}function pZ(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function V$(e,t,r){var n=P3(e,t,"set");return pZ(e,n,r),r}function hZ(e){let t=g.useContext(uu);if(t){let{register:r,...n}=t;e=oe(n,e),r()}return F1(t,e.ref),e}var Rc=new WeakMap,Nc=class{continuePropagation(){V$(this,Rc,!1)}get shouldStopPropagation(){return cZ(this,Rc)}constructor(e,t,r,n){fZ(this,Rc,{writable:!0,value:void 0}),V$(this,Rc,!0);var a;let l=(a=n==null?void 0:n.target)!==null&&a!==void 0?a:r.currentTarget,i=l==null?void 0:l.getBoundingClientRect(),o,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(o=u-i.left,s=c-i.top):(o=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s}},Y$=Symbol("linkClicked"),q$="react-aria-pressable-style",W$="data-react-aria-pressable";function ku(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=hZ(e),[b,v]=g.useState(!1),S=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:y}=Ap(),E=xt((w,I)=>{let k=S.current;if(o||k.didFirePressStart)return!1;let M=!0;if(k.isTriggeringEvent=!0,n){let B=new Nc("pressstart",I,w);n(B),M=B.shouldStopPropagation}return r&&r(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,v(!0),M}),x=xt((w,I,k=!0)=>{let M=S.current;if(!M.didFirePressStart)return!1;M.didFirePressStart=!1,M.isTriggeringEvent=!0;let B=!0;if(a){let $=new Nc("pressend",I,w);a($),B=$.shouldStopPropagation}if(r&&r(!1),v(!1),t&&k&&!o){let $=new Nc("press",I,w);t($),B&&(B=$.shouldStopPropagation)}return M.isTriggeringEvent=!1,B}),T=xt((w,I)=>{let k=S.current;if(o)return!1;if(l){k.isTriggeringEvent=!0;let M=new Nc("pressup",I,w);return l(M),k.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),_=xt(w=>{let I=S.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&x(nl(I.target,w),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,y(),d||G$(I.target);for(let k of I.disposables)k();I.disposables=[]}}),C=xt(w=>{c&&_(w)}),O=xt(w=>{o||(i==null||i(w))}),D=xt((w,I)=>{if(!o&&i){let k=new MouseEvent("click",w);F3(k,I),i(I1(k))}}),L=g.useMemo(()=>{let w=S.current,I={onKeyDown(M){if(Cg(M.nativeEvent,M.currentTarget)&&Cr(M.currentTarget,Ze(M.nativeEvent))){var B;X$(Ze(M.nativeEvent),M.key)&&M.preventDefault();let $=!0;if(!w.isPressed&&!M.repeat){w.target=M.currentTarget,w.isPressed=!0,w.pointerType="keyboard",$=E(M,"keyboard");let A=M.currentTarget,R=P=>{Cg(P,A)&&!P.repeat&&Cr(A,Ze(P))&&w.target&&T(nl(w.target,P),"keyboard")};h(Ee(M.currentTarget),"keyup",Iu(R,k),!0)}$&&M.stopPropagation(),M.metaKey&&Pl()&&((B=w.metaKeyEvents)===null||B===void 0||B.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(M){if(!(M&&!Cr(M.currentTarget,Ze(M.nativeEvent)))&&M&&M.button===0&&!w.isTriggeringEvent&&!Il.isOpening){let B=!0;if(o&&M.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||O3(M.nativeEvent))){let $=E(M,"virtual"),A=T(M,"virtual"),R=x(M,"virtual");O(M),B=$&&A&&R}else if(w.isPressed&&w.pointerType!=="keyboard"){let $=w.pointerType||M.nativeEvent.pointerType||"virtual",A=T(nl(M.currentTarget,M),$),R=x(nl(M.currentTarget,M),$,!0);B=A&&R,w.isOverTarget=!1,O(M),_(M)}w.ignoreEmulatedMouseEvents=!1,B&&M.stopPropagation()}}},k=M=>{var B;if(w.isPressed&&w.target&&Cg(M,w.target)){var $;X$(Ze(M),M.key)&&M.preventDefault();let R=Ze(M),P=Cr(w.target,Ze(M));x(nl(w.target,M),"keyboard",P),P&&D(M,w.target),y(),M.key!=="Enter"&&k1(w.target)&&Cr(w.target,R)&&!M[Y$]&&(M[Y$]=!0,Il(w.target,M,!1)),w.isPressed=!1,($=w.metaKeyEvents)===null||$===void 0||$.delete(M.key)}else if(M.key==="Meta"&&!((B=w.metaKeyEvents)===null||B===void 0)&&B.size){var A;let R=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let P of R.values())(A=w.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){I.onPointerDown=$=>{if($.button!==0||!Cr($.currentTarget,Ze($.nativeEvent)))return;if(ZX($.nativeEvent)){w.pointerType="virtual";return}w.pointerType=$.pointerType;let A=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=$.pointerId,w.target=$.currentTarget,d||sZ(w.target),A=E($,w.pointerType);let R=Ze($.nativeEvent);"releasePointerCapture"in R&&R.releasePointerCapture($.pointerId),h(Ee($.currentTarget),"pointerup",M,!1),h(Ee($.currentTarget),"pointercancel",B,!1)}A&&$.stopPropagation()},I.onMouseDown=$=>{if(Cr($.currentTarget,Ze($.nativeEvent))&&$.button===0){if(u){let A=oZ($.target);A&&w.disposables.push(A)}$.stopPropagation()}},I.onPointerUp=$=>{!Cr($.currentTarget,Ze($.nativeEvent))||w.pointerType==="virtual"||$.button===0&&!w.isPressed&&T($,w.pointerType||$.pointerType)},I.onPointerEnter=$=>{$.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,E(nl(w.target,$),w.pointerType))},I.onPointerLeave=$=>{$.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,x(nl(w.target,$),w.pointerType,!1),C($))};let M=$=>{if($.pointerId===w.activePointerId&&w.isPressed&&$.button===0&&w.target){if(Cr(w.target,Ze($))&&w.pointerType!=null){let A=!1,R=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(A?_($):(Qt(w.target),w.target.click()))},80);h($.currentTarget,"click",()=>A=!0,!0),w.disposables.push(()=>clearTimeout(R))}else _($);w.isOverTarget=!1}},B=$=>{_($)};I.onDragStart=$=>{Cr($.currentTarget,Ze($.nativeEvent))&&_($)}}return I},[h,o,u,y,d,_,C,x,E,T,O,D]);return g.useEffect(()=>{if(!f)return;let w=Ee(f.current);if(!w||!w.head||w.getElementById(q$))return;let I=w.createElement("style");I.id=q$,I.textContent=`
710
+ */var io=g;function RW(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var NW=typeof Object.is=="function"?Object.is:RW,LW=io.useState,MW=io.useEffect,FW=io.useLayoutEffect,BW=io.useDebugValue;function PW(e,t){var r=t(),n=LW({inst:{value:r,getSnapshot:t}}),a=n[0].inst,l=n[1];return FW(function(){a.value=r,a.getSnapshot=t,vg(a)&&l({inst:a})},[e,r,t]),MW(function(){return vg(a)&&l({inst:a}),e(function(){vg(a)&&l({inst:a})})},[e]),BW(r),r}function vg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!NW(e,r)}catch{return!0}}function IW(e,t){return t()}var kW=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?IW:PW;ZO.useSyncExternalStore=io.useSyncExternalStore!==void 0?io.useSyncExternalStore:kW;XO.exports=ZO;var zW=XO.exports,ze=({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},No=({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}}),ia=({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?"1px solid hsl(0 0 0 / 0.05)":"1px solid hsl(0 0 100 / 0.05)",color:e.color.defaultText,backgroundColor:e.base==="light"?"hsl(0 0 0 / 0.01)":"hsl(0 0 100 / 0.02)"}),Ge=({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"}),Xl={margin:"16px 0"},A1=F.div(Ge),HW=({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return m.createElement("a",{href:r,target:n,...t})},QO=F(HW)(({theme:e})=>({...Ge({theme:e}),fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}})),JO=F.blockquote(({theme:e})=>({...Ge({theme:e}),...Xl,borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Al=[],oo=null,UW=g.lazy(async()=>{let{SyntaxHighlighter:e}=await Qn(async()=>{const{SyntaxHighlighter:t}=await import("./syntaxhighlighter-OH4MV7E3-CugE9DiU.js");return{SyntaxHighlighter:t}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return Al.length>0&&(Al.forEach(t=>{e.registerLanguage(...t)}),Al=[]),oo===null&&(oo=e),{default:t=>m.createElement(e,{...t})}}),jW=g.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Qn(()=>import("./syntaxhighlighter-OH4MV7E3-CugE9DiU.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),Qn(()=>import("./formatter-EIJCOSYU-CYaJiluP.js"),__vite__mapDeps([5,1,2,3,4]),import.meta.url)]);return Al.length>0&&(Al.forEach(r=>{e.registerLanguage(...r)}),Al=[]),oo===null&&(oo=e),{default:r=>m.createElement(e,{...r,formatter:t})}}),Pu=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},e.format!==!1?m.createElement(jW,{...e}):m.createElement(UW,{...e}));Pu.registerLanguage=(...e)=>{if(oo!==null){oo.registerLanguage(...e);return}Al.push(e)};var KW=e=>typeof e=="string",GW=/[\n\r]/g,VW=F.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit",...ia({theme:e})})),YW=F(Pu)(({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),O1=({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=g.Children.toArray(t);return a.filter(KW).some(l=>l.match(GW))?m.createElement(YW,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):m.createElement(VW,{...r,className:e},a)},e3=F.dl(({theme:e})=>({...Ge({theme:e}),...Xl,padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}})),t3=F.div(Ge),r3=F.h1(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),D1=F.h2(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),R1=F.h3(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.m1}px`})),n3=F.h4(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s3}px`})),a3=F.h5(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`})),l3=F.h6(({theme:e})=>({...Ge({theme:e}),...No({theme:e}),fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),i3=F.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),o3=F.img({maxWidth:"100%"}),s3=F.li(({theme:e})=>({...Ge({theme:e}),fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":ia({theme:e})})),qW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},u3=F.ol(({theme:e})=>({...Ge({theme:e}),...Xl,...qW,listStyle:"decimal"})),c3=F.p(({theme:e})=>({...Ge({theme:e}),...Xl,fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":ia({theme:e})})),d3=F.pre(({theme:e})=>({...Ge({theme:e}),...Xl,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}})),f3=F.span(({theme:e})=>({...Ge({theme:e}),"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}})),p3=F.title(ia),h3=F.table(({theme:e})=>({...Ge({theme:e}),...Xl,fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}})),WW={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},g3=F.ul(({theme:e})=>({...Ge({theme:e}),...Xl,...WW,listStyle:"disc"})),m3={h1:e=>m.createElement(r3,{...ze(e,"h1")}),h2:e=>m.createElement(D1,{...ze(e,"h2")}),h3:e=>m.createElement(R1,{...ze(e,"h3")}),h4:e=>m.createElement(n3,{...ze(e,"h4")}),h5:e=>m.createElement(a3,{...ze(e,"h5")}),h6:e=>m.createElement(l3,{...ze(e,"h6")}),pre:e=>m.createElement(d3,{...ze(e,"pre")}),a:e=>m.createElement(QO,{...ze(e,"a")}),hr:e=>m.createElement(i3,{...ze(e,"hr")}),dl:e=>m.createElement(e3,{...ze(e,"dl")}),blockquote:e=>m.createElement(JO,{...ze(e,"blockquote")}),table:e=>m.createElement(h3,{...ze(e,"table")}),img:e=>m.createElement(o3,{...ze(e,"img")}),div:e=>m.createElement(t3,{...ze(e,"div")}),span:e=>m.createElement(f3,{...ze(e,"span")}),li:e=>m.createElement(s3,{...ze(e,"li")}),ul:e=>m.createElement(g3,{...ze(e,"ul")}),ol:e=>m.createElement(u3,{...ze(e,"ol")}),p:e=>m.createElement(c3,{...ze(e,"p")}),code:e=>m.createElement(O1,{...ze(e,"code")}),tt:e=>m.createElement(p3,{...ze(e,"tt")}),resetwrapper:e=>m.createElement(A1,{...ze(e,"resetwrapper")})};F.div(({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"}),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},({theme:e,status:t})=>{switch(t){case"critical":return{color:e.fgColor.critical,background:e.bgColor.critical,boxShadow:`inset 0 0 0 1px ${e.borderColor.critical}`};case"negative":return{color:e.fgColor.negative,background:e.bgColor.negative,boxShadow:`inset 0 0 0 1px ${e.borderColor.negative}`};case"warning":return{color:e.fgColor.warning,background:e.bgColor.warning,boxShadow:`inset 0 0 0 1px ${e.borderColor.warning}`};case"neutral":return{color:e.fgColor.muted,background:e.base==="dark"?e.barBg:e.background.app,boxShadow:`inset 0 0 0 1px ${aa(.8,e.textMutedColor)}`};case"positive":return{color:e.fgColor.positive,background:e.bgColor.positive,boxShadow:`inset 0 0 0 1px ${e.borderColor.positive}`};case"active":return{color:e.base==="light"?Lt(.1,e.color.secondary):e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${aa(.9,e.color.secondary)}`};default:return{}}});const{deprecate:XW}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ZW=0,QW=e=>e.button===ZW&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,JW=(e,t)=>{QW(e)&&(e.preventDefault(),t(e))},eX=F.span(({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{},({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{}),tX=F.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:Lt(.07,e.color.secondary),"svg path:not([fill])":{fill:Lt(.07,e.color.secondary)}},"&:active":{color:Lt(.1,e.color.secondary),"svg path:not([fill])":{fill:Lt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}}),({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.secondary,e.color.secondary]),r&&(n=[e.color.dark,e.color.secondary,e.color.secondary]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}},({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{},({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{},({isButton:e,theme:t})=>e?{border:0,borderRadius:t.input.borderRadius,background:"none",padding:0,fontSize:"inherit",lineHeight:"inherit","&:focus-visible":{outline:`2px solid ${t.color.secondary}`,outlineOffset:2,zIndex:"1"}}:{}),so=g.forwardRef(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:a=!1,className:l=void 0,isButton:i=void 0,href:o,...s},u)=>(i!==void 0&&XW("Link: `isButton` is deprecated and will be removed in Storybook 11. Links without a `href` are automatically rendered as buttons."),m.createElement(tX,{as:o?"a":"button",href:o,...s,ref:u,isButton:!o||i===!0,onClick:r&&e?c=>JW(c,r):r,className:l},m.createElement(eX,{withArrow:n,containsIcon:a},t,n&&m.createElement(I5,null)))));so.displayName="Link";F.div(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:e.base==="dark"?e.color.darkest:e.color.dark}}));const{deprecate:j0}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function P$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rX(...e){return t=>{let r=!1,n=e.map(a=>{let l=P$(a,t);return!r&&typeof l=="function"&&(r=!0),l});if(r)return()=>{for(let a=0;a<n.length;a++){let l=n[a];typeof l=="function"?l():P$(e[a],null)}}}}var nX=Symbol.for("react.lazy"),hf=bM[" use ".trim().toString()];function aX(e){return typeof e=="object"&&e!==null&&"then"in e}function y3(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===nX&&"_payload"in e&&aX(e._payload)}function lX(e){let t=oX(e),r=g.forwardRef((n,a)=>{let{children:l,...i}=n;y3(l)&&typeof hf=="function"&&(l=hf(l._payload));let o=g.Children.toArray(l),s=o.find(uX);if(s){let u=s.props.children,c=o.map(d=>d===s?g.Children.count(u)>1?g.Children.only(null):g.isValidElement(u)?u.props.children:null:d);return pe.jsx(t,{...i,ref:a,children:g.isValidElement(u)?g.cloneElement(u,void 0,c):null})}return pe.jsx(t,{...i,ref:a,children:l})});return r.displayName=`${e}.Slot`,r}var iX=lX("Slot");function oX(e){let t=g.forwardRef((r,n)=>{let{children:a,...l}=r;if(y3(a)&&typeof hf=="function"&&(a=hf(a._payload)),g.isValidElement(a)){let i=dX(a),o=cX(l,a.props);return a.type!==g.Fragment&&(o.ref=n?rX(n,i):i),g.cloneElement(a,o)}return g.Children.count(a)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sX=Symbol("radix.slottable");function uX(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===sX}function cX(e,t){let r={...t};for(let n in t){let a=e[n],l=t[n];/^on[A-Z]/.test(n)?a&&l?r[n]=(...i)=>{let o=l(...i);return a(...i),o}:a&&(r[n]=a):n==="style"?r[n]={...a,...l}:n==="className"&&(r[n]=[a,l].filter(Boolean).join(" "))}return{...e,...r}}function dX(e){var n,a;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var fX=F.div(({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:e.base==="light"?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)"})),b3=({note:e,...t})=>m.createElement(fX,{...t},e);const{deprecate:pX}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ve=typeof document<"u"?m.useLayoutEffect:()=>{};function hX(e){let[t,r]=g.useState(e),n=g.useRef(t),a=g.useRef(null),l=g.useRef(()=>{if(!a.current)return;let o=a.current.next();if(o.done){a.current=null;return}n.current===o.value?l.current():r(o.value)});ve(()=>{n.current=t,a.current&&l.current()});let i=g.useCallback(o=>{a.current=o(n.current),l.current()},[l]);return[t,i]}var v3={prefix:String(Math.round(Math.random()*1e10)),current:0},E3=m.createContext(v3),gX=m.createContext(!1),Eg=new WeakMap;function mX(e=!1){let t=g.useContext(E3),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=Eg.get(l);i==null?Eg.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,Eg.delete(l))}r.current=++t.current}return r.current}function yX(e){let t=g.useContext(E3),r=mX(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function bX(e){let t=m.useId(),[r]=g.useState(Zl()),n=r?"react-aria":`react-aria${v3.prefix}`;return e||`${n}-${t}`}var vX=typeof m.useId=="function"?bX:yX;function EX(){return!1}function SX(){return!0}function xX(e){return()=>{}}function Zl(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(xX,EX,SX):g.useContext(gX)}var $X=!!(typeof window<"u"&&window.document&&window.document.createElement),Ii=new Map,ps;typeof FinalizationRegistry<"u"&&(ps=new FinalizationRegistry(e=>{Ii.delete(e)}));function Ot(e){let[t,r]=g.useState(e),n=g.useRef(null),a=vX(t),l=g.useRef(null);if(ps&&ps.register(l,a),$X){let i=Ii.get(a);i&&!i.includes(n)?i.push(n):Ii.set(a,[n])}return ve(()=>{let i=a;return()=>{ps&&ps.unregister(l),Ii.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function _X(e,t){if(e===t)return e;let r=Ii.get(e);if(r)return r.forEach(a=>a.current=t),t;let n=Ii.get(t);return n?(n.forEach(a=>a.current=e),e):t}function md(e=[]){let t=Ot(),[r,n]=hX(t),a=g.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return ve(a,[t,a,...e]),r}function Iu(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Ee=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Fr=e=>e&&"window"in e&&e.window===e?e:Ee(e).defaultView||window;function Cr(e,t){return t&&e?e.contains(t):!1}var bt=(e=document)=>e.activeElement;function Ze(e){return e.target}function CX(e,t,r,n){return e.createTreeWalker(t,r,n)}function S3(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=S3(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function TX(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=S3(e))&&(n&&(n+=" "),n+=t);return n}var wX=TX;function oe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let a in n){let l=t[a],i=n[a];typeof l=="function"&&typeof i=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=Iu(l,i):(a==="className"||a==="UNSAFE_className")&&typeof l=="string"&&typeof i=="string"?t[a]=wX(l,i):a==="id"&&l&&i?t.id=_X(l,i):t[a]=i!==void 0?i:l}}return t}function N1(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1,n=e.map(a=>{let l=I$(a,t);return r||(r=typeof l=="function"),l});if(r)return()=>{n.forEach((a,l)=>{typeof a=="function"?a():I$(e[l],null)})}}}function I$(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}var AX=new Set(["id"]),OX=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),DX=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),RX=new Set(["dir","lang","hidden","inert","translate"]),k$=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),NX=/^(data-.*)$/;function Ve(e,t={}){let{labelable:r,isLink:n,global:a,events:l=a,propNames:i}=t,o={};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(AX.has(s)||r&&OX.has(s)||n&&DX.has(s)||a&&RX.has(s)||l&&(k$.has(s)||s.endsWith("Capture")&&k$.has(s.slice(0,-7)))||i!=null&&i.has(s)||NX.test(s))&&(o[s]=e[s]);return o}function Qt(e){if(LX())e.focus({preventScroll:!0});else{let t=MX(e);e.focus(),FX(t)}}var Dc=null;function LX(){if(Dc==null){Dc=!1;try{document.createElement("div").focus({get preventScroll(){return Dc=!0,!0}})}catch{}}return Dc}function MX(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function FX(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Cp(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function L1(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function oa(e){let t=null;return()=>(t==null&&(t=e()),t)}var Pl=oa(function(){return L1(/^Mac/i)}),BX=oa(function(){return L1(/^iPhone/i)}),x3=oa(function(){return L1(/^iPad/i)||Pl()&&navigator.maxTouchPoints>1}),Tp=oa(function(){return BX()||x3()}),PX=oa(function(){return Pl()||Tp()}),$3=oa(function(){return Cp(/AppleWebKit/i)&&!_3()}),_3=oa(function(){return Cp(/Chrome/i)}),M1=oa(function(){return Cp(/Android/i)}),IX=oa(function(){return Cp(/Firefox/i)}),kX=g.createContext({isNative:!0,open:UX,useHref:e=>e});function wp(){return g.useContext(kX)}function zX(e,t){let r=e.getAttribute("target");return(!r||r==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Il(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;IX()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(Pl()?l=!0:i=!0);let u=$3()&&Pl()&&!x3()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Il.isOpening=r,Qt(e),e.dispatchEvent(u),Il.isOpening=!1}Il.isOpening=!1;function HX(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function UX(e,t){HX(e,r=>Il(r,t))}function C3(e){let t=wp();var r;let n=t.useHref((r=e==null?void 0:e.href)!==null&&r!==void 0?r:"");return{href:e!=null&&e.href?n:void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}function jX(e,t,r,n){!t.isNative&&e.currentTarget instanceof HTMLAnchorElement&&e.currentTarget.href&&!e.isDefaultPrevented()&&zX(e.currentTarget,e)&&r&&(e.preventDefault(),t.open(e.currentTarget,e,r,n))}var Ca=new Map,K0=new Set;function z$(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);a||(a=new Set,Ca.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=Ca.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),Ca.delete(n.target)),Ca.size===0)){for(let l of K0)l();K0.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?z$():document.addEventListener("DOMContentLoaded",z$));function KX(){for(let[e]of Ca)"isConnected"in e&&!e.isConnected&&Ca.delete(e)}function T3(e){requestAnimationFrame(()=>{KX(),Ca.size===0?e():K0.add(e)})}function Ap(){let e=g.useRef(new Map),t=g.useCallback((a,l,i,o)=>{let s=o!=null&&o.once?(...u)=>{e.current.delete(i),i(...u)}:i;e.current.set(i,{type:l,eventTarget:a,fn:s,options:o}),a.addEventListener(l,s,o)},[]),r=g.useCallback((a,l,i,o)=>{var s;let u=((s=e.current.get(i))===null||s===void 0?void 0:s.fn)||i;a.removeEventListener(l,u,o),e.current.delete(i)},[]),n=g.useCallback(()=>{e.current.forEach((a,l)=>{r(a.eventTarget,a.type,l,a.options)})},[r]);return g.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Op(e,t){let{id:r,"aria-label":n,"aria-labelledby":a}=e;return r=Ot(r),a&&n?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!n&&!a&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":a}}function an(e){let t=g.useRef(null),r=g.useRef(void 0),n=g.useCallback(a=>{if(typeof e=="function"){let l=e,i=l(a);return()=>{typeof i=="function"?i():l(null)}}else if(e)return e.current=a,()=>{e.current=null}},[e]);return g.useMemo(()=>({get current(){return t.current},set current(a){t.current=a,r.current&&(r.current(),r.current=void 0),a!=null&&(r.current=n(a))}}),[n])}var Sg,GX=(Sg=m.useInsertionEffect)!==null&&Sg!==void 0?Sg:ve;function xt(e){let t=g.useRef(null);return GX(()=>{t.current=e},[e]),g.useCallback((...r)=>{let n=t.current;return n==null?void 0:n(...r)},[])}function H$(e,t){let r=g.useRef(!0),n=g.useRef(null);ve(()=>(r.current=!0,()=>{r.current=!1}),[]),ve(()=>{r.current?r.current=!1:(!n.current||t.some((a,l)=>!Object.is(a,n[l])))&&e(),n.current=t},t)}function VX(){return typeof window.ResizeObserver<"u"}function gf(e){let{ref:t,box:r,onResize:n}=e,a=xt(n);g.useEffect(()=>{let l=t==null?void 0:t.current;if(l)if(VX()){let i=new window.ResizeObserver(o=>{o.length&&a()});return i.observe(l,{box:r}),()=>{l&&i.unobserve(l)}}else return window.addEventListener("resize",a,!1),()=>{window.removeEventListener("resize",a,!1)}},[t,r])}function F1(e,t){ve(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function uo(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function w3(e,t){let r=e;for(uo(r,t)&&(r=r.parentElement);r&&!uo(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function YX(e,t){let r=[];for(;e&&e!==document.documentElement;)uo(e,t)&&r.push(e),e=e.parentElement;return r}function fi(e){return Pl()?e.metaKey:e.ctrlKey}var qX=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function xg(e){return e instanceof HTMLInputElement&&!qX.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var WX=0,$g=new Map;function XX(e){let[t,r]=g.useState();return ve(()=>{if(!e)return;let n=$g.get(e);if(n)r(n.element.id);else{let a=`react-aria-description-${WX++}`;r(a);let l=document.createElement("div");l.id=a,l.style.display="none",l.textContent=e,document.body.appendChild(l),n={refCount:0,element:l},$g.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),$g.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function hs(e,t,r,n){let a=xt(r),l=r==null;g.useEffect(()=>{if(l||!e.current)return;let i=e.current;return i.addEventListener(t,a,n),()=>{i.removeEventListener(t,a,n)}},[e,t,n,l])}function A3(e,t){let r=U$(e,t,"left"),n=U$(e,t,"top"),a=t.offsetWidth,l=t.offsetHeight,i=e.scrollLeft,o=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u,scrollPaddingTop:c,scrollPaddingRight:d,scrollPaddingBottom:f,scrollPaddingLeft:p}=getComputedStyle(e),b=i+parseInt(u,10),v=o+parseInt(s,10),S=b+e.clientWidth,h=v+e.clientHeight,y=parseInt(c,10)||0,E=parseInt(f,10)||0,x=parseInt(d,10)||0,T=parseInt(p,10)||0;r<=i+T?i=r-parseInt(u,10)-T:r+a>S-x&&(i+=r+a-S+x),n<=v+y?o=n-parseInt(s,10)-y:n+l>h-E&&(o+=n+l-h+E),e.scrollLeft=i,e.scrollTop=o}function U$(e,t,r){let n=r==="left"?"offsetLeft":"offsetTop",a=0;for(;t.offsetParent&&(a+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){a-=e[n];break}t=t.offsetParent}return a}function j$(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement,o=window.getComputedStyle(i).overflow==="hidden";if(o){let s=YX(e);o||s.push(i);for(let u of s)A3(u,e)}else{var r;let{left:s,top:u}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:c,top:d}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-d)>1){var n,a,l;t==null||(a=t.containingElement)===null||a===void 0||(n=a.scrollIntoView)===null||n===void 0||n.call(a,{block:"center",inline:"center"}),(l=e.scrollIntoView)===null||l===void 0||l.call(e,{block:"nearest"})}}}}function O3(e){return e.pointerType===""&&e.isTrusted?!0:M1()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function ZX(e){return!M1()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function K$(e){let t=g.version.split(".");return parseInt(t[0],10)>=19?e:e?"true":void 0}var QX="react-aria-clear-focus",JX="react-aria-focus";function D3(e,t=!0){let[r,n]=g.useState(!0),a=r&&t;return ve(()=>{if(a&&e.current&&"getAnimations"in e.current)for(let l of e.current.getAnimations())l instanceof CSSTransition&&l.cancel()},[e,a]),N3(e,a,g.useCallback(()=>n(!1),[])),a}function R3(e,t){let[r,n]=g.useState(t?"open":"closed");switch(r){case"open":t||n("exiting");break;case"closed":case"exiting":t&&n("open");break}let a=r==="exiting";return N3(e,a,g.useCallback(()=>{n(l=>l==="exiting"?"closed":l)},[])),a}function N3(e,t,r){ve(()=>{if(t&&e.current){if(!("getAnimations"in e.current)){r();return}let n=e.current.getAnimations();if(n.length===0){r();return}let a=!1;return Promise.all(n.map(l=>l.finished)).then(()=>{a||vo.flushSync(()=>{r()})}).catch(()=>{}),()=>{a=!0}}},[e,t,r])}var eZ=typeof Element<"u"&&"checkVisibility"in Element.prototype;function tZ(e){let t=Fr(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a=r!=="none"&&n!=="hidden"&&n!=="collapse";if(a){let{getComputedStyle:l}=e.ownerDocument.defaultView,{display:i,visibility:o}=l(e);a=i!=="none"&&o!=="hidden"&&o!=="collapse"}return a}function rZ(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function B1(e,t){return eZ?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&tZ(e)&&rZ(e,t)&&(!e.parentElement||B1(e.parentElement,e))}var P1=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],nZ=P1.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";P1.push('[tabindex]:not([tabindex="-1"]):not([disabled])');var aZ=P1.join(':not([hidden]):not([tabindex="-1"]),');function L3(e){return e.matches(nZ)&&B1(e)&&!M3(e)}function lZ(e){return e.matches(aZ)&&B1(e)&&!M3(e)}function M3(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}var _g,iZ=typeof document<"u"?(_g=m.useInsertionEffect)!==null&&_g!==void 0?_g:m.useLayoutEffect:()=>{};function Dp(e,t,r){let[n,a]=g.useState(e||t),l=g.useRef(n),i=g.useRef(e!==void 0),o=e!==void 0;g.useEffect(()=>{i.current,i.current=o},[o]);let s=o?e:n;iZ(()=>{l.current=s});let[,u]=g.useReducer(()=>({}),{}),c=g.useCallback((d,...f)=>{let p=typeof d=="function"?d(l.current):d;Object.is(l.current,p)||(l.current=p,a(p),u(),r==null||r(p,...f))},[r]);return[s,c]}function su(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function I1(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function F3(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function B3(e){let t=g.useRef({isFocused:!1,observer:null});ve(()=>{let n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=xt(n=>{e==null||e(n)});return g.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=n.target,l=i=>{if(t.current.isFocused=!1,a.disabled){let o=I1(i);r(o)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",l,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[r])}var mf=!1;function oZ(e){for(;e&&!L3(e);)e=e.parentElement;let t=Fr(e),r=t.document.activeElement;if(!r||r===e)return;mf=!0;let n=!1,a=c=>{(c.target===r||n)&&c.stopImmediatePropagation()},l=c=>{(c.target===r||n)&&(c.stopImmediatePropagation(),!e&&!n&&(n=!0,Qt(r),s()))},i=c=>{(c.target===e||n)&&c.stopImmediatePropagation()},o=c=>{(c.target===e||n)&&(c.stopImmediatePropagation(),n||(n=!0,Qt(r),s()))};t.addEventListener("blur",a,!0),t.addEventListener("focusout",l,!0),t.addEventListener("focusin",o,!0),t.addEventListener("focus",i,!0);let s=()=>{cancelAnimationFrame(u),t.removeEventListener("blur",a,!0),t.removeEventListener("focusout",l,!0),t.removeEventListener("focusin",o,!0),t.removeEventListener("focus",i,!0),mf=!1,n=!1},u=requestAnimationFrame(s);return s}var wi="default",G0="",yd=new WeakMap;function sZ(e){if(Tp()){if(wi==="default"){let t=Ee(e);G0=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}wi="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";yd.set(e,e.style[t]),e.style[t]="none"}}function G$(e){if(Tp()){if(wi!=="disabled")return;wi="restoring",setTimeout(()=>{T3(()=>{if(wi==="restoring"){let t=Ee(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=G0||""),G0="",wi="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&yd.has(e)){let t=yd.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),yd.delete(e)}}var uu=m.createContext({register:()=>{}});uu.displayName="PressResponderContext";function uZ(e,t){return t.get?t.get.call(e):t.value}function P3(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function cZ(e,t){var r=P3(e,t,"get");return uZ(e,r)}function dZ(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fZ(e,t,r){dZ(e,t),t.set(e,r)}function pZ(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function V$(e,t,r){var n=P3(e,t,"set");return pZ(e,n,r),r}function hZ(e){let t=g.useContext(uu);if(t){let{register:r,...n}=t;e=oe(n,e),r()}return F1(t,e.ref),e}var Rc=new WeakMap,Nc=class{continuePropagation(){V$(this,Rc,!1)}get shouldStopPropagation(){return cZ(this,Rc)}constructor(e,t,r,n){fZ(this,Rc,{writable:!0,value:void 0}),V$(this,Rc,!0);var a;let l=(a=n==null?void 0:n.target)!==null&&a!==void 0?a:r.currentTarget,i=l==null?void 0:l.getBoundingClientRect(),o,s=0,u,c=null;r.clientX!=null&&r.clientY!=null&&(u=r.clientX,c=r.clientY),i&&(u!=null&&c!=null?(o=u-i.left,s=c-i.top):(o=i.width/2,s=i.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=s}},Y$=Symbol("linkClicked"),q$="react-aria-pressable-style",W$="data-react-aria-pressable";function ku(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:a,onPressUp:l,onClick:i,isDisabled:o,isPressed:s,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:f,...p}=hZ(e),[b,v]=g.useState(!1),S=g.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:h,removeAllGlobalListeners:y}=Ap(),E=xt((w,I)=>{let k=S.current;if(o||k.didFirePressStart)return!1;let M=!0;if(k.isTriggeringEvent=!0,n){let B=new Nc("pressstart",I,w);n(B),M=B.shouldStopPropagation}return r&&r(!0),k.isTriggeringEvent=!1,k.didFirePressStart=!0,v(!0),M}),x=xt((w,I,k=!0)=>{let M=S.current;if(!M.didFirePressStart)return!1;M.didFirePressStart=!1,M.isTriggeringEvent=!0;let B=!0;if(a){let $=new Nc("pressend",I,w);a($),B=$.shouldStopPropagation}if(r&&r(!1),v(!1),t&&k&&!o){let $=new Nc("press",I,w);t($),B&&(B=$.shouldStopPropagation)}return M.isTriggeringEvent=!1,B}),T=xt((w,I)=>{let k=S.current;if(o)return!1;if(l){k.isTriggeringEvent=!0;let M=new Nc("pressup",I,w);return l(M),k.isTriggeringEvent=!1,M.shouldStopPropagation}return!0}),_=xt(w=>{let I=S.current;if(I.isPressed&&I.target){I.didFirePressStart&&I.pointerType!=null&&x(nl(I.target,w),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,y(),d||G$(I.target);for(let k of I.disposables)k();I.disposables=[]}}),C=xt(w=>{c&&_(w)}),O=xt(w=>{o||(i==null||i(w))}),D=xt((w,I)=>{if(!o&&i){let k=new MouseEvent("click",w);F3(k,I),i(I1(k))}}),L=g.useMemo(()=>{let w=S.current,I={onKeyDown(M){if(Cg(M.nativeEvent,M.currentTarget)&&Cr(M.currentTarget,Ze(M.nativeEvent))){var B;X$(Ze(M.nativeEvent),M.key)&&M.preventDefault();let $=!0;if(!w.isPressed&&!M.repeat){w.target=M.currentTarget,w.isPressed=!0,w.pointerType="keyboard",$=E(M,"keyboard");let A=M.currentTarget,R=P=>{Cg(P,A)&&!P.repeat&&Cr(A,Ze(P))&&w.target&&T(nl(w.target,P),"keyboard")};h(Ee(M.currentTarget),"keyup",Iu(R,k),!0)}$&&M.stopPropagation(),M.metaKey&&Pl()&&((B=w.metaKeyEvents)===null||B===void 0||B.set(M.key,M.nativeEvent))}else M.key==="Meta"&&(w.metaKeyEvents=new Map)},onClick(M){if(!(M&&!Cr(M.currentTarget,Ze(M.nativeEvent)))&&M&&M.button===0&&!w.isTriggeringEvent&&!Il.isOpening){let B=!0;if(o&&M.preventDefault(),!w.ignoreEmulatedMouseEvents&&!w.isPressed&&(w.pointerType==="virtual"||O3(M.nativeEvent))){let $=E(M,"virtual"),A=T(M,"virtual"),R=x(M,"virtual");O(M),B=$&&A&&R}else if(w.isPressed&&w.pointerType!=="keyboard"){let $=w.pointerType||M.nativeEvent.pointerType||"virtual",A=T(nl(M.currentTarget,M),$),R=x(nl(M.currentTarget,M),$,!0);B=A&&R,w.isOverTarget=!1,O(M),_(M)}w.ignoreEmulatedMouseEvents=!1,B&&M.stopPropagation()}}},k=M=>{var B;if(w.isPressed&&w.target&&Cg(M,w.target)){var $;X$(Ze(M),M.key)&&M.preventDefault();let R=Ze(M),P=Cr(w.target,Ze(M));x(nl(w.target,M),"keyboard",P),P&&D(M,w.target),y(),M.key!=="Enter"&&k1(w.target)&&Cr(w.target,R)&&!M[Y$]&&(M[Y$]=!0,Il(w.target,M,!1)),w.isPressed=!1,($=w.metaKeyEvents)===null||$===void 0||$.delete(M.key)}else if(M.key==="Meta"&&!((B=w.metaKeyEvents)===null||B===void 0)&&B.size){var A;let R=w.metaKeyEvents;w.metaKeyEvents=void 0;for(let P of R.values())(A=w.target)===null||A===void 0||A.dispatchEvent(new KeyboardEvent("keyup",P))}};if(typeof PointerEvent<"u"){I.onPointerDown=$=>{if($.button!==0||!Cr($.currentTarget,Ze($.nativeEvent)))return;if(ZX($.nativeEvent)){w.pointerType="virtual";return}w.pointerType=$.pointerType;let A=!0;if(!w.isPressed){w.isPressed=!0,w.isOverTarget=!0,w.activePointerId=$.pointerId,w.target=$.currentTarget,d||sZ(w.target),A=E($,w.pointerType);let R=Ze($.nativeEvent);"releasePointerCapture"in R&&R.releasePointerCapture($.pointerId),h(Ee($.currentTarget),"pointerup",M,!1),h(Ee($.currentTarget),"pointercancel",B,!1)}A&&$.stopPropagation()},I.onMouseDown=$=>{if(Cr($.currentTarget,Ze($.nativeEvent))&&$.button===0){if(u){let A=oZ($.target);A&&w.disposables.push(A)}$.stopPropagation()}},I.onPointerUp=$=>{!Cr($.currentTarget,Ze($.nativeEvent))||w.pointerType==="virtual"||$.button===0&&!w.isPressed&&T($,w.pointerType||$.pointerType)},I.onPointerEnter=$=>{$.pointerId===w.activePointerId&&w.target&&!w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!0,E(nl(w.target,$),w.pointerType))},I.onPointerLeave=$=>{$.pointerId===w.activePointerId&&w.target&&w.isOverTarget&&w.pointerType!=null&&(w.isOverTarget=!1,x(nl(w.target,$),w.pointerType,!1),C($))};let M=$=>{if($.pointerId===w.activePointerId&&w.isPressed&&$.button===0&&w.target){if(Cr(w.target,Ze($))&&w.pointerType!=null){let A=!1,R=setTimeout(()=>{w.isPressed&&w.target instanceof HTMLElement&&(A?_($):(Qt(w.target),w.target.click()))},80);h($.currentTarget,"click",()=>A=!0,!0),w.disposables.push(()=>clearTimeout(R))}else _($);w.isOverTarget=!1}},B=$=>{_($)};I.onDragStart=$=>{Cr($.currentTarget,Ze($.nativeEvent))&&_($)}}return I},[h,o,u,y,d,_,C,x,E,T,O,D]);return g.useEffect(()=>{if(!f)return;let w=Ee(f.current);if(!w||!w.head||w.getElementById(q$))return;let I=w.createElement("style");I.id=q$,I.textContent=`
711
711
  @layer {
712
712
  [${W$}] {
713
713
  touch-action: pan-x pan-y pinch-zoom;
@@ -728,7 +728,7 @@ ${t}`);let r=t.match(wee);if(!r)return m.createElement(g.Fragment,null,t);let[,n
728
728
  `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}})),jee=({children:e,...t})=>m.createElement(Uee,{...t},!L8()&&m.createElement("button",null,m.createElement("selectedcontent",null),m.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},m.createElement("path",{d:"m6 9 6 6 6-6"}))),m.createElement("optgroup",null,e)),Kee=g.useLayoutEffect,Gee=function(e){var t=m.useRef(e);return Kee(function(){t.current=e}),t},N_=function(e,t){if(typeof e=="function"){e(t);return}e.current=t},Vee=function(e,t){var r=m.useRef();return m.useCallback(function(n){e.current=n,r.current&&N_(r.current,null),r.current=t,t&&N_(t,n)},[t])},L_={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Yee=function(e){Object.keys(L_).forEach(function(t){e.style.setProperty(t,L_[t],"important")})},M_=Yee,Ht=null,F_=function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize};function qee(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),Ht||(Ht=document.createElement("textarea"),Ht.setAttribute("tabindex","-1"),Ht.setAttribute("aria-hidden","true"),M_(Ht)),Ht.parentNode===null&&document.body.appendChild(Ht);var a=e.paddingSize,l=e.borderSize,i=e.sizingStyle,o=i.boxSizing;Object.keys(i).forEach(function(f){var p=f;Ht.style[p]=i[p]}),M_(Ht),Ht.value=t;var s=F_(Ht,e);Ht.value=t,s=F_(Ht,e),Ht.value="x";var u=Ht.scrollHeight-a,c=u*r;o==="border-box"&&(c=c+a+l),s=Math.max(c,s);var d=u*n;return o==="border-box"&&(d=d+a+l),s=Math.min(d,s),[s,u]}var B_=function(){},Wee=function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},Xee=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],Zee=!!document.documentElement.currentStyle,Qee=function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=Wee(Xee,t),n=r.boxSizing;if(n==="")return null;Zee&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var a=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),l=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:a,borderSize:l}},Jee=Qee;function J1(e,t,r){var n=Gee(r);g.useLayoutEffect(function(){var a=function(l){return n.current(l)};if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}},[])}var ete=function(e,t){J1(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},tte=function(e){J1(window,"resize",e)},rte=function(e){J1(document.fonts,"loadingdone",e)},nte=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],ate=function(e,t){var r=e.cacheMeasurements,n=e.maxRows,a=e.minRows,l=e.onChange,i=l===void 0?B_:l,o=e.onHeightChange,s=o===void 0?B_:o,u=az(e,nte),c=u.value!==void 0,d=g.useRef(null),f=Vee(d,t),p=g.useRef(0),b=g.useRef(),v=function(){var h=d.current,y=r&&b.current?b.current:Jee(h);if(y){b.current=y;var E=qee(y,h.value||h.placeholder||"x",a,n),x=E[0],T=E[1];p.current!==x&&(p.current=x,h.style.setProperty("height",x+"px","important"),s(x,{rowHeight:T}))}},S=function(h){c||v(),i(h)};return g.useLayoutEffect(v),ete(d,function(){if(!c){var h=d.current.value;requestAnimationFrame(function(){var y=d.current;y&&h!==y.value&&v()})}}),tte(v),rte(v),g.createElement("textarea",At({},u,{onChange:S,ref:f}))},lte=g.forwardRef(ate),ite=Object.assign(F(g.forwardRef(function({size:e,valid:t,align:r,...n},a){return m.createElement(lte,{...n,ref:a})}))(Q1,Z1,wR,AR,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Ql=Object.assign(F.form({boxSizing:"border-box",width:"100%"}),{Field:Fee,Input:kee,Select:jee,Textarea:ite,Button:je,Checkbox:Nee,Radio:Hee}),ote=F.div(({hasCloseButton:e,padding:t})=>({display:"inline-block",position:"relative",minHeight:e?36:void 0,zIndex:2147483647,colorScheme:"light dark",padding:t}),({theme:e,hasChrome:t})=>t?{filter:`
729
729
  drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
730
730
  drop-shadow(0 1px 3px rgba(0,0,0,0.1))
731
- `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ub(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),ste=F(je)({position:"absolute",top:4,right:4}),ju=g.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:a,padding:l=8,...i},o)=>m.createElement(ote,{bgColor:t,hasChrome:r,hasCloseButton:!!a,padding:l,ref:o,...i},e,a&&m.createElement(ste,{ariaLabel:n,onClick:a,padding:"small",variant:"ghost",size:"small"},m.createElement(pz,null))));ju.displayName="Popover";var OR=({id:e,title:t,description:r,icon:n,aside:a,children:l,isSelected:i,isActive:o,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>m.createElement(vd.Item,{...f,id:e,role:"option",tabIndex:o?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},l??m.createElement(m.Fragment,null,n&&m.createElement(vd.Icon,null,n),m.createElement(vd.Text,null,m.createElement("p",null,t),r&&m.createElement("small",null,r)),a));OR.displayName="SelectOption";var Pc=5,DR=Symbol.for("undefined");function ute(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function uy(e){return{...e,type:"option",value:Ed(e.value)}}function zg(e){return"type"in e&&e.type==="reset"?e:uy(e)}function rs(e){if(e!==DR)return e}function Ed(e){return e===void 0?DR:e}var cte=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function P_(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var dte=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function I_(e,t){return t===void 0?[]:ute(t)?e.filter(r=>r.value===t).map(uy):e.filter(r=>t.some(n=>r.value===n)).map(uy)}var fte=F(je)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:aa(.93,r.barSelectedColor),color:r.base==="light"?Lt(.1,r.color.secondary):r.color.secondary}:{}),pte=F.div({position:"fixed",inset:0,zIndex:1e3}),hte=({children:e,handleClose:t,triggerRef:r})=>{let n=m.useRef(null);K3({ref:n,onInteractOutside:t}),g.useEffect(()=>{if(n.current)return Mp([n.current],{shouldUseInert:!0})},[]);let{overlayProps:a}=V1({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:l,underlayProps:i}=q1({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),o=cp();return a.style={...a.style,overflow:"hidden auto",scrollbarColor:`${o.barTextColor} transparent`,scrollbarWidth:"thin"},m.createElement(_f,{disableFocusManagement:!0,...l},m.createElement(pte,{...i}),m.createElement(ju,{hasChrome:!0,ref:n,padding:0,...a},e))},RR=g.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:a,multiSelect:l=!1,onReset:i,padding:o="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:b=!0,...v},S)=>{var G;let[h,y]=g.useState(v.defaultOpen||!1),[E,x]=g.useState(!1),T=an(S),_=g.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${_}-listbox`,O=g.useRef(null),D=Hu({isOpen:h&&!r,onOpenChange:y}),L=g.useCallback(()=>{y(!1),x(!0)},[]);g.useEffect(()=>{var H;!D.isOpen&&E&&((H=T.current)==null||H.focus(),x(!1))},[D.isOpen,E,T]);let[w,I]=g.useState(I_(n,a)),k=g.useCallback(H=>{H.type==="reset"?(d==null||d([]),i==null||i(),I([])):I(l?V=>{let q=[];return V!=null&&V.some(ee=>ee.value===H.value)?(c==null||c(rs(H.value)),q=(V==null?void 0:V.filter(ee=>ee.value!==H.value))??[]):(u==null||u(rs(H.value)),q=[...V??[],H]),d==null||d(q.map(ee=>rs(ee.value))),q}:V=>V.every(q=>q.value!==H.value)?(u==null||u(rs(H.value)),d==null||d([rs(H.value)]),[H]):V)},[l,d,u,c,i]),M=g.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:m.createElement(xz,null),description:void 0,children:void 0}:void 0,[i,s]),B=g.useMemo(()=>M?[M,...n]:n,[n,M]);g.useEffect(()=>{a&&I(I_(n,a))},[a,n]);let[$,A]=g.useState(void 0),R=g.useCallback((H,V=!0)=>{A(zg(H)),!l&&V&&k(zg(H))},[l,k]),P=g.useCallback((H=1)=>{if(!h||!$){R(B[H===1?0:Math.min(H,B.length-1)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":Ed(W.value)===$.value),q=V+H,ee;q>=B.length&&V===B.length-1?ee=B[0]:ee=B[Math.min(B.length-1,q)],R(ee)},[h,$,R,B]),N=g.useCallback((H=1)=>{if(!h||!$){R(B[Math.max(0,B.length-H)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":Ed(W.value)===$.value),q=V-H,ee;q<0&&V===0?ee=B[B.length-1]:ee=B[Math.max(0,q)],R(ee)},[h,$,R,B]),z=g.useCallback(H=>{let V=J=>{H.preventDefault(),R(B[J]),y(!0)},q=B.findIndex(J=>w.some(Y=>Y.value===Ed(J.value))),ee=q!==-1,W=M&&!ee?1:0,ke=B.length-1;H.key==="Enter"||H.key===" "?V(ee?Math.min(q,ke):W):H.key==="ArrowDown"?V(ee?Math.min(q+1,ke):W):H.key==="ArrowUp"?V(ee?Math.max(q-1,W):ke):H.key==="Home"?V(W):H.key==="End"?V(ke):H.key==="PageDown"?V(Math.min((ee?q:W)+Pc,ke)):H.key==="PageUp"&&V(Math.max(0,(ee?q:ke)-Pc))},[B,M,R,w]),U=g.useCallback(H=>{H.key!=="Tab"?H.preventDefault():L(),H.key==="Escape"?L():H.key==="ArrowDown"?P():H.key==="ArrowUp"?N():H.key==="Home"?R(B[0]):H.key==="End"?R(B[B.length-1]):H.key==="PageDown"?P(Pc):H.key==="PageUp"&&N(Pc)},[L,P,N,B,R]);g.useEffect(()=>{var H;if(h&&$){let V=document.getElementById(P_(_,$));V&&(V.scrollIntoView({block:"nearest"}),V.focus())}else h&&((H=O.current)==null||H.focus())},[h,$,_]);let K=g.useMemo(()=>w.length===1?`${p} ${w[0].title}`:w.length?`${p}, ${w.length} values selected`:p,[p,w]);return m.createElement(m.Fragment,null,m.createElement(fte,{...v,variant:"ghost",ariaLabel:K,tooltip:f??p,disableAllTooltips:h,id:_,ref:T,padding:o,$isOpen:h,$hasSelection:!!w.length,"aria-disabled":r,disabled:r,onClick:()=>{h?L():y(!0)},tabIndex:h?-1:0,onKeyDown:z,role:"button","aria-controls":h?C:void 0,"aria-expanded":h,"aria-haspopup":"listbox"},!l&&m.createElement(m.Fragment,null,t,b&&((G=w[0])==null?void 0:G.title)||e),l&&m.createElement(m.Fragment,null,t,e,!!w.length&&m.createElement(dte,{"aria-label":`${w.length} ${w.length>1?"items":"item"} selected`},w==null?void 0:w.length))),D.isOpen&&m.createElement(hte,{handleClose:L,triggerRef:T},m.createElement(cte,{"aria-label":p,role:"listbox",id:C,ref:O,"aria-multiselectable":l,onKeyDown:U,tabIndex:h?0:-1},B.map(H=>({option:zg(H),externalOption:H})).map(({externalOption:H,option:V})=>{let q=(w==null?void 0:w.some(W=>W.value===V.value))&&V!==M,ee=V===M;return m.createElement(OR,{key:V.value===void 0?"sb-reset":String(V.value),title:V.title,description:V.description,aside:V.aside,icon:!ee&&l?m.createElement(Ql.Checkbox,{checked:q,hidden:!0,role:"presentation"}):V.icon,id:P_(_,V),isActive:h&&($==null?void 0:$.value)===V.value,isSelected:q,onClick:()=>{k(V),l||L()},onFocus:()=>R(H,!1),shouldLookDisabled:ee&&w.length===0&&l,onKeyDown:W=>{W.key==="Enter"||W.key===" "?(W.preventDefault(),k(V),l||L()):W.key==="Tab"&&(l||k(V),L())}},V.children)}))))});RR.displayName="Select";const{deprecate:gte}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Jl=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},NR=class extends Jl{filter(e,t,r){let[n,a]=BR(e,t,this.firstChildKey,r),l=this.clone();return l.firstChildKey=n,l.lastChildKey=a,l}},LR=class extends Jl{};LR.type="header";var mte=class extends Jl{};mte.type="loader";var MR=class extends NR{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};MR.type="item";var FR=class extends NR{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let a=e.getItem(n.lastChildKey);if(a&&a.type!=="header")return n}return null}};FR.type="section";var yte=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=BR(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function BR(e,t,r,n){if(r==null)return[null,null];let a=null,l=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}var PR=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Hg=class cy extends PR{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof cy?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,a,l,i,o,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof cy&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var p;c.nextKey=(p=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&p!==void 0?p:null,c.hasChildNodes=!!this.firstChild;var b;c.firstChildKey=(b=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null;var v;if(c.lastChildKey=(v=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&v!==void 0?v:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,h;let y=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((h=c.colSpan)!==null&&h!==void 0?h:1);if(u.node!=null&&y!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=y}}}}setProps(t,r,n,a,l){let i,{value:o,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=a,i.render=l,i.value=o,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},bte=class extends PR{get isConnected(){return this.isMounted}createElement(e){return new Hg(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof Hg&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof Hg&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,a,l;this.nextCollection.commit((a=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&a!==void 0?a:null,(l=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function IR(e){let{children:t,items:r,idScope:n,addIdAndValue:a,dependencies:l=[]}=e,i=g.useMemo(()=>new WeakMap,l);return g.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var o,s;let f=(s=(o=d.props.id)!==null&&o!==void 0?o:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=g.cloneElement(d,a?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,a])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Cf=g.createContext(!1);function vte(e){if(g.useContext(Cf))return m.createElement(m.Fragment,null,e.children);let t=m.createElement(Cf.Provider,{value:!0},e.children);return m.createElement("template",{"data-react-aria-hidden":!0},t)}function ev(e){let t=(r,n)=>g.useContext(Cf)?null:e(r,n);return t.displayName=e.displayName||e.name,g.forwardRef(t)}function Ete(){return g.useContext(Cf)}var kR=g.createContext(!1),pu=g.createContext(null);function zR(e){if(g.useContext(pu))return e.content;let{collection:t,document:r}=_te(e.createCollection);return m.createElement(m.Fragment,null,m.createElement(vte,null,m.createElement(pu.Provider,{value:r},e.content)),m.createElement(Ste,{render:e.children,collection:t}))}function Ste({collection:e,render:t}){return t(e)}function xte(e,t,r){let n=Zl(),a=g.useRef(n);a.current=n;let l=g.useCallback(()=>a.current?r():t(),[t,r]);return zW.useSyncExternalStore(e,l)}var $te=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:xte;function _te(e){let[t]=g.useState(()=>new bte((e==null?void 0:e())||new yte)),r=g.useCallback(i=>t.subscribe(i),[t]),n=g.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),a=g.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),l=$te(r,n,a);return ve(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:l,document:t}}var dy=g.createContext(null);function Cte(e){var t;return t=class extends Jl{},t.type=e,t}function HR(e,t,r,n,a,l){typeof e=="string"&&(e=Cte(e));let i=g.useCallback(s=>{s==null||s.setProps(t,r,e,n,l)},[t,r,n,l,e]),o=g.useContext(dy);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?m.createElement(dy.Provider,{value:s},a):null}return m.createElement(e.type,{ref:i},a)}function Bp(e,t){let r=({node:a})=>t(a.props,a.props.ref,a),n=g.forwardRef((a,l)=>{let i=g.useContext(vf);if(!g.useContext(kR)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return HR(e,a,l,"children"in a?a.children:null,null,o=>m.createElement(vf.Provider,{value:i},m.createElement(r,{node:o})))});return n.displayName=t.name,n}function tv(e,t,r=UR){let n=({node:l})=>t(l.props,l.props.ref,l),a=g.forwardRef((l,i)=>{let o=r(l);var s;return(s=HR(e,l,i,null,o,u=>m.createElement(n,{node:u})))!==null&&s!==void 0?s:m.createElement(m.Fragment,null)});return a.displayName=t.name,a}function UR(e){return IR({...e,addIdAndValue:!0})}var k_=g.createContext(null);function jR(e){let t=g.useContext(k_),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),a=UR({...e,idScope:n,dependencies:r});return g.useContext(pu)&&(a=m.createElement(Tte,null,a)),t=g.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),m.createElement(k_.Provider,{value:t},a)}function Tte({children:e}){let t=g.useContext(pu),r=g.useMemo(()=>m.createElement(pu.Provider,{value:null},m.createElement(kR.Provider,{value:!0},e)),[e]);return Zl()?m.createElement(dy.Provider,{value:t},r):vo.createPortal(r,t)}var KR=g.createContext({});ev(function(e,t){[e,t]=Pt(e,t,KR);let{elementType:r="label",...n}=e;return m.createElement(r,{className:"react-aria-Label",...n,ref:t})});function wte(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:l="label"}=e;t=Ot(t);let i=Ot(),o={};r&&(n=n?`${i} ${n}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=Op({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:o,fieldProps:s}}function Ate(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Ve(e,{labelable:!0}),{labelProps:s,fieldProps:u}=wte({...e,labelElementType:"span"});t=su(t,r,n);let c=(t-r)/(n-r),d=ZQ(i);if(!l&&!a){let f=i.style==="percent"?c:t;a=d.format(f)}return{progressBarProps:oe(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}var GR=g.createContext(null);g.forwardRef(function(e,t){[e,t]=Pt(e,t,GR);let{value:r=0,minValue:n=0,maxValue:a=100,isIndeterminate:l=!1}=e;r=su(r,n,a);let[i,o]=G3(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=Ate({...e,label:o}),c=l?void 0:(r-n)/(a-n)*100,d=Sr({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:l}}),f=Ve(e,{global:!0});return m.createElement("div",{...oe(f,d,s),ref:t,slot:e.slot||void 0},m.createElement(KR.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});var sn=null;function z_(e,t="assertive",r=7e3){sn?sn.announce(e,t,r):(sn=new Ote,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?sn.announce(e,t,r):setTimeout(()=>{sn!=null&&sn.isAttached()&&(sn==null||sn.announce(e,t,r))},100))}var Ote=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,a;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(l):(a=this.politeLog)===null||a===void 0||a.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function Dte(e,t){let{elementType:r="button",isDisabled:n,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:b,type:v="button"}=e,S;r==="button"?S={type:v,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:S={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?v:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?b:void 0};let{pressProps:h,isPressed:y}=ku({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=zu(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let x=oe(E,h,Ve(e,{labelable:!0}));return{isPressed:y,buttonProps:oe(S,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var VR=g.createContext({});ev(function(e,t){[e,t]=Pt(e,t,VR),e=Rte(e);let r=e,{isPending:n}=r,{buttonProps:a,isPressed:l}=Dte(e,t),{focusProps:i,isFocused:o,isFocusVisible:s}=Lp(e),{hoverProps:u,isHovered:c}=Lo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||l)&&!n,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=Sr({...e,values:d,defaultClassName:"react-aria-Button"}),p=Ot(a.id),b=Ot(),v=a["aria-labelledby"];n&&(v?v=`${v} ${b}`:a["aria-label"]&&(v=`${p} ${b}`));let S=g.useRef(n);g.useEffect(()=>{let y={"aria-labelledby":v||p};(!S.current&&o&&n||S.current&&o&&!n)&&z_(y,"assertive"),S.current=n},[n,o,v,p]);let h=Ve(e,{global:!0});return delete h.onClick,m.createElement("button",{...oe(h,f,a,i,u),type:a.type==="submit"&&n?"button":a.type,id:p,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":n?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":o||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},m.createElement(GR.Provider,{value:{id:b}},f.children))});function Rte(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var rv=g.createContext(null),H_=g.createContext(null),Nte=g.forwardRef(function(e,t){[e,t]=Pt(e,t,rv);let r=g.useContext(Ip),n=Hu(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,l=R3(t,a.isOpen)||e.isExiting||!1,i=Ete(),{direction:o}=ua();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),m.createElement(m.Fragment,null,s)}return a&&!a.isOpen&&!l?null:m.createElement(Lte,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function Lte({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...a}){let l=g.useRef(null),i=g.useRef(null),o=g.useContext(H_),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:b}=wJ({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),v=a.popoverRef,S=D3(v,!!p)||a.isEntering||!1,h=Sr({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:S,isExiting:t}}),y=!a.isNonModal||a.trigger==="SubmenuTrigger",[E,x]=g.useState(!1);ve(()=>{v.current&&x(y&&!v.current.querySelector("[role=dialog]"))},[v,y]),g.useEffect(()=>{E&&a.trigger!=="SubmenuTrigger"&&v.current&&!v.current.contains(document.activeElement)&&Va(v.current)},[E,v,a.trigger]);let T=g.useMemo(()=>{let D=h.children;if(n)for(let L of n)D=m.createElement(L.Provider,{value:null},D);return D},[h.children,n]),_={...c.style,"--trigger-anchor-point":b?`${b.x}px ${b.y}px`:void 0,...h.style},C=m.createElement("div",{...oe(Ve(a,{global:!0}),c),...h,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:v,slot:a.slot||void 0,style:_,dir:a.dir,"data-trigger":a.trigger,"data-placement":p,"data-entering":S||void 0,"data-exiting":t||void 0},!a.isNonModal&&m.createElement(__,{onDismiss:e.close}),m.createElement(K1.Provider,{value:{...f,placement:p,ref:l}},T),m.createElement(__,{onDismiss:e.close}));if(!s)return m.createElement(_f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&m.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),m.createElement("div",{ref:i,style:{display:"contents"}},m.createElement(H_.Provider,{value:i},C)));var O;return m.createElement(_f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:(O=r??(o==null?void 0:o.current))!==null&&O!==void 0?O:void 0},C)}var YR=g.createContext(null);tv("section",(e,t,r)=>{let{name:n,render:a}=g.useContext(YR);return a(e,t,r,"react-aria-Section")});var qR={CollectionRoot({collection:e,renderDropIndicator:t}){return U_(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return U_(e,t,r)}};function U_(e,t,r){return IR({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let a=n.render(n);return!r||n.type!=="item"?a:m.createElement(m.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),a,Mte(e,n,r))}})}function Mte(e,t,r){let n=t.key,a=e.getKeyAfter(n),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;s&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});g.isValidElement(u)&&o.push(g.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}var Ku=g.createContext(qR);function WR(e){return g.useMemo(()=>e!=null?new Set([e]):null,[e])}var j_=g.createContext(null),Fte=g.createContext(null),XR=g.createContext({});Bp(LR,function(e,t){return[e,t]=Pt(e,t,XR),m.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var ZR=g.createContext({});g.forwardRef(function(e,t){return[e,t]=Pt(e,t,ZR),m.createElement("kbd",{dir:"ltr",...e,ref:t})});function Bte(e){let t=Ve(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var QR=g.createContext({}),JR=class extends Jl{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};JR.type="separator";Bp(JR,function(e,t){[e,t]=Pt(e,t,QR);let{elementType:r,orientation:n,style:a,className:l,slot:i,...o}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=Bte({...o,elementType:r,orientation:n}),c=Ve(e,{global:!0});return m.createElement(s,{...oe(c,u),style:a,className:l??"react-aria-Separator",ref:t,slot:i||void 0})});var e4=new WeakMap;function fy(e){return PX()?e.altKey:e.ctrlKey}function Sd(e,t){var r,n;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(a)}var t4=new WeakMap;function Pte(e){let t=Ot();return t4.set(e,t),t}function Ite(e){return t4.get(e)}var kte=1e3;function zte(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,a=g.useRef({search:"",timeout:void 0}).current,l=i=>{let o=Hte(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},kte)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function Hte(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function r4(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:b=n,linkBehavior:v="action"}=e,{direction:S}=ua(),h=wp(),y=A=>{var R;if(A.altKey&&A.key==="Tab"&&A.preventDefault(),!(!((R=n.current)===null||R===void 0)&&R.contains(A.target)))return;let P=(Y,X)=>{if(Y!=null){if(t.isLink(Y)&&v==="selection"&&u&&!fy(A)){vo.flushSync(()=>{t.setFocusedKey(Y,X)});let le=Sd(n,Y),ye=t.getItemProps(Y);le&&h.open(le,A,ye.href,ye.routerOptions);return}if(t.setFocusedKey(Y,X),t.isLink(Y)&&v==="override")return;A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!fy(A)&&t.replaceSelection(Y)}};switch(A.key){case"ArrowDown":if(r.getKeyBelow){var N,z,U;let Y=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r);Y==null&&l&&(Y=(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowUp":if(r.getKeyAbove){var K,G,H;let Y=t.focusedKey!=null?(K=r.getKeyAbove)===null||K===void 0?void 0:K.call(r,t.focusedKey):(G=r.getLastKey)===null||G===void 0?void 0:G.call(r);Y==null&&l&&(Y=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowLeft":if(r.getKeyLeftOf){var V,q,ee;let Y=t.focusedKey!=null?(V=r.getKeyLeftOf)===null||V===void 0?void 0:V.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey):(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var W,ke,J;let Y=t.focusedKey!=null?(W=r.getKeyRightOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(ke=r.getLastKey)===null||ke===void 0?void 0:ke.call(r,t.focusedKey):(J=r.getFirstKey)===null||J===void 0?void 0:J.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getFirstKey(t.focusedKey,fi(A));t.setFocusedKey(Y),Y!=null&&(fi(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getLastKey(t.focusedKey,fi(A));t.setFocusedKey(Y),Y!=null&&(fi(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let Y=r.getKeyPageBelow(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let Y=r.getKeyPageAbove(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"a":fi(A)&&t.selectionMode==="multiple"&&o!==!0&&(A.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(A.stopPropagation(),A.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(A.shiftKey)n.current.focus();else{let Y=er(n.current,{tabbable:!0}),X,le;do le=Y.lastChild(),le&&(X=le);while(le);X&&!X.contains(document.activeElement)&&Qt(X)}break}}},E=g.useRef({top:0,left:0});hs(b,"scroll",p?void 0:()=>{var A,R,P,N;E.current={top:(P=(A=b.current)===null||A===void 0?void 0:A.scrollTop)!==null&&P!==void 0?P:0,left:(N=(R=b.current)===null||R===void 0?void 0:R.scrollLeft)!==null&&N!==void 0?N:0}});let x=A=>{if(t.isFocused){A.currentTarget.contains(A.target)||t.setFocused(!1);return}if(A.currentTarget.contains(A.target)){if(t.setFocused(!0),t.focusedKey==null){var R,P;let U=G=>{G!=null&&(t.setFocusedKey(G),u&&!t.isSelected(G)&&t.replaceSelection(G))},K=A.relatedTarget;var N,z;K&&A.currentTarget.compareDocumentPosition(K)&Node.DOCUMENT_POSITION_FOLLOWING?U((N=t.lastSelectedKey)!==null&&N!==void 0?N:(R=r.getLastKey)===null||R===void 0?void 0:R.call(r)):U((z=t.firstSelectedKey)!==null&&z!==void 0?z:(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))}else!p&&b.current&&(b.current.scrollTop=E.current.top,b.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&b.current){let U=Sd(n,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!d&&Qt(U),fu()==="keyboard"&&j$(U,{containingElement:n.current}))}}},T=A=>{A.currentTarget.contains(A.relatedTarget)||t.setFocused(!1)},_=g.useRef(!1);hs(n,JX,d?A=>{let{detail:R}=A;A.stopPropagation(),t.setFocused(!0),(R==null?void 0:R.focusStrategy)==="first"&&(_.current=!0)}:void 0);let C=xt(()=>{var A,R;let P=(R=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&R!==void 0?R:null;if(P==null){let N=bt();yD(n.current),bD(N,null),t.collection.size>0&&(_.current=!1)}else t.setFocusedKey(P),_.current=!1});H$(()=>{_.current&&C()},[t.collection,C]);let O=xt(()=>{t.collection.size>0&&(_.current=!1)});H$(()=>{O()},[t.focusedKey,O]),hs(n,QX,d?A=>{var R;A.stopPropagation(),t.setFocused(!1),!((R=A.detail)===null||R===void 0)&&R.clearFocusKey&&t.setFocusedKey(null)}:void 0);let D=g.useRef(a),L=g.useRef(!1);g.useEffect(()=>{if(D.current){var A,R;let z=null;var P;a==="first"&&(z=(P=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&P!==void 0?P:null);var N;a==="last"&&(z=(N=(R=r.getLastKey)===null||R===void 0?void 0:R.call(r))!==null&&N!==void 0?N:null);let U=t.selectedKeys;if(U.size){for(let K of U)if(t.canSelectItem(K)){z=K;break}}t.setFocused(!0),t.setFocusedKey(z),z==null&&!d&&n.current&&Va(n.current),t.collection.size>0&&(D.current=!1,L.current=!0)}});let w=g.useRef(t.focusedKey),I=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||L.current)&&b.current&&n.current){let A=fu(),R=Sd(n,t.focusedKey);if(!(R instanceof HTMLElement))return;(A==="keyboard"||L.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{b.current&&(A3(b.current,R),A!=="virtual"&&j$(R,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&w.current!=null&&n.current&&Va(n.current),w.current=t.focusedKey,L.current=!1}),g.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),hs(n,"react-aria-focus-scope-restore",A=>{A.preventDefault(),t.setFocused(!0)});let k={onKeyDown:y,onFocus:x,onBlur:T,onMouseDown(A){b.current===A.target&&A.preventDefault()}},{typeSelectProps:M}=zte({keyboardDelegate:r,selectionManager:t});c||(k=oe(M,k));let B;d||(B=t.focusedKey==null?0:-1);let $=Pte(t.collection);return{collectionProps:oe(k,{tabIndex:B,"data-collection":$})}}function n4(e){let{id:t,selectionManager:r,key:n,ref:a,shouldSelectOnPressUp:l,shouldUseVirtualFocus:i,focus:o,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=wp();t=Ot(t);let p=N=>{if(N.pointerType==="keyboard"&&fy(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&a.current){let z=r.getItemProps(n);f.open(a.current,N,z.href,z.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(fi(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?yD(a.current):o?o():document.activeElement!==a.current&&a.current&&Va(a.current))},[a,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let b={};!i&&!s?b={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===a.current&&r.setFocusedKey(n)}}:s&&(b.onMouseDown=N=>{N.preventDefault()});let v=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",h=r.isLink(n)&&d!=="selection"&&d!=="none",y=!s&&r.canSelectItem(n)&&!v&&!S,E=(u||h)&&!s,x=E&&(r.selectionBehavior==="replace"?!y:!y||r.isEmpty),T=E&&y&&r.selectionBehavior==="replace",_=x||T,C=g.useRef(null),O=_&&y,D=g.useRef(!1),L=g.useRef(!1),w=r.getItemProps(n),I=N=>{if(u){var z;u(),(z=a.current)===null||z===void 0||z.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}h&&a.current&&f.open(a.current,N,w.href,w.routerOptions)},k={ref:a};if(l?(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,N.pointerType==="keyboard"&&(!_||G_())&&p(N)},c?(k.onPressUp=x?void 0:N=>{N.pointerType==="mouse"&&y&&p(N)},k.onPress=x?I:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&y&&p(N)}):k.onPress=N=>{if(x||T&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!K_())return;I(N)}else N.pointerType!=="keyboard"&&y&&p(N)}):(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,L.current=x,y&&(N.pointerType==="mouse"&&!x||N.pointerType==="keyboard"&&(!E||G_()))&&p(N)},k.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&_&&K_()||N.pointerType==="mouse"&&L.current)&&(_?I(N):y&&p(N))}),b["data-collection"]=Ite(r.collection),b["data-key"]=n,k.preventFocusOnPress=i,i&&(k=oe(k,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),w)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])w[N]&&(k[N]=Iu(k[N],w[N]));let{pressProps:M,isPressed:B}=ku(k),$=T?N=>{C.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),I(N))}:void 0,{longPressProps:A}=LZ({isDisabled:!O,onLongPress(N){N.pointerType==="touch"&&(p(N),r.setSelectionBehavior("toggle"))}}),R=N=>{C.current==="touch"&&D.current&&N.preventDefault()},P=d!=="none"&&r.isLink(n)?N=>{Il.isOpening||N.preventDefault()}:void 0;return{itemProps:oe(b,y||x||i&&!s?M:{},O?A:{},{onDoubleClick:$,onDragStartCapture:R,onClick:P,id:t},i?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:B,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:_}}function K_(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function G_(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var V_=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?Sd(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-n.left-t.clientLeft+t.scrollLeft,y:a.top-n.top-t.clientTop+t.scrollTop,width:a.width,height:a.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,a;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(a=e==null?void 0:e.clientHeight)!==null&&a!==void 0?a:0}}constructor(e){this.ref=e}},Ute=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,a=this.layoutDelegate.getItemRect(n);if(!a||n==null)return null;let l=a;do{if(n=t(n),n==null)break;a=this.layoutDelegate.getItemRect(n)}while(a&&r(l,a)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!uo(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!uo(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let a=r.getItem(n);if(!a)return null;let l=a.textValue.slice(0,e.length);if(a.textValue&&this.collator.compare(l,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new V_(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new V_(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function jte(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=QQ({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=g.useMemo(()=>l||new Ute({collection:r,disabledKeys:n,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,r,n,a,o,s]),{collectionProps:c}=r4({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function Kte(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Ve(e,{labelable:!0}),{listProps:s}=jte({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return e4.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:oe(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function a4(e){return null}a4.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:a}=e,l=e.title||e.children,i=e.textValue||(typeof l=="string"?l:"")||e["aria-label"]||"";!i&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:l,textValue:i,"aria-label":e["aria-label"],hasChildNodes:Gte(e),*childNodes(){if(r)for(let o of r)yield{type:"item",value:o};else if(n){let o=[];m.Children.forEach(a,s=>{o.push({type:"item",element:s})}),yield*o}}}};function Gte(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&m.Children.count(e.children)>0)}var Vte=a4,Yte=class{build(e,t){return this.context=t,Y_(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(m.isValidElement(t)&&t.type===m.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let a of r)yield*this.getFullNode({value:a,index:n},{renderer:t}),n++}else{let n=[];m.Children.forEach(t,l=>{l&&n.push(l)});let a=0;for(let l of n){let i=this.getFullNode({element:l,index:a},{});for(let o of i)a++,yield o}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let a=t.value;if(a!=null){var l;let i=(l=a.key)!==null&&l!==void 0?l:a.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(m.isValidElement(e.element)&&e.element.type===m.Fragment){let v=[];m.Children.forEach(e.element.props.children,h=>{v.push(h)});var a;let S=(a=e.index)!==null&&a!==void 0?a:0;for(let h of v)yield*this.getFullNode({element:h,index:S++},t,r,n);return}let l=e.element;if(!l&&e.value&&t&&t.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=n?n.key:null,yield v;return}l=t.renderer(e.value)}if(m.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let E=l.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=v.getCollectionNode(l.props,this.context);var i;let h=(i=e.index)!==null&&i!==void 0?i:0,y=S.next();for(;!y.done&&y.value;){let E=y.value;e.index=h;var o;let x=(o=E.key)!==null&&o!==void 0?o:null;x==null&&(x=E.element?null:this.getKey(l,e,t,r));let T=[...this.getFullNode({...E,key:x,index:h,wrapper:qte(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${l.key}`:l.key,n)];for(let _ of T){var s,u;_.value=(u=(s=E.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,_.value&&this.cache.set(_.value,_);var c;if(e.type&&_.type!==e.type)throw new Error(`Unsupported type <${Ug(_.type)}> in <${Ug((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Ug(e.type)}> is supported.`);h++,yield _}y=S.next(T)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let b={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Y_(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${b.key}${S.key}`);let h=d.getFullNode({...S,index:v},d.getChildState(t,S),b.key,b);for(let y of h)v++,yield y}})};yield b}constructor(){this.cache=new WeakMap}};function Y_(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function qte(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ug(e){return e[0].toUpperCase()+e.slice(1)}function l4(e,t,r){let n=g.useMemo(()=>new Yte,[]),{children:a,items:l,collection:i}=e;return g.useMemo(()=>{if(i)return i;let o=n.build({children:a,items:l},r);return t(o)},[n,a,l,i,r,t])}function i4(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Wte(e){return Xte(e)}function Xte(e,t){for(let r of e)return r}function jg(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...q_(e,t),t],a=[...q_(e,r),r],l=n.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=n[l],r=a[l],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function q_(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var W_=new WeakMap;function Zte(e){let t=W_.get(e);if(t!=null)return t;let r=0,n=a=>{for(let l of a)l.type==="section"?n(i4(l,e)):l.type==="item"&&r++};return n(e),W_.set(e,r),r}function Qte(e,t,r){let{id:n,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:b,onHoverChange:v,onHoverEnd:S,onKeyDown:h,onKeyUp:y,onFocus:E,onFocusChange:x,onBlur:T,selectionManager:_=t.selectionManager}=e,C=!!o,O=C&&e["aria-expanded"]==="true";var D;let L=(D=e.isDisabled)!==null&&D!==void 0?D:_.isDisabled(a);var w;let I=(w=e.isSelected)!==null&&w!==void 0?w:_.isSelected(a),k=e4.get(t),M=t.collection.getItem(a),B=e.onClose||k.onClose,$=wp(),A=()=>{var Q;if(!C&&(!(M==null||(Q=M.props)===null||Q===void 0)&&Q.onAction?M.props.onAction():e.onAction&&e.onAction(a),k.onAction)){let zt=k.onAction;zt(a)}},R="menuitem";C||(_.selectionMode==="single"?R="menuitemradio":_.selectionMode==="multiple"&&(R="menuitemcheckbox"));let P=md(),N=md(),z=md(),U={id:n,"aria-disabled":L||void 0,role:R,"aria-label":e["aria-label"],"aria-labelledby":P,"aria-describedby":[N,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};_.selectionMode!=="none"&&!C&&(U["aria-checked"]=I),i&&(U["aria-posinset"]=M==null?void 0:M.index,U["aria-setsize"]=Zte(t.collection));let K=g.useRef(!1),G=Q=>{d==null||d(Q),K.current=Q},H=g.useRef(null),V=Q=>{Q.pointerType!=="keyboard"&&(H.current={pointerType:Q.pointerType}),Q.pointerType==="mouse"&&(K.current||Q.target.click()),u==null||u(Q)},q=Q=>{var zt,jr;p==null||p(Q),A(),jX(Q,$,M.props.href,M==null?void 0:M.props.routerOptions);let ir=((zt=H.current)===null||zt===void 0?void 0:zt.pointerType)==="keyboard"?((jr=H.current)===null||jr===void 0?void 0:jr.key)==="Enter"||_.selectionMode==="none"||_.isLink(a):_.selectionMode!=="multiple"||_.isLink(a);ir=l??ir,B&&!C&&ir&&B(),H.current=null},{itemProps:ee,isFocused:W}=n4({id:n,selectionManager:_,key:a,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:ke,isPressed:J}=ku({onPressStart:s,onPress:c,onPressUp:V,onPressChange:G,onPressEnd:f,isDisabled:L}),{hoverProps:Y}=Lo({isDisabled:L,onHoverStart(Q){!du()&&!(O&&o)&&(_.setFocused(!0),_.setFocusedKey(a)),b==null||b(Q)},onHoverChange:v,onHoverEnd:S}),{keyboardProps:X}=j3({onKeyDown:Q=>{if(Q.repeat){Q.continuePropagation();return}switch(Q.key){case" ":H.current={pointerType:"keyboard",key:" "},Q.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},Q.target.tagName!=="A"&&Q.target.click();break;default:C||Q.continuePropagation(),h==null||h(Q);break}},onKeyUp:y}),{focusProps:le}=H1({onBlur:T,onFocus:E,onFocusChange:x}),ye=Ve(M==null?void 0:M.props);delete ye.id;let kt=C3(M==null?void 0:M.props);return{menuItemProps:{...U,...oe(ye,kt,C?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,ke,Y,X,le,k.shouldUseVirtualFocus||C?{onMouseDown:Q=>Q.preventDefault()}:void 0,L?void 0:{onClick:q}),tabIndex:ee.tabIndex!=null&&O&&!k.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:P},descriptionProps:{id:N},keyboardShortcutProps:{id:z},isFocused:W,isFocusVisible:W&&_.isFocused&&du()&&!O,isSelected:I,isPressed:J,isDisabled:L}}function Jte(e){let{heading:t,"aria-label":r}=e,n=Ot();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Ic=2,ere=50,tre=1e3,X_=Math.PI/12;function rre(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:a}=e,l=g.useRef(void 0),i=g.useRef(void 0),o=g.useRef(0),s=g.useRef(void 0),u=g.useRef(void 0),c=g.useRef(void 0),d=g.useRef(2),[f,p]=g.useState(!1);gf({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let b=()=>{p(!1),d.current=Ic,l.current=void 0},v=EZ(),S=xt(h=>{f&&h.preventDefault()});g.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),g.useEffect(()=>{let h=r.current,y=t.current;if(a||!h||!n||v!=="pointer"||!y){b();return}i.current=h.getBoundingClientRect();let E=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let T=Date.now();if(T-o.current<ere)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:_,clientY:C}=x;if(!l.current){l.current={x:_,y:C};return}if(!i.current)return;if(c.current||(c.current=_>i.current.right?"left":"right"),_<y.getBoundingClientRect().left||_>y.getBoundingClientRect().right||C<y.getBoundingClientRect().top||C>y.getBoundingClientRect().bottom){b();return}let O=l.current.x,D=l.current.y,L=c.current==="right"?i.current.left-O:O-i.current.right,w=Math.atan2(D-i.current.top,L)+X_,I=Math.atan2(D-i.current.bottom,L)-X_,k=Math.atan2(D-C,c.current==="left"?-(_-O):_-O),M=k<w&&k>I;d.current=M?Math.min(d.current+1,Ic):Math.max(d.current-1,0),d.current>=Ic?p(!0):p(!1),o.current=T,l.current={x:_,y:C},M&&(s.current=setTimeout(()=>{b(),u.current=setTimeout(()=>{let B=document.elementFromPoint(_,C);B&&y.contains(B)&&B.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},tre))};return window.addEventListener("pointermove",E),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Ic}},[a,n,t,v,p,S,r])}function nre(e,t,r){let{parentMenuRef:n,submenuRef:a,type:l="menu",isDisabled:i,delay:o=200,shouldUseVirtualFocus:s}=e,u=Ot(),c=Ot(),{direction:d}=ua(),f=g.useRef(void 0),p=g.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),b=xt(O=>{p(),t.open(O)}),v=xt(()=>{p(),t.close()});ve(()=>()=>{p()},[p]);let S=O=>{if(O.currentTarget.contains(document.activeElement))switch(O.key){case"ArrowLeft":d==="ltr"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"ArrowRight":d==="rtl"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"Escape":var D;!((D=a.current)===null||D===void 0)&&D.contains(O.target)&&(O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break}};var h;let y={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...l==="menu"&&{onClose:t.closeAll,autoFocus:(h=t.focusStrategy)!==null&&h!==void 0?h:void 0,onKeyDown:S}},E=O=>{switch(O.key){case"ArrowRight":i||(d==="ltr"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;default:O.continuePropagation();break}},x=O=>{!i&&(O.pointerType==="virtual"||O.pointerType==="keyboard")&&b("first")},T=O=>{!i&&(O.pointerType==="touch"||O.pointerType==="mouse")&&b()},_=O=>{i||(O&&!t.isOpen?f.current||(f.current=setTimeout(()=>{b()},o)):O||p())};hs(n,"focusin",O=>{var D;t.isOpen&&!((D=n.current)===null||D===void 0)&&D.contains(O.target)&&O.target!==r.current&&v()});let C=O=>O!==r.current;return rre({menuRef:n,submenuRef:a,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:l,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:T,onHoverChange:_,onKeyDown:E,isOpen:t.isOpen},submenuProps:y,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function o4(e){let t=Hu(e),[r,n]=g.useState(null),[a,l]=g.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:r,...t,open(o=null){n(o),t.open()},toggle(o=null){n(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}function are(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:a,closeSubmenu:l,close:i}=t,[o]=g.useState(n==null?void 0:n.length),s=g.useMemo(()=>n[o]===r,[n,r,o]),[u,c]=g.useState(null),d=g.useCallback(b=>{c(b??null),a(r,o)},[a,o,r]),f=g.useCallback(()=>{c(null),l(r,o)},[l,o,r]),p=g.useCallback(b=>{c(b??null),s?f():d(b)},[f,d,s]);return g.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:o,setOpen:()=>{},toggle:p}),[s,d,f,i,u,p,o])}var lre=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let o of i.childNodes)r(o)};for(let i of e)r(i);let n=null,a=0;for(let[i,o]of this.keyMap)n?(n.nextKey=i,o.prevKey=n.key):(this.firstKey=i,o.prevKey=void 0),o.type==="item"&&(o.index=a++),n=o,n.nextKey=void 0;var l;this.lastKey=(l=n==null?void 0:n.key)!==null&&l!==void 0?l:null}},zn=class s4 extends Set{constructor(t,r,n){super(t),t instanceof s4?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function ire(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function nv(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=g.useRef(!1),[,o]=g.useState(!1),s=g.useRef(null),u=g.useRef(null),[,c]=g.useState(null),d=g.useMemo(()=>Z_(e.selectedKeys),[e.selectedKeys]),f=g.useMemo(()=>Z_(e.defaultSelectedKeys,new zn),[e.defaultSelectedKeys]),[p,b]=Dp(d,f,e.onSelectionChange),v=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,h]=g.useState(a);a==="replace"&&S==="toggle"&&typeof p=="object"&&p.size===0&&h("replace");let y=g.useRef(a);return g.useEffect(()=>{a!==y.current&&(h(a),y.current=a)},[a]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:h,get isFocused(){return i.current},setFocused(E){i.current=E,o(E)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(E,x="first"){s.current=E,u.current=x,c(E)},selectedKeys:p,setSelectedKeys(E){(n||!ire(E,p))&&b(E)},disabledKeys:v,disabledBehavior:l}}function Z_(e,t){return e?e==="all"?"all":new zn(e):t}var av=class u4{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)<0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)>0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new zn([r],r,r);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:r;n=new zn(i,o,r);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:r))n.delete(s);for(let s of this.getKeyRange(r,o))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),a=this.collection.getItem(r);return n&&a?jg(this.collection,n,a)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===r)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new zn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new zn([r],r,r):new zn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new zn;for(let n of t){let a=this.getKey(n);if(a!=null&&(r.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var a;let i=this.collection.getItem(n);(i==null?void 0:i.type)==="item"&&t.push(n);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((l=(a=Wte(i4(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new zn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new u4(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var a;this.allowsCellSelection=(a=n==null?void 0:n.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function ore(e){let{onExpandedChange:t}=e,[r,n]=Dp(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=nv(e),l=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=l4(e,g.useCallback(o=>new lre(o,{expandedKeys:r}),[r]),null);return g.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:l,toggleKey:o=>{n(sre(r,o))},setExpandedKeys:n,selectionManager:new av(i,a)}}function sre(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var c4=g.createContext(null),Pp=g.createContext(null),Tf=g.createContext(null),wf=g.createContext(null),d4=g.createContext(null),f4=class extends Jl{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let a=this.clone();return t.addDescendants(a,e),a}return null}};f4.type="submenutrigger";tv(f4,(e,t,r)=>{let{CollectionBranch:n}=g.useContext(Ku),a=g.useContext(Pp),l=g.useContext(Tf),i=are({triggerKey:r.key},l),o=g.useRef(null),s=an(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=g.useContext(d4),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=nre({parentMenuRef:u,submenuRef:o,delay:e.delay,shouldUseVirtualFocus:c},i,s);return m.createElement(sa,{values:[[Af,{...d,onAction:void 0,ref:s}],[c4,{ref:o,...f}],[Ip,i],[rv,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...p}]]},m.createElement(n,{collection:a.collection,parent:r}),e.children[1])},e=>e.children[0]);g.forwardRef(function(e,t){return[e,t]=Pt(e,t,c4),m.createElement(zR,{content:m.createElement(jR,e)},r=>m.createElement(ure,{props:e,collection:r,menuRef:t}))});function ure({props:e,collection:t,menuRef:r}){[e,r]=Pt(e,r,j_);let{filter:n,...a}=e,l=g.useMemo(()=>n?t.filter(n):t,[t,n]),i=ore({...e,collection:l,children:void 0}),o=g.useContext(Tf),{isVirtualized:s,CollectionRoot:u}=g.useContext(Ku),{menuProps:c}=Kte({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,r),d=Sr({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=m.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=Ve(e,{global:!0});return m.createElement(Y1,null,m.createElement("div",{...oe(p,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},m.createElement(sa,{values:[[Pp,i],[QR,{elementType:"div"}],[YR,{name:"MenuSection",render:p4}],[d4,{parentMenuRef:r,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[Af,null],[j_,null],[Fte,null],[wf,i.selectionManager],[Tf,o??o4({})]]},m.createElement(u,{collection:i.collection,persistedKeys:WR(i.selectionManager.focusedKey),scrollRef:r})),f))}var cre=class extends av{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function p4(e,t,r,n="react-aria-MenuSection"){var a,l;let i=g.useContext(Pp),{CollectionBranch:o}=g.useContext(Ku),[s,u]=G3();var c;let{headingProps:d,groupProps:f}=Jte({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=Sr({defaultClassName:n,className:(a=r.props)===null||a===void 0?void 0:a.className,style:(l=r.props)===null||l===void 0?void 0:l.style,values:{}}),b=g.useContext(wf),v=nv(e),S=e.selectionMode!=null?new cre(b,v):b,h=Ve(e,{global:!0});return delete h.id,m.createElement("section",{...oe(h,p,f),ref:t},m.createElement(sa,{values:[[XR,{...d,ref:s}],[wf,S]]},m.createElement(o,{collection:i.collection,parent:r})))}tv(FR,p4);var Af=g.createContext(null);Bp(MR,function(e,t,r){var n;[e,t]=Pt(e,t,Af);let a=(n=j1(Af))===null||n===void 0?void 0:n.id,l=g.useContext(Pp),i=an(t),o=g.useContext(wf),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=Qte({...e,id:a,key:r.key,selectionManager:o},l,i),{hoverProps:p,isHovered:b}=Lo({isDisabled:f.isDisabled}),v=Sr({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:b,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",h=Ve(e,{global:!0});return delete h.id,delete h.onClick,m.createElement(S,{...oe(h,v,s,p),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},m.createElement(sa,{values:[[mR,{slots:{[Ef]:u,label:u,description:c}}],[ZR,d]]},v.children))});function dre(e,t){let{role:r="dialog"}=e,n=md();n=e["aria-label"]?void 0:n;let a=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Va(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Va(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),nR(),{dialogProps:{...Ve(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:n}}}var h4=g.createContext(null),Ip=g.createContext(null);function fre(e){let t=o4(e),r=g.useRef(null),{triggerProps:n,overlayProps:a}=pJ({},t,r),[l,i]=g.useState(null),o=g.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return gf({ref:r,onResize:o}),n.id=Ot(),a["aria-labelledby"]=n.id,m.createElement(sa,{values:[[Ip,t],[Tf,t],[h4,a],[rv,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},m.createElement(AZ,{...n,ref:r,isPressed:t.isOpen},e.children))}g.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Pt(e,t,h4);let{dialogProps:n,titleProps:a}=dre({...e,"aria-labelledby":r},t),l=g.useContext(Ip);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=Sr({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Ve(e,{global:!0});return m.createElement("section",{...oe(o,i,n),ref:t,slot:e.slot||void 0},m.createElement(sa,{values:[[gR,{slots:{[Ef]:{},title:{...a,level:2}}}],[VR,{slots:{[Ef]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))});var lv=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:a,offset:l=8,padding:i,popover:o,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||gte("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let p=X1(t),[b,v]=g.useState(u??!1),S=g.useCallback(y=>{v(y),d==null||d(y)},[d]),h=g.useCallback(()=>S(!1),[S]);return m.createElement(fre,{defaultOpen:u,isOpen:c??b,onOpenChange:S,...f},m.createElement(wZ,null,g.cloneElement(s,{"aria-haspopup":"dialog"})),m.createElement(Nte,{"aria-label":e,placement:p,offset:l,style:{outline:"none"}},m.createElement(ju,{hasChrome:r,hideLabel:a,onHide:n?h:void 0,padding:i},typeof o=="function"?o({onHide:h}):o)))},g4=g.forwardRef((e,t)=>m.createElement(ju,{ref:t,...e}));g4.displayName="Tooltip";g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-DkkeYwH0.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltip})));g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-DkkeYwH0.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:Spe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:pre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var hre=Gt(zl(),1);const{deprecate:gre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mre=F(({active:e,loading:t,disabled:r,...n})=>m.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),yre=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),bre=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),vre=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),Ere=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Sre=F.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),xre=(0,hre.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),m4=g.forwardRef((e,t)=>{let{loading:r=!1,title:n=m.createElement("span",null,"Loading state"),center:a=null,right:l=null,active:i=!1,disabled:o=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:p=void 0,...b}=e,v={active:i,disabled:o},S=xre(e),h=d||f;return gre("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),m.createElement(Sre,{"data-deprecated":"ListItem",ref:t,...b,...v,...S},m.createElement(m.Fragment,null,h&&m.createElement(Ere,{...v},h),n||a?m.createElement(bre,{isIndented:s&&!h},n&&m.createElement(mre,{...v,loading:r},n),a&&m.createElement(vre,{...v},a)):null,l&&m.createElement(yre,{...v},l)))});m4.displayName="ListItem";var y4=m4,$re=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),_re=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),Cre=({id:e,onClick:t,...r})=>{let{active:n,disabled:a,title:l,href:i}=r,o=g.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:a,title:l,href:i}),[t,e,n,a,l,i]);return m.createElement(y4,{id:`list-item-${e}`,...r,...t&&{onClick:o}})},b4=({links:e,LinkWrapper:t,...r})=>{pre("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],a=n.some(l=>l.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return m.createElement($re,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(l=>l.length).map((l,i)=>m.createElement(_re,{key:l.map(o=>o.id).join(`~${i}~`)},l.map(o=>"content"in o?m.createElement(g.Fragment,{key:o.id},o.content):m.createElement(Cre,{key:o.id,isIndented:a,LinkWrapper:t,...o})))))};const{deprecate:kp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:Tre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var wre=F.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:a})=>({color:a.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${a.barTextColor} ${t?e||a.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${a.appBorderColor} 0 -1px 0 0 inset`,background:e||a.barBg}:{},...r})),Are=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Mo=g.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},a)=>m.createElement(wre,{...n,ref:a,innerStyle:e?void 0:r,scrollable:e},e?m.createElement(Are,{innerStyle:r},t):t));Mo.displayName="Bar";var py=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});py.displayName="Side";var Ore=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Dre=F(Mo)({paddingInline:0}),iv=({children:e,backgroundColor:t,className:r="",...n})=>{Tre('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[a,l]=g.Children.toArray(e);return m.createElement(Dre,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},m.createElement(Ore,{bgColor:t},m.createElement(py,{scrollable:n.scrollable,left:!0},a),l?m.createElement(py,{right:!0},l):null))};iv.displayName="FlexBar";const{deprecate:Rre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Nre=e=>typeof e.props.href=="string",Lre=e=>typeof e.props.href!="string";function Mre({children:e,...t},r){let n={props:t,ref:r};if(Nre(n))return m.createElement("a",{ref:n.ref,...n.props},e);if(Lre(n))return m.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var v4=g.forwardRef(Mre);v4.displayName="ButtonOrLink";var Fre=F(v4,{shouldForwardProp:fp})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Gu=g.forwardRef((e,t)=>(Rre("The `TabButton` component is deprecated. Use `TabList` instead."),m.createElement(Fre,{"data-deprecated":"TabButton",ref:t,...e})));Gu.displayName="TabButton";var Bre=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Pre=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Ire=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),kre=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),zre=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Vu=({title:e,description:t,footer:r})=>m.createElement(Bre,null,m.createElement(Pre,null,m.createElement(Ire,null,e),t&&m.createElement(zre,null,t)),r&&m.createElement(kre,null,r));const{deprecate:Hre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var E4=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Ure=e=>(Hre("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),g.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>m.createElement(E4,{active:i,role:"tabpanel"},l)}}));const{deprecate:jre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Kre=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Gre=F(Gu)(({active:e,theme:t,preActive:r})=>`
731
+ `,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{},({theme:e,bgColor:t})=>t==="default"&&{background:e.base==="light"?Ub(e.background.app):e.background.app,color:e.color.defaultText},({theme:e,bgColor:t})=>t==="inverse"&&{background:e.base==="light"?e.color.darkest:e.color.lightest,color:e.color.inverseText},({theme:e,bgColor:t})=>(t==="positive"||t==="negative"||t==="warning")&&{background:e.background[t],color:e.color[`${t}Text`]}),ste=F(je)({position:"absolute",top:4,right:4}),ju=g.forwardRef(({children:e,color:t="default",hasChrome:r=!0,hideLabel:n="Close",onHide:a,padding:l=8,...i},o)=>m.createElement(ote,{bgColor:t,hasChrome:r,hasCloseButton:!!a,padding:l,ref:o,...i},e,a&&m.createElement(ste,{ariaLabel:n,onClick:a,padding:"small",variant:"ghost",size:"small"},m.createElement(pz,null))));ju.displayName="Popover";var OR=({id:e,title:t,description:r,icon:n,aside:a,children:l,isSelected:i,isActive:o,onClick:s,onFocus:u,onKeyDown:c,shouldLookDisabled:d=!1,...f})=>m.createElement(vd.Item,{...f,id:e,role:"option",tabIndex:o?0:-1,"aria-selected":i,"aria-disabled":d?!0:void 0,onClick:s,onFocus:u,onKeyDown:c},l??m.createElement(m.Fragment,null,n&&m.createElement(vd.Icon,null,n),m.createElement(vd.Text,null,m.createElement("p",null,t),r&&m.createElement("small",null,r)),a));OR.displayName="SelectOption";var Pc=5,DR=Symbol.for("undefined");function ute(e){return e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"}function uy(e){return{...e,type:"option",value:Ed(e.value)}}function zg(e){return"type"in e&&e.type==="reset"?e:uy(e)}function rs(e){if(e!==DR)return e}function Ed(e){return e===void 0?DR:e}var cte=F("ul")({minWidth:180,height:"100%",borderRadius:6,overflow:"hidden auto",listStyle:"none",margin:0,padding:4});function P_(e,{value:t}){return`${e}-opt-${String(t)??"sb-reset"}`}var dte=F.span(({theme:e})=>({appearance:"none",color:e.textMutedColor,fontSize:12}));function I_(e,t){return t===void 0?[]:ute(t)?e.filter(r=>r.value===t).map(uy):e.filter(r=>t.some(n=>r.value===n)).map(uy)}var fte=F(je)(({$isOpen:e,$hasSelection:t,theme:r})=>e||t?{boxShadow:"none",background:aa(.93,r.barSelectedColor),color:r.base==="light"?Lt(.1,r.color.secondary):r.color.secondary}:{}),pte=F.div({position:"fixed",inset:0,zIndex:1e3}),hte=({children:e,handleClose:t,triggerRef:r})=>{let n=m.useRef(null);K3({ref:n,onInteractOutside:t}),g.useEffect(()=>{if(n.current)return Mp([n.current],{shouldUseInert:!0})},[]);let{overlayProps:a}=V1({targetRef:r,overlayRef:n,placement:"bottom start",offset:8,maxHeight:504,isOpen:!0}),{overlayProps:l,underlayProps:i}=q1({isOpen:!0,onClose:t,isDismissable:!0,shouldCloseOnBlur:!1,isKeyboardDismissDisabled:!0},n),o=cp();return a.style={...a.style,overflow:"hidden auto",scrollbarColor:`${o.barTextColor} transparent`,scrollbarWidth:"thin"},m.createElement(_f,{disableFocusManagement:!0,...l},m.createElement(pte,{...i}),m.createElement(ju,{hasChrome:!0,ref:n,padding:0,...a},e))},RR=g.forwardRef(({children:e,icon:t,disabled:r=!1,options:n,defaultOptions:a,multiSelect:l=!1,onReset:i,padding:o="small",resetLabel:s,onSelect:u,onDeselect:c,onChange:d,tooltip:f,ariaLabel:p,showSelectedOptionTitle:b=!0,...v},S)=>{var G;let[h,y]=g.useState(v.defaultOpen||!1),[E,x]=g.useState(!1),T=an(S),_=g.useMemo(()=>"select-"+Math.random().toString(36).substring(2,15),[]),C=`${_}-listbox`,O=g.useRef(null),D=Hu({isOpen:h&&!r,onOpenChange:y}),L=g.useCallback(()=>{y(!1),x(!0)},[]);g.useEffect(()=>{var H;!D.isOpen&&E&&((H=T.current)==null||H.focus(),x(!1))},[D.isOpen,E,T]);let[w,I]=g.useState(I_(n,a)),k=g.useCallback(H=>{H.type==="reset"?(d==null||d([]),i==null||i(),I([])):I(l?V=>{let q=[];return V!=null&&V.some(ee=>ee.value===H.value)?(c==null||c(rs(H.value)),q=(V==null?void 0:V.filter(ee=>ee.value!==H.value))??[]):(u==null||u(rs(H.value)),q=[...V??[],H]),d==null||d(q.map(ee=>rs(ee.value))),q}:V=>V.every(q=>q.value!==H.value)?(u==null||u(rs(H.value)),d==null||d([rs(H.value)]),[H]):V)},[l,d,u,c,i]),M=g.useMemo(()=>i?{type:"reset",value:void 0,title:s??"Reset selection",icon:m.createElement(xz,null),description:void 0,children:void 0}:void 0,[i,s]),B=g.useMemo(()=>M?[M,...n]:n,[n,M]);g.useEffect(()=>{a&&I(I_(n,a))},[a,n]);let[$,A]=g.useState(void 0),R=g.useCallback((H,V=!0)=>{A(zg(H)),!l&&V&&k(zg(H))},[l,k]),P=g.useCallback((H=1)=>{if(!h||!$){R(B[H===1?0:Math.min(H,B.length-1)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":Ed(W.value)===$.value),q=V+H,ee;q>=B.length&&V===B.length-1?ee=B[0]:ee=B[Math.min(B.length-1,q)],R(ee)},[h,$,R,B]),N=g.useCallback((H=1)=>{if(!h||!$){R(B[Math.max(0,B.length-H)]);return}let V=B.findIndex(W=>$.type==="reset"?"type"in W&&W.type==="reset":Ed(W.value)===$.value),q=V-H,ee;q<0&&V===0?ee=B[B.length-1]:ee=B[Math.max(0,q)],R(ee)},[h,$,R,B]),z=g.useCallback(H=>{let V=J=>{H.preventDefault(),R(B[J]),y(!0)},q=B.findIndex(J=>w.some(Y=>Y.value===Ed(J.value))),ee=q!==-1,W=M&&!ee?1:0,ke=B.length-1;H.key==="Enter"||H.key===" "?V(ee?Math.min(q,ke):W):H.key==="ArrowDown"?V(ee?Math.min(q+1,ke):W):H.key==="ArrowUp"?V(ee?Math.max(q-1,W):ke):H.key==="Home"?V(W):H.key==="End"?V(ke):H.key==="PageDown"?V(Math.min((ee?q:W)+Pc,ke)):H.key==="PageUp"&&V(Math.max(0,(ee?q:ke)-Pc))},[B,M,R,w]),U=g.useCallback(H=>{H.key!=="Tab"?H.preventDefault():L(),H.key==="Escape"?L():H.key==="ArrowDown"?P():H.key==="ArrowUp"?N():H.key==="Home"?R(B[0]):H.key==="End"?R(B[B.length-1]):H.key==="PageDown"?P(Pc):H.key==="PageUp"&&N(Pc)},[L,P,N,B,R]);g.useEffect(()=>{var H;if(h&&$){let V=document.getElementById(P_(_,$));V&&(V.scrollIntoView({block:"nearest"}),V.focus())}else h&&((H=O.current)==null||H.focus())},[h,$,_]);let K=g.useMemo(()=>w.length===1?`${p} ${w[0].title}`:w.length?`${p}, ${w.length} values selected`:p,[p,w]);return m.createElement(m.Fragment,null,m.createElement(fte,{...v,variant:"ghost",ariaLabel:K,tooltip:f??p,disableAllTooltips:h,id:_,ref:T,padding:o,$isOpen:h,$hasSelection:!!w.length,"aria-disabled":r,disabled:r,onClick:()=>{h?L():y(!0)},tabIndex:h?-1:0,onKeyDown:z,role:"button","aria-controls":h?C:void 0,"aria-expanded":h,"aria-haspopup":"listbox"},!l&&m.createElement(m.Fragment,null,t,b&&((G=w[0])==null?void 0:G.title)||e),l&&m.createElement(m.Fragment,null,t,e,!!w.length&&m.createElement(dte,{"aria-label":`${w.length} ${w.length>1?"items":"item"} selected`},w==null?void 0:w.length))),D.isOpen&&m.createElement(hte,{handleClose:L,triggerRef:T},m.createElement(cte,{"aria-label":p,role:"listbox",id:C,ref:O,"aria-multiselectable":l,onKeyDown:U,tabIndex:h?0:-1},B.map(H=>({option:zg(H),externalOption:H})).map(({externalOption:H,option:V})=>{let q=(w==null?void 0:w.some(W=>W.value===V.value))&&V!==M,ee=V===M;return m.createElement(OR,{key:V.value===void 0?"sb-reset":String(V.value),title:V.title,description:V.description,aside:V.aside,icon:!ee&&l?m.createElement(Ql.Checkbox,{checked:q,hidden:!0,role:"presentation"}):V.icon,id:P_(_,V),isActive:h&&($==null?void 0:$.value)===V.value,isSelected:q,onClick:()=>{k(V),l||L()},onFocus:()=>R(H,!1),shouldLookDisabled:ee&&w.length===0&&l,onKeyDown:W=>{W.key==="Enter"||W.key===" "?(W.preventDefault(),k(V),l||L()):W.key==="Tab"&&(l||k(V),L())}},V.children)}))))});RR.displayName="Select";const{deprecate:gte}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Jl=class{get childNodes(){throw new Error("childNodes is not supported")}clone(){let e=new this.constructor(this.key);return e.value=this.value,e.level=this.level,e.hasChildNodes=this.hasChildNodes,e.rendered=this.rendered,e.textValue=this.textValue,e["aria-label"]=this["aria-label"],e.index=this.index,e.parentKey=this.parentKey,e.prevKey=this.prevKey,e.nextKey=this.nextKey,e.firstChildKey=this.firstChildKey,e.lastChildKey=this.lastChildKey,e.props=this.props,e.render=this.render,e.colSpan=this.colSpan,e.colIndex=this.colIndex,e}filter(e,t,r){let n=this.clone();return t.addDescendants(n,e),n}constructor(e){this.value=null,this.level=0,this.hasChildNodes=!1,this.rendered=null,this.textValue="",this["aria-label"]=void 0,this.index=0,this.parentKey=null,this.prevKey=null,this.nextKey=null,this.firstChildKey=null,this.lastChildKey=null,this.props={},this.colSpan=null,this.colIndex=null,this.type=this.constructor.type,this.key=e}},NR=class extends Jl{filter(e,t,r){let[n,a]=BR(e,t,this.firstChildKey,r),l=this.clone();return l.firstChildKey=n,l.lastChildKey=a,l}},LR=class extends Jl{};LR.type="header";var mte=class extends Jl{};mte.type="loader";var MR=class extends NR{filter(e,t,r){if(r(this.textValue,this)){let n=this.clone();return t.addDescendants(n,e),n}return null}};MR.type="item";var FR=class extends NR{filter(e,t,r){let n=super.filter(e,t,r);if(n&&n.lastChildKey!==null){let a=e.getItem(n.lastChildKey);if(a&&a.type!=="header")return n}return null}};FR.type="section";var yte=class{get size(){return this.itemCount}getKeys(){return this.keyMap.keys()}*[Symbol.iterator](){let e=this.firstKey!=null?this.keyMap.get(this.firstKey):void 0;for(;e;)yield e,e=e.nextKey!=null?this.keyMap.get(e.nextKey):void 0}getChildren(e){let t=this.keyMap;return{*[Symbol.iterator](){let r=t.get(e),n=(r==null?void 0:r.firstChildKey)!=null?t.get(r.firstChildKey):null;for(;n;)yield n,n=n.nextKey!=null?t.get(n.nextKey):void 0}}}getKeyBefore(e){let t=this.keyMap.get(e);if(!t)return null;if(t.prevKey!=null){for(t=this.keyMap.get(t.prevKey);t&&t.type!=="item"&&t.lastChildKey!=null;)t=this.keyMap.get(t.lastChildKey);var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}return t.parentKey}getKeyAfter(e){let t=this.keyMap.get(e);if(!t)return null;if(t.type!=="item"&&t.firstChildKey!=null)return t.firstChildKey;for(;t;){if(t.nextKey!=null)return t.nextKey;if(t.parentKey!=null)t=this.keyMap.get(t.parentKey);else return null}return null}getFirstKey(){return this.firstKey}getLastKey(){let e=this.lastKey!=null?this.keyMap.get(this.lastKey):null;for(;(e==null?void 0:e.lastChildKey)!=null;)e=this.keyMap.get(e.lastChildKey);var t;return(t=e==null?void 0:e.key)!==null&&t!==void 0?t:null}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(){throw new Error("Not implemented")}clone(){let e=this.constructor,t=new e;return t.keyMap=new Map(this.keyMap),t.firstKey=this.firstKey,t.lastKey=this.lastKey,t.itemCount=this.itemCount,t}addNode(e){if(this.frozen)throw new Error("Cannot add a node to a frozen collection");e.type==="item"&&this.keyMap.get(e.key)==null&&this.itemCount++,this.keyMap.set(e.key,e)}addDescendants(e,t){this.addNode(e);let r=t.getChildren(e.key);for(let n of r)this.addDescendants(n,t)}removeNode(e){if(this.frozen)throw new Error("Cannot remove a node to a frozen collection");let t=this.keyMap.get(e);t!=null&&t.type==="item"&&this.itemCount--,this.keyMap.delete(e)}commit(e,t,r=!1){if(this.frozen)throw new Error("Cannot commit a frozen collection");this.firstKey=e,this.lastKey=t,this.frozen=!r}filter(e){let t=new this.constructor,[r,n]=BR(this,t,this.firstKey,e);return t==null||t.commit(r,n),t}constructor(){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.frozen=!1,this.itemCount=0}};function BR(e,t,r,n){if(r==null)return[null,null];let a=null,l=null,i=e.getItem(r);for(;i!=null;){let u=i.filter(e,t,n);u!=null&&(u.nextKey=null,l&&(u.prevKey=l.key,l.nextKey=u.key),a==null&&(a=u),t.addNode(u),l=u),i=i.nextKey?e.getItem(i.nextKey):null}if(l&&l.type==="separator"){let u=l.prevKey;t.removeNode(l.key),u?(l=t.getItem(u),l.nextKey=null):l=null}var o,s;return[(o=a==null?void 0:a.key)!==null&&o!==void 0?o:null,(s=l==null?void 0:l.key)!==null&&s!==void 0?s:null]}var PR=class{*[Symbol.iterator](){let e=this.firstChild;for(;e;)yield e,e=e.nextSibling}get firstChild(){return this._firstChild}set firstChild(e){this._firstChild=e,this.ownerDocument.markDirty(this)}get lastChild(){return this._lastChild}set lastChild(e){this._lastChild=e,this.ownerDocument.markDirty(this)}get previousSibling(){return this._previousSibling}set previousSibling(e){this._previousSibling=e,this.ownerDocument.markDirty(this)}get nextSibling(){return this._nextSibling}set nextSibling(e){this._nextSibling=e,this.ownerDocument.markDirty(this)}get parentNode(){return this._parentNode}set parentNode(e){this._parentNode=e,this.ownerDocument.markDirty(this)}get isConnected(){var e;return((e=this.parentNode)===null||e===void 0?void 0:e.isConnected)||!1}invalidateChildIndices(e){(this._minInvalidChildIndex==null||!this._minInvalidChildIndex.isConnected||e.index<this._minInvalidChildIndex.index)&&(this._minInvalidChildIndex=e,this.ownerDocument.markDirty(this))}updateChildIndices(){let e=this._minInvalidChildIndex;for(;e;)e.index=e.previousSibling?e.previousSibling.index+1:0,e=e.nextSibling;this._minInvalidChildIndex=null}appendChild(e){e.parentNode&&e.parentNode.removeChild(e),this.firstChild==null&&(this.firstChild=e),this.lastChild?(this.lastChild.nextSibling=e,e.index=this.lastChild.index+1,e.previousSibling=this.lastChild):(e.previousSibling=null,e.index=0),e.parentNode=this,e.nextSibling=null,this.lastChild=e,this.ownerDocument.markDirty(this),this.isConnected&&this.ownerDocument.queueUpdate()}insertBefore(e,t){if(t==null)return this.appendChild(e);e.parentNode&&e.parentNode.removeChild(e),e.nextSibling=t,e.previousSibling=t.previousSibling,e.index=t.index-1,this.firstChild===t?this.firstChild=e:t.previousSibling&&(t.previousSibling.nextSibling=e),t.previousSibling=e,e.parentNode=t.parentNode,this.invalidateChildIndices(e),this.isConnected&&this.ownerDocument.queueUpdate()}removeChild(e){e.parentNode!==this||!this.ownerDocument.isMounted||(this._minInvalidChildIndex===e&&(this._minInvalidChildIndex=null),e.nextSibling&&(this.invalidateChildIndices(e.nextSibling),e.nextSibling.previousSibling=e.previousSibling),e.previousSibling&&(e.previousSibling.nextSibling=e.nextSibling),this.firstChild===e&&(this.firstChild=e.nextSibling),this.lastChild===e&&(this.lastChild=e.previousSibling),e.parentNode=null,e.nextSibling=null,e.previousSibling=null,e.index=0,this.ownerDocument.markDirty(e),this.isConnected&&this.ownerDocument.queueUpdate())}addEventListener(){}removeEventListener(){}get previousVisibleSibling(){let e=this.previousSibling;for(;e&&e.isHidden;)e=e.previousSibling;return e}get nextVisibleSibling(){let e=this.nextSibling;for(;e&&e.isHidden;)e=e.nextSibling;return e}get firstVisibleChild(){let e=this.firstChild;for(;e&&e.isHidden;)e=e.nextSibling;return e}get lastVisibleChild(){let e=this.lastChild;for(;e&&e.isHidden;)e=e.previousSibling;return e}constructor(e){this._firstChild=null,this._lastChild=null,this._previousSibling=null,this._nextSibling=null,this._parentNode=null,this._minInvalidChildIndex=null,this.ownerDocument=e}},Hg=class cy extends PR{get index(){return this._index}set index(t){this._index=t,this.ownerDocument.markDirty(this)}get level(){var t;return this.parentNode instanceof cy?this.parentNode.level+(((t=this.node)===null||t===void 0?void 0:t.type)==="item"?1:0):0}getMutableNode(){return this.node==null?null:(this.isMutated||(this.node=this.node.clone(),this.isMutated=!0),this.ownerDocument.markDirty(this),this.node)}updateNode(){var t,r,n,a,l,i,o,s;let u=this.nextVisibleSibling,c=this.getMutableNode();if(c!=null){c.index=this.index,c.level=this.level;var d;c.parentKey=this.parentNode instanceof cy&&(d=(t=this.parentNode.node)===null||t===void 0?void 0:t.key)!==null&&d!==void 0?d:null;var f;c.prevKey=(f=(n=this.previousVisibleSibling)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&f!==void 0?f:null;var p;c.nextKey=(p=u==null||(a=u.node)===null||a===void 0?void 0:a.key)!==null&&p!==void 0?p:null,c.hasChildNodes=!!this.firstChild;var b;c.firstChildKey=(b=(i=this.firstVisibleChild)===null||i===void 0||(l=i.node)===null||l===void 0?void 0:l.key)!==null&&b!==void 0?b:null;var v;if(c.lastChildKey=(v=(s=this.lastVisibleChild)===null||s===void 0||(o=s.node)===null||o===void 0?void 0:o.key)!==null&&v!==void 0?v:null,(c.colSpan!=null||c.colIndex!=null)&&u){var S,h;let y=((S=c.colIndex)!==null&&S!==void 0?S:c.index)+((h=c.colSpan)!==null&&h!==void 0?h:1);if(u.node!=null&&y!==u.node.colIndex){let E=u.getMutableNode();E.colIndex=y}}}}setProps(t,r,n,a,l){let i,{value:o,textValue:s,id:u,...c}=t;if(this.node==null?(i=new n(u??`react-aria-${++this.ownerDocument.nodeId}`),this.node=i):i=this.getMutableNode(),c.ref=r,i.props=c,i.rendered=a,i.render=l,i.value=o,i.textValue=s||(typeof c.children=="string"?c.children:"")||t["aria-label"]||"",u!=null&&u!==i.key)throw new Error("Cannot change the id of an item");c.colSpan!=null&&(i.colSpan=c.colSpan),this.isConnected&&this.ownerDocument.queueUpdate()}get style(){let t=this;return{get display(){return t.isHidden?"none":""},set display(r){let n=r==="none";if(t.isHidden!==n){var a,l;(((a=t.parentNode)===null||a===void 0?void 0:a.firstVisibleChild)===t||((l=t.parentNode)===null||l===void 0?void 0:l.lastVisibleChild)===t)&&t.ownerDocument.markDirty(t.parentNode);let i=t.previousVisibleSibling,o=t.nextVisibleSibling;i&&t.ownerDocument.markDirty(i),o&&t.ownerDocument.markDirty(o),t.isHidden=n,t.ownerDocument.markDirty(t)}}}}hasAttribute(){}setAttribute(){}setAttributeNS(){}removeAttribute(){}constructor(t,r){super(r),this.nodeType=8,this.isMutated=!0,this._index=0,this.isHidden=!1,this.node=null}},bte=class extends PR{get isConnected(){return this.isMounted}createElement(e){return new Hg(e,this)}getMutableCollection(){return this.nextCollection||(this.nextCollection=this.collection.clone()),this.nextCollection}markDirty(e){this.dirtyNodes.add(e)}addNode(e){if(e.isHidden||e.node==null)return;let t=this.getMutableCollection();if(!t.getItem(e.node.key))for(let r of e)this.addNode(r);t.addNode(e.node)}removeNode(e){if(e.node!=null){for(let t of e)this.removeNode(t);this.getMutableCollection().removeNode(e.node.key)}}getCollection(){return this.inSubscription?this.collection.clone():(this.queuedRender=!1,this.updateCollection(),this.collection)}updateCollection(){for(let i of this.dirtyNodes)i instanceof Hg&&(!i.isConnected||i.isHidden)?this.removeNode(i):i.updateChildIndices();for(let i of this.dirtyNodes)i instanceof Hg&&(i.isConnected&&!i.isHidden&&(i.updateNode(),this.addNode(i)),i.isMutated=!1);if(this.dirtyNodes.clear(),this.nextCollection){var e,t,r,n,a,l;this.nextCollection.commit((a=(t=this.firstVisibleChild)===null||t===void 0||(e=t.node)===null||e===void 0?void 0:e.key)!==null&&a!==void 0?a:null,(l=(n=this.lastVisibleChild)===null||n===void 0||(r=n.node)===null||r===void 0?void 0:r.key)!==null&&l!==void 0?l:null,this.isSSR),this.isSSR||(this.collection=this.nextCollection,this.nextCollection=null)}}queueUpdate(){if(!(this.dirtyNodes.size===0||this.queuedRender)){this.queuedRender=!0,this.inSubscription=!0;for(let e of this.subscriptions)e();this.inSubscription=!1}}subscribe(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}resetAfterSSR(){this.isSSR&&(this.isSSR=!1,this.firstChild=null,this.lastChild=null,this.nodeId=0)}constructor(e){super(null),this.nodeType=11,this.ownerDocument=this,this.dirtyNodes=new Set,this.isSSR=!1,this.nodeId=0,this.nodesByProps=new WeakMap,this.isMounted=!0,this.nextCollection=null,this.subscriptions=new Set,this.queuedRender=!1,this.inSubscription=!1,this.collection=e,this.nextCollection=e}};function IR(e){let{children:t,items:r,idScope:n,addIdAndValue:a,dependencies:l=[]}=e,i=g.useMemo(()=>new WeakMap,l);return g.useMemo(()=>{if(r&&typeof t=="function"){let u=[];for(let c of r){let d=i.get(c);if(!d){d=t(c);var o,s;let f=(s=(o=d.props.id)!==null&&o!==void 0?o:c.key)!==null&&s!==void 0?s:c.id;if(f==null)throw new Error("Could not determine key for item");n&&(f=n+":"+f),d=g.cloneElement(d,a?{key:f,id:f,value:c}:{key:f}),i.set(c,d)}u.push(d)}return u}else if(typeof t!="function")return t},[t,r,i,n,a])}if(typeof HTMLTemplateElement<"u"){let e=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild").get;Object.defineProperty(HTMLTemplateElement.prototype,"firstChild",{configurable:!0,enumerable:!0,get:function(){return this.dataset.reactAriaHidden?this.content.firstChild:e.call(this)}})}var Cf=g.createContext(!1);function vte(e){if(g.useContext(Cf))return m.createElement(m.Fragment,null,e.children);let t=m.createElement(Cf.Provider,{value:!0},e.children);return m.createElement("template",{"data-react-aria-hidden":!0},t)}function ev(e){let t=(r,n)=>g.useContext(Cf)?null:e(r,n);return t.displayName=e.displayName||e.name,g.forwardRef(t)}function Ete(){return g.useContext(Cf)}var kR=g.createContext(!1),pu=g.createContext(null);function zR(e){if(g.useContext(pu))return e.content;let{collection:t,document:r}=_te(e.createCollection);return m.createElement(m.Fragment,null,m.createElement(vte,null,m.createElement(pu.Provider,{value:r},e.content)),m.createElement(Ste,{render:e.children,collection:t}))}function Ste({collection:e,render:t}){return t(e)}function xte(e,t,r){let n=Zl(),a=g.useRef(n);a.current=n;let l=g.useCallback(()=>a.current?r():t(),[t,r]);return zW.useSyncExternalStore(e,l)}var $te=typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore:xte;function _te(e){let[t]=g.useState(()=>new bte((e==null?void 0:e())||new yte)),r=g.useCallback(i=>t.subscribe(i),[t]),n=g.useCallback(()=>{let i=t.getCollection();return t.isSSR&&t.resetAfterSSR(),i},[t]),a=g.useCallback(()=>(t.isSSR=!0,t.getCollection()),[t]),l=$te(r,n,a);return ve(()=>(t.isMounted=!0,()=>{t.isMounted=!1}),[t]),{collection:l,document:t}}var dy=g.createContext(null);function Cte(e){var t;return t=class extends Jl{},t.type=e,t}function HR(e,t,r,n,a,l){typeof e=="string"&&(e=Cte(e));let i=g.useCallback(s=>{s==null||s.setProps(t,r,e,n,l)},[t,r,n,l,e]),o=g.useContext(dy);if(o){let s=o.ownerDocument.nodesByProps.get(t);return s||(s=o.ownerDocument.createElement(e.type),s.setProps(t,r,e,n,l),o.appendChild(s),o.ownerDocument.updateCollection(),o.ownerDocument.nodesByProps.set(t,s)),a?m.createElement(dy.Provider,{value:s},a):null}return m.createElement(e.type,{ref:i},a)}function Bp(e,t){let r=({node:a})=>t(a.props,a.props.ref,a),n=g.forwardRef((a,l)=>{let i=g.useContext(vf);if(!g.useContext(kR)){if(t.length>=3)throw new Error(t.name+" cannot be rendered outside a collection.");return t(a,l)}return HR(e,a,l,"children"in a?a.children:null,null,o=>m.createElement(vf.Provider,{value:i},m.createElement(r,{node:o})))});return n.displayName=t.name,n}function tv(e,t,r=UR){let n=({node:l})=>t(l.props,l.props.ref,l),a=g.forwardRef((l,i)=>{let o=r(l);var s;return(s=HR(e,l,i,null,o,u=>m.createElement(n,{node:u})))!==null&&s!==void 0?s:m.createElement(m.Fragment,null)});return a.displayName=t.name,a}function UR(e){return IR({...e,addIdAndValue:!0})}var k_=g.createContext(null);function jR(e){let t=g.useContext(k_),r=((t==null?void 0:t.dependencies)||[]).concat(e.dependencies),n=e.idScope||(t==null?void 0:t.idScope),a=UR({...e,idScope:n,dependencies:r});return g.useContext(pu)&&(a=m.createElement(Tte,null,a)),t=g.useMemo(()=>({dependencies:r,idScope:n}),[n,...r]),m.createElement(k_.Provider,{value:t},a)}function Tte({children:e}){let t=g.useContext(pu),r=g.useMemo(()=>m.createElement(pu.Provider,{value:null},m.createElement(kR.Provider,{value:!0},e)),[e]);return Zl()?m.createElement(dy.Provider,{value:t},r):vo.createPortal(r,t)}var KR=g.createContext({});ev(function(e,t){[e,t]=Pt(e,t,KR);let{elementType:r="label",...n}=e;return m.createElement(r,{className:"react-aria-Label",...n,ref:t})});function wte(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":a,labelElementType:l="label"}=e;t=Ot(t);let i=Ot(),o={};r&&(n=n?`${i} ${n}`:i,o={id:i,htmlFor:l==="label"?t:void 0});let s=Op({id:t,"aria-label":a,"aria-labelledby":n});return{labelProps:o,fieldProps:s}}function Ate(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:a,isIndeterminate:l,formatOptions:i={style:"percent"}}=e,o=Ve(e,{labelable:!0}),{labelProps:s,fieldProps:u}=wte({...e,labelElementType:"span"});t=su(t,r,n);let c=(t-r)/(n-r),d=ZQ(i);if(!l&&!a){let f=i.style==="percent"?c:t;a=d.format(f)}return{progressBarProps:oe(o,{...u,"aria-valuenow":l?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":l?void 0:a,role:"progressbar"}),labelProps:s}}var GR=g.createContext(null);g.forwardRef(function(e,t){[e,t]=Pt(e,t,GR);let{value:r=0,minValue:n=0,maxValue:a=100,isIndeterminate:l=!1}=e;r=su(r,n,a);let[i,o]=G3(!e["aria-label"]&&!e["aria-labelledby"]),{progressBarProps:s,labelProps:u}=Ate({...e,label:o}),c=l?void 0:(r-n)/(a-n)*100,d=Sr({...e,defaultClassName:"react-aria-ProgressBar",values:{percentage:c,valueText:s["aria-valuetext"],isIndeterminate:l}}),f=Ve(e,{global:!0});return m.createElement("div",{...oe(f,d,s),ref:t,slot:e.slot||void 0},m.createElement(KR.Provider,{value:{...u,ref:i,elementType:"span"}},d.children))});var sn=null;function z_(e,t="assertive",r=7e3){sn?sn.announce(e,t,r):(sn=new Ote,(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u")?sn.announce(e,t,r):setTimeout(()=>{sn!=null&&sn.isAttached()&&(sn==null||sn.announce(e,t,r))},100))}var Ote=class{isAttached(){var e;return(e=this.node)===null||e===void 0?void 0:e.isConnected}createLog(e){let t=document.createElement("div");return t.setAttribute("role","log"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions"),t}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(e,t="assertive",r=7e3){var n,a;if(!this.node)return;let l=document.createElement("div");typeof e=="object"?(l.setAttribute("role","img"),l.setAttribute("aria-labelledby",e["aria-labelledby"])):l.textContent=e,t==="assertive"?(n=this.assertiveLog)===null||n===void 0||n.appendChild(l):(a=this.politeLog)===null||a===void 0||a.appendChild(l),e!==""&&setTimeout(()=>{l.remove()},r)}clear(e){this.node&&((!e||e==="assertive")&&this.assertiveLog&&(this.assertiveLog.innerHTML=""),(!e||e==="polite")&&this.politeLog&&(this.politeLog.innerHTML=""))}constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<"u"&&(this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}};function Dte(e,t){let{elementType:r="button",isDisabled:n,onPress:a,onPressStart:l,onPressEnd:i,onPressUp:o,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:f,target:p,rel:b,type:v="button"}=e,S;r==="button"?S={type:v,disabled:n,form:e.form,formAction:e.formAction,formEncType:e.formEncType,formMethod:e.formMethod,formNoValidate:e.formNoValidate,formTarget:e.formTarget,name:e.name,value:e.value}:S={role:"button",href:r==="a"&&!n?f:void 0,target:r==="a"?p:void 0,type:r==="input"?v:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?b:void 0};let{pressProps:h,isPressed:y}=ku({onPressStart:l,onPressEnd:i,onPressChange:s,onPress:a,onPressUp:o,onClick:d,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:E}=zu(e,t);c&&(E.tabIndex=n?-1:E.tabIndex);let x=oe(E,h,Ve(e,{labelable:!0}));return{isPressed:y,buttonProps:oe(S,x,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"],"aria-disabled":e["aria-disabled"]})}}var VR=g.createContext({});ev(function(e,t){[e,t]=Pt(e,t,VR),e=Rte(e);let r=e,{isPending:n}=r,{buttonProps:a,isPressed:l}=Dte(e,t),{focusProps:i,isFocused:o,isFocusVisible:s}=Lp(e),{hoverProps:u,isHovered:c}=Lo({...e,isDisabled:e.isDisabled||n}),d={isHovered:c,isPressed:(r.isPressed||l)&&!n,isFocused:o,isFocusVisible:s,isDisabled:e.isDisabled||!1,isPending:n??!1},f=Sr({...e,values:d,defaultClassName:"react-aria-Button"}),p=Ot(a.id),b=Ot(),v=a["aria-labelledby"];n&&(v?v=`${v} ${b}`:a["aria-label"]&&(v=`${p} ${b}`));let S=g.useRef(n);g.useEffect(()=>{let y={"aria-labelledby":v||p};(!S.current&&o&&n||S.current&&o&&!n)&&z_(y,"assertive"),S.current=n},[n,o,v,p]);let h=Ve(e,{global:!0});return delete h.onClick,m.createElement("button",{...oe(h,f,a,i,u),type:a.type==="submit"&&n?"button":a.type,id:p,ref:t,"aria-labelledby":v,slot:e.slot||void 0,"aria-disabled":n?"true":a["aria-disabled"],"data-disabled":e.isDisabled||void 0,"data-pressed":d.isPressed||void 0,"data-hovered":c||void 0,"data-focused":o||void 0,"data-pending":n||void 0,"data-focus-visible":s||void 0},m.createElement(GR.Provider,{value:{id:b}},f.children))});function Rte(e){return e.isPending&&(e.onPress=void 0,e.onPressStart=void 0,e.onPressEnd=void 0,e.onPressChange=void 0,e.onPressUp=void 0,e.onKeyDown=void 0,e.onKeyUp=void 0,e.onClick=void 0,e.href=void 0),e}var rv=g.createContext(null),H_=g.createContext(null),Nte=g.forwardRef(function(e,t){[e,t]=Pt(e,t,rv);let r=g.useContext(Ip),n=Hu(e),a=e.isOpen!=null||e.defaultOpen!=null||!r?n:r,l=R3(t,a.isOpen)||e.isExiting||!1,i=Ete(),{direction:o}=ua();if(i){let s=e.children;return typeof s=="function"&&(s=s({trigger:e.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),m.createElement(m.Fragment,null,s)}return a&&!a.isOpen&&!l?null:m.createElement(Lte,{...e,triggerRef:e.triggerRef,state:a,popoverRef:t,isExiting:l,dir:o})});function Lte({state:e,isExiting:t,UNSTABLE_portalContainer:r,clearContexts:n,...a}){let l=g.useRef(null),i=g.useRef(null),o=g.useContext(H_),s=o&&a.trigger==="SubmenuTrigger";var u;let{popoverProps:c,underlayProps:d,arrowProps:f,placement:p,triggerAnchorPoint:b}=wJ({...a,offset:(u=a.offset)!==null&&u!==void 0?u:8,arrowRef:l,groupRef:s?o:i},e),v=a.popoverRef,S=D3(v,!!p)||a.isEntering||!1,h=Sr({...a,defaultClassName:"react-aria-Popover",values:{trigger:a.trigger||null,placement:p,isEntering:S,isExiting:t}}),y=!a.isNonModal||a.trigger==="SubmenuTrigger",[E,x]=g.useState(!1);ve(()=>{v.current&&x(y&&!v.current.querySelector("[role=dialog]"))},[v,y]),g.useEffect(()=>{E&&a.trigger!=="SubmenuTrigger"&&v.current&&!v.current.contains(document.activeElement)&&Va(v.current)},[E,v,a.trigger]);let T=g.useMemo(()=>{let D=h.children;if(n)for(let L of n)D=m.createElement(L.Provider,{value:null},D);return D},[h.children,n]),_={...c.style,"--trigger-anchor-point":b?`${b.x}px ${b.y}px`:void 0,...h.style},C=m.createElement("div",{...oe(Ve(a,{global:!0}),c),...h,role:E?"dialog":void 0,tabIndex:E?-1:void 0,"aria-label":a["aria-label"],"aria-labelledby":a["aria-labelledby"],ref:v,slot:a.slot||void 0,style:_,dir:a.dir,"data-trigger":a.trigger,"data-placement":p,"data-entering":S||void 0,"data-exiting":t||void 0},!a.isNonModal&&m.createElement(__,{onDismiss:e.close}),m.createElement(K1.Provider,{value:{...f,placement:p,ref:l}},T),m.createElement(__,{onDismiss:e.close}));if(!s)return m.createElement(_f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:r},!a.isNonModal&&e.isOpen&&m.createElement("div",{"data-testid":"underlay",...d,style:{position:"fixed",inset:0}}),m.createElement("div",{ref:i,style:{display:"contents"}},m.createElement(H_.Provider,{value:i},C)));var O;return m.createElement(_f,{...a,shouldContainFocus:E,isExiting:t,portalContainer:(O=r??(o==null?void 0:o.current))!==null&&O!==void 0?O:void 0},C)}var YR=g.createContext(null);tv("section",(e,t,r)=>{let{name:n,render:a}=g.useContext(YR);return a(e,t,r,"react-aria-Section")});var qR={CollectionRoot({collection:e,renderDropIndicator:t}){return U_(e,null,t)},CollectionBranch({collection:e,parent:t,renderDropIndicator:r}){return U_(e,t,r)}};function U_(e,t,r){return IR({items:t?e.getChildren(t.key):e,dependencies:[r],children(n){let a=n.render(n);return!r||n.type!=="item"?a:m.createElement(m.Fragment,null,r({type:"item",key:n.key,dropPosition:"before"}),a,Mte(e,n,r))}})}function Mte(e,t,r){let n=t.key,a=e.getKeyAfter(n),l=a!=null?e.getItem(a):null;for(;l!=null&&l.type!=="item";)a=e.getKeyAfter(l.key),l=a!=null?e.getItem(a):null;let i=t.nextKey!=null?e.getItem(t.nextKey):null;for(;i!=null&&i.type!=="item";)i=i.nextKey!=null?e.getItem(i.nextKey):null;let o=[];if(i==null){let s=t;for(;s&&(!l||s.parentKey!==l.parentKey&&l.level<s.level);){let u=r({type:"item",key:s.key,dropPosition:"after"});g.isValidElement(u)&&o.push(g.cloneElement(u,{key:`${s.key}-after`})),s=s.parentKey!=null?e.getItem(s.parentKey):null}}return o}var Ku=g.createContext(qR);function WR(e){return g.useMemo(()=>e!=null?new Set([e]):null,[e])}var j_=g.createContext(null),Fte=g.createContext(null),XR=g.createContext({});Bp(LR,function(e,t){return[e,t]=Pt(e,t,XR),m.createElement("header",{className:"react-aria-Header",...e,ref:t},e.children)});var ZR=g.createContext({});g.forwardRef(function(e,t){return[e,t]=Pt(e,t,ZR),m.createElement("kbd",{dir:"ltr",...e,ref:t})});function Bte(e){let t=Ve(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var QR=g.createContext({}),JR=class extends Jl{filter(e,t){let r=t.getItem(this.prevKey);if(r&&r.type!=="separator"){let n=this.clone();return t.addDescendants(n,e),n}return null}};JR.type="separator";Bp(JR,function(e,t){[e,t]=Pt(e,t,QR);let{elementType:r,orientation:n,style:a,className:l,slot:i,...o}=e,s=r||"hr";s==="hr"&&n==="vertical"&&(s="div");let{separatorProps:u}=Bte({...o,elementType:r,orientation:n}),c=Ve(e,{global:!0});return m.createElement(s,{...oe(c,u),style:a,className:l??"react-aria-Separator",ref:t,slot:i||void 0})});var e4=new WeakMap;function fy(e){return PX()?e.altKey:e.ctrlKey}function Sd(e,t){var r,n;let a=`[data-key="${CSS.escape(String(t))}"]`,l=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return l&&(a=`[data-collection="${CSS.escape(l)}"]${a}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(a)}var t4=new WeakMap;function Pte(e){let t=Ot();return t4.set(e,t),t}function Ite(e){return t4.get(e)}var kte=1e3;function zte(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,a=g.useRef({search:"",timeout:void 0}).current,l=i=>{let o=Hte(i.key);if(!(!o||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||a.search.length===0&&o===" ")){if(o===" "&&a.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),a.search+=o,t.getKeyForSearch!=null){let s=t.getKeyForSearch(a.search,r.focusedKey);s==null&&(s=t.getKeyForSearch(a.search)),s!=null&&(r.setFocusedKey(s),n&&n(s))}clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},kte)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?l:void 0}}}function Hte(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function r4(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:a=!1,shouldFocusWrap:l=!1,disallowEmptySelection:i=!1,disallowSelectAll:o=!1,escapeKeyBehavior:s="clearSelection",selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:b=n,linkBehavior:v="action"}=e,{direction:S}=ua(),h=wp(),y=A=>{var R;if(A.altKey&&A.key==="Tab"&&A.preventDefault(),!(!((R=n.current)===null||R===void 0)&&R.contains(A.target)))return;let P=(Y,X)=>{if(Y!=null){if(t.isLink(Y)&&v==="selection"&&u&&!fy(A)){vo.flushSync(()=>{t.setFocusedKey(Y,X)});let le=Sd(n,Y),ye=t.getItemProps(Y);le&&h.open(le,A,ye.href,ye.routerOptions);return}if(t.setFocusedKey(Y,X),t.isLink(Y)&&v==="override")return;A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&!fy(A)&&t.replaceSelection(Y)}};switch(A.key){case"ArrowDown":if(r.getKeyBelow){var N,z,U;let Y=t.focusedKey!=null?(N=r.getKeyBelow)===null||N===void 0?void 0:N.call(r,t.focusedKey):(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r);Y==null&&l&&(Y=(U=r.getFirstKey)===null||U===void 0?void 0:U.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowUp":if(r.getKeyAbove){var K,G,H;let Y=t.focusedKey!=null?(K=r.getKeyAbove)===null||K===void 0?void 0:K.call(r,t.focusedKey):(G=r.getLastKey)===null||G===void 0?void 0:G.call(r);Y==null&&l&&(Y=(H=r.getLastKey)===null||H===void 0?void 0:H.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y))}break;case"ArrowLeft":if(r.getKeyLeftOf){var V,q,ee;let Y=t.focusedKey!=null?(V=r.getKeyLeftOf)===null||V===void 0?void 0:V.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey):(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var W,ke,J;let Y=t.focusedKey!=null?(W=r.getKeyRightOf)===null||W===void 0?void 0:W.call(r,t.focusedKey):null;Y==null&&l&&(Y=S==="rtl"?(ke=r.getLastKey)===null||ke===void 0?void 0:ke.call(r,t.focusedKey):(J=r.getFirstKey)===null||J===void 0?void 0:J.call(r,t.focusedKey)),Y!=null&&(A.preventDefault(),P(Y,S==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getFirstKey(t.focusedKey,fi(A));t.setFocusedKey(Y),Y!=null&&(fi(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&A.shiftKey)return;A.preventDefault();let Y=r.getLastKey(t.focusedKey,fi(A));t.setFocusedKey(Y),Y!=null&&(fi(A)&&A.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(Y):u&&t.replaceSelection(Y))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let Y=r.getKeyPageBelow(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let Y=r.getKeyPageAbove(t.focusedKey);Y!=null&&(A.preventDefault(),P(Y))}break;case"a":fi(A)&&t.selectionMode==="multiple"&&o!==!0&&(A.preventDefault(),t.selectAll());break;case"Escape":s==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(A.stopPropagation(),A.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(A.shiftKey)n.current.focus();else{let Y=er(n.current,{tabbable:!0}),X,le;do le=Y.lastChild(),le&&(X=le);while(le);X&&!X.contains(document.activeElement)&&Qt(X)}break}}},E=g.useRef({top:0,left:0});hs(b,"scroll",p?void 0:()=>{var A,R,P,N;E.current={top:(P=(A=b.current)===null||A===void 0?void 0:A.scrollTop)!==null&&P!==void 0?P:0,left:(N=(R=b.current)===null||R===void 0?void 0:R.scrollLeft)!==null&&N!==void 0?N:0}});let x=A=>{if(t.isFocused){A.currentTarget.contains(A.target)||t.setFocused(!1);return}if(A.currentTarget.contains(A.target)){if(t.setFocused(!0),t.focusedKey==null){var R,P;let U=G=>{G!=null&&(t.setFocusedKey(G),u&&!t.isSelected(G)&&t.replaceSelection(G))},K=A.relatedTarget;var N,z;K&&A.currentTarget.compareDocumentPosition(K)&Node.DOCUMENT_POSITION_FOLLOWING?U((N=t.lastSelectedKey)!==null&&N!==void 0?N:(R=r.getLastKey)===null||R===void 0?void 0:R.call(r)):U((z=t.firstSelectedKey)!==null&&z!==void 0?z:(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))}else!p&&b.current&&(b.current.scrollTop=E.current.top,b.current.scrollLeft=E.current.left);if(t.focusedKey!=null&&b.current){let U=Sd(n,t.focusedKey);U instanceof HTMLElement&&(!U.contains(document.activeElement)&&!d&&Qt(U),fu()==="keyboard"&&j$(U,{containingElement:n.current}))}}},T=A=>{A.currentTarget.contains(A.relatedTarget)||t.setFocused(!1)},_=g.useRef(!1);hs(n,JX,d?A=>{let{detail:R}=A;A.stopPropagation(),t.setFocused(!0),(R==null?void 0:R.focusStrategy)==="first"&&(_.current=!0)}:void 0);let C=xt(()=>{var A,R;let P=(R=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&R!==void 0?R:null;if(P==null){let N=bt();yD(n.current),bD(N,null),t.collection.size>0&&(_.current=!1)}else t.setFocusedKey(P),_.current=!1});H$(()=>{_.current&&C()},[t.collection,C]);let O=xt(()=>{t.collection.size>0&&(_.current=!1)});H$(()=>{O()},[t.focusedKey,O]),hs(n,QX,d?A=>{var R;A.stopPropagation(),t.setFocused(!1),!((R=A.detail)===null||R===void 0)&&R.clearFocusKey&&t.setFocusedKey(null)}:void 0);let D=g.useRef(a),L=g.useRef(!1);g.useEffect(()=>{if(D.current){var A,R;let z=null;var P;a==="first"&&(z=(P=(A=r.getFirstKey)===null||A===void 0?void 0:A.call(r))!==null&&P!==void 0?P:null);var N;a==="last"&&(z=(N=(R=r.getLastKey)===null||R===void 0?void 0:R.call(r))!==null&&N!==void 0?N:null);let U=t.selectedKeys;if(U.size){for(let K of U)if(t.canSelectItem(K)){z=K;break}}t.setFocused(!0),t.setFocusedKey(z),z==null&&!d&&n.current&&Va(n.current),t.collection.size>0&&(D.current=!1,L.current=!0)}});let w=g.useRef(t.focusedKey),I=g.useRef(null);g.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==w.current||L.current)&&b.current&&n.current){let A=fu(),R=Sd(n,t.focusedKey);if(!(R instanceof HTMLElement))return;(A==="keyboard"||L.current)&&(I.current&&cancelAnimationFrame(I.current),I.current=requestAnimationFrame(()=>{b.current&&(A3(b.current,R),A!=="virtual"&&j$(R,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&w.current!=null&&n.current&&Va(n.current),w.current=t.focusedKey,L.current=!1}),g.useEffect(()=>()=>{I.current&&cancelAnimationFrame(I.current)},[]),hs(n,"react-aria-focus-scope-restore",A=>{A.preventDefault(),t.setFocused(!0)});let k={onKeyDown:y,onFocus:x,onBlur:T,onMouseDown(A){b.current===A.target&&A.preventDefault()}},{typeSelectProps:M}=zte({keyboardDelegate:r,selectionManager:t});c||(k=oe(M,k));let B;d||(B=t.focusedKey==null?0:-1);let $=Pte(t.collection);return{collectionProps:oe(k,{tabIndex:B,"data-collection":$})}}function n4(e){let{id:t,selectionManager:r,key:n,ref:a,shouldSelectOnPressUp:l,shouldUseVirtualFocus:i,focus:o,isDisabled:s,onAction:u,allowsDifferentPressOrigin:c,linkBehavior:d="action"}=e,f=wp();t=Ot(t);let p=N=>{if(N.pointerType==="keyboard"&&fy(N))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&a.current){let z=r.getItemProps(n);f.open(a.current,N,z.href,z.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):N&&N.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||N&&(fi(N)||N.pointerType==="touch"||N.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};g.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?yD(a.current):o?o():document.activeElement!==a.current&&a.current&&Va(a.current))},[a,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),s=s||r.isDisabled(n);let b={};!i&&!s?b={tabIndex:n===r.focusedKey?0:-1,onFocus(N){N.target===a.current&&r.setFocusedKey(n)}}:s&&(b.onMouseDown=N=>{N.preventDefault()});let v=r.isLink(n)&&d==="override",S=u&&e.UNSTABLE_itemBehavior==="action",h=r.isLink(n)&&d!=="selection"&&d!=="none",y=!s&&r.canSelectItem(n)&&!v&&!S,E=(u||h)&&!s,x=E&&(r.selectionBehavior==="replace"?!y:!y||r.isEmpty),T=E&&y&&r.selectionBehavior==="replace",_=x||T,C=g.useRef(null),O=_&&y,D=g.useRef(!1),L=g.useRef(!1),w=r.getItemProps(n),I=N=>{if(u){var z;u(),(z=a.current)===null||z===void 0||z.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}h&&a.current&&f.open(a.current,N,w.href,w.routerOptions)},k={ref:a};if(l?(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,N.pointerType==="keyboard"&&(!_||G_())&&p(N)},c?(k.onPressUp=x?void 0:N=>{N.pointerType==="mouse"&&y&&p(N)},k.onPress=x?I:N=>{N.pointerType!=="keyboard"&&N.pointerType!=="mouse"&&y&&p(N)}):k.onPress=N=>{if(x||T&&N.pointerType!=="mouse"){if(N.pointerType==="keyboard"&&!K_())return;I(N)}else N.pointerType!=="keyboard"&&y&&p(N)}):(k.onPressStart=N=>{C.current=N.pointerType,D.current=O,L.current=x,y&&(N.pointerType==="mouse"&&!x||N.pointerType==="keyboard"&&(!E||G_()))&&p(N)},k.onPress=N=>{(N.pointerType==="touch"||N.pointerType==="pen"||N.pointerType==="virtual"||N.pointerType==="keyboard"&&_&&K_()||N.pointerType==="mouse"&&L.current)&&(_?I(N):y&&p(N))}),b["data-collection"]=Ite(r.collection),b["data-key"]=n,k.preventFocusOnPress=i,i&&(k=oe(k,{onPressStart(N){N.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(N){N.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),w)for(let N of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])w[N]&&(k[N]=Iu(k[N],w[N]));let{pressProps:M,isPressed:B}=ku(k),$=T?N=>{C.current==="mouse"&&(N.stopPropagation(),N.preventDefault(),I(N))}:void 0,{longPressProps:A}=LZ({isDisabled:!O,onLongPress(N){N.pointerType==="touch"&&(p(N),r.setSelectionBehavior("toggle"))}}),R=N=>{C.current==="touch"&&D.current&&N.preventDefault()},P=d!=="none"&&r.isLink(n)?N=>{Il.isOpening||N.preventDefault()}:void 0;return{itemProps:oe(b,y||x||i&&!s?M:{},O?A:{},{onDoubleClick:$,onDragStartCapture:R,onClick:P,id:t},i?{onMouseDown:N=>N.preventDefault()}:void 0),isPressed:B,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:s,allowsSelection:y,hasAction:_}}function K_(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function G_(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}var V_=class{getItemRect(e){let t=this.ref.current;if(!t)return null;let r=e!=null?Sd(this.ref,e):null;if(!r)return null;let n=t.getBoundingClientRect(),a=r.getBoundingClientRect();return{x:a.left-n.left-t.clientLeft+t.scrollLeft,y:a.top-n.top-t.clientTop+t.scrollTop,width:a.width,height:a.height}}getContentSize(){let e=this.ref.current;var t,r;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(r=e==null?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}}getVisibleRect(){let e=this.ref.current;var t,r,n,a;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(r=e==null?void 0:e.scrollTop)!==null&&r!==void 0?r:0,width:(n=e==null?void 0:e.clientWidth)!==null&&n!==void 0?n:0,height:(a=e==null?void 0:e.clientHeight)!==null&&a!==void 0?a:0}}constructor(e){this.ref=e}},Ute=class{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let r=e;for(;r!=null;){let n=this.collection.getItem(r);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return r;r=t(r)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}findKey(e,t,r){let n=e,a=this.layoutDelegate.getItemRect(n);if(!a||n==null)return null;let l=a;do{if(n=t(n),n==null)break;a=this.layoutDelegate.getItemRect(n)}while(a&&r(l,a)&&n!=null);return n}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,r=>this.layoutDelegate[t](r))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!uo(t))return this.getFirstKey();let n=e;if(this.orientation==="horizontal"){let a=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>a&&n!=null;)n=this.getKeyAbove(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(t&&!uo(t))return this.getLastKey();let n=e;if(this.orientation==="horizontal"){let a=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}else{let a=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<a&&n!=null;)n=this.getKeyBelow(n),r=n==null?null:this.layoutDelegate.getItemRect(n)}return n??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;n!=null;){let a=r.getItem(n);if(!a)return null;let l=a.textValue.slice(0,e.length);if(a.textValue&&this.collator.compare(l,e)===0)return n;n=this.getNextKey(n)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new V_(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new V_(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}};function jte(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:a,keyboardDelegate:l,layoutDelegate:i}=e,o=QQ({usage:"search",sensitivity:"base"}),s=t.disabledBehavior,u=g.useMemo(()=>l||new Ute({collection:r,disabledKeys:n,disabledBehavior:s,ref:a,collator:o,layoutDelegate:i}),[l,i,r,n,a,o,s]),{collectionProps:c}=r4({...e,ref:a,selectionManager:t,keyboardDelegate:u});return{listProps:c}}function Kte(e,t,r){let{shouldFocusWrap:n=!0,onKeyDown:a,onKeyUp:l,...i}=e;!e["aria-label"]&&e["aria-labelledby"];let o=Ve(e,{labelable:!0}),{listProps:s}=jte({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n,linkBehavior:"override"});return e4.set(t,{onClose:e.onClose,onAction:e.onAction,shouldUseVirtualFocus:e.shouldUseVirtualFocus}),{menuProps:oe(o,{onKeyDown:a,onKeyUp:l},{role:"menu",...s,onKeyDown:u=>{var c;(u.key!=="Escape"||e.shouldUseVirtualFocus)&&((c=s.onKeyDown)===null||c===void 0||c.call(s,u))}})}}function a4(e){return null}a4.getCollectionNode=function*(e,t){let{childItems:r,title:n,children:a}=e,l=e.title||e.children,i=e.textValue||(typeof l=="string"?l:"")||e["aria-label"]||"";!i&&(t!=null&&t.suppressTextValueWarning),yield{type:"item",props:e,rendered:l,textValue:i,"aria-label":e["aria-label"],hasChildNodes:Gte(e),*childNodes(){if(r)for(let o of r)yield{type:"item",value:o};else if(n){let o=[];m.Children.forEach(a,s=>{o.push({type:"item",element:s})}),yield*o}}}};function Gte(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&m.Children.count(e.children)>0)}var Vte=a4,Yte=class{build(e,t){return this.context=t,Y_(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(m.isValidElement(t)&&t.type===m.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if(typeof t=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");let n=0;for(let a of r)yield*this.getFullNode({value:a,index:n},{renderer:t}),n++}else{let n=[];m.Children.forEach(t,l=>{l&&n.push(l)});let a=0;for(let l of n){let i=this.getFullNode({element:l,index:a},{});for(let o of i)a++,yield o}}}getKey(e,t,r,n){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${n}${t.key}`;let a=t.value;if(a!=null){var l;let i=(l=a.key)!==null&&l!==void 0?l:a.id;if(i==null)throw new Error("No key found for item");return i}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,n){if(m.isValidElement(e.element)&&e.element.type===m.Fragment){let v=[];m.Children.forEach(e.element.props.children,h=>{v.push(h)});var a;let S=(a=e.index)!==null&&a!==void 0?a:0;for(let h of v)yield*this.getFullNode({element:h,index:S++},t,r,n);return}let l=e.element;if(!l&&e.value&&t&&t.renderer){let v=this.cache.get(e.value);if(v&&(!v.shouldInvalidate||!v.shouldInvalidate(this.context))){v.index=e.index,v.parentKey=n?n.key:null,yield v;return}l=t.renderer(e.value)}if(m.isValidElement(l)){let v=l.type;if(typeof v!="function"&&typeof v.getCollectionNode!="function"){let E=l.type;throw new Error(`Unknown element <${E}> in collection.`)}let S=v.getCollectionNode(l.props,this.context);var i;let h=(i=e.index)!==null&&i!==void 0?i:0,y=S.next();for(;!y.done&&y.value;){let E=y.value;e.index=h;var o;let x=(o=E.key)!==null&&o!==void 0?o:null;x==null&&(x=E.element?null:this.getKey(l,e,t,r));let T=[...this.getFullNode({...E,key:x,index:h,wrapper:qte(e.wrapper,E.wrapper)},this.getChildState(t,E),r?`${r}${l.key}`:l.key,n)];for(let _ of T){var s,u;_.value=(u=(s=E.value)!==null&&s!==void 0?s:e.value)!==null&&u!==void 0?u:null,_.value&&this.cache.set(_.value,_);var c;if(e.type&&_.type!==e.type)throw new Error(`Unsupported type <${Ug(_.type)}> in <${Ug((c=n==null?void 0:n.type)!==null&&c!==void 0?c:"unknown parent type")}>. Only <${Ug(e.type)}> is supported.`);h++,yield _}y=S.next(T)}return}if(e.key==null||e.type==null)return;let d=this;var f,p;let b={type:e.type,props:e.props,key:e.key,parentKey:n?n.key:null,value:(f=e.value)!==null&&f!==void 0?f:null,level:n?n.level+1:0,index:e.index,rendered:e.rendered,textValue:(p=e.textValue)!==null&&p!==void 0?p:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:Y_(function*(){if(!e.hasChildNodes||!e.childNodes)return;let v=0;for(let S of e.childNodes()){S.key!=null&&(S.key=`${b.key}${S.key}`);let h=d.getFullNode({...S,index:v},d.getChildState(t,S),b.key,b);for(let y of h)v++,yield y}})};yield b}constructor(){this.cache=new WeakMap}};function Y_(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function qte(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ug(e){return e[0].toUpperCase()+e.slice(1)}function l4(e,t,r){let n=g.useMemo(()=>new Yte,[]),{children:a,items:l,collection:i}=e;return g.useMemo(()=>{if(i)return i;let o=n.build({children:a,items:l},r);return t(o)},[n,a,l,i,r,t])}function i4(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function Wte(e){return Xte(e)}function Xte(e,t){for(let r of e)return r}function jg(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...q_(e,t),t],a=[...q_(e,r),r],l=n.slice(0,a.length).findIndex((i,o)=>i!==a[o]);return l!==-1?(t=n[l],r=a[l],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(a.findIndex(i=>i===t)>=0,-1)}function q_(e,t){let r=[],n=t;for(;(n==null?void 0:n.parentKey)!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}var W_=new WeakMap;function Zte(e){let t=W_.get(e);if(t!=null)return t;let r=0,n=a=>{for(let l of a)l.type==="section"?n(i4(l,e)):l.type==="item"&&r++};return n(e),W_.set(e,r),r}function Qte(e,t,r){let{id:n,key:a,closeOnSelect:l,isVirtualized:i,"aria-haspopup":o,onPressStart:s,onPressUp:u,onPress:c,onPressChange:d,onPressEnd:f,onClick:p,onHoverStart:b,onHoverChange:v,onHoverEnd:S,onKeyDown:h,onKeyUp:y,onFocus:E,onFocusChange:x,onBlur:T,selectionManager:_=t.selectionManager}=e,C=!!o,O=C&&e["aria-expanded"]==="true";var D;let L=(D=e.isDisabled)!==null&&D!==void 0?D:_.isDisabled(a);var w;let I=(w=e.isSelected)!==null&&w!==void 0?w:_.isSelected(a),k=e4.get(t),M=t.collection.getItem(a),B=e.onClose||k.onClose,$=wp(),A=()=>{var Q;if(!C&&(!(M==null||(Q=M.props)===null||Q===void 0)&&Q.onAction?M.props.onAction():e.onAction&&e.onAction(a),k.onAction)){let zt=k.onAction;zt(a)}},R="menuitem";C||(_.selectionMode==="single"?R="menuitemradio":_.selectionMode==="multiple"&&(R="menuitemcheckbox"));let P=md(),N=md(),z=md(),U={id:n,"aria-disabled":L||void 0,role:R,"aria-label":e["aria-label"],"aria-labelledby":P,"aria-describedby":[N,z].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};_.selectionMode!=="none"&&!C&&(U["aria-checked"]=I),i&&(U["aria-posinset"]=M==null?void 0:M.index,U["aria-setsize"]=Zte(t.collection));let K=g.useRef(!1),G=Q=>{d==null||d(Q),K.current=Q},H=g.useRef(null),V=Q=>{Q.pointerType!=="keyboard"&&(H.current={pointerType:Q.pointerType}),Q.pointerType==="mouse"&&(K.current||Q.target.click()),u==null||u(Q)},q=Q=>{var zt,jr;p==null||p(Q),A(),jX(Q,$,M.props.href,M==null?void 0:M.props.routerOptions);let ir=((zt=H.current)===null||zt===void 0?void 0:zt.pointerType)==="keyboard"?((jr=H.current)===null||jr===void 0?void 0:jr.key)==="Enter"||_.selectionMode==="none"||_.isLink(a):_.selectionMode!=="multiple"||_.isLink(a);ir=l??ir,B&&!C&&ir&&B(),H.current=null},{itemProps:ee,isFocused:W}=n4({id:n,selectionManager:_,key:a,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none",shouldUseVirtualFocus:k.shouldUseVirtualFocus}),{pressProps:ke,isPressed:J}=ku({onPressStart:s,onPress:c,onPressUp:V,onPressChange:G,onPressEnd:f,isDisabled:L}),{hoverProps:Y}=Lo({isDisabled:L,onHoverStart(Q){!du()&&!(O&&o)&&(_.setFocused(!0),_.setFocusedKey(a)),b==null||b(Q)},onHoverChange:v,onHoverEnd:S}),{keyboardProps:X}=j3({onKeyDown:Q=>{if(Q.repeat){Q.continuePropagation();return}switch(Q.key){case" ":H.current={pointerType:"keyboard",key:" "},Q.target.click();break;case"Enter":H.current={pointerType:"keyboard",key:"Enter"},Q.target.tagName!=="A"&&Q.target.click();break;default:C||Q.continuePropagation(),h==null||h(Q);break}},onKeyUp:y}),{focusProps:le}=H1({onBlur:T,onFocus:E,onFocusChange:x}),ye=Ve(M==null?void 0:M.props);delete ye.id;let kt=C3(M==null?void 0:M.props);return{menuItemProps:{...U,...oe(ye,kt,C?{onFocus:ee.onFocus,"data-collection":ee["data-collection"],"data-key":ee["data-key"]}:ee,ke,Y,X,le,k.shouldUseVirtualFocus||C?{onMouseDown:Q=>Q.preventDefault()}:void 0,L?void 0:{onClick:q}),tabIndex:ee.tabIndex!=null&&O&&!k.shouldUseVirtualFocus?-1:ee.tabIndex},labelProps:{id:P},descriptionProps:{id:N},keyboardShortcutProps:{id:z},isFocused:W,isFocusVisible:W&&_.isFocused&&du()&&!O,isSelected:I,isPressed:J,isDisabled:L}}function Jte(e){let{heading:t,"aria-label":r}=e,n=Ot();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}var Ic=2,ere=50,tre=1e3,X_=Math.PI/12;function rre(e){let{menuRef:t,submenuRef:r,isOpen:n,isDisabled:a}=e,l=g.useRef(void 0),i=g.useRef(void 0),o=g.useRef(0),s=g.useRef(void 0),u=g.useRef(void 0),c=g.useRef(void 0),d=g.useRef(2),[f,p]=g.useState(!1);gf({ref:r,onResize:()=>{r.current&&(i.current=r.current.getBoundingClientRect(),c.current=void 0)}});let b=()=>{p(!1),d.current=Ic,l.current=void 0},v=EZ(),S=xt(h=>{f&&h.preventDefault()});g.useEffect(()=>{f&&t.current?t.current.style.pointerEvents="none":t.current.style.pointerEvents=""},[t,f]),g.useEffect(()=>{let h=r.current,y=t.current;if(a||!h||!n||v!=="pointer"||!y){b();return}i.current=h.getBoundingClientRect();let E=x=>{if(x.pointerType==="touch"||x.pointerType==="pen")return;let T=Date.now();if(T-o.current<ere)return;clearTimeout(s.current),clearTimeout(u.current);let{clientX:_,clientY:C}=x;if(!l.current){l.current={x:_,y:C};return}if(!i.current)return;if(c.current||(c.current=_>i.current.right?"left":"right"),_<y.getBoundingClientRect().left||_>y.getBoundingClientRect().right||C<y.getBoundingClientRect().top||C>y.getBoundingClientRect().bottom){b();return}let O=l.current.x,D=l.current.y,L=c.current==="right"?i.current.left-O:O-i.current.right,w=Math.atan2(D-i.current.top,L)+X_,I=Math.atan2(D-i.current.bottom,L)-X_,k=Math.atan2(D-C,c.current==="left"?-(_-O):_-O),M=k<w&&k>I;d.current=M?Math.min(d.current+1,Ic):Math.max(d.current-1,0),d.current>=Ic?p(!0):p(!1),o.current=T,l.current={x:_,y:C},M&&(s.current=setTimeout(()=>{b(),u.current=setTimeout(()=>{let B=document.elementFromPoint(_,C);B&&y.contains(B)&&B.dispatchEvent(new PointerEvent("pointerover",{bubbles:!0,cancelable:!0}))},100)},tre))};return window.addEventListener("pointermove",E),window.addEventListener("pointerdown",S,!0),()=>{window.removeEventListener("pointermove",E),window.removeEventListener("pointerdown",S,!0),clearTimeout(s.current),clearTimeout(u.current),d.current=Ic}},[a,n,t,v,p,S,r])}function nre(e,t,r){let{parentMenuRef:n,submenuRef:a,type:l="menu",isDisabled:i,delay:o=200,shouldUseVirtualFocus:s}=e,u=Ot(),c=Ot(),{direction:d}=ua(),f=g.useRef(void 0),p=g.useCallback(()=>{f.current&&(clearTimeout(f.current),f.current=void 0)},[f]),b=xt(O=>{p(),t.open(O)}),v=xt(()=>{p(),t.close()});ve(()=>()=>{p()},[p]);let S=O=>{if(O.currentTarget.contains(document.activeElement))switch(O.key){case"ArrowLeft":d==="ltr"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"ArrowRight":d==="rtl"&&O.currentTarget.contains(O.target)&&(O.preventDefault(),O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break;case"Escape":var D;!((D=a.current)===null||D===void 0)&&D.contains(O.target)&&(O.stopPropagation(),v(),!s&&r.current&&Qt(r.current));break}};var h;let y={id:c,"aria-labelledby":u,submenuLevel:t.submenuLevel,...l==="menu"&&{onClose:t.closeAll,autoFocus:(h=t.focusStrategy)!==null&&h!==void 0?h:void 0,onKeyDown:S}},E=O=>{switch(O.key){case"ArrowRight":i||(d==="ltr"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;case"ArrowLeft":i||(d==="rtl"?(O.preventDefault(),t.isOpen||b("first"),l==="menu"&&(a!=null&&a.current)&&document.activeElement===(r==null?void 0:r.current)&&Qt(a.current)):t.isOpen?v():O.continuePropagation());break;default:O.continuePropagation();break}},x=O=>{!i&&(O.pointerType==="virtual"||O.pointerType==="keyboard")&&b("first")},T=O=>{!i&&(O.pointerType==="touch"||O.pointerType==="mouse")&&b()},_=O=>{i||(O&&!t.isOpen?f.current||(f.current=setTimeout(()=>{b()},o)):O||p())};hs(n,"focusin",O=>{var D;t.isOpen&&!((D=n.current)===null||D===void 0)&&D.contains(O.target)&&O.target!==r.current&&v()});let C=O=>O!==r.current;return rre({menuRef:n,submenuRef:a,isOpen:t.isOpen,isDisabled:i}),{submenuTriggerProps:{id:u,"aria-controls":t.isOpen?c:void 0,"aria-haspopup":i?void 0:l,"aria-expanded":t.isOpen?"true":"false",onPressStart:x,onPress:T,onHoverChange:_,onKeyDown:E,isOpen:t.isOpen},submenuProps:y,popoverProps:{isNonModal:!0,shouldCloseOnInteractOutside:C}}}function o4(e){let t=Hu(e),[r,n]=g.useState(null),[a,l]=g.useState([]),i=()=>{l([]),t.close()};return{focusStrategy:r,...t,open(o=null){n(o),t.open()},toggle(o=null){n(o),t.toggle()},close(){i()},expandedKeysStack:a,openSubmenu:(o,s)=>{l(u=>s>u.length?u:[...u.slice(0,s),o])},closeSubmenu:(o,s)=>{l(u=>u[s]===o?u.slice(0,s):u)}}}function are(e,t){let{triggerKey:r}=e,{expandedKeysStack:n,openSubmenu:a,closeSubmenu:l,close:i}=t,[o]=g.useState(n==null?void 0:n.length),s=g.useMemo(()=>n[o]===r,[n,r,o]),[u,c]=g.useState(null),d=g.useCallback(b=>{c(b??null),a(r,o)},[a,o,r]),f=g.useCallback(()=>{c(null),l(r,o)},[l,o,r]),p=g.useCallback(b=>{c(b??null),s?f():d(b)},[f,d,s]);return g.useMemo(()=>({focusStrategy:u,isOpen:s,open:d,close:f,closeAll:i,submenuLevel:o,setOpen:()=>{},toggle:p}),[s,d,f,i,u,p,o])}var lre=class{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);var r;return t&&(r=t.prevKey)!==null&&r!==void 0?r:null}getKeyAfter(e){let t=this.keyMap.get(e);var r;return t&&(r=t.nextKey)!==null&&r!==void 0?r:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return(t=this.keyMap.get(e))!==null&&t!==void 0?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}constructor(e,{expandedKeys:t}={}){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e,t=t||new Set;let r=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&(i.type==="section"||t.has(i.key)))for(let o of i.childNodes)r(o)};for(let i of e)r(i);let n=null,a=0;for(let[i,o]of this.keyMap)n?(n.nextKey=i,o.prevKey=n.key):(this.firstKey=i,o.prevKey=void 0),o.type==="item"&&(o.index=a++),n=o,n.nextKey=void 0;var l;this.lastKey=(l=n==null?void 0:n.key)!==null&&l!==void 0?l:null}},zn=class s4 extends Set{constructor(t,r,n){super(t),t instanceof s4?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}};function ire(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function nv(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:a="toggle",disabledBehavior:l="all"}=e,i=g.useRef(!1),[,o]=g.useState(!1),s=g.useRef(null),u=g.useRef(null),[,c]=g.useState(null),d=g.useMemo(()=>Z_(e.selectedKeys),[e.selectedKeys]),f=g.useMemo(()=>Z_(e.defaultSelectedKeys,new zn),[e.defaultSelectedKeys]),[p,b]=Dp(d,f,e.onSelectionChange),v=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[S,h]=g.useState(a);a==="replace"&&S==="toggle"&&typeof p=="object"&&p.size===0&&h("replace");let y=g.useRef(a);return g.useEffect(()=>{a!==y.current&&(h(a),y.current=a)},[a]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:S,setSelectionBehavior:h,get isFocused(){return i.current},setFocused(E){i.current=E,o(E)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(E,x="first"){s.current=E,u.current=x,c(E)},selectedKeys:p,setSelectedKeys(E){(n||!ire(E,p))&&b(E)},disabledKeys:v,disabledBehavior:l}}function Z_(e,t){return e?e==="all"?"all":new zn(e):t}var av=class u4{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)<0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let a=this.collection.getItem(n);(!t||a&&jg(this.collection,a,t)>0)&&(t=a)}var r;return(r=t==null?void 0:t.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new zn([r],r,r);else{let i=this.state.selectedKeys;var a;let o=(a=i.anchorKey)!==null&&a!==void 0?a:r;n=new zn(i,o,r);var l;for(let s of this.getKeyRange(o,(l=i.currentKey)!==null&&l!==void 0?l:r))n.delete(s);for(let s of this.getKeyRange(r,o))this.canSelectItem(s)&&n.add(s)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),a=this.collection.getItem(r);return n&&a?jg(this.collection,n,a)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let a=[],l=t;for(;l!=null;){let i=this.collection.getItem(l);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&a.push(l),l===r)return a;l=this.collection.getKeyAfter(l)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new zn(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new zn([r],r,r):new zn;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new zn;for(let n of t){let a=this.getKey(n);if(a!=null&&(r.add(a),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var a;let i=this.collection.getItem(n);(i==null?void 0:i.type)==="item"&&t.push(n);var l;i!=null&&i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((l=(a=Wte(i4(i,this.collection)))===null||a===void 0?void 0:a.key)!==null&&l!==void 0?l:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new zn)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new u4(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var a;this.allowsCellSelection=(a=n==null?void 0:n.allowsCellSelection)!==null&&a!==void 0?a:!1,this._isSelectAll=null,this.layoutDelegate=(n==null?void 0:n.layoutDelegate)||null}};function ore(e){let{onExpandedChange:t}=e,[r,n]=Dp(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),a=nv(e),l=g.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=l4(e,g.useCallback(o=>new lre(o,{expandedKeys:r}),[r]),null);return g.useEffect(()=>{a.focusedKey!=null&&!i.getItem(a.focusedKey)&&a.setFocusedKey(null)},[i,a.focusedKey]),{collection:i,expandedKeys:r,disabledKeys:l,toggleKey:o=>{n(sre(r,o))},setExpandedKeys:n,selectionManager:new av(i,a)}}function sre(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var c4=g.createContext(null),Pp=g.createContext(null),Tf=g.createContext(null),wf=g.createContext(null),d4=g.createContext(null),f4=class extends Jl{filter(e,t,r){let n=e.getItem(this.firstChildKey);if(n&&r(n.textValue,this)){let a=this.clone();return t.addDescendants(a,e),a}return null}};f4.type="submenutrigger";tv(f4,(e,t,r)=>{let{CollectionBranch:n}=g.useContext(Ku),a=g.useContext(Pp),l=g.useContext(Tf),i=are({triggerKey:r.key},l),o=g.useRef(null),s=an(t),{parentMenuRef:u,shouldUseVirtualFocus:c}=g.useContext(d4),{submenuTriggerProps:d,submenuProps:f,popoverProps:p}=nre({parentMenuRef:u,submenuRef:o,delay:e.delay,shouldUseVirtualFocus:c},i,s);return m.createElement(sa,{values:[[Af,{...d,onAction:void 0,ref:s}],[c4,{ref:o,...f}],[Ip,i],[rv,{trigger:"SubmenuTrigger",triggerRef:s,placement:"end top","aria-labelledby":f["aria-labelledby"],...p}]]},m.createElement(n,{collection:a.collection,parent:r}),e.children[1])},e=>e.children[0]);g.forwardRef(function(e,t){return[e,t]=Pt(e,t,c4),m.createElement(zR,{content:m.createElement(jR,e)},r=>m.createElement(ure,{props:e,collection:r,menuRef:t}))});function ure({props:e,collection:t,menuRef:r}){[e,r]=Pt(e,r,j_);let{filter:n,...a}=e,l=g.useMemo(()=>n?t.filter(n):t,[t,n]),i=ore({...e,collection:l,children:void 0}),o=g.useContext(Tf),{isVirtualized:s,CollectionRoot:u}=g.useContext(Ku),{menuProps:c}=Kte({...e,isVirtualized:s,onClose:e.onClose||(o==null?void 0:o.close)},i,r),d=Sr({defaultClassName:"react-aria-Menu",className:e.className,style:e.style,values:{isEmpty:i.collection.size===0}}),f=null;i.collection.size===0&&e.renderEmptyState&&(f=m.createElement("div",{role:"menuitem",style:{display:"contents"}},e.renderEmptyState()));let p=Ve(e,{global:!0});return m.createElement(Y1,null,m.createElement("div",{...oe(p,d,c),ref:r,slot:e.slot||void 0,"data-empty":i.collection.size===0||void 0,onScroll:e.onScroll},m.createElement(sa,{values:[[Pp,i],[QR,{elementType:"div"}],[YR,{name:"MenuSection",render:p4}],[d4,{parentMenuRef:r,shouldUseVirtualFocus:a==null?void 0:a.shouldUseVirtualFocus}],[Af,null],[j_,null],[Fte,null],[wf,i.selectionManager],[Tf,o??o4({})]]},m.createElement(u,{collection:i.collection,persistedKeys:WR(i.selectionManager.focusedKey),scrollRef:r})),f))}var cre=class extends av{get focusedKey(){return this.parent.focusedKey}get isFocused(){return this.parent.isFocused}setFocusedKey(e,t){return this.parent.setFocusedKey(e,t)}setFocused(e){this.parent.setFocused(e)}get childFocusStrategy(){return this.parent.childFocusStrategy}constructor(e,t){super(e.collection,t),this.parent=e}};function p4(e,t,r,n="react-aria-MenuSection"){var a,l;let i=g.useContext(Pp),{CollectionBranch:o}=g.useContext(Ku),[s,u]=G3();var c;let{headingProps:d,groupProps:f}=Jte({heading:u,"aria-label":(c=r.props["aria-label"])!==null&&c!==void 0?c:void 0}),p=Sr({defaultClassName:n,className:(a=r.props)===null||a===void 0?void 0:a.className,style:(l=r.props)===null||l===void 0?void 0:l.style,values:{}}),b=g.useContext(wf),v=nv(e),S=e.selectionMode!=null?new cre(b,v):b,h=Ve(e,{global:!0});return delete h.id,m.createElement("section",{...oe(h,p,f),ref:t},m.createElement(sa,{values:[[XR,{...d,ref:s}],[wf,S]]},m.createElement(o,{collection:i.collection,parent:r})))}tv(FR,p4);var Af=g.createContext(null);Bp(MR,function(e,t,r){var n;[e,t]=Pt(e,t,Af);let a=(n=j1(Af))===null||n===void 0?void 0:n.id,l=g.useContext(Pp),i=an(t),o=g.useContext(wf),{menuItemProps:s,labelProps:u,descriptionProps:c,keyboardShortcutProps:d,...f}=Qte({...e,id:a,key:r.key,selectionManager:o},l,i),{hoverProps:p,isHovered:b}=Lo({isDisabled:f.isDisabled}),v=Sr({...e,children:r.rendered,defaultClassName:"react-aria-MenuItem",values:{...f,isHovered:b,isFocusVisible:f.isFocusVisible,selectionMode:o.selectionMode,selectionBehavior:o.selectionBehavior,hasSubmenu:!!e["aria-haspopup"],isOpen:e["aria-expanded"]==="true"}}),S=e.href?"a":"div",h=Ve(e,{global:!0});return delete h.id,delete h.onClick,m.createElement(S,{...oe(h,v,s,p),ref:i,"data-disabled":f.isDisabled||void 0,"data-hovered":b||void 0,"data-focused":f.isFocused||void 0,"data-focus-visible":f.isFocusVisible||void 0,"data-pressed":f.isPressed||void 0,"data-selected":f.isSelected||void 0,"data-selection-mode":o.selectionMode==="none"?void 0:o.selectionMode,"data-has-submenu":!!e["aria-haspopup"]||void 0,"data-open":e["aria-expanded"]==="true"||void 0},m.createElement(sa,{values:[[mR,{slots:{[Ef]:u,label:u,description:c}}],[ZR,d]]},v.children))});function dre(e,t){let{role:r="dialog"}=e,n=md();n=e["aria-label"]?void 0:n;let a=g.useRef(!1);return g.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Va(t.current);let l=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(a.current=!0,t.current&&(t.current.blur(),Va(t.current)),a.current=!1)},500);return()=>{clearTimeout(l)}}},[t]),nR(),{dialogProps:{...Ve(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:l=>{a.current&&l.stopPropagation()}},titleProps:{id:n}}}var h4=g.createContext(null),Ip=g.createContext(null);function fre(e){let t=o4(e),r=g.useRef(null),{triggerProps:n,overlayProps:a}=pJ({},t,r),[l,i]=g.useState(null),o=g.useCallback(()=>{r.current&&i(r.current.offsetWidth+"px")},[r]);return gf({ref:r,onResize:o}),n.id=Ot(),a["aria-labelledby"]=n.id,m.createElement(sa,{values:[[Ip,t],[Tf,t],[h4,a],[rv,{trigger:"DialogTrigger",triggerRef:r,"aria-labelledby":a["aria-labelledby"],style:{"--trigger-width":l}}]]},m.createElement(AZ,{...n,ref:r,isPressed:t.isOpen},e.children))}g.forwardRef(function(e,t){let r=e["aria-labelledby"];[e,t]=Pt(e,t,h4);let{dialogProps:n,titleProps:a}=dre({...e,"aria-labelledby":r},t),l=g.useContext(Ip);!n["aria-label"]&&!n["aria-labelledby"]&&(e["aria-labelledby"]&&(n["aria-labelledby"]=e["aria-labelledby"]));let i=Sr({defaultClassName:"react-aria-Dialog",className:e.className,style:e.style,children:e.children,values:{close:(l==null?void 0:l.close)||(()=>{})}}),o=Ve(e,{global:!0});return m.createElement("section",{...oe(o,i,n),ref:t,slot:e.slot||void 0},m.createElement(sa,{values:[[gR,{slots:{[Ef]:{},title:{...a,level:2}}}],[VR,{slots:{[Ef]:{},close:{onPress:()=>l==null?void 0:l.close()}}}]]},i.children))});var lv=({ariaLabel:e,placement:t="bottom-start",hasChrome:r=!0,hasCloseButton:n=!1,closeLabel:a,offset:l=8,padding:i,popover:o,children:s,defaultVisible:u,visible:c,onVisibleChange:d,...f})=>{e||gte("The 'ariaLabel' prop on 'PopoverProvider' will become mandatory in Storybook 11. Provide a concise, accessible label describing the popover's purpose.");let p=X1(t),[b,v]=g.useState(u??!1),S=g.useCallback(y=>{v(y),d==null||d(y)},[d]),h=g.useCallback(()=>S(!1),[S]);return m.createElement(fre,{defaultOpen:u,isOpen:c??b,onOpenChange:S,...f},m.createElement(wZ,null,g.cloneElement(s,{"aria-haspopup":"dialog"})),m.createElement(Nte,{"aria-label":e,placement:p,offset:l,style:{outline:"none"}},m.createElement(ju,{hasChrome:r,hideLabel:a,onHide:n?h:void 0,padding:i},typeof o=="function"?o({onHide:h}):o)))},g4=g.forwardRef((e,t)=>m.createElement(ju,{ref:t,...e}));g4.displayName="Tooltip";g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-DWjyIDqC.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltip})));g.lazy(()=>Qn(()=>import("./WithTooltip-65CFNBJE-DWjyIDqC.js"),__vite__mapDeps([6,1,2,3,4]),import.meta.url).then(e=>({default:e.WithTooltipPure})));const{deprecate:Spe}=__STORYBOOK_MODULE_CLIENT_LOGGER__;F.div(({theme:e})=>({fontWeight:e.typography.weight.bold}));F.span();F.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}));F.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}));F.div({padding:15,width:280,boxSizing:"border-box"});const{deprecate:pre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var hre=Gt(zl(),1);const{deprecate:gre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var mre=F(({active:e,loading:t,disabled:r,...n})=>m.createElement("span",{...n}))(({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular}),({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{},({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{},({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{}),yre=F.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),bre=F.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),vre=F.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),Ere=F.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),Sre=F.button(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"background 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:0}}),({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}},({theme:e,as:t})=>t==="label"&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}},({disabled:e})=>e&&{cursor:"not-allowed"}),xre=(0,hre.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",role:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",role:"link",href:r,...n&&{as:n,to:r}}})),m4=g.forwardRef((e,t)=>{let{loading:r=!1,title:n=m.createElement("span",null,"Loading state"),center:a=null,right:l=null,active:i=!1,disabled:o=!1,isIndented:s=!1,href:u=void 0,onClick:c=void 0,icon:d,input:f,LinkWrapper:p=void 0,...b}=e,v={active:i,disabled:o},S=xre(e),h=d||f;return gre("`ListItem` is deprecated and will be removed in Storybook 11, use `MenuItem` instead."),m.createElement(Sre,{"data-deprecated":"ListItem",ref:t,...b,...v,...S},m.createElement(m.Fragment,null,h&&m.createElement(Ere,{...v},h),n||a?m.createElement(bre,{isIndented:s&&!h},n&&m.createElement(mre,{...v,loading:r},n),a&&m.createElement(vre,{...v},a)):null,l&&m.createElement(yre,{...v},l)))});m4.displayName="ListItem";var y4=m4,$re=F.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:15.5*32+8},({theme:e})=>({borderRadius:e.appBorderRadius+2}),({theme:e})=>e.base==="dark"?{background:e.background.content}:{}),_re=F.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),Cre=({id:e,onClick:t,...r})=>{let{active:n,disabled:a,title:l,href:i}=r,o=g.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:a,title:l,href:i}),[t,e,n,a,l,i]);return m.createElement(y4,{id:`list-item-${e}`,...r,...t&&{onClick:o}})},b4=({links:e,LinkWrapper:t,...r})=>{pre("`TooltipLinkList` is deprecated and will be removed in Storybook 11, use `ActionList` or `MenuItem` and `WithMenu` instead.");let n=Array.isArray(e[0])?e:[e],a=n.some(l=>l.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return m.createElement($re,{"data-deprecated":"TooltipLinkList",...r,className:"sb-list"},n.filter(l=>l.length).map((l,i)=>m.createElement(_re,{key:l.map(o=>o.id).join(`~${i}~`)},l.map(o=>"content"in o?m.createElement(g.Fragment,{key:o.id},o.content):m.createElement(Cre,{key:o.id,isIndented:a,LinkWrapper:t,...o})))))};const{deprecate:kp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{deprecate:Tre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var wre=F.div(({backgroundColor:e,border:t=!1,innerStyle:r={},scrollable:n,theme:a})=>({color:a.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${a.barTextColor} ${t?e||a.barBg:"transparent"}`,scrollbarWidth:"thin",overflow:n?"auto":"hidden",overflowY:"hidden",display:"flex",alignItems:"center",gap:n?0:6,paddingInline:n?0:6,...t?{boxShadow:`${a.appBorderColor} 0 -1px 0 0 inset`,background:e||a.barBg}:{},...r})),Are=F.div(({innerStyle:e})=>({minHeight:40,display:"flex",alignItems:"center",width:"100%",gap:6,paddingInline:6,...e})),Mo=g.forwardRef(({scrollable:e=!0,children:t,innerStyle:r,...n},a)=>m.createElement(wre,{...n,ref:a,innerStyle:e?void 0:r,scrollable:e},e?m.createElement(Are,{innerStyle:r},t):t));Mo.displayName="Bar";var py=F.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},({scrollable:e})=>e?{flexShrink:0}:{},({left:e})=>e?{"& > *":{marginLeft:4}}:{},({right:e})=>e?{gap:6}:{});py.displayName="Side";var Ore=F.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,width:"100%",backgroundColor:e||""})),Dre=F(Mo)({paddingInline:0}),iv=({children:e,backgroundColor:t,className:r="",...n})=>{Tre('FlexBar is deprecated. Use Bar with justifyContent: "space-between" instead.');let[a,l]=g.Children.toArray(e);return m.createElement(Dre,{"data-deprecated":"FlexBar",backgroundColor:t,className:`sb-bar ${r}`,...n},m.createElement(Ore,{bgColor:t},m.createElement(py,{scrollable:n.scrollable,left:!0},a),l?m.createElement(py,{right:!0},l):null))};iv.displayName="FlexBar";const{deprecate:Rre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Nre=e=>typeof e.props.href=="string",Lre=e=>typeof e.props.href!="string";function Mre({children:e,...t},r){let n={props:t,ref:r};if(Nre(n))return m.createElement("a",{ref:n.ref,...n.props},e);if(Lre(n))return m.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}var v4=g.forwardRef(Mre);v4.displayName="ButtonOrLink";var Fre=F(v4,{shouldForwardProp:fp})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}}),({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}),Gu=g.forwardRef((e,t)=>(Rre("The `TabButton` component is deprecated. Use `TabList` instead."),m.createElement(Fre,{"data-deprecated":"TabButton",ref:t,...e})));Gu.displayName="TabButton";var Bre=F.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),Pre=F.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),Ire=F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.color.defaultText})),kre=F.div(({theme:e})=>({fontSize:e.typography.size.s2-1})),zre=F.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Vu=({title:e,description:t,footer:r})=>m.createElement(Bre,null,m.createElement(Pre,null,m.createElement(Ire,null,e),t&&m.createElement(zre,null,t)),r&&m.createElement(kre,null,r));const{deprecate:Hre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var E4=F.div(({active:e})=>e?{display:"block"}:{display:"none"}),Ure=e=>(Hre("The `childrenToList` tabs helper is deprecated. Use `TabsView` instead."),g.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:a}})=>{let l=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:typeof l=="function"?l:({active:i})=>m.createElement(E4,{active:i,role:"tabpanel"},l)}}));const{deprecate:jre}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var Kre=F.span(({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"})),Gre=F(Gu)(({active:e,theme:t,preActive:r})=>`
732
732
  color: ${r||e?t.barSelectedColor:t.barTextColor};
733
733
  .addon-collapsible-icon {
734
734
  color: ${r||e?t.barSelectedColor:t.barTextColor};
@@ -792,7 +792,7 @@ ${t}`);let r=t.match(wee);if(!r)return m.createElement(g.Fragment,null,t);let[,n
792
792
  ${Fs(.02,e.input.background)} 100%)`:`linear-gradient(to right,
793
793
  ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
794
794
  ${by(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
795
- ${by(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:a?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:go(e.color.secondary,.4)},o={width:16,height:16,borderRadius:50,cursor:a?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${go(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Fs(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":l,"&::-moz-range-track":l,"&::-ms-track":{...l,color:"transparent"},"&::-moz-range-thumb":{...o,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...o,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...o,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),c6=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),Zie=F(c6)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Qie=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function Jie(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}var eoe=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:o,argType:s})=>{var b;let u=v=>{r(die(v.target.value))},c=t!==void 0,d=g.useMemo(()=>Jie(l),[l]),f=!!((b=s==null?void 0:s.table)!=null&&b.readonly),p=tn(e);return m.createElement(Qie,{readOnly:f},m.createElement("label",{htmlFor:p,className:"sb-sr-only"},e),m.createElement(c6,null,n),m.createElement(Xie,{id:p,type:"range",disabled:f,onChange:u,name:e,min:n,max:a,step:l,onFocus:o,onBlur:i,value:t??n}),m.createElement(Zie,{numberOFDecimalsPlaces:d,max:a},c?t.toFixed(d):"--"," / ",a))},toe=F.label({display:"flex"}),roe=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),noe=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{var p;let o=b=>{r(b.target.value)},s=!!((p=i==null?void 0:i.table)!=null&&p.readonly),[u,c]=g.useState(!1),d=g.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return m.createElement(je,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:np(e),onClick:d},"Set string");let f=typeof t=="string";return m.createElement(toe,null,m.createElement(Ql.Textarea,{id:tn(e),maxLength:l,onChange:o,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:f?void 0:"error",name:e,value:f?t:"",onFocus:n,onBlur:a}),l&&m.createElement(roe,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},aoe=F(Ql.Input)({padding:10});function loe(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var ioe=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let l=g.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function o(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(f=>URL.createObjectURL(f));e(d),loe(n||[])}g.useEffect(()=>{n==null&&l.current&&(l.current.value="")},[n,t]);let s=tn(t);return m.createElement(m.Fragment,null,m.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),m.createElement(aoe,{ref:l,id:s,type:"file",name:t,multiple:!0,disabled:i,onChange:o,accept:r,size:"flex"}))},ooe=g.lazy(()=>Qn(()=>import("./Color-FRDS63T2-BVVRSzFu.js"),__vite__mapDeps([7,1,2,3,4]),import.meta.url)),soe=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},m.createElement(ooe,{...e})),uoe={array:wC,object:wC,boolean:nie,color:soe,date:uie,number:pie,check:ii,"inline-check":ii,radio:ii,"inline-radio":ii,select:ii,"multi-select":ii,range:eoe,text:noe,file:ioe},AC=()=>m.createElement(m.Fragment,null,"-"),coe=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:l}=e,[i,o]=g.useState(!1),[s,u]=g.useState({value:t});g.useEffect(()=>{i||u({value:t})},[i,t]);let c=g.useCallback(S=>(u({value:S}),r({[a]:S}),S),[r,a]),d=g.useCallback(()=>o(!1),[]),f=g.useCallback(()=>o(!0),[]);if(!l||l.disable){let S=(l==null?void 0:l.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&S?m.createElement(so,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(AC,null)}let p={name:a,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},b=uoe[l.type]||AC;return m.createElement(b,{...p,...l,controlType:l.type})},doe=F.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:ia({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),foe=({tags:e})=>{var l,i;let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:m.createElement(m.Fragment,null,m.createElement(doe,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",(l=e.deprecated)==null?void 0:l.toString())),r&&t.map(o=>m.createElement("tr",{key:o.name},m.createElement("td",null,m.createElement("code",null,o.name)),m.createElement("td",null,o.description))),a&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,(i=e.returns)==null?void 0:i.description)))))};function poe(e){return[...new Set(e)]}var Rf=8,OC=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),hoe=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),goe=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),moe=F.span(ia,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),yoe=F.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),boe=F.button(ia,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),voe=F.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),Eoe=F(bz)({marginLeft:4}),Soe=F(k5)({marginLeft:4}),xoe=()=>m.createElement("span",null,"-"),gv=({text:e,simple:t})=>m.createElement(moe,{simple:t},e),$oe=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return poe(t)},DC=e=>e.slice(0,Rf).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),_oe=e=>e.slice(Rf).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),Coe=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=g.useState(!1),[i,o]=g.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(gv,{text:s});let u=$oe(s),c=u.length;return c>Rf?m.createElement(OC,{isExpanded:i},DC(u),m.createElement(hoe,{open:i,onToggle:d=>o(d.currentTarget.open)},m.createElement(goe,null,_oe(u)),m.createElement(yoe,{role:"button"},i?"Show less...":`Show ${c-Rf} more...`))):m.createElement(OC,null,DC(u))}return m.createElement(lv,{ariaLabel:"Arg value details",placement:"bottom",visible:a,onVisibleChange:u=>{l(u)},hasCloseButton:!0,popover:m.createElement(voe,null,m.createElement(Pu,{language:"jsx",format:!1},n))},m.createElement(boe,{className:"sbdocs-expandable"},m.createElement("span",null,s),a?m.createElement(Eoe,null):m.createElement(Soe,null)))},em=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(xoe,null):m.createElement(Coe,{value:e,initialExpandedArgs:t}),Toe=F.span({fontWeight:"bold"}),woe=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Aoe=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...ia({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Ooe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?4:0})),Doe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Roe=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),Noe=e=>e&&{summary:typeof e=="string"?e:e.name},Uc=e=>{var v;let[t,r]=g.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:o}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||Noe(n.type),f=c.defaultValue||n.defaultValue,p=(v=n.type)==null?void 0:v.required,b=u!=null&&u!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(Roe,{expandable:i??!1},m.createElement(Toe,null,s),p?m.createElement(woe,{title:"Required"},"*"):null),l?null:m.createElement("td",null,b&&m.createElement(Aoe,null,m.createElement(Z4,null,u)),c.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(Doe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o})),m.createElement(foe,{tags:c.jsDocTags})):m.createElement(Ooe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o}))),l?null:m.createElement("td",null,m.createElement(em,{value:f,initialExpandedArgs:o})),a?m.createElement("td",null,m.createElement(coe,{...e,isHovered:t})):null)},Loe=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),Moe=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Foe=({inAddonPanel:e})=>{let[t,r]=g.useState(!0);return g.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(Loe,{inAddonPanel:e},m.createElement(Vu,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:m.createElement(Moe,null,e&&m.createElement(m.Fragment,null,m.createElement(so,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(T0,null)," Read docs")),!e&&m.createElement(so,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(T0,null)," Learn how to set that up"))}))},Boe=F(yz)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Poe=F(I5)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Ioe=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),koe=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),zoe=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Hoe=F.td({position:"relative"}),Uoe=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${by(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),RC=F.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),tm=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=g.useState(n),o=e==="subsection"?zoe:koe,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(Uoe,{title:c},m.createElement(o,{colSpan:1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:0},c),m.createElement(Ioe,null,l?m.createElement(Boe,null):m.createElement(Poe,null),t)),m.createElement(Hoe,{colSpan:a-1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:-1,style:{outline:"none"}},c),l?null:u)),l?r:null)},joe=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),jc=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Rt=F.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),st=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Koe=()=>m.createElement(joe,null,m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"})))),Goe=F.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Voe=F.div({position:"relative"}),Yoe=F.div({position:"absolute",right:22,top:10}),qoe=F(je)({margin:"-4px -12px -4px 0"}),Woe={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},Xoe=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:o,subcategory:s}=(i==null?void 0:i.table)||{};if(o){let u=r.sections[o]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:l,...i});else{let c=u.subsections[s]||[];c.push({key:l,...i}),u.subsections[s]=c}r.sections[o]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:l,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:l,...i})});let n=Woe[t],a=l=>n?Object.keys(l).reduce((i,o)=>({...i,[o]:l[o].sort(n)}),{}):l;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:a(r.sections[i].subsections)}}),{})}},Zoe=(e,t,r)=>{try{return eL(e,t,r)}catch(n){return Eae.warn(n.message),!1}},Nf=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,inTabPanel:l,initialExpandedArgs:i,sort:o="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return m.createElement(H4,null,E," ",m.createElement(so,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},m.createElement(T0,null)," Read the docs"))}if(s)return m.createElement(Koe,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=Xoe(Wae(u||{},E=>{var x;return!((x=E==null?void 0:E.table)!=null&&x.disable)&&Zoe(E,c||{},d||{})}),o),p=f.ungrouped.length===0,b=Object.entries(f.sections).length===0,v=Object.entries(f.ungroupedSubsections).length===0;if(p&&b&&v)return m.createElement(Foe,{inAddonPanel:a});let S=1;t&&(S+=1),n||(S+=2);let h=Object.keys(f.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:i};return m.createElement(A1,null,m.createElement(Voe,null,t&&!s&&r&&m.createElement(Yoe,null,m.createElement(qoe,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},m.createElement(Sz,null))),m.createElement(Goe,{compact:n,inAddonPanel:a,inTabPanel:l,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement("span",null,"Control")):null)),m.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(E=>m.createElement(Uc,{key:E.key,row:E,arg:c&&c[E.key],...y})),Object.entries(f.ungroupedSubsections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"subsection",colSpan:S},x.map(T=>m.createElement(Uc,{key:T.key,row:T,arg:c&&c[T.key],expandable:h,...y})))),Object.entries(f.sections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"section",colSpan:S},x.ungrouped.map(T=>m.createElement(Uc,{key:T.key,row:T,arg:c&&c[T.key],...y})),Object.entries(x.subsections).map(([T,_])=>m.createElement(tm,{key:T,label:T,level:"subsection",colSpan:S},_.map(C=>m.createElement(Uc,{key:C.key,row:C,arg:c&&c[C.key],expandable:h,...y}))))))))))},ut=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mv=600,Qoe=F.h1(({theme:e})=>({...Ge({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Joe=F.h2(({theme:e})=>({...Ge({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:it(.25,e.color.defaultText)})),ese=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?it(.1,e.color.defaultText):it(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[ut("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[ut("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ut("div")]:t,[ut("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ut("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ut("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ut("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ut("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ut("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ut("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ut("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ut("img")]:{maxWidth:"100%"},[ut("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ut("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ut("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ut("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ut("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ut("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ut("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),tse=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mv}px)`]:{}})),rse=({children:e,toc:t})=>m.createElement(tse,{className:"sbdocs sbdocs-wrapper"},t,m.createElement(ese,{className:"sbdocs sbdocs-content"},e));const{logger:nse}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var d6=typeof document<"u"?m.useLayoutEffect:()=>{},f6={prefix:String(Math.round(Math.random()*1e10)),current:0},p6=m.createContext(f6),ase=m.createContext(!1),rm=new WeakMap;function lse(e=!1){let t=g.useContext(p6),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=rm.get(l);i==null?rm.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,rm.delete(l))}r.current=++t.current}return r.current}function ise(e){let t=g.useContext(p6),r=lse(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function ose(e){let t=m.useId(),[r]=g.useState(fse()),n=r?"react-aria":`react-aria${f6.prefix}`;return e||`${n}-${t}`}var sse=typeof m.useId=="function"?ose:ise;function use(){return!1}function cse(){return!0}function dse(e){return()=>{}}function fse(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(dse,use,cse):g.useContext(ase)}var pse=!!(typeof window<"u"&&window.document&&window.document.createElement),_d=new Map,ys;typeof FinalizationRegistry<"u"&&(ys=new FinalizationRegistry(e=>{_d.delete(e)}));function hse(e){let[t,r]=g.useState(e),n=g.useRef(null),a=sse(t),l=g.useRef(null);if(ys&&ys.register(l,a),pse){let i=_d.get(a);i&&!i.includes(n)?i.push(n):_d.set(a,[n])}return d6(()=>{let i=a;return()=>{ys&&ys.unregister(l),_d.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function gse(e){if(mse())e.focus({preventScroll:!0});else{let t=yse(e);e.focus(),bse(t)}}var Kc=null;function mse(){if(Kc==null){Kc=!1;try{document.createElement("div").focus({get preventScroll(){return Kc=!0,!0}})}catch{}}return Kc}function yse(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function bse(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function yv(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function h6(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Yu(e){let t=null;return()=>(t==null&&(t=e()),t)}var xy=Yu(function(){return h6(/^Mac/i)}),vse=Yu(function(){return h6(/^iPad/i)||xy()&&navigator.maxTouchPoints>1}),Ese=Yu(function(){return yv(/AppleWebKit/i)&&!Sse()}),Sse=Yu(function(){return yv(/Chrome/i)}),xse=Yu(function(){return yv(/Firefox/i)});g.createContext({isNative:!0,open:_se,useHref:e=>e});function Lf(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;xse()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(xy()?l=!0:i=!0);let u=Ese()&&xy()&&!vse()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Lf.isOpening=r,gse(e),e.dispatchEvent(u),Lf.isOpening=!1}Lf.isOpening=!1;function $se(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function _se(e,t){$se(e,r=>Lf(r,t))}var as=new Map,NC=new Set;function LC(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);a||(a=new Set,as.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),as.delete(n.target)),as.size===0)){for(let l of NC)l();NC.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?LC():document.addEventListener("DOMContentLoaded",LC));var nm;nm=m.useInsertionEffect;var am;typeof document<"u"&&((am=m.useInsertionEffect)!==null&&am!==void 0||m.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=g.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Ur=globalThis?globalThis.__DOCS_CONTEXT__:g.createContext(null);function Cse(e,t){let r=Tse([e],t);return r&&r[0]}function Tse(e,t){let[r,n]=g.useState({});return g.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return}})}var wse=Symbol("mdxWrappedBlock"),MC=m.createContext(null),It=(e,t)=>{let r=n=>{let a=m.useContext(MC),l=cv()[e];if(a!=null&&a.has(e)||l===r)return m.createElement(t,{...n});if(l){let i=new Set(a??[]);return i.add(e),m.createElement(MC.Provider,{value:i},m.createElement(l,{...n}))}return m.createElement(t,{...n})};return r.displayName=e,r[wse]=!0,r},g6=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},Ase=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let o=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:o,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Ose=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=g.useContext(Ur),r=g6(e,t),n=Cse(r,t);if(!n)return m.createElement(b6,null);let a=Ase(e,n,t);return a?m.createElement(Bse,{...a}):null},Dse=It("Story",Ose),Kp=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),m6=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,a]=r.split("?"),l=new URLSearchParams(a||"");return Object.entries(t).forEach(([i,o])=>{l.set(i,o)}),l.set("id",e),`${n}?${l.toString()}`},{window:Rse}=globalThis,Nse=class extends g.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=Rse.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...l}=this.props;return m.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},y6=g.createContext({scale:1}),$y=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,Lse=e=>{let t=g.useRef(),[r,n]=g.useState(!0),[a,l]=g.useState(),{story:i,height:o,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return g.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:p,description:b})=>l(new Error(`${p} - ${b}`)),showException:p=>l(p)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),a?m.createElement("pre",null,m.createElement(TR,{error:a})):m.createElement(m.Fragment,null,o?m.createElement("style",null,`#${$y(e)} { min-height: ${o}; transform: translateZ(0); overflow: auto }`):null,r&&m.createElement(b6,null),m.createElement("div",{ref:t,id:`${$y(e)}-inner`,"data-name":i.name}))},Mse=({story:e,height:t="500px"})=>m.createElement("div",{style:{width:"100%",height:t}},m.createElement(y6.Consumer,null,({scale:r})=>m.createElement(Nse,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:m6(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Fse=F.strong(({theme:e})=>({color:e.color.orange})),Bse=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?m.createElement(Fse,null,"This story mounts inside of play. Set"," ",m.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):m.createElement("div",{id:$y(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?m.createElement(Lse,{...e}):m.createElement(Mse,{...e}))},b6=()=>m.createElement(F4,null),Pse=F(_4)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),lm=F.div({display:"flex",alignItems:"center",gap:4}),FC=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Ise=({isLoading:e,storyId:t,zoom:r,resetZoom:n,...a})=>m.createElement(Pse,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...a},m.createElement(lm,{key:"left"},e?[1,2,3].map(l=>m.createElement(FC,{key:l})):m.createElement(m.Fragment,null,m.createElement(je,{padding:"small",variant:"ghost",key:"zoomin",onClick:l=>{l.preventDefault(),r(.8)},ariaLabel:"Zoom in"},m.createElement(lz,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomout",onClick:l=>{l.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},m.createElement(iz,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomreset",onClick:l=>{l.preventDefault(),n()},ariaLabel:"Reset zoom"},m.createElement(oz,null)))),e?m.createElement(lm,{key:"right"},m.createElement(FC,null)):t&&m.createElement(lm,{key:"right"},m.createElement(je,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},m.createElement("a",{href:m6(t),target:"_blank",rel:"noopener noreferrer"},m.createElement(mz,null))))),kse=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),zse=F(Mo)({marginTop:-40,marginBottom:40}),Hse=F(uv)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content)}})),Use=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Kp(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function jse(e){if(g.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var Kse=F(Ise)({position:"absolute",top:0,left:0,right:0,height:40}),Gse=2e3,v6=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:i=!1,additionalActions:o,className:s,layout:u="padded",inline:c=!1,...d})=>{let[f,p]=g.useState(i),[b,v]=g.useState(null),[S,h]=g.useState(1),y=g.useMemo(()=>o?[...o]:[],[o]),E=hse(),x=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),T=g.useContext(Ur),_=g.useCallback(async w=>{let{createCopyToClipboardFunction:I}=await Qn(async()=>{const{createCopyToClipboardFunction:k}=await Promise.resolve().then(()=>Tne);return{createCopyToClipboardFunction:k}},void 0,import.meta.url);await I()(w)},[]),C=g.useCallback(async()=>{try{await _((a==null?void 0:a.code)??""),v("Copied!")}catch(w){nse.error(w),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),Gse)},[_,a==null?void 0:a.code]),O=jse(n),D=!!(a&&a.error),L=!!(a&&!a.error);return m.createElement(m.Fragment,null,m.createElement(Use,{withSource:a,withToolbar:l,...d,className:x.join(" ")},l&&m.createElement(Kse,{isLoading:e,border:!0,zoom:w=>h(S*w),resetZoom:()=>h(1),storyId:!e&&O?g6(O,T):void 0}),m.createElement(y6.Provider,{value:{scale:S}},m.createElement(kse,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},m.createElement(CR.Element,{centered:u==="centered",scale:c?S:1},Array.isArray(n)?n.map((w,I)=>m.createElement("div",{key:I},w)):m.createElement("div",null,n)))),L&&f&&m.createElement("div",{id:E},m.createElement(Hse,{...a,dark:!0,copyable:!1}))),(a||y.length>0)&&m.createElement(zse,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},D&&m.createElement(je,{ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},m.createElement(Px,null)," No code available"),L&&m.createElement(m.Fragment,null,m.createElement(Uu,{ariaLabel:!1,pressed:f,"aria-expanded":f,"aria-controls":E,onClick:()=>p(!f),variant:"ghost",className:`docblock-code-toggle${f?" docblock-code-toggle--expanded":""}`},m.createElement(Px,null)," ",f?"Hide code":"Show code"),m.createElement(je,{ariaLabel:!1,variant:"ghost",onClick:C},m.createElement(uz,null)," ",b??"Copy code")),y.map(({title:w,className:I,onClick:k,disabled:M},B)=>m.createElement(je,{key:B,className:I,onClick:k,disabled:!!M,variant:"ghost"},w))))};F(v6)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Vse=F(L4)({height:"fit-content"}),E6=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return m.createElement(Nf,{...r[0][1],...t});let n=r.map(([a,l],i)=>({id:`prop_table_div_${a}`,title:a,children:()=>{let o=i===0?t:{sort:t.sort};return m.createElement(Nf,{inTabPanel:!0,key:`prop_table_${a}`,...l,...o})}}));return m.createElement(Vse,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ge,({theme:e})=>({...Kp(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:it(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:it(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...Kp(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:it(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));F.div(({theme:e})=>({...Kp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:Yse}=__STORYBOOK_MODULE_CORE_EVENTS__;function qse(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,a=" ",l,i=!0,o=0;function s(L,w){let I=w.appendChild(c(L));if(L.children.length){let k=d(L.isCollapsed);L.children.forEach(M=>{s(M,k)}),I.appendChild(k)}}function u(L,w){let I=d(!1);if(w.forEach(k=>{s(k,I)}),l=L||l,l!==null)return l.firstChild&&l.removeChild(l.firstChild),w.length===0?l:l.appendChild(I)}function c(L){let w=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&w.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",L.textContent),e.includeHtml&&L.childNodes.length?t.call(L.childNodes,k=>{I.appendChild(k.cloneNode(!0))}):I.textContent=L.textContent,I.setAttribute("href",`${e.basePath}#${L.id}`),I.setAttribute("class",`${e.linkClass+a}node-name--${L.nodeName}${a}${e.extraLinkClasses}`),w.appendChild(I),w}function d(L){let w=e.orderedList?"ol":"ul",I=document.createElement(w),k=e.listClass+a+e.extraListClasses;return L&&(k=k+a+e.collapsibleClass,k=k+a+e.isCollapsedClass),I.setAttribute("class",k),I}function f(){let L=C(),w=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=l.offsetTop),L>e.fixedSidebarOffset?w.className.indexOf(e.positionFixedClass)===-1&&(w.className+=a+e.positionFixedClass):w.className=w.className.replace(a+e.positionFixedClass,"")}function p(L){let w=0;return L!==null&&(w=L.offsetTop,e.hasInnerContainers&&(w+=p(L.offsetParent))),w}function b(L,w){return L&&L.className!==w&&(L.className=w),L}function v(L,w){var $,A;e.positionFixedSelector&&f();let I=L,k=($=w==null?void 0:w.target)!=null&&$.getAttribute?(A=w==null?void 0:w.target)==null?void 0:A.getAttribute("href"):null,M=k&&k.charAt(0)==="#"?x(k.replace("#","")):!1,B=i||M;if(w&&o<5&&o++,B&&l&&I.length>0){let R=O(I),P=l.querySelector(`.${e.activeLinkClass}`),N=R.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),z=window.location.hash.replace("#",""),U=N,K=T();k&&M?U=k.replace("#",""):z&&z!==N&&K&&(x(N)||o<=2)&&(U=z);let G=l.querySelector(`.${e.linkClass}[href="${e.basePath}#${U}"]`);if(P===G)return;let H=l.querySelectorAll(`.${e.linkClass}`);t.call(H,W=>{b(W,W.className.replace(a+e.activeLinkClass,""))});let V=l.querySelectorAll(`.${e.listItemClass}`);t.call(V,W=>{b(W,W.className.replace(a+e.activeListItemClass,""))}),G&&G.className.indexOf(e.activeLinkClass)===-1&&(G.className+=a+e.activeLinkClass);let q=G==null?void 0:G.parentNode;q&&q.className.indexOf(e.activeListItemClass)===-1&&(q.className+=a+e.activeListItemClass);let ee=l.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(ee,W=>{W.className.indexOf(e.isCollapsedClass)===-1&&(W.className+=a+e.isCollapsedClass)}),G!=null&&G.nextSibling&&G.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&b(G.nextSibling,G.nextSibling.className.replace(a+e.isCollapsedClass,"")),S(G==null?void 0:G.parentNode.parentNode)}}function S(L){return L&&L.className.indexOf(e.collapsibleClass)!==-1&&L.className.indexOf(e.isCollapsedClass)!==-1?(b(L,L.className.replace(a+e.isCollapsedClass,"")),S(L.parentNode.parentNode)):L}function h(L){let w=L.target||L.srcElement;typeof w.className!="string"||w.className.indexOf(e.linkClass)===-1||(i=!1)}function y(){i=!0}function E(){return i}function x(L){let w=_();return(document==null?void 0:document.getElementById(L)).offsetTop>w.offsetHeight-w.clientHeight*1.4-e.bottomModeThreshold}function T(){let L=_(),w=L.scrollHeight>L.clientHeight,I=C()+L.clientHeight>L.offsetHeight-e.bottomModeThreshold;return w&&I}function _(){let L;return e.scrollContainer&&document.querySelector(e.scrollContainer)?L=document.querySelector(e.scrollContainer):L=document.documentElement||n,L}function C(){var L;return((L=_())==null?void 0:L.scrollTop)||0}function O(L,w=C()){let I;return r.call(L,(k,M)=>{if(p(k)>w+e.headingsOffset+10){let B=M===0?M:M-1;return I=L[B],!0}if(M===L.length-1)return I=L[L.length-1],!0}),I}function D(L){let w=C(),I=O(L,w),k=T();if((!I||w<5)&&!k)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!k){let M=`#${I.id}`;window.location.hash!==M&&window.history.pushState(null,null,M)}}return{enableTocAnimation:y,disableTocAnimation:h,render:u,updateToc:v,getCurrentlyHighlighting:E,getTopHeader:O,getScrollTop:C,updateUrlHashForHeader:D}}var Wse={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function Xse(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function a(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function l(u){if(!a(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=l(u),f=d.headingLevel,p=c,b=r(p),v=b?b.headingLevel:0,S=f-v;for(;S>0&&(b=r(p),!(b&&f===b.headingLevel));)b&&b.children!==void 0&&(p=b.children),S--;return f>=e.collapseDepth&&(d.isCollapsed=!0),p.push(d),p}function o(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=l(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:o}}function Zse(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(u){!l(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||Qse(u.target.hash,{duration:t,offset:r,callback:function(){o(u.target.hash)}})}}function l(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function o(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function Qse(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),l=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(l):n.duration,o,s;requestAnimationFrame(function(f){o=f,u(f)});function u(f){s=f-o,window.scrollTo(0,n.easing(s,r,l,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+l),typeof n.callback=="function"&&n.callback()}function d(f,p,b,v){return f/=v/2,f<1?b/2*f*f+p:(f--,-b/2*(f*(f-2)-1)+p)}}function Jse(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ie={},Vr,im,ol,Wr,Ps;function S6(e){let t=!1;ie=rue(Wse,e||{}),ie.scrollSmooth&&(ie.duration=ie.scrollSmoothDuration,ie.offset=ie.scrollSmoothOffset,Zse(ie)),Vr=qse(ie),im=Xse(ie),bv();let r=aue(ie);if(r===null)return;let n=x6(ie);if(n===null||(ol=im.selectHeadings(r,ie.headingSelector),ol===null))return;let a=im.nestHeadingsArray(ol).nest;if(!ie.skipRendering)Vr.render(n,a);else return this;let l=!1,i=ie.scrollHandlerTimeout||ie.throttleTimeout;Wr=((s,u)=>nue(s,u,ie.scrollHandlerType))(s=>{var c,d,f;Vr.updateToc(ol,s),!ie.disableTocScrollSync&&!l&&Jse(ie),ie.enableUrlHashUpdateOnScroll&&t&&Vr.getCurrentlyHighlighting()&&Vr.updateUrlHashForHeader(ol);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Vr.updateToc(ol),(f=ie.scrollEndCallback)==null||f.call(ie,s))},i),t||(Wr(),t=!0),window.onhashchange=window.onscrollend=s=>{Wr(s)},ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).addEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).addEventListener("resize",Wr,!1)):(document.addEventListener("scroll",Wr,!1),document.addEventListener("resize",Wr,!1));let o=null;Ps=_y(s=>{l=!0,ie.scrollSmooth&&Vr.disableTocAnimation(s),Vr.updateToc(ol,s),o&&clearTimeout(o),o=setTimeout(()=>{Vr.enableTocAnimation()},ie.scrollSmoothDuration),setTimeout(()=>{l=!1},ie.scrollSmoothDuration+100)},ie.throttleTimeout),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?document.querySelector(ie.scrollContainer).addEventListener("click",Ps,!1):document.addEventListener("click",Ps,!1)}function bv(){let e=x6(ie);e!==null&&(ie.skipRendering||e&&(e.innerHTML=""),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).removeEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).removeEventListener("resize",Wr,!1),Vr&&document.querySelector(ie.scrollContainer).removeEventListener("click",Ps,!1)):(document.removeEventListener("scroll",Wr,!1),document.removeEventListener("resize",Wr,!1),Vr&&document.removeEventListener("click",Ps,!1)))}function eue(e){bv(),S6(e||ie)}var tue=Object.prototype.hasOwnProperty;function rue(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let a in n)tue.call(n,a)&&(t[a]=n[a])}return t}function _y(e,t,r){t||(t=250);let n,a;return function(...l){let i=this,o=+new Date;n&&o<n+t?(clearTimeout(a),a=setTimeout(()=>{n=o,e.apply(i,l)},t)):(n=o,e.apply(i,l))}}function BC(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function nue(e,t,r="auto"){switch(r){case"debounce":return BC(e,t);case"throttle":return _y(e,t);default:return t<334?BC(e,t):_y(e,t)}}function aue(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function x6(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var lue={destroy:bv,init:S6,refresh:eue},PC=lue,iue=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),oue=F.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),sue=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),uue=({headingId:e,title:t})=>typeof t=="string"||!t?m.createElement(sue,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):m.createElement("div",{id:e},t),cue=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:l,channel:i,className:o})=>{g.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(Yse,`#${f}`)}},...l},c=setTimeout(()=>PC.init(u),100);return()=>{clearTimeout(c),PC.destroy()}},[i,t,a,n,r,l]);let s="table-of-contents";return m.createElement(iue,{className:o},t?null:m.createElement(oue,{"aria-labelledby":s},m.createElement(uue,{headingId:s,title:e}),m.createElement("div",{className:"toc-wrapper"})))},due=e=>`anchor--${e}`,fue=({storyId:e,children:t})=>m.createElement("div",{id:due(e),className:"sb-anchor"},t);const{filterArgTypes:IC}=__STORYBOOK_MODULE_PREVIEW_API__;var ei=(e,t)=>g.useContext(Ur).resolveOf(e,t),pue=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),$6=e=>{if(e)return typeof e=="string"?e.includes("-")?pue(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function hue(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function _6(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function gue(e){if(e.type==="component"){let{component:l,projectAnnotations:{parameters:i}}=e;return{argTypes:_6(l,i),parameters:i,component:l}}if(e.type==="meta"){let{preparedMeta:{argTypes:l,parameters:i,component:o,subcomponents:s}}=e;return{argTypes:l,parameters:i,component:o,subcomponents:s}}let{story:{argTypes:t,parameters:r,component:n,subcomponents:a}}=e;return{argTypes:t,parameters:r,component:n,subcomponents:a}}var mue=e=>{var v;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=ei(t||"meta"),{argTypes:n,parameters:a,component:l,subcomponents:i}=gue(r),o=((v=a==null?void 0:a.docs)==null?void 0:v.argTypes)||{},s=e.include??o.include,u=e.exclude??o.exclude,c=e.sort??o.sort,d=IC(n,s,u);if(!(i&&Object.keys(i||{}).length>0))return m.createElement(Nf,{rows:d,sort:c});let f=$6(l)||"Main",p=Object.fromEntries(Object.entries(i||{}).map(([S,h])=>[S,{rows:IC(_6(h,a),s,u),sort:c}])),b={[f]:{rows:d,sort:c},...p};return m.createElement(E6,{tabs:b,sort:c})};It("ArgTypes",mue);var yue=Object.create,C6=Object.defineProperty,bue=Object.getOwnPropertyDescriptor,T6=Object.getOwnPropertyNames,vue=Object.getPrototypeOf,Eue=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[T6(e)[0]])((t={exports:{}}).exports,t),t.exports},Sue=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of T6(t))!Eue.call(e,a)&&a!==r&&C6(e,a,{get:()=>t[a],enumerable:!(n=bue(t,a))||n.enumerable});return e},vv=(e,t,r)=>(r=e!=null?yue(vue(e)):{},Sue(!e||!e.__esModule?C6(r,"default",{value:e,enumerable:!0}):r,e)),xue=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],$ue=["detail"];function _ue(e){let t=xue.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of $ue.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var w6=ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),Cue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),Tue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),wue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Aue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Oue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Ev=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Due=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Rue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Nue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),Lue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Mue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Fue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Bue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Pue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),Iue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Pue();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),kue=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Sv=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=kue();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),zue=ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),A6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;r[n]=l;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==l||s.enumerable!==!0)return!1}return!0}}}),O6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=A6();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),D6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),R6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=w6();t.exports=r.getPrototypeOf||null}}),Hue=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,l="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},o=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==l)throw new TypeError(r+c);for(var d=o(arguments,1),f,p=function(){if(this instanceof f){var y=c.apply(this,i(d,arguments));return Object(y)===y?y:this}return c.apply(u,i(d,arguments))},b=a(0,c.length-d.length),v=[],S=0;S<b;S++)v[S]="$"+S;if(f=Function("binder","return function ("+s(v,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var h=function(){};h.prototype=c.prototype,f.prototype=new h,h.prototype=null}return f}}}),Gp=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Hue();t.exports=Function.prototype.bind||r}}),xv=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),N6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),Uue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),jue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Gp(),n=N6(),a=xv(),l=Uue();t.exports=l||r.call(a,n)}}),L6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Gp(),n=Ev(),a=xv(),l=jue();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return l(r,a,i)}}}),Kue=ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=L6(),n=Sv(),a;try{a=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var l=!!a&&n&&n(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;t.exports=l&&typeof l.get=="function"?r([l.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1}}),Gue=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=D6(),n=R6(),a=Kue();t.exports=r?function(l){return r(l)}:n?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return n(l)}:a?function(l){return a(l)}:null}}),M6=ue({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=Gp();t.exports=a.call(r,n)}}),Vue=ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=w6(),a=Cue(),l=Tue(),i=wue(),o=Aue(),s=Oue(),u=Ev(),c=Due(),d=Rue(),f=Nue(),p=Lue(),b=Mue(),v=Fue(),S=Bue(),h=Iue(),y=Function,E=function(J){try{return y('"use strict"; return ('+J+").constructor;")()}catch{}},x=Sv(),T=zue(),_=function(){throw new u},C=x?function(){try{return arguments.callee,_}catch{try{return x(arguments,"callee").get}catch{return _}}}():_,O=O6()(),D=Gue(),L=R6(),w=D6(),I=N6(),k=xv(),M={},B=typeof Uint8Array>"u"||!D?r:D(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&D?D(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":b,"%Math.pow%":v,"%Math.round%":S,"%Math.sign%":h,"%Reflect.getPrototypeOf%":w};if(D)try{null.error}catch(J){A=D(D(J)),$["%Error.prototype%"]=A}var A,R=function J(Y){var X;if(Y==="%AsyncFunction%")X=E("async function () {}");else if(Y==="%GeneratorFunction%")X=E("function* () {}");else if(Y==="%AsyncGeneratorFunction%")X=E("async function* () {}");else if(Y==="%AsyncGenerator%"){var le=J("%AsyncGeneratorFunction%");le&&(X=le.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var ye=J("%AsyncGenerator%");ye&&D&&(X=D(ye.prototype))}return $[Y]=X,X},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Gp(),z=M6(),U=N.call(k,Array.prototype.concat),K=N.call(I,Array.prototype.splice),G=N.call(k,String.prototype.replace),H=N.call(k,String.prototype.slice),V=N.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,W=function(J){var Y=H(J,0,1),X=H(J,-1);if(Y==="%"&&X!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var le=[];return G(J,q,function(ye,kt,Q,zt){le[le.length]=Q?G(zt,ee,"$1"):kt||ye}),le},ke=function(J,Y){var X=J,le;if(z(P,X)&&(le=P[X],X="%"+le[0]+"%"),z($,X)){var ye=$[X];if(ye===M&&(ye=R(X)),typeof ye>"u"&&!Y)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:le,name:X,value:ye}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,Y){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new u('"allowMissing" argument must be a boolean');if(V(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=W(J),le=X.length>0?X[0]:"",ye=ke("%"+le+"%",Y),kt=ye.name,Q=ye.value,zt=!1,jr=ye.alias;jr&&(le=jr[0],K(X,U([0,1],jr)));for(var ir=1,Kr=!0;ir<X.length;ir+=1){var ot=X[ir],wn=H(ot,0,1),An=H(ot,-1);if((wn==='"'||wn==="'"||wn==="`"||An==='"'||An==="'"||An==="`")&&wn!==An)throw new s("property names with quotes must have matching quotes");if((ot==="constructor"||!Kr)&&(zt=!0),le+="."+ot,kt="%"+le+"%",z($,kt))Q=$[kt];else if(Q!=null){if(!(ot in Q)){if(!Y)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&ir+1>=X.length){var On=x(Q,ot);Kr=!!On,Kr&&"get"in On&&!("originalValue"in On.get)?Q=On.get:Q=Q[ot]}else Kr=z(Q,ot),Q=Q[ot];Kr&&!zt&&($[kt]=Q)}}return Q}}}),$v=ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=Vue(),n=L6(),a=n([r("%String.prototype.indexOf%")]);t.exports=function(l,i){var o=r(l,!!i);return typeof o=="function"&&a(l,".prototype.")>-1?n([o]):o}}}),Yue=ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=A6();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),F6=ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=$v(),n=Yue()(),a=M6(),l=Sv(),i;n?(o=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(p){if(!p||typeof p!="object")return!1;var b=l(p,"lastIndex"),v=b&&a(b,"value");if(!v)return!1;try{o(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var o,s,u,c,d,f;t.exports=i}}),que=ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),Wue=ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=$v(),n=F6(),a=r("RegExp.prototype.exec"),l=Ev();t.exports=function(i){if(!n(i))throw new l("`regex` must be a RegExp");return function(o){return a(i,o)!==null}}}}),Xue=ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=$v(),n=r("Object.prototype.toString"),a=O6()(),l=Wue();a?(i=r("Symbol.prototype.toString"),o=l(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:o(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,o,s}}),Zue=vv(F6()),Que=vv(que()),Jue=vv(Xue());function ece(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var tce=typeof global=="object"&&global&&global.Object===Object&&global,rce=tce,nce=typeof self=="object"&&self&&self.Object===Object&&self,ace=rce||nce||Function("return this")(),_v=ace,lce=_v.Symbol,yo=lce,B6=Object.prototype,ice=B6.hasOwnProperty,oce=B6.toString,ls=yo?yo.toStringTag:void 0;function sce(e){var t=ice.call(e,ls),r=e[ls];try{e[ls]=void 0;var n=!0}catch{}var a=oce.call(e);return n&&(t?e[ls]=r:delete e[ls]),a}var uce=sce,cce=Object.prototype,dce=cce.toString;function fce(e){return dce.call(e)}var pce=fce,hce="[object Null]",gce="[object Undefined]",kC=yo?yo.toStringTag:void 0;function mce(e){return e==null?e===void 0?gce:hce:kC&&kC in Object(e)?uce(e):pce(e)}var yce=mce,zC=yo?yo.prototype:void 0;zC&&zC.toString;function bce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var P6=bce,vce="[object AsyncFunction]",Ece="[object Function]",Sce="[object GeneratorFunction]",xce="[object Proxy]";function $ce(e){if(!P6(e))return!1;var t=yce(e);return t==Ece||t==Sce||t==vce||t==xce}var _ce=$ce,Cce=_v["__core-js_shared__"],om=Cce,HC=function(){var e=/[^.]+$/.exec(om&&om.keys&&om.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tce(e){return!!HC&&HC in e}var wce=Tce,Ace=Function.prototype,Oce=Ace.toString;function Dce(e){if(e!=null){try{return Oce.call(e)}catch{}try{return e+""}catch{}}return""}var Rce=Dce,Nce=/[\\^$.*+?()[\]{}|]/g,Lce=/^\[object .+?Constructor\]$/,Mce=Function.prototype,Fce=Object.prototype,Bce=Mce.toString,Pce=Fce.hasOwnProperty,Ice=RegExp("^"+Bce.call(Pce).replace(Nce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kce(e){if(!P6(e)||wce(e))return!1;var t=_ce(e)?Ice:Lce;return t.test(Rce(e))}var zce=kce;function Hce(e,t){return e==null?void 0:e[t]}var Uce=Hce;function jce(e,t){var r=Uce(e,t);return zce(r)?r:void 0}var I6=jce;function Kce(e,t){return e===t||e!==e&&t!==t}var Gce=Kce,Vce=I6(Object,"create"),gu=Vce;function Yce(){this.__data__=gu?gu(null):{},this.size=0}var qce=Yce;function Wce(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xce=Wce,Zce="__lodash_hash_undefined__",Qce=Object.prototype,Jce=Qce.hasOwnProperty;function ede(e){var t=this.__data__;if(gu){var r=t[e];return r===Zce?void 0:r}return Jce.call(t,e)?t[e]:void 0}var tde=ede,rde=Object.prototype,nde=rde.hasOwnProperty;function ade(e){var t=this.__data__;return gu?t[e]!==void 0:nde.call(t,e)}var lde=ade,ide="__lodash_hash_undefined__";function ode(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gu&&t===void 0?ide:t,this}var sde=ode;function Bo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bo.prototype.clear=qce;Bo.prototype.delete=Xce;Bo.prototype.get=tde;Bo.prototype.has=lde;Bo.prototype.set=sde;var UC=Bo;function ude(){this.__data__=[],this.size=0}var cde=ude;function dde(e,t){for(var r=e.length;r--;)if(Gce(e[r][0],t))return r;return-1}var Vp=dde,fde=Array.prototype,pde=fde.splice;function hde(e){var t=this.__data__,r=Vp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():pde.call(t,r,1),--this.size,!0}var gde=hde;function mde(e){var t=this.__data__,r=Vp(t,e);return r<0?void 0:t[r][1]}var yde=mde;function bde(e){return Vp(this.__data__,e)>-1}var vde=bde;function Ede(e,t){var r=this.__data__,n=Vp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Sde=Ede;function Po(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Po.prototype.clear=cde;Po.prototype.delete=gde;Po.prototype.get=yde;Po.prototype.has=vde;Po.prototype.set=Sde;var xde=Po,$de=I6(_v,"Map"),_de=$de;function Cde(){this.size=0,this.__data__={hash:new UC,map:new(_de||xde),string:new UC}}var Tde=Cde;function wde(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ade=wde;function Ode(e,t){var r=e.__data__;return Ade(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Yp=Ode;function Dde(e){var t=Yp(this,e).delete(e);return this.size-=t?1:0,t}var Rde=Dde;function Nde(e){return Yp(this,e).get(e)}var Lde=Nde;function Mde(e){return Yp(this,e).has(e)}var Fde=Mde;function Bde(e,t){var r=Yp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Pde=Bde;function Io(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Io.prototype.clear=Tde;Io.prototype.delete=Rde;Io.prototype.get=Lde;Io.prototype.has=Fde;Io.prototype.set=Pde;var k6=Io,Ide="Expected a function";function Cv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ide);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],l=r.cache;if(l.has(a))return l.get(a);var i=e.apply(this,n);return r.cache=l.set(a,i)||l,i};return r.cache=new(Cv.Cache||k6),r}Cv.Cache=k6;var kde=Cv,zde=500;function Hde(e){var t=kde(e,function(n){return r.size===zde&&r.clear(),n}),r=t.cache;return t}var Ude=Hde,jde=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kde=/\\(\\)?/g;Ude(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jde,function(r,n,a,l){t.push(a?l.replace(Kde,"$1"):n||r)}),t});var Gde=ece,Vde=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function z6(e){if(!Gde(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=_ue(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var Yde=function(e){let t,r,n,a;return function(l,i){var o;try{if(l==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Vde.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Zue.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Que.default)(i))return;if((0,Jue.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if((o=i==null?void 0:i.constructor)!=null&&o.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let c=t.get(i);if(!c){let d={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((f,p)=>{try{f[p]=i[p]}catch{}return f},{})};return a.push(l),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}let u=t.get(i);if(!u){let c=Array.isArray(i)?i:z6(i);return a.push(l),n.unshift(c),t.set(i,JSON.stringify(a)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}catch{return}}},qde={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Wde=(e,t={})=>{let r={...qde,...t};return JSON.stringify(z6(e),Yde(r),t.space)};function H6(e){return Wde(e,{maxDepth:50})}var Tv=g.createContext({sources:{}}),U6="--unknown--",Xde=({children:e,channel:t})=>{let[r,n]=g.useState({});return g.useEffect(()=>{let a=(l,i=null,o=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof l=="string"?{id:l,source:i,format:o}:l,f=u?H6(u):U6;n(p=>({...p,[s]:{...p[s],[f]:{code:c||"",format:d}}}))};return t.on(Nv,a),()=>t.off(Nv,a)},[]),m.createElement(Tv.Provider,{value:{sources:r}},e)};function Zde(e,t,r){let[n,a]=g.useState("Transforming..."),l=t?t==null?void 0:t(e,r):e;return g.useEffect(()=>{async function i(){let o=await l;o!==n&&a(o)}i()}),typeof l=="object"&&typeof l.then=="function"?n:l}var Qde=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[H6(t)])||(a==null?void 0:a[U6])||{code:""}},Jde=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d;let a=t.parameters??{},{__isArgsStory:l}=a,i=((d=a.docs)==null?void 0:d.source)||{},o=r||i.type||Xp.AUTO,s=o===Xp.DYNAMIC||o===Xp.AUTO&&e&&l?e:i.originalSource||"",u=n??i.transform,c=u?Zde(s,u,t):s;return i.code!==void 0?i.code:c},j6=(e,t,r)=>{var p,b;let{of:n}=e,a=g.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),l=a?t.getStoryContext(a):{},i=e.__forceInitialArgs?l.initialArgs:l.unmappedArgs,o=a?Qde(a.id,i,r):null,s=Jde({snippet:o?o.code:"",storyContext:{...l,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((b=(p=a==null?void 0:a.parameters)==null?void 0:p.docs)==null?void 0:b.source)||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return!e.code&&!a?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:f}:(c=(o==null?void 0:o.format)??!0,{code:s,format:c,language:d,dark:f})},efe=e=>{let t=g.useContext(Tv),r=g.useContext(Ur),n=j6(e,r,t);return m.createElement(uv,{...n})};It("Source",efe);var tfe=e=>{var p,b,v,S,h,y,E,x,T,_,C,O,D,L;let t=g.useContext(Ur),r=g.useContext(Tv),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=ei(n||"story",["story"]),i=j6({...a,...n&&{of:n}},t,r),o=e.layout??l.parameters.layout??((b=(p=l.parameters.docs)==null?void 0:p.canvas)==null?void 0:b.layout)??"padded",s=e.withToolbar??((S=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:S.withToolbar)??!1,u=e.additionalActions??((y=(h=l.parameters.docs)==null?void 0:h.canvas)==null?void 0:y.additionalActions),c=e.sourceState??((x=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:x.sourceState)??"hidden",d=e.className??((_=(T=l.parameters.docs)==null?void 0:T.canvas)==null?void 0:_.className),f=((C=e.story)==null?void 0:C.inline)??((L=(D=(O=l.parameters)==null?void 0:O.docs)==null?void 0:D.story)==null?void 0:L.inline)??!1;return m.createElement(v6,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:o,inline:f},m.createElement(Dse,{of:n||l.moduleExport,meta:e.meta,...e.story}))},rfe=It("Canvas",tfe);const{filterArgTypes:jC}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:nfe,STORY_ARGS_UPDATED:KC,UPDATE_STORY_ARGS:afe}=__STORYBOOK_MODULE_CORE_EVENTS__;var lfe=(e,t)=>{let r=ife(e,t);if(!r)throw new Error("No result when story was defined");return r},ife=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=g.useState(r.args);g.useEffect(()=>{let s=u=>{u.storyId===n&&l(u.args)};return t.channel.on(KC,s),()=>t.channel.off(KC,s)},[n,t.channel]);let i=g.useCallback(s=>t.channel.emit(afe,{storyId:n,updatedArgs:s}),[n,t.channel]),o=g.useCallback(s=>t.channel.emit(nfe,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,o]};const{GLOBALS_UPDATED:GC}=__STORYBOOK_MODULE_CORE_EVENTS__;var ofe=(e,t)=>{let r=t.getStoryContext(e),[n,a]=g.useState(r.globals);return g.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(GC,l),()=>t.channel.off(GC,l)},[t.channel]),[n]};const{Tag:sfe}=__STORYBOOK_MODULE_PREVIEW_API__;var K6=()=>g.useContext(Ur).componentStories().find(e=>e.tags.includes(sfe.AUTODOCS));function ufe(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var cfe=e=>{var T;let{of:t}=e,r=g.useContext(Ur),n=K6(),a=t?r.resolveOf(t,["story"]).story:n;if(!a)return null;let{parameters:l,argTypes:i,component:o,subcomponents:s}=a,u=((T=l.docs)==null?void 0:T.controls)||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[p,b,v]=lfe(a,r),[S]=ofe(a,r),h=jC(i,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(h).length>0||Object.keys(p).length>0?m.createElement(Nf,{rows:h,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v}):null;let y=$6(o)||"Story",E=Object.fromEntries(Object.entries(s||{}).map(([_,C])=>[_,{rows:jC(ufe(C,l),c,d),sort:f}])),x={[y]:{rows:h,sort:f},...E};return m.createElement(E6,{tabs:x,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v})},dfe=It("Controls",cfe);const{NAVIGATE_URL:ffe}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:G6}=globalThis,V6=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return m.createElement(O1,null,t);let n=e&&e.split("-");return m.createElement(uv,{language:n&&n[1]||"text",format:!1,code:t,...r})};function wv(e,t){e.channel.emit(ffe,t)}var Cy=B4.a,pfe=({hash:e,children:t})=>{let r=g.useContext(Ur);return m.createElement(Cy,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);G6.getElementById(a)&&wv(r,e)}},t)},Y6=e=>{let{href:t,target:r,children:n,...a}=e,l=g.useContext(Ur);return!t||r==="_blank"||/^https?:\/\//.test(t)?m.createElement(Cy,{...e}):t.startsWith("#")?m.createElement(pfe,{hash:t},n):m.createElement(Cy,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),wv(l,i.currentTarget.getAttribute("href")||""))},target:r,...a},n)},q6=["h1","h2","h3","h4","h5","h6"],hfe=q6.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),gfe=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),mfe=({as:e,id:t,children:r,...n})=>{let a=g.useContext(Ur),l=hfe[e],i=`#${t}`;return m.createElement(l,{id:t,...n},m.createElement(gfe,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:o=>{G6.getElementById(t)&&wv(a,i)}},m.createElement(gz,null)),r)},Av=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return m.createElement(mfe,{as:t,id:r,...a},n);let l=t,{as:i,...o}=e;return m.createElement(l,{...ze(o,t)})},W6=q6.reduce((e,t)=>({...e,[t]:r=>m.createElement(Av,{as:t,...r})}),{}),yfe=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(vae`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
795
+ ${by(.02,e.input.background)} 100%)`,borderRadius:6,boxShadow:`${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"} 0 0 0 1px inset`,cursor:a?"not-allowed":"pointer",height:6,width:"100%"},i={borderColor:go(e.color.secondary,.4)},o={width:16,height:16,borderRadius:50,cursor:a?"not-allowed":"grab",background:e.input.background,border:`1px solid ${e.base=="dark"?"hsl(0 0 100 / 0.4)":"hsl(0 0 0 / 0.44)"}`,boxShadow:e.base==="light"?`0 1px 3px 0px ${go(e.appBorderColor,.2)}`:"unset",transition:"all 150ms ease-out"},s={background:`${Fs(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},u={background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)"},c={borderColor:e.color.secondary,boxShadow:e.base==="light"?`0 0px 5px 0px ${e.color.secondary}`:"unset"};return{appearance:"none",backgroundColor:"transparent",width:"100%","&::-webkit-slider-runnable-track":l,"&::-moz-range-track":l,"&::-ms-track":{...l,color:"transparent"},"&::-moz-range-thumb":{...o,"&:hover":s,"&:active":u},"&::-webkit-slider-thumb":{...o,marginTop:"-6px",appearance:"none","&:hover":s,"&:active":u},"&::-ms-thumb":{...o,marginTop:0,"&:hover":s,"&:active":u},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":i,"&::-moz-range-track":i,"&::-ms-track":i,"&::-webkit-slider-thumb":c,"&::-moz-range-thumb":c,"&::-ms-thumb":c},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}}),c6=F.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums"}),Zie=F(c6)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),Qie=F.div(({readOnly:e})=>({display:"flex",alignItems:"center",width:"100%",opacity:e?.5:1}));function Jie(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}var eoe=({name:e,value:t,onChange:r,min:n=0,max:a=100,step:l=1,onBlur:i,onFocus:o,argType:s})=>{var b;let u=v=>{r(die(v.target.value))},c=t!==void 0,d=g.useMemo(()=>Jie(l),[l]),f=!!((b=s==null?void 0:s.table)!=null&&b.readonly),p=tn(e);return m.createElement(Qie,{readOnly:f},m.createElement("label",{htmlFor:p,className:"sb-sr-only"},e),m.createElement(c6,null,n),m.createElement(Xie,{id:p,type:"range",disabled:f,onChange:u,name:e,min:n,max:a,step:l,onFocus:o,onBlur:i,value:t??n}),m.createElement(Zie,{numberOFDecimalsPlaces:d,max:a},c?t.toFixed(d):"--"," / ",a))},toe=F.label({display:"flex"}),roe=F.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),noe=({name:e,value:t,onChange:r,onFocus:n,onBlur:a,maxLength:l,argType:i})=>{var p;let o=b=>{r(b.target.value)},s=!!((p=i==null?void 0:i.table)!=null&&p.readonly),[u,c]=g.useState(!1),d=g.useCallback(()=>{r(""),c(!0)},[c]);if(t===void 0)return m.createElement(je,{ariaLabel:!1,variant:"outline",size:"medium",disabled:s,id:np(e),onClick:d},"Set string");let f=typeof t=="string";return m.createElement(toe,null,m.createElement(Ql.Textarea,{id:tn(e),maxLength:l,onChange:o,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:f?void 0:"error",name:e,value:f?t:"",onFocus:n,onBlur:a}),l&&m.createElement(roe,{isMaxed:(t==null?void 0:t.length)===l},(t==null?void 0:t.length)??0," / ",l))},aoe=F(Ql.Input)({padding:10});function loe(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var ioe=({onChange:e,name:t,accept:r="image/*",value:n,argType:a})=>{var u;let l=g.useRef(null),i=(u=a==null?void 0:a.control)==null?void 0:u.readOnly;function o(c){if(!c.target.files)return;let d=Array.from(c.target.files).map(f=>URL.createObjectURL(f));e(d),loe(n||[])}g.useEffect(()=>{n==null&&l.current&&(l.current.value="")},[n,t]);let s=tn(t);return m.createElement(m.Fragment,null,m.createElement("label",{htmlFor:s,className:"sb-sr-only"},t),m.createElement(aoe,{ref:l,id:s,type:"file",name:t,multiple:!0,disabled:i,onChange:o,accept:r,size:"flex"}))},ooe=g.lazy(()=>Qn(()=>import("./Color-FRDS63T2-CsRhr6UV.js"),__vite__mapDeps([7,1,2,3,4]),import.meta.url)),soe=e=>m.createElement(g.Suspense,{fallback:m.createElement("div",null)},m.createElement(ooe,{...e})),uoe={array:wC,object:wC,boolean:nie,color:soe,date:uie,number:pie,check:ii,"inline-check":ii,radio:ii,"inline-radio":ii,select:ii,"multi-select":ii,range:eoe,text:noe,file:ioe},AC=()=>m.createElement(m.Fragment,null,"-"),coe=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var v;let{key:a,control:l}=e,[i,o]=g.useState(!1),[s,u]=g.useState({value:t});g.useEffect(()=>{i||u({value:t})},[i,t]);let c=g.useCallback(S=>(u({value:S}),r({[a]:S}),S),[r,a]),d=g.useCallback(()=>o(!1),[]),f=g.useCallback(()=>o(!0),[]);if(!l||l.disable){let S=(l==null?void 0:l.disable)!==!0&&((v=e==null?void 0:e.type)==null?void 0:v.name)!=="function";return n&&S?m.createElement(so,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):m.createElement(AC,null)}let p={name:a,argType:e,value:s.value,onChange:c,onBlur:d,onFocus:f},b=uoe[l.type]||AC;return m.createElement(b,{...p,...l,controlType:l.type})},doe=F.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:ia({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),foe=({tags:e})=>{var l,i;let t=(e.params||[]).filter(o=>o.description),r=t.length!==0,n=e.deprecated!=null,a=e.returns!=null&&e.returns.description!=null;return!r&&!a&&!n?null:m.createElement(m.Fragment,null,m.createElement(doe,null,m.createElement("tbody",null,n&&m.createElement("tr",{key:"deprecated"},m.createElement("td",{colSpan:2},m.createElement("strong",null,"Deprecated"),": ",(l=e.deprecated)==null?void 0:l.toString())),r&&t.map(o=>m.createElement("tr",{key:o.name},m.createElement("td",null,m.createElement("code",null,o.name)),m.createElement("td",null,o.description))),a&&m.createElement("tr",{key:"returns"},m.createElement("td",null,m.createElement("code",null,"Returns")),m.createElement("td",null,(i=e.returns)==null?void 0:i.description)))))};function poe(e){return[...new Set(e)]}var Rf=8,OC=F.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),hoe=F.details({display:"flex",flexDirection:"column",summary:{order:2},"summary::-webkit-details-marker":{display:"none"},"summary::marker":{content:"none"}}),goe=F.div({display:"flex",flexDirection:"column",flexWrap:"wrap",alignItems:"flex-start"}),moe=F.span(ia,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),yoe=F.summary(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,cursor:"pointer",lineHeight:"normal",margin:"0 0 4px",padding:"1px 6px",background:"none",border:"none"})),boe=F.button(ia,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center",cursor:"pointer","&:hover":{border:e.base==="light"?"1px solid hsl(0 0 0 / 0.15)":"1px solid hsl(0 0 100 / 0.15)"},"&:focus-visible":{outline:`2px solid ${e.color.secondary}`,outlineOffset:"2px"}})),voe=F.div(({theme:e})=>({minWidth:200,maxWidth:800,paddingRight:16,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),Eoe=F(bz)({marginLeft:4}),Soe=F(k5)({marginLeft:4}),xoe=()=>m.createElement("span",null,"-"),gv=({text:e,simple:t})=>m.createElement(moe,{simple:t},e),$oe=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return poe(t)},DC=e=>e.slice(0,Rf).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),_oe=e=>e.slice(Rf).map(t=>m.createElement(gv,{key:t,text:t===""?'""':t})),Coe=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[a,l]=g.useState(!1),[i,o]=g.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return m.createElement(gv,{text:s});let u=$oe(s),c=u.length;return c>Rf?m.createElement(OC,{isExpanded:i},DC(u),m.createElement(hoe,{open:i,onToggle:d=>o(d.currentTarget.open)},m.createElement(goe,null,_oe(u)),m.createElement(yoe,{role:"button"},i?"Show less...":`Show ${c-Rf} more...`))):m.createElement(OC,null,DC(u))}return m.createElement(lv,{ariaLabel:"Arg value details",placement:"bottom",visible:a,onVisibleChange:u=>{l(u)},hasCloseButton:!0,popover:m.createElement(voe,null,m.createElement(Pu,{language:"jsx",format:!1},n))},m.createElement(boe,{className:"sbdocs-expandable"},m.createElement("span",null,s),a?m.createElement(Eoe,null):m.createElement(Soe,null)))},em=({value:e,initialExpandedArgs:t})=>e==null?m.createElement(xoe,null):m.createElement(Coe,{value:e,initialExpandedArgs:t}),Toe=F.span({fontWeight:"bold"}),woe=F.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),Aoe=F.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...ia({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),Ooe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?4:0})),Doe=F.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?it(.1,e.color.defaultText):it(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),Roe=F.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),Noe=e=>e&&{summary:typeof e=="string"?e:e.name},Uc=e=>{var v;let[t,r]=g.useState(!1),{row:n,updateArgs:a,compact:l,expandable:i,initialExpandedArgs:o}=e,{name:s,description:u}=n,c=n.table||{},d=c.type||Noe(n.type),f=c.defaultValue||n.defaultValue,p=(v=n.type)==null?void 0:v.required,b=u!=null&&u!=="";return m.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},m.createElement(Roe,{expandable:i??!1},m.createElement(Toe,null,s),p?m.createElement(woe,{title:"Required"},"*"):null),l?null:m.createElement("td",null,b&&m.createElement(Aoe,null,m.createElement(Z4,null,u)),c.jsDocTags!=null?m.createElement(m.Fragment,null,m.createElement(Doe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o})),m.createElement(foe,{tags:c.jsDocTags})):m.createElement(Ooe,{hasDescription:b},m.createElement(em,{value:d,initialExpandedArgs:o}))),l?null:m.createElement("td",null,m.createElement(em,{value:f,initialExpandedArgs:o})),a?m.createElement("td",null,m.createElement(coe,{...e,isHovered:t})):null)},Loe=F.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),Moe=F.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),Foe=({inAddonPanel:e})=>{let[t,r]=g.useState(!0);return g.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:m.createElement(Loe,{inAddonPanel:e},m.createElement(Vu,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:m.createElement(m.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:m.createElement(Moe,null,e&&m.createElement(m.Fragment,null,m.createElement(so,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(T0,null)," Read docs")),!e&&m.createElement(so,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},m.createElement(T0,null)," Learn how to set that up"))}))},Boe=F(yz)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Poe=F(I5)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?it(.25,e.color.defaultText):it(.3,e.color.defaultText),border:"none",display:"inline-block"})),Ioe=F.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),koe=F.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),zoe=F.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),Hoe=F.td({position:"relative"}),Uoe=F.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${by(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),RC=F.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),tm=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:a=3})=>{let[l,i]=g.useState(n),o=e==="subsection"?zoe:koe,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",c=`${l?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return m.createElement(m.Fragment,null,m.createElement(Uoe,{title:c},m.createElement(o,{colSpan:1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:0},c),m.createElement(Ioe,null,l?m.createElement(Boe,null):m.createElement(Poe,null),t)),m.createElement(Hoe,{colSpan:a-1},m.createElement(RC,{onClick:d=>i(!l),tabIndex:-1,style:{outline:"none"}},c),l?null:u)),l?r:null)},joe=F.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),jc=F.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Rt=F.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),st=F.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),Koe=()=>m.createElement(joe,null,m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"}))),m.createElement(jc,null,m.createElement(Rt,{position:"first"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"second"},m.createElement(st,{width:"80%"}),m.createElement(st,{width:"30%"})),m.createElement(Rt,{position:"third"},m.createElement(st,{width:"60%"})),m.createElement(Rt,{position:"last"},m.createElement(st,{width:"60%"})))),Goe=F.table(({theme:e,compact:t,inAddonPanel:r,inTabPanel:n})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"19px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.textMutedColor,paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginInline:r||n?0:1,paddingInline:n?3:0,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),Voe=F.div({position:"relative"}),Yoe=F.div({position:"absolute",right:22,top:10}),qoe=F(je)({margin:"-4px -12px -4px 0"}),Woe={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},Xoe=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([l,i])=>{let{category:o,subcategory:s}=(i==null?void 0:i.table)||{};if(o){let u=r.sections[o]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:l,...i});else{let c=u.subsections[s]||[];c.push({key:l,...i}),u.subsections[s]=c}r.sections[o]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:l,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:l,...i})});let n=Woe[t],a=l=>n?Object.keys(l).reduce((i,o)=>({...i,[o]:l[o].sort(n)}),{}):l;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:a(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((l,i)=>({...l,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:a(r.sections[i].subsections)}}),{})}},Zoe=(e,t,r)=>{try{return eL(e,t,r)}catch(n){return Eae.warn(n.message),!1}},Nf=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:a,inTabPanel:l,initialExpandedArgs:i,sort:o="none",isLoading:s}=e;if("error"in e){let{error:E}=e;return m.createElement(H4,null,E," ",m.createElement(so,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},m.createElement(T0,null)," Read the docs"))}if(s)return m.createElement(Koe,null);let{rows:u,args:c,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=Xoe(Wae(u||{},E=>{var x;return!((x=E==null?void 0:E.table)!=null&&x.disable)&&Zoe(E,c||{},d||{})}),o),p=f.ungrouped.length===0,b=Object.entries(f.sections).length===0,v=Object.entries(f.ungroupedSubsections).length===0;if(p&&b&&v)return m.createElement(Foe,{inAddonPanel:a});let S=1;t&&(S+=1),n||(S+=2);let h=Object.keys(f.sections).length>0,y={updateArgs:t,compact:n,inAddonPanel:a,initialExpandedArgs:i};return m.createElement(A1,null,m.createElement(Voe,null,t&&!s&&r&&m.createElement(Yoe,null,m.createElement(qoe,{variant:"ghost",padding:"small",onClick:()=>r(),ariaLabel:"Reset controls"},m.createElement(Sz,null))),m.createElement(Goe,{compact:n,inAddonPanel:a,inTabPanel:l,className:"docblock-argstable sb-unstyled"},m.createElement("thead",{className:"docblock-argstable-head"},m.createElement("tr",null,m.createElement("th",null,m.createElement("span",null,"Name")),n?null:m.createElement("th",null,m.createElement("span",null,"Description")),n?null:m.createElement("th",null,m.createElement("span",null,"Default")),t?m.createElement("th",null,m.createElement("span",null,"Control")):null)),m.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(E=>m.createElement(Uc,{key:E.key,row:E,arg:c&&c[E.key],...y})),Object.entries(f.ungroupedSubsections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"subsection",colSpan:S},x.map(T=>m.createElement(Uc,{key:T.key,row:T,arg:c&&c[T.key],expandable:h,...y})))),Object.entries(f.sections).map(([E,x])=>m.createElement(tm,{key:E,label:E,level:"section",colSpan:S},x.ungrouped.map(T=>m.createElement(Uc,{key:T.key,row:T,arg:c&&c[T.key],...y})),Object.entries(x.subsections).map(([T,_])=>m.createElement(tm,{key:T,label:T,level:"subsection",colSpan:S},_.map(C=>m.createElement(Uc,{key:C.key,row:C,arg:c&&c[C.key],expandable:h,...y}))))))))))},ut=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,mv=600,Qoe=F.h1(({theme:e})=>({...Ge({theme:e}),color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Joe=F.h2(({theme:e})=>({...Ge({theme:e}),fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${mv}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:it(.25,e.color.defaultText)})),ese=F.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?it(.1,e.color.defaultText):it(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[ut("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"underline",textDecorationThickness:"0.03125rem",textUnderlineOffset:"0.11em","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0,textDecoration:"none"},"&.anchor:hover, &.anchor:focus":{textDecoration:"underline"}},[ut("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[ut("div")]:t,[ut("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[ut("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[ut("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[ut("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[ut("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[ut("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[ut("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[ut("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[ut("img")]:{maxWidth:"100%"},[ut("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[ut("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[ut("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[ut("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[ut("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[ut("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[ut("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),tse=F.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${mv}px)`]:{}})),rse=({children:e,toc:t})=>m.createElement(tse,{className:"sbdocs sbdocs-wrapper"},t,m.createElement(ese,{className:"sbdocs sbdocs-content"},e));const{logger:nse}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var d6=typeof document<"u"?m.useLayoutEffect:()=>{},f6={prefix:String(Math.round(Math.random()*1e10)),current:0},p6=m.createContext(f6),ase=m.createContext(!1),rm=new WeakMap;function lse(e=!1){let t=g.useContext(p6),r=g.useRef(null);if(r.current===null&&!e){var n,a;let l=(a=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(n=a.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(l){let i=rm.get(l);i==null?rm.set(l,{id:t.current,state:l.memoizedState}):l.memoizedState!==i.state&&(t.current=i.id,rm.delete(l))}r.current=++t.current}return r.current}function ise(e){let t=g.useContext(p6),r=lse(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function ose(e){let t=m.useId(),[r]=g.useState(fse()),n=r?"react-aria":`react-aria${f6.prefix}`;return e||`${n}-${t}`}var sse=typeof m.useId=="function"?ose:ise;function use(){return!1}function cse(){return!0}function dse(e){return()=>{}}function fse(){return typeof m.useSyncExternalStore=="function"?m.useSyncExternalStore(dse,use,cse):g.useContext(ase)}var pse=!!(typeof window<"u"&&window.document&&window.document.createElement),_d=new Map,ys;typeof FinalizationRegistry<"u"&&(ys=new FinalizationRegistry(e=>{_d.delete(e)}));function hse(e){let[t,r]=g.useState(e),n=g.useRef(null),a=sse(t),l=g.useRef(null);if(ys&&ys.register(l,a),pse){let i=_d.get(a);i&&!i.includes(n)?i.push(n):_d.set(a,[n])}return d6(()=>{let i=a;return()=>{ys&&ys.unregister(l),_d.delete(i)}},[a]),g.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),a}function gse(e){if(mse())e.focus({preventScroll:!0});else{let t=yse(e);e.focus(),bse(t)}}var Kc=null;function mse(){if(Kc==null){Kc=!1;try{document.createElement("div").focus({get preventScroll(){return Kc=!0,!0}})}catch{}}return Kc}function yse(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function bse(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function yv(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function h6(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Yu(e){let t=null;return()=>(t==null&&(t=e()),t)}var xy=Yu(function(){return h6(/^Mac/i)}),vse=Yu(function(){return h6(/^iPad/i)||xy()&&navigator.maxTouchPoints>1}),Ese=Yu(function(){return yv(/AppleWebKit/i)&&!Sse()}),Sse=Yu(function(){return yv(/Chrome/i)}),xse=Yu(function(){return yv(/Firefox/i)});g.createContext({isNative:!0,open:_se,useHref:e=>e});function Lf(e,t,r=!0){var n,a;let{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}=t;xse()&&!((a=window.event)===null||a===void 0||(n=a.type)===null||n===void 0)&&n.startsWith("key")&&e.target==="_blank"&&(xy()?l=!0:i=!0);let u=Ese()&&xy()&&!vse()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:l,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:l,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});Lf.isOpening=r,gse(e),e.dispatchEvent(u),Lf.isOpening=!1}Lf.isOpening=!1;function $se(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function _se(e,t){$se(e,r=>Lf(r,t))}var as=new Map,NC=new Set;function LC(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);a||(a=new Set,as.set(n.target,a),n.target.addEventListener("transitioncancel",r,{once:!0})),a.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let a=as.get(n.target);if(a&&(a.delete(n.propertyName),a.size===0&&(n.target.removeEventListener("transitioncancel",r),as.delete(n.target)),as.size===0)){for(let l of NC)l();NC.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?LC():document.addEventListener("DOMContentLoaded",LC));var nm;nm=m.useInsertionEffect;var am;typeof document<"u"&&((am=m.useInsertionEffect)!==null&&am!==void 0||m.useLayoutEffect);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=g.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var Ur=globalThis?globalThis.__DOCS_CONTEXT__:g.createContext(null);function Cse(e,t){let r=Tse([e],t);return r&&r[0]}function Tse(e,t){let[r,n]=g.useState({});return g.useEffect(()=>{Promise.all(e.map(async a=>{let l=await t.loadStory(a);n(i=>i[a]===l?i:{...i,[a]:l})}))}),e.map(a=>{if(r[a])return r[a];try{return t.storyById(a)}catch{return}})}var wse=Symbol("mdxWrappedBlock"),MC=m.createContext(null),It=(e,t)=>{let r=n=>{let a=m.useContext(MC),l=cv()[e];if(a!=null&&a.has(e)||l===r)return m.createElement(t,{...n});if(l){let i=new Set(a??[]);return i.add(e),m.createElement(MC.Provider,{value:i},m.createElement(l,{...n}))}return m.createElement(t,{...n})};return r.displayName=e,r[wse]=!0,r},g6=(e,t)=>{let{of:r,meta:n}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return n&&t.referenceMeta(n,!1),t.resolveOf(r||"story",["story"]).story.id},Ase=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:a={}}=n,l=a.story||{};if(a.disable)return null;if(e.inline??l.inline??!1){let o=e.height??l.height,s=e.autoplay??l.autoplay??!1;return{story:t,inline:!0,height:o,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??l.height??l.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},Ose=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=g.useContext(Ur),r=g6(e,t),n=Cse(r,t);if(!n)return m.createElement(b6,null);let a=Ase(e,n,t);return a?m.createElement(Bse,{...a}):null},Dse=It("Story",Ose),Kp=e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),m6=(e,t={})=>{let r=globalThis.PREVIEW_URL||"iframe.html",[n,a]=r.split("?"),l=new URLSearchParams(a||"");return Object.entries(t).forEach(([i,o])=>{l.set(i,o)}),l.set("id",e),`${n}?${l.toString()}`},{window:Rse}=globalThis,Nse=class extends g.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=Rse.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:a,...l}=this.props;return m.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...l})}},y6=g.createContext({scale:1}),$y=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,Lse=e=>{let t=g.useRef(),[r,n]=g.useState(!0),[a,l]=g.useState(),{story:i,height:o,autoplay:s,forceInitialArgs:u,renderStoryToElement:c}=e;return g.useEffect(()=>{if(!(i&&t.current))return()=>{};let d=t.current,f=c(i,d,{showMain:()=>{},showError:({title:p,description:b})=>l(new Error(`${p} - ${b}`)),showException:p=>l(p)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>f())}},[s,c,i]),a?m.createElement("pre",null,m.createElement(TR,{error:a})):m.createElement(m.Fragment,null,o?m.createElement("style",null,`#${$y(e)} { min-height: ${o}; transform: translateZ(0); overflow: auto }`):null,r&&m.createElement(b6,null),m.createElement("div",{ref:t,id:`${$y(e)}-inner`,"data-name":i.name}))},Mse=({story:e,height:t="500px"})=>m.createElement("div",{style:{width:"100%",height:t}},m.createElement(y6.Consumer,null,({scale:r})=>m.createElement(Nse,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:m6(e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),Fse=F.strong(({theme:e})=>({color:e.color.orange})),Bse=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?m.createElement(Fse,null,"This story mounts inside of play. Set"," ",m.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):m.createElement("div",{id:$y(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?m.createElement(Lse,{...e}):m.createElement(Mse,{...e}))},b6=()=>m.createElement(F4,null),Pse=F(_4)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear",display:"flex",alignItems:"center"}),lm=F.div({display:"flex",alignItems:"center",gap:4}),FC=F.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),Ise=({isLoading:e,storyId:t,zoom:r,resetZoom:n,...a})=>m.createElement(Pse,{innerStyle:{gap:4,paddingInline:7,justifyContent:"space-between"},...a},m.createElement(lm,{key:"left"},e?[1,2,3].map(l=>m.createElement(FC,{key:l})):m.createElement(m.Fragment,null,m.createElement(je,{padding:"small",variant:"ghost",key:"zoomin",onClick:l=>{l.preventDefault(),r(.8)},ariaLabel:"Zoom in"},m.createElement(lz,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomout",onClick:l=>{l.preventDefault(),r(1.25)},ariaLabel:"Zoom out"},m.createElement(iz,null)),m.createElement(je,{padding:"small",variant:"ghost",key:"zoomreset",onClick:l=>{l.preventDefault(),n()},ariaLabel:"Reset zoom"},m.createElement(oz,null)))),e?m.createElement(lm,{key:"right"},m.createElement(FC,null)):t&&m.createElement(lm,{key:"right"},m.createElement(je,{asChild:!0,padding:"small",variant:"ghost",key:"opener",ariaLabel:"Open canvas in new tab"},m.createElement("a",{href:m6(t),target:"_blank",rel:"noopener noreferrer"},m.createElement(mz,null))))),kse=F.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),zse=F(Mo)({marginTop:-40,marginBottom:40}),Hse=F(uv)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Fs(.05,e.background.content)}})),Use=F.div(({theme:e})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...Kp(e),"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40});function jse(e){if(g.Children.count(e)===1){let t=e;if(t.props)return t.props}return null}var Kse=F(Ise)({position:"absolute",top:0,left:0,right:0,height:40}),Gse=2e3,v6=({isLoading:e,isColumn:t,columns:r,children:n,withSource:a,withToolbar:l=!1,isExpanded:i=!1,additionalActions:o,className:s,layout:u="padded",inline:c=!1,...d})=>{let[f,p]=g.useState(i),[b,v]=g.useState(null),[S,h]=g.useState(1),y=g.useMemo(()=>o?[...o]:[],[o]),E=hse(),x=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),T=g.useContext(Ur),_=g.useCallback(async w=>{let{createCopyToClipboardFunction:I}=await Qn(async()=>{const{createCopyToClipboardFunction:k}=await Promise.resolve().then(()=>Tne);return{createCopyToClipboardFunction:k}},void 0,import.meta.url);await I()(w)},[]),C=g.useCallback(async()=>{try{await _((a==null?void 0:a.code)??""),v("Copied!")}catch(w){nse.error(w),v("Copy error!")}globalThis.window.setTimeout(()=>v(null),Gse)},[_,a==null?void 0:a.code]),O=jse(n),D=!!(a&&a.error),L=!!(a&&!a.error);return m.createElement(m.Fragment,null,m.createElement(Use,{withSource:a,withToolbar:l,...d,className:x.join(" ")},l&&m.createElement(Kse,{isLoading:e,border:!0,zoom:w=>h(S*w),resetZoom:()=>h(1),storyId:!e&&O?g6(O,T):void 0}),m.createElement(y6.Provider,{value:{scale:S}},m.createElement(kse,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:c,className:"docs-story"},m.createElement(CR.Element,{centered:u==="centered",scale:c?S:1},Array.isArray(n)?n.map((w,I)=>m.createElement("div",{key:I},w)):m.createElement("div",null,n)))),L&&f&&m.createElement("div",{id:E},m.createElement(Hse,{...a,dark:!0,copyable:!1}))),(a||y.length>0)&&m.createElement(zse,{className:"sbdocs sbdocs-preview-actions",innerStyle:{paddingInline:0}},D&&m.createElement(je,{ariaLabel:!1,disabled:!0,variant:"ghost",className:"docblock-code-toggle docblock-code-toggle--disabled"},m.createElement(Px,null)," No code available"),L&&m.createElement(m.Fragment,null,m.createElement(Uu,{ariaLabel:!1,pressed:f,"aria-expanded":f,"aria-controls":E,onClick:()=>p(!f),variant:"ghost",className:`docblock-code-toggle${f?" docblock-code-toggle--expanded":""}`},m.createElement(Px,null)," ",f?"Hide code":"Show code"),m.createElement(je,{ariaLabel:!1,variant:"ghost",onClick:C},m.createElement(uz,null)," ",b??"Copy code")),y.map(({title:w,className:I,onClick:k,disabled:M},B)=>m.createElement(je,{key:B,className:I,onClick:k,disabled:!!M,variant:"ghost"},w))))};F(v6)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var Vse=F(L4)({height:"fit-content"}),E6=({tabs:e,...t})=>{let r=Object.entries(e);if(r.length===1)return m.createElement(Nf,{...r[0][1],...t});let n=r.map(([a,l],i)=>({id:`prop_table_div_${a}`,title:a,children:()=>{let o=i===0?t:{sort:t.sort};return m.createElement(Nf,{inTabPanel:!0,key:`prop_table_${a}`,...l,...o})}}));return m.createElement(Vse,{tabs:n})};F.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?it(.4,e.color.defaultText):it(.6,e.color.defaultText)}));F.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});F.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});F.div(Ge,({theme:e})=>({...Kp(e),margin:"25px 0 40px",padding:"30px 20px"}));F.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));F.div(({theme:e})=>({color:it(.3,e.color.defaultText)}));F.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});F.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:it(.3,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}));F.div({display:"flex",flexDirection:"row"});F.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));F.div(({theme:e})=>({...Kp(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}));F.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});F.div({flex:1,display:"flex",flexDirection:"row"});F.div({display:"flex",alignItems:"flex-start"});F.div({flex:"0 0 30%"});F.div({flex:1});F.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:it(.3,e.color.defaultText)}));F.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));F.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}));F.div(({theme:e})=>({...Kp(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));F.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});F.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});const{NAVIGATE_URL:Yse}=__STORYBOOK_MODULE_CORE_EVENTS__;function qse(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,a=" ",l,i=!0,o=0;function s(L,w){let I=w.appendChild(c(L));if(L.children.length){let k=d(L.isCollapsed);L.children.forEach(M=>{s(M,k)}),I.appendChild(k)}}function u(L,w){let I=d(!1);if(w.forEach(k=>{s(k,I)}),l=L||l,l!==null)return l.firstChild&&l.removeChild(l.firstChild),w.length===0?l:l.appendChild(I)}function c(L){let w=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&w.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",L.textContent),e.includeHtml&&L.childNodes.length?t.call(L.childNodes,k=>{I.appendChild(k.cloneNode(!0))}):I.textContent=L.textContent,I.setAttribute("href",`${e.basePath}#${L.id}`),I.setAttribute("class",`${e.linkClass+a}node-name--${L.nodeName}${a}${e.extraLinkClasses}`),w.appendChild(I),w}function d(L){let w=e.orderedList?"ol":"ul",I=document.createElement(w),k=e.listClass+a+e.extraListClasses;return L&&(k=k+a+e.collapsibleClass,k=k+a+e.isCollapsedClass),I.setAttribute("class",k),I}function f(){let L=C(),w=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=l.offsetTop),L>e.fixedSidebarOffset?w.className.indexOf(e.positionFixedClass)===-1&&(w.className+=a+e.positionFixedClass):w.className=w.className.replace(a+e.positionFixedClass,"")}function p(L){let w=0;return L!==null&&(w=L.offsetTop,e.hasInnerContainers&&(w+=p(L.offsetParent))),w}function b(L,w){return L&&L.className!==w&&(L.className=w),L}function v(L,w){var $,A;e.positionFixedSelector&&f();let I=L,k=($=w==null?void 0:w.target)!=null&&$.getAttribute?(A=w==null?void 0:w.target)==null?void 0:A.getAttribute("href"):null,M=k&&k.charAt(0)==="#"?x(k.replace("#","")):!1,B=i||M;if(w&&o<5&&o++,B&&l&&I.length>0){let R=O(I),P=l.querySelector(`.${e.activeLinkClass}`),N=R.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),z=window.location.hash.replace("#",""),U=N,K=T();k&&M?U=k.replace("#",""):z&&z!==N&&K&&(x(N)||o<=2)&&(U=z);let G=l.querySelector(`.${e.linkClass}[href="${e.basePath}#${U}"]`);if(P===G)return;let H=l.querySelectorAll(`.${e.linkClass}`);t.call(H,W=>{b(W,W.className.replace(a+e.activeLinkClass,""))});let V=l.querySelectorAll(`.${e.listItemClass}`);t.call(V,W=>{b(W,W.className.replace(a+e.activeListItemClass,""))}),G&&G.className.indexOf(e.activeLinkClass)===-1&&(G.className+=a+e.activeLinkClass);let q=G==null?void 0:G.parentNode;q&&q.className.indexOf(e.activeListItemClass)===-1&&(q.className+=a+e.activeListItemClass);let ee=l.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(ee,W=>{W.className.indexOf(e.isCollapsedClass)===-1&&(W.className+=a+e.isCollapsedClass)}),G!=null&&G.nextSibling&&G.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&b(G.nextSibling,G.nextSibling.className.replace(a+e.isCollapsedClass,"")),S(G==null?void 0:G.parentNode.parentNode)}}function S(L){return L&&L.className.indexOf(e.collapsibleClass)!==-1&&L.className.indexOf(e.isCollapsedClass)!==-1?(b(L,L.className.replace(a+e.isCollapsedClass,"")),S(L.parentNode.parentNode)):L}function h(L){let w=L.target||L.srcElement;typeof w.className!="string"||w.className.indexOf(e.linkClass)===-1||(i=!1)}function y(){i=!0}function E(){return i}function x(L){let w=_();return(document==null?void 0:document.getElementById(L)).offsetTop>w.offsetHeight-w.clientHeight*1.4-e.bottomModeThreshold}function T(){let L=_(),w=L.scrollHeight>L.clientHeight,I=C()+L.clientHeight>L.offsetHeight-e.bottomModeThreshold;return w&&I}function _(){let L;return e.scrollContainer&&document.querySelector(e.scrollContainer)?L=document.querySelector(e.scrollContainer):L=document.documentElement||n,L}function C(){var L;return((L=_())==null?void 0:L.scrollTop)||0}function O(L,w=C()){let I;return r.call(L,(k,M)=>{if(p(k)>w+e.headingsOffset+10){let B=M===0?M:M-1;return I=L[B],!0}if(M===L.length-1)return I=L[L.length-1],!0}),I}function D(L){let w=C(),I=O(L,w),k=T();if((!I||w<5)&&!k)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!k){let M=`#${I.id}`;window.location.hash!==M&&window.history.pushState(null,null,M)}}return{enableTocAnimation:y,disableTocAnimation:h,render:u,updateToc:v,getCurrentlyHighlighting:E,getTopHeader:O,getScrollTop:C,updateUrlHashForHeader:D}}var Wse={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function Xse(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function a(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function l(u){if(!a(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let c=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),d={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:c};return e.includeHtml&&(d.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(d,u):d}function i(u,c){let d=l(u),f=d.headingLevel,p=c,b=r(p),v=b?b.headingLevel:0,S=f-v;for(;S>0&&(b=r(p),!(b&&f===b.headingLevel));)b&&b.children!==void 0&&(p=b.children),S--;return f>=e.collapseDepth&&(d.isCollapsed=!0),p.push(d),p}function o(u,c){let d=c;e.ignoreSelector&&(d=c.split(",").map(function(f){return`${f.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(d)}catch{return console.warn(`Headers not found with selector: ${d}`),null}}function s(u){return t.call(u,function(c,d){let f=l(d);return f&&i(f,c.nest),c},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:o}}function Zse(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;a();function a(){document.body.addEventListener("click",s,!1);function s(u){!l(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||Qse(u.target.hash,{duration:t,offset:r,callback:function(){o(u.target.hash)}})}}function l(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function o(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function Qse(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||d},a=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),l=typeof e=="string"?n.offset+(e?a&&a.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(l):n.duration,o,s;requestAnimationFrame(function(f){o=f,u(f)});function u(f){s=f-o,window.scrollTo(0,n.easing(s,r,l,i)),s<i?requestAnimationFrame(u):c()}function c(){window.scrollTo(0,r+l),typeof n.callback=="function"&&n.callback()}function d(f,p,b,v){return f/=v/2,f<1?b/2*f*f+p:(f--,-b/2*(f*(f-2)-1)+p)}}function Jse(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ie={},Vr,im,ol,Wr,Ps;function S6(e){let t=!1;ie=rue(Wse,e||{}),ie.scrollSmooth&&(ie.duration=ie.scrollSmoothDuration,ie.offset=ie.scrollSmoothOffset,Zse(ie)),Vr=qse(ie),im=Xse(ie),bv();let r=aue(ie);if(r===null)return;let n=x6(ie);if(n===null||(ol=im.selectHeadings(r,ie.headingSelector),ol===null))return;let a=im.nestHeadingsArray(ol).nest;if(!ie.skipRendering)Vr.render(n,a);else return this;let l=!1,i=ie.scrollHandlerTimeout||ie.throttleTimeout;Wr=((s,u)=>nue(s,u,ie.scrollHandlerType))(s=>{var c,d,f;Vr.updateToc(ol,s),!ie.disableTocScrollSync&&!l&&Jse(ie),ie.enableUrlHashUpdateOnScroll&&t&&Vr.getCurrentlyHighlighting()&&Vr.updateUrlHashForHeader(ol);let u=((d=(c=s==null?void 0:s.target)==null?void 0:c.scrollingElement)==null?void 0:d.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(Vr.updateToc(ol),(f=ie.scrollEndCallback)==null||f.call(ie,s))},i),t||(Wr(),t=!0),window.onhashchange=window.onscrollend=s=>{Wr(s)},ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).addEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).addEventListener("resize",Wr,!1)):(document.addEventListener("scroll",Wr,!1),document.addEventListener("resize",Wr,!1));let o=null;Ps=_y(s=>{l=!0,ie.scrollSmooth&&Vr.disableTocAnimation(s),Vr.updateToc(ol,s),o&&clearTimeout(o),o=setTimeout(()=>{Vr.enableTocAnimation()},ie.scrollSmoothDuration),setTimeout(()=>{l=!1},ie.scrollSmoothDuration+100)},ie.throttleTimeout),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?document.querySelector(ie.scrollContainer).addEventListener("click",Ps,!1):document.addEventListener("click",Ps,!1)}function bv(){let e=x6(ie);e!==null&&(ie.skipRendering||e&&(e.innerHTML=""),ie.scrollContainer&&document.querySelector(ie.scrollContainer)?(document.querySelector(ie.scrollContainer).removeEventListener("scroll",Wr,!1),document.querySelector(ie.scrollContainer).removeEventListener("resize",Wr,!1),Vr&&document.querySelector(ie.scrollContainer).removeEventListener("click",Ps,!1)):(document.removeEventListener("scroll",Wr,!1),document.removeEventListener("resize",Wr,!1),Vr&&document.removeEventListener("click",Ps,!1)))}function eue(e){bv(),S6(e||ie)}var tue=Object.prototype.hasOwnProperty;function rue(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let a in n)tue.call(n,a)&&(t[a]=n[a])}return t}function _y(e,t,r){t||(t=250);let n,a;return function(...l){let i=this,o=+new Date;n&&o<n+t?(clearTimeout(a),a=setTimeout(()=>{n=o,e.apply(i,l)},t)):(n=o,e.apply(i,l))}}function BC(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function nue(e,t,r="auto"){switch(r){case"debounce":return BC(e,t);case"throttle":return _y(e,t);default:return t<334?BC(e,t):_y(e,t)}}function aue(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function x6(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var lue={destroy:bv,init:S6,refresh:eue},PC=lue,iue=F.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),oue=F.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),sue=F.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.color.defaultText,textTransform:"uppercase",marginBottom:10})),uue=({headingId:e,title:t})=>typeof t=="string"||!t?m.createElement(sue,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):m.createElement("div",{id:e},t),cue=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:a,unsafeTocbotOptions:l,channel:i,className:o})=>{g.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:a??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:d=>{if(d.preventDefault(),d.currentTarget instanceof HTMLAnchorElement){let[,f]=d.currentTarget.href.split("#");f&&i.emit(Yse,`#${f}`)}},...l},c=setTimeout(()=>PC.init(u),100);return()=>{clearTimeout(c),PC.destroy()}},[i,t,a,n,r,l]);let s="table-of-contents";return m.createElement(iue,{className:o},t?null:m.createElement(oue,{"aria-labelledby":s},m.createElement(uue,{headingId:s,title:e}),m.createElement("div",{className:"toc-wrapper"})))},due=e=>`anchor--${e}`,fue=({storyId:e,children:t})=>m.createElement("div",{id:due(e),className:"sb-anchor"},t);const{filterArgTypes:IC}=__STORYBOOK_MODULE_PREVIEW_API__;var ei=(e,t)=>g.useContext(Ur).resolveOf(e,t),pue=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),$6=e=>{if(e)return typeof e=="string"?e.includes("-")?pue(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function hue(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}function _6(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}function gue(e){if(e.type==="component"){let{component:l,projectAnnotations:{parameters:i}}=e;return{argTypes:_6(l,i),parameters:i,component:l}}if(e.type==="meta"){let{preparedMeta:{argTypes:l,parameters:i,component:o,subcomponents:s}}=e;return{argTypes:l,parameters:i,component:o,subcomponents:s}}let{story:{argTypes:t,parameters:r,component:n,subcomponents:a}}=e;return{argTypes:t,parameters:r,component:n,subcomponents:a}}var mue=e=>{var v;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=ei(t||"meta"),{argTypes:n,parameters:a,component:l,subcomponents:i}=gue(r),o=((v=a==null?void 0:a.docs)==null?void 0:v.argTypes)||{},s=e.include??o.include,u=e.exclude??o.exclude,c=e.sort??o.sort,d=IC(n,s,u);if(!(i&&Object.keys(i||{}).length>0))return m.createElement(Nf,{rows:d,sort:c});let f=$6(l)||"Main",p=Object.fromEntries(Object.entries(i||{}).map(([S,h])=>[S,{rows:IC(_6(h,a),s,u),sort:c}])),b={[f]:{rows:d,sort:c},...p};return m.createElement(E6,{tabs:b,sort:c})};It("ArgTypes",mue);var yue=Object.create,C6=Object.defineProperty,bue=Object.getOwnPropertyDescriptor,T6=Object.getOwnPropertyNames,vue=Object.getPrototypeOf,Eue=Object.prototype.hasOwnProperty,ue=(e,t)=>function(){return t||(0,e[T6(e)[0]])((t={exports:{}}).exports,t),t.exports},Sue=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of T6(t))!Eue.call(e,a)&&a!==r&&C6(e,a,{get:()=>t[a],enumerable:!(n=bue(t,a))||n.enumerable});return e},vv=(e,t,r)=>(r=e!=null?yue(vue(e)):{},Sue(!e||!e.__esModule?C6(r,"default",{value:e,enumerable:!0}):r,e)),xue=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],$ue=["detail"];function _ue(e){let t=xue.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of $ue.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var w6=ue({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),Cue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),Tue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),wue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),Aue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),Oue=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),Ev=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),Due=ue({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),Rue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),Nue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),Lue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),Mue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),Fue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),Bue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),Pue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),Iue=ue({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=Pue();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),kue=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Sv=ue({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=kue();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),zue=ue({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),A6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var l=42;r[n]=l;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var o=Object.getOwnPropertySymbols(r);if(o.length!==1||o[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==l||s.enumerable!==!0)return!1}return!0}}}),O6=ue({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=A6();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),D6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),R6=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=w6();t.exports=r.getPrototypeOf||null}}),Hue=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,l="[object Function]",i=function(u,c){for(var d=[],f=0;f<u.length;f+=1)d[f]=u[f];for(var p=0;p<c.length;p+=1)d[p+u.length]=c[p];return d},o=function(u,c){for(var d=[],f=c,p=0;f<u.length;f+=1,p+=1)d[p]=u[f];return d},s=function(u,c){for(var d="",f=0;f<u.length;f+=1)d+=u[f],f+1<u.length&&(d+=c);return d};t.exports=function(u){var c=this;if(typeof c!="function"||n.apply(c)!==l)throw new TypeError(r+c);for(var d=o(arguments,1),f,p=function(){if(this instanceof f){var y=c.apply(this,i(d,arguments));return Object(y)===y?y:this}return c.apply(u,i(d,arguments))},b=a(0,c.length-d.length),v=[],S=0;S<b;S++)v[S]="$"+S;if(f=Function("binder","return function ("+s(v,",")+"){ return binder.apply(this,arguments); }")(p),c.prototype){var h=function(){};h.prototype=c.prototype,f.prototype=new h,h.prototype=null}return f}}}),Gp=ue({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=Hue();t.exports=Function.prototype.bind||r}}),xv=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),N6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),Uue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),jue=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=Gp(),n=N6(),a=xv(),l=Uue();t.exports=l||r.call(a,n)}}),L6=ue({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=Gp(),n=Ev(),a=xv(),l=jue();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return l(r,a,i)}}}),Kue=ue({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=L6(),n=Sv(),a;try{a=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var l=!!a&&n&&n(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;t.exports=l&&typeof l.get=="function"?r([l.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1}}),Gue=ue({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=D6(),n=R6(),a=Kue();t.exports=r?function(l){return r(l)}:n?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return n(l)}:a?function(l){return a(l)}:null}}),M6=ue({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=Gp();t.exports=a.call(r,n)}}),Vue=ue({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=w6(),a=Cue(),l=Tue(),i=wue(),o=Aue(),s=Oue(),u=Ev(),c=Due(),d=Rue(),f=Nue(),p=Lue(),b=Mue(),v=Fue(),S=Bue(),h=Iue(),y=Function,E=function(J){try{return y('"use strict"; return ('+J+").constructor;")()}catch{}},x=Sv(),T=zue(),_=function(){throw new u},C=x?function(){try{return arguments.callee,_}catch{try{return x(arguments,"callee").get}catch{return _}}}():_,O=O6()(),D=Gue(),L=R6(),w=D6(),I=N6(),k=xv(),M={},B=typeof Uint8Array>"u"||!D?r:D(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":O&&D?D([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":M,"%AsyncGenerator%":M,"%AsyncGeneratorFunction%":M,"%AsyncIteratorPrototype%":M,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":l,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":M,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":O&&D?D(D([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!O||!D?r:D(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!O||!D?r:D(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":O&&D?D(""[Symbol.iterator]()):r,"%Symbol%":O?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":I,"%Object.defineProperty%":T,"%Object.getPrototypeOf%":L,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":b,"%Math.pow%":v,"%Math.round%":S,"%Math.sign%":h,"%Reflect.getPrototypeOf%":w};if(D)try{null.error}catch(J){A=D(D(J)),$["%Error.prototype%"]=A}var A,R=function J(Y){var X;if(Y==="%AsyncFunction%")X=E("async function () {}");else if(Y==="%GeneratorFunction%")X=E("function* () {}");else if(Y==="%AsyncGeneratorFunction%")X=E("async function* () {}");else if(Y==="%AsyncGenerator%"){var le=J("%AsyncGeneratorFunction%");le&&(X=le.prototype)}else if(Y==="%AsyncIteratorPrototype%"){var ye=J("%AsyncGenerator%");ye&&D&&(X=D(ye.prototype))}return $[Y]=X,X},P={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=Gp(),z=M6(),U=N.call(k,Array.prototype.concat),K=N.call(I,Array.prototype.splice),G=N.call(k,String.prototype.replace),H=N.call(k,String.prototype.slice),V=N.call(k,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ee=/\\(\\)?/g,W=function(J){var Y=H(J,0,1),X=H(J,-1);if(Y==="%"&&X!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&Y!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var le=[];return G(J,q,function(ye,kt,Q,zt){le[le.length]=Q?G(zt,ee,"$1"):kt||ye}),le},ke=function(J,Y){var X=J,le;if(z(P,X)&&(le=P[X],X="%"+le[0]+"%"),z($,X)){var ye=$[X];if(ye===M&&(ye=R(X)),typeof ye>"u"&&!Y)throw new u("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:le,name:X,value:ye}}throw new s("intrinsic "+J+" does not exist!")};t.exports=function(J,Y){if(typeof J!="string"||J.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y!="boolean")throw new u('"allowMissing" argument must be a boolean');if(V(/^%?[^%]*%?$/,J)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=W(J),le=X.length>0?X[0]:"",ye=ke("%"+le+"%",Y),kt=ye.name,Q=ye.value,zt=!1,jr=ye.alias;jr&&(le=jr[0],K(X,U([0,1],jr)));for(var ir=1,Kr=!0;ir<X.length;ir+=1){var ot=X[ir],wn=H(ot,0,1),An=H(ot,-1);if((wn==='"'||wn==="'"||wn==="`"||An==='"'||An==="'"||An==="`")&&wn!==An)throw new s("property names with quotes must have matching quotes");if((ot==="constructor"||!Kr)&&(zt=!0),le+="."+ot,kt="%"+le+"%",z($,kt))Q=$[kt];else if(Q!=null){if(!(ot in Q)){if(!Y)throw new u("base intrinsic for "+J+" exists, but the property is not available.");return}if(x&&ir+1>=X.length){var On=x(Q,ot);Kr=!!On,Kr&&"get"in On&&!("originalValue"in On.get)?Q=On.get:Q=Q[ot]}else Kr=z(Q,ot),Q=Q[ot];Kr&&!zt&&($[kt]=Q)}}return Q}}}),$v=ue({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=Vue(),n=L6(),a=n([r("%String.prototype.indexOf%")]);t.exports=function(l,i){var o=r(l,!!i);return typeof o=="function"&&a(l,".prototype.")>-1?n([o]):o}}}),Yue=ue({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=A6();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),F6=ue({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=$v(),n=Yue()(),a=M6(),l=Sv(),i;n?(o=r("RegExp.prototype.exec"),s={},u=function(){throw s},c={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(c[Symbol.toPrimitive]=u),i=function(p){if(!p||typeof p!="object")return!1;var b=l(p,"lastIndex"),v=b&&a(b,"value");if(!v)return!1;try{o(p,c)}catch(S){return S===s}}):(d=r("Object.prototype.toString"),f="[object RegExp]",i=function(p){return!p||typeof p!="object"&&typeof p!="function"?!1:d(p)===f});var o,s,u,c,d,f;t.exports=i}}),que=ue({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var l=r.call(a);return l==="[object Function]"||typeof a=="function"&&l!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}}}),Wue=ue({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=$v(),n=F6(),a=r("RegExp.prototype.exec"),l=Ev();t.exports=function(i){if(!n(i))throw new l("`regex` must be a RegExp");return function(o){return a(i,o)!==null}}}}),Xue=ue({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=$v(),n=r("Object.prototype.toString"),a=O6()(),l=Wue();a?(i=r("Symbol.prototype.toString"),o=l(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:o(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,o,s}}),Zue=vv(F6()),Que=vv(que()),Jue=vv(Xue());function ece(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var tce=typeof global=="object"&&global&&global.Object===Object&&global,rce=tce,nce=typeof self=="object"&&self&&self.Object===Object&&self,ace=rce||nce||Function("return this")(),_v=ace,lce=_v.Symbol,yo=lce,B6=Object.prototype,ice=B6.hasOwnProperty,oce=B6.toString,ls=yo?yo.toStringTag:void 0;function sce(e){var t=ice.call(e,ls),r=e[ls];try{e[ls]=void 0;var n=!0}catch{}var a=oce.call(e);return n&&(t?e[ls]=r:delete e[ls]),a}var uce=sce,cce=Object.prototype,dce=cce.toString;function fce(e){return dce.call(e)}var pce=fce,hce="[object Null]",gce="[object Undefined]",kC=yo?yo.toStringTag:void 0;function mce(e){return e==null?e===void 0?gce:hce:kC&&kC in Object(e)?uce(e):pce(e)}var yce=mce,zC=yo?yo.prototype:void 0;zC&&zC.toString;function bce(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var P6=bce,vce="[object AsyncFunction]",Ece="[object Function]",Sce="[object GeneratorFunction]",xce="[object Proxy]";function $ce(e){if(!P6(e))return!1;var t=yce(e);return t==Ece||t==Sce||t==vce||t==xce}var _ce=$ce,Cce=_v["__core-js_shared__"],om=Cce,HC=function(){var e=/[^.]+$/.exec(om&&om.keys&&om.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Tce(e){return!!HC&&HC in e}var wce=Tce,Ace=Function.prototype,Oce=Ace.toString;function Dce(e){if(e!=null){try{return Oce.call(e)}catch{}try{return e+""}catch{}}return""}var Rce=Dce,Nce=/[\\^$.*+?()[\]{}|]/g,Lce=/^\[object .+?Constructor\]$/,Mce=Function.prototype,Fce=Object.prototype,Bce=Mce.toString,Pce=Fce.hasOwnProperty,Ice=RegExp("^"+Bce.call(Pce).replace(Nce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kce(e){if(!P6(e)||wce(e))return!1;var t=_ce(e)?Ice:Lce;return t.test(Rce(e))}var zce=kce;function Hce(e,t){return e==null?void 0:e[t]}var Uce=Hce;function jce(e,t){var r=Uce(e,t);return zce(r)?r:void 0}var I6=jce;function Kce(e,t){return e===t||e!==e&&t!==t}var Gce=Kce,Vce=I6(Object,"create"),gu=Vce;function Yce(){this.__data__=gu?gu(null):{},this.size=0}var qce=Yce;function Wce(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Xce=Wce,Zce="__lodash_hash_undefined__",Qce=Object.prototype,Jce=Qce.hasOwnProperty;function ede(e){var t=this.__data__;if(gu){var r=t[e];return r===Zce?void 0:r}return Jce.call(t,e)?t[e]:void 0}var tde=ede,rde=Object.prototype,nde=rde.hasOwnProperty;function ade(e){var t=this.__data__;return gu?t[e]!==void 0:nde.call(t,e)}var lde=ade,ide="__lodash_hash_undefined__";function ode(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=gu&&t===void 0?ide:t,this}var sde=ode;function Bo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Bo.prototype.clear=qce;Bo.prototype.delete=Xce;Bo.prototype.get=tde;Bo.prototype.has=lde;Bo.prototype.set=sde;var UC=Bo;function ude(){this.__data__=[],this.size=0}var cde=ude;function dde(e,t){for(var r=e.length;r--;)if(Gce(e[r][0],t))return r;return-1}var Vp=dde,fde=Array.prototype,pde=fde.splice;function hde(e){var t=this.__data__,r=Vp(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():pde.call(t,r,1),--this.size,!0}var gde=hde;function mde(e){var t=this.__data__,r=Vp(t,e);return r<0?void 0:t[r][1]}var yde=mde;function bde(e){return Vp(this.__data__,e)>-1}var vde=bde;function Ede(e,t){var r=this.__data__,n=Vp(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var Sde=Ede;function Po(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Po.prototype.clear=cde;Po.prototype.delete=gde;Po.prototype.get=yde;Po.prototype.has=vde;Po.prototype.set=Sde;var xde=Po,$de=I6(_v,"Map"),_de=$de;function Cde(){this.size=0,this.__data__={hash:new UC,map:new(_de||xde),string:new UC}}var Tde=Cde;function wde(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Ade=wde;function Ode(e,t){var r=e.__data__;return Ade(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Yp=Ode;function Dde(e){var t=Yp(this,e).delete(e);return this.size-=t?1:0,t}var Rde=Dde;function Nde(e){return Yp(this,e).get(e)}var Lde=Nde;function Mde(e){return Yp(this,e).has(e)}var Fde=Mde;function Bde(e,t){var r=Yp(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Pde=Bde;function Io(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Io.prototype.clear=Tde;Io.prototype.delete=Rde;Io.prototype.get=Lde;Io.prototype.has=Fde;Io.prototype.set=Pde;var k6=Io,Ide="Expected a function";function Cv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ide);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],l=r.cache;if(l.has(a))return l.get(a);var i=e.apply(this,n);return r.cache=l.set(a,i)||l,i};return r.cache=new(Cv.Cache||k6),r}Cv.Cache=k6;var kde=Cv,zde=500;function Hde(e){var t=kde(e,function(n){return r.size===zde&&r.clear(),n}),r=t.cache;return t}var Ude=Hde,jde=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kde=/\\(\\)?/g;Ude(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(jde,function(r,n,a,l){t.push(a?l.replace(Kde,"$1"):n||r)}),t});var Gde=ece,Vde=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function z6(e){if(!Gde(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=_ue(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}var Yde=function(e){let t,r,n,a;return function(l,i){var o;try{if(l==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return Vde.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,Zue.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,Que.default)(i))return;if((0,Jue.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if((o=i==null?void 0:i.constructor)!=null&&o.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let c=t.get(i);if(!c){let d={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((f,p)=>{try{f[p]=i[p]}catch{}return f},{})};return a.push(l),n.unshift(d),t.set(i,JSON.stringify(a)),i!==d&&r.set(i,d),d}return`_duplicate_${c}`}let u=t.get(i);if(!u){let c=Array.isArray(i)?i:z6(i);return a.push(l),n.unshift(c),t.set(i,JSON.stringify(a)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}catch{return}}},qde={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Wde=(e,t={})=>{let r={...qde,...t};return JSON.stringify(z6(e),Yde(r),t.space)};function H6(e){return Wde(e,{maxDepth:50})}var Tv=g.createContext({sources:{}}),U6="--unknown--",Xde=({children:e,channel:t})=>{let[r,n]=g.useState({});return g.useEffect(()=>{let a=(l,i=null,o=!1)=>{let{id:s,args:u=void 0,source:c,format:d}=typeof l=="string"?{id:l,source:i,format:o}:l,f=u?H6(u):U6;n(p=>({...p,[s]:{...p[s],[f]:{code:c||"",format:d}}}))};return t.on(Nv,a),()=>t.off(Nv,a)},[]),m.createElement(Tv.Provider,{value:{sources:r}},e)};function Zde(e,t,r){let[n,a]=g.useState("Transforming..."),l=t?t==null?void 0:t(e,r):e;return g.useEffect(()=>{async function i(){let o=await l;o!==n&&a(o)}i()}),typeof l=="object"&&typeof l.then=="function"?n:l}var Qde=(e,t,r)=>{let{sources:n}=r,a=n==null?void 0:n[e];return(a==null?void 0:a[H6(t)])||(a==null?void 0:a[U6])||{code:""}},Jde=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var d;let a=t.parameters??{},{__isArgsStory:l}=a,i=((d=a.docs)==null?void 0:d.source)||{},o=r||i.type||Xp.AUTO,s=o===Xp.DYNAMIC||o===Xp.AUTO&&e&&l?e:i.originalSource||"",u=n??i.transform,c=u?Zde(s,u,t):s;return i.code!==void 0?i.code:c},j6=(e,t,r)=>{var p,b;let{of:n}=e,a=g.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),l=a?t.getStoryContext(a):{},i=e.__forceInitialArgs?l.initialArgs:l.unmappedArgs,o=a?Qde(a.id,i,r):null,s=Jde({snippet:o?o.code:"",storyContext:{...l,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((b=(p=a==null?void 0:a.parameters)==null?void 0:p.docs)==null?void 0:b.source)||{},c=e.format,d=e.language??u.language??"jsx",f=e.dark??u.dark??!1;return!e.code&&!a?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:c,language:d,dark:f}:(c=(o==null?void 0:o.format)??!0,{code:s,format:c,language:d,dark:f})},efe=e=>{let t=g.useContext(Tv),r=g.useContext(Ur),n=j6(e,r,t);return m.createElement(uv,{...n})};It("Source",efe);var tfe=e=>{var p,b,v,S,h,y,E,x,T,_,C,O,D,L;let t=g.useContext(Ur),r=g.useContext(Tv),{of:n,source:a}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:l}=ei(n||"story",["story"]),i=j6({...a,...n&&{of:n}},t,r),o=e.layout??l.parameters.layout??((b=(p=l.parameters.docs)==null?void 0:p.canvas)==null?void 0:b.layout)??"padded",s=e.withToolbar??((S=(v=l.parameters.docs)==null?void 0:v.canvas)==null?void 0:S.withToolbar)??!1,u=e.additionalActions??((y=(h=l.parameters.docs)==null?void 0:h.canvas)==null?void 0:y.additionalActions),c=e.sourceState??((x=(E=l.parameters.docs)==null?void 0:E.canvas)==null?void 0:x.sourceState)??"hidden",d=e.className??((_=(T=l.parameters.docs)==null?void 0:T.canvas)==null?void 0:_.className),f=((C=e.story)==null?void 0:C.inline)??((L=(D=(O=l.parameters)==null?void 0:O.docs)==null?void 0:D.story)==null?void 0:L.inline)??!1;return m.createElement(v6,{withSource:c==="none"?void 0:i,isExpanded:c==="shown",withToolbar:s,additionalActions:u,className:d,layout:o,inline:f},m.createElement(Dse,{of:n||l.moduleExport,meta:e.meta,...e.story}))},rfe=It("Canvas",tfe);const{filterArgTypes:jC}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:nfe,STORY_ARGS_UPDATED:KC,UPDATE_STORY_ARGS:afe}=__STORYBOOK_MODULE_CORE_EVENTS__;var lfe=(e,t)=>{let r=ife(e,t);if(!r)throw new Error("No result when story was defined");return r},ife=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[a,l]=g.useState(r.args);g.useEffect(()=>{let s=u=>{u.storyId===n&&l(u.args)};return t.channel.on(KC,s),()=>t.channel.off(KC,s)},[n,t.channel]);let i=g.useCallback(s=>t.channel.emit(afe,{storyId:n,updatedArgs:s}),[n,t.channel]),o=g.useCallback(s=>t.channel.emit(nfe,{storyId:n,argNames:s}),[n,t.channel]);return e&&[a,i,o]};const{GLOBALS_UPDATED:GC}=__STORYBOOK_MODULE_CORE_EVENTS__;var ofe=(e,t)=>{let r=t.getStoryContext(e),[n,a]=g.useState(r.globals);return g.useEffect(()=>{let l=i=>{a(i.globals)};return t.channel.on(GC,l),()=>t.channel.off(GC,l)},[t.channel]),[n]};const{Tag:sfe}=__STORYBOOK_MODULE_PREVIEW_API__;var K6=()=>g.useContext(Ur).componentStories().find(e=>e.tags.includes(sfe.AUTODOCS));function ufe(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var cfe=e=>{var T;let{of:t}=e,r=g.useContext(Ur),n=K6(),a=t?r.resolveOf(t,["story"]).story:n;if(!a)return null;let{parameters:l,argTypes:i,component:o,subcomponents:s}=a,u=((T=l.docs)==null?void 0:T.controls)||{},c=e.include??u.include,d=e.exclude??u.exclude,f=e.sort??u.sort,[p,b,v]=lfe(a,r),[S]=ofe(a,r),h=jC(i,c,d);if(!(s&&Object.keys(s||{}).length>0))return Object.keys(h).length>0||Object.keys(p).length>0?m.createElement(Nf,{rows:h,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v}):null;let y=$6(o)||"Story",E=Object.fromEntries(Object.entries(s||{}).map(([_,C])=>[_,{rows:jC(ufe(C,l),c,d),sort:f}])),x={[y]:{rows:h,sort:f},...E};return m.createElement(E6,{tabs:x,sort:f,args:p,globals:S,updateArgs:b,resetArgs:v})},dfe=It("Controls",cfe);const{NAVIGATE_URL:ffe}=__STORYBOOK_MODULE_CORE_EVENTS__;var{document:G6}=globalThis,V6=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return m.createElement(O1,null,t);let n=e&&e.split("-");return m.createElement(uv,{language:n&&n[1]||"text",format:!1,code:t,...r})};function wv(e,t){e.channel.emit(ffe,t)}var Cy=B4.a,pfe=({hash:e,children:t})=>{let r=g.useContext(Ur);return m.createElement(Cy,{href:e,target:"_self",onClick:n=>{let a=e.substring(1);G6.getElementById(a)&&wv(r,e)}},t)},Y6=e=>{let{href:t,target:r,children:n,...a}=e,l=g.useContext(Ur);return!t||r==="_blank"||/^https?:\/\//.test(t)?m.createElement(Cy,{...e}):t.startsWith("#")?m.createElement(pfe,{hash:t},n):m.createElement(Cy,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),wv(l,i.currentTarget.getAttribute("href")||""))},target:r,...a},n)},q6=["h1","h2","h3","h4","h5","h6"],hfe=q6.reduce((e,t)=>({...e,[t]:F(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),gfe=F.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),mfe=({as:e,id:t,children:r,...n})=>{let a=g.useContext(Ur),l=hfe[e],i=`#${t}`;return m.createElement(l,{id:t,...n},m.createElement(gfe,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:o=>{G6.getElementById(t)&&wv(a,i)}},m.createElement(gz,null)),r)},Av=e=>{let{as:t,id:r,children:n,...a}=e;if(r)return m.createElement(mfe,{as:t,id:r,...a},n);let l=t,{as:i,...o}=e;return m.createElement(l,{...ze(o,t)})},W6=q6.reduce((e,t)=>({...e,[t]:r=>m.createElement(Av,{as:t,...r})}),{}),yfe=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(vae`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
796
796
  This is often caused by not wrapping the child in a template string.
797
797
 
798
798
  This is invalid: