@oliasoft-open-source/charts-library 5.2.1-beta-1 → 5.2.1-beta-3
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.
- package/dist/assets/Color-64QXVMR3-B1MqwVmC.js +1 -0
- package/dist/assets/DocsRenderer-HT7GNKAR-B5EfaRzZ.js +2 -0
- package/dist/assets/WithTooltip-SK46ZJ2J-QHknRFLr.js +1 -0
- package/dist/assets/{bar-chart.stories-BGngamFz.js → bar-chart.stories-B9q5xhbQ.js} +3 -3
- package/dist/assets/client-Gmcdq2cm.js +1 -0
- package/dist/assets/components-CetimBDC.js +1 -0
- package/dist/assets/formatter-OMEEQ6HG-Y4g15AKl.js +1 -0
- package/dist/assets/get-draggableData-S7e203pk.js +2 -0
- package/dist/assets/iframe-B7H0zEqt.js +1893 -0
- package/dist/assets/{legend-Be3VjYcC.js → legend-D3MbJ1Ue.js} +9 -9
- package/dist/assets/legend-context-DCJK-k1e.js +47 -0
- package/dist/assets/line-chart-BihuMd7j.js +1 -0
- package/dist/assets/line-chart.stories-CtAPApyw.js +1162 -0
- package/dist/assets/{line-chart.test-case.stories-Cv2J7QkQ.js → line-chart.test-case.stories-Corx6hCH.js} +1 -1
- package/dist/assets/noto-sans-cyrillic-400-italic-CMQj_TQM.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-400-italic-Dm4hr-Ag.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-400-normal-BDYvNhAR.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-400-normal-CHP_ranX.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-italic-DWLFq66Q.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-700-italic-DaJcJxmx.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-CgNbF-DS.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-700-normal-Y97T0Ual.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-italic-C9NI8UaU.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-italic-DqW_YkPk.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-normal-BjDhGU6t.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-400-normal-d9FrwbiD.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-CJ2zNwEf.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-italic-wfn8l9BI.woff +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-Cpjpjy5f.woff2 +0 -0
- package/dist/assets/noto-sans-cyrillic-ext-700-normal-DKaOP4w1.woff +0 -0
- package/dist/assets/noto-sans-devanagari-400-italic-BpEXw0fu.woff +0 -0
- package/dist/assets/noto-sans-devanagari-400-italic-aza5nvbj.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-normal-C3FccbrF.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-400-normal-g9fsM2jL.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-BWxeZW2N.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-italic-DlNZooX8.woff +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-BeKZv04D.woff2 +0 -0
- package/dist/assets/noto-sans-devanagari-700-normal-DQ20I1k4.woff +0 -0
- package/dist/assets/noto-sans-greek-400-italic-Cw158ua2.woff2 +0 -0
- package/dist/assets/noto-sans-greek-400-italic-Ds3lC5jm.woff +0 -0
- package/dist/assets/noto-sans-greek-400-normal-Be2BcUUc.woff +0 -0
- package/dist/assets/noto-sans-greek-400-normal-DCESwnT1.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-italic-BXqStIRT.woff +0 -0
- package/dist/assets/noto-sans-greek-700-italic-K6HhztJz.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-normal-C_NBFngB.woff2 +0 -0
- package/dist/assets/noto-sans-greek-700-normal-DspBLmJZ.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-400-italic-D9i0Od8_.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-400-italic-DlxXzGt2.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-400-normal-L11LEhi4.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-400-normal-i2oSBwXz.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-BVb6BEPG.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-italic-DrlV2HeE.woff2 +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-BvxaxZ-t.woff +0 -0
- package/dist/assets/noto-sans-greek-ext-700-normal-CqXHsD66.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-italic-B5_wyGmT.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-italic-DfHMVQD-.woff +0 -0
- package/dist/assets/noto-sans-latin-400-normal-DBaOTIGl.woff2 +0 -0
- package/dist/assets/noto-sans-latin-400-normal-DKQcY9Xy.woff +0 -0
- package/dist/assets/noto-sans-latin-700-italic-BcjsTJqQ.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-italic-Cy-hKh7h.woff +0 -0
- package/dist/assets/noto-sans-latin-700-normal-CG28WTf7.woff2 +0 -0
- package/dist/assets/noto-sans-latin-700-normal-DVIsH__v.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-400-italic-BXXaecLH.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-400-italic-C3uzHanu.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-400-normal-CNh9dRW_.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-400-normal-CVf-LbaS.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-S9i1fPgy.woff2 +0 -0
- package/dist/assets/noto-sans-latin-ext-700-italic-dYKfCWXj.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-CDZvJj8X.woff +0 -0
- package/dist/assets/noto-sans-latin-ext-700-normal-CnRwbtty.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-400-italic-Dotu2pZp.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-400-italic-da8J1rYs.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-400-normal-C3Al4sv4.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-400-normal-D2wP-Vm-.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-DTbX1pks.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-italic-DgcmztT9.woff2 +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-BpIrMy6S.woff +0 -0
- package/dist/assets/noto-sans-vietnamese-700-normal-Cg_u0UBD.woff2 +0 -0
- package/dist/assets/pie-chart.stories-blndszYB.js +45 -0
- package/dist/assets/preload-helper-Dr7BywEQ.js +1 -0
- package/dist/assets/react-18-DX-tgLUC.js +1 -0
- package/dist/assets/react-DCYwno-b.js +1 -0
- package/dist/assets/scatter-chart.stories-jLOhJqGP.js +41 -0
- package/dist/assets/syntaxhighlighter-DK2ODWXH-BEYX_Mbt.js +6 -0
- package/dist/favicon-wrapper.svg +46 -0
- package/dist/favicon.svg +1 -1
- package/dist/iframe.html +31 -10
- package/dist/index.html +21 -33
- package/dist/index.js +4297 -38765
- package/dist/index.json +1 -1
- package/dist/project.json +1 -1
- package/dist/sb-addons/docs-1/manager-bundle.js +3 -0
- package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +921 -0
- package/dist/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js.LEGAL.txt +12 -0
- package/dist/sb-common-assets/favicon-wrapper.svg +46 -0
- package/dist/sb-common-assets/favicon.svg +1 -1
- package/dist/sb-manager/globals-runtime.js +81025 -39077
- package/dist/sb-manager/globals.js +14 -37
- package/dist/sb-manager/runtime.js +16287 -9197
- package/dist/vite-inject-mocker-entry.js +8 -0
- package/package.json +6 -10
- package/dist/assets/Color-YHDXOIA2-BH-AgNhy.js +0 -1
- package/dist/assets/DocsRenderer-CFRXHY34-Dx3M1XwG.js +0 -1
- package/dist/assets/chunk-2PTXLE6R-BSsKYLj_.js +0 -1
- package/dist/assets/chunk-H6MOWX77-Ds8Hqw1O.js +0 -1
- package/dist/assets/chunk-NUUEMKO5-2vSX1C-f.js +0 -56
- package/dist/assets/chunk-PRSJUHPQ-ClaE-lMK.js +0 -2
- package/dist/assets/chunk-XP5HYGXS-DyEAuB1b.js +0 -1
- package/dist/assets/client-mhWrpqNE.js +0 -1
- package/dist/assets/components-BTILpkCb.js +0 -1
- package/dist/assets/components-BUMWgrws.js +0 -534
- package/dist/assets/docs-tools-C8juKH9v.js +0 -8
- package/dist/assets/entry-preview-D8bkngdo.js +0 -2
- package/dist/assets/entry-preview-docs-DkpGzTK0.js +0 -48
- package/dist/assets/fast-deep-equal-GJSfJzsC.js +0 -1
- package/dist/assets/get-draggableData-DyVot8Zl.js +0 -2
- package/dist/assets/iframe-BC9QdfhZ.js +0 -226
- package/dist/assets/jsx-runtime-BNVfsWEC.js +0 -1
- package/dist/assets/legend-context-Bh42wyEh.js +0 -47
- package/dist/assets/line-chart-B0hmsdC3.js +0 -1
- package/dist/assets/line-chart.stories-tGGdFPhQ.js +0 -1162
- package/dist/assets/pie-chart.stories-Cmh7O_JI.js +0 -45
- package/dist/assets/preview-Ba4CwQIJ.js +0 -1
- package/dist/assets/preview-Dihi2lh7.js +0 -3
- package/dist/assets/preview-xQjOlnQG.js +0 -1
- package/dist/assets/react-18-D9p-ZSzh.js +0 -1
- package/dist/assets/react-B_00WdD4.js +0 -1
- package/dist/assets/react-CJCPsloc.js +0 -1
- package/dist/assets/react-dom-BggwCd6n.js +0 -8
- package/dist/assets/react-lj49T_jL.js +0 -1
- package/dist/assets/scatter-chart.stories-Ch-mWz43.js +0 -41
- package/dist/assets/test-utils-D1bSFP61.js +0 -1
- package/dist/sb-addons/actions-1/manager-bundle.js +0 -3
- package/dist/sb-addons/docs-2/manager-bundle.js +0 -242
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/dist/sb-addons/storybook-dark-mode-esm-preset-3/manager-bundle.js +0 -5
- package/dist/sb-manager/globals-module-info.js +0 -1051
- /package/dist/assets/{bar-chart-const-DT-Qreyz.js → bar-chart-const-Dclw_xab.js} +0 -0
- /package/dist/assets/{get-custom-legend-plugin-example-DlEN0LEe.js → get-custom-legend-plugin-example-CLqiUBZS.js} +0 -0
|
@@ -0,0 +1,921 @@
|
|
|
1
|
+
try{
|
|
2
|
+
(()=>{var i_=Object.create;var hs=Object.defineProperty;var s_=Object.getOwnPropertyDescriptor;var l_=Object.getOwnPropertyNames;var c_=Object.getPrototypeOf,u_=Object.prototype.hasOwnProperty;var Xn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var He=(e,t)=>()=>(e&&(t=e(e=0)),t);var pg=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$o=(e,t)=>{for(var r in t)hs(e,r,{get:t[r],enumerable:!0})},fg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of l_(t))!u_.call(e,o)&&o!==r&&hs(e,o,{get:()=>t[o],enumerable:!(n=s_(t,o))||n.enumerable});return e};var pr=(e,t,r)=>(r=e!=null?i_(c_(e)):{},fg(t||!e||!e.__esModule?hs(r,"default",{value:e,enumerable:!0}):r,e)),d_=e=>fg(hs({},"__esModule",{value:!0}),e);var G=He(()=>{});var Y=He(()=>{});var K=He(()=>{});var p_,gs,f_,mg,m_,h_,a,Ga,ae,jo,g_,Se,Te=He(()=>{G();Y();K();p_=Object.create,gs=Object.defineProperty,f_=Object.getOwnPropertyDescriptor,mg=Object.getOwnPropertyNames,m_=Object.getPrototypeOf,h_=Object.prototype.hasOwnProperty,a=(e,t)=>gs(e,"name",{value:t,configurable:!0}),Ga=(e=>typeof Xn<"u"?Xn:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Xn<"u"?Xn:t)[r]}):e)(function(e){if(typeof Xn<"u")return Xn.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ae=(e,t)=>function(){return t||(0,e[mg(e)[0]])((t={exports:{}}).exports,t),t.exports},jo=(e,t)=>{for(var r in t)gs(e,r,{get:t[r],enumerable:!0})},g_=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of mg(t))!h_.call(e,o)&&o!==r&&gs(e,o,{get:()=>t[o],enumerable:!(n=f_(t,o))||n.enumerable});return e},Se=(e,t,r)=>(r=e!=null?p_(m_(e)):{},g_(t||!e||!e.__esModule?gs(r,"default",{value:e,enumerable:!0}):r,e))});function Zn(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Qn=He(()=>{G();Y();K();Te();a(Zn,"_objectWithoutPropertiesLoose")});function Uo(e){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function hg(e,t){if(Uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gg(e){var t=hg(e,"string");return Uo(t)=="symbol"?t:t+""}function zo(e,t,r){return(t=gg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tn(e,t){if(e==null)return{};var r,n,o=Zn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var bu=He(()=>{G();Y();K();Qn();Te();a(Uo,"_typeof");a(hg,"toPrimitive");a(gg,"toPropertyKey");a(zo,"_defineProperty");a(tn,"_objectWithoutProperties")});var fe={};$o(fe,{Children:()=>Ae,Component:()=>Tt,Fragment:()=>Pe,Profiler:()=>y_,PureComponent:()=>b_,StrictMode:()=>v_,Suspense:()=>Rn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>E_,act:()=>S_,cloneElement:()=>_e,createContext:()=>Ve,createElement:()=>ie,createFactory:()=>w_,createRef:()=>x_,default:()=>d,forwardRef:()=>se,isValidElement:()=>Tr,lazy:()=>rn,memo:()=>At,startTransition:()=>T_,unstable_act:()=>A_,useCallback:()=>ne,useContext:()=>Ct,useDebugValue:()=>C_,useDeferredValue:()=>R_,useEffect:()=>q,useId:()=>__,useImperativeHandle:()=>O_,useInsertionEffect:()=>I_,useLayoutEffect:()=>it,useMemo:()=>ve,useReducer:()=>eo,useRef:()=>Q,useState:()=>J,useSyncExternalStore:()=>P_,useTransition:()=>k_,version:()=>D_});var d,Ae,Tt,Pe,y_,b_,v_,Rn,E_,S_,_e,Ve,ie,w_,x_,se,Tr,rn,At,T_,A_,ne,Ct,C_,R_,q,__,O_,I_,it,ve,eo,Q,J,P_,k_,D_,L=He(()=>{G();Y();K();d=__REACT__,{Children:Ae,Component:Tt,Fragment:Pe,Profiler:y_,PureComponent:b_,StrictMode:v_,Suspense:Rn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:E_,act:S_,cloneElement:_e,createContext:Ve,createElement:ie,createFactory:w_,createRef:x_,forwardRef:se,isValidElement:Tr,lazy:rn,memo:At,startTransition:T_,unstable_act:A_,useCallback:ne,useContext:Ct,useDebugValue:C_,useDeferredValue:R_,useEffect:q,useId:__,useImperativeHandle:O_,useInsertionEffect:I_,useLayoutEffect:it,useMemo:ve,useReducer:eo,useRef:Q,useState:J,useSyncExternalStore:P_,useTransition:k_,version:D_}=__REACT__});var w7,x7,T7,yg,bg,A7,yt,vg,C7,R7,_7,O7,I7,P7,k7,Ya,ys,D7,rr,_n,R,vu,jt,Ut,Eg,Z=He(()=>{G();Y();K();w7=__STORYBOOK_THEMING__,{CacheProvider:x7,ClassNames:T7,Global:yg,ThemeProvider:bg,background:A7,color:yt,convert:vg,create:C7,createCache:R7,createGlobal:_7,createReset:O7,css:I7,darken:P7,ensure:k7,ignoreSsrWarning:Ya,isPropValid:ys,jsx:D7,keyframes:rr,lighten:_n,styled:R,themes:vu,typography:jt,useTheme:Ut,withTheme:Eg}=__STORYBOOK_THEMING__});var bs,B7,$7,j7,U7,Ho,z7,H7,V7,W7,J7,q7,G7,to=He(()=>{G();Y();K();bs=__REACT_DOM__,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:B7,createPortal:$7,createRoot:j7,findDOMNode:U7,flushSync:Ho,hydrate:z7,hydrateRoot:H7,render:V7,unmountComponentAtNode:W7,unstable_batchedUpdates:J7,unstable_renderSubtreeIntoContainer:q7,version:G7}=__REACT_DOM__});var wg=pg(vs=>{"use strict";G();Y();K();var N_=(L(),d_(fe)),F_=Symbol.for("react.element"),L_=Symbol.for("react.fragment"),M_=Object.prototype.hasOwnProperty,B_=N_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$_={key:!0,ref:!0,__self:!0,__source:!0};function Sg(e,t,r){var n,o={},i=null,s=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)M_.call(t,n)&&!$_.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)o[n]===void 0&&(o[n]=t[n]);return{$$typeof:F_,type:e,key:i,ref:s,props:o,_owner:B_.current}}vs.Fragment=L_;vs.jsx=Sg;vs.jsxs=Sg});var nr=pg((rU,xg)=>{"use strict";G();Y();K();xg.exports=wg()});var oe,We=He(()=>{G();Y();K();oe=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})()});function _g(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Au(...e){return t=>e.forEach(r=>_g(r,t))}function Pn(...e){return ne(Au(...e),e)}function Ig(e){return Tr(e)&&e.type===U_}function Pg(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{i(...l),o(...l)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function kg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Ng(e,t){return eo((r,n)=>t[r][n]??r,e)}function Fg(e){let[t,r]=J(),n=Q({}),o=Q(e),i=Q("none"),s=e?"mounted":"unmounted",[l,c]=Ng(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return q(()=>{let u=Xa(n.current);i.current=l==="mounted"?u:"none"},[l]),wu(()=>{let u=n.current,p=o.current;if(p!==e){let m=i.current,g=Xa(u);e?c("MOUNT"):g==="none"||u?.display==="none"?c("UNMOUNT"):c(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),wu(()=>{if(t){let u=a(f=>{let g=Xa(n.current).includes(f.animationName);f.target===t&&g&&Ho(()=>c("ANIMATION_END"))},"handleAnimationEnd"),p=a(f=>{f.target===t&&(i.current=Xa(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:ne(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Xa(e){return e?.animationName||"none"}function Lg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function Bg(e,t=[]){let r=[];function n(i,s){let l=Ve(s),c=r.length;r=[...r,s];function u(f){let{scope:m,children:g,...b}=f,y=m?.[e][c]||l,S=ve(()=>b,Object.values(b));return(0,Mg.jsx)(y.Provider,{value:S,children:g})}a(u,"Provider");function p(f,m){let g=m?.[e][c]||l,b=Ct(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return a(p,"useContext2"),u.displayName=i+"Provider",[u,p]}a(n,"createContext3");let o=a(()=>{let i=r.map(s=>Ve(s));return a(function(l){let c=l?.[e]||i;return ve(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])},"useScope")},"createScope");return o.scopeName=e,[n,$g(o,...t)]}function $g(...e){let t=e[0];if(e.length===1)return t;let r=a(()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return a(function(i){let s=n.reduce((l,{useScope:c,scopeName:u})=>{let f=c(i)[`__scope${u}`];return{...l,...f}},{});return ve(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}function On(e){let t=Q(e);return q(()=>{t.current=e}),ve(()=>(...r)=>t.current?.(...r),[])}function jg(e){let t=Ct(H_);return e||t||"ltr"}function Ug(e,[t,r]){return Math.min(r,Math.max(t,e))}function In(e,t,{checkForDefaultPrevented:r=!0}={}){return a(function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)},"handleEvent")}function zg(e,t){return eo((r,n)=>t[r][n]??r,e)}function Za(e){return e?parseInt(e,10):0}function Ou(e,t){let r=e/t;return isNaN(r)?0:r}function ti(e){let t=Ou(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Qg(e,t,r,n="ltr"){let o=ti(r),i=o/2,s=t||i,l=o-s,c=r.scrollbar.paddingStart+s,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,p=r.content-r.viewport,f=n==="ltr"?[0,p]:[p*-1,0];return Iu([c,u],f)(e)}function xu(e,t,r="ltr"){let n=ti(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,s=t.content-t.viewport,l=i-n,c=r==="ltr"?[0,s]:[s*-1,0],u=Ug(e,c);return Iu([0,s],[0,l])(u)}function Iu(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function Pu(e,t){return e>0&&e<t}function ri(e,t){let r=On(e),n=Q(0);return q(()=>()=>window.clearTimeout(n.current),[]),ne(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function ro(e,t){let r=On(t);wu(()=>{let n=0;if(e){let o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(e),()=>{window.cancelAnimationFrame(n),o.unobserve(e)}}},[e,r])}function ey(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=Ae.only(n);return _e(o,{children:typeof t=="function"?t(o.props.children):t})}async function ty(e){try{await Tu.top?.navigator.clipboard.writeText(e)}catch{await Tu.navigator.clipboard.writeText(e)}}async function ry(e){let t=Ka.createElement("TEXTAREA"),r=Ka.activeElement;t.value=e,Ka.body.appendChild(t),t.select(),Ka.execCommand("copy"),Ka.body.removeChild(t),r.focus()}function ku(){return Tu.navigator?.clipboard?ty:ry}var Vo,Dg,Mg,hU,Ie,j_,Cg,Rg,Og,Su,U_,z_,Qa,wu,ei,H_,Cu,Hg,yU,V_,fr,Vg,Wg,Jg,Mr,qg,W_,J_,Gg,Ru,q_,G_,Y_,Yg,Kg,Es,Xg,K_,_u,Zg,X_,Z_,Q_,eO,tO,rO,nO,oO,aO,Tg,Ag,ni,Ka,Tu,Ss=He(()=>{G();Y();K();Te();L();Z();L();L();L();to();L();L();Vo=pr(nr(),1),Dg=pr(nr(),1);L();to();L();L();L();Mg=pr(nr(),1);L();L();hU=pr(nr(),1);L();Ie=pr(nr(),1);Z();We();j_=R.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Cg=R.button(({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}}),({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5});Cg.displayName="ActionButton";Rg=a(({actionItems:e,...t})=>d.createElement(j_,{...t},e.map(({title:r,className:n,onClick:o,disabled:i},s)=>d.createElement(Cg,{key:s,className:n,onClick:o,disabled:!!i},r))),"ActionBar");a(_g,"setRef");a(Au,"composeRefs");a(Pn,"useComposedRefs");Og=se((e,t)=>{let{children:r,...n}=e,o=Ae.toArray(r),i=o.find(Ig);if(i){let s=i.props.children,l=o.map(c=>c===i?Ae.count(s)>1?Ae.only(null):Tr(s)?s.props.children:null:c);return(0,Vo.jsx)(Su,{...n,ref:t,children:Tr(s)?_e(s,void 0,l):null})}return(0,Vo.jsx)(Su,{...n,ref:t,children:r})});Og.displayName="Slot";Su=se((e,t)=>{let{children:r,...n}=e;if(Tr(r)){let o=kg(r);return _e(r,{...Pg(n,r.props),ref:t?Au(t,o):o})}return Ae.count(r)>1?Ae.only(null):null});Su.displayName="SlotClone";U_=a(({children:e})=>(0,Vo.jsx)(Vo.Fragment,{children:e}),"Slottable");a(Ig,"isSlottable");a(Pg,"mergeProps");a(kg,"getElementRef");z_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Qa=z_.reduce((e,t)=>{let r=se((n,o)=>{let{asChild:i,...s}=n,l=i?Og:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Dg.jsx)(l,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),wu=globalThis?.document?it:()=>{};a(Ng,"useStateMachine");ei=a(e=>{let{present:t,children:r}=e,n=Fg(t),o=typeof r=="function"?r({present:n.isPresent}):Ae.only(r),i=Pn(n.ref,Lg(o));return typeof r=="function"||n.isPresent?_e(o,{ref:i}):null},"Presence");ei.displayName="Presence";a(Fg,"usePresence");a(Xa,"getAnimationName");a(Lg,"getElementRef");a(Bg,"createContextScope");a($g,"composeContextScopes");a(On,"useCallbackRef");H_=Ve(void 0);a(jg,"useDirection");a(Ug,"clamp");a(In,"composeEventHandlers");a(zg,"useStateMachine");Cu="ScrollArea",[Hg,yU]=Bg(Cu),[V_,fr]=Hg(Cu),Vg=se((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...s}=e,[l,c]=J(null),[u,p]=J(null),[f,m]=J(null),[g,b]=J(null),[y,S]=J(null),[v,w]=J(0),[E,x]=J(0),[A,_]=J(!1),[C,O]=J(!1),I=Pn(t,D=>c(D)),P=jg(o);return(0,Ie.jsx)(V_,{scope:r,type:n,dir:P,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:p,content:f,onContentChange:m,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:A,onScrollbarXEnabledChange:_,scrollbarY:y,onScrollbarYChange:S,scrollbarYEnabled:C,onScrollbarYEnabledChange:O,onCornerWidthChange:w,onCornerHeightChange:x,children:(0,Ie.jsx)(Qa.div,{dir:P,...s,ref:I,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":E+"px",...e.style}})})});Vg.displayName=Cu;Wg="ScrollAreaViewport",Jg=se((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:i,...s}=e,l=fr(Wg,r),c=Q(null),u=Pn(t,c,l.onViewportChange);return(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("style",{dangerouslySetInnerHTML:{__html:`
|
|
3
|
+
[data-radix-scroll-area-viewport] {
|
|
4
|
+
scrollbar-width: none;
|
|
5
|
+
-ms-overflow-style: none;
|
|
6
|
+
-webkit-overflow-scrolling: touch;
|
|
7
|
+
}
|
|
8
|
+
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
:where([data-radix-scroll-area-viewport]) {
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
align-items: stretch;
|
|
15
|
+
}
|
|
16
|
+
:where([data-radix-scroll-area-content]) {
|
|
17
|
+
flex-grow: 1;
|
|
18
|
+
}
|
|
19
|
+
`},nonce:i}),(0,Ie.jsx)(Qa.div,{"data-radix-scroll-area-viewport":"",...s,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:ey({asChild:o,children:n},p=>(0,Ie.jsx)("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:p}))})]})});Jg.displayName=Wg;Mr="ScrollAreaScrollbar",qg=se((e,t)=>{let{forceMount:r,...n}=e,o=fr(Mr,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=o,l=e.orientation==="horizontal";return q(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),o.type==="hover"?(0,Ie.jsx)(W_,{...n,ref:t,forceMount:r}):o.type==="scroll"?(0,Ie.jsx)(J_,{...n,ref:t,forceMount:r}):o.type==="auto"?(0,Ie.jsx)(Gg,{...n,ref:t,forceMount:r}):o.type==="always"?(0,Ie.jsx)(Ru,{...n,ref:t}):null});qg.displayName=Mr;W_=se((e,t)=>{let{forceMount:r,...n}=e,o=fr(Mr,e.__scopeScrollArea),[i,s]=J(!1);return q(()=>{let l=o.scrollArea,c=0;if(l){let u=a(()=>{window.clearTimeout(c),s(!0)},"handlePointerEnter"),p=a(()=>{c=window.setTimeout(()=>s(!1),o.scrollHideDelay)},"handlePointerLeave");return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",p),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",p)}}},[o.scrollArea,o.scrollHideDelay]),(0,Ie.jsx)(ei,{present:r||i,children:(0,Ie.jsx)(Gg,{"data-state":i?"visible":"hidden",...n,ref:t})})}),J_=se((e,t)=>{let{forceMount:r,...n}=e,o=fr(Mr,e.__scopeScrollArea),i=e.orientation==="horizontal",s=ri(()=>c("SCROLL_END"),100),[l,c]=zg("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return q(()=>{if(l==="idle"){let u=window.setTimeout(()=>c("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,c]),q(()=>{let u=o.viewport,p=i?"scrollLeft":"scrollTop";if(u){let f=u[p],m=a(()=>{let g=u[p];f!==g&&(c("SCROLL"),s()),f=g},"handleScroll");return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}},[o.viewport,i,c,s]),(0,Ie.jsx)(ei,{present:r||l!=="hidden",children:(0,Ie.jsx)(Ru,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:In(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:In(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),Gg=se((e,t)=>{let r=fr(Mr,e.__scopeScrollArea),{forceMount:n,...o}=e,[i,s]=J(!1),l=e.orientation==="horizontal",c=ri(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,p=r.viewport.offsetHeight<r.viewport.scrollHeight;s(l?u:p)}},10);return ro(r.viewport,c),ro(r.content,c),(0,Ie.jsx)(ei,{present:n||i,children:(0,Ie.jsx)(Ru,{"data-state":i?"visible":"hidden",...o,ref:t})})}),Ru=se((e,t)=>{let{orientation:r="vertical",...n}=e,o=fr(Mr,e.__scopeScrollArea),i=Q(null),s=Q(0),[l,c]=J({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=Ou(l.viewport,l.content),p={...n,sizes:l,onSizesChange:c,hasThumb:u>0&&u<1,onThumbChange:a(m=>i.current=m,"onThumbChange"),onThumbPointerUp:a(()=>s.current=0,"onThumbPointerUp"),onThumbPointerDown:a(m=>s.current=m,"onThumbPointerDown")};function f(m,g){return Qg(m,s.current,l,g)}return a(f,"getScrollPosition"),r==="horizontal"?(0,Ie.jsx)(q_,{...p,ref:t,onThumbPositionChange:a(()=>{if(o.viewport&&i.current){let m=o.viewport.scrollLeft,g=xu(m,l,o.dir);i.current.style.transform=`translate3d(${g}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:a(m=>{o.viewport&&(o.viewport.scrollLeft=m)},"onWheelScroll"),onDragScroll:a(m=>{o.viewport&&(o.viewport.scrollLeft=f(m,o.dir))},"onDragScroll")}):r==="vertical"?(0,Ie.jsx)(G_,{...p,ref:t,onThumbPositionChange:a(()=>{if(o.viewport&&i.current){let m=o.viewport.scrollTop,g=xu(m,l);i.current.style.transform=`translate3d(0, ${g}px, 0)`}},"onThumbPositionChange"),onWheelScroll:a(m=>{o.viewport&&(o.viewport.scrollTop=m)},"onWheelScroll"),onDragScroll:a(m=>{o.viewport&&(o.viewport.scrollTop=f(m))},"onDragScroll")}):null}),q_=se((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=fr(Mr,e.__scopeScrollArea),[s,l]=J(),c=Q(null),u=Pn(t,c,i.onScrollbarXChange);return q(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,Ie.jsx)(Kg,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ti(r)+"px",...e.style},onThumbPointerDown:a(p=>e.onThumbPointerDown(p.x),"onThumbPointerDown"),onDragScroll:a(p=>e.onDragScroll(p.x),"onDragScroll"),onWheelScroll:a((p,f)=>{if(i.viewport){let m=i.viewport.scrollLeft+p.deltaX;e.onWheelScroll(m),Pu(m,f)&&p.preventDefault()}},"onWheelScroll"),onResize:a(()=>{c.current&&i.viewport&&s&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Za(s.paddingLeft),paddingEnd:Za(s.paddingRight)}})},"onResize")})}),G_=se((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,i=fr(Mr,e.__scopeScrollArea),[s,l]=J(),c=Q(null),u=Pn(t,c,i.onScrollbarYChange);return q(()=>{c.current&&l(getComputedStyle(c.current))},[c]),(0,Ie.jsx)(Kg,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ti(r)+"px",...e.style},onThumbPointerDown:a(p=>e.onThumbPointerDown(p.y),"onThumbPointerDown"),onDragScroll:a(p=>e.onDragScroll(p.y),"onDragScroll"),onWheelScroll:a((p,f)=>{if(i.viewport){let m=i.viewport.scrollTop+p.deltaY;e.onWheelScroll(m),Pu(m,f)&&p.preventDefault()}},"onWheelScroll"),onResize:a(()=>{c.current&&i.viewport&&s&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Za(s.paddingTop),paddingEnd:Za(s.paddingBottom)}})},"onResize")})}),[Y_,Yg]=Hg(Mr),Kg=se((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:c,onDragScroll:u,onWheelScroll:p,onResize:f,...m}=e,g=fr(Mr,r),[b,y]=J(null),S=Pn(t,I=>y(I)),v=Q(null),w=Q(""),E=g.viewport,x=n.content-n.viewport,A=On(p),_=On(c),C=ri(f,10);function O(I){if(v.current){let P=I.clientX-v.current.left,D=I.clientY-v.current.top;u({x:P,y:D})}}return a(O,"handleDragScroll"),q(()=>{let I=a(P=>{let D=P.target;b?.contains(D)&&A(P,x)},"handleWheel");return document.addEventListener("wheel",I,{passive:!1}),()=>document.removeEventListener("wheel",I,{passive:!1})},[E,b,x,A]),q(_,[n,_]),ro(b,C),ro(g.content,C),(0,Ie.jsx)(Y_,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:On(i),onThumbPointerUp:On(s),onThumbPositionChange:_,onThumbPointerDown:On(l),children:(0,Ie.jsx)(Qa.div,{...m,ref:S,style:{position:"absolute",...m.style},onPointerDown:In(e.onPointerDown,I=>{I.button===0&&(I.target.setPointerCapture(I.pointerId),v.current=b.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",g.viewport&&(g.viewport.style.scrollBehavior="auto"),O(I))}),onPointerMove:In(e.onPointerMove,O),onPointerUp:In(e.onPointerUp,I=>{let P=I.target;P.hasPointerCapture(I.pointerId)&&P.releasePointerCapture(I.pointerId),document.body.style.webkitUserSelect=w.current,g.viewport&&(g.viewport.style.scrollBehavior=""),v.current=null})})})}),Es="ScrollAreaThumb",Xg=se((e,t)=>{let{forceMount:r,...n}=e,o=Yg(Es,e.__scopeScrollArea);return(0,Ie.jsx)(ei,{present:r||o.hasThumb,children:(0,Ie.jsx)(K_,{ref:t,...n})})}),K_=se((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,i=fr(Es,r),s=Yg(Es,r),{onThumbPositionChange:l}=s,c=Pn(t,f=>s.onThumbChange(f)),u=Q(),p=ri(()=>{u.current&&(u.current(),u.current=void 0)},100);return q(()=>{let f=i.viewport;if(f){let m=a(()=>{if(p(),!u.current){let g=Z_(f,l);u.current=g,l()}},"handleScroll");return l(),f.addEventListener("scroll",m),()=>f.removeEventListener("scroll",m)}},[i.viewport,p,l]),(0,Ie.jsx)(Qa.div,{"data-state":s.hasThumb?"visible":"hidden",...o,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:In(e.onPointerDownCapture,f=>{let g=f.target.getBoundingClientRect(),b=f.clientX-g.left,y=f.clientY-g.top;s.onThumbPointerDown({x:b,y})}),onPointerUp:In(e.onPointerUp,s.onThumbPointerUp)})});Xg.displayName=Es;_u="ScrollAreaCorner",Zg=se((e,t)=>{let r=fr(_u,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?(0,Ie.jsx)(X_,{...e,ref:t}):null});Zg.displayName=_u;X_=se((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=fr(_u,r),[i,s]=J(0),[l,c]=J(0),u=!!(i&&l);return ro(o.scrollbarX,()=>{let p=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(p),c(p)}),ro(o.scrollbarY,()=>{let p=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(p),s(p)}),u?(0,Ie.jsx)(Qa.div,{...n,ref:t,style:{width:i,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});a(Za,"toInt");a(Ou,"getThumbRatio");a(ti,"getThumbSize");a(Qg,"getScrollPositionFromPointer");a(xu,"getThumbOffsetFromScroll");a(Iu,"linearScale");a(Pu,"isScrollingWithinScrollbarBounds");Z_=a((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return a(function o(){let i={left:e.scrollLeft,top:e.scrollTop},s=r.left!==i.left,l=r.top!==i.top;(s||l)&&t(),r=i,n=window.requestAnimationFrame(o)},"loop")(),()=>window.cancelAnimationFrame(n)},"addUnlinkedScrollListener");a(ri,"useDebounceCallback");a(ro,"useResizeObserver");a(ey,"getSubtree");Q_=Vg,eO=Jg,tO=qg,rO=Xg,nO=Zg,oO=R(Q_)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),aO=R(eO)({width:"100%",height:"100%"}),Tg=R(tO)(({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:t==="true"&&r==="true"?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:t==="true"&&r==="true"?0:e}})),Ag=R(rO)(({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}})),ni=se(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,className:i},s)=>d.createElement(oO,{scrollbarsize:o,offset:n,className:i},d.createElement(aO,{ref:s},e),t&&d.createElement(Tg,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},d.createElement(Ag,null)),r&&d.createElement(Tg,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},d.createElement(Ag,null)),t&&r&&d.createElement(nO,null)));ni.displayName="ScrollArea";({document:Ka,window:Tu}=oe);a(ty,"copyUsingClipboardAPI");a(ry,"copyUsingWorkAround");a(ku,"createCopyToClipboardFunction")});function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ee.apply(null,arguments)}var no=He(()=>{G();Y();K();Te();a(Ee,"_extends")});var or,Br=He(()=>{G();Y();K();Te();or=ae({"../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"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return a(function i(s,l,c){function u(m,g){if(!l[m]){if(!s[m]){var b=typeof Ga=="function"&&Ga;if(!g&&b)return b(m,!0);if(p)return p(m,!0);var y=new Error("Cannot find module '"+m+"'");throw y.code="MODULE_NOT_FOUND",y}var S=l[m]={exports:{}};s[m][0].call(S.exports,function(v){var w=s[m][1][v];return u(w||v)},S,S.exports,i,s,l,c)}return l[m].exports}a(u,"s");for(var p=typeof Ga=="function"&&Ga,f=0;f<c.length;f++)u(c[f]);return u},"e")({1:[function(i,s,l){s.exports=function(c){if(typeof Map!="function"||c){var u=i("./similar");return new u}else return new Map}},{"./similar":2}],2:[function(i,s,l){function c(){return this.list=[],this.lastItem=void 0,this.size=0,this}a(c,"Similar"),c.prototype.get=function(u){var p;if(this.lastItem&&this.isEqual(this.lastItem.key,u))return this.lastItem.val;if(p=this.indexOf(u),p>=0)return this.lastItem=this.list[p],this.list[p].val},c.prototype.set=function(u,p){var f;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=p,this):(f=this.indexOf(u),f>=0?(this.lastItem=this.list[f],this.list[f].val=p,this):(this.lastItem={key:u,val:p},this.list.push(this.lastItem),this.size++,this))},c.prototype.delete=function(u){var p;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),p=this.indexOf(u),p>=0)return this.size--,this.list.splice(p,1)[0]},c.prototype.has=function(u){var p;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(p=this.indexOf(u),p>=0?(this.lastItem=this.list[p],!0):!1)},c.prototype.forEach=function(u,p){var f;for(f=0;f<this.size;f++)u.call(p||this,this.list[f].val,this.list[f].key,this)},c.prototype.indexOf=function(u){var p;for(p=0;p<this.size;p++)if(this.isEqual(this.list[p].key,u))return p;return-1},c.prototype.isEqual=function(u,p){return u===p||u!==u&&p!==p},s.exports=c},{}],3:[function(i,s,l){var c=i("map-or-similar");s.exports=function(m){var g=new c(!1),b=[];return function(y){var S=a(function(){var v=g,w,E,x=arguments.length-1,A=Array(x+1),_=!0,C;if((S.numArgs||S.numArgs===0)&&S.numArgs!==x+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(C=0;C<x;C++){if(A[C]={cacheItem:v,arg:arguments[C]},v.has(arguments[C])){v=v.get(arguments[C]);continue}_=!1,w=new c(!1),v.set(arguments[C],w),v=w}return _&&(v.has(arguments[x])?E=v.get(arguments[x]):_=!1),_||(E=y.apply(null,arguments),v.set(arguments[x],E)),m>0&&(A[x]={cacheItem:v,arg:arguments[x]},_?u(b,A):b.push(A),b.length>m&&p(b.shift())),S.wasMemoized=_,S.numArgs=x+1,E},"memoizerific");return S.limit=m,S.wasMemoized=!1,S.cache=g,S.lru=b,S}};function u(m,g){var b=m.length,y=g.length,S,v,w;for(v=0;v<b;v++){for(S=!0,w=0;w<y;w++)if(!f(m[v][w].arg,g[w].arg)){S=!1;break}if(S)break}m.push(m.splice(v,1)[0])}a(u,"moveToMostRecentLru");function p(m){var g=m.length,b=m[g-1],y,S;for(b.cacheItem.delete(b.arg),S=g-2;S>=0&&(b=m[S],y=b.cacheItem.get(b.arg),!y||!y.size);S--)b.cacheItem.delete(b.arg)}a(p,"removeCachedResult");function f(m,g){return m===g||m!==m&&g!==g}a(f,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}})});function Cr(e){return e?(e.nodeName||"").toLowerCase():null}function Vt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dn(e){var t=Vt(e).Element;return e instanceof t||e instanceof Element}function ar(e){var t=Vt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Cs(e){if(typeof ShadowRoot>"u")return!1;var t=Vt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function dy(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!ar(i)||!Cr(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var l=o[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function py(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(c,u){return c[u]="",c},{});!ar(o)||!Cr(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}function Ar(e){return e.split("-")[0]}function Ts(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Uu(){return!/^((?!chrome|android).)*safari/i.test(Ts())}function ao(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&ar(e)&&(o=e.offsetWidth>0&&Go(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Go(n.height)/e.offsetHeight||1);var s=Dn(e)?Vt(e):window,l=s.visualViewport,c=!Uu()&&r,u=(n.left+(c&&l?l.offsetLeft:0))/o,p=(n.top+(c&&l?l.offsetTop:0))/i,f=n.width/o,m=n.height/i;return{width:f,height:m,top:p,right:u+f,bottom:p+m,left:u,x:u,y:p}}function Rs(e){var t=ao(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function zu(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Cs(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function $r(e){return Vt(e).getComputedStyle(e)}function my(e){return["table","td","th"].indexOf(Cr(e))>=0}function nn(e){return((Dn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ci(e){return Cr(e)==="html"?e:e.assignedSlot||e.parentNode||(Cs(e)?e.host:null)||nn(e)}function Du(e){return!ar(e)||$r(e).position==="fixed"?null:e.offsetParent}function hy(e){var t=/firefox/i.test(Ts()),r=/Trident/i.test(Ts());if(r&&ar(e)){var n=$r(e);if(n.position==="fixed")return null}var o=ci(e);for(Cs(o)&&(o=o.host);ar(o)&&["html","body"].indexOf(Cr(o))<0;){var i=$r(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ko(e){for(var t=Vt(e),r=Du(e);r&&my(r)&&$r(r).position==="static";)r=Du(r);return r&&(Cr(r)==="html"||Cr(r)==="body"&&$r(r).position==="static")?t:r||hy(e)||t}function _s(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Wo(e,t,r){return oo(e,xs(t,r))}function gy(e,t,r){var n=Wo(e,t,r);return n>r?r:n}function Hu(){return{top:0,right:0,bottom:0,left:0}}function Vu(e){return Object.assign({},Hu(),e)}function Wu(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}function yy(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,l=Ar(r.placement),c=_s(l),u=[Ht,gr].indexOf(l)>=0,p=u?"height":"width";if(!(!i||!s)){var f=EO(o.padding,r),m=Rs(i),g=c==="y"?zt:Ht,b=c==="y"?hr:gr,y=r.rects.reference[p]+r.rects.reference[c]-s[c]-r.rects.popper[p],S=s[c]-r.rects.reference[c],v=Ko(i),w=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,E=y/2-S/2,x=f[g],A=w-m[p]-f[b],_=w/2-m[p]/2+E,C=Wo(x,_,A),O=c;r.modifiersData[n]=(t={},t[O]=C,t.centerOffset=C-_,t)}}function by(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||zu(t.elements.popper,o)&&(t.elements.arrow=o))}function io(e){return e.split("-")[1]}function vy(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Go(r*o)/o||0,y:Go(n*o)/o||0}}function Nu(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,u=e.adaptive,p=e.roundOffsets,f=e.isFixed,m=s.x,g=m===void 0?0:m,b=s.y,y=b===void 0?0:b,S=typeof p=="function"?p({x:g,y}):{x:g,y};g=S.x,y=S.y;var v=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),E=Ht,x=zt,A=window;if(u){var _=Ko(r),C="clientHeight",O="clientWidth";if(_===Vt(r)&&(_=nn(r),$r(_).position!=="static"&&l==="absolute"&&(C="scrollHeight",O="scrollWidth")),_=_,o===zt||(o===Ht||o===gr)&&i===si){x=hr;var I=f&&_===A&&A.visualViewport?A.visualViewport.height:_[C];y-=I-n.height,y*=c?1:-1}if(o===Ht||(o===zt||o===hr)&&i===si){E=gr;var P=f&&_===A&&A.visualViewport?A.visualViewport.width:_[O];g-=P-n.width,g*=c?1:-1}}var D=Object.assign({position:l},u&&wO),j=p===!0?vy({x:g,y},Vt(r)):{x:g,y};if(g=j.x,y=j.y,c){var $;return Object.assign({},D,($={},$[x]=w?"0":"",$[E]=v?"0":"",$.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",$))}return Object.assign({},D,(t={},t[x]=w?y+"px":"",t[E]=v?g+"px":"",t.transform="",t))}function Ey(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,l=r.roundOffsets,c=l===void 0?!0:l,u={placement:Ar(t.placement),variation:io(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nu(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nu(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}function wy(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,l=s===void 0?!0:s,c=Vt(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(p){p.addEventListener("scroll",r.update,ws)}),l&&c.addEventListener("resize",r.update,ws),function(){i&&u.forEach(function(p){p.removeEventListener("scroll",r.update,ws)}),l&&c.removeEventListener("resize",r.update,ws)}}function ai(e){return e.replace(/left|right|bottom|top/g,function(t){return xO[t]})}function Fu(e){return e.replace(/start|end/g,function(t){return TO[t]})}function Os(e){var t=Vt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Is(e){return ao(nn(e)).left+Os(e).scrollLeft}function Ty(e,t){var r=Vt(e),n=nn(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,l=0,c=0;if(o){i=o.width,s=o.height;var u=Uu();(u||!u&&t==="fixed")&&(l=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:l+Is(e),y:c}}function Ay(e){var t,r=nn(e),n=Os(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=oo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=oo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+Is(e),c=-n.scrollTop;return $r(o||r).direction==="rtl"&&(l+=oo(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:l,y:c}}function Ps(e){var t=$r(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ju(e){return["html","body","#document"].indexOf(Cr(e))>=0?e.ownerDocument.body:ar(e)&&Ps(e)?e:Ju(ci(e))}function Jo(e,t){var r;t===void 0&&(t=[]);var n=Ju(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Vt(n),s=o?[i].concat(i.visualViewport||[],Ps(n)?n:[]):n,l=t.concat(s);return o?l:l.concat(Jo(ci(s)))}function As(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cy(e,t){var r=ao(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Lu(e,t,r){return t===cy?As(Ty(e,r)):Dn(t)?Cy(t,r):As(Ay(nn(e)))}function Ry(e){var t=Jo(ci(e)),r=["absolute","fixed"].indexOf($r(e).position)>=0,n=r&&ar(e)?Ko(e):e;return Dn(n)?t.filter(function(o){return Dn(o)&&zu(o,n)&&Cr(o)!=="body"}):[]}function _y(e,t,r,n){var o=t==="clippingParents"?Ry(e):[].concat(t),i=[].concat(o,[r]),s=i[0],l=i.reduce(function(c,u){var p=Lu(e,u,n);return c.top=oo(p.top,c.top),c.right=xs(p.right,c.right),c.bottom=xs(p.bottom,c.bottom),c.left=oo(p.left,c.left),c},Lu(e,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function qu(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ar(n):null,i=n?io(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,c;switch(o){case zt:c={x:s,y:t.y-r.height};break;case hr:c={x:s,y:t.y+t.height};break;case gr:c={x:t.x+t.width,y:l};break;case Ht:c={x:t.x-r.width,y:l};break;default:c={x:t.x,y:t.y}}var u=o?_s(o):null;if(u!=null){var p=u==="y"?"height":"width";switch(i){case qo:c[u]=c[u]-(t[p]/2-r[p]/2);break;case si:c[u]=c[u]+(t[p]/2-r[p]/2);break;default:}}return c}function Yo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,s=i===void 0?e.strategy:i,l=r.boundary,c=l===void 0?lO:l,u=r.rootBoundary,p=u===void 0?cy:u,f=r.elementContext,m=f===void 0?oi:f,g=r.altBoundary,b=g===void 0?!1:g,y=r.padding,S=y===void 0?0:y,v=Vu(typeof S!="number"?S:Wu(S,li)),w=m===oi?cO:oi,E=e.rects.popper,x=e.elements[b?w:m],A=_y(Dn(x)?x:x.contextElement||nn(e.elements.popper),c,p,s),_=ao(e.elements.reference),C=qu({reference:_,element:E,strategy:"absolute",placement:o}),O=As(Object.assign({},E,C)),I=m===oi?O:_,P={top:A.top-I.top+v.top,bottom:I.bottom-A.bottom+v.bottom,left:A.left-I.left+v.left,right:I.right-A.right+v.right},D=e.modifiersData.offset;if(m===oi&&D){var j=D[o];Object.keys(P).forEach(function($){var N=[gr,hr].indexOf($)>=0?1:-1,F=[zt,hr].indexOf($)>=0?"y":"x";P[$]+=j[F]*N})}return P}function Oy(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,l=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?uy:c,p=io(n),f=p?l?ay:ay.filter(function(b){return io(b)===p}):li,m=f.filter(function(b){return u.indexOf(b)>=0});m.length===0&&(m=f);var g=m.reduce(function(b,y){return b[y]=Yo(e,{placement:y,boundary:o,rootBoundary:i,padding:s})[Ar(y)],b},{});return Object.keys(g).sort(function(b,y){return g[b]-g[y]})}function Iy(e){if(Ar(e)===ju)return[];var t=ai(e);return[Fu(e),t,Fu(t)]}function Py(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,l=s===void 0?!0:s,c=r.fallbackPlacements,u=r.padding,p=r.boundary,f=r.rootBoundary,m=r.altBoundary,g=r.flipVariations,b=g===void 0?!0:g,y=r.allowedAutoPlacements,S=t.options.placement,v=Ar(S),w=v===S,E=c||(w||!b?[ai(S)]:Iy(S)),x=[S].concat(E).reduce(function(he,re){return he.concat(Ar(re)===ju?Oy(t,{placement:re,boundary:p,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:y}):re)},[]),A=t.rects.reference,_=t.rects.popper,C=new Map,O=!0,I=x[0],P=0;P<x.length;P++){var D=x[P],j=Ar(D),$=io(D)===qo,N=[zt,hr].indexOf(j)>=0,F=N?"width":"height",B=Yo(t,{placement:D,boundary:p,rootBoundary:f,altBoundary:m,padding:u}),M=N?$?gr:Ht:$?hr:zt;A[F]>_[F]&&(M=ai(M));var W=ai(M),z=[];if(i&&z.push(B[j]<=0),l&&z.push(B[M]<=0,B[W]<=0),z.every(function(he){return he})){I=D,O=!1;break}C.set(D,z)}if(O)for(var V=b?3:1,te=a(function(re){var ce=x.find(function(me){var xe=C.get(me);if(xe)return xe.slice(0,re).every(function(De){return De})});if(ce)return I=ce,"break"},"_loop"),H=V;H>0;H--){var ee=te(H);if(ee==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}function Mu(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Bu(e){return[zt,gr,hr,Ht].some(function(t){return e[t]>=0})}function ky(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=Yo(t,{elementContext:"reference"}),l=Yo(t,{altBoundary:!0}),c=Mu(s,n),u=Mu(l,o,i),p=Bu(c),f=Bu(u);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}function Dy(e,t,r){var n=Ar(e),o=[Ht,zt].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=i[0],l=i[1];return s=s||0,l=(l||0)*o,[Ht,gr].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function Ny(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,s=uy.reduce(function(p,f){return p[f]=Dy(f,t.rects,i),p},{}),l=s[t.placement],c=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=s}function Fy(e){var t=e.state,r=e.name;t.modifiersData[r]=qu({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}function My(e){return e==="x"?"y":"x"}function By(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,l=s===void 0?!1:s,c=r.boundary,u=r.rootBoundary,p=r.altBoundary,f=r.padding,m=r.tether,g=m===void 0?!0:m,b=r.tetherOffset,y=b===void 0?0:b,S=Yo(t,{boundary:c,rootBoundary:u,padding:f,altBoundary:p}),v=Ar(t.placement),w=io(t.placement),E=!w,x=_s(v),A=My(x),_=t.modifiersData.popperOffsets,C=t.rects.reference,O=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(_){if(i){var $,N=x==="y"?zt:Ht,F=x==="y"?hr:gr,B=x==="y"?"height":"width",M=_[x],W=M+S[N],z=M-S[F],V=g?-O[B]/2:0,te=w===qo?C[B]:O[B],H=w===qo?-O[B]:-C[B],ee=t.elements.arrow,he=g&&ee?Rs(ee):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hu(),ce=re[N],me=re[F],xe=Wo(0,C[B],he[B]),De=E?C[B]/2-V-xe-ce-P.mainAxis:te-xe-ce-P.mainAxis,Ye=E?-C[B]/2+V+xe+me+P.mainAxis:H+xe+me+P.mainAxis,Ue=t.elements.arrow&&Ko(t.elements.arrow),et=Ue?x==="y"?Ue.clientTop||0:Ue.clientLeft||0:0,lt=($=D?.[x])!=null?$:0,Oe=M+De-lt-et,ze=M+Ye-lt,ot=Wo(g?xs(W,Oe):W,M,g?oo(z,ze):z);_[x]=ot,j[x]=ot-M}if(l){var ct,gt=x==="x"?zt:Ht,Gr=x==="x"?hr:gr,Ke=_[A],lr=A==="y"?"height":"width",er=Ke+S[gt],Yr=Ke-S[Gr],Ft=[zt,Ht].indexOf(v)!==-1,wr=(ct=D?.[A])!=null?ct:0,Lt=Ft?er:Ke-C[lr]-O[lr]-wr+P.altAxis,ut=Ft?Ke+C[lr]+O[lr]-wr-P.altAxis:Yr,tr=g&&Ft?gy(Lt,Ke,ut):Wo(g?Lt:er,Ke,g?ut:Yr);_[A]=tr,j[A]=tr-Ke}t.modifiersData[n]=j}}function $y(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function jy(e){return e===Vt(e)||!ar(e)?Os(e):$y(e)}function Uy(e){var t=e.getBoundingClientRect(),r=Go(t.width)/e.offsetWidth||1,n=Go(t.height)/e.offsetHeight||1;return r!==1||n!==1}function zy(e,t,r){r===void 0&&(r=!1);var n=ar(t),o=ar(t)&&Uy(t),i=nn(t),s=ao(e,o,r),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((Cr(t)!=="body"||Ps(i))&&(l=jy(t)),ar(t)?(c=ao(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=Is(i))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Hy(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var c=t.get(l);c&&o(c)}}),n.push(i)}return a(o,"sort"),e.forEach(function(i){r.has(i.name)||o(i)}),n}function Vy(e){var t=Hy(e);return vO.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function Wy(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function Jy(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}function $u(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function ks(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,i=o===void 0?iy:o;return a(function(l,c,u){u===void 0&&(u=i);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},iy,i),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},f=[],m=!1,g={state:p,setOptions:a(function(v){var w=typeof v=="function"?v(p.options):v;y(),p.options=Object.assign({},i,p.options,w),p.scrollParents={reference:Dn(l)?Jo(l):l.contextElement?Jo(l.contextElement):[],popper:Jo(c)};var E=Vy(Jy([].concat(n,p.options.modifiers)));return p.orderedModifiers=E.filter(function(x){return x.enabled}),b(),g.update()},"setOptions"),forceUpdate:a(function(){if(!m){var v=p.elements,w=v.reference,E=v.popper;if($u(w,E)){p.rects={reference:zy(w,Ko(E),p.options.strategy==="fixed"),popper:Rs(E)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(P){return p.modifiersData[P.name]=Object.assign({},P.data)});for(var x=0;x<p.orderedModifiers.length;x++){if(p.reset===!0){p.reset=!1,x=-1;continue}var A=p.orderedModifiers[x],_=A.fn,C=A.options,O=C===void 0?{}:C,I=A.name;typeof _=="function"&&(p=_({state:p,options:O,name:I,instance:g})||p)}}}},"forceUpdate"),update:Wy(function(){return new Promise(function(S){g.forceUpdate(),S(p)})}),destroy:a(function(){y(),m=!0},"destroy")};if(!$u(l,c))return g;g.setOptions(u).then(function(S){!m&&u.onFirstUpdate&&u.onFirstUpdate(S)});function b(){p.orderedModifiers.forEach(function(S){var v=S.name,w=S.options,E=w===void 0?{}:w,x=S.effect;if(typeof x=="function"){var A=x({state:p,name:v,instance:g,options:E}),_=a(function(){},"noopFn");f.push(A||_)}})}a(b,"runModifierEffects");function y(){f.forEach(function(S){return S()}),f=[]}return a(y,"cleanupModifierEffects"),g},"createPopper")}function Gu(e){var t=Q(e);return t.current=e,ne(function(){return t.current},[])}function qy(e){var t=e.initial,r=e.value,n=e.onChange,o=n===void 0?FO:n;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var i=J(t),s=i[0],l=i[1],c=Gu(s),u=ne(function(f){var m=c(),g=typeof f=="function"?f(m):f;typeof g.persist=="function"&&g.persist(),l(g),typeof o=="function"&&o(g)},[c,o]),p=r!==void 0;return[p?r:s,p?o:u]}function Yu(e,t){return e===void 0&&(e=0),t===void 0&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:a(function(){return null},"toJSON")}}}function Gy(e,t){var r,n,o;e===void 0&&(e={}),t===void 0&&(t={});var i=Object.keys(ly).reduce(function(F,B){var M;return Ee({},F,(M={},M[B]=F[B]!==void 0?F[B]:ly[B],M))},e),s=ve(function(){return[{name:"offset",options:{offset:i.offset}}]},Array.isArray(i.offset)?i.offset:[]),l=Ee({},t,{placement:t.placement||i.placement,modifiers:t.modifiers||s}),c=J(null),u=c[0],p=c[1],f=J(null),m=f[0],g=f[1],b=qy({initial:i.defaultVisible,value:i.visible,onChange:i.onVisibleChange}),y=b[0],S=b[1],v=Q();q(function(){return function(){return clearTimeout(v.current)}},[]);var w=NO(i.followCursor?sy:u,m,l),E=w.styles,x=w.attributes,A=Zn(w,LO),_=A.update,C=Gu({visible:y,triggerRef:u,tooltipRef:m,finalConfig:i}),O=ne(function(F){return Array.isArray(i.trigger)?i.trigger.includes(F):i.trigger===F},Array.isArray(i.trigger)?i.trigger:[i.trigger]),I=ne(function(){clearTimeout(v.current),v.current=window.setTimeout(function(){return S(!1)},i.delayHide)},[i.delayHide,S]),P=ne(function(){clearTimeout(v.current),v.current=window.setTimeout(function(){return S(!0)},i.delayShow)},[i.delayShow,S]),D=ne(function(){C().visible?I():P()},[C,I,P]);q(function(){if(C().finalConfig.closeOnOutsideClick){var F=a(function(M){var W,z=C(),V=z.tooltipRef,te=z.triggerRef,H=(M.composedPath==null||(W=M.composedPath())==null?void 0:W[0])||M.target;H instanceof Node&&V!=null&&te!=null&&!V.contains(H)&&!te.contains(H)&&I()},"handleClickOutside");return document.addEventListener("mousedown",F),function(){return document.removeEventListener("mousedown",F)}}},[C,I]),q(function(){if(!(u==null||!O("click")))return u.addEventListener("click",D),function(){return u.removeEventListener("click",D)}},[u,O,D]),q(function(){if(!(u==null||!O("double-click")))return u.addEventListener("dblclick",D),function(){return u.removeEventListener("dblclick",D)}},[u,O,D]),q(function(){if(!(u==null||!O("right-click"))){var F=a(function(M){M.preventDefault(),D()},"preventDefaultAndToggle");return u.addEventListener("contextmenu",F),function(){return u.removeEventListener("contextmenu",F)}}},[u,O,D]),q(function(){if(!(u==null||!O("focus")))return u.addEventListener("focus",P),u.addEventListener("blur",I),function(){u.removeEventListener("focus",P),u.removeEventListener("blur",I)}},[u,O,P,I]),q(function(){if(!(u==null||!O("hover")))return u.addEventListener("mouseenter",P),u.addEventListener("mouseleave",I),function(){u.removeEventListener("mouseenter",P),u.removeEventListener("mouseleave",I)}},[u,O,P,I]),q(function(){if(!(m==null||!O("hover")||!C().finalConfig.interactive))return m.addEventListener("mouseenter",P),m.addEventListener("mouseleave",I),function(){m.removeEventListener("mouseenter",P),m.removeEventListener("mouseleave",I)}},[m,O,P,I,C]);var j=A==null||(r=A.state)==null||(n=r.modifiersData)==null||(o=n.hide)==null?void 0:o.isReferenceHidden;q(function(){i.closeOnTriggerHidden&&j&&I()},[i.closeOnTriggerHidden,I,j]),q(function(){if(!i.followCursor||u==null)return;function F(B){var M=B.clientX,W=B.clientY;sy.getBoundingClientRect=Yu(M,W),_?.()}return a(F,"setMousePosition"),u.addEventListener("mousemove",F),function(){return u.removeEventListener("mousemove",F)}},[i.followCursor,u,_]),q(function(){if(!(m==null||_==null||i.mutationObserverOptions==null)){var F=new MutationObserver(_);return F.observe(m,i.mutationObserverOptions),function(){return F.disconnect()}}},[i.mutationObserverOptions,m,_]);var $=a(function(B){return B===void 0&&(B={}),Ee({},B,{style:Ee({},B.style,E.popper)},x.popper,{"data-popper-interactive":i.interactive})},"getTooltipProps"),N=a(function(B){return B===void 0&&(B={}),Ee({},B,x.arrow,{style:Ee({},B.style,E.arrow),"data-popper-arrow":!0})},"getArrowProps");return Ee({getArrowProps:N,getTooltipProps:$,setTooltipRef:g,setTriggerRef:p,tooltipRef:m,triggerRef:u,visible:y},A)}var iO,sO,zU,HU,ny,oy,zt,hr,gr,Ht,ju,li,qo,si,lO,cy,oi,cO,ay,uy,uO,dO,pO,fO,mO,hO,gO,yO,bO,vO,fy,oo,xs,Go,EO,SO,wO,Sy,ws,xy,xO,TO,AO,CO,RO,Ly,_O,iy,VU,OO,WU,IO,PO,kO,DO,NO,JU,FO,LO,sy,ly,MO,mr,kn,BO,$O,Yy,ii,jO,UO,Ku,Ds,Ns=He(()=>{G();Y();K();Qn();no();Br();Te();L();to();We();L();L();L();L();L();to();L();Z();L();Z();iO=ae({"../node_modules/react-fast-compare/index.js"(e,t){var r=typeof Element<"u",n=typeof Map=="function",o=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(l,c){if(l===c)return!0;if(l&&c&&typeof l=="object"&&typeof c=="object"){if(l.constructor!==c.constructor)return!1;var u,p,f;if(Array.isArray(l)){if(u=l.length,u!=c.length)return!1;for(p=u;p--!==0;)if(!s(l[p],c[p]))return!1;return!0}var m;if(n&&l instanceof Map&&c instanceof Map){if(l.size!==c.size)return!1;for(m=l.entries();!(p=m.next()).done;)if(!c.has(p.value[0]))return!1;for(m=l.entries();!(p=m.next()).done;)if(!s(p.value[1],c.get(p.value[0])))return!1;return!0}if(o&&l instanceof Set&&c instanceof Set){if(l.size!==c.size)return!1;for(m=l.entries();!(p=m.next()).done;)if(!c.has(p.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(c)){if(u=l.length,u!=c.length)return!1;for(p=u;p--!==0;)if(l[p]!==c[p])return!1;return!0}if(l.constructor===RegExp)return l.source===c.source&&l.flags===c.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof c.valueOf=="function")return l.valueOf()===c.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof c.toString=="function")return l.toString()===c.toString();if(f=Object.keys(l),u=f.length,u!==Object.keys(c).length)return!1;for(p=u;p--!==0;)if(!Object.prototype.hasOwnProperty.call(c,f[p]))return!1;if(r&&l instanceof Element)return!1;for(p=u;p--!==0;)if(!((f[p]==="_owner"||f[p]==="__v"||f[p]==="__o")&&l.$$typeof)&&!s(l[f[p]],c[f[p]]))return!1;return!0}return l!==l&&c!==c}a(s,"equal"),t.exports=a(function(c,u){try{return s(c,u)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}},"isEqual")}}),sO=ae({"../node_modules/warning/warning.js"(e,t){"use strict";var r=!1,n=a(function(){},"warning");r&&(o=a(function(s,l){var c=arguments.length;l=new Array(c>1?c-1:0);for(var u=1;u<c;u++)l[u-1]=arguments[u];var p=0,f="Warning: "+s.replace(/%s/g,function(){return l[p++]});typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}},"printWarning"),n=a(function(i,s,l){var c=arguments.length;l=new Array(c>2?c-2:0);for(var u=2;u<c;u++)l[u-2]=arguments[u];if(s===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");i||o.apply(null,[s].concat(l))},"warning"));var o;t.exports=n}}),zU=Ve(),HU=Ve(),ny=a(function(t){return t.reduce(function(r,n){var o=n[0],i=n[1];return r[o]=i,r},{})},"fromEntries"),oy=typeof window<"u"&&window.document&&window.document.createElement?it:q,zt="top",hr="bottom",gr="right",Ht="left",ju="auto",li=[zt,hr,gr,Ht],qo="start",si="end",lO="clippingParents",cy="viewport",oi="popper",cO="reference",ay=li.reduce(function(e,t){return e.concat([t+"-"+qo,t+"-"+si])},[]),uy=[].concat(li,[ju]).reduce(function(e,t){return e.concat([t,t+"-"+qo,t+"-"+si])},[]),uO="beforeRead",dO="read",pO="afterRead",fO="beforeMain",mO="main",hO="afterMain",gO="beforeWrite",yO="write",bO="afterWrite",vO=[uO,dO,pO,fO,mO,hO,gO,yO,bO];a(Cr,"getNodeName");a(Vt,"getWindow");a(Dn,"isElement");a(ar,"isHTMLElement");a(Cs,"isShadowRoot");a(dy,"applyStyles");a(py,"effect");fy={name:"applyStyles",enabled:!0,phase:"write",fn:dy,effect:py,requires:["computeStyles"]};a(Ar,"getBasePlacement");oo=Math.max,xs=Math.min,Go=Math.round;a(Ts,"getUAString");a(Uu,"isLayoutViewport");a(ao,"getBoundingClientRect");a(Rs,"getLayoutRect");a(zu,"contains");a($r,"getComputedStyle");a(my,"isTableElement");a(nn,"getDocumentElement");a(ci,"getParentNode");a(Du,"getTrueOffsetParent");a(hy,"getContainingBlock");a(Ko,"getOffsetParent");a(_s,"getMainAxisFromPlacement");a(Wo,"within");a(gy,"withinMaxClamp");a(Hu,"getFreshSideObject");a(Vu,"mergePaddingObject");a(Wu,"expandToHashMap");EO=a(function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Vu(typeof t!="number"?t:Wu(t,li))},"toPaddingObject");a(yy,"arrow");a(by,"effect");SO={name:"arrow",enabled:!0,phase:"main",fn:yy,effect:by,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};a(io,"getVariation");wO={top:"auto",right:"auto",bottom:"auto",left:"auto"};a(vy,"roundOffsetsByDPR");a(Nu,"mapToStyles");a(Ey,"computeStyles");Sy={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Ey,data:{}},ws={passive:!0};a(wy,"effect");xy={name:"eventListeners",enabled:!0,phase:"write",fn:a(function(){},"fn"),effect:wy,data:{}},xO={left:"right",right:"left",bottom:"top",top:"bottom"};a(ai,"getOppositePlacement");TO={start:"end",end:"start"};a(Fu,"getOppositeVariationPlacement");a(Os,"getWindowScroll");a(Is,"getWindowScrollBarX");a(Ty,"getViewportRect");a(Ay,"getDocumentRect");a(Ps,"isScrollParent");a(Ju,"getScrollParent");a(Jo,"listScrollParents");a(As,"rectToClientRect");a(Cy,"getInnerBoundingClientRect");a(Lu,"getClientRectFromMixedType");a(Ry,"getClippingParents");a(_y,"getClippingRect");a(qu,"computeOffsets");a(Yo,"detectOverflow");a(Oy,"computeAutoPlacement");a(Iy,"getExpandedFallbackPlacements");a(Py,"flip");AO={name:"flip",enabled:!0,phase:"main",fn:Py,requiresIfExists:["offset"],data:{_skip:!1}};a(Mu,"getSideOffsets");a(Bu,"isAnySideFullyClipped");a(ky,"hide");CO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ky};a(Dy,"distanceAndSkiddingToXY");a(Ny,"offset");RO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ny};a(Fy,"popperOffsets");Ly={name:"popperOffsets",enabled:!0,phase:"read",fn:Fy,data:{}};a(My,"getAltAxis");a(By,"preventOverflow");_O={name:"preventOverflow",enabled:!0,phase:"main",fn:By,requiresIfExists:["offset"]};a($y,"getHTMLElementScroll");a(jy,"getNodeScroll");a(Uy,"isElementScaled");a(zy,"getCompositeRect");a(Hy,"order");a(Vy,"orderModifiers");a(Wy,"debounce");a(Jy,"mergeByName");iy={placement:"bottom",modifiers:[],strategy:"absolute"};a($u,"areValidElements");a(ks,"popperGenerator");VU=ks(),OO=[xy,Ly,Sy,fy],WU=ks({defaultModifiers:OO}),IO=[xy,Ly,Sy,fy,RO,AO,_O,SO,CO],PO=ks({defaultModifiers:IO}),kO=Se(iO()),DO=[],NO=a(function(t,r,n){n===void 0&&(n={});var o=Q(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||DO},s=J({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=s[0],c=s[1],u=ve(function(){return{name:"updateState",enabled:!0,phase:"write",fn:a(function(g){var b=g.state,y=Object.keys(b.elements);Ho(function(){c({styles:ny(y.map(function(S){return[S,b.styles[S]||{}]})),attributes:ny(y.map(function(S){return[S,b.attributes[S]]}))})})},"fn"),requires:["computeStyles"]}},[]),p=ve(function(){var m={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return(0,kO.default)(o.current,m)?o.current||m:(o.current=m,m)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),f=Q();return oy(function(){f.current&&f.current.setOptions(p)},[p]),oy(function(){if(!(t==null||r==null)){var m=n.createPopper||PO,g=m(t,r,p);return f.current=g,function(){g.destroy(),f.current=null}}},[t,r,n.createPopper]),{state:f.current?f.current.state:null,styles:l.styles,attributes:l.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}},"usePopper"),JU=Se(sO());a(Gu,"useGetLatest");FO=a(function(){},"noop");a(qy,"useControlledState");a(Yu,"generateBoundingClientRect");LO=["styles","attributes"],sy={getBoundingClientRect:Yu()},ly={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"};a(Gy,"usePopperTooltip");MO=Se(or(),1),mr=(0,MO.default)(1e3)((e,t,r,n=0)=>t.split("-")[0]===e?r:n),kn=8,BO=R.div({position:"absolute",borderStyle:"solid"},({placement:e})=>{let t=0,r=0;switch(!0){case(e.startsWith("left")||e.startsWith("right")):{r=8;break}case(e.startsWith("top")||e.startsWith("bottom")):{t=8;break}default:}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${mr("top",r,`${kn*-1}px`,"auto")}`,top:`${mr("bottom",r,`${kn*-1}px`,"auto")}`,right:`${mr("left",r,`${kn*-1}px`,"auto")}`,left:`${mr("right",r,`${kn*-1}px`,"auto")}`,borderBottomWidth:`${mr("top",r,"0",kn)}px`,borderTopWidth:`${mr("bottom",r,"0",kn)}px`,borderRightWidth:`${mr("left",r,"0",kn)}px`,borderLeftWidth:`${mr("right",r,"0",kn)}px`,borderTopColor:mr("top",r,e.color[t]||t||e.base==="light"?_n(e.background.app):e.background.app,"transparent"),borderBottomColor:mr("bottom",r,e.color[t]||t||e.base==="light"?_n(e.background.app):e.background.app,"transparent"),borderLeftColor:mr("left",r,e.color[t]||t||e.base==="light"?_n(e.background.app):e.background.app,"transparent"),borderRightColor:mr("right",r,e.color[t]||t||e.base==="light"?_n(e.background.app):e.background.app,"transparent")})),$O=R.div(({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647,colorScheme:"light dark"}),({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||e.base==="light"?_n(e.background.app):e.background.app,filter:`
|
|
20
|
+
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
21
|
+
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
22
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),Yy=d.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:o,color:i,withArrows:s,...l},c)=>d.createElement($O,{"data-testid":"tooltip",hasChrome:t,ref:c,...l,color:i},t&&s&&d.createElement(BO,{placement:e,...n,color:i}),r));Yy.displayName="Tooltip";({document:ii}=oe),jO=R.div`
|
|
23
|
+
display: inline-block;
|
|
24
|
+
cursor: ${e=>e.trigger==="hover"||e.trigger?.includes("hover")?"default":"pointer"};
|
|
25
|
+
`,UO=R.g`
|
|
26
|
+
cursor: ${e=>e.trigger==="hover"||e.trigger?.includes("hover")?"default":"pointer"};
|
|
27
|
+
`,Ku=a(({svg:e=!1,trigger:t="click",closeOnOutsideClick:r=!1,placement:n="top",modifiers:o=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:i=!0,defaultVisible:s=!1,withArrows:l,offset:c,tooltip:u,children:p,closeOnTriggerHidden:f,mutationObserverOptions:m,delayHide:g=t==="hover"?200:0,visible:b,interactive:y,delayShow:S=t==="hover"?400:0,strategy:v,followCursor:w,onVisibleChange:E,portalContainer:x,...A})=>{let _=e?UO:jO,{getArrowProps:C,getTooltipProps:O,setTooltipRef:I,setTriggerRef:P,visible:D,state:j}=Gy({trigger:t,placement:n,defaultVisible:s,delayHide:g,interactive:y,closeOnOutsideClick:r,closeOnTriggerHidden:f,onVisibleChange:E,delayShow:S,followCursor:w,mutationObserverOptions:m,visible:b,offset:c},{modifiers:o,strategy:v}),$=(typeof x=="string"?ii.querySelector(x):x)||ii.body,N=D?d.createElement(Yy,{placement:j?.placement,ref:I,hasChrome:i,arrowProps:C(),withArrows:l,...O()},typeof u=="function"?u({onHide:a(()=>E(!1),"onHide")}):u):null;return d.createElement(d.Fragment,null,d.createElement(_,{trigger:t,ref:P,...A},p),D&&bs.createPortal(N,$))},"WithTooltipPure"),Ds=a(({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,o]=J(e),i=ne(s=>{t&&t(s)===!1||o(s)},[t]);return q(()=>{let s=a(()=>i(!1),"hide"),l=a(p=>{p.key==="Escape"&&s()},"handleKeyDown");ii.addEventListener("keydown",l,!1);let c=Array.from(ii.getElementsByTagName("iframe")),u=[];return c.forEach(p=>{let f=a(()=>{try{p.contentWindow.document&&(p.contentWindow.document.addEventListener("click",s),u.push(()=>{try{p.contentWindow.document.removeEventListener("click",s)}catch{}}))}catch{}},"bind");f(),p.addEventListener("load",f),u.push(()=>{p.removeEventListener("load",f)})}),()=>{ii.removeEventListener("keydown",l),u.forEach(p=>{p()})}}),d.createElement(Ku,{...r,visible:n,onVisibleChange:i})},"WithToolTipState")});var wz,xz,Tz,Az,js,Cz,Rz,_z,Oz,Iz,Pz,kz,Dz,Nz,Fz,Lz,Mz,Bz,$z,jz,Uz,zz,Hz,Vz,Wz,Jz,qz,Gz,Yz,Kz,Xz,Zz,Qz,eH,tH,rH,nH,oH,aH,xb,iH,sH,lH,cH,uH,dH,pH,fH,mH,hH,Us,zs,gH,Hs,Vs,yH,bH,Tb,Ab,vH,EH,SH,Ws,wH,xH,TH,AH,CH,RH,_H,OH,IH,PH,kH,DH,NH,FH,LH,MH,BH,$H,jH,UH,Cb,zH,HH,VH,WH,JH,qH,GH,YH,co,KH,XH,ZH,QH,eV,tV,rV,nV,Rb,_b,oV,aV,iV,sV,Ob,Ib,lV,cV,uV,dV,pV,fV,mV,hV,gV,yV,bV,vV,EV,SV,wV,Pb,kb,xV,TV,AV,CV,RV,_V,OV,IV,PV,Db,kV,DV,NV,FV,LV,MV,BV,$V,jV,Nb,UV,zV,HV,VV,WV,Fb,JV,qV,GV,Lb,YV,KV,XV,ZV,od,QV,eW,Mb,tW,rW,nW,oW,Bb,aW,$b,jb,iW,sW,lW,cW,uW,dW,pW,fW,mW,hW,gW,yW,Js,bW,vW,EW,Ub,zb,SW,wW,Hb,xW,TW,AW,CW,RW,_W,OW,IW,PW,kW,DW,NW,FW,LW,MW,BW,$W,jW,UW,Vb,zW,HW,VW,Wb,WW,JW,qW,GW,Jb,qb,YW,KW,XW,Gb,ZW,QW,eJ,tJ,qs,rJ,nJ,oJ,aJ,iJ,sJ,lJ,cJ,uJ,dJ,pJ,fJ,mJ,hJ,gJ,yJ,bJ,Yb,Kb,Xb,vJ,qe=He(()=>{G();Y();K();wz=__STORYBOOK_ICONS__,{AccessibilityAltIcon:xz,AccessibilityIcon:Tz,AccessibilityIgnoredIcon:Az,AddIcon:js,AdminIcon:Cz,AlertAltIcon:Rz,AlertIcon:_z,AlignLeftIcon:Oz,AlignRightIcon:Iz,AppleIcon:Pz,ArrowBottomLeftIcon:kz,ArrowBottomRightIcon:Dz,ArrowDownIcon:Nz,ArrowLeftIcon:Fz,ArrowRightIcon:Lz,ArrowSolidDownIcon:Mz,ArrowSolidLeftIcon:Bz,ArrowSolidRightIcon:$z,ArrowSolidUpIcon:jz,ArrowTopLeftIcon:Uz,ArrowTopRightIcon:zz,ArrowUpIcon:Hz,AzureDevOpsIcon:Vz,BackIcon:Wz,BasketIcon:Jz,BatchAcceptIcon:qz,BatchDenyIcon:Gz,BeakerIcon:Yz,BellIcon:Kz,BitbucketIcon:Xz,BoldIcon:Zz,BookIcon:Qz,BookmarkHollowIcon:eH,BookmarkIcon:tH,BottomBarIcon:rH,BottomBarToggleIcon:nH,BoxIcon:oH,BranchIcon:aH,BrowserIcon:xb,BugIcon:iH,ButtonIcon:sH,CPUIcon:lH,CalendarIcon:cH,CameraIcon:uH,CameraStabilizeIcon:dH,CategoryIcon:pH,CertificateIcon:fH,ChangedIcon:mH,ChatIcon:hH,CheckIcon:Us,ChevronDownIcon:zs,ChevronLeftIcon:gH,ChevronRightIcon:Hs,ChevronSmallDownIcon:Vs,ChevronSmallLeftIcon:yH,ChevronSmallRightIcon:bH,ChevronSmallUpIcon:Tb,ChevronUpIcon:Ab,ChromaticIcon:vH,ChromeIcon:EH,CircleHollowIcon:SH,CircleIcon:Ws,ClearIcon:wH,CloseAltIcon:xH,CloseIcon:TH,CloudHollowIcon:AH,CloudIcon:CH,CogIcon:RH,CollapseIcon:_H,CommandIcon:OH,CommentAddIcon:IH,CommentIcon:PH,CommentsIcon:kH,CommitIcon:DH,CompassIcon:NH,ComponentDrivenIcon:FH,ComponentIcon:LH,ContrastIcon:MH,ContrastIgnoredIcon:BH,ControlsIcon:$H,CopyIcon:jH,CreditIcon:UH,CrossIcon:Cb,DashboardIcon:zH,DatabaseIcon:HH,DeleteIcon:VH,DiamondIcon:WH,DirectionIcon:JH,DiscordIcon:qH,DocChartIcon:GH,DocListIcon:YH,DocumentIcon:co,DownloadIcon:KH,DragIcon:XH,EditIcon:ZH,EditorIcon:QH,EllipsisIcon:eV,EmailIcon:tV,ExpandAltIcon:rV,ExpandIcon:nV,EyeCloseIcon:Rb,EyeIcon:_b,FaceHappyIcon:oV,FaceNeutralIcon:aV,FaceSadIcon:iV,FacebookIcon:sV,FailedIcon:Ob,FastForwardIcon:Ib,FigmaIcon:lV,FilterIcon:cV,FlagIcon:uV,FolderIcon:dV,FormIcon:pV,GDriveIcon:fV,GiftIcon:mV,GithubIcon:hV,GitlabIcon:gV,GlobeIcon:yV,GoogleIcon:bV,GraphBarIcon:vV,GraphLineIcon:EV,GraphqlIcon:SV,GridAltIcon:wV,GridIcon:Pb,GrowIcon:kb,HeartHollowIcon:xV,HeartIcon:TV,HomeIcon:AV,HourglassIcon:CV,InfoIcon:RV,ItalicIcon:_V,JumpToIcon:OV,KeyIcon:IV,LightningIcon:PV,LightningOffIcon:Db,LinkBrokenIcon:kV,LinkIcon:DV,LinkedinIcon:NV,LinuxIcon:FV,ListOrderedIcon:LV,ListUnorderedIcon:MV,LocationIcon:BV,LockIcon:$V,MarkdownIcon:jV,MarkupIcon:Nb,MediumIcon:UV,MemoryIcon:zV,MenuIcon:HV,MergeIcon:VV,MirrorIcon:WV,MobileIcon:Fb,MoonIcon:JV,NutIcon:qV,OutboxIcon:GV,OutlineIcon:Lb,PaintBrushAltIcon:YV,PaintBrushIcon:KV,PaperClipIcon:XV,ParagraphIcon:ZV,PassedIcon:od,PhoneIcon:QV,PhotoDragIcon:eW,PhotoIcon:Mb,PhotoStabilizeIcon:tW,PinAltIcon:rW,PinIcon:nW,PlayAllHollowIcon:oW,PlayBackIcon:Bb,PlayHollowIcon:aW,PlayIcon:$b,PlayNextIcon:jb,PlusIcon:iW,PointerDefaultIcon:sW,PointerHandIcon:lW,PowerIcon:cW,PrintIcon:uW,ProceedIcon:dW,ProfileIcon:pW,PullRequestIcon:fW,QuestionIcon:mW,RSSIcon:hW,RedirectIcon:gW,ReduxIcon:yW,RefreshIcon:Js,ReplyIcon:bW,RepoIcon:vW,RequestChangeIcon:EW,RewindIcon:Ub,RulerIcon:zb,SaveIcon:SW,SearchIcon:wW,ShareAltIcon:Hb,ShareIcon:xW,ShieldIcon:TW,SideBySideIcon:AW,SidebarAltIcon:CW,SidebarAltToggleIcon:RW,SidebarIcon:_W,SidebarToggleIcon:OW,SortDownIcon:IW,SortUpIcon:PW,SpeakerIcon:kW,StackedIcon:DW,StarHollowIcon:NW,StarIcon:FW,StatusFailIcon:LW,StatusIcon:MW,StatusPassIcon:BW,StatusWarnIcon:$W,StickerIcon:jW,StopAltHollowIcon:UW,StopAltIcon:Vb,StopIcon:zW,StorybookIcon:HW,StructureIcon:VW,SubtractIcon:Wb,SunIcon:WW,SupportIcon:JW,SweepIcon:qW,SwitchAltIcon:GW,SyncIcon:Jb,TabletIcon:qb,ThumbsUpIcon:YW,TimeIcon:KW,TimerIcon:XW,TransferIcon:Gb,TrashIcon:ZW,TwitterIcon:QW,TypeIcon:eJ,UbuntuIcon:tJ,UndoIcon:qs,UnfoldIcon:rJ,UnlockIcon:nJ,UnpinIcon:oJ,UploadIcon:aJ,UserAddIcon:iJ,UserAltIcon:sJ,UserIcon:lJ,UsersIcon:cJ,VSCodeIcon:uJ,VerifiedIcon:dJ,VideoIcon:pJ,WandIcon:fJ,WatchIcon:mJ,WindowsIcon:hJ,WrenchIcon:gJ,XIcon:yJ,YoutubeIcon:bJ,ZoomIcon:Yb,ZoomOutIcon:Kb,ZoomResetIcon:Xb,iconList:vJ}=__STORYBOOK_ICONS__});function Ce(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var o=n.reduce(function(l,c){var u=c.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(p){var f,m;return(m=(f=p.match(/[\t ]/g))===null||f===void 0?void 0:f.length)!==null&&m!==void 0?m:0})):l},[]);if(o.length){var i=new RegExp(`
|
|
28
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(i,`
|
|
29
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return t.forEach(function(l,c){var u=s.match(/(?:^|\n)( *)$/),p=u?u[1]:"",f=l;typeof l=="string"&&l.includes(`
|
|
30
|
+
`)&&(f=String(l).split(`
|
|
31
|
+
`).map(function(m,g){return g===0?m:""+p+m}).join(`
|
|
32
|
+
`)),s+=f+n[c+1]}),s}var fo=He(()=>{G();Y();K();Te();a(Ce,"dedent")});function Bd(){}var Si=He(()=>{G();Y();K();Te();a(Bd,"noop")});var MG,wl,we,br,BG,st=He(()=>{G();Y();K();MG=__STORYBOOK_CLIENT_LOGGER__,{deprecate:wl,logger:we,once:br,pretty:BG}=__STORYBOOK_CLIENT_LOGGER__});var rm={};$o(rm,{SyntaxHighlighter:()=>tm,default:()=>P5,supportedLanguages:()=>fx});function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _o(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hf(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xw(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}function Zw(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return zf[t]||(zf[t]=Xw(e)),zf[t]}function Qw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(i){return i!=="token"}),o=Zw(n);return o.reduce(function(i,s){return _o(_o({},i),r[s])},t)}function Vf(e){return e.join(" ")}function ex(e,t){var r=0;return function(n){return r+=1,n.map(function(o,i){return wc({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})})}}function wc(e){var t=e.node,r=e.stylesheet,n=e.style,o=n===void 0?{}:n,i=e.useInlineStyles,s=e.key,l=t.properties,c=t.type,u=t.tagName,p=t.value;if(c==="text")return p;if(u){var f=ex(r,i),m;if(!i)m=_o(_o({},l),{},{className:Vf(l.className)});else{var g=Object.keys(r).reduce(function(v,w){return w.split(".").forEach(function(E){v.includes(E)||v.push(E)}),v},[]),b=l.className&&l.className.includes("token")?["token"]:[],y=l.className&&b.concat(l.className.filter(function(v){return!g.includes(v)}));m=_o(_o({},l),{},{className:Vf(y)||void 0,style:Qw(l.className,Object.assign({},l.style,o),r)})}var S=f(t.children);return d.createElement(u,Ee({key:s},m),S)}}function Ec(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tx(e){if(Array.isArray(e))return Ec(e)}function rx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nx(e,t){if(e){if(typeof e=="string")return Ec(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ec(e,t):void 0}}function ox(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
33
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sc(e){return tx(e)||rx(e)||nx(e)||ox()}function Wf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wf(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ax(e){return e.match(E5)}function ix(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(o,i){var s=i+r;return d.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(s):n},"".concat(s,`
|
|
34
|
+
`))})}function sx(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,o=n===void 0?{float:"left",paddingRight:"10px"}:n,i=e.numberStyle,s=i===void 0?{}:i,l=e.startingLineNumber;return d.createElement("code",{style:Object.assign({},r,o)},ix({lines:t.replace(/\n$/,"").split(`
|
|
35
|
+
`),style:s,startingLineNumber:l}))}function lx(e){return"".concat(e.toString().length,".25em")}function Gf(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function Yf(e,t,r){var n={display:"inline-block",minWidth:lx(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,i=vn(vn({},n),o);return i}function Ui(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,o=e.largestLineNumber,i=e.showInlineLineNumbers,s=e.lineProps,l=s===void 0?{}:s,c=e.className,u=c===void 0?[]:c,p=e.showLineNumbers,f=e.wrapLongLines,m=e.wrapLines,g=m===void 0?!1:m,b=g?vn({},typeof l=="function"?l(r):l):{};if(b.className=b.className?[].concat(Sc(b.className.trim().split(/\s+/)),Sc(u)):u,r&&i){var y=Yf(n,r,o);t.unshift(Gf(r,y))}return f&p&&(b.style=vn({display:"flex"},b.style)),{type:"element",tagName:"span",properties:b,children:t}}function Kf(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var o=e[n];if(o.type==="text")r.push(Ui({children:[o],className:Sc(new Set(t))}));else if(o.children){var i=t.concat(o.properties.className);Kf(o.children,i).forEach(function(s){return r.push(s)})}}return r}function cx(e,t,r,n,o,i,s,l,c){var u,p=Kf(e.value),f=[],m=-1,g=0;function b(A,_){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ui({children:A,lineNumber:_,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:o,lineProps:r,className:C,showLineNumbers:n,wrapLongLines:c,wrapLines:t})}a(b,"createWrappedLine");function y(A,_){if(n&&_&&o){var C=Yf(l,_,s);A.unshift(Gf(_,C))}return A}a(y,"createUnwrappedLine");function S(A,_){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||C.length>0?b(A,_,C):y(A,_)}a(S,"createLine");for(var v=a(function(){var _=p[g],C=_.children[0].value,O=ax(C);if(O){var I=C.split(`
|
|
36
|
+
`);I.forEach(function(P,D){var j=n&&f.length+i,$={type:"text",value:"".concat(P,`
|
|
37
|
+
`)};if(D===0){var N=p.slice(m+1,g).concat(Ui({children:[$],className:_.properties.className})),F=S(N,j);f.push(F)}else if(D===I.length-1){var B=p[g+1]&&p[g+1].children&&p[g+1].children[0],M={type:"text",value:"".concat(P)};if(B){var W=Ui({children:[M],className:_.properties.className});p.splice(g+1,0,W)}else{var z=[M],V=S(z,j,_.properties.className);f.push(V)}}else{var te=[$],H=S(te,j,_.properties.className);f.push(H)}}),m=g}g++},"_loop");g<p.length;)v();if(m!==p.length-1){var w=p.slice(m+1,p.length);if(w&&w.length){var E=n&&f.length+i,x=S(w,E);f.push(x)}}return t?f:(u=[]).concat.apply(u,f)}function ux(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(o,i){return wc({node:o,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(i)})})}function Xf(e){return e&&typeof e.highlightAuto<"u"}function dx(e){var t=e.astGenerator,r=e.language,n=e.code,o=e.defaultCodeValue;if(Xf(t)){var i=b5(t,r);return r==="text"?{value:o,language:"text"}:i?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:o}}catch{return{value:o}}}function px(e,t){return a(function(n){var o,i,s=n.language,l=n.children,c=n.style,u=c===void 0?t:c,p=n.customStyle,f=p===void 0?{}:p,m=n.codeTagProps,g=m===void 0?{className:s?"language-".concat(s):void 0,style:vn(vn({},u['code[class*="language-"]']),u['code[class*="language-'.concat(s,'"]')])}:m,b=n.useInlineStyles,y=b===void 0?!0:b,S=n.showLineNumbers,v=S===void 0?!1:S,w=n.showInlineLineNumbers,E=w===void 0?!0:w,x=n.startingLineNumber,A=x===void 0?1:x,_=n.lineNumberContainerStyle,C=n.lineNumberStyle,O=C===void 0?{}:C,I=n.wrapLines,P=n.wrapLongLines,D=P===void 0?!1:P,j=n.lineProps,$=j===void 0?{}:j,N=n.renderer,F=n.PreTag,B=F===void 0?"pre":F,M=n.CodeTag,W=M===void 0?"code":M,z=n.code,V=z===void 0?(Array.isArray(l)?l[0]:l)||"":z,te=n.astGenerator,H=tn(n,v5);te=te||e;var ee=v?d.createElement(sx,{containerStyle:_,codeStyle:g.style||{},numberStyle:O,startingLineNumber:A,codeString:V}):null,he=u.hljs||u['pre[class*="language-"]']||{backgroundColor:"#fff"},re=Xf(te)?"hljs":"prismjs",ce=y?Object.assign({},H,{style:Object.assign({},he,f)}):Object.assign({},H,{className:H.className?"".concat(re," ").concat(H.className):re,style:Object.assign({},f)});if(D?g.style=vn({whiteSpace:"pre-wrap"},g.style):g.style=vn({whiteSpace:"pre"},g.style),!te)return d.createElement(B,ce,ee,d.createElement(W,g,V));(I===void 0&&N||D)&&(I=!0),N=N||ux;var me=[{type:"text",value:V}],xe=dx({astGenerator:te,language:s,code:V,defaultCodeValue:me});xe.language===null&&(xe.value=me);var De=(o=(i=V.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&o!==void 0?o:0,Ye=A+De,Ue=cx(xe,I,$,v,E,A,Ye,O,D);return d.createElement(B,ce,d.createElement(W,g,!E&&ee,N({rows:Ue,stylesheet:u,useInlineStyles:y})))},"SyntaxHighlighter")}var hN,zw,gN,yN,bN,Hw,vN,Vw,Ww,EN,SN,wN,Jw,xN,Jf,qw,qf,Gw,zi,TN,AN,CN,Yw,RN,_N,ON,IN,PN,kN,DN,NN,FN,LN,MN,BN,$N,Kw,jN,UN,zN,HN,VN,WN,JN,qN,GN,YN,zf,KN,XN,ZN,QN,e5,t5,r5,n5,o5,a5,i5,s5,l5,c5,u5,d5,p5,f5,m5,h5,g5,y5,b5,v5,E5,Zf,Qf,em,S5,fx,w5,x5,T5,A5,C5,R5,_5,mx,O5,I5,tm,P5,nm=He(()=>{G();Y();K();bu();Ss();Qn();no();Br();Te();L();st();We();L();L();Z();hN=ae({"../node_modules/refractor/lang/bash.js"(e,t){"use strict";t.exports=r,r.displayName="bash",r.aliases=["shell"];function r(n){(function(o){var i="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",s={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},l={bash:s,environment:{pattern:RegExp("\\$"+i),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+i),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};o.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+i),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:l},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:s}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:l},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:l.entity}}],environment:{pattern:RegExp("\\$?"+i),alias:"constant"},variable:l.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},s.inside=o.languages.bash;for(var c=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=l.variable[1].inside,p=0;p<c.length;p++)u[c[p]]=o.languages.bash[c[p]];o.languages.shell=o.languages.bash})(n)}a(r,"bash")}}),zw=ae({"../node_modules/refractor/lang/css.js"(e,t){"use strict";t.exports=r,r.displayName="css",r.aliases=[];function r(n){(function(o){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;o.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},o.languages.css.atrule.inside.rest=o.languages.css;var s=o.languages.markup;s&&(s.tag.addInlined("style","css"),s.tag.addAttribute("style","css"))})(n)}a(r,"css")}}),gN=ae({"../node_modules/refractor/lang/graphql.js"(e,t){"use strict";t.exports=r,r.displayName="graphql",r.aliases=[];function r(n){n.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:n.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},n.hooks.add("after-tokenize",a(function(i){if(i.language!=="graphql")return;var s=i.tokens.filter(function(E){return typeof E!="string"&&E.type!=="comment"&&E.type!=="scalar"}),l=0;function c(E){return s[l+E]}a(c,"getToken");function u(E,x){x=x||0;for(var A=0;A<E.length;A++){var _=c(A+x);if(!_||_.type!==E[A])return!1}return!0}a(u,"isTokenType");function p(E,x){for(var A=1,_=l;_<s.length;_++){var C=s[_],O=C.content;if(C.type==="punctuation"&&typeof O=="string"){if(E.test(O))A++;else if(x.test(O)&&(A--,A===0))return _}}return-1}a(p,"findClosingBracket");function f(E,x){var A=E.alias;A?Array.isArray(A)||(E.alias=A=[A]):E.alias=A=[],A.push(x)}for(a(f,"addAlias");l<s.length;){var m=s[l++];if(m.type==="keyword"&&m.content==="mutation"){var g=[];if(u(["definition-mutation","punctuation"])&&c(1).content==="("){l+=2;var b=p(/^\($/,/^\)$/);if(b===-1)continue;for(;l<b;l++){var y=c(0);y.type==="variable"&&(f(y,"variable-input"),g.push(y.content))}l=b+1}if(u(["punctuation","property-query"])&&c(0).content==="{"&&(l++,f(c(0),"property-mutation"),g.length>0)){var S=p(/^\{$/,/^\}$/);if(S===-1)continue;for(var v=l;v<S;v++){var w=s[v];w.type==="variable"&&g.indexOf(w.content)>=0&&f(w,"variable-input")}}}}},"afterTokenizeGraphql"))}a(r,"graphql")}}),yN=ae({"../node_modules/refractor/lang/js-extras.js"(e,t){"use strict";t.exports=r,r.displayName="jsExtras",r.aliases=[];function r(n){(function(o){o.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+o.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),o.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+o.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),o.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function i(f,m){return RegExp(f.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),m)}a(i,"withId"),o.languages.insertBefore("javascript","keyword",{imports:{pattern:i(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:o.languages.javascript},exports:{pattern:i(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:o.languages.javascript}}),o.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),o.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),o.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:i(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var s=["function","function-variable","method","method-variable","property-access"],l=0;l<s.length;l++){var c=s[l],u=o.languages.javascript[c];o.util.type(u)==="RegExp"&&(u=o.languages.javascript[c]={pattern:u});var p=u.inside||{};u.inside=p,p["maybe-class-name"]=/^[A-Z][\s\S]*/}})(n)}a(r,"jsExtras")}}),bN=ae({"../node_modules/refractor/lang/json.js"(e,t){"use strict";t.exports=r,r.displayName="json",r.aliases=["webmanifest"];function r(n){n.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},n.languages.webmanifest=n.languages.json}a(r,"json")}}),Hw=ae({"../node_modules/refractor/lang/jsx.js"(e,t){"use strict";t.exports=r,r.displayName="jsx",r.aliases=[];function r(n){(function(o){var i=o.util.clone(o.languages.javascript),s=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,l=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,c=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(m,g){return m=m.replace(/<S>/g,function(){return s}).replace(/<BRACES>/g,function(){return l}).replace(/<SPREAD>/g,function(){return c}),RegExp(m,g)}a(u,"re"),c=u(c).source,o.languages.jsx=o.languages.extend("markup",i),o.languages.jsx.tag.pattern=u(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),o.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,o.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,o.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,o.languages.jsx.tag.inside.comment=i.comment,o.languages.insertBefore("inside","attr-name",{spread:{pattern:u(/<SPREAD>/.source),inside:o.languages.jsx}},o.languages.jsx.tag),o.languages.insertBefore("inside","special-attr",{script:{pattern:u(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:o.languages.jsx}}},o.languages.jsx.tag);var p=a(function(m){return m?typeof m=="string"?m:typeof m.content=="string"?m.content:m.content.map(p).join(""):""},"stringifyToken"),f=a(function(m){for(var g=[],b=0;b<m.length;b++){var y=m[b],S=!1;if(typeof y!="string"&&(y.type==="tag"&&y.content[0]&&y.content[0].type==="tag"?y.content[0].content[0].content==="</"?g.length>0&&g[g.length-1].tagName===p(y.content[0].content[1])&&g.pop():y.content[y.content.length-1].content==="/>"||g.push({tagName:p(y.content[0].content[1]),openedBraces:0}):g.length>0&&y.type==="punctuation"&&y.content==="{"?g[g.length-1].openedBraces++:g.length>0&&g[g.length-1].openedBraces>0&&y.type==="punctuation"&&y.content==="}"?g[g.length-1].openedBraces--:S=!0),(S||typeof y=="string")&&g.length>0&&g[g.length-1].openedBraces===0){var v=p(y);b<m.length-1&&(typeof m[b+1]=="string"||m[b+1].type==="plain-text")&&(v+=p(m[b+1]),m.splice(b+1,1)),b>0&&(typeof m[b-1]=="string"||m[b-1].type==="plain-text")&&(v=p(m[b-1])+v,m.splice(b-1,1),b--),m[b]=new o.Token("plain-text",v,null,v)}y.content&&typeof y.content!="string"&&f(y.content)}},"walkTokens");o.hooks.add("after-tokenize",function(m){m.language!=="jsx"&&m.language!=="tsx"||f(m.tokens)})})(n)}a(r,"jsx")}}),vN=ae({"../node_modules/refractor/lang/markdown.js"(e,t){"use strict";t.exports=r,r.displayName="markdown",r.aliases=["md"];function r(n){(function(o){var i=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function s(b){return b=b.replace(/<inner>/g,function(){return i}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+b+")")}a(s,"createInline");var l=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,c=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return l}),u=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;o.languages.markdown=o.languages.extend("markup",{}),o.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:o.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+c+u+"(?:"+c+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+c+u+")(?:"+c+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(l),inside:o.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+c+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+c+"$"),inside:{"table-header":{pattern:RegExp(l),alias:"important",inside:o.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:s(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:s(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:s(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:s(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(b){["url","bold","italic","strike","code-snippet"].forEach(function(y){b!==y&&(o.languages.markdown[b].inside.content.inside[y]=o.languages.markdown[y])})}),o.hooks.add("after-tokenize",function(b){if(b.language!=="markdown"&&b.language!=="md")return;function y(S){if(!(!S||typeof S=="string"))for(var v=0,w=S.length;v<w;v++){var E=S[v];if(E.type!=="code"){y(E.content);continue}var x=E.content[1],A=E.content[3];if(x&&A&&x.type==="code-language"&&A.type==="code-block"&&typeof x.content=="string"){var _=x.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");_=(/[a-z][\w-]*/i.exec(_)||[""])[0].toLowerCase();var C="language-"+_;A.alias?typeof A.alias=="string"?A.alias=[A.alias,C]:A.alias.push(C):A.alias=[C]}}}a(y,"walkTokens"),y(b.tokens)}),o.hooks.add("wrap",function(b){if(b.type==="code-block"){for(var y="",S=0,v=b.classes.length;S<v;S++){var w=b.classes[S],E=/language-(.+)/.exec(w);if(E){y=E[1];break}}var x=o.languages[y];if(x)b.content=o.highlight(g(b.content.value),x,y);else if(y&&y!=="none"&&o.plugins.autoloader){var A="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);b.attributes.id=A,o.plugins.autoloader.loadLanguages(y,function(){var _=document.getElementById(A);_&&(_.innerHTML=o.highlight(_.textContent,o.languages[y],y))})}}});var p=RegExp(o.languages.markup.tag.pattern.source,"gi"),f={amp:"&",lt:"<",gt:">",quot:'"'},m=String.fromCodePoint||String.fromCharCode;function g(b){var y=b.replace(p,"");return y=y.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(S,v){if(v=v.toLowerCase(),v[0]==="#"){var w;return v[1]==="x"?w=parseInt(v.slice(2),16):w=Number(v.slice(1)),m(w)}else{var E=f[v];return E||S}}),y}a(g,"textContent"),o.languages.md=o.languages.markdown})(n)}a(r,"markdown")}}),Vw=ae({"../node_modules/refractor/lang/markup.js"(e,t){"use strict";t.exports=r,r.displayName="markup",r.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function r(n){n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(o){o.type==="entity"&&(o.attributes.title=o.content.value.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:a(function(i,s){var l={};l["language-"+s]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[s]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var c={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};c["language-"+s]={pattern:/[\s\S]+/,inside:n.languages[s]};var u={};u[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:c},n.languages.insertBefore("markup","cdata",u)},"addInlined")}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:a(function(o,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+o+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})},"value")}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml}a(r,"markup")}}),Ww=ae({"../node_modules/refractor/lang/typescript.js"(e,t){"use strict";t.exports=r,r.displayName="typescript",r.aliases=["ts"];function r(n){(function(o){o.languages.typescript=o.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),o.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete o.languages.typescript.parameter,delete o.languages.typescript["literal-property"];var i=o.languages.extend("typescript",{});delete i["class-name"],o.languages.typescript["class-name"].inside=i,o.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:i}}}}),o.languages.ts=o.languages.typescript})(n)}a(r,"typescript")}}),EN=ae({"../node_modules/refractor/lang/tsx.js"(e,t){"use strict";var r=Hw(),n=Ww();t.exports=o,o.displayName="tsx",o.aliases=[];function o(i){i.register(r),i.register(n),function(s){var l=s.util.clone(s.languages.typescript);s.languages.tsx=s.languages.extend("jsx",l),delete s.languages.tsx.parameter,delete s.languages.tsx["literal-property"];var c=s.languages.tsx.tag;c.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+c.pattern.source+")",c.pattern.flags),c.lookbehind=!0}(i)}a(o,"tsx")}}),SN=ae({"../node_modules/refractor/lang/yaml.js"(e,t){"use strict";t.exports=r,r.displayName="yaml",r.aliases=["yml"];function r(n){(function(o){var i=/[*&][^\s[\]{},]+/,s=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+s.source+"(?:[ ]+"+i.source+")?|"+i.source+"(?:[ ]+"+s.source+")?)",c=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),u=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function p(f,m){m=(m||"").replace(/m/g,"")+"m";var g=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return f});return RegExp(g,m)}a(p,"createValuePattern"),o.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return l})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<key>>/g,function(){return"(?:"+c+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:p(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:p(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:p(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:p(u),lookbehind:!0,greedy:!0},number:{pattern:p(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:s,important:i,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},o.languages.yml=o.languages.yaml})(n)}a(r,"yaml")}}),wN=ae({"../node_modules/xtend/immutable.js"(e,t){t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var o={},i=0;i<arguments.length;i++){var s=arguments[i];for(var l in s)r.call(s,l)&&(o[l]=s[l])}return o}a(n,"extend")}}),Jw=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/schema.js"(e,t){"use strict";t.exports=n;var r=n.prototype;r.space=null,r.normal={},r.property={};function n(o,i,s){this.property=o,this.normal=i,s&&(this.space=s)}a(n,"Schema")}}),xN=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/merge.js"(e,t){"use strict";var r=wN(),n=Jw();t.exports=o;function o(i){for(var s=i.length,l=[],c=[],u=-1,p,f;++u<s;)p=i[u],l.push(p.property),c.push(p.normal),f=p.space;return new n(r.apply(null,l),r.apply(null,c),f)}a(o,"merge")}}),Jf=ae({"../node_modules/hastscript/node_modules/property-information/normalize.js"(e,t){"use strict";t.exports=r;function r(n){return n.toLowerCase()}a(r,"normalize")}}),qw=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/info.js"(e,t){"use strict";t.exports=n;var r=n.prototype;r.space=null,r.attribute=null,r.property=null,r.boolean=!1,r.booleanish=!1,r.overloadedBoolean=!1,r.number=!1,r.commaSeparated=!1,r.spaceSeparated=!1,r.commaOrSpaceSeparated=!1,r.mustUseProperty=!1,r.defined=!1;function n(o,i){this.property=o,this.attribute=i}a(n,"Info")}}),qf=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/types.js"(e){"use strict";var t=0;e.boolean=r(),e.booleanish=r(),e.overloadedBoolean=r(),e.number=r(),e.spaceSeparated=r(),e.commaSeparated=r(),e.commaOrSpaceSeparated=r();function r(){return Math.pow(2,++t)}a(r,"increment")}}),Gw=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js"(e,t){"use strict";var r=qw(),n=qf();t.exports=s,s.prototype=new r,s.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],i=o.length;function s(c,u,p,f){var m=-1,g;for(l(this,"space",f),r.call(this,c,u);++m<i;)g=o[m],l(this,g,(p&n[g])===n[g])}a(s,"DefinedInfo");function l(c,u,p){p&&(c[u]=p)}a(l,"mark")}}),zi=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/create.js"(e,t){"use strict";var r=Jf(),n=Jw(),o=Gw();t.exports=i;function i(s){var l=s.space,c=s.mustUseProperty||[],u=s.attributes||{},p=s.properties,f=s.transform,m={},g={},b,y;for(b in p)y=new o(b,f(u,b),p[b],l),c.indexOf(b)!==-1&&(y.mustUseProperty=!0),m[b]=y,g[r(b)]=b,g[r(y.attribute)]=b;return new n(m,g,l)}a(i,"create")}}),TN=ae({"../node_modules/hastscript/node_modules/property-information/lib/xlink.js"(e,t){"use strict";var r=zi();t.exports=r({space:"xlink",transform:n,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function n(o,i){return"xlink:"+i.slice(5).toLowerCase()}a(n,"xlinkTransform")}}),AN=ae({"../node_modules/hastscript/node_modules/property-information/lib/xml.js"(e,t){"use strict";var r=zi();t.exports=r({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(o,i){return"xml:"+i.slice(3).toLowerCase()}a(n,"xmlTransform")}}),CN=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js"(e,t){"use strict";t.exports=r;function r(n,o){return o in n?n[o]:o}a(r,"caseSensitiveTransform")}}),Yw=ae({"../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js"(e,t){"use strict";var r=CN();t.exports=n;function n(o,i){return r(o,i.toLowerCase())}a(n,"caseInsensitiveTransform")}}),RN=ae({"../node_modules/hastscript/node_modules/property-information/lib/xmlns.js"(e,t){"use strict";var r=zi(),n=Yw();t.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}})}}),_N=ae({"../node_modules/hastscript/node_modules/property-information/lib/aria.js"(e,t){"use strict";var r=qf(),n=zi(),o=r.booleanish,i=r.number,s=r.spaceSeparated;t.exports=n({transform:l,properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:i,ariaColIndex:i,ariaColSpan:i,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:o,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:s,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:i,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:i,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:s,ariaRowCount:i,ariaRowIndex:i,ariaRowSpan:i,ariaSelected:o,ariaSetSize:i,ariaSort:null,ariaValueMax:i,ariaValueMin:i,ariaValueNow:i,ariaValueText:null,role:null}});function l(c,u){return u==="role"?u:"aria-"+u.slice(4).toLowerCase()}a(l,"ariaTransform")}}),ON=ae({"../node_modules/hastscript/node_modules/property-information/lib/html.js"(e,t){"use strict";var r=qf(),n=zi(),o=Yw(),i=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,p=r.commaSeparated;t.exports=n({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:o,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:p,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:i,allowPaymentRequest:i,allowUserMedia:i,alt:null,as:null,async:i,autoCapitalize:null,autoComplete:u,autoFocus:i,autoPlay:i,capture:i,charSet:null,checked:i,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:i,controlsList:u,coords:c|p,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i,defer:i,dir:null,dirName:null,disabled:i,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i,formTarget:null,headers:u,height:c,hidden:i,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:p,inputMode:null,integrity:null,is:null,isMap:i,itemId:null,itemProp:u,itemRef:u,itemScope:i,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:i,muted:i,name:null,nonce:null,noModule:i,noValidate:i,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:i,poster:null,preload:null,readOnly:i,referrerPolicy:null,rel:u,required:i,reversed:i,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:i,seamless:i,selected:i,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:p,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:i,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i,declare:i,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:i,noHref:i,noShade:i,noWrap:i,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i,disableRemotePlayback:i,prefix:null,property:null,results:c,security:null,unselectable:null}})}}),IN=ae({"../node_modules/hastscript/node_modules/property-information/html.js"(e,t){"use strict";var r=xN(),n=TN(),o=AN(),i=RN(),s=_N(),l=ON();t.exports=r([o,n,i,s,l])}}),PN=ae({"../node_modules/hastscript/node_modules/property-information/find.js"(e,t){"use strict";var r=Jf(),n=Gw(),o=qw(),i="data";t.exports=u;var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(b,y){var S=r(y),v=y,w=o;return S in b.normal?b.property[b.normal[S]]:(S.length>4&&S.slice(0,4)===i&&s.test(y)&&(y.charAt(4)==="-"?v=p(y):y=f(y),w=n),new w(v,y))}a(u,"find");function p(b){var y=b.slice(5).replace(l,g);return i+y.charAt(0).toUpperCase()+y.slice(1)}a(p,"datasetToProperty");function f(b){var y=b.slice(4);return l.test(y)?b:(y=y.replace(c,m),y.charAt(0)!=="-"&&(y="-"+y),i+y)}a(f,"datasetToAttribute");function m(b){return"-"+b.toLowerCase()}a(m,"kebab");function g(b){return b.charAt(1).toUpperCase()}a(g,"camelcase")}}),kN=ae({"../node_modules/hast-util-parse-selector/index.js"(e,t){"use strict";t.exports=n;var r=/[#.]/g;function n(o,i){for(var s=o||"",l=i||"div",c={},u=0,p,f,m;u<s.length;)r.lastIndex=u,m=r.exec(s),p=s.slice(u,m?m.index:s.length),p&&(f?f==="#"?c.id=p:c.className?c.className.push(p):c.className=[p]:l=p,u+=p.length),m&&(f=m[0],u++);return{type:"element",tagName:l,properties:c,children:[]}}a(n,"parse")}}),DN=ae({"../node_modules/hastscript/node_modules/space-separated-tokens/index.js"(e){"use strict";e.parse=o,e.stringify=i;var t="",r=" ",n=/[ \t\n\r\f]+/g;function o(s){var l=String(s||t).trim();return l===t?[]:l.split(n)}a(o,"parse");function i(s){return s.join(r).trim()}a(i,"stringify")}}),NN=ae({"../node_modules/hastscript/node_modules/comma-separated-tokens/index.js"(e){"use strict";e.parse=o,e.stringify=i;var t=",",r=" ",n="";function o(s){for(var l=[],c=String(s||n),u=c.indexOf(t),p=0,f=!1,m;!f;)u===-1&&(u=c.length,f=!0),m=c.slice(p,u).trim(),(m||!f)&&l.push(m),p=u+1,u=c.indexOf(t,p);return l}a(o,"parse");function i(s,l){var c=l||{},u=c.padLeft===!1?n:r,p=c.padRight?r:n;return s[s.length-1]===n&&(s=s.concat(n)),s.join(p+t+u).trim()}a(i,"stringify")}}),FN=ae({"../node_modules/hastscript/factory.js"(e,t){"use strict";var r=PN(),n=Jf(),o=kN(),i=DN().parse,s=NN().parse;t.exports=c;var l={}.hasOwnProperty;function c(S,v,w){var E=w?y(w):null;return x;function x(_,C){var O=o(_,v),I=Array.prototype.slice.call(arguments,2),P=O.tagName.toLowerCase(),D;if(O.tagName=E&&l.call(E,P)?E[P]:P,C&&u(C,O)&&(I.unshift(C),C=null),C)for(D in C)A(O.properties,D,C[D]);return f(O.children,I),O.tagName==="template"&&(O.content={type:"root",children:O.children},O.children=[]),O}function A(_,C,O){var I,P,D;O==null||O!==O||(I=r(S,C),P=I.property,D=O,typeof D=="string"&&(I.spaceSeparated?D=i(D):I.commaSeparated?D=s(D):I.commaOrSpaceSeparated&&(D=i(s(D).join(" ")))),P==="style"&&typeof O!="string"&&(D=b(D)),P==="className"&&_.className&&(D=_.className.concat(D)),_[P]=m(I,P,D))}}a(c,"factory");function u(S,v){return typeof S=="string"||"length"in S||p(v.tagName,S)}a(u,"isChildren");function p(S,v){var w=v.type;return S==="input"||!w||typeof w!="string"?!1:typeof v.children=="object"&&"length"in v.children?!0:(w=w.toLowerCase(),S==="button"?w!=="menu"&&w!=="submit"&&w!=="reset"&&w!=="button":"value"in v)}a(p,"isNode");function f(S,v){var w,E;if(typeof v=="string"||typeof v=="number"){S.push({type:"text",value:String(v)});return}if(typeof v=="object"&&"length"in v){for(w=-1,E=v.length;++w<E;)f(S,v[w]);return}if(typeof v!="object"||!("type"in v))throw new Error("Expected node, nodes, or string, got `"+v+"`");S.push(v)}a(f,"addChild");function m(S,v,w){var E,x,A;if(typeof w!="object"||!("length"in w))return g(S,v,w);for(x=w.length,E=-1,A=[];++E<x;)A[E]=g(S,v,w[E]);return A}a(m,"parsePrimitives");function g(S,v,w){var E=w;return S.number||S.positiveNumber?!isNaN(E)&&E!==""&&(E=Number(E)):(S.boolean||S.overloadedBoolean)&&typeof E=="string"&&(E===""||n(w)===n(v))&&(E=!0),E}a(g,"parsePrimitive");function b(S){var v=[],w;for(w in S)v.push([w,S[w]].join(": "));return v.join("; ")}a(b,"style");function y(S){for(var v=S.length,w=-1,E={},x;++w<v;)x=S[w],E[x.toLowerCase()]=x;return E}a(y,"createAdjustMap")}}),LN=ae({"../node_modules/hastscript/html.js"(e,t){"use strict";var r=IN(),n=FN(),o=n(r,"div");o.displayName="html",t.exports=o}}),MN=ae({"../node_modules/hastscript/index.js"(e,t){"use strict";t.exports=LN()}}),BN=ae({"../node_modules/refractor/node_modules/character-entities-legacy/index.json"(e,t){t.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),$N=ae({"../node_modules/refractor/node_modules/character-reference-invalid/index.json"(e,t){t.exports={0:"\uFFFD",128:"\u20AC",130:"\u201A",131:"\u0192",132:"\u201E",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02C6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017D",145:"\u2018",146:"\u2019",147:"\u201C",148:"\u201D",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02DC",153:"\u2122",154:"\u0161",155:"\u203A",156:"\u0153",158:"\u017E",159:"\u0178"}}}),Kw=ae({"../node_modules/refractor/node_modules/is-decimal/index.js"(e,t){"use strict";t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=48&&o<=57}a(r,"decimal")}}),jN=ae({"../node_modules/refractor/node_modules/is-hexadecimal/index.js"(e,t){"use strict";t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=97&&o<=102||o>=65&&o<=70||o>=48&&o<=57}a(r,"hexadecimal")}}),UN=ae({"../node_modules/refractor/node_modules/is-alphabetical/index.js"(e,t){"use strict";t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=97&&o<=122||o>=65&&o<=90}a(r,"alphabetical")}}),zN=ae({"../node_modules/refractor/node_modules/is-alphanumerical/index.js"(e,t){"use strict";var r=UN(),n=Kw();t.exports=o;function o(i){return r(i)||n(i)}a(o,"alphanumerical")}}),HN=ae({"../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(e,t){"use strict";var r,n=59;t.exports=o;function o(i){var s="&"+i+";",l;return r=r||document.createElement("i"),r.innerHTML=s,l=r.textContent,l.charCodeAt(l.length-1)===n&&i!=="semi"||l===s?!1:l}a(o,"decodeEntity")}}),VN=ae({"../node_modules/refractor/node_modules/parse-entities/index.js"(e,t){"use strict";var r=BN(),n=$N(),o=Kw(),i=jN(),s=zN(),l=HN();t.exports=te;var c={}.hasOwnProperty,u=String.fromCharCode,p=Function.prototype,f={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},m=9,g=10,b=12,y=32,S=38,v=59,w=60,E=61,x=35,A=88,_=120,C=65533,O="named",I="hexadecimal",P="decimal",D={};D[I]=16,D[P]=10;var j={};j[O]=s,j[P]=o,j[I]=i;var $=1,N=2,F=3,B=4,M=5,W=6,z=7,V={};V[$]="Named character references must be terminated by a semicolon",V[N]="Numeric character references must be terminated by a semicolon",V[F]="Named character references cannot be empty",V[B]="Numeric character references cannot be empty",V[M]="Named character references must be known",V[W]="Numeric character references cannot be disallowed",V[z]="Numeric character references cannot be outside the permissible Unicode range";function te(re,ce){var me={},xe,De;ce||(ce={});for(De in f)xe=ce[De],me[De]=xe??f[De];return(me.position.indent||me.position.start)&&(me.indent=me.position.indent||[],me.position=me.position.start),H(re,me)}a(te,"parseEntities");function H(re,ce){var me=ce.additional,xe=ce.nonTerminated,De=ce.text,Ye=ce.reference,Ue=ce.warning,et=ce.textContext,lt=ce.referenceContext,Oe=ce.warningContext,ze=ce.position,ot=ce.indent||[],ct=re.length,gt=0,Gr=-1,Ke=ze.column||1,lr=ze.line||1,er="",Yr=[],Ft,wr,Lt,ut,tr,tt,Xe,cr,Fo,Lo,Kr,Yn,Xr,xr,us,Kn,Mo,ur,at;for(typeof me=="string"&&(me=me.charCodeAt(0)),Kn=An(),cr=Ue?ds:p,gt--,ct++;++gt<ct;)if(tr===g&&(Ke=ot[Gr]||1),tr=re.charCodeAt(gt),tr===S){if(Xe=re.charCodeAt(gt+1),Xe===m||Xe===g||Xe===b||Xe===y||Xe===S||Xe===w||Xe!==Xe||me&&Xe===me){er+=u(tr),Ke++;continue}for(Xr=gt+1,Yn=Xr,at=Xr,Xe===x?(at=++Yn,Xe=re.charCodeAt(at),Xe===A||Xe===_?(xr=I,at=++Yn):xr=P):xr=O,Ft="",Kr="",ut="",us=j[xr],at--;++at<ct&&(Xe=re.charCodeAt(at),!!us(Xe));)ut+=u(Xe),xr===O&&c.call(r,ut)&&(Ft=ut,Kr=r[ut]);Lt=re.charCodeAt(at)===v,Lt&&(at++,wr=xr===O?l(ut):!1,wr&&(Ft=ut,Kr=wr)),ur=1+at-Xr,!Lt&&!xe||(ut?xr===O?(Lt&&!Kr?cr(M,1):(Ft!==ut&&(at=Yn+Ft.length,ur=1+at-Yn,Lt=!1),Lt||(Fo=Ft?$:F,ce.attribute?(Xe=re.charCodeAt(at),Xe===E?(cr(Fo,ur),Kr=null):s(Xe)?Kr=null:cr(Fo,ur)):cr(Fo,ur))),tt=Kr):(Lt||cr(N,ur),tt=parseInt(ut,D[xr]),ee(tt)?(cr(z,ur),tt=u(C)):tt in n?(cr(W,ur),tt=n[tt]):(Lo="",he(tt)&&cr(W,ur),tt>65535&&(tt-=65536,Lo+=u(tt>>>10|55296),tt=56320|tt&1023),tt=Lo+u(tt))):xr!==O&&cr(B,ur)),tt?(Va(),Kn=An(),gt=at-1,Ke+=at-Xr+1,Yr.push(tt),Mo=An(),Mo.offset++,Ye&&Ye.call(lt,tt,{start:Kn,end:Mo},re.slice(Xr-1,at)),Kn=Mo):(ut=re.slice(Xr-1,at),er+=ut,Ke+=ut.length,gt=at-1)}else tr===10&&(lr++,Gr++,Ke=0),tr===tr?(er+=u(tr),Ke++):Va();return Yr.join("");function An(){return{line:lr,column:Ke,offset:gt+(ze.offset||0)}}function ds(Bo,Wa){var Lr=An();Lr.column+=Wa,Lr.offset+=Wa,Ue.call(Oe,V[Bo],Lr,Bo)}function Va(){er&&(Yr.push(er),De&&De.call(et,er,{start:Kn,end:An()}),er="")}}a(H,"parse");function ee(re){return re>=55296&&re<=57343||re>1114111}a(ee,"prohibited");function he(re){return re>=1&&re<=8||re===11||re>=13&&re<=31||re>=127&&re<=159||re>=64976&&re<=65007||(re&65535)===65535||(re&65535)===65534}a(he,"disallowed")}}),WN=ae({"../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e,t){var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},n=function(o){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,s=0,l={},c={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:a(function E(x){return x instanceof u?new u(x.type,E(x.content),x.alias):Array.isArray(x)?x.map(E):x.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},"encode"),type:a(function(E){return Object.prototype.toString.call(E).slice(8,-1)},"type"),objId:a(function(E){return E.__id||Object.defineProperty(E,"__id",{value:++s}),E.__id},"objId"),clone:a(function E(x,A){A=A||{};var _,C;switch(c.util.type(x)){case"Object":if(C=c.util.objId(x),A[C])return A[C];_={},A[C]=_;for(var O in x)x.hasOwnProperty(O)&&(_[O]=E(x[O],A));return _;case"Array":return C=c.util.objId(x),A[C]?A[C]:(_=[],A[C]=_,x.forEach(function(I,P){_[P]=E(I,A)}),_);default:return x}},"deepClone"),getLanguage:a(function(E){for(;E;){var x=i.exec(E.className);if(x)return x[1].toLowerCase();E=E.parentElement}return"none"},"getLanguage"),setLanguage:a(function(E,x){E.className=E.className.replace(RegExp(i,"gi"),""),E.classList.add("language-"+x)},"setLanguage"),currentScript:a(function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(_){var E=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(_.stack)||[])[1];if(E){var x=document.getElementsByTagName("script");for(var A in x)if(x[A].src==E)return x[A]}return null}},"currentScript"),isActive:a(function(E,x,A){for(var _="no-"+x;E;){var C=E.classList;if(C.contains(x))return!0;if(C.contains(_))return!1;E=E.parentElement}return!!A},"isActive")},languages:{plain:l,plaintext:l,text:l,txt:l,extend:a(function(E,x){var A=c.util.clone(c.languages[E]);for(var _ in x)A[_]=x[_];return A},"extend"),insertBefore:a(function(E,x,A,_){_=_||c.languages;var C=_[E],O={};for(var I in C)if(C.hasOwnProperty(I)){if(I==x)for(var P in A)A.hasOwnProperty(P)&&(O[P]=A[P]);A.hasOwnProperty(I)||(O[I]=C[I])}var D=_[E];return _[E]=O,c.languages.DFS(c.languages,function(j,$){$===D&&j!=E&&(this[j]=O)}),O},"insertBefore"),DFS:a(function E(x,A,_,C){C=C||{};var O=c.util.objId;for(var I in x)if(x.hasOwnProperty(I)){A.call(x,I,x[I],_||I);var P=x[I],D=c.util.type(P);D==="Object"&&!C[O(P)]?(C[O(P)]=!0,E(P,A,null,C)):D==="Array"&&!C[O(P)]&&(C[O(P)]=!0,E(P,A,I,C))}},"DFS")},plugins:{},highlightAll:a(function(E,x){c.highlightAllUnder(document,E,x)},"highlightAll"),highlightAllUnder:a(function(E,x,A){var _={callback:A,container:E,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};c.hooks.run("before-highlightall",_),_.elements=Array.prototype.slice.apply(_.container.querySelectorAll(_.selector)),c.hooks.run("before-all-elements-highlight",_);for(var C=0,O;O=_.elements[C++];)c.highlightElement(O,x===!0,_.callback)},"highlightAllUnder"),highlightElement:a(function(E,x,A){var _=c.util.getLanguage(E),C=c.languages[_];c.util.setLanguage(E,_);var O=E.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&c.util.setLanguage(O,_);var I=E.textContent,P={element:E,language:_,grammar:C,code:I};function D($){P.highlightedCode=$,c.hooks.run("before-insert",P),P.element.innerHTML=P.highlightedCode,c.hooks.run("after-highlight",P),c.hooks.run("complete",P),A&&A.call(P.element)}if(a(D,"insertHighlightedCode"),c.hooks.run("before-sanity-check",P),O=P.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!P.code){c.hooks.run("complete",P),A&&A.call(P.element);return}if(c.hooks.run("before-highlight",P),!P.grammar){D(c.util.encode(P.code));return}if(x&&o.Worker){var j=new Worker(c.filename);j.onmessage=function($){D($.data)},j.postMessage(JSON.stringify({language:P.language,code:P.code,immediateClose:!0}))}else D(c.highlight(P.code,P.grammar,P.language))},"highlightElement"),highlight:a(function(E,x,A){var _={code:E,grammar:x,language:A};if(c.hooks.run("before-tokenize",_),!_.grammar)throw new Error('The language "'+_.language+'" has no grammar.');return _.tokens=c.tokenize(_.code,_.grammar),c.hooks.run("after-tokenize",_),u.stringify(c.util.encode(_.tokens),_.language)},"highlight"),tokenize:a(function(E,x){var A=x.rest;if(A){for(var _ in A)x[_]=A[_];delete x.rest}var C=new m;return g(C,C.head,E),f(E,C,x,C.head,0),y(C)},"tokenize"),hooks:{all:{},add:a(function(E,x){var A=c.hooks.all;A[E]=A[E]||[],A[E].push(x)},"add"),run:a(function(E,x){var A=c.hooks.all[E];if(!(!A||!A.length))for(var _=0,C;C=A[_++];)C(x)},"run")},Token:u};o.Prism=c;function u(E,x,A,_){this.type=E,this.content=x,this.alias=A,this.length=(_||"").length|0}a(u,"Token"),u.stringify=a(function E(x,A){if(typeof x=="string")return x;if(Array.isArray(x)){var _="";return x.forEach(function(D){_+=E(D,A)}),_}var C={type:x.type,content:E(x.content,A),tag:"span",classes:["token",x.type],attributes:{},language:A},O=x.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(C.classes,O):C.classes.push(O)),c.hooks.run("wrap",C);var I="";for(var P in C.attributes)I+=" "+P+'="'+(C.attributes[P]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+I+">"+C.content+"</"+C.tag+">"},"stringify");function p(E,x,A,_){E.lastIndex=x;var C=E.exec(A);if(C&&_&&C[1]){var O=C[1].length;C.index+=O,C[0]=C[0].slice(O)}return C}a(p,"matchPattern");function f(E,x,A,_,C,O){for(var I in A)if(!(!A.hasOwnProperty(I)||!A[I])){var P=A[I];P=Array.isArray(P)?P:[P];for(var D=0;D<P.length;++D){if(O&&O.cause==I+","+D)return;var j=P[D],$=j.inside,N=!!j.lookbehind,F=!!j.greedy,B=j.alias;if(F&&!j.pattern.global){var M=j.pattern.toString().match(/[imsuy]*$/)[0];j.pattern=RegExp(j.pattern.source,M+"g")}for(var W=j.pattern||j,z=_.next,V=C;z!==x.tail&&!(O&&V>=O.reach);V+=z.value.length,z=z.next){var te=z.value;if(x.length>E.length)return;if(!(te instanceof u)){var H=1,ee;if(F){if(ee=p(W,V,E,N),!ee||ee.index>=E.length)break;var me=ee.index,he=ee.index+ee[0].length,re=V;for(re+=z.value.length;me>=re;)z=z.next,re+=z.value.length;if(re-=z.value.length,V=re,z.value instanceof u)continue;for(var ce=z;ce!==x.tail&&(re<he||typeof ce.value=="string");ce=ce.next)H++,re+=ce.value.length;H--,te=E.slice(V,re),ee.index-=V}else if(ee=p(W,0,te,N),!ee)continue;var me=ee.index,xe=ee[0],De=te.slice(0,me),Ye=te.slice(me+xe.length),Ue=V+te.length;O&&Ue>O.reach&&(O.reach=Ue);var et=z.prev;De&&(et=g(x,et,De),V+=De.length),b(x,et,H);var lt=new u(I,$?c.tokenize(xe,$):xe,B,xe);if(z=g(x,et,lt),Ye&&g(x,z,Ye),H>1){var Oe={cause:I+","+D,reach:Ue};f(E,x,A,z.prev,V,Oe),O&&Oe.reach>O.reach&&(O.reach=Oe.reach)}}}}}}a(f,"matchGrammar");function m(){var E={value:null,prev:null,next:null},x={value:null,prev:E,next:null};E.next=x,this.head=E,this.tail=x,this.length=0}a(m,"LinkedList");function g(E,x,A){var _=x.next,C={value:A,prev:x,next:_};return x.next=C,_.prev=C,E.length++,C}a(g,"addAfter");function b(E,x,A){for(var _=x.next,C=0;C<A&&_!==E.tail;C++)_=_.next;x.next=_,_.prev=x,E.length-=C}a(b,"removeRange");function y(E){for(var x=[],A=E.head.next;A!==E.tail;)x.push(A.value),A=A.next;return x}if(a(y,"toArray"),!o.document)return o.addEventListener&&(c.disableWorkerMessageHandler||o.addEventListener("message",function(E){var x=JSON.parse(E.data),A=x.language,_=x.code,C=x.immediateClose;o.postMessage(c.highlight(_,c.languages[A],A)),C&&o.close()},!1)),c;var S=c.util.currentScript();S&&(c.filename=S.src,S.hasAttribute("data-manual")&&(c.manual=!0));function v(){c.manual||c.highlightAll()}if(a(v,"highlightAutomaticallyCallback"),!c.manual){var w=document.readyState;w==="loading"||w==="interactive"&&S&&S.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return c}(r);typeof t<"u"&&t.exports&&(t.exports=n),typeof window<"u"&&(window.Prism=n)}}),JN=ae({"../node_modules/refractor/lang/clike.js"(e,t){"use strict";t.exports=r,r.displayName="clike",r.aliases=[];function r(n){n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}a(r,"clike")}}),qN=ae({"../node_modules/refractor/lang/javascript.js"(e,t){"use strict";t.exports=r,r.displayName="javascript",r.aliases=["js"];function r(n){n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript}a(r,"javascript")}}),GN=ae({"../node_modules/refractor/core.js"(e,t){"use strict";var r=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"||typeof window=="object"?window:{},n=C();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=MN(),i=VN(),s=WN(),l=Vw(),c=zw(),u=JN(),p=qN();n();var f={}.hasOwnProperty;function m(){}a(m,"Refractor"),m.prototype=s;var g=new m;t.exports=g,g.highlight=S,g.register=b,g.alias=y,g.registered=v,g.listLanguages=w,b(l),b(c),b(u),b(p),g.util.encode=A,g.Token.stringify=E;function b(O){if(typeof O!="function"||!O.displayName)throw new Error("Expected `function` for `grammar`, got `"+O+"`");g.languages[O.displayName]===void 0&&O(g)}a(b,"register");function y(O,I){var P=g.languages,D=O,j,$,N,F;I&&(D={},D[O]=I);for(j in D)for($=D[j],$=typeof $=="string"?[$]:$,N=$.length,F=-1;++F<N;)P[$[F]]=P[j]}a(y,"alias");function S(O,I){var P=s.highlight,D;if(typeof O!="string")throw new Error("Expected `string` for `value`, got `"+O+"`");if(g.util.type(I)==="Object")D=I,I=null;else{if(typeof I!="string")throw new Error("Expected `string` for `name`, got `"+I+"`");if(f.call(g.languages,I))D=g.languages[I];else throw new Error("Unknown language: `"+I+"` is not registered")}return P.call(this,O,D,I)}a(S,"highlight");function v(O){if(typeof O!="string")throw new Error("Expected `string` for `language`, got `"+O+"`");return f.call(g.languages,O)}a(v,"registered");function w(){var O=g.languages,I=[],P;for(P in O)f.call(O,P)&&typeof O[P]=="object"&&I.push(P);return I}a(w,"listLanguages");function E(O,I,P){var D;return typeof O=="string"?{type:"text",value:O}:g.util.type(O)==="Array"?x(O,I):(D={type:O.type,content:g.Token.stringify(O.content,I,P),tag:"span",classes:["token",O.type],attributes:{},language:I,parent:P},O.alias&&(D.classes=D.classes.concat(O.alias)),g.hooks.run("wrap",D),o(D.tag+"."+D.classes.join("."),_(D.attributes),D.content))}a(E,"stringify");function x(O,I){for(var P=[],D=O.length,j=-1,$;++j<D;)$=O[j],$!==""&&$!==null&&$!==void 0&&P.push($);for(j=-1,D=P.length;++j<D;)$=P[j],P[j]=g.Token.stringify($,I,P);return P}a(x,"stringifyAll");function A(O){return O}a(A,"encode");function _(O){var I;for(I in O)O[I]=i(O[I]);return O}a(_,"attributes");function C(){var O="Prism"in r,I=O?r.Prism:void 0;return P;function P(){O?r.Prism=I:delete r.Prism,O=void 0,I=void 0}}a(C,"capture")}}),YN=Se(or(),1);a(Hf,"ownKeys");a(_o,"_objectSpread");a(Xw,"powerSetPermutations");zf={};a(Zw,"getClassNameCombinations");a(Qw,"createStyleObject");a(Vf,"createClassNameString");a(ex,"createChildren");a(wc,"createElement");KN=Se(hN()),XN=KN.default,ZN=Se(zw()),QN=ZN.default,e5=Se(gN()),t5=e5.default,r5=Se(yN()),n5=r5.default,o5=Se(bN()),a5=o5.default,i5=Se(Hw()),s5=i5.default,l5=Se(vN()),c5=l5.default,u5=Se(Vw()),d5=u5.default,p5=Se(EN()),f5=p5.default,m5=Se(Ww()),h5=m5.default,g5=Se(SN()),y5=g5.default;a(Ec,"_arrayLikeToArray");a(tx,"_arrayWithoutHoles");a(rx,"_iterableToArray");a(nx,"_unsupportedIterableToArray");a(ox,"_nonIterableSpread");a(Sc,"_toConsumableArray");b5=a(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1},"default"),v5=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];a(Wf,"ownKeys");a(vn,"_objectSpread");E5=/\n/g;a(ax,"getNewLines");a(ix,"getAllLineNumbers");a(sx,"AllLineNumbers");a(lx,"getEmWidthOfNumber");a(Gf,"getInlineLineNumber");a(Yf,"assembleLineNumberStyles");a(Ui,"createLineElement");a(Kf,"flattenCodeTree");a(cx,"processLines");a(ux,"defaultRenderer");a(Xf,"isHighlightJs");a(dx,"getCodeTree");a(px,"default");Zf=Se(GN()),Qf=px(Zf.default,{});Qf.registerLanguage=function(e,t){return Zf.default.register(t)};Qf.alias=function(e,t){return Zf.default.alias(e,t)};em=Qf,{window:S5}=oe,fx={jsextra:n5,jsx:s5,json:a5,yml:y5,md:c5,bash:XN,css:QN,html:d5,tsx:f5,typescript:h5,graphql:t5};Object.entries(fx).forEach(([e,t])=>{em.registerLanguage(e,t)});w5=(0,YN.default)(2)(e=>Object.entries(e.code||{}).reduce((t,[r,n])=>({...t,[`* .${r}`]:n}),{})),x5=ku(),T5=R.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{},({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{}),A5=a(({children:e,className:t})=>d.createElement(ni,{horizontal:!0,vertical:!0,className:t},e),"UnstyledScroller"),C5=R(A5)({position:"relative"},({theme:e})=>w5(e)),R5=R.pre(({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0})),_5=R.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),mx=a(e=>{let t=[...e.children],r=t[0],n=r.children[0].value,o={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=o,{...e,children:t}},"processLineNumber"),O5=a(({rows:e,stylesheet:t,useInlineStyles:r})=>e.map((n,o)=>wc({node:mx(n),stylesheet:t,useInlineStyles:r,key:`code-segement${o}`})),"defaultRenderer"),I5=a((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map(o=>mx(o)),...n}):O5:e,"wrapRenderer"),tm=a(({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:o=!1,format:i=!0,formatter:s=void 0,className:l=void 0,showLineNumbers:c=!1,...u})=>{if(typeof e!="string"||!e.trim())return null;let[p,f]=J("");q(()=>{s?s(i,e).then(f):f(e.trim())},[e,i,s]);let[m,g]=J(!1),b=ne(S=>{S.preventDefault(),x5(p).then(()=>{g(!0),S5.setTimeout(()=>g(!1),1500)}).catch(we.error)},[p]),y=I5(u.renderer,c);return d.createElement(T5,{bordered:n,padded:o,showLineNumbers:c,className:l},d.createElement(C5,null,d.createElement(em,{padded:o||n,language:t,showLineNumbers:c,showInlineLineNumbers:c,useInlineStyles:!1,PreTag:R5,CodeTag:_5,lineNumberContainerStyle:{},...u,renderer:y},p)),r?d.createElement(Rg,{actionItems:[{title:m?"Copied":"Copy",onClick:b}]}):null)},"SyntaxHighlighter");tm.registerLanguage=(...e)=>em.registerLanguage(...e);P5=tm});var hx={};$o(hx,{formatter:()=>D5});var k5,D5,gx=He(()=>{G();Y();K();Br();fo();Te();k5=Se(or(),1),D5=(0,k5.default)(2)(async(e,t)=>e===!1?t:Ce(t))});var om={};$o(om,{WithToolTipState:()=>Ds,WithTooltip:()=>Ds,WithTooltipPure:()=>Ku});var am=He(()=>{G();Y();K();Ns();Qn();no();Br();Te()});var Gt,Ji,Vm=He(()=>{G();Y();K();Te();Gt=a(e=>`control-${e.replace(/\s+/g,"-")}`,"getControlId"),Ji=a(e=>`set-${e.replace(/\s+/g,"-")}`,"getControlSetterButtonId")});var kA={};$o(kA,{A:()=>fM,ActionBar:()=>qi,AddonPanel:()=>Gi,Badge:()=>ko,Bar:()=>Yi,Blockquote:()=>mM,Button:()=>Kt,ClipboardCode:()=>hM,Code:()=>gM,DL:()=>yM,Div:()=>bM,DocumentWrapper:()=>vM,EmptyTabContent:()=>Ki,ErrorFormatter:()=>EM,FlexBar:()=>Jm,Form:()=>Dt,H1:()=>SM,H2:()=>wM,H3:()=>xM,H4:()=>TM,H5:()=>AM,H6:()=>CM,HR:()=>RM,IconButton:()=>Ne,Img:()=>_M,LI:()=>OM,Link:()=>Xt,ListItem:()=>IM,Loader:()=>PM,Modal:()=>Vr,OL:()=>kM,P:()=>qm,Placeholder:()=>DM,Pre:()=>NM,ProgressSpinner:()=>FM,ResetWrapper:()=>Gm,ScrollArea:()=>Ym,Separator:()=>Km,Spaced:()=>LM,Span:()=>MM,StorybookIcon:()=>BM,StorybookLogo:()=>$M,SyntaxHighlighter:()=>Xi,TT:()=>jM,TabBar:()=>UM,TabButton:()=>zM,TabWrapper:()=>HM,Table:()=>VM,Tabs:()=>WM,TabsState:()=>JM,TooltipLinkList:()=>Zi,TooltipMessage:()=>qM,TooltipNote:()=>Dr,UL:()=>GM,WithTooltip:()=>nt,WithTooltipPure:()=>Xm,Zoom:()=>Zm,codeCommon:()=>zn,components:()=>YM,createCopyToClipboardFunction:()=>KM,default:()=>pM,getStoryHref:()=>Qm,interleaveSeparators:()=>XM,nameSpaceClassNames:()=>ZM,resetComponents:()=>QM,withReset:()=>Hn});var pM,fM,qi,Gi,ko,Yi,mM,Kt,hM,gM,yM,bM,vM,Ki,EM,Jm,Dt,SM,wM,xM,TM,AM,CM,RM,Ne,_M,OM,Xt,IM,PM,Vr,kM,qm,DM,NM,FM,Gm,Ym,Km,LM,MM,BM,$M,Xi,jM,UM,zM,HM,VM,WM,JM,Zi,qM,Dr,GM,nt,Xm,Zm,zn,YM,KM,Qm,XM,ZM,QM,Hn,be=He(()=>{G();Y();K();pM=__STORYBOOK_COMPONENTS__,{A:fM,ActionBar:qi,AddonPanel:Gi,Badge:ko,Bar:Yi,Blockquote:mM,Button:Kt,ClipboardCode:hM,Code:gM,DL:yM,Div:bM,DocumentWrapper:vM,EmptyTabContent:Ki,ErrorFormatter:EM,FlexBar:Jm,Form:Dt,H1:SM,H2:wM,H3:xM,H4:TM,H5:AM,H6:CM,HR:RM,IconButton:Ne,Img:_M,LI:OM,Link:Xt,ListItem:IM,Loader:PM,Modal:Vr,OL:kM,P:qm,Placeholder:DM,Pre:NM,ProgressSpinner:FM,ResetWrapper:Gm,ScrollArea:Ym,Separator:Km,Spaced:LM,Span:MM,StorybookIcon:BM,StorybookLogo:$M,SyntaxHighlighter:Xi,TT:jM,TabBar:UM,TabButton:zM,TabWrapper:HM,Table:VM,Tabs:WM,TabsState:JM,TooltipLinkList:Zi,TooltipMessage:qM,TooltipNote:Dr,UL:GM,WithTooltip:nt,WithTooltipPure:Xm,Zoom:Zm,codeCommon:zn,components:YM,createCopyToClipboardFunction:KM,getStoryHref:Qm,interleaveSeparators:XM,nameSpaceClassNames:ZM,resetComponents:QM,withReset:Hn}=__STORYBOOK_COMPONENTS__});var nC={};$o(nC,{ColorControl:()=>rC,default:()=>HB});function BA(e,t,{signal:r,edges:n}={}){let o,i=null,s=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),c=a(()=>{i!==null&&(e.apply(o,i),o=void 0,i=null)},"invoke"),u=a(()=>{l&&c(),g()},"onTimerEnd"),p=null,f=a(()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,u()},t)},"schedule"),m=a(()=>{p!==null&&(clearTimeout(p),p=null)},"cancelTimer"),g=a(()=>{m(),o=void 0,i=null},"cancel"),b=a(()=>{c()},"flush"),y=a(function(...S){if(r?.aborted)return;o=this,i=S;let v=p==null;f(),s&&v&&c()},"debounced");return y.schedule=f,y.cancel=g,y.flush=b,r?.addEventListener("abort",g,{once:!0}),y}function $A(e,...t){return jA(e,UA,...t)}function jA(e,t,...r){let n=a(function(...o){let i=0,s=r.slice().map(c=>c===t?o[i++]:c),l=o.slice(i);return e.apply(this,s.concat(l))},"partialed");return e.prototype&&(n.prototype=Object.create(e.prototype)),n}function zA(e,...t){return HA(e,VA,...t)}function HA(e,t,...r){let n=a(function(...o){let i=r.filter(p=>p===t).length,s=Math.max(o.length-i,0),l=o.slice(0,s),c=s,u=r.slice().map(p=>p===t?o[c++]:p);return e.apply(this,l.concat(u))},"partialedRight");return e.prototype&&(n.prototype=Object.create(e.prototype)),n}function Vn(){return(Vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Gc(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t.indexOf(r=i[n])>=0||(o[r]=e[r]);return o}function Jc(e){var t=Q(e),r=Q(function(n){t.current&&t.current(n)});return t.current=e,r.current}function sh(e,t,r){var n=Jc(r),o=J(function(){return e.toHsva(t)}),i=o[0],s=o[1],l=Q({color:t,hsva:i});q(function(){if(!e.equal(t,l.current.color)){var u=e.toHsva(t);l.current={hsva:u,color:t},s(u)}},[t,e]),q(function(){var u;KA(i,l.current.hsva)||e.equal(u=e.fromHsva(i),l.current.color)||(l.current={hsva:i,color:u},n(u))},[i,e,n]);var c=ne(function(u){s(function(p){return Object.assign({},p,u)})},[]);return[i,c]}var eB,MA,tB,rB,Sr,UA,VA,Koe,$a,Qi,th,DA,NA,ah,es,ih,wt,nB,oB,rh,aB,iB,sB,lB,WA,nh,Wc,JA,cB,Hc,uB,qA,GA,YA,KA,XA,dB,pB,fB,mB,FA,ZA,hB,gB,yB,bB,QA,vB,EB,SB,wB,xB,TB,AB,CB,RB,_B,OB,LA,IB,PB,eC,eh,kB,DB,NB,oh,FB,LB,Vc,tC,MB,BB,$B,Ba,jB,UB,qc,zB,rC,HB,oC=He(()=>{G();Y();K();Vm();Si();Te();L();be();qe();L();Z();eB=ae({"../node_modules/color-name/index.js"(e,t){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),MA=ae({"../node_modules/color-convert/conversions.js"(e,t){var r=eB(),n={};for(let s of Object.keys(r))n[r[s]]=s;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let s of Object.keys(o)){if(!("channels"in o[s]))throw new Error("missing channels property: "+s);if(!("labels"in o[s]))throw new Error("missing channel labels property: "+s);if(o[s].labels.length!==o[s].channels)throw new Error("channel and label counts mismatch: "+s);let{channels:l,labels:c}=o[s];delete o[s].channels,delete o[s].labels,Object.defineProperty(o[s],"channels",{value:l}),Object.defineProperty(o[s],"labels",{value:c})}o.rgb.hsl=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255,p=Math.min(l,c,u),f=Math.max(l,c,u),m=f-p,g,b;f===p?g=0:l===f?g=(c-u)/m:c===f?g=2+(u-l)/m:u===f&&(g=4+(l-c)/m),g=Math.min(g*60,360),g<0&&(g+=360);let y=(p+f)/2;return f===p?b=0:y<=.5?b=m/(f+p):b=m/(2-f-p),[g,b*100,y*100]},o.rgb.hsv=function(s){let l,c,u,p,f,m=s[0]/255,g=s[1]/255,b=s[2]/255,y=Math.max(m,g,b),S=y-Math.min(m,g,b),v=a(function(w){return(y-w)/6/S+1/2},"diffc");return S===0?(p=0,f=0):(f=S/y,l=v(m),c=v(g),u=v(b),m===y?p=u-c:g===y?p=1/3+l-u:b===y&&(p=2/3+c-l),p<0?p+=1:p>1&&(p-=1)),[p*360,f*100,y*100]},o.rgb.hwb=function(s){let l=s[0],c=s[1],u=s[2],p=o.rgb.hsl(s)[0],f=1/255*Math.min(l,Math.min(c,u));return u=1-1/255*Math.max(l,Math.max(c,u)),[p,f*100,u*100]},o.rgb.cmyk=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255,p=Math.min(1-l,1-c,1-u),f=(1-l-p)/(1-p)||0,m=(1-c-p)/(1-p)||0,g=(1-u-p)/(1-p)||0;return[f*100,m*100,g*100,p*100]};function i(s,l){return(s[0]-l[0])**2+(s[1]-l[1])**2+(s[2]-l[2])**2}a(i,"comparativeDistance"),o.rgb.keyword=function(s){let l=n[s];if(l)return l;let c=1/0,u;for(let p of Object.keys(r)){let f=r[p],m=i(s,f);m<c&&(c=m,u=p)}return u},o.keyword.rgb=function(s){return r[s]},o.rgb.xyz=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255;l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;let p=l*.4124+c*.3576+u*.1805,f=l*.2126+c*.7152+u*.0722,m=l*.0193+c*.1192+u*.9505;return[p*100,f*100,m*100]},o.rgb.lab=function(s){let l=o.rgb.xyz(s),c=l[0],u=l[1],p=l[2];c/=95.047,u/=100,p/=108.883,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,p=p>.008856?p**(1/3):7.787*p+16/116;let f=116*u-16,m=500*(c-u),g=200*(u-p);return[f,m,g]},o.hsl.rgb=function(s){let l=s[0]/360,c=s[1]/100,u=s[2]/100,p,f,m;if(c===0)return m=u*255,[m,m,m];u<.5?p=u*(1+c):p=u+c-u*c;let g=2*u-p,b=[0,0,0];for(let y=0;y<3;y++)f=l+1/3*-(y-1),f<0&&f++,f>1&&f--,6*f<1?m=g+(p-g)*6*f:2*f<1?m=p:3*f<2?m=g+(p-g)*(2/3-f)*6:m=g,b[y]=m*255;return b},o.hsl.hsv=function(s){let l=s[0],c=s[1]/100,u=s[2]/100,p=c,f=Math.max(u,.01);u*=2,c*=u<=1?u:2-u,p*=f<=1?f:2-f;let m=(u+c)/2,g=u===0?2*p/(f+p):2*c/(u+c);return[l,g*100,m*100]},o.hsv.rgb=function(s){let l=s[0]/60,c=s[1]/100,u=s[2]/100,p=Math.floor(l)%6,f=l-Math.floor(l),m=255*u*(1-c),g=255*u*(1-c*f),b=255*u*(1-c*(1-f));switch(u*=255,p){case 0:return[u,b,m];case 1:return[g,u,m];case 2:return[m,u,b];case 3:return[m,g,u];case 4:return[b,m,u];case 5:return[u,m,g]}},o.hsv.hsl=function(s){let l=s[0],c=s[1]/100,u=s[2]/100,p=Math.max(u,.01),f,m;m=(2-c)*u;let g=(2-c)*p;return f=c*p,f/=g<=1?g:2-g,f=f||0,m/=2,[l,f*100,m*100]},o.hwb.rgb=function(s){let l=s[0]/360,c=s[1]/100,u=s[2]/100,p=c+u,f;p>1&&(c/=p,u/=p);let m=Math.floor(6*l),g=1-u;f=6*l-m,(m&1)!==0&&(f=1-f);let b=c+f*(g-c),y,S,v;switch(m){default:case 6:case 0:y=g,S=b,v=c;break;case 1:y=b,S=g,v=c;break;case 2:y=c,S=g,v=b;break;case 3:y=c,S=b,v=g;break;case 4:y=b,S=c,v=g;break;case 5:y=g,S=c,v=b;break}return[y*255,S*255,v*255]},o.cmyk.rgb=function(s){let l=s[0]/100,c=s[1]/100,u=s[2]/100,p=s[3]/100,f=1-Math.min(1,l*(1-p)+p),m=1-Math.min(1,c*(1-p)+p),g=1-Math.min(1,u*(1-p)+p);return[f*255,m*255,g*255]},o.xyz.rgb=function(s){let l=s[0]/100,c=s[1]/100,u=s[2]/100,p,f,m;return p=l*3.2406+c*-1.5372+u*-.4986,f=l*-.9689+c*1.8758+u*.0415,m=l*.0557+c*-.204+u*1.057,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,f=f>.0031308?1.055*f**(1/2.4)-.055:f*12.92,m=m>.0031308?1.055*m**(1/2.4)-.055:m*12.92,p=Math.min(Math.max(0,p),1),f=Math.min(Math.max(0,f),1),m=Math.min(Math.max(0,m),1),[p*255,f*255,m*255]},o.xyz.lab=function(s){let l=s[0],c=s[1],u=s[2];l/=95.047,c/=100,u/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let p=116*c-16,f=500*(l-c),m=200*(c-u);return[p,f,m]},o.lab.xyz=function(s){let l=s[0],c=s[1],u=s[2],p,f,m;f=(l+16)/116,p=c/500+f,m=f-u/200;let g=f**3,b=p**3,y=m**3;return f=g>.008856?g:(f-16/116)/7.787,p=b>.008856?b:(p-16/116)/7.787,m=y>.008856?y:(m-16/116)/7.787,p*=95.047,f*=100,m*=108.883,[p,f,m]},o.lab.lch=function(s){let l=s[0],c=s[1],u=s[2],p;p=Math.atan2(u,c)*360/2/Math.PI,p<0&&(p+=360);let m=Math.sqrt(c*c+u*u);return[l,m,p]},o.lch.lab=function(s){let l=s[0],c=s[1],p=s[2]/360*2*Math.PI,f=c*Math.cos(p),m=c*Math.sin(p);return[l,f,m]},o.rgb.ansi16=function(s,l=null){let[c,u,p]=s,f=l===null?o.rgb.hsv(s)[2]:l;if(f=Math.round(f/50),f===0)return 30;let m=30+(Math.round(p/255)<<2|Math.round(u/255)<<1|Math.round(c/255));return f===2&&(m+=60),m},o.hsv.ansi16=function(s){return o.rgb.ansi16(o.hsv.rgb(s),s[2])},o.rgb.ansi256=function(s){let l=s[0],c=s[1],u=s[2];return l===c&&c===u?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(c/255*5)+Math.round(u/255*5)},o.ansi16.rgb=function(s){let l=s%10;if(l===0||l===7)return s>50&&(l+=3.5),l=l/10.5*255,[l,l,l];let c=(~~(s>50)+1)*.5,u=(l&1)*c*255,p=(l>>1&1)*c*255,f=(l>>2&1)*c*255;return[u,p,f]},o.ansi256.rgb=function(s){if(s>=232){let f=(s-232)*10+8;return[f,f,f]}s-=16;let l,c=Math.floor(s/36)/5*255,u=Math.floor((l=s%36)/6)/5*255,p=l%6/5*255;return[c,u,p]},o.rgb.hex=function(s){let c=(((Math.round(s[0])&255)<<16)+((Math.round(s[1])&255)<<8)+(Math.round(s[2])&255)).toString(16).toUpperCase();return"000000".substring(c.length)+c},o.hex.rgb=function(s){let l=s.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];let c=l[0];l[0].length===3&&(c=c.split("").map(g=>g+g).join(""));let u=parseInt(c,16),p=u>>16&255,f=u>>8&255,m=u&255;return[p,f,m]},o.rgb.hcg=function(s){let l=s[0]/255,c=s[1]/255,u=s[2]/255,p=Math.max(Math.max(l,c),u),f=Math.min(Math.min(l,c),u),m=p-f,g,b;return m<1?g=f/(1-m):g=0,m<=0?b=0:p===l?b=(c-u)/m%6:p===c?b=2+(u-l)/m:b=4+(l-c)/m,b/=6,b%=1,[b*360,m*100,g*100]},o.hsl.hcg=function(s){let l=s[1]/100,c=s[2]/100,u=c<.5?2*l*c:2*l*(1-c),p=0;return u<1&&(p=(c-.5*u)/(1-u)),[s[0],u*100,p*100]},o.hsv.hcg=function(s){let l=s[1]/100,c=s[2]/100,u=l*c,p=0;return u<1&&(p=(c-u)/(1-u)),[s[0],u*100,p*100]},o.hcg.rgb=function(s){let l=s[0]/360,c=s[1]/100,u=s[2]/100;if(c===0)return[u*255,u*255,u*255];let p=[0,0,0],f=l%1*6,m=f%1,g=1-m,b=0;switch(Math.floor(f)){case 0:p[0]=1,p[1]=m,p[2]=0;break;case 1:p[0]=g,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=m;break;case 3:p[0]=0,p[1]=g,p[2]=1;break;case 4:p[0]=m,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=g}return b=(1-c)*u,[(c*p[0]+b)*255,(c*p[1]+b)*255,(c*p[2]+b)*255]},o.hcg.hsv=function(s){let l=s[1]/100,c=s[2]/100,u=l+c*(1-l),p=0;return u>0&&(p=l/u),[s[0],p*100,u*100]},o.hcg.hsl=function(s){let l=s[1]/100,u=s[2]/100*(1-l)+.5*l,p=0;return u>0&&u<.5?p=l/(2*u):u>=.5&&u<1&&(p=l/(2*(1-u))),[s[0],p*100,u*100]},o.hcg.hwb=function(s){let l=s[1]/100,c=s[2]/100,u=l+c*(1-l);return[s[0],(u-l)*100,(1-u)*100]},o.hwb.hcg=function(s){let l=s[1]/100,u=1-s[2]/100,p=u-l,f=0;return p<1&&(f=(u-p)/(1-p)),[s[0],p*100,f*100]},o.apple.rgb=function(s){return[s[0]/65535*255,s[1]/65535*255,s[2]/65535*255]},o.rgb.apple=function(s){return[s[0]/255*65535,s[1]/255*65535,s[2]/255*65535]},o.gray.rgb=function(s){return[s[0]/100*255,s[0]/100*255,s[0]/100*255]},o.gray.hsl=function(s){return[0,0,s[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(s){return[0,100,s[0]]},o.gray.cmyk=function(s){return[0,0,0,s[0]]},o.gray.lab=function(s){return[s[0],0,0]},o.gray.hex=function(s){let l=Math.round(s[0]/100*255)&255,u=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(u.length)+u},o.rgb.gray=function(s){return[(s[0]+s[1]+s[2])/3/255*100]}}}),tB=ae({"../node_modules/color-convert/route.js"(e,t){var r=MA();function n(){let l={},c=Object.keys(r);for(let u=c.length,p=0;p<u;p++)l[c[p]]={distance:-1,parent:null};return l}a(n,"buildGraph");function o(l){let c=n(),u=[l];for(c[l].distance=0;u.length;){let p=u.pop(),f=Object.keys(r[p]);for(let m=f.length,g=0;g<m;g++){let b=f[g],y=c[b];y.distance===-1&&(y.distance=c[p].distance+1,y.parent=p,u.unshift(b))}}return c}a(o,"deriveBFS");function i(l,c){return function(u){return c(l(u))}}a(i,"link");function s(l,c){let u=[c[l].parent,l],p=r[c[l].parent][l],f=c[l].parent;for(;c[f].parent;)u.unshift(c[f].parent),p=i(r[c[f].parent][f],p),f=c[f].parent;return p.conversion=u,p}a(s,"wrapConversion"),t.exports=function(l){let c=o(l),u={},p=Object.keys(c);for(let f=p.length,m=0;m<f;m++){let g=p[m];c[g].parent!==null&&(u[g]=s(g,c))}return u}}}),rB=ae({"../node_modules/color-convert/index.js"(e,t){var r=MA(),n=tB(),o={},i=Object.keys(r);function s(c){let u=a(function(...p){let f=p[0];return f==null?f:(f.length>1&&(p=f),c(p))},"wrappedFn");return"conversion"in c&&(u.conversion=c.conversion),u}a(s,"wrapRaw");function l(c){let u=a(function(...p){let f=p[0];if(f==null)return f;f.length>1&&(p=f);let m=c(p);if(typeof m=="object")for(let g=m.length,b=0;b<g;b++)m[b]=Math.round(m[b]);return m},"wrappedFn");return"conversion"in c&&(u.conversion=c.conversion),u}a(l,"wrapRounded"),i.forEach(c=>{o[c]={},Object.defineProperty(o[c],"channels",{value:r[c].channels}),Object.defineProperty(o[c],"labels",{value:r[c].labels});let u=n(c);Object.keys(u).forEach(f=>{let m=u[f];o[c][f]=l(m),o[c][f].raw=s(m)})}),t.exports=o}}),Sr=Se(rB(),1);a(BA,"debounce");a($A,"partial");a(jA,"partialImpl");UA=Symbol("partial.placeholder");$A.placeholder=UA;a(zA,"partialRight");a(HA,"partialRightImpl");VA=Symbol("partialRight.placeholder");zA.placeholder=VA;Koe=Number.POSITIVE_INFINITY;a(Vn,"u");a(Gc,"c");a(Jc,"i");$a=a(function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e<t?t:e},"s"),Qi=a(function(e){return"touches"in e},"f"),th=a(function(e){return e&&e.ownerDocument.defaultView||self},"v"),DA=a(function(e,t,r){var n=e.getBoundingClientRect(),o=Qi(t)?function(i,s){for(var l=0;l<i.length;l++)if(i[l].identifier===s)return i[l];return i[0]}(t.touches,r):t;return{left:$a((o.pageX-(n.left+th(e).pageXOffset))/n.width),top:$a((o.pageY-(n.top+th(e).pageYOffset))/n.height)}},"d"),NA=a(function(e){!Qi(e)&&e.preventDefault()},"h"),ah=d.memo(function(e){var t=e.onMove,r=e.onKey,n=Gc(e,["onMove","onKey"]),o=Q(null),i=Jc(t),s=Jc(r),l=Q(null),c=Q(!1),u=ve(function(){var g=a(function(S){NA(S),(Qi(S)?S.touches.length>0:S.buttons>0)&&o.current?i(DA(o.current,S,l.current)):y(!1)},"e"),b=a(function(){return y(!1)},"r");function y(S){var v=c.current,w=th(o.current),E=S?w.addEventListener:w.removeEventListener;E(v?"touchmove":"mousemove",g),E(v?"touchend":"mouseup",b)}return a(y,"t"),[function(S){var v=S.nativeEvent,w=o.current;if(w&&(NA(v),!function(x,A){return A&&!Qi(x)}(v,c.current)&&w)){if(Qi(v)){c.current=!0;var E=v.changedTouches||[];E.length&&(l.current=E[0].identifier)}w.focus(),i(DA(w,v,l.current)),y(!0)}},function(S){var v=S.which||S.keyCode;v<37||v>40||(S.preventDefault(),s({left:v===39?.05:v===37?-.05:0,top:v===40?.05:v===38?-.05:0}))},y]},[s,i]),p=u[0],f=u[1],m=u[2];return q(function(){return m},[m]),d.createElement("div",Vn({},n,{onTouchStart:p,onMouseDown:p,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),es=a(function(e){return e.filter(Boolean).join(" ")},"g"),ih=a(function(e){var t=e.color,r=e.left,n=e.top,o=n===void 0?.5:n,i=es(["react-colorful__pointer",e.className]);return d.createElement("div",{className:i,style:{top:100*o+"%",left:100*r+"%"}},d.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},"p"),wt=a(function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},"b"),nB={grad:.9,turn:360,rad:360/(2*Math.PI)},oB=a(function(e){return qA(rh(e))},"x"),rh=a(function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?wt(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?wt(parseInt(e.substring(6,8),16)/255,2):1}},"C"),aB=a(function(e,t){return t===void 0&&(t="deg"),Number(e)*(nB[t]||1)},"E"),iB=a(function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?sB({h:aB(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},"H"),sB=a(function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},"N"),lB=a(function(e){return uB(JA(e))},"w"),WA=a(function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:wt(e.h),s:wt(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:wt(o/2),a:wt(n,2)}},"y"),nh=a(function(e){var t=WA(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},"q"),Wc=a(function(e){var t=WA(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},"k"),JA=a(function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var i=Math.floor(t),s=n*(1-r),l=n*(1-(t-i)*r),c=n*(1-(1-t+i)*r),u=i%6;return{r:wt(255*[n,l,s,s,c,n][u]),g:wt(255*[c,n,n,l,s,s][u]),b:wt(255*[s,s,c,n,n,l][u]),a:wt(o,2)}},"I"),cB=a(function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?qA({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},"z"),Hc=a(function(e){var t=e.toString(16);return t.length<2?"0"+t:t},"D"),uB=a(function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=o<1?Hc(wt(255*o)):"";return"#"+Hc(t)+Hc(r)+Hc(n)+i},"K"),qA=a(function(e){var t=e.r,r=e.g,n=e.b,o=e.a,i=Math.max(t,r,n),s=i-Math.min(t,r,n),l=s?i===t?(r-n)/s:i===r?2+(n-t)/s:4+(t-r)/s:0;return{h:wt(60*(l<0?l+6:l)),s:wt(i?s/i*100:0),v:wt(i/255*100),a:o}},"L"),GA=d.memo(function(e){var t=e.hue,r=e.onChange,n=es(["react-colorful__hue",e.className]);return d.createElement("div",{className:n},d.createElement(ah,{onMove:a(function(o){r({h:360*o.left})},"onMove"),onKey:a(function(o){r({h:$a(t+360*o.left,0,360)})},"onKey"),"aria-label":"Hue","aria-valuenow":wt(t),"aria-valuemax":"360","aria-valuemin":"0"},d.createElement(ih,{className:"react-colorful__hue-pointer",left:t/360,color:nh({h:t,s:100,v:100,a:1})})))}),YA=d.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:nh({h:t.h,s:100,v:100,a:1})};return d.createElement("div",{className:"react-colorful__saturation",style:n},d.createElement(ah,{onMove:a(function(o){r({s:100*o.left,v:100-100*o.top})},"onMove"),onKey:a(function(o){r({s:$a(t.s+100*o.left,0,100),v:$a(t.v-100*o.top,0,100)})},"onKey"),"aria-label":"Color","aria-valuetext":"Saturation "+wt(t.s)+"%, Brightness "+wt(t.v)+"%"},d.createElement(ih,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:nh(t)})))}),KA=a(function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},"F"),XA=a(function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},"P"),dB=a(function(e,t){return e.toLowerCase()===t.toLowerCase()||KA(rh(e),rh(t))},"X");a(sh,"Y");fB=typeof window<"u"?it:q,mB=a(function(){return pB||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},"$"),FA=new Map,ZA=a(function(e){fB(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!FA.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,FA.set(t,r);var n=mB();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},"Q"),hB=a(function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,i=e.onChange,s=Gc(e,["className","colorModel","color","onChange"]),l=Q(null);ZA(l);var c=sh(r,o,i),u=c[0],p=c[1],f=es(["react-colorful",t]);return d.createElement("div",Vn({},s,{ref:l,className:f}),d.createElement(YA,{hsva:u,onChange:p}),d.createElement(GA,{hue:u.h,onChange:p,className:"react-colorful__last-control"}))},"U"),gB={defaultColor:"000",toHsva:oB,fromHsva:a(function(e){return lB({h:e.h,s:e.s,v:e.v,a:1})},"fromHsva"),equal:dB},yB=a(function(e){return d.createElement(hB,Vn({},e,{colorModel:gB}))},"Z"),bB=a(function(e){var t=e.className,r=e.hsva,n=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Wc(Object.assign({},r,{a:0}))+", "+Wc(Object.assign({},r,{a:1}))+")"},i=es(["react-colorful__alpha",t]),s=wt(100*r.a);return d.createElement("div",{className:i},d.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),d.createElement(ah,{onMove:a(function(l){n({a:l.left})},"onMove"),onKey:a(function(l){n({a:$a(r.a+l.left)})},"onKey"),"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},d.createElement(ih,{className:"react-colorful__alpha-pointer",left:r.a,color:Wc(r)})))},"ee"),QA=a(function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,i=e.onChange,s=Gc(e,["className","colorModel","color","onChange"]),l=Q(null);ZA(l);var c=sh(r,o,i),u=c[0],p=c[1],f=es(["react-colorful",t]);return d.createElement("div",Vn({},s,{ref:l,className:f}),d.createElement(YA,{hsva:u,onChange:p}),d.createElement(GA,{hue:u.h,onChange:p}),d.createElement(bB,{hsva:u,onChange:p,className:"react-colorful__last-control"}))},"re"),vB={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:iB,fromHsva:Wc,equal:XA},EB=a(function(e){return d.createElement(QA,Vn({},e,{colorModel:vB}))},"ue"),SB={defaultColor:"rgba(0, 0, 0, 1)",toHsva:cB,fromHsva:a(function(e){var t=JA(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},"fromHsva"),equal:XA},wB=a(function(e){return d.createElement(QA,Vn({},e,{colorModel:SB}))},"He"),xB=R.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),TB=R(nt)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),AB=R.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),CB=R(Dr)(({theme:e})=>({fontFamily:e.typography.fonts.base})),RB=R.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),_B=R.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),OB=`url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')`,LA=a(({value:e,style:t,...r})=>{let n=`linear-gradient(${e}, ${e}), ${OB}, linear-gradient(#fff, #fff)`;return d.createElement(_B,{...r,style:{...t,backgroundImage:n}})},"Swatch"),IB=R(Dt.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),PB=R(Nb)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),eC=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(eC||{}),eh=Object.values(eC),kB=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,DB=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,NB=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,oh=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,FB=/^\s*#?([0-9a-f]{3})\s*$/i,LB={hex:yB,rgb:wB,hsl:EB},Vc={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},tC=a(e=>{let t=e?.match(kB);if(!t)return[0,0,0,1];let[,r,n,o,i=1]=t;return[r,n,o,i].map(Number)},"stringToArgs"),MB=a(e=>{let[t,r,n,o]=tC(e),[i,s,l]=Sr.default.rgb.hsl([t,r,n])||[0,0,0];return{valid:!0,value:e,keyword:Sr.default.rgb.keyword([t,r,n]),colorSpace:"rgb",rgb:e,hsl:`hsla(${i}, ${s}%, ${l}%, ${o})`,hex:`#${Sr.default.rgb.hex([t,r,n]).toLowerCase()}`}},"parseRgb"),BB=a(e=>{let[t,r,n,o]=tC(e),[i,s,l]=Sr.default.hsl.rgb([t,r,n])||[0,0,0];return{valid:!0,value:e,keyword:Sr.default.hsl.keyword([t,r,n]),colorSpace:"hsl",rgb:`rgba(${i}, ${s}, ${l}, ${o})`,hsl:e,hex:`#${Sr.default.hsl.hex([t,r,n]).toLowerCase()}`}},"parseHsl"),$B=a(e=>{let t=e.replace("#",""),r=Sr.default.keyword.rgb(t)||Sr.default.hex.rgb(t),n=Sr.default.rgb.hsl(r),o=e;/[^#a-f0-9]/i.test(e)?o=t:oh.test(e)&&(o=`#${t}`);let i=!0;if(o.startsWith("#"))i=oh.test(o);else try{Sr.default.keyword.hex(o)}catch{i=!1}return{valid:i,value:o,keyword:Sr.default.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${n[0]}, ${n[1]}%, ${n[2]}%, 1)`,hex:o}},"parseHexOrKeyword"),Ba=a(e=>{if(e)return DB.test(e)?MB(e):NB.test(e)?BB(e):$B(e)},"parseValue"),jB=a((e,t,r)=>{if(!e||!t?.valid)return Vc[r];if(r!=="hex")return t?.[r]||Vc[r];if(!t.hex.startsWith("#"))try{return`#${Sr.default.keyword.hex(t.hex)}`}catch{return Vc.hex}let n=t.hex.match(FB);if(!n)return oh.test(t.hex)?t.hex:Vc.hex;let[o,i,s]=n[1].split("");return`#${o}${o}${i}${i}${s}${s}`},"getRealValue"),UB=a((e,t)=>{let[r,n]=J(e||""),[o,i]=J(()=>Ba(r)),[s,l]=J(o?.colorSpace||"hex");q(()=>{let f=e||"",m=Ba(f);n(f),i(m),l(m?.colorSpace||"hex")},[e]);let c=ve(()=>jB(r,o,s).toLowerCase(),[r,o,s]),u=ne(f=>{let m=Ba(f),g=m?.value||f||"";n(g),g===""&&(i(void 0),t(void 0)),m&&(i(m),l(m.colorSpace),t(m.value))},[t]),p=ne(()=>{let m=(eh.indexOf(s)+1)%eh.length,g=eh[m];l(g);let b=o?.[g]||"";n(b),t(b)},[o,s,t]);return{value:r,realValue:c,updateValue:u,color:o,colorSpace:s,cycleColorSpace:p}},"useColorInput"),qc=a(e=>e.replace(/\s*/,"").toLowerCase(),"id"),zB=a((e,t,r)=>{let[n,o]=J(t?.valid?[t]:[]);q(()=>{t===void 0&&o([])},[t]);let i=ve(()=>(e||[]).map(c=>typeof c=="string"?Ba(c):c.title?{...Ba(c.color),keyword:c.title}:Ba(c.color)).concat(n).filter(Boolean).slice(-27),[e,n]),s=ne(l=>{l?.valid&&(i.some(c=>c&&c[r]&&qc(c[r]||"")===qc(l[r]||""))||o(c=>c.concat(l)))},[r,i]);return{presets:i,addPreset:s}},"usePresets"),rC=a(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,presetColors:i,startOpen:s=!1,argType:l})=>{let c=ne(BA(r,200),[r]),{value:u,realValue:p,updateValue:f,color:m,colorSpace:g,cycleColorSpace:b}=UB(t,c),{presets:y,addPreset:S}=zB(i??[],m,g),v=LB[g],w=!!l?.table?.readonly;return d.createElement(xB,{"aria-readonly":w},d.createElement(TB,{startOpen:s,trigger:w?null:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>m&&S(m),tooltip:d.createElement(AB,null,d.createElement(v,{color:p==="transparent"?"#000000":p,onChange:f,onFocus:n,onBlur:o}),y.length>0&&d.createElement(RB,null,y.map((E,x)=>d.createElement(nt,{key:`${E?.value||x}-${x}`,hasChrome:!1,tooltip:d.createElement(CB,{note:E?.keyword||E?.value||""})},d.createElement(LA,{value:E?.[g]||"",active:!!(m&&E&&E[g]&&qc(E[g]||"")===qc(m[g])),onClick:()=>E&&f(E.value||"")})))))},d.createElement(LA,{value:p,style:{margin:4}})),d.createElement(IB,{id:Gt(e),value:u,onChange:E=>f(E.target.value),onFocus:E=>E.target.select(),readOnly:w,placeholder:"Choose color..."}),u?d.createElement(PB,{onClick:b}):null)},"ColorControl"),HB=rC});G();Y();K();G();Y();K();bu();G();Y();K();Ss();Ns();Qn();G();Y();K();no();Te();function Xy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a(Xy,"_assertThisInitialized");function Xo(e,t){return Xo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Xo(e,t)}a(Xo,"_setPrototypeOf");function Zy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xo(e,t)}a(Zy,"_inheritsLoose");function Ms(e){return Ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ms(e)}a(Ms,"_getPrototypeOf");function Qy(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}a(Qy,"_isNativeFunction");function td(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(td=a(function(){return!!e},"_isNativeReflectConstruct"))()}a(td,"_isNativeReflectConstruct");function eb(e,t,r){if(td())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Xo(o,r.prototype),o}a(eb,"_construct");function Bs(e){var t=typeof Map=="function"?new Map:void 0;return Bs=a(function(n){if(n===null||!Qy(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return eb(n,arguments,Ms(this).constructor)}return a(o,"Wrapper"),o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Xo(o,n)},"_wrapNativeSuper"),Bs(e)}a(Bs,"_wrapNativeSuper");function zO(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],i;for(i=1;i<t.length;i+=1)o.push(t[i]);return o.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}a(zO,"format");var Wt=function(e){Zy(t,e);function t(r){var n;if(1)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this;else for(var o,i,s;s<o;s++);return Xy(n)}return a(t,"PolishedError"),t}(Bs(Error));function Zu(e,t){return e.substr(-t.length)===t}a(Zu,"endsWith");var HO=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function Qu(e){if(typeof e!="string")return e;var t=e.match(HO);return t?parseFloat(e):e}a(Qu,"stripUnit");var VO=a(function(t){return function(r,n){n===void 0&&(n="16px");var o=r,i=n;if(typeof r=="string"){if(!Zu(r,"px"))throw new Wt(69,t,r);o=Qu(r)}if(typeof n=="string"){if(!Zu(n,"px"))throw new Wt(70,t,n);i=Qu(n)}if(typeof o=="string")throw new Wt(71,r,t);if(typeof i=="string")throw new Wt(72,n,t);return""+o/i+t}},"pxtoFactory"),tb=VO,nz=tb("em"),oz=tb("rem");function Fs(e){return Math.round(e*255)}a(Fs,"colorToInt");function rb(e,t,r){return Fs(e)+","+Fs(t)+","+Fs(r)}a(rb,"convertToInt");function Zo(e,t,r,n){if(n===void 0&&(n=rb),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,s=i*(1-Math.abs(o%2-1)),l=0,c=0,u=0;o>=0&&o<1?(l=i,c=s):o>=1&&o<2?(l=s,c=i):o>=2&&o<3?(c=i,u=s):o>=3&&o<4?(c=s,u=i):o>=4&&o<5?(l=s,u=i):o>=5&&o<6&&(l=i,u=s);var p=r-i/2,f=l+p,m=c+p,g=u+p;return n(f,m,g)}a(Zo,"hslToRgb");var Ky={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function nb(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Ky[t]?"#"+Ky[t]:e}a(nb,"nameToHex");var WO=/^#[a-fA-F0-9]{6}$/,JO=/^#[a-fA-F0-9]{8}$/,qO=/^#[a-fA-F0-9]{3}$/,GO=/^#[a-fA-F0-9]{4}$/,Xu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,YO=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,KO=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,XO=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function so(e){if(typeof e!="string")throw new Wt(3);var t=nb(e);if(t.match(WO))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(JO)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(qO))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(GO)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=Xu.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=YO.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=KO.exec(t);if(s){var l=parseInt(""+s[1],10),c=parseInt(""+s[2],10)/100,u=parseInt(""+s[3],10)/100,p="rgb("+Zo(l,c,u)+")",f=Xu.exec(p);if(!f)throw new Wt(4,t,p);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var m=XO.exec(t.substring(0,50));if(m){var g=parseInt(""+m[1],10),b=parseInt(""+m[2],10)/100,y=parseInt(""+m[3],10)/100,S="rgb("+Zo(g,b,y)+")",v=Xu.exec(S);if(!v)throw new Wt(4,t,S);return{red:parseInt(""+v[1],10),green:parseInt(""+v[2],10),blue:parseInt(""+v[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new Wt(5)}a(so,"parseToRgb");function ob(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var l,c=o-i,u=s>.5?c/(2-o-i):c/(o+i);switch(o){case t:l=(r-n)/c+(r<n?6:0);break;case r:l=(n-t)/c+2;break;default:l=(t-r)/c+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:s,alpha:e.alpha}:{hue:l,saturation:u,lightness:s}}a(ob,"rgbToHsl");function on(e){return ob(so(e))}a(on,"parseToHsl");var ZO=a(function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},"reduceHexValue"),ed=ZO;function Nn(e){var t=e.toString(16);return t.length===1?"0"+t:t}a(Nn,"numberToHex");function Ls(e){return Nn(Math.round(e*255))}a(Ls,"colorToHex");function ab(e,t,r){return ed("#"+Ls(e)+Ls(t)+Ls(r))}a(ab,"convertToHex");function ui(e,t,r){return Zo(e,t,r,ab)}a(ui,"hslToHex");function ib(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ui(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return ui(e.hue,e.saturation,e.lightness);throw new Wt(1)}a(ib,"hsl");function sb(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?ui(e,t,r):"rgba("+Zo(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ui(e.hue,e.saturation,e.lightness):"rgba("+Zo(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Wt(2)}a(sb,"hsla");function $s(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ed("#"+Nn(e)+Nn(t)+Nn(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ed("#"+Nn(e.red)+Nn(e.green)+Nn(e.blue));throw new Wt(6)}a($s,"rgb");function Mt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=so(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?$s(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?$s(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Wt(7)}a(Mt,"rgba");var QO=a(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isRgb"),eI=a(function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},"isRgba"),tI=a(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},"isHsl"),rI=a(function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"},"isHsla");function an(e){if(typeof e!="object")throw new Wt(8);if(eI(e))return Mt(e);if(QO(e))return $s(e);if(rI(e))return sb(e);if(tI(e))return ib(e);throw new Wt(8)}a(an,"toColorString");function rd(e,t,r){return a(function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):rd(e,t,o)},"fn")}a(rd,"curried");function Jt(e){return rd(e,e.length,[])}a(Jt,"curry");function lb(e,t){if(t==="transparent")return t;var r=on(t);return an(Ee({},r,{hue:r.hue+parseFloat(e)}))}a(lb,"adjustHue");var az=Jt(lb);function lo(e,t,r){return Math.max(e,Math.min(t,r))}a(lo,"guard");function cb(e,t){if(t==="transparent")return t;var r=on(t);return an(Ee({},r,{lightness:lo(0,1,r.lightness-parseFloat(e))}))}a(cb,"darken");var nI=Jt(cb),bt=nI;function ub(e,t){if(t==="transparent")return t;var r=on(t);return an(Ee({},r,{saturation:lo(0,1,r.saturation-parseFloat(e))}))}a(ub,"desaturate");var iz=Jt(ub);function db(e,t){if(t==="transparent")return t;var r=on(t);return an(Ee({},r,{lightness:lo(0,1,r.lightness+parseFloat(e))}))}a(db,"lighten");var oI=Jt(db),Rr=oI;function pb(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=so(t),o=Ee({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=so(r),s=Ee({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),l=o.alpha-s.alpha,c=parseFloat(e)*2-1,u=c*l===-1?c:c+l,p=1+c*l,f=(u/p+1)/2,m=1-f,g={red:Math.floor(o.red*f+s.red*m),green:Math.floor(o.green*f+s.green*m),blue:Math.floor(o.blue*f+s.blue*m),alpha:o.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return Mt(g)}a(pb,"mix");var aI=Jt(pb),fb=aI;function mb(e,t){if(t==="transparent")return t;var r=so(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ee({},r,{alpha:lo(0,1,(n*100+parseFloat(e)*100)/100)});return Mt(o)}a(mb,"opacify");var iI=Jt(mb),Qo=iI;function hb(e,t){if(t==="transparent")return t;var r=on(t);return an(Ee({},r,{saturation:lo(0,1,r.saturation+parseFloat(e))}))}a(hb,"saturate");var sz=Jt(hb);function gb(e,t){return t==="transparent"?t:an(Ee({},on(t),{hue:parseFloat(e)}))}a(gb,"setHue");var lz=Jt(gb);function yb(e,t){return t==="transparent"?t:an(Ee({},on(t),{lightness:parseFloat(e)}))}a(yb,"setLightness");var cz=Jt(yb);function bb(e,t){return t==="transparent"?t:an(Ee({},on(t),{saturation:parseFloat(e)}))}a(bb,"setSaturation");var uz=Jt(bb);function vb(e,t){return t==="transparent"?t:fb(parseFloat(e),"rgb(0, 0, 0)",t)}a(vb,"shade");var dz=Jt(vb);function Eb(e,t){return t==="transparent"?t:fb(parseFloat(e),"rgb(255, 255, 255)",t)}a(Eb,"tint");var pz=Jt(Eb);function Sb(e,t){if(t==="transparent")return t;var r=so(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ee({},r,{alpha:lo(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Mt(o)}a(Sb,"transparentize");var sI=Jt(Sb),ye=sI;no();G();Y();K();Te();var lI=5e3;function ea(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}a(ea,"isTestEnvironment");function di(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
38
|
+
animation: none !important;
|
|
39
|
+
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
40
|
+
animation-delay: 0s !important;
|
|
41
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
42
|
+
animation-play-state: paused !important;
|
|
43
|
+
transition: none !important;
|
|
44
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}a(di,"pauseAnimations");async function pi(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...nd(globalThis.document)],o=a(async()=>{if(t||e?.aborted)return;let i=n.flatMap(s=>s?.getAnimations?.()||[]).filter(s=>s.playState==="running"&&!wb(s));i.length>0&&(await Promise.all(i.map(s=>s.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},lI))])}a(pi,"waitForAnimations");function nd(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...nd(r.shadowRoot)),t),[])}a(nd,"getShadowRoots");function wb(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}a(wb,"isInfiniteAnimation");Br();Te();L();L();Z();Z();L();Z();L();Z();L();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();Z();L();Z();L();qe();Z();Z();L();L();L();L();var Tm=pr(nr(),1);L();L();L();L();L();L();L();to();L();var Da=pr(nr(),1),Yx=pr(nr(),1);L();L();var Am=pr(nr(),1);L();var rT=pr(nr(),1);L();to();var uT=pr(nr(),1);L();L();L();L();L();L();L();L();L();L();L();L();L();L();L();var Le=pr(nr(),1);L();qe();Z();L();L();Z();L();Z();L();Z();L();Z();L();L();L();We();Z();Z();L();Z();L();Z();L();L();Z();L();Z();L();Z();L();L();L();L();L();Z();L();L();Z();L();Z();L();Z();L();Z();L();G();Y();K();G();Y();K();var Gs="storybook/background",jr="backgrounds",TJ={UPDATE:`${Gs}/update`},uo="storybook/measure-addon",ad=`${uo}/tool`,Zb="measureEnabled",AJ={RESULT:`${uo}/result`,REQUEST:`${uo}/request`,CLEAR:`${uo}/clear`},Ys="storybook/outline",ta="outline",Ks={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}};G();Y();K();G();Y();K();Te();var Qb=ae({"../node_modules/picoquery/lib/string-util.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,i)=>"%"+((i<16?"0":"")+i.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let i=o.length;if(i===0)return"";let s="",l=0,c=0;e:for(;c<i;c++){let u=o.charCodeAt(c);for(;u<128;){if(r[u]!==1&&(l<c&&(s+=o.slice(l,c)),l=c+1,s+=t[u]),++c===i)break e;u=o.charCodeAt(c)}if(l<c&&(s+=o.slice(l,c)),u<2048){l=c+1,s+=t[192|u>>6]+t[128|u&63];continue}if(u<55296||u>=57344){l=c+1,s+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++c,c>=i)throw new Error("URI malformed");let p=o.charCodeAt(c)&1023;l=c+1,u=65536+((u&1023)<<10|p),s+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return l===0?o:l<i?s+o.slice(l):s}a(n,"encodeString")}}),id=ae({"../node_modules/picoquery/lib/shared.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=Qb(),r=a(i=>{switch(typeof i){case"string":return(0,t.encodeString)(i);case"bigint":case"boolean":return""+i;case"number":if(Number.isFinite(i))return i<1e21?""+i:(0,t.encodeString)(""+i);break}return i instanceof Date?(0,t.encodeString)(i.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=a(i=>i instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=a(i=>i,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}}),e0=ae({"../node_modules/picoquery/lib/object-util.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=p;var t=id(),r=Qb();function n(f){return f==="__proto__"||f==="constructor"||f==="prototype"}a(n,"isPrototypeKey");function o(f,m,g,b,y){if(n(m))return f;let S=f[m];return typeof S=="object"&&S!==null?S:!b&&(y||typeof g=="number"||typeof g=="string"&&g*0===0&&g.indexOf(".")===-1)?f[m]=[]:f[m]={}}a(o,"getDeepObject");var i=20,s="[]",l="[",c="]",u=".";function p(f,m,g=0,b,y){let{nestingSyntax:S=t.defaultOptions.nestingSyntax,arrayRepeat:v=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:w=t.defaultOptions.arrayRepeatSyntax,nesting:E=t.defaultOptions.nesting,delimiter:x=t.defaultOptions.delimiter,valueSerializer:A=t.defaultOptions.valueSerializer,shouldSerializeObject:_=t.defaultOptions.shouldSerializeObject}=m,C=typeof x=="number"?String.fromCharCode(x):x,O=y===!0&&v,I=S==="dot"||S==="js"&&!y;if(g>i)return"";let P="",D=!0,j=!1;for(let $ in f){let N=f[$];if(N===void 0)continue;let F;b?(F=b,O?w==="bracket"&&(F+=s):I?(F+=u,F+=$):(F+=l,F+=$,F+=c)):F=$,D||(P+=C),typeof N=="object"&&N!==null&&!_(N)?(j=N.pop!==void 0,(E||v&&j)&&(P+=p(N,m,g+1,F,j))):(P+=(0,r.encodeString)(F),P+="=",P+=A(N,$)),D&&(D=!1)}return P}a(p,"stringifyObject")}}),cI=ae({"../node_modules/picoquery/lib/decode-uri-component.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeURIComponent=o;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 o(l){let c=l.indexOf("%");if(c===-1)return l;let u=l.length,p="",f=0,m=0,g=c,b=t;for(;c>-1&&c<u;){let y=s(l[c+1],4),S=s(l[c+2],0),v=y|S,w=n[v];if(b=n[256+b+w],m=m<<6|v&n[364+w],b===t)p+=l.slice(f,g),p+=m<=65535?String.fromCharCode(m):String.fromCharCode(55232+(m>>10),56320+(m&1023)),m=0,f=c+3,c=g=l.indexOf("%",f);else{if(b===r)return null;if(c+=3,c<u&&l.charCodeAt(c)===37)continue;return null}}return p+l.slice(f)}a(o,"decodeURIComponent");var i={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 s(l,c){let u=i[l];return u===void 0?255:u<<c}a(s,"hexCodeToInt")}}),uI=ae({"../node_modules/picoquery/lib/parse.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=u;var t=e0(),r=id(),n=cI(),o=a(p=>{let f=Number(p);return Number.isNaN(f)?p:f},"numberKeyDeserializer");e.numberKeyDeserializer=o;var i=a(p=>{let f=Number(p);return Number.isNaN(f)?p:f},"numberValueDeserializer");e.numberValueDeserializer=i;var s=/\+/g,l=a(function(){},"Empty");l.prototype=Object.create(null);function c(p,f,m,g,b){let y=p.substring(f,m);return g&&(y=y.replace(s," ")),b&&(y=(0,n.decodeURIComponent)(y)||y),y}a(c,"computeKeySlice");function u(p,f){let{valueDeserializer:m=r.defaultOptions.valueDeserializer,keyDeserializer:g=r.defaultOptions.keyDeserializer,arrayRepeatSyntax:b=r.defaultOptions.arrayRepeatSyntax,nesting:y=r.defaultOptions.nesting,arrayRepeat:S=r.defaultOptions.arrayRepeat,nestingSyntax:v=r.defaultOptions.nestingSyntax,delimiter:w=r.defaultOptions.delimiter}=f??{},E=typeof w=="string"?w.charCodeAt(0):w,x=v==="js",A=new l;if(typeof p!="string")return A;let _=p.length,C="",O=-1,I=-1,P=-1,D=A,j,$="",N="",F=!1,B=!1,M=!1,W=!1,z=!1,V=!1,te=0,H=-1,ee=-1,he=-1;for(let re=0;re<_+1;re++){if(te=re!==_?p.charCodeAt(re):E,te===E){if(V=I>O,V||(I=re),P!==I-1&&(N=c(p,P+1,H>-1?H:I,M,F),$=g(N),j!==void 0&&(D=(0,t.getDeepObject)(D,j,$,x&&z,void 0))),V||$!==""){V&&(C=p.slice(I+1,re),W&&(C=C.replace(s," ")),B&&(C=(0,n.decodeURIComponent)(C)||C));let ce=m(C,$);if(S){let me=D[$];me===void 0?H>-1?D[$]=[ce]:D[$]=ce:me.pop?me.push(ce):D[$]=[me,ce]}else D[$]=ce}C="",O=re,I=re,F=!1,B=!1,M=!1,W=!1,z=!1,H=-1,P=re,D=A,j=void 0,$=""}else te===93?(S&&b==="bracket"&&he===91&&(H=ee),y&&(v==="index"||x)&&I<=O&&(P!==ee&&(N=c(p,P+1,re,M,F),$=g(N),j!==void 0&&(D=(0,t.getDeepObject)(D,j,$,void 0,void 0)),j=$,M=!1,F=!1),P=re,z=!1)):te===46?y&&(v==="dot"||x)&&I<=O&&(P!==ee&&(N=c(p,P+1,re,M,F),$=g(N),j!==void 0&&(D=(0,t.getDeepObject)(D,j,$,x)),j=$,M=!1,F=!1),z=!0,P=re):te===91?y&&(v==="index"||x)&&I<=O&&(P!==ee&&(N=c(p,P+1,re,M,F),$=g(N),x&&j!==void 0&&(D=(0,t.getDeepObject)(D,j,$,x)),j=$,M=!1,F=!1,z=!1),P=re):te===61?I<=O?I=re:B=!0:te===43?I>O?W=!0:M=!0:te===37&&(I>O?B=!0:F=!0);ee=re,he=te}return A}a(u,"parse")}}),dI=ae({"../node_modules/picoquery/lib/stringify.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=e0();function r(n,o){if(n===null||typeof n!="object")return"";let i=o??{};return(0,t.stringifyObject)(n,i)}a(r,"stringify")}}),Xs=ae({"../node_modules/picoquery/lib/main.js"(e){"use strict";var t=e&&e.__createBinding||(Object.create?function(i,s,l,c){c===void 0&&(c=l);var u=Object.getOwnPropertyDescriptor(s,l);(!u||("get"in u?!s.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:a(function(){return s[l]},"get")}),Object.defineProperty(i,c,u)}:function(i,s,l,c){c===void 0&&(c=l),i[c]=s[l]}),r=e&&e.__exportStar||function(i,s){for(var l in i)l!=="default"&&!Object.prototype.hasOwnProperty.call(s,l)&&t(s,i,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=uI();Object.defineProperty(e,"parse",{enumerable:!0,get:a(function(){return n.parse},"get")});var o=dI();Object.defineProperty(e,"stringify",{enumerable:!0,get:a(function(){return o.stringify},"get")}),r(id(),e)}});G();Y();K();G();Y();K();G();Y();K();Te();function Rt(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}a(Rt,"isPlainObject");function sd(e){return e==null||typeof e!="object"&&typeof e!="function"}a(sd,"isPrimitive");function ld(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}a(ld,"isTypedArray");function ra(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}a(ra,"getSymbols");function na(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}a(na,"getTag");var Zs="[object RegExp]",Qs="[object String]",el="[object Number]",tl="[object Boolean]",fi="[object Arguments]",rl="[object Symbol]",nl="[object Date]",ol="[object Map]",al="[object Set]",il="[object Array]",t0="[object Function]",sl="[object ArrayBuffer]",oa="[object Object]",r0="[object Error]",ll="[object DataView]",cl="[object Uint8Array]",ul="[object Uint8ClampedArray]",dl="[object Uint16Array]",pl="[object Uint32Array]",n0="[object BigUint64Array]",fl="[object Int8Array]",ml="[object Int16Array]",hl="[object Int32Array]",o0="[object BigInt64Array]",gl="[object Float32Array]",yl="[object Float64Array]";Te();function sn(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],s=e[i];r[i]=t(s,i,e)}return r}a(sn,"mapValues");function dd(e){return e==="__proto__"}a(dd,"isUnsafeProperty");function cd(e){return typeof e=="object"&&e!==null}a(cd,"isObjectLike");function ud(e,t,r){let n=Object.keys(t);for(let o=0;o<n.length;o++){let i=n[o];if(dd(i))continue;let s=t[i],l=e[i],c=r(l,s,i,e,t);c!==void 0?e[i]=c:Array.isArray(s)?e[i]=ud(l??[],s,r):cd(l)&&cd(s)?e[i]=ud(l??{},s,r):(l===void 0||s!==void 0)&&(e[i]=s)}return e}a(ud,"mergeWith");function pI(e,t){let r={};for(let n=0;n<t.length;n++){let o=t[n];Object.hasOwn(e,o)&&(r[o]=e[o])}return r}a(pI,"pick");function mi(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let i=n[o],s=e[i];t(s,i)&&(r[i]=s)}return r}a(mi,"pickBy");function po(e,t,r,n=new Map,o=void 0){let i=o?.(e,t,r,n);if(i!==void 0)return i;if(sd(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let s=new Array(e.length);n.set(e,s);for(let l=0;l<e.length;l++)s[l]=po(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(s.index=e.index),Object.hasOwn(e,"input")&&(s.input=e.input),s}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let s=new RegExp(e.source,e.flags);return s.lastIndex=e.lastIndex,s}if(e instanceof Map){let s=new Map;n.set(e,s);for(let[l,c]of e)s.set(l,po(c,l,r,n,o));return s}if(e instanceof Set){let s=new Set;n.set(e,s);for(let l of e)s.add(po(l,void 0,r,n,o));return s}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(ld(e)){let s=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,s);for(let l=0;l<e.length;l++)s[l]=po(e[l],l,r,n,o);return s}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let s=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,s),aa(s,e,r,n,o),s}if(typeof File<"u"&&e instanceof File){let s=new File([e],e.name,{type:e.type});return n.set(e,s),aa(s,e,r,n,o),s}if(e instanceof Blob){let s=new Blob([e],{type:e.type});return n.set(e,s),aa(s,e,r,n,o),s}if(e instanceof Error){let s=new e.constructor;return n.set(e,s),s.message=e.message,s.name=e.name,s.stack=e.stack,s.cause=e.cause,aa(s,e,r,n,o),s}if(typeof e=="object"&&a0(e)){let s=Object.create(Object.getPrototypeOf(e));return n.set(e,s),aa(s,e,r,n,o),s}return e}a(po,"cloneDeepWithImpl");function aa(e,t,r=e,n,o){let i=[...Object.keys(t),...ra(t)];for(let s=0;s<i.length;s++){let l=i[s],c=Object.getOwnPropertyDescriptor(e,l);(c==null||c.writable)&&(e[l]=po(t[l],l,r,n,o))}}a(aa,"copyProperties");function a0(e){switch(na(e)){case fi:case il:case sl:case ll:case tl:case nl:case gl:case yl:case fl:case ml:case hl:case ol:case el:case oa:case Zs:case al:case Qs:case rl:case cl:case ul:case dl:case pl:return!0;default:return!1}}a(a0,"isCloneableObject");function bl(e){return po(e,void 0,e,new Map,void 0)}a(bl,"cloneDeep");function ia(e,t){let r=Object.keys(t);for(let n=0;n<r.length;n++){let o=r[n];if(dd(o))continue;let i=t[o],s=e[o];Array.isArray(i)?Array.isArray(s)?e[o]=ia(s,i):e[o]=ia([],i):Rt(i)?Rt(s)?e[o]=ia(s,i):e[o]=ia({},i):(s===void 0||i!==void 0)&&(e[o]=i)}return e}a(ia,"merge");var zJ=new RegExp("\\p{Lu}?\\p{Ll}+|[0-9]+|\\p{Lu}+(?!\\p{Ll})|\\p{Emoji_Presentation}|\\p{Extended_Pictographic}|\\p{L}+","gu");function fI(e,t){return ia(bl(e),t)}a(fI,"toMerged");Te();G();Y();K();G();Y();K();G();Y();K();Te();function pd({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}a(pd,"parseErrorCode");function fd(e){if(/^(?!.*storybook\.js\.org)|[?&]ref=error\b/.test(e))return e;try{let t=new URL(e);return t.searchParams.set("ref","error"),t.toString()}catch{return e}}a(fd,"appendErrorRef");var i0=class s0 extends Error{constructor(t){super(s0.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return pd({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:n,message:o}){let i;return t===!0?i=`https://storybook.js.org/error/${pd({code:r,category:n})}?ref=error`:typeof t=="string"?i=fd(t):Array.isArray(t)&&(i=`
|
|
45
|
+
${t.map(s=>` - ${fd(s)}`).join(`
|
|
46
|
+
`)}`),`${o}${i!=null?`
|
|
47
|
+
|
|
48
|
+
More info: ${i}
|
|
49
|
+
`:""}`}};a(i0,"StorybookError");var rt=i0;fo();Te();var l0=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))(l0||{}),c0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:1,message:Ce`
|
|
50
|
+
Couldn't find story matching id '${t.storyId}' after HMR.
|
|
51
|
+
- Did you just rename a story?
|
|
52
|
+
- Did you remove it from your CSF file?
|
|
53
|
+
- Are you sure a story with the id '${t.storyId}' exists?
|
|
54
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
55
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=t}};a(c0,"MissingStoryAfterHmrError");var md=c0,u0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:Ce`
|
|
56
|
+
We detected that you use an implicit action arg while ${t.phase} of your story.
|
|
57
|
+
${t.deprecated?`
|
|
58
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
59
|
+
`:""}
|
|
60
|
+
Please provide an explicit spy to your args like this:
|
|
61
|
+
import { fn } from 'storybook/test';
|
|
62
|
+
...
|
|
63
|
+
args: {
|
|
64
|
+
${t.name}: fn()
|
|
65
|
+
}`}),this.data=t}};a(u0,"ImplicitActionsDuringRendering");var hd=u0,d0=class extends rt{constructor(){super({category:"PREVIEW_API",code:3,message:Ce`
|
|
66
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
67
|
+
|
|
68
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}};a(d0,"CalledExtractOnStoreError");var gd=d0,p0=class extends rt{constructor(){super({category:"PREVIEW_API",code:4,message:Ce`
|
|
69
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
70
|
+
|
|
71
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};a(p0,"MissingRenderToCanvasError");var yd=p0,f0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:5,message:Ce`
|
|
72
|
+
Called \`Preview.${t.methodName}()\` before initialization.
|
|
73
|
+
|
|
74
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
75
|
+
to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
76
|
+
|
|
77
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
78
|
+
do the above.`}),this.data=t}};a(f0,"CalledPreviewMethodBeforeInitializationError");var Bt=f0,m0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:6,message:Ce`
|
|
79
|
+
Error fetching \`/index.json\`:
|
|
80
|
+
|
|
81
|
+
${t.text}
|
|
82
|
+
|
|
83
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
84
|
+
check the terminal for errors.
|
|
85
|
+
|
|
86
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
87
|
+
build.`}),this.data=t}};a(m0,"StoryIndexFetchError");var bd=m0,h0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:7,message:Ce`
|
|
88
|
+
Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF
|
|
89
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
90
|
+
|
|
91
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
92
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};a(h0,"MdxFileWithNoCsfReferencesError");var vd=h0,g0=class extends rt{constructor(){super({category:"PREVIEW_API",code:8,message:Ce`
|
|
93
|
+
Couldn't find any stories in your Storybook.
|
|
94
|
+
|
|
95
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
96
|
+
- Also check the browser console and terminal for error messages.`})}};a(g0,"EmptyIndexError");var Ed=g0,y0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:9,message:Ce`
|
|
97
|
+
Couldn't find story matching '${t.storySpecifier}'.
|
|
98
|
+
|
|
99
|
+
- Are you sure a story with that id exists?
|
|
100
|
+
- Please check your stories field of your main.js config.
|
|
101
|
+
- Also check the browser console and terminal for error messages.`}),this.data=t}};a(y0,"NoStoryMatchError");var Sd=y0,b0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:10,message:Ce`
|
|
102
|
+
Couldn't find story matching id '${t.storyId}' after importing a CSF file.
|
|
103
|
+
|
|
104
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
105
|
+
we didn't find the story. Possible reasons:
|
|
106
|
+
- You are using a custom story indexer that is misbehaving.
|
|
107
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
108
|
+
|
|
109
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};a(b0,"MissingStoryFromCsfFileError");var wd=b0,v0=class extends rt{constructor(){super({category:"PREVIEW_API",code:11,message:Ce`
|
|
110
|
+
Cannot access the Story Store until the index is ready.
|
|
111
|
+
|
|
112
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
113
|
+
remove access to the store entirely`})}};a(v0,"StoryStoreAccessedBeforeInitializationError");var xd=v0,E0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:12,message:Ce`
|
|
114
|
+
Incorrect use of mount in the play function.
|
|
115
|
+
|
|
116
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
117
|
+
|
|
118
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
119
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
120
|
+
|
|
121
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
122
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
123
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
124
|
+
|
|
125
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
126
|
+
|
|
127
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
128
|
+
|
|
129
|
+
Received the following play function:
|
|
130
|
+
${t.playFunction}`}),this.data=t}};a(E0,"MountMustBeDestructuredError");var hi=E0,S0=class extends rt{constructor(t){super({category:"PREVIEW_API",code:14,message:Ce`
|
|
131
|
+
No render function available for storyId '${t.id}'
|
|
132
|
+
`}),this.data=t}};a(S0,"NoRenderFunctionError");var Td=S0,w0=class extends rt{constructor(){super({category:"PREVIEW_API",code:15,message:Ce`
|
|
133
|
+
No component is mounted in your story.
|
|
134
|
+
|
|
135
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
136
|
+
|
|
137
|
+
For example:
|
|
138
|
+
|
|
139
|
+
async play({ mount, canvasElement }) {
|
|
140
|
+
// 👈 mount should be called: await mount();
|
|
141
|
+
const canvas = within(canvasElement);
|
|
142
|
+
const button = await canvas.findByRole('button');
|
|
143
|
+
await userEvent.click(button);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
Make sure to either remove it or call mount in your play function.
|
|
147
|
+
`})}};a(w0,"NoStoryMountedError");var Ad=w0,mI=class extends rt{constructor(t){super({category:"PREVIEW_API",code:16,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}};a(mI,"StatusTypeIdMismatchError");var hI=class extends rt{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:Ce`
|
|
148
|
+
You are importing avif images, but you don't have sharp installed.
|
|
149
|
+
|
|
150
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
151
|
+
`})}};a(hI,"NextJsSharpError");var gI=class extends rt{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:Ce`
|
|
152
|
+
Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
153
|
+
`}),this.data=t}};a(gI,"NextjsRouterMocksNotAvailable");var x0=class extends rt{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Ce`
|
|
154
|
+
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
155
|
+
${JSON.stringify(t.type,null,2)}
|
|
156
|
+
|
|
157
|
+
Storybook will fall back to use a generic type description instead.
|
|
158
|
+
|
|
159
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
160
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
161
|
+
`}),this.data=t}};a(x0,"UnknownArgTypesError");var gi=x0,yI=class extends rt{constructor(t){super({category:"ADDON_VITEST",code:1,message:Ce`
|
|
162
|
+
Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension.
|
|
163
|
+
|
|
164
|
+
The Storybook plugin only supports values in the following units:
|
|
165
|
+
- px, vh, vw, em, rem and %.
|
|
166
|
+
|
|
167
|
+
You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags
|
|
168
|
+
`}),this.data=t}};a(yI,"UnsupportedViewportDimensionError");var bI=class extends rt{constructor(){super({category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}};a(bI,"ElementA11yParameterError");fo();Te();var vI=ae({"../node_modules/jsdoc-type-pratt-parser/dist/index.js"(e,t){(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){"use strict";function n(h){return h.text!==void 0&&h.text!==""?`'${h.type}' with value '${h.text}'`:`'${h.type}'`}a(n,"tokenToString");let o=class T0 extends Error{constructor(T){super(`No parslet found for token: ${n(T)}`),this.token=T,Object.setPrototypeOf(this,T0.prototype)}getToken(){return this.token}};a(o,"NoParsletFoundError");let i=o,s=class A0 extends Error{constructor(T){super(`The parsing ended early. The next token was: ${n(T)}`),this.token=T,Object.setPrototypeOf(this,A0.prototype)}getToken(){return this.token}};a(s,"EarlyEndOfParseError");let l=s,c=class C0 extends Error{constructor(T,k){let U=`Unexpected type: '${T.type}'.`;k!==void 0&&(U+=` Message: ${k}`),super(U),Object.setPrototypeOf(this,C0.prototype)}};a(c,"UnexpectedTypeError");let u=c;function p(h){return T=>T.startsWith(h)?{type:h,text:h}:null}a(p,"makePunctuationRule");function f(h){let T=0,k,U=h[0],X=!1;if(U!=="'"&&U!=='"')return null;for(;T<h.length;){if(T++,k=h[T],!X&&k===U){T++;break}X=!X&&k==="\\"}if(k!==U)throw new Error("Unterminated String");return h.slice(0,T)}a(f,"getQuoted");let m=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),g=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function b(h){let T=h[0];if(!m.test(T))return null;let k=1;do{if(T=h[k],!g.test(T))break;k++}while(k<h.length);return h.slice(0,k)}a(b,"getIdentifier");let y=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function S(h){var T,k;return(k=(T=y.exec(h))===null||T===void 0?void 0:T[0])!==null&&k!==void 0?k:null}a(S,"getNumber");let v=a(h=>{let T=b(h);return T==null?null:{type:"Identifier",text:T}},"identifierRule");function w(h){return T=>{if(!T.startsWith(h))return null;let k=T[h.length];return k!==void 0&&g.test(k)?null:{type:h,text:h}}}a(w,"makeKeyWordRule");let E=a(h=>{let T=f(h);return T==null?null:{type:"StringValue",text:T}},"stringValueRule"),x=a(h=>h.length>0?null:{type:"EOF",text:""},"eofRule"),A=a(h=>{let T=S(h);return T===null?null:{type:"Number",text:T}},"numberRule"),_=[x,p("=>"),p("("),p(")"),p("{"),p("}"),p("["),p("]"),p("|"),p("&"),p("<"),p(">"),p(","),p(";"),p("*"),p("?"),p("!"),p("="),p(":"),p("..."),p("."),p("#"),p("~"),p("/"),p("@"),w("undefined"),w("null"),w("function"),w("this"),w("new"),w("module"),w("event"),w("extends"),w("external"),w("infer"),w("typeof"),w("keyof"),w("readonly"),w("import"),w("is"),w("in"),w("asserts"),A,v,E],C=/^\s*\n\s*/,O=class vl{static create(T){let k=this.read(T);T=k.text;let U=this.read(T);return T=U.text,new vl(T,void 0,k.token,U.token)}constructor(T,k,U,X){this.text="",this.text=T,this.previous=k,this.current=U,this.next=X}static read(T,k=!1){k=k||C.test(T),T=T.trim();for(let U of _){let X=U(T);if(X!==null){let le=Object.assign(Object.assign({},X),{startOfLine:k});return T=T.slice(le.text.length),{text:T,token:le}}}throw new Error("Unexpected Token "+T)}advance(){let T=vl.read(this.text);return new vl(T.text,this.current,this.next,T.token)}};a(O,"Lexer");let I=O;function P(h){if(h===void 0)throw new Error("Unexpected undefined");if(h.type==="JsdocTypeKeyValue"||h.type==="JsdocTypeParameterList"||h.type==="JsdocTypeProperty"||h.type==="JsdocTypeReadonlyProperty"||h.type==="JsdocTypeObjectField"||h.type==="JsdocTypeJsdocObjectField"||h.type==="JsdocTypeIndexSignature"||h.type==="JsdocTypeMappedType"||h.type==="JsdocTypeTypeParameter")throw new u(h);return h}a(P,"assertRootResult");function D(h){return h.type==="JsdocTypeKeyValue"?$(h):P(h)}a(D,"assertPlainKeyValueOrRootResult");function j(h){return h.type==="JsdocTypeName"?h:$(h)}a(j,"assertPlainKeyValueOrNameResult");function $(h){if(h.type!=="JsdocTypeKeyValue")throw new u(h);return h}a($,"assertPlainKeyValueResult");function N(h){var T;if(h.type==="JsdocTypeVariadic"){if(((T=h.element)===null||T===void 0?void 0:T.type)==="JsdocTypeName")return h;throw new u(h)}if(h.type!=="JsdocTypeNumber"&&h.type!=="JsdocTypeName")throw new u(h);return h}a(N,"assertNumberOrVariadicNameResult");function F(h){if(h.type==="JsdocTypeTuple"||h.type==="JsdocTypeGeneric"&&h.meta.brackets==="square")return h;throw new u(h)}a(F,"assertArrayOrTupleResult");function B(h){return h.type==="JsdocTypeIndexSignature"||h.type==="JsdocTypeMappedType"}a(B,"isSquaredProperty");var M;(function(h){h[h.ALL=0]="ALL",h[h.PARAMETER_LIST=1]="PARAMETER_LIST",h[h.OBJECT=2]="OBJECT",h[h.KEY_VALUE=3]="KEY_VALUE",h[h.INDEX_BRACKETS=4]="INDEX_BRACKETS",h[h.UNION=5]="UNION",h[h.INTERSECTION=6]="INTERSECTION",h[h.PREFIX=7]="PREFIX",h[h.INFIX=8]="INFIX",h[h.TUPLE=9]="TUPLE",h[h.SYMBOL=10]="SYMBOL",h[h.OPTIONAL=11]="OPTIONAL",h[h.NULLABLE=12]="NULLABLE",h[h.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",h[h.FUNCTION=14]="FUNCTION",h[h.ARROW=15]="ARROW",h[h.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",h[h.GENERIC=17]="GENERIC",h[h.NAME_PATH=18]="NAME_PATH",h[h.PARENTHESIS=19]="PARENTHESIS",h[h.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(M||(M={}));let W=class{constructor(T,k,U){this.grammar=T,typeof k=="string"?this._lexer=I.create(k):this._lexer=k,this.baseParser=U}get lexer(){return this._lexer}parse(){let T=this.parseType(M.ALL);if(this.lexer.current.type!=="EOF")throw new l(this.lexer.current);return T}parseType(T){return P(this.parseIntermediateType(T))}parseIntermediateType(T){let k=this.tryParslets(null,T);if(k===null)throw new i(this.lexer.current);return this.parseInfixIntermediateType(k,T)}parseInfixIntermediateType(T,k){let U=this.tryParslets(T,k);for(;U!==null;)T=U,U=this.tryParslets(T,k);return T}tryParslets(T,k){for(let U of this.grammar){let X=U(this,k,T);if(X!==null)return X}return null}consume(T){return Array.isArray(T)||(T=[T]),T.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(T){this._lexer=T.lexer}};a(W,"Parser");let z=W;function V(h){return h==="}"||h==="EOF"||h==="|"||h===","||h===")"||h===">"}a(V,"isQuestionMarkUnknownType");let te=a((h,T,k)=>{let U=h.lexer.current.type,X=h.lexer.next.type;return k==null&&U==="?"&&!V(X)||k!=null&&U==="?"?(h.consume("?"),k==null?{type:"JsdocTypeNullable",element:h.parseType(M.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:P(k),meta:{position:"suffix"}}):null},"nullableParslet");function H(h){let T=a((k,U,X)=>{let le=k.lexer.current.type,ge=k.lexer.next.type;if(X===null){if("parsePrefix"in h&&h.accept(le,ge))return h.parsePrefix(k)}else if("parseInfix"in h&&h.precedence>U&&h.accept(le,ge))return h.parseInfix(k,X);return null},"parslet");return Object.defineProperty(T,"name",{value:h.name}),T}a(H,"composeParslet");let ee=H({name:"optionalParslet",accept:a(h=>h==="=","accept"),precedence:M.OPTIONAL,parsePrefix:a(h=>(h.consume("="),{type:"JsdocTypeOptional",element:h.parseType(M.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((h,T)=>(h.consume("="),{type:"JsdocTypeOptional",element:P(T),meta:{position:"suffix"}}),"parseInfix")}),he=H({name:"numberParslet",accept:a(h=>h==="Number","accept"),parsePrefix:a(h=>{let T=parseFloat(h.lexer.current.text);return h.consume("Number"),{type:"JsdocTypeNumber",value:T}},"parsePrefix")}),re=H({name:"parenthesisParslet",accept:a(h=>h==="(","accept"),parsePrefix:a(h=>{if(h.consume("("),h.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let T=h.parseIntermediateType(M.ALL);if(!h.consume(")"))throw new Error("Unterminated parenthesis");return T.type==="JsdocTypeParameterList"?T:T.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[T]}:{type:"JsdocTypeParenthesis",element:P(T)}},"parsePrefix")}),ce=H({name:"specialTypesParslet",accept:a((h,T)=>h==="?"&&V(T)||h==="null"||h==="undefined"||h==="*","accept"),parsePrefix:a(h=>{if(h.consume("null"))return{type:"JsdocTypeNull"};if(h.consume("undefined"))return{type:"JsdocTypeUndefined"};if(h.consume("*"))return{type:"JsdocTypeAny"};if(h.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+h.lexer.current.text)},"parsePrefix")}),me=H({name:"notNullableParslet",accept:a(h=>h==="!","accept"),precedence:M.NULLABLE,parsePrefix:a(h=>(h.consume("!"),{type:"JsdocTypeNotNullable",element:h.parseType(M.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:a((h,T)=>(h.consume("!"),{type:"JsdocTypeNotNullable",element:P(T),meta:{position:"suffix"}}),"parseInfix")});function xe({allowTrailingComma:h}){return H({name:"parameterListParslet",accept:a(T=>T===",","accept"),precedence:M.PARAMETER_LIST,parseInfix:a((T,k)=>{let U=[D(k)];T.consume(",");do try{let X=T.parseIntermediateType(M.PARAMETER_LIST);U.push(D(X))}catch(X){if(X instanceof i)break;throw X}while(T.consume(","));if(U.length>0&&U.slice(0,-1).some(X=>X.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:U}},"parseInfix")})}a(xe,"createParameterListParslet");let De=H({name:"genericParslet",accept:a((h,T)=>h==="<"||h==="."&&T==="<","accept"),precedence:M.GENERIC,parseInfix:a((h,T)=>{let k=h.consume(".");h.consume("<");let U=[],X=!1;if(h.consume("infer")){X=!0;let le=h.parseIntermediateType(M.SYMBOL);if(le.type!=="JsdocTypeName")throw new u(le,"A typescript asserts always has to have a name on the left side.");U.push(le)}else do U.push(h.parseType(M.PARAMETER_LIST));while(h.consume(","));if(!h.consume(">"))throw new Error("Unterminated generic parameter list");return Object.assign(Object.assign({type:"JsdocTypeGeneric",left:P(T),elements:U},X?{infer:!0}:{}),{meta:{brackets:"angle",dot:k}})},"parseInfix")}),Ye=H({name:"unionParslet",accept:a(h=>h==="|","accept"),precedence:M.UNION,parseInfix:a((h,T)=>{h.consume("|");let k=[];do k.push(h.parseType(M.UNION));while(h.consume("|"));return{type:"JsdocTypeUnion",elements:[P(T),...k]}},"parseInfix")}),Ue=[te,ee,he,re,ce,me,xe({allowTrailingComma:!0}),De,Ye,ee];function et({allowSquareBracketsOnAnyType:h,allowJsdocNamePaths:T,pathGrammar:k}){return a(function(X,le,ge){if(ge==null||le>=M.NAME_PATH)return null;let Me=X.lexer.current.type,It=X.lexer.next.type;if(!(Me==="."&&It!=="<"||Me==="["&&(h||ge.type==="JsdocTypeName")||T&&(Me==="~"||Me==="#")))return null;let dr,ms=!1;X.consume(".")?dr="property":X.consume("[")?(dr="property-brackets",ms=!0):X.consume("~")?dr="inner":(X.consume("#"),dr="instance");let ug=k!==null?new z(k,X.lexer,X):X,en=ug.parseIntermediateType(M.NAME_PATH);X.acceptLexerState(ug);let qa;switch(en.type){case"JsdocTypeName":qa={type:"JsdocTypeProperty",value:en.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":qa={type:"JsdocTypeProperty",value:en.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":qa={type:"JsdocTypeProperty",value:en.value,meta:{quote:en.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(en.specialType==="event")qa=en;else throw new u(en,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new u(en,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ms&&!X.consume("]")){let dg=X.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${dg.type}' with text '${dg.text}'`)}return{type:"JsdocTypeNamePath",left:P(ge),right:qa,pathType:dr}},"namePathParslet")}a(et,"createNamePathParslet");function lt({allowedAdditionalTokens:h}){return H({name:"nameParslet",accept:a(T=>T==="Identifier"||T==="this"||T==="new"||h.includes(T),"accept"),parsePrefix:a(T=>{let{type:k,text:U}=T.lexer.current;return T.consume(k),{type:"JsdocTypeName",value:U}},"parsePrefix")})}a(lt,"createNameParslet");let Oe=H({name:"stringValueParslet",accept:a(h=>h==="StringValue","accept"),parsePrefix:a(h=>{let T=h.lexer.current.text;return h.consume("StringValue"),{type:"JsdocTypeStringValue",value:T.slice(1,-1),meta:{quote:T[0]==="'"?"single":"double"}}},"parsePrefix")});function ze({pathGrammar:h,allowedTypes:T}){return H({name:"specialNamePathParslet",accept:a(k=>T.includes(k),"accept"),parsePrefix:a(k=>{let U=k.lexer.current.type;if(k.consume(U),!k.consume(":"))return{type:"JsdocTypeName",value:U};let X,le=k.lexer.current;if(k.consume("StringValue"))X={type:"JsdocTypeSpecialNamePath",value:le.text.slice(1,-1),specialType:U,meta:{quote:le.text[0]==="'"?"single":"double"}};else{let It="",xt=["Identifier","@","/"];for(;xt.some(dr=>k.consume(dr));)It+=le.text,le=k.lexer.current;X={type:"JsdocTypeSpecialNamePath",value:It,specialType:U,meta:{quote:void 0}}}let ge=new z(h,k.lexer,k),Me=ge.parseInfixIntermediateType(X,M.ALL);return k.acceptLexerState(ge),P(Me)},"parsePrefix")})}a(ze,"createSpecialNamePathParslet");let ot=[lt({allowedAdditionalTokens:["external","module"]}),Oe,he,et({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],ct=[...ot,ze({allowedTypes:["event"],pathGrammar:ot})];function gt(h){let T;if(h.type==="JsdocTypeParameterList")T=h.elements;else if(h.type==="JsdocTypeParenthesis")T=[h.element];else throw new u(h);return T.map(k=>D(k))}a(gt,"getParameters");function Gr(h){let T=gt(h);if(T.some(k=>k.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return T}a(Gr,"getUnnamedParameters");function Ke({allowNamedParameters:h,allowNoReturnType:T,allowWithoutParenthesis:k,allowNewAsFunctionKeyword:U}){return H({name:"functionParslet",accept:a((X,le)=>X==="function"||U&&X==="new"&&le==="(","accept"),parsePrefix:a(X=>{let le=X.consume("new");X.consume("function");let ge=X.lexer.current.type==="(";if(!ge){if(!k)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let Me={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:le,parenthesis:ge},It=X.parseIntermediateType(M.FUNCTION);if(h===void 0)Me.parameters=Gr(It);else{if(le&&It.type==="JsdocTypeFunction"&&It.arrow)return Me=It,Me.constructor=!0,Me;Me.parameters=gt(It);for(let xt of Me.parameters)if(xt.type==="JsdocTypeKeyValue"&&!h.includes(xt.key))throw new Error(`only allowed named parameters are ${h.join(", ")} but got ${xt.type}`)}if(X.consume(":"))Me.returnType=X.parseType(M.PREFIX);else if(!T)throw new Error("function is missing return type");return Me},"parsePrefix")})}a(Ke,"createFunctionParslet");function lr({allowPostfix:h,allowEnclosingBrackets:T}){return H({name:"variadicParslet",accept:a(k=>k==="...","accept"),precedence:M.PREFIX,parsePrefix:a(k=>{k.consume("...");let U=T&&k.consume("[");try{let X=k.parseType(M.PREFIX);if(U&&!k.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:P(X),meta:{position:"prefix",squareBrackets:U}}}catch(X){if(X instanceof i){if(U)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw X}},"parsePrefix"),parseInfix:h?(k,U)=>(k.consume("..."),{type:"JsdocTypeVariadic",element:P(U),meta:{position:"suffix",squareBrackets:!1}}):void 0})}a(lr,"createVariadicParslet");let er=H({name:"symbolParslet",accept:a(h=>h==="(","accept"),precedence:M.SYMBOL,parseInfix:a((h,T)=>{if(T.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");h.consume("(");let k={type:"JsdocTypeSymbol",value:T.value};if(!h.consume(")")){let U=h.parseIntermediateType(M.SYMBOL);if(k.element=N(U),!h.consume(")"))throw new Error("Symbol does not end after value")}return k},"parseInfix")}),Yr=H({name:"arrayBracketsParslet",precedence:M.ARRAY_BRACKETS,accept:a((h,T)=>h==="["&&T==="]","accept"),parseInfix:a((h,T)=>(h.consume("["),h.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[P(T)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function Ft({objectFieldGrammar:h,allowKeyTypes:T}){return H({name:"objectParslet",accept:a(k=>k==="{","accept"),parsePrefix:a(k=>{k.consume("{");let U={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!k.consume("}")){let X,le=new z(h,k.lexer,k);for(;;){le.acceptLexerState(k);let ge=le.parseIntermediateType(M.OBJECT);k.acceptLexerState(le),ge===void 0&&T&&(ge=k.parseIntermediateType(M.OBJECT));let Me=!1;if(ge.type==="JsdocTypeNullable"&&(Me=!0,ge=ge.element),ge.type==="JsdocTypeNumber"||ge.type==="JsdocTypeName"||ge.type==="JsdocTypeStringValue"){let xt;ge.type==="JsdocTypeStringValue"&&(xt=ge.meta.quote),U.elements.push({type:"JsdocTypeObjectField",key:ge.value.toString(),right:void 0,optional:Me,readonly:!1,meta:{quote:xt}})}else if(ge.type==="JsdocTypeObjectField"||ge.type==="JsdocTypeJsdocObjectField")U.elements.push(ge);else throw new u(ge);if(k.lexer.current.startOfLine)X="linebreak",k.consume(",")||k.consume(";");else if(k.consume(","))X="comma";else if(k.consume(";"))X="semicolon";else break;if(k.lexer.current.type==="}")break}if(U.meta.separator=X??"comma",X==="linebreak"&&(U.meta.propertyIndent=" "),!k.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return U},"parsePrefix")})}a(Ft,"createObjectParslet");function wr({allowSquaredProperties:h,allowKeyTypes:T,allowReadonly:k,allowOptional:U}){return H({name:"objectFieldParslet",precedence:M.KEY_VALUE,accept:a(X=>X===":","accept"),parseInfix:a((X,le)=>{var ge;let Me=!1,It=!1;U&&le.type==="JsdocTypeNullable"&&(Me=!0,le=le.element),k&&le.type==="JsdocTypeReadonlyProperty"&&(It=!0,le=le.element);let xt=(ge=X.baseParser)!==null&&ge!==void 0?ge:X;if(xt.acceptLexerState(X),le.type==="JsdocTypeNumber"||le.type==="JsdocTypeName"||le.type==="JsdocTypeStringValue"||B(le)){if(B(le)&&!h)throw new u(le);xt.consume(":");let dr;le.type==="JsdocTypeStringValue"&&(dr=le.meta.quote);let ms=xt.parseType(M.KEY_VALUE);return X.acceptLexerState(xt),{type:"JsdocTypeObjectField",key:B(le)?le:le.value.toString(),right:ms,optional:Me,readonly:It,meta:{quote:dr}}}else{if(!T)throw new u(le);xt.consume(":");let dr=xt.parseType(M.KEY_VALUE);return X.acceptLexerState(xt),{type:"JsdocTypeJsdocObjectField",left:P(le),right:dr}}},"parseInfix")})}a(wr,"createObjectFieldParslet");function Lt({allowOptional:h,allowVariadic:T}){return H({name:"keyValueParslet",precedence:M.KEY_VALUE,accept:a(k=>k===":","accept"),parseInfix:a((k,U)=>{let X=!1,le=!1;if(h&&U.type==="JsdocTypeNullable"&&(X=!0,U=U.element),T&&U.type==="JsdocTypeVariadic"&&U.element!==void 0&&(le=!0,U=U.element),U.type!=="JsdocTypeName")throw new u(U);k.consume(":");let ge=k.parseType(M.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:U.value,right:ge,optional:X,variadic:le}},"parseInfix")})}a(Lt,"createKeyValueParslet");let ut=[...Ue,Ke({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Oe,ze({allowedTypes:["module","external","event"],pathGrammar:ct}),lr({allowEnclosingBrackets:!0,allowPostfix:!0}),lt({allowedAdditionalTokens:["keyof"]}),er,Yr,et({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ct})],tr=[...ut,Ft({objectFieldGrammar:[lt({allowedAdditionalTokens:["typeof","module","in"]}),wr({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ut],allowKeyTypes:!0}),Lt({allowOptional:!0,allowVariadic:!0})],tt=H({name:"typeOfParslet",accept:a(h=>h==="typeof","accept"),parsePrefix:a(h=>(h.consume("typeof"),{type:"JsdocTypeTypeof",element:h.parseType(M.KEY_OF_TYPE_OF)}),"parsePrefix")}),Xe=[lt({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),te,ee,Oe,he,wr({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],cr=[...Ue,Ft({allowKeyTypes:!1,objectFieldGrammar:Xe}),lt({allowedAdditionalTokens:["event","external","in"]}),tt,Ke({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),lr({allowEnclosingBrackets:!1,allowPostfix:!1}),lt({allowedAdditionalTokens:["keyof"]}),ze({allowedTypes:["module"],pathGrammar:ct}),et({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:ct}),Lt({allowOptional:!1,allowVariadic:!1}),er],Fo=H({name:"assertsParslet",accept:a(h=>h==="asserts","accept"),parsePrefix:a(h=>{h.consume("asserts");let T=h.parseIntermediateType(M.SYMBOL);if(T.type!=="JsdocTypeName")throw new u(T,"A typescript asserts always has to have a name on the left side.");return h.consume("is")?{type:"JsdocTypeAsserts",left:T,right:P(h.parseIntermediateType(M.INFIX))}:{type:"JsdocTypeAssertsPlain",element:T}},"parsePrefix")});function Lo({allowQuestionMark:h}){return H({name:"tupleParslet",accept:a(T=>T==="[","accept"),parsePrefix:a(T=>{T.consume("[");let k={type:"JsdocTypeTuple",elements:[]};if(T.consume("]"))return k;let U=T.parseIntermediateType(M.ALL);if(U.type==="JsdocTypeParameterList"?U.elements[0].type==="JsdocTypeKeyValue"?k.elements=U.elements.map($):k.elements=U.elements.map(P):U.type==="JsdocTypeKeyValue"?k.elements=[$(U)]:k.elements=[P(U)],!T.consume("]"))throw new Error("Unterminated '['");if(k.elements.some(X=>X.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return k},"parsePrefix")})}a(Lo,"createTupleParslet");let Kr=H({name:"keyOfParslet",accept:a(h=>h==="keyof","accept"),parsePrefix:a(h=>(h.consume("keyof"),{type:"JsdocTypeKeyof",element:P(h.parseType(M.KEY_OF_TYPE_OF))}),"parsePrefix")}),Yn=H({name:"importParslet",accept:a(h=>h==="import","accept"),parsePrefix:a(h=>{if(h.consume("import"),!h.consume("("))throw new Error("Missing parenthesis after import keyword");let T=h.parseType(M.PREFIX);if(T.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!h.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:T}},"parsePrefix")}),Xr=H({name:"readonlyPropertyParslet",accept:a(h=>h==="readonly","accept"),parsePrefix:a(h=>(h.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:h.parseIntermediateType(M.KEY_VALUE)}),"parsePrefix")}),xr=H({name:"arrowFunctionParslet",precedence:M.ARROW,accept:a(h=>h==="=>","accept"),parseInfix:a((h,T)=>(h.consume("=>"),{type:"JsdocTypeFunction",parameters:gt(T).map(j),arrow:!0,constructor:!1,parenthesis:!0,returnType:h.parseType(M.OBJECT)}),"parseInfix")}),us=H({name:"genericArrowFunctionParslet",accept:a(h=>h==="<","accept"),parsePrefix:a(h=>{let T=[];h.consume("<");do{let U,X=h.parseIntermediateType(M.SYMBOL);if(X.type==="JsdocTypeOptional"&&(X=X.element,U=h.parseType(M.SYMBOL)),X.type!=="JsdocTypeName")throw new u(X);let le;h.consume("extends")&&(le=h.parseType(M.SYMBOL),le.type==="JsdocTypeOptional"&&(le=le.element,U=h.parseType(M.SYMBOL)));let ge={type:"JsdocTypeTypeParameter",name:X};if(le!==void 0&&(ge.constraint=le),U!==void 0&&(ge.defaultValue=U),T.push(ge),h.consume(">"))break}while(h.consume(","));let k=h.parseIntermediateType(M.SYMBOL);return k.typeParameters=T,k},"parsePrefix")}),Kn=H({name:"intersectionParslet",accept:a(h=>h==="&","accept"),precedence:M.INTERSECTION,parseInfix:a((h,T)=>{h.consume("&");let k=[];do k.push(h.parseType(M.INTERSECTION));while(h.consume("&"));return{type:"JsdocTypeIntersection",elements:[P(T),...k]}},"parseInfix")}),Mo=H({name:"predicateParslet",precedence:M.INFIX,accept:a(h=>h==="is","accept"),parseInfix:a((h,T)=>{if(T.type!=="JsdocTypeName")throw new u(T,"A typescript predicate always has to have a name on the left side.");return h.consume("is"),{type:"JsdocTypePredicate",left:T,right:P(h.parseIntermediateType(M.INFIX))}},"parseInfix")}),ur=H({name:"objectSquareBracketPropertyParslet",accept:a(h=>h==="[","accept"),parsePrefix:a(h=>{if(h.baseParser===void 0)throw new Error("Only allowed inside object grammar");h.consume("[");let T=h.lexer.current.text;h.consume("Identifier");let k;if(h.consume(":")){let U=h.baseParser;U.acceptLexerState(h),k={type:"JsdocTypeIndexSignature",key:T,right:U.parseType(M.INDEX_BRACKETS)},h.acceptLexerState(U)}else if(h.consume("in")){let U=h.baseParser;U.acceptLexerState(h),k={type:"JsdocTypeMappedType",key:T,right:U.parseType(M.ARRAY_BRACKETS)},h.acceptLexerState(U)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!h.consume("]"))throw new Error("Unterminated square brackets");return k},"parsePrefix")}),at=H({name:"readonlyArrayParslet",accept:a(h=>h==="readonly","accept"),parsePrefix:a(h=>(h.consume("readonly"),{type:"JsdocTypeReadonlyArray",element:F(h.parseIntermediateType(M.ALL))}),"parsePrefix")}),An=H({name:"conditionalParslet",precedence:M.INFIX,accept:a(h=>h==="extends","accept"),parseInfix:a((h,T)=>{h.consume("extends");let k=h.parseType(M.KEY_OF_TYPE_OF).element,U=h.parseType(M.INFIX);return h.consume(":"),{type:"JsdocTypeConditional",checksType:P(T),extendsType:k,trueType:U,falseType:h.parseType(M.INFIX)}},"parseInfix")}),ds=[Xr,lt({allowedAdditionalTokens:["typeof","module","keyof","event","external","in"]}),te,ee,Oe,he,wr({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),ur],Va=[...Ue,Ft({allowKeyTypes:!1,objectFieldGrammar:ds}),at,tt,Kr,Yn,Oe,Ke({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Lo({allowQuestionMark:!1}),lr({allowEnclosingBrackets:!1,allowPostfix:!1}),Fo,An,lt({allowedAdditionalTokens:["event","external","in"]}),ze({allowedTypes:["module"],pathGrammar:ct}),Yr,xr,us,et({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:ct}),Kn,Mo,Lt({allowVariadic:!0,allowOptional:!0})];function Bo(h,T){switch(T){case"closure":return new z(cr,h).parse();case"jsdoc":return new z(tr,h).parse();case"typescript":return new z(Va,h).parse()}}a(Bo,"parse");function Wa(h,T=["typescript","closure","jsdoc"]){let k;for(let U of T)try{return Bo(h,U)}catch(X){k=X}throw k}a(Wa,"tryParse");function Lr(h,T){let k=h[T.type];if(k===void 0)throw new Error(`In this set of transform rules exists no rule for type ${T.type}.`);return k(T,U=>Lr(h,U))}a(Lr,"transform");function $e(h){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}a($e,"notAvailableTransform");function gu(h){let T={params:[]};for(let k of h.parameters)k.type==="JsdocTypeKeyValue"?k.key==="this"?T.this=k.right:k.key==="new"?T.new=k.right:T.params.push(k):T.params.push(k);return T}a(gu,"extractSpecialParams");function Ja(h,T,k){return h==="prefix"?k+T:T+k}a(Ja,"applyPosition");function Zr(h,T){switch(T){case"double":return`"${h}"`;case"single":return`'${h}'`;case void 0:return h}}a(Zr,"quote");function yu(){return{JsdocTypeParenthesis:a((h,T)=>`(${h.element!==void 0?T(h.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:a((h,T)=>`keyof ${T(h.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:a((h,T)=>{var k;if(h.arrow){if(h.returnType===void 0)throw new Error("Arrow function needs a return type.");let U=`${h.typeParameters!==void 0?`<${(k=h.typeParameters.map(T).join(", "))!==null&&k!==void 0?k:""}>`:""}(${h.parameters.map(T).join(", ")}) => ${T(h.returnType)}`;return h.constructor&&(U="new "+U),U}else{let U=h.constructor?"new":"function";return h.parenthesis&&(U+=`(${h.parameters.map(T).join(", ")})`,h.returnType!==void 0&&(U+=`: ${T(h.returnType)}`)),U}},"JsdocTypeFunction"),JsdocTypeName:a(h=>h.value,"JsdocTypeName"),JsdocTypeTuple:a((h,T)=>`[${h.elements.map(T).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:a((h,T)=>h.meta.position===void 0?"...":Ja(h.meta.position,T(h.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:a((h,T)=>{let k=T(h.left),U=T(h.right);switch(h.pathType){case"inner":return`${k}~${U}`;case"instance":return`${k}#${U}`;case"property":return`${k}.${U}`;case"property-brackets":return`${k}[${U}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:a(h=>Zr(h.value,h.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:a(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:a((h,T)=>{if(h.meta.brackets==="square"){let k=h.elements[0],U=T(k);return k.type==="JsdocTypeUnion"||k.type==="JsdocTypeIntersection"?`(${U})[]`:`${U}[]`}else return`${T(h.left)}${h.meta.dot?".":""}<${h.infer===!0?"infer ":""}${h.elements.map(T).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:a((h,T)=>`import(${T(h.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:a((h,T)=>{let k="";return h.readonly&&(k+="readonly "),typeof h.key=="string"?k+=Zr(h.key,h.meta.quote):k+=T(h.key),h.optional&&(k+="?"),h.right===void 0?k:k+`: ${T(h.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((h,T)=>`${T(h.left)}: ${T(h.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((h,T)=>{let k=h.key;return h.optional&&(k+="?"),h.variadic&&(k="..."+k),h.right===void 0?k:k+`: ${T(h.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:a(h=>`${h.specialType}:${Zr(h.value,h.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:a((h,T)=>Ja(h.meta.position,T(h.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:a(()=>"null","JsdocTypeNull"),JsdocTypeNullable:a((h,T)=>Ja(h.meta.position,T(h.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:a(h=>h.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:a((h,T)=>{var k,U;return`{${(h.meta.separator==="linebreak"&&h.elements.length>1?`
|
|
169
|
+
`+((k=h.meta.propertyIndent)!==null&&k!==void 0?k:""):"")+h.elements.map(T).join(h.meta.separator==="comma"?", ":h.meta.separator==="linebreak"?`
|
|
170
|
+
`+((U=h.meta.propertyIndent)!==null&&U!==void 0?U:""):"; ")+(h.meta.separator==="linebreak"&&h.elements.length>1?`
|
|
171
|
+
`:"")}}`},"JsdocTypeObject"),JsdocTypeOptional:a((h,T)=>Ja(h.meta.position,T(h.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:a((h,T)=>`${h.value}(${h.element!==void 0?T(h.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:a((h,T)=>`typeof ${T(h.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:a(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:a((h,T)=>h.elements.map(T).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:a(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:a((h,T)=>h.elements.map(T).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:a(h=>Zr(h.value,h.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:a((h,T)=>`${T(h.left)} is ${T(h.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:a((h,T)=>`[${h.key}: ${T(h.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((h,T)=>`[${h.key} in ${T(h.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:a((h,T)=>`asserts ${T(h.left)} is ${T(h.right)}`,"JsdocTypeAsserts"),JsdocTypeReadonlyArray:a((h,T)=>`readonly ${T(h.element)}`,"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:a((h,T)=>`asserts ${T(h.element)}`,"JsdocTypeAssertsPlain"),JsdocTypeConditional:a((h,T)=>`${T(h.checksType)} extends ${T(h.extendsType)} ? ${T(h.trueType)} : ${T(h.falseType)}`,"JsdocTypeConditional"),JsdocTypeTypeParameter:a((h,T)=>`${T(h.name)}${h.constraint!==void 0?` extends ${T(h.constraint)}`:""}${h.defaultValue!==void 0?` = ${T(h.defaultValue)}`:""}`,"JsdocTypeTypeParameter")}}a(yu,"stringifyRules");let r_=yu();function ng(h){return Lr(r_,h)}a(ng,"stringify");let n_=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function Qr(h){let T={type:"NameExpression",name:h};return n_.includes(h)&&(T.reservedWord=!0),T}a(Qr,"makeName");let o_={JsdocTypeOptional:a((h,T)=>{let k=T(h.element);return k.optional=!0,k},"JsdocTypeOptional"),JsdocTypeNullable:a((h,T)=>{let k=T(h.element);return k.nullable=!0,k},"JsdocTypeNullable"),JsdocTypeNotNullable:a((h,T)=>{let k=T(h.element);return k.nullable=!1,k},"JsdocTypeNotNullable"),JsdocTypeVariadic:a((h,T)=>{if(h.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let k=T(h.element);return k.repeatable=!0,k},"JsdocTypeVariadic"),JsdocTypeAny:a(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:a(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:a(h=>Qr(Zr(h.value,h.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:a(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:a(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:a((h,T)=>{let k=gu(h),U={type:"FunctionType",params:k.params.map(T)};return k.this!==void 0&&(U.this=T(k.this)),k.new!==void 0&&(U.new=T(k.new)),h.returnType!==void 0&&(U.result=T(h.returnType)),U},"JsdocTypeFunction"),JsdocTypeGeneric:a((h,T)=>({type:"TypeApplication",applications:h.elements.map(k=>T(k)),expression:T(h.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:a(h=>Qr(h.specialType+":"+Zr(h.value,h.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:a(h=>h.value!=="function"?Qr(h.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:a(h=>Qr(h.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:a((h,T)=>{let k={type:"RecordType",fields:[]};for(let U of h.elements)U.type!=="JsdocTypeObjectField"&&U.type!=="JsdocTypeJsdocObjectField"?k.fields.push({type:"FieldType",key:T(U),value:void 0}):k.fields.push(T(U));return k},"JsdocTypeObject"),JsdocTypeObjectField:a((h,T)=>{if(typeof h.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:Qr(Zr(h.key,h.meta.quote)),value:h.right===void 0?void 0:T(h.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((h,T)=>({type:"FieldType",key:T(h.left),value:T(h.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:a((h,T)=>({type:"TypeUnion",elements:h.elements.map(k=>T(k))}),"JsdocTypeUnion"),JsdocTypeKeyValue:a((h,T)=>({type:"FieldType",key:Qr(h.key),value:h.right===void 0?void 0:T(h.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:a((h,T)=>{let k=T(h.left),U;h.right.type==="JsdocTypeSpecialNamePath"?U=T(h.right).name:U=Zr(h.right.value,h.right.meta.quote);let X=h.pathType==="inner"?"~":h.pathType==="instance"?"#":".";return Qr(`${k.name}${X}${U}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:a(h=>{let T="",k=h.element,U=!1;return k?.type==="JsdocTypeVariadic"&&(k.meta.position==="prefix"?T="...":U=!0,k=k.element),k?.type==="JsdocTypeName"?T+=k.value:k?.type==="JsdocTypeNumber"&&(T+=k.value.toString()),U&&(T+="..."),Qr(`${h.value}(${T})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:a((h,T)=>T(P(h.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:$e,JsdocTypeIndexSignature:$e,JsdocTypeImport:$e,JsdocTypeKeyof:$e,JsdocTypeTuple:$e,JsdocTypeTypeof:$e,JsdocTypeIntersection:$e,JsdocTypeProperty:$e,JsdocTypePredicate:$e,JsdocTypeAsserts:$e,JsdocTypeReadonlyArray:$e,JsdocTypeAssertsPlain:$e,JsdocTypeConditional:$e,JsdocTypeTypeParameter:$e};function og(h){return Lr(o_,h)}a(og,"catharsisTransform");function Cn(h){switch(h){case void 0:return"none";case"single":return"single";case"double":return"double"}}a(Cn,"getQuoteStyle");function ag(h){switch(h){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}a(ag,"getMemberType");function ps(h,T){return T.length===2?{type:h,left:T[0],right:T[1]}:{type:h,left:T[0],right:ps(h,T.slice(1))}}a(ps,"nestResults");let a_={JsdocTypeOptional:a((h,T)=>({type:"OPTIONAL",value:T(h.element),meta:{syntax:h.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:a((h,T)=>({type:"NULLABLE",value:T(h.element),meta:{syntax:h.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:a((h,T)=>({type:"NOT_NULLABLE",value:T(h.element),meta:{syntax:h.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:a((h,T)=>{let k={type:"VARIADIC",meta:{syntax:h.meta.position==="prefix"?"PREFIX_DOTS":h.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return h.element!==void 0&&(k.value=T(h.element)),k},"JsdocTypeVariadic"),JsdocTypeName:a(h=>({type:"NAME",name:h.value}),"JsdocTypeName"),JsdocTypeTypeof:a((h,T)=>({type:"TYPE_QUERY",name:T(h.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:a((h,T)=>({type:"TUPLE",entries:h.elements.map(T)}),"JsdocTypeTuple"),JsdocTypeKeyof:a((h,T)=>({type:"KEY_QUERY",value:T(h.element)}),"JsdocTypeKeyof"),JsdocTypeImport:a(h=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:Cn(h.element.meta.quote),string:h.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:a(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:a(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:a((h,T)=>{let k=gu(h),U={type:h.arrow?"ARROW":"FUNCTION",params:k.params.map(X=>{if(X.type==="JsdocTypeKeyValue"){if(X.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:X.key,typeName:T(X.right)}}else return T(X)}),new:null,returns:null};return k.this!==void 0?U.this=T(k.this):h.arrow||(U.this=null),k.new!==void 0&&(U.new=T(k.new)),h.returnType!==void 0&&(U.returns=T(h.returnType)),U},"JsdocTypeFunction"),JsdocTypeGeneric:a((h,T)=>{let k={type:"GENERIC",subject:T(h.left),objects:h.elements.map(T),meta:{syntax:h.meta.brackets==="square"?"SQUARE_BRACKET":h.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return h.meta.brackets==="square"&&h.elements[0].type==="JsdocTypeFunction"&&!h.elements[0].parenthesis&&(k.objects[0]={type:"NAME",name:"function"}),k},"JsdocTypeGeneric"),JsdocTypeObjectField:a((h,T)=>{if(typeof h.key!="string")throw new Error("Index signatures and mapped types are not supported");if(h.right===void 0)return{type:"RECORD_ENTRY",key:h.key,quoteStyle:Cn(h.meta.quote),value:null,readonly:!1};let k=T(h.right);return h.optional&&(k={type:"OPTIONAL",value:k,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:h.key.toString(),quoteStyle:Cn(h.meta.quote),value:k,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((h,T)=>{if(h.right===void 0)return{type:"RECORD_ENTRY",key:h.key,quoteStyle:"none",value:null,readonly:!1};let k=T(h.right);return h.optional&&(k={type:"OPTIONAL",value:k,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:h.key,quoteStyle:"none",value:k,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:a((h,T)=>{let k=[];for(let U of h.elements)(U.type==="JsdocTypeObjectField"||U.type==="JsdocTypeJsdocObjectField")&&k.push(T(U));return{type:"RECORD",entries:k}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:a(h=>{if(h.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${h.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:Cn(h.meta.quote),path:h.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:a((h,T)=>{let k=!1,U,X;h.right.type==="JsdocTypeSpecialNamePath"&&h.right.specialType==="event"?(k=!0,U=h.right.value,X=Cn(h.right.meta.quote)):(U=h.right.value,X=Cn(h.right.meta.quote));let le={type:ag(h.pathType),owner:T(h.left),name:U,quoteStyle:X,hasEventPrefix:k};if(le.owner.type==="MODULE"){let ge=le.owner;return le.owner=le.owner.value,ge.value=le,ge}else return le},"JsdocTypeNamePath"),JsdocTypeUnion:a((h,T)=>ps("UNION",h.elements.map(T)),"JsdocTypeUnion"),JsdocTypeParenthesis:a((h,T)=>({type:"PARENTHESIS",value:T(P(h.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:a(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:a(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:a(h=>({type:"STRING_VALUE",quoteStyle:Cn(h.meta.quote),string:h.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:a((h,T)=>ps("INTERSECTION",h.elements.map(T)),"JsdocTypeIntersection"),JsdocTypeNumber:a(h=>({type:"NUMBER_VALUE",number:h.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:$e,JsdocTypeProperty:$e,JsdocTypePredicate:$e,JsdocTypeMappedType:$e,JsdocTypeIndexSignature:$e,JsdocTypeAsserts:$e,JsdocTypeReadonlyArray:$e,JsdocTypeAssertsPlain:$e,JsdocTypeConditional:$e,JsdocTypeTypeParameter:$e};function ig(h){return Lr(a_,h)}a(ig,"jtpTransform");function sg(){return{JsdocTypeIntersection:a((h,T)=>({type:"JsdocTypeIntersection",elements:h.elements.map(T)}),"JsdocTypeIntersection"),JsdocTypeGeneric:a((h,T)=>({type:"JsdocTypeGeneric",left:T(h.left),elements:h.elements.map(T),meta:{dot:h.meta.dot,brackets:h.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:a(h=>h,"JsdocTypeNullable"),JsdocTypeUnion:a((h,T)=>({type:"JsdocTypeUnion",elements:h.elements.map(T)}),"JsdocTypeUnion"),JsdocTypeUnknown:a(h=>h,"JsdocTypeUnknown"),JsdocTypeUndefined:a(h=>h,"JsdocTypeUndefined"),JsdocTypeTypeof:a((h,T)=>({type:"JsdocTypeTypeof",element:T(h.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:a((h,T)=>{let k={type:"JsdocTypeSymbol",value:h.value};return h.element!==void 0&&(k.element=T(h.element)),k},"JsdocTypeSymbol"),JsdocTypeOptional:a((h,T)=>({type:"JsdocTypeOptional",element:T(h.element),meta:{position:h.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:a((h,T)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:h.elements.map(T)}),"JsdocTypeObject"),JsdocTypeNumber:a(h=>h,"JsdocTypeNumber"),JsdocTypeNull:a(h=>h,"JsdocTypeNull"),JsdocTypeNotNullable:a((h,T)=>({type:"JsdocTypeNotNullable",element:T(h.element),meta:{position:h.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:a(h=>h,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:a((h,T)=>({type:"JsdocTypeObjectField",key:h.key,right:h.right===void 0?void 0:T(h.right),optional:h.optional,readonly:h.readonly,meta:h.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:a((h,T)=>({type:"JsdocTypeJsdocObjectField",left:T(h.left),right:T(h.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:a((h,T)=>({type:"JsdocTypeKeyValue",key:h.key,right:h.right===void 0?void 0:T(h.right),optional:h.optional,variadic:h.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:a((h,T)=>({type:"JsdocTypeImport",element:T(h.element)}),"JsdocTypeImport"),JsdocTypeAny:a(h=>h,"JsdocTypeAny"),JsdocTypeStringValue:a(h=>h,"JsdocTypeStringValue"),JsdocTypeNamePath:a(h=>h,"JsdocTypeNamePath"),JsdocTypeVariadic:a((h,T)=>{let k={type:"JsdocTypeVariadic",meta:{position:h.meta.position,squareBrackets:h.meta.squareBrackets}};return h.element!==void 0&&(k.element=T(h.element)),k},"JsdocTypeVariadic"),JsdocTypeTuple:a((h,T)=>({type:"JsdocTypeTuple",elements:h.elements.map(T)}),"JsdocTypeTuple"),JsdocTypeName:a(h=>h,"JsdocTypeName"),JsdocTypeFunction:a((h,T)=>{let k={type:"JsdocTypeFunction",arrow:h.arrow,parameters:h.parameters.map(T),constructor:h.constructor,parenthesis:h.parenthesis};return h.returnType!==void 0&&(k.returnType=T(h.returnType)),k},"JsdocTypeFunction"),JsdocTypeKeyof:a((h,T)=>({type:"JsdocTypeKeyof",element:T(h.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:a((h,T)=>({type:"JsdocTypeParenthesis",element:T(h.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:a(h=>h,"JsdocTypeProperty"),JsdocTypePredicate:a((h,T)=>({type:"JsdocTypePredicate",left:T(h.left),right:T(h.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:a((h,T)=>({type:"JsdocTypeIndexSignature",key:h.key,right:T(h.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:a((h,T)=>({type:"JsdocTypeMappedType",key:h.key,right:T(h.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:a((h,T)=>({type:"JsdocTypeAsserts",left:T(h.left),right:T(h.right)}),"JsdocTypeAsserts"),JsdocTypeReadonlyArray:a((h,T)=>({type:"JsdocTypeReadonlyArray",element:T(h.element)}),"JsdocTypeReadonlyArray"),JsdocTypeAssertsPlain:a((h,T)=>({type:"JsdocTypeAssertsPlain",element:T(h.element)}),"JsdocTypeAssertsPlain"),JsdocTypeConditional:a((h,T)=>({type:"JsdocTypeConditional",checksType:T(h.checksType),extendsType:T(h.extendsType),trueType:T(h.trueType),falseType:T(h.falseType)}),"JsdocTypeConditional"),JsdocTypeTypeParameter:a((h,T)=>({type:"JsdocTypeTypeParameter",name:T(h.name),constraint:h.constraint!==void 0?T(h.constraint):void 0,defaultValue:h.defaultValue!==void 0?T(h.defaultValue):void 0}),"JsdocTypeTypeParameter")}}a(sg,"identityTransformRules");let lg={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"],JsdocTypeReadonlyArray:["element"],JsdocTypeAssertsPlain:["element"],JsdocTypeConditional:["checksType","extendsType","trueType","falseType"],JsdocTypeTypeParameter:["name","constraint","defaultValue"]};function fs(h,T,k,U,X){U?.(h,T,k);let le=lg[h.type];for(let ge of le){let Me=h[ge];if(Me!==void 0)if(Array.isArray(Me))for(let It of Me)fs(It,h,ge,U,X);else fs(Me,h,ge,U,X)}X?.(h,T,k)}a(fs,"_traverse");function cg(h,T,k){fs(h,void 0,void 0,T,k)}a(cg,"traverse"),r.catharsisTransform=og,r.identityTransformRules=sg,r.jtpTransform=ig,r.parse=Bo,r.stringify=ng,r.stringifyRules=yu,r.transform=Lr,r.traverse=cg,r.tryParse=Wa,r.visitorKeys=lg})}}),EI=a(e=>e.name==="literal","isLiteral"),SI=a(e=>e.value.replace(/['|"]/g,""),"toEnumOption"),wI=a(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=bi(r.value)}),{name:"object",value:t};default:throw new gi({type:e,language:"Flow"})}},"convertSig"),bi=a(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(bi)};case"signature":return{...n,...wI(e)};case"union":return e.elements?.every(EI)?{...n,name:"enum",value:e.elements?.map(SI)}:{...n,name:t,value:e.elements?.map(bi)};case"intersection":return{...n,name:t,value:e.elements?.map(bi)};default:return{...n,name:"other",value:t}}},"convert"),R0=/^['"]|['"]$/g,xI=a(e=>e.replace(R0,""),"trimQuotes"),TI=a(e=>R0.test(e),"includesQuotes"),_0=a(e=>{let t=xI(e);return TI(e)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),AI=/^\(.*\) => /,yi=a(e=>{let{name:t,raw:r,computed:n,value:o}=e,i={};switch(typeof r<"u"&&(i.raw=r),t){case"enum":{let l=n?o:o.map(c=>_0(c.value));return{...i,name:t,value:l}}case"string":case"number":case"symbol":return{...i,name:t};case"func":return{...i,name:"function"};case"bool":case"boolean":return{...i,name:"boolean"};case"arrayOf":case"array":return{...i,name:"array",value:o&&yi(o)};case"object":return{...i,name:t};case"objectOf":return{...i,name:t,value:yi(o)};case"shape":case"exact":let s=sn(o,l=>yi(l));return{...i,name:"object",value:s};case"union":return{...i,name:"union",value:o.map(l=>yi(l))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let u=t.split("|").map(p=>JSON.parse(p));return{...i,name:"enum",value:u}}catch{}let l=o?`${t}(${o})`:t,c=AI.test(t)?"function":"other";return{...i,name:c,value:l}}}},"convert"),CI=a(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=vi(r.value)}),{name:"object",value:t};default:throw new gi({type:e,language:"Typescript"})}},"convertSig"),vi=a(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(vi)};case"signature":return{...n,...CI(e)};case"union":let o;return e.elements?.every(i=>i.name==="literal")?o={...n,name:"enum",value:e.elements?.map(i=>_0(i.value))}:o={...n,name:t,value:e.elements?.map(vi)},o;case"intersection":return{...n,name:t,value:e.elements?.map(vi)};default:return{...n,name:"other",value:t}}},"convert"),Cd=a(e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return yi(t);if(r!=null)return vi(r);if(n!=null)return bi(n)}catch(o){console.error(o)}return null},"convert"),RI=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(RI||{}),_I=["null","undefined"];function El(e){return _I.some(t=>t===e)}a(El,"isDefaultValueBlacklisted");var OI=a(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function Rd(e){return!!e.__docgenInfo}a(Rd,"hasDocgen");function O0(e){return e!=null&&Object.keys(e).length>0}a(O0,"isValidDocgenSection");function I0(e,t){return Rd(e)?e.__docgenInfo[t]:null}a(I0,"getDocgenSection");function P0(e){return Rd(e)?OI(e.__docgenInfo.description):""}a(P0,"getDocgenDescription");var Fn;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})(Fn=Fn||(Fn={}));function k0(e){return/^\s+$/.test(e)}a(k0,"isSpace");function D0(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}a(D0,"splitCR");function mo(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}a(mo,"splitSpace");function N0(e){return e.split(/\n/)}a(N0,"splitLines");function F0(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}a(F0,"seedSpec");function L0(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}a(L0,"seedTokens");var II=/^@\S+/;function M0({fence:e="```"}={}){let t=B0(e),r=a((n,o)=>t(n)?!o:o,"toggleFence");return a(function(o){let i=[[]],s=!1;for(let l of o)II.test(l.tokens.description)&&!s?i.push([l]):i[i.length-1].push(l),s=r(l.tokens.description,s);return i},"parseBlock")}a(M0,"getParser");function B0(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}a(B0,"getFencer");function $0({startLine:e=0,markers:t=Fn}={}){let r=null,n=e;return a(function(i){let s=i,l=L0();if([l.lineEnd,s]=D0(s),[l.start,s]=mo(s),r===null&&s.startsWith(t.start)&&!s.startsWith(t.nostart)&&(r=[],l.delimiter=s.slice(0,t.start.length),s=s.slice(t.start.length),[l.postDelimiter,s]=mo(s)),r===null)return n++,null;let c=s.trimRight().endsWith(t.end);if(l.delimiter===""&&s.startsWith(t.delim)&&!s.startsWith(t.end)&&(l.delimiter=t.delim,s=s.slice(t.delim.length),[l.postDelimiter,s]=mo(s)),c){let u=s.trimRight();l.end=s.slice(u.length-t.end.length),s=u.slice(0,-t.end.length)}if(l.description=s,r.push({number:n,source:i,tokens:l}),n++,c){let u=r.slice();return r=null,u}return null},"parseSource")}a($0,"getParser");function j0({tokenizers:e}){return a(function(r){var n;let o=F0({source:r});for(let i of e)if(o=i(o),!((n=o.problems[o.problems.length-1])===null||n===void 0)&&n.critical)break;return o},"parseSpec")}a(j0,"getParser");function U0(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}a(U0,"tagTokenizer");function z0(e="compact"){let t=H0(e);return r=>{let n=0,o=[];for(let[l,{tokens:c}]of r.source.entries()){let u="";if(l===0&&c.description[0]!=="{")return r;for(let p of c.description)if(p==="{"&&n++,p==="}"&&n--,u+=p,n===0)break;if(o.push([c,u]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let i=[],s=o[0][0].postDelimiter.length;for(let[l,[c,u]]of o.entries())c.type=u,l>0&&(c.type=c.postDelimiter.slice(s)+u,c.postDelimiter=c.postDelimiter.slice(0,s)),[c.postType,c.description]=mo(c.description.slice(u.length)),i.push(c.type);return i[0]=i[0].slice(1),i[i.length-1]=i[i.length-1].slice(0,-1),r.type=t(i),r}}a(z0,"typeTokenizer");var PI=a(e=>e.trim(),"trim");function H0(e){return e==="compact"?t=>t.map(PI).join(""):e==="preserve"?t=>t.join(`
|
|
172
|
+
`):e}a(H0,"getJoiner");var kI=a(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function V0(){let e=a((t,{tokens:r},n)=>r.type===""?t:n,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),o=n.split('"');if(o.length>1&&o[0]===""&&o.length%2===1)return t.name=o[1],r.name=`"${o[1]}"`,[r.postName,r.description]=mo(n.slice(r.name.length)),t;let i=0,s="",l=!1,c;for(let p of n){if(i===0&&k0(p))break;p==="["&&i++,p==="]"&&i--,s+=p}if(i!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let u=s;if(s[0]==="["&&s[s.length-1]==="]"){l=!0,s=s.slice(1,-1);let p=s.split("=");if(s=p[0].trim(),p[1]!==void 0&&(c=p.slice(1).join("=").trim()),s==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(c==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!kI(c)&&/=(?!>)/.test(c))return t.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:t.source[0].number,critical:!0}),t}return t.optional=l,t.name=s,r.name=u,c!==void 0&&(t.default=c),[r.postName,r.description]=mo(n.slice(r.name.length)),t}}a(V0,"nameTokenizer");function W0(e="compact",t=Fn){let r=_d(e);return n=>(n.description=r(n.source,t),n)}a(W0,"descriptionTokenizer");function _d(e){return e==="compact"?J0:e==="preserve"?q0:e}a(_d,"getJoiner");function J0(e,t=Fn){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}a(J0,"compactJoiner");var DI=a((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),NI=a(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function q0(e,t=Fn){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(DI,0)),e.map(NI).join(`
|
|
173
|
+
`)}a(q0,"preserveJoiner");function G0({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=Fn,tokenizers:o=[U0(),z0(r),V0(),W0(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let i=$0({startLine:e,markers:n}),s=M0({fence:t}),l=j0({tokenizers:o}),c=_d(r);return function(u){let p=[];for(let f of N0(u)){let m=i(f);if(m===null)continue;let g=s(m),b=g.slice(1).map(l);p.push({description:c(g[0],n),tags:b,source:m,problems:b.reduce((y,S)=>y.concat(S.problems),[])})}return p}}a(G0,"getParser");function Y0(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}a(Y0,"join");function K0(){return e=>e.source.map(({tokens:t})=>Y0(t)).join(`
|
|
174
|
+
`)}a(K0,"getStringifier");var FI={line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0},Yq=Object.keys(FI);function X0(e,t={}){return G0(t)(e)}a(X0,"parse");var Kq=K0(),Od=Se(vI(),1);function Z0(e){return e!=null&&e.includes("@")}a(Z0,"containsJsDoc");function Q0(e){let n=`/**
|
|
175
|
+
`+(e??"").split(`
|
|
176
|
+
`).map(i=>` * ${i}`).join(`
|
|
177
|
+
`)+`
|
|
178
|
+
*/`,o=X0(n,{spacing:"preserve"});if(!o||o.length===0)throw new Error("Cannot parse JSDoc tags.");return o[0]}a(Q0,"parse");var LI={tags:["param","arg","argument","returns","ignore","deprecated"]},MI=a((e,t=LI)=>{if(!Z0(e))return{includesJsDoc:!1,ignore:!1};let r=Q0(e),n=ev(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function ev(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let o=rv(n);o!=null&&(r.params==null&&(r.params=[]),r.params.push(o));break}case"deprecated":{let o=nv(n);o!=null&&(r.deprecated=o);break}case"returns":{let o=ov(n);o!=null&&(r.returns=o);break}default:break}return r}a(ev,"extractJsDocTags");function tv(e){return e.replace(/[\.-]$/,"")}a(tv,"normaliseParamName");function rv(e){if(!e.name||e.name==="-")return null;let t=kd(e.type);return{name:e.name,type:t,description:Pd(e.description),getPrettyName:a(()=>tv(e.name),"getPrettyName"),getTypeName:a(()=>t?Dd(t):null,"getTypeName")}}a(rv,"extractParam");function nv(e){return e.name?Id(e.name,e.description):null}a(nv,"extractDeprecated");function Id(e,t){let r=e===""?t:`${e} ${t}`;return Pd(r)}a(Id,"joinNameAndDescription");function Pd(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}a(Pd,"normaliseDescription");function ov(e){let t=kd(e.type);return t?{type:t,description:Id(e.name,e.description),getTypeName:a(()=>Dd(t),"getTypeName")}:null}a(ov,"extractReturns");var Ln=(0,Od.stringifyRules)(),BI=Ln.JsdocTypeObject;Ln.JsdocTypeAny=()=>"any";Ln.JsdocTypeObject=(e,t)=>`(${BI(e,t)})`;Ln.JsdocTypeOptional=(e,t)=>t(e.element);Ln.JsdocTypeNullable=(e,t)=>t(e.element);Ln.JsdocTypeNotNullable=(e,t)=>t(e.element);Ln.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function kd(e){try{return(0,Od.parse)(e,"typescript")}catch{return null}}a(kd,"extractType");function Dd(e){return(0,Od.transform)(Ln,e)}a(Dd,"extractTypeName");var $I=90,jI=50;function Nd(e){return e.length>$I}a(Nd,"isTooLongForTypeSummary");function av(e){return e.length>jI}a(av,"isTooLongForDefaultValueSummary");function dt(e,t){return e===t?{summary:e}:{summary:e,detail:t}}a(dt,"createSummaryValue");var Xq=a(e=>e.replace(/\\r\\n/g,"\\n"),"normalizeNewlines");function iv(e,t){if(e!=null){let{value:r}=e;if(!El(r))return av(r)?dt(t?.name,r):dt(r)}return null}a(iv,"createDefaultValue");function Fd({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Fd).join(" | "):n??e)}a(Fd,"generateUnionElement");function sv({name:e,raw:t,elements:r}){return r!=null?dt(r.map(Fd).join(" | ")):t!=null?dt(t.replace(/^\|\s*/,"")):dt(e)}a(sv,"generateUnion");function lv({type:e,raw:t}){return t!=null?dt(t):dt(e)}a(lv,"generateFuncSignature");function cv({type:e,raw:t}){return t!=null?Nd(t)?dt(e,t):dt(t):dt(e)}a(cv,"generateObjectSignature");function uv(e){let{type:t}=e;return t==="object"?cv(e):lv(e)}a(uv,"generateSignature");function dv({name:e,raw:t}){return t!=null?Nd(t)?dt(e,t):dt(t):dt(e)}a(dv,"generateDefault");function pv(e){if(e==null)return null;switch(e.name){case"union":return sv(e);case"signature":return uv(e);default:return dv(e)}}a(pv,"createType");var UI=a((e,t)=>{let{flowType:r,description:n,required:o,defaultValue:i}=t;return{name:e,type:pv(r),required:o,description:n,defaultValue:iv(i??null,r??null)}},"createFlowPropDef");function fv({defaultValue:e}){if(e!=null){let{value:t}=e;if(!El(t))return dt(t)}return null}a(fv,"createDefaultValue");function mv({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),dt(["Array","Record","signature"].includes(e.name)?e.raw:r)}a(mv,"createType");var zI=a((e,t)=>{let{description:r,required:n}=t;return{name:e,type:mv(t),required:n,description:r,defaultValue:fv(t)}},"createTsPropDef");function hv(e){return e!=null?dt(e.name):null}a(hv,"createType");function gv(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}a(gv,"isReactDocgenTypescript");function yv(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}a(yv,"isStringValued");function bv(e,t){if(e!=null){let{value:r}=e;if(!El(r))return gv(e)&&yv(t)?dt(JSON.stringify(r)):dt(r)}return null}a(bv,"createDefaultValue");function Ld(e,t,r){let{description:n,required:o,defaultValue:i}=r;return{name:e,type:hv(t),required:o,description:n,defaultValue:bv(i,t)}}a(Ld,"createBasicPropDef");function Ei(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let o={...n,params:n?.params?.map(i=>({name:i.getPrettyName(),description:i.description}))};Object.values(o).filter(Boolean).length>0&&(e.jsDocTags=o)}return e}a(Ei,"applyJsDocResult");var HI=a((e,t,r)=>{let n=Ld(e,t.type,t);return n.sbType=Cd(t),Ei(n,r)},"javaScriptFactory"),VI=a((e,t,r)=>{let n=zI(e,t);return n.sbType=Cd(t),Ei(n,r)},"tsFactory"),WI=a((e,t,r)=>{let n=UI(e,t);return n.sbType=Cd(t),Ei(n,r)},"flowFactory"),JI=a((e,t,r)=>{let n=Ld(e,{name:"unknown"},t);return Ei(n,r)},"unknownFactory"),vv=a(e=>{switch(e){case"JavaScript":return HI;case"TypeScript":return VI;case"Flow":return WI;default:return JI}},"getPropDefFactory"),Ev=a(e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),qI=a(e=>{let t=Ev(e[0]),r=vv(t);return e.map(n=>{let o=n;return n.type?.elements&&(o={...n,type:{...n.type,value:n.type.elements}}),Md(o.name,o,t,r)})},"extractComponentSectionArray"),GI=a(e=>{let t=Object.keys(e),r=Ev(e[t[0]]),n=vv(r);return t.map(o=>{let i=e[o];return i!=null?Md(o,i,r,n):null}).filter(Boolean)},"extractComponentSectionObject"),Zq=a((e,t)=>{let r=I0(e,t);return O0(r)?Array.isArray(r)?qI(r):GI(r):[]},"extractComponentProps");function Md(e,t,r,n){let o=MI(t.description);return o.includesJsDoc&&o.ignore?null:{propDef:n(e,t,o),jsDocTags:o.extractedTags,docgenInfo:t,typeSystem:r}}a(Md,"extractProp");function YI(e){return e!=null?P0(e):""}a(YI,"extractComponentDescription");var yr=a((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,i)=>(Object.entries(i).forEach(([s,l])=>{let c=o[s];Array.isArray(l)||typeof c>"u"?o[s]=l:Rt(l)&&Rt(c)?t[s]=!0:typeof l<"u"&&(o[s]=l)}),o),{});return Object.keys(t).forEach(o=>{let i=r.filter(Boolean).map(s=>s[o]).filter(s=>typeof s<"u");i.every(s=>Rt(s))?n[o]=yr(...i):n[o]=i[i.length-1]}),n},"combineParameters"),Qq=a(e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:o}=n;if(!o||!t)return r;let i=o(t);return i?yr(i,r):r},"enhanceArgTypes"),Sv="storybook/docs",eG=`${Sv}/panel`;var wv=`${Sv}/snippet-rendered`,KI=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(KI||{});G();Y();K();Si();Te();function xv(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}a(xv,"eq");function Tv(e,t,r){return sa(e,t,void 0,void 0,void 0,void 0,r)}a(Tv,"isEqualWith");function sa(e,t,r,n,o,i,s){let l=s(e,t,r,n,o,i);if(l!==void 0)return l;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 la(e,t,i,s)}return la(e,t,i,s)}a(sa,"isEqualWithImpl");function la(e,t,r,n){if(Object.is(e,t))return!0;let o=na(e),i=na(t);if(o===fi&&(o=oa),i===fi&&(i=oa),o!==i)return!1;switch(o){case Qs:return e.toString()===t.toString();case el:{let c=e.valueOf(),u=t.valueOf();return xv(c,u)}case tl:case nl:case rl:return Object.is(e.valueOf(),t.valueOf());case Zs:return e.source===t.source&&e.flags===t.flags;case t0:return e===t}r=r??new Map;let s=r.get(e),l=r.get(t);if(s!=null&&l!=null)return s===t;r.set(e,t),r.set(t,e);try{switch(o){case ol:{if(e.size!==t.size)return!1;for(let[c,u]of e.entries())if(!t.has(c)||!sa(u,t.get(c),c,e,t,r,n))return!1;return!0}case al:{if(e.size!==t.size)return!1;let c=Array.from(e.values()),u=Array.from(t.values());for(let p=0;p<c.length;p++){let f=c[p],m=u.findIndex(g=>sa(f,g,void 0,e,t,r,n));if(m===-1)return!1;u.splice(m,1)}return!0}case il:case cl:case ul:case dl:case pl:case n0:case fl:case ml:case hl:case o0:case gl:case yl:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let c=0;c<e.length;c++)if(!sa(e[c],t[c],c,e,t,r,n))return!1;return!0}case sl:return e.byteLength!==t.byteLength?!1:la(new Uint8Array(e),new Uint8Array(t),r,n);case ll:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:la(new Uint8Array(e),new Uint8Array(t),r,n);case r0:return e.name===t.name&&e.message===t.message;case oa:{if(!(la(e.constructor,t.constructor,r,n)||Rt(e)&&Rt(t)))return!1;let u=[...Object.keys(e),...ra(e)],p=[...Object.keys(t),...ra(t)];if(u.length!==p.length)return!1;for(let f=0;f<u.length;f++){let m=u[f],g=e[m];if(!Object.hasOwn(t,m))return!1;let b=t[m];if(!sa(g,b,m,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}a(la,"areObjectsEqual");function $d(e,t){return Tv(e,t,Bd)}a($d,"isEqual");G();Y();K();Te();var XI=!0,jd="Invariant failed";function ln(e,t){if(!e){if(XI)throw new Error(jd);var r=typeof t=="function"?t():t,n=r?"".concat(jd,": ").concat(r):jd;throw new Error(n)}}a(ln,"invariant");G();Y();K();Te();var Rv=ae({"../node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
179
|
+
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),ZI=ae({"../node_modules/entities/lib/maps/legacy.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}}),_v=ae({"../node_modules/entities/lib/maps/xml.json"(e,t){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}}),QI=ae({"../node_modules/entities/lib/maps/decode.json"(e,t){t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}}),eP=ae({"../node_modules/entities/lib/decode_codepoint.js"(e){"use strict";var t=e&&e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(QI()),n=String.fromCodePoint||function(i){var s="";return i>65535&&(i-=65536,s+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),s+=String.fromCharCode(i),s};function o(i){return i>=55296&&i<=57343||i>1114111?"\uFFFD":(i in r.default&&(i=r.default[i]),n(i))}a(o,"decodeCodePoint"),e.default=o}}),Av=ae({"../node_modules/entities/lib/decode.js"(e){"use strict";var t=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(Rv()),n=t(ZI()),o=t(_v()),i=t(eP()),s=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=l(o.default),e.decodeHTMLStrict=l(r.default);function l(p){var f=u(p);return function(m){return String(m).replace(s,f)}}a(l,"getStrictDecoder");var c=a(function(p,f){return p<f?1:-1},"sorter");e.decodeHTML=function(){for(var p=Object.keys(n.default).sort(c),f=Object.keys(r.default).sort(c),m=0,g=0;m<f.length;m++)p[g]===f[m]?(f[m]+=";?",g++):f[m]+=";";var b=new RegExp("&(?:"+f.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),y=u(r.default);function S(v){return v.substr(-1)!==";"&&(v+=";"),y(v)}return a(S,"replacer"),function(v){return String(v).replace(b,S)}}();function u(p){return a(function(m){if(m.charAt(1)==="#"){var g=m.charAt(2);return g==="X"||g==="x"?i.default(parseInt(m.substr(3),16)):i.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m},"replace")}a(u,"getReplacer")}}),Cv=ae({"../node_modules/entities/lib/encode.js"(e){"use strict";var t=e&&e.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(_v()),n=c(r.default),o=u(n);e.encodeXML=v(n);var i=t(Rv()),s=c(i.default),l=u(s);e.encodeHTML=g(s,l),e.encodeNonAsciiHTML=v(s);function c(w){return Object.keys(w).sort().reduce(function(E,x){return E[w[x]]="&"+x+";",E},{})}a(c,"getInverseObj");function u(w){for(var E=[],x=[],A=0,_=Object.keys(w);A<_.length;A++){var C=_[A];C.length===1?E.push("\\"+C):x.push(C)}E.sort();for(var O=0;O<E.length-1;O++){for(var I=O;I<E.length-1&&E[I].charCodeAt(1)+1===E[I+1].charCodeAt(1);)I+=1;var P=1+I-O;P<3||E.splice(O,P,E[O]+"-"+E[I])}return x.unshift("["+E.join("")+"]"),new RegExp(x.join("|"),"g")}a(u,"getInverseReplacer");var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f=String.prototype.codePointAt!=null?function(w){return w.codePointAt(0)}:function(w){return(w.charCodeAt(0)-55296)*1024+w.charCodeAt(1)-56320+65536};function m(w){return"&#x"+(w.length>1?f(w):w.charCodeAt(0)).toString(16).toUpperCase()+";"}a(m,"singleCharReplacer");function g(w,E){return function(x){return x.replace(E,function(A){return w[A]}).replace(p,m)}}a(g,"getInverse");var b=new RegExp(o.source+"|"+p.source,"g");function y(w){return w.replace(b,m)}a(y,"escape"),e.escape=y;function S(w){return w.replace(o,m)}a(S,"escapeUTF8"),e.escapeUTF8=S;function v(w){return function(E){return E.replace(b,function(x){return w[x]||m(x)})}}a(v,"getASCIIEncoder")}}),tP=ae({"../node_modules/entities/lib/index.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Av(),r=Cv();function n(c,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(c)}a(n,"decode"),e.decode=n;function o(c,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(c)}a(o,"decodeStrict"),e.decodeStrict=o;function i(c,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(c)}a(i,"encode"),e.encode=i;var s=Cv();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:a(function(){return s.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:a(function(){return s.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:a(function(){return s.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:a(function(){return s.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:a(function(){return s.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:a(function(){return s.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:a(function(){return s.encodeHTML},"get")});var l=Av();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:a(function(){return l.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:a(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:a(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:a(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:a(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:a(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:a(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:a(function(){return l.decodeXML},"get")})}}),Sl=ae({"../node_modules/ansi-to-html/lib/ansi_to_html.js"(e,t){"use strict";function r(N,F){if(!(N instanceof F))throw new TypeError("Cannot call a class as a function")}a(r,"_classCallCheck");function n(N,F){for(var B=0;B<F.length;B++){var M=F[B];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(N,M.key,M)}}a(n,"_defineProperties");function o(N,F,B){return F&&n(N.prototype,F),B&&n(N,B),N}a(o,"_createClass");function i(N,F){var B=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!B){if(Array.isArray(N)||(B=s(N))||F&&N&&typeof N.length=="number"){B&&(N=B);var M=0,W=a(function(){},"F");return{s:W,n:a(function(){return M>=N.length?{done:!0}:{done:!1,value:N[M++]}},"n"),e:a(function(ee){throw ee},"e"),f:W}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
180
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var z=!0,V=!1,te;return{s:a(function(){B=B.call(N)},"s"),n:a(function(){var ee=B.next();return z=ee.done,ee},"n"),e:a(function(ee){V=!0,te=ee},"e"),f:a(function(){try{!z&&B.return!=null&&B.return()}finally{if(V)throw te}},"f")}}a(i,"_createForOfIteratorHelper");function s(N,F){if(N){if(typeof N=="string")return l(N,F);var B=Object.prototype.toString.call(N).slice(8,-1);if(B==="Object"&&N.constructor&&(B=N.constructor.name),B==="Map"||B==="Set")return Array.from(N);if(B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B))return l(N,F)}}a(s,"_unsupportedIterableToArray");function l(N,F){(F==null||F>N.length)&&(F=N.length);for(var B=0,M=new Array(F);B<F;B++)M[B]=N[B];return M}a(l,"_arrayLikeToArray");var c=tP(),u={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:p()};function p(){var N={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return w(0,5).forEach(function(F){w(0,5).forEach(function(B){w(0,5).forEach(function(M){return f(F,B,M,N)})})}),w(0,23).forEach(function(F){var B=F+232,M=m(F*10+8);N[B]="#"+M+M+M}),N}a(p,"getDefaultColors");function f(N,F,B,M){var W=16+N*36+F*6+B,z=N>0?N*40+55:0,V=F>0?F*40+55:0,te=B>0?B*40+55:0;M[W]=g([z,V,te])}a(f,"setStyleColor");function m(N){for(var F=N.toString(16);F.length<2;)F="0"+F;return F}a(m,"toHexString");function g(N){var F=[],B=i(N),M;try{for(B.s();!(M=B.n()).done;){var W=M.value;F.push(m(W))}}catch(z){B.e(z)}finally{B.f()}return"#"+F.join("")}a(g,"toColorHexString");function b(N,F,B,M){var W;return F==="text"?W=A(B,M):F==="display"?W=S(N,B,M):F==="xterm256Foreground"?W=O(N,M.colors[B]):F==="xterm256Background"?W=I(N,M.colors[B]):F==="rgb"&&(W=y(N,B)),W}a(b,"generateOutput");function y(N,F){F=F.substring(2).slice(0,-1);var B=+F.substr(0,2),M=F.substring(5).split(";"),W=M.map(function(z){return("0"+Number(z).toString(16)).substr(-2)}).join("");return C(N,(B===38?"color:#":"background-color:#")+W)}a(y,"handleRgb");function S(N,F,B){F=parseInt(F,10);var M={"-1":a(function(){return"<br/>"},"_"),0:a(function(){return N.length&&v(N)},"_"),1:a(function(){return _(N,"b")},"_"),3:a(function(){return _(N,"i")},"_"),4:a(function(){return _(N,"u")},"_"),8:a(function(){return C(N,"display:none")},"_"),9:a(function(){return _(N,"strike")},"_"),22:a(function(){return C(N,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:a(function(){return P(N,"i")},"_"),24:a(function(){return P(N,"u")},"_"),39:a(function(){return O(N,B.fg)},"_"),49:a(function(){return I(N,B.bg)},"_"),53:a(function(){return C(N,"text-decoration:overline")},"_")},W;return M[F]?W=M[F]():4<F&&F<7?W=_(N,"blink"):29<F&&F<38?W=O(N,B.colors[F-30]):39<F&&F<48?W=I(N,B.colors[F-40]):89<F&&F<98?W=O(N,B.colors[8+(F-90)]):99<F&&F<108&&(W=I(N,B.colors[8+(F-100)])),W}a(S,"handleDisplay");function v(N){var F=N.slice(0);return N.length=0,F.reverse().map(function(B){return"</"+B+">"}).join("")}a(v,"resetStyles");function w(N,F){for(var B=[],M=N;M<=F;M++)B.push(M);return B}a(w,"range");function E(N){return function(F){return(N===null||F.category!==N)&&N!=="all"}}a(E,"notCategory");function x(N){N=parseInt(N,10);var F=null;return N===0?F="all":N===1?F="bold":2<N&&N<5?F="underline":4<N&&N<7?F="blink":N===8?F="hide":N===9?F="strike":29<N&&N<38||N===39||89<N&&N<98?F="foreground-color":(39<N&&N<48||N===49||99<N&&N<108)&&(F="background-color"),F}a(x,"categoryForCode");function A(N,F){return F.escapeXML?c.encodeXML(N):N}a(A,"pushText");function _(N,F,B){return B||(B=""),N.push(F),"<".concat(F).concat(B?' style="'.concat(B,'"'):"",">")}a(_,"pushTag");function C(N,F){return _(N,"span",F)}a(C,"pushStyle");function O(N,F){return _(N,"span","color:"+F)}a(O,"pushForegroundColor");function I(N,F){return _(N,"span","background-color:"+F)}a(I,"pushBackgroundColor");function P(N,F){var B;if(N.slice(-1)[0]===F&&(B=N.pop()),B)return"</"+F+">"}a(P,"closeTag");function D(N,F,B){var M=!1,W=3;function z(){return""}a(z,"remove");function V(ze,ot){return B("xterm256Foreground",ot),""}a(V,"removeXterm256Foreground");function te(ze,ot){return B("xterm256Background",ot),""}a(te,"removeXterm256Background");function H(ze){return F.newline?B("display",-1):B("text",ze),""}a(H,"newline");function ee(ze,ot){M=!0,ot.trim().length===0&&(ot="0"),ot=ot.trimRight(";").split(";");var ct=i(ot),gt;try{for(ct.s();!(gt=ct.n()).done;){var Gr=gt.value;B("display",Gr)}}catch(Ke){ct.e(Ke)}finally{ct.f()}return""}a(ee,"ansiMess");function he(ze){return B("text",ze),""}a(he,"realText");function re(ze){return B("rgb",ze),""}a(re,"rgb");var ce=[{pattern:/^\x08+/,sub:z},{pattern:/^\x1b\[[012]?K/,sub:z},{pattern:/^\x1b\[\(B/,sub:z},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:re},{pattern:/^\x1b\[38;5;(\d+)m/,sub:V},{pattern:/^\x1b\[48;5;(\d+)m/,sub:te},{pattern:/^\n/,sub:H},{pattern:/^\r+\n/,sub:H},{pattern:/^\r/,sub:H},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:ee},{pattern:/^\x1b\[\d?J/,sub:z},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:z},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:z},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:he}];function me(ze,ot){ot>W&&M||(M=!1,N=N.replace(ze.pattern,ze.sub))}a(me,"process");var xe=[],De=N,Ye=De.length;e:for(;Ye>0;){for(var Ue=0,et=0,lt=ce.length;et<lt;Ue=++et){var Oe=ce[Ue];if(me(Oe,Ue),N.length!==Ye){Ye=N.length;continue e}}if(N.length===Ye)break;xe.push(0),Ye=N.length}return xe}a(D,"tokenize");function j(N,F,B){return F!=="text"&&(N=N.filter(E(x(B))),N.push({token:F,data:B,category:x(B)})),N}a(j,"updateStickyStack");var $=function(){function N(F){r(this,N),F=F||{},F.colors&&(F.colors=Object.assign({},u.colors,F.colors)),this.options=Object.assign({},u,F),this.stack=[],this.stickyStack=[]}return a(N,"Filter"),o(N,[{key:"toHtml",value:a(function(B){var M=this;B=typeof B=="string"?[B]:B;var W=this.stack,z=this.options,V=[];return this.stickyStack.forEach(function(te){var H=b(W,te.token,te.data,z);H&&V.push(H)}),D(B.join(""),z,function(te,H){var ee=b(W,te,H,z);ee&&V.push(ee),z.stream&&(M.stickyStack=j(M.stickyStack,te,H))}),W.length&&V.push(v(W)),V.join("")},"toHtml")}]),N}();t.exports=$}});Br();fo();Te();We();G();Y();K();var RG=__STORYBOOK_CHANNELS__,{Channel:Ov,HEARTBEAT_INTERVAL:_G,HEARTBEAT_MAX_LATENCY:OG,PostMessageTransport:IG,WebsocketTransport:PG,createBrowserChannel:kG}=__STORYBOOK_CHANNELS__;st();G();Y();K();var HG=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:Iv,ARGTYPES_INFO_RESPONSE:Ud,CHANNEL_CREATED:VG,CHANNEL_WS_DISCONNECT:WG,CONFIG_ERROR:Pv,CREATE_NEW_STORYFILE_REQUEST:JG,CREATE_NEW_STORYFILE_RESPONSE:qG,CURRENT_STORY_WAS_SET:zd,DOCS_PREPARED:kv,DOCS_RENDERED:xl,FILE_COMPONENT_SEARCH_REQUEST:GG,FILE_COMPONENT_SEARCH_RESPONSE:YG,FORCE_REMOUNT:ho,FORCE_RE_RENDER:Tl,GLOBALS_UPDATED:ca,NAVIGATE_URL:KG,OPEN_IN_EDITOR_REQUEST:XG,OPEN_IN_EDITOR_RESPONSE:ZG,PLAY_FUNCTION_THREW_EXCEPTION:Al,PRELOAD_ENTRIES:Dv,PREVIEW_BUILDER_PROGRESS:QG,PREVIEW_INITIALIZED:Nv,PREVIEW_KEYDOWN:Fv,REGISTER_SUBSCRIPTION:eY,REQUEST_WHATS_NEW_DATA:tY,RESET_STORY_ARGS:Cl,RESULT_WHATS_NEW_DATA:rY,SAVE_STORY_REQUEST:Hd,SAVE_STORY_RESPONSE:Rl,SELECT_STORY:nY,SET_CONFIG:oY,SET_CURRENT_STORY:_l,SET_FILTER:aY,SET_GLOBALS:Lv,SET_INDEX:iY,SET_STORIES:sY,SET_WHATS_NEW_CACHE:lY,SHARED_STATE_CHANGED:cY,SHARED_STATE_SET:uY,STORIES_COLLAPSE_ALL:dY,STORIES_EXPAND_ALL:pY,STORY_ARGS_UPDATED:Mv,STORY_CHANGED:go,STORY_ERRORED:Bv,STORY_FINISHED:Vd,STORY_HOT_UPDATED:$v,STORY_INDEX_INVALIDATED:jv,STORY_MISSING:Wd,STORY_PREPARED:Uv,STORY_RENDERED:wi,STORY_RENDER_PHASE_CHANGED:vr,STORY_SPECIFIED:zv,STORY_THREW_EXCEPTION:Ol,STORY_UNCHANGED:Hv,TELEMETRY_ERROR:fY,TOGGLE_WHATS_NEW_NOTIFICATIONS:mY,UNHANDLED_ERRORS_WHILE_PLAYING:Il,UPDATE_GLOBALS:Pl,UPDATE_QUERY_PARAMS:Vv,UPDATE_STORY_ARGS:kl}=__STORYBOOK_CORE_EVENTS__;We();st();st();st();st();We();We();st();st();We();st();st();We();We();st();We();st();st();We();We();function ip(){let e={setHandler:a(()=>{},"setHandler"),send:a(()=>{},"send")};return new Ov({transport:e})}a(ip,"mockChannel");var rE=class{constructor(){this.getChannel=a(()=>{if(!this.channel){let t=ip();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=a(()=>this.promise,"ready"),this.hasChannel=a(()=>!!this.channel,"hasChannel"),this.setChannel=a(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};a(rE,"AddonStore");var rP=rE,Jd="__STORYBOOK_ADDONS_PREVIEW";function nE(){return oe[Jd]||(oe[Jd]=new rP),oe[Jd]}a(nE,"getAddonsStore");var qt=nE(),oE=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=a(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),qt.getChannel().on(wi,this.renderListener)}removeRenderListeners(){qt.getChannel().removeListener(wi,this.renderListener)}};a(oE,"HooksContext");var sp=oE;function Xd(e){let t=a((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,i=n.currentHooks,s=n.nextHookIndex,l=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let c=oe.STORYBOOK_HOOKS_CONTEXT;oe.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(oe.STORYBOOK_HOOKS_CONTEXT=c,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=i,n.nextHookIndex=s,n.currentDecoratorName=l,u},"hookified");return t.originalFn=e,t}a(Xd,"hookify");var qd=0,nP=25,aE=a(e=>(t,r)=>{let n=e(Xd(t),r.map(o=>Xd(o)));return o=>{let{hooks:i}=o;i.prevMountedDecorators??=new Set,i.mountedDecorators=new Set([t,...r]),i.currentContext=o,i.hasUpdates=!1;let s=n(o);for(qd=1;i.hasUpdates;)if(i.hasUpdates=!1,i.currentEffects=[],s=n(o),qd+=1,qd>nP)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return i.addRenderListeners(),s}},"applyHooks"),oP=a((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),lp=a(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function cp(){return oe.STORYBOOK_HOOKS_CONTEXT||null}a(cp,"getHooksContextOrNull");function jl(){let e=cp();if(e==null)throw lp();return e}a(jl,"getHooksContextOrThrow");function iE(e,t,r){let n=jl();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&we.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&we.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&we.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&we.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
181
|
+
Previous: ${o.deps}
|
|
182
|
+
Incoming: ${r}`),(r==null||o.deps==null||!oP(r,o.deps))&&(t(o),o.deps=r),o}throw lp()}a(iE,"useHook");function Ci(e,t,r){let{memoizedState:n}=iE(e,o=>{o.memoizedState=t()},r);return n}a(Ci,"useMemoLike");function Ul(e,t){return Ci("useMemo",e,t)}a(Ul,"useMemo");function pa(e,t){return Ci("useCallback",()=>e,t)}a(pa,"useCallback");function up(e,t){return Ci(e,()=>({current:t}),[])}a(up,"useRefLike");function sE(e){return up("useRef",e)}a(sE,"useRef");function lE(){let e=cp();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{qt.getChannel().emit(Tl)}catch{we.warn("State updates of Storybook preview hooks work only in browser")}}a(lE,"triggerUpdate");function dp(e,t){let r=up(e,typeof t=="function"?t():t),n=a(o=>{r.current=typeof o=="function"?o(r.current):o,lE()},"setState");return[r.current,n]}a(dp,"useStateLike");function cE(e){return dp("useState",e)}a(cE,"useState");function uE(e,t,r){let n=r!=null?()=>r(t):t,[o,i]=dp("useReducer",n),s=a(l=>i(c=>e(c,l)),"dispatch");return[o,s]}a(uE,"useReducer");function _r(e,t){let r=jl(),n=Ci("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}a(_r,"useEffect");function dE(e,t=[]){let r=qt.getChannel();return _r(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),pa(r.emit.bind(r),[r])}a(dE,"useChannel");function Ri(){let{currentContext:e}=jl();if(e==null)throw lp();return e}a(Ri,"useStoryContext");function pE(e,t){let{parameters:r}=Ri();if(e)return r[e]??t}a(pE,"useParameter");function fE(){let e=qt.getChannel(),{id:t,args:r}=Ri(),n=pa(i=>e.emit(kl,{storyId:t,updatedArgs:i}),[e,t]),o=pa(i=>e.emit(Cl,{storyId:t,argNames:i}),[e,t]);return[r,n,o]}a(fE,"useArgs");function mE(){let e=qt.getChannel(),{globals:t}=Ri(),r=pa(n=>e.emit(Pl,{globals:n}),[e]);return[t,r]}a(mE,"useGlobals");var aP=a(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=a(i=>(s,l)=>{let c=l.parameters&&l.parameters[t];return c&&c.disable||n&&!i&&!c?s(l):r(s,l,{options:i,parameters:c})},"decorator");return(...i)=>typeof i[0]=="function"?o()(...i):(...s)=>{if(s.length>1)return i.length>1?o(i)(...s):o(...i)(...s);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
183
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator"),Gd=Se(or(),1),yo=Symbol("incompatible"),Zd=a((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?yo:e.reduce((n,o,i)=>{let s=Zd(o,{type:r.value});return s!==yo&&(n[i]=s),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?yo:Object.entries(e).reduce((n,[o,i])=>{let s=Zd(i,{type:r.value[o]});return s===yo?n:Object.assign(n,{[o]:s})},{});case"other":{let n=typeof e=="string"||typeof e=="number"||typeof e=="boolean";return r.value==="ReactNode"&&n?e:yo}default:return yo}},"map"),iP=a((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let i=Zd(o,t[n]);return i===yo?r:Object.assign(r,{[n]:i})},{}),"mapArgsToTypes"),Fl=a((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=Fl(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!Rt(e)||!Rt(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=Fl(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),sP=a((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function i(){return n in e&&(r[n]=e[n]),r}if(a(i,"allowArg"),!o)return i();if(!Array.isArray(o))return br.error(Ce`
|
|
184
|
+
Invalid argType: '${n}.options' should be an array.
|
|
185
|
+
|
|
186
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
187
|
+
`),i();if(o.some(f=>f&&["object","function"].includes(typeof f)))return br.error(Ce`
|
|
188
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
189
|
+
|
|
190
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
191
|
+
`),i();let s=Array.isArray(e[n]),l=s&&e[n].findIndex(f=>!o.includes(f)),c=s&&l===-1;if(e[n]===void 0||o.includes(e[n])||c)return i();let u=s?`${n}[${l}]`:n,p=o.map(f=>typeof f=="string"?`'${f}'`:String(f)).join(", ");return br.warn(`Received illegal value for '${u}'. Supported options: ${p}`),r},{}),"validateOptions"),Ti=Symbol("Deeply equal"),Ll=a((e,t)=>{if(typeof e!=typeof t)return t;if($d(e,t))return Ti;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,i)=>{let s=Ll(e[i],o);return s!==Ti&&(n[i]=s),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Rt(e)&&Rt(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Ll(e?.[n],t?.[n]);return o===Ti?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),hE="UNTARGETED";function gE({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:i=hE}=t[n]||{};r[i]=r[i]||{},r[i][n]=o}),r}a(gE,"groupArgsByTarget");function yE(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}a(yE,"deleteUndefined");var bE=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Ll(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Ti&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=sP(r,t.argTypes);this.argsByStoryId[t.id]=Fl(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=iP(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=yE({...this.argsByStoryId[t],...r})}};a(bE,"ArgsStore");var lP=bE,vE=a((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),EE=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Ll(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=vE(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==Ti&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:we.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)};for(let r in t)t[r]===void 0&&(this.globals[r]=this.initialGlobals[r])}};a(EE,"GlobalsStore");var cP=EE,uP=Se(or(),1),dP=(0,uP.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),SE=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(i=>i.id.startsWith(t));let{name:n,title:o}=t;return r.find(i=>i.name===n&&i.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new md({storyId:t});return r}importPathToEntry(t){return dP(this.entries)[t]}};a(SE,"StoryIndexStore");var pP=SE,fP=a(e=>typeof e=="string"?{name:e}:e,"normalizeType"),mP=a(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),hP=a((e,t)=>{let{type:r,control:n,...o}=e,i={name:t,...o};return r&&(i.type=fP(r)),n?i.control=mP(n):n===!1&&(i.control={disable:!0}),i},"normalizeInputType"),Ml=a(e=>sn(e,hP),"normalizeInputTypes"),Re=a(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),gP=Ce`
|
|
192
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
193
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
194
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
195
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
196
|
+
`;function da(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:i}=n;i&&(we.debug("deprecated story",i),wl(gP));let s=d1(e),l=typeof n!="function"&&n.name||n.storyName||i?.name||s,c=[...Re(n.decorators),...Re(i?.decorators)],u={...i?.parameters,...n.parameters},p={...i?.args,...n.args},f={...i?.argTypes,...n.argTypes},m=[...Re(n.loaders),...Re(i?.loaders)],g=[...Re(n.beforeEach),...Re(i?.beforeEach)],b=[...Re(n.afterEach),...Re(i?.afterEach)],{render:y,play:S,tags:v=[],globals:w={}}=n,E=u.__id||c1(r.id,s);return{moduleExport:t,id:E,name:l,tags:v,decorators:c,parameters:u,args:p,argTypes:Ml(f),loaders:m,beforeEach:g,afterEach:b,globals:w,...y&&{render:y},...o&&{userStoryFn:o},...S&&{play:S}}}a(da,"normalizeStory");function Bl(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:So(n||t),...e,title:t,...o&&{argTypes:Ml(o)},parameters:{fileName:r,...e.parameters}}}a(Bl,"normalizeComponentAnnotations");var yP=a(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&we.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),bP=a(e=>{let{options:t}=e;t?.storySort&&we.error("The storySort option parameter can only be set globally")},"checkStorySort"),Dl=a(e=>{e&&(yP(e),bP(e))},"checkDisallowedParameters");function wE(e,t,r){let{default:n,__namedExportsOrder:o,...i}=e,s=Object.values(i)[0];if(Eo(s)){let u=Bl(s.meta.input,r,t);Dl(u.parameters);let p={meta:u,stories:{},moduleExports:e};return Object.keys(i).forEach(f=>{if(ma(f,u)){let m=i[f],g=da(f,m.input,u);Dl(g.parameters),p.stories[g.id]=g,Ap(m).forEach(b=>{let y=b.input.name,S=u1(g.id,y);b.input.parameters??={},b.input.parameters.__id=S,p.stories[S]=da(y,b.input,u)})}}),p.projectAnnotations=s.meta.preview.composed,p}let l=Bl(n,r,t);Dl(l.parameters);let c={meta:l,stories:{},moduleExports:e};return Object.keys(i).forEach(u=>{if(ma(u,l)){let p=da(u,i[u],l);Dl(p.parameters),c.stories[p.id]=p}}),c}a(wE,"processCSFFile");function _i(e){return e!=null&&xE(e).includes("mount")}a(_i,"mountDestructured");function xE(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Qd(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?Qd(n.slice(1,-1).replace(/\s/g,"")).map(i=>i.replace(/:.*|=.*/g,"")):[]}a(xE,"getUsedProps");function Qd(e){let t=[],r=[],n=0;for(let i=0;i<e.length;i++)if(e[i]==="{"||e[i]==="[")r.push(e[i]==="{"?"}":"]");else if(e[i]===r[r.length-1])r.pop();else if(!r.length&&e[i]===","){let s=e.substring(n,i).trim();s&&t.push(s),n=i+1}let o=e.substring(n).trim();return o&&t.push(o),t}a(Qd,"splitByComma");function pp(e,t,r){let n=r(e);return o=>t(n,o)}a(pp,"decorateStory");function fp({componentId:e,title:t,kind:r,id:n,name:o,story:i,parameters:s,initialArgs:l,argTypes:c,...u}={}){return u}a(fp,"sanitizeStoryContextUpdate");function mp(e,t){let r={},n=a(i=>s=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...fp(s)},i(r.value)},"bindWithContext"),o=t.reduce((i,s)=>pp(i,s,n),e);return i=>(r.value=i,o(i))}a(mp,"defaultDecorateStory");function zl(e,t,r){let{moduleExport:n,id:o,name:i}=e||{},s=gp(e,t,r),l=a(async _=>{let C={};for(let O of[Re(r.loaders),Re(t.loaders),Re(e.loaders)]){if(_.abortSignal.aborted)return C;let I=await Promise.all(O.map(P=>P(_)));Object.assign(C,...I)}return C},"applyLoaders"),c=a(async _=>{let C=new Array;for(let O of[...Re(r.beforeEach),...Re(t.beforeEach),...Re(e.beforeEach)]){if(_.abortSignal.aborted)return C;let I=await O(_);I&&C.push(I)}return C},"applyBeforeEach"),u=a(async _=>{let C=[...Re(r.afterEach),...Re(t.afterEach),...Re(e.afterEach)].reverse();for(let O of C){if(_.abortSignal.aborted)return;await O(_)}},"applyAfterEach"),p=a(_=>_.originalStoryFn(_.args,_),"undecoratedStoryFn"),{applyDecorators:f=mp,runStep:m}=r,g=[...Re(e?.decorators),...Re(t?.decorators),...Re(r?.decorators)],b=e?.userStoryFn||e?.render||t.render||r.render,y=aE(f)(p,g),S=a(_=>y(_),"unboundStoryFn"),v=e?.play??t?.play,w=_i(v);if(!b&&!w)throw new Td({id:o});let E=a(_=>async()=>(await _.renderToCanvas(),_.canvas),"defaultMount"),x=e.mount??t.mount??r.mount??E,A=r.testingLibraryRender;return{storyGlobals:{},...s,moduleExport:n,id:o,name:i,story:i,originalStoryFn:b,undecoratedStoryFn:p,unboundStoryFn:S,applyLoaders:l,applyBeforeEach:c,applyAfterEach:u,playFunction:v,runStep:m,mount:x,testingLibraryRender:A,renderToCanvas:r.renderToCanvas,usesMount:w}}a(zl,"prepareStory");function hp(e,t,r){return{...gp(void 0,e,t),moduleExport:r}}a(hp,"prepareMeta");function gp(e,t,r){let n=["dev","test"],o=oe.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],i=e?.tags?.includes("test-fn")?["!autodocs"]:[],s=Wl(...n,...o,...r.tags??[],...t.tags??[],...i,...e?.tags??[]),l=yr(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:c=[],argsEnhancers:u=[]}=r,p=yr(r.argTypes,t.argTypes,e?.argTypes);if(e){let w=e?.userStoryFn||e?.render||t.render||r.render;l.__isArgsStory=w&&w.length>0}let f={...r.args,...t.args,...e?.args},m={...t.globals,...e?.globals},g={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:s,parameters:l,initialArgs:f,argTypes:p,storyGlobals:m};g.argTypes=c.reduce((w,E)=>E({...g,argTypes:w}),g.argTypes);let b={...f};g.initialArgs=[...u].reduce((w,E)=>({...w,...E({...g,initialArgs:w})}),b);let{name:y,story:S,...v}=g;return v}a(gp,"preparePartialAnnotations");function yp(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(oe.FEATURES?.argTypeTargetsV7){let i=gE(e);r={...e,allArgs:e.args,argsByTarget:i,args:i[hE]||{}}}let n=Object.entries(r.args).reduce((i,[s,l])=>{if(!r.argTypes[s]?.mapping)return i[s]=l,i;let c=a(u=>{let p=r.argTypes[s].mapping;return p&&u in p?p[u]:u},"mappingFn");return i[s]=Array.isArray(l)?l.map(c):c(l),i},{}),o=Object.entries(n).reduce((i,[s,l])=>{let c=r.argTypes[s]||{};return Vl(c,n,r.globals)&&(i[s]=l),i},{});return{...r,unmappedArgs:t,args:o}}a(yp,"prepareContext");var ep=a((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(we.warn(Ce`
|
|
197
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
198
|
+
|
|
199
|
+
Consider using the mapping feature or fully custom args:
|
|
200
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
201
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
202
|
+
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?ep(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:sn(e,i=>ep(i,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),TE=a(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=sn(n,(s,l)=>({name:l,type:ep(s,`${t}.${l}`,new Set)})),i=sn(r,(s,l)=>({name:l}));return yr(o,i,r)},"inferArgTypes");TE.secondPass=!0;var Wv=a((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),AE=a((e,t,r)=>!t&&!r?e:e&&mi(e,(n,o)=>{let i=n.name||o.toString();return!!(!t||Wv(i,t))&&(!r||!Wv(i,r))}),"filterArgTypes"),vP=a((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let i=n.name;if(i==="string")return{control:{type:"color"}};i!=="enum"&&we.warn(`Addon controls: Control of type color only supports string, received "${i}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:i}=n;return{control:{type:i?.length<=5?"radio":"select"},options:i}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),bp=a(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:i={}}={}}}=e;if(!r)return t;let s=AE(t,n,o),l=sn(s,(c,u)=>c?.type&&vP(c,u.toString(),i));return yr(l,s)},"inferControls");bp.secondPass=!0;function vo({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:i,afterEach:s,initialGlobals:l,...c}){return{...e&&{argTypes:Ml(e)},...t&&{globalTypes:Ml(t)},decorators:Re(n),loaders:Re(o),beforeEach:Re(i),afterEach:Re(s),argTypesEnhancers:[...r||[],TE,bp],initialGlobals:l,...c}}a(vo,"normalizeProjectAnnotations");var EP=a(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function vp(e){return async(t,r,n)=>{await e.reduceRight((i,s)=>async()=>s(t,i,n),async()=>r(n))()}}a(vp,"composeStepRunners");function fa(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}a(fa,"getField");function cn(e,t,r={}){return fa(e,t).reduce((n,o)=>{let i=Re(o);return r.reverseFileOrder?[...i,...n]:[...n,...i]},[])}a(cn,"getArrayField");function xi(e,t){return Object.assign({},...fa(e,t))}a(xi,"getObjectField");function ua(e,t){return fa(e,t).pop()}a(ua,"getSingletonField");function un(e){let t=cn(e,"argTypesEnhancers"),r=fa(e,"runStep"),n=cn(e,"beforeAll");return{parameters:yr(...fa(e,"parameters")),decorators:cn(e,"decorators",{reverseFileOrder:!(oe.FEATURES?.legacyDecoratorFileOrder??!1)}),args:xi(e,"args"),argsEnhancers:cn(e,"argsEnhancers"),argTypes:xi(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:xi(e,"initialGlobals"),globalTypes:xi(e,"globalTypes"),loaders:cn(e,"loaders"),beforeAll:EP(n),beforeEach:cn(e,"beforeEach"),afterEach:cn(e,"afterEach"),render:ua(e,"render"),renderToCanvas:ua(e,"renderToCanvas"),applyDecorators:ua(e,"applyDecorators"),runStep:vp(r),tags:cn(e,"tags"),mount:ua(e,"mount"),testingLibraryRender:ua(e,"testingLibraryRender")}}a(un,"composeConfigs");var CE=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};a(CE,"ReporterAPI");var Ep=CE;function Sp(e,t,r){return Eo(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:Tp(t)?t.input:t,preview:r}}a(Sp,"getCsfFactoryAnnotations");function RE(e){globalThis.defaultProjectAnnotations=e}a(RE,"setDefaultProjectAnnotations");var SP="ComposedStory",wP="Unnamed Story";function _E(e){return e?un([e]):{}}a(_E,"extractAnnotation");function OE(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=un([...ha(),globalThis.defaultProjectAnnotations??{},un(t.map(_E))]),globalThis.globalProjectAnnotations??{}}a(OE,"setProjectAnnotations");var Mn=[];function Oi(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??SP;let i=Bl(t),s=o||e.storyName||e.story?.name||e.name||wP,l=da(s,e,i),c=vo(un([n??globalThis.globalProjectAnnotations??{},r??{}])),u=zl(l,i,c),f={...vE(c.globalTypes),...c.initialGlobals,...u.storyGlobals},m=new Ep,g=a(()=>{let E=yp({hooks:new sp,globals:f,args:{...u.initialArgs},viewMode:"story",reporting:m,loaded:{},abortSignal:new AbortController().signal,step:a((x,A)=>u.runStep(x,A,E),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...u,context:null,mount:null});return E.parameters.__isPortableStory=!0,E.context=E,u.renderToCanvas&&(E.renderToCanvas=async()=>{let x=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:a(()=>{},"showMain"),showError:a(A=>{throw new Error(`${A.title}
|
|
203
|
+
${A.description}`)},"showError"),showException:a(A=>{throw A},"showException"),forceRemount:!0,storyContext:E,storyFn:a(()=>u.unboundStoryFn(E),"storyFn"),unboundStoryFn:u.unboundStoryFn},E.canvasElement);x&&Mn.push(x)}),E.mount=u.mount(E),E},"initializeContext"),b,y=a(async E=>{let x=g();return x.canvasElement??=globalThis?.document?.body,b&&(x.loaded=b.loaded),Object.assign(x,E),u.playFunction(x)},"play"),S=a(E=>{let x=g();return Object.assign(x,E),kE(u,x)},"run"),v=u.playFunction?y:void 0;return Object.assign(a(function(x){let A=g();return b&&(A.loaded=b.loaded),A.args={...A.initialArgs,...x},u.unboundStoryFn(A)},"storyFn"),{id:u.id,storyName:s,load:a(async()=>{for(let x of[...Mn].reverse())await x();Mn.length=0;let E=g();E.loaded=await u.applyLoaders(E),Mn.push(...(await u.applyBeforeEach(E)).filter(Boolean)),b=E},"load"),globals:f,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:v,run:S,reporting:m,tags:u.tags})}a(Oi,"composeStory");var xP=a((e,t,r,n)=>Oi(e,t,r,{},n),"defaultComposeStory");function IE(e,t,r=xP){let{default:n,__esModule:o,__namedExportsOrder:i,...s}=e,l=n;return Object.entries(s).reduce((u,[p,f])=>{let{story:m,meta:g}=Sp(f);return!l&&g&&(l=g),ma(p,l)?Object.assign(u,{[p]:r(m,l,t,p)}):u},{})}a(IE,"composeStories");function PE(e){return e.extend({mount:a(async({mount:t,page:r},n)=>{await n(async(o,...i)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(Ce`
|
|
204
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
205
|
+
Please use JSX format for your components such as:
|
|
206
|
+
|
|
207
|
+
instead of:
|
|
208
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
209
|
+
|
|
210
|
+
do:
|
|
211
|
+
await mount(<MyComponent foo="bar"/>)
|
|
212
|
+
|
|
213
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
214
|
+
`);let{props:s,...l}=o;await r.evaluate(async u=>{let p=await globalThis.__pwUnwrapObject?.(u);return("__pw_type"in p?p.type:p)?.load?.()},l);let c=await t(o,...i);return await r.evaluate(async u=>{let p=await globalThis.__pwUnwrapObject?.(u),f="__pw_type"in p?p.type:p,m=document.querySelector("#root");return f?.play?.({canvasElement:m})},l),c})},"mount")})}a(PE,"createPlaywrightTest");async function kE(e,t){for(let i of[...Mn].reverse())await i();if(Mn.length=0,!t.canvasElement){let i=document.createElement("div");globalThis?.document?.body?.appendChild(i),t.canvasElement=i,Mn.push(()=>{globalThis?.document?.body?.contains(i)&&globalThis?.document?.body?.removeChild(i)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Mn.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new hi({playFunction:r.toString()})}),await r(t));let o;ea()?o=di():await pi(t.abortSignal),await e.applyAfterEach(t),await o?.()}a(kE,"runStory");var Jv=1e3,TP=1e4,DE=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new pP(t),this.projectAnnotations=vo(un([...ha(),n]));let{initialGlobals:o,globalTypes:i}=this.projectAnnotations;this.args=new lP,this.userGlobals=new cP({globals:o,globalTypes:i}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Gd.default)(Jv)(wE),this.prepareMetaWithCache=(0,Gd.default)(Jv)(hp),this.prepareStoryWithCache=(0,Gd.default)(TP)(zl)}setProjectAnnotations(t){this.projectAnnotations=vo(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([n,{importPath:o}])=>{t[o]=n}),(await Promise.all(Object.entries(t).map(async([n,o])=>({importPath:n,csfFile:await this.loadCSFFileByStoryId(o)})))).reduce((n,{importPath:o,csfFile:i})=>(n[o]=i,n),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new wd({storyId:t});let o=r.meta,i=this.prepareStoryWithCache(n,o,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(i),this.hooks[i.id]=this.hooks[i.id]||new sp,i}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...i]=await Promise.all([this.importFn(r.importPath),...n.map(s=>{let l=this.storyIndex.importPathToEntry(s);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:o,csfFiles:i}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,i=new Ep;return yp({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:i,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,...r){this.cleanupCallbacks[t.id]=(this.cleanupCallbacks[t.id]||[]).concat(r)}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(console.log("extract: extracting stories",r),!r)throw new gd;let n=Object.entries(this.storyIndex.entries).reduce((o,[i,s])=>{if(s.type==="docs")return o;let l=r[s.importPath],c=this.storyFromCSFFile({storyId:i,csfFile:l});return!t.includeDocsOnly&&c.parameters.docsOnly||(o[i]=Object.entries(c).reduce((u,[p,f])=>p==="story"&&s.subtype==="test"?{...u,story:s.parentName}:p==="moduleExport"||typeof f=="function"?u:Array.isArray(f)?Object.assign(u,{[p]:f.slice().sort()}):Object.assign(u,{[p]:f}),{args:c.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...c.storyGlobals},storyId:s.parent?s.parent:i})),o},{});return console.log("extract: stories",n),n}};a(DE,"StoryStore");var NE=DE;function FE(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}a(FE,"slash");var AP=a(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function tp(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}a(tp,"pathJoin");var LE=a((e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:i=""}=t||{};typeof e=="number"&&br.warn(Ce`
|
|
215
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
216
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
217
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
218
|
+
`);let s=FE(String(e));if(o.exec(s)){if(!r){let l=s.replace(n,""),c=tp([i,l]).split("/");return c=AP(c),c.join("/")}return i?tp([i,r]):r}},"userOrAutoTitleFromSpecifier"),CP=a((e,t,r)=>{for(let n=0;n<t.length;n+=1){let o=LE(e,t[n],r);if(o)return o}return r||void 0},"userOrAutoTitle"),qv=/\s*\/\s*/,RP=a((e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],i=t.title.trim().split(qv),s=r.title.trim().split(qv);e.includeNames&&(i.push(t.name),s.push(r.name));let l=0;for(;i[l]||s[l];){if(!i[l])return-1;if(!s[l])return 1;let c=i[l],u=s[l];if(c!==u){let f=o.indexOf(c),m=o.indexOf(u),g=o.indexOf("*");return f!==-1||m!==-1?(f===-1&&(g!==-1?f=g:f=o.length),m===-1&&(g!==-1?m=g:m=o.length),f-m):n==="configure"?0:c.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let p=o.indexOf(c);p===-1&&(p=o.indexOf("*")),o=p!==-1&&Array.isArray(o[p+1])?o[p+1]:[],l+=1}return 0},"storySort"),_P=a((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=RP(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),OP=a((e,t,r)=>{try{return _P(e,t,r)}catch(n){throw new Error(Ce`
|
|
219
|
+
Error sorting stories with sort parameter ${t}:
|
|
220
|
+
|
|
221
|
+
> ${n.message}
|
|
222
|
+
|
|
223
|
+
Are you using a V6-style sort function in V7 mode?
|
|
224
|
+
|
|
225
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
226
|
+
`)}},"sortStoriesV7"),Hl=new Error("prepareAborted"),{AbortController:Gv}=globalThis;function rp(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}a(rp,"serializeError");var ME=class{constructor(t,r,n,o,i,s,l={autoplay:!0,forceInitialArgs:!1},c){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=i,this.viewMode=s,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=a(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Gv,this.renderId=Date.now(),c&&(this.story=c,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(vr,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted&&!["finished","aborted","errored"].includes(this.phase)&&(this.phase="aborted",this.channel.emit(vr,{newPhase:this.phase,renderId:this.renderId,storyId:this.id})),t.aborted}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Hl}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:i,componentId:s,title:l,name:c,tags:u,applyLoaders:p,applyBeforeEach:f,applyAfterEach:m,unboundStoryFn:g,playFunction:b,runStep:y}=o;r&&!t&&(this.cancelRender(),this.abortController=new Gv);let S=this.abortController.signal,v=!1,w=o.usesMount;try{let E={...this.storyContext(),viewMode:this.viewMode,abortSignal:S,canvasElement:n,loaded:{},step:a(($,N)=>y($,N,E),"step"),context:null,canvas:{},userEvent:{},renderToCanvas:a(async()=>{let $=await this.renderToScreen(x,n);this.teardownRender=$||(()=>{}),v=!0},"renderToCanvas"),mount:a(async(...$)=>{this.callbacks.showStoryDuringRender?.();let N=null;return await this.runPhase(S,"rendering",async()=>{N=await o.mount(E)(...$)}),w&&await this.runPhase(S,"playing"),N},"mount")};E.context=E;let x={componentId:s,title:l,kind:l,id:i,name:c,story:c,tags:u,...this.callbacks,showError:a($=>(this.phase="errored",this.callbacks.showError($)),"showError"),showException:a($=>(this.phase="errored",this.callbacks.showException($)),"showException"),forceRemount:r||this.notYetRendered,storyContext:E,storyFn:a(()=>g(E),"storyFn"),unboundStoryFn:g};if(await this.runPhase(S,"loading",async()=>{E.loaded=await p(E)}),S.aborted)return;let A=await f(E);if(this.store.addCleanupCallbacks(o,...A),this.checkIfAborted(S)||(!v&&!w&&await E.mount(),this.notYetRendered=!1,S.aborted))return;let _=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,C=new Set,O=a($=>{$.error&&C.add($.error)},"onError"),I=a($=>{$.reason&&C.add($.reason)},"onUnhandledRejection");if(this.renderOptions.autoplay&&r&&b&&this.phase!=="errored"){window?.addEventListener?.("error",O),window?.addEventListener?.("unhandledrejection",I),this.disableKeyListeners=!0;try{if(w?await b(E):(E.mount=async()=>{throw new hi({playFunction:b.toString()})},await this.runPhase(S,"playing",async()=>b(E))),!v)throw new Ad;this.checkIfAborted(S),!_&&C.size>0?await this.runPhase(S,"errored"):await this.runPhase(S,"played")}catch($){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(S,"errored",async()=>{this.channel.emit(Al,rp($))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw $;console.error($)}if(!_&&C.size>0&&this.channel.emit(Il,Array.from(C).map(rp)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",I),window?.removeEventListener?.("error",O),S.aborted)return}await this.runPhase(S,"completing",async()=>{ea()?this.store.addCleanupCallbacks(o,di()):await pi(S)}),await this.runPhase(S,"completed",async()=>{this.channel.emit(wi,i)}),this.phase!=="errored"&&await this.runPhase(S,"afterEach",async()=>{await m(E)});let P=!_&&C.size>0,D=E.reporting.reports.some($=>$.status==="failed"),j=P||D;await this.runPhase(S,"finished",async()=>this.channel.emit(Vd,{storyId:i,status:j?"error":"success",reporters:E.reporting.reports}))}catch(E){this.phase="errored",this.callbacks.showException(E),await this.runPhase(S,"finished",async()=>this.channel.emit(Vd,{storyId:i,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window?.location?.reload?.(),await new Promise(()=>{})}};a(ME,"StoryRender");var np=ME,{fetch:IP}=oe,PP="./index.json",BE=class{constructor(t,r,n=qt.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((i,s)=>{this.resolveStoreInitializationPromise=i,this.rejectStoreInitializationPromise=s}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:a((t,r)=>{if(this.storyStoreValue)return wl("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new xd},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t);let r=globalThis?.navigator?.userAgent;await this.channel.emit(Nv,{userAgent:r})}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(jv,this.onStoryIndexChanged.bind(this)),this.channel.on(Pl,this.onUpdateGlobals.bind(this)),this.channel.on(kl,this.onUpdateArgs.bind(this)),this.channel.on(Iv,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Cl,this.onResetArgs.bind(this)),this.channel.on(Tl,this.onForceReRender.bind(this)),this.channel.on(ho,this.onForceRemount.bind(this)),this.channel.on($v,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new yd;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await IP(PP);if(t.status===200)return t.json();throw new bd({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new NE(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new Bt({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(Lv,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new Bt({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new Bt({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:i,globals:s}=this.storyStoreValue.getStoryContext(r);this.channel.emit(ca,{initialGlobals:n,userGlobals:i,storyGlobals:o,globals:s})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(ca,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new Bt({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(Mv,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(Ud,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(Ud,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new Bt({methodName:"onResetArgs"});let o=this.storyRenders.find(l=>l.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),s=(r||[...new Set([...Object.keys(o.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((l,c)=>(l[c]=o.initialArgs[c],l),{});await this.onUpdateArgs({storyId:t,updatedArgs:s})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(t=>t.cancelPlayFunction()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new Bt({methodName:"renderStoryToElement"});let i=new np(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return i.renderToElement(r),this.storyRenders.push(i),async()=>{await this.teardownRender(i)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new Bt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new Bt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new Bt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,we.error(t),we.error(r),this.channel.emit(Pv,r)}};a(BE,"Preview");var $E=BE,jE=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=a(i=>{let s=this.nameToStoryId.get(i);if(s)return s;throw new Error(`No story found with that name: ${i}`)},"storyIdByName"),this.componentStories=a(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=a(i=>this.store.componentStoriesFromCSFFile({csfFile:i}),"componentStoriesFromCSFFile"),this.storyById=a(i=>{if(!i){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let s=this.storyIdToCSFFile.get(i);if(!s)throw new Error(`Called \`storyById\` for story that was never loaded: ${i}`);return this.store.storyFromCSFFile({storyId:i,csfFile:s})},"storyById"),this.getStoryContext=a(i=>({...this.store.getStoryContext(i),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=a(i=>this.store.loadStory({storyId:i}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((i,s)=>{this.referenceCSFFile(i)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(n=>{let o=t.stories[n.id];this.storyIdToCSFFile.set(o.id,t),this.exportToStory.set(o.moduleExport,n)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");if(this.attachedCSFFiles.has(t))return;this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(n=>{this.nameToStoryId.set(n.name,n.id),this.componentStoriesValue.push(n),this.primaryStory||(this.primaryStory=n)})}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(Eo(t)?t.input:t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(Ce`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}.
|
|
227
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
228
|
+
- ... or vice versa?
|
|
229
|
+
- Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};a(jE,"DocsContext");var wp=jE,UE=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Hl;let{importPath:n,title:o}=this.entry,i=this.store.processCSFFileWithCache(t,n,o),s=Object.keys(i.stories)[0];this.story=this.store.storyFromCSFFile({storyId:s,csfFile:i}),this.csfFiles=[i,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new wp(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i=await o.renderer(),{render:s}=i,l=a(async()=>{try{await s(n,o,t),this.channel.emit(xl,this.id)}catch(c){this.callbacks.showException(c)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:c})=>{!c||!t||i.unmount(t)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};a(UE,"CsfDocsRender");var Yv=UE,zE=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Hl;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new wp(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters??{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let i={...o,page:this.exports.default},s=await o.renderer(),{render:l}=s,c=a(async()=>{try{await l(n,i,t),this.channel.emit(xl,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>c(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!t||(s.unmount(t),this.torndown=!0)},c()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};a(zE,"MdxDocsRender");var Kv=zE,kP=globalThis;function HE(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}a(HE,"focusInInput");var VE="attached-mdx",DP="unattached-mdx";function WE({tags:e}){return e?.includes(DP)||e?.includes(VE)}a(WE,"isMdxEntry");function Nl(e){return e.type==="story"}a(Nl,"isStoryRender");function JE(e){return e.type==="docs"}a(JE,"isDocsRender");function qE(e){return JE(e)&&e.subtype==="csf"}a(qE,"isCsfDocsRender");var GE=class extends $E{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),kP.onkeydown=this.onKeydown.bind(this),this.channel.on(_l,this.onSetCurrentStory.bind(this)),this.channel.on(Vv,this.onUpdateQueryParams.bind(this)),this.channel.on(Dv,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new Bt({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new Bt({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new Ed):this.renderStoryLoadingException(t,new Sd({storySpecifier:t.toString()}));return}let{id:o,type:i}=n;this.selectionStore.setSelection({storyId:o,viewMode:i}),this.channel.emit(zv,this.selectionStore.selection),this.channel.emit(zd,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!HE(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:i,key:s,code:l,keyCode:c}=t;this.channel.emit(Fv,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:i,key:s,code:l,keyCode:c}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(zd,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof np&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof Kv||this.currentRender instanceof Yv)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new Bt({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,i;try{i=await this.storyStoreValue.storyIdToEntry(o)}catch(m){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,m);return}let s=this.currentSelection?.storyId!==o,l=this.currentRender?.type!==i.type;i.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let c;i.type==="story"?c=new np(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):WE(i)?c=new Kv(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o)):c=new Yv(this.channel,this.storyStoreValue,i,this.mainStoryCallbacks(o));let u=this.currentSelection;this.currentSelection=n;let p=this.currentRender;this.currentRender=c;try{await c.prepare()}catch(m){p&&await this.teardownRender(p),m!==Hl&&this.renderStoryLoadingException(o,m);return}let f=!s&&p&&!c.isEqual(p);if(t&&Nl(c)&&(ln(!!c.story),this.storyStoreValue.args.updateFromPersisted(c.story,t)),p&&!p.torndown&&!s&&!f&&!l){this.currentRender=p,this.channel.emit(Hv,o),this.view.showMain();return}if(p&&await this.teardownRender(p,{viewModeChanged:l}),u&&(s||l)&&this.channel.emit(go,o),Nl(c)){ln(!!c.story);let{parameters:m,initialArgs:g,argTypes:b,unmappedArgs:y,initialGlobals:S,userGlobals:v,storyGlobals:w,globals:E}=this.storyStoreValue.getStoryContext(c.story);this.channel.emit(Uv,{id:o,parameters:m,initialArgs:g,argTypes:b,args:y}),this.channel.emit(ca,{userGlobals:v,storyGlobals:w,globals:E,initialGlobals:S})}else{let{parameters:m}=this.storyStoreValue.projectAnnotations,{initialGlobals:g,globals:b}=this.storyStoreValue.userGlobals;if(this.channel.emit(ca,{globals:b,initialGlobals:g,storyGlobals:{},userGlobals:b}),qE(c)||c.entry.tags?.includes(VE)){if(!c.csfFiles)throw new vd({storyId:o});({parameters:m}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:c.csfFiles[0]}))}this.channel.emit(kv,{id:o,parameters:m})}Nl(c)?(ln(!!c.story),this.storyRenders.push(c),this.currentRender.renderToElement(this.view.prepareForStory(c.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:a(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:a(()=>this.view.showMain(),"showMain"),showError:a(r=>this.renderError(t,r),"showError"),showException:a(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Wd)}renderStoryLoadingException(t,r){we.error(r),this.view.showErrorDisplay(r),this.channel.emit(Wd,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:i}=r,s=this.currentRender?.renderId;this.channel.emit(Ol,{name:n,message:o,stack:i}),this.channel.emit(vr,{newPhase:"errored",renderId:s,storyId:t}),this.view.showErrorDisplay(r),we.error(`Error rendering story '${t}':`),we.error(r)}renderError(t,{title:r,description:n}){let o=this.currentRender?.renderId;this.channel.emit(Bv,{title:r,description:n}),this.channel.emit(vr,{newPhase:"errored",renderId:o,storyId:t}),this.view.showErrorDisplay({message:r,stack:n}),we.error(`Error rendering story ${r}: ${n}`)}};a(GE,"PreviewWithSelection");var YE=GE,op=Se(Xs(),1),NP=Se(Xs(),1),Xv=/^[a-zA-Z0-9 _-]*$/,KE=/^-?[0-9]+(\.[0-9]+)?$/,FP=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,XE=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,ap=a((e="",t)=>e===null||e===""||!Xv.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Xv.test(t)||KE.test(t)||FP.test(t)||XE.test(t):Array.isArray(t)?t.every(r=>ap(e,r)):Rt(t)?Object.entries(t).every(([r,n])=>ap(r,n)):!1,"validateArgs"),LP={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(XE);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return KE.test(e)?Number(e):e}},Zv=a(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,NP.parse)(t.join(";"),LP)).reduce((r,[n,o])=>ap(n,o)?Object.assign(r,{[n]:o}):(br.warn(Ce`
|
|
230
|
+
Omitted potentially unsafe URL args.
|
|
231
|
+
|
|
232
|
+
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
|
|
233
|
+
`),r),{})},"parseArgsParam"),{history:ZE,document:Bn}=oe;function QE(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}a(QE,"pathToId");var e1=a(({selection:e,extraParams:t})=>{let r=Bn?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:i,...s}=(0,op.parse)(r);return`?${(0,op.stringify)({...s,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),MP=a(e=>{if(!e)return;let t=e1({selection:e}),{hash:r=""}=Bn.location;Bn.title=e.storyId,ZE.replaceState({},"",`${Bn.location.pathname}${t}${r}`)},"setPath"),BP=a(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Ai=a(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Ai(e[0]);if(BP(e))return Ai(Object.values(e).filter(Boolean))}},"getFirstString"),$P=a(()=>{if(typeof Bn<"u"){let e=Bn.location.search.slice(1),t=(0,op.parse)(e),r=typeof t.args=="string"?Zv(t.args):void 0,n=typeof t.globals=="string"?Zv(t.globals):void 0,o=Ai(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");let i=Ai(t.path),s=i?QE(i):Ai(t.id);if(s)return{storySpecifier:s,args:r,globals:n,viewMode:o}}return null},"getSelectionSpecifierFromPath"),t1=class{constructor(){this.selectionSpecifier=$P()}setSelection(t){this.selection=t,MP(this.selection)}setQueryParams(t){let r=e1({extraParams:t}),{hash:n=""}=Bn.location;ZE.replaceState({},"",`${Bn.location.pathname}${r}${n}`)}};a(t1,"UrlStore");var r1=t1,jP=Se(Sl(),1),UP=Se(Xs(),1),{document:Pt}=oe,Qv=100,n1=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(n1||{}),Yd={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Kd={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},eE=new jP.default({escapeXML:!0}),o1=class{constructor(){if(this.testing=!1,typeof Pt<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,UP.parse)(Pt.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),Pt.documentElement.scrollTop=0,Pt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Pt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Pt.documentElement.scrollTop=0,Pt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Pt.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){Pt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=Kd[t];Pt.body.classList.remove(this.currentLayoutClass),Pt.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){Kd[t]||we.warn(Ce`
|
|
234
|
+
The desired layout: ${t} is not a valid option.
|
|
235
|
+
The possible options are: ${Object.keys(Kd).join(", ")}, none.
|
|
236
|
+
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(n1).forEach(r=>{r===t?Pt.body.classList.add(Yd[r]):Pt.body.classList.remove(Yd[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,i=t.split(`
|
|
237
|
+
`);i.length>1&&([n]=i,o=i.slice(1).join(`
|
|
238
|
+
`).replace(/^\n/,"")),Pt.getElementById("error-message").innerHTML=eE.toHtml(n),Pt.getElementById("error-stack").innerHTML=eE.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),Qv)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),Qv)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){Pt.body.classList.add(Yd.MAIN)}};a(o1,"WebView");var a1=o1,zP=class extends YE{constructor(t,r){super(t,r,new r1,new a1),this.importFn=t,this.getProjectAnnotations=r,oe.__STORYBOOK_PREVIEW__=this}};a(zP,"PreviewWeb");var{document:bo}=oe,HP=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],VP="script",tE="scripts-root";function $l(){let e=bo.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),bo.dispatchEvent(e)}a($l,"simulateDOMContentLoaded");function i1(e,t,r){let n=bo.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):bo.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}a(i1,"insertScript");function xp(e,t,r=0){e[r](()=>{r++,r===e.length?t():xp(e,t,r)})}a(xp,"insertScriptsSequentially");function s1(e){let t=bo.getElementById(tE);t?t.innerHTML="":(t=bo.createElement("div"),t.id=tE,bo.body.appendChild(t));let r=Array.from(e.querySelectorAll(VP));if(r.length){let n=[];r.forEach(o=>{let i=o.getAttribute("type");(!i||HP.includes(i))&&n.push(s=>i1(o,s,t))}),n.length&&xp(n,$l,void 0)}else $l()}a(s1,"simulatePageLoad");async function l1(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:o}=t,i=r&&e?r?.(e,t):e,s=i?await i:void 0;qt.getChannel().emit(wv,{id:n,source:s,args:o})}a(l1,"emitTransformCode");Si();Br();fo();G();Y();K();var Jl="storybook/highlight",p1=`${Jl}/add`,f1=`${Jl}/remove`,m1=`${Jl}/reset`,h1=`${Jl}/scroll-into-view`,Cp=2147483647,dn=28;G();Y();K();G();Y();K();G();Y();K();var g1="actions",ga="storybook/actions",Rp=`${ga}/panel`,ya=`${ga}/action-event`,_p=`${ga}/action-clear`;Te();We();G();Y();K();Si();Br();fo();Te();var ql={depth:10,clearOnStoryChange:!0,limit:50},bX=a((e={})=>{Object.assign(ql,e)},"configureActions"),y1=a((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:y1(r,t)},"findProto"),WP=a(e=>!!(typeof e=="object"&&e&&y1(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),JP=a(e=>{if(WP(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function ba(e,t={}){let r={...ql,...t},n=a(function(...i){if(t.implicit){let g=("__STORYBOOK_PREVIEW__"in oe?oe.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(b=>b.phase==="playing"||b.phase==="rendering");if(g){let b=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,y=new hd({phase:g.phase,name:e,deprecated:b});if(b)console.warn(y);else throw y}}let s=qt.getChannel(),l=Date.now().toString(36)+Math.random().toString(36).substring(2),c=5,u=i.map(JP),p=i.length>1?u:u[0],f={id:l,count:0,data:{name:e,args:p},options:{...r,maxDepth:c+(r.depth||3)}};s.emit(ya,f)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}a(ba,"action");var wX=a((...e)=>{let t=ql,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...ql,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(i=>{n[i]=i}));let o={};return Object.keys(n).forEach(i=>{o[i]=ba(n[i],t)}),o},"actions");G();Y();K();var wo="storybook/viewport",xo="viewport",RX=`${wo}/panel`,b1=`${wo}/tool`;Te();G();Y();K();var kX=__STORYBOOK_TEST__,{buildQueries:DX,clearAllMocks:v1,configure:NX,createEvent:FX,expect:LX,findAllByAltText:MX,findAllByDisplayValue:BX,findAllByLabelText:$X,findAllByPlaceholderText:jX,findAllByRole:UX,findAllByTestId:zX,findAllByText:HX,findAllByTitle:VX,findByAltText:WX,findByDisplayValue:JX,findByLabelText:qX,findByPlaceholderText:GX,findByRole:YX,findByTestId:KX,findByText:XX,findByTitle:ZX,fireEvent:QX,fn:E1,getAllByAltText:eZ,getAllByDisplayValue:tZ,getAllByLabelText:rZ,getAllByPlaceholderText:nZ,getAllByRole:oZ,getAllByTestId:aZ,getAllByText:iZ,getAllByTitle:sZ,getByAltText:lZ,getByDisplayValue:cZ,getByLabelText:uZ,getByPlaceholderText:dZ,getByRole:pZ,getByTestId:fZ,getByText:mZ,getByTitle:hZ,getConfig:gZ,getDefaultNormalizer:yZ,getElementError:bZ,getNodeText:vZ,getQueriesForElement:EZ,getRoles:SZ,getSuggestedQuery:wZ,isInaccessible:xZ,isMockFunction:S1,logDOM:TZ,logRoles:AZ,mocked:CZ,mocks:RZ,onMockCall:w1,prettyDOM:_Z,prettyFormat:OZ,queries:IZ,queryAllByAltText:PZ,queryAllByAttribute:kZ,queryAllByDisplayValue:DZ,queryAllByLabelText:NZ,queryAllByPlaceholderText:FZ,queryAllByRole:LZ,queryAllByTestId:MZ,queryAllByText:BZ,queryAllByTitle:$Z,queryByAltText:jZ,queryByAttribute:UZ,queryByDisplayValue:zZ,queryByLabelText:HZ,queryByPlaceholderText:VZ,queryByRole:WZ,queryByTestId:JZ,queryByText:qZ,queryByTitle:GZ,queryHelpers:YZ,resetAllMocks:x1,restoreAllMocks:T1,sb:KZ,screen:XZ,spyOn:ZZ,uninstrumentedUserEvent:A1,userEvent:QZ,waitFor:eQ,waitForElementToBeRemoved:tQ,within:C1}=__STORYBOOK_TEST__;G();Y();K();G();Y();K();var vt={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},R1=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(R1||{});G();Y();K();Te();var qP={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},X1=Object.entries(qP);function Mi(e){return String(e)}a(Mi,"a");Mi.open="";Mi.close="";var dQ=X1.reduce((e,[t])=>(e[t]=Mi,e),{isColorSupported:!1});function Z1(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}a(Z1,"C");function Q1(e=!1){let t=Z1(e),r=a((s,l,c,u)=>{let p="",f=0;do p+=s.substring(f,u)+c,f=u+l.length,u=s.indexOf(l,f);while(~u);return p+s.substring(f)},"i"),n=a((s,l,c=s)=>{let u=a(p=>{let f=String(p),m=f.indexOf(l,s.length);return~m?s+r(f,l,c,m)+l:s+f+l},"o");return u.open=s,u.close=l,u},"g"),o={isColorSupported:t},i=a(s=>`\x1B[${s}m`,"d");for(let[s,l]of X1)o[s]=t?n(i(l[0]),i(l[1]),l[2]):Mi;return o}a(Q1,"p");var mn=Q1();function of(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:a(function(){return r[n]},"get")})}})}),Object.freeze(e)}a(of,"_mergeNamespaces");function e2(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}a(e2,"getKeysOfEnumerableProperties");function Ta(e,t,r,n,o,i,s=": "){let l="",c=0,u=e.next();if(!u.done){l+=t.spacingOuter;let p=r+t.indent;for(;!u.done;){if(l+=p,c++===t.maxWidth){l+="\u2026";break}let f=i(u.value[0],t,p,n,o),m=i(u.value[1],t,p,n,o);l+=f+s+m,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}a(Ta,"printIteratorEntries");function oc(e,t,r,n,o,i){let s="",l=0,c=e.next();if(!c.done){s+=t.spacingOuter;let u=r+t.indent;for(;!c.done;){if(s+=u,l++===t.maxWidth){s+="\u2026";break}s+=i(c.value,t,u,n,o),c=e.next(),c.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}a(oc,"printIteratorValues");function Fi(e,t,r,n,o,i){let s="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=a(u=>u instanceof DataView,"isDataView"),c=l(e)?e.byteLength:e.length;if(c>0){s+=t.spacingOuter;let u=r+t.indent;for(let p=0;p<c;p++){if(s+=u,p===t.maxWidth){s+="\u2026";break}(l(e)||p in e)&&(s+=i(l(e)?e.getInt8(p):e[p],t,u,n,o)),p<c-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}a(Fi,"printListItems");function ac(e,t,r,n,o,i){let s="",l=e2(e,t.compareKeys);if(l.length>0){s+=t.spacingOuter;let c=r+t.indent;for(let u=0;u<l.length;u++){let p=l[u],f=i(p,t,c,n,o),m=i(e[p],t,c,n,o);s+=`${c+f}: ${m}`,u<l.length-1?s+=`,${t.spacingInner}`:t.min||(s+=",")}s+=t.spacingOuter+r}return s}a(ac,"printObjectProperties");var GP=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Gl=" ",YP=a((e,t,r,n,o,i)=>{let s=e.toString();if(s==="ArrayContaining"||s==="ArrayNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+Gl}[${Fi(e.sample,t,r,n,o,i)}]`;if(s==="ObjectContaining"||s==="ObjectNotContaining")return++n>t.maxDepth?`[${s}]`:`${s+Gl}{${ac(e.sample,t,r,n,o,i)}}`;if(s==="StringMatching"||s==="StringNotMatching"||s==="StringContaining"||s==="StringNotContaining")return s+Gl+i(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),KP=a(e=>e&&e.$$typeof===GP,"test$5"),XP={serialize:YP,test:KP},ZP=" ",t2=new Set(["DOMStringMap","NamedNodeMap"]),QP=/^(?:HTML\w*Collection|NodeList)$/;function r2(e){return t2.has(e)||QP.test(e)}a(r2,"testName");var ek=a(e=>e&&e.constructor&&!!e.constructor.name&&r2(e.constructor.name),"test$4");function n2(e){return e.constructor.name==="NamedNodeMap"}a(n2,"isNamedNodeMap");var tk=a((e,t,r,n,o,i)=>{let s=e.constructor.name;return++n>t.maxDepth?`[${s}]`:(t.min?"":s+ZP)+(t2.has(s)?`{${ac(n2(e)?[...e].reduce((l,c)=>(l[c.name]=c.value,l),{}):{...e},t,r,n,o,i)}}`:`[${Fi([...e],t,r,n,o,i)}]`)},"serialize$4"),rk={serialize:tk,test:ek};function af(e){return e.replaceAll("<","<").replaceAll(">",">")}a(af,"escapeHTML");function ic(e,t,r,n,o,i,s){let l=n+r.indent,c=r.colors;return e.map(u=>{let p=t[u],f=s(p,r,l,o,i);return typeof p!="string"&&(f.includes(`
|
|
239
|
+
`)&&(f=r.spacingOuter+l+f+r.spacingOuter+n),f=`{${f}}`),`${r.spacingInner+n+c.prop.open+u+c.prop.close}=${c.value.open}${f}${c.value.close}`}).join("")}a(ic,"printProps");function sc(e,t,r,n,o,i){return e.map(s=>t.spacingOuter+r+(typeof s=="string"?sf(s,t):i(s,t,r,n,o))).join("")}a(sc,"printChildren");function sf(e,t){let r=t.colors.content;return r.open+af(e)+r.close}a(sf,"printText");function o2(e,t){let r=t.colors.comment;return`${r.open}<!--${af(e)}-->${r.close}`}a(o2,"printComment");function lc(e,t,r,n,o){let i=n.colors.tag;return`${i.open}<${e}${t&&i.close+t+n.spacingOuter+o+i.open}${r?`>${i.close}${r}${n.spacingOuter}${o}${i.open}</${e}`:`${t&&!n.min?"":" "}/`}>${i.close}`}a(lc,"printElement");function cc(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}a(cc,"printElementAsLeaf");var nk=1,a2=3,i2=8,s2=11,ok=/^(?:(?:HTML|SVG)\w*)?Element$/;function l2(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}a(l2,"testHasAttribute");function c2(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||l2(e);return r===nk&&(ok.test(t)||o)||r===a2&&t==="Text"||r===i2&&t==="Comment"||r===s2&&t==="DocumentFragment"}a(c2,"testNode");var ak=a(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&c2(e)},"test$3");function u2(e){return e.nodeType===a2}a(u2,"nodeIsText");function d2(e){return e.nodeType===i2}a(d2,"nodeIsComment");function Kl(e){return e.nodeType===s2}a(Kl,"nodeIsFragment");var ik=a((e,t,r,n,o,i)=>{if(u2(e))return sf(e.data,t);if(d2(e))return o2(e.data,t);let s=Kl(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?cc(s,t):lc(s,ic(Kl(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Kl(e)?{}:[...e.attributes].reduce((l,c)=>(l[c.name]=c.value,l),{}),t,r+t.indent,n,o,i),sc(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,i),t,r)},"serialize$3"),sk={serialize:ik,test:ak},lk="@@__IMMUTABLE_ITERABLE__@@",ck="@@__IMMUTABLE_LIST__@@",uk="@@__IMMUTABLE_KEYED__@@",dk="@@__IMMUTABLE_MAP__@@",_1="@@__IMMUTABLE_ORDERED__@@",pk="@@__IMMUTABLE_RECORD__@@",fk="@@__IMMUTABLE_SEQ__@@",mk="@@__IMMUTABLE_SET__@@",hk="@@__IMMUTABLE_STACK__@@",Ea=a(e=>`Immutable.${e}`,"getImmutableName"),uc=a(e=>`[${e}]`,"printAsLeaf"),Li=" ",O1="\u2026";function p2(e,t,r,n,o,i,s){return++n>t.maxDepth?uc(Ea(s)):`${Ea(s)+Li}{${Ta(e.entries(),t,r,n,o,i)}}`}a(p2,"printImmutableEntries");function f2(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}a(f2,"getRecordEntries");function m2(e,t,r,n,o,i){let s=Ea(e._name||"Record");return++n>t.maxDepth?uc(s):`${s+Li}{${Ta(f2(e),t,r,n,o,i)}}`}a(m2,"printImmutableRecord");function h2(e,t,r,n,o,i){let s=Ea("Seq");return++n>t.maxDepth?uc(s):e[uk]?`${s+Li}{${e._iter||e._object?Ta(e.entries(),t,r,n,o,i):O1}}`:`${s+Li}[${e._iter||e._array||e._collection||e._iterable?oc(e.values(),t,r,n,o,i):O1}]`}a(h2,"printImmutableSeq");function Xl(e,t,r,n,o,i,s){return++n>t.maxDepth?uc(Ea(s)):`${Ea(s)+Li}[${oc(e.values(),t,r,n,o,i)}]`}a(Xl,"printImmutableValues");var gk=a((e,t,r,n,o,i)=>e[dk]?p2(e,t,r,n,o,i,e[_1]?"OrderedMap":"Map"):e[ck]?Xl(e,t,r,n,o,i,"List"):e[mk]?Xl(e,t,r,n,o,i,e[_1]?"OrderedSet":"Set"):e[hk]?Xl(e,t,r,n,o,i,"Stack"):e[fk]?h2(e,t,r,n,o,i):m2(e,t,r,n,o,i),"serialize$2"),yk=a(e=>e&&(e[lk]===!0||e[pk]===!0),"test$2"),bk={serialize:gk,test:yk};function lf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(lf,"getDefaultExportFromCjs");var Op={exports:{}},Fe={},I1;function g2(){if(I1)return Fe;I1=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function b(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case e:switch(y=y.type,y){case r:case o:case n:case c:case u:case m:return y;default:switch(y=y&&y.$$typeof,y){case s:case l:case f:case p:return y;case i:return y;default:return S}}case t:return S}}}return a(b,"typeOf"),Fe.ContextConsumer=i,Fe.ContextProvider=s,Fe.Element=e,Fe.ForwardRef=l,Fe.Fragment=r,Fe.Lazy=f,Fe.Memo=p,Fe.Portal=t,Fe.Profiler=o,Fe.StrictMode=n,Fe.Suspense=c,Fe.SuspenseList=u,Fe.isContextConsumer=function(y){return b(y)===i},Fe.isContextProvider=function(y){return b(y)===s},Fe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Fe.isForwardRef=function(y){return b(y)===l},Fe.isFragment=function(y){return b(y)===r},Fe.isLazy=function(y){return b(y)===f},Fe.isMemo=function(y){return b(y)===p},Fe.isPortal=function(y){return b(y)===t},Fe.isProfiler=function(y){return b(y)===o},Fe.isStrictMode=function(y){return b(y)===n},Fe.isSuspense=function(y){return b(y)===c},Fe.isSuspenseList=function(y){return b(y)===u},Fe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===c||y===u||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===p||y.$$typeof===s||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},Fe.typeOf=b,Fe}a(g2,"requireReactIs_production");var P1={},k1;function vk(){return k1||(k1=1),P1}a(vk,"requireReactIs_development$1");var D1;function y2(){return D1||(D1=1,Op.exports=g2()),Op.exports}a(y2,"requireReactIs$1");var b2=y2(),Ek=lf(b2),Sk=of({__proto__:null,default:Ek},[b2]),Ip={exports:{}},ke={},N1;function v2(){if(N1)return ke;N1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function y(S){if(typeof S=="object"&&S!==null){var v=S.$$typeof;switch(v){case e:switch(S=S.type,S){case r:case o:case n:case u:case p:return S;default:switch(S=S&&S.$$typeof,S){case l:case s:case c:case m:case f:case i:return S;default:return v}}case t:return v}}}return a(y,"v"),ke.ContextConsumer=s,ke.ContextProvider=i,ke.Element=e,ke.ForwardRef=c,ke.Fragment=r,ke.Lazy=m,ke.Memo=f,ke.Portal=t,ke.Profiler=o,ke.StrictMode=n,ke.Suspense=u,ke.SuspenseList=p,ke.isAsyncMode=function(){return!1},ke.isConcurrentMode=function(){return!1},ke.isContextConsumer=function(S){return y(S)===s},ke.isContextProvider=function(S){return y(S)===i},ke.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},ke.isForwardRef=function(S){return y(S)===c},ke.isFragment=function(S){return y(S)===r},ke.isLazy=function(S){return y(S)===m},ke.isMemo=function(S){return y(S)===f},ke.isPortal=function(S){return y(S)===t},ke.isProfiler=function(S){return y(S)===o},ke.isStrictMode=function(S){return y(S)===n},ke.isSuspense=function(S){return y(S)===u},ke.isSuspenseList=function(S){return y(S)===p},ke.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===o||S===n||S===u||S===p||S===g||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===f||S.$$typeof===i||S.$$typeof===s||S.$$typeof===c||S.$$typeof===b||S.getModuleId!==void 0)},ke.typeOf=y,ke}a(v2,"requireReactIs_production_min");var F1={},L1;function wk(){return L1||(L1=1),F1}a(wk,"requireReactIs_development");var M1;function E2(){return M1||(M1=1,Ip.exports=v2()),Ip.exports}a(E2,"requireReactIs");var S2=E2(),xk=lf(S2),Tk=of({__proto__:null,default:xk},[S2]),Ak=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],To=Object.fromEntries(Ak.map(e=>[e,t=>Tk[e](t)||Sk[e](t)]));function cf(e,t=[]){if(Array.isArray(e))for(let r of e)cf(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}a(cf,"getChildren");function Fp(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(To.isFragment(e))return"React.Fragment";if(To.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(To.isContextProvider(e))return"Context.Provider";if(To.isContextConsumer(e))return"Context.Consumer";if(To.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(To.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}a(Fp,"getType");function w2(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}a(w2,"getPropKeys$1");var Ck=a((e,t,r,n,o,i)=>++n>t.maxDepth?cc(Fp(e),t):lc(Fp(e),ic(w2(e),e.props,t,r+t.indent,n,o,i),sc(cf(e.props.children),t,r+t.indent,n,o,i),t,r),"serialize$1"),Rk=a(e=>e!=null&&To.isElement(e),"test$1"),_k={serialize:Ck,test:Rk},Ok=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function x2(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}a(x2,"getPropKeys");var Ik=a((e,t,r,n,o,i)=>++n>t.maxDepth?cc(e.type,t):lc(e.type,e.props?ic(x2(e),e.props,t,r+t.indent,n,o,i):"",e.children?sc(e.children,t,r+t.indent,n,o,i):"",t,r),"serialize"),Pk=a(e=>e&&e.$$typeof===Ok,"test"),kk={serialize:Ik,test:Pk},T2=Object.prototype.toString,Dk=Date.prototype.toISOString,Nk=Error.prototype.toString,B1=RegExp.prototype.toString;function ki(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}a(ki,"getConstructorName");function A2(e){return typeof window<"u"&&e===window}a(A2,"isWindow");var Fk=/^Symbol\((.*)\)(.*)$/,Lk=/\n/g,C2=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};a(C2,"PrettyFormatPluginError");var R2=C2;function _2(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}a(_2,"isToStringedArrayType");function O2(e){return Object.is(e,-0)?"-0":String(e)}a(O2,"printNumber");function I2(e){return`${e}n`}a(I2,"printBigInt");function Lp(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}a(Lp,"printFunction");function Mp(e){return String(e).replace(Fk,"Symbol($1)")}a(Mp,"printSymbol");function Bp(e){return`[${Nk.call(e)}]`}a(Bp,"printError");function uf(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return O2(e);if(o==="bigint")return I2(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Lp(e,t);if(o==="symbol")return Mp(e);let i=T2.call(e);return i==="[object WeakMap]"?"WeakMap {}":i==="[object WeakSet]"?"WeakSet {}":i==="[object Function]"||i==="[object GeneratorFunction]"?Lp(e,t):i==="[object Symbol]"?Mp(e):i==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":Dk.call(e):i==="[object Error]"?Bp(e):i==="[object RegExp]"?r?B1.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):B1.call(e):e instanceof Error?Bp(e):null}a(uf,"printBasicValue");function df(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let s=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!s&&e.toJSON&&typeof e.toJSON=="function"&&!i)return pn(e.toJSON(),t,r,n,o,!0);let c=T2.call(e);return c==="[object Arguments]"?s?"[Arguments]":`${l?"":"Arguments "}[${Fi(e,t,r,n,o,pn)}]`:_2(c)?s?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Fi(e,t,r,n,o,pn)}]`:c==="[object Map]"?s?"[Map]":`Map {${Ta(e.entries(),t,r,n,o,pn," => ")}}`:c==="[object Set]"?s?"[Set]":`Set {${oc(e.values(),t,r,n,o,pn)}}`:s||A2(e)?`[${ki(e)}]`:`${l||!t.printBasicPrototype&&ki(e)==="Object"?"":`${ki(e)} `}{${ac(e,t,r,n,o,pn)}}`}a(df,"printComplexValue");var Mk={test:a(e=>e&&e instanceof Error,"test"),serialize(e,t,r,n,o,i){if(o.includes(e))return"[Circular]";o=[...o,e];let s=++n>t.maxDepth,{message:l,cause:c,...u}=e,p={message:l,...typeof c<"u"?{cause:c}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},f=e.name!=="Error"?e.name:ki(e);return s?`[${f}]`:`${f} {${Ta(Object.entries(p).values(),t,r,n,o,i)}}`}};function P2(e){return e.serialize!=null}a(P2,"isNewPlugin");function pf(e,t,r,n,o,i){let s;try{s=P2(e)?e.serialize(t,r,n,o,i,pn):e.print(t,l=>pn(l,r,n,o,i),l=>{let c=n+r.indent;return c+l.replaceAll(Lk,`
|
|
240
|
+
${c}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new R2(l.message,l.stack)}if(typeof s!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof s}".`);return s}a(pf,"printPlugin");function ff(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new R2(n.message,n.stack)}return null}a(ff,"findPlugin");function pn(e,t,r,n,o,i){let s=ff(t.plugins,e);if(s!==null)return pf(s,e,t,r,n,o);let l=uf(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:df(e,t,r,n,o,i)}a(pn,"printer");var mf={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},k2=Object.keys(mf),Or={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:mf};function D2(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Or,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}a(D2,"validateOptions");function N2(){return k2.reduce((e,t)=>{let r=mf[t],n=r&&mn[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}a(N2,"getColorsHighlight");function F2(){return k2.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}a(F2,"getColorsEmpty");function hf(e){return e?.printFunctionName??Or.printFunctionName}a(hf,"getPrintFunctionName");function gf(e){return e?.escapeRegex??Or.escapeRegex}a(gf,"getEscapeRegex");function yf(e){return e?.escapeString??Or.escapeString}a(yf,"getEscapeString");function $p(e){return{callToJSON:e?.callToJSON??Or.callToJSON,colors:e?.highlight?N2():F2(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:Or.compareKeys,escapeRegex:gf(e),escapeString:yf(e),indent:e?.min?"":L2(e?.indent??Or.indent),maxDepth:e?.maxDepth??Or.maxDepth,maxWidth:e?.maxWidth??Or.maxWidth,min:e?.min??Or.min,plugins:e?.plugins??Or.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:hf(e),spacingInner:e?.min?" ":`
|
|
241
|
+
`,spacingOuter:e?.min?"":`
|
|
242
|
+
`}}a($p,"getConfig");function L2(e){return Array.from({length:e+1}).join(" ")}a(L2,"createIndent");function Ir(e,t){if(t&&(D2(t),t.plugins)){let n=ff(t.plugins,e);if(n!==null)return pf(n,e,$p(t),"",0,[])}let r=uf(e,hf(t),gf(t),yf(t));return r!==null?r:df(e,$p(t),"",0,[])}a(Ir,"format");var bf={AsymmetricMatcher:XP,DOMCollection:rk,DOMElement:sk,Immutable:bk,ReactElement:_k,ReactTestComponent:kk,Error:Mk},$1={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Bk={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Sa="\u2026";function M2(e,t){let r=$1[Bk[t]]||$1[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}a(M2,"colorise");function B2({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:i=1/0,breakLength:s=1/0,seen:l=[],truncate:c=1/0,stylize:u=String}={},p){let f={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(i),breakLength:Number(s),truncate:Number(c),seen:l,inspect:p,stylize:u};return f.colors&&(f.stylize=M2),f}a(B2,"normaliseOptions");function $2(e){return e>="\uD800"&&e<="\uDBFF"}a($2,"isHighSurrogate");function hn(e,t,r=Sa){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let i=t-n;return i>0&&$2(e[i-1])&&(i=i-1),`${e.slice(0,i)}${r}`}return e}a(hn,"truncate");function Er(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let i=t.truncate,s="",l="",c="";for(let u=0;u<o;u+=1){let p=u+1===e.length,f=u+2===e.length;c=`${Sa}(${e.length-u})`;let m=e[u];t.truncate=i-s.length-(p?0:n.length);let g=l||r(m,t)+(p?"":n),b=s.length+g.length,y=b+c.length;if(p&&b>i&&s.length+c.length<=i||!p&&!f&&y>i||(l=p?"":r(e[u+1],t)+(f?"":n),!p&&f&&y>i&&b+l.length>i))break;if(s+=g,!p&&!f&&b+l.length>=i){c=`${Sa}(${e.length-u-1})`;break}c=""}return`${s}${c}`}a(Er,"inspectList");function j2(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}a(j2,"quoteComplexKey");function wa([e,t],r){return r.truncate-=2,typeof e=="string"?e=j2(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}a(wa,"inspectProperty");function U2(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Er(e,t);t.truncate-=n.length;let o="";return r.length&&(o=Er(r.map(i=>[i,e[i]]),t,wa)),`[ ${n}${o?`, ${o}`:""} ]`}a(U2,"inspectArray");var $k=a(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Ur(e,t){let r=$k(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let s=0;s<e.length;s++){let l=`${t.stylize(hn(e[s],t.truncate),"number")}${s===e.length-1?"":", "}`;if(t.truncate-=l.length,e[s]!==e.length&&t.truncate<=3){o+=`${Sa}(${e.length-e[s]+1})`;break}o+=l}let i="";return n.length&&(i=Er(n.map(s=>[s,e[s]]),t,wa)),`${r}[ ${o}${i?`, ${i}`:""} ]`}a(Ur,"inspectTypedArray");function z2(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${hn(n[1],t.truncate-o.length-1)}`,"date")}a(z2,"inspectDate");function jp(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${hn(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}a(jp,"inspectFunction");function H2([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}a(H2,"inspectMapEntry");function V2(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}a(V2,"mapToEntries");function W2(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Er(V2(e),t,H2)} }`)}a(W2,"inspectMap");var jk=Number.isNaN||(e=>e!==e);function Up(e,t){return jk(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(hn(String(e),t.truncate),"number")}a(Up,"inspectNumber");function zp(e,t){let r=hn(e.toString(),t.truncate-1);return r!==Sa&&(r+="n"),t.stylize(r,"bigint")}a(zp,"inspectBigInt");function J2(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${hn(o,n)}/${r}`,"regexp")}a(J2,"inspectRegExp");function q2(e){let t=[];return e.forEach(r=>{t.push(r)}),t}a(q2,"arrayFromSet");function G2(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Er(q2(e),t)} }`)}a(G2,"inspectSet");var j1=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),Uk={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},zk=16,Hk=4;function Y2(e){return Uk[e]||`\\u${`0000${e.charCodeAt(0).toString(zk)}`.slice(-Hk)}`}a(Y2,"escape");function Hp(e,t){return j1.test(e)&&(e=e.replace(j1,Y2)),t.stylize(`'${hn(e,t.truncate-2)}'`,"string")}a(Hp,"inspectString");function Vp(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}a(Vp,"inspectSymbol");var Vk=a(()=>"Promise{\u2026}","getPromiseValue"),Wk=Vk;function Di(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Er(r.map(l=>[l,e[l]]),t,wa),i=Er(n.map(l=>[l,e[l]]),t,wa);t.seen.pop();let s="";return o&&i&&(s=", "),`{ ${o}${s}${i} }`}a(Di,"inspectObject");var Pp=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function K2(e,t){let r="";return Pp&&Pp in e&&(r=e[Pp]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Di(e,t)}`}a(K2,"inspectClass");function X2(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Er(e,t)} ]`)}a(X2,"inspectArguments");var Jk=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Z2(e,t){let r=Object.getOwnPropertyNames(e).filter(s=>Jk.indexOf(s)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=hn(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let i=Er(r.map(s=>[s,e[s]]),t,wa);return`${n}${o}${i?` { ${i} }`:""}`}a(Z2,"inspectObject");function Q2([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}a(Q2,"inspectAttribute");function Ql(e,t){return Er(e,t,eS,`
|
|
243
|
+
`)}a(Ql,"inspectNodeCollection");function eS(e,t){switch(e.nodeType){case 1:return vf(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}a(eS,"inspectNode");function vf(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),i=t.stylize(">","special"),s=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=Er(r.map(p=>[p,e.getAttribute(p)]),t,Q2," ")),t.truncate-=l.length;let c=t.truncate,u=Ql(e.children,t);return u&&u.length>c&&(u=`${Sa}(${e.children.length})`),`${o}${l}${i}${u}${s}`}a(vf,"inspectHTML");var qk=typeof Symbol=="function"&&typeof Symbol.for=="function",kp=qk?Symbol.for("chai/inspect"):"@@chai/inspect",Dp=Symbol.for("nodejs.util.inspect.custom"),U1=new WeakMap,z1={},H1={undefined:a((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:a((e,t)=>t.stylize("null","null"),"null"),boolean:a((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:a((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Up,Number:Up,bigint:zp,BigInt:zp,string:Hp,String:Hp,function:jp,Function:jp,symbol:Vp,Symbol:Vp,Array:U2,Date:z2,Map:W2,Set:G2,RegExp:J2,Promise:Wk,WeakSet:a((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:a((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:X2,Int8Array:Ur,Uint8Array:Ur,Uint8ClampedArray:Ur,Int16Array:Ur,Uint16Array:Ur,Int32Array:Ur,Uint32Array:Ur,Float32Array:Ur,Float64Array:Ur,Generator:a(()=>"","Generator"),DataView:a(()=>"","DataView"),ArrayBuffer:a(()=>"","ArrayBuffer"),Error:Z2,HTMLCollection:Ql,NodeList:Ql},Gk=a((e,t,r,n)=>kp in e&&typeof e[kp]=="function"?e[kp](t):Dp in e&&typeof e[Dp]=="function"?e[Dp](t.depth,t,n):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&U1.has(e.constructor)?U1.get(e.constructor)(e,t):z1[r]?z1[r](e,t):"","inspectCustom"),Yk=Object.prototype.toString;function Ni(e,t={}){let r=B2(t,Ni),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=Yk.call(e).slice(8,-1)),o in H1)return H1[o](e,r);if(n&&e){let s=Gk(e,r,o,Ni);if(s)return typeof s=="string"?s:Ni(s,r)}let i=e?Object.getPrototypeOf(e):!1;return i===Object.prototype||i===null?Di(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?vf(e,r):"constructor"in e?e.constructor!==Object?K2(e,r):Di(e,r):e===Object(e)?Di(e,r):r.stylize(String(e),o)}a(Ni,"inspect");var{AsymmetricMatcher:Kk,DOMCollection:Xk,DOMElement:Zk,Immutable:Qk,ReactElement:eD,ReactTestComponent:tD}=bf,V1=[tD,eD,Zk,Xk,Qk,Kk];function xa(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,i;try{i=Ir(e,{maxDepth:t,escapeString:!1,plugins:V1,...n})}catch{i=Ir(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:V1,...n})}return i.length>=o&&t>1?xa(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):i}a(xa,"stringify");var rD=/%[sdjifoOc%]/g;function tS(...e){if(typeof e[0]!="string"){let i=[];for(let s=0;s<e.length;s++)i.push(va(e[s],{depth:0,colors:!1}));return i.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(rD,i=>{if(i==="%%")return"%";if(r>=t)return i;switch(i){case"%s":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:typeof s=="number"&&s===0&&1/s<0?"-0":typeof s=="object"&&s!==null?typeof s.toString=="function"&&s.toString!==Object.prototype.toString?s.toString():va(s,{depth:0,colors:!1}):String(s)}case"%d":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number(s).toString()}case"%i":{let s=e[r++];return typeof s=="bigint"?`${s.toString()}n`:Number.parseInt(String(s)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return va(e[r++],{showHidden:!0,showProxy:!0});case"%O":return va(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(s){let l=s.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw s}default:return i}});for(let i=e[r];r<t;i=e[++r])i===null||typeof i!="object"?o+=` ${i}`:o+=` ${va(i)}`;return o}a(tS,"format");function va(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Ni(e,t)}a(va,"inspect");function rS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}a(rS,"getDefaultExportFromCjs");function nD(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}a(nD,"assertTypes");function oD(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}a(oD,"isObject");function nS(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}a(nS,"isFinalObj");function ec(e){return Object.prototype.toString.apply(e).slice(8,-1)}a(ec,"getType");function oS(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}a(oS,"collectOwnProperties");function Ef(e){let t=new Set;return nS(e)?[]:(oS(e,t),Array.from(t))}a(Ef,"getOwnProperties");var aS={forceWritable:!1};function Wp(e,t=aS){return tc(e,new WeakMap,t)}a(Wp,"deepClone");function tc(e,t,r=aS){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=tc(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let i=Ef(e);for(let s of i){let l=Object.getOwnPropertyDescriptor(e,s);if(!l)continue;let c=tc(e[s],t,r);r.forceWritable?Object.defineProperty(o,s,{enumerable:l.enumerable,configurable:!0,writable:!0,value:c}):"get"in l?Object.defineProperty(o,s,{...l,get(){return c}}):Object.defineProperty(o,s,{...l,value:c})}return o}return e}a(tc,"clone");function aD(){}a(aD,"noop");var kt=-1,_t=1,Ze=0,iS=class{0;1;constructor(t,r){this[0]=t,this[1]=r}};a(iS,"Diff");var Ge=iS;function sS(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(i,o)===t.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}a(sS,"diff_commonPrefix");function Sf(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),o=n,i=0;for(;r<o;)e.substring(e.length-o,e.length-i)===t.substring(t.length-o,t.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}a(Sf,"diff_commonSuffix");function Jp(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let o=Math.min(r,n);if(e===t)return o;let i=0,s=1;for(;;){let l=e.substring(o-s),c=t.indexOf(l);if(c===-1)return i;s+=c,(c===0||e.substring(o-s)===t.substring(0,s))&&(i=s,s++)}}a(Jp,"diff_commonOverlap_");function lS(e){let t=!1,r=[],n=0,o=null,i=0,s=0,l=0,c=0,u=0;for(;i<e.length;)e[i][0]===Ze?(r[n++]=i,s=c,l=u,c=0,u=0,o=e[i][1]):(e[i][0]===_t?c+=e[i][1].length:u+=e[i][1].length,o&&o.length<=Math.max(s,l)&&o.length<=Math.max(c,u)&&(e.splice(r[n-1],0,new Ge(kt,o)),e[r[n-1]+1][0]=_t,n--,n--,i=n>0?r[n-1]:-1,s=0,l=0,c=0,u=0,o=null,t=!0)),i++;for(t&&wf(e),cS(e),i=1;i<e.length;){if(e[i-1][0]===kt&&e[i][0]===_t){let p=e[i-1][1],f=e[i][1],m=Jp(p,f),g=Jp(f,p);m>=g?(m>=p.length/2||m>=f.length/2)&&(e.splice(i,0,new Ge(Ze,f.substring(0,m))),e[i-1][1]=p.substring(0,p.length-m),e[i+1][1]=f.substring(m),i++):(g>=p.length/2||g>=f.length/2)&&(e.splice(i,0,new Ge(Ze,p.substring(0,g))),e[i-1][0]=_t,e[i-1][1]=f.substring(0,f.length-g),e[i+1][0]=kt,e[i+1][1]=p.substring(g),i++),i++}i++}}a(lS,"diff_cleanupSemantic");var W1=/[^a-z0-9]/i,J1=/\s/,q1=/[\r\n]/,iD=/\n\r?\n$/,sD=/^\r?\n\r?\n/;function cS(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Ze&&e[t+1][0]===Ze){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],i=Sf(r,n);if(i){let p=n.substring(n.length-i);r=r.substring(0,r.length-i),n=p+n.substring(0,n.length-i),o=p+o}let s=r,l=n,c=o,u=Ii(r,n)+Ii(n,o);for(;n.charAt(0)===o.charAt(0);){r+=n.charAt(0),n=n.substring(1)+o.charAt(0),o=o.substring(1);let p=Ii(r,n)+Ii(n,o);p>=u&&(u=p,s=r,l=n,c=o)}e[t-1][1]!==s&&(s?e[t-1][1]=s:(e.splice(t-1,1),t--),e[t][1]=l,c?e[t+1][1]=c:(e.splice(t+1,1),t--))}t++}}a(cS,"diff_cleanupSemanticLossless");function wf(e){e.push(new Ge(Ze,""));let t=0,r=0,n=0,o="",i="",s;for(;t<e.length;)switch(e[t][0]){case _t:n++,i+=e[t][1],t++;break;case kt:r++,o+=e[t][1],t++;break;case Ze:r+n>1?(r!==0&&n!==0&&(s=sS(i,o),s!==0&&(t-r-n>0&&e[t-r-n-1][0]===Ze?e[t-r-n-1][1]+=i.substring(0,s):(e.splice(0,0,new Ge(Ze,i.substring(0,s))),t++),i=i.substring(s),o=o.substring(s)),s=Sf(i,o),s!==0&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ge(kt,o)),t++),i.length&&(e.splice(t,0,new Ge(_t,i)),t++),t++):t!==0&&e[t-1][0]===Ze?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",i="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Ze&&e[t+1][0]===Ze&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),l=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),l=!0)),t++;l&&wf(e)}a(wf,"diff_cleanupMerge");function Ii(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(W1),i=n.match(W1),s=o&&r.match(J1),l=i&&n.match(J1),c=s&&r.match(q1),u=l&&n.match(q1),p=c&&e.match(iD),f=u&&t.match(sD);return p||f?5:c||u?4:o&&!s&&l?3:s||l?2:o||i?1:0}a(Ii,"diff_cleanupSemanticScore_");var uS="Compared values have no visual difference.",lD="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Yl={},G1;function dS(){if(G1)return Yl;G1=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.default=m;let e="diff-sequences",t=0,r=a((g,b,y,S,v)=>{let w=0;for(;g<b&&y<S&&v(g,y);)g+=1,y+=1,w+=1;return w},"countCommonItemsF"),n=a((g,b,y,S,v)=>{let w=0;for(;g<=b&&y<=S&&v(b,S);)b-=1,S-=1,w+=1;return w},"countCommonItemsR"),o=a((g,b,y,S,v,w,E)=>{let x=0,A=-g,_=w[x],C=_;w[x]+=r(_+1,b,S+_-A+1,y,v);let O=g<E?g:E;for(x+=1,A+=2;x<=O;x+=1,A+=2){if(x!==g&&C<w[x])_=w[x];else if(_=C+1,b<=_)return x-1;C=w[x],w[x]=_+r(_+1,b,S+_-A+1,y,v)}return E},"extendPathsF"),i=a((g,b,y,S,v,w,E)=>{let x=0,A=g,_=w[x],C=_;w[x]-=n(b,_-1,y,S+_-A-1,v);let O=g<E?g:E;for(x+=1,A-=2;x<=O;x+=1,A-=2){if(x!==g&&w[x]<C)_=w[x];else if(_=C-1,_<b)return x-1;C=w[x],w[x]=_-n(b,_-1,y,S+_-A-1,v)}return E},"extendPathsR"),s=a((g,b,y,S,v,w,E,x,A,_,C)=>{let O=S-b,I=y-b,D=v-S-I,j=-D-(g-1),$=-D+(g-1),N=t,F=g<x?g:x;for(let B=0,M=-g;B<=F;B+=1,M+=2){let W=B===0||B!==g&&N<E[B],z=W?E[B]:N,V=W?z:z+1,te=O+V-M,H=r(V+1,y,te+1,v,w),ee=V+H;if(N=E[B],E[B]=ee,j<=M&&M<=$){let he=(g-1-(M+D))/2;if(he<=_&&A[he]-1<=ee){let re=O+z-(W?M+1:M-1),ce=n(b,z,S,re,w),me=z-ce,xe=re-ce,De=me+1,Ye=xe+1;C.nChangePreceding=g-1,g-1===De+Ye-b-S?(C.aEndPreceding=b,C.bEndPreceding=S):(C.aEndPreceding=De,C.bEndPreceding=Ye),C.nCommonPreceding=ce,ce!==0&&(C.aCommonPreceding=De,C.bCommonPreceding=Ye),C.nCommonFollowing=H,H!==0&&(C.aCommonFollowing=V+1,C.bCommonFollowing=te+1);let Ue=ee+1,et=te+H+1;return C.nChangeFollowing=g-1,g-1===y+v-Ue-et?(C.aStartFollowing=y,C.bStartFollowing=v):(C.aStartFollowing=Ue,C.bStartFollowing=et),!0}}}return!1},"extendOverlappablePathsF"),l=a((g,b,y,S,v,w,E,x,A,_,C)=>{let O=v-y,I=y-b,D=v-S-I,j=D-g,$=D+g,N=t,F=g<_?g:_;for(let B=0,M=g;B<=F;B+=1,M-=2){let W=B===0||B!==g&&A[B]<N,z=W?A[B]:N,V=W?z:z-1,te=O+V-M,H=n(b,V-1,S,te-1,w),ee=V-H;if(N=A[B],A[B]=ee,j<=M&&M<=$){let he=(g+(M-D))/2;if(he<=x&&ee-1<=E[he]){let re=te-H;if(C.nChangePreceding=g,g===ee+re-b-S?(C.aEndPreceding=b,C.bEndPreceding=S):(C.aEndPreceding=ee,C.bEndPreceding=re),C.nCommonPreceding=H,H!==0&&(C.aCommonPreceding=ee,C.bCommonPreceding=re),C.nChangeFollowing=g-1,g===1)C.nCommonFollowing=0,C.aStartFollowing=y,C.bStartFollowing=v;else{let ce=O+z-(W?M-1:M+1),me=r(z,y,ce,v,w);C.nCommonFollowing=me,me!==0&&(C.aCommonFollowing=z,C.bCommonFollowing=ce);let xe=z+me,De=ce+me;g-1===y+v-xe-De?(C.aStartFollowing=y,C.bStartFollowing=v):(C.aStartFollowing=xe,C.bStartFollowing=De)}return!0}}}return!1},"extendOverlappablePathsR"),c=a((g,b,y,S,v,w,E,x,A)=>{let _=S-b,C=v-y,O=y-b,I=v-S,P=I-O,D=O,j=O;if(E[0]=b-1,x[0]=y,P%2===0){let $=(g||P)/2,N=(O+I)/2;for(let F=1;F<=N;F+=1)if(D=o(F,y,v,_,w,E,D),F<$)j=i(F,b,S,C,w,x,j);else if(l(F,b,y,S,v,w,E,D,x,j,A))return}else{let $=((g||P)+1)/2,N=(O+I+1)/2,F=1;for(D=o(F,y,v,_,w,E,D),F+=1;F<=N;F+=1)if(j=i(F-1,b,S,C,w,x,j),F<$)D=o(F,y,v,_,w,E,D);else if(s(F,b,y,S,v,w,E,D,x,j,A))return}throw new Error(`${e}: no overlap aStart=${b} aEnd=${y} bStart=${S} bEnd=${v}`)},"divide"),u=a((g,b,y,S,v,w,E,x,A,_)=>{if(v-S<y-b){if(w=!w,w&&E.length===1){let{foundSubsequence:ee,isCommon:he}=E[0];E[1]={foundSubsequence:a((re,ce,me)=>{ee(re,me,ce)},"foundSubsequence"),isCommon:a((re,ce)=>he(ce,re),"isCommon")}}let te=b,H=y;b=S,y=v,S=te,v=H}let{foundSubsequence:C,isCommon:O}=E[w?1:0];c(g,b,y,S,v,O,x,A,_);let{nChangePreceding:I,aEndPreceding:P,bEndPreceding:D,nCommonPreceding:j,aCommonPreceding:$,bCommonPreceding:N,nCommonFollowing:F,aCommonFollowing:B,bCommonFollowing:M,nChangeFollowing:W,aStartFollowing:z,bStartFollowing:V}=_;b<P&&S<D&&u(I,b,P,S,D,w,E,x,A,_),j!==0&&C(j,$,N),F!==0&&C(F,B,M),z<y&&V<v&&u(W,z,y,V,v,w,E,x,A,_)},"findSubsequences"),p=a((g,b)=>{if(typeof b!="number")throw new TypeError(`${e}: ${g} typeof ${typeof b} is not a number`);if(!Number.isSafeInteger(b))throw new RangeError(`${e}: ${g} value ${b} is not a safe integer`);if(b<0)throw new RangeError(`${e}: ${g} value ${b} is a negative integer`)},"validateLength"),f=a((g,b)=>{let y=typeof b;if(y!=="function")throw new TypeError(`${e}: ${g} typeof ${y} is not a function`)},"validateCallback");function m(g,b,y,S){p("aLength",g),p("bLength",b),f("isCommon",y),f("foundSubsequence",S);let v=r(0,g,0,b,y);if(v!==0&&S(v,0,0),g!==v||b!==v){let w=v,E=v,x=n(w,g-1,E,b-1,y),A=g-x,_=b-x,C=v+x;g!==C&&b!==C&&u(0,w,A,E,_,!1,[{foundSubsequence:S,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),x!==0&&S(x,A,_)}}return a(m,"diffSequence"),Yl}a(dS,"requireBuild");var cD=dS(),pS=rS(cD);function fS(e,t){return e.replace(/\s+$/,r=>t(r))}a(fS,"formatTrailingSpaces");function dc(e,t,r,n,o,i){return e.length!==0?r(`${n} ${fS(e,o)}`):n!==" "?r(n):t&&i.length!==0?r(`${n} ${i}`):""}a(dc,"printDiffLine");function xf(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dc(e,t,r,n,o,i)}a(xf,"printDeleteLine");function Tf(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dc(e,t,r,n,o,i)}a(Tf,"printInsertLine");function Af(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:i}){return dc(e,t,r,n,o,i)}a(Af,"printCommonLine");function qp(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}a(qp,"createPatchMark");function mS(e,t){let r=e.length,n=t.contextLines,o=n+n,i=r,s=!1,l=0,c=0;for(;c!==r;){let x=c;for(;c!==r&&e[c][0]===Ze;)c+=1;if(x!==c)if(x===0)c>n&&(i-=c-n,s=!0);else if(c===r){let A=c-x;A>n&&(i-=A-n,s=!0)}else{let A=c-x;A>o&&(i-=A-o,l+=1)}for(;c!==r&&e[c][0]!==Ze;)c+=1}let u=l!==0||s;l!==0?i+=l+1:s&&(i+=1);let p=i-1,f=[],m=0;u&&f.push("");let g=0,b=0,y=0,S=0,v=a(x=>{let A=f.length;f.push(Af(x,A===0||A===p,t)),y+=1,S+=1},"pushCommonLine"),w=a(x=>{let A=f.length;f.push(xf(x,A===0||A===p,t)),y+=1},"pushDeleteLine"),E=a(x=>{let A=f.length;f.push(Tf(x,A===0||A===p,t)),S+=1},"pushInsertLine");for(c=0;c!==r;){let x=c;for(;c!==r&&e[c][0]===Ze;)c+=1;if(x!==c)if(x===0){c>n&&(x=c-n,g=x,b=x,y=g,S=b);for(let A=x;A!==c;A+=1)v(e[A][1])}else if(c===r){let A=c-x>n?x+n:c;for(let _=x;_!==A;_+=1)v(e[_][1])}else{let A=c-x;if(A>o){let _=x+n;for(let O=x;O!==_;O+=1)v(e[O][1]);f[m]=qp(g,y,b,S,t),m=f.length,f.push("");let C=A-o;g=y+C,b=S+C,y=g,S=b;for(let O=c-n;O!==c;O+=1)v(e[O][1])}else for(let _=x;_!==c;_+=1)v(e[_][1])}for(;c!==r&&e[c][0]===kt;)w(e[c][1]),c+=1;for(;c!==r&&e[c][0]===_t;)E(e[c][1]),c+=1}return u&&(f[m]=qp(g,y,b,S,t)),f.join(`
|
|
244
|
+
`)}a(mS,"joinAlignedDiffsNoExpand");function hS(e,t){return e.map((r,n,o)=>{let i=r[1],s=n===0||n===o.length-1;switch(r[0]){case kt:return xf(i,s,t);case _t:return Tf(i,s,t);default:return Af(i,s,t)}}).join(`
|
|
245
|
+
`)}a(hS,"joinAlignedDiffsExpand");var Np=a(e=>e,"noColor"),gS=5,uD=0;function yS(){return{aAnnotation:"Expected",aColor:mn.green,aIndicator:"-",bAnnotation:"Received",bColor:mn.red,bIndicator:"+",changeColor:mn.inverse,changeLineTrailingSpaceColor:Np,commonColor:mn.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Np,compareKeys:void 0,contextLines:gS,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:mn.yellow,printBasicPrototype:!1,truncateThreshold:uD,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Np}}a(yS,"getDefaultOptions");function bS(e){return e&&typeof e=="function"?e:void 0}a(bS,"getCompareKeys");function vS(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:gS}a(vS,"getContextLines");function $n(e={}){return{...yS(),...e,compareKeys:bS(e.compareKeys),contextLines:vS(e.contextLines)}}a($n,"normalizeDiffOptions");function Ao(e){return e.length===1&&e[0].length===0}a(Ao,"isEmptyString");function ES(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case kt:t+=1;break;case _t:r+=1;break}}),{a:t,b:r}}a(ES,"countChanges");function SS({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:i,includeChangeCounts:s,omitAnnotationLines:l},c){if(l)return"";let u="",p="";if(s){let g=String(c.a),b=String(c.b),y=n.length-e.length,S=" ".repeat(Math.max(0,y)),v=" ".repeat(Math.max(0,-y)),w=b.length-g.length,E=" ".repeat(Math.max(0,w)),x=" ".repeat(Math.max(0,-w));u=`${S} ${r} ${E}${g}`,p=`${v} ${i} ${x}${b}`}let f=`${r} ${e}${u}`,m=`${i} ${n}${p}`;return`${t(f)}
|
|
246
|
+
${o(m)}
|
|
247
|
+
|
|
248
|
+
`}a(SS,"printAnnotation");function pc(e,t,r){return SS(r,ES(e))+(r.expand?hS(e,r):mS(e,r))+(t?r.truncateAnnotationColor(`
|
|
249
|
+
${r.truncateAnnotation}`):"")}a(pc,"printDiffLines");function Bi(e,t,r){let n=$n(r),[o,i]=Cf(Ao(e)?[]:e,Ao(t)?[]:t,n);return pc(o,i,n)}a(Bi,"diffLinesUnified");function wS(e,t,r,n,o){if(Ao(e)&&Ao(r)&&(e=[],r=[]),Ao(t)&&Ao(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Bi(e,t,o);let[i,s]=Cf(r,n,o),l=0,c=0;return i.forEach(u=>{switch(u[0]){case kt:u[1]=e[l],l+=1;break;case _t:u[1]=t[c],c+=1;break;default:u[1]=t[c],l+=1,c+=1}}),pc(i,s,$n(o))}a(wS,"diffLinesUnified2");function Cf(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=n?Math.min(e.length,o):e.length,s=n?Math.min(t.length,o):t.length,l=i!==e.length||s!==t.length,c=a((g,b)=>e[g]===t[b],"isCommon"),u=[],p=0,f=0,m=a((g,b,y)=>{for(;p!==b;p+=1)u.push(new Ge(kt,e[p]));for(;f!==y;f+=1)u.push(new Ge(_t,t[f]));for(;g!==0;g-=1,p+=1,f+=1)u.push(new Ge(Ze,t[f]))},"foundSubsequence");for(pS(i,s,c,m);p!==i;p+=1)u.push(new Ge(kt,e[p]));for(;f!==s;f+=1)u.push(new Ge(_t,t[f]));return[u,l]}a(Cf,"diffLinesRaw");function Gp(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}a(Gp,"getType");function Yp(e){return e.includes(`\r
|
|
250
|
+
`)?`\r
|
|
251
|
+
`:`
|
|
252
|
+
`}a(Yp,"getNewLineSymbol");function xS(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),i=e.length,s=t.length;if(n){let g=e.includes(`
|
|
253
|
+
`),b=t.includes(`
|
|
254
|
+
`),y=Yp(e),S=Yp(t),v=g?`${e.split(y,o).join(y)}
|
|
255
|
+
`:e,w=b?`${t.split(S,o).join(S)}
|
|
256
|
+
`:t;i=v.length,s=w.length}let l=i!==e.length||s!==t.length,c=a((g,b)=>e[g]===t[b],"isCommon"),u=0,p=0,f=[],m=a((g,b,y)=>{u!==b&&f.push(new Ge(kt,e.slice(u,b))),p!==y&&f.push(new Ge(_t,t.slice(p,y))),u=b+g,p=y+g,f.push(new Ge(Ze,t.slice(y,p)))},"foundSubsequence");return pS(i,s,c,m),u!==i&&f.push(new Ge(kt,e.slice(u))),p!==s&&f.push(new Ge(_t,t.slice(p))),[f,l]}a(xS,"diffStrings");function TS(e,t,r){return t.reduce((n,o)=>n+(o[0]===Ze?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}a(TS,"concatenateRelevantDiffs");var AS=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new Ge(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new Ge(this.op,TS(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ge(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){let r=t[1];if(r.includes(`
|
|
257
|
+
`)){let n=r.split(`
|
|
258
|
+
`),o=n.length-1;n.forEach((i,s)=>{s<o?(this.pushSubstring(i),this.pushLine()):i.length!==0&&this.pushSubstring(i)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};a(AS,"ChangeBuffer");var Y1=AS,CS=class{deleteBuffer;insertBuffer;lines;constructor(t,r){this.deleteBuffer=t,this.insertBuffer=r,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let r=t[1].length===0;(!r||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!r||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let r=t[0],n=t[1];if(n.includes(`
|
|
259
|
+
`)){let o=n.split(`
|
|
260
|
+
`),i=o.length-1;o.forEach((s,l)=>{if(l===0){let c=new Ge(r,s);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(c)):(this.pushDiffChangeLines(c),this.flushChangeLines())}else l<i?this.pushDiffCommonLine(new Ge(r,s)):s.length!==0&&this.pushDiffChangeLines(new Ge(r,s))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};a(CS,"CommonBuffer");var dD=CS;function RS(e,t){let r=new Y1(kt,t),n=new Y1(_t,t),o=new dD(r,n);return e.forEach(i=>{switch(i[0]){case kt:r.align(i);break;case _t:n.align(i);break;default:o.align(i)}}),o.getLines()}a(RS,"getAlignedDiffs");function _S(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Ze&&(o!==r||n[1]!==`
|
|
261
|
+
`))}return e.some(r=>r[0]===Ze)}a(_S,"hasCommonDiff");function OS(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
262
|
+
`)||t.includes(`
|
|
263
|
+
`),[o,i]=Rf(n?`${e}
|
|
264
|
+
`:e,n?`${t}
|
|
265
|
+
`:t,!0,r);if(_S(o,n)){let s=$n(r),l=RS(o,s.changeColor);return pc(l,i,s)}}return Bi(e.split(`
|
|
266
|
+
`),t.split(`
|
|
267
|
+
`),r)}a(OS,"diffStringsUnified");function Rf(e,t,r,n){let[o,i]=xS(e,t,n);return r&&lS(o),[o,i]}a(Rf,"diffStringsRaw");function rc(e,t){let{commonColor:r}=$n(t);return r(e)}a(rc,"getCommonMessage");var{AsymmetricMatcher:pD,DOMCollection:fD,DOMElement:mD,Immutable:hD,ReactElement:gD,ReactTestComponent:yD}=bf,IS=[yD,gD,mD,fD,hD,pD,bf.Error],Kp={maxDepth:20,plugins:IS},PS={callToJSON:!1,maxDepth:8,plugins:IS};function kS(e,t,r){if(Object.is(e,t))return"";let n=Gp(e),o=n,i=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),i=o==="string"}if(o!==Gp(t)){let s=function(E){return E.length<=S?E:`${E.slice(0,S)}...`};a(s,"truncate");let{aAnnotation:l,aColor:c,aIndicator:u,bAnnotation:p,bColor:f,bIndicator:m}=$n(r),g=nc(PS,r),b=Ir(e,g),y=Ir(t,g),S=1e5;b=s(b),y=s(y);let v=`${c(`${u} ${l}:`)}
|
|
268
|
+
${b}`,w=`${f(`${m} ${p}:`)}
|
|
269
|
+
${y}`;return`${v}
|
|
270
|
+
|
|
271
|
+
${w}`}if(!i)switch(n){case"string":return Bi(e.split(`
|
|
272
|
+
`),t.split(`
|
|
273
|
+
`),r);case"boolean":case"number":return DS(e,t,r);case"map":return Zl(Xp(e),Xp(t),r);case"set":return Zl(Zp(e),Zp(t),r);default:return Zl(e,t,r)}}a(kS,"diff");function DS(e,t,r){let n=Ir(e,Kp),o=Ir(t,Kp);return n===o?"":Bi(n.split(`
|
|
274
|
+
`),o.split(`
|
|
275
|
+
`),r)}a(DS,"comparePrimitive");function Xp(e){return new Map(Array.from(e.entries()).sort())}a(Xp,"sortMap");function Zp(e){return new Set(Array.from(e.values()).sort())}a(Zp,"sortSet");function Zl(e,t,r){let n,o=!1;try{let s=nc(Kp,r);n=Qp(e,t,s,r)}catch{o=!0}let i=rc(uS,r);if(n===void 0||n===i){let s=nc(PS,r);n=Qp(e,t,s,r),n!==i&&!o&&(n=`${rc(lD,r)}
|
|
276
|
+
|
|
277
|
+
${n}`)}return n}a(Zl,"compareObjects");function nc(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=$n(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}a(nc,"getFormatOptions");function Qp(e,t,r,n){let o={...r,indent:0},i=Ir(e,o),s=Ir(t,o);if(i===s)return rc(uS,n);{let l=Ir(e,r),c=Ir(t,r);return wS(l.split(`
|
|
278
|
+
`),c.split(`
|
|
279
|
+
`),i.split(`
|
|
280
|
+
`),s.split(`
|
|
281
|
+
`),n)}}a(Qp,"getObjectsDifference");var K1=2e4;function ef(e){return ec(e)==="Object"&&typeof e.asymmetricMatch=="function"}a(ef,"isAsymmetricMatcher");function tf(e,t){let r=ec(e),n=ec(t);return r===n&&(r==="Object"||r==="Array")}a(tf,"isReplaceable");function NS(e,t,r){let{aAnnotation:n,bAnnotation:o}=$n(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=K1&&e.length<=K1&&t!==e){if(t.includes(`
|
|
282
|
+
`)||e.includes(`
|
|
283
|
+
`))return OS(t,e,r);let[p]=Rf(t,e,!0),f=p.some(y=>y[0]===Ze),m=FS(n,o),g=m(n)+MS(rf(p,kt,f)),b=m(o)+LS(rf(p,_t,f));return`${g}
|
|
284
|
+
${b}`}let i=Wp(t,{forceWritable:!0}),s=Wp(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:c}=_f(s,i);return kS(l,c,r)}a(NS,"printDiffOrStringify");function _f(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):tf(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),Ef(t).forEach(o=>{let i=t[o],s=e[o];if(ef(i))i.asymmetricMatch(s)&&(e[o]=i);else if(ef(s))s.asymmetricMatch(i)&&(t[o]=s);else if(tf(s,i)){let l=_f(s,i,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}a(_f,"replaceAsymmetricMatcher");function FS(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}a(FS,"getLabelPrinter");var bD="\xB7";function Of(e){return e.replace(/\s+$/gm,t=>bD.repeat(t.length))}a(Of,"replaceTrailingSpaces");function LS(e){return mn.red(Of(xa(e)))}a(LS,"printReceived");function MS(e){return mn.green(Of(xa(e)))}a(MS,"printExpected");function rf(e,t,r){return e.reduce((n,o)=>n+(o[0]===Ze?o[1]:o[0]===t?r?mn.inverse(o[1]):o[1]:""),"")}a(rf,"getCommonAndChangedSubstrings");var vD="@@__IMMUTABLE_RECORD__@@",ED="@@__IMMUTABLE_ITERABLE__@@";function BS(e){return e&&(e[ED]||e[vD])}a(BS,"isImmutable");var SD=Object.getPrototypeOf({});function nf(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}a(nf,"getUnserializableMessage");function fn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&Pi(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Pi(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Pi(()=>r.name??(r.name=e.name)),e.cause!=null&&Pi(()=>r.cause??(r.cause=fn(e.cause,t)))),fn(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(BS(e))return fn(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${tS(e.sample)}`;if(typeof e.toJSON=="function")return fn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=fn(n,t)}catch(i){r[o]=nf(i)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==SD;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=fn(e[o],t)}catch(i){delete r[o],r[o]=nf(i)}}),n=Object.getPrototypeOf(n);return r}}a(fn,"serializeValue");function Pi(e){try{return e()}catch{}}a(Pi,"safe");function $S(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}a($S,"normalizeErrorMessage");function fc(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=NS(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=xa(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=xa(n.actual,10));try{typeof n.message=="string"&&(n.message=$S(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=fc(n.cause,t,r))}catch{}try{return fn(n)}catch(o){return fn(new Error(`Failed to fully serialize error: ${o?.message}
|
|
285
|
+
Inner error message: ${n?.message}`))}}a(fc,"processError");Te();st();We();var If=globalThis.__STORYBOOK_ADDONS_PREVIEW,wD=new Error("This function ran after the play function completed. Did you forget to `await` it?"),jS=a(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),xD=a(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),TD=a(e=>{if(!jS(e)&&!xD(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!jS(t)},"isInstrumentable"),AD=a(e=>{try{return new e.constructor}catch{return{}}},"construct"),Pf=a(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),US=a((e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},"getRetainedState"),zS=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=a(()=>{try{this.state=oe.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=a(()=>{try{oe.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=a(({storyId:c,renderPhase:u,isPlaying:p=!0,isDebugging:f=!1})=>{let m=this.getState(c);this.setState(c,{...Pf(),...US(m,f),renderPhase:u||m.renderPhase,shadowCalls:f?m.shadowCalls:[],chainedCallIds:f?m.chainedCallIds:new Set,playUntil:f?m.playUntil:void 0,isPlaying:p,isDebugging:f}),this.sync(c)},"resetState"),r=a(c=>({storyId:u,playUntil:p})=>{this.getState(u).isDebugging||this.setState(u,({calls:m})=>({calls:[],shadowCalls:m.map(g=>({...g,status:"waiting"})),isDebugging:!0}));let f=this.getLog(u);this.setState(u,({shadowCalls:m})=>{if(p||!f.length)return{playUntil:p};let g=m.findIndex(b=>b.id===f[0].callId);return{playUntil:m.slice(0,g).filter(b=>b.interceptable&&!b.ancestors?.length).slice(-1)[0]?.id}}),c.emit(ho,{storyId:u,isDebugging:!0})},"start"),n=a(c=>({storyId:u})=>{let p=this.getLog(u).filter(m=>!m.ancestors?.length),f=p.reduceRight((m,g,b)=>m>=0||g.status==="waiting"?m:b,-1);r(c)({storyId:u,playUntil:p[f-1]?.callId})},"back"),o=a(c=>({storyId:u,callId:p})=>{let{calls:f,shadowCalls:m,resolvers:g}=this.getState(u),b=f.find(({id:S})=>S===p),y=m.find(({id:S})=>S===p);if(!b&&y&&Object.values(g).length>0){let S=this.getLog(u).find(v=>v.status==="waiting")?.callId;y.id!==S&&this.setState(u,{playUntil:y.id}),Object.values(g).forEach(v=>v())}else r(c)({storyId:u,playUntil:p})},"goto"),i=a(c=>({storyId:u})=>{let{resolvers:p}=this.getState(u);if(Object.values(p).length>0)Object.values(p).forEach(f=>f());else{let f=this.getLog(u).find(m=>m.status==="waiting")?.callId;f?r(c)({storyId:u,playUntil:f}):s({storyId:u})}},"next"),s=a(({storyId:c})=>{this.setState(c,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(c).resolvers).forEach(u=>u())},"end"),l=a(({storyId:c,newPhase:u})=>{let{isDebugging:p}=this.getState(c);if(u==="preparing"&&p)return t({storyId:c,renderPhase:u,isDebugging:p});if(u==="playing")return t({storyId:c,renderPhase:u,isDebugging:p});u==="played"?this.setState(c,{renderPhase:u,isLocked:!1,isPlaying:!1,isDebugging:!1}):u==="errored"?this.setState(c,{renderPhase:u,isLocked:!1,isPlaying:!1}):u==="aborted"?this.setState(c,{renderPhase:u,isLocked:!0,isPlaying:!1}):this.setState(c,{renderPhase:u}),this.sync(c)},"renderPhaseChanged");If&&If.ready().then(()=>{this.channel=If.getChannel(),this.channel.on(ho,t),this.channel.on(vr,l),this.channel.on(_l,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(vt.START,r(this.channel)),this.channel.on(vt.BACK,n(this.channel)),this.channel.on(vt.GOTO,o(this.channel)),this.channel.on(vt.NEXT,i(this.channel)),this.channel.on(vt.END,s)})}getState(t){return this.state[t]||Pf()}setState(t,r){if(t){let n=this.getState(t),o=typeof r=="function"?r(n):r;this.state={...this.state,[t]:{...n,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((n,[o,i])=>{let s=US(i);return s&&(n[o]=Object.assign(Pf(),s)),n},{});let r={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(vt.SYNC,r),this.updateParentWindowState()}getLog(t){let{calls:r,shadowCalls:n}=this.getState(t),o=[...n];r.forEach((s,l)=>{o[l]=s});let i=new Set;return o.reduceRight((s,l)=>(l.args.forEach(c=>{c?.__callId__&&i.add(c.__callId__)}),l.path.forEach(c=>{c.__callId__&&i.add(c.__callId__)}),(l.interceptable||l.exception)&&!i.has(l.id)&&(s.unshift({callId:l.id,status:l.status,ancestors:l.ancestors}),i.add(l.id)),s),[])}instrument(t,r,n=0){if(!TD(t))return t;let{mutate:o=!1,path:i=[]}=r,s=r.getKeys?r.getKeys(t,n):Object.keys(t);return n+=1,s.reduce((l,c)=>{let u=HS(t,c);if(typeof u?.get=="function"){if(u.configurable){let f=a(()=>u?.get?.bind(t)?.(),"getter");Object.defineProperty(l,c,{get:a(()=>this.instrument(f(),{...r,path:i.concat(c)},n),"get")})}return l}let p=t[c];return typeof p!="function"?(l[c]=this.instrument(p,{...r,path:i.concat(c)},n),l):"__originalFn__"in p&&typeof p.__originalFn__=="function"?(l[c]=p,l):(l[c]=(...f)=>this.track(c,p,t,f,r),l[c].__originalFn__=p,Object.defineProperty(l[c],"name",{value:c,writable:!1}),Object.keys(p).length>0&&Object.assign(l[c],this.instrument({...p},{...r,path:i.concat(c)},n)),l)},o?t:AD(t))}track(t,r,n,o,i){let s=o?.[0]?.__storyId__||oe.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:l,ancestors:c}=this.getState(s);this.setState(s,{cursor:l+1});let u=`${c.slice(-1)[0]||s} [${l}] ${t}`,{path:p=[],intercept:f=!1,retain:m=!1}=i,g=typeof f=="function"?f(t,p):f,b={id:u,cursor:l,storyId:s,ancestors:c,path:p,method:t,args:o,interceptable:g,retain:m},S=(g&&!c.length?this.intercept:this.invoke).call(this,r,n,b,i);return this.instrument(S,{...i,mutate:!0,path:[{__callId__:b.id}]})}intercept(t,r,n,o){let{chainedCallIds:i,isDebugging:s,playUntil:l}=this.getState(n.storyId),c=i.has(n.id);return!s||c||l?(l===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(t,r,n,o)):new Promise(u=>{this.setState(n.storyId,({resolvers:p})=>({isLocked:!1,resolvers:{...p,[n.id]:u}}))}).then(()=>(this.setState(n.storyId,u=>{let{[n.id]:p,...f}=u.resolvers;return{isLocked:!0,resolvers:f}}),this.invoke(t,r,n,o)))}invoke(t,r,n,o){let{callRefsByResult:i,renderPhase:s}=this.getState(n.storyId),l=25,c=a((f,m,g)=>{if(g.includes(f))return"[Circular]";if(g=[...g,f],m>l)return"...";if(i.has(f))return i.get(f);if(f instanceof Array)return f.map(b=>c(b,++m,g));if(f instanceof Date)return{__date__:{value:f.toISOString()}};if(f instanceof Error){let{name:b,message:y,stack:S}=f;return{__error__:{name:b,message:y,stack:S}}}if(f instanceof RegExp){let{flags:b,source:y}=f;return{__regexp__:{flags:b,source:y}}}if(f instanceof oe.window?.HTMLElement){let{prefix:b,localName:y,id:S,classList:v,innerText:w}=f,E=Array.from(v);return{__element__:{prefix:b,localName:y,id:S,classNames:E,innerText:w}}}return typeof f=="function"?{__function__:{name:"getMockName"in f?f.getMockName():f.name}}:typeof f=="symbol"?{__symbol__:{description:f.description}}:typeof f=="object"&&f?.constructor?.name&&f?.constructor?.name!=="Object"?{__class__:{name:f.constructor.name}}:Object.prototype.toString.call(f)==="[object Object]"?Object.fromEntries(Object.entries(f).map(([b,y])=>[b,c(y,++m,g)])):f},"serializeValues"),u={...n,args:n.args.map(f=>c(f,0,[]))};n.path.forEach(f=>{f?.__callId__&&this.setState(n.storyId,({chainedCallIds:m})=>({chainedCallIds:new Set(Array.from(m).concat(f.__callId__))}))});let p=a(f=>{if(f instanceof Error){let{name:m,message:g,stack:b,callId:y=n.id}=f,{showDiff:S=void 0,diff:v=void 0,actual:w=void 0,expected:E=void 0}=f.name==="AssertionError"?fc(f):f,x={name:m,message:g,stack:b,callId:y,showDiff:S,diff:v,actual:w,expected:E};if(this.update({...u,status:"error",exception:x}),this.setState(n.storyId,A=>({callRefsByResult:new Map([...Array.from(A.callRefsByResult.entries()),[f,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(f,"callId")||Object.defineProperty(f,"callId",{value:n.id}),f}throw f},"handleException");try{if(s==="played"&&!n.retain)throw wD;let m=(o.getArgs?o.getArgs(n,this.getState(n.storyId)):n.args).map(b=>typeof b!="function"||VS(b)||Object.keys(b).length?b:(...y)=>{let{cursor:S,ancestors:v}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...v,n.id]});let w=a(()=>this.setState(n.storyId,{cursor:S,ancestors:v}),"restore"),E=!1;try{let x=b(...y);return x instanceof Promise?(E=!0,x.finally(w)):x}finally{E||w()}}),g=t.apply(r,m);return g&&["object","function","symbol"].includes(typeof g)&&this.setState(n.storyId,b=>({callRefsByResult:new Map([...Array.from(b.callRefsByResult.entries()),[g,{__callId__:n.id,retain:n.retain}]])})),this.update({...u,status:g instanceof Promise?"active":"done"}),g instanceof Promise?g.then(b=>(this.update({...u,status:"done"}),b),p):g}catch(f){return p(f)}}update(t){this.channel?.emit(vt.CALL,t),this.setState(t.storyId,({calls:r})=>{let n=r.concat(t).reduce((o,i)=>Object.assign(o,{[i.id]:i}),{});return{calls:Object.values(n).sort((o,i)=>o.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let r=a(()=>{let{isLocked:n,isPlaying:o}=this.getState(t),i=this.getLog(t),s=i.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting")?.callId,l=i.some(f=>f.status==="active");if(this.detached||n||l||i.length===0){let m={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:i};this.channel?.emit(vt.SYNC,m);return}let c=i.some(f=>f.status==="done"||f.status==="error"),p={controlStates:{detached:this.detached,start:c,back:c,goto:!0,next:o,end:o},logItems:i,pausedAt:s};this.channel?.emit(vt.SYNC,p)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};a(zS,"Instrumenter");var CD=zS;function $i(e,t={}){try{let r=!1,n=!1;return oe.window?.location?.search?.includes("instrument=true")?r=!0:oe.window?.location?.search?.includes("instrument=false")&&(n=!0),oe.window?.parent===oe.window&&!r||n?e:(oe.window&&!oe.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(oe.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new CD),(oe.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return br.warn(r),e}}a($i,"instrument");function HS(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}a(HS,"getPropertyDescriptor");function VS(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}a(VS,"isClass");We();We();We();We();var RD=ae({"../node_modules/@ngard/tiny-isequal/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return a(function s(l,c,u){var p,f,m,g=t.call(l),b=t.call(c);if(l===c)return!0;if(l==null||c==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(c)>-1)return!0;if(u.push(l,c),g!=b||(p=n(l),f=n(c),p.length!=f.length||p.some(function(y){return!s(l[y],c[y],u)})))return!1;switch(g.slice(8,-1)){case"Symbol":return l.valueOf()==c.valueOf();case"Date":case"Number":return+l==+c||+l!=+l&&+c!=+c;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+c;case"Set":case"Map":p=l.entries(),f=c.entries();do if(!s((m=p.next()).value,f.next().value,u))return!1;while(!m.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),c=new Uint8Array(c);case"DataView":l=new Uint8Array(l.buffer),c=new Uint8Array(c.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=c.length)return!1;for(m=0;m<l.length;m++)if((m in l||m in c)&&(m in l!=m in c||!s(l[m],c[m],u)))return!1;return!0;case"Object":return s(r(l),r(c),u);default:return!1}},"n")(o,i,[])}}()}});function mw(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,o)=>`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}a(mw,"toStartCaseStr");var WS=Se(RD(),1),hw=a(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),_D=a((e,t)=>{let{exists:r,eq:n,neq:o,truthy:i}=e;if(hw([r,n,o,i])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,WS.isEqual)(t,n);if(typeof o<"u")return!(0,WS.isEqual)(t,o);if(typeof r<"u"){let l=typeof t<"u";return r?l:!l}return(typeof i>"u"?!0:i)?!!t:!t},"testValue"),Vl=a((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(hw([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let i=n?t[n]:r[o];return _D(e.if,i)},"includeConditionalArg"),gw={};jo(gw,{argsEnhancers:()=>PD});var yw=a((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),OD=a(e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let i=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([l])=>!!i.test(l)).reduce((l,[c,u])=>(yw(c,t)&&(l[c]=ba(c,{implicit:!0,id:n})),l),{})},"inferActionsFromArgTypesRegex"),ID=a(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([i,s])=>!!s.action).reduce((i,[s,l])=>(yw(s,t)&&(i[s]=ba(typeof l.action=="string"?l.action:s)),i),{})},"addActionsFromArgTypes"),PD=[ID,OD],bw={};jo(bw,{loaders:()=>DD});var JS=!1,kD=a(e=>{let{parameters:t}=e;t?.actions?.disable||JS||(w1((r,n)=>{let o=r.getMockName();o!=="spy"&&o!=="vi.fn()"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(i=>o.startsWith(i)))&&ba(o)(n)}),JS=!0)},"logActionsWhenMockCalled"),DD=[kD],qS=a(()=>({...gw,...bw}),"default"),{document:Pr}=globalThis,ND=a(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),GS=a(e=>{(Array.isArray(e)?e:[e]).forEach(FD)},"clearStyles"),FD=a(e=>{if(!Pr)return;let t=Pr.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),LD=a((e,t)=>{if(!Pr)return;let r=Pr.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Pr.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Pr.head.appendChild(n)}},"addGridStyle"),MD=a((e,t,r)=>{if(!Pr)return;let n=Pr.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Pr.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,s=Pr.getElementById(i);s?s.parentElement?.insertBefore(o,s):Pr.head.appendChild(o)}},"addBackgroundStyle"),BD={cellSize:100,cellAmount:10,opacity:.8},YS="addon-backgrounds",KS="addon-backgrounds-grid",$D=ND()?"":"transition: background-color 0.3s;",jD=a((e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:i}=t,{options:s=Ks,disable:l,grid:c=BD}=n[jr]||{},u=r[jr]||{},p=typeof u=="string"?u:u?.value,f=p?s[p]:void 0,m=typeof f=="string"?f:f?.value||"transparent",g=typeof u=="string"?!1:u.grid||!1,b=!!f&&!l,y=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",S=o==="docs"?`#anchor--${i} .docs-story`:".sb-show-main",v=n.layout===void 0||n.layout==="padded",w=o==="docs"?20:v?16:0,{cellAmount:E,cellSize:x,opacity:A,offsetX:_=w,offsetY:C=w}=c,O=o==="docs"?`${YS}-docs-${i}`:`${YS}-color`,I=o==="docs"?i:null;_r(()=>{let D=`
|
|
286
|
+
${y} {
|
|
287
|
+
background: ${m} !important;
|
|
288
|
+
${$D}
|
|
289
|
+
}`;if(!b){GS(O);return}MD(O,D,I)},[y,O,I,b,m]);let P=o==="docs"?`${KS}-docs-${i}`:`${KS}`;return _r(()=>{if(!g){GS(P);return}let D=[`${x*E}px ${x*E}px`,`${x*E}px ${x*E}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),j=`
|
|
290
|
+
${S} {
|
|
291
|
+
background-size: ${D} !important;
|
|
292
|
+
background-position: ${_}px ${C}px, ${_}px ${C}px, ${_}px ${C}px, ${_}px ${C}px !important;
|
|
293
|
+
background-blend-mode: difference !important;
|
|
294
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${A}) 1px, transparent 1px),
|
|
295
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${A}) 1px, transparent 1px),
|
|
296
|
+
linear-gradient(rgba(130, 130, 130, ${A/2}) 1px, transparent 1px),
|
|
297
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${A/2}) 1px, transparent 1px) !important;
|
|
298
|
+
}
|
|
299
|
+
`;LD(P,j)},[E,x,S,P,g,_,C,A]),e()},"withBackgroundAndGrid"),UD=globalThis.FEATURES?.backgrounds?[jD]:[],zD={[jr]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},HD={[jr]:{value:void 0,grid:!1}},XS=a(()=>({decorators:UD,parameters:zD,initialGlobals:HD}),"default"),{step:VD}=$i({step:a(async(e,t,r)=>t(r),"step")},{intercept:!0}),ZS=a(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:VD}),"default"),QS={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},WD="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),pt=a((e,t={},r)=>{let n=WD.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,i])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",i),n.addEventListener("keydown",s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),i())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",i),o==="onMouseLeave"&&n.addEventListener("mouseleave",i)):n.setAttribute(o,i)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},"createElement"),mc=a(e=>QS[e]&&pt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},QS[e].map(t=>pt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),JD=a(e=>{if("elements"in e){let{elements:n,color:o,style:i}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${i} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),qD=a(e=>e instanceof Function,"isFunction"),ji=new Map,Co=new Map,hc=new Map,gn=a(e=>{let t=Symbol();Co.set(t,[]),ji.set(t,e);let r=a(()=>ji.get(t),"get"),n=a(s=>{let l=ji.get(t),c=qD(s)?s(l):s;c!==l&&(ji.set(t,c),Co.get(t)?.forEach(u=>{hc.get(u)?.(),hc.set(u,u(c))}))},"set"),o=a(s=>(Co.get(t)?.push(s),()=>{let l=Co.get(t);l&&Co.set(t,l.filter(c=>c!==s))}),"subscribe"),i=a(()=>{Co.get(t)?.forEach(s=>{hc.get(s)?.(),hc.delete(s)}),Co.delete(t),ji.delete(t)},"teardown");return{get:r,set:n,subscribe:o,teardown:i}},"useStore"),ew=a(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let i of n.selectors){let s=[...document.querySelectorAll(`:is(${i}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(i)||[]];for(let l of s){let c=r.get(l);(!c||c.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set((c?.selectors||[]).concat(i)))})}}}return r},"mapElements"),GD=a(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:s}])=>{let{top:l,left:c,width:u,height:p}=t.getBoundingClientRect(),{position:f}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:i,menu:s,top:f==="fixed"?l:l+window.scrollY,left:f==="fixed"?c:c+window.scrollX,width:u,height:p}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),tw=a((e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},"isOverMenu"),rw=a((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:i,height:s}=e;s<dn&&(o=o-Math.round((dn-s)/2),s=dn),i<dn&&(n=n-Math.round((dn-i)/2),i=dn),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:c}=r;return l>=n&&l<=n+i&&c>=o&&c<=o+s},"isTargeted"),YD=a((e,t,r={})=>{let{x:n,y:o}=t,{margin:i=5,topOffset:s=0,centered:l=!1}=r,{scrollX:c,scrollY:u,innerHeight:p,innerWidth:f}=window,m=Math.min(e.style.position==="fixed"?o-u:o,p-e.clientHeight-i-s+u),g=l?e.clientWidth/2:0,b=e.style.position==="fixed"?Math.max(Math.min(n-c,f-g-i),g+i):Math.max(Math.min(n,f-g-i+c),g+i+c);Object.assign(e.style,{...b!==n&&{left:`${b}px`},...m!==o&&{top:`${m}px`}})},"keepInViewport"),nw=a(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),KD=a(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),XD=a(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),je="storybook-highlights-menu",ow="storybook-highlights-root",ZD="storybook-root",QD=a(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=gn([]),n=gn(new Map),o=gn([]),i=gn(),s=gn(),l=gn([]),c=gn([]),u=gn(),p=gn(),f=t.getElementById(ow);r.subscribe(()=>{f||(f=pt("div",{id:ow}),t.body.appendChild(f))}),r.subscribe(C=>{let O=t.getElementById(ZD);if(!O)return;n.set(ew(C));let I=new MutationObserver(()=>n.set(ew(C)));return I.observe(O,{subtree:!0,childList:!0}),()=>{I.disconnect()}}),n.subscribe(C=>{let O=a(()=>requestAnimationFrame(()=>o.set(GD(C))),"updateBoxes"),I=new ResizeObserver(O);I.observe(t.body),Array.from(C.keys()).forEach(D=>I.observe(D));let P=Array.from(t.body.querySelectorAll("*")).filter(D=>{let{overflow:j,overflowX:$,overflowY:N}=window.getComputedStyle(D);return["auto","scroll"].some(F=>[j,$,N].includes(F))});return P.forEach(D=>D.addEventListener("scroll",O)),()=>{I.disconnect(),P.forEach(D=>D.removeEventListener("scroll",O))}}),n.subscribe(C=>{let O=Array.from(C.keys()).filter(({style:P})=>P.position==="sticky"),I=a(()=>requestAnimationFrame(()=>{o.set(P=>P.map(D=>{if(O.includes(D.element)){let{top:j,left:$}=D.element.getBoundingClientRect();return{...D,top:j+window.scrollY,left:$+window.scrollX}}return D}))}),"updateBoxes");return t.addEventListener("scroll",I),()=>t.removeEventListener("scroll",I)}),n.subscribe(C=>{l.set(O=>O.filter(({element:I})=>C.has(I)))}),l.subscribe(C=>{C.length?(p.set(O=>C.some(I=>I.element===O?.element)?O:void 0),u.set(O=>C.some(I=>I.element===O?.element)?O:void 0)):(p.set(void 0),u.set(void 0),i.set(void 0))});let m=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:O})=>{if(O){let I=m.get(O);I||(I=t.createElement("style"),I.setAttribute("data-highlight","keyframes"),m.set(O,I),t.head.appendChild(I)),I.innerHTML=O}}),m.forEach((O,I)=>{C.some(P=>P.keyframes===I)||(O.remove(),m.delete(I))})});let g=new Map(new Map);o.subscribe(C=>{C.forEach(O=>{let I=g.get(O.element);if(f&&!I){let P={popover:"manual","data-highlight-dimensions":`w${O.width.toFixed(0)}h${O.height.toFixed(0)}`,"data-highlight-coordinates":`x${O.left.toFixed(0)}y${O.top.toFixed(0)}`};I=f.appendChild(pt("div",P,[pt("div")])),g.set(O.element,I)}}),g.forEach((O,I)=>{C.some(({element:P})=>P===I)||(O.remove(),g.delete(I))})}),o.subscribe(C=>{let O=C.filter(P=>P.menu);if(!O.length)return;let I=a(P=>{requestAnimationFrame(()=>{let D=t.getElementById(je),j={x:P.pageX,y:P.pageY};if(D&&!tw(D,j)){let $=O.filter(N=>{let F=g.get(N.element);return rw(N,F,j)});i.set($.length?j:void 0),l.set($)}})},"onClick");return t.addEventListener("click",I),()=>t.removeEventListener("click",I)});let b=a(()=>{let C=t.getElementById(je),O=s.get();!O||C&&tw(C,O)||c.set(I=>{let P=o.get().filter(N=>{let F=g.get(N.element);return rw(N,F,O)}),D=I.filter(N=>P.includes(N)),j=P.filter(N=>!I.includes(N)),$=I.length-D.length;return j.length||$?[...D,...j]:I})},"updateHovered");s.subscribe(b),o.subscribe(b);let y=a(()=>{let C=p.get(),O=C?[C]:l.get(),I=O.length===1?O[0]:u.get(),P=i.get()!==void 0;o.get().forEach(D=>{let j=g.get(D.element);if(j){let $=I===D,N=P?I?$:O.includes(D):c.get()?.includes(D);Object.assign(j.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...D.styles,...N?D.hoverStyles:{},...$?D.focusStyles:{},position:getComputedStyle(D.element).position==="fixed"?"fixed":"absolute",zIndex:Cp-10,top:`${D.top}px`,left:`${D.left}px`,width:`${D.width}px`,height:`${D.height}px`,margin:0,padding:0,cursor:D.menu&&N?"pointer":"default",pointerEvents:D.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(j.children[0].style,{width:"100%",height:"100%",minHeight:`${dn}px`,minWidth:`${dn}px`,boxSizing:"content-box",padding:j.style.outlineWidth||"0px"}),nw(j)}})},"updateBoxStyles");o.subscribe(y),l.subscribe(y),c.subscribe(y),u.subscribe(y),p.subscribe(y);let S=a(()=>{if(!f)return;let C=t.getElementById(je);if(C)C.innerHTML="";else{let D={id:je,popover:"manual"};C=f.appendChild(pt("div",D)),f.appendChild(pt("style",{},[`
|
|
300
|
+
#${je} {
|
|
301
|
+
position: absolute;
|
|
302
|
+
z-index: ${Cp};
|
|
303
|
+
width: 300px;
|
|
304
|
+
padding: 0px;
|
|
305
|
+
margin: 15px 0 0 0;
|
|
306
|
+
transform: translateX(-50%);
|
|
307
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
308
|
+
font-size: 12px;
|
|
309
|
+
background: white;
|
|
310
|
+
border: none;
|
|
311
|
+
border-radius: 6px;
|
|
312
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
313
|
+
color: #2E3438;
|
|
314
|
+
}
|
|
315
|
+
#${je} ul {
|
|
316
|
+
list-style: none;
|
|
317
|
+
margin: 0;
|
|
318
|
+
padding: 0;
|
|
319
|
+
}
|
|
320
|
+
#${je} > ul {
|
|
321
|
+
max-height: 300px;
|
|
322
|
+
overflow-y: auto;
|
|
323
|
+
padding: 4px 0;
|
|
324
|
+
}
|
|
325
|
+
#${je} li {
|
|
326
|
+
padding: 0 4px;
|
|
327
|
+
margin: 0;
|
|
328
|
+
}
|
|
329
|
+
#${je} li > :not(ul) {
|
|
330
|
+
display: flex;
|
|
331
|
+
padding: 8px;
|
|
332
|
+
margin: 0;
|
|
333
|
+
align-items: center;
|
|
334
|
+
gap: 8px;
|
|
335
|
+
border-radius: 4px;
|
|
336
|
+
}
|
|
337
|
+
#${je} button {
|
|
338
|
+
width: 100%;
|
|
339
|
+
border: 0;
|
|
340
|
+
background: transparent;
|
|
341
|
+
color: inherit;
|
|
342
|
+
text-align: left;
|
|
343
|
+
font-family: inherit;
|
|
344
|
+
font-size: inherit;
|
|
345
|
+
}
|
|
346
|
+
#${je} button:focus-visible {
|
|
347
|
+
outline-color: #029CFD;
|
|
348
|
+
}
|
|
349
|
+
#${je} button:hover {
|
|
350
|
+
background: rgba(2, 156, 253, 0.07);
|
|
351
|
+
color: #029CFD;
|
|
352
|
+
cursor: pointer;
|
|
353
|
+
}
|
|
354
|
+
#${je} li code {
|
|
355
|
+
white-space: nowrap;
|
|
356
|
+
overflow: hidden;
|
|
357
|
+
text-overflow: ellipsis;
|
|
358
|
+
line-height: 16px;
|
|
359
|
+
font-size: 11px;
|
|
360
|
+
}
|
|
361
|
+
#${je} li svg {
|
|
362
|
+
flex-shrink: 0;
|
|
363
|
+
margin: 1px;
|
|
364
|
+
color: #73828C;
|
|
365
|
+
}
|
|
366
|
+
#${je} li > button:hover svg, #${je} li > button:focus-visible svg {
|
|
367
|
+
color: #029CFD;
|
|
368
|
+
}
|
|
369
|
+
#${je} .element-list li svg {
|
|
370
|
+
display: none;
|
|
371
|
+
}
|
|
372
|
+
#${je} li.selectable svg, #${je} li.selected svg {
|
|
373
|
+
display: block;
|
|
374
|
+
}
|
|
375
|
+
#${je} .menu-list {
|
|
376
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
377
|
+
}
|
|
378
|
+
#${je} .menu-list > li:not(:last-child) {
|
|
379
|
+
padding-bottom: 4px;
|
|
380
|
+
margin-bottom: 4px;
|
|
381
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
382
|
+
}
|
|
383
|
+
#${je} .menu-items, #${je} .menu-items li {
|
|
384
|
+
padding: 0;
|
|
385
|
+
}
|
|
386
|
+
#${je} .menu-item {
|
|
387
|
+
display: flex;
|
|
388
|
+
}
|
|
389
|
+
#${je} .menu-item-content {
|
|
390
|
+
display: flex;
|
|
391
|
+
flex-direction: column;
|
|
392
|
+
flex-grow: 1;
|
|
393
|
+
}
|
|
394
|
+
`]))}let O=p.get(),I=O?[O]:l.get();if(I.length&&(C.style.position=getComputedStyle(I[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(pt("ul",{class:"element-list"},I.map(D=>{let j=I.length>1&&!!D.menu?.some(F=>F.some(B=>!B.selectors||B.selectors.some(M=>D.selectors.includes(M)))),$=j?{class:"selectable",onClick:a(()=>p.set(D),"onClick"),onMouseEnter:a(()=>u.set(D),"onMouseEnter"),onMouseLeave:a(()=>u.set(void 0),"onMouseLeave")}:O?{class:"selected",onClick:a(()=>p.set(void 0),"onClick")}:{},N=j||O;return pt("li",$,[pt(N?"button":"div",N?{type:"button"}:{},[O?mc("chevronLeft"):null,pt("code",{},[D.element.outerHTML]),j?mc("chevronRight"):null])])})))),p.get()||l.get().length===1){let D=p.get()||l.get()[0],j=D.menu?.filter($=>$.some(N=>!N.selectors||N.selectors.some(F=>D.selectors.includes(F))));j?.length&&C.appendChild(pt("ul",{class:"menu-list"},j.map($=>pt("li",{},[pt("ul",{class:"menu-items"},$.map(({id:N,title:F,description:B,iconLeft:M,iconRight:W,clickEvent:z})=>{let V=z&&(()=>e.emit(z,N,XD(D)));return pt("li",{},[pt(V?"button":"div",V?{class:"menu-item",type:"button",onClick:V}:{class:"menu-item"},[M?mc(M):null,pt("div",{class:"menu-item-content"},[pt(B?"strong":"span",{},[F]),B&&pt("span",{},[B])]),W?mc(W):null])])}))]))))}let P=i.get();P?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?P.x-window.scrollX:P.x}px`,top:`${C.style.position==="fixed"?P.y-window.scrollY:P.y}px`}),nw(C),requestAnimationFrame(()=>YD(C,P,{topOffset:15,centered:!0}))):(KD(C),Object.assign(C.style,{display:"none"}))},"renderMenu");l.subscribe(S),p.subscribe(S);let v=a(C=>{let O=JD(C);r.set(I=>{let P=O.id?I.filter(D=>D.id!==O.id):I;return O.selectors?.length?[...P,O]:P})},"addHighlight"),w=a(C=>{C&&r.set(O=>O.filter(I=>I.id!==C))},"removeHighlight"),E=a(()=>{r.set([]),n.set(new Map),o.set([]),i.set(void 0),s.set(void 0),l.set([]),c.set([]),u.set(void 0),p.set(void 0)},"resetState"),x,A=a((C,O)=>{let I="scrollIntoView-highlight";clearTimeout(x),w(I);let P=t.querySelector(C);if(!P){console.warn(`Cannot scroll into view: ${C} not found`);return}P.scrollIntoView({behavior:"smooth",block:"center",...O});let D=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(j=>[...j,{id:I,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${D} 3s linear forwards`},keyframes:`@keyframes ${D} {
|
|
395
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
396
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
397
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
398
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
399
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
400
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
401
|
+
}`}]),x=setTimeout(()=>w(I),3500)},"scrollIntoView"),_=a(C=>{requestAnimationFrame(()=>s.set({x:C.pageX,y:C.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",_),e.on(p1,v),e.on(f1,w),e.on(m1,E),e.on(h1,A),e.on(vr,({newPhase:C})=>{C==="loading"&&E()})},"useHighlights");globalThis?.FEATURES?.highlight&&qt?.ready&&qt.ready().then(QD);var aw=a(()=>({}),"default");function Mf(){let e=oe.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}a(Mf,"getDocumentWidthAndHeight");function vw(){let e=oe.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");ln(t!=null);let{width:r,height:n}=Mf();return yc(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",oe.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}a(vw,"createCanvas");function yc(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=oe.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}a(yc,"setCanvasWidthAndHeight");var ft={};function Ew(){ft.canvas||(ft=vw())}a(Ew,"init");function Bf(){ft.context&&ft.context.clearRect(0,0,ft.width??0,ft.height??0)}a(Bf,"clear");function Sw(e){Bf(),e(ft.context)}a(Sw,"draw");function ww(){ln(ft.canvas,"Canvas should exist in the state."),ln(ft.context,"Context should exist in the state."),yc(ft.canvas,ft.context,{width:0,height:0});let{width:e,height:t}=Mf();yc(ft.canvas,ft.context,{width:e,height:t}),ft.width=e,ft.height=t}a(ww,"rescale");function xw(){ft.canvas&&(Bf(),ft.canvas.parentNode?.removeChild(ft.canvas),ft={})}a(xw,"destroy");var Aa={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},yn=6;function kf(e,{x:t,y:r,w:n,h:o,r:i}){t=t-n/2,r=r-o/2,n<2*i&&(i=n/2),o<2*i&&(i=o/2),e.beginPath(),e.moveTo(t+i,r),e.arcTo(t+n,r,t+n,r+o,i),e.arcTo(t+n,r+o,t,r+o,i),e.arcTo(t,r+o,t,r,i),e.arcTo(t,r,t+n,r,i),e.closePath()}a(kf,"roundedRect");function Tw(e,{padding:t,border:r,width:n,height:o,top:i,left:s}){let l=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom,u=s+r.left+t.left,p=i+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,p+=c/2):e==="bottom"?(u+=l/2,p+=c):e==="left"?p+=c/2:e==="center"&&(u+=l/2,p+=c/2),{x:u,y:p}}a(Tw,"positionCoordinate");function Aw(e,t,{margin:r,border:n,padding:o},i,s){let l=a(m=>0,"shift"),c=0,u=0,p=s?1:.5,f=s?i*2:0;return e==="padding"?l=a(m=>o[m]*p+f,"shift"):e==="border"?l=a(m=>o[m]+n[m]*p+f,"shift"):e==="margin"&&(l=a(m=>o[m]+n[m]+r[m]*p+f,"shift")),t==="top"?u=-l("top"):t==="right"?c=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(c=-l("left")),{offsetX:c,offsetY:u}}a(Aw,"offset");function Cw(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}a(Cw,"collide");function Rw(e,t,r){return e==="top"?t.y=r.y-r.h-yn:e==="right"?t.x=r.x+r.w/2+yn+t.w/2:e==="bottom"?t.y=r.y+r.h+yn:e==="left"&&(t.x=r.x-r.w/2-yn-t.w/2),{x:t.x,y:t.y}}a(Rw,"overlapAdjustment");function $f(e,t,{x:r,y:n,w:o,h:i},s){return kf(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Aa[t]}dd`,e.fill(),e.strokeStyle=Aa[t],e.stroke(),e.fillStyle=Aa.text,e.fillText(s,r,n),kf(e,{x:r,y:n,w:o,h:i,r:3}),e.fillStyle=`${Aa[t]}dd`,e.fill(),e.strokeStyle=Aa[t],e.stroke(),e.fillStyle=Aa.text,e.fillText(s,r,n),{x:r,y:n,w:o,h:i}}a($f,"textWithRect");function jf(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,o=r.width+yn*2,i=n+yn*2;return{w:o,h:i}}a(jf,"configureText");function _w(e,t,{type:r,position:n="center",text:o},i,s=!1){let{x:l,y:c}=Tw(n,t),{offsetX:u,offsetY:p}=Aw(r,n,t,yn+1,s);l+=u,c+=p;let{w:f,h:m}=jf(e,o);if(i&&Cw({x:l,y:c,w:f,h:m},i)){let g=Rw(n,{x:l,y:c,w:f,h:m},i);l=g.x,c=g.y}return $f(e,r,{x:l,y:c,w:f,h:m},o)}a(_w,"drawLabel");function Ow(e,{w:t,h:r}){let n=t*.5+yn,o=r*.5+yn;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}a(Ow,"floatingOffset");function Iw(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:i}=t,s=i[o.x],l=i[o.y],{w:c,h:u}=jf(e,n),{offsetX:p,offsetY:f}=Ow(o,{w:c,h:u});return s+=p,l+=f,$f(e,r,{x:s,y:l,w:c,h:u},n)}a(Iw,"drawFloatingLabel");function Ca(e,t,r,n){let o=[];r.forEach((i,s)=>{let l=n&&i.position==="center"?Iw(e,t,i):_w(e,t,i,o[s-1],n);o[s]=l})}a(Ca,"drawStack");function Pw(e,t,r,n){let o=r.reduce((i,s)=>(Object.prototype.hasOwnProperty.call(i,s.position)||(i[s.position]=[]),i[s.position]?.push(s),i),{});o.top&&Ca(e,t,o.top,n),o.right&&Ca(e,t,o.right,n),o.bottom&&Ca(e,t,o.bottom,n),o.left&&Ca(e,t,o.left,n),o.center&&Ca(e,t,o.center,n)}a(Pw,"labelStacks");var bc={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},iw=30;function ir(e){return parseInt(e.replace("px",""),10)}a(ir,"pxToNumber");function Ro(e){return Number.isInteger(e)?e:e.toFixed(2)}a(Ro,"round");function vc(e){return e.filter(t=>t.text!==0&&t.text!=="0")}a(vc,"filterZeroValues");function kw(e){let t={top:oe.window.scrollY,bottom:oe.window.scrollY+oe.window.innerHeight,left:oe.window.scrollX,right:oe.window.scrollX+oe.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}a(kw,"floatingAlignment");function Dw(e){let t=oe.getComputedStyle(e),{top:r,left:n,right:o,bottom:i,width:s,height:l}=e.getBoundingClientRect(),{marginTop:c,marginBottom:u,marginLeft:p,marginRight:f,paddingTop:m,paddingBottom:g,paddingLeft:b,paddingRight:y,borderBottomWidth:S,borderTopWidth:v,borderLeftWidth:w,borderRightWidth:E}=t;r=r+oe.window.scrollY,n=n+oe.window.scrollX,i=i+oe.window.scrollY,o=o+oe.window.scrollX;let x={top:ir(c),bottom:ir(u),left:ir(p),right:ir(f)},A={top:ir(m),bottom:ir(g),left:ir(b),right:ir(y)},_={top:ir(v),bottom:ir(S),left:ir(w),right:ir(E)},C={top:r-x.top,bottom:i+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:A,border:_,top:r,left:n,bottom:i,right:o,width:s,height:l,extremities:C,floatingAlignment:kw(C)}}a(Dw,"measureElement");function Nw(e,{margin:t,width:r,height:n,top:o,left:i,bottom:s,right:l}){let c=n+t.bottom+t.top;e.fillStyle=bc.margin,e.fillRect(i,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,c),e.fillRect(i,s,r,t.bottom),e.fillRect(i-t.left,o-t.top,t.left,c);let u=[{type:"margin",text:Ro(t.top),position:"top"},{type:"margin",text:Ro(t.right),position:"right"},{type:"margin",text:Ro(t.bottom),position:"bottom"},{type:"margin",text:Ro(t.left),position:"left"}];return vc(u)}a(Nw,"drawMargin");function Fw(e,{padding:t,border:r,width:n,height:o,top:i,left:s,bottom:l,right:c}){let u=n-r.left-r.right,p=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=bc.padding,e.fillRect(s+r.left,i+r.top,u,t.top),e.fillRect(c-t.right-r.right,i+t.top+r.top,t.right,p),e.fillRect(s+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(s+r.left,i+t.top+r.top,t.left,p);let f=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return vc(f)}a(Fw,"drawPadding");function Lw(e,{border:t,width:r,height:n,top:o,left:i,bottom:s,right:l}){let c=n-t.top-t.bottom;e.fillStyle=bc.border,e.fillRect(i,o,r,t.top),e.fillRect(i,s-t.bottom,r,t.bottom),e.fillRect(i,o+t.top,t.left,c),e.fillRect(l-t.right,o+t.top,t.right,c);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return vc(u)}a(Lw,"drawBorder");function Mw(e,{padding:t,border:r,width:n,height:o,top:i,left:s}){let l=n-r.left-r.right-t.left-t.right,c=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=bc.content,e.fillRect(s+r.left+t.left,i+r.top+t.top,l,c),[{type:"content",position:"center",text:`${Ro(l)} x ${Ro(c)}`}]}a(Mw,"drawContent");function Bw(e){return t=>{if(e&&t){let r=Dw(e),n=Nw(t,r),o=Fw(t,r),i=Lw(t,r),s=Mw(t,r),l=r.width<=iw*3||r.height<=iw;Pw(t,r,[...s,...o,...i,...n],l)}}}a(Bw,"drawBoxModel");function $w(e){Sw(Bw(e))}a($w,"drawSelectedElement");var eN=a((e,t)=>{let r=oe.document.elementFromPoint(e,t),n=a(i=>{if(i&&i.shadowRoot){let s=i.shadowRoot.elementFromPoint(e,t);return i.isEqualNode(s)?i:s.shadowRoot?n(s):s}return i},"crawlShadows");return n(r)||r},"deepElementFromPoint"),sw,gc={x:0,y:0};function Df(e,t){sw=eN(e,t),$w(sw)}a(Df,"findAndDrawElement");var tN=a((e,t)=>{let{measureEnabled:r}=t.globals||{};return _r(()=>{if(typeof globalThis.document>"u")return;let n=a(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),gc.x=o.clientX,gc.y=o.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),_r(()=>{let n=a(i=>{window.requestAnimationFrame(()=>{i.stopPropagation(),Df(i.clientX,i.clientY)})},"onPointerOver"),o=a(()=>{window.requestAnimationFrame(()=>{ww()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),Ew(),globalThis.window.addEventListener("resize",o),Df(gc.x,gc.y)),()=>{globalThis.window.removeEventListener("resize",o),xw()}},[r,t.viewMode]),e()},"withMeasure"),rN=globalThis.FEATURES?.measure?[tN]:[],nN={[Zb]:!1},lw=a(()=>({decorators:rN,initialGlobals:nN}),"default"),cw=a(e=>{(Array.isArray(e)?e:[e]).forEach(oN)},"clearStyles"),oN=a(e=>{let t=typeof e=="string"?e:e.join(""),r=oe.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),aN=a((e,t)=>{let r=oe.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=oe.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,oe.document.head.appendChild(n)}},"addOutlineStyles");function jw(e){return Ce`
|
|
402
|
+
${e} body {
|
|
403
|
+
outline: 1px solid #2980b9 !important;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
${e} article {
|
|
407
|
+
outline: 1px solid #3498db !important;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
${e} nav {
|
|
411
|
+
outline: 1px solid #0088c3 !important;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
${e} aside {
|
|
415
|
+
outline: 1px solid #33a0ce !important;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
${e} section {
|
|
419
|
+
outline: 1px solid #66b8da !important;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
${e} header {
|
|
423
|
+
outline: 1px solid #99cfe7 !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
${e} footer {
|
|
427
|
+
outline: 1px solid #cce7f3 !important;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
${e} h1 {
|
|
431
|
+
outline: 1px solid #162544 !important;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
${e} h2 {
|
|
435
|
+
outline: 1px solid #314e6e !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
${e} h3 {
|
|
439
|
+
outline: 1px solid #3e5e85 !important;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
${e} h4 {
|
|
443
|
+
outline: 1px solid #449baf !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
${e} h5 {
|
|
447
|
+
outline: 1px solid #c7d1cb !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
${e} h6 {
|
|
451
|
+
outline: 1px solid #4371d0 !important;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
${e} main {
|
|
455
|
+
outline: 1px solid #2f4f90 !important;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
${e} address {
|
|
459
|
+
outline: 1px solid #1a2c51 !important;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
${e} div {
|
|
463
|
+
outline: 1px solid #036cdb !important;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
${e} p {
|
|
467
|
+
outline: 1px solid #ac050b !important;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
${e} hr {
|
|
471
|
+
outline: 1px solid #ff063f !important;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
${e} pre {
|
|
475
|
+
outline: 1px solid #850440 !important;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
${e} blockquote {
|
|
479
|
+
outline: 1px solid #f1b8e7 !important;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
${e} ol {
|
|
483
|
+
outline: 1px solid #ff050c !important;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
${e} ul {
|
|
487
|
+
outline: 1px solid #d90416 !important;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
${e} li {
|
|
491
|
+
outline: 1px solid #d90416 !important;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
${e} dl {
|
|
495
|
+
outline: 1px solid #fd3427 !important;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
${e} dt {
|
|
499
|
+
outline: 1px solid #ff0043 !important;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
${e} dd {
|
|
503
|
+
outline: 1px solid #e80174 !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
${e} figure {
|
|
507
|
+
outline: 1px solid #ff00bb !important;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
${e} figcaption {
|
|
511
|
+
outline: 1px solid #bf0032 !important;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
${e} table {
|
|
515
|
+
outline: 1px solid #00cc99 !important;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
${e} caption {
|
|
519
|
+
outline: 1px solid #37ffc4 !important;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
${e} thead {
|
|
523
|
+
outline: 1px solid #98daca !important;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
${e} tbody {
|
|
527
|
+
outline: 1px solid #64a7a0 !important;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
${e} tfoot {
|
|
531
|
+
outline: 1px solid #22746b !important;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
${e} tr {
|
|
535
|
+
outline: 1px solid #86c0b2 !important;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
${e} th {
|
|
539
|
+
outline: 1px solid #a1e7d6 !important;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
${e} td {
|
|
543
|
+
outline: 1px solid #3f5a54 !important;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
${e} col {
|
|
547
|
+
outline: 1px solid #6c9a8f !important;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
${e} colgroup {
|
|
551
|
+
outline: 1px solid #6c9a9d !important;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
${e} button {
|
|
555
|
+
outline: 1px solid #da8301 !important;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
${e} datalist {
|
|
559
|
+
outline: 1px solid #c06000 !important;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
${e} fieldset {
|
|
563
|
+
outline: 1px solid #d95100 !important;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
${e} form {
|
|
567
|
+
outline: 1px solid #d23600 !important;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
${e} input {
|
|
571
|
+
outline: 1px solid #fca600 !important;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
${e} keygen {
|
|
575
|
+
outline: 1px solid #b31e00 !important;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
${e} label {
|
|
579
|
+
outline: 1px solid #ee8900 !important;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
${e} legend {
|
|
583
|
+
outline: 1px solid #de6d00 !important;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
${e} meter {
|
|
587
|
+
outline: 1px solid #e8630c !important;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
${e} optgroup {
|
|
591
|
+
outline: 1px solid #b33600 !important;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
${e} option {
|
|
595
|
+
outline: 1px solid #ff8a00 !important;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
${e} output {
|
|
599
|
+
outline: 1px solid #ff9619 !important;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
${e} progress {
|
|
603
|
+
outline: 1px solid #e57c00 !important;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
${e} select {
|
|
607
|
+
outline: 1px solid #e26e0f !important;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
${e} textarea {
|
|
611
|
+
outline: 1px solid #cc5400 !important;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
${e} details {
|
|
615
|
+
outline: 1px solid #33848f !important;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
${e} summary {
|
|
619
|
+
outline: 1px solid #60a1a6 !important;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
${e} command {
|
|
623
|
+
outline: 1px solid #438da1 !important;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
${e} menu {
|
|
627
|
+
outline: 1px solid #449da6 !important;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
${e} del {
|
|
631
|
+
outline: 1px solid #bf0000 !important;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
${e} ins {
|
|
635
|
+
outline: 1px solid #400000 !important;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
${e} img {
|
|
639
|
+
outline: 1px solid #22746b !important;
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
${e} iframe {
|
|
643
|
+
outline: 1px solid #64a7a0 !important;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
${e} embed {
|
|
647
|
+
outline: 1px solid #98daca !important;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
${e} object {
|
|
651
|
+
outline: 1px solid #00cc99 !important;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
${e} param {
|
|
655
|
+
outline: 1px solid #37ffc4 !important;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
${e} video {
|
|
659
|
+
outline: 1px solid #6ee866 !important;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
${e} audio {
|
|
663
|
+
outline: 1px solid #027353 !important;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
${e} source {
|
|
667
|
+
outline: 1px solid #012426 !important;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
${e} canvas {
|
|
671
|
+
outline: 1px solid #a2f570 !important;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
${e} track {
|
|
675
|
+
outline: 1px solid #59a600 !important;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
${e} map {
|
|
679
|
+
outline: 1px solid #7be500 !important;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
${e} area {
|
|
683
|
+
outline: 1px solid #305900 !important;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
${e} a {
|
|
687
|
+
outline: 1px solid #ff62ab !important;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
${e} em {
|
|
691
|
+
outline: 1px solid #800b41 !important;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
${e} strong {
|
|
695
|
+
outline: 1px solid #ff1583 !important;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
${e} i {
|
|
699
|
+
outline: 1px solid #803156 !important;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
${e} b {
|
|
703
|
+
outline: 1px solid #cc1169 !important;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
${e} u {
|
|
707
|
+
outline: 1px solid #ff0430 !important;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
${e} s {
|
|
711
|
+
outline: 1px solid #f805e3 !important;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
${e} small {
|
|
715
|
+
outline: 1px solid #d107b2 !important;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
${e} abbr {
|
|
719
|
+
outline: 1px solid #4a0263 !important;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
${e} q {
|
|
723
|
+
outline: 1px solid #240018 !important;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
${e} cite {
|
|
727
|
+
outline: 1px solid #64003c !important;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
${e} dfn {
|
|
731
|
+
outline: 1px solid #b4005a !important;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
${e} sub {
|
|
735
|
+
outline: 1px solid #dba0c8 !important;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
${e} sup {
|
|
739
|
+
outline: 1px solid #cc0256 !important;
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
${e} time {
|
|
743
|
+
outline: 1px solid #d6606d !important;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
${e} code {
|
|
747
|
+
outline: 1px solid #e04251 !important;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
${e} kbd {
|
|
751
|
+
outline: 1px solid #5e001f !important;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
${e} samp {
|
|
755
|
+
outline: 1px solid #9c0033 !important;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
${e} var {
|
|
759
|
+
outline: 1px solid #d90047 !important;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
${e} mark {
|
|
763
|
+
outline: 1px solid #ff0053 !important;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
${e} bdi {
|
|
767
|
+
outline: 1px solid #bf3668 !important;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
${e} bdo {
|
|
771
|
+
outline: 1px solid #6f1400 !important;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
${e} ruby {
|
|
775
|
+
outline: 1px solid #ff7b93 !important;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
${e} rt {
|
|
779
|
+
outline: 1px solid #ff2f54 !important;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
${e} rp {
|
|
783
|
+
outline: 1px solid #803e49 !important;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
${e} span {
|
|
787
|
+
outline: 1px solid #cc2643 !important;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
${e} br {
|
|
791
|
+
outline: 1px solid #db687d !important;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
${e} wbr {
|
|
795
|
+
outline: 1px solid #db175b !important;
|
|
796
|
+
}`}a(jw,"outlineCSS");var iN=a((e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[ta]),o=t.viewMode==="docs",i=Ul(()=>jw(o?'[data-story-block="true"]':".sb-show-main"),[t]);return _r(()=>{let s=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?aN(s,i):cw(s),()=>{cw(s)}},[n,i,t]),e()},"withOutline"),sN=globalThis.FEATURES?.outline?[iN]:[],lN={[ta]:!1},uw=a(()=>({decorators:sN,initialGlobals:lN}),"default"),cN=a(({parameters:e})=>{e?.test?.mockReset===!0?x1():e?.test?.clearMocks===!0?v1():e?.test?.restoreMocks!==!1&&T1()},"resetAllMocksLoader"),Nf=a((e,t=0,r)=>{if(t>5||e==null)return e;if(S1(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=E1(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Nf(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,o]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Nf(o,t,n));return e}return e},"traverseArgs"),uN=a(({initialArgs:e})=>{Nf(e)},"nameSpiesAndWrapActionsInSpies"),dw=!1,dN=a(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=C1(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=$i({userEvent:A1.setup()},{intercept:!0,getKeys:a(n=>Object.keys(n).filter(o=>o!=="eventWrapper"),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:a(()=>t,"get"),configurable:!0});let r=HTMLElement.prototype.focus;dw||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:a(n=>{r=n,dw=!0},"set"),get:a(()=>r,"get")}})}},"enhanceContext"),pw=a(()=>({loaders:[cN,uN,dN]}),"default"),pN={[xo]:{value:void 0,isRotated:!1}},fw=a(()=>({initialGlobals:pN}),"default");function ha(){return[(lw.default??lw)(),(XS.default??XS)(),(aw.default??aw)(),(uw.default??uw)(),(fw.default??fw)(),(qS.default??qS)(),(ZS.default??ZS)(),(pw.default??pw)()]}a(ha,"getCoreAnnotations");function fN(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:n,...o}=e;return t=vo(un([...ha(),...n??[],o])),t},meta(n){return Uw(n,this)}};return globalThis.globalProjectAnnotations=r.composed,r}a(fN,"definePreview");function bn(e){return e}a(bn,"definePreviewAddon");function mN(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}a(mN,"isPreview");function Tp(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}a(Tp,"isMeta");function Uw(e,t){return{_tag:"Meta",input:e,preview:t,story(r={}){return Uf(typeof r=="function"?{render:r}:r,this)}}}a(Uw,"defineMeta");function Eo(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}a(Eo,"isStory");function Uf(e,t){let r,n=a(()=>(r||(r=Oi(e,t.input,void 0,t.preview.composed)),r),"compose"),o=[];return{_tag:"Story",input:e,meta:t,__compose:n,__children:o,get composed(){let i=n(),{args:s,argTypes:l,parameters:c,id:u,tags:p,globals:f,storyName:m}=i;return{args:s,argTypes:l,parameters:c,id:u,tags:p,name:m,globals:f}},get play(){return e.play??t.input?.play??(async()=>{})},async run(i){await n().run(i)},test(i,s,l){let c=typeof s!="function"?s:{},u=typeof s!="function"?l:s,p=_i(this.play)||_i(u)?async({context:m})=>{await this.play?.(m),await u(m)}:async m=>{await this.play?.(m),await u(m)},f=this.extend({...c,name:i,tags:["test-fn","!autodocs",...c.tags??[]],play:p});return o.push(f),f},extend(i){return Uf({...this.input,...i,args:{...this.input.args||{},...i.args},argTypes:yr(this.input.argTypes,i.argTypes),afterEach:[...Re(this.input?.afterEach??[]),...Re(i.afterEach??[])],beforeEach:[...Re(this.input?.beforeEach??[]),...Re(i.beforeEach??[])],decorators:[...Re(this.input?.decorators??[]),...Re(i.decorators??[])],globals:{...this.input.globals,...i.globals},loaders:[...Re(this.input?.loaders??[]),...Re(i.loaders??[])],parameters:yr(this.input.parameters,i.parameters),tags:Wl(...this.input.tags??[],...i.tags??[])},this.meta)}}}a(Uf,"defineStory");function Ap(e){return"__children"in e?e.__children:[]}a(Ap,"getStoryChildren");var So=a(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),Ff=a((e,t)=>{let r=So(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),c1=a((e,t)=>`${Ff(e,"kind")}${t?`--${Ff(t,"name")}`:""}`,"toId"),u1=a((e,t)=>`${e}:${Ff(t,"test")}`,"toTestId"),d1=a(e=>mw(e),"storyNameFromExport");function Lf(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}a(Lf,"matches");function ma(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Lf(e,t))&&(!r||!Lf(e,r))}a(ma,"isExportStory");var bee=a((e,{rootSeparator:t,groupSeparator:r})=>{let[n,o]=e.split(t,2),i=(o||e).split(r).filter(s=>!!s);return{root:o?n:null,groups:i}},"parseKind"),Wl=a((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");Z();L();Z();L();Z();L();Z();L();Z();L();Z();L();Z();L();L();L();L();qe();Z();Z();L();Z();L();Z();var Qe=a(({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},"nameSpaceClassNames"),Fa=a(({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"}}),"headerCommon"),kc=a(({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 ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?ye(.1,e.color.defaultText):ye(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),"codeCommon"),Et=a(({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"}),"withReset"),Po={margin:"16px 0"},N5=R.div(Et),F5=a(({href:e="",...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,i=/^#.*/.test(e)?"_self":"_top";return d.createElement("a",{href:n,target:i,...t})},"Link"),L5=R(F5)(Et,({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}})),M5=R.blockquote(Et,Po,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})),Oo=[],ka=null,B5=rn(async()=>{let{SyntaxHighlighter:e}=await Promise.resolve().then(()=>(nm(),rm));return Oo.length>0&&(Oo.forEach(t=>{e.registerLanguage(...t)}),Oo=[]),ka===null&&(ka=e),{default:a(t=>d.createElement(e,{...t}),"default")}}),$5=rn(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Promise.resolve().then(()=>(nm(),rm)),Promise.resolve().then(()=>(gx(),hx))]);return Oo.length>0&&(Oo.forEach(r=>{e.registerLanguage(...r)}),Oo=[]),ka===null&&(ka=e),{default:a(r=>d.createElement(e,{...r,formatter:t}),"default")}}),Fx=a(e=>d.createElement(Rn,{fallback:d.createElement("div",null)},e.format!==!1?d.createElement($5,{...e}):d.createElement(B5,{...e})),"SyntaxHighlighter");Fx.registerLanguage=(...e)=>{if(ka!==null){ka.registerLanguage(...e);return}Oo.push(e)};var j5=a(e=>typeof e=="string","isReactChildString"),U5=/[\n\r]/g,z5=R.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),kc),H5=R(Fx)(({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"}})),V5=a(({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=Ae.toArray(t);return o.filter(j5).some(s=>s.match(U5))?d.createElement(H5,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):d.createElement(z5,{...r,className:e},o)},"Code"),W5=R.dl(Et,Po,{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}}),J5=R.div(Et),q5=R.h1(Et,Fa,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),G5=R.h2(Et,Fa,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Y5=R.h3(Et,Fa,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),K5=R.h4(Et,Fa,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),X5=R.h5(Et,Fa,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),Z5=R.h6(Et,Fa,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),Q5=R.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),e3=R.img({maxWidth:"100%"}),t3=R.li(Et,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":kc({theme:e})})),r3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},n3=R.ol(Et,Po,r3,{listStyle:"decimal"}),o3=R.p(Et,Po,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":kc({theme:e})})),a3=R.pre(Et,Po,({theme:e})=>({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"}})),i3=R.span(Et,({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"}}})),s3=R.title(kc),l3=R.table(Et,Po,({theme:e})=>({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}})),c3={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},u3=R.ul(Et,Po,c3,{listStyle:"disc"}),d3={h1:a(e=>d.createElement(q5,{...Qe(e,"h1")}),"h1"),h2:a(e=>d.createElement(G5,{...Qe(e,"h2")}),"h2"),h3:a(e=>d.createElement(Y5,{...Qe(e,"h3")}),"h3"),h4:a(e=>d.createElement(K5,{...Qe(e,"h4")}),"h4"),h5:a(e=>d.createElement(X5,{...Qe(e,"h5")}),"h5"),h6:a(e=>d.createElement(Z5,{...Qe(e,"h6")}),"h6"),pre:a(e=>d.createElement(a3,{...Qe(e,"pre")}),"pre"),a:a(e=>d.createElement(L5,{...Qe(e,"a")}),"a"),hr:a(e=>d.createElement(Q5,{...Qe(e,"hr")}),"hr"),dl:a(e=>d.createElement(W5,{...Qe(e,"dl")}),"dl"),blockquote:a(e=>d.createElement(M5,{...Qe(e,"blockquote")}),"blockquote"),table:a(e=>d.createElement(l3,{...Qe(e,"table")}),"table"),img:a(e=>d.createElement(e3,{...Qe(e,"img")}),"img"),div:a(e=>d.createElement(J5,{...Qe(e,"div")}),"div"),span:a(e=>d.createElement(i3,{...Qe(e,"span")}),"span"),li:a(e=>d.createElement(t3,{...Qe(e,"li")}),"li"),ul:a(e=>d.createElement(u3,{...Qe(e,"ul")}),"ul"),ol:a(e=>d.createElement(n3,{...Qe(e,"ol")}),"ol"),p:a(e=>d.createElement(o3,{...Qe(e,"p")}),"p"),code:a(e=>d.createElement(V5,{...Qe(e,"code")}),"code"),tt:a(e=>d.createElement(s3,{...Qe(e,"tt")}),"tt"),resetwrapper:a(e=>d.createElement(N5,{...Qe(e,"resetwrapper")}),"resetwrapper")},p3=R.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.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:e.base==="light"?`inset 0 0 0 1px ${ye(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:e.base==="light"?`inset 0 0 0 1px ${ye(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.textMutedColor,background:e.base==="light"?e.background.app:e.barBg,boxShadow:`inset 0 0 0 1px ${ye(.8,e.textMutedColor)}`};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${ye(.9,e.color.positiveText)}`:"none"};case"active":return{color:e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${ye(.9,e.color.secondary)}`};default:return{}}}),Fte=a(({...e})=>d.createElement(p3,{...e}),"Badge"),f3=0,m3=a(e=>e.button===f3&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,"isPlainLeftClick"),h3=a((e,t)=>{m3(e)&&(e.preventDefault(),t(e))},"cancelled"),g3=R.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}}:{}),y3=R.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:bt(.07,e.color.secondary),"svg path:not([fill])":{fill:bt(.07,e.color.secondary)}},"&:active":{color:bt(.1,e.color.secondary),"svg path:not([fill])":{fill:bt(.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.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),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})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{}),b3=a(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:i=void 0,style:s=void 0,...l})=>d.createElement(y3,{...l,onClick:r&&e?c=>h3(c,r):r,className:i},d.createElement(g3,{withArrow:n,containsIcon:o},t,n&&d.createElement(Hs,null))),"Link"),jte=R.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:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"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}})),Lx={};jo(Lx,{Close:()=>KT,Content:()=>qT,Description:()=>YT,Dialog:()=>Om,DialogClose:()=>Bm,DialogContent:()=>Nm,DialogDescription:()=>Mm,DialogOverlay:()=>Dm,DialogPortal:()=>km,DialogTitle:()=>Lm,DialogTrigger:()=>Im,Overlay:()=>JT,Portal:()=>WT,Root:()=>VT,Title:()=>GT,Trigger:()=>yF,WarningProvider:()=>fF,createDialogScope:()=>iF});var zte=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ia(e,t,{checkForDefaultPrevented:r=!0}={}){return a(function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)},"handleEvent")}a(Ia,"composeEventHandlers");function mm(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}a(mm,"setRef");function xm(...e){return t=>{let r=!1,n=e.map(o=>{let i=mm(o,t);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){let i=n[o];typeof i=="function"?i():mm(e[o],null)}}}}a(xm,"composeRefs");function jn(...e){return ne(xm(...e),e)}a(jn,"useComposedRefs");function Mx(e,t){let r=Ve(t),n=a(i=>{let{children:s,...l}=i,c=ve(()=>l,Object.values(l));return(0,Tm.jsx)(r.Provider,{value:c,children:s})},"Provider");n.displayName=e+"Provider";function o(i){let s=Ct(r);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return a(o,"useContext2"),[n,o]}a(Mx,"createContext2");function Bx(e,t=[]){let r=[];function n(i,s){let l=Ve(s),c=r.length;r=[...r,s];let u=a(f=>{let{scope:m,children:g,...b}=f,y=m?.[e]?.[c]||l,S=ve(()=>b,Object.values(b));return(0,Tm.jsx)(y.Provider,{value:S,children:g})},"Provider");u.displayName=i+"Provider";function p(f,m){let g=m?.[e]?.[c]||l,b=Ct(g);if(b)return b;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return a(p,"useContext2"),[u,p]}a(n,"createContext3");let o=a(()=>{let i=r.map(s=>Ve(s));return a(function(l){let c=l?.[e]||i;return ve(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])},"useScope")},"createScope");return o.scopeName=e,[n,$x(o,...t)]}a(Bx,"createContextScope");function $x(...e){let t=e[0];if(e.length===1)return t;let r=a(()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return a(function(i){let s=n.reduce((l,{useScope:c,scopeName:u})=>{let f=c(i)[`__scope${u}`];return{...l,...f}},{});return ve(()=>({[`__scope${t.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}a($x,"composeContextScopes");var Wi=globalThis?.document?it:()=>{},v3=fe[" useId ".trim().toString()]||(()=>{}),E3=0;function Cc(e){let[t,r]=J(v3());return Wi(()=>{e||r(n=>n??String(E3++))},[e]),e||(t?`radix-${t}`:"")}a(Cc,"useId");var Vte=fe[" useEffectEvent ".trim().toString()],Wte=fe[" useInsertionEffect ".trim().toString()],S3=fe[" useInsertionEffect ".trim().toString()]||Wi;function jx({prop:e,defaultProp:t,onChange:r=a(()=>{},"onChange"),caller:n}){let[o,i,s]=Ux({defaultProp:t,onChange:r}),l=e!==void 0,c=l?e:o;{let p=Q(e!==void 0);q(()=>{let f=p.current;f!==l&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=l},[l,n])}let u=ne(p=>{if(l){let f=zx(p)?p(e):p;f!==e&&s.current?.(f)}else i(p)},[l,e,i,s]);return[c,u]}a(jx,"useControllableState");function Ux({defaultProp:e,onChange:t}){let[r,n]=J(e),o=Q(r),i=Q(t);return S3(()=>{i.current=t},[t]),q(()=>{o.current!==r&&(i.current?.(r),o.current=r)},[r,o]),[r,n,i]}a(Ux,"useUncontrolledState");function zx(e){return typeof e=="function"}a(zx,"isFunction");var Jte=Symbol("RADIX:SYNC_STATE"),qte=!!(typeof window<"u"&&window.document&&window.document.createElement);function Rc(e,t,{checkForDefaultPrevented:r=!0}={}){return a(function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)},"handleEvent")}a(Rc,"composeEventHandlers");function Dc(e){let t=Hx(e),r=se((n,o)=>{let{children:i,...s}=n,l=Ae.toArray(i),c=l.find(Jx);if(c){let u=c.props.children,p=l.map(f=>f===c?Ae.count(u)>1?Ae.only(null):Tr(u)?u.props.children:null:f);return(0,Da.jsx)(t,{...s,ref:o,children:Tr(u)?_e(u,void 0,p):null})}return(0,Da.jsx)(t,{...s,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}a(Dc,"createSlot");var w3=Dc("Slot");function Hx(e){let t=se((r,n)=>{let{children:o,...i}=r;if(Tr(o)){let s=Gx(o),l=qx(i,o.props);return o.type!==Pe&&(l.ref=n?xm(n,s):s),_e(o,l)}return Ae.count(o)>1?Ae.only(null):null});return t.displayName=`${e}.SlotClone`,t}a(Hx,"createSlotClone");var Vx=Symbol("radix.slottable");function Wx(e){let t=a(({children:r})=>(0,Da.jsx)(Da.Fragment,{children:r}),"Slottable2");return t.displayName=`${e}.Slottable`,t.__radixId=Vx,t}a(Wx,"createSlottable");var Gte=Wx("Slottable");function Jx(e){return Tr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vx}a(Jx,"isSlottable");function qx(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...l)=>{let c=i(...l);return o(...l),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}a(qx,"mergeProps");function Gx(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}a(Gx,"getElementRef");var x3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Sn=x3.reduce((e,t)=>{let r=Dc(`Primitive.${t}`),n=se((o,i)=>{let{asChild:s,...l}=o,c=s?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Yx.jsx)(c,{...l,ref:i})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Kx(e,t){e&&Ho(()=>e.dispatchEvent(t))}a(Kx,"dispatchDiscreteCustomEvent");function Na(e){let t=Q(e);return q(()=>{t.current=e}),ve(()=>(...r)=>t.current?.(...r),[])}a(Na,"useCallbackRef");function Xx(e,t=globalThis?.document){let r=Na(e);q(()=>{let n=a(o=>{o.key==="Escape"&&r(o)},"handleKeyDown");return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}a(Xx,"useEscapeKeydown");var T3="DismissableLayer",hm="dismissableLayer.update",A3="dismissableLayer.pointerDownOutside",C3="dismissableLayer.focusOutside",yx,Zx=Ve({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qx=se((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...c}=e,u=Ct(Zx),[p,f]=J(null),m=p?.ownerDocument??globalThis?.document,[,g]=J({}),b=jn(t,C=>f(C)),y=Array.from(u.layers),[S]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=y.indexOf(S),w=p?y.indexOf(p):-1,E=u.layersWithOutsidePointerEventsDisabled.size>0,x=w>=v,A=eT(C=>{let O=C.target,I=[...u.branches].some(P=>P.contains(O));!x||I||(o?.(C),s?.(C),C.defaultPrevented||l?.())},m),_=tT(C=>{let O=C.target;[...u.branches].some(P=>P.contains(O))||(i?.(C),s?.(C),C.defaultPrevented||l?.())},m);return Xx(C=>{w===u.layers.size-1&&(n?.(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},m),q(()=>{if(p)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(yx=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(p)),u.layers.add(p),gm(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=yx)}},[p,m,r,u]),q(()=>()=>{p&&(u.layers.delete(p),u.layersWithOutsidePointerEventsDisabled.delete(p),gm())},[p,u]),q(()=>{let C=a(()=>g({}),"handleUpdate");return document.addEventListener(hm,C),()=>document.removeEventListener(hm,C)},[]),(0,Am.jsx)(Sn.div,{...c,ref:b,style:{pointerEvents:E?x?"auto":"none":void 0,...e.style},onFocusCapture:Rc(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Rc(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Rc(e.onPointerDownCapture,A.onPointerDownCapture)})});Qx.displayName=T3;var R3="DismissableLayerBranch",_3=se((e,t)=>{let r=Ct(Zx),n=Q(null),o=jn(t,n);return q(()=>{let i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),(0,Am.jsx)(Sn.div,{...e,ref:o})});_3.displayName=R3;function eT(e,t=globalThis?.document){let r=Na(e),n=Q(!1),o=Q(()=>{});return q(()=>{let i=a(l=>{if(l.target&&!n.current){let u=a(function(){Cm(A3,r,p,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2");var c=u;let p={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},"handlePointerDown"),s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:a(()=>n.current=!0,"onPointerDownCapture")}}a(eT,"usePointerDownOutside");function tT(e,t=globalThis?.document){let r=Na(e),n=Q(!1);return q(()=>{let o=a(i=>{i.target&&!n.current&&Cm(C3,r,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:a(()=>n.current=!0,"onFocusCapture"),onBlurCapture:a(()=>n.current=!1,"onBlurCapture")}}a(tT,"useFocusOutside");function gm(){let e=new CustomEvent(hm);document.dispatchEvent(e)}a(gm,"dispatchUpdate");function Cm(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Kx(o,i):o.dispatchEvent(i)}a(Cm,"handleAndDispatchCustomEvent");var im="focusScope.autoFocusOnMount",sm="focusScope.autoFocusOnUnmount",bx={bubbles:!1,cancelable:!0},O3="FocusScope",nT=se((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,c]=J(null),u=Na(o),p=Na(i),f=Q(null),m=jn(t,y=>c(y)),g=Q({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;q(()=>{if(n){let w=a(function(_){if(g.paused||!l)return;let C=_.target;l.contains(C)?f.current=C:En(f.current,{select:!0})},"handleFocusIn2"),E=a(function(_){if(g.paused||!l)return;let C=_.relatedTarget;C!==null&&(l.contains(C)||En(f.current,{select:!0}))},"handleFocusOut2"),x=a(function(_){if(document.activeElement===document.body)for(let O of _)O.removedNodes.length>0&&En(l)},"handleMutations2");var y=w,S=E,v=x;document.addEventListener("focusin",w),document.addEventListener("focusout",E);let A=new MutationObserver(x);return l&&A.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",E),A.disconnect()}}},[n,l,g.paused]),q(()=>{if(l){vx.add(g);let y=document.activeElement;if(!l.contains(y)){let v=new CustomEvent(im,bx);l.addEventListener(im,u),l.dispatchEvent(v),v.defaultPrevented||(oT(cT(Rm(l)),{select:!0}),document.activeElement===y&&En(l))}return()=>{l.removeEventListener(im,u),setTimeout(()=>{let v=new CustomEvent(sm,bx);l.addEventListener(sm,p),l.dispatchEvent(v),v.defaultPrevented||En(y??document.body,{select:!0}),l.removeEventListener(sm,p),vx.remove(g)},0)}}},[l,u,p,g]);let b=ne(y=>{if(!r&&!n||g.paused)return;let S=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,v=document.activeElement;if(S&&v){let w=y.currentTarget,[E,x]=aT(w);E&&x?!y.shiftKey&&v===x?(y.preventDefault(),r&&En(E,{select:!0})):y.shiftKey&&v===E&&(y.preventDefault(),r&&En(x,{select:!0})):v===w&&y.preventDefault()}},[r,n,g.paused]);return(0,rT.jsx)(Sn.div,{tabIndex:-1,...s,ref:m,onKeyDown:b})});nT.displayName=O3;function oT(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(En(n,{select:t}),document.activeElement!==r)return}a(oT,"focusFirst");function aT(e){let t=Rm(e),r=ym(t,e),n=ym(t.reverse(),e);return[r,n]}a(aT,"getTabbableEdges");function Rm(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a(n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}a(Rm,"getTabbableCandidates");function ym(e,t){for(let r of e)if(!iT(r,{upTo:t}))return r}a(ym,"findVisible");function iT(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}a(iT,"isHidden");function sT(e){return e instanceof HTMLInputElement&&"select"in e}a(sT,"isSelectableInput");function En(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&sT(e)&&t&&e.select()}}a(En,"focus");var vx=lT();function lT(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=bm(e,t),e.unshift(t)},remove(t){e=bm(e,t),e[0]?.resume()}}}a(lT,"createFocusScopesStack");function bm(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}a(bm,"arrayRemove");function cT(e){return e.filter(t=>t.tagName!=="A")}a(cT,"removeLinks");var I3="Portal",dT=se((e,t)=>{let{container:r,...n}=e,[o,i]=J(!1);Wi(()=>i(!0),[]);let s=r||o&&globalThis?.document?.body;return s?bs.createPortal((0,uT.jsx)(Sn.div,{...n,ref:t}),s):null});dT.displayName=I3;function pT(e,t){return eo((r,n)=>t[r][n]??r,e)}a(pT,"useStateMachine");var Nc=a(e=>{let{present:t,children:r}=e,n=fT(t),o=typeof r=="function"?r({present:n.isPresent}):Ae.only(r),i=jn(n.ref,mT(o));return typeof r=="function"||n.isPresent?_e(o,{ref:i}):null},"Presence");Nc.displayName="Presence";function fT(e){let[t,r]=J(),n=Q(null),o=Q(e),i=Q("none"),s=e?"mounted":"unmounted",[l,c]=pT(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return q(()=>{let u=Vi(n.current);i.current=l==="mounted"?u:"none"},[l]),Wi(()=>{let u=n.current,p=o.current;if(p!==e){let m=i.current,g=Vi(u);e?c("MOUNT"):g==="none"||u?.display==="none"?c("UNMOUNT"):c(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Wi(()=>{if(t){let u,p=t.ownerDocument.defaultView??window,f=a(g=>{let y=Vi(n.current).includes(CSS.escape(g.animationName));if(g.target===t&&y&&(c("ANIMATION_END"),!o.current)){let S=t.style.animationFillMode;t.style.animationFillMode="forwards",u=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},"handleAnimationEnd"),m=a(g=>{g.target===t&&(i.current=Vi(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{p.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:ne(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}a(fT,"usePresence");function Vi(e){return e?.animationName||"none"}a(Vi,"getAnimationName");function mT(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}a(mT,"getElementRef");var lm=0;function hT(){q(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??vm()),document.body.insertAdjacentElement("beforeend",e[1]??vm()),lm++,()=>{lm===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lm--}},[])}a(hT,"useFocusGuards");function vm(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}a(vm,"createFocusGuard");var zr=a(function(){return zr=Object.assign||a(function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},"__assign"),zr.apply(this,arguments)},"__assign");function _m(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}a(_m,"__rest");function gT(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}a(gT,"__spreadArray");var _c="right-scroll-bar-position",Oc="width-before-scroll-bar",P3="with-scroll-bars-hidden",k3="--removed-body-scroll-bar-size";function Ic(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}a(Ic,"assignRef");function yT(e,t){var r=J(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}a(yT,"useCallbackRef");var D3=typeof window<"u"?it:q,Ex=new WeakMap;function bT(e,t){var r=yT(t||null,function(n){return e.forEach(function(o){return Ic(o,n)})});return D3(function(){var n=Ex.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(l){i.has(l)||Ic(l,null)}),i.forEach(function(l){o.has(l)||Ic(l,s)})}Ex.set(r,e)},[e]),r}a(bT,"useMergeRefs");function vT(e){return e}a(vT,"ItoI");function ET(e,t){t===void 0&&(t=vT);var r=[],n=!1,o={read:a(function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},"read"),useMedium:a(function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(l){return l!==s})}},"useMedium"),assignSyncMedium:a(function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:a(function(l){return i(l)},"push"),filter:a(function(){return r},"filter")}},"assignSyncMedium"),assignMedium:a(function(i){n=!0;var s=[];if(r.length){var l=r;r=[],l.forEach(i),s=r}var c=a(function(){var p=s;s=[],p.forEach(i)},"executeQueue"),u=a(function(){return Promise.resolve().then(c)},"cycle");u(),r={push:a(function(p){s.push(p),u()},"push"),filter:a(function(p){return s=s.filter(p),r},"filter")}},"assignMedium")};return o}a(ET,"innerCreateMedium");function ST(e){e===void 0&&(e={});var t=ET(null);return t.options=zr({async:!0,ssr:!1},e),t}a(ST,"createSidecarMedium");var wT=a(function(e){var t=e.sideCar,r=_m(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return ie(n,zr({},r))},"SideCar");wT.isSideCarExport=!0;function xT(e,t){return e.useMedium(t),wT}a(xT,"exportSidecar");var TT=ST(),cm=a(function(){},"nothing"),Fc=se(function(e,t){var r=Q(null),n=J({onScrollCapture:cm,onWheelCapture:cm,onTouchMoveCapture:cm}),o=n[0],i=n[1],s=e.forwardProps,l=e.children,c=e.className,u=e.removeScrollBar,p=e.enabled,f=e.shards,m=e.sideCar,g=e.noRelative,b=e.noIsolation,y=e.inert,S=e.allowPinchZoom,v=e.as,w=v===void 0?"div":v,E=e.gapMode,x=_m(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=m,_=bT([r,t]),C=zr(zr({},x),o);return ie(Pe,null,p&&ie(A,{sideCar:TT,removeScrollBar:u,shards:f,noRelative:g,noIsolation:b,inert:y,setCallbacks:i,allowPinchZoom:!!S,lockRef:r,gapMode:E}),s?_e(Ae.only(l),zr(zr({},C),{ref:_})):ie(w,zr({},C,{className:c,ref:_}),l))});Fc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fc.classNames={fullWidth:Oc,zeroRight:_c};var Sx,N3=a(function(){if(Sx)return Sx;if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function AT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=N3();return t&&e.setAttribute("nonce",t),e}a(AT,"makeStyleTag");function CT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}a(CT,"injectStyles");function RT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}a(RT,"insertStyleTag");var F3=a(function(){var e=0,t=null;return{add:a(function(r){e==0&&(t=AT())&&(CT(t,r),RT(t)),e++},"add"),remove:a(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),L3=a(function(){var e=F3();return function(t,r){q(function(){return e.add(t),function(){e.remove()}},[t&&r])}},"styleHookSingleton"),_T=a(function(){var e=L3(),t=a(function(r){var n=r.styles,o=r.dynamic;return e(n,o),null},"Sheet");return t},"styleSingleton"),M3={left:0,top:0,right:0,gap:0},um=a(function(e){return parseInt(e||"",10)||0},"parse"),B3=a(function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[um(r),um(n),um(o)]},"getOffset"),$3=a(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return M3;var t=B3(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},"getGapWidth"),j3=_T(),Pa="data-scroll-locked",U3=a(function(e,t,r,n){var o=e.left,i=e.top,s=e.right,l=e.gap;return r===void 0&&(r="margin"),`
|
|
797
|
+
.`.concat(P3,` {
|
|
798
|
+
overflow: hidden `).concat(n,`;
|
|
799
|
+
padding-right: `).concat(l,"px ").concat(n,`;
|
|
800
|
+
}
|
|
801
|
+
body[`).concat(Pa,`] {
|
|
802
|
+
overflow: hidden `).concat(n,`;
|
|
803
|
+
overscroll-behavior: contain;
|
|
804
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
805
|
+
padding-left: `.concat(o,`px;
|
|
806
|
+
padding-top: `).concat(i,`px;
|
|
807
|
+
padding-right: `).concat(s,`px;
|
|
808
|
+
margin-left:0;
|
|
809
|
+
margin-top:0;
|
|
810
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
811
|
+
`),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.`).concat(_c,` {
|
|
815
|
+
right: `).concat(l,"px ").concat(n,`;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.`).concat(Oc,` {
|
|
819
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.`).concat(_c," .").concat(_c,` {
|
|
823
|
+
right: 0 `).concat(n,`;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
.`).concat(Oc," .").concat(Oc,` {
|
|
827
|
+
margin-right: 0 `).concat(n,`;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
body[`).concat(Pa,`] {
|
|
831
|
+
`).concat(k3,": ").concat(l,`px;
|
|
832
|
+
}
|
|
833
|
+
`)},"getStyles"),wx=a(function(){var e=parseInt(document.body.getAttribute(Pa)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),z3=a(function(){q(function(){return document.body.setAttribute(Pa,(wx()+1).toString()),function(){var e=wx()-1;e<=0?document.body.removeAttribute(Pa):document.body.setAttribute(Pa,e.toString())}},[])},"useLockAttribute"),H3=a(function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;z3();var i=ve(function(){return $3(o)},[o]);return ie(j3,{styles:U3(i,!t,o,r?"":"!important")})},"RemoveScrollBar"),Em=!1;if(typeof window<"u")try{Hi=Object.defineProperty({},"passive",{get:a(function(){return Em=!0,!0},"get")}),window.addEventListener("test",Hi,Hi),window.removeEventListener("test",Hi,Hi)}catch{Em=!1}var Hi,Ra=Em?{passive:!1}:!1,V3=a(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),OT=a(function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!V3(e)&&r[t]==="visible")},"elementCanBeScrolled"),W3=a(function(e){return OT(e,"overflowY")},"elementCouldBeVScrolled"),J3=a(function(e){return OT(e,"overflowX")},"elementCouldBeHScrolled"),xx=a(function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=IT(e,n);if(o){var i=PT(e,n),s=i[1],l=i[2];if(s>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},"locationCouldBeScrolled"),q3=a(function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},"getVScrollVariables"),G3=a(function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},"getHScrollVariables"),IT=a(function(e,t){return e==="v"?W3(t):J3(t)},"elementCouldBeScrolled"),PT=a(function(e,t){return e==="v"?q3(t):G3(t)},"getScrollVariables"),Y3=a(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),K3=a(function(e,t,r,n,o){var i=Y3(e,window.getComputedStyle(t).direction),s=i*n,l=r.target,c=t.contains(l),u=!1,p=s>0,f=0,m=0;do{if(!l)break;var g=PT(e,l),b=g[0],y=g[1],S=g[2],v=y-S-i*b;(b||v)&&IT(e,l)&&(f+=v,m+=b);var w=l.parentNode;l=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(p&&(o&&Math.abs(f)<1||!o&&s>f)||!p&&(o&&Math.abs(m)<1||!o&&-s>m))&&(u=!0),u},"handleScroll"),xc=a(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),Tx=a(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),Ax=a(function(e){return e&&"current"in e?e.current:e},"extractRef"),X3=a(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),Z3=a(function(e){return`
|
|
834
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
835
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
836
|
+
`)},"generateStyle"),Q3=0,_a=[];function kT(e){var t=Q([]),r=Q([0,0]),n=Q(),o=J(Q3++)[0],i=J(_T)[0],s=Q(e);q(function(){s.current=e},[e]),q(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=gT([e.lockRef.current],(e.shards||[]).map(Ax),!0).filter(Boolean);return y.forEach(function(S){return S.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=ne(function(y,S){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var v=xc(y),w=r.current,E="deltaX"in y?y.deltaX:w[0]-v[0],x="deltaY"in y?y.deltaY:w[1]-v[1],A,_=y.target,C=Math.abs(E)>Math.abs(x)?"h":"v";if("touches"in y&&C==="h"&&_.type==="range")return!1;var O=xx(C,_);if(!O)return!0;if(O?A=C:(A=C==="v"?"h":"v",O=xx(C,_)),!O)return!1;if(!n.current&&"changedTouches"in y&&(E||x)&&(n.current=A),!A)return!0;var I=n.current||A;return K3(I,S,y,I==="h"?E:x,!0)},[]),c=ne(function(y){var S=y;if(!(!_a.length||_a[_a.length-1]!==i)){var v="deltaY"in S?Tx(S):xc(S),w=t.current.filter(function(A){return A.name===S.type&&(A.target===S.target||S.target===A.shadowParent)&&X3(A.delta,v)})[0];if(w&&w.should){S.cancelable&&S.preventDefault();return}if(!w){var E=(s.current.shards||[]).map(Ax).filter(Boolean).filter(function(A){return A.contains(S.target)}),x=E.length>0?l(S,E[0]):!s.current.noIsolation;x&&S.cancelable&&S.preventDefault()}}},[]),u=ne(function(y,S,v,w){var E={name:y,delta:S,target:v,should:w,shadowParent:DT(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(x){return x!==E})},1)},[]),p=ne(function(y){r.current=xc(y),n.current=void 0},[]),f=ne(function(y){u(y.type,Tx(y),y.target,l(y,e.lockRef.current))},[]),m=ne(function(y){u(y.type,xc(y),y.target,l(y,e.lockRef.current))},[]);q(function(){return _a.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener("wheel",c,Ra),document.addEventListener("touchmove",c,Ra),document.addEventListener("touchstart",p,Ra),function(){_a=_a.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,Ra),document.removeEventListener("touchmove",c,Ra),document.removeEventListener("touchstart",p,Ra)}},[]);var g=e.removeScrollBar,b=e.inert;return ie(Pe,null,b?ie(i,{styles:Z3(o)}):null,g?ie(H3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}a(kT,"RemoveScrollSideCar");function DT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}a(DT,"getOutermostShadowParent");var eF=xT(TT,kT),NT=se(function(e,t){return ie(Fc,zr({},e,{ref:t,sideCar:eF}))});NT.classNames=Fc.classNames;var tF=NT,rF=a(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),Oa=new WeakMap,Tc=new WeakMap,Ac={},dm=0,FT=a(function(e){return e&&(e.host||FT(e.parentNode))},"unwrapHost"),nF=a(function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=FT(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},"correctTargets"),oF=a(function(e,t,r,n){var o=nF(t,Array.isArray(e)?e:[e]);Ac[r]||(Ac[r]=new WeakMap);var i=Ac[r],s=[],l=new Set,c=new Set(o),u=a(function(f){!f||l.has(f)||(l.add(f),u(f.parentNode))},"keep");o.forEach(u);var p=a(function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(m){if(l.has(m))p(m);else try{var g=m.getAttribute(n),b=g!==null&&g!=="false",y=(Oa.get(m)||0)+1,S=(i.get(m)||0)+1;Oa.set(m,y),i.set(m,S),s.push(m),y===1&&b&&Tc.set(m,!0),S===1&&m.setAttribute(r,"true"),b||m.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})},"deep");return p(t),l.clear(),dm++,function(){s.forEach(function(f){var m=Oa.get(f)-1,g=i.get(f)-1;Oa.set(f,m),i.set(f,g),m||(Tc.has(f)||f.removeAttribute(n),Tc.delete(f)),g||f.removeAttribute(r)}),dm--,dm||(Oa=new WeakMap,Oa=new WeakMap,Tc=new WeakMap,Ac={})}},"applyAttributeToOthers"),aF=a(function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||rF(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),oF(n,o,r,"aria-hidden")):function(){return null}},"hideOthers"),Lc="Dialog",[LT,iF]=Bx(Lc),[sF,kr]=LT(Lc),Om=a(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=Q(null),c=Q(null),[u,p]=jx({prop:n,defaultProp:o??!1,onChange:i,caller:Lc});return(0,Le.jsx)(sF,{scope:t,triggerRef:l,contentRef:c,contentId:Cc(),titleId:Cc(),descriptionId:Cc(),open:u,onOpenChange:p,onOpenToggle:ne(()=>p(f=>!f),[p]),modal:s,children:r})},"Dialog");Om.displayName=Lc;var MT="DialogTrigger",Im=se((e,t)=>{let{__scopeDialog:r,...n}=e,o=kr(MT,r),i=jn(t,o.triggerRef);return(0,Le.jsx)(Sn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Mc(o.open),...n,ref:i,onClick:Ia(e.onClick,o.onOpenToggle)})});Im.displayName=MT;var Pm="DialogPortal",[lF,BT]=LT(Pm,{forceMount:void 0}),km=a(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=kr(Pm,t);return(0,Le.jsx)(lF,{scope:t,forceMount:r,children:Ae.map(n,s=>(0,Le.jsx)(Nc,{present:r||i.open,children:(0,Le.jsx)(dT,{asChild:!0,container:o,children:s})}))})},"DialogPortal");km.displayName=Pm;var Pc="DialogOverlay",Dm=se((e,t)=>{let r=BT(Pc,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=kr(Pc,e.__scopeDialog);return i.modal?(0,Le.jsx)(Nc,{present:n||i.open,children:(0,Le.jsx)(uF,{...o,ref:t})}):null});Dm.displayName=Pc;var cF=Dc("DialogOverlay.RemoveScroll"),uF=se((e,t)=>{let{__scopeDialog:r,...n}=e,o=kr(Pc,r);return(0,Le.jsx)(tF,{as:cF,allowPinchZoom:!0,shards:[o.contentRef],children:(0,Le.jsx)(Sn.div,{"data-state":Mc(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Io="DialogContent",Nm=se((e,t)=>{let r=BT(Io,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=kr(Io,e.__scopeDialog);return(0,Le.jsx)(Nc,{present:n||i.open,children:i.modal?(0,Le.jsx)(dF,{...o,ref:t}):(0,Le.jsx)(pF,{...o,ref:t})})});Nm.displayName=Io;var dF=se((e,t)=>{let r=kr(Io,e.__scopeDialog),n=Q(null),o=jn(t,r.contentRef,n);return q(()=>{let i=n.current;if(i)return aF(i)},[]),(0,Le.jsx)($T,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ia(e.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ia(e.onPointerDownOutside,i=>{let s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&i.preventDefault()}),onFocusOutside:Ia(e.onFocusOutside,i=>i.preventDefault())})}),pF=se((e,t)=>{let r=kr(Io,e.__scopeDialog),n=Q(!1),o=Q(!1);return(0,Le.jsx)($T,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a(i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,o.current=!1},"onCloseAutoFocus"),onInteractOutside:a(i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));let s=i.target;r.triggerRef.current?.contains(s)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()},"onInteractOutside")})}),$T=se((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=kr(Io,r),c=Q(null),u=jn(t,c);return hT(),(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(nT,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,Le.jsx)(Qx,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Mc(l.open),...s,ref:u,onDismiss:a(()=>l.onOpenChange(!1),"onDismiss")})}),(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(mF,{titleId:l.titleId}),(0,Le.jsx)(gF,{contentRef:c,descriptionId:l.descriptionId})]})]})}),Fm="DialogTitle",Lm=se((e,t)=>{let{__scopeDialog:r,...n}=e,o=kr(Fm,r);return(0,Le.jsx)(Sn.h2,{id:o.titleId,...n,ref:t})});Lm.displayName=Fm;var jT="DialogDescription",Mm=se((e,t)=>{let{__scopeDialog:r,...n}=e,o=kr(jT,r);return(0,Le.jsx)(Sn.p,{id:o.descriptionId,...n,ref:t})});Mm.displayName=jT;var UT="DialogClose",Bm=se((e,t)=>{let{__scopeDialog:r,...n}=e,o=kr(UT,r);return(0,Le.jsx)(Sn.button,{type:"button",...n,ref:t,onClick:Ia(e.onClick,()=>o.onOpenChange(!1))})});Bm.displayName=UT;function Mc(e){return e?"open":"closed"}a(Mc,"getState");var zT="DialogTitleWarning",[fF,HT]=Mx(zT,{contentName:Io,titleName:Fm,docsSlug:"dialog"}),mF=a(({titleId:e})=>{let t=HT(zT),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
837
|
+
|
|
838
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
839
|
+
|
|
840
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return q(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},"TitleWarning"),hF="DialogDescriptionWarning",gF=a(({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${HT(hF).contentName}}.`;return q(()=>{let o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},"DescriptionWarning"),VT=Om,yF=Im,WT=km,JT=Dm,qT=Nm,GT=Lm,YT=Mm,KT=Bm,XT={};jo(XT,{Actions:()=>AF,CloseButton:()=>rA,Col:()=>oA,Container:()=>tA,Content:()=>SF,Description:()=>TF,Error:()=>CF,ErrorWrapper:()=>aA,Header:()=>wF,Overlay:()=>eA,Row:()=>nA,Title:()=>xF});var $m=se(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:o="medium",disabled:i=!1,active:s=!1,onClick:l,...c},u)=>{let p="button";e&&(p=w3);let[f,m]=J(!1),g=a(b=>{l&&l(b),t!=="none"&&m(!0)},"handleClick");return q(()=>{let b=setTimeout(()=>{f&&m(!1)},1e3);return()=>clearTimeout(b)},[f]),d.createElement(bF,{as:p,ref:u,variant:n,size:r,padding:o,disabled:i,active:s,animating:f,animation:t,onClick:g,...c})});$m.displayName="Button";var bF=R("button",{shouldForwardProp:a(e=>ys(e),"shouldForwardProp")})(({theme:e,variant:t,size:r,disabled:n,active:o,animating:i,animation:s="none",padding:l})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:l==="none"?0:l==="small"&&r==="small"?"0 7px":l==="small"&&r==="medium"?"0 9px":r==="small"?"0 10px":r==="medium"?"0 12px":0,height:r==="small"?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:t==="solid"?e.color.secondary:t==="outline"?e.button.background:t==="ghost"&&o?e.background.hoverable:"transparent",...t==="ghost"?{".sb-bar &":{background:o?ye(.9,e.barTextColor):"transparent",color:o?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:ye(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:ye(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${Mt(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:t==="solid"?e.color.lightest:t==="outline"?e.input.color:t==="ghost"&&o?e.color.secondary:t==="ghost"?e.color.mediumdark:e.input.color,boxShadow:t==="outline"?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let c=e.color.secondary;return t==="solid"&&(c=e.color.secondary),t==="outline"&&(c=e.button.background),t==="ghost"?ye(.86,e.color.secondary):e.base==="light"?bt(.02,c):Rr(.03,c)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let c=e.color.secondary;return t==="solid"&&(c=e.color.secondary),t==="outline"&&(c=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?bt(.02,c):Rr(.03,c)})()},"&:focus":{boxShadow:`${Mt(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:i&&s!=="none"?`${e.animation[s]} 1000ms ease-out`:""}})),ZT=se(({padding:e="small",variant:t="ghost",...r},n)=>d.createElement($m,{padding:e,variant:t,ref:n,...r}));ZT.displayName="IconButton";var QT=rr({from:{opacity:0},to:{opacity:1}}),vF=rr({from:{maxHeight:0},to:{}}),EF=rr({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),eA=R.div({backdropFilter:"blur(24px)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${QT} 200ms`}),tA=R.div(({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"auto",zIndex:11,animation:`${EF} 200ms`,"&:focus-visible":{outline:"none"}})),rA=a(e=>d.createElement(KT,{asChild:!0},d.createElement(ZT,{"aria-label":"Close",...e},d.createElement(Cb,null))),"CloseButton"),SF=R.div({display:"flex",flexDirection:"column",margin:16,gap:16}),nA=R.div({display:"flex",justifyContent:"space-between",gap:16}),oA=R.div({display:"flex",flexDirection:"column",gap:4}),wF=a(e=>d.createElement(nA,null,d.createElement(oA,{...e}),d.createElement(rA,null)),"Header"),xF=R(GT)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),TF=R(YT)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),AF=R.div({display:"flex",flexDirection:"row-reverse",gap:8}),aA=R.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${vF} 300ms, ${QT} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),CF=a(({children:e,...t})=>d.createElement(aA,{...t},d.createElement("div",null,e)),"Error");function iA({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:o=a(u=>u.preventDefault(),"onInteractOutside"),className:i,container:s,portalSelector:l,...c}){let u=s??(l?document.querySelector(l):null)??document.body;return d.createElement(VT,{...c},d.createElement(WT,{container:u},d.createElement(JT,{asChild:!0},d.createElement(eA,null)),d.createElement(qT,{asChild:!0,onInteractOutside:o,onEscapeKeyDown:n},d.createElement(tA,{className:i,width:t,height:r},e))))}a(iA,"BaseModal");var fre=Object.assign(iA,XT,{Dialog:Lx}),RF=a(e=>typeof e=="number"?e:Number(e),"toNumber"),_F=R.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${Ya}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${Ya}`]:{marginTop:0}},({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!!(t&&r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!!(t&&n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}}),gre=a(({col:e,row:t,outer:r,children:n,...o})=>{let i=RF(typeof r=="number"||!r?r:e||t);return d.createElement(_F,{col:e,row:t,outer:i,...o},n)},"Spaced"),OF=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),IF=R.div(),PF=R.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),vre=a(({children:e,...t})=>{let[r,n]=Ae.toArray(e);return d.createElement(PF,{...t},d.createElement(OF,null,r),n&&d.createElement(IF,null,n))},"Placeholder");function sA(e,t){var r=Q(null),n=Q(null);n.current=t;var o=Q(null);q(function(){i()});var i=ne(function(){var s=o.current,l=n.current,c=s||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===c&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:c,subscriber:e,cleanup:c?e(c):void 0})},[e]);return q(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),ne(function(s){o.current=s,i()},[i])}a(sA,"useResolvedElement");function Sm(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:t==="contentBoxSize"?e.contentRect[r==="inlineSize"?"width":"height"]:void 0}a(Sm,"extractSize");function jm(e){e===void 0&&(e={});var t=e.onResize,r=Q(void 0);r.current=t;var n=e.round||Math.round,o=Q(),i=J({width:void 0,height:void 0}),s=i[0],l=i[1],c=Q(!1);q(function(){return c.current=!1,function(){c.current=!0}},[]);var u=Q({width:void 0,height:void 0}),p=sA(ne(function(f){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(m){var g=m[0],b=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",y=Sm(g,b,"inlineSize"),S=Sm(g,b,"blockSize"),v=y?n(y):void 0,w=S?n(S):void 0;if(u.current.width!==v||u.current.height!==w){var E={width:v,height:w};u.current.width=v,u.current.height=w,r.current?r.current(E):c.current||l(E)}})}),o.current.instance.observe(f,{box:e.box}),function(){o.current&&o.current.instance.unobserve(f)}},[e.box,n]),e.ref);return ve(function(){return{ref:p,width:s.width,height:s.height}},[p,s.width,s.height])}a(jm,"useResizeObserver");var kF=R.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function DF({centered:e,scale:t,children:r}){let n=Q(null),[o,i]=J(0),s=ne(({height:l})=>{l&&i(l/t)},[t]);return q(()=>{n.current&&i(n.current.getBoundingClientRect().height)},[t]),jm({ref:n,onResize:s}),d.createElement(kF,{centered:e,scale:t,elementHeight:o},d.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}a(DF,"ZoomElement");var NF=class extends Tt{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:t}=this.props;this.iframe=t.current}shouldComponentUpdate(t){let{scale:r,active:n}=this.props;return r!==t.scale&&this.setIframeInnerZoom(t.scale),n!==t.active&&this.iframe.setAttribute("data-is-storybook",t.active?"true":"false"),t.children.props.src!==this.props.children.props.src}setIframeInnerZoom(t){try{Object.assign(this.iframe.contentDocument.body.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}catch{this.setIframeZoom(t)}}setIframeZoom(t){Object.assign(this.iframe.style,{width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"})}render(){let{children:t}=this.props;return d.createElement(d.Fragment,null,t)}};a(NF,"ZoomIFrame");var{document:FF}=oe,LF=R.strong(({theme:e})=>({color:e.color.orange})),MF=R.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),Cx=R.em(({theme:e})=>({color:e.textMutedColor})),BF=/(Error): (.*)\n/,$F=/at (?:(.*) )?\(?(.+)\)?/,jF=/([^@]+)?(?:\/<)?@(.+)?/,UF=/([^@]+)?@(.+)?/,_re=a(({error:e})=>{if(!e)return d.createElement(Pe,null,"This error has no stack or message");if(!e.stack)return d.createElement(Pe,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}
|
|
841
|
+
|
|
842
|
+
${t}`);let r=t.match(BF);if(!r)return d.createElement(Pe,null,t);let[,n,o]=r,i=t.split(/\n/).slice(1),[,...s]=i.map(l=>{let c=l.match($F)||l.match(jF)||l.match(UF);return c?{name:(c[1]||"").replace("/<",""),location:c[2].replace(FF.location.origin,"")}:null}).filter(Boolean);return d.createElement(Pe,null,d.createElement("span",null,n),": ",d.createElement(LF,null,o),d.createElement("br",null),s.map((l,c)=>l?.name?d.createElement(Pe,{key:c}," ","at ",d.createElement(MF,null,l.name)," (",d.createElement(Cx,null,l.location),")",d.createElement("br",null)):d.createElement(Pe,{key:c}," ","at ",d.createElement(Cx,null,l?.location),d.createElement("br",null))))},"ErrorFormatter"),zF=R.input({appearance:"none",display:"grid",placeContent:"center",width:14,height:14,flexShrink:0,margin:0,border:`1px solid ${yt.border}`,borderRadius:2,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:yt.medium},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:yt.mediumdark},"&:checked, &:indeterminate":{backgroundColor:yt.secondary},"&:checked::before":{content:'""',width:14,height:14,background:`no-repeat center url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E")`},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`1px solid ${yt.secondary}`,outlineOffset:1}}),HF=a(e=>d.createElement(zF,{...e,type:"checkbox"}),"Checkbox"),VF=R.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),WF=R.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),JF=a(({label:e,children:t,...r})=>d.createElement(VF,{...r},e?d.createElement(WF,null,d.createElement("span",null,e)):null,t),"Field"),Um=a(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},"sizes"),lA=a(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},"alignment"),cA=a(({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};case void 0:case null:default:return{}}},"validation"),qF={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},uA=a(({theme:e})=>({...qF,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}}),"styles"),GF=Object.assign(R(se(a(function({size:t,valid:r,align:n,...o},i){return d.createElement("input",{...o,ref:i})},"Input")))(uA,Um,lA,cA,{minHeight:32}),{displayName:"Input"}),YF=R.input({appearance:"none",display:"grid",placeContent:"center",width:16,height:16,flexShrink:0,margin:-1,border:`1px solid ${yt.border}`,borderRadius:8,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:yt.medium},"&:disabled:checked":{backgroundColor:yt.mediumdark},"&:checked":{backgroundColor:yt.secondary,boxShadow:"inset 0 0 0 2px white"},"&:enabled:focus-visible":{outline:`1px solid ${yt.secondary}`,outlineOffset:1}}),KF=a(e=>d.createElement(YF,{...e,type:"radio"}),"Radio"),XF=R.select(Um,({theme:e})=>({appearance:"none",background:`calc(100% - 12px) center no-repeat url("data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A")`,backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.color.mediumdark}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:"1px solid #e4e4e7",padding:4,marginTop:4,background:e.base==="light"?_n(e.background.app):e.background.app,filter:`
|
|
843
|
+
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
|
|
844
|
+
drop-shadow(0 0 3px rgba(0,0,0,0.1))
|
|
845
|
+
`,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}}})),ZF=a(({children:e,...t})=>d.createElement(XF,{...t},!ea()&&d.createElement("button",null,d.createElement("selectedcontent",null),d.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"},d.createElement("path",{d:"m6 9 6 6 6-6"}))),d.createElement("optgroup",null,e)),"Select"),QF=it,eL=a(function(t){var r=d.useRef(t);return QF(function(){r.current=t}),r},"useLatest"),Rx=a(function(t,r){if(typeof t=="function"){t(r);return}t.current=r},"updateRef"),tL=a(function(t,r){var n=d.useRef();return d.useCallback(function(o){t.current=o,n.current&&Rx(n.current,null),n.current=r,r&&Rx(r,o)},[r])},"useComposedRef"),_x={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},rL=a(function(t){Object.keys(_x).forEach(function(r){t.style.setProperty(r,_x[r],"important")})},"forceHiddenStyles"),Ox=rL,$t=null,Ix=a(function(t,r){var n=t.scrollHeight;return r.sizingStyle.boxSizing==="border-box"?n+r.borderSize:n-r.paddingSize},"getHeight");function dA(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),$t||($t=document.createElement("textarea"),$t.setAttribute("tabindex","-1"),$t.setAttribute("aria-hidden","true"),Ox($t)),$t.parentNode===null&&document.body.appendChild($t);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,l=s.boxSizing;Object.keys(s).forEach(function(m){var g=m;$t.style[g]=s[g]}),Ox($t),$t.value=t;var c=Ix($t,e);$t.value=t,c=Ix($t,e),$t.value="x";var u=$t.scrollHeight-o,p=u*r;l==="border-box"&&(p=p+o+i),c=Math.max(p,c);var f=u*n;return l==="border-box"&&(f=f+o+i),c=Math.min(f,c),[c,u]}a(dA,"calculateNodeHeight");var Px=a(function(){},"noop"),nL=a(function(t,r){return t.reduce(function(n,o){return n[o]=r[o],n},{})},"pick"),oL=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],aL=!!document.documentElement.currentStyle,iL=a(function(t){var r=window.getComputedStyle(t);if(r===null)return null;var n=nL(oL,r),o=n.boxSizing;if(o==="")return null;aL&&o==="border-box"&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var i=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),s=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:i,borderSize:s}},"getSizingData"),sL=iL;function Bc(e,t,r){var n=eL(r);it(function(){var o=a(function(s){return n.current(s)},"handler");if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}a(Bc,"useListener");var lL=a(function(t,r){Bc(document.body,"reset",function(n){t.current.form===n.target&&r(n)})},"useFormResetListener"),cL=a(function(t){Bc(window,"resize",t)},"useWindowResizeListener"),uL=a(function(t){Bc(document.fonts,"loadingdone",t)},"useFontsLoadedListener"),dL=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],pL=a(function(t,r){var n=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,l=s===void 0?Px:s,c=t.onHeightChange,u=c===void 0?Px:c,p=Zn(t,dL),f=p.value!==void 0,m=Q(null),g=tL(m,r),b=Q(0),y=Q(),S=a(function(){var E=m.current,x=n&&y.current?y.current:sL(E);if(x){y.current=x;var A=dA(x,E.value||E.placeholder||"x",i,o),_=A[0],C=A[1];b.current!==_&&(b.current=_,E.style.setProperty("height",_+"px","important"),u(_,{rowHeight:C}))}},"resizeTextarea"),v=a(function(E){f||S(),l(E)},"handleChange");return it(S),lL(m,function(){if(!f){var w=m.current.value;requestAnimationFrame(function(){var E=m.current;E&&w!==E.value&&S()})}}),cL(S),uL(S),ie("textarea",Ee({},p,{onChange:v,ref:g}))},"TextareaAutosize"),fL=se(pL),mL=Object.assign(R(se(a(function({size:t,valid:r,align:n,...o},i){return d.createElement(fL,{...o,ref:i})},"Textarea")))(uA,Um,lA,cA,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),Jre=Object.assign(R.form({boxSizing:"border-box",width:"100%"}),{Field:JF,Input:GF,Select:ZF,Textarea:mL,Button:$m,Checkbox:HF,Radio:KF}),hL=rn(()=>Promise.resolve().then(()=>(am(),om)).then(e=>({default:e.WithTooltip}))),pA=a(e=>d.createElement(Rn,{fallback:d.createElement("div",null)},d.createElement(hL,{...e})),"WithTooltip"),gL=rn(()=>Promise.resolve().then(()=>(am(),om)).then(e=>({default:e.WithTooltipPure}))),Gre=a(e=>d.createElement(Rn,{fallback:d.createElement("div",null)},d.createElement(gL,{...e})),"WithTooltipPure"),yL=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),bL=R.span(),vL=R.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),EL=R.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),SL=R.div({padding:15,width:280,boxSizing:"border-box"}),Xre=a(({title:e,desc:t,links:r})=>d.createElement(SL,null,d.createElement(EL,null,e&&d.createElement(yL,null,e),t&&d.createElement(bL,null,t)),r&&d.createElement(vL,null,r.map(({title:n,...o})=>d.createElement(b3,{...o,key:n},n)))),"TooltipMessage"),wL=R.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)",margin:6})),fA=a(({note:e,...t})=>d.createElement(wL,{...t},e),"TooltipNote"),xL=Se(or(),1),TL=R(({active:e,loading:t,disabled:r,...n})=>d.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}:{}),AL=R.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"}}),CL=R.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column",minWidth:0},({isIndented:e})=>e?{marginLeft:24}:{}),RL=R.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),_L=R.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),OL=R.div(({theme:e})=>({width:"100%",minWidth:0,border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10}}),({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"}),IL=(0,xL.default)(100)(({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",href:r,...n&&{as:n,to:r}}})),PL=a(e=>{let{loading:t=!1,title:r=d.createElement("span",null,"Loading state"),center:n=null,right:o=null,active:i=!1,disabled:s=!1,isIndented:l=!1,href:c=void 0,onClick:u=void 0,icon:p,input:f,LinkWrapper:m=void 0,...g}=e,b={active:i,disabled:s},y=IL(e),S=p||f;return d.createElement(OL,{...g,...b,...y},d.createElement(d.Fragment,null,S&&d.createElement(_L,{...b},S),r||n?d.createElement(CL,{isIndented:l&&!S},r&&d.createElement(TL,{...b,loading:t},r),n&&d.createElement(RL,{...b},n)):null,o&&d.createElement(AL,{...b},o)))},"ListItem"),kL=PL,DL=R.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}:{}),NL=R.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),FL=a(({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:i,href:s}=r,l=ne(c=>t?.(c,{id:e,active:n,disabled:o,title:i,href:s}),[t,e,n,o,i,s]);return d.createElement(kL,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},"Item"),LL=a(({links:e,LinkWrapper:t,...r})=>{let n=Array.isArray(e[0])?e:[e],o=n.some(i=>i.some(s=>"icon"in s&&s.icon||"input"in s&&s.input));return d.createElement(DL,{...r},n.filter(i=>i.length).map((i,s)=>d.createElement(NL,{key:i.map(l=>l.id).join(`~${s}~`)},i.map(l=>"content"in l?d.createElement(Pe,{key:l.id},l.content):d.createElement(FL,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))},"TooltipLinkList"),wm=R.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}:{});wm.displayName="Side";var ML=a(({children:e,className:t,scrollable:r})=>r?d.createElement(ni,{vertical:!1,className:t},e):d.createElement("div",{className:t},e),"UnstyledBar"),mA=R(ML)(({backgroundColor:e,theme:t,scrollable:r=!0})=>({color:t.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${t.barTextColor} ${e||t.barBg}`,scrollbarWidth:"thin",overflow:r?"auto":"hidden",overflowY:"hidden"}),({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{});mA.displayName="Bar";var BL=R.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),hA=a(({children:e,backgroundColor:t,className:r,...n})=>{let[o,i]=Ae.toArray(e);return d.createElement(mA,{backgroundColor:t,className:`sb-bar ${r}`,...n},d.createElement(BL,{bgColor:t},d.createElement(wm,{scrollable:n.scrollable,left:!0},o),i?d.createElement(wm,{right:!0},i):null))},"FlexBar");hA.displayName="FlexBar";var $L=a(e=>typeof e.props.href=="string","isLink"),jL=a(e=>typeof e.props.href!="string","isButton");function gA({children:e,...t},r){let n={props:t,ref:r};if($L(n))return d.createElement("a",{ref:n.ref,...n.props},e);if(jL(n))return d.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}a(gA,"ForwardRefFunction");var yA=se(gA);yA.displayName="ButtonOrLink";var $c=R(yA,{shouldForwardProp:ys})({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}});$c.displayName="TabButton";var UL=R.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),zL=R.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),HL=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),VL=R.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),bA=a(({title:e,description:t,footer:r})=>d.createElement(UL,null,d.createElement(zL,null,d.createElement(HL,null,e),t&&d.createElement(VL,null,t)),r),"EmptyTabContent"),vA=R.div(({active:e})=>e?{display:"block"}:{display:"none"}),WL=a(e=>Ae.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let i=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof i=="function"?i:({active:l})=>d.createElement(vA,{active:l,role:"tabpanel"},i)}}),"childrenToList"),JL=R.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"})),qL=R($c)(({active:e,theme:t,preActive:r})=>`
|
|
846
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
847
|
+
.addon-collapsible-icon {
|
|
848
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
849
|
+
}
|
|
850
|
+
&:hover {
|
|
851
|
+
color: ${t.barHoverColor};
|
|
852
|
+
.addon-collapsible-icon {
|
|
853
|
+
color: ${t.barHoverColor};
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
`);function EA(e){let t=Q(),r=Q(),n=Q(new Map),{width:o=1}=jm({ref:t}),[i,s]=J(e),[l,c]=J([]),u=Q(e),p=ne(({menuName:m,actions:g})=>{let b=l.some(({active:v})=>v),[y,S]=J(!1);return d.createElement(d.Fragment,null,d.createElement(Ds,{interactive:!0,visible:y,onVisibleChange:S,placement:"bottom",delayHide:100,tooltip:d.createElement(LL,{links:l.map(({title:v,id:w,color:E,active:x})=>({id:w,title:v,color:E,active:x,onClick:a(A=>{A.preventDefault(),g.onSelect(w)},"onClick")}))})},d.createElement(qL,{id:"addons-menu-button",ref:r,active:b,preActive:y,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},m,d.createElement(JL,{className:"addon-collapsible-icon",isActive:b||y}))),l.map(({title:v,id:w,color:E},x)=>{let A=`index-${x}`;return d.createElement($c,{id:`tabbutton-${So(w)??A}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:_=>{n.current.set(w,_)},className:"tabbutton",type:"button",key:w,textColor:E,role:"tab"},v)}))},[l]),f=ne(()=>{if(!t.current||!r.current)return;let{x:m,width:g}=t.current.getBoundingClientRect(),{width:b}=r.current.getBoundingClientRect(),y=l.length?m+g-b:m+g,S=[],v=0,w=e.filter(E=>{let{id:x}=E,A=n.current.get(x),{width:_=0}=A?.getBoundingClientRect()||{},C=m+v+_>y;return(!C||!A)&&S.push(E),v+=_,C});(S.length!==i.length||u.current!==e)&&(s(S),c(w),u.current=e)},[l.length,e,i]);return it(f,[f,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:i,invisibleList:l,AddonTab:p}}a(EA,"useList");var GL="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",YL=R.div(({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{},({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"}),SA=R.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});SA.displayName="TabBar";var KL=R.div({display:"block",position:"relative",container:"tab-content / inline-size"},({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content}),({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{},({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto",[`& > *:first-child${GL}`]:{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{}),bne=a(({active:e,render:t,children:r})=>d.createElement(vA,{active:e},t?t():r),"TabWrapper"),wA=class extends Tt{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error("Error rendering addon panel"),console.error(t),console.error(r.componentStack)}render(){return this.state.hasError&&this.props.active?d.createElement(bA,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}};a(wA,"TabErrorBoundary");var XL=wA,xA=At(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:i=null,backgroundColor:s,id:l=null,menuName:c="Tabs",emptyState:u,showToolsWhenEmpty:p})=>{let f=ve(()=>WL(e).map((v,w)=>({...v,active:t?v.id===t:w===0})),[e,t]),{visibleList:m,tabBarRef:g,tabRefs:b,AddonTab:y}=EA(f),S=u??d.createElement(bA,{title:"Nothing found"});return!p&&f.length===0?S:d.createElement(YL,{absolute:n,bordered:o,id:l},d.createElement(hA,{scrollable:!1,border:!0,backgroundColor:s},d.createElement(SA,{style:{whiteSpace:"normal"},ref:g,role:"tablist"},m.map(({title:v,id:w,active:E,color:x},A)=>{let _=`index-${A}`;return d.createElement($c,{id:`tabbutton-${So(w)??_}`,ref:C=>{b.current.set(w,C)},className:`tabbutton ${E?"tabbutton-active":""}`,type:"button",key:w,active:E,textColor:x,onClick:C=>{C.preventDefault(),r.onSelect(w)},role:"tab"},typeof v=="function"?d.createElement("title",null):v)}),d.createElement(y,{menuName:c,actions:r})),i),d.createElement(KL,{id:"panel-tab-content",bordered:o,absolute:n},f.length?f.map(({id:v,active:w,render:E})=>d.createElement(XL,{key:v,active:w},d.createElement(E,{active:w},null))):S))});xA.displayName="Tabs";var TA=class extends Tt{constructor(t){super(t),this.handlers={onSelect:a(r=>this.setState({selected:r}),"onSelect")},this.state={selected:t.initial}}render(){let{bordered:t=!1,absolute:r=!1,children:n,backgroundColor:o,menuName:i}=this.props,{selected:s}=this.state;return d.createElement(xA,{bordered:t,absolute:r,selected:s,backgroundColor:o,menuName:i,actions:this.handlers},n)}};a(TA,"TabsState");TA.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var AA=R.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});AA.displayName="Separator";var xne=a(e=>e.reduce((t,r,n)=>r?d.createElement(Pe,{key:r.id||r.key||`f-${n}`},t,n>0?d.createElement(AA,{key:`s-${n}`}):null,r.render()||r):t,null),"interleaveSeparators"),ZL=a(e=>{let t=Q();return q(()=>{t.current=e},[e]),t.current},"usePrevious"),QL=a((e,t)=>{let r=ZL(t);return e?t:r},"useUpdate"),Ane=a(({active:e,children:t})=>d.createElement("div",{hidden:!e},QL(e,t)),"AddonPanel"),Rne=a(({alt:e,...t})=>d.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?d.createElement("title",null,e):null,d.createElement("defs",null,d.createElement("path",{d:"M1.2 36.9L0 3.9c0-1.1.8-2 1.9-2.1l28-1.8a2 2 0 0 1 2.2 1.9 2 2 0 0 1 0 .1v36a2 2 0 0 1-2 2 2 2 0 0 1-.1 0L3.2 38.8a2 2 0 0 1-2-2z",id:"a"})),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M53.3 31.7c-1.7 0-3.4-.3-5-.7-1.5-.5-2.8-1.1-3.9-2l1.6-3.5c2.2 1.5 4.6 2.3 7.3 2.3 1.5 0 2.5-.2 3.3-.7.7-.5 1.1-1 1.1-1.9 0-.7-.3-1.3-1-1.7s-2-.8-3.7-1.2c-2-.4-3.6-.9-4.8-1.5-1.1-.5-2-1.2-2.6-2-.5-1-.8-2-.8-3.2 0-1.4.4-2.6 1.2-3.6.7-1.1 1.8-2 3.2-2.6 1.3-.6 2.9-.9 4.7-.9 1.6 0 3.1.3 4.6.7 1.5.5 2.7 1.1 3.5 2l-1.6 3.5c-2-1.5-4.2-2.3-6.5-2.3-1.3 0-2.3.2-3 .8-.8.5-1.2 1.1-1.2 2 0 .5.2 1 .5 1.3.2.3.7.6 1.4.9l2.9.8c2.9.6 5 1.4 6.2 2.4a5 5 0 0 1 2 4.2 6 6 0 0 1-2.5 5c-1.7 1.2-4 1.9-7 1.9zm21-3.6l1.4-.1-.2 3.5-1.9.1c-2.4 0-4.1-.5-5.2-1.5-1.1-1-1.6-2.7-1.6-4.8v-6h-3v-3.6h3V11h4.8v4.6h4v3.6h-4v6c0 1.8.9 2.8 2.6 2.8zm11.1 3.5c-1.6 0-3-.3-4.3-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.3-1 1.7 0 3.2.3 4.4 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.4 1zm0-3.6c2.4 0 3.6-1.6 3.6-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.6-1c-2.3 0-3.5 1.4-3.5 4.4 0 3 1.2 4.6 3.5 4.6zm21.7-8.8l-2.7.3c-1.3.2-2.3.5-2.8 1.2-.6.6-.9 1.4-.9 2.5v8.2H96V15.7h4.6v2.6c.8-1.8 2.5-2.8 5-3h1.3l.3 4zm14-3.5h4.8L116.4 37h-4.9l3-6.6-6.4-14.8h5l4 10 4-10zm16-.4c1.4 0 2.6.3 3.6 1 1 .6 1.9 1.6 2.5 2.8.6 1.2.9 2.7.9 4.3 0 1.6-.3 3-1 4.3a6.9 6.9 0 0 1-2.4 2.9c-1 .7-2.2 1-3.6 1-1 0-2-.2-3-.7-.8-.4-1.5-1-2-1.9v2.4h-4.7V8.8h4.8v9c.5-.8 1.2-1.4 2-1.9.9-.4 1.8-.6 3-.6zM135.7 28c1.1 0 2-.4 2.6-1.2.6-.8 1-2 1-3.4 0-1.5-.4-2.5-1-3.3s-1.5-1.1-2.6-1.1-2 .3-2.6 1.1c-.6.8-1 2-1 3.3 0 1.5.4 2.6 1 3.4.6.8 1.5 1.2 2.6 1.2zm18.9 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.3 1a7 7 0 0 1 3 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm18 3.6c-1.7 0-3.2-.3-4.4-1a7 7 0 0 1-3-2.8c-.6-1.3-1-2.7-1-4.4 0-1.6.4-3 1-4.3a7 7 0 0 1 3-2.8c1.2-.7 2.7-1 4.4-1 1.6 0 3 .3 4.4 1a7 7 0 0 1 2.9 2.8c.6 1.2 1 2.7 1 4.3 0 1.7-.4 3.1-1 4.4a7 7 0 0 1-3 2.8c-1.2.7-2.7 1-4.3 1zm0-3.6c2.3 0 3.5-1.6 3.5-4.6 0-1.5-.3-2.6-1-3.4a3.2 3.2 0 0 0-2.5-1c-2.4 0-3.6 1.4-3.6 4.4 0 3 1.2 4.6 3.6 4.6zm27.4 3.4h-6l-6-7v7h-4.8V8.8h4.9v13.6l5.8-6.7h5.7l-6.6 7.5 7 8.2z",fill:"currentColor"}),d.createElement("mask",{id:"b",fill:"#fff"},d.createElement("use",{xlinkHref:"#a"})),d.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),d.createElement("path",{d:"M23.7 5L24 .2l3.9-.3.1 4.8a.3.3 0 0 1-.5.2L26 3.8l-1.7 1.4a.3.3 0 0 1-.5-.3zm-5 10c0 .9 5.3.5 6 0 0-5.4-2.8-8.2-8-8.2-5.3 0-8.2 2.8-8.2 7.1 0 7.4 10 7.6 10 11.6 0 1.2-.5 1.9-1.8 1.9-1.6 0-2.2-.9-2.1-3.6 0-.6-6.1-.8-6.3 0-.5 6.7 3.7 8.6 8.5 8.6 4.6 0 8.3-2.5 8.3-7 0-7.9-10.2-7.7-10.2-11.6 0-1.6 1.2-1.8 2-1.8.6 0 2 0 1.9 3z",fill:"#FFF",fillRule:"nonzero",mask:"url(#b)"}))),"StorybookLogo"),One=a(e=>d.createElement("svg",{viewBox:"0 0 64 64",...e},d.createElement("title",null,"Storybook icon"),d.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},d.createElement("path",{d:"M8.04798541,58.7875918 L6.07908839,6.32540407 C6.01406344,4.5927838 7.34257463,3.12440831 9.07303814,3.01625434 L53.6958037,0.227331489 C55.457209,0.117243658 56.974354,1.45590096 57.0844418,3.21730626 C57.0885895,3.28366922 57.0906648,3.35014546 57.0906648,3.41663791 L57.0906648,60.5834697 C57.0906648,62.3483119 55.6599776,63.7789992 53.8951354,63.7789992 C53.847325,63.7789992 53.7995207,63.7779262 53.7517585,63.775781 L11.0978899,61.8600599 C9.43669044,61.7854501 8.11034889,60.4492961 8.04798541,58.7875918 Z",id:"path-1",fill:"#FF4785",fillRule:"nonzero"}),d.createElement("path",{d:"M35.9095005,24.1768792 C35.9095005,25.420127 44.2838488,24.8242707 45.4080313,23.9509748 C45.4080313,15.4847538 40.8652557,11.0358878 32.5466666,11.0358878 C24.2280775,11.0358878 19.5673077,15.553972 19.5673077,22.3311017 C19.5673077,34.1346028 35.4965208,34.3605071 35.4965208,40.7987804 C35.4965208,42.606015 34.6115646,43.6790606 32.6646607,43.6790606 C30.127786,43.6790606 29.1248356,42.3834613 29.2428298,37.9783269 C29.2428298,37.0226907 19.5673077,36.7247626 19.2723223,37.9783269 C18.5211693,48.6535354 25.1720308,51.7326752 32.7826549,51.7326752 C40.1572906,51.7326752 45.939005,47.8018145 45.939005,40.6858282 C45.939005,28.035186 29.7738035,28.3740425 29.7738035,22.1051974 C29.7738035,19.5637737 31.6617103,19.2249173 32.7826549,19.2249173 C33.9625966,19.2249173 36.0864917,19.4328883 35.9095005,24.1768792 Z",id:"path9_fill-path",fill:"#FFFFFF",fillRule:"nonzero"}),d.createElement("path",{d:"M44.0461638,0.830433986 L50.1874092,0.446606143 L50.443532,7.7810017 C50.4527198,8.04410717 50.2468789,8.26484453 49.9837734,8.27403237 C49.871115,8.27796649 49.7607078,8.24184808 49.6721567,8.17209069 L47.3089847,6.3104681 L44.5110468,8.43287463 C44.3012992,8.591981 44.0022839,8.55092814 43.8431776,8.34118051 C43.7762017,8.25288717 43.742082,8.14401677 43.7466857,8.03329059 L44.0461638,0.830433986 Z",id:"Path",fill:"#FFFFFF"}))),"StorybookIcon"),eM=rr`
|
|
857
|
+
from {
|
|
858
|
+
transform: rotate(0deg);
|
|
859
|
+
}
|
|
860
|
+
to {
|
|
861
|
+
transform: rotate(360deg);
|
|
862
|
+
}
|
|
863
|
+
`,tM=R.div(({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-(e/2),marginLeft:-(e/2),height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${eM} 0.7s linear infinite`,mixBlendMode:"difference"})),kx=R.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),rM=R.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:ye(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),nM=R.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),Dx=R.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),oM=R(Db)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),aM=rr`
|
|
864
|
+
from { content: "..." }
|
|
865
|
+
33% { content: "." }
|
|
866
|
+
66% { content: ".." }
|
|
867
|
+
to { content: "..." }
|
|
868
|
+
`,iM=R.span({"&::after":{content:"'...'",animation:`${aM} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),Nne=a(({progress:e,error:t,size:r,...n})=>{if(t)return d.createElement(kx,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},d.createElement(oM,null),d.createElement(Dx,null,t.message));if(e){let{value:o,modules:i}=e,{message:s}=e;return i&&(s+=` ${i.complete} / ${i.total} modules`),d.createElement(kx,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":s,role:"progressbar",...n},d.createElement(rM,null,d.createElement(nM,{style:{width:`${o*100}%`}})),d.createElement(Dx,null,s,o<1&&d.createElement(iM,{key:s})))}return d.createElement(tM,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},"Loader"),pm="http://www.w3.org/2000/svg",sM=rr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Nx=R.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e})),fm=R.svg(({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}}),({progress:e})=>e&&{circle:{opacity:.75}},({spinner:e})=>e&&{animation:`${sM} 1s linear infinite`,circle:{opacity:.25}}),Mne=a(({percentage:e=void 0,running:t=!0,size:r=24,width:n=1.5,children:o=null,...i})=>typeof e=="number"?d.createElement(Nx,{size:r,...i},o,d.createElement(fm,{size:r,width:n,xmlns:pm},d.createElement("circle",null)),t&&d.createElement(fm,{size:r,width:n,xmlns:pm,spinner:!0},d.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)})),d.createElement(fm,{size:r,width:n,xmlns:pm,progress:!0},d.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)}))):d.createElement(Nx,{size:r,...i},o),"ProgressSpinner");function CA(e){let t={},r=e.split("&");for(let n=0;n<r.length;n++){let o=r[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}a(CA,"parseQuery");var Bne=a((e,t,r={})=>{let[n,o]=e.split("?"),i=o?{...CA(o),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(i).map(s=>`${s[0]}=${s[1]}`).join("&")}`},"getStoryHref"),lM=R.pre`
|
|
869
|
+
line-height: 18px;
|
|
870
|
+
padding: 11px 1rem;
|
|
871
|
+
white-space: pre-wrap;
|
|
872
|
+
background: rgba(0, 0, 0, 0.05);
|
|
873
|
+
color: ${yt.darkest};
|
|
874
|
+
border-radius: 3px;
|
|
875
|
+
margin: 1rem 0;
|
|
876
|
+
width: 100%;
|
|
877
|
+
display: block;
|
|
878
|
+
overflow: hidden;
|
|
879
|
+
font-family: ${jt.fonts.mono};
|
|
880
|
+
font-size: ${jt.size.s2-1}px;
|
|
881
|
+
`,Une=a(({code:e,...t})=>d.createElement(lM,{id:"clipboard-code",...t},e),"ClipboardCode");var cM={};Object.keys(d3).forEach(e=>{cM[e]=se((t,r)=>ie(e,{...t,ref:r}))});Ss();Ns();Qn();G();Y();K();Te();var RA=Object.prototype.hasOwnProperty;function zm(e,t,r){for(r of e.keys())if(wn(r,t))return r}a(zm,"find");function wn(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&wn(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=zm(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=zm(t,o),!o)||!wn(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(RA.call(e,r)&&++n&&!RA.call(t,r)||!(r in t)||!wn(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}a(wn,"dequal");function uM(e,t){let r=[],n=[];for(let o=0;o<e.length;o++){let i=e[o];t(i)?r.push(i):n.push(i)}return[r,n]}a(uM,"partition");function dM(e,t){let r={};for(let n=0;n<e.length;n++){let o=e[n],i=t(o);r[i]=(r[i]??0)+1}return r}a(dM,"countBy");function Hm(e){return Array.from(new Set(e))}a(Hm,"uniq");Vm();no();Br();G();Y();K();var _A={mobile1:{name:"Small mobile",styles:{height:"568px",width:"320px"},type:"mobile"},mobile2:{name:"Large mobile",styles:{height:"896px",width:"414px"},type:"mobile"},tablet:{name:"Tablet",styles:{height:"1112px",width:"834px"},type:"tablet"},desktop:{name:"Desktop",styles:{height:"1024px",width:"1280px"},type:"desktop"}},La={name:"Reset viewport",styles:{height:"100%",width:"100%"},type:"desktop"};Te();We();G();Y();K();var ioe=__STORYBOOK_API__,{ActiveTabs:soe,Consumer:OA,ManagerContext:loe,Provider:coe,RequestResponseError:uoe,addons:Je,combineParameters:doe,controlOrMetaKey:poe,controlOrMetaSymbol:foe,eventMatchesShortcut:moe,eventToShortcut:hoe,experimental_MockUniversalStore:goe,experimental_UniversalStore:yoe,experimental_getStatusStore:boe,experimental_getTestProviderStore:voe,experimental_requestResponse:Wm,experimental_useStatusStore:IA,experimental_useTestProviderStore:Eoe,experimental_useUniversalStore:Soe,internal_fullStatusStore:woe,internal_fullTestProviderStore:xoe,internal_universalStatusStore:Toe,internal_universalTestProviderStore:Aoe,isMacLike:Coe,isShortcutTaken:Roe,keyToSymbol:_oe,merge:Ooe,mockChannel:Ioe,optionOrAltSymbol:Poe,shortcutMatchesShortcut:koe,shortcutToHumanString:Doe,types:Yt,useAddonState:Ma,useArgTypes:jc,useArgs:PA,useChannel:Uc,useGlobalTypes:Noe,useGlobals:Hr,useParameter:Un,useSharedState:Foe,useStoryPrepared:Loe,useStorybookApi:St,useStorybookState:zc}=__STORYBOOK_API__;L();be();qe();Z();L();We();Z();L();st();be();qe();Z();L();be();Z();L();be();Z();L();be();Z();L();be();Z();L();L();L();L();be();Z();L();L();L();be();qe();Z();L();be();L();be();Z();L();be();Z();L();be();Z();L();Z();L();be();L();Z();L();be();L();L();be();Z();L();be();Z();L();be();Z();L();L();st();Z();L();st();Z();L();st();qe();Z();L();be();qe();Z();L();L();L();Z();L();Z();L();be();Z();L();be();Z();L();be();Z();L();be();qe();Z();L();be();qe();Z();L();qe();Z();L();Z();L();be();qe();Z();L();be();L();L();be();L();L();be();L();L();L();L();L();L();L();L();L();L();L();L();L();L();L();L();L();Z();Z();L();be();L();We();L();Z();Z();L();be();Z();L();be();qe();Z();L();be();qe();Z();L();Z();L();st();L();L();L();L();L();L();L();L();Z();L();qe();Z();L();be();qe();Z();L();Z();L();be();Z();L();be();L();L();be();qe();L();L();be();qe();L();L();be();qe();L();L();be();qe();Z();L();be();qe();Z();var VB=R.div(Hn,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:ye(.3,e.color.defaultText),fontSize:e.typography.size.s2})),WC=a(e=>d.createElement(VB,{...e,className:"docblock-emptyblock sb-unstyled"}),"EmptyBlock"),WB=R(Xi)(({theme:e})=>({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"}})),JB=R.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Yc=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${Ya}`]:{margin:0}})),qB=a(()=>d.createElement(JB,null,d.createElement(Yc,null),d.createElement(Yc,{style:{width:"80%"}}),d.createElement(Yc,{style:{width:"30%"}}),d.createElement(Yc,{style:{width:"80%"}})),"SourceSkeleton"),GB=a(({isLoading:e,error:t,language:r,code:n,dark:o,format:i=!0,...s})=>{let{typography:l}=Ut();if(e)return d.createElement(qB,null);if(t)return d.createElement(WC,null,t);let c=d.createElement(WB,{bordered:!0,copyable:!0,format:i,language:r??"jsx",className:"docblock-source sb-unstyled",...s},n);if(typeof o>"u")return c;let u=o?vu.dark:vu.light;return d.createElement(bg,{theme:vg({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},c)},"Source"),mt=a(e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,"toGlobalSelector"),Lh=600,Kae=R.h1(Hn,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Lh}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),Xae=R.h2(Hn,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Lh}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ye(.25,e.color.defaultText)})),Zae=R.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"?ye(.1,e.color.defaultText):ye(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[mt("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[mt("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}},[mt("div")]:t,[mt("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}},[mt("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[mt("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[mt("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[mt("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[mt("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[mt("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[mt("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[mt("img")]:{maxWidth:"100%"},[mt("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[mt("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[mt("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[mt("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"}},[mt("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"}}},[mt("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}},[mt("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),Qae=R.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: ${Lh}px)`]:{}}));globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=Ve(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var YB=globalThis?globalThis.__DOCS_CONTEXT__:Ve(null),KB=a((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},"getStoryId"),cu=a(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}`}),"getBlockBackgroundStyle"),{window:xie}=globalThis,XB=Ve({scale:1}),{PREVIEW_URL:Aie}=globalThis,Cie=R.strong(({theme:e})=>({color:e.color.orange})),ZB=R(Jm)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),lh=R.div({display:"flex",alignItems:"center",gap:4}),aC=R.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`})),QB=a(({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...i})=>d.createElement(ZB,{...i},d.createElement(lh,{key:"left"},e?[1,2,3].map(s=>d.createElement(aC,{key:s})):d.createElement(d.Fragment,null,d.createElement(Ne,{key:"zoomin",onClick:s=>{s.preventDefault(),n(.8)},title:"Zoom in"},d.createElement(Yb,null)),d.createElement(Ne,{key:"zoomout",onClick:s=>{s.preventDefault(),n(1.25)},title:"Zoom out"},d.createElement(Kb,null)),d.createElement(Ne,{key:"zoomreset",onClick:s=>{s.preventDefault(),o()},title:"Reset zoom"},d.createElement(Xb,null)))),e?d.createElement(lh,{key:"right"},d.createElement(aC,null)):r&&t&&d.createElement(lh,{key:"right"},d.createElement(Ne,{key:"opener",asChild:!0},d.createElement("a",{href:Qm(r,t),target:"_blank",rel:"noopener noreferrer","aria-label":"Open canvas in new tab"},d.createElement(Hb,null))))),"Toolbar"),e4=R.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)`}}:{}),iC=R(GB)(({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)":bt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":bt(.05,e.background.content)}})),t4=R.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...cu(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),r4=a((e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:a(()=>r(!1),"onClick")}};case t:return{source:d.createElement(iC,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:a(()=>r(!1),"onClick")}};default:return{source:d.createElement(iC,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:a(()=>r(!0),"onClick")}}}},"getSource");function JC(e){if(Ae.count(e)===1){let t=e;if(t.props)return t.props}return null}a(JC,"getChildProps");var n4=R(QB)({position:"absolute",top:0,left:0,right:0,height:40}),o4=R.div({overflow:"hidden",position:"relative"}),a4=a(({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:i=!1,isExpanded:s=!1,additionalActions:l,className:c,layout:u="padded",inline:p=!1,...f})=>{let[m,g]=J(s),{source:b,actionItem:y}=r4(o,m,g),[S,v]=J(1),w=[c].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),E=o?[y]:[],[x,A]=J(l?[...l]:[]),_=[...E,...x],{window:C}=globalThis,O=Ct(YB),I=ne(async j=>{let{createCopyToClipboardFunction:$}=await Promise.resolve().then(()=>(be(),kA));$()},[]),P=a(j=>{let $=C.getSelection();$&&$.type==="Range"||(j.preventDefault(),x.filter(N=>N.title==="Copied").length===0&&I(b?.props.code??"").then(()=>{A([...x,{title:"Copied",onClick:a(()=>{},"onClick")}]),C.setTimeout(()=>A(x.filter(N=>N.title!=="Copied")),1500)}))},"onCopyCapture"),D=JC(n);return d.createElement(t4,{withSource:o,withToolbar:i,...f,className:w.join(" ")},i&&d.createElement(n4,{isLoading:e,border:!0,zoom:j=>v(S*j),resetZoom:()=>v(1),storyId:!e&&D?KB(D,O):void 0,baseUrl:"./iframe.html"}),d.createElement(XB.Provider,{value:{scale:S}},d.createElement(o4,{className:"docs-story",onCopyCapture:o&&P},d.createElement(e4,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:p},d.createElement(Zm.Element,{centered:u==="centered",scale:p?S:1},Array.isArray(n)?n.map((j,$)=>d.createElement("div",{key:$},j)):d.createElement("div",null,n))),d.createElement(qi,{actionItems:_}))),o&&m&&b)},"Preview"),Pie=R(a4)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}})),jie=R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText)})),Uie=R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),zie=R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Hie=R.div(Hn,({theme:e})=>({...cu(e),margin:"25px 0 40px",padding:"30px 20px"})),Yie=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),Kie=R.div(({theme:e})=>({color:e.base==="light"?ye(.2,e.color.defaultText):ye(.6,e.color.defaultText)})),Xie=R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),Zie=R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),Qie=R.div({display:"flex",flexDirection:"row"}),ese=R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}})),tse=R.div(({theme:e})=>({...cu(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"})),rse=R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),nse=R.div({flex:1,display:"flex",flexDirection:"row"}),ose=R.div({display:"flex",alignItems:"flex-start"}),ase=R.div({flex:"0 0 30%"}),ise=R.div({flex:1}),sse=R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText)})),lse=R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"})),mse=R.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"})),hse=R.div(({theme:e})=>({...cu(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),gse=R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"}),yse=R.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50}),Ase=R.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),Cse=R.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"}})),Rse=R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jn.apply(this,arguments)}a(Jn,"n");var i4=["children","options"],sC=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),lC={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},s4=["style","script","pre"],l4=["src","href","data","formAction","srcDoc","action"],c4=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,u4=/mailto:/i,d4=/\n{2,}$/,cC=/^(\s*>[\s\S]*?)(?=\n\n|$)/,p4=/^ *> ?/gm,f4=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,m4=/^ {2,}\n/,h4=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,uC=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,dC=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,g4=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,y4=/^(?:\n *)*\n/,b4=/\r\n?/g,v4=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,E4=/^\[\^([^\]]+)]/,S4=/\f/g,w4=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,x4=/^\s*?\[(x|\s)\]/,pC=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,fC=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,mC=/^([^\n]+)\n *(=|-){3,} *\n/,ch=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T4=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,hC=/^<!--[\s\S]*?(?:-->)/,A4=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,uh=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,C4=/^\{.*\}$/,R4=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,_4=/^<([^ >]+@[^ >]+)>/,O4=/^<([^ >]+:\/[^ >]+)>/,I4=/-([a-z])?/gi,gC=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,P4=/^[^\n]+(?: \n|\n{2,})/,k4=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,D4=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,N4=/^\[([^\]]*)\] ?\[([^\]]*)\]/,F4=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,L4=/\t/g,M4=/(^ *\||\| *$)/g,B4=/^ *:-+: *$/,$4=/^ *:-+ *$/,j4=/^ *-+: *$/,uu=a(e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,"J"),du="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",U4=RegExp(`^([*_])\\1${uu(1)}${du}\\1\\1(?!\\1)`),z4=RegExp(`^([*_])${uu(0)}${du}\\1(?!\\1)`),H4=RegExp(`^(==)${uu(0)}${du}\\1`),V4=RegExp(`^(~~)${uu(0)}${du}\\1`),W4=/^(:[a-zA-Z0-9-_]+:)/,J4=/^\\([^0-9A-Za-z\s])/,q4=/\\([^0-9A-Za-z\s])/g,G4=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,Y4=/^\n+/,K4=/^([ \t]*)/,X4=/(?:^|\n)( *)$/,Mh="(?:\\d+\\.)",Bh="(?:[*+-])";function $h(e){return"( *)("+(e===1?Mh:Bh)+") +"}a($h,"fe");var qC=$h(1),GC=$h(2);function jh(e){return RegExp("^"+(e===1?qC:GC))}a(jh,"pe");var Z4=jh(1),Q4=jh(2);function Uh(e){return RegExp("^"+(e===1?qC:GC)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Mh:Bh)+" )[^\\n]*)*(\\n|$)","gm")}a(Uh,"ge");var e$=Uh(1),t$=Uh(2);function zh(e){let t=e===1?Mh:Bh;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}a(zh,"xe");var YC=zh(1),KC=zh(2);function xh(e,t){let r=t===1,n=r?YC:KC,o=r?e$:t$,i=r?Z4:Q4;return{t:a(s=>i.test(s),"t"),o:Do(function(s,l){let c=X4.exec(l.prevCapture);return c&&(l.list||!l.inline&&!l.simple)?n.exec(s=c[1]+s):null}),i:1,u(s,l,c){let u=r?+s[2]:void 0,p=s[0].replace(d4,`
|
|
882
|
+
`).match(o),f=!1;return{items:p.map(function(m,g){let b=i.exec(m)[0].length,y=RegExp("^ {1,"+b+"}","gm"),S=m.replace(y,"").replace(i,""),v=g===p.length-1,w=S.indexOf(`
|
|
883
|
+
|
|
884
|
+
`)!==-1||v&&f;f=w;let E=c.inline,x=c.list,A;c.list=!0,w?(c.inline=!1,A=Ha(S)+`
|
|
885
|
+
|
|
886
|
+
`):(c.inline=!0,A=Ha(S));let _=l(A,c);return c.inline=E,c.list=x,_}),ordered:r,start:u}},l:a((s,l,c)=>e(s.ordered?"ol":"ul",{key:c.key,start:s.type==="20"?s.start:void 0},s.items.map(function(u,p){return e("li",{key:p},l(u,c))})),"l")}}a(xh,"$e");var r$=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),n$=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ha(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}a(Ha,"ze");function ns(e,t){return e.startsWith(t)}a(ns,"Ee");function XC(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(ns(e,r[n]))return!0;return!1}return r(e,t)}a(XC,"Ae");function za(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}a(za,"Re");function ZC(e){return j4.test(e)?"right":B4.test(e)?"center":$4.test(e)?"left":null}a(ZC,"Be");function Th(e,t,r,n){let o=r.inTable;r.inTable=!0;let i=[[]],s="";function l(){if(!s)return;let c=i[i.length-1];c.push.apply(c,t(s,r)),s=""}return a(l,"i"),e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((c,u,p)=>{c.trim()==="|"&&(l(),n)?u!==0&&u!==p.length-1&&i.push([]):s+=c}),l(),r.inTable=o,i}a(Th,"Le");function QC(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(M4,"").split("|").map(ZC):[],o=e[3]?function(s,l,c){return s.trim().split(`
|
|
887
|
+
`).map(function(u){return Th(u,l,c,!0)})}(e[3],t,r):[],i=Th(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:i,type:"25"}:{children:i,type:"21"}}a(QC,"Oe");function Ah(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}a(Ah,"je");function Do(e){return e.inline=1,e}a(Do,"Ce");function xn(e){return Do(function(t,r){return r.inline?e.exec(t):null})}a(xn,"Ie");function Tn(e){return Do(function(t,r){return r.inline||r.simple?e.exec(t):null})}a(Tn,"Te");function Wr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}a(Wr,"Me");function ts(e){return Do(function(t){return e.exec(t)})}a(ts,"we");var o$=/(javascript|vbscript|data(?!:image)):/i;function eR(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(o$.test(t))return null}catch{return null}return e}a(eR,"Fe");function Nr(e){return e&&e.replace(q4,"$1")}a(Nr,"Pe");function os(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}a(os,"Ze");function tR(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let i=e(t,r);return r.inline=n,r.simple=o,i}a(tR,"Ne");function rR(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}a(rR,"Ge");var dh=a((e,t,r)=>({children:os(t,e[2],r)}),"Ue");function eu(){return{}}a(eu,"Ve");function tu(){return null}a(tu,"He");function nR(...e){return e.filter(Boolean).join(" ")}a(nR,"Qe");function ru(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}a(ru,"We");function oR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Jn({},lC,t.namedCodesToUnicode):lC;let r=t.slugify||za,n=t.sanitizer||eR,o=t.createElement||ie,i=[cC,uC,dC,t.enforceAtxHeadings?fC:pC,mC,gC,YC,KC],s=[...i,P4,ch,hC,uh];function l(v,w,...E){let x=ru(t.overrides,v+".props",{});return o(function(A,_){let C=ru(_,A);return C?typeof C=="function"||typeof C=="object"&&"render"in C?C:ru(_,A+".component",A):A}(v,t.overrides),Jn({},w,x,{className:nR(w?.className,x.className)||void 0}),...E)}a(l,"J");function c(v){v=v.replace(w4,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=F4.test(v)===!1);let E=b(g(w?v:Ha(v).replace(Y4,"")+`
|
|
888
|
+
|
|
889
|
+
`,{inline:w}));for(;typeof E[E.length-1]=="string"&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;let x=t.wrapper||(w?"span":"div"),A;if(E.length>1||t.forceWrapper)A=E;else{if(E.length===1)return A=E[0],typeof A=="string"?l("span",{key:"outer"},A):A;A=null}return o(x,{key:"outer"},A)}a(c,"K");function u(v,w){if(!w||!w.trim())return null;let E=w.match(c4);return E?E.reduce(function(x,A){let _=A.indexOf("=");if(_!==-1){let C=function(D){return D.indexOf("-")!==-1&&D.match(A4)===null&&(D=D.replace(I4,function(j,$){return $.toUpperCase()})),D}(A.slice(0,_)).trim(),O=function(D){let j=D[0];return(j==='"'||j==="'")&&D.length>=2&&D[D.length-1]===j?D.slice(1,-1):D}(A.slice(_+1).trim()),I=sC[C]||C;if(I==="ref")return x;let P=x[I]=function(D,j,$,N){return j==="style"?function(F){let B=[],M="",W=!1,z=!1,V="";if(!F)return B;for(let H=0;H<F.length;H++){let ee=F[H];if(ee!=='"'&&ee!=="'"||W||(z?ee===V&&(z=!1,V=""):(z=!0,V=ee)),ee==="("&&M.endsWith("url")?W=!0:ee===")"&&W&&(W=!1),ee!==";"||z||W)M+=ee;else{let he=M.trim();if(he){let re=he.indexOf(":");if(re>0){let ce=he.slice(0,re).trim(),me=he.slice(re+1).trim();B.push([ce,me])}}M=""}}let te=M.trim();if(te){let H=te.indexOf(":");if(H>0){let ee=te.slice(0,H).trim(),he=te.slice(H+1).trim();B.push([ee,he])}}return B}($).reduce(function(F,[B,M]){return F[B.replace(/(-[a-z])/g,W=>W[1].toUpperCase())]=N(M,D,B),F},{}):l4.indexOf(j)!==-1?N(Nr($),D,j):($.match(C4)&&($=Nr($.slice(1,$.length-1))),$==="true"||$!=="false"&&$)}(v,C,O,n);typeof P=="string"&&(ch.test(P)||uh.test(P))&&(x[I]=c(P.trim()))}else A!=="style"&&(x[sC[A]||A]=!0);return x},{}):null}a(u,"oe");let p=[],f={},m={0:{t:[">"],o:Wr(cC),i:1,u(v,w,E){let[,x,A]=v[0].replace(p4,"").match(f4);return{alert:x,children:w(A,E)}},l(v,w,E){let x={key:E.key};return v.alert&&(x.className="markdown-alert-"+r(v.alert.toLowerCase(),za),v.children.unshift({attrs:{},children:[{type:"27",text:v.alert}],noInnerParse:!0,type:"11",tag:"header"})),l("blockquote",x,w(v.children,E))}},1:{o:ts(m4),i:1,u:eu,l:a((v,w,E)=>l("br",{key:E.key}),"l")},2:{t:a(v=>{let w=v[0];return w==="-"||w==="*"||w==="_"},"t"),o:Wr(h4),i:1,u:eu,l:a((v,w,E)=>l("hr",{key:E.key}),"l")},3:{t:[" "],o:Wr(dC),i:0,u:a(v=>({lang:void 0,text:Nr(Ha(v[0].replace(/^ {4}/gm,"")))}),"u"),l:a((v,w,E)=>l("pre",{key:E.key},l("code",Jn({},v.attrs,{className:v.lang?"lang-"+v.lang:""}),v.text)),"l")},4:{t:["```","~~~"],o:Wr(uC),i:0,u:a(v=>({attrs:u("code",v[3]||""),lang:v[2]||void 0,text:v[4],type:"3"}),"u")},5:{t:["`"],o:Tn(g4),i:3,u:a(v=>({text:Nr(v[2])}),"u"),l:a((v,w,E)=>l("code",{key:E.key},v.text),"l")},6:{t:["[^"],o:Wr(v4),i:0,u:a(v=>(p.push({footnote:v[2],identifier:v[1]}),{}),"u"),l:tu},7:{t:["[^"],o:xn(E4),i:1,u:a(v=>({target:"#"+r(v[1],za),text:v[1]}),"u"),l:a((v,w,E)=>l("a",{key:E.key,href:n(v.target,"a","href")},l("sup",{key:E.key},v.text)),"l")},8:{t:["[ ]","[x]"],o:xn(x4),i:1,u:a(v=>({completed:v[1].toLowerCase()==="x"}),"u"),l:a((v,w,E)=>l("input",{checked:v.completed,key:E.key,readOnly:!0,type:"checkbox"}),"l")},9:{t:["#"],o:Wr(t.enforceAtxHeadings?fC:pC),i:1,u:a((v,w,E)=>({children:os(w,v[2],E),id:r(v[2],za),level:v[1].length}),"u"),l:a((v,w,E)=>l("h"+v.level,{id:v.id,key:E.key},w(v.children,E)),"l")},10:{o:Wr(mC),i:0,u:a((v,w,E)=>({children:os(w,v[1],E),level:v[2]==="="?1:2,type:"9"}),"u")},11:{t:["<"],o:ts(ch),i:1,u(v,w,E){let[,x]=v[3].match(K4),A=RegExp("^"+x,"gm"),_=v[3].replace(A,""),C=(O=_,s.some($=>$.test(O))?rR:os);var O;let I=v[1].toLowerCase(),P=s4.indexOf(I)!==-1,D=(P?I:v[1]).trim(),j={attrs:u(D,v[2]),noInnerParse:P,tag:D};if(E.inAnchor=E.inAnchor||I==="a",P)j.text=v[3];else{let $=E.inHTML;E.inHTML=!0,j.children=C(w,_,E),E.inHTML=$}return E.inAnchor=!1,j},l:a((v,w,E)=>l(v.tag,Jn({key:E.key},v.attrs),v.text||(v.children?w(v.children,E):"")),"l")},13:{t:["<"],o:ts(uh),i:1,u(v){let w=v[1].trim();return{attrs:u(w,v[2]||""),tag:w}},l:a((v,w,E)=>l(v.tag,Jn({},v.attrs,{key:E.key})),"l")},12:{t:["<!--"],o:ts(hC),i:1,u:a(()=>({}),"u"),l:tu},14:{t:["!["],o:Tn(n$),i:1,u:a(v=>({alt:Nr(v[1]),target:Nr(v[2]),title:Nr(v[3])}),"u"),l:a((v,w,E)=>l("img",{key:E.key,alt:v.alt||void 0,title:v.title||void 0,src:n(v.target,"img","src")}),"l")},15:{t:["["],o:xn(r$),i:3,u:a((v,w,E)=>({children:tR(w,v[1],E),target:Nr(v[2]),title:Nr(v[3])}),"u"),l:a((v,w,E)=>l("a",{key:E.key,href:n(v.target,"a","href"),title:v.title},w(v.children,E)),"l")},16:{t:["<"],o:xn(O4),i:0,u:a(v=>({children:[{text:v[1],type:"27"}],target:v[1],type:"15"}),"u")},17:{t:a((v,w)=>!w.inAnchor&&!t.disableAutoLink&&(ns(v,"http://")||ns(v,"https://")),"t"),o:xn(R4),i:0,u:a(v=>({children:[{text:v[1],type:"27"}],target:v[1],title:void 0,type:"15"}),"u")},18:{t:["<"],o:xn(_4),i:0,u(v){let w=v[1],E=v[1];return u4.test(E)||(E="mailto:"+E),{children:[{text:w.replace("mailto:",""),type:"27"}],target:E,type:"15"}}},20:xh(l,1),33:xh(l,2),19:{o:Wr(y4),i:3,u:eu,l:a(()=>`
|
|
890
|
+
`,"l")},21:{o:Do(function(v,w){if(w.inline||w.simple||w.inHTML&&v.indexOf(`
|
|
891
|
+
|
|
892
|
+
`)===-1&&w.prevCapture.indexOf(`
|
|
893
|
+
|
|
894
|
+
`)===-1)return null;let E="";v.split(`
|
|
895
|
+
`).every(A=>(A+=`
|
|
896
|
+
`,!i.some(_=>_.test(A))&&(E+=A,!!A.trim())));let x=Ha(E);return x===""?null:[E,,x]}),i:3,u:dh,l:a((v,w,E)=>l("p",{key:E.key},w(v.children,E)),"l")},22:{t:["["],o:xn(k4),i:0,u:a(v=>(f[v[1]]={target:v[2],title:v[4]},{}),"u"),l:tu},23:{t:["!["],o:Tn(D4),i:0,u:a(v=>({alt:v[1]?Nr(v[1]):void 0,ref:v[2]}),"u"),l:a((v,w,E)=>f[v.ref]?l("img",{key:E.key,alt:v.alt,src:n(f[v.ref].target,"img","src"),title:f[v.ref].title}):null,"l")},24:{t:a(v=>v[0]==="["&&v.indexOf("](")===-1,"t"),o:xn(N4),i:0,u:a((v,w,E)=>({children:w(v[1],E),fallbackChildren:v[0],ref:v[2]}),"u"),l:a((v,w,E)=>f[v.ref]?l("a",{key:E.key,href:n(f[v.ref].target,"a","href"),title:f[v.ref].title},w(v.children,E)):l("span",{key:E.key},v.fallbackChildren),"l")},25:{t:["|"],o:Wr(gC),i:1,u:QC,l(v,w,E){let x=v;return l("table",{key:E.key},l("thead",null,l("tr",null,x.header.map(function(A,_){return l("th",{key:_,style:Ah(x,_)},w(A,E))}))),l("tbody",null,x.cells.map(function(A,_){return l("tr",{key:_},A.map(function(C,O){return l("td",{key:O,style:Ah(x,O)},w(C,E))}))})))}},27:{o:Do(function(v,w){let E;return ns(v,":")&&(E=W4.exec(v)),E||G4.exec(v)}),i:4,u(v){let w=v[0];return{text:w.indexOf("&")===-1?w:w.replace(T4,(E,x)=>t.namedCodesToUnicode[x]||E)}},l:a(v=>v.text,"l")},28:{t:["**","__"],o:Tn(U4),i:2,u:a((v,w,E)=>({children:w(v[2],E)}),"u"),l:a((v,w,E)=>l("strong",{key:E.key},w(v.children,E)),"l")},29:{t:a(v=>{let w=v[0];return(w==="*"||w==="_")&&v[1]!==w},"t"),o:Tn(z4),i:3,u:a((v,w,E)=>({children:w(v[2],E)}),"u"),l:a((v,w,E)=>l("em",{key:E.key},w(v.children,E)),"l")},30:{t:["\\"],o:Tn(J4),i:1,u:a(v=>({text:v[1],type:"27"}),"u")},31:{t:["=="],o:Tn(H4),i:3,u:dh,l:a((v,w,E)=>l("mark",{key:E.key},w(v.children,E)),"l")},32:{t:["~~"],o:Tn(V4),i:3,u:dh,l:a((v,w,E)=>l("del",{key:E.key},w(v.children,E)),"l")}};t.disableParsingRawHTML===!0&&(delete m[11],delete m[13]);let g=function(v){var w=Object.keys(v);function E(x,A){var _=[];if(A.prevCapture=A.prevCapture||"",x.trim())for(;x;)for(var C=0;C<w.length;){var O=w[C],I=v[O];if(!I.t||XC(x,A,I.t)){var P=I.o(x,A);if(P&&P[0]){x=x.substring(P[0].length);var D=I.u(P,E,A);A.prevCapture+=P[0],D.type||(D.type=O),_.push(D);break}C++}else C++}return A.prevCapture="",_}return a(E,"r"),w.sort(function(x,A){return v[x].i-v[A].i||(x<A?-1:1)}),function(x,A){return E(function(_){return _.replace(b4,`
|
|
897
|
+
`).replace(S4,"").replace(L4," ")}(x),A)}}(m),b=(y=function(v,w){return function(E,x,A){let _=v[E.type].l;return w?w(()=>_(E,x,A),E,x,A):_(E,x,A)}}(m,t.renderRule),a(function v(w,E={}){if(Array.isArray(w)){let x=E.key,A=[],_=!1;for(let C=0;C<w.length;C++){E.key=C;let O=v(w[C],E),I=typeof O=="string";I&&_?A[A.length-1]+=O:O!==null&&A.push(O),_=I}return E.key=x,A}return y(w,v,E)},"e"));var y;let S=c(e);return p.length?l("div",null,S,l("footer",{key:"footer"},p.map(function(v){return l("div",{id:r(v.identifier,za),key:v.identifier},v.identifier,b(g(v.footnote,{inline:!0})))}))):S}a(oR,"Je");var a$=a(e=>{let{children:t="",options:r}=e,n=function(o,i){if(o==null)return{};var s,l,c={},u=Object.keys(o);for(l=0;l<u.length;l++)i.indexOf(s=u[l])>=0||(c[s]=o[s]);return c}(e,i4);return _e(oR(t,r),n)},"default"),i$=R.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:ye(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Qo(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Qo(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Qo(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Qo(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),s$=a(e=>e==="true","parse"),l$=a(({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:i})=>{let s=ne(()=>r(!1),[r]),l=!!i?.table?.readonly;if(t===void 0)return d.createElement(Kt,{variant:"outline",size:"medium",id:Ji(e),onClick:s,disabled:l},"Set boolean");let c=Gt(e),u=typeof t=="string"?s$(t):t;return d.createElement(i$,{"aria-disabled":l,htmlFor:c,"aria-label":e},d.createElement("input",{id:c,type:"checkbox",onChange:p=>r(p.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),d.createElement("span",{"aria-hidden":"true"},"False"),d.createElement("span",{"aria-hidden":"true"},"True"))},"BooleanControl"),c$=a(e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},"parseDate"),u$=a(e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},"parseTime"),d$=a(e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},"formatDate"),p$=a(e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},"formatTime"),yC=R(Dt.Input)(({readOnly:e})=>({opacity:e?.5:1})),f$=R.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),m$=a(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:i})=>{let[s,l]=J(!0),c=Q(),u=Q(),p=!!i?.table?.readonly;q(()=>{s!==!1&&(c&&c.current&&(c.current.value=t?d$(t):""),u&&u.current&&(u.current.value=t?p$(t):""))},[t]);let f=a(b=>{if(!b.target.value)return r();let y=c$(b.target.value),S=new Date(t??"");S.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());let v=S.getTime();v&&r(v),l(!!v)},"onDateChange"),m=a(b=>{if(!b.target.value)return r();let y=u$(b.target.value),S=new Date(t??"");S.setHours(y.getHours()),S.setMinutes(y.getMinutes());let v=S.getTime();v&&r(v),l(!!v)},"onTimeChange"),g=Gt(e);return d.createElement(f$,null,d.createElement(yC,{type:"date",max:"9999-12-31",ref:c,id:`${g}-date`,name:`${g}-date`,readOnly:p,onChange:f,onFocus:n,onBlur:o}),d.createElement(yC,{type:"time",id:`${g}-time`,name:`${g}-time`,ref:u,onChange:m,readOnly:p,onFocus:n,onBlur:o}),s?null:d.createElement("div",null,"invalid"))},"DateControl"),h$=R.label({display:"flex"}),g$=a(e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},"parse"),y$=R(Dt.Input)(({readOnly:e})=>({opacity:e?.5:1})),b$=a(({name:e,value:t,onChange:r,min:n,max:o,step:i,onBlur:s,onFocus:l,argType:c})=>{let[u,p]=J(typeof t=="number"?t:""),[f,m]=J(!1),[g,b]=J(null),y=!!c?.table?.readonly,S=ne(E=>{p(E.target.value);let x=parseFloat(E.target.value);Number.isNaN(x)?b(new Error(`'${E.target.value}' is not a number`)):(r(x),b(null))},[r,b]),v=ne(()=>{p("0"),r(0),m(!0)},[m]),w=Q(null);return q(()=>{f&&w.current&&w.current.select()},[f]),q(()=>{let E=typeof t=="number"?t:"";u!==E&&p(E)},[t]),t===void 0?d.createElement(Kt,{variant:"outline",size:"medium",id:Ji(e),onClick:v,disabled:y},"Set number"):d.createElement(h$,null,d.createElement(y$,{ref:w,id:Gt(e),type:"number",onChange:S,size:"flex",placeholder:"Edit number...",value:u,valid:g?"error":void 0,autoFocus:f,readOnly:y,name:e,min:n,max:o,step:i,onFocus:l,onBlur:s}))},"NumberControl"),aR=a((e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},"selectedKey"),Ch=a((e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],"selectedKeys"),iR=a((e,t)=>e&&t&&e.map(r=>t[r]),"selectedValues"),v$=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),E$=R.span({"[aria-readonly=true] &":{opacity:.5}}),S$=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),bC=a(({name:e,options:t,value:r,onChange:n,isInline:o,argType:i})=>{if(!t)return we.warn(`Checkbox with no options: ${e}`),d.createElement(d.Fragment,null,"-");let s=Ch(r||[],t),[l,c]=J(s),u=!!i?.table?.readonly,p=a(m=>{let g=m.target.value,b=[...l];b.includes(g)?b.splice(b.indexOf(g),1):b.push(g),n(iR(b,t)),c(b)},"handleChange");q(()=>{c(Ch(r||[],t))},[r]);let f=Gt(e);return d.createElement(v$,{"aria-readonly":u,isInline:o},Object.keys(t).map((m,g)=>{let b=`${f}-${g}`;return d.createElement(S$,{key:b,htmlFor:b},d.createElement("input",{type:"checkbox",disabled:u,id:b,name:b,value:m,onChange:p,checked:l?.includes(m)}),d.createElement(E$,null,m))}))},"CheckboxControl"),w$=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),x$=R.span({"[aria-readonly=true] &":{opacity:.5}}),T$=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),vC=a(({name:e,options:t,value:r,onChange:n,isInline:o,argType:i})=>{if(!t)return we.warn(`Radio with no options: ${e}`),d.createElement(d.Fragment,null,"-");let s=aR(r,t),l=Gt(e),c=!!i?.table?.readonly;return d.createElement(w$,{"aria-readonly":c,isInline:o},Object.keys(t).map((u,p)=>{let f=`${l}-${p}`;return d.createElement(T$,{key:f,htmlFor:f},d.createElement("input",{type:"radio",id:f,name:l,disabled:c,value:u,onChange:m=>n(t[m.currentTarget.value]),checked:u===s}),d.createElement(x$,null,u))}))},"RadioControl"),A$={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},sR=R.select(A$,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),lR=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),EC="Choose option...",C$=a(({name:e,value:t,options:r,onChange:n,argType:o})=>{let i=a(u=>{n(r[u.currentTarget.value])},"handleChange"),s=aR(t,r)||EC,l=Gt(e),c=!!o?.table?.readonly;return d.createElement(lR,null,d.createElement(Vs,null),d.createElement(sR,{disabled:c,id:l,value:s,onChange:i},d.createElement("option",{key:"no-selection",disabled:!0},EC),Object.keys(r).map(u=>d.createElement("option",{key:u,value:u},u))))},"SingleSelect"),R$=a(({name:e,value:t,options:r,onChange:n,argType:o})=>{let i=a(u=>{let p=Array.from(u.currentTarget.options).filter(f=>f.selected).map(f=>f.value);n(iR(p,r))},"handleChange"),s=Ch(t,r),l=Gt(e),c=!!o?.table?.readonly;return d.createElement(lR,null,d.createElement(sR,{disabled:c,id:l,multiple:!0,value:s,onChange:i},Object.keys(r).map(u=>d.createElement("option",{key:u,value:u},u))))},"MultiSelect"),SC=a(e=>{let{name:t,options:r}=e;return r?e.isMulti?d.createElement(R$,{...e}):d.createElement(C$,{...e}):(we.warn(`Select with no options: ${t}`),d.createElement(d.Fragment,null,"-"))},"SelectControl"),_$=a((e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,"normalizeOptions"),O$={check:bC,"inline-check":bC,radio:vC,"inline-radio":vC,select:SC,"multi-select":SC},ja=a(e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?_$(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},i=O$[t];if(i)return d.createElement(i,{...o});throw new Error(`Unknown options type: ${t}`)},"OptionsControl"),I$=R.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),P$=R.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),k$=R.div({display:"inline"});function Hh({children:e,name:t,collapsed:r,keyPath:n,deep:o,...i}){let l=`${n.at(-1)??"root"}-${t}-${o}`,c={trigger:`${l}-trigger`,region:`${l}-region`},u=n.length>0?"li":"div";return d.createElement(I$,{as:u},d.createElement(P$,{type:"button","aria-expanded":!r,id:c.trigger,"aria-controls":c.region,className:"rejt-accordion-button",...i},t," :"),d.createElement(k$,{role:"region",id:c.region,"aria-labelledby":c.trigger,className:"rejt-accordion-region"},e))}a(Hh,"JsonNodeAccordion");var D$="Error",N$="Object",F$="Array",L$="String",M$="Number",B$="Boolean",$$="Date",j$="Null",U$="Undefined",z$="Function",H$="Symbol",cR="ADD_DELTA_TYPE",uR="REMOVE_DELTA_TYPE",dR="UPDATE_DELTA_TYPE",Vh="value",V$="key";function qn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}a(qn,"getObjectType");function Wh(e,t){let r=qn(e),n=qn(t);return(r==="Function"||n==="Function")&&n!==r}a(Wh,"isComponentWillChange");var pR=class extends Tt{constructor(t){super(t),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:t,inputRefValue:r}=this.state,{onlyValue:n}=this.props;t&&typeof t.focus=="function"&&t.focus(),n&&r&&typeof r.focus=="function"&&r.focus()}onKeydown(t){if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat)return;let{inputRefKey:r,inputRefValue:n}=this.state,{addButtonElement:o,handleCancel:i}=this.props;[r,n,o].some(l=>l===t.target)&&((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.onSubmit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),i()))}onSubmit(){let{handleAdd:t,onlyValue:r,onSubmitValueParser:n,keyPath:o,deep:i}=this.props,{inputRefKey:s,inputRefValue:l}=this.state,c={};if(!r){if(!s.value)return;c.key=s.value}c.newValue=n(!1,o,i,c.key,l.value),t(c)}refInputKey(t){this.state.inputRefKey=t}refInputValue(t){this.state.inputRefValue=t}render(){let{handleCancel:t,onlyValue:r,addButtonElement:n,cancelButtonElement:o,inputElementGenerator:i,keyPath:s,deep:l}=this.props,c=n&&_e(n,{onClick:this.onSubmit}),u=o&&_e(o,{onClick:t}),p=i(Vh,s,l),f=_e(p,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),m=null;if(!r){let g=i(V$,s,l);m=_e(g,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return d.createElement("span",{className:"rejt-add-value-node"},m,f,c,u)}};a(pR,"JsonAddValue");var Jh=pR;Jh.defaultProps={onlyValue:!1,addButtonElement:d.createElement("button",null,"+"),cancelButtonElement:d.createElement("button",null,"c")};var fR=class extends Tt{constructor(t){super(t);let r=[...t.keyPath||[],t.name];this.state={data:t.data,name:t.name,keyPath:r??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(r,t.deep??0,t.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(t,r){return t.data!==r.data?{data:t.data}:null}onChildUpdate(t,r){let{data:n,keyPath:o=[]}=this.state;n[t]=r,this.setState({data:n});let{onUpdate:i}=this.props,s=o.length;i(o[s-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleRemoveItem(t){return()=>{let{beforeRemoveAction:r,logger:n}=this.props,{data:o,keyPath:i,nextDeep:s}=this.state,l=o[t];(r||Promise.resolve.bind(Promise))(t,i,s,l).then(()=>{let c={keyPath:i,deep:s,key:t,oldValue:l,type:uR};o.splice(t,1),this.setState({data:o});let{onUpdate:u,onDeltaUpdate:p}=this.props;u(i[i.length-1],o),p(c)}).catch(n.error)}}handleAddValueAdd({newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:i,logger:s}=this.props,l=r.length;(i||Promise.resolve.bind(Promise))(l,n,o,t).then(()=>{r[l]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:c,onDeltaUpdate:u}=this.props;c(n[n.length-1],r),u({type:cR,keyPath:n,deep:o,key:l,newValue:t})}).catch(s.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:t,value:r}){return new Promise((n,o)=>{let{beforeUpdateAction:i}=this.props,{data:s,keyPath:l,nextDeep:c}=this.state,u=s[t];(i||Promise.resolve.bind(Promise))(t,l,c,u,r).then(()=>{s[t]=r,this.setState({data:s});let{onUpdate:p,onDeltaUpdate:f}=this.props;p(l[l.length-1],s),f({type:dR,keyPath:l,deep:c,key:t,newValue:r,oldValue:u}),n(void 0)}).catch(o)})}renderCollapsed(){let{name:t,data:r,keyPath:n,deep:o}=this.state,{handleRemove:i,readOnly:s,getStyle:l,dataType:c,minusMenuElement:u}=this.props,{minus:p,collapsed:f}=l(t,r,n,o,c),m=s(t,r,n,o,c),g=u&&_e(u,{onClick:i,className:"rejt-minus-menu",style:p,"aria-label":`remove the array '${String(t)}'`});return d.createElement(d.Fragment,null,d.createElement("span",{style:f},"[...] ",r.length," ",r.length===1?"item":"items"),!m&&g)}renderNotCollapsed(){let{name:t,data:r,keyPath:n,deep:o,addFormVisible:i,nextDeep:s}=this.state,{isCollapsed:l,handleRemove:c,onDeltaUpdate:u,readOnly:p,getStyle:f,dataType:m,addButtonElement:g,cancelButtonElement:b,inputElementGenerator:y,textareaElementGenerator:S,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:A,logger:_,onSubmitValueParser:C}=this.props,{minus:O,plus:I,delimiter:P,ul:D,addForm:j}=f(t,r,n,o,m),$=p(t,r,n,o,m),N=w&&_e(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:I,"aria-label":`add a new item to the '${String(t)}' array`}),F=v&&_e(v,{onClick:c,className:"rejt-minus-menu",style:O,"aria-label":`remove the array '${String(t)}'`});return d.createElement(d.Fragment,null,d.createElement("span",{className:"rejt-not-collapsed-delimiter",style:P},"["),!i&&N,d.createElement("ul",{className:"rejt-not-collapsed-list",style:D},r.map((z,V)=>d.createElement(pu,{key:V,name:V.toString(),data:z,keyPath:n,deep:s,isCollapsed:l,handleRemove:this.handleRemoveItem(V),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:p,getStyle:f,addButtonElement:g,cancelButtonElement:b,inputElementGenerator:y,textareaElementGenerator:S,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:A,logger:_,onSubmitValueParser:C}))),!$&&i&&d.createElement("div",{className:"rejt-add-form",style:j},d.createElement(Jh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:g,cancelButtonElement:b,inputElementGenerator:y,keyPath:n,deep:o,onSubmitValueParser:C})),d.createElement("span",{className:"rejt-not-collapsed-delimiter",style:P},"]"),!$&&F)}render(){let{name:t,collapsed:r,keyPath:n,deep:o}=this.state,i=r?this.renderCollapsed():this.renderNotCollapsed();return d.createElement(Hh,{name:t,collapsed:r,deep:o,keyPath:n,onClick:this.handleCollapseMode},i)}};a(fR,"JsonArray");var mR=fR;mR.defaultProps={keyPath:[],deep:0,minusMenuElement:d.createElement("span",null," - "),plusMenuElement:d.createElement("span",null," + ")};var hR=class extends Tt{constructor(t){super(t);let r=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:r??[],deep:t.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(t,r){return t.value!==r.value?{value:t.value}:null}componentDidUpdate(){let{editEnabled:t,inputRef:r,name:n,value:o,keyPath:i,deep:s}=this.state,{readOnly:l,dataType:c}=this.props,u=l(n,o,i,s,c);t&&!u&&typeof r.focus=="function"&&r.focus()}onKeydown(t){let{inputRef:r}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||r!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:t,originalValue:r,logger:n,onSubmitValueParser:o,keyPath:i}=this.props,{inputRef:s,name:l,deep:c}=this.state;if(!s)return;let u=o(!0,i,c,l,s.value),p={value:u,key:l};(t||Promise.resolve.bind(Promise))(p).then(()=>{Wh(r,u)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:t,value:r,editEnabled:n,keyPath:o,deep:i}=this.state,{handleRemove:s,originalValue:l,readOnly:c,dataType:u,getStyle:p,textareaElementGenerator:f,minusMenuElement:m,keyPath:g=[]}=this.props,b=p(t,l,o,i,u),y=null,S=null,v=c(t,l,o,i,u);if(n&&!v){let w=f(Vh,g,i,t,l,u),E=_e(w,{ref:this.refInput,defaultValue:r,onKeyDown:this.onKeydown});y=d.createElement("span",{className:"rejt-edit-form",style:b.editForm},E),S=null}else{y=d.createElement("span",{className:"rejt-value",style:b.value,onClick:v?void 0:this.handleEditMode},r);let w=g.at(-1),E=m&&_e(m,{onClick:s,className:"rejt-minus-menu",style:b.minus,"aria-label":`remove the function '${String(t)}'${String(w)?` from '${String(w)}'`:""}`});S=v?null:E}return d.createElement("li",{className:"rejt-value-node",style:b.li},d.createElement("span",{className:"rejt-name",style:b.name},t," :"," "),y,S)}};a(hR,"JsonFunctionValue");var gR=hR;gR.defaultProps={keyPath:[],deep:0,handleUpdateValue:a(()=>{},"handleUpdateValue"),cancelButtonElement:d.createElement("button",null,"c"),minusMenuElement:d.createElement("span",null," - ")};var yR=class extends Tt{constructor(t){super(t),this.state={data:t.data,name:t.name,keyPath:t.keyPath??[],deep:t.deep??0}}static getDerivedStateFromProps(t,r){return t.data!==r.data?{data:t.data}:null}render(){let{data:t,name:r,keyPath:n,deep:o}=this.state,{isCollapsed:i,handleRemove:s,handleUpdateValue:l,onUpdate:c,onDeltaUpdate:u,readOnly:p,getStyle:f,addButtonElement:m,cancelButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:v,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:x,logger:A,onSubmitValueParser:_}=this.props,C=a(()=>!0,"readOnlyTrue"),O=qn(t);switch(O){case D$:return d.createElement(Rh,{data:t,name:r,isCollapsed:i,keyPath:n,deep:o,handleRemove:s,onUpdate:c,onDeltaUpdate:u,readOnly:C,dataType:O,getStyle:f,addButtonElement:m,cancelButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:v,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:x,logger:A,onSubmitValueParser:_});case N$:return d.createElement(Rh,{data:t,name:r,isCollapsed:i,keyPath:n,deep:o,handleRemove:s,onUpdate:c,onDeltaUpdate:u,readOnly:p,dataType:O,getStyle:f,addButtonElement:m,cancelButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:v,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:x,logger:A,onSubmitValueParser:_});case F$:return d.createElement(mR,{data:t,name:r,isCollapsed:i,keyPath:n,deep:o,handleRemove:s,onUpdate:c,onDeltaUpdate:u,readOnly:p,dataType:O,getStyle:f,addButtonElement:m,cancelButtonElement:g,inputElementGenerator:b,textareaElementGenerator:y,minusMenuElement:S,plusMenuElement:v,beforeRemoveAction:w,beforeAddAction:E,beforeUpdateAction:x,logger:A,onSubmitValueParser:_});case L$:return d.createElement(Wn,{name:r,value:`"${t}"`,originalValue:t,keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:p,dataType:O,getStyle:f,cancelButtonElement:g,inputElementGenerator:b,minusMenuElement:S,logger:A,onSubmitValueParser:_});case M$:return d.createElement(Wn,{name:r,value:t,originalValue:t,keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:p,dataType:O,getStyle:f,cancelButtonElement:g,inputElementGenerator:b,minusMenuElement:S,logger:A,onSubmitValueParser:_});case B$:return d.createElement(Wn,{name:r,value:t?"true":"false",originalValue:t,keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:p,dataType:O,getStyle:f,cancelButtonElement:g,inputElementGenerator:b,minusMenuElement:S,logger:A,onSubmitValueParser:_});case $$:return d.createElement(Wn,{name:r,value:t.toISOString(),originalValue:t,keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:C,dataType:O,getStyle:f,cancelButtonElement:g,inputElementGenerator:b,minusMenuElement:S,logger:A,onSubmitValueParser:_});case j$:return d.createElement(Wn,{name:r,value:"null",originalValue:"null",keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:p,dataType:O,getStyle:f,cancelButtonElement:g,inputElementGenerator:b,minusMenuElement:S,logger:A,onSubmitValueParser:_});case U$:return d.createElement(Wn,{name:r,value:"undefined",originalValue:"undefined",keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:p,dataType:O,getStyle:f,cancelButtonElement:g,inputElementGenerator:b,minusMenuElement:S,logger:A,onSubmitValueParser:_});case z$:return d.createElement(gR,{name:r,value:t.toString(),originalValue:t,keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:p,dataType:O,getStyle:f,cancelButtonElement:g,textareaElementGenerator:y,minusMenuElement:S,logger:A,onSubmitValueParser:_});case H$:return d.createElement(Wn,{name:r,value:t.toString(),originalValue:t,keyPath:n,deep:o,handleRemove:s,handleUpdateValue:l,readOnly:C,dataType:O,getStyle:f,cancelButtonElement:g,inputElementGenerator:b,minusMenuElement:S,logger:A,onSubmitValueParser:_});default:return null}}};a(yR,"JsonNode");var pu=yR;pu.defaultProps={keyPath:[],deep:0};var bR=class extends Tt{constructor(t){super(t);let r=t.deep===-1?[]:[...t.keyPath||[],t.name];this.state={name:t.name,data:t.data,keyPath:r??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(r,t.deep??0,t.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(t,r){return t.data!==r.data?{data:t.data}:null}onChildUpdate(t,r){let{data:n,keyPath:o=[]}=this.state;n[t]=r,this.setState({data:n});let{onUpdate:i}=this.props,s=o.length;i(o[s-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:t,newValue:r}){let{data:n,keyPath:o=[],nextDeep:i}=this.state,{beforeAddAction:s,logger:l}=this.props;(s||Promise.resolve.bind(Promise))(t,o,i,r).then(()=>{n[t]=r,this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:c,onDeltaUpdate:u}=this.props;c(o[o.length-1],n),u({type:cR,keyPath:o,deep:i,key:t,newValue:r})}).catch(l.error)}handleRemoveValue(t){return()=>{let{beforeRemoveAction:r,logger:n}=this.props,{data:o,keyPath:i=[],nextDeep:s}=this.state,l=o[t];(r||Promise.resolve.bind(Promise))(t,i,s,l).then(()=>{let c={keyPath:i,deep:s,key:t,oldValue:l,type:uR};delete o[t],this.setState({data:o});let{onUpdate:u,onDeltaUpdate:p}=this.props;u(i[i.length-1],o),p(c)}).catch(n.error)}}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleEditValue({key:t,value:r}){return new Promise((n,o)=>{let{beforeUpdateAction:i}=this.props,{data:s,keyPath:l=[],nextDeep:c}=this.state,u=s[t];(i||Promise.resolve.bind(Promise))(t,l,c,u,r).then(()=>{s[t]=r,this.setState({data:s});let{onUpdate:p,onDeltaUpdate:f}=this.props;p(l[l.length-1],s),f({type:dR,keyPath:l,deep:c,key:t,newValue:r,oldValue:u}),n()}).catch(o)})}renderCollapsed(){let{name:t,keyPath:r,deep:n,data:o}=this.state,{handleRemove:i,readOnly:s,dataType:l,getStyle:c,minusMenuElement:u}=this.props,{minus:p,collapsed:f}=c(t,o,r,n,l),m=Object.getOwnPropertyNames(o),g=s(t,o,r,n,l),b=u&&_e(u,{onClick:i,className:"rejt-minus-menu",style:p,"aria-label":`remove the object '${String(t)}'`});return d.createElement(d.Fragment,null,d.createElement("span",{style:f},"{...}"," ",m.length," ",m.length===1?"key":"keys"),!g&&b)}renderNotCollapsed(){let{name:t,data:r,keyPath:n,deep:o,nextDeep:i,addFormVisible:s}=this.state,{isCollapsed:l,handleRemove:c,onDeltaUpdate:u,readOnly:p,getStyle:f,dataType:m,addButtonElement:g,cancelButtonElement:b,inputElementGenerator:y,textareaElementGenerator:S,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:A,logger:_,onSubmitValueParser:C}=this.props,{minus:O,plus:I,addForm:P,ul:D,delimiter:j}=f(t,r,n,o,m),$=Object.getOwnPropertyNames(r),N=p(t,r,n,o,m),F=w&&_e(w,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:I,"aria-label":`add a new property to the object '${String(t)}'`}),B=v&&_e(v,{onClick:c,className:"rejt-minus-menu",style:O,"aria-label":`remove the object '${String(t)}'`}),M=$.map(V=>d.createElement(pu,{key:V,name:V,data:r[V],keyPath:n,deep:i,isCollapsed:l,handleRemove:this.handleRemoveValue(V),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:p,getStyle:f,addButtonElement:g,cancelButtonElement:b,inputElementGenerator:y,textareaElementGenerator:S,minusMenuElement:v,plusMenuElement:w,beforeRemoveAction:E,beforeAddAction:x,beforeUpdateAction:A,logger:_,onSubmitValueParser:C}));return d.createElement(d.Fragment,null,d.createElement("span",{className:"rejt-not-collapsed-delimiter",style:j},"{"),!N&&F,d.createElement("ul",{className:"rejt-not-collapsed-list",style:D},M),!N&&s&&d.createElement("div",{className:"rejt-add-form",style:P},d.createElement(Jh,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:g,cancelButtonElement:b,inputElementGenerator:y,keyPath:n,deep:o,onSubmitValueParser:C})),d.createElement("span",{className:"rejt-not-collapsed-delimiter",style:j},"}"),!N&&B)}render(){let{name:t,collapsed:r,keyPath:n,deep:o=0}=this.state,i=r?this.renderCollapsed():this.renderNotCollapsed();return d.createElement(Hh,{name:t,collapsed:r,deep:o,keyPath:n,onClick:this.handleCollapseMode},i)}};a(bR,"JsonObject");var Rh=bR;Rh.defaultProps={keyPath:[],deep:0,minusMenuElement:d.createElement("span",null," - "),plusMenuElement:d.createElement("span",null," + ")};var vR=class extends Tt{constructor(t){super(t);let r=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:r??[],deep:t.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(t,r){return t.value!==r.value?{value:t.value}:null}componentDidUpdate(){let{editEnabled:t,inputRef:r,name:n,value:o,keyPath:i,deep:s}=this.state,{readOnly:l,dataType:c}=this.props,u=l(n,o,i,s,c);t&&!u&&typeof r.focus=="function"&&r.focus()}onKeydown(t){let{inputRef:r}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||r!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:t,originalValue:r,logger:n,onSubmitValueParser:o,keyPath:i}=this.props,{inputRef:s,name:l,deep:c}=this.state;if(!s)return;let u=o(!0,i,c,l,s.value),p={value:u,key:l};(t||Promise.resolve.bind(Promise))(p).then(()=>{Wh(r,u)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:t,value:r,editEnabled:n,keyPath:o,deep:i}=this.state,{handleRemove:s,originalValue:l,readOnly:c,dataType:u,getStyle:p,inputElementGenerator:f,minusMenuElement:m,keyPath:g}=this.props,b=p(t,l,o,i,u),y=c(t,l,o,i,u),S=n&&!y,v=f(Vh,g,i,t,l,u),w=_e(v,{ref:this.refInput,defaultValue:JSON.stringify(l),onKeyDown:this.onKeydown}),E=o.at(-2),x=m&&_e(m,{onClick:s,className:"rejt-minus-menu",style:b.minus,"aria-label":`remove the property '${String(t)}' with value '${String(l)}'${String(E)?` from '${String(E)}'`:""}`});return d.createElement("li",{className:"rejt-value-node",style:b.li},d.createElement("span",{className:"rejt-name",style:b.name},t," : "),S?d.createElement("span",{className:"rejt-edit-form",style:b.editForm},w):d.createElement("span",{className:"rejt-value",style:b.value,onClick:y?void 0:this.handleEditMode},String(r)),!y&&!S&&x)}};a(vR,"JsonValue");var Wn=vR;Wn.defaultProps={keyPath:[],deep:0,handleUpdateValue:a(()=>Promise.resolve(),"handleUpdateValue"),cancelButtonElement:d.createElement("button",null,"c"),minusMenuElement:d.createElement("span",null," - ")};function ER(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}a(ER,"parse");var W$={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},J$={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},q$={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},SR=class extends Tt{constructor(t){super(t),this.state={data:t.data,rootName:t.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(t,r){return t.data!==r.data||t.rootName!==r.rootName?{data:t.data,rootName:t.rootName}:null}onUpdate(t,r){this.setState({data:r}),this.props.onFullyUpdate?.(r)}removeRoot(){this.onUpdate(null,null)}render(){let{data:t,rootName:r}=this.state,{isCollapsed:n,onDeltaUpdate:o,readOnly:i,getStyle:s,addButtonElement:l,cancelButtonElement:c,inputElement:u,textareaElement:p,minusMenuElement:f,plusMenuElement:m,beforeRemoveAction:g,beforeAddAction:b,beforeUpdateAction:y,logger:S,onSubmitValueParser:v,fallback:w=null}=this.props,E=qn(t),x=i;qn(i)==="Boolean"&&(x=a(()=>i,"readOnlyFunction"));let A=u;u&&qn(u)!=="Function"&&(A=a(()=>u,"inputElementFunction"));let _=p;return p&&qn(p)!=="Function"&&(_=a(()=>p,"textareaElementFunction")),E==="Object"||E==="Array"?d.createElement("div",{className:"rejt-tree"},d.createElement(pu,{data:t,name:r||"root",deep:-1,isCollapsed:n??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:o??(()=>{}),readOnly:x,getStyle:s??(()=>({})),addButtonElement:l,cancelButtonElement:c,inputElementGenerator:A,textareaElementGenerator:_,minusMenuElement:f,plusMenuElement:m,handleRemove:this.removeRoot,beforeRemoveAction:g,beforeAddAction:b,beforeUpdateAction:y,logger:S??{},onSubmitValueParser:v??(C=>C)})):w}};a(SR,"JsonTree");var wR=SR;wR.defaultProps={rootName:"root",isCollapsed:a((e,t)=>t!==-1,"isCollapsed"),getStyle:a((e,t,r,n,o)=>{switch(o){case"Object":case"Error":return W$;case"Array":return J$;default:return q$}},"getStyle"),readOnly:a(()=>!1,"readOnly"),onFullyUpdate:a(()=>{},"onFullyUpdate"),onDeltaUpdate:a(()=>{},"onDeltaUpdate"),beforeRemoveAction:a(()=>Promise.resolve(),"beforeRemoveAction"),beforeAddAction:a(()=>Promise.resolve(),"beforeAddAction"),beforeUpdateAction:a(()=>Promise.resolve(),"beforeUpdateAction"),logger:{error:a(()=>{},"error")},onSubmitValueParser:a((e,t,r,n,o)=>ER(o),"onSubmitValueParser"),inputElement:a(()=>d.createElement("input",null),"inputElement"),textareaElement:a(()=>d.createElement("textarea",null),"textareaElement"),fallback:null};var{window:G$}=globalThis,Y$=R.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),wC=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),xC=R.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),TC=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),K$=R(Ne)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),X$=R(Dt.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),Z$={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},Q$=a(e=>{e.currentTarget.dispatchEvent(new G$.KeyboardEvent("keydown",Z$))},"dispatchEnterKey"),e6=a(e=>{e.currentTarget.select()},"selectValue"),t6=a(e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),"getCustomStyleFunction"),AC=a(({name:e,value:t,onChange:r,argType:n})=>{let o=Ut(),i=ve(()=>t&&bl(t),[t]),s=i!=null,[l,c]=J(!s),[u,p]=J(null),f=!!n?.table?.readonly,m=ne(E=>{try{E&&r(JSON.parse(E)),p(null)}catch(x){p(x)}},[r]),[g,b]=J(!1),y=ne(()=>{r({}),b(!0)},[b]),S=Q(null);if(q(()=>{g&&S.current&&S.current.select()},[g]),!s)return d.createElement(Kt,{disabled:f,id:Ji(e),onClick:y},"Set object");let v=d.createElement(X$,{ref:S,id:Gt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:E=>m(E.target.value),placeholder:"Edit JSON string...",autoFocus:g,valid:u?"error":void 0,readOnly:f}),w=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return d.createElement(Y$,{"aria-readonly":f},w&&d.createElement(K$,{role:"switch","aria-checked":l,"aria-label":`Edit the ${e} properties in text format`,onClick:E=>{E.preventDefault(),c(x=>!x)}},l?d.createElement(Rb,null):d.createElement(_b,null),d.createElement("span",null,"RAW")),l?v:d.createElement(wR,{readOnly:f||!w,isCollapsed:w?void 0:()=>!0,data:i,rootName:e,onFullyUpdate:r,getStyle:t6(o),cancelButtonElement:d.createElement(wC,{type:"button"},"Cancel"),addButtonElement:d.createElement(wC,{type:"submit",primary:!0},"Save"),plusMenuElement:d.createElement(xC,{type:"button"},d.createElement(js,null)),minusMenuElement:d.createElement(xC,{type:"button"},d.createElement(Wb,null)),inputElement:(E,x,A,_)=>_?d.createElement(TC,{onFocus:e6,onBlur:Q$}):d.createElement(TC,null),fallback:v}))},"ObjectControl"),r6=R.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
898
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
899
|
+
${bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
900
|
+
${bt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
901
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
902
|
+
${Rr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
903
|
+
${Rr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Mt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${bt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Mt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
904
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
905
|
+
${bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
906
|
+
${bt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
907
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
908
|
+
${Rr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
909
|
+
${Rr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Mt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${bt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
910
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
911
|
+
${bt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
912
|
+
${bt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
913
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
914
|
+
${Rr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
915
|
+
${Rr(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Mt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),xR=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),n6=R(xR)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),o6=R.div({display:"flex",alignItems:"center",width:"100%"});function TR(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}a(TR,"getNumberOfDecimalPlaces");var a6=a(({name:e,value:t,onChange:r,min:n=0,max:o=100,step:i=1,onBlur:s,onFocus:l,argType:c})=>{let u=a(g=>{r(g$(g.target.value))},"handleChange"),p=t!==void 0,f=ve(()=>TR(i),[i]),m=!!c?.table?.readonly;return d.createElement(o6,{"aria-readonly":m},d.createElement(xR,null,n),d.createElement(r6,{id:Gt(e),type:"range",disabled:m,onChange:u,name:e,min:n,max:o,step:i,onFocus:l,onBlur:s,value:t??n}),d.createElement(n6,{numberOFDecimalsPlaces:f,max:o},p?t.toFixed(f):"--"," / ",o))},"RangeControl"),i6=R.label({display:"flex"}),s6=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),l6=a(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:i,argType:s})=>{let l=a(g=>{r(g.target.value)},"handleChange"),c=!!s?.table?.readonly,[u,p]=J(!1),f=ne(()=>{r(""),p(!0)},[p]);if(t===void 0)return d.createElement(Kt,{variant:"outline",size:"medium",disabled:c,id:Ji(e),onClick:f},"Set string");let m=typeof t=="string";return d.createElement(i6,null,d.createElement(Dt.Textarea,{id:Gt(e),maxLength:i,onChange:l,disabled:c,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:m?void 0:"error",name:e,value:m?t:"",onFocus:n,onBlur:o}),i&&d.createElement(s6,{isMaxed:t?.length===i},t?.length??0," / ",i))},"TextControl"),c6=R(Dt.Input)({padding:10});function AR(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}a(AR,"revokeOldUrls");var u6=a(({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let i=Q(null),s=o?.control?.readOnly;function l(c){if(!c.target.files)return;let u=Array.from(c.target.files).map(p=>URL.createObjectURL(p));e(u),AR(n||[])}return a(l,"handleFileChange"),q(()=>{n==null&&i.current&&(i.current.value="")},[n,t]),d.createElement(c6,{ref:i,id:Gt(t),type:"file",name:t,multiple:!0,disabled:s,onChange:l,accept:r,size:"flex"})},"FilesControl"),d6=rn(()=>Promise.resolve().then(()=>(oC(),nC))),p6=a(e=>d.createElement(Rn,{fallback:d.createElement("div",null)},d.createElement(d6,{...e})),"ColorControl"),f6={array:AC,object:AC,boolean:l$,color:p6,date:m$,number:b$,check:ja,"inline-check":ja,radio:ja,"inline-radio":ja,select:ja,"multi-select":ja,range:a6,text:l6,file:u6},CC=a(()=>d.createElement(d.Fragment,null,"-"),"NoControl"),m6=a(({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:i}=e,[s,l]=J(!1),[c,u]=J({value:t});q(()=>{s||u({value:t})},[s,t]);let p=ne(y=>(u({value:y}),r({[o]:y}),y),[r,o]),f=ne(()=>l(!1),[]),m=ne(()=>l(!0),[]);if(!i||i.disable){let y=i?.disable!==!0&&e?.type?.name!=="function";return n&&y?d.createElement(Xt,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):d.createElement(CC,null)}let g={name:o,argType:e,value:c.value,onChange:p,onBlur:f,onFocus:m},b=f6[i.type]||CC;return d.createElement(b,{...g,...i,controlType:i.type})},"ArgControl"),h6=R.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:zn({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),g6=a(({tags:e})=>{let t=(e.params||[]).filter(i=>i.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:d.createElement(d.Fragment,null,d.createElement(h6,null,d.createElement("tbody",null,n&&d.createElement("tr",{key:"deprecated"},d.createElement("td",{colSpan:2},d.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(i=>d.createElement("tr",{key:i.name},d.createElement("td",null,d.createElement("code",null,i.name)),d.createElement("td",null,i.description))),o&&d.createElement("tr",{key:"returns"},d.createElement("td",null,d.createElement("code",null,"Returns")),d.createElement("td",null,e.returns?.description)))))},"ArgJsDoc"),y6=Se(or(),1),_h=8,RC=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),b6=R.span(zn,({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}})),v6=R.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),E6=R.div(zn,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),S6=R.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),w6=R(Tb)({marginLeft:4}),x6=R(Vs)({marginLeft:4}),T6=a(()=>d.createElement("span",null,"-"),"EmptyArg"),CR=a(({text:e,simple:t})=>d.createElement(b6,{simple:t},e),"ArgText"),A6=(0,y6.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),C6=a(e=>{if(!e)return[e];let r=e.split("|").map(n=>n.trim());return Hm(r)},"getSummaryItems"),_C=a((e,t=!0)=>{let r=e;return t||(r=e.slice(0,_h)),r.map(n=>d.createElement(CR,{key:n,text:n===""?'""':n}))},"renderSummaryItems"),R6=a(({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,i]=J(!1),[s,l]=J(t||!1);if(r==null)return null;let c=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(c))return d.createElement(CR,{text:c});let p=C6(c),f=p.length;return f>_h?d.createElement(RC,{isExpanded:s},_C(p,s),d.createElement(v6,{onClick:()=>l(!s)},s?"Show less...":`Show ${f-_h} more...`)):d.createElement(RC,null,_C(p))}return d.createElement(Xm,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{i(u)},tooltip:d.createElement(S6,{width:A6(n)},d.createElement(Xi,{language:"jsx",format:!1},n))},d.createElement(E6,{className:"sbdocs-expandable"},d.createElement("span",null,c),o?d.createElement(w6,null):d.createElement(x6,null)))},"ArgSummary"),ph=a(({value:e,initialExpandedArgs:t})=>e==null?d.createElement(T6,null):d.createElement(R6,{value:e,initialExpandedArgs:t}),"ArgValue"),_6=R.span({fontWeight:"bold"}),O6=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),I6=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...zn({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),P6=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ye(.1,e.color.defaultText):ye(.2,e.color.defaultText),marginTop:t?4:0})),k6=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ye(.1,e.color.defaultText):ye(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),D6=R.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),N6=a(e=>e&&{summary:typeof e=="string"?e:e.name},"toSummary"),Kc=a(e=>{let[t,r]=J(!1),{row:n,updateArgs:o,compact:i,expandable:s,initialExpandedArgs:l}=e,{name:c,description:u}=n,p=n.table||{},f=p.type||N6(n.type),m=p.defaultValue||n.defaultValue,g=n.type?.required,b=u!=null&&u!=="";return d.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},d.createElement(D6,{expandable:s??!1},d.createElement(_6,null,c),g?d.createElement(O6,{title:"Required"},"*"):null),i?null:d.createElement("td",null,b&&d.createElement(I6,null,d.createElement(a$,null,u)),p.jsDocTags!=null?d.createElement(d.Fragment,null,d.createElement(k6,{hasDescription:b},d.createElement(ph,{value:f,initialExpandedArgs:l})),d.createElement(g6,{tags:p.jsDocTags})):d.createElement(P6,{hasDescription:b},d.createElement(ph,{value:f,initialExpandedArgs:l}))),i?null:d.createElement("td",null,d.createElement(ph,{value:m,initialExpandedArgs:l})),o?d.createElement("td",null,d.createElement(m6,{...e,isHovered:t})):null)},"ArgRow"),F6=R.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})),L6=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),M6=a(({inAddonPanel:e})=>{let[t,r]=J(!0);return q(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:d.createElement(F6,{inAddonPanel:e},d.createElement(Ki,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:d.createElement(d.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:d.createElement(L6,null,e&&d.createElement(d.Fragment,null,d.createElement(Xt,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},d.createElement(co,null)," Read docs")),!e&&d.createElement(Xt,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},d.createElement(co,null)," Learn how to set that up"))}))},"Empty"),B6=R(zs)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ye(.25,e.color.defaultText):ye(.3,e.color.defaultText),border:"none",display:"inline-block"})),$6=R(Hs)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?ye(.25,e.color.defaultText):ye(.3,e.color.defaultText),border:"none",display:"inline-block"})),j6=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),U6=R.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"?ye(.4,e.color.defaultText):ye(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),z6=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),H6=R.td({position:"relative"}),V6=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Rr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),OC=R.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"}),fh=a(({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[i,s]=J(n),l=e==="subsection"?z6:U6,c=r?.length||0,u=e==="subsection"?`${c} item${c!==1?"s":""}`:"",p=`${i?"Hide":"Show"} ${e==="subsection"?c:t} item${c!==1?"s":""}`;return d.createElement(d.Fragment,null,d.createElement(V6,{title:p},d.createElement(l,{colSpan:1},d.createElement(OC,{onClick:f=>s(!i),tabIndex:0},p),d.createElement(j6,null,i?d.createElement(B6,null):d.createElement($6,null),t)),d.createElement(H6,{colSpan:o-1},d.createElement(OC,{onClick:f=>s(!i),tabIndex:-1,style:{outline:"none"}},p),i?null:u)),i?r:null)},"SectionRow"),W6=R.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Xc=R.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),Nt=R.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}}}),ht=R.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})),J6=a(()=>d.createElement(W6,null,d.createElement(Xc,null,d.createElement(Nt,{position:"first"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"second"},d.createElement(ht,{width:"30%"})),d.createElement(Nt,{position:"third"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"last"},d.createElement(ht,{width:"60%"}))),d.createElement(Xc,null,d.createElement(Nt,{position:"first"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"second"},d.createElement(ht,{width:"80%"}),d.createElement(ht,{width:"30%"})),d.createElement(Nt,{position:"third"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"last"},d.createElement(ht,{width:"60%"}))),d.createElement(Xc,null,d.createElement(Nt,{position:"first"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"second"},d.createElement(ht,{width:"80%"}),d.createElement(ht,{width:"30%"})),d.createElement(Nt,{position:"third"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"last"},d.createElement(ht,{width:"60%"}))),d.createElement(Xc,null,d.createElement(Nt,{position:"first"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"second"},d.createElement(ht,{width:"80%"}),d.createElement(ht,{width:"30%"})),d.createElement(Nt,{position:"third"},d.createElement(ht,{width:"60%"})),d.createElement(Nt,{position:"last"},d.createElement(ht,{width:"60%"})))),"Skeleton"),q6=R.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",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.base==="light"?ye(.25,e.color.defaultText):ye(.45,e.color.defaultText),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}},marginLeft:r?0:1,marginRight:r?0:1,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}}}}})),G6=R.div({position:"relative"}),Y6=R.div({position:"absolute",right:8,top:6}),K6={alpha:a((e,t)=>(e.name??"").localeCompare(t.name??""),"alpha"),requiredFirst:a((e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),"requiredFirst"),none:null},X6=a((e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([s,l])=>{let{category:c,subcategory:u}=l?.table||{};if(c){let p=r.sections[c]||{ungrouped:[],subsections:{}};if(!u)p.ungrouped.push({key:s,...l});else{let f=p.subsections[u]||[];f.push({key:s,...l}),p.subsections[u]=f}r.sections[c]=p}else if(u){let p=r.ungroupedSubsections[u]||[];p.push({key:s,...l}),r.ungroupedSubsections[u]=p}else r.ungrouped.push({key:s,...l})});let n=K6[t],o=a(s=>n?Object.keys(s).reduce((l,c)=>({...l,[c]:s[c].sort(n)}),{}):s,"sortSubsection");return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((s,l)=>({...s,[l]:{ungrouped:n?r.sections[l].ungrouped.sort(n):r.sections[l].ungrouped,subsections:o(r.sections[l].subsections)}}),{})}},"groupRows"),Z6=a((e,t,r)=>{try{return Vl(e,t,r)}catch(n){return br.warn(n.message),!1}},"safeIncludeConditionalArg"),Q6=a(e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:i,sort:s="none",isLoading:l}=e;if("error"in e){let{error:w}=e;return d.createElement(WC,null,w,"\xA0",d.createElement(Xt,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},d.createElement(co,null)," Read the docs"))}if(l)return d.createElement(J6,null);let{rows:c,args:u,globals:p}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},f=X6(mi(c||{},w=>!w?.table?.disable&&Z6(w,u||{},p||{})),s),m=f.ungrouped.length===0,g=Object.entries(f.sections).length===0,b=Object.entries(f.ungroupedSubsections).length===0;if(m&&g&&b)return d.createElement(M6,{inAddonPanel:o});let y=1;t&&(y+=1),n||(y+=2);let S=Object.keys(f.sections).length>0,v={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:i};return d.createElement(Gm,null,d.createElement(G6,null,t&&!l&&r&&d.createElement(Y6,null,d.createElement(Ne,{onClick:()=>r(),"aria-label":"Reset controls",title:"Reset controls"},d.createElement(qs,null))),d.createElement(q6,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},d.createElement("thead",{className:"docblock-argstable-head"},d.createElement("tr",null,d.createElement("th",null,d.createElement("span",null,"Name")),n?null:d.createElement("th",null,d.createElement("span",null,"Description")),n?null:d.createElement("th",null,d.createElement("span",null,"Default")),t?d.createElement("th",null,d.createElement("span",null,"Control")):null)),d.createElement("tbody",{className:"docblock-argstable-body"},f.ungrouped.map(w=>d.createElement(Kc,{key:w.key,row:w,arg:u&&u[w.key],...v})),Object.entries(f.ungroupedSubsections).map(([w,E])=>d.createElement(fh,{key:w,label:w,level:"subsection",colSpan:y},E.map(x=>d.createElement(Kc,{key:x.key,row:x,arg:u&&u[x.key],expandable:S,...v})))),Object.entries(f.sections).map(([w,E])=>d.createElement(fh,{key:w,label:w,level:"section",colSpan:y},E.ungrouped.map(x=>d.createElement(Kc,{key:x.key,row:x,arg:u&&u[x.key],...v})),Object.entries(E.subsections).map(([x,A])=>d.createElement(fh,{key:x,label:x,level:"subsection",colSpan:y},A.map(_=>d.createElement(Kc,{key:_.key,row:_,arg:u&&u[_.key],expandable:S,...v}))))))))))},"ArgsTable"),Oh="addon-controls",RR="controls",ej=rr({from:{transform:"translateY(40px)"},to:{transform:"translateY(0)"}}),tj=rr({from:{background:"var(--highlight-bg-color)"},to:{}}),rj=R.div({containerType:"size",position:"sticky",bottom:0,height:39,overflow:"hidden",zIndex:1}),nj=R(Yi)(({theme:e})=>({"--highlight-bg-color":e.base==="dark"?"#153B5B":"#E0F0FF",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:6,padding:"6px 10px",animation:`${ej} 300ms, ${tj} 2s`,background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,fontSize:e.typography.size.s2,"@container (max-width: 799px)":{flexDirection:"row",justifyContent:"flex-end"}})),oj=R.div({display:"flex",flex:"99 0 auto",alignItems:"center",marginLeft:10,gap:6}),aj=R.div(({theme:e})=>({display:"flex",flex:"1 0 0",alignItems:"center",gap:2,color:e.color.mediumdark,fontSize:e.typography.size.s2})),mh=R.div({"@container (max-width: 799px)":{lineHeight:0,textIndent:"-9999px","&::after":{content:"attr(data-short-label)",display:"block",lineHeight:"initial",textIndent:"0"}}}),ij=R(Dt.Input)(({theme:e})=>({"::placeholder":{color:e.color.mediumdark},"&:invalid:not(:placeholder-shown)":{boxShadow:`${e.color.negative} 0 0 0 1px inset`}})),sj=a(({saveStory:e,createStory:t,resetArgs:r,portalSelector:n})=>{let o=d.useRef(null),[i,s]=d.useState(!1),[l,c]=d.useState(!1),[u,p]=d.useState(""),[f,m]=d.useState(null),g=a(async()=>{i||(s(!0),await e().catch(()=>{}),s(!1))},"onSaveStory"),b=a(()=>{c(!0),p(""),setTimeout(()=>o.current?.focus(),0)},"onShowForm"),y=a(v=>{let w=v.target.value.replace(/^[^a-z]/i,"").replace(/[^a-z0-9-_ ]/gi,"").replaceAll(/([-_ ]+[a-z0-9])/gi,E=>E.toUpperCase().replace(/[-_ ]/g,""));p(w.charAt(0).toUpperCase()+w.slice(1))},"onChange"),S=a(async v=>{if(v.preventDefault(),!i)try{m(null),s(!0),await t(u.replace(/^[^a-z]/i,"").replaceAll(/[^a-z0-9]/gi,"")),c(!1),s(!1)}catch(w){m(w.message),s(!1)}},"onSubmitForm");return d.createElement(rj,{id:"save-from-controls"},d.createElement(nj,null,d.createElement(aj,null,d.createElement(nt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:d.createElement(Dr,{note:"Save changes to story"})},d.createElement(Ne,{"aria-label":"Save changes to story",disabled:i,onClick:g},d.createElement(Us,null),d.createElement(mh,{"data-short-label":"Save"},"Update story"))),d.createElement(nt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:d.createElement(Dr,{note:"Create new story with these settings"})},d.createElement(Ne,{"aria-label":"Create new story with these settings",onClick:b},d.createElement(js,null),d.createElement(mh,{"data-short-label":"New"},"Create new story"))),d.createElement(nt,{as:"div",hasChrome:!1,trigger:"hover",tooltip:d.createElement(Dr,{note:"Reset changes"})},d.createElement(Ne,{"aria-label":"Reset changes",onClick:()=>r()},d.createElement(qs,null),d.createElement("span",null,"Reset")))),d.createElement(oj,null,d.createElement(mh,{"data-short-label":"Unsaved changes"},"You modified this story. Do you want to save your changes?")),d.createElement(Vr,{width:350,open:l,onOpenChange:c,portalSelector:n},d.createElement(Dt,{onSubmit:S,id:"create-new-story-form"},d.createElement(Vr.Content,null,d.createElement(Vr.Header,null,d.createElement(Vr.Title,null,"Create new story"),d.createElement(Vr.Description,null,"This will add a new story to your existing stories file.")),d.createElement(ij,{onChange:y,placeholder:"Story export name",readOnly:i,ref:o,value:u}),d.createElement(Vr.Actions,null,d.createElement(Kt,{disabled:i||!u,size:"medium",type:"submit",variant:"solid"},"Create"),d.createElement(Vr.Dialog.Close,{asChild:!0},d.createElement(Kt,{disabled:i,size:"medium",type:"reset"},"Cancel"))))),f&&d.createElement(Vr.Error,null,f))))},"SaveStory"),IC=a(e=>Object.entries(e).reduce((t,[r,n])=>n!==void 0?Object.assign(t,{[r]:n}):t,{}),"clean"),lj=R.div({display:"grid",gridTemplateRows:"1fr 39px",height:"100%",maxHeight:"100vh",overflowY:"auto"}),cj=a(({saveStory:e,createStory:t})=>{let r=St(),[n,o]=J(!0),[i,s,l,c]=PA(),[u]=Hr(),p=jc(),{expanded:f,sort:m,presetColors:g,disableSaveFromUI:b=!1}=Un(RR,{}),{path:y,previewInitialized:S}=zc(),v=r.getCurrentStoryData();q(()=>{S&&o(!1)},[S]);let w=Object.values(p).some(A=>A?.control),E=Object.entries(p).reduce((A,[_,C])=>{let O=C?.control;return typeof O!="object"||O?.type!=="color"||O?.presetColors?A[_]=C:A[_]={...C,control:{...O,presetColors:g}},A},{}),x=ve(()=>!!i&&!!c&&!wn(IC(i),IC(c)),[i,c]);return d.createElement(lj,null,d.createElement(Q6,{key:y,compact:!f&&w,rows:E,args:i,globals:u,updateArgs:s,resetArgs:l,inAddonPanel:!0,sort:m,isLoading:n}),w&&v.type==="story"&&v.subtype!=="test"&&x&&oe.CONFIG_TYPE==="DEVELOPMENT"&&b!==!0&&d.createElement(sj,{resetArgs:l,saveStory:e,createStory:t}))},"ControlsPanel");function _R(){let t=St().getSelectedPanel(),r=jc(),n=Object.values(r).filter(i=>i?.control&&!i?.table?.disable).length,o=n===0?null:d.createElement(ko,{compact:!0,status:t===Oh?"active":"neutral"},n);return d.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},d.createElement("span",null,"Controls"),o)}a(_R,"Title");var PC=a(e=>JSON.stringify(e,(t,r)=>typeof r=="function"?"__sb_empty_function_arg__":r),"stringifyArgs"),Jle=Je.register(Oh,e=>{if(globalThis?.FEATURES?.controls){let t=Je.getChannel(),r=a(async()=>{let o=e.getCurrentStoryData();if(o.type!=="story")throw new Error("Not a story");try{let i=await Wm(t,Hd,Rl,{args:PC(Object.entries(o.args||{}).reduce((s,[l,c])=>(wn(c,o.initialArgs?.[l])||(s[l]=c),s),{})),csfId:o.id,importPath:o.importPath});e.addNotification({id:"save-story-success",icon:d.createElement(od,{color:yt.positive}),content:{headline:"Story saved",subHeadline:d.createElement(d.Fragment,null,"Updated story ",d.createElement("b",null,i.sourceStoryName),".")},duration:8e3})}catch(i){throw e.addNotification({id:"save-story-error",icon:d.createElement(Ob,{color:yt.negative}),content:{headline:"Failed to save story",subHeadline:i?.message||"Check the Storybook process on the command line for more details."},duration:8e3}),i}},"saveStory"),n=a(async o=>{let i=e.getCurrentStoryData();if(i.type!=="story")throw new Error("Not a story");let s=await Wm(t,Hd,Rl,{args:i.args&&PC(i.args),csfId:i.id,importPath:i.importPath,name:o});e.addNotification({id:"save-story-success",icon:d.createElement(od,{color:yt.positive}),content:{headline:"Story created",subHeadline:d.createElement(d.Fragment,null,"Added story ",d.createElement("b",null,s.newStoryName)," based on ",d.createElement("b",null,s.sourceStoryName),".")},duration:8e3,onClick:a(({onDismiss:l})=>{l(),e.selectStory(s.newStoryId)},"onClick")})},"createStory");Je.add(Oh,{title:_R,type:Yt.PANEL,paramKey:RR,render:a(({active:o})=>!o||!e.getCurrentStoryData()?null:d.createElement(Gi,{active:o},d.createElement(cj,{saveStory:r,createStory:n})),"render")}),t.on(Rl,o=>{if(!o.success)return;let i=e.getCurrentStoryData();i.type==="story"&&(e.resetStoryArgs(i),o.payload.newStoryId&&e.selectStory(o.payload.newStoryId))})}});function OR(){let t=St().getSelectedPanel(),[{count:r},n]=Ma(ga,{count:0});Uc({[ya]:()=>{n(i=>({...i,count:i.count+1}))},[go]:()=>{n(i=>({...i,count:0}))},[_p]:()=>{n(i=>({...i,count:0}))}});let o=r===0?null:d.createElement(ko,{compact:!0,status:t===Rp?"active":"neutral"},r);return d.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},d.createElement("span",null,"Actions"),o)}a(OR,"Title");var uj=Object.create,qh=Object.defineProperty,dj=Object.getOwnPropertyDescriptor,IR=Object.getOwnPropertyNames,pj=Object.getPrototypeOf,fj=Object.prototype.hasOwnProperty,Gh=a((e,t)=>a(function(){return t||(0,e[IR(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),mj=a((e,t)=>{for(var r in t)qh(e,r,{get:t[r],enumerable:!0})},"__export"),hj=a((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of IR(t))!fj.call(e,o)&&o!==r&&qh(e,o,{get:a(()=>t[o],"get"),enumerable:!(n=dj(t,o))||n.enumerable});return e},"__copyProps"),gj=a((e,t,r)=>(r=e!=null?uj(pj(e)):{},hj(t||!e||!e.__esModule?qh(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),yj=Gh({"node_modules/is-object/index.js"(e,t){"use strict";t.exports=a(function(n){return typeof n=="object"&&n!==null},"isObject")}}),bj=Gh({"node_modules/is-window/index.js"(e,t){"use strict";t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),vj=Gh({"node_modules/is-dom/index.js"(e,t){var r=yj(),n=bj();function o(i){return!r(i)||!n(window)||typeof window.Node!="function"?!1:typeof i.nodeType=="number"&&typeof i.nodeName=="string"}a(o,"isNode"),t.exports=o}}),ou={};mj(ou,{chromeDark:a(()=>Ej,"chromeDark"),chromeLight:a(()=>Sj,"chromeLight")});var Ej={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},Sj={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},PR=Ve([{},()=>{}]),hh={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},nu=a(e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...hh},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...hh},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...hh}}),"createTheme"),Ih="chromeLight",kR=Ve(nu(ou[Ih])),sr=a(e=>Ct(kR)[e],"useStyles"),Yh=a(e=>a(({theme:r=Ih,...n})=>{let o=ve(()=>{switch(Object.prototype.toString.call(r)){case"[object String]":return nu(ou[r]);case"[object Object]":return nu(r);default:return nu(ou[Ih])}},[r]);return d.createElement(kR.Provider,{value:o},d.createElement(e,{...n}))},"ThemeAcceptor"),"themeAcceptor"),wj=a(({expanded:e,styles:t})=>d.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"\u25B6"),"Arrow"),xj=At(e=>{e={expanded:!0,nodeRenderer:a(({name:p})=>d.createElement("span",null,p),"nodeRenderer"),onClick:a(()=>{},"onClick"),shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};let{expanded:t,onClick:r,children:n,nodeRenderer:o,title:i,shouldShowArrow:s,shouldShowPlaceholder:l}=e,c=sr("TreeNode"),u=o;return d.createElement("li",{"aria-expanded":t,role:"treeitem",style:c.treeNodeBase,title:i},d.createElement("div",{style:c.treeNodePreviewContainer,onClick:r},s||Ae.count(n)>0?d.createElement(wj,{expanded:t,styles:c.treeNodeArrow}):l&&d.createElement("span",{style:c.treeNodePlaceholder},"\xA0"),d.createElement(u,{...e})),d.createElement("ol",{role:"group",style:c.treeNodeChildNodesContainer},t?n:void 0))}),au="$",kC="*";function as(e,t){return!t(e).next().done}a(as,"hasChildNodes");var Tj=a(e=>Array.from({length:e},(t,r)=>[au].concat(Array.from({length:r},()=>"*")).join(".")),"wildcardPathsFromLevel"),Aj=a((e,t,r,n,o)=>{let i=[].concat(Tj(n)).concat(r).filter(l=>typeof l=="string"),s=[];return i.forEach(l=>{let c=l.split("."),u=a((p,f,m)=>{if(m===c.length){s.push(f);return}let g=c[m];if(m===0)as(p,t)&&(g===au||g===kC)&&u(p,au,m+1);else if(g===kC)for(let{name:b,data:y}of t(p))as(y,t)&&u(y,`${f}.${b}`,m+1);else{let b=p[g];as(b,t)&&u(b,`${f}.${g}`,m+1)}},"populatePaths");u(e,"",0)}),s.reduce((l,c)=>(l[c]=!0,l),{...o})},"getExpandedPaths"),DR=At(e=>{let{data:t,dataIterator:r,path:n,depth:o,nodeRenderer:i}=e,[s,l]=Ct(PR),c=as(t,r),u=!!s[n],p=ne(()=>c&&l(f=>({...f,[n]:!u})),[c,l,n,u]);return d.createElement(xj,{expanded:u,onClick:p,shouldShowArrow:c,shouldShowPlaceholder:o>0,nodeRenderer:i,...e},u?[...r(t)].map(({name:f,data:m,...g})=>d.createElement(DR,{name:f,data:m,depth:o+1,path:`${n}.${f}`,key:f,dataIterator:r,nodeRenderer:i,...g})):null)}),NR=At(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:o,expandLevel:i})=>{let s=sr("TreeView"),l=J({}),[,c]=l;return it(()=>c(u=>Aj(t,r,o,i,u)),[t,r,o,i]),d.createElement(PR.Provider,{value:l},d.createElement("ol",{role:"tree",style:s.treeViewOutline},d.createElement(DR,{name:e,data:t,dataIterator:r,depth:0,path:au,nodeRenderer:n})))}),Kh=a(({name:e,dimmed:t=!1,styles:r={}})=>{let n=sr("ObjectName"),o={...n.base,...t?n.dimmed:{},...r};return d.createElement("span",{style:o},e)},"ObjectName"),is=a(({object:e,styles:t})=>{let r=sr("ObjectValue"),n=a(o=>({...r[o],...t}),"mkStyle");switch(typeof e){case"bigint":return d.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return d.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return d.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return d.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return d.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?d.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?d.createElement("span",null,e.toString()):e instanceof RegExp?d.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?d.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?d.createElement("span",null,`Buffer[${e.length}]`):d.createElement("span",null,e.constructor.name):d.createElement("span",null,"Object");case"function":return d.createElement("span",null,d.createElement("span",{style:n("objectValueFunctionPrefix")},"\u0192\xA0"),d.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return d.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return d.createElement("span",null)}},"ObjectValue"),FR=Object.prototype.hasOwnProperty,Cj=Object.prototype.propertyIsEnumerable;function iu(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}a(iu,"getPropertyValue");function Ph(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}a(Ph,"intersperse");var kh=a(({data:e})=>{let t=sr("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return d.createElement(is,{object:r});if(Array.isArray(r)){let n=t.arrayMaxProperties,o=r.slice(0,n).map((s,l)=>d.createElement(is,{key:l,object:s}));r.length>n&&o.push(d.createElement("span",{key:"ellipsis"},"\u2026"));let i=r.length;return d.createElement(d.Fragment,null,d.createElement("span",{style:t.objectDescription},i===0?"":`(${i})\xA0`),d.createElement("span",{style:t.preview},"[",Ph(o,", "),"]"))}else{let n=t.objectMaxProperties,o=[];for(let s in r)if(FR.call(r,s)){let l;o.length===n-1&&Object.keys(r).length>n&&(l=d.createElement("span",{key:"ellipsis"},"\u2026"));let c=iu(r,s);if(o.push(d.createElement("span",{key:s},d.createElement(Kh,{name:s||'""'}),":\xA0",d.createElement(is,{object:c}),l)),l)break}let i=r.constructor?r.constructor.name:"Object";return d.createElement(d.Fragment,null,d.createElement("span",{style:t.objectDescription},i==="Object"?"":`${i} `),d.createElement("span",{style:t.preview},"{",Ph(o,", "),"}"))}},"ObjectPreview"),Rj=a(({name:e,data:t})=>typeof e=="string"?d.createElement("span",null,d.createElement(Kh,{name:e}),d.createElement("span",null,": "),d.createElement(kh,{data:t})):d.createElement(kh,{data:t}),"ObjectRootLabel"),_j=a(({name:e,data:t,isNonenumerable:r=!1})=>{let n=t;return d.createElement("span",null,typeof e=="string"?d.createElement(Kh,{name:e,dimmed:r}):d.createElement(kh,{data:e}),d.createElement("span",null,": "),d.createElement(is,{object:n}))},"ObjectLabel"),Oj=a((e,t)=>a(function*(n){if(!(typeof n=="object"&&n!==null||typeof n=="function"))return;let i=Array.isArray(n);if(!i&&n[Symbol.iterator]){let s=0;for(let l of n){if(Array.isArray(l)&&l.length===2){let[c,u]=l;yield{name:c,data:u}}else yield{name:s.toString(),data:l};s++}}else{let s=Object.getOwnPropertyNames(n);t===!0&&!i?s.sort():typeof t=="function"&&s.sort(t);for(let l of s)if(Cj.call(n,l)){let c=iu(n,l);yield{name:l||'""',data:c}}else if(e){let c;try{c=iu(n,l)}catch{}c!==void 0&&(yield{name:l,data:c,isNonenumerable:!0})}e&&n!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(n),isNonenumerable:!0})}},"objectIterator"),"createIterator"),Ij=a(({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?d.createElement(Rj,{name:t,data:r}):d.createElement(_j,{name:t,data:r,isNonenumerable:n}),"defaultNodeRenderer"),Pj=a(({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{let o=Oj(e,t),i=r||Ij;return d.createElement(NR,{nodeRenderer:i,dataIterator:o,...n})},"ObjectInspector"),kj=Yh(Pj);function LR(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){let n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));let r=t.reduce((n,o)=>{let i=e[o];return typeof i=="object"&&i!==null&&Object.keys(i).reduce((l,c)=>(l.includes(c)||l.push(c),l),n),n},[]);return{rowHeaders:t,colHeaders:r}}}a(LR,"getHeaders");var Dj=a(({rows:e,columns:t,rowsData:r})=>{let n=sr("TableInspectorDataContainer"),o=sr("TableInspectorLeftBorder");return d.createElement("div",{style:n.div},d.createElement("table",{style:n.table},d.createElement("colgroup",null),d.createElement("tbody",null,e.map((i,s)=>d.createElement("tr",{key:i,style:n.tr},d.createElement("td",{style:{...n.td,...o.none}},i),t.map(l=>{let c=r[s];return typeof c=="object"&&c!==null&&FR.call(c,l)?d.createElement("td",{key:l,style:{...n.td,...o.solid}},d.createElement(is,{object:c[l]})):d.createElement("td",{key:l,style:{...n.td,...o.solid}})}))))))},"DataContainer"),Nj=a(e=>d.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),"SortIconContainer"),Fj=a(({sortAscending:e})=>{let t=sr("TableInspectorSortIcon"),r=e?"\u25B2":"\u25BC";return d.createElement("div",{style:t},r)},"SortIcon"),DC=a(({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:o,...i})=>{let s=sr("TableInspectorTH"),[l,c]=J(!1),u=ne(()=>c(!0),[]),p=ne(()=>c(!1),[]);return d.createElement("th",{...i,style:{...s.base,...n,...l?s.base[":hover"]:{}},onMouseEnter:u,onMouseLeave:p,onClick:r},d.createElement("div",{style:s.div},o),t&&d.createElement(Nj,null,d.createElement(Fj,{sortAscending:e})))},"TH"),Lj=a(({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:o,sortAscending:i,onTHClick:s,onIndexTHClick:l})=>{let c=sr("TableInspectorHeaderContainer"),u=sr("TableInspectorLeftBorder");return d.createElement("div",{style:c.base},d.createElement("table",{style:c.table},d.createElement("tbody",null,d.createElement("tr",null,d.createElement(DC,{borderStyle:u.none,sorted:r&&n,sortAscending:i,onClick:l},e),t.map(p=>d.createElement(DC,{borderStyle:u.solid,key:p,sorted:r&&o===p,sortAscending:i,onClick:s.bind(null,p)},p))))))},"HeaderContainer"),Mj=a(({data:e,columns:t})=>{let r=sr("TableInspector"),[{sorted:n,sortIndexColumn:o,sortColumn:i,sortAscending:s},l]=J({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),c=ne(()=>{l(({sortIndexColumn:b,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:b?!y:!0}))},[]),u=ne(b=>{l(({sortColumn:y,sortAscending:S})=>({sorted:!0,sortIndexColumn:!1,sortColumn:b,sortAscending:b===y?!S:!0}))},[]);if(typeof e!="object"||e===null)return d.createElement("div",null);let{rowHeaders:p,colHeaders:f}=LR(e);t!==void 0&&(f=t);let m=p.map(b=>e[b]),g;if(i!==void 0?g=m.map((b,y)=>typeof b=="object"&&b!==null?[b[i],y]:[void 0,y]):o&&(g=p.map((b,y)=>[p[y],y])),g!==void 0){let b=a((S,v)=>(w,E)=>{let x=S(w),A=S(E),_=typeof x,C=typeof A,O=a((P,D)=>P<D?-1:P>D?1:0,"lt"),I;if(_===C)I=O(x,A);else{let P={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};I=O(P[_],P[C])}return v||(I=-I),I},"comparator"),y=g.sort(b(S=>S[0],s)).map(S=>S[1]);p=y.map(S=>p[S]),m=y.map(S=>m[S])}return d.createElement("div",{style:r.base},d.createElement(Lj,{columns:f,sorted:n,sortIndexColumn:o,sortColumn:i,sortAscending:s,onTHClick:u,onIndexTHClick:c}),d.createElement(Dj,{rows:p,columns:f,rowsData:m}))},"TableInspector"),Bj=Yh(Mj),$j=80,MR=a(e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.length<$j,"shouldInline"),jj=a(({tagName:e,attributes:t,styles:r})=>d.createElement("span",{style:r.base},"<",d.createElement("span",{style:r.tagName},e),(()=>{if(t){let n=[];for(let o=0;o<t.length;o++){let i=t[o];n.push(d.createElement("span",{key:o}," ",d.createElement("span",{style:r.htmlAttributeName},i.name),'="',d.createElement("span",{style:r.htmlAttributeValue},i.value),'"'))}return n}})(),">"),"OpenTag"),NC=a(({tagName:e,isChildNode:t=!1,styles:r})=>d.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},"</",d.createElement("span",{style:r.tagName},e),">"),"CloseTag"),Uj={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},zj=a(({isCloseTag:e,data:t,expanded:r})=>{let n=sr("DOMNodePreview");if(e)return d.createElement(NC,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return d.createElement("span",null,d.createElement(jj,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),MR(t)?t.textContent:!r&&"\u2026",!r&&d.createElement(NC,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return d.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return d.createElement("span",null,"<![CDATA["+t.textContent+"]]>");case Node.COMMENT_NODE:return d.createElement("span",{style:n.htmlComment},"<!--",t.textContent,"-->");case Node.PROCESSING_INSTRUCTION_NODE:return d.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return d.createElement("span",{style:n.htmlDoctype},"<!DOCTYPE ",t.name,t.publicId?` PUBLIC "${t.publicId}"`:"",!t.publicId&&t.systemId?" SYSTEM":"",t.systemId?` "${t.systemId}"`:"",">");case Node.DOCUMENT_NODE:return d.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return d.createElement("span",null,t.nodeName);default:return d.createElement("span",null,Uj[t.nodeType])}},"DOMNodePreview"),Hj=a(function*(e){if(e&&e.childNodes){if(MR(e))return;for(let r=0;r<e.childNodes.length;r++){let n=e.childNodes[r];n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length===0||(yield{name:`${n.tagName}[${r}]`,data:n})}e.tagName&&(yield{name:"CLOSE_TAG",data:{tagName:e.tagName},isCloseTag:!0})}},"domIterator"),Vj=a(e=>d.createElement(NR,{nodeRenderer:zj,dataIterator:Hj,...e}),"DOMInspector"),Wj=Yh(Vj),Jj=gj(vj()),qj=a(({table:e=!1,data:t,...r})=>e?d.createElement(Bj,{data:t,...r}):(0,Jj.default)(t)?d.createElement(Wj,{data:t,...r}):d.createElement(kj,{data:t,...r}),"Inspector"),Gj=R.div({display:"flex",padding:0,borderLeft:"5px solid transparent",borderBottom:"1px solid transparent",transition:"all 0.1s",alignItems:"flex-start",whiteSpace:"pre"}),Yj=R.div(({theme:e})=>({backgroundColor:Qo(.5,e.appBorderColor),color:e.color.inverseText,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:1,padding:"1px 5px",borderRadius:20,margin:"2px 0px"})),Kj=R.div({flex:1,padding:"0 0 0 5px"}),BR=se(({children:e,className:t},r)=>d.createElement(Ym,{ref:r,horizontal:!0,vertical:!0,className:t},e));BR.displayName="UnstyledWrapped";var Xj=R(BR)({margin:0,padding:"10px 5px 20px"}),Zj=Eg(({theme:e,...t})=>d.createElement(qj,{theme:e.addonActionsTheme||"chromeLight",table:!1,...t})),Qj=a(({actions:e,onClear:t})=>{let r=Q(null),n=r.current,o=n&&n.scrollHeight-n.scrollTop===n.clientHeight;return q(()=>{o&&(r.current.scrollTop=r.current.scrollHeight)},[o,e.length]),d.createElement(Pe,null,d.createElement(Xj,{ref:r},e.map(i=>d.createElement(Gj,{key:i.id},i.count>1&&d.createElement(Yj,null,i.count),d.createElement(Kj,null,d.createElement(Zj,{sortObjectKeys:!0,showNonenumerable:!1,name:i.data.name,data:i.data.args??i.data}))))),d.createElement(qi,{actionItems:[{title:"Clear",onClick:t}]}))},"ActionLogger"),e8=a((e,t)=>{try{return wn(e,t)}catch{return!1}},"safeDeepEqual"),$R=class extends Tt{constructor(t){super(t),this.handleStoryChange=a(()=>{let{actions:r}=this.state;r.length>0&&r[0].options.clearOnStoryChange&&this.clearActions()},"handleStoryChange"),this.addAction=a(r=>{this.setState(n=>{let o=[...n.actions],i=o.length&&o[o.length-1];return i&&e8(i.data,r.data)?i.count++:(r.count=1,o.push(r)),{actions:o.slice(0,r.options.limit)}})},"addAction"),this.clearActions=a(()=>{let{api:r}=this.props;r.emit(_p),this.setState({actions:[]})},"clearActions"),this.mounted=!1,this.state={actions:[]}}componentDidMount(){this.mounted=!0;let{api:t}=this.props;t.on(ya,this.addAction),t.on(go,this.handleStoryChange)}componentWillUnmount(){this.mounted=!1;let{api:t}=this.props;t.off(go,this.handleStoryChange),t.off(ya,this.addAction)}render(){let{actions:t=[]}=this.state,{active:r}=this.props,n={actions:t,onClear:this.clearActions};return r?d.createElement(Qj,{...n}):null}};a($R,"ActionLogger");var t8=$R,xce=Je.register(ga,e=>{globalThis?.FEATURES?.actions&&Je.add(Rp,{title:OR,type:Yt.PANEL,render:a(({active:t})=>d.createElement(t8,{api:e,active:!!t}),"render"),paramKey:g1})}),fu="storybook/interactions",Xh=`${fu}/panel`,r8="writing-tests/integrations/vitest-addon",n8=`${r8}#what-happens-when-there-are-different-test-results-in-multiple-environments`,o8="writing-stories/play-function#writing-stories-with-the-play-function",qr="internal_render_call",Gn="storybook/a11y",Pce=`${Gn}/panel`,kce=`${Gn}/ui`,Dce=`${Gn}/result`,Nce=`${Gn}/request`,Fce=`${Gn}/running`,Lce=`${Gn}/error`,Mce=`${Gn}/manual`,Bce=`${Gn}/select`,a8="writing-tests/accessibility-testing",$ce=`${a8}#why-are-my-tests-failing-in-different-environments`,jR="storybook/test",jce=`${jR}/test-provider`,i8="STORYBOOK_ADDON_TEST_CHANNEL",s8="writing-tests/integrations/vitest-addon",Uce=`${s8}#what-happens-if-vitest-itself-has-an-error`,l8={id:jR,initialState:{config:{coverage:!1,a11y:!1},watching:!1,cancelling:!1,fatalError:void 0,indexUrl:void 0,previewAnnotations:[],currentRun:{triggeredBy:void 0,config:{coverage:!1,a11y:!1},componentTestCount:{success:0,error:0},a11yCount:{success:0,warning:0,error:0},storyIds:void 0,totalTestCount:void 0,startedAt:void 0,finishedAt:void 0,unhandledErrors:[],coverageSummary:void 0}}},zce=`UNIVERSAL_STORE:${l8.id}`,c8="storybook/component-test",u8=Se(Sl(),1);function UR({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}a(UR,"ansiRegex");var d8=UR();function zR(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(d8,"")}a(zR,"stripAnsi");function HR(e){return Zh(e)||Qh(e)}a(HR,"isTestAssertionError");function Zh(e){return e&&typeof e=="object"&&"name"in e&&typeof e.name=="string"&&e.name==="AssertionError"}a(Zh,"isChaiError");function Qh(e){return e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&zR(e.message).startsWith("expect(")}a(Qh,"isJestError");function VR(e){return new u8.default({escapeXML:!0,fg:e.color.defaultText,bg:e.background.content})}a(VR,"createAnsiToHtmlFilter");function mu(){let e=Ut();return VR(e)}a(mu,"useAnsiToHtmlFilter");var p8=R.div(({theme:{color:e,typography:t,background:r}})=>({textAlign:"start",padding:"11px 15px",fontSize:`${t.size.s2-1}px`,fontWeight:t.weight.regular,lineHeight:"1rem",background:r.app,borderBottom:`1px solid ${e.border}`,color:e.defaultText,backgroundClip:"padding-box",position:"relative"})),f8=a(({storyUrl:e})=>d.createElement(p8,null,"Debugger controls are not available on composed Storybooks."," ",d.createElement(Xt,{href:`${e}&addonPanel=${Xh}`,target:"_blank",rel:"noopener noreferrer",withArrow:!0},"Open in external Storybook")),"DetachedDebuggerMessage"),m8=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),h8=a(()=>{let[e,t]=J(!0),n=St().getDocsUrl({subpath:o8,versioned:!0,renderer:!0});return q(()=>{let o=setTimeout(()=>{t(!1)},100);return()=>clearTimeout(o)},[]),e?null:d.createElement("div",null,d.createElement(Ki,{title:"Interactions",description:d.createElement(d.Fragment,null,"Interactions allow you to verify the functional aspects of UIs. Write a play function for your story and you'll see it run here."),footer:d.createElement(m8,null,d.createElement(Xt,{href:n,target:"_blank",withArrow:!0},d.createElement(co,null)," Read docs"))}))},"Empty");function su(e){var t,r,n="";if(e)if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=su(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(r=su(t))&&(n&&(n+=" "),n+=r);else typeof e!="boolean"&&!e.call&&(n&&(n+=" "),n+=e);return n}a(su,"toVal");function Fr(){for(var e=0,t,r="";e<arguments.length;)(t=su(arguments[e++]))&&(r&&(r+=" "),r+=t);return r}a(Fr,"default");var eg=a(e=>Array.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView),"isArray"),WR=a(e=>e!==null&&typeof e=="object"&&!eg(e)&&!(e instanceof Date)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet),"isObject"),g8=a(e=>WR(e)||eg(e)||typeof e=="function"||e instanceof Promise,"isKnownObject"),JR=a(e=>{let t=/unique/;return Promise.race([e,t]).then(r=>r===t?["pending"]:["fulfilled",r],r=>["rejected",r])},"getPromiseState"),Jr=a(async(e,t,r,n,o,i)=>{let s={key:e,depth:r,value:t,type:"value",parent:void 0};if(t&&g8(t)&&r<100){let l=[],c="object";if(eg(t)){for(let u=0;u<t.length;u++)l.push(async()=>{let p=await Jr(u.toString(),t[u],r+1,n);return p.parent=s,p});c="array"}else{let u=Object.getOwnPropertyNames(t);n&&u.sort();for(let p=0;p<u.length;p++){let f;try{f=t[u[p]]}catch{}l.push(async()=>{let m=await Jr(u[p],f,r+1,n);return m.parent=s,m})}if(typeof t=="function"&&(c="function"),t instanceof Promise){let[p,f]=await JR(t);l.push(async()=>{let m=await Jr("<state>",p,r+1,n);return m.parent=s,m}),p!=="pending"&&l.push(async()=>{let m=await Jr("<value>",f,r+1,n);return m.parent=s,m}),c="promise"}if(t instanceof Map){let f=Array.from(t.entries()).map(m=>{let[g,b]=m;return{"<key>":g,"<value>":b}});l.push(async()=>{let m=await Jr("<entries>",f,r+1,n);return m.parent=s,m}),l.push(async()=>{let m=await Jr("size",t.size,r+1,n);return m.parent=s,m}),c="map"}if(t instanceof Set){let f=Array.from(t.entries()).map(m=>m[1]);l.push(async()=>{let m=await Jr("<entries>",f,r+1,n);return m.parent=s,m}),l.push(async()=>{let m=await Jr("size",t.size,r+1,n);return m.parent=s,m}),c="set"}}t!==Object.prototype&&i&&l.push(async()=>{let u=await Jr("<prototype>",Object.getPrototypeOf(t),r+1,n,!0);return u.parent=s,u}),s.type=c,s.children=l,s.isPrototype=o}return s},"buildAST"),y8=a((e,t,r)=>Jr("root",e,0,t===!1?t:!0,void 0,r===!1?r:!0),"parse");function Dh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}a(Dh,"ownKeys");function ls(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dh(Object(r),!0).forEach(function(n){zo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}a(ls,"_objectSpread2");var b8=["children"],Nh=d.createContext({theme:"chrome",colorScheme:"light"}),v8=a(e=>{let{children:t}=e,r=tn(e,b8),n=d.useContext(Nh);return d.createElement(Nh.Provider,{value:ls(ls({},n),r)},t)},"ThemeProvider"),hu=a((e,t={})=>{let r=d.useContext(Nh),n=e.theme||r.theme||"chrome",o=e.colorScheme||r.colorScheme||"light",i=Fr(t[n],t[o]);return{currentColorScheme:o,currentTheme:n,themeClass:i}},"useTheme"),E8=d.createContext({isChild:!1,depth:0,hasHover:!0}),gh=E8,Zt={tree:"Tree-tree-fbbbe38",item:"Tree-item-353d6f3",group:"Tree-group-d3c3d8a",label:"Tree-label-d819155",focusWhite:"Tree-focusWhite-f1e00c2",arrow:"Tree-arrow-03ab2e7",hover:"Tree-hover-3cc4e5d",open:"Tree-open-3f1a336",dark:"Tree-dark-1b4aa00",chrome:"Tree-chrome-bcbcac6",light:"Tree-light-09174ee"},S8=["theme","hover","colorScheme","children","label","className","onUpdate","onSelect","open"],lu=a(e=>{let{theme:t,hover:r,colorScheme:n,children:o,label:i,className:s,onUpdate:l,onSelect:c,open:u}=e,p=tn(e,S8),{themeClass:f,currentTheme:m}=hu({theme:t,colorScheme:n},Zt),[g,b]=J(u);q(()=>{b(u)},[u]);let y=a(W=>{b(W),l&&l(W)},"updateState"),S=d.Children.count(o)>0,v=a((W,z)=>{if(W.isSameNode(z||null))return;let V=W.querySelector('[tabindex="-1"]');V?.focus(),W.setAttribute("aria-selected","true"),z?.removeAttribute("aria-selected")},"updateFocus"),w=a((W,z)=>{let V=W;for(;V&&V.parentElement;){if(V.getAttribute("role")===z)return V;V=V.parentElement}return null},"getParent"),E=a(W=>{let z=w(W,"tree");return z?Array.from(z.querySelectorAll("li")):[]},"getListElements"),x=a(W=>{let z=w(W,"group"),V=z?.previousElementSibling;if(V&&V.getAttribute("tabindex")==="-1"){let te=V.parentElement,H=W.parentElement;v(te,H)}},"moveBack"),A=a((W,z)=>{let V=E(W);V.forEach(te=>{te.removeAttribute("aria-selected")}),z==="start"&&V[0]&&v(V[0]),z==="end"&&V[V.length-1]&&v(V[V.length-1])},"moveHome"),_=a((W,z)=>{let V=E(W)||[];for(let te=0;te<V.length;te++){let H=V[te];if(H.getAttribute("aria-selected")==="true"){z==="up"&&V[te-1]?v(V[te-1],H):z==="down"&&V[te+1]&&v(V[te+1],H);return}}v(V[0])},"moveFocusAdjacent"),C=a((W,z)=>{let V=W.target;(W.key==="Enter"||W.key===" ")&&y(!g),W.key==="ArrowRight"&&g&&!z?_(V,"down"):W.key==="ArrowRight"&&y(!0),W.key==="ArrowLeft"&&(!g||z)?x(V):W.key==="ArrowLeft"&&y(!1),W.key==="ArrowDown"&&_(V,"down"),W.key==="ArrowUp"&&_(V,"up"),W.key==="Home"&&A(V,"start"),W.key==="End"&&A(V,"end")},"handleKeypress"),O=a((W,z)=>{let V=W.target,te=w(V,"treeitem"),H=E(V)||[],ee=!1;for(let he=0;he<H.length;he++){let re=H[he];if(re.getAttribute("aria-selected")==="true"){te&&(ee=!0,v(te,re));break}}!ee&&te&&v(te),z||y(!g)},"handleClick"),I=a(W=>{let z=W.currentTarget;!z.contains(document.activeElement)&&z.getAttribute("role")==="tree"&&z.setAttribute("tabindex","0")},"handleBlur"),P=a(W=>{let z=W.target;if(z.getAttribute("role")==="tree"){let V=z.querySelector('[aria-selected="true"]');V?v(V):_(z,"down"),z.setAttribute("tabindex","-1")}},"handleFocus"),D=a(()=>{c?.()},"handleButtonFocus"),j=a(W=>{let z=W*.9+.3;return{paddingLeft:`${z}em`,width:`calc(100% - ${z}em)`}},"getPaddingStyles"),{isChild:$,depth:N,hasHover:F}=d.useContext(gh),B=F?r:!1;if(!$)return d.createElement("ul",Ee({role:"tree",tabIndex:0,className:Fr(Zt.tree,Zt.group,f,s),onFocus:P,onBlur:I},p),d.createElement(gh.Provider,{value:{isChild:!0,depth:0,hasHover:B}},d.createElement(lu,e)));if(!S)return d.createElement("li",Ee({role:"treeitem",className:Zt.item},p),d.createElement("div",{role:"button",className:Fr(Zt.label,{[Zt.hover]:B,[Zt.focusWhite]:m==="firefox"}),tabIndex:-1,style:j(N),onKeyDown:a(W=>{C(W,$)},"onKeyDown"),onClick:a(W=>O(W,!0),"onClick"),onFocus:D},d.createElement("span",null,i)));let M=Fr(Zt.arrow,{[Zt.open]:g});return d.createElement("li",{role:"treeitem","aria-expanded":g,className:Zt.item},d.createElement("div",{role:"button",tabIndex:-1,className:Fr(Zt.label,{[Zt.hover]:B,[Zt.focusWhite]:m==="firefox"}),style:j(N),onClick:a(W=>O(W),"onClick"),onKeyDown:a(W=>C(W),"onKeyDown"),onFocus:D},d.createElement("span",null,d.createElement("span",{"aria-hidden":!0,className:M}),d.createElement("span",null,i))),d.createElement("ul",Ee({role:"group",className:Fr(s,Zt.group)},p),g&&d.Children.map(o,W=>d.createElement(gh.Provider,{value:{isChild:!0,depth:N+1,hasHover:B}},W))))},"Tree");lu.defaultProps={open:!1,hover:!0};var Be={"object-inspector":"ObjectInspector-object-inspector-0c33e82",objectInspector:"ObjectInspector-object-inspector-0c33e82","object-label":"ObjectInspector-object-label-b81482b",objectLabel:"ObjectInspector-object-label-b81482b",text:"ObjectInspector-text-25f57f3",key:"ObjectInspector-key-4f712bb",value:"ObjectInspector-value-f7ec2e5",string:"ObjectInspector-string-c496000",regex:"ObjectInspector-regex-59d45a3",error:"ObjectInspector-error-b818698",boolean:"ObjectInspector-boolean-2dd1642",number:"ObjectInspector-number-a6daabb",undefined:"ObjectInspector-undefined-3a68263",null:"ObjectInspector-null-74acb50",function:"ObjectInspector-function-07bbdcd","function-decorator":"ObjectInspector-function-decorator-3d22c24",functionDecorator:"ObjectInspector-function-decorator-3d22c24",prototype:"ObjectInspector-prototype-f2449ee",dark:"ObjectInspector-dark-0c96c97",chrome:"ObjectInspector-chrome-2f3ca98",light:"ObjectInspector-light-78bef54"},w8=["ast","theme","showKey","colorScheme","className"],Qt=a((e,t,r,n,o)=>{let i=e.includes("-")?`"${e}"`:e,s=o<=0;return d.createElement("span",{className:Be.text},!s&&n&&d.createElement(d.Fragment,null,d.createElement("span",{className:Be.key},i),d.createElement("span",null,":\xA0")),d.createElement("span",{className:r},t))},"buildValue"),qR=a(e=>{let{ast:t,theme:r,showKey:n,colorScheme:o,className:i}=e,s=tn(e,w8),{themeClass:l}=hu({theme:r,colorScheme:o},Be),[c,u]=J(d.createElement("span",null)),p=d.createElement("span",null);return q(()=>{t.value instanceof Promise&&a(async m=>{u(Qt(t.key,`Promise { "${await JR(m)}" }`,Be.key,n,t.depth))},"waitForPromiseResult")(t.value)},[t,n]),typeof t.value=="number"||typeof t.value=="bigint"?p=Qt(t.key,String(t.value),Be.number,n,t.depth):typeof t.value=="boolean"?p=Qt(t.key,String(t.value),Be.boolean,n,t.depth):typeof t.value=="string"?p=Qt(t.key,`"${t.value}"`,Be.string,n,t.depth):typeof t.value>"u"?p=Qt(t.key,"undefined",Be.undefined,n,t.depth):typeof t.value=="symbol"?p=Qt(t.key,t.value.toString(),Be.string,n,t.depth):typeof t.value=="function"?p=Qt(t.key,`${t.value.name}()`,Be.key,n,t.depth):typeof t.value=="object"&&(t.value===null?p=Qt(t.key,"null",Be.null,n,t.depth):Array.isArray(t.value)?p=Qt(t.key,`Array(${t.value.length})`,Be.key,n,t.depth):t.value instanceof Date?p=Qt(t.key,`Date ${t.value.toString()}`,Be.value,n,t.depth):t.value instanceof RegExp?p=Qt(t.key,t.value.toString(),Be.regex,n,t.depth):t.value instanceof Error?p=Qt(t.key,t.value.toString(),Be.error,n,t.depth):WR(t.value)?p=Qt(t.key,"{\u2026}",Be.key,n,t.depth):p=Qt(t.key,t.value.constructor.name,Be.key,n,t.depth)),d.createElement("span",Ee({className:Fr(l,i)},s),c,p)},"ObjectValue");qR.defaultProps={showKey:!0};var GR=qR,x8=["ast","theme","previewMax","open","colorScheme","className"],cs=a((e,t,r)=>{let n=[];for(let o=0;o<e.length;o++){let i=e[o];if(i.isPrototype||(n.push(d.createElement(GR,{key:i.key,ast:i,showKey:r})),o<e.length-1?n.push(", "):n.push(" ")),i.isPrototype&&o===e.length-1&&(n.pop(),n.push(" ")),o===t-1&&e.length>t){n.push("\u2026 ");break}}return n},"buildPreview"),T8=a((e,t,r,n)=>{let o=e.value.length;return t?d.createElement("span",null,"Array(",o,")"):d.createElement(d.Fragment,null,d.createElement("span",null,`${n==="firefox"?"Array":""}(${o}) [ `),cs(e.children,r,!1),d.createElement("span",null,"]"))},"getArrayLabel"),A8=a((e,t,r,n)=>e.isPrototype?d.createElement("span",null,`Object ${n==="firefox"?"{ \u2026 }":""}`):t?d.createElement("span",null,"{\u2026}"):d.createElement(d.Fragment,null,d.createElement("span",null,`${n==="firefox"?"Object ":""}{ `),cs(e.children,r,!0),d.createElement("span",null,"}")),"getObjectLabel"),C8=a((e,t,r)=>t?d.createElement("span",null,`Promise { "${String(e.children[0].value)}" }`):d.createElement(d.Fragment,null,d.createElement("span",null,"Promise { "),cs(e.children,r,!0),d.createElement("span",null,"}")),"getPromiseLabel"),R8=a((e,t,r,n)=>{let{size:o}=e.value;return t?d.createElement("span",null,`Map(${o})`):d.createElement(d.Fragment,null,d.createElement("span",null,`Map${n==="chrome"?`(${o})`:""} { `),cs(e.children,r,!0),d.createElement("span",null,"}"))},"getMapLabel"),_8=a((e,t,r)=>{let{size:n}=e.value;return t?d.createElement("span",null,"Set(",n,")"):d.createElement(d.Fragment,null,d.createElement("span",null,`Set(${e.value.size}) {`),cs(e.children,r,!0),d.createElement("span",null,"}"))},"getSetLabel"),YR=a(e=>{let{ast:t,theme:r,previewMax:n,open:o,colorScheme:i,className:s}=e,l=tn(e,x8),{themeClass:c,currentTheme:u}=hu({theme:r,colorScheme:i},Be),p=t.isPrototype||!1,f=Fr(Be.objectLabel,c,s,{[Be.prototype]:p}),m=t.depth<=0,g=a(()=>d.createElement("span",{className:p?Be.prototype:Be.key},m?"":`${t.key}: `),"Key");return t.type==="array"?d.createElement("span",Ee({className:f},l),d.createElement(g,null),T8(t,o,n,u)):t.type==="function"?d.createElement("span",Ee({className:f},l),d.createElement(g,null),u==="chrome"&&d.createElement("span",{className:Be.functionDecorator},"\u0192 "),d.createElement("span",{className:Fr({[Be.function]:!p})},`${t.value.name}()`)):t.type==="promise"?d.createElement("span",Ee({className:f},l),d.createElement(g,null),C8(t,o,n)):t.type==="map"?d.createElement("span",Ee({className:f},l),d.createElement(g,null),R8(t,o,n,u)):t.type==="set"?d.createElement("span",Ee({className:f},l),d.createElement(g,null),_8(t,o,n)):d.createElement("span",Ee({className:f},l),d.createElement(g,null),A8(t,o,n,u))},"ObjectLabel");YR.defaultProps={previewMax:8,open:!1};var O8=YR,tg=a(e=>{let{ast:t,expandLevel:r,depth:n}=e,[o,i]=J(),[s,l]=J(n<r);return q(()=>{a(async()=>{if(t.type!=="value"){let u=t.children.map(m=>m()),p=await Promise.all(u),f=ls(ls({},t),{},{children:p});i(f)}},"resolve")()},[t]),o?d.createElement(lu,{hover:!1,open:s,label:d.createElement(O8,{open:s,ast:o}),onSelect:a(()=>{var c;(c=e.onSelect)===null||c===void 0||c.call(e,t)},"onSelect"),onUpdate:a(c=>{l(c)},"onUpdate")},o.children.map(c=>d.createElement(tg,{key:c.key,ast:c,depth:n+1,expandLevel:r,onSelect:e.onSelect}))):d.createElement(lu,{hover:!1,label:d.createElement(GR,{ast:t}),onSelect:a(()=>{var c;(c=e.onSelect)===null||c===void 0||c.call(e,t)},"onSelect")})},"ObjectInspectorItem");tg.defaultProps={expandLevel:0,depth:0};var I8=tg,P8=["data","expandLevel","sortKeys","includePrototypes","className","theme","colorScheme","onSelect"],KR=a(e=>{let{data:t,expandLevel:r,sortKeys:n,includePrototypes:o,className:i,theme:s,colorScheme:l,onSelect:c}=e,u=tn(e,P8),[p,f]=J(void 0),{themeClass:m,currentTheme:g,currentColorScheme:b}=hu({theme:s,colorScheme:l},Be);return q(()=>{a(async()=>{f(await y8(t,n,o))},"runParser")()},[t,n,o]),d.createElement("div",Ee({className:Fr(Be.objectInspector,i,m)},u),p&&d.createElement(v8,{theme:g,colorScheme:b},d.createElement(I8,{ast:p,expandLevel:r,onSelect:c})))},"ObjectInspector");KR.defaultProps={expandLevel:0,sortKeys:!0,includePrototypes:!0};var k8={base:"#444",nullish:"#7D99AA",string:"#16B242",number:"#5D40D0",boolean:"#f41840",objectkey:"#698394",instance:"#A15C20",function:"#EA7509",muted:"#7D99AA",tag:{name:"#6F2CAC",suffix:"#1F99E5"},date:"#459D9C",error:{name:"#D43900",message:"#444"},regex:{source:"#A15C20",flags:"#EA7509"},meta:"#EA7509",method:"#0271B6"},D8={base:"#eee",nullish:"#aaa",string:"#5FE584",number:"#6ba5ff",boolean:"#ff4191",objectkey:"#accfe6",instance:"#E3B551",function:"#E3B551",muted:"#aaa",tag:{name:"#f57bff",suffix:"#8EB5FF"},date:"#70D4D3",error:{name:"#f40",message:"#eee"},regex:{source:"#FAD483",flags:"#E3B551"},meta:"#FAD483",method:"#5EC1FF"},Ot=a(()=>{let{base:e}=Ut();return e==="dark"?D8:k8},"useThemeColors"),N8=/[^A-Z0-9]/i,FC=/[\s.,…]+$/gm,XR=a((e,t)=>{if(e.length<=t)return e;for(let r=t-1;r>=0;r-=1)if(N8.test(e[r])&&r>10)return`${e.slice(0,r).replace(FC,"")}\u2026`;return`${e.slice(0,t).replace(FC,"")}\u2026`},"ellipsize"),F8=a(e=>{try{return JSON.stringify(e,null,1)}catch{return String(e)}},"stringify"),ZR=a((e,t)=>e.flatMap((r,n)=>n===e.length-1?[r]:[r,d.cloneElement(t,{key:`sep${n}`})]),"interleave"),No=a(({value:e,nested:t,showObjectInspector:r,callsById:n,...o})=>{switch(!0){case e===null:return d.createElement(L8,{...o});case e===void 0:return d.createElement(M8,{...o});case Array.isArray(e):return d.createElement(U8,{...o,value:e,callsById:n});case typeof e=="string":return d.createElement(B8,{...o,value:e});case typeof e=="number":return d.createElement($8,{...o,value:e});case typeof e=="boolean":return d.createElement(j8,{...o,value:e});case Object.prototype.hasOwnProperty.call(e,"__date__"):return d.createElement(J8,{...o,...e.__date__});case Object.prototype.hasOwnProperty.call(e,"__error__"):return d.createElement(q8,{...o,...e.__error__});case Object.prototype.hasOwnProperty.call(e,"__regexp__"):return d.createElement(G8,{...o,...e.__regexp__});case Object.prototype.hasOwnProperty.call(e,"__function__"):return d.createElement(V8,{...o,...e.__function__});case Object.prototype.hasOwnProperty.call(e,"__symbol__"):return d.createElement(Y8,{...o,...e.__symbol__});case Object.prototype.hasOwnProperty.call(e,"__element__"):return d.createElement(W8,{...o,...e.__element__});case Object.prototype.hasOwnProperty.call(e,"__class__"):return d.createElement(H8,{...o,...e.__class__});case Object.prototype.hasOwnProperty.call(e,"__callId__"):return d.createElement(rg,{call:n?.get(e.__callId__),callsById:n});case Object.prototype.toString.call(e)==="[object Object]":return d.createElement(z8,{value:e,showInspector:r,callsById:n,...o});default:return d.createElement(K8,{value:e,...o})}},"Node"),L8=a(e=>{let t=Ot();return d.createElement("span",{style:{color:t.nullish},...e},"null")},"NullNode"),M8=a(e=>{let t=Ot();return d.createElement("span",{style:{color:t.nullish},...e},"undefined")},"UndefinedNode"),B8=a(({value:e,...t})=>{let r=Ot();return d.createElement("span",{style:{color:r.string},...t},JSON.stringify(XR(e,50)))},"StringNode"),$8=a(({value:e,...t})=>{let r=Ot();return d.createElement("span",{style:{color:r.number},...t},e)},"NumberNode"),j8=a(({value:e,...t})=>{let r=Ot();return d.createElement("span",{style:{color:r.boolean},...t},String(e))},"BooleanNode"),U8=a(({value:e,nested:t=!1,callsById:r})=>{let n=Ot();if(t)return d.createElement("span",{style:{color:n.base}},"[\u2026]");let o=e.slice(0,3).map((s,l)=>d.createElement(No,{key:`${l}--${JSON.stringify(s)}`,value:s,nested:!0,callsById:r})),i=ZR(o,d.createElement("span",null,", "));return e.length<=3?d.createElement("span",{style:{color:n.base}},"[",i,"]"):d.createElement("span",{style:{color:n.base}},"(",e.length,") [",i,", \u2026]")},"ArrayNode"),z8=a(({showInspector:e,value:t,callsById:r,nested:n=!1})=>{let o=Ut().base==="dark",i=Ot();if(e)return d.createElement(d.Fragment,null,d.createElement(KR,{id:"interactions-object-inspector",data:t,includePrototypes:!1,colorScheme:o?"dark":"light"}));if(n)return d.createElement("span",{style:{color:i.base}},"{\u2026}");let s=ZR(Object.entries(t).slice(0,2).map(([l,c])=>d.createElement(Pe,{key:l},d.createElement("span",{style:{color:i.objectkey}},l,": "),d.createElement(No,{value:c,callsById:r,nested:!0}))),d.createElement("span",null,", "));return Object.keys(t).length<=2?d.createElement("span",{style:{color:i.base}},"{ ",s," }"):d.createElement("span",{style:{color:i.base}},"(",Object.keys(t).length,") ","{ ",s,", \u2026 }")},"ObjectNode"),H8=a(({name:e})=>{let t=Ot();return d.createElement("span",{style:{color:t.instance}},e)},"ClassNode"),V8=a(({name:e})=>{let t=Ot();return e?d.createElement("span",{style:{color:t.function}},e):d.createElement("span",{style:{color:t.nullish,fontStyle:"italic"}},"anonymous")},"FunctionNode"),W8=a(({prefix:e,localName:t,id:r,classNames:n=[],innerText:o})=>{let i=e?`${e}:${t}`:t,s=Ot();return d.createElement("span",{style:{wordBreak:"keep-all"}},d.createElement("span",{key:`${i}_lt`,style:{color:s.muted}},"<"),d.createElement("span",{key:`${i}_tag`,style:{color:s.tag.name}},i),d.createElement("span",{key:`${i}_suffix`,style:{color:s.tag.suffix}},r?`#${r}`:n.reduce((l,c)=>`${l}.${c}`,"")),d.createElement("span",{key:`${i}_gt`,style:{color:s.muted}},">"),!r&&n.length===0&&o&&d.createElement(d.Fragment,null,d.createElement("span",{key:`${i}_text`},o),d.createElement("span",{key:`${i}_close_lt`,style:{color:s.muted}},"<"),d.createElement("span",{key:`${i}_close_tag`,style:{color:s.tag.name}},"/",i),d.createElement("span",{key:`${i}_close_gt`,style:{color:s.muted}},">")))},"ElementNode"),J8=a(({value:e})=>{let t=new Date(e);isNaN(Number(t))&&(we.warn("Invalid date value:",e),t=null);let r=Ot();if(!t)return d.createElement("span",{style:{whiteSpace:"nowrap",color:r.date}},"Invalid date");let[n,o,i]=t.toISOString().split(/[T.Z]/);return d.createElement("span",{style:{whiteSpace:"nowrap",color:r.date}},n,d.createElement("span",{style:{opacity:.7}},"T"),o==="00:00:00"?d.createElement("span",{style:{opacity:.7}},o):o,i==="000"?d.createElement("span",{style:{opacity:.7}},".",i):`.${i}`,d.createElement("span",{style:{opacity:.7}},"Z"))},"DateNode"),q8=a(({name:e,message:t})=>{let r=Ot();return d.createElement("span",{style:{color:r.error.name}},e,t&&": ",t&&d.createElement("span",{style:{color:r.error.message},title:t.length>50?t:""},XR(t,50)))},"ErrorNode"),G8=a(({flags:e,source:t})=>{let r=Ot();return d.createElement("span",{style:{whiteSpace:"nowrap",color:r.regex.flags}},"/",d.createElement("span",{style:{color:r.regex.source}},t),"/",e)},"RegExpNode"),Y8=a(({description:e})=>{let t=Ot();return d.createElement("span",{style:{whiteSpace:"nowrap",color:t.instance}},"Symbol(",e&&d.createElement("span",{style:{color:t.meta}},'"',e,'"'),")")},"SymbolNode"),K8=a(({value:e})=>{let t=Ot();return d.createElement("span",{style:{color:t.meta}},F8(e))},"OtherNode"),X8=a(({label:e})=>{let t=Ot(),{typography:r}=Ut();return d.createElement("span",{style:{color:t.base,fontFamily:r.fonts.base,fontSize:r.size.s2-1}},e)},"StepNode"),rg=a(({call:e,callsById:t})=>{if(!e)return null;if(e.method==="step"&&e.path?.length===0)return d.createElement(X8,{label:e.args[0]});let r=e.path?.flatMap((i,s)=>{let l=i.__callId__;return[l?d.createElement(rg,{key:`elem${s}`,call:t?.get(l),callsById:t}):d.createElement("span",{key:`elem${s}`},i),d.createElement("wbr",{key:`wbr${s}`}),d.createElement("span",{key:`dot${s}`},".")]}),n=e.args?.flatMap((i,s,l)=>{let c=d.createElement(No,{key:`node${s}`,value:i,callsById:t});return s<l.length-1?[c,d.createElement("span",{key:`comma${s}`},",\xA0"),d.createElement("wbr",{key:`wbr${s}`})]:[c]}),o=Ot();return d.createElement(d.Fragment,null,d.createElement("span",{style:{color:o.base}},r),d.createElement("span",{style:{color:o.method}},e.method),d.createElement("span",{style:{color:o.base}},"(",d.createElement("wbr",null),n,d.createElement("wbr",null),")"))},"MethodCall"),LC=a((e,t=0)=>{for(let r=t,n=1;r<e.length;r+=1)if(e[r]==="("?n+=1:e[r]===")"&&(n-=1),n===0)return e.slice(t,r);return""},"getParams"),yh=a(e=>{try{return e==="undefined"?void 0:JSON.parse(e)}catch{return e}},"parseValue"),Z8=R.span(({theme:e})=>({color:e.base==="light"?e.color.positiveText:e.color.positive})),Q8=R.span(({theme:e})=>({color:e.base==="light"?e.color.negativeText:e.color.negative})),bh=a(({value:e,parsed:t})=>t?d.createElement(No,{showObjectInspector:!0,value:e,style:{color:"#D43900"}}):d.createElement(Q8,null,e),"Received"),vh=a(({value:e,parsed:t})=>t?typeof e=="string"&&e.startsWith("called with")?d.createElement(d.Fragment,null,e):d.createElement(No,{showObjectInspector:!0,value:e,style:{color:"#16B242"}}):d.createElement(Z8,null,e),"Expected"),MC=a(({message:e,style:t={}})=>{let r=mu(),n=e.split(`
|
|
916
|
+
`);return d.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:jt.size.s1,...t}},n.flatMap((o,i)=>{if(o.startsWith("expect(")){let f=LC(o,7),m=f?7+f.length:0,g=f&&o.slice(m).match(/\.(to|last|nth)[A-Z]\w+\(/);if(g){let b=m+(g.index??0)+g[0].length,y=LC(o,b);if(y)return["expect(",d.createElement(bh,{key:`received_${f}`,value:f}),o.slice(m,b),d.createElement(vh,{key:`expected_${y}`,value:y}),o.slice(b+y.length),d.createElement("br",{key:`br${i}`})]}}if(o.match(/^\s*- /))return[d.createElement(vh,{key:o+i,value:o}),d.createElement("br",{key:`br${i}`})];if(o.match(/^\s*\+ /)||o.match(/^Received: $/))return[d.createElement(bh,{key:o+i,value:o}),d.createElement("br",{key:`br${i}`})];let[,s,l]=o.match(/^(Expected|Received): (.*)$/)||[];if(s&&l)return s==="Expected"?["Expected: ",d.createElement(vh,{key:o+i,value:yh(l),parsed:!0}),d.createElement("br",{key:`br${i}`})]:["Received: ",d.createElement(bh,{key:o+i,value:yh(l),parsed:!0}),d.createElement("br",{key:`br${i}`})];let[,c,u]=o.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(c&&u)return[`${c} of calls: `,d.createElement(No,{key:o+i,value:Number(u)}),d.createElement("br",{key:`br${i}`})];let[,p]=o.match(/^Received has value: (.+)$/)||[];return p?["Received has value: ",d.createElement(No,{key:o+i,value:yh(p)}),d.createElement("br",{key:`br${i}`})]:[d.createElement("span",{key:o+i,dangerouslySetInnerHTML:{__html:r.toHtml(o)}}),d.createElement("br",{key:`br${i}`})]}))},"MatcherResult"),e9=R.div({width:14,height:14,display:"flex",alignItems:"center",justifyContent:"center"}),QR=a(({status:e})=>{let t=Ut();switch(e){case"done":return d.createElement(Us,{color:t.color.positive,"data-testid":"icon-done"});case"error":return d.createElement(Vb,{color:t.color.negative,"data-testid":"icon-error"});case"active":return d.createElement($b,{color:t.color.secondary,"data-testid":"icon-active"});case"waiting":return d.createElement(e9,{"data-testid":"icon-waiting"},d.createElement(Ws,{color:ye(.5,"#CCCCCC"),size:6}));default:return null}},"StatusIcon"),t9=R.div({fontFamily:jt.fonts.mono,fontSize:jt.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"}),r9=R("div",{shouldForwardProp:a(e=>!["call","pausedAt"].includes(e.toString()),"shouldForwardProp")})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:jt.fonts.base,fontSize:13,...t.status==="error"&&{backgroundColor:e.base==="dark"?ye(.93,e.color.negative):e.background.warning},paddingLeft:(t.ancestors?.length??0)*20}),({theme:e,call:t,pausedAt:r})=>r===t.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${e.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${e.color.warning}`}}),n9=R.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),o9=R("button",{shouldForwardProp:a(e=>!["call"].includes(e.toString()),"shouldForwardProp")})(({theme:e,disabled:t,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:t||r.status==="error"?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status==="error"?e.color.warning:e.color.secondary}`,background:r.status==="error"?"transparent":e.background.hoverable},"& > div":{opacity:r.status==="waiting"?.5:1}})),a9=R.div({display:"flex",alignItems:"center",padding:6}),i9=R(Ne)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),s9=R(Dr)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Eh=R("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:jt.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),l9=R.span(({theme:e})=>({color:e.base==="dark"?"#5EC1FF":"#0271B6"})),c9=R.span(({theme:e})=>({color:e.base==="dark"?"#eee":"#444"})),u9=R.p(({theme:e})=>({color:e.base==="dark"?e.color.negative:e.color.negativeText,fontSize:e.typography.size.s2,maxWidth:500,textWrap:"balance"})),d9=a(({exception:e})=>{let t=mu();if(!e)return null;if(e.callId===qr)return ie(Eh,null,ie("pre",null,ie(l9,null,e.name,":")," ",ie(c9,null,e.message)),ie(u9,null,"The component failed to render properly. Automated component tests will not run until this is resolved. Check the full error message in Storybook\u2019s canvas to debug."));if(Qh(e))return ie(MC,{...e});if(Zh(e))return ie(Eh,null,ie(MC,{message:`${e.message}${e.diff?`
|
|
917
|
+
|
|
918
|
+
${e.diff}`:""}`,style:{padding:0}}),ie("p",null,"See the full stack trace in the browser console."));let r=e.message.split(`
|
|
919
|
+
|
|
920
|
+
`),n=r.length>1;return ie(Eh,null,ie("pre",{dangerouslySetInnerHTML:{__html:t.toHtml(r[0])}}),n&&ie("p",null,"See the full stack trace in the browser console."))},"Exception"),p9=a(({call:e,callsById:t,controls:r,controlStates:n,childCallIds:o,isHidden:i,isCollapsed:s,toggleCollapsed:l,pausedAt:c})=>{let[u,p]=J(!1),f=!n.goto||!e.interceptable||!!e.ancestors?.length;return i||e.id===qr?null:ie(r9,{call:e,pausedAt:c},ie(n9,{isInteractive:f},ie(o9,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:f,onMouseEnter:()=>n.goto&&p(!0),onMouseLeave:()=>n.goto&&p(!1)},ie(QR,{status:u?"active":e.status}),ie(t9,{style:{marginLeft:6,marginBottom:1}},ie(rg,{call:e,callsById:t}))),ie(a9,null,(o?.length??0)>0&&ie(nt,{hasChrome:!1,tooltip:ie(s9,{note:`${s?"Show":"Hide"} interactions`})},ie(i9,{onClick:l,"aria-label":s?"Expand interaction":"Collapse interaction"},s?ie(zs,null):ie(Ab,null))))),e.status==="error"&&e.exception?.callId===e.id&&ie(d9,{exception:e.exception}))},"Interaction"),f9={rendering:"mediumdark",playing:"warning",completed:"positive",errored:"negative",aborted:"purple"},m9={rendering:"Wait",playing:"Runs",completed:"Pass",errored:"Fail",aborted:"Bail"},h9={rendering:"Story is rendering",playing:"Interactions are running",completed:"Story ran successfully",errored:"Story failed to complete",aborted:"Interactions aborted due to file changes"},g9=R.div(({theme:e,status:t})=>({display:"inline-block",padding:"4px 6px 4px 8px",borderRadius:"4px",backgroundColor:e.color[f9[t]],color:"white",fontFamily:jt.fonts.base,textTransform:"uppercase",fontSize:jt.size.s1,letterSpacing:3,fontWeight:jt.weight.bold,minWidth:65,textAlign:"center"})),y9=a(({status:e})=>{let t=m9[e],r=h9[e];return d.createElement(pA,{hasChrome:!1,placement:"top",trigger:"hover",tooltip:d.createElement(fA,{note:r})},d.createElement(g9,{"aria-label":"Story status",status:e},t))},"StatusBadge"),b9=R.div(({theme:e})=>({boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.background.app,position:"sticky",top:0,zIndex:1})),v9=R.nav({height:39,display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:15}),E9=R(Kt)(({theme:e})=>({borderRadius:4,padding:6,color:e.textMutedColor,"&:not(:disabled)":{"&:hover,&:focus-visible":{color:e.color.secondary}}})),Ua=R(Dr)(({theme:e})=>({fontFamily:e.typography.fonts.base})),ss=R(Ne)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),S9=R(Km)({marginTop:0}),BC=R(qm)(({theme:e,isText:t})=>({color:t?e.textMutedColor:e.color.secondary,cursor:t?"default":"pointer",fontWeight:t?e.typography.weight.regular:e.typography.weight.bold,justifyContent:"flex-end",textAlign:"right",whiteSpace:"nowrap",marginTop:"auto",marginBottom:1,paddingRight:15,fontSize:13})),$C=R.div({display:"flex",alignItems:"center"}),w9=R(ss)({marginLeft:9}),x9=R(E9)({marginLeft:9,marginRight:9,lineHeight:"12px"}),T9=R(ss)(({theme:e,animating:t,disabled:r})=>({opacity:r?.5:1,svg:{animation:t?`${e.animation.rotate360} 200ms ease-out`:void 0}})),A9=a(({controls:e,controlStates:t,status:r,storyFileName:n,onScrollToEnd:o,importPath:i,canOpenInEditor:s,api:l})=>{let c=r==="errored"?"Scroll to error":"Scroll to end",u=Ut();return d.createElement(b9,null,d.createElement(Yi,{backgroundColor:u.background.app},d.createElement(v9,{"aria-label":"Component tests toolbar"},d.createElement($C,null,d.createElement(y9,{status:r}),d.createElement(x9,{onClick:o,disabled:!o},c),d.createElement(S9,null),d.createElement(nt,{trigger:"hover",hasChrome:!1,tooltip:d.createElement(Ua,{note:"Go to start"})},d.createElement(w9,{"aria-label":"Go to start",onClick:e.start,disabled:!t.start},d.createElement(Ub,null))),d.createElement(nt,{trigger:"hover",hasChrome:!1,tooltip:d.createElement(Ua,{note:"Go back"})},d.createElement(ss,{"aria-label":"Go back",onClick:e.back,disabled:!t.back},d.createElement(Bb,null))),d.createElement(nt,{trigger:"hover",hasChrome:!1,tooltip:d.createElement(Ua,{note:"Go forward"})},d.createElement(ss,{"aria-label":"Go forward",onClick:e.next,disabled:!t.next},d.createElement(jb,null))),d.createElement(nt,{trigger:"hover",hasChrome:!1,tooltip:d.createElement(Ua,{note:"Go to end"})},d.createElement(ss,{"aria-label":"Go to end",onClick:e.end,disabled:!t.end},d.createElement(Ib,null))),d.createElement(nt,{trigger:"hover",hasChrome:!1,tooltip:d.createElement(Ua,{note:"Rerun"})},d.createElement(T9,{"aria-label":"Rerun",onClick:e.rerun},d.createElement(Jb,null)))),(i||n)&&d.createElement($C,null,s?d.createElement(nt,{trigger:"hover",hasChrome:!1,tooltip:d.createElement(Ua,{note:"Open in editor"})},d.createElement(BC,{"aria-label":"Open in editor",onClick:()=>{l.openInEditor({file:i})}},n)):d.createElement(BC,{isText:!0},n)))))},"Subnav"),C9=R.div(({theme:{color:e,typography:t,background:r}})=>({textAlign:"start",padding:"11px 15px",fontSize:`${t.size.s2-1}px`,fontWeight:t.weight.regular,lineHeight:"1rem",background:r.app,borderBottom:`1px solid ${e.border}`,color:e.defaultText,backgroundClip:"padding-box",position:"relative",code:{fontSize:`${t.size.s1-1}px`,color:"inherit",margin:"0 0.2em",padding:"0 0.2em",background:"rgba(255, 255, 255, 0.8)",borderRadius:"2px",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.1)"}})),R9=a(({browserTestStatus:e})=>{let r=St().getDocsUrl({subpath:n8,versioned:!0,renderer:!0}),[n,o]=e==="error"?["the CLI","this browser"]:["this browser","the CLI"];return d.createElement(C9,null,"This interaction test passed in ",n,", but the tests failed in ",o,"."," ",d.createElement(Xt,{href:r,target:"_blank",withArrow:!0},"Learn what could cause this"))},"TestDiscrepancyMessage"),_9=R.div(({theme:e})=>({height:"100%",background:e.background.content})),jC=R.div(({theme:e})=>({borderBottom:`1px solid ${e.appBorderColor}`,backgroundColor:e.base==="dark"?ye(.93,e.color.negative):e.background.warning,padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),Sh=R.code(({theme:e})=>({margin:"0 1px",padding:3,fontSize:e.typography.size.s1-1,lineHeight:1,verticalAlign:"top",background:"rgba(0, 0, 0, 0.05)",border:`1px solid ${e.appBorderColor}`,borderRadius:3})),UC=R.div({paddingBottom:4,fontWeight:"bold"}),O9=R.p({margin:0,padding:"0 0 20px"}),zC=R.pre(({theme:e})=>({margin:0,padding:0,"&:not(:last-child)":{paddingBottom:16},fontSize:e.typography.size.s1-1})),I9=At(a(function({storyUrl:t,status:r,calls:n,controls:o,controlStates:i,interactions:s,fileName:l,hasException:c,caughtException:u,unhandledErrors:p,pausedAt:f,onScrollToEnd:m,endRef:g,hasResultMismatch:b,browserTestStatus:y,importPath:S,canOpenInEditor:v,api:w}){let E=mu(),x=s.some(A=>A.id!==qr);return ie(_9,null,b&&ie(R9,{browserTestStatus:y}),i.detached&&(x||c)&&ie(f8,{storyUrl:t}),ie(A9,{controls:o,controlStates:i,status:r,storyFileName:l,onScrollToEnd:m,importPath:S,canOpenInEditor:v,api:w}),ie("div",{"aria-label":"Interactions list"},s.map(A=>ie(p9,{key:A.id,call:A,callsById:n,controls:o,controlStates:i,childCallIds:A.childCallIds,isHidden:A.isHidden,isCollapsed:A.isCollapsed,toggleCollapsed:A.toggleCollapsed,pausedAt:f}))),u&&!HR(u)&&ie(jC,null,ie(UC,null,"Caught exception in ",ie(Sh,null,"play")," function"),ie(zC,{"data-chromatic":"ignore",dangerouslySetInnerHTML:{__html:E.toHtml(Fh(u))}})),p&&ie(jC,null,ie(UC,null,"Unhandled Errors"),ie(O9,null,"Found ",p.length," unhandled error",p.length>1?"s":""," ","while running the play function. This might cause false positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the",ie(Sh,null,"test.dangerouslyIgnoreUnhandledErrors")," ","parameter to ",ie(Sh,null,"true"),"."),p.map((A,_)=>ie(zC,{key:_,"data-chromatic":"ignore"},Fh(A)))),ie("div",{ref:g}),r==="completed"&&!u&&!x&&ie(h8,null))},"InteractionsPanel"));function Fh(e){return e.stack||`${e.name}: ${e.message}`}a(Fh,"printSerializedError");var rs={detached:!1,start:!1,back:!1,goto:!1,next:!1,end:!1},HC={rendering:"rendering",playing:"playing",completed:"completed",errored:"errored",aborted:"aborted"},P9=["completed","errored","aborted"],k9={done:"status-value:success",error:"status-value:error",active:"status-value:pending",waiting:"status-value:pending"},D9=a(({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let o=new Map,i=new Map;return e.map(({callId:l,ancestors:c,status:u})=>{let p=!1;return c.forEach(f=>{r.has(f)&&(p=!0),i.set(f,(i.get(f)||[]).concat(l))}),{...t.get(l),status:u,isHidden:p}}).map(l=>{let c=l.status==="error"&&l.ancestors&&o.get(l.ancestors.slice(-1)[0])?.status==="active"?"active":l.status;return o.set(l.id,{...l,status:c}),{...l,status:c,childCallIds:i.get(l.id),isCollapsed:r.has(l.id),toggleCollapsed:a(()=>n(u=>(u.has(l.id)?u.delete(l.id):u.add(l.id),new Set(u))),"toggleCollapsed")}})},"getInteractions"),Zc=a((e,{log:t,calls:r,collapsed:n,setCollapsed:o})=>D9({log:t,calls:r,collapsed:n,setCollapsed:o}).reduce((i,s)=>(s.id===qr?i.interactions.push(s):e.status!=="rendering"&&(i.controlStates=e.controlStates,i.interactions.push(s),s.method!=="step"&&i.interactionsCount++),i),{...e,controlStates:rs,interactions:[],interactionsCount:0}),"getPanelState"),wh=a((e,t)=>({id:qr,method:"render",args:[],cursor:0,storyId:e,ancestors:[],path:[],interceptable:!0,retain:!1,exception:t}),"getInternalRenderCall"),Qc=a(e=>({callId:qr,status:e,ancestors:[]}),"getInternalRenderLogItem"),N9=At(a(function({refId:t,storyId:r,storyUrl:n}){let{statusValue:o,testRunId:i}=IA(H=>{let ee=t?void 0:H[r]?.[c8];return{statusValue:ee?.value,testRunId:ee?.data?.testRunId}}),s=zc(),l=St(),u=l.getData(s.storyId,s.refId)?.importPath,p=oe.CONFIG_TYPE==="DEVELOPMENT"&&!s.refId,[f,m]=Ma(fu,{status:"rendering",controlStates:rs,interactions:[],interactionsCount:0,hasException:!1,pausedAt:void 0,caughtException:void 0,unhandledErrors:void 0}),[g,b]=J(void 0),[y,S]=J(new Set),[v,w]=J(!1),{status:E="rendering",controlStates:x=rs,interactions:A=[],pausedAt:_=void 0,caughtException:C=void 0,unhandledErrors:O=void 0}=f,I=Q([Qc("active")]),P=Q(new Map([[qr,wh(r)]])),D=a(({status:H,...ee})=>P.current.set(ee.id,ee),"setCall"),j=Q();q(()=>{let H;return oe.IntersectionObserver&&(H=new oe.IntersectionObserver(([ee])=>b(ee.isIntersecting?void 0:ee.target),{root:oe.document.querySelector("#panel-tab-content")}),j.current&&H.observe(j.current)),()=>H?.disconnect()},[]);let $=Q(void 0),N=Q(0),F=Uc({[vt.CALL]:D,[vt.SYNC]:H=>{I.current=[Qc("done"),...H.logItems],m(ee=>Zc({...ee,controlStates:H.controlStates,pausedAt:H.pausedAt},{log:I.current,calls:P.current,collapsed:y,setCollapsed:S}))},[vr]:H=>{$.current===H.storyId&&["preparing","loading"].includes(H.newPhase)||($.current=H.storyId,N.current=Math.max(N.current,H.renderId||0),N.current===H.renderId&&(H.newPhase==="rendering"?(I.current=[Qc("active")],P.current.set(qr,wh(r)),m({status:"rendering",controlStates:rs,pausedAt:void 0,interactions:[],interactionsCount:0,hasException:!1,caughtException:void 0,unhandledErrors:void 0})):m(ee=>{let he=H.newPhase in HC&&!P9.includes(ee.status)?HC[H.newPhase]:ee.status;return Zc({...ee,status:he,pausedAt:void 0},{log:I.current,calls:P.current,collapsed:y,setCollapsed:S})})))},[Ol]:H=>{I.current=[Qc("error")],P.current.set(qr,wh(r,{...H,callId:qr})),m(ee=>Zc({...ee,hasException:!0,caughtException:void 0,controlStates:rs,pausedAt:void 0},{log:I.current,calls:P.current,collapsed:y,setCollapsed:S}))},[Al]:H=>{m(ee=>({...ee,caughtException:H,hasException:!0}))},[Il]:H=>{m(ee=>({...ee,unhandledErrors:H,hasException:!0}))}},[y]);q(()=>{m(H=>Zc(H,{log:I.current,calls:P.current,collapsed:y,setCollapsed:S}))},[m,y]);let B=ve(()=>({start:a(()=>F(vt.START,{storyId:r}),"start"),back:a(()=>F(vt.BACK,{storyId:r}),"back"),goto:a(H=>F(vt.GOTO,{storyId:r,callId:H}),"goto"),next:a(()=>F(vt.NEXT,{storyId:r}),"next"),end:a(()=>F(vt.END,{storyId:r}),"end"),rerun:a(()=>{F(ho,{storyId:r})},"rerun")}),[F,r]),M=Un("fileName",""),[W]=M.toString().split("/").slice(-1),z=a(()=>g?.scrollIntoView({behavior:"smooth",block:"end"}),"scrollToTarget"),V=!!C||!!O||A.some(H=>H.status==="error"),te=ve(()=>E!=="playing"&&(A.length>0||V)?V?"error":"done":E==="playing"?"active":void 0,[E,A,V]);return q(()=>{if(te&&o&&o!=="status-value:pending"&&o!==k9[te]){let ee=setTimeout(()=>w(he=>(he||F(i8,{type:"test-discrepancy",payload:{browserStatus:te==="done"?"PASS":"FAIL",cliStatus:te==="done"?"FAIL":"PASS",storyId:r,testRunId:i}}),!0)),2e3);return()=>clearTimeout(ee)}else w(!1)},[F,te,o,r,i]),d.createElement(Pe,{key:"component-tests"},d.createElement(I9,{storyUrl:n,status:E,hasResultMismatch:v,browserTestStatus:te,calls:P.current,controls:B,controlStates:{...x,detached:!!t||x.detached},interactions:A,fileName:W,hasException:V,caughtException:C,unhandledErrors:O,pausedAt:_,endRef:j,onScrollToEnd:g&&z,importPath:u,canOpenInEditor:p,api:l}))},"PanelMemoized"));function e_(){let t=St().getSelectedPanel(),[r={}]=Ma(fu),{status:n,hasException:o,interactionsCount:i}=r;return d.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},d.createElement("span",null,"Interactions"),i&&n!=="errored"&&!o?d.createElement(ko,{compact:!0,status:t===Xh?"active":"neutral"},i):null,n==="errored"||o?d.createElement(QR,{status:"error"}):null)}a(e_,"PanelTitle");var kue=Je.register(fu,()=>{if(globalThis?.FEATURES?.interactions){let e=a(({state:t})=>{let r=t.refId&&t.refs[t.refId]?.url||document.location.origin,{pathname:n,search:o=""}=t.location,i=n+(t.refId?o.replace(`/${t.refId}_`,"/"):o);return{refId:t.refId,storyId:t.storyId,storyUrl:r+i}},"filter");Je.add(Xh,{type:Yt.PANEL,title:a(()=>d.createElement(e_,null),"title"),match:a(({viewMode:t})=>t==="story","match"),render:a(({active:t})=>d.createElement(Gi,{active:!!t},d.createElement(OA,{filter:e},r=>d.createElement(N9,{...r}))),"render")})}}),F9=At(a(function(){let t=Un(jr),[r,n,o]=Hr(),[i,s]=J(!1),{options:l=Ks,disable:c=!0}=t||{};if(c)return null;let u=r[jr]||{},p=u.value,f=u.grid||!1,m=l[p],g=!!o?.[jr],b=Object.keys(l).length;return d.createElement(L9,{length:b,backgroundMap:l,item:m,updateGlobals:n,backgroundName:p,setIsTooltipVisible:s,isLocked:g,isGridActive:f,isTooltipVisible:i})},"BackgroundSelector")),L9=At(a(function(t){let{item:r,length:n,updateGlobals:o,setIsTooltipVisible:i,backgroundMap:s,backgroundName:l,isLocked:c,isGridActive:u,isTooltipVisible:p}=t,f=ne(m=>{o({[jr]:m})},[o]);return d.createElement(Pe,null,d.createElement(Ne,{key:"grid",active:u,disabled:c,title:"Apply a grid to the preview",onClick:()=>f({value:l,grid:!u})},d.createElement(Pb,null)),n>0?d.createElement(nt,{key:"background",placement:"top",closeOnOutsideClick:!0,tooltip:({onHide:m})=>d.createElement(Zi,{links:[...r?[{id:"reset",title:"Reset background",icon:d.createElement(Js,null),onClick:a(()=>{f(void 0),m()},"onClick")}]:[],...Object.entries(s).map(([g,b])=>({id:g,title:b.name,icon:d.createElement(Ws,{color:b?.value||"grey"}),active:g===l,onClick:a(()=>{f({value:g,grid:u}),m()},"onClick")}))].flat()}),onVisibleChange:i},d.createElement(Ne,{disabled:c,key:"background",title:"Change the background of the preview",active:!!r||p},d.createElement(Mb,null))):null)},"PureTool")),$ue=Je.register(Gs,()=>{globalThis?.FEATURES?.backgrounds&&Je.add(Gs,{title:"Backgrounds",type:Yt.TOOL,match:a(({viewMode:e,tabId:t})=>!!(e&&e.match(/^(story|docs)$/))&&!t,"match"),render:a(()=>d.createElement(F9,null),"render")})}),M9=a(()=>{let[e,t]=Hr(),{measureEnabled:r}=e||{},n=St(),o=ne(()=>t({measureEnabled:!r}),[t,r]);return q(()=>{n.setAddonShortcut(uo,{label:"Toggle Measure",defaultShortcut:["M"],actionName:"measure",showInMenu:!1,action:o})},[o,n]),d.createElement(Ne,{key:ad,active:r,title:"Enable measure",onClick:o},d.createElement(zb,null))},"Tool"),Jue=Je.register(uo,()=>{globalThis?.FEATURES?.measure&&Je.add(ad,{type:Yt.TOOL,title:"Measure",match:a(({viewMode:e,tabId:t})=>e==="story"&&!t,"match"),render:a(()=>d.createElement(M9,null),"render")})}),B9=At(a(function(){let[t,r]=Hr(),n=St(),o=[!0,"true"].includes(t[ta]),i=ne(()=>r({[ta]:!o}),[o]);return q(()=>{n.setAddonShortcut(Ys,{label:"Toggle Outline",defaultShortcut:["alt","O"],actionName:"outline",showInMenu:!1,action:i})},[i,n]),d.createElement(Ne,{key:"outline",active:o,title:"Apply outlines to the preview",onClick:i},d.createElement(Lb,null))},"OutlineSelector")),Que=Je.register(Ys,()=>{globalThis?.FEATURES?.outline&&Je.add(Ys,{title:"Outline",type:Yt.TOOL,match:a(({viewMode:e,tabId:t})=>!!(e&&e.match(/^(story|docs)$/))&&!t,"match"),render:a(()=>d.createElement(B9,null),"render")})}),t_=a((e,t)=>e.indexOf(t),"getCurrentViewportIndex"),$9=a((e,t)=>{let r=t_(e,t);return r===e.length-1?e[0]:e[r+1]},"getNextViewport"),j9=a((e,t)=>{let r=t_(e,t);return r<1?e[e.length-1]:e[r-1]},"getPreviousViewport"),U9=a(async(e,t,r,n)=>{await e.setAddonShortcut(wo,{label:"Previous viewport",defaultShortcut:["alt","shift","V"],actionName:"previous",action:a(()=>{r({viewport:j9(n,t)})},"action")}),await e.setAddonShortcut(wo,{label:"Next viewport",defaultShortcut:["alt","V"],actionName:"next",action:a(()=>{r({viewport:$9(n,t)})},"action")}),await e.setAddonShortcut(wo,{label:"Reset viewport",defaultShortcut:["alt","control","V"],actionName:"reset",action:a(()=>{r({viewport:{value:void 0,isRotated:!1}})},"action")})},"registerShortcuts"),z9=R.div({display:"inline-flex",alignItems:"center"}),VC=R.div(({theme:e})=>({display:"inline-block",textDecoration:"none",padding:10,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,lineHeight:"1",height:40,border:"none",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",background:"transparent"})),H9=R(Ne)(()=>({display:"inline-flex",alignItems:"center"})),V9=R.div(({theme:e})=>({fontSize:e.typography.size.s2-1,marginLeft:10})),W9={desktop:d.createElement(xb,null),mobile:d.createElement(Fb,null),tablet:d.createElement(qb,null),other:d.createElement(Pe,null)},J9=a(({api:e})=>{let t=Un(xo),[r,n,o]=Hr(),[i,s]=J(!1),{options:l=_A,disable:c}=t||{},u=r?.[xo]||{},p=typeof u=="string"?u:u.value,f=typeof u=="string"?!1:!!u.isRotated,m=l[p]||La,g=i||m!==La,b=xo in o,y=Object.keys(l).length;if(q(()=>{U9(e,p,n,Object.keys(l))},[l,p,n,e]),m.styles===null||!l||y<1)return null;if(typeof m.styles=="function")return console.warn("Addon Viewport no longer supports dynamic styles using a function, use css calc() instead"),null;let S=f?m.styles.height:m.styles.width,v=f?m.styles.width:m.styles.height;return c?null:d.createElement(q9,{item:m,updateGlobals:n,viewportMap:l,viewportName:p,isRotated:f,setIsTooltipVisible:s,isLocked:b,isActive:g,width:S,height:v})},"ViewportTool"),q9=d.memo(a(function(t){let{item:r,viewportMap:n,viewportName:o,isRotated:i,updateGlobals:s,setIsTooltipVisible:l,isLocked:c,isActive:u,width:p,height:f}=t,m=ne(g=>s({[xo]:g}),[s]);return d.createElement(Pe,null,d.createElement(nt,{placement:"bottom",tooltip:({onHide:g})=>d.createElement(Zi,{links:[...length>0&&r!==La?[{id:"reset",title:"Reset viewport",icon:d.createElement(Js,null),onClick:a(()=>{m(void 0),g()},"onClick")}]:[],...Object.entries(n).map(([b,y])=>({id:b,title:y.name,icon:W9[y.type],active:b===o,onClick:a(()=>{m({value:b,isRotated:!1}),g()},"onClick")}))].flat()}),closeOnOutsideClick:!0,onVisibleChange:l},d.createElement(H9,{disabled:c,key:"viewport",title:"Change the size of the preview",active:u,onDoubleClick:()=>{m({value:void 0,isRotated:!1})}},d.createElement(kb,null),r!==La?d.createElement(V9,null,r.name," ",i?"(L)":"(P)"):null)),d.createElement(yg,{styles:{'iframe[data-is-storybook="true"]':{width:p,height:f}}}),r!==La?d.createElement(z9,null,d.createElement(VC,{title:"Viewport width"},p.replace("px","")),c?"/":d.createElement(Ne,{key:"viewport-rotate",title:"Rotate viewport",onClick:()=>{m({value:o,isRotated:!i})}},d.createElement(Gb,null)),d.createElement(VC,{title:"Viewport height"},f.replace("px",""))):null)},"PureTool")),ude=Je.register(wo,e=>{globalThis?.FEATURES?.viewport&&Je.add(b1,{title:"viewport / media-queries",type:Yt.TOOL,match:a(({viewMode:t,tabId:r})=>t==="story"&&!r,"match"),render:a(()=>ie(J9,{api:e}),"render")})}),G9="tag-filters",Y9="static-filter",dde=Je.register(G9,e=>{let t=Object.entries(oe.TAGS_OPTIONS??{}).reduce((r,n)=>{let[o,i]=n;return i.excludeFromSidebar&&(r[o]=!0),r},{});e.experimental_setFilter(Y9,r=>{let n=r.tags??[];return(n.includes("dev")||r.type==="docs")&&n.filter(o=>t[o]).length===0})});})();
|
|
921
|
+
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
|