@stfrigerio/sito-template 0.1.35 → 0.1.37
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/__tests__/setup.d.ts +2 -0
- package/dist/__tests__/setup.d.ts.map +1 -0
- package/dist/components/atoms/AllAtoms.stories.d.ts +1 -1
- package/dist/components/atoms/AllAtoms.stories.d.ts.map +1 -1
- package/dist/components/atoms/Button/Button.stories.d.ts +2 -14
- package/dist/components/atoms/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/atoms/Card/Card.stories.d.ts +4 -23
- package/dist/components/atoms/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts.map +1 -1
- package/dist/components/atoms/DateInput/DateInput.d.ts +1 -1
- package/dist/components/atoms/DateInput/DateInput.d.ts.map +1 -1
- package/dist/components/atoms/DateInput/DateInput.stories.d.ts +1 -1
- package/dist/components/atoms/DateInput/DateInput.stories.d.ts.map +1 -1
- package/dist/components/atoms/DecryptedText/DecryptedText.d.ts +50 -0
- package/dist/components/atoms/DecryptedText/DecryptedText.d.ts.map +1 -0
- package/dist/components/atoms/DecryptedText/index.d.ts +3 -0
- package/dist/components/atoms/DecryptedText/index.d.ts.map +1 -0
- package/dist/components/atoms/EmptyState/EmptyState.d.ts +53 -0
- package/dist/components/atoms/EmptyState/EmptyState.d.ts.map +1 -0
- package/dist/components/atoms/EmptyState/index.d.ts +3 -0
- package/dist/components/atoms/EmptyState/index.d.ts.map +1 -0
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.d.ts.map +1 -1
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/atoms/LoadingSpinner/LoadingSpinner.stories.d.ts.map +1 -1
- package/dist/components/atoms/Modal/Modal.d.ts +61 -0
- package/dist/components/atoms/Modal/Modal.d.ts.map +1 -0
- package/dist/components/atoms/Modal/index.d.ts +3 -0
- package/dist/components/atoms/Modal/index.d.ts.map +1 -0
- package/dist/components/atoms/NumberStepper/NumberStepper.d.ts.map +1 -1
- package/dist/components/atoms/NumberStepper/NumberStepper.stories.d.ts +1 -1
- package/dist/components/atoms/NumberStepper/NumberStepper.stories.d.ts.map +1 -1
- package/dist/components/atoms/SearchableDropdown/SearchableDropdown.stories.d.ts +1 -1
- package/dist/components/atoms/SearchableDropdown/SearchableDropdown.stories.d.ts.map +1 -1
- package/dist/components/atoms/SelectInput/SelectInput.d.ts +4 -2
- package/dist/components/atoms/SelectInput/SelectInput.d.ts.map +1 -1
- package/dist/components/atoms/Slider/Slider.stories.d.ts +2 -10
- package/dist/components/atoms/Slider/Slider.stories.d.ts.map +1 -1
- package/dist/components/atoms/SoundDemo/SoundDemo.d.ts +11 -0
- package/dist/components/atoms/SoundDemo/SoundDemo.d.ts.map +1 -0
- package/dist/components/atoms/SoundDemo/SoundDemo.stories.d.ts +1 -1
- package/dist/components/atoms/SoundDemo/SoundDemo.stories.d.ts.map +1 -1
- package/dist/components/atoms/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/atoms/TextArea/TextArea.stories.d.ts +1 -1
- package/dist/components/atoms/TextArea/TextArea.stories.d.ts.map +1 -1
- package/dist/components/atoms/TextInput/TextInput.d.ts +1 -1
- package/dist/components/atoms/TextInput/TextInput.d.ts.map +1 -1
- package/dist/components/atoms/TextInput/TextInput.stories.d.ts +1 -4
- package/dist/components/atoms/TextInput/TextInput.stories.d.ts.map +1 -1
- package/dist/components/atoms/Toggle/Toggle.d.ts +5 -4
- package/dist/components/atoms/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/atoms/Toggle/Toggle.stories.d.ts +1 -1
- package/dist/components/atoms/Toggle/Toggle.stories.d.ts.map +1 -1
- package/dist/components/atoms/ToggleButton/ToggleButton.stories.d.ts +1 -1
- package/dist/components/atoms/ToggleButton/ToggleButton.stories.d.ts.map +1 -1
- package/dist/components/atoms/index.d.ts +6 -0
- package/dist/components/atoms/index.d.ts.map +1 -1
- package/dist/components/molecules/ArrayInput/ArrayInput.d.ts +3 -3
- package/dist/components/molecules/ArrayInput/ArrayInput.d.ts.map +1 -1
- package/dist/components/molecules/ArrayInput/ArrayInput.stories.d.ts +1 -1
- package/dist/components/molecules/ArrayInput/ArrayInput.stories.d.ts.map +1 -1
- package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts +28 -0
- package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/molecules/Breadcrumb/index.d.ts +3 -0
- package/dist/components/molecules/Breadcrumb/index.d.ts.map +1 -0
- package/dist/components/molecules/EditFAB/EditFAB.stories.d.ts +1 -1
- package/dist/components/molecules/EditFAB/EditFAB.stories.d.ts.map +1 -1
- package/dist/components/molecules/LiquidButton/LiquidButton.d.ts +33 -0
- package/dist/components/molecules/LiquidButton/LiquidButton.d.ts.map +1 -0
- package/dist/components/molecules/LiquidButton/index.d.ts +3 -0
- package/dist/components/molecules/LiquidButton/index.d.ts.map +1 -0
- package/dist/components/molecules/SearchBar/SearchBar.stories.d.ts +1 -1
- package/dist/components/molecules/SearchBar/SearchBar.stories.d.ts.map +1 -1
- package/dist/components/molecules/Tabs/Tabs.d.ts +1 -1
- package/dist/components/molecules/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/molecules/Tabs/Tabs.stories.d.ts +1 -1
- package/dist/components/molecules/Tabs/Tabs.stories.d.ts.map +1 -1
- package/dist/components/molecules/ThemeSwitcher/ThemeSwitcher.d.ts +4 -3
- package/dist/components/molecules/ThemeSwitcher/ThemeSwitcher.d.ts.map +1 -1
- package/dist/components/molecules/ThemeSwitcher/ThemeSwitcher.stories.d.ts +1 -1
- package/dist/components/molecules/ThemeSwitcher/ThemeSwitcher.stories.d.ts.map +1 -1
- package/dist/components/molecules/TimeInput/TimeInput.stories.d.ts +1 -1
- package/dist/components/molecules/TimeInput/TimeInput.stories.d.ts.map +1 -1
- package/dist/components/molecules/Toast/Toast.d.ts +16 -0
- package/dist/components/molecules/Toast/Toast.d.ts.map +1 -0
- package/dist/components/molecules/Toast/index.d.ts +3 -0
- package/dist/components/molecules/Toast/index.d.ts.map +1 -0
- package/dist/components/molecules/index.d.ts +6 -0
- package/dist/components/molecules/index.d.ts.map +1 -1
- package/dist/components/organisms/Calendar/Calendar.d.ts +1 -1
- package/dist/components/organisms/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/organisms/Calendar/Calendar.stories.d.ts +1 -1
- package/dist/components/organisms/Calendar/Calendar.stories.d.ts.map +1 -1
- package/dist/components/organisms/ConfirmationModal/ConfirmationModal.d.ts +30 -0
- package/dist/components/organisms/ConfirmationModal/ConfirmationModal.d.ts.map +1 -0
- package/dist/components/organisms/ConfirmationModal/index.d.ts +3 -0
- package/dist/components/organisms/ConfirmationModal/index.d.ts.map +1 -0
- package/dist/components/organisms/ImageSlideshow/ImageSlideshow.d.ts +1 -1
- package/dist/components/organisms/ImageSlideshow/ImageSlideshow.d.ts.map +1 -1
- package/dist/components/organisms/ImageSlideshow/ImageSlideshow.stories.d.ts +1 -6
- package/dist/components/organisms/ImageSlideshow/ImageSlideshow.stories.d.ts.map +1 -1
- package/dist/components/organisms/Navbar/Navbar.d.ts +3 -2
- package/dist/components/organisms/Navbar/Navbar.d.ts.map +1 -1
- package/dist/components/organisms/Navbar/Navbar.stories.d.ts +1 -1
- package/dist/components/organisms/Navbar/Navbar.stories.d.ts.map +1 -1
- package/dist/components/organisms/Table/Table.d.ts +6 -6
- package/dist/components/organisms/Table/Table.d.ts.map +1 -1
- package/dist/components/organisms/Table/Table.stories.d.ts +26 -14
- package/dist/components/organisms/Table/Table.stories.d.ts.map +1 -1
- package/dist/components/organisms/ThemeProvider/ThemeProvider.d.ts +3 -1
- package/dist/components/organisms/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/components/organisms/charts/BooleansHeatmap/BooleansHeatmap.d.ts.map +1 -1
- package/dist/components/organisms/charts/BooleansHeatmap/BooleansHeatmap.stories.d.ts +1 -1
- package/dist/components/organisms/charts/BooleansHeatmap/BooleansHeatmap.stories.d.ts.map +1 -1
- package/dist/components/organisms/charts/MoodChart/MoodChart.stories.d.ts +1 -1
- package/dist/components/organisms/charts/MoodChart/MoodChart.stories.d.ts.map +1 -1
- package/dist/components/organisms/charts/PieChart/PieChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/PieChart/PieChart.stories.d.ts +1 -1
- package/dist/components/organisms/charts/PieChart/PieChart.stories.d.ts.map +1 -1
- package/dist/components/organisms/charts/QuantifiableHabitsChart/QuantifiableHabitsChart.d.ts +2 -0
- package/dist/components/organisms/charts/QuantifiableHabitsChart/QuantifiableHabitsChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/QuantifiableHabitsChart/QuantifiableHabitsChart.stories.d.ts +1 -1
- package/dist/components/organisms/charts/QuantifiableHabitsChart/QuantifiableHabitsChart.stories.d.ts.map +1 -1
- package/dist/components/organisms/charts/SleepChart/SleepChart.stories.d.ts +1 -1
- package/dist/components/organisms/charts/SleepChart/SleepChart.stories.d.ts.map +1 -1
- package/dist/components/organisms/charts/SunburstChart/SunburstChart.d.ts.map +1 -1
- package/dist/components/organisms/charts/SunburstChart/SunburstChart.stories.d.ts +1 -1
- package/dist/components/organisms/charts/SunburstChart/SunburstChart.stories.d.ts.map +1 -1
- package/dist/components/organisms/index.d.ts +3 -1
- package/dist/components/organisms/index.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +813 -465
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +833 -477
- package/dist/index.js.map +1 -1
- package/dist/stories/utils.d.ts +2 -2
- package/dist/stories/utils.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/dist/themes/default.css +47 -0
- package/dist/themes/dmood.css +46 -0
- package/dist/themes/globals.css +110 -0
- package/dist/themes/lossito.css +52 -0
- package/dist/tokens/tokens.css +79 -0
- package/dist/utils/formUtils.d.ts +0 -5
- package/dist/utils/formUtils.d.ts.map +1 -1
- package/package.json +32 -10
- package/storybook-static/addon-visual-tests-assets/visual-test-illustration.mp4 +0 -0
- package/storybook-static/assets/AllAtoms.stories-DBoQZmq-.js +109 -0
- package/storybook-static/assets/AnimationPlayer-UXJjBKtF.css +1 -0
- package/storybook-static/assets/AnimationPlayer.stories-yXQ8fqUT.js +379 -0
- package/storybook-static/assets/ArrayInput-CkUpk1TR.css +1 -0
- package/storybook-static/assets/ArrayInput.stories-CRqKExgm.js +221 -0
- package/storybook-static/assets/BooleansHeatmap-BV4VTyo6.css +1 -0
- package/storybook-static/assets/BooleansHeatmap.stories-2u4SThph.js +123 -0
- package/storybook-static/assets/Button-O-w2-ag3.css +1 -0
- package/storybook-static/assets/Button-VfdDKp2T.js +37 -0
- package/storybook-static/assets/Button.stories-BeeBKHoX.js +117 -0
- package/storybook-static/assets/Calendar-BTQfDDfP.css +1 -0
- package/storybook-static/assets/Calendar.stories-CKOG4XAn.js +545 -0
- package/storybook-static/assets/Card-Bc7TyfBx.css +1 -0
- package/storybook-static/assets/Card-D-kcaQHV.js +49 -0
- package/storybook-static/assets/Card.stories-CpcboxKs.js +130 -0
- package/storybook-static/assets/Checkbox-BHwlDfRP.js +33 -0
- package/storybook-static/assets/Checkbox-DMUHtq9s.css +1 -0
- package/storybook-static/assets/Checkbox.stories-DxTQrFgm.js +83 -0
- package/storybook-static/assets/Color-AVL7NMMY-BzNNgCT5.js +1 -0
- package/storybook-static/assets/DateInput-C4-Rlnpy.css +1 -0
- package/storybook-static/assets/DateInput-Cu3PZYc0.js +33 -0
- package/storybook-static/assets/DateInput.stories-BGB5zJBm.js +119 -0
- package/storybook-static/assets/DocsRenderer-PQXLIZUC-q9kcQxfH.js +1243 -0
- package/storybook-static/assets/EditFAB-CntUhqRB.css +1 -0
- package/storybook-static/assets/EditFAB.stories-CmfJxWns.js +408 -0
- package/storybook-static/assets/MoodChart-2hr_Y2GI.css +1 -0
- package/storybook-static/assets/MoodChart.stories-V-wKOSu-.js +40 -0
- package/storybook-static/assets/Navbar-B8vEvGnB.css +1 -0
- package/storybook-static/assets/Navbar.stories-Dkf77idX.js +235 -0
- package/storybook-static/assets/NumberStepper-BVHPJutJ.css +1 -0
- package/storybook-static/assets/NumberStepper-BZGlrWCN.js +30 -0
- package/storybook-static/assets/NumberStepper.stories-NZw7r4Oh.js +127 -0
- package/storybook-static/assets/PieChart-OfDGlJ4g.css +1 -0
- package/storybook-static/assets/PieChart.stories-BkfNODjW.js +199 -0
- package/storybook-static/assets/QuantifiableHabitsChart-BEfzqND4.css +1 -0
- package/storybook-static/assets/QuantifiableHabitsChart.stories-Df6rcrdD.js +105 -0
- package/storybook-static/assets/SearchBar-CYhuHFt7.css +1 -0
- package/storybook-static/assets/SearchBar.stories-DmHIaDZB.js +154 -0
- package/storybook-static/assets/SearchableDropdown-ByAXm1md.js +38 -0
- package/storybook-static/assets/SearchableDropdown-CLYLzeoj.css +1 -0
- package/storybook-static/assets/SearchableDropdown.stories-ByZj6lJu.js +282 -0
- package/storybook-static/assets/SelectInput-BTPptV1H.css +1 -0
- package/storybook-static/assets/SelectInput-D-AwfWVz.js +31 -0
- package/storybook-static/assets/SelectInput.stories-MyE-GqOw.js +112 -0
- package/storybook-static/assets/SleepChart-yGsG5RlQ.css +1 -0
- package/storybook-static/assets/SleepChart.stories-Dsz1U6F9.js +58 -0
- package/storybook-static/assets/SunburstChart-ChXvU9py.css +1 -0
- package/storybook-static/assets/SunburstChart.stories-CphfyDsR.js +285 -0
- package/storybook-static/assets/Tabs-BfJ7skOE.css +1 -0
- package/storybook-static/assets/Tabs.stories-c24Ffu3K.js +49 -0
- package/storybook-static/assets/TextArea-B2UrQsuf.css +1 -0
- package/storybook-static/assets/TextArea-B_sATPlw.js +28 -0
- package/storybook-static/assets/TextArea.stories-CCqRRpwq.js +145 -0
- package/storybook-static/assets/TextInput-BjVJQEYN.css +1 -0
- package/storybook-static/assets/TextInput-ZGg8LTL_.js +28 -0
- package/storybook-static/assets/TextInput.stories-CtvOb60q.js +203 -0
- package/storybook-static/assets/ThemeSwitcher-XCVQ6hhy.css +1 -0
- package/storybook-static/assets/ThemeSwitcher.stories-BvkX1SDm.js +62 -0
- package/storybook-static/assets/TimeInput-C3enPYoV.css +1 -0
- package/storybook-static/assets/TimeInput.stories-BchhRfKo.js +50 -0
- package/storybook-static/assets/Toggle-BQ2KHBDr.js +39 -0
- package/storybook-static/assets/Toggle-DhKq5lh5.css +1 -0
- package/storybook-static/assets/Toggle.stories-BUSZc6m3.js +194 -0
- package/storybook-static/assets/ToggleButton-Dl6hvkJv.js +32 -0
- package/storybook-static/assets/ToggleButton-gfPoPxTQ.css +1 -0
- package/storybook-static/assets/ToggleButton.stories-BKN4zU3N.js +143 -0
- package/storybook-static/assets/arc-DgcIQOLP.js +1 -0
- package/storybook-static/assets/array-BKyUJesY.js +1 -0
- package/storybook-static/assets/defaultLocale-DJ2q5QjE.js +1 -0
- package/storybook-static/assets/iframe-BOc1hSA-.css +1 -0
- package/storybook-static/assets/iframe-BUaP2gIF.js +1087 -0
- package/storybook-static/assets/index-5bdJXrkD.js +1 -0
- package/storybook-static/assets/index-CBmvvqzc.js +1 -0
- package/storybook-static/assets/index-CZs7_DA6.js +9 -0
- package/storybook-static/assets/linear-4t_RuQok.js +1 -0
- package/storybook-static/assets/monotone-BYG7Mesf.js +1 -0
- package/storybook-static/assets/path-CbwjOpE9.js +1 -0
- package/storybook-static/assets/preload-helper-C1FmrZbK.js +1 -0
- package/storybook-static/assets/proxy-9Y4F2rF8.js +1 -0
- package/storybook-static/assets/react-18-D4c-_GAk.js +24 -0
- package/storybook-static/assets/transform-NloTqvdv.js +1 -0
- package/storybook-static/favicon-wrapper.svg +46 -0
- package/storybook-static/favicon.svg +1 -0
- package/storybook-static/iframe.html +726 -0
- package/storybook-static/index.html +164 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-4/manager-bundle.js +356 -0
- package/storybook-static/sb-addons/chromatic-com-storybook-4/manager-bundle.js.LEGAL.txt +40 -0
- package/storybook-static/sb-addons/docs-2/manager-bundle.js +151 -0
- package/storybook-static/sb-addons/links-3/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/onboarding-1/manager-bundle.js +127 -0
- package/storybook-static/sb-addons/storybook-5/manager-bundle.js +3 -0
- package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/storybook-static/sb-common-assets/favicon-wrapper.svg +46 -0
- package/storybook-static/sb-common-assets/favicon.svg +1 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/globals-module-info.js +797 -0
- package/storybook-static/sb-manager/globals-runtime.js +69653 -0
- package/storybook-static/sb-manager/globals.js +34 -0
- package/storybook-static/sb-manager/runtime.js +13181 -0
- package/storybook-static/vite-inject-mocker-entry.js +18 -0
|
@@ -0,0 +1,1243 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Color-AVL7NMMY-BzNNgCT5.js","./iframe-BUaP2gIF.js","./preload-helper-C1FmrZbK.js","./iframe-BOc1hSA-.css","./react-18-D4c-_GAk.js","./index-CBmvvqzc.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var NC=Object.defineProperty;var jC=(e,t,r)=>t in e?NC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Lt=(e,t,r)=>jC(e,typeof t!="symbol"?t+"":t,r);import{_ as dc}from"./preload-helper-C1FmrZbK.js";import{r as b,R as y,j as q,V as uh,h as Tp,T as Rl}from"./iframe-BUaP2gIF.js";import{P as ch,r as pc,a as MC,u as zC}from"./react-18-D4c-_GAk.js";var HC=Object.defineProperty,O=(e,t)=>HC(e,"name",{value:t,configurable:!0});const{once:UC}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_REMOUNT:Rp,SET_CURRENT_STORY:WC,STORY_RENDER_PHASE_CHANGED:VC}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:dt}=__STORYBOOK_MODULE_GLOBAL__;var qC={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]},GC=Object.entries(qC);function Fi(e){return String(e)}O(Fi,"a");Fi.open="";Fi.close="";function dh(e=!1){let t=typeof process<"u"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}O(dh,"C");function ph(e=!1){let t=dh(e),r=O((i,l,s,u)=>{let d="",p=0;do d+=i.substring(p,u)+s,p=u+l.length,u=i.indexOf(l,p);while(~u);return d+i.substring(p)},"i"),n=O((i,l,s=i)=>{let u=O(d=>{let p=String(d),c=p.indexOf(l,i.length);return~c?i+r(p,l,s,c)+l:i+p+l},"o");return u.open=i,u.close=l,u},"g"),o={isColorSupported:t},a=O(i=>`\x1B[${i}m`,"d");for(let[i,l]of GC)o[i]=t?n(a(l[0]),a(l[1]),l[2]):Fi;return o}O(ph,"p");var rr=ph();function fc(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:O(function(){return r[n]},"get")})}})}),Object.freeze(e)}O(fc,"_mergeNamespaces");function fh(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}O(fh,"getKeysOfEnumerableProperties");function ao(e,t,r,n,o,a,i=": "){let l="",s=0,u=e.next();if(!u.done){l+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(l+=d,s++===t.maxWidth){l+="…";break}let p=a(u.value[0],t,d,n,o),c=a(u.value[1],t,d,n,o);l+=p+i+c,u=e.next(),u.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}O(ao,"printIteratorEntries");function _i(e,t,r,n,o,a){let i="",l=0,s=e.next();if(!s.done){i+=t.spacingOuter;let u=r+t.indent;for(;!s.done;){if(i+=u,l++===t.maxWidth){i+="…";break}i+=a(s.value,t,u,n,o),s=e.next(),s.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}O(_i,"printIteratorValues");function qo(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=O(u=>u instanceof DataView,"isDataView"),s=l(e)?e.byteLength:e.length;if(s>0){i+=t.spacingOuter;let u=r+t.indent;for(let d=0;d<s;d++){if(i+=u,d===t.maxWidth){i+="…";break}(l(e)||d in e)&&(i+=a(l(e)?e.getInt8(d):e[d],t,u,n,o)),d<s-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}O(qo,"printListItems");function Ti(e,t,r,n,o,a){let i="",l=fh(e,t.compareKeys);if(l.length>0){i+=t.spacingOuter;let s=r+t.indent;for(let u=0;u<l.length;u++){let d=l[u],p=a(d,t,s,n,o),c=a(e[d],t,s,n,o);i+=`${s+p}: ${c}`,u<l.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}O(Ti,"printObjectProperties");var YC=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,Pl=" ",KC=O((e,t,r,n,o,a)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Pl}[${qo(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+Pl}{${Ti(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+Pl+a(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"),XC=O(e=>e&&e.$$typeof===YC,"test$5"),ZC={serialize:KC,test:XC},JC=" ",mh=new Set(["DOMStringMap","NamedNodeMap"]),QC=/^(?:HTML\w*Collection|NodeList)$/;function gh(e){return mh.has(e)||QC.test(e)}O(gh,"testName");var e2=O(e=>e&&e.constructor&&!!e.constructor.name&&gh(e.constructor.name),"test$4");function hh(e){return e.constructor.name==="NamedNodeMap"}O(hh,"isNamedNodeMap");var t2=O((e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+JC)+(mh.has(i)?`{${Ti(hh(e)?[...e].reduce((l,s)=>(l[s.name]=s.value,l),{}):{...e},t,r,n,o,a)}}`:`[${qo([...e],t,r,n,o,a)}]`)},"serialize$4"),r2={serialize:t2,test:e2};function mc(e){return e.replaceAll("<","<").replaceAll(">",">")}O(mc,"escapeHTML");function Ri(e,t,r,n,o,a,i){let l=n+r.indent,s=r.colors;return e.map(u=>{let d=t[u],p=i(d,r,l,o,a);return typeof d!="string"&&(p.includes(`
|
|
3
|
+
`)&&(p=r.spacingOuter+l+p+r.spacingOuter+n),p=`{${p}}`),`${r.spacingInner+n+s.prop.open+u+s.prop.close}=${s.value.open}${p}${s.value.close}`}).join("")}O(Ri,"printProps");function Pi(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?gc(i,t):a(i,t,r,n,o))).join("")}O(Pi,"printChildren");function gc(e,t){let r=t.colors.content;return r.open+mc(e)+r.close}O(gc,"printText");function yh(e,t){let r=t.colors.comment;return`${r.open}<!--${mc(e)}-->${r.close}`}O(yh,"printComment");function Ii(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}</${e}`:`${t&&!n.min?"":" "}/`}>${a.close}`}O(Ii,"printElement");function Li(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}O(Li,"printElementAsLeaf");var n2=1,bh=3,vh=8,xh=11,o2=/^(?:(?:HTML|SVG)\w*)?Element$/;function Eh(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}O(Eh,"testHasAttribute");function wh(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||Eh(e);return r===n2&&(o2.test(t)||o)||r===bh&&t==="Text"||r===vh&&t==="Comment"||r===xh&&t==="DocumentFragment"}O(wh,"testNode");var a2=O(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&wh(e)},"test$3");function Sh(e){return e.nodeType===bh}O(Sh,"nodeIsText");function Ch(e){return e.nodeType===vh}O(Ch,"nodeIsComment");function Ia(e){return e.nodeType===xh}O(Ia,"nodeIsFragment");var i2=O((e,t,r,n,o,a)=>{if(Sh(e))return gc(e.data,t);if(Ch(e))return yh(e.data,t);let i=Ia(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Li(i,t):Ii(i,Ri(Ia(e)?[]:Array.from(e.attributes,l=>l.name).sort(),Ia(e)?{}:[...e.attributes].reduce((l,s)=>(l[s.name]=s.value,l),{}),t,r+t.indent,n,o,a),Pi(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},"serialize$3"),l2={serialize:i2,test:a2},s2="@@__IMMUTABLE_ITERABLE__@@",u2="@@__IMMUTABLE_LIST__@@",c2="@@__IMMUTABLE_KEYED__@@",d2="@@__IMMUTABLE_MAP__@@",Pp="@@__IMMUTABLE_ORDERED__@@",p2="@@__IMMUTABLE_RECORD__@@",f2="@@__IMMUTABLE_SEQ__@@",m2="@@__IMMUTABLE_SET__@@",g2="@@__IMMUTABLE_STACK__@@",Ln=O(e=>`Immutable.${e}`,"getImmutableName"),Bi=O(e=>`[${e}]`,"printAsLeaf"),Go=" ",Ip="…";function $h(e,t,r,n,o,a,i){return++n>t.maxDepth?Bi(Ln(i)):`${Ln(i)+Go}{${ao(e.entries(),t,r,n,o,a)}}`}O($h,"printImmutableEntries");function Ah(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}}}}O(Ah,"getRecordEntries");function Dh(e,t,r,n,o,a){let i=Ln(e._name||"Record");return++n>t.maxDepth?Bi(i):`${i+Go}{${ao(Ah(e),t,r,n,o,a)}}`}O(Dh,"printImmutableRecord");function kh(e,t,r,n,o,a){let i=Ln("Seq");return++n>t.maxDepth?Bi(i):e[c2]?`${i+Go}{${e._iter||e._object?ao(e.entries(),t,r,n,o,a):Ip}}`:`${i+Go}[${e._iter||e._array||e._collection||e._iterable?_i(e.values(),t,r,n,o,a):Ip}]`}O(kh,"printImmutableSeq");function La(e,t,r,n,o,a,i){return++n>t.maxDepth?Bi(Ln(i)):`${Ln(i)+Go}[${_i(e.values(),t,r,n,o,a)}]`}O(La,"printImmutableValues");var h2=O((e,t,r,n,o,a)=>e[d2]?$h(e,t,r,n,o,a,e[Pp]?"OrderedMap":"Map"):e[u2]?La(e,t,r,n,o,a,"List"):e[m2]?La(e,t,r,n,o,a,e[Pp]?"OrderedSet":"Set"):e[g2]?La(e,t,r,n,o,a,"Stack"):e[f2]?kh(e,t,r,n,o,a):Dh(e,t,r,n,o,a),"serialize$2"),y2=O(e=>e&&(e[s2]===!0||e[p2]===!0),"test$2"),b2={serialize:h2,test:y2};function hc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}O(hc,"getDefaultExportFromCjs");var Lp={exports:{}},ge={},Bp;function Oh(){return Bp||(Bp=1,function(){function e(h){if(typeof h=="object"&&h!==null){var v=h.$$typeof;switch(v){case t:switch(h=h.type,h){case n:case a:case o:case u:case d:case f:return h;default:switch(h=h&&h.$$typeof,h){case l:case s:case c:case p:return h;case i:return h;default:return v}}case r:return v}}}O(e,"typeOf");var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");ge.ContextConsumer=i,ge.ContextProvider=l,ge.Element=t,ge.ForwardRef=s,ge.Fragment=n,ge.Lazy=c,ge.Memo=p,ge.Portal=r,ge.Profiler=a,ge.StrictMode=o,ge.Suspense=u,ge.SuspenseList=d,ge.isContextConsumer=function(h){return e(h)===i},ge.isContextProvider=function(h){return e(h)===l},ge.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},ge.isForwardRef=function(h){return e(h)===s},ge.isFragment=function(h){return e(h)===n},ge.isLazy=function(h){return e(h)===c},ge.isMemo=function(h){return e(h)===p},ge.isPortal=function(h){return e(h)===r},ge.isProfiler=function(h){return e(h)===a},ge.isStrictMode=function(h){return e(h)===o},ge.isSuspense=function(h){return e(h)===u},ge.isSuspenseList=function(h){return e(h)===d},ge.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===a||h===o||h===u||h===d||typeof h=="object"&&h!==null&&(h.$$typeof===c||h.$$typeof===p||h.$$typeof===l||h.$$typeof===i||h.$$typeof===s||h.$$typeof===m||h.getModuleId!==void 0)},ge.typeOf=e}()),ge}O(Oh,"requireReactIs_development$1");var Np;function Fh(){return Np||(Np=1,Lp.exports=Oh()),Lp.exports}O(Fh,"requireReactIs$1");var _h=Fh(),v2=hc(_h),x2=fc({__proto__:null,default:v2},[_h]),jp={exports:{}},fe={},Mp;function Th(){return Mp||(Mp=1,function(){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"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=!1,h=!1,v=!1,E=!1,w=!1,S;S=Symbol.for("react.module.reference");function x(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===o||w||U===n||U===u||U===d||E||U===f||m||h||v||typeof U=="object"&&U!==null&&(U.$$typeof===c||U.$$typeof===p||U.$$typeof===a||U.$$typeof===i||U.$$typeof===s||U.$$typeof===S||U.getModuleId!==void 0))}O(x,"isValidElementType");function $(U){if(typeof U=="object"&&U!==null){var me=U.$$typeof;switch(me){case e:var ke=U.type;switch(ke){case r:case o:case n:case u:case d:return ke;default:var be=ke&&ke.$$typeof;switch(be){case l:case i:case s:case c:case p:case a:return be;default:return me}}case t:return me}}}O($,"typeOf");var A=i,C=a,D=e,F=s,k=r,_=c,I=p,L=t,j=o,B=n,M=u,V=d,G=!1,W=!1;function Y(U){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}O(Y,"isAsyncMode");function X(U){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}O(X,"isConcurrentMode");function re(U){return $(U)===i}O(re,"isContextConsumer");function oe(U){return $(U)===a}O(oe,"isContextProvider");function J(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}O(J,"isElement");function H(U){return $(U)===s}O(H,"isForwardRef");function Z(U){return $(U)===r}O(Z,"isFragment");function te(U){return $(U)===c}O(te,"isLazy");function le(U){return $(U)===p}O(le,"isMemo");function se(U){return $(U)===t}O(se,"isPortal");function Re(U){return $(U)===o}O(Re,"isProfiler");function ae(U){return $(U)===n}O(ae,"isStrictMode");function pe(U){return $(U)===u}O(pe,"isSuspense");function z(U){return $(U)===d}O(z,"isSuspenseList"),fe.ContextConsumer=A,fe.ContextProvider=C,fe.Element=D,fe.ForwardRef=F,fe.Fragment=k,fe.Lazy=_,fe.Memo=I,fe.Portal=L,fe.Profiler=j,fe.StrictMode=B,fe.Suspense=M,fe.SuspenseList=V,fe.isAsyncMode=Y,fe.isConcurrentMode=X,fe.isContextConsumer=re,fe.isContextProvider=oe,fe.isElement=J,fe.isForwardRef=H,fe.isFragment=Z,fe.isLazy=te,fe.isMemo=le,fe.isPortal=se,fe.isProfiler=Re,fe.isStrictMode=ae,fe.isSuspense=pe,fe.isSuspenseList=z,fe.isValidElementType=x,fe.typeOf=$}()),fe}O(Th,"requireReactIs_development");var zp;function Rh(){return zp||(zp=1,jp.exports=Th()),jp.exports}O(Rh,"requireReactIs");var Ph=Rh(),E2=hc(Ph),w2=fc({__proto__:null,default:E2},[Ph]),S2=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],Mr=Object.fromEntries(S2.map(e=>[e,t=>w2[e](t)||x2[e](t)]));function yc(e,t=[]){if(Array.isArray(e))for(let r of e)yc(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}O(yc,"getChildren");function _s(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(Mr.isFragment(e))return"React.Fragment";if(Mr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(Mr.isContextProvider(e))return"Context.Provider";if(Mr.isContextConsumer(e))return"Context.Consumer";if(Mr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(Mr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}O(_s,"getType");function Ih(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}O(Ih,"getPropKeys$1");var C2=O((e,t,r,n,o,a)=>++n>t.maxDepth?Li(_s(e),t):Ii(_s(e),Ri(Ih(e),e.props,t,r+t.indent,n,o,a),Pi(yc(e.props.children),t,r+t.indent,n,o,a),t,r),"serialize$1"),$2=O(e=>e!=null&&Mr.isElement(e),"test$1"),A2={serialize:C2,test:$2},D2=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Lh(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}O(Lh,"getPropKeys");var k2=O((e,t,r,n,o,a)=>++n>t.maxDepth?Li(e.type,t):Ii(e.type,e.props?Ri(Lh(e),e.props,t,r+t.indent,n,o,a):"",e.children?Pi(e.children,t,r+t.indent,n,o,a):"",t,r),"serialize"),O2=O(e=>e&&e.$$typeof===D2,"test"),F2={serialize:k2,test:O2},Bh=Object.prototype.toString,_2=Date.prototype.toISOString,T2=Error.prototype.toString,Hp=RegExp.prototype.toString;function Io(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}O(Io,"getConstructorName");function Nh(e){return typeof window<"u"&&e===window}O(Nh,"isWindow");var R2=/^Symbol\((.*)\)(.*)$/,P2=/\n/g,jh=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};O(jh,"PrettyFormatPluginError");var Mh=jh;function zh(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]"}O(zh,"isToStringedArrayType");function Hh(e){return Object.is(e,-0)?"-0":String(e)}O(Hh,"printNumber");function Uh(e){return`${e}n`}O(Uh,"printBigInt");function Ts(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}O(Ts,"printFunction");function Rs(e){return String(e).replace(R2,"Symbol($1)")}O(Rs,"printSymbol");function Ps(e){return`[${T2.call(e)}]`}O(Ps,"printError");function bc(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 Hh(e);if(o==="bigint")return Uh(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Ts(e,t);if(o==="symbol")return Rs(e);let a=Bh.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?Ts(e,t):a==="[object Symbol]"?Rs(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":_2.call(e):a==="[object Error]"?Ps(e):a==="[object RegExp]"?r?Hp.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Hp.call(e):e instanceof Error?Ps(e):null}O(bc,"printBasicValue");function vc(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return er(e.toJSON(),t,r,n,o,!0);let s=Bh.call(e);return s==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${qo(e,t,r,n,o,er)}]`:zh(s)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${qo(e,t,r,n,o,er)}]`:s==="[object Map]"?i?"[Map]":`Map {${ao(e.entries(),t,r,n,o,er," => ")}}`:s==="[object Set]"?i?"[Set]":`Set {${_i(e.values(),t,r,n,o,er)}}`:i||Nh(e)?`[${Io(e)}]`:`${l||!t.printBasicPrototype&&Io(e)==="Object"?"":`${Io(e)} `}{${Ti(e,t,r,n,o,er)}}`}O(vc,"printComplexValue");var I2={test:O(e=>e&&e instanceof Error,"test"),serialize(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++n>t.maxDepth,{message:l,cause:s,...u}=e,d={message:l,...typeof s<"u"?{cause:s}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},p=e.name!=="Error"?e.name:Io(e);return i?`[${p}]`:`${p} {${ao(Object.entries(d).values(),t,r,n,o,a)}}`}};function Wh(e){return e.serialize!=null}O(Wh,"isNewPlugin");function xc(e,t,r,n,o,a){let i;try{i=Wh(e)?e.serialize(t,r,n,o,a,er):e.print(t,l=>er(l,r,n,o,a),l=>{let s=n+r.indent;return s+l.replaceAll(P2,`
|
|
4
|
+
${s}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new Mh(l.message,l.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}O(xc,"printPlugin");function Ec(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Mh(n.message,n.stack)}return null}O(Ec,"findPlugin");function er(e,t,r,n,o,a){let i=Ec(t.plugins,e);if(i!==null)return xc(i,e,t,r,n,o);let l=bc(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:vc(e,t,r,n,o,a)}O(er,"printer");var wc={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Vh=Object.keys(wc),Et={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:wc};function qh(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(Et,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.')}O(qh,"validateOptions");function Gh(){return Vh.reduce((e,t)=>{let r=wc[t],n=r&&rr[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))}O(Gh,"getColorsHighlight");function Yh(){return Vh.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}O(Yh,"getColorsEmpty");function Sc(e){return(e==null?void 0:e.printFunctionName)??Et.printFunctionName}O(Sc,"getPrintFunctionName");function Cc(e){return(e==null?void 0:e.escapeRegex)??Et.escapeRegex}O(Cc,"getEscapeRegex");function $c(e){return(e==null?void 0:e.escapeString)??Et.escapeString}O($c,"getEscapeString");function Is(e){return{callToJSON:(e==null?void 0:e.callToJSON)??Et.callToJSON,colors:e!=null&&e.highlight?Gh():Yh(),compareKeys:typeof(e==null?void 0:e.compareKeys)=="function"||(e==null?void 0:e.compareKeys)===null?e.compareKeys:Et.compareKeys,escapeRegex:Cc(e),escapeString:$c(e),indent:e!=null&&e.min?"":Kh((e==null?void 0:e.indent)??Et.indent),maxDepth:(e==null?void 0:e.maxDepth)??Et.maxDepth,maxWidth:(e==null?void 0:e.maxWidth)??Et.maxWidth,min:(e==null?void 0:e.min)??Et.min,plugins:(e==null?void 0:e.plugins)??Et.plugins,printBasicPrototype:(e==null?void 0:e.printBasicPrototype)??!0,printFunctionName:Sc(e),spacingInner:e!=null&&e.min?" ":`
|
|
5
|
+
`,spacingOuter:e!=null&&e.min?"":`
|
|
6
|
+
`}}O(Is,"getConfig");function Kh(e){return Array.from({length:e+1}).join(" ")}O(Kh,"createIndent");function At(e,t){if(t&&(qh(t),t.plugins)){let n=Ec(t.plugins,e);if(n!==null)return xc(n,e,Is(t),"",0,[])}let r=bc(e,Sc(t),Cc(t),$c(t));return r!==null?r:vc(e,Is(t),"",0,[])}O(At,"format");var Ac={AsymmetricMatcher:ZC,DOMCollection:r2,DOMElement:l2,Immutable:b2,ReactElement:A2,ReactTestComponent:F2,Error:I2},Up={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"]},L2={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},Bn="…";function Xh(e,t){let r=Up[L2[t]]||Up[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}O(Xh,"colorise");function Zh({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:l=[],truncate:s=1/0,stylize:u=String}={},d){let p={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(s),seen:l,inspect:d,stylize:u};return p.colors&&(p.stylize=Xh),p}O(Zh,"normaliseOptions");function Jh(e){return e>="\uD800"&&e<="\uDBFF"}O(Jh,"isHighSurrogate");function ar(e,t,r=Bn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&Jh(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}O(ar,"truncate");function ft(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",l="",s="";for(let u=0;u<o;u+=1){let d=u+1===e.length,p=u+2===e.length;s=`${Bn}(${e.length-u})`;let c=e[u];t.truncate=a-i.length-(d?0:n.length);let f=l||r(c,t)+(d?"":n),m=i.length+f.length,h=m+s.length;if(d&&m>a&&i.length+s.length<=a||!d&&!p&&h>a||(l=d?"":r(e[u+1],t)+(p?"":n),!d&&p&&h>a&&m+l.length>a))break;if(i+=f,!d&&!p&&m+l.length>=a){s=`${Bn}(${e.length-u-1})`;break}s=""}return`${i}${s}`}O(ft,"inspectList");function Qh(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}O(Qh,"quoteComplexKey");function Nn([e,t],r){return r.truncate-=2,typeof e=="string"?e=Qh(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}O(Nn,"inspectProperty");function e0(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=ft(e,t);t.truncate-=n.length;let o="";return r.length&&(o=ft(r.map(a=>[a,e[a]]),t,Nn)),`[ ${n}${o?`, ${o}`:""} ]`}O(e0,"inspectArray");var B2=O(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Bt(e,t){let r=B2(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i<e.length;i++){let l=`${t.stylize(ar(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){o+=`${Bn}(${e.length-e[i]+1})`;break}o+=l}let a="";return n.length&&(a=ft(n.map(i=>[i,e[i]]),t,Nn)),`${r}[ ${o}${a?`, ${a}`:""} ]`}O(Bt,"inspectTypedArray");function t0(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${ar(n[1],t.truncate-o.length-1)}`,"date")}O(t0,"inspectDate");function Ls(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${ar(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}O(Ls,"inspectFunction");function r0([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}O(r0,"inspectMapEntry");function n0(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}O(n0,"mapToEntries");function o0(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${ft(n0(e),t,r0)} }`)}O(o0,"inspectMap");var N2=Number.isNaN||(e=>e!==e);function Bs(e,t){return N2(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(ar(String(e),t.truncate),"number")}O(Bs,"inspectNumber");function Ns(e,t){let r=ar(e.toString(),t.truncate-1);return r!==Bn&&(r+="n"),t.stylize(r,"bigint")}O(Ns,"inspectBigInt");function a0(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${ar(o,n)}/${r}`,"regexp")}O(a0,"inspectRegExp");function i0(e){let t=[];return e.forEach(r=>{t.push(r)}),t}O(i0,"arrayFromSet");function l0(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${ft(i0(e),t)} }`)}O(l0,"inspectSet");var Wp=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),j2={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},M2=16;function s0(e){return j2[e]||`\\u${`0000${e.charCodeAt(0).toString(M2)}`.slice(-4)}`}O(s0,"escape");function js(e,t){return Wp.test(e)&&(e=e.replace(Wp,s0)),t.stylize(`'${ar(e,t.truncate-2)}'`,"string")}O(js,"inspectString");function Ms(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}O(Ms,"inspectSymbol");var u0=O(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(u0=O((n,o)=>{let[a,i]=e(n);return a===t?"Promise{<pending>}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`},"getPromiseValue"))}catch{}var z2=u0;function Lo(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=ft(r.map(l=>[l,e[l]]),t,Nn),a=ft(n.map(l=>[l,e[l]]),t,Nn);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}O(Lo,"inspectObject");var Il=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function c0(e,t){let r="";return Il&&Il in e&&(r=e[Il]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${Lo(e,t)}`}O(c0,"inspectClass");function d0(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${ft(e,t)} ]`)}O(d0,"inspectArguments");var H2=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function p0(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>H2.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=ar(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 a=ft(r.map(i=>[i,e[i]]),t,Nn);return`${n}${o}${a?` { ${a} }`:""}`}O(p0,"inspectObject");function f0([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}O(f0,"inspectAttribute");function Ja(e,t){return ft(e,t,m0,`
|
|
7
|
+
`)}O(Ja,"inspectNodeCollection");function m0(e,t){switch(e.nodeType){case 1:return Dc(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}O(m0,"inspectNode");function Dc(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=ft(r.map(d=>[d,e.getAttribute(d)]),t,f0," ")),t.truncate-=l.length;let s=t.truncate,u=Ja(e.children,t);return u&&u.length>s&&(u=`${Bn}(${e.children.length})`),`${o}${l}${a}${u}${i}`}O(Dc,"inspectHTML");var U2=typeof Symbol=="function"&&typeof Symbol.for=="function",Ll=U2?Symbol.for("chai/inspect"):"@@chai/inspect",Bl=Symbol.for("nodejs.util.inspect.custom"),Vp=new WeakMap,qp={},Gp={undefined:O((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:O((e,t)=>t.stylize("null","null"),"null"),boolean:O((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:O((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Bs,Number:Bs,bigint:Ns,BigInt:Ns,string:js,String:js,function:Ls,Function:Ls,symbol:Ms,Symbol:Ms,Array:e0,Date:t0,Map:o0,Set:l0,RegExp:a0,Promise:z2,WeakSet:O((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:O((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:d0,Int8Array:Bt,Uint8Array:Bt,Uint8ClampedArray:Bt,Int16Array:Bt,Uint16Array:Bt,Int32Array:Bt,Uint32Array:Bt,Float32Array:Bt,Float64Array:Bt,Generator:O(()=>"","Generator"),DataView:O(()=>"","DataView"),ArrayBuffer:O(()=>"","ArrayBuffer"),Error:p0,HTMLCollection:Ja,NodeList:Ja},W2=O((e,t,r)=>Ll in e&&typeof e[Ll]=="function"?e[Ll](t):Bl in e&&typeof e[Bl]=="function"?e[Bl](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Vp.has(e.constructor)?Vp.get(e.constructor)(e,t):qp[r]?qp[r](e,t):"","inspectCustom"),V2=Object.prototype.toString;function Qa(e,t={}){let r=Zh(t,Qa),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=V2.call(e).slice(8,-1)),o in Gp)return Gp[o](e,r);if(n&&e){let i=W2(e,r,o);if(i)return typeof i=="string"?i:Qa(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?Lo(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?Dc(e,r):"constructor"in e?e.constructor!==Object?c0(e,r):Lo(e,r):e===Object(e)?Lo(e,r):r.stylize(String(e),o)}O(Qa,"inspect");var{AsymmetricMatcher:q2,DOMCollection:G2,DOMElement:Y2,Immutable:K2,ReactElement:X2,ReactTestComponent:Z2}=Ac,Yp=[Z2,X2,Y2,G2,K2,q2];function jn(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=At(e,{maxDepth:t,escapeString:!1,plugins:Yp,...n})}catch{a=At(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Yp,...n})}return a.length>=o&&t>1?jn(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}O(jn,"stringify");var J2=/%[sdjifoOc%]/g;function g0(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i<e.length;i++)a.push(vn(e[i],{depth:0,colors:!1}));return a.join(" ")}let t=e.length,r=1,n=e[0],o=String(n).replace(J2,a=>{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():vn(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return vn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return vn(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let l=i.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];r<t;a=e[++r])a===null||typeof a!="object"?o+=` ${a}`:o+=` ${vn(a)}`;return o}O(g0,"format");function vn(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Qa(e,t)}O(vn,"inspect");function h0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}O(h0,"getDefaultExportFromCjs");function y0(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}O(y0,"isFinalObj");function ei(e){return Object.prototype.toString.apply(e).slice(8,-1)}O(ei,"getType");function b0(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}O(b0,"collectOwnProperties");function kc(e){let t=new Set;return y0(e)?[]:(b0(e,t),Array.from(t))}O(kc,"getOwnProperties");var v0={forceWritable:!1};function zs(e,t=v0){return ti(e,new WeakMap,t)}O(zs,"deepClone");function ti(e,t,r=v0){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]=ti(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 a=kc(e);for(let i of a){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let s=ti(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:l.enumerable,configurable:!0,writable:!0,value:s}):"get"in l?Object.defineProperty(o,i,{...l,get(){return s}}):Object.defineProperty(o,i,{...l,value:s})}return o}return e}O(ti,"clone");var Ue=-1,Ne=1,Se=0,x0=class{constructor(t,r){Lt(this,0);Lt(this,1);this[0]=t,this[1]=r}};O(x0,"Diff");var Ee=x0;function E0(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,a=0;for(;r<o;)e.substring(a,o)===t.substring(a,o)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}O(E0,"diff_commonPrefix");function Oc(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,a=0;for(;r<o;)e.substring(e.length-o,e.length-a)===t.substring(t.length-o,t.length-a)?(r=o,a=r):n=o,o=Math.floor((n-r)/2+r);return o}O(Oc,"diff_commonSuffix");function Hs(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 a=0,i=1;for(;;){let l=e.substring(o-i),s=t.indexOf(l);if(s===-1)return a;i+=s,(s===0||e.substring(o-i)===t.substring(0,i))&&(a=i,i++)}}O(Hs,"diff_commonOverlap_");function w0(e){let t=!1,r=[],n=0,o=null,a=0,i=0,l=0,s=0,u=0;for(;a<e.length;)e[a][0]===Se?(r[n++]=a,i=s,l=u,s=0,u=0,o=e[a][1]):(e[a][0]===Ne?s+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(i,l)&&o.length<=Math.max(s,u)&&(e.splice(r[n-1],0,new Ee(Ue,o)),e[r[n-1]+1][0]=Ne,n--,n--,a=n>0?r[n-1]:-1,i=0,l=0,s=0,u=0,o=null,t=!0)),a++;for(t&&Fc(e),S0(e),a=1;a<e.length;){if(e[a-1][0]===Ue&&e[a][0]===Ne){let d=e[a-1][1],p=e[a][1],c=Hs(d,p),f=Hs(p,d);c>=f?(c>=d.length/2||c>=p.length/2)&&(e.splice(a,0,new Ee(Se,p.substring(0,c))),e[a-1][1]=d.substring(0,d.length-c),e[a+1][1]=p.substring(c),a++):(f>=d.length/2||f>=p.length/2)&&(e.splice(a,0,new Ee(Se,d.substring(0,f))),e[a-1][0]=Ne,e[a-1][1]=p.substring(0,p.length-f),e[a+1][0]=Ue,e[a+1][1]=d.substring(f),a++),a++}a++}}O(w0,"diff_cleanupSemantic");var Kp=/[^a-z0-9]/i,Xp=/\s/,Zp=/[\r\n]/,Q2=/\n\r?\n$/,e$=/^\r?\n\r?\n/;function S0(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===Se&&e[t+1][0]===Se){let r=e[t-1][1],n=e[t][1],o=e[t+1][1],a=Oc(r,n);if(a){let d=n.substring(n.length-a);r=r.substring(0,r.length-a),n=d+n.substring(0,n.length-a),o=d+o}let i=r,l=n,s=o,u=ko(r,n)+ko(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 d=ko(r,n)+ko(n,o);d>=u&&(u=d,i=r,l=n,s=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=l,s?e[t+1][1]=s:(e.splice(t+1,1),t--))}t++}}O(S0,"diff_cleanupSemanticLossless");function Fc(e){e.push(new Ee(Se,""));let t=0,r=0,n=0,o="",a="",i;for(;t<e.length;)switch(e[t][0]){case Ne:n++,a+=e[t][1],t++;break;case Ue:r++,o+=e[t][1],t++;break;case Se:r+n>1?(r!==0&&n!==0&&(i=E0(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Se?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new Ee(Se,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=Oc(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new Ee(Ue,o)),t++),a.length&&(e.splice(t,0,new Ee(Ne,a)),t++),t++):t!==0&&e[t-1][0]===Se?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===Se&&e[t+1][0]===Se&&(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&&Fc(e)}O(Fc,"diff_cleanupMerge");function ko(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),o=r.match(Kp),a=n.match(Kp),i=o&&r.match(Xp),l=a&&n.match(Xp),s=i&&r.match(Zp),u=l&&n.match(Zp),d=s&&e.match(Q2),p=u&&t.match(e$);return d||p?5:s||u?4:o&&!i&&l?3:i||l?2:o||a?1:0}O(ko,"diff_cleanupSemanticScore_");var C0="Compared values have no visual difference.",t$="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",ma={},Jp;function $0(){if(Jp)return ma;Jp=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.default=c;let e="diff-sequences",t=0,r=O((f,m,h,v,E)=>{let w=0;for(;f<m&&h<v&&E(f,h);)f+=1,h+=1,w+=1;return w},"countCommonItemsF"),n=O((f,m,h,v,E)=>{let w=0;for(;f<=m&&h<=v&&E(m,v);)m-=1,v-=1,w+=1;return w},"countCommonItemsR"),o=O((f,m,h,v,E,w,S)=>{let x=0,$=-f,A=w[x],C=A;w[x]+=r(A+1,m,v+A-$+1,h,E);let D=f<S?f:S;for(x+=1,$+=2;x<=D;x+=1,$+=2){if(x!==f&&C<w[x])A=w[x];else if(A=C+1,m<=A)return x-1;C=w[x],w[x]=A+r(A+1,m,v+A-$+1,h,E)}return S},"extendPathsF"),a=O((f,m,h,v,E,w,S)=>{let x=0,$=f,A=w[x],C=A;w[x]-=n(m,A-1,h,v+A-$-1,E);let D=f<S?f:S;for(x+=1,$-=2;x<=D;x+=1,$-=2){if(x!==f&&w[x]<C)A=w[x];else if(A=C-1,A<m)return x-1;C=w[x],w[x]=A-n(m,A-1,h,v+A-$-1,E)}return S},"extendPathsR"),i=O((f,m,h,v,E,w,S,x,$,A,C)=>{let D=v-m,F=h-m,k=E-v-F,_=-k-(f-1),I=-k+(f-1),L=t,j=f<x?f:x;for(let B=0,M=-f;B<=j;B+=1,M+=2){let V=B===0||B!==f&&L<S[B],G=V?S[B]:L,W=V?G:G+1,Y=D+W-M,X=r(W+1,h,Y+1,E,w),re=W+X;if(L=S[B],S[B]=re,_<=M&&M<=I){let oe=(f-1-(M+k))/2;if(oe<=A&&$[oe]-1<=re){let J=D+G-(V?M+1:M-1),H=n(m,G,v,J,w),Z=G-H,te=J-H,le=Z+1,se=te+1;C.nChangePreceding=f-1,f-1===le+se-m-v?(C.aEndPreceding=m,C.bEndPreceding=v):(C.aEndPreceding=le,C.bEndPreceding=se),C.nCommonPreceding=H,H!==0&&(C.aCommonPreceding=le,C.bCommonPreceding=se),C.nCommonFollowing=X,X!==0&&(C.aCommonFollowing=W+1,C.bCommonFollowing=Y+1);let Re=re+1,ae=Y+X+1;return C.nChangeFollowing=f-1,f-1===h+E-Re-ae?(C.aStartFollowing=h,C.bStartFollowing=E):(C.aStartFollowing=Re,C.bStartFollowing=ae),!0}}}return!1},"extendOverlappablePathsF"),l=O((f,m,h,v,E,w,S,x,$,A,C)=>{let D=E-h,F=h-m,k=E-v-F,_=k-f,I=k+f,L=t,j=f<A?f:A;for(let B=0,M=f;B<=j;B+=1,M-=2){let V=B===0||B!==f&&$[B]<L,G=V?$[B]:L,W=V?G:G-1,Y=D+W-M,X=n(m,W-1,v,Y-1,w),re=W-X;if(L=$[B],$[B]=re,_<=M&&M<=I){let oe=(f+(M-k))/2;if(oe<=x&&re-1<=S[oe]){let J=Y-X;if(C.nChangePreceding=f,f===re+J-m-v?(C.aEndPreceding=m,C.bEndPreceding=v):(C.aEndPreceding=re,C.bEndPreceding=J),C.nCommonPreceding=X,X!==0&&(C.aCommonPreceding=re,C.bCommonPreceding=J),C.nChangeFollowing=f-1,f===1)C.nCommonFollowing=0,C.aStartFollowing=h,C.bStartFollowing=E;else{let H=D+G-(V?M-1:M+1),Z=r(G,h,H,E,w);C.nCommonFollowing=Z,Z!==0&&(C.aCommonFollowing=G,C.bCommonFollowing=H);let te=G+Z,le=H+Z;f-1===h+E-te-le?(C.aStartFollowing=h,C.bStartFollowing=E):(C.aStartFollowing=te,C.bStartFollowing=le)}return!0}}}return!1},"extendOverlappablePathsR"),s=O((f,m,h,v,E,w,S,x,$)=>{let A=v-m,C=E-h,D=h-m,F=E-v,k=F-D,_=D,I=D;if(S[0]=m-1,x[0]=h,k%2===0){let L=(f||k)/2,j=(D+F)/2;for(let B=1;B<=j;B+=1)if(_=o(B,h,E,A,w,S,_),B<L)I=a(B,m,v,C,w,x,I);else if(l(B,m,h,v,E,w,S,_,x,I,$))return}else{let L=((f||k)+1)/2,j=(D+F+1)/2,B=1;for(_=o(B,h,E,A,w,S,_),B+=1;B<=j;B+=1)if(I=a(B-1,m,v,C,w,x,I),B<L)_=o(B,h,E,A,w,S,_);else if(i(B,m,h,v,E,w,S,_,x,I,$))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${h} bStart=${v} bEnd=${E}`)},"divide"),u=O((f,m,h,v,E,w,S,x,$,A)=>{if(E-v<h-m){if(w=!w,w&&S.length===1){let{foundSubsequence:oe,isCommon:J}=S[0];S[1]={foundSubsequence:O((H,Z,te)=>{oe(H,te,Z)},"foundSubsequence"),isCommon:O((H,Z)=>J(Z,H),"isCommon")}}let X=m,re=h;m=v,h=E,v=X,E=re}let{foundSubsequence:C,isCommon:D}=S[w?1:0];s(f,m,h,v,E,D,x,$,A);let{nChangePreceding:F,aEndPreceding:k,bEndPreceding:_,nCommonPreceding:I,aCommonPreceding:L,bCommonPreceding:j,nCommonFollowing:B,aCommonFollowing:M,bCommonFollowing:V,nChangeFollowing:G,aStartFollowing:W,bStartFollowing:Y}=A;m<k&&v<_&&u(F,m,k,v,_,w,S,x,$,A),I!==0&&C(I,L,j),B!==0&&C(B,M,V),W<h&&Y<E&&u(G,W,h,Y,E,w,S,x,$,A)},"findSubsequences"),d=O((f,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${f} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${f} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${f} value ${m} is a negative integer`)},"validateLength"),p=O((f,m)=>{let h=typeof m;if(h!=="function")throw new TypeError(`${e}: ${f} typeof ${h} is not a function`)},"validateCallback");function c(f,m,h,v){d("aLength",f),d("bLength",m),p("isCommon",h),p("foundSubsequence",v);let E=r(0,f,0,m,h);if(E!==0&&v(E,0,0),f!==E||m!==E){let w=E,S=E,x=n(w,f-1,S,m-1,h),$=f-x,A=m-x,C=E+x;f!==C&&m!==C&&u(0,w,$,S,A,!1,[{foundSubsequence:v,isCommon:h}],[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&&v(x,$,A)}}return O(c,"diffSequence"),ma}O($0,"requireBuild");var r$=$0(),A0=h0(r$);function D0(e,t){return e.replace(/\s+$/,r=>t(r))}O(D0,"formatTrailingSpaces");function Ni(e,t,r,n,o,a){return e.length!==0?r(`${n} ${D0(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}O(Ni,"printDiffLine");function _c(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Ni(e,t,r,n,o,a)}O(_c,"printDeleteLine");function Tc(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Ni(e,t,r,n,o,a)}O(Tc,"printInsertLine");function Rc(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return Ni(e,t,r,n,o,a)}O(Rc,"printCommonLine");function Us(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}O(Us,"createPatchMark");function k0(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,l=0,s=0;for(;s!==r;){let x=s;for(;s!==r&&e[s][0]===Se;)s+=1;if(x!==s)if(x===0)s>n&&(a-=s-n,i=!0);else if(s===r){let $=s-x;$>n&&(a-=$-n,i=!0)}else{let $=s-x;$>o&&(a-=$-o,l+=1)}for(;s!==r&&e[s][0]!==Se;)s+=1}let u=l!==0||i;l!==0?a+=l+1:i&&(a+=1);let d=a-1,p=[],c=0;u&&p.push("");let f=0,m=0,h=0,v=0,E=O(x=>{let $=p.length;p.push(Rc(x,$===0||$===d,t)),h+=1,v+=1},"pushCommonLine"),w=O(x=>{let $=p.length;p.push(_c(x,$===0||$===d,t)),h+=1},"pushDeleteLine"),S=O(x=>{let $=p.length;p.push(Tc(x,$===0||$===d,t)),v+=1},"pushInsertLine");for(s=0;s!==r;){let x=s;for(;s!==r&&e[s][0]===Se;)s+=1;if(x!==s)if(x===0){s>n&&(x=s-n,f=x,m=x,h=f,v=m);for(let $=x;$!==s;$+=1)E(e[$][1])}else if(s===r){let $=s-x>n?x+n:s;for(let A=x;A!==$;A+=1)E(e[A][1])}else{let $=s-x;if($>o){let A=x+n;for(let D=x;D!==A;D+=1)E(e[D][1]);p[c]=Us(f,h,m,v,t),c=p.length,p.push("");let C=$-o;f=h+C,m=v+C,h=f,v=m;for(let D=s-n;D!==s;D+=1)E(e[D][1])}else for(let A=x;A!==s;A+=1)E(e[A][1])}for(;s!==r&&e[s][0]===Ue;)w(e[s][1]),s+=1;for(;s!==r&&e[s][0]===Ne;)S(e[s][1]),s+=1}return u&&(p[c]=Us(f,h,m,v,t)),p.join(`
|
|
8
|
+
`)}O(k0,"joinAlignedDiffsNoExpand");function O0(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Ue:return _c(a,i,t);case Ne:return Tc(a,i,t);default:return Rc(a,i,t)}}).join(`
|
|
9
|
+
`)}O(O0,"joinAlignedDiffsExpand");var Nl=O(e=>e,"noColor"),F0=5,n$=0;function _0(){return{aAnnotation:"Expected",aColor:rr.green,aIndicator:"-",bAnnotation:"Received",bColor:rr.red,bIndicator:"+",changeColor:rr.inverse,changeLineTrailingSpaceColor:Nl,commonColor:rr.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Nl,compareKeys:void 0,contextLines:F0,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:rr.yellow,printBasicPrototype:!1,truncateThreshold:n$,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Nl}}O(_0,"getDefaultOptions");function T0(e){return e&&typeof e=="function"?e:void 0}O(T0,"getCompareKeys");function R0(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:F0}O(R0,"getContextLines");function Or(e={}){return{..._0(),...e,compareKeys:T0(e.compareKeys),contextLines:R0(e.contextLines)}}O(Or,"normalizeDiffOptions");function Vr(e){return e.length===1&&e[0].length===0}O(Vr,"isEmptyString");function P0(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ue:t+=1;break;case Ne:r+=1;break}}),{a:t,b:r}}O(P0,"countChanges");function I0({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:l},s){if(l)return"";let u="",d="";if(i){let f=String(s.a),m=String(s.b),h=n.length-e.length,v=" ".repeat(Math.max(0,h)),E=" ".repeat(Math.max(0,-h)),w=m.length-f.length,S=" ".repeat(Math.max(0,w)),x=" ".repeat(Math.max(0,-w));u=`${v} ${r} ${S}${f}`,d=`${E} ${a} ${x}${m}`}let p=`${r} ${e}${u}`,c=`${a} ${n}${d}`;return`${t(p)}
|
|
10
|
+
${o(c)}
|
|
11
|
+
|
|
12
|
+
`}O(I0,"printAnnotation");function ji(e,t,r){return I0(r,P0(e))+(r.expand?O0(e,r):k0(e,r))+(t?r.truncateAnnotationColor(`
|
|
13
|
+
${r.truncateAnnotation}`):"")}O(ji,"printDiffLines");function ra(e,t,r){let n=Or(r),[o,a]=Pc(Vr(e)?[]:e,Vr(t)?[]:t,n);return ji(o,a,n)}O(ra,"diffLinesUnified");function L0(e,t,r,n,o){if(Vr(e)&&Vr(r)&&(e=[],r=[]),Vr(t)&&Vr(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return ra(e,t,o);let[a,i]=Pc(r,n,o),l=0,s=0;return a.forEach(u=>{switch(u[0]){case Ue:u[1]=e[l],l+=1;break;case Ne:u[1]=t[s],s+=1;break;default:u[1]=t[s],l+=1,s+=1}}),ji(a,i,Or(o))}O(L0,"diffLinesUnified2");function Pc(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,l=a!==e.length||i!==t.length,s=O((c,f)=>e[c]===t[f],"isCommon"),u=[],d=0,p=0;for(A0(a,i,s,O((c,f,m)=>{for(;d!==f;d+=1)u.push(new Ee(Ue,e[d]));for(;p!==m;p+=1)u.push(new Ee(Ne,t[p]));for(;c!==0;c-=1,d+=1,p+=1)u.push(new Ee(Se,t[p]))},"foundSubsequence"));d!==a;d+=1)u.push(new Ee(Ue,e[d]));for(;p!==i;p+=1)u.push(new Ee(Ne,t[p]));return[u,l]}O(Pc,"diffLinesRaw");function Ws(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}`)}O(Ws,"getType");function Vs(e){return e.includes(`\r
|
|
14
|
+
`)?`\r
|
|
15
|
+
`:`
|
|
16
|
+
`}O(Vs,"getNewLineSymbol");function B0(e,t,r){let n=(r==null?void 0:r.truncateThreshold)??!1,o=Math.max(Math.floor((r==null?void 0:r.truncateThreshold)??0),0),a=e.length,i=t.length;if(n){let c=e.includes(`
|
|
17
|
+
`),f=t.includes(`
|
|
18
|
+
`),m=Vs(e),h=Vs(t),v=c?`${e.split(m,o).join(m)}
|
|
19
|
+
`:e,E=f?`${t.split(h,o).join(h)}
|
|
20
|
+
`:t;a=v.length,i=E.length}let l=a!==e.length||i!==t.length,s=O((c,f)=>e[c]===t[f],"isCommon"),u=0,d=0,p=[];return A0(a,i,s,O((c,f,m)=>{u!==f&&p.push(new Ee(Ue,e.slice(u,f))),d!==m&&p.push(new Ee(Ne,t.slice(d,m))),u=f+c,d=m+c,p.push(new Ee(Se,t.slice(m,d)))},"foundSubsequence")),u!==a&&p.push(new Ee(Ue,e.slice(u))),d!==i&&p.push(new Ee(Ne,t.slice(d))),[p,l]}O(B0,"diffStrings");function N0(e,t,r){return t.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}O(N0,"concatenateRelevantDiffs");var j0=class{constructor(t,r){Lt(this,"op");Lt(this,"line");Lt(this,"lines");Lt(this,"changeColor");this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new Ee(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new Ee(this.op,N0(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new Ee(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(`
|
|
21
|
+
`)){let n=r.split(`
|
|
22
|
+
`),o=n.length-1;n.forEach((a,i)=>{i<o?(this.pushSubstring(a),this.pushLine()):a.length!==0&&this.pushSubstring(a)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};O(j0,"ChangeBuffer");var Qp=j0,M0=class{constructor(t,r){Lt(this,"deleteBuffer");Lt(this,"insertBuffer");Lt(this,"lines");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(`
|
|
23
|
+
`)){let o=n.split(`
|
|
24
|
+
`),a=o.length-1;o.forEach((i,l)=>{if(l===0){let s=new Ee(r,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(s)):(this.pushDiffChangeLines(s),this.flushChangeLines())}else l<a?this.pushDiffCommonLine(new Ee(r,i)):i.length!==0&&this.pushDiffChangeLines(new Ee(r,i))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};O(M0,"CommonBuffer");var o$=M0;function z0(e,t){let r=new Qp(Ue,t),n=new Qp(Ne,t),o=new o$(r,n);return e.forEach(a=>{switch(a[0]){case Ue:r.align(a);break;case Ne:n.align(a);break;default:o.align(a)}}),o.getLines()}O(z0,"getAlignedDiffs");function H0(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Se&&(o!==r||n[1]!==`
|
|
25
|
+
`))}return e.some(r=>r[0]===Se)}O(H0,"hasCommonDiff");function U0(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
26
|
+
`)||t.includes(`
|
|
27
|
+
`),[o,a]=Ic(n?`${e}
|
|
28
|
+
`:e,n?`${t}
|
|
29
|
+
`:t,!0,r);if(H0(o,n)){let i=Or(r),l=z0(o,i.changeColor);return ji(l,a,i)}}return ra(e.split(`
|
|
30
|
+
`),t.split(`
|
|
31
|
+
`),r)}O(U0,"diffStringsUnified");function Ic(e,t,r,n){let[o,a]=B0(e,t,n);return r&&w0(o),[o,a]}O(Ic,"diffStringsRaw");function ri(e,t){let{commonColor:r}=Or(t);return r(e)}O(ri,"getCommonMessage");var{AsymmetricMatcher:a$,DOMCollection:i$,DOMElement:l$,Immutable:s$,ReactElement:u$,ReactTestComponent:c$}=Ac,W0=[c$,u$,l$,i$,s$,a$,Ac.Error],qs={maxDepth:20,plugins:W0},V0={callToJSON:!1,maxDepth:8,plugins:W0};function q0(e,t,r){if(Object.is(e,t))return"";let n=Ws(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==Ws(t)){let i=function(S){return S.length<=v?S:`${S.slice(0,v)}...`};O(i,"truncate");let{aAnnotation:l,aColor:s,aIndicator:u,bAnnotation:d,bColor:p,bIndicator:c}=Or(r),f=ni(V0,r),m=At(e,f),h=At(t,f),v=1e5;m=i(m),h=i(h);let E=`${s(`${u} ${l}:`)}
|
|
32
|
+
${m}`,w=`${p(`${c} ${d}:`)}
|
|
33
|
+
${h}`;return`${E}
|
|
34
|
+
|
|
35
|
+
${w}`}if(!a)switch(n){case"string":return ra(e.split(`
|
|
36
|
+
`),t.split(`
|
|
37
|
+
`),r);case"boolean":case"number":return G0(e,t,r);case"map":return Ba(Gs(e),Gs(t),r);case"set":return Ba(Ys(e),Ys(t),r);default:return Ba(e,t,r)}}O(q0,"diff");function G0(e,t,r){let n=At(e,qs),o=At(t,qs);return n===o?"":ra(n.split(`
|
|
38
|
+
`),o.split(`
|
|
39
|
+
`),r)}O(G0,"comparePrimitive");function Gs(e){return new Map(Array.from(e.entries()).sort())}O(Gs,"sortMap");function Ys(e){return new Set(Array.from(e.values()).sort())}O(Ys,"sortSet");function Ba(e,t,r){let n,o=!1;try{let i=ni(qs,r);n=Ks(e,t,i,r)}catch{o=!0}let a=ri(C0,r);if(n===void 0||n===a){let i=ni(V0,r);n=Ks(e,t,i,r),n!==a&&!o&&(n=`${ri(t$,r)}
|
|
40
|
+
|
|
41
|
+
${n}`)}return n}O(Ba,"compareObjects");function ni(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=Or(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}O(ni,"getFormatOptions");function Ks(e,t,r,n){let o={...r,indent:0},a=At(e,o),i=At(t,o);if(a===i)return ri(C0,n);{let l=At(e,r),s=At(t,r);return L0(l.split(`
|
|
42
|
+
`),s.split(`
|
|
43
|
+
`),a.split(`
|
|
44
|
+
`),i.split(`
|
|
45
|
+
`),n)}}O(Ks,"getObjectsDifference");var ef=2e4;function Xs(e){return ei(e)==="Object"&&typeof e.asymmetricMatch=="function"}O(Xs,"isAsymmetricMatcher");function Zs(e,t){let r=ei(e),n=ei(t);return r===n&&(r==="Object"||r==="Array")}O(Zs,"isReplaceable");function Y0(e,t,r){let{aAnnotation:n,bAnnotation:o}=Or(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=ef&&e.length<=ef&&t!==e){if(t.includes(`
|
|
46
|
+
`)||e.includes(`
|
|
47
|
+
`))return U0(t,e,r);let[u]=Ic(t,e,!0),d=u.some(m=>m[0]===Se),p=K0(n,o),c=p(n)+Z0(Js(u,Ue,d)),f=p(o)+X0(Js(u,Ne,d));return`${c}
|
|
48
|
+
${f}`}let a=zs(t,{forceWritable:!0}),i=zs(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:s}=Lc(i,a);return q0(l,s,r)}O(Y0,"printDiffOrStringify");function Lc(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}):Zs(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),kc(t).forEach(o=>{let a=t[o],i=e[o];if(Xs(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Xs(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Zs(i,a)){let l=Lc(i,a,r,n);e[o]=l.replacedActual,t[o]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}O(Lc,"replaceAsymmetricMatcher");function K0(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}O(K0,"getLabelPrinter");var d$="·";function Bc(e){return e.replace(/\s+$/gm,t=>d$.repeat(t.length))}O(Bc,"replaceTrailingSpaces");function X0(e){return rr.red(Bc(jn(e)))}O(X0,"printReceived");function Z0(e){return rr.green(Bc(jn(e)))}O(Z0,"printExpected");function Js(e,t,r){return e.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===t?r?rr.inverse(o[1]):o[1]:""),"")}O(Js,"getCommonAndChangedSubstrings");var p$="@@__IMMUTABLE_RECORD__@@",f$="@@__IMMUTABLE_ITERABLE__@@";function J0(e){return e&&(e[f$]||e[p$])}O(J0,"isImmutable");var m$=Object.getPrototypeOf({});function Qs(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}O(Qs,"getUnserializableMessage");function tr(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"&&Oo(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&Oo(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&Oo(()=>r.name??(r.name=e.name)),e.cause!=null&&Oo(()=>r.cause??(r.cause=tr(e.cause,t)))),tr(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(J0(e))return tr(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()} ${g0(e.sample)}`;if(typeof e.toJSON=="function")return tr(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]=tr(n,t)}catch(a){r[o]=Qs(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==m$;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=tr(e[o],t)}catch(a){delete r[o],r[o]=Qs(a)}}),n=Object.getPrototypeOf(n);return r}}O(tr,"serializeValue");function Oo(e){try{return e()}catch{}}O(Oo,"safe");function Q0(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}O(Q0,"normalizeErrorMessage");function Nc(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=Y0(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=jn(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=jn(n.actual,10));try{typeof n.message=="string"&&(n.message=Q0(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Nc(n.cause,t,r))}catch{}try{return tr(n)}catch(o){return tr(new Error(`Failed to fully serialize error: ${o==null?void 0:o.message}
|
|
49
|
+
Inner error message: ${n==null?void 0:n.message}`))}}O(Nc,"processError");var Yt={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"},jl=globalThis.__STORYBOOK_ADDONS_PREVIEW,g$=new Error("This function ran after the play function completed. Did you forget to `await` it?"),tf=O(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),h$=O(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),y$=O(e=>{if(!tf(e)&&!h$(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!tf(t)},"isInstrumentable"),b$=O(e=>{try{return new e.constructor}catch{return{}}},"construct"),Ml=O(()=>({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"),rf=O((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"),ey=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=O(()=>{var s,u;try{this.state=((u=(s=dt.window)==null?void 0:s.parent)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__)||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=O(()=>{try{dt.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=O(({storyId:s,renderPhase:u,isPlaying:d=!0,isDebugging:p=!1})=>{let c=this.getState(s);this.setState(s,{...Ml(),...rf(c,p),renderPhase:u||c.renderPhase,shadowCalls:p?c.shadowCalls:[],chainedCallIds:p?c.chainedCallIds:new Set,playUntil:p?c.playUntil:void 0,isPlaying:d,isDebugging:p}),this.sync(s)},"resetState"),r=O(s=>({storyId:u,playUntil:d})=>{this.getState(u).isDebugging||this.setState(u,({calls:c})=>({calls:[],shadowCalls:c.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let p=this.getLog(u);this.setState(u,({shadowCalls:c})=>{var m;if(d||!p.length)return{playUntil:d};let f=c.findIndex(h=>h.id===p[0].callId);return{playUntil:(m=c.slice(0,f).filter(h=>{var v;return h.interceptable&&!((v=h.ancestors)!=null&&v.length)}).slice(-1)[0])==null?void 0:m.id}}),s.emit(Rp,{storyId:u,isDebugging:!0})},"start"),n=O(s=>({storyId:u})=>{var c;let d=this.getLog(u).filter(f=>{var m;return!((m=f.ancestors)!=null&&m.length)}),p=d.reduceRight((f,m,h)=>f>=0||m.status==="waiting"?f:h,-1);r(s)({storyId:u,playUntil:(c=d[p-1])==null?void 0:c.callId})},"back"),o=O(s=>({storyId:u,callId:d})=>{var v;let{calls:p,shadowCalls:c,resolvers:f}=this.getState(u),m=p.find(({id:E})=>E===d),h=c.find(({id:E})=>E===d);if(!m&&h&&Object.values(f).length>0){let E=(v=this.getLog(u).find(w=>w.status==="waiting"))==null?void 0:v.callId;h.id!==E&&this.setState(u,{playUntil:h.id}),Object.values(f).forEach(w=>w())}else r(s)({storyId:u,playUntil:d})},"goto"),a=O(s=>({storyId:u})=>{var p;let{resolvers:d}=this.getState(u);if(Object.values(d).length>0)Object.values(d).forEach(c=>c());else{let c=(p=this.getLog(u).find(f=>f.status==="waiting"))==null?void 0:p.callId;c?r(s)({storyId:u,playUntil:c}):i({storyId:u})}},"next"),i=O(({storyId:s})=>{this.setState(s,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(s).resolvers).forEach(u=>u())},"end"),l=O(({storyId:s,newPhase:u})=>{let{isDebugging:d}=this.getState(s);if(u==="preparing"&&d)return t({storyId:s,renderPhase:u});if(u==="playing")return t({storyId:s,renderPhase:u,isDebugging:d});u==="played"?this.setState(s,{renderPhase:u,isLocked:!1,isPlaying:!1,isDebugging:!1}):u==="errored"?this.setState(s,{renderPhase:u,isLocked:!1,isPlaying:!1}):u==="aborted"?this.setState(s,{renderPhase:u,isLocked:!0,isPlaying:!1}):this.setState(s,{renderPhase:u}),this.sync(s)},"renderPhaseChanged");jl&&jl.ready().then(()=>{this.channel=jl.getChannel(),this.channel.on(Rp,t),this.channel.on(VC,l),this.channel.on(WC,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Yt.START,r(this.channel)),this.channel.on(Yt.BACK,n(this.channel)),this.channel.on(Yt.GOTO,o(this.channel)),this.channel.on(Yt.NEXT,a(this.channel)),this.channel.on(Yt.END,i)})}getState(t){return this.state[t]||Ml()}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(){var r;this.state=Object.entries(this.state).reduce((n,[o,a])=>{let i=rf(a);return i&&(n[o]=Object.assign(Ml(),i)),n},{});let t={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};(r=this.channel)==null||r.emit(Yt.SYNC,t),this.updateParentWindowState()}getLog(t){let{calls:r,shadowCalls:n}=this.getState(t),o=[...n];r.forEach((i,l)=>{o[l]=i});let a=new Set;return o.reduceRight((i,l)=>(l.args.forEach(s=>{s!=null&&s.__callId__&&a.add(s.__callId__)}),l.path.forEach(s=>{s.__callId__&&a.add(s.__callId__)}),(l.interceptable||l.exception)&&!a.has(l.id)&&(i.unshift({callId:l.id,status:l.status,ancestors:l.ancestors}),a.add(l.id)),i),[])}instrument(t,r,n=0){if(!y$(t))return t;let{mutate:o=!1,path:a=[]}=r,i=r.getKeys?r.getKeys(t,n):Object.keys(t);return n+=1,i.reduce((l,s)=>{let u=ty(t,s);if(typeof(u==null?void 0:u.get)=="function"){if(u.configurable){let p=O(()=>{var c,f;return(f=(c=u==null?void 0:u.get)==null?void 0:c.bind(t))==null?void 0:f()},"getter");Object.defineProperty(l,s,{get:O(()=>this.instrument(p(),{...r,path:a.concat(s)},n),"get")})}return l}let d=t[s];return typeof d!="function"?(l[s]=this.instrument(d,{...r,path:a.concat(s)},n),l):"__originalFn__"in d&&typeof d.__originalFn__=="function"?(l[s]=d,l):(l[s]=(...p)=>this.track(s,d,t,p,r),l[s].__originalFn__=d,Object.defineProperty(l[s],"name",{value:s,writable:!1}),Object.keys(d).length>0&&Object.assign(l[s],this.instrument({...d},{...r,path:a.concat(s)},n)),l)},o?t:b$(t))}track(t,r,n,o,a){var v,E,w,S;let i=((v=o==null?void 0:o[0])==null?void 0:v.__storyId__)||((S=(w=(E=dt.__STORYBOOK_PREVIEW__)==null?void 0:E.selectionStore)==null?void 0:w.selection)==null?void 0:S.storyId),{cursor:l,ancestors:s}=this.getState(i);this.setState(i,{cursor:l+1});let u=`${s.slice(-1)[0]||i} [${l}] ${t}`,{path:d=[],intercept:p=!1,retain:c=!1}=a,f=typeof p=="function"?p(t,d):p,m={id:u,cursor:l,storyId:i,ancestors:s,path:d,method:t,args:o,interceptable:f,retain:c},h=(f&&!s.length?this.intercept:this.invoke).call(this,r,n,m,a);return this.instrument(h,{...a,mutate:!0,path:[{__callId__:m.id}]})}intercept(t,r,n,o){let{chainedCallIds:a,isDebugging:i,playUntil:l}=this.getState(n.storyId),s=a.has(n.id);return!i||s||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:d})=>({isLocked:!1,resolvers:{...d,[n.id]:u}}))}).then(()=>(this.setState(n.storyId,u=>{let{[n.id]:d,...p}=u.resolvers;return{isLocked:!0,resolvers:p}}),this.invoke(t,r,n,o)))}invoke(t,r,n,o){let{callRefsByResult:a,renderPhase:i}=this.getState(n.storyId),l=25,s=O((p,c,f)=>{var m,h,v;if(f.includes(p))return"[Circular]";if(f=[...f,p],c>l)return"...";if(a.has(p))return a.get(p);if(p instanceof Array)return p.map(E=>s(E,++c,f));if(p instanceof Date)return{__date__:{value:p.toISOString()}};if(p instanceof Error){let{name:E,message:w,stack:S}=p;return{__error__:{name:E,message:w,stack:S}}}if(p instanceof RegExp){let{flags:E,source:w}=p;return{__regexp__:{flags:E,source:w}}}if(p instanceof((m=dt.window)==null?void 0:m.HTMLElement)){let{prefix:E,localName:w,id:S,classList:x,innerText:$}=p,A=Array.from(x);return{__element__:{prefix:E,localName:w,id:S,classNames:A,innerText:$}}}return typeof p=="function"?{__function__:{name:"getMockName"in p?p.getMockName():p.name}}:typeof p=="symbol"?{__symbol__:{description:p.description}}:typeof p=="object"&&((h=p==null?void 0:p.constructor)!=null&&h.name)&&((v=p==null?void 0:p.constructor)==null?void 0:v.name)!=="Object"?{__class__:{name:p.constructor.name}}:Object.prototype.toString.call(p)==="[object Object]"?Object.fromEntries(Object.entries(p).map(([E,w])=>[E,s(w,++c,f)])):p},"serializeValues"),u={...n,args:n.args.map(p=>s(p,0,[]))};n.path.forEach(p=>{p!=null&&p.__callId__&&this.setState(n.storyId,({chainedCallIds:c})=>({chainedCallIds:new Set(Array.from(c).concat(p.__callId__))}))});let d=O(p=>{var c;if(p instanceof Error){let{name:f,message:m,stack:h,callId:v=n.id}=p,{showDiff:E=void 0,diff:w=void 0,actual:S=void 0,expected:x=void 0}=p.name==="AssertionError"?Nc(p):p,$={name:f,message:m,stack:h,callId:v,showDiff:E,diff:w,actual:S,expected:x};if(this.update({...u,status:"error",exception:$}),this.setState(n.storyId,A=>({callRefsByResult:new Map([...Array.from(A.callRefsByResult.entries()),[p,{__callId__:n.id,retain:n.retain}]])})),(c=n.ancestors)==null?void 0:c.length)throw Object.prototype.hasOwnProperty.call(p,"callId")||Object.defineProperty(p,"callId",{value:n.id}),p}throw p},"handleException");try{if(i==="played"&&!n.retain)throw g$;let p=(o.getArgs?o.getArgs(n,this.getState(n.storyId)):n.args).map(f=>typeof f!="function"||ry(f)||Object.keys(f).length?f:(...m)=>{let{cursor:h,ancestors:v}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...v,n.id]});let E=O(()=>this.setState(n.storyId,{cursor:h,ancestors:v}),"restore"),w=!1;try{let S=f(...m);return S instanceof Promise?(w=!0,S.finally(E)):S}finally{w||E()}}),c=t.apply(r,p);return c&&["object","function","symbol"].includes(typeof c)&&this.setState(n.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[c,{__callId__:n.id,retain:n.retain}]])})),this.update({...u,status:c instanceof Promise?"active":"done"}),c instanceof Promise?c.then(f=>(this.update({...u,status:"done"}),f),d):c}catch(p){return d(p)}}update(t){var r;(r=this.channel)==null||r.emit(Yt.CALL,t),this.setState(t.storyId,({calls:n})=>{let o=n.concat(t).reduce((a,i)=>Object.assign(a,{[i.id]:i}),{});return{calls:Object.values(o).sort((a,i)=>a.id.localeCompare(i.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let r=O(()=>{var d,p,c;let{isLocked:n,isPlaying:o}=this.getState(t),a=this.getLog(t),i=(d=a.filter(({ancestors:f})=>!f.length).find(f=>f.status==="waiting"))==null?void 0:d.callId,l=a.some(f=>f.status==="active");if(this.detached||n||l||a.length===0){let f={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:a};(p=this.channel)==null||p.emit(Yt.SYNC,f);return}let s=a.some(f=>f.status==="done"||f.status==="error"),u={controlStates:{detached:this.detached,start:s,back:s,goto:!0,next:o,end:o},logItems:a,pausedAt:i};(c=this.channel)==null||c.emit(Yt.SYNC,u)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};O(ey,"Instrumenter");var v$=ey;function jc(e,t={}){var r,n,o,a,i,l,s,u;try{let d=!1,p=!1;return(o=(n=(r=dt.window)==null?void 0:r.location)==null?void 0:n.search)!=null&&o.includes("instrument=true")?d=!0:(l=(i=(a=dt.window)==null?void 0:a.location)==null?void 0:i.search)!=null&&l.includes("instrument=false")&&(p=!0),((s=dt.window)==null?void 0:s.parent)===dt.window&&!d||p?e:(dt.window&&!dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(dt.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new v$),((u=dt.window)==null?void 0:u.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(d){return UC.warn(d),e}}O(jc,"instrument");function ty(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}O(ty,"getPropertyDescriptor");function ry(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}O(ry,"isClass");var x$=Object.create,Mi=Object.defineProperty,E$=Object.getOwnPropertyDescriptor,w$=Object.getOwnPropertyNames,S$=Object.getPrototypeOf,C$=Object.prototype.hasOwnProperty,R=(e,t)=>Mi(e,"name",{value:t,configurable:!0}),$$=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ny=(e,t)=>{for(var r in t)Mi(e,r,{get:t[r],enumerable:!0})},A$=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of w$(t))!C$.call(e,o)&&o!==r&&Mi(e,o,{get:()=>t[o],enumerable:!(n=E$(t,o))||n.enumerable});return e},D$=(e,t,r)=>(r=e!=null?x$(S$(e)):{},A$(Mi(r,"default",{value:e,enumerable:!0}),e)),k$=$$(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,a){return R(function i(l,s,u){var d,p,c,f=t.call(l),m=t.call(s);if(l===s)return!0;if(l==null||s==null)return!1;if(u.indexOf(l)>-1&&u.indexOf(s)>-1)return!0;if(u.push(l,s),f!=m||(d=n(l),p=n(s),d.length!=p.length||d.some(function(h){return!i(l[h],s[h],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==s.valueOf();case"Date":case"Number":return+l==+s||+l!=+l&&+s!=+s;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+s;case"Set":case"Map":d=l.entries(),p=s.entries();do if(!i((c=d.next()).value,p.next().value,u))return!1;while(!c.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),s=new Uint8Array(s);case"DataView":l=new Uint8Array(l.buffer),s=new Uint8Array(s.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!=s.length)return!1;for(c=0;c<l.length;c++)if((c in l||c in s)&&(c in l!=c in s||!i(l[c],s[c],u)))return!1;return!0;case"Object":return i(r(l),r(s),u);default:return!1}},"n")(o,a,[])}}()});function oy(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()}R(oy,"toStartCaseStr");var nf=D$(k$()),ay=R(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),O$=R((e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(ay([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,nf.isEqual)(t,n);if(typeof o<"u")return!(0,nf.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},"testValue"),iy=R((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(ay([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return O$(e.if,a)},"includeConditionalArg");const{global:zl}=__STORYBOOK_MODULE_GLOBAL__,{Channel:F$}=__STORYBOOK_MODULE_CHANNELS__;function ly(){let e={setHandler:R(()=>{},"setHandler"),send:R(()=>{},"send")};return new F$({transport:e})}R(ly,"mockChannel");var sy=class{constructor(){this.getChannel=R(()=>{if(!this.channel){let t=ly();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=R(()=>this.promise,"ready"),this.hasChannel=R(()=>!!this.channel,"hasChannel"),this.setChannel=R(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};R(sy,"AddonStore");var _$=sy,Hl="__STORYBOOK_ADDONS_PREVIEW";function uy(){return zl[Hl]||(zl[Hl]=new _$),zl[Hl]}R(uy,"getAddonsStore");var of=uy();const{logger:RN}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{FORCE_RE_RENDER:PN,RESET_STORY_ARGS:IN,STORY_RENDERED:af,UPDATE_GLOBALS:LN,UPDATE_STORY_ARGS:BN}=__STORYBOOK_MODULE_CORE_EVENTS__,{global:Ul}=__STORYBOOK_MODULE_GLOBAL__;var cy=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=R(t=>{var r;t===((r=this.currentContext)==null?void 0:r.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(),of.getChannel().on(af,this.renderListener)}removeRenderListeners(){of.getChannel().removeListener(af,this.renderListener)}};R(cy,"HooksContext");var T$=cy;function eu(e){let t=R((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=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 s=Ul.STORYBOOK_HOOKS_CONTEXT;Ul.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(Ul.STORYBOOK_HOOKS_CONTEXT=s,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=a,n.nextHookIndex=i,n.currentDecoratorName=l,u},"hookified");return t.originalFn=e,t}R(eu,"hookify");var Wl=0,R$=25,P$=R(e=>(t,r)=>{let n=e(eu(t),r.map(o=>eu(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??(a.prevMountedDecorators=new Set),a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(Wl=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),Wl+=1,Wl>R$)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks");function Na(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}R(Na,"isPlainObject");function Mn(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];r[a]=t(i,a,e)}return r}R(Mn,"mapValues");function dy(e,t){let r={},n=Object.keys(e);for(let o=0;o<n.length;o++){let a=n[o],i=e[a];t(i,a)&&(r[a]=i)}return r}R(dy,"pickBy");const{once:jN}=__STORYBOOK_MODULE_CLIENT_LOGGER__;function zi(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,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
|
|
50
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
|
|
51
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
|
|
52
|
+
`)&&(p=String(l).split(`
|
|
53
|
+
`).map(function(c,f){return f===0?c:""+d+c}).join(`
|
|
54
|
+
`)),i+=p+n[s+1]}),i}R(zi,"dedent");var py="UNTARGETED";function fy({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=py}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}R(fy,"groupArgsByTarget");var I$=R((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),L$=R(e=>typeof e=="string"?{name:e}:e,"normalizeType"),B$=R(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),N$=R((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=L$(r)),n?a.control=B$(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),oi=R(e=>Mn(e,N$),"normalizeInputTypes");const{deprecate:j$,logger:M$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ue=R(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),z$=zi`
|
|
55
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
56
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
57
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
58
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
59
|
+
`;function my(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(M$.debug("deprecated story",a),j$(z$));let i=yD(e),l=typeof n!="function"&&n.name||n.storyName||(a==null?void 0:a.name)||i,s=[...ue(n.decorators),...ue(a==null?void 0:a.decorators)],u={...a==null?void 0:a.parameters,...n.parameters},d={...a==null?void 0:a.args,...n.args},p={...a==null?void 0:a.argTypes,...n.argTypes},c=[...ue(n.loaders),...ue(a==null?void 0:a.loaders)],f=[...ue(n.beforeEach),...ue(a==null?void 0:a.beforeEach)],m=[...ue(n.afterEach),...ue(a==null?void 0:a.afterEach)],{render:h,play:v,tags:E=[],globals:w={}}=n,S=u.__id||hD(r.id,i);return{moduleExport:t,id:S,name:l,tags:E,decorators:s,parameters:u,args:d,argTypes:oi(p),loaders:c,beforeEach:f,afterEach:m,globals:w,...h&&{render:h},...o&&{userStoryFn:o},...v&&{play:v}}}R(my,"normalizeStory");function gy(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:qi(n||t),...e,title:t,...o&&{argTypes:oi(o)},parameters:{fileName:r,...e.parameters}}}R(gy,"normalizeComponentAnnotations");const{NoRenderFunctionError:H$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:U$}=__STORYBOOK_MODULE_GLOBAL__,{global:W$}=__STORYBOOK_MODULE_GLOBAL__;function hy(e){return e!=null&&yy(e).includes("mount")}R(hy,"mountDestructured");function yy(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=tu(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?tu(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}R(yy,"getUsedProps");function tu(e){let t=[],r=[],n=0;for(let a=0;a<e.length;a++)if(e[a]==="{"||e[a]==="[")r.push(e[a]==="{"?"}":"]");else if(e[a]===r[r.length-1])r.pop();else if(!r.length&&e[a]===","){let i=e.substring(n,a).trim();i&&t.push(i),n=a+1}let o=e.substring(n).trim();return o&&t.push(o),t}R(tu,"splitByComma");function by(e,t,r){let n=r(e);return o=>t(n,o)}R(by,"decorateStory");function vy({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:l,argTypes:s,...u}={}){return u}R(vy,"sanitizeStoryContextUpdate");function xy(e,t){let r={},n=R(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...vy(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>by(a,i,n),e);return a=>(r.value=a,o(a))}R(xy,"defaultDecorateStory");var Dr=R((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,l])=>{let s=o[i];Array.isArray(l)||typeof s>"u"?o[i]=l:Na(l)&&Na(s)?t[i]=!0:typeof l<"u"&&(o[i]=l)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>Na(i))?n[o]=Dr(...a):n[o]=a[a.length-1]}),n},"combineParameters");function Ey(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=wy(e,t,r),l=R(async A=>{let C={};for(let D of[ue(r.loaders),ue(t.loaders),ue(e.loaders)]){if(A.abortSignal.aborted)return C;let F=await Promise.all(D.map(k=>k(A)));Object.assign(C,...F)}return C},"applyLoaders"),s=R(async A=>{let C=new Array;for(let D of[...ue(r.beforeEach),...ue(t.beforeEach),...ue(e.beforeEach)]){if(A.abortSignal.aborted)return C;let F=await D(A);F&&C.push(F)}return C},"applyBeforeEach"),u=R(async A=>{let C=[...ue(r.afterEach),...ue(t.afterEach),...ue(e.afterEach)].reverse();for(let D of C){if(A.abortSignal.aborted)return;await D(A)}},"applyAfterEach"),d=R(A=>A.originalStoryFn(A.args,A),"undecoratedStoryFn"),{applyDecorators:p=xy,runStep:c}=r,f=[...ue(e==null?void 0:e.decorators),...ue(t==null?void 0:t.decorators),...ue(r==null?void 0:r.decorators)],m=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render,h=P$(p)(d,f),v=R(A=>h(A),"unboundStoryFn"),E=(e==null?void 0:e.play)??(t==null?void 0:t.play),w=hy(E);if(!m&&!w)throw new H$({id:o});let S=R(A=>async()=>(await A.renderToCanvas(),A.canvas),"defaultMount"),x=e.mount??t.mount??r.mount??S,$=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:m,undecoratedStoryFn:d,unboundStoryFn:v,applyLoaders:l,applyBeforeEach:s,applyAfterEach:u,playFunction:E,runStep:c,mount:x,testingLibraryRender:$,renderToCanvas:r.renderToCanvas,usesMount:w}}R(Ey,"prepareStory");function wy(e,t,r){var E;let n=["dev","test"],o=((E=W$.DOCS_OPTIONS)==null?void 0:E.autodocs)===!0?["autodocs"]:[],a=ub(...n,...o,...r.tags??[],...t.tags??[],...(e==null?void 0:e.tags)??[]),i=Dr(r.parameters,t.parameters,e==null?void 0:e.parameters),{argTypesEnhancers:l=[],argsEnhancers:s=[]}=r,u=Dr(r.argTypes,t.argTypes,e==null?void 0:e.argTypes);if(e){let w=(e==null?void 0:e.userStoryFn)||(e==null?void 0:e.render)||t.render||r.render;i.__isArgsStory=w&&w.length>0}let d={...r.args,...t.args,...e==null?void 0:e.args},p={...t.globals,...e==null?void 0:e.globals},c={componentId:t.id,title:t.title,kind:t.title,id:(e==null?void 0:e.id)||t.id,name:(e==null?void 0:e.name)||"__meta",story:(e==null?void 0:e.name)||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:d,argTypes:u,storyGlobals:p};c.argTypes=l.reduce((w,S)=>S({...c,argTypes:w}),c.argTypes);let f={...d};c.initialArgs=[...s].reduce((w,S)=>({...w,...S({...c,initialArgs:w})}),f);let{name:m,story:h,...v}=c;return v}R(wy,"preparePartialAnnotations");function Sy(e){var a;let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if((a=U$.FEATURES)!=null&&a.argTypeTargetsV7){let i=fy(e);r={...e,allArgs:e.args,argsByTarget:i,args:i[py]||{}}}let n=Object.entries(r.args).reduce((i,[l,s])=>{var d;if(!((d=r.argTypes[l])!=null&&d.mapping))return i[l]=s,i;let u=R(p=>{let c=r.argTypes[l].mapping;return c&&p in c?c[p]:p},"mappingFn");return i[l]=Array.isArray(s)?s.map(u):u(s),i},{}),o=Object.entries(n).reduce((i,[l,s])=>{let u=r.argTypes[l]||{};return iy(u,n,r.globals)&&(i[l]=s),i},{});return{...r,unmappedArgs:t,args:o}}R(Sy,"prepareContext");const{logger:V$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var ru=R((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(V$.warn(zi`
|
|
60
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
61
|
+
|
|
62
|
+
Consider using the mapping feature or fully custom args:
|
|
63
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
64
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
65
|
+
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?ru(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Mn(e,o=>ru(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Cy=R(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=Mn(n,(i,l)=>({name:l,type:ru(i,`${t}.${l}`,new Set)})),a=Mn(r,(i,l)=>({name:l}));return Dr(o,a,r)},"inferArgTypes");Cy.secondPass=!0;const{logger:q$}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var lf=R((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),G$=R((e,t,r)=>!t&&!r?e:e&&dy(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||lf(a,t))&&(!r||!lf(a,r))}),"filterArgTypes"),Y$=R((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&q$.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:(a==null?void 0:a.length)<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),$y=R(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=G$(t,n,o),l=Mn(i,(s,u)=>(s==null?void 0:s.type)&&Y$(s,u.toString(),a));return Dr(l,i)},"inferControls");$y.secondPass=!0;function Mc({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,afterEach:i,initialGlobals:l,...s}){return{...e&&{argTypes:oi(e)},...t&&{globalTypes:oi(t)},decorators:ue(n),loaders:ue(o),beforeEach:ue(a),afterEach:ue(i),argTypesEnhancers:[...r||[],Cy,$y],initialGlobals:l,...s}}R(Mc,"normalizeProjectAnnotations");const{global:K$}=__STORYBOOK_MODULE_GLOBAL__;var X$=R(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 Ay(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}R(Ay,"composeStepRunners");function zn(e,t){return e.map(r=>{var n;return((n=r.default)==null?void 0:n[t])??r[t]}).filter(Boolean)}R(zn,"getField");function Jt(e,t,r={}){return zn(e,t).reduce((n,o)=>{let a=ue(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}R(Jt,"getArrayField");function Fo(e,t){return Object.assign({},...zn(e,t))}R(Fo,"getObjectField");function xn(e,t){return zn(e,t).pop()}R(xn,"getSingletonField");function zc(e){var o;let t=Jt(e,"argTypesEnhancers"),r=zn(e,"runStep"),n=Jt(e,"beforeAll");return{parameters:Dr(...zn(e,"parameters")),decorators:Jt(e,"decorators",{reverseFileOrder:!(((o=K$.FEATURES)==null?void 0:o.legacyDecoratorFileOrder)??!1)}),args:Fo(e,"args"),argsEnhancers:Jt(e,"argsEnhancers"),argTypes:Fo(e,"argTypes"),argTypesEnhancers:[...t.filter(a=>!a.secondPass),...t.filter(a=>a.secondPass)],initialGlobals:Fo(e,"initialGlobals"),globalTypes:Fo(e,"globalTypes"),loaders:Jt(e,"loaders"),beforeAll:X$(n),beforeEach:Jt(e,"beforeEach"),afterEach:Jt(e,"afterEach"),render:xn(e,"render"),renderToCanvas:xn(e,"renderToCanvas"),applyDecorators:xn(e,"applyDecorators"),runStep:Ay(r),tags:Jt(e,"tags"),mount:xn(e,"mount"),testingLibraryRender:xn(e,"testingLibraryRender")}}R(zc,"composeConfigs");const{MountMustBeDestructuredError:Z$}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;function Dy(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}R(Dy,"isTestEnvironment");function ky(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
66
|
+
animation: none !important;
|
|
67
|
+
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
68
|
+
animation-delay: 0s !important;
|
|
69
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
70
|
+
animation-play-state: paused !important;
|
|
71
|
+
transition: none !important;
|
|
72
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{var n;(n=r.parentNode)==null||n.removeChild(r)}}R(ky,"pauseAnimations");async function Oy(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,...Hc(globalThis.document)],o=R(async()=>{if(t||e!=null&&e.aborted)return;let a=n.flatMap(i=>{var l;return((l=i==null?void 0:i.getAnimations)==null?void 0:l.call(i))||[]}).filter(i=>i.playState==="running"&&!Fy(i));a.length>0&&(await Promise.all(a.map(i=>i.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}R(Oy,"waitForAnimations");function Hc(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...Hc(r.shadowRoot)),t),[])}R(Hc,"getShadowRoots");function Fy(e){var t;if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let r=getComputedStyle(e.effect.target,e.effect.pseudoElement),n=(t=r.animationName)==null?void 0:t.split(", ").indexOf(e.animationName);return r.animationIterationCount.split(", ")[n]==="infinite"}return!1}R(Fy,"isInfiniteAnimation");var _y=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};R(_y,"ReporterAPI");var J$=_y,Q$="ComposedStory",eA="Unnamed Story",Cr=[];function Ty(e,t,r,n,o){var E;if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??Q$;let a=gy(t),i=o||e.storyName||((E=e.story)==null?void 0:E.name)||e.name||eA,l=my(i,e,a),s=Mc(zc([n??globalThis.globalProjectAnnotations??{},r??{}])),u=Ey(l,a,s),d={...I$(s.globalTypes),...s.initialGlobals,...u.storyGlobals},p=new J$,c=R(()=>{let w=Sy({hooks:new T$,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:p,loaded:{},abortSignal:new AbortController().signal,step:R((S,x)=>u.runStep(S,x,w),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:s.globalTypes,...u,context:null,mount:null});return w.parameters.__isPortableStory=!0,w.context=w,u.renderToCanvas&&(w.renderToCanvas=async()=>{var x;let S=await((x=u.renderToCanvas)==null?void 0:x.call(u,{componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:R(()=>{},"showMain"),showError:R($=>{throw new Error(`${$.title}
|
|
73
|
+
${$.description}`)},"showError"),showException:R($=>{throw $},"showException"),forceRemount:!0,storyContext:w,storyFn:R(()=>u.unboundStoryFn(w),"storyFn"),unboundStoryFn:u.unboundStoryFn},w.canvasElement));S&&Cr.push(S)}),w.mount=u.mount(w),w},"initializeContext"),f,m=R(async w=>{var x;let S=c();return S.canvasElement??(S.canvasElement=(x=globalThis==null?void 0:globalThis.document)==null?void 0:x.body),f&&(S.loaded=f.loaded),Object.assign(S,w),u.playFunction(S)},"play"),h=R(w=>{let S=c();return Object.assign(S,w),Ry(u,S)},"run"),v=u.playFunction?m:void 0;return Object.assign(R(function(w){let S=c();return f&&(S.loaded=f.loaded),S.args={...S.initialArgs,...w},u.unboundStoryFn(S)},"storyFn"),{id:u.id,storyName:i,load:R(async()=>{for(let S of[...Cr].reverse())await S();Cr.length=0;let w=c();w.loaded=await u.applyLoaders(w),Cr.push(...(await u.applyBeforeEach(w)).filter(Boolean)),f=w},"load"),globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:v,run:h,reporting:p,tags:u.tags})}R(Ty,"composeStory");async function Ry(e,t){var a,i;for(let l of[...Cr].reverse())await l();if(Cr.length=0,!t.canvasElement){let l=document.createElement("div");(i=(a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body)==null||i.appendChild(l),t.canvasElement=l,Cr.push(()=>{var s,u,d,p;(u=(s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body)!=null&&u.contains(l)&&((p=(d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body)==null||p.removeChild(l))})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;Cr.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 Z$({playFunction:r.toString()})}),await r(t));let o;Dy()?o=ky():await Oy(t.abortSignal),await e.applyAfterEach(t),await(o==null?void 0:o())}R(Ry,"runStory");var sf="Invariant failed";function ai(e,t){if(!e){var r=typeof t=="function"?t():t,n=r?"".concat(sf,": ").concat(r):sf;throw new Error(n)}}R(ai,"invariant");var Py={};ny(Py,{argsEnhancers:()=>cA});const{ImplicitActionsDuringRendering:tA}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:uf}=__STORYBOOK_MODULE_GLOBAL__,{addons:rA}=__STORYBOOK_MODULE_PREVIEW_API__;var nA="storybook/actions",oA=`${nA}/action-event`,aA={depth:10,clearOnStoryChange:!0,limit:50},Iy=R((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:Iy(r,t)},"findProto"),iA=R(e=>!!(typeof e=="object"&&e&&Iy(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),lA=R(e=>{if(iA(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r==null?void 0:r.value;return typeof n=="object"&&(n==null?void 0:n.constructor.name)==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function Hi(e,t={}){let r={...aA,...t},n=R(function(...o){var p,c;if(t.implicit){let f=(p="__STORYBOOK_PREVIEW__"in uf?uf.__STORYBOOK_PREVIEW__:void 0)==null?void 0:p.storyRenders.find(m=>m.phase==="playing"||m.phase==="rendering");if(f){let m=!((c=globalThis==null?void 0:globalThis.FEATURES)!=null&&c.disallowImplicitActionsInRenderV8),h=new tA({phase:f.phase,name:e,deprecated:m});if(m)console.warn(h);else throw h}}let a=rA.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,s=o.map(lA),u=o.length>1?s:s[0],d={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:l+(r.depth||3)}};a.emit(oA,d)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}R(Hi,"action");var Ly=R((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),sA=R(e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[l,s])=>(Ly(l,t)&&(i[l]=Hi(l,{implicit:!0,id:n})),i),{})},"inferActionsFromArgTypesRegex"),uA=R(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n!=null&&n.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(Ly(a,t)&&(o[a]=Hi(typeof i.action=="string"?i.action:a)),o),{})},"addActionsFromArgTypes"),cA=[uA,sA],By={};ny(By,{loaders:()=>fA});const{onMockCall:dA}=__STORYBOOK_MODULE_TEST__;var cf=!1,pA=R(e=>{var r;let{parameters:t}=e;(r=t==null?void 0:t.actions)!=null&&r.disable||cf||(dA((n,o)=>{let a=n.getMockName();a!=="spy"&&(!/^next\/.*::/.test(a)||["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=>a.startsWith(i)))&&Hi(a)(o)}),cf=!0)},"logActionsWhenMockCalled"),fA=[pA],df=R(()=>({...Py,...By}),"default"),ii="backgrounds";const{useEffect:pf}=__STORYBOOK_MODULE_PREVIEW_API__;var mA={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:$t}=globalThis,gA=R(()=>{var e;return globalThis!=null&&globalThis.matchMedia?!!((e=globalThis.matchMedia("(prefers-reduced-motion: reduce)"))!=null&&e.matches):!1},"isReduceMotionEnabled"),ff=R(e=>{(Array.isArray(e)?e:[e]).forEach(hA)},"clearStyles"),hA=R(e=>{if(!$t)return;let t=$t.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),yA=R((e,t)=>{if(!$t)return;let r=$t.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=$t.createElement("style");n.setAttribute("id",e),n.innerHTML=t,$t.head.appendChild(n)}},"addGridStyle"),bA=R((e,t,r)=>{var o;if(!$t)return;let n=$t.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let a=$t.createElement("style");a.setAttribute("id",e),a.innerHTML=t;let i=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,l=$t.getElementById(i);l?(o=l.parentElement)==null||o.insertBefore(a,l):$t.head.appendChild(a)}},"addBackgroundStyle"),vA={cellSize:100,cellAmount:10,opacity:.8},mf="addon-backgrounds",gf="addon-backgrounds-grid",xA=gA()?"":"transition: background-color 0.3s;",EA=R((e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=mA,disable:l,grid:s=vA}=n[ii]||{},u=r[ii]||{},d=typeof u=="string"?u:u==null?void 0:u.value,p=d?i[d]:void 0,c=typeof p=="string"?p:(p==null?void 0:p.value)||"transparent",f=typeof u=="string"?!1:u.grid||!1,m=!!p&&!l,h=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",v=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",E=n.layout===void 0||n.layout==="padded",w=o==="docs"?20:E?16:0,{cellAmount:S,cellSize:x,opacity:$,offsetX:A=w,offsetY:C=w}=s,D=o==="docs"?`${mf}-docs-${a}`:`${mf}-color`,F=o==="docs"?a:null;pf(()=>{let _=`
|
|
74
|
+
${h} {
|
|
75
|
+
background: ${c} !important;
|
|
76
|
+
${xA}
|
|
77
|
+
}`;if(!m){ff(D);return}bA(D,_,F)},[h,D,F,m,c]);let k=o==="docs"?`${gf}-docs-${a}`:`${gf}`;return pf(()=>{if(!f){ff(k);return}let _=[`${x*S}px ${x*S}px`,`${x*S}px ${x*S}px`,`${x}px ${x}px`,`${x}px ${x}px`].join(", "),I=`
|
|
78
|
+
${v} {
|
|
79
|
+
background-size: ${_} !important;
|
|
80
|
+
background-position: ${A}px ${C}px, ${A}px ${C}px, ${A}px ${C}px, ${A}px ${C}px !important;
|
|
81
|
+
background-blend-mode: difference !important;
|
|
82
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${$}) 1px, transparent 1px),
|
|
83
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${$}) 1px, transparent 1px),
|
|
84
|
+
linear-gradient(rgba(130, 130, 130, ${$/2}) 1px, transparent 1px),
|
|
85
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${$/2}) 1px, transparent 1px) !important;
|
|
86
|
+
}
|
|
87
|
+
`;yA(k,I)},[S,x,v,k,f,A,C,$]),e()},"withBackgroundAndGrid"),ah,wA=(ah=globalThis.FEATURES)!=null&&ah.backgrounds?[EA]:[],SA={[ii]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},CA={[ii]:{value:void 0,grid:!1}},hf=R(()=>({decorators:wA,parameters:SA,initialGlobals:CA}),"default"),{step:$A}=jc({step:R(async(e,t,r)=>t(r),"step")},{intercept:!0}),yf=R(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:$A}),"default");const{addons:ga}=__STORYBOOK_MODULE_PREVIEW_API__,{STORY_RENDER_PHASE_CHANGED:AA}=__STORYBOOK_MODULE_CORE_EVENTS__;var Ui="storybook/highlight",DA=`${Ui}/add`,kA=`${Ui}/remove`,OA=`${Ui}/reset`,FA=`${Ui}/scroll-into-view`,bf=2147483647,br=28,vf={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"]},_A="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),_e=R((e,t={},r)=>{let n=_A.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r==null||r.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},"createElement"),ha=R(e=>vf[e]&&_e("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},vf[e].map(t=>_e("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),TA=R(e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),RA=R(e=>e instanceof Function,"isFunction"),vo=new Map,Br=new Map,ya=new Map,Kt=R(e=>{let t=Symbol();return Br.set(t,[]),vo.set(t,e),{get:R(()=>vo.get(t),"get"),set:R(r=>{var a;let n=vo.get(t),o=RA(r)?r(n):r;o!==n&&(vo.set(t,o),(a=Br.get(t))==null||a.forEach(i=>{var l;(l=ya.get(i))==null||l(),ya.set(i,i(o))}))},"set"),subscribe:R(r=>{var n;return(n=Br.get(t))==null||n.push(r),()=>{let o=Br.get(t);o&&Br.set(t,o.filter(a=>a!==r))}},"subscribe"),teardown:R(()=>{var r;(r=Br.get(t))==null||r.forEach(n=>{var o;(o=ya.get(n))==null||o(),ya.delete(n)}),Br.delete(t),vo.delete(t)},"teardown")}},"useStore"),xf=R(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...(t==null?void 0:t.querySelectorAll(a))||[]];for(let l of i){let s=r.get(l);(!s||s.priority<=o)&&r.set(l,{...n,priority:o,selectors:Array.from(new Set(((s==null?void 0:s.selectors)||[]).concat(a)))})}}}return r},"mapElements"),PA=R(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{let{top:l,left:s,width:u,height:d}=t.getBoundingClientRect(),{position:p}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i,top:p==="fixed"?l:l+window.scrollY,left:p==="fixed"?s:s+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),Ef=R((e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return(r==null?void 0:r.top)&&(r==null?void 0:r.left)&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},"isOverMenu"),wf=R((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i<br&&(o=o-Math.round((br-i)/2),i=br),a<br&&(n=n-Math.round((br-a)/2),a=br),t.style.position==="fixed"&&(n+=window.scrollX,o+=window.scrollY);let{x:l,y:s}=r;return l>=n&&l<=n+a&&s>=o&&s<=o+i},"isTargeted"),IA=R((e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=0,centered:l=!1}=r,{scrollX:s,scrollY:u,innerHeight:d,innerWidth:p}=window,c=Math.min(e.style.position==="fixed"?o-u:o,d-e.clientHeight-a-i+u),f=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-s,p-f-a),f+a):Math.max(Math.min(n,p-f-a+s),f+a+s);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...c!==o&&{top:`${c}px`}})},"keepInViewport"),Sf=R(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),LA=R(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),BA=R(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"),he="storybook-highlights-menu",Cf="storybook-highlights-root",NA="storybook-root",jA=R(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Kt([]),n=Kt(new Map),o=Kt([]),a=Kt(),i=Kt(),l=Kt([]),s=Kt([]),u=Kt(),d=Kt(),p=t.getElementById(Cf);r.subscribe(()=>{p||(p=_e("div",{id:Cf}),t.body.appendChild(p))}),r.subscribe(C=>{let D=t.getElementById(NA);if(!D)return;n.set(xf(C));let F=new MutationObserver(()=>n.set(xf(C)));return F.observe(D,{subtree:!0,childList:!0}),()=>{F.disconnect()}}),n.subscribe(C=>{let D=R(()=>requestAnimationFrame(()=>o.set(PA(C))),"updateBoxes"),F=new ResizeObserver(D);F.observe(t.body),Array.from(C.keys()).forEach(_=>F.observe(_));let k=Array.from(t.body.querySelectorAll("*")).filter(_=>{let{overflow:I,overflowX:L,overflowY:j}=window.getComputedStyle(_);return["auto","scroll"].some(B=>[I,L,j].includes(B))});return k.forEach(_=>_.addEventListener("scroll",D)),()=>{F.disconnect(),k.forEach(_=>_.removeEventListener("scroll",D))}}),n.subscribe(C=>{let D=Array.from(C.keys()).filter(({style:k})=>k.position==="sticky"),F=R(()=>requestAnimationFrame(()=>{o.set(k=>k.map(_=>{if(D.includes(_.element)){let{top:I,left:L}=_.element.getBoundingClientRect();return{..._,top:I+window.scrollY,left:L+window.scrollX}}return _}))}),"updateBoxes");return t.addEventListener("scroll",F),()=>t.removeEventListener("scroll",F)}),n.subscribe(C=>{l.set(D=>D.filter(({element:F})=>C.has(F)))}),l.subscribe(C=>{C.length?(d.set(D=>C.some(F=>F.element===(D==null?void 0:D.element))?D:void 0),u.set(D=>C.some(F=>F.element===(D==null?void 0:D.element))?D:void 0)):(d.set(void 0),u.set(void 0),a.set(void 0))});let c=new Map(new Map);r.subscribe(C=>{C.forEach(({keyframes:D})=>{if(D){let F=c.get(D);F||(F=t.createElement("style"),F.setAttribute("data-highlight","keyframes"),c.set(D,F),t.head.appendChild(F)),F.innerHTML=D}}),c.forEach((D,F)=>{C.some(k=>k.keyframes===F)||(D.remove(),c.delete(F))})});let f=new Map(new Map);o.subscribe(C=>{C.forEach(D=>{let F=f.get(D.element);if(p&&!F){let k={popover:"manual","data-highlight-dimensions":`w${D.width.toFixed(0)}h${D.height.toFixed(0)}`,"data-highlight-coordinates":`x${D.left.toFixed(0)}y${D.top.toFixed(0)}`};F=p.appendChild(_e("div",k,[_e("div")])),f.set(D.element,F)}}),f.forEach((D,F)=>{C.some(({element:k})=>k===F)||(D.remove(),f.delete(F))})}),o.subscribe(C=>{let D=C.filter(k=>k.menu);if(!D.length)return;let F=R(k=>{requestAnimationFrame(()=>{let _=t.getElementById(he),I={x:k.pageX,y:k.pageY};if(_&&!Ef(_,I)){let L=D.filter(j=>{let B=f.get(j.element);return wf(j,B,I)});a.set(L.length?I:void 0),l.set(L)}})},"onClick");return t.addEventListener("click",F),()=>t.removeEventListener("click",F)});let m=R(()=>{let C=t.getElementById(he),D=i.get();!D||C&&Ef(C,D)||s.set(F=>{let k=o.get().filter(j=>{let B=f.get(j.element);return wf(j,B,D)}),_=F.filter(j=>k.includes(j)),I=k.filter(j=>!F.includes(j)),L=F.length-_.length;return I.length||L?[..._,...I]:F})},"updateHovered");i.subscribe(m),o.subscribe(m);let h=R(()=>{let C=d.get(),D=C?[C]:l.get(),F=D.length===1?D[0]:u.get(),k=a.get()!==void 0;o.get().forEach(_=>{var L;let I=f.get(_.element);if(I){let j=F===_,B=k?F?j:D.includes(_):(L=s.get())==null?void 0:L.includes(_);Object.assign(I.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",..._.styles,...B?_.hoverStyles:{},...j?_.focusStyles:{},position:getComputedStyle(_.element).position==="fixed"?"fixed":"absolute",zIndex:bf-10,top:`${_.top}px`,left:`${_.left}px`,width:`${_.width}px`,height:`${_.height}px`,margin:0,padding:0,cursor:_.menu&&B?"pointer":"default",pointerEvents:_.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(I.children[0].style,{width:"100%",height:"100%",minHeight:`${br}px`,minWidth:`${br}px`,boxSizing:"content-box",padding:I.style.outlineWidth||"0px"}),Sf(I)}})},"updateBoxStyles");o.subscribe(h),l.subscribe(h),s.subscribe(h),u.subscribe(h),d.subscribe(h);let v=R(()=>{var _;if(!p)return;let C=t.getElementById(he);if(C)C.innerHTML="";else{let I={id:he,popover:"manual"};C=p.appendChild(_e("div",I)),p.appendChild(_e("style",{},[`
|
|
88
|
+
#${he} {
|
|
89
|
+
position: absolute;
|
|
90
|
+
z-index: ${bf};
|
|
91
|
+
width: 300px;
|
|
92
|
+
padding: 0px;
|
|
93
|
+
margin: 15px 0 0 0;
|
|
94
|
+
transform: translateX(-50%);
|
|
95
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
background: white;
|
|
98
|
+
border: none;
|
|
99
|
+
border-radius: 6px;
|
|
100
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
101
|
+
color: #2E3438;
|
|
102
|
+
}
|
|
103
|
+
#${he} ul {
|
|
104
|
+
list-style: none;
|
|
105
|
+
margin: 0;
|
|
106
|
+
padding: 0;
|
|
107
|
+
}
|
|
108
|
+
#${he} > ul {
|
|
109
|
+
max-height: 300px;
|
|
110
|
+
overflow-y: auto;
|
|
111
|
+
padding: 4px 0;
|
|
112
|
+
}
|
|
113
|
+
#${he} li {
|
|
114
|
+
padding: 0 4px;
|
|
115
|
+
margin: 0;
|
|
116
|
+
}
|
|
117
|
+
#${he} li > :not(ul) {
|
|
118
|
+
display: flex;
|
|
119
|
+
padding: 8px;
|
|
120
|
+
margin: 0;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: 8px;
|
|
123
|
+
border-radius: 4px;
|
|
124
|
+
}
|
|
125
|
+
#${he} button {
|
|
126
|
+
width: 100%;
|
|
127
|
+
border: 0;
|
|
128
|
+
background: transparent;
|
|
129
|
+
color: inherit;
|
|
130
|
+
text-align: left;
|
|
131
|
+
font-family: inherit;
|
|
132
|
+
font-size: inherit;
|
|
133
|
+
}
|
|
134
|
+
#${he} button:focus-visible {
|
|
135
|
+
outline-color: #029CFD;
|
|
136
|
+
}
|
|
137
|
+
#${he} button:hover {
|
|
138
|
+
background: rgba(2, 156, 253, 0.07);
|
|
139
|
+
color: #029CFD;
|
|
140
|
+
cursor: pointer;
|
|
141
|
+
}
|
|
142
|
+
#${he} li code {
|
|
143
|
+
white-space: nowrap;
|
|
144
|
+
overflow: hidden;
|
|
145
|
+
text-overflow: ellipsis;
|
|
146
|
+
line-height: 16px;
|
|
147
|
+
font-size: 11px;
|
|
148
|
+
}
|
|
149
|
+
#${he} li svg {
|
|
150
|
+
flex-shrink: 0;
|
|
151
|
+
margin: 1px;
|
|
152
|
+
color: #73828C;
|
|
153
|
+
}
|
|
154
|
+
#${he} li > button:hover svg, #${he} li > button:focus-visible svg {
|
|
155
|
+
color: #029CFD;
|
|
156
|
+
}
|
|
157
|
+
#${he} .element-list li svg {
|
|
158
|
+
display: none;
|
|
159
|
+
}
|
|
160
|
+
#${he} li.selectable svg, #${he} li.selected svg {
|
|
161
|
+
display: block;
|
|
162
|
+
}
|
|
163
|
+
#${he} .menu-list {
|
|
164
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
165
|
+
}
|
|
166
|
+
#${he} .menu-list > li:not(:last-child) {
|
|
167
|
+
padding-bottom: 4px;
|
|
168
|
+
margin-bottom: 4px;
|
|
169
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
170
|
+
}
|
|
171
|
+
#${he} .menu-items, #${he} .menu-items li {
|
|
172
|
+
padding: 0;
|
|
173
|
+
}
|
|
174
|
+
#${he} .menu-item {
|
|
175
|
+
display: flex;
|
|
176
|
+
}
|
|
177
|
+
#${he} .menu-item-content {
|
|
178
|
+
display: flex;
|
|
179
|
+
flex-direction: column;
|
|
180
|
+
flex-grow: 1;
|
|
181
|
+
}
|
|
182
|
+
`]))}let D=d.get(),F=D?[D]:l.get();if(F.length&&(C.style.position=getComputedStyle(F[0].element).position==="fixed"?"fixed":"absolute",C.appendChild(_e("ul",{class:"element-list"},F.map(I=>{var M;let L=F.length>1&&!!((M=I.menu)!=null&&M.some(V=>V.some(G=>!G.selectors||G.selectors.some(W=>I.selectors.includes(W))))),j=L?{class:"selectable",onClick:R(()=>d.set(I),"onClick"),onMouseEnter:R(()=>u.set(I),"onMouseEnter"),onMouseLeave:R(()=>u.set(void 0),"onMouseLeave")}:D?{class:"selected",onClick:R(()=>d.set(void 0),"onClick")}:{},B=L||D;return _e("li",j,[_e(B?"button":"div",B?{type:"button"}:{},[D?ha("chevronLeft"):null,_e("code",{},[I.element.outerHTML]),L?ha("chevronRight"):null])])})))),d.get()||l.get().length===1){let I=d.get()||l.get()[0],L=(_=I.menu)==null?void 0:_.filter(j=>j.some(B=>!B.selectors||B.selectors.some(M=>I.selectors.includes(M))));L!=null&&L.length&&C.appendChild(_e("ul",{class:"menu-list"},L.map(j=>_e("li",{},[_e("ul",{class:"menu-items"},j.map(({id:B,title:M,description:V,iconLeft:G,iconRight:W,clickEvent:Y})=>{let X=Y&&(()=>e.emit(Y,B,BA(I)));return _e("li",{},[_e(X?"button":"div",X?{class:"menu-item",type:"button",onClick:X}:{class:"menu-item"},[G?ha(G):null,_e("div",{class:"menu-item-content"},[_e(V?"strong":"span",{},[M]),V&&_e("span",{},[V])]),W?ha(W):null])])}))]))))}let k=a.get();k?(Object.assign(C.style,{display:"block",left:`${C.style.position==="fixed"?k.x-window.scrollX:k.x}px`,top:`${C.style.position==="fixed"?k.y-window.scrollY:k.y}px`}),Sf(C),requestAnimationFrame(()=>IA(C,k,{topOffset:15,centered:!0}))):(LA(C),Object.assign(C.style,{display:"none"}))},"renderMenu");l.subscribe(v),d.subscribe(v);let E=R(C=>{let D=TA(C);r.set(F=>{var _;let k=D.id?F.filter(I=>I.id!==D.id):F;return(_=D.selectors)!=null&&_.length?[...k,D]:k})},"addHighlight"),w=R(C=>{C&&r.set(D=>D.filter(F=>F.id!==C))},"removeHighlight"),S=R(()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),l.set([]),s.set([]),u.set(void 0),d.set(void 0)},"resetState"),x,$=R((C,D)=>{let F="scrollIntoView-highlight";clearTimeout(x),w(F);let k=t.querySelector(C);if(!k){console.warn(`Cannot scroll into view: ${C} not found`);return}k.scrollIntoView({behavior:"smooth",block:"center",...D});let _=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(I=>[...I,{id:F,priority:1e3,selectors:[C],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${_} 3s linear forwards`},keyframes:`@keyframes ${_} {
|
|
183
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
184
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
185
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
186
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
187
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
188
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
189
|
+
}`}]),x=setTimeout(()=>w(F),3500)},"scrollIntoView"),A=R(C=>{requestAnimationFrame(()=>i.set({x:C.pageX,y:C.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",A),e.on(DA,E),e.on(kA,w),e.on(OA,S),e.on(FA,$),e.on(AA,({newPhase:C})=>{C==="loading"&&S()})},"useHighlights"),ih;(ih=globalThis==null?void 0:globalThis.FEATURES)!=null&&ih.highlight&&(ga!=null&&ga.ready)&&ga.ready().then(jA);var $f=R(()=>({}),"default"),MA="measureEnabled";const{useEffect:Af}=__STORYBOOK_MODULE_PREVIEW_API__,{global:li}=__STORYBOOK_MODULE_GLOBAL__;function Uc(){let e=li.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}R(Uc,"getDocumentWidthAndHeight");function Ny(){let e=li.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");ai(t!=null);let{width:r,height:n}=Uc();return si(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",li.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}R(Ny,"createCanvas");function si(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=li.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}R(si,"setCanvasWidthAndHeight");var Te={};function jy(){Te.canvas||(Te=Ny())}R(jy,"init");function Wc(){Te.context&&Te.context.clearRect(0,0,Te.width??0,Te.height??0)}R(Wc,"clear");function My(e){Wc(),e(Te.context)}R(My,"draw");function zy(){ai(Te.canvas,"Canvas should exist in the state."),ai(Te.context,"Context should exist in the state."),si(Te.canvas,Te.context,{width:0,height:0});let{width:e,height:t}=Uc();si(Te.canvas,Te.context,{width:e,height:t}),Te.width=e,Te.height=t}R(zy,"rescale");function Hy(){var e;Te.canvas&&(Wc(),(e=Te.canvas.parentNode)==null||e.removeChild(Te.canvas),Te={})}R(Hy,"destroy");const{global:St}=__STORYBOOK_MODULE_GLOBAL__;var mn={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},nr=6;function nu(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}R(nu,"roundedRect");function Uy(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,d=a+r.top+t.top;return e==="top"?u+=l/2:e==="right"?(u+=l,d+=s/2):e==="bottom"?(u+=l/2,d+=s):e==="left"?d+=s/2:e==="center"&&(u+=l/2,d+=s/2),{x:u,y:d}}R(Uy,"positionCoordinate");function Wy(e,t,{margin:r,border:n,padding:o},a,i){let l=R(c=>0,"shift"),s=0,u=0,d=i?1:.5,p=i?a*2:0;return e==="padding"?l=R(c=>o[c]*d+p,"shift"):e==="border"?l=R(c=>o[c]+n[c]*d+p,"shift"):e==="margin"&&(l=R(c=>o[c]+n[c]+r[c]*d+p,"shift")),t==="top"?u=-l("top"):t==="right"?s=l("right"):t==="bottom"?u=l("bottom"):t==="left"&&(s=-l("left")),{offsetX:s,offsetY:u}}R(Wy,"offset");function Vy(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}R(Vy,"collide");function qy(e,t,r){return e==="top"?t.y=r.y-r.h-nr:e==="right"?t.x=r.x+r.w/2+nr+t.w/2:e==="bottom"?t.y=r.y+r.h+nr:e==="left"&&(t.x=r.x-r.w/2-nr-t.w/2),{x:t.x,y:t.y}}R(qy,"overlapAdjustment");function Vc(e,t,{x:r,y:n,w:o,h:a},i){return nu(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${mn[t]}dd`,e.fill(),e.strokeStyle=mn[t],e.stroke(),e.fillStyle=mn.text,e.fillText(i,r,n),nu(e,{x:r,y:n,w:o,h:a,r:3}),e.fillStyle=`${mn[t]}dd`,e.fill(),e.strokeStyle=mn[t],e.stroke(),e.fillStyle=mn.text,e.fillText(i,r,n),{x:r,y:n,w:o,h:a}}R(Vc,"textWithRect");function qc(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+nr*2,a=n+nr*2;return{w:o,h:a}}R(qc,"configureText");function Gy(e,t,{type:r,position:n="center",text:o},a,i=!1){let{x:l,y:s}=Uy(n,t),{offsetX:u,offsetY:d}=Wy(r,n,t,nr+1,i);l+=u,s+=d;let{w:p,h:c}=qc(e,o);if(a&&Vy({x:l,y:s,w:p,h:c},a)){let f=qy(n,{x:l,y:s,w:p},a);l=f.x,s=f.y}return Vc(e,r,{x:l,y:s,w:p,h:c},o)}R(Gy,"drawLabel");function Yy(e,{w:t,h:r}){let n=t*.5+nr,o=r*.5+nr;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*o}}R(Yy,"floatingOffset");function Ky(e,t,{type:r,text:n}){let{floatingAlignment:o,extremities:a}=t,i=a[o.x],l=a[o.y],{w:s,h:u}=qc(e,n),{offsetX:d,offsetY:p}=Yy(o,{w:s,h:u});return i+=d,l+=p,Vc(e,r,{x:i,y:l,w:s,h:u},n)}R(Ky,"drawFloatingLabel");function En(e,t,r,n){let o=[];r.forEach((a,i)=>{let l=n&&a.position==="center"?Ky(e,t,a):Gy(e,t,a,o[i-1],n);o[i]=l})}R(En,"drawStack");function Xy(e,t,r,n){let o=r.reduce((a,i)=>{var l;return Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),(l=a[i.position])==null||l.push(i),a},{});o.top&&En(e,t,o.top,n),o.right&&En(e,t,o.right,n),o.bottom&&En(e,t,o.bottom,n),o.left&&En(e,t,o.left,n),o.center&&En(e,t,o.center,n)}R(Xy,"labelStacks");var Wi={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},Df=30;function it(e){return parseInt(e.replace("px",""),10)}R(it,"pxToNumber");function qr(e){return Number.isInteger(e)?e:e.toFixed(2)}R(qr,"round");function Vi(e){return e.filter(t=>t.text!==0&&t.text!=="0")}R(Vi,"filterZeroValues");function Zy(e){let t={top:St.window.scrollY,bottom:St.window.scrollY+St.window.innerHeight,left:St.window.scrollX,right:St.window.scrollX+St.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"}}R(Zy,"floatingAlignment");function Jy(e){let t=St.getComputedStyle(e),{top:r,left:n,right:o,bottom:a,width:i,height:l}=e.getBoundingClientRect(),{marginTop:s,marginBottom:u,marginLeft:d,marginRight:p,paddingTop:c,paddingBottom:f,paddingLeft:m,paddingRight:h,borderBottomWidth:v,borderTopWidth:E,borderLeftWidth:w,borderRightWidth:S}=t;r=r+St.window.scrollY,n=n+St.window.scrollX,a=a+St.window.scrollY,o=o+St.window.scrollX;let x={top:it(s),bottom:it(u),left:it(d),right:it(p)},$={top:it(c),bottom:it(f),left:it(m),right:it(h)},A={top:it(E),bottom:it(v),left:it(w),right:it(S)},C={top:r-x.top,bottom:a+x.bottom,left:n-x.left,right:o+x.right};return{margin:x,padding:$,border:A,top:r,left:n,bottom:a,right:o,width:i,height:l,extremities:C,floatingAlignment:Zy(C)}}R(Jy,"measureElement");function Qy(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n+t.bottom+t.top;e.fillStyle=Wi.margin,e.fillRect(a,o-t.top,r,t.top),e.fillRect(l,o-t.top,t.right,s),e.fillRect(a,i,r,t.bottom),e.fillRect(a-t.left,o-t.top,t.left,s);let u=[{type:"margin",text:qr(t.top),position:"top"},{type:"margin",text:qr(t.right),position:"right"},{type:"margin",text:qr(t.bottom),position:"bottom"},{type:"margin",text:qr(t.left),position:"left"}];return Vi(u)}R(Qy,"drawMargin");function eb(e,{padding:t,border:r,width:n,height:o,top:a,left:i,bottom:l,right:s}){let u=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Wi.padding,e.fillRect(i+r.left,a+r.top,u,t.top),e.fillRect(s-t.right-r.right,a+t.top+r.top,t.right,d),e.fillRect(i+r.left,l-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,a+t.top+r.top,t.left,d);let p=[{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 Vi(p)}R(eb,"drawPadding");function tb(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:l}){let s=n-t.top-t.bottom;e.fillStyle=Wi.border,e.fillRect(a,o,r,t.top),e.fillRect(a,i-t.bottom,r,t.bottom),e.fillRect(a,o+t.top,t.left,s),e.fillRect(l-t.right,o+t.top,t.right,s);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 Vi(u)}R(tb,"drawBorder");function rb(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let l=n-r.left-r.right-t.left-t.right,s=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Wi.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,l,s),[{type:"content",position:"center",text:`${qr(l)} x ${qr(s)}`}]}R(rb,"drawContent");function nb(e){return t=>{if(e&&t){let r=Jy(e),n=Qy(t,r),o=eb(t,r),a=tb(t,r),i=rb(t,r),l=r.width<=Df*3||r.height<=Df;Xy(t,r,[...i,...o,...a,...n],l)}}}R(nb,"drawBoxModel");function ob(e){My(nb(e))}R(ob,"drawSelectedElement");const{global:zA}=__STORYBOOK_MODULE_GLOBAL__;var HA=R((e,t)=>{let r=zA.document.elementFromPoint(e,t),n=R(o=>{if(o&&o.shadowRoot){let a=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(a)?o:a.shadowRoot?n(a):a}return o},"crawlShadows");return n(r)||r},"deepElementFromPoint"),kf,ba={x:0,y:0};function ou(e,t){kf=HA(e,t),ob(kf)}R(ou,"findAndDrawElement");var UA=R((e,t)=>{let{measureEnabled:r}=t.globals||{};return Af(()=>{if(typeof globalThis.document>"u")return;let n=R(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),ba.x=o.clientX,ba.y=o.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Af(()=>{let n=R(a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),ou(a.clientX,a.clientY)})},"onPointerOver"),o=R(()=>{window.requestAnimationFrame(()=>{zy()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),jy(),globalThis.window.addEventListener("resize",o),ou(ba.x,ba.y)),()=>{globalThis.window.removeEventListener("resize",o),Hy()}},[r,t.viewMode]),e()},"withMeasure"),lh,WA=(lh=globalThis.FEATURES)!=null&&lh.measure?[UA]:[],VA={[MA]:!1},Of=R(()=>({decorators:WA,initialGlobals:VA}),"default"),ab="outline";const{useEffect:qA,useMemo:GA}=__STORYBOOK_MODULE_PREVIEW_API__,{global:ja}=__STORYBOOK_MODULE_GLOBAL__;var Ff=R(e=>{(Array.isArray(e)?e:[e]).forEach(YA)},"clearStyles"),YA=R(e=>{let t=typeof e=="string"?e:e.join(""),r=ja.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),KA=R((e,t)=>{let r=ja.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=ja.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,ja.document.head.appendChild(n)}},"addOutlineStyles");function ib(e){return zi`
|
|
190
|
+
${e} body {
|
|
191
|
+
outline: 1px solid #2980b9 !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
${e} article {
|
|
195
|
+
outline: 1px solid #3498db !important;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
${e} nav {
|
|
199
|
+
outline: 1px solid #0088c3 !important;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
${e} aside {
|
|
203
|
+
outline: 1px solid #33a0ce !important;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
${e} section {
|
|
207
|
+
outline: 1px solid #66b8da !important;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
${e} header {
|
|
211
|
+
outline: 1px solid #99cfe7 !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
${e} footer {
|
|
215
|
+
outline: 1px solid #cce7f3 !important;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
${e} h1 {
|
|
219
|
+
outline: 1px solid #162544 !important;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
${e} h2 {
|
|
223
|
+
outline: 1px solid #314e6e !important;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
${e} h3 {
|
|
227
|
+
outline: 1px solid #3e5e85 !important;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
${e} h4 {
|
|
231
|
+
outline: 1px solid #449baf !important;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
${e} h5 {
|
|
235
|
+
outline: 1px solid #c7d1cb !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
${e} h6 {
|
|
239
|
+
outline: 1px solid #4371d0 !important;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
${e} main {
|
|
243
|
+
outline: 1px solid #2f4f90 !important;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
${e} address {
|
|
247
|
+
outline: 1px solid #1a2c51 !important;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
${e} div {
|
|
251
|
+
outline: 1px solid #036cdb !important;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
${e} p {
|
|
255
|
+
outline: 1px solid #ac050b !important;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
${e} hr {
|
|
259
|
+
outline: 1px solid #ff063f !important;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
${e} pre {
|
|
263
|
+
outline: 1px solid #850440 !important;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
${e} blockquote {
|
|
267
|
+
outline: 1px solid #f1b8e7 !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
${e} ol {
|
|
271
|
+
outline: 1px solid #ff050c !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
${e} ul {
|
|
275
|
+
outline: 1px solid #d90416 !important;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
${e} li {
|
|
279
|
+
outline: 1px solid #d90416 !important;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
${e} dl {
|
|
283
|
+
outline: 1px solid #fd3427 !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
${e} dt {
|
|
287
|
+
outline: 1px solid #ff0043 !important;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
${e} dd {
|
|
291
|
+
outline: 1px solid #e80174 !important;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
${e} figure {
|
|
295
|
+
outline: 1px solid #ff00bb !important;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
${e} figcaption {
|
|
299
|
+
outline: 1px solid #bf0032 !important;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
${e} table {
|
|
303
|
+
outline: 1px solid #00cc99 !important;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
${e} caption {
|
|
307
|
+
outline: 1px solid #37ffc4 !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
${e} thead {
|
|
311
|
+
outline: 1px solid #98daca !important;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
${e} tbody {
|
|
315
|
+
outline: 1px solid #64a7a0 !important;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
${e} tfoot {
|
|
319
|
+
outline: 1px solid #22746b !important;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
${e} tr {
|
|
323
|
+
outline: 1px solid #86c0b2 !important;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
${e} th {
|
|
327
|
+
outline: 1px solid #a1e7d6 !important;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
${e} td {
|
|
331
|
+
outline: 1px solid #3f5a54 !important;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
${e} col {
|
|
335
|
+
outline: 1px solid #6c9a8f !important;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
${e} colgroup {
|
|
339
|
+
outline: 1px solid #6c9a9d !important;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
${e} button {
|
|
343
|
+
outline: 1px solid #da8301 !important;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
${e} datalist {
|
|
347
|
+
outline: 1px solid #c06000 !important;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
${e} fieldset {
|
|
351
|
+
outline: 1px solid #d95100 !important;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
${e} form {
|
|
355
|
+
outline: 1px solid #d23600 !important;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
${e} input {
|
|
359
|
+
outline: 1px solid #fca600 !important;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
${e} keygen {
|
|
363
|
+
outline: 1px solid #b31e00 !important;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
${e} label {
|
|
367
|
+
outline: 1px solid #ee8900 !important;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
${e} legend {
|
|
371
|
+
outline: 1px solid #de6d00 !important;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
${e} meter {
|
|
375
|
+
outline: 1px solid #e8630c !important;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
${e} optgroup {
|
|
379
|
+
outline: 1px solid #b33600 !important;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
${e} option {
|
|
383
|
+
outline: 1px solid #ff8a00 !important;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
${e} output {
|
|
387
|
+
outline: 1px solid #ff9619 !important;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
${e} progress {
|
|
391
|
+
outline: 1px solid #e57c00 !important;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
${e} select {
|
|
395
|
+
outline: 1px solid #e26e0f !important;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
${e} textarea {
|
|
399
|
+
outline: 1px solid #cc5400 !important;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
${e} details {
|
|
403
|
+
outline: 1px solid #33848f !important;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
${e} summary {
|
|
407
|
+
outline: 1px solid #60a1a6 !important;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
${e} command {
|
|
411
|
+
outline: 1px solid #438da1 !important;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
${e} menu {
|
|
415
|
+
outline: 1px solid #449da6 !important;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
${e} del {
|
|
419
|
+
outline: 1px solid #bf0000 !important;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
${e} ins {
|
|
423
|
+
outline: 1px solid #400000 !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
${e} img {
|
|
427
|
+
outline: 1px solid #22746b !important;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
${e} iframe {
|
|
431
|
+
outline: 1px solid #64a7a0 !important;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
${e} embed {
|
|
435
|
+
outline: 1px solid #98daca !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
${e} object {
|
|
439
|
+
outline: 1px solid #00cc99 !important;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
${e} param {
|
|
443
|
+
outline: 1px solid #37ffc4 !important;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
${e} video {
|
|
447
|
+
outline: 1px solid #6ee866 !important;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
${e} audio {
|
|
451
|
+
outline: 1px solid #027353 !important;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
${e} source {
|
|
455
|
+
outline: 1px solid #012426 !important;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
${e} canvas {
|
|
459
|
+
outline: 1px solid #a2f570 !important;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
${e} track {
|
|
463
|
+
outline: 1px solid #59a600 !important;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
${e} map {
|
|
467
|
+
outline: 1px solid #7be500 !important;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
${e} area {
|
|
471
|
+
outline: 1px solid #305900 !important;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
${e} a {
|
|
475
|
+
outline: 1px solid #ff62ab !important;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
${e} em {
|
|
479
|
+
outline: 1px solid #800b41 !important;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
${e} strong {
|
|
483
|
+
outline: 1px solid #ff1583 !important;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
${e} i {
|
|
487
|
+
outline: 1px solid #803156 !important;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
${e} b {
|
|
491
|
+
outline: 1px solid #cc1169 !important;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
${e} u {
|
|
495
|
+
outline: 1px solid #ff0430 !important;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
${e} s {
|
|
499
|
+
outline: 1px solid #f805e3 !important;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
${e} small {
|
|
503
|
+
outline: 1px solid #d107b2 !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
${e} abbr {
|
|
507
|
+
outline: 1px solid #4a0263 !important;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
${e} q {
|
|
511
|
+
outline: 1px solid #240018 !important;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
${e} cite {
|
|
515
|
+
outline: 1px solid #64003c !important;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
${e} dfn {
|
|
519
|
+
outline: 1px solid #b4005a !important;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
${e} sub {
|
|
523
|
+
outline: 1px solid #dba0c8 !important;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
${e} sup {
|
|
527
|
+
outline: 1px solid #cc0256 !important;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
${e} time {
|
|
531
|
+
outline: 1px solid #d6606d !important;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
${e} code {
|
|
535
|
+
outline: 1px solid #e04251 !important;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
${e} kbd {
|
|
539
|
+
outline: 1px solid #5e001f !important;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
${e} samp {
|
|
543
|
+
outline: 1px solid #9c0033 !important;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
${e} var {
|
|
547
|
+
outline: 1px solid #d90047 !important;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
${e} mark {
|
|
551
|
+
outline: 1px solid #ff0053 !important;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
${e} bdi {
|
|
555
|
+
outline: 1px solid #bf3668 !important;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
${e} bdo {
|
|
559
|
+
outline: 1px solid #6f1400 !important;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
${e} ruby {
|
|
563
|
+
outline: 1px solid #ff7b93 !important;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
${e} rt {
|
|
567
|
+
outline: 1px solid #ff2f54 !important;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
${e} rp {
|
|
571
|
+
outline: 1px solid #803e49 !important;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
${e} span {
|
|
575
|
+
outline: 1px solid #cc2643 !important;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
${e} br {
|
|
579
|
+
outline: 1px solid #db687d !important;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
${e} wbr {
|
|
583
|
+
outline: 1px solid #db175b !important;
|
|
584
|
+
}`}R(ib,"outlineCSS");var XA=R((e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[ab]),o=t.viewMode==="docs",a=GA(()=>ib(o?'[data-story-block="true"]':".sb-show-main"),[t]);return qA(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?KA(i,a):Ff(i),()=>{Ff(i)}},[n,a,t]),e()},"withOutline"),sh,ZA=(sh=globalThis.FEATURES)!=null&&sh.outline?[XA]:[],JA={[ab]:!1},_f=R(()=>({decorators:ZA,initialGlobals:JA}),"default");const{clearAllMocks:QA,fn:eD,isMockFunction:tD,resetAllMocks:rD,restoreAllMocks:nD,uninstrumentedUserEvent:oD,within:aD}=__STORYBOOK_MODULE_TEST__;var iD=R(({parameters:e})=>{var t,r,n;((t=e==null?void 0:e.test)==null?void 0:t.mockReset)===!0?rD():((r=e==null?void 0:e.test)==null?void 0:r.clearMocks)===!0?QA():((n=e==null?void 0:e.test)==null?void 0:n.restoreMocks)!==!1&&nD()},"resetAllMocksLoader"),au=R((e,t=0,r)=>{var n,o;if(t>5||e==null)return e;if(tD(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let a=eD(e);return r&&a.mockName(r),a}if(Array.isArray(e)){t++;for(let a=0;a<e.length;a++)(n=Object.getOwnPropertyDescriptor(e,a))!=null&&n.writable&&(e[a]=au(e[a],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[a,i]of Object.entries(e))(o=Object.getOwnPropertyDescriptor(e,a))!=null&&o.writable&&(e[a]=au(i,t,a));return e}return e},"traverseArgs"),lD=R(({initialArgs:e})=>{au(e)},"nameSpiesAndWrapActionsInSpies"),Tf=!1,sD=R(async e=>{var r,n;globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=aD(e.canvasElement));let t=(n=(r=globalThis.window)==null?void 0:r.navigator)==null?void 0:n.clipboard;if(t){e.userEvent=jc({userEvent:oD.setup()},{intercept:!0}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:R(()=>t,"get"),configurable:!0});let o=HTMLElement.prototype.focus;Tf||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:R(a=>{o=a,Tf=!0},"set"),get:R(()=>o,"get")}})}},"enhanceContext"),Rf=R(()=>({loaders:[iD,lD,sD]}),"default"),uD="viewport",cD={[uD]:{value:void 0,isRotated:!1}},Pf=R(()=>({initialGlobals:cD}),"default");function lb(){return[(Of.default??Of)(),(hf.default??hf)(),($f.default??$f)(),(_f.default??_f)(),(Pf.default??Pf)(),(df.default??df)(),(yf.default??yf)(),(Rf.default??Rf)()]}R(lb,"getCoreAnnotations");function dD(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:n,...o}=e;return t=Mc(zc([...lb(),...n??[],o])),t},meta(n){return sb(n,this)}};return globalThis.globalProjectAnnotations=r.composed,r}R(dD,"definePreview");function pD(e){return e}R(pD,"definePreviewAddon");function fD(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Preview"}R(fD,"isPreview");function mD(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Meta"}R(mD,"isMeta");function sb(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r={}){return Gc(typeof r=="function"?{render:r}:r,this)}}}R(sb,"defineMeta");function gD(e){return e!=null&&typeof e=="object"&&"_tag"in e&&(e==null?void 0:e._tag)==="Story"}R(gD,"isStory");function Gc(e,t){let r,n=R(()=>(r||(r=Ty(e,t.input,void 0,t.preview.composed)),r),"compose");return{_tag:"Story",input:e,meta:t,__compose:n,get composed(){let o=n(),{args:a,argTypes:i,parameters:l,id:s,tags:u,globals:d,storyName:p}=o;return{args:a,argTypes:i,parameters:l,id:s,tags:u,name:p,globals:d}},get play(){var o;return e.play??((o=t.input)==null?void 0:o.play)??(async()=>{})},get run(){return n().run??(async()=>{})},extend(o){var a,i,l,s;return Gc({...this.input,...o,args:{...this.input.args,...o.args},argTypes:Dr(this.input.argTypes,o.argTypes),afterEach:[...ue(((a=this.input)==null?void 0:a.afterEach)??[]),...ue(o.afterEach??[])],beforeEach:[...ue(((i=this.input)==null?void 0:i.beforeEach)??[]),...ue(o.beforeEach??[])],decorators:[...ue(((l=this.input)==null?void 0:l.decorators)??[]),...ue(o.decorators??[])],globals:{...this.input.globals,...o.globals},loaders:[...ue(((s=this.input)==null?void 0:s.loaders)??[]),...ue(o.loaders??[])],parameters:Dr(this.input.parameters,o.parameters),tags:ub(...this.input.tags??[],...o.tags??[])},this.meta)}}}R(Gc,"defineStory");var qi=R(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),If=R((e,t)=>{let r=qi(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),hD=R((e,t)=>`${If(e,"kind")}${t?`--${If(t,"name")}`:""}`,"toId"),yD=R(e=>oy(e),"storyNameFromExport");function iu(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}R(iu,"matches");function bD(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||iu(e,t))&&(!r||!iu(e,r))}R(bD,"isExportStory");var ub=R((...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");function vD(e,t,{signal:r,edges:n}={}){let o,a=null,i=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),s=()=>{a!==null&&(e.apply(o,a),o=void 0,a=null)},u=()=>{l&&s(),f()},d=null,p=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,u()},t)},c=()=>{d!==null&&(clearTimeout(d),d=null)},f=()=>{c(),o=void 0,a=null},m=()=>{c(),s()},h=function(...v){if(r!=null&&r.aborted)return;o=this,a=v;let E=d==null;p(),i&&E&&s()};return h.schedule=p,h.cancel=f,h.flush=m,r==null||r.addEventListener("abort",f,{once:!0}),h}function zN(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:o=!1,trailing:a=!0,maxWait:i}=r,l=Array(2);o&&(l[0]="leading"),a&&(l[1]="trailing");let s,u=null,d=vD(function(...f){s=e.apply(this,f),u=null},t,{signal:n,edges:l}),p=function(...f){if(i!=null){if(u===null)u=Date.now();else if(Date.now()-u>=i)return s=e.apply(this,f),u=Date.now(),d.cancel(),d.schedule(),s}return d.apply(this,f),s},c=()=>(d.flush(),s);return p.cancel=d.cancel,p.flush=c,p}function cb(e){return typeof e=="symbol"||e instanceof Symbol}function xD(e){return cb(e)?NaN:Number(e)}function ED(e){return e?(e=xD(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function wD(e){let t=ED(e),r=t%1;return r?t-r:t}function SD(e){return Array.from(new Set(e))}function CD(e){return e==null||typeof e!="object"&&typeof e!="function"}function db(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function pb(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function $D(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var AD="[object RegExp]",fb="[object String]",mb="[object Number]",gb="[object Boolean]",hb="[object Arguments]",DD="[object Symbol]",kD="[object Date]",OD="[object Map]",FD="[object Set]",_D="[object Array]",TD="[object ArrayBuffer]",RD="[object Object]",PD="[object DataView]",ID="[object Uint8Array]",LD="[object Uint8ClampedArray]",BD="[object Uint16Array]",ND="[object Uint32Array]",jD="[object Int8Array]",MD="[object Int16Array]",zD="[object Int32Array]",HD="[object Float32Array]",UD="[object Float64Array]";function WD(e,t){return Dn(e,void 0,e,new Map,t)}function Dn(e,t,r,n=new Map,o=void 0){let a=o==null?void 0:o(e,t,r,n);if(a!=null)return a;if(CD(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=Dn(e[l],l,r,n,o);return Object.hasOwn(e,"index")&&(i.index=e.index),Object.hasOwn(e,"input")&&(i.input=e.input),i}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let i=new RegExp(e.source,e.flags);return i.lastIndex=e.lastIndex,i}if(e instanceof Map){let i=new Map;n.set(e,i);for(let[l,s]of e)i.set(l,Dn(s,l,r,n,o));return i}if(e instanceof Set){let i=new Set;n.set(e,i);for(let l of e)i.add(Dn(l,void 0,r,n,o));return i}if(typeof Buffer<"u"&&Buffer.isBuffer(e))return e.subarray();if(db(e)){let i=new(Object.getPrototypeOf(e)).constructor(e.length);n.set(e,i);for(let l=0;l<e.length;l++)i[l]=Dn(e[l],l,r,n,o);return i}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let i=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,i),Ur(i,e,r,n,o),i}if(typeof File<"u"&&e instanceof File){let i=new File([e],e.name,{type:e.type});return n.set(e,i),Ur(i,e,r,n,o),i}if(e instanceof Blob){let i=new Blob([e],{type:e.type});return n.set(e,i),Ur(i,e,r,n,o),i}if(e instanceof Error){let i=new e.constructor;return n.set(e,i),i.message=e.message,i.name=e.name,i.stack=e.stack,i.cause=e.cause,Ur(i,e,r,n,o),i}if(typeof e=="object"&&VD(e)){let i=Object.create(Object.getPrototypeOf(e));return n.set(e,i),Ur(i,e,r,n,o),i}return e}function Ur(e,t,r=e,n,o){let a=[...Object.keys(t),...pb(t)];for(let i=0;i<a.length;i++){let l=a[i],s=Object.getOwnPropertyDescriptor(e,l);(s==null||s.writable)&&(e[l]=Dn(t[l],l,r,n,o))}}function VD(e){switch($D(e)){case hb:case _D:case TD:case PD:case gb:case kD:case HD:case UD:case jD:case MD:case zD:case OD:case mb:case RD:case AD:case FD:case fb:case DD:case ID:case LD:case BD:case ND:return!0;default:return!1}}function qD(e){return Number.isSafeInteger(e)&&e>=0}function Yc(e){return e!=null&&typeof e!="function"&&qD(e.length)}function GD(e,t){return WD(e,(r,n,o,a)=>{if(typeof e=="object")switch(Object.prototype.toString.call(e)){case mb:case fb:case gb:{let i=new e.constructor(e==null?void 0:e.valueOf());return Ur(i,e),i}case hb:{let i={};return Ur(i,e),i.length=e.length,i[Symbol.iterator]=e[Symbol.iterator],i}default:return}})}function YD(e){return GD(e)}function KD(e,t,r=1){if(t==null&&(t=e,e=0),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((t-e)/r),0),o=new Array(n);for(let a=0;a<n;a++)o[a]=e+a*r;return o}function XD(e){return Yc(e)?SD(Array.from(e)):[]}function ZD(e){return typeof Buffer<"u"&&Buffer.isBuffer(e)}function JD(e){let t=e==null?void 0:e.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}function QD(e){return db(e)}function e3(e,t){if(e=wD(e),e<1||!Number.isSafeInteger(e))return[];let r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function t3(e){if(e==null)return[];switch(typeof e){case"object":case"function":return Yc(e)?n3(e):JD(e)?r3(e):ui(e);default:return ui(Object(e))}}function ui(e){let t=[];for(let r in e)t.push(r);return t}function r3(e){return ui(e).filter(t=>t!=="constructor")}function n3(e){let t=e3(e.length,n=>`${n}`),r=new Set(t);return ZD(e)&&(r.add("offset"),r.add("parent")),QD(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset")),[...t,...ui(e).filter(n=>!r.has(n))]}function o3(e){let t=[];for(;e;)t.push(...pb(e)),e=Object.getPrototypeOf(e);return t}function a3(e,t){if(e==null)return{};let r={};if(t==null)return e;let n=Yc(e)?KD(0,e.length):[...t3(e),...o3(e)];for(let o=0;o<n.length;o++){let a=cb(n[o])?n[o]:n[o].toString(),i=e[a];t(i,a,e)&&(r[a]=i)}return r}var Ft=e=>`control-${e.replace(/\s+/g,"-")}`,Gi=e=>`set-${e.replace(/\s+/g,"-")}`,i3=Object.create,yb=Object.defineProperty,l3=Object.getOwnPropertyDescriptor,bb=Object.getOwnPropertyNames,s3=Object.getPrototypeOf,u3=Object.prototype.hasOwnProperty,va=(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')}),c3=(e,t)=>function(){return t||(0,e[bb(e)[0]])((t={exports:{}}).exports,t),t.exports},d3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bb(t))!u3.call(e,o)&&o!==r&&yb(e,o,{get:()=>t[o],enumerable:!(n=l3(t,o))||n.enumerable});return e},p3=(e,t,r)=>(r=e!=null?i3(s3(e)):{},d3(!e||!e.__esModule?yb(r,"default",{value:e,enumerable:!0}):r,e)),f3=Object.create,Kc=Object.defineProperty,m3=Object.getOwnPropertyDescriptor,g3=Object.getOwnPropertyNames,h3=Object.getPrototypeOf,y3=Object.prototype.hasOwnProperty,P=(e,t)=>Kc(e,"name",{value:t,configurable:!0}),xa=(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')}),Yi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),b3=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of g3(t))!y3.call(e,o)&&o!==r&&Kc(e,o,{get:()=>t[o],enumerable:!(n=m3(t,o))||n.enumerable});return e},Xc=(e,t,r)=>(r=e!=null?f3(h3(e)):{},b3(t||!e||!e.__esModule?Kc(r,"default",{value:e,enumerable:!0}):r,e)),v3=Yi(e=>{(function(){var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,s=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,d=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,c=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,v=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,S=t?Symbol.for("react.scope"):60119;function x(z){return typeof z=="string"||typeof z=="function"||z===o||z===d||z===i||z===a||z===c||z===f||typeof z=="object"&&z!==null&&(z.$$typeof===h||z.$$typeof===m||z.$$typeof===l||z.$$typeof===s||z.$$typeof===p||z.$$typeof===E||z.$$typeof===w||z.$$typeof===S||z.$$typeof===v)}P(x,"isValidElementType");function $(z){if(typeof z=="object"&&z!==null){var U=z.$$typeof;switch(U){case r:var me=z.type;switch(me){case u:case d:case o:case i:case a:case c:return me;default:var ke=me&&me.$$typeof;switch(ke){case s:case p:case h:case m:case l:return ke;default:return U}}case n:return U}}}P($,"typeOf");var A=u,C=d,D=s,F=l,k=r,_=p,I=o,L=h,j=m,B=n,M=i,V=a,G=c,W=!1;function Y(z){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),X(z)||$(z)===u}P(Y,"isAsyncMode");function X(z){return $(z)===d}P(X,"isConcurrentMode");function re(z){return $(z)===s}P(re,"isContextConsumer");function oe(z){return $(z)===l}P(oe,"isContextProvider");function J(z){return typeof z=="object"&&z!==null&&z.$$typeof===r}P(J,"isElement");function H(z){return $(z)===p}P(H,"isForwardRef");function Z(z){return $(z)===o}P(Z,"isFragment");function te(z){return $(z)===h}P(te,"isLazy");function le(z){return $(z)===m}P(le,"isMemo");function se(z){return $(z)===n}P(se,"isPortal");function Re(z){return $(z)===i}P(Re,"isProfiler");function ae(z){return $(z)===a}P(ae,"isStrictMode");function pe(z){return $(z)===c}P(pe,"isSuspense"),e.AsyncMode=A,e.ConcurrentMode=C,e.ContextConsumer=D,e.ContextProvider=F,e.Element=k,e.ForwardRef=_,e.Fragment=I,e.Lazy=L,e.Memo=j,e.Portal=B,e.Profiler=M,e.StrictMode=V,e.Suspense=G,e.isAsyncMode=Y,e.isConcurrentMode=X,e.isContextConsumer=re,e.isContextProvider=oe,e.isElement=J,e.isForwardRef=H,e.isFragment=Z,e.isLazy=te,e.isMemo=le,e.isPortal=se,e.isProfiler=Re,e.isStrictMode=ae,e.isSuspense=pe,e.isValidElementType=x,e.typeOf=$})()}),x3=Yi((e,t)=>{t.exports=v3()}),vb=Yi((e,t)=>{var r=x3(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};l[r.ForwardRef]=a,l[r.Memo]=i;function s(v){return r.isMemo(v)?i:l[v.$$typeof]||n}P(s,"getStatics");var u=Object.defineProperty,d=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;function h(v,E,w){if(typeof E!="string"){if(m){var S=f(E);S&&S!==m&&h(v,S,w)}var x=d(E);p&&(x=x.concat(p(E)));for(var $=s(v),A=s(E),C=0;C<x.length;++C){var D=x[C];if(!o[D]&&!(w&&w[D])&&!(A&&A[D])&&!($&&$[D])){var F=c(E,D);try{u(v,D,F)}catch{}}}}return v}P(h,"hoistNonReactStatics"),t.exports=h}),E3=Yi((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return P(function r(n,o,a){function i(u,d){if(!o[u]){if(!n[u]){var p=typeof xa=="function"&&xa;if(!d&&p)return p(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(m){var h=n[u][1][m];return i(h||m)},f,f.exports,r,n,o,a)}return o[u].exports}P(i,"s");for(var l=typeof xa=="function"&&xa,s=0;s<a.length;s++)i(a[s]);return i},"e")({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}P(a,"Similar"),a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var d=new a(!1),p=[];return function(c){var f=P(function(){var m=d,h,v,E=arguments.length-1,w=Array(E+1),S=!0,x;if((f.numArgs||f.numArgs===0)&&f.numArgs!==E+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<E;x++){if(w[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,h=new a(!1),m.set(arguments[x],h),m=h}return S&&(m.has(arguments[E])?v=m.get(arguments[E]):S=!1),S||(v=c.apply(null,arguments),m.set(arguments[E],v)),u>0&&(w[E]={cacheItem:m,arg:arguments[E]},S?i(p,w):p.push(w),p.length>u&&l(p.shift())),f.wasMemoized=S,f.numArgs=E+1,v},"memoizerific");return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(u,d){var p=u.length,c=d.length,f,m,h;for(m=0;m<p;m++){for(f=!0,h=0;h<c;h++)if(!s(u[m][h].arg,d[h].arg)){f=!1;break}if(f)break}u.push(u.splice(m,1)[0])}P(i,"moveToMostRecentLru");function l(u){var d=u.length,p=u[d-1],c,f;for(p.cacheItem.delete(p.arg),f=d-2;f>=0&&(p=u[f],c=p.cacheItem.get(p.arg),!c||!c.size);f--)p.cacheItem.delete(p.arg)}P(l,"removeCachedResult");function s(u,d){return u===d||u!==u&&d!==d}P(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function Be(){return Be=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},Be.apply(null,arguments)}P(Be,"_extends");function xb(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}P(xb,"sheetForTag");function Eb(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}P(Eb,"createStyleElement");var w3=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}P(e,"StyleSheet");var t=e.prototype;return t.hydrate=P(function(r){r.forEach(this._insertTag)},"hydrate"),t.insert=P(function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Eb(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=xb(n);try{o.insertRule(r,o.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(r));this.ctr++},"insert"),t.flush=P(function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},"flush"),e}(),He="-ms-",ci="-moz-",de="-webkit-",wb="comm",Zc="rule",Jc="decl",S3="@import",Sb="@keyframes",C3="@layer",$3=Math.abs,Ki=String.fromCharCode,A3=Object.assign;function Cb(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}P(Cb,"hash");function Qc(e){return e.trim()}P(Qc,"trim");function $b(e,t){return(e=t.exec(e))?e[0]:e}P($b,"match");function ce(e,t,r){return e.replace(t,r)}P(ce,"replace");function di(e,t){return e.indexOf(t)}P(di,"indexof");function Le(e,t){return e.charCodeAt(t)|0}P(Le,"charat");function Hn(e,t,r){return e.slice(t,r)}P(Hn,"substr");function Ct(e){return e.length}P(Ct,"strlen");function Xi(e){return e.length}P(Xi,"sizeof");function _o(e,t){return t.push(e),e}P(_o,"append");function Ab(e,t){return e.map(t).join("")}P(Ab,"combine");var Zi=1,Un=1,Db=0,Je=0,De=0,io="";function na(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:Zi,column:Un,length:i,return:""}}P(na,"node");function wn(e,t){return A3(na("",null,null,"",null,null,0),e,{length:-e.length},t)}P(wn,"copy");function kb(){return De}P(kb,"char");function Ob(){return De=Je>0?Le(io,--Je):0,Un--,De===10&&(Un=1,Zi--),De}P(Ob,"prev");function Ze(){return De=Je<Db?Le(io,Je++):0,Un++,De===10&&(Un=1,Zi++),De}P(Ze,"next");function Dt(){return Le(io,Je)}P(Dt,"peek");function Bo(){return Je}P(Bo,"caret");function lo(e,t){return Hn(io,e,t)}P(lo,"slice");function Wn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}P(Wn,"token");function ed(e){return Zi=Un=1,Db=Ct(io=e),Je=0,[]}P(ed,"alloc");function td(e){return io="",e}P(td,"dealloc");function No(e){return Qc(lo(Je-1,pi(e===91?e+2:e===40?e+1:e)))}P(No,"delimit");function Fb(e){for(;(De=Dt())&&De<33;)Ze();return Wn(e)>2||Wn(De)>3?"":" "}P(Fb,"whitespace");function _b(e,t){for(;--t&&Ze()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return lo(e,Bo()+(t<6&&Dt()==32&&Ze()==32))}P(_b,"escaping");function pi(e){for(;Ze();)switch(De){case e:return Je;case 34:case 39:e!==34&&e!==39&&pi(De);break;case 40:e===41&&pi(e);break;case 92:Ze();break}return Je}P(pi,"delimiter");function Tb(e,t){for(;Ze()&&e+De!==57&&!(e+De===84&&Dt()===47););return"/*"+lo(t,Je-1)+"*"+Ki(e===47?e:Ze())}P(Tb,"commenter");function Rb(e){for(;!Wn(Dt());)Ze();return lo(e,Je)}P(Rb,"identifier");function Pb(e){return td(jo("",null,null,null,[""],e=ed(e),0,[0],e))}P(Pb,"compile");function jo(e,t,r,n,o,a,i,l,s){for(var u=0,d=0,p=i,c=0,f=0,m=0,h=1,v=1,E=1,w=0,S="",x=o,$=a,A=n,C=S;v;)switch(m=w,w=Ze()){case 40:if(m!=108&&Le(C,p-1)==58){di(C+=ce(No(w),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:C+=No(w);break;case 9:case 10:case 13:case 32:C+=Fb(m);break;case 92:C+=_b(Bo()-1,7);continue;case 47:switch(Dt()){case 42:case 47:_o(Ib(Tb(Ze(),Bo()),t,r),s);break;default:C+="/"}break;case 123*h:l[u++]=Ct(C)*E;case 125*h:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+d:E==-1&&(C=ce(C,/\f/g,"")),f>0&&Ct(C)-p&&_o(f>32?su(C+";",n,r,p-1):su(ce(C," ","")+";",n,r,p-2),s);break;case 59:C+=";";default:if(_o(A=lu(C,t,r,u,d,o,l,S,x=[],$=[],p),a),w===123)if(d===0)jo(C,t,A,A,x,a,p,l,$);else switch(c===99&&Le(C,3)===110?100:c){case 100:case 108:case 109:case 115:jo(e,A,A,n&&_o(lu(e,A,A,0,0,o,l,S,o,x=[],p),$),o,$,p,l,n?x:$);break;default:jo(C,A,A,A,[""],$,0,l,$)}}u=d=f=0,h=E=1,S=C="",p=i;break;case 58:p=1+Ct(C),f=m;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&Ob()==125)continue}switch(C+=Ki(w),w*h){case 38:E=d>0?1:(C+="\f",-1);break;case 44:l[u++]=(Ct(C)-1)*E,E=1;break;case 64:Dt()===45&&(C+=No(Ze())),c=Dt(),d=p=Ct(S=C+=Rb(Bo())),w++;break;case 45:m===45&&Ct(C)==2&&(h=0)}}return a}P(jo,"parse");function lu(e,t,r,n,o,a,i,l,s,u,d){for(var p=o-1,c=o===0?a:[""],f=Xi(c),m=0,h=0,v=0;m<n;++m)for(var E=0,w=Hn(e,p+1,p=$3(h=i[m])),S=e;E<f;++E)(S=Qc(h>0?c[E]+" "+w:ce(w,/&\f/g,c[E])))&&(s[v++]=S);return na(e,t,r,o===0?Zc:l,s,u,d)}P(lu,"ruleset");function Ib(e,t,r){return na(e,t,r,wb,Ki(kb()),Hn(e,2,-2),0)}P(Ib,"comment");function su(e,t,r,n){return na(e,t,r,Jc,Hn(e,0,n),Hn(e,n+1,-1),n)}P(su,"declaration");function Kr(e,t){for(var r="",n=Xi(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}P(Kr,"serialize");function Lb(e,t,r,n){switch(e.type){case C3:if(e.children.length)break;case S3:case Jc:return e.return=e.return||e.value;case wb:return"";case Sb:return e.return=e.value+"{"+Kr(e.children,n)+"}";case Zc:e.value=e.props.join(",")}return Ct(r=Kr(e.children,n))?e.return=e.value+"{"+r+"}":""}P(Lb,"stringify");function Bb(e){var t=Xi(e);return function(r,n,o,a){for(var i="",l=0;l<t;l++)i+=e[l](r,n,o,a)||"";return i}}P(Bb,"middleware");function Nb(e){return function(t){t.root||(t=t.return)&&e(t)}}P(Nb,"rulesheet");var Lf=P(function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}},"weakMemoize");function rd(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}P(rd,"memoize");var D3=P(function(e,t,r){for(var n=0,o=0;n=o,o=Dt(),n===38&&o===12&&(t[r]=1),!Wn(o);)Ze();return lo(e,Je)},"identifierWithPointTracking"),k3=P(function(e,t){var r=-1,n=44;do switch(Wn(n)){case 0:n===38&&Dt()===12&&(t[r]=1),e[r]+=D3(Je-1,t,r);break;case 2:e[r]+=No(n);break;case 4:if(n===44){e[++r]=Dt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ki(n)}while(n=Ze());return e},"toRules"),O3=P(function(e,t){return td(k3(ed(e),t))},"getRules"),Bf=new WeakMap,F3=P(function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Bf.get(r))&&!n){Bf.set(e,!0);for(var o=[],a=O3(t,o),i=r.props,l=0,s=0;l<a.length;l++)for(var u=0;u<i.length;u++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[u]):i[u]+" "+a[l]}}},"compat"),_3=P(function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},"removeLabel");function nd(e,t){switch(Cb(e,t)){case 5103:return de+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+ci+e+He+e+e;case 6828:case 4268:return de+e+He+e+e;case 6165:return de+e+He+"flex-"+e+e;case 5187:return de+e+ce(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return de+e+He+"flex-item-"+ce(e,/flex-|-self/,"")+e;case 4675:return de+e+He+"flex-line-pack"+ce(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+He+ce(e,"shrink","negative")+e;case 5292:return de+e+He+ce(e,"basis","preferred-size")+e;case 6060:return de+"box-"+ce(e,"-grow","")+de+e+He+ce(e,"grow","positive")+e;case 4554:return de+ce(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return ce(ce(ce(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return ce(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return ce(ce(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return ce(e,/(.+)-inline(.+)/,de+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ct(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return ce(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+ci+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~di(e,"stretch")?nd(ce(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Ct(e)-3-(~di(e,"!important")&&10))){case 107:return ce(e,":",":"+de)+e;case 101:return ce(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Le(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return de+e+He+ce(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+He+ce(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+He+ce(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+He+e+e}return e}P(nd,"prefix");var T3=P(function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Jc:e.return=nd(e.value,e.length);break;case Sb:return Kr([wn(e,{value:ce(e.value,"@","@"+de)})],n);case Zc:if(e.length)return Ab(e.props,function(o){switch($b(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kr([wn(e,{props:[ce(o,/:(read-\w+)/,":"+ci+"$1")]})],n);case"::placeholder":return Kr([wn(e,{props:[ce(o,/:(plac\w+)/,":"+de+"input-$1")]}),wn(e,{props:[ce(o,/:(plac\w+)/,":"+ci+"$1")]}),wn(e,{props:[ce(o,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},"prefixer"),R3=[T3],P3=P(function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var h=m.getAttribute("data-emotion");h.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||R3,o={},a,i=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var h=m.getAttribute("data-emotion").split(" "),v=1;v<h.length;v++)o[h[v]]=!0;i.push(m)});var l,s=[F3,_3];{var u,d=[Lb,Nb(function(m){u.insert(m)})],p=Bb(s.concat(n,d)),c=P(function(m){return Kr(Pb(m),p)},"stylis");l=P(function(m,h,v,E){u=v,c(m?m+"{"+h.styles+"}":h.styles),E&&(f.inserted[h.name]=!0)},"insert")}var f={key:t,sheet:new w3({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return f.sheet.hydrate(i),f},"createCache"),I3=Xc(vb()),L3=P(function(e,t){return(0,I3.default)(e,t)},"hoistNonReactStatics"),B3=!0;function Ji(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}P(Ji,"getRegisteredStyles");var od=P(function(e,t,r){var n=e.key+"-"+t.name;(r===!1||B3===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},"registerStyles"),jb=P(function(e,t,r){od(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}},"insertStyles");function Mb(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}P(Mb,"murmur2");var N3={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},j3=/[A-Z]|^ms/g,M3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zb=P(function(e){return e.charCodeAt(1)===45},"isCustomProperty"),Nf=P(function(e){return e!=null&&typeof e!="boolean"},"isProcessableValue"),Vl=rd(function(e){return zb(e)?e:e.replace(j3,"-$&").toLowerCase()}),jf=P(function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(M3,function(r,n,o){return jt={name:n,styles:o,next:jt},n})}return N3[e]!==1&&!zb(e)&&typeof t=="number"&&t!==0?t+"px":t},"processStyleValue");function Vn(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var o=r;if(o.anim===1)return jt={name:o.name,styles:o.styles,next:jt},o.name;var a=r;if(a.styles!==void 0){var i=a.next;if(i!==void 0)for(;i!==void 0;)jt={name:i.name,styles:i.styles,next:jt},i=i.next;var l=a.styles+";";return l}return Hb(e,t,r)}case"function":{if(e!==void 0){var s=jt,u=r(e);return jt=s,Vn(e,t,u)}break}}var d=r;if(t==null)return d;var p=t[d];return p!==void 0?p:d}P(Vn,"handleInterpolation");function Hb(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Vn(e,t,r[o])+";";else for(var a in r){var i=r[a];if(typeof i!="object"){var l=i;t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":Nf(l)&&(n+=Vl(a)+":"+jf(a,l)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var s=0;s<i.length;s++)Nf(i[s])&&(n+=Vl(a)+":"+jf(a,i[s])+";");else{var u=Vn(e,t,i);switch(a){case"animation":case"animationName":{n+=Vl(a)+":"+u+";";break}default:n+=a+"{"+u+"}"}}}return n}P(Hb,"createStringFromObject");var Mf=/label:\s*([^\s;{]+)\s*(;|$)/g,jt;function Qi(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,o="";jt=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Vn(r,t,a);else{var i=a;o+=i[0]}for(var l=1;l<e.length;l++)if(o+=Vn(r,t,e[l]),n){var s=a;o+=s[l]}Mf.lastIndex=0;for(var u="",d;(d=Mf.exec(o))!==null;)u+="-"+d[1];var p=Mb(o)+u;return{name:p,styles:o,next:jt}}P(Qi,"serializeStyles");var z3=P(function(e){return e()},"syncFallback"),H3=b.useInsertionEffect?b.useInsertionEffect:!1,Ub=H3||z3,Wb=b.createContext(typeof HTMLElement<"u"?P3({key:"css"}):null);Wb.Provider;var Vb=P(function(e){return b.forwardRef(function(t,r){var n=b.useContext(Wb);return e(t,n,r)})},"withEmotionCache"),qn=b.createContext({}),qb=P(function(){return b.useContext(qn)},"useTheme"),U3=P(function(e,t){if(typeof t=="function"){var r=t(e);return r}return Be({},e,t)},"getTheme"),W3=Lf(function(e){return Lf(function(t){return U3(e,t)})}),Gb=P(function(e){var t=b.useContext(qn);return e.theme!==t&&(t=W3(t)(e.theme)),b.createElement(qn.Provider,{value:t},e.children)},"ThemeProvider");function V3(e){var t=e.displayName||e.name||"Component",r=b.forwardRef(P(function(n,o){var a=b.useContext(qn);return b.createElement(e,Be({theme:a,ref:o},n))},"render"));return r.displayName="WithTheme("+t+")",L3(r,e)}P(V3,"withTheme");var ad={}.hasOwnProperty,uu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",q3=P(function(e,t){var r={};for(var n in t)ad.call(t,n)&&(r[n]=t[n]);return r[uu]=e,r},"createEmotionProps"),G3=P(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return od(t,r,n),Ub(function(){return jb(t,r,n)}),null},"Insertion"),Y3=Vb(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[uu],a=[n],i="";typeof e.className=="string"?i=Ji(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var l=Qi(a,void 0,b.useContext(qn));i+=t.key+"-"+l.name;var s={};for(var u in e)ad.call(e,u)&&u!=="css"&&u!==uu&&(s[u]=e[u]);return s.className=i,r&&(s.ref=r),b.createElement(b.Fragment,null,b.createElement(G3,{cache:t,serialized:l,isStringTag:typeof o=="string"}),b.createElement(o,s))}),K3=Y3;Xc(vb());var zf=P(function(e,t){var r=arguments;if(t==null||!ad.call(t,"css"))return b.createElement.apply(void 0,r);var n=r.length,o=new Array(n);o[0]=K3,o[1]=q3(e,t);for(var a=2;a<n;a++)o[a]=r[a];return b.createElement.apply(null,o)},"jsx");(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(zf||(zf={}));function el(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qi(t)}P(el,"css");function _t(){var e=el.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:P(function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"},"toString")}}P(_t,"keyframes");function X3(e,t,r){var n=[],o=Ji(e,n,r);return n.length<2?r:o+t(n)}P(X3,"merge");var Z3=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,id=rd(function(e){return Z3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),J3=id,Q3=P(function(e){return e!=="theme"},"testOmitPropsOnComponent"),Hf=P(function(e){return typeof e=="string"&&e.charCodeAt(0)>96?J3:Q3},"getDefaultShouldForwardProp"),Uf=P(function(e,t,r){var n;if(t){var o=t.shouldForwardProp;n=e.__emotion_forwardProp&&o?function(a){return e.__emotion_forwardProp(a)&&o(a)}:o}return typeof n!="function"&&r&&(n=e.__emotion_forwardProp),n},"composeShouldForwardProps"),e5=P(function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return od(t,r,n),Ub(function(){return jb(t,r,n)}),null},"Insertion"),t5=P(function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,i;r!==void 0&&(a=r.label,i=r.target);var l=Uf(t,r,n),s=l||Hf(o),u=!s("as");return function(){var d=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)p.push.apply(p,d);else{var c=d[0];p.push(c[0]);for(var f=d.length,m=1;m<f;m++)p.push(d[m],c[m])}var h=Vb(function(v,E,w){var S=u&&v.as||o,x="",$=[],A=v;if(v.theme==null){A={};for(var C in v)A[C]=v[C];A.theme=b.useContext(qn)}typeof v.className=="string"?x=Ji(E.registered,$,v.className):v.className!=null&&(x=v.className+" ");var D=Qi(p.concat($),E.registered,A);x+=E.key+"-"+D.name,i!==void 0&&(x+=" "+i);var F=u&&l===void 0?Hf(S):s,k={};for(var _ in v)u&&_==="as"||F(_)&&(k[_]=v[_]);return k.className=x,w&&(k.ref=w),b.createElement(b.Fragment,null,b.createElement(e5,{cache:E,serialized:D,isStringTag:typeof S=="string"}),b.createElement(S,k))});return h.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=p,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:P(function(){return"."+i},"value")}),h.withComponent=function(v,E){var w=e(v,Be({},r,E,{shouldForwardProp:Uf(h,E,!0)}));return w.apply(void 0,p)},h}},"createStyled"),r5=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],T=t5.bind(null);r5.forEach(function(e){T[e]=T(e)});function Yb(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}P(Yb,"_assertThisInitialized");function Gn(e,t){return Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Gn(e,t)}P(Gn,"_setPrototypeOf");function Kb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Gn(e,t)}P(Kb,"_inheritsLoose");function fi(e){return fi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fi(e)}P(fi,"_getPrototypeOf");function Xb(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}P(Xb,"_isNativeFunction");function ld(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ld=P(function(){return!!e},"_isNativeReflectConstruct"))()}P(ld,"_isNativeReflectConstruct");function Zb(e,t,r){if(ld())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Gn(o,r.prototype),o}P(Zb,"_construct");function mi(e){var t=typeof Map=="function"?new Map:void 0;return mi=P(function(r){if(r===null||!Xb(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Zb(r,arguments,fi(this).constructor)}return P(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Gn(n,r)},"_wrapNativeSuper"),mi(e)}P(mi,"_wrapNativeSuper");var n5={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
585
|
+
|
|
586
|
+
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
|
587
|
+
|
|
588
|
+
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
|
|
589
|
+
|
|
590
|
+
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
|
|
591
|
+
|
|
592
|
+
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
|
593
|
+
|
|
594
|
+
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
|
595
|
+
|
|
596
|
+
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
|
597
|
+
|
|
598
|
+
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
|
599
|
+
|
|
600
|
+
`,9:`Please provide a number of steps to the modularScale helper.
|
|
601
|
+
|
|
602
|
+
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
603
|
+
|
|
604
|
+
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
|
605
|
+
|
|
606
|
+
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
|
607
|
+
|
|
608
|
+
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
|
609
|
+
|
|
610
|
+
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
611
|
+
|
|
612
|
+
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
613
|
+
|
|
614
|
+
`,16:`You must provide a template to this method.
|
|
615
|
+
|
|
616
|
+
`,17:`You passed an unsupported selector state to this method.
|
|
617
|
+
|
|
618
|
+
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
619
|
+
|
|
620
|
+
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
621
|
+
|
|
622
|
+
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
623
|
+
|
|
624
|
+
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
|
|
625
|
+
|
|
626
|
+
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
627
|
+
|
|
628
|
+
`,25:`fontFace expects localFonts to be an array.
|
|
629
|
+
|
|
630
|
+
`,26:`fontFace expects fileFormats to be an array.
|
|
631
|
+
|
|
632
|
+
`,27:`radialGradient requries at least 2 color-stops to properly render.
|
|
633
|
+
|
|
634
|
+
`,28:`Please supply a filename to retinaImage() as the first argument.
|
|
635
|
+
|
|
636
|
+
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
637
|
+
|
|
638
|
+
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
|
639
|
+
|
|
640
|
+
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
|
641
|
+
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
|
642
|
+
|
|
643
|
+
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
|
644
|
+
|
|
645
|
+
`,34:`borderRadius expects a radius value as a string or number as the second argument.
|
|
646
|
+
|
|
647
|
+
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
648
|
+
|
|
649
|
+
`,36:`Property must be a string value.
|
|
650
|
+
|
|
651
|
+
`,37:`Syntax Error at %s.
|
|
652
|
+
|
|
653
|
+
`,38:`Formula contains a function that needs parentheses at %s.
|
|
654
|
+
|
|
655
|
+
`,39:`Formula is missing closing parenthesis at %s.
|
|
656
|
+
|
|
657
|
+
`,40:`Formula has too many closing parentheses at %s.
|
|
658
|
+
|
|
659
|
+
`,41:`All values in a formula must have the same unit or be unitless.
|
|
660
|
+
|
|
661
|
+
`,42:`Please provide a number of steps to the modularScale helper.
|
|
662
|
+
|
|
663
|
+
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
664
|
+
|
|
665
|
+
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
|
666
|
+
|
|
667
|
+
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
|
668
|
+
|
|
669
|
+
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
|
670
|
+
|
|
671
|
+
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
672
|
+
|
|
673
|
+
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
674
|
+
|
|
675
|
+
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
676
|
+
|
|
677
|
+
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
|
678
|
+
|
|
679
|
+
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
|
|
680
|
+
|
|
681
|
+
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
682
|
+
|
|
683
|
+
`,53:`fontFace expects localFonts to be an array.
|
|
684
|
+
|
|
685
|
+
`,54:`fontFace expects fileFormats to be an array.
|
|
686
|
+
|
|
687
|
+
`,55:`fontFace expects a name of a font-family.
|
|
688
|
+
|
|
689
|
+
`,56:`linearGradient requries at least 2 color-stops to properly render.
|
|
690
|
+
|
|
691
|
+
`,57:`radialGradient requries at least 2 color-stops to properly render.
|
|
692
|
+
|
|
693
|
+
`,58:`Please supply a filename to retinaImage() as the first argument.
|
|
694
|
+
|
|
695
|
+
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
696
|
+
|
|
697
|
+
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
|
|
698
|
+
|
|
699
|
+
`,62:`borderRadius expects a radius value as a string or number as the second argument.
|
|
700
|
+
|
|
701
|
+
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
702
|
+
|
|
703
|
+
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
|
704
|
+
|
|
705
|
+
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
|
706
|
+
|
|
707
|
+
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
|
708
|
+
|
|
709
|
+
`,67:`You must provide a template to this method.
|
|
710
|
+
|
|
711
|
+
`,68:`You passed an unsupported selector state to this method.
|
|
712
|
+
|
|
713
|
+
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
|
714
|
+
|
|
715
|
+
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
|
716
|
+
|
|
717
|
+
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
|
718
|
+
|
|
719
|
+
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
|
720
|
+
|
|
721
|
+
`,73:`Please provide a valid CSS variable.
|
|
722
|
+
|
|
723
|
+
`,74:`CSS variable not found and no default was provided.
|
|
724
|
+
|
|
725
|
+
`,75:`important requires a valid style object, got a %s instead.
|
|
726
|
+
|
|
727
|
+
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
|
728
|
+
|
|
729
|
+
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
|
|
730
|
+
|
|
731
|
+
`,78:`base must be set in "px" or "%" but you set it in "%s".
|
|
732
|
+
`};function Jb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}P(Jb,"format");var Ke=function(e){Kb(t,e);function t(r){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n=e.call(this,Jb.apply(void 0,[n5[r]].concat(a)))||this,Yb(n)}return P(t,"PolishedError"),t}(mi(Error));function cu(e,t){return e.substr(-t.length)===t}P(cu,"endsWith");var o5=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function du(e){if(typeof e!="string")return e;var t=e.match(o5);return t?parseFloat(e):e}P(du,"stripUnit");var a5=P(function(e){return function(t,r){r===void 0&&(r="16px");var n=t,o=r;if(typeof t=="string"){if(!cu(t,"px"))throw new Ke(69,e,t);n=du(t)}if(typeof r=="string"){if(!cu(r,"px"))throw new Ke(70,e,r);o=du(r)}if(typeof n=="string")throw new Ke(71,t,e);if(typeof o=="string")throw new Ke(72,r,e);return""+n/o+e}},"pxtoFactory"),Qb=a5;Qb("em");Qb("rem");function Ma(e){return Math.round(e*255)}P(Ma,"colorToInt");function e1(e,t,r){return Ma(e)+","+Ma(t)+","+Ma(r)}P(e1,"convertToInt");function Yn(e,t,r,n){if(n===void 0&&(n=e1),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var d=r-a/2,p=l+d,c=s+d,f=u+d;return n(p,c,f)}P(Yn,"hslToRgb");var Wf={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 t1(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Wf[t]?"#"+Wf[t]:e}P(t1,"nameToHex");var i5=/^#[a-fA-F0-9]{6}$/,l5=/^#[a-fA-F0-9]{8}$/,s5=/^#[a-fA-F0-9]{3}$/,u5=/^#[a-fA-F0-9]{4}$/,ql=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,c5=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,d5=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,p5=/^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 Jr(e){if(typeof e!="string")throw new Ke(3);var t=t1(e);if(t.match(i5))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(l5)){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(s5))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(u5)){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=ql.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=c5.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=d5.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+Yn(l,s,u)+")",p=ql.exec(d);if(!p)throw new Ke(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var c=p5.exec(t.substring(0,50));if(c){var f=parseInt(""+c[1],10),m=parseInt(""+c[2],10)/100,h=parseInt(""+c[3],10)/100,v="rgb("+Yn(f,m,h)+")",E=ql.exec(v);if(!E)throw new Ke(4,t,v);return{red:parseInt(""+E[1],10),green:parseInt(""+E[2],10),blue:parseInt(""+E[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Ke(5)}P(Jr,"parseToRgb");function r1(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}P(r1,"rgbToHsl");function ir(e){return r1(Jr(e))}P(ir,"parseToHsl");var f5=P(function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},"reduceHexValue"),pu=f5;function vr(e){var t=e.toString(16);return t.length===1?"0"+t:t}P(vr,"numberToHex");function za(e){return vr(Math.round(e*255))}P(za,"colorToHex");function n1(e,t,r){return pu("#"+za(e)+za(t)+za(r))}P(n1,"convertToHex");function Yo(e,t,r){return Yn(e,t,r,n1)}P(Yo,"hslToHex");function o1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Yo(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Yo(e.hue,e.saturation,e.lightness);throw new Ke(1)}P(o1,"hsl");function a1(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Yo(e,t,r):"rgba("+Yn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Yo(e.hue,e.saturation,e.lightness):"rgba("+Yn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ke(2)}P(a1,"hsla");function gi(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return pu("#"+vr(e)+vr(t)+vr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return pu("#"+vr(e.red)+vr(e.green)+vr(e.blue));throw new Ke(6)}P(gi,"rgb");function Qr(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Jr(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?gi(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?gi(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Ke(7)}P(Qr,"rgba");var m5=P(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),g5=P(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),h5=P(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),y5=P(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function lr(e){if(typeof e!="object")throw new Ke(8);if(g5(e))return Qr(e);if(m5(e))return gi(e);if(y5(e))return a1(e);if(h5(e))return o1(e);throw new Ke(8)}P(lr,"toColorString");function sd(e,t,r){return P(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):sd(e,t,n)},"fn")}P(sd,"curried");function tt(e){return sd(e,e.length,[])}P(tt,"curry");function i1(e,t){if(t==="transparent")return t;var r=ir(t);return lr(Be({},r,{hue:r.hue+parseFloat(e)}))}P(i1,"adjustHue");tt(i1);function ln(e,t,r){return Math.max(e,Math.min(t,r))}P(ln,"guard");function l1(e,t){if(t==="transparent")return t;var r=ir(t);return lr(Be({},r,{lightness:ln(0,1,r.lightness-parseFloat(e))}))}P(l1,"darken");var b5=tt(l1),v5=b5;function s1(e,t){if(t==="transparent")return t;var r=ir(t);return lr(Be({},r,{saturation:ln(0,1,r.saturation-parseFloat(e))}))}P(s1,"desaturate");tt(s1);function u1(e,t){if(t==="transparent")return t;var r=ir(t);return lr(Be({},r,{lightness:ln(0,1,r.lightness+parseFloat(e))}))}P(u1,"lighten");var x5=tt(u1),E5=x5;function c1(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Jr(t),o=Be({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Jr(r),i=Be({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,p=(u/d+1)/2,c=1-p,f={red:Math.floor(o.red*p+i.red*c),green:Math.floor(o.green*p+i.green*c),blue:Math.floor(o.blue*p+i.blue*c),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Qr(f)}P(c1,"mix");var w5=tt(c1),d1=w5;function p1(e,t){if(t==="transparent")return t;var r=Jr(t),n=typeof r.alpha=="number"?r.alpha:1,o=Be({},r,{alpha:ln(0,1,(n*100+parseFloat(e)*100)/100)});return Qr(o)}P(p1,"opacify");var S5=tt(p1),C5=S5;function f1(e,t){if(t==="transparent")return t;var r=ir(t);return lr(Be({},r,{saturation:ln(0,1,r.saturation+parseFloat(e))}))}P(f1,"saturate");tt(f1);function m1(e,t){return t==="transparent"?t:lr(Be({},ir(t),{hue:parseFloat(e)}))}P(m1,"setHue");tt(m1);function g1(e,t){return t==="transparent"?t:lr(Be({},ir(t),{lightness:parseFloat(e)}))}P(g1,"setLightness");tt(g1);function h1(e,t){return t==="transparent"?t:lr(Be({},ir(t),{saturation:parseFloat(e)}))}P(h1,"setSaturation");tt(h1);function y1(e,t){return t==="transparent"?t:d1(parseFloat(e),"rgb(0, 0, 0)",t)}P(y1,"shade");tt(y1);function b1(e,t){return t==="transparent"?t:d1(parseFloat(e),"rgb(255, 255, 255)",t)}P(b1,"tint");tt(b1);function v1(e,t){if(t==="transparent")return t;var r=Jr(t),n=typeof r.alpha=="number"?r.alpha:1,o=Be({},r,{alpha:ln(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Qr(o)}P(v1,"transparentize");var $5=tt(v1),A5=$5,K={secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},xr={app:"#F6F9FC",gridCellSize:10,hoverable:A5(.9,K.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},Ht={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},x1=Xc(E3(),1),D5=(0,x1.default)(1)(({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}));(0,x1.default)(1)(({color:e,background:t,typography:r})=>{let n=D5({typography:r});return{...n,body:{...n.body,color:e.defaultText,background:t.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1}}});var k5={base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:K.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:Ht.fonts.base,fontCode:Ht.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:K.mediumdark,barHoverColor:K.secondary,barSelectedColor:K.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:K.lightest,inputBorderRadius:4},O5=k5,F5={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:xr.app,appContentBg:K.lightest,appPreviewBg:K.lightest,appBorderColor:K.border,appBorderRadius:4,fontBase:Ht.fonts.base,fontCode:Ht.fonts.mono,textColor:K.darkest,textInverseColor:K.lightest,textMutedColor:K.dark,barTextColor:K.mediumdark,barHoverColor:K.secondary,barSelectedColor:K.secondary,barBg:K.lightest,buttonBg:xr.app,buttonBorder:K.medium,booleanBg:K.mediumlight,booleanSelectedBg:K.lightest,inputBg:K.lightest,inputBorder:K.border,inputTextColor:K.darkest,inputBorderRadius:4},hi=F5;const{logger:_5}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:T5}=__STORYBOOK_MODULE_GLOBAL__;var{window:Gl}=T5,R5=P(e=>({color:e}),"mkColor"),P5=P(e=>typeof e!="string"?(_5.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1):!0,"isColorString"),I5=P(e=>!/(gradient|var|calc)/.test(e),"isValidColorForPolished"),L5=P((e,t)=>e==="darken"?Qr(`${v5(1,t)}`,.95):e==="lighten"?Qr(`${E5(1,t)}`,.95):t,"applyPolished"),E1=P(e=>t=>{if(!P5(t)||!I5(t))return t;try{return L5(e,t)}catch{return t}},"colorFactory"),Sn=E1("lighten");E1("darken");var w1=P(()=>!Gl||!Gl.matchMedia?"light":Gl.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light","getPreferredColorScheme"),fu={light:hi,dark:O5,normal:hi};w1();var B5={rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"},N5=_t`
|
|
733
|
+
from {
|
|
734
|
+
transform: rotate(0deg);
|
|
735
|
+
}
|
|
736
|
+
to {
|
|
737
|
+
transform: rotate(360deg);
|
|
738
|
+
}
|
|
739
|
+
`,S1=_t`
|
|
740
|
+
0%, 100% { opacity: 1; }
|
|
741
|
+
50% { opacity: .4; }
|
|
742
|
+
`,j5=_t`
|
|
743
|
+
0% { transform: translateY(1px); }
|
|
744
|
+
25% { transform: translateY(0px); }
|
|
745
|
+
50% { transform: translateY(-3px); }
|
|
746
|
+
100% { transform: translateY(1px); }
|
|
747
|
+
`,M5=_t`
|
|
748
|
+
0%, 100% { transform:translate3d(0,0,0); }
|
|
749
|
+
12.5%, 62.5% { transform:translate3d(-4px,0,0); }
|
|
750
|
+
37.5%, 87.5% { transform: translate3d(4px,0,0); }
|
|
751
|
+
`,z5=el`
|
|
752
|
+
animation: ${S1} 1.5s ease-in-out infinite;
|
|
753
|
+
color: transparent;
|
|
754
|
+
cursor: progress;
|
|
755
|
+
`,H5=el`
|
|
756
|
+
transition: all 150ms ease-out;
|
|
757
|
+
transform: translate3d(0, 0, 0);
|
|
758
|
+
|
|
759
|
+
&:hover {
|
|
760
|
+
transform: translate3d(0, -2px, 0);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
&:active {
|
|
764
|
+
transform: translate3d(0, 0, 0);
|
|
765
|
+
}
|
|
766
|
+
`,U5={rotate360:N5,glow:S1,float:j5,jiggle:M5,inlineGlow:z5,hoverable:H5},W5={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"},V5={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"},q5=P(e=>Object.entries(e).reduce((t,[r,n])=>({...t,[r]:R5(n)}),{}),"convertColors"),G5=P(({colors:e,mono:t})=>{let r=q5(e);return{token:{fontFamily:t,WebkitFontSmoothing:"antialiased","&.tag":r.red3,"&.comment":{...r.green1,fontStyle:"italic"},"&.prolog":{...r.green1,fontStyle:"italic"},"&.doctype":{...r.green1,fontStyle:"italic"},"&.cdata":{...r.green1,fontStyle:"italic"},"&.string":r.red1,"&.url":r.cyan1,"&.symbol":r.cyan1,"&.number":r.cyan1,"&.boolean":r.cyan1,"&.variable":r.cyan1,"&.constant":r.cyan1,"&.inserted":r.cyan1,"&.atrule":r.blue1,"&.keyword":r.blue1,"&.attr-value":r.blue1,"&.punctuation":r.gray1,"&.operator":r.gray1,"&.function":r.gray1,"&.deleted":r.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":r.cyan2,"&.selector":r.red3,"&.attr-name":r.red4,"&.property":r.red4,"&.regex":r.red4,"&.entity":r.red4,"&.directive.tag .tag":{background:"#ffff00",...r.gray1}},"language-json .token.boolean":r.blue1,"language-json .token.number":r.blue1,"language-json .token.property":r.cyan2,namespace:{opacity:.7}}},"create"),Y5={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},K5={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},X5=P(e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:K.tertiary,ancillary:K.ancillary,orange:K.orange,gold:K.gold,green:K.green,seafoam:K.seafoam,purple:K.purple,ultraviolet:K.ultraviolet,lightest:K.lightest,lighter:K.lighter,light:K.light,mediumlight:K.mediumlight,medium:K.medium,mediumdark:K.mediumdark,dark:K.dark,darker:K.darker,darkest:K.darkest,border:K.border,positive:K.positive,negative:K.negative,warning:K.warning,critical:K.critical,defaultText:e.textColor||K.darkest,inverseText:e.textInverseColor||K.lightest,positiveText:K.positiveText,negativeText:K.negativeText,warningText:K.warningText}),"createColors"),mu=P((e=fu[w1()])=>{let{base:t,colorPrimary:r,colorSecondary:n,appBg:o,appContentBg:a,appPreviewBg:i,appBorderColor:l,appBorderRadius:s,fontBase:u,fontCode:d,textColor:p,textInverseColor:c,barTextColor:f,barHoverColor:m,barSelectedColor:h,barBg:v,buttonBg:E,buttonBorder:w,booleanBg:S,booleanSelectedBg:x,inputBg:$,inputBorder:A,inputTextColor:C,inputBorderRadius:D,brandTitle:F,brandUrl:k,brandImage:_,brandTarget:I,gridCellSize:L,...j}=e;return{...j,base:t,color:X5(e),background:{app:o,bar:v,content:a,preview:i,gridCellSize:L||xr.gridCellSize,hoverable:xr.hoverable,positive:xr.positive,negative:xr.negative,warning:xr.warning,critical:xr.critical},typography:{fonts:{base:u,mono:d},weight:Ht.weight,size:Ht.size},animation:U5,easing:B5,input:{background:$,border:A,borderRadius:D,color:C},button:{background:E||$,border:w||A},boolean:{background:S||A,selectedBackground:x||$},layoutMargin:10,appBorderColor:l,appBorderRadius:s,barTextColor:f,barHoverColor:m||n,barSelectedColor:h||n,barBg:v,brand:{title:F,url:k,image:_||(F?null:void 0),target:I},code:G5({colors:t==="light"?Y5:K5,mono:d}),addonActionsTheme:{...t==="light"?V5:W5,BASE_FONT_FAMILY:d,BASE_FONT_SIZE:Ht.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:p,ARROW_COLOR:C5(.2,l),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:d,TREENODE_FONT_SIZE:Ht.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}},"convert");const{logger:Z5}=__STORYBOOK_MODULE_CLIENT_LOGGER__;var J5=P(e=>Object.keys(e).length===0,"isEmpty"),Yl=P(e=>e!=null&&typeof e=="object","isObject"),Q5=P((e,...t)=>Object.prototype.hasOwnProperty.call(e,...t),"hasOwnProperty"),ek=P(()=>Object.create(null),"makeObjectWithoutPrototype"),C1=P((e,t)=>e===t||!Yl(e)||!Yl(t)?{}:Object.keys(e).reduce((r,n)=>{if(Q5(t,n)){let o=C1(e[n],t[n]);return Yl(o)&&J5(o)||(r[n]=o),r}return r[n]=void 0,r},ek()),"deletedDiff"),tk=C1;function $1(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,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
|
|
767
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
|
|
768
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
|
|
769
|
+
`)&&(p=String(l).split(`
|
|
770
|
+
`).map(function(c,f){return f===0?c:""+d+c}).join(`
|
|
771
|
+
`)),i+=p+n[s+1]}),i}P($1,"dedent");var rk=P(e=>{if(!e)return mu(hi);let t=tk(hi,e);return Object.keys(t).length&&Z5.warn($1`
|
|
772
|
+
Your theme is missing properties, you should update your theme!
|
|
773
|
+
|
|
774
|
+
theme-data missing:
|
|
775
|
+
`,t),mu(e)},"ensure"),gu="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",nk=Object.create,tl=Object.defineProperty,ok=Object.getOwnPropertyDescriptor,ak=Object.getOwnPropertyNames,ik=Object.getPrototypeOf,lk=Object.prototype.hasOwnProperty,g=(e,t)=>tl(e,"name",{value:t,configurable:!0}),Ea=(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')}),N=(e,t)=>()=>(e&&(t=e(e=0)),t),ee=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),oa=(e,t)=>{for(var r in t)tl(e,r,{get:t[r],enumerable:!0})},sk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of ak(t))!lk.call(e,o)&&o!==r&&tl(e,o,{get:()=>t[o],enumerable:!(n=ok(t,o))||n.enumerable});return e},je=(e,t,r)=>(r=e!=null?nk(ik(e)):{},sk(t||!e||!e.__esModule?tl(r,"default",{value:e,enumerable:!0}):r,e));function xe(){return xe=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},xe.apply(null,arguments)}var rl=N(()=>{g(xe,"_extends")});function A1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var uk=N(()=>{g(A1,"_assertThisInitialized")});function Kn(e,t){return Kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Kn(e,t)}var ud=N(()=>{g(Kn,"_setPrototypeOf")});function yi(e){return yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yi(e)}var ck=N(()=>{g(yi,"_getPrototypeOf")}),nl=ee((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return g(function r(n,o,a){function i(u,d){if(!o[u]){if(!n[u]){var p=typeof Ea=="function"&&Ea;if(!d&&p)return p(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(m){var h=n[u][1][m];return i(h||m)},f,f.exports,r,n,o,a)}return o[u].exports}g(i,"s");for(var l=typeof Ea=="function"&&Ea,s=0;s<a.length;s++)i(a[s]);return i},"e")({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}g(a,"Similar"),a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var d=new a(!1),p=[];return function(c){var f=g(function(){var m=d,h,v,E=arguments.length-1,w=Array(E+1),S=!0,x;if((f.numArgs||f.numArgs===0)&&f.numArgs!==E+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<E;x++){if(w[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,h=new a(!1),m.set(arguments[x],h),m=h}return S&&(m.has(arguments[E])?v=m.get(arguments[E]):S=!1),S||(v=c.apply(null,arguments),m.set(arguments[E],v)),u>0&&(w[E]={cacheItem:m,arg:arguments[E]},S?i(p,w):p.push(w),p.length>u&&l(p.shift())),f.wasMemoized=S,f.numArgs=E+1,v},"memoizerific");return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(u,d){var p=u.length,c=d.length,f,m,h;for(m=0;m<p;m++){for(f=!0,h=0;h<c;h++)if(!s(u[m][h].arg,d[h].arg)){f=!1;break}if(f)break}u.push(u.splice(m,1)[0])}g(i,"moveToMostRecentLru");function l(u){var d=u.length,p=u[d-1],c,f;for(p.cacheItem.delete(p.arg),f=d-2;f>=0&&(p=u[f],c=p.cacheItem.get(p.arg),!c||!c.size);f--)p.cacheItem.delete(p.arg)}g(l,"removeCachedResult");function s(u,d){return u===d||u!==u&&d!==d}g(s,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})});function ol(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 cd=N(()=>{g(ol,"_objectWithoutPropertiesLoose")});function D1(e,t){if(e==null)return{};var r,n,o=ol(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var dk=N(()=>{cd(),g(D1,"_objectWithoutProperties")});function bi(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}var k1=N(()=>{g(bi,"_arrayLikeToArray")});function O1(e){if(Array.isArray(e))return bi(e)}var pk=N(()=>{k1(),g(O1,"_arrayWithoutHoles")});function F1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}var fk=N(()=>{g(F1,"_iterableToArray")});function _1(e,t){if(e){if(typeof e=="string")return bi(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)?bi(e,t):void 0}}var mk=N(()=>{k1(),g(_1,"_unsupportedIterableToArray")});function T1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
776
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var gk=N(()=>{g(T1,"_nonIterableSpread")});function vi(e){return O1(e)||F1(e)||_1(e)||T1()}var hk=N(()=>{pk(),fk(),mk(),gk(),g(vi,"_toConsumableArray")});function Xn(e){"@babel/helpers - typeof";return Xn=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},Xn(e)}var R1=N(()=>{g(Xn,"_typeof")});function P1(e,t){if(Xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yk=N(()=>{R1(),g(P1,"toPrimitive")});function I1(e){var t=P1(e,"string");return Xn(t)=="symbol"?t:t+""}var bk=N(()=>{R1(),yk(),g(I1,"toPropertyKey")});function dd(e,t,r){return(t=I1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L1=N(()=>{bk(),g(dd,"_defineProperty")});function hu(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 Gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hu(Object(r),!0).forEach(function(n){dd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B1(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 N1(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Ha[t]||(Ha[t]=B1(e)),Ha[t]}function j1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(a){return a!=="token"}),o=N1(n);return o.reduce(function(a,i){return Gr(Gr({},a),r[i])},t)}function yu(e){return e.join(" ")}function M1(e,t){var r=0;return function(n){return r+=1,n.map(function(o,a){return al({node:o,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(a)})})}}function al(e){var t=e.node,r=e.stylesheet,n=e.style,o=n===void 0?{}:n,a=e.useInlineStyles,i=e.key,l=t.properties,s=t.type,u=t.tagName,d=t.value;if(s==="text")return d;if(u){var p=M1(r,a),c;if(!a)c=Gr(Gr({},l),{},{className:yu(l.className)});else{var f=Object.keys(r).reduce(function(E,w){return w.split(".").forEach(function(S){E.includes(S)||E.push(S)}),E},[]),m=l.className&&l.className.includes("token")?["token"]:[],h=l.className&&m.concat(l.className.filter(function(E){return!f.includes(E)}));c=Gr(Gr({},l),{},{className:yu(h)||void 0,style:j1(l.className,Object.assign({},l.style,o),r)})}var v=p(t.children);return y.createElement(u,xe({key:i},c),v)}}var Ha,z1=N(()=>{rl(),L1(),g(hu,"ownKeys"),g(Gr,"_objectSpread"),g(B1,"powerSetPermutations"),Ha={},g(N1,"getClassNameCombinations"),g(j1,"createStyleObject"),g(yu,"createClassNameString"),g(M1,"createChildren"),g(al,"createElement")}),H1,vk=N(()=>{H1=g(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1},"default")});function bu(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 or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bu(Object(r),!0).forEach(function(n){dd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U1(e){return e.match(J1)}function W1(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(o,a){var i=a+r;return y.createElement("span",{key:"line-".concat(a),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(i):n},"".concat(i,`
|
|
777
|
+
`))})}function V1(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,o=n===void 0?{float:"left",paddingRight:"10px"}:n,a=e.numberStyle,i=a===void 0?{}:a,l=e.startingLineNumber;return y.createElement("code",{style:Object.assign({},r,o)},W1({lines:t.replace(/\n$/,"").split(`
|
|
778
|
+
`),style:i,startingLineNumber:l}))}function q1(e){return"".concat(e.toString().length,".25em")}function pd(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 fd(e,t,r){var n={display:"inline-block",minWidth:q1(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},o=typeof e=="function"?e(t):e,a=or(or({},n),o);return a}function Mo(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,o=e.largestLineNumber,a=e.showInlineLineNumbers,i=e.lineProps,l=i===void 0?{}:i,s=e.className,u=s===void 0?[]:s,d=e.showLineNumbers,p=e.wrapLongLines,c=e.wrapLines,f=c===void 0?!1:c,m=f?or({},typeof l=="function"?l(r):l):{};if(m.className=m.className?[].concat(vi(m.className.trim().split(/\s+/)),vi(u)):u,r&&a){var h=fd(n,r,o);t.unshift(pd(r,h))}return p&d&&(m.style=or({display:"flex"},m.style)),{type:"element",tagName:"span",properties:m,children:t}}function md(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(Mo({children:[o],className:vi(new Set(t))}));else if(o.children){var a=t.concat(o.properties.className);md(o.children,a).forEach(function(i){return r.push(i)})}}return r}function G1(e,t,r,n,o,a,i,l,s){var u,d=md(e.value),p=[],c=-1,f=0;function m($,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Mo({children:$,lineNumber:A,lineNumberStyle:l,largestLineNumber:i,showInlineLineNumbers:o,lineProps:r,className:C,showLineNumbers:n,wrapLongLines:s,wrapLines:t})}g(m,"createWrappedLine");function h($,A){if(n&&A&&o){var C=fd(l,A,i);$.unshift(pd(A,C))}return $}g(h,"createUnwrappedLine");function v($,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||C.length>0?m($,A,C):h($,A)}g(v,"createLine");for(var E=g(function(){var $=d[f],A=$.children[0].value,C=U1(A);if(C){var D=A.split(`
|
|
779
|
+
`);D.forEach(function(F,k){var _=n&&p.length+a,I={type:"text",value:"".concat(F,`
|
|
780
|
+
`)};if(k===0){var L=d.slice(c+1,f).concat(Mo({children:[I],className:$.properties.className})),j=v(L,_);p.push(j)}else if(k===D.length-1){var B=d[f+1]&&d[f+1].children&&d[f+1].children[0],M={type:"text",value:"".concat(F)};if(B){var V=Mo({children:[M],className:$.properties.className});d.splice(f+1,0,V)}else{var G=[M],W=v(G,_,$.properties.className);p.push(W)}}else{var Y=[I],X=v(Y,_,$.properties.className);p.push(X)}}),c=f}f++},"_loop");f<d.length;)E();if(c!==d.length-1){var w=d.slice(c+1,d.length);if(w&&w.length){var S=n&&p.length+a,x=v(w,S);p.push(x)}}return t?p:(u=[]).concat.apply(u,p)}function Y1(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(o,a){return al({node:o,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(a)})})}function gd(e){return e&&typeof e.highlightAuto<"u"}function K1(e){var t=e.astGenerator,r=e.language,n=e.code,o=e.defaultCodeValue;if(gd(t)){var a=H1(t,r);return r==="text"?{value:o,language:"text"}:a?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:o}}catch{return{value:o}}}function X1(e,t){return g(function(r){var n=r.language,o=r.children,a=r.style,i=a===void 0?t:a,l=r.customStyle,s=l===void 0?{}:l,u=r.codeTagProps,d=u===void 0?{className:n?"language-".concat(n):void 0,style:or(or({},i['code[class*="language-"]']),i['code[class*="language-'.concat(n,'"]')])}:u,p=r.useInlineStyles,c=p===void 0?!0:p,f=r.showLineNumbers,m=f===void 0?!1:f,h=r.showInlineLineNumbers,v=h===void 0?!0:h,E=r.startingLineNumber,w=E===void 0?1:E,S=r.lineNumberContainerStyle,x=r.lineNumberStyle,$=x===void 0?{}:x,A=r.wrapLines,C=r.wrapLongLines,D=C===void 0?!1:C,F=r.lineProps,k=F===void 0?{}:F,_=r.renderer,I=r.PreTag,L=I===void 0?"pre":I,j=r.CodeTag,B=j===void 0?"code":j,M=r.code,V=M===void 0?(Array.isArray(o)?o[0]:o)||"":M,G=r.astGenerator,W=D1(r,Z1);G=G||e;var Y=m?y.createElement(V1,{containerStyle:S,codeStyle:d.style||{},numberStyle:$,startingLineNumber:w,codeString:V}):null,X=i.hljs||i['pre[class*="language-"]']||{backgroundColor:"#fff"},re=gd(G)?"hljs":"prismjs",oe=c?Object.assign({},W,{style:Object.assign({},X,s)}):Object.assign({},W,{className:W.className?"".concat(re," ").concat(W.className):re,style:Object.assign({},s)});if(D?d.style=or({whiteSpace:"pre-wrap"},d.style):d.style=or({whiteSpace:"pre"},d.style),!G)return y.createElement(L,oe,Y,y.createElement(B,d,V));(A===void 0&&_||D)&&(A=!0),_=_||Y1;var J=[{type:"text",value:V}],H=K1({astGenerator:G,language:n,code:V,defaultCodeValue:J});H.language===null&&(H.value=J);var Z=H.value.length;Z===1&&H.value[0].type==="text"&&(Z=H.value[0].value.split(`
|
|
781
|
+
`).length);var te=Z+w,le=G1(H,A,k,m,v,w,te,$,D);return y.createElement(L,oe,y.createElement(B,d,!v&&Y,_({rows:le,stylesheet:i,useInlineStyles:c})))},"SyntaxHighlighter")}var Z1,J1,xk=N(()=>{dk(),hk(),L1(),z1(),vk(),Z1=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],g(bu,"ownKeys"),g(or,"_objectSpread"),J1=/\n/g,g(U1,"getNewLines"),g(W1,"getAllLineNumbers"),g(V1,"AllLineNumbers"),g(q1,"getEmWidthOfNumber"),g(pd,"getInlineLineNumber"),g(fd,"assembleLineNumberStyles"),g(Mo,"createLineElement"),g(md,"flattenCodeTree"),g(G1,"processLines"),g(Y1,"defaultRenderer"),g(gd,"isHighlightJs"),g(K1,"getCodeTree"),g(X1,"default")}),Ek=ee((e,t)=>{t.exports=n;var r=Object.prototype.hasOwnProperty;function n(){for(var o={},a=0;a<arguments.length;a++){var i=arguments[a];for(var l in i)r.call(i,l)&&(o[l]=i[l])}return o}g(n,"extend")}),Q1=ee((e,t)=>{t.exports=n;var r=n.prototype;r.space=null,r.normal={},r.property={};function n(o,a,i){this.property=o,this.normal=a,i&&(this.space=i)}g(n,"Schema")}),wk=ee((e,t)=>{var r=Ek(),n=Q1();t.exports=o;function o(a){for(var i=a.length,l=[],s=[],u=-1,d,p;++u<i;)d=a[u],l.push(d.property),s.push(d.normal),p=d.space;return new n(r.apply(null,l),r.apply(null,s),p)}g(o,"merge")}),hd=ee((e,t)=>{t.exports=r;function r(n){return n.toLowerCase()}g(r,"normalize")}),ev=ee((e,t)=>{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,a){this.property=o,this.attribute=a}g(n,"Info")}),yd=ee(e=>{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)}g(r,"increment")}),tv=ee((e,t)=>{var r=ev(),n=yd();t.exports=i,i.prototype=new r,i.prototype.defined=!0;var o=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=o.length;function i(s,u,d,p){var c=-1,f;for(l(this,"space",p),r.call(this,s,u);++c<a;)f=o[c],l(this,f,(d&n[f])===n[f])}g(i,"DefinedInfo");function l(s,u,d){d&&(s[u]=d)}g(l,"mark")}),aa=ee((e,t)=>{var r=hd(),n=Q1(),o=tv();t.exports=a;function a(i){var l=i.space,s=i.mustUseProperty||[],u=i.attributes||{},d=i.properties,p=i.transform,c={},f={},m,h;for(m in d)h=new o(m,p(u,m),d[m],l),s.indexOf(m)!==-1&&(h.mustUseProperty=!0),c[m]=h,f[r(m)]=m,f[r(h.attribute)]=m;return new n(c,f,l)}g(a,"create")}),Sk=ee((e,t)=>{var r=aa();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,a){return"xlink:"+a.slice(5).toLowerCase()}g(n,"xlinkTransform")}),Ck=ee((e,t)=>{var r=aa();t.exports=r({space:"xml",transform:n,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n(o,a){return"xml:"+a.slice(3).toLowerCase()}g(n,"xmlTransform")}),$k=ee((e,t)=>{t.exports=r;function r(n,o){return o in n?n[o]:o}g(r,"caseSensitiveTransform")}),rv=ee((e,t)=>{var r=$k();t.exports=n;function n(o,a){return r(o,a.toLowerCase())}g(n,"caseInsensitiveTransform")}),Ak=ee((e,t)=>{var r=aa(),n=rv();t.exports=r({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:n,properties:{xmlns:null,xmlnsXLink:null}})}),Dk=ee((e,t)=>{var r=yd(),n=aa(),o=r.booleanish,a=r.number,i=r.spaceSeparated;t.exports=n({transform:l,properties:{ariaActiveDescendant:null,ariaAtomic:o,ariaAutoComplete:null,ariaBusy:o,ariaChecked:o,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:i,ariaCurrent:null,ariaDescribedBy:i,ariaDetails:null,ariaDisabled:o,ariaDropEffect:i,ariaErrorMessage:null,ariaExpanded:o,ariaFlowTo:i,ariaGrabbed:o,ariaHasPopup:null,ariaHidden:o,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i,ariaLevel:a,ariaLive:null,ariaModal:o,ariaMultiLine:o,ariaMultiSelectable:o,ariaOrientation:null,ariaOwns:i,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:o,ariaReadOnly:o,ariaRelevant:null,ariaRequired:o,ariaRoleDescription:i,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:o,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function l(s,u){return u==="role"?u:"aria-"+u.slice(4).toLowerCase()}g(l,"ariaTransform")}),kk=ee((e,t)=>{var r=yd(),n=aa(),o=rv(),a=r.boolean,i=r.overloadedBoolean,l=r.booleanish,s=r.number,u=r.spaceSeparated,d=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:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:u,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:u,cols:s,colSpan:null,content:null,contentEditable:l,controls:a,controlsList:u,coords:s|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:i,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:u,height:s,hidden:a,high:s,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:u,itemRef:u,itemScope:a,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:s,manifest:null,max:null,maxLength:s,media:null,method:null,min:null,minLength:s,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,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:a,optimum:s,pattern:null,ping:u,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:u,required:a,reversed:a,rows:s,rowSpan:s,sandbox:u,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:s,sizes:null,slot:null,span:s,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:s,step:null,style:null,tabIndex:s,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:l,width:s,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:s,borderColor:null,bottomMargin:s,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:s,leftMargin:s,link:null,longDesc:null,lowSrc:null,marginHeight:s,marginWidth:s,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:s,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:s,valueType:null,version:null,vAlign:null,vLink:null,vSpace:s,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:s,security:null,unselectable:null}})}),Ok=ee((e,t)=>{var r=wk(),n=Sk(),o=Ck(),a=Ak(),i=Dk(),l=kk();t.exports=r([o,n,a,i,l])}),Fk=ee((e,t)=>{var r=hd(),n=tv(),o=ev(),a="data";t.exports=u;var i=/^data[-\w.:]+$/i,l=/-[a-z]/g,s=/[A-Z]/g;function u(m,h){var v=r(h),E=h,w=o;return v in m.normal?m.property[m.normal[v]]:(v.length>4&&v.slice(0,4)===a&&i.test(h)&&(h.charAt(4)==="-"?E=d(h):h=p(h),w=n),new w(E,h))}g(u,"find");function d(m){var h=m.slice(5).replace(l,f);return a+h.charAt(0).toUpperCase()+h.slice(1)}g(d,"datasetToProperty");function p(m){var h=m.slice(4);return l.test(h)?m:(h=h.replace(s,c),h.charAt(0)!=="-"&&(h="-"+h),a+h)}g(p,"datasetToAttribute");function c(m){return"-"+m.toLowerCase()}g(c,"kebab");function f(m){return m.charAt(1).toUpperCase()}g(f,"camelcase")}),_k=ee((e,t)=>{t.exports=n;var r=/[#.]/g;function n(o,a){for(var i=o||"",l=a||"div",s={},u=0,d,p,c;u<i.length;)r.lastIndex=u,c=r.exec(i),d=i.slice(u,c?c.index:i.length),d&&(p?p==="#"?s.id=d:s.className?s.className.push(d):s.className=[d]:l=d,u+=d.length),c&&(p=c[0],u++);return{type:"element",tagName:l,properties:s,children:[]}}g(n,"parse")}),Tk=ee(e=>{e.parse=o,e.stringify=a;var t="",r=" ",n=/[ \t\n\r\f]+/g;function o(i){var l=String(i||t).trim();return l===t?[]:l.split(n)}g(o,"parse");function a(i){return i.join(r).trim()}g(a,"stringify")}),Rk=ee(e=>{e.parse=o,e.stringify=a;var t=",",r=" ",n="";function o(i){for(var l=[],s=String(i||n),u=s.indexOf(t),d=0,p=!1,c;!p;)u===-1&&(u=s.length,p=!0),c=s.slice(d,u).trim(),(c||!p)&&l.push(c),d=u+1,u=s.indexOf(t,d);return l}g(o,"parse");function a(i,l){var s=l||{},u=s.padLeft===!1?n:r,d=s.padRight?r:n;return i[i.length-1]===n&&(i=i.concat(n)),i.join(d+t+u).trim()}g(a,"stringify")}),Pk=ee((e,t)=>{var r=Fk(),n=hd(),o=_k(),a=Tk().parse,i=Rk().parse;t.exports=s;var l={}.hasOwnProperty;function s(v,E,w){var S=w?h(w):null;return x;function x(A,C){var D=o(A,E),F=Array.prototype.slice.call(arguments,2),k=D.tagName.toLowerCase(),_;if(D.tagName=S&&l.call(S,k)?S[k]:k,C&&u(C,D)&&(F.unshift(C),C=null),C)for(_ in C)$(D.properties,_,C[_]);return p(D.children,F),D.tagName==="template"&&(D.content={type:"root",children:D.children},D.children=[]),D}function $(A,C,D){var F,k,_;D==null||D!==D||(F=r(v,C),k=F.property,_=D,typeof _=="string"&&(F.spaceSeparated?_=a(_):F.commaSeparated?_=i(_):F.commaOrSpaceSeparated&&(_=a(i(_).join(" ")))),k==="style"&&typeof D!="string"&&(_=m(_)),k==="className"&&A.className&&(_=A.className.concat(_)),A[k]=c(F,k,_))}}g(s,"factory");function u(v,E){return typeof v=="string"||"length"in v||d(E.tagName,v)}g(u,"isChildren");function d(v,E){var w=E.type;return v==="input"||!w||typeof w!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(w=w.toLowerCase(),v==="button"?w!=="menu"&&w!=="submit"&&w!=="reset"&&w!=="button":"value"in E)}g(d,"isNode");function p(v,E){var w,S;if(typeof E=="string"||typeof E=="number"){v.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(w=-1,S=E.length;++w<S;)p(v,E[w]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");v.push(E)}g(p,"addChild");function c(v,E,w){var S,x,$;if(typeof w!="object"||!("length"in w))return f(v,E,w);for(x=w.length,S=-1,$=[];++S<x;)$[S]=f(v,E,w[S]);return $}g(c,"parsePrimitives");function f(v,E,w){var S=w;return v.number||v.positiveNumber?!isNaN(S)&&S!==""&&(S=Number(S)):(v.boolean||v.overloadedBoolean)&&typeof S=="string"&&(S===""||n(w)===n(E))&&(S=!0),S}g(f,"parsePrimitive");function m(v){var E=[],w;for(w in v)E.push([w,v[w]].join(": "));return E.join("; ")}g(m,"style");function h(v){for(var E=v.length,w=-1,S={},x;++w<E;)x=v[w],S[x.toLowerCase()]=x;return S}g(h,"createAdjustMap")}),Ik=ee((e,t)=>{var r=Ok(),n=Pk(),o=n(r,"div");o.displayName="html",t.exports=o}),Lk=ee((e,t)=>{t.exports=Ik()}),Bk=ee((e,t)=>{t.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}}),Nk=ee((e,t)=>{t.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}}),nv=ee((e,t)=>{t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=48&&o<=57}g(r,"decimal")}),jk=ee((e,t)=>{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}g(r,"hexadecimal")}),Mk=ee((e,t)=>{t.exports=r;function r(n){var o=typeof n=="string"?n.charCodeAt(0):n;return o>=97&&o<=122||o>=65&&o<=90}g(r,"alphabetical")}),zk=ee((e,t)=>{var r=Mk(),n=nv();t.exports=o;function o(a){return r(a)||n(a)}g(o,"alphanumerical")}),Hk=ee((e,t)=>{var r,n=59;t.exports=o;function o(a){var i="&"+a+";",l;return r=r||document.createElement("i"),r.innerHTML=i,l=r.textContent,l.charCodeAt(l.length-1)===n&&a!=="semi"||l===i?!1:l}g(o,"decodeEntity")}),Uk=ee((e,t)=>{var r=Bk(),n=Nk(),o=nv(),a=jk(),i=zk(),l=Hk();t.exports=X;var s={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,p={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},c=9,f=10,m=12,h=32,v=38,E=59,w=60,S=61,x=35,$=88,A=120,C=65533,D="named",F="hexadecimal",k="decimal",_={};_[F]=16,_[k]=10;var I={};I[D]=i,I[k]=o,I[F]=a;var L=1,j=2,B=3,M=4,V=5,G=6,W=7,Y={};Y[L]="Named character references must be terminated by a semicolon",Y[j]="Numeric character references must be terminated by a semicolon",Y[B]="Named character references cannot be empty",Y[M]="Numeric character references cannot be empty",Y[V]="Named character references must be known",Y[G]="Numeric character references cannot be disallowed",Y[W]="Numeric character references cannot be outside the permissible Unicode range";function X(H,Z){var te={},le,se;Z||(Z={});for(se in p)le=Z[se],te[se]=le??p[se];return(te.position.indent||te.position.start)&&(te.indent=te.position.indent||[],te.position=te.position.start),re(H,te)}g(X,"parseEntities");function re(H,Z){var te=Z.additional,le=Z.nonTerminated,se=Z.text,Re=Z.reference,ae=Z.warning,pe=Z.textContext,z=Z.referenceContext,U=Z.warningContext,me=Z.position,ke=Z.indent||[],be=H.length,We=0,fr=-1,Ce=me.column||1,nt=me.line||1,$e="",ht=[],Ve,yt,Rt,Me,bt,Pe,Ae,Pt,pa,_l,Ir,ho,Lr,Gt,kp,yo,fa,It,Ie;for(typeof te=="string"&&(te=te.charCodeAt(0)),yo=bo(),Pt=ae?BC:d,We--,be++;++We<be;)if(bt===f&&(Ce=ke[fr]||1),bt=H.charCodeAt(We),bt===v){if(Ae=H.charCodeAt(We+1),Ae===c||Ae===f||Ae===m||Ae===h||Ae===v||Ae===w||Ae!==Ae||te&&Ae===te){$e+=u(bt),Ce++;continue}for(Lr=We+1,ho=Lr,Ie=Lr,Ae===x?(Ie=++ho,Ae=H.charCodeAt(Ie),Ae===$||Ae===A?(Gt=F,Ie=++ho):Gt=k):Gt=D,Ve="",Ir="",Me="",kp=I[Gt],Ie--;++Ie<be&&(Ae=H.charCodeAt(Ie),!!kp(Ae));)Me+=u(Ae),Gt===D&&s.call(r,Me)&&(Ve=Me,Ir=r[Me]);Rt=H.charCodeAt(Ie)===E,Rt&&(Ie++,yt=Gt===D?l(Me):!1,yt&&(Ve=Me,Ir=yt)),It=1+Ie-Lr,!Rt&&!le||(Me?Gt===D?(Rt&&!Ir?Pt(V,1):(Ve!==Me&&(Ie=ho+Ve.length,It=1+Ie-ho,Rt=!1),Rt||(pa=Ve?L:B,Z.attribute?(Ae=H.charCodeAt(Ie),Ae===S?(Pt(pa,It),Ir=null):i(Ae)?Ir=null:Pt(pa,It)):Pt(pa,It))),Pe=Ir):(Rt||Pt(j,It),Pe=parseInt(Me,_[Gt]),oe(Pe)?(Pt(W,It),Pe=u(C)):Pe in n?(Pt(G,It),Pe=n[Pe]):(_l="",J(Pe)&&Pt(G,It),Pe>65535&&(Pe-=65536,_l+=u(Pe>>>10|55296),Pe=56320|Pe&1023),Pe=_l+u(Pe))):Gt!==D&&Pt(M,It)),Pe?(Op(),yo=bo(),We=Ie-1,Ce+=Ie-Lr+1,ht.push(Pe),fa=bo(),fa.offset++,Re&&Re.call(z,Pe,{start:yo,end:fa},H.slice(Lr-1,Ie)),yo=fa):(Me=H.slice(Lr-1,Ie),$e+=Me,Ce+=Me.length,We=Ie-1)}else bt===10&&(nt++,fr++,Ce=0),bt===bt?($e+=u(bt),Ce++):Op();return ht.join("");function bo(){return{line:nt,column:Ce,offset:We+(me.offset||0)}}function BC(Fp,_p){var Tl=bo();Tl.column+=_p,Tl.offset+=_p,ae.call(U,Y[Fp],Tl,Fp)}function Op(){$e&&(ht.push($e),se&&se.call(pe,$e,{start:yo,end:bo()}),$e="")}}g(re,"parse");function oe(H){return H>=55296&&H<=57343||H>1114111}g(oe,"prohibited");function J(H){return H>=1&&H<=8||H===11||H>=13&&H<=31||H>=127&&H<=159||H>=64976&&H<=65007||(H&65535)===65535||(H&65535)===65534}g(J,"disallowed")}),Wk=ee((e,t)=>{var r=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},n=function(o){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,l={},s={manual:o.Prism&&o.Prism.manual,disableWorkerMessageHandler:o.Prism&&o.Prism.disableWorkerMessageHandler,util:{encode:g(function S(x){return x instanceof u?new u(x.type,S(x.content),x.alias):Array.isArray(x)?x.map(S):x.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},"encode"),type:g(function(S){return Object.prototype.toString.call(S).slice(8,-1)},"type"),objId:g(function(S){return S.__id||Object.defineProperty(S,"__id",{value:++i}),S.__id},"objId"),clone:g(function S(x,$){$=$||{};var A,C;switch(s.util.type(x)){case"Object":if(C=s.util.objId(x),$[C])return $[C];A={},$[C]=A;for(var D in x)x.hasOwnProperty(D)&&(A[D]=S(x[D],$));return A;case"Array":return C=s.util.objId(x),$[C]?$[C]:(A=[],$[C]=A,x.forEach(function(F,k){A[k]=S(F,$)}),A);default:return x}},"deepClone"),getLanguage:g(function(S){for(;S;){var x=a.exec(S.className);if(x)return x[1].toLowerCase();S=S.parentElement}return"none"},"getLanguage"),setLanguage:g(function(S,x){S.className=S.className.replace(RegExp(a,"gi"),""),S.classList.add("language-"+x)},"setLanguage"),currentScript:g(function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(A){var S=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(A.stack)||[])[1];if(S){var x=document.getElementsByTagName("script");for(var $ in x)if(x[$].src==S)return x[$]}return null}},"currentScript"),isActive:g(function(S,x,$){for(var A="no-"+x;S;){var C=S.classList;if(C.contains(x))return!0;if(C.contains(A))return!1;S=S.parentElement}return!!$},"isActive")},languages:{plain:l,plaintext:l,text:l,txt:l,extend:g(function(S,x){var $=s.util.clone(s.languages[S]);for(var A in x)$[A]=x[A];return $},"extend"),insertBefore:g(function(S,x,$,A){A=A||s.languages;var C=A[S],D={};for(var F in C)if(C.hasOwnProperty(F)){if(F==x)for(var k in $)$.hasOwnProperty(k)&&(D[k]=$[k]);$.hasOwnProperty(F)||(D[F]=C[F])}var _=A[S];return A[S]=D,s.languages.DFS(s.languages,function(I,L){L===_&&I!=S&&(this[I]=D)}),D},"insertBefore"),DFS:g(function S(x,$,A,C){C=C||{};var D=s.util.objId;for(var F in x)if(x.hasOwnProperty(F)){$.call(x,F,x[F],A||F);var k=x[F],_=s.util.type(k);_==="Object"&&!C[D(k)]?(C[D(k)]=!0,S(k,$,null,C)):_==="Array"&&!C[D(k)]&&(C[D(k)]=!0,S(k,$,F,C))}},"DFS")},plugins:{},highlightAll:g(function(S,x){s.highlightAllUnder(document,S,x)},"highlightAll"),highlightAllUnder:g(function(S,x,$){var A={callback:$,container:S,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",A),A.elements=Array.prototype.slice.apply(A.container.querySelectorAll(A.selector)),s.hooks.run("before-all-elements-highlight",A);for(var C=0,D;D=A.elements[C++];)s.highlightElement(D,x===!0,A.callback)},"highlightAllUnder"),highlightElement:g(function(S,x,$){var A=s.util.getLanguage(S),C=s.languages[A];s.util.setLanguage(S,A);var D=S.parentElement;D&&D.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(D,A);var F=S.textContent,k={element:S,language:A,grammar:C,code:F};function _(L){k.highlightedCode=L,s.hooks.run("before-insert",k),k.element.innerHTML=k.highlightedCode,s.hooks.run("after-highlight",k),s.hooks.run("complete",k),$&&$.call(k.element)}if(g(_,"insertHighlightedCode"),s.hooks.run("before-sanity-check",k),D=k.element.parentElement,D&&D.nodeName.toLowerCase()==="pre"&&!D.hasAttribute("tabindex")&&D.setAttribute("tabindex","0"),!k.code){s.hooks.run("complete",k),$&&$.call(k.element);return}if(s.hooks.run("before-highlight",k),!k.grammar){_(s.util.encode(k.code));return}if(x&&o.Worker){var I=new Worker(s.filename);I.onmessage=function(L){_(L.data)},I.postMessage(JSON.stringify({language:k.language,code:k.code,immediateClose:!0}))}else _(s.highlight(k.code,k.grammar,k.language))},"highlightElement"),highlight:g(function(S,x,$){var A={code:S,grammar:x,language:$};if(s.hooks.run("before-tokenize",A),!A.grammar)throw new Error('The language "'+A.language+'" has no grammar.');return A.tokens=s.tokenize(A.code,A.grammar),s.hooks.run("after-tokenize",A),u.stringify(s.util.encode(A.tokens),A.language)},"highlight"),tokenize:g(function(S,x){var $=x.rest;if($){for(var A in $)x[A]=$[A];delete x.rest}var C=new c;return f(C,C.head,S),p(S,C,x,C.head,0),h(C)},"tokenize"),hooks:{all:{},add:g(function(S,x){var $=s.hooks.all;$[S]=$[S]||[],$[S].push(x)},"add"),run:g(function(S,x){var $=s.hooks.all[S];if(!(!$||!$.length))for(var A=0,C;C=$[A++];)C(x)},"run")},Token:u};o.Prism=s;function u(S,x,$,A){this.type=S,this.content=x,this.alias=$,this.length=(A||"").length|0}g(u,"Token"),u.stringify=g(function S(x,$){if(typeof x=="string")return x;if(Array.isArray(x)){var A="";return x.forEach(function(_){A+=S(_,$)}),A}var C={type:x.type,content:S(x.content,$),tag:"span",classes:["token",x.type],attributes:{},language:$},D=x.alias;D&&(Array.isArray(D)?Array.prototype.push.apply(C.classes,D):C.classes.push(D)),s.hooks.run("wrap",C);var F="";for(var k in C.attributes)F+=" "+k+'="'+(C.attributes[k]||"").replace(/"/g,""")+'"';return"<"+C.tag+' class="'+C.classes.join(" ")+'"'+F+">"+C.content+"</"+C.tag+">"},"stringify");function d(S,x,$,A){S.lastIndex=x;var C=S.exec($);if(C&&A&&C[1]){var D=C[1].length;C.index+=D,C[0]=C[0].slice(D)}return C}g(d,"matchPattern");function p(S,x,$,A,C,D){for(var F in $)if(!(!$.hasOwnProperty(F)||!$[F])){var k=$[F];k=Array.isArray(k)?k:[k];for(var _=0;_<k.length;++_){if(D&&D.cause==F+","+_)return;var I=k[_],L=I.inside,j=!!I.lookbehind,B=!!I.greedy,M=I.alias;if(B&&!I.pattern.global){var V=I.pattern.toString().match(/[imsuy]*$/)[0];I.pattern=RegExp(I.pattern.source,V+"g")}for(var G=I.pattern||I,W=A.next,Y=C;W!==x.tail&&!(D&&Y>=D.reach);Y+=W.value.length,W=W.next){var X=W.value;if(x.length>S.length)return;if(!(X instanceof u)){var re=1,oe;if(B){if(oe=d(G,Y,S,j),!oe||oe.index>=S.length)break;var te=oe.index,J=oe.index+oe[0].length,H=Y;for(H+=W.value.length;te>=H;)W=W.next,H+=W.value.length;if(H-=W.value.length,Y=H,W.value instanceof u)continue;for(var Z=W;Z!==x.tail&&(H<J||typeof Z.value=="string");Z=Z.next)re++,H+=Z.value.length;re--,X=S.slice(Y,H),oe.index-=Y}else if(oe=d(G,0,X,j),!oe)continue;var te=oe.index,le=oe[0],se=X.slice(0,te),Re=X.slice(te+le.length),ae=Y+X.length;D&&ae>D.reach&&(D.reach=ae);var pe=W.prev;se&&(pe=f(x,pe,se),Y+=se.length),m(x,pe,re);var z=new u(F,L?s.tokenize(le,L):le,M,le);if(W=f(x,pe,z),Re&&f(x,W,Re),re>1){var U={cause:F+","+_,reach:ae};p(S,x,$,W.prev,Y,U),D&&U.reach>D.reach&&(D.reach=U.reach)}}}}}}g(p,"matchGrammar");function c(){var S={value:null,prev:null,next:null},x={value:null,prev:S,next:null};S.next=x,this.head=S,this.tail=x,this.length=0}g(c,"LinkedList");function f(S,x,$){var A=x.next,C={value:$,prev:x,next:A};return x.next=C,A.prev=C,S.length++,C}g(f,"addAfter");function m(S,x,$){for(var A=x.next,C=0;C<$&&A!==S.tail;C++)A=A.next;x.next=A,A.prev=x,S.length-=C}g(m,"removeRange");function h(S){for(var x=[],$=S.head.next;$!==S.tail;)x.push($.value),$=$.next;return x}if(g(h,"toArray"),!o.document)return o.addEventListener&&(s.disableWorkerMessageHandler||o.addEventListener("message",function(S){var x=JSON.parse(S.data),$=x.language,A=x.code,C=x.immediateClose;o.postMessage(s.highlight(A,s.languages[$],$)),C&&o.close()},!1)),s;var v=s.util.currentScript();v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0));function E(){s.manual||s.highlightAll()}if(g(E,"highlightAutomaticallyCallback"),!s.manual){var w=document.readyState;w==="loading"||w==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",E):window.requestAnimationFrame?window.requestAnimationFrame(E):window.setTimeout(E,16)}return s}(r);typeof t<"u"&&t.exports&&(t.exports=n),typeof global<"u"&&(global.Prism=n)}),ov=ee((e,t)=>{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:g(function(o,a){var i={};i["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},i.cdata=/^<!\[CDATA\[|\]\]>$/i;var l={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:i}};l["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var s={};s[o]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return o}),"i"),lookbehind:!0,greedy:!0,inside:l},n.languages.insertBefore("markup","cdata",s)},"addInlined")}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:g(function(o,a){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:[a,"language-"+a],inside:n.languages[a]},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}g(r,"markup")}),av=ee((e,t)=>{t.exports=r,r.displayName="css",r.aliases=[];function r(n){(function(o){var a=/(?:"(?:\\(?:\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\\((?:"+a.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+a.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+a.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:a,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 i=o.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(n)}g(r,"css")}),Vk=ee((e,t)=>{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:/[{}[\];(),.:]/}}g(r,"clike")}),qk=ee((e,t)=>{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}g(r,"javascript")}),Gk=ee((e,t)=>{var r=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},n=C();r.Prism={manual:!0,disableWorkerMessageHandler:!0};var o=Lk(),a=Uk(),i=Wk(),l=ov(),s=av(),u=Vk(),d=qk();n();var p={}.hasOwnProperty;function c(){}g(c,"Refractor"),c.prototype=i;var f=new c;t.exports=f,f.highlight=v,f.register=m,f.alias=h,f.registered=E,f.listLanguages=w,m(l),m(s),m(u),m(d),f.util.encode=$,f.Token.stringify=S;function m(D){if(typeof D!="function"||!D.displayName)throw new Error("Expected `function` for `grammar`, got `"+D+"`");f.languages[D.displayName]===void 0&&D(f)}g(m,"register");function h(D,F){var k=f.languages,_=D,I,L,j,B;F&&(_={},_[D]=F);for(I in _)for(L=_[I],L=typeof L=="string"?[L]:L,j=L.length,B=-1;++B<j;)k[L[B]]=k[I]}g(h,"alias");function v(D,F){var k=i.highlight,_;if(typeof D!="string")throw new Error("Expected `string` for `value`, got `"+D+"`");if(f.util.type(F)==="Object")_=F,F=null;else{if(typeof F!="string")throw new Error("Expected `string` for `name`, got `"+F+"`");if(p.call(f.languages,F))_=f.languages[F];else throw new Error("Unknown language: `"+F+"` is not registered")}return k.call(this,D,_,F)}g(v,"highlight");function E(D){if(typeof D!="string")throw new Error("Expected `string` for `language`, got `"+D+"`");return p.call(f.languages,D)}g(E,"registered");function w(){var D=f.languages,F=[],k;for(k in D)p.call(D,k)&&typeof D[k]=="object"&&F.push(k);return F}g(w,"listLanguages");function S(D,F,k){var _;return typeof D=="string"?{type:"text",value:D}:f.util.type(D)==="Array"?x(D,F):(_={type:D.type,content:f.Token.stringify(D.content,F,k),tag:"span",classes:["token",D.type],attributes:{},language:F,parent:k},D.alias&&(_.classes=_.classes.concat(D.alias)),f.hooks.run("wrap",_),o(_.tag+"."+_.classes.join("."),A(_.attributes),_.content))}g(S,"stringify");function x(D,F){for(var k=[],_=D.length,I=-1,L;++I<_;)L=D[I],L!==""&&L!==null&&L!==void 0&&k.push(L);for(I=-1,_=k.length;++I<_;)L=k[I],k[I]=f.Token.stringify(L,F,k);return k}g(x,"stringifyAll");function $(D){return D}g($,"encode");function A(D){var F;for(F in D)D[F]=a(D[F]);return D}g(A,"attributes");function C(){var D="Prism"in r,F=D?r.Prism:void 0;return k;function k(){D?r.Prism=F:delete r.Prism,D=void 0,F=void 0}}g(C,"capture")}),wa,Sa,Ua,Yk=N(()=>{xk(),wa=je(Gk()),Sa=X1(wa.default,{}),Sa.registerLanguage=function(e,t){return wa.default.register(t)},Sa.alias=function(e,t){return wa.default.alias(e,t)},Ua=Sa}),Kk=N(()=>{z1()}),Xk=ee((e,t)=>{t.exports=r,r.displayName="bash",r.aliases=["shell"];function r(n){(function(o){var a="\\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",i={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},l={bash:i,environment:{pattern:RegExp("\\$"+a),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("(\\{)"+a),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;|&]|[<>]\\()"+a),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:i}},{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("\\$?"+a),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}},i.inside=o.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],u=l.variable[1].inside,d=0;d<s.length;d++)u[s[d]]=o.languages.bash[s[d]];o.languages.shell=o.languages.bash})(n)}g(r,"bash")}),Vf,iv,Zk=N(()=>{Vf=je(Xk()),iv=Vf.default}),qf,lv,Jk=N(()=>{qf=je(av()),lv=qf.default}),Qk=ee((e,t)=>{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",g(function(o){if(o.language!=="graphql")return;var a=o.tokens.filter(function(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),i=0;function l(w){return a[i+w]}g(l,"getToken");function s(w,S){S=S||0;for(var x=0;x<w.length;x++){var $=l(x+S);if(!$||$.type!==w[x])return!1}return!0}g(s,"isTokenType");function u(w,S){for(var x=1,$=i;$<a.length;$++){var A=a[$],C=A.content;if(A.type==="punctuation"&&typeof C=="string"){if(w.test(C))x++;else if(S.test(C)&&(x--,x===0))return $}}return-1}g(u,"findClosingBracket");function d(w,S){var x=w.alias;x?Array.isArray(x)||(w.alias=x=[x]):w.alias=x=[],x.push(S)}for(g(d,"addAlias");i<a.length;){var p=a[i++];if(p.type==="keyword"&&p.content==="mutation"){var c=[];if(s(["definition-mutation","punctuation"])&&l(1).content==="("){i+=2;var f=u(/^\($/,/^\)$/);if(f===-1)continue;for(;i<f;i++){var m=l(0);m.type==="variable"&&(d(m,"variable-input"),c.push(m.content))}i=f+1}if(s(["punctuation","property-query"])&&l(0).content==="{"&&(i++,d(l(0),"property-mutation"),c.length>0)){var h=u(/^\{$/,/^\}$/);if(h===-1)continue;for(var v=i;v<h;v++){var E=a[v];E.type==="variable"&&c.indexOf(E.content)>=0&&d(E,"variable-input")}}}}},"afterTokenizeGraphql"))}g(r,"graphql")}),Gf,sv,eO=N(()=>{Gf=je(Qk()),sv=Gf.default}),tO=ee((e,t)=>{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 a(p,c){return RegExp(p.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),c)}g(a,"withId"),o.languages.insertBefore("javascript","keyword",{imports:{pattern:a(/(\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:a(/(\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:a(/(\.\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 i=["function","function-variable","method","method-variable","property-access"],l=0;l<i.length;l++){var s=i[l],u=o.languages.javascript[s];o.util.type(u)==="RegExp"&&(u=o.languages.javascript[s]={pattern:u});var d=u.inside||{};u.inside=d,d["maybe-class-name"]=/^[A-Z][\s\S]*/}})(n)}g(r,"jsExtras")}),Yf,uv,rO=N(()=>{Yf=je(tO()),uv=Yf.default}),nO=ee((e,t)=>{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}g(r,"json")}),Kf,cv,oO=N(()=>{Kf=je(nO()),cv=Kf.default}),dv=ee((e,t)=>{t.exports=r,r.displayName="jsx",r.aliases=[];function r(n){(function(o){var a=o.util.clone(o.languages.javascript),i=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,l=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,s=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function u(c,f){return c=c.replace(/<S>/g,function(){return i}).replace(/<BRACES>/g,function(){return l}).replace(/<SPREAD>/g,function(){return s}),RegExp(c,f)}g(u,"re"),s=u(s).source,o.languages.jsx=o.languages.extend("markup",a),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=a.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 d=g(function(c){return c?typeof c=="string"?c:typeof c.content=="string"?c.content:c.content.map(d).join(""):""},"stringifyToken"),p=g(function(c){for(var f=[],m=0;m<c.length;m++){var h=c[m],v=!1;if(typeof h!="string"&&(h.type==="tag"&&h.content[0]&&h.content[0].type==="tag"?h.content[0].content[0].content==="</"?f.length>0&&f[f.length-1].tagName===d(h.content[0].content[1])&&f.pop():h.content[h.content.length-1].content==="/>"||f.push({tagName:d(h.content[0].content[1]),openedBraces:0}):f.length>0&&h.type==="punctuation"&&h.content==="{"?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?f[f.length-1].openedBraces--:v=!0),(v||typeof h=="string")&&f.length>0&&f[f.length-1].openedBraces===0){var E=d(h);m<c.length-1&&(typeof c[m+1]=="string"||c[m+1].type==="plain-text")&&(E+=d(c[m+1]),c.splice(m+1,1)),m>0&&(typeof c[m-1]=="string"||c[m-1].type==="plain-text")&&(E=d(c[m-1])+E,c.splice(m-1,1),m--),c[m]=new o.Token("plain-text",E,null,E)}h.content&&typeof h.content!="string"&&p(h.content)}},"walkTokens");o.hooks.add("after-tokenize",function(c){c.language!=="jsx"&&c.language!=="tsx"||p(c.tokens)})})(n)}g(r,"jsx")}),Xf,pv,aO=N(()=>{Xf=je(dv()),pv=Xf.default}),iO=ee((e,t)=>{t.exports=r,r.displayName="markdown",r.aliases=["md"];function r(n){(function(o){var a=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function i(m){return m=m.replace(/<inner>/g,function(){return a}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+m+")")}g(i,"createInline");var l=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,s=/\|?__(?:\|__)+\|?(?:(?:\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("^"+s+u+"(?:"+s+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+s+u+")(?:"+s+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(l),inside:o.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+s+")"+u+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+s+"$"),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:i(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:i(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:i(/(~~?)(?:(?!~)<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:i(/!?\[(?:(?!\])<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(m){["url","bold","italic","strike","code-snippet"].forEach(function(h){m!==h&&(o.languages.markdown[m].inside.content.inside[h]=o.languages.markdown[h])})}),o.hooks.add("after-tokenize",function(m){if(m.language!=="markdown"&&m.language!=="md")return;function h(v){if(!(!v||typeof v=="string"))for(var E=0,w=v.length;E<w;E++){var S=v[E];if(S.type!=="code"){h(S.content);continue}var x=S.content[1],$=S.content[3];if(x&&$&&x.type==="code-language"&&$.type==="code-block"&&typeof x.content=="string"){var A=x.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");A=(/[a-z][\w-]*/i.exec(A)||[""])[0].toLowerCase();var C="language-"+A;$.alias?typeof $.alias=="string"?$.alias=[$.alias,C]:$.alias.push(C):$.alias=[C]}}}g(h,"walkTokens"),h(m.tokens)}),o.hooks.add("wrap",function(m){if(m.type==="code-block"){for(var h="",v=0,E=m.classes.length;v<E;v++){var w=m.classes[v],S=/language-(.+)/.exec(w);if(S){h=S[1];break}}var x=o.languages[h];if(x)m.content=o.highlight(f(m.content.value),x,h);else if(h&&h!=="none"&&o.plugins.autoloader){var $="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);m.attributes.id=$,o.plugins.autoloader.loadLanguages(h,function(){var A=document.getElementById($);A&&(A.innerHTML=o.highlight(A.textContent,o.languages[h],h))})}}});var d=RegExp(o.languages.markup.tag.pattern.source,"gi"),p={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;function f(m){var h=m.replace(d,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(v,E){if(E=E.toLowerCase(),E[0]==="#"){var w;return E[1]==="x"?w=parseInt(E.slice(2),16):w=Number(E.slice(1)),c(w)}else{var S=p[E];return S||v}}),h}g(f,"textContent"),o.languages.md=o.languages.markdown})(n)}g(r,"markdown")}),Zf,fv,lO=N(()=>{Zf=je(iO()),fv=Zf.default}),Jf,mv,sO=N(()=>{Jf=je(ov()),mv=Jf.default}),gv=ee((e,t)=>{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 a=o.languages.extend("typescript",{});delete a["class-name"],o.languages.typescript["class-name"].inside=a,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:a}}}}),o.languages.ts=o.languages.typescript})(n)}g(r,"typescript")}),uO=ee((e,t)=>{var r=dv(),n=gv();t.exports=o,o.displayName="tsx",o.aliases=[];function o(a){a.register(r),a.register(n),function(i){var l=i.util.clone(i.languages.typescript);i.languages.tsx=i.languages.extend("jsx",l),delete i.languages.tsx.parameter,delete i.languages.tsx["literal-property"];var s=i.languages.tsx.tag;s.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+s.pattern.source+")",s.pattern.flags),s.lookbehind=!0}(a)}g(o,"tsx")}),Qf,hv,cO=N(()=>{Qf=je(uO()),hv=Qf.default}),em,yv,dO=N(()=>{em=je(gv()),yv=em.default}),pO=ee((e,t)=>{t.exports=r,r.displayName="yaml",r.aliases=["yml"];function r(n){(function(o){var a=/[*&][^\s[\]{},]+/,i=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,l="(?:"+i.source+"(?:[ ]+"+a.source+")?|"+a.source+"(?:[ ]+"+i.source+")?)",s=/(?:[^\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 d(p,c){c=(c||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return l}).replace(/<<value>>/g,function(){return p});return RegExp(f,c)}g(d,"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"(?:"+s+"|"+u+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:d(/\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:d(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:d(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:d(u),lookbehind:!0,greedy:!0},number:{pattern:d(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:i,important:a,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},o.languages.yml=o.languages.yaml})(n)}g(r,"yaml")}),tm,bv,fO=N(()=>{tm=je(pO()),bv=tm.default}),rm,Kl,il,vv=N(()=>{rm=T.div(({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1})),Kl=T.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}),Kl.displayName="ActionButton",il=g(({actionItems:e,...t})=>y.createElement(rm,{...t},e.map(({title:r,className:n,onClick:o,disabled:a},i)=>y.createElement(Kl,{key:i,className:n,onClick:o,disabled:!!a},r))),"ActionBar")});function xv(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function bd(...e){return t=>e.forEach(r=>xv(r,t))}function Er(...e){return b.useCallback(bd(...e),e)}var vd=N(()=>{g(xv,"setRef"),g(bd,"composeRefs"),g(Er,"useComposedRefs")});function nm(e){return b.isValidElement(e)&&e.type===Ev}function om(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function am(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vu,Ca,Ev,mO=N(()=>{vd(),vu=b.forwardRef((e,t)=>{let{children:r,...n}=e,o=b.Children.toArray(r),a=o.find(nm);if(a){let i=a.props.children,l=o.map(s=>s===a?b.Children.count(i)>1?b.Children.only(null):b.isValidElement(i)?i.props.children:null:s);return q.jsx(Ca,{...n,ref:t,children:b.isValidElement(i)?b.cloneElement(i,void 0,l):null})}return q.jsx(Ca,{...n,ref:t,children:r})}),vu.displayName="Slot",Ca=b.forwardRef((e,t)=>{let{children:r,...n}=e;if(b.isValidElement(r)){let o=am(r);return b.cloneElement(r,{...om(n,r.props),ref:t?bd(t,o):o})}return b.Children.count(r)>1?b.Children.only(null):null}),Ca.displayName="SlotClone",Ev=g(({children:e})=>q.jsx(q.Fragment,{children:e}),"Slottable"),g(nm,"isSlottable"),g(om,"mergeProps"),g(am,"getElementRef")}),im,Cn,gO=N(()=>{mO(),im=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Cn=im.reduce((e,t)=>{let r=b.forwardRef((n,o)=>{let{asChild:a,...i}=n,l=a?vu:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(l,{...i,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{})}),xi,wv=N(()=>{xi=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{}});function Sv(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}function lm(e){let[t,r]=b.useState(),n=b.useRef({}),o=b.useRef(e),a=b.useRef("none"),i=e?"mounted":"unmounted",[l,s]=Sv(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{let u=To(n.current);a.current=l==="mounted"?u:"none"},[l]),xi(()=>{let u=n.current,d=o.current;if(d!==e){let p=a.current,c=To(u);e?s("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),xi(()=>{if(t){let u=g(p=>{let c=To(n.current).includes(p.animationName);p.target===t&&c&&pc.flushSync(()=>s("ANIMATION_END"))},"handleAnimationEnd"),d=g(p=>{p.target===t&&(a.current=To(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function To(e){return(e==null?void 0:e.animationName)||"none"}function sm(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var kn,hO=N(()=>{"use client";vd(),wv(),g(Sv,"useStateMachine"),kn=g(e=>{let{present:t,children:r}=e,n=lm(t),o=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),a=Er(n.ref,sm(o));return typeof r=="function"||n.isPresent?b.cloneElement(o,{ref:a}):null},"Presence"),kn.displayName="Presence",g(lm,"usePresence"),g(To,"getAnimationName"),g(sm,"getElementRef")});function Cv(e,t=[]){let r=[];function n(a,i){let l=b.createContext(i),s=r.length;r=[...r,i];function u(p){let{scope:c,children:f,...m}=p,h=(c==null?void 0:c[e][s])||l,v=b.useMemo(()=>m,Object.values(m));return q.jsx(h.Provider,{value:v,children:f})}g(u,"Provider");function d(p,c){let f=(c==null?void 0:c[e][s])||l,m=b.useContext(f);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return g(d,"useContext2"),u.displayName=a+"Provider",[u,d]}g(n,"createContext3");let o=g(()=>{let a=r.map(i=>b.createContext(i));return g(function(i){let l=(i==null?void 0:i[e])||a;return b.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[n,$v(o,...t)]}function $v(...e){let t=e[0];if(e.length===1)return t;let r=g(()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return g(function(o){let a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}var yO=N(()=>{g(Cv,"createContextScope"),g($v,"composeContextScopes")});function Sr(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}var bO=N(()=>{g(Sr,"useCallbackRef")});function Av(e){let t=b.useContext(Dv);return e||t||"ltr"}var Dv,vO=N(()=>{Dv=b.createContext(void 0),g(Av,"useDirection")});function kv(e,[t,r]){return Math.min(r,Math.max(t,e))}var xO=N(()=>{g(kv,"clamp")});function hr(e,t,{checkForDefaultPrevented:r=!0}={}){return g(function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)},"handleEvent")}var EO=N(()=>{g(hr,"composeEventHandlers")});function um(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}function xo(e){return e?parseInt(e,10):0}function xu(e,t){let r=e/t;return isNaN(r)?0:r}function zo(e){let t=xu(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function cm(e,t,r,n="ltr"){let o=zo(r),a=o/2,i=t||a,l=o-i,s=r.scrollbar.paddingStart+i,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,d=r.content-r.viewport,p=n==="ltr"?[0,d]:[d*-1,0];return xd([s,u],p)(e)}function Xl(e,t,r="ltr"){let n=zo(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-o,i=t.content-t.viewport,l=a-n,s=r==="ltr"?[0,i]:[i*-1,0],u=kv(e,s);return xd([0,i],[0,l])(u)}function xd(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 Zl(e,t){return e>0&&e<t}function Eo(e,t){let r=Sr(e),n=b.useRef(0);return b.useEffect(()=>()=>window.clearTimeout(n.current),[]),b.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)},[r,t])}function Nr(e,t){let r=Sr(t);xi(()=>{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 dm(e,t){let{asChild:r,children:n}=e;if(!r)return typeof t=="function"?t(n):t;let o=b.Children.only(n);return b.cloneElement(o,{children:typeof t=="function"?t(o.props.children):t})}var $a,Jl,wO,pm,ot,Ql,es,ts,vt,rs,fm,mm,ns,Aa,gm,hm,ym,os,as,wo,is,bm,Da,ls,vm,xm,Ov,Fv,_v,Tv,Rv,SO=N(()=>{"use client";gO(),hO(),yO(),vd(),bO(),vO(),wv(),xO(),EO(),g(um,"useStateMachine"),$a="ScrollArea",[Jl,wO]=Cv($a),[pm,ot]=Jl($a),Ql=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=e,[l,s]=b.useState(null),[u,d]=b.useState(null),[p,c]=b.useState(null),[f,m]=b.useState(null),[h,v]=b.useState(null),[E,w]=b.useState(0),[S,x]=b.useState(0),[$,A]=b.useState(!1),[C,D]=b.useState(!1),F=Er(t,_=>s(_)),k=Av(o);return q.jsx(pm,{scope:r,type:n,dir:k,scrollHideDelay:a,scrollArea:l,viewport:u,onViewportChange:d,content:p,onContentChange:c,scrollbarX:f,onScrollbarXChange:m,scrollbarXEnabled:$,onScrollbarXEnabledChange:A,scrollbarY:h,onScrollbarYChange:v,scrollbarYEnabled:C,onScrollbarYEnabledChange:D,onCornerWidthChange:w,onCornerHeightChange:x,children:q.jsx(Cn.div,{dir:k,...i,ref:F,style:{position:"relative","--radix-scroll-area-corner-width":E+"px","--radix-scroll-area-corner-height":S+"px",...e.style}})})}),Ql.displayName=$a,es="ScrollAreaViewport",ts=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:o,nonce:a,...i}=e,l=ot(es,r),s=b.useRef(null),u=Er(t,s,l.onViewportChange);return q.jsxs(q.Fragment,{children:[q.jsx("style",{dangerouslySetInnerHTML:{__html:`
|
|
782
|
+
[data-radix-scroll-area-viewport] {
|
|
783
|
+
scrollbar-width: none;
|
|
784
|
+
-ms-overflow-style: none;
|
|
785
|
+
-webkit-overflow-scrolling: touch;
|
|
786
|
+
}
|
|
787
|
+
[data-radix-scroll-area-viewport]::-webkit-scrollbar {
|
|
788
|
+
display: none;
|
|
789
|
+
}
|
|
790
|
+
:where([data-radix-scroll-area-viewport]) {
|
|
791
|
+
display: flex;
|
|
792
|
+
flex-direction: column;
|
|
793
|
+
align-items: stretch;
|
|
794
|
+
}
|
|
795
|
+
:where([data-radix-scroll-area-content]) {
|
|
796
|
+
flex-grow: 1;
|
|
797
|
+
}
|
|
798
|
+
`},nonce:a}),q.jsx(Cn.div,{"data-radix-scroll-area-viewport":"",...i,asChild:o,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:dm({asChild:o,children:n},d=>q.jsx("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:d}))})]})}),ts.displayName=es,vt="ScrollAreaScrollbar",rs=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ot(vt,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,l=e.orientation==="horizontal";return b.useEffect(()=>(l?a(!0):i(!0),()=>{l?a(!1):i(!1)}),[l,a,i]),o.type==="hover"?q.jsx(fm,{...n,ref:t,forceMount:r}):o.type==="scroll"?q.jsx(mm,{...n,ref:t,forceMount:r}):o.type==="auto"?q.jsx(ns,{...n,ref:t,forceMount:r}):o.type==="always"?q.jsx(Aa,{...n,ref:t}):null}),rs.displayName=vt,fm=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ot(vt,e.__scopeScrollArea),[a,i]=b.useState(!1);return b.useEffect(()=>{let l=o.scrollArea,s=0;if(l){let u=g(()=>{window.clearTimeout(s),i(!0)},"handlePointerEnter"),d=g(()=>{s=window.setTimeout(()=>i(!1),o.scrollHideDelay)},"handlePointerLeave");return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",d),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",d)}}},[o.scrollArea,o.scrollHideDelay]),q.jsx(kn,{present:r||a,children:q.jsx(ns,{"data-state":a?"visible":"hidden",...n,ref:t})})}),mm=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=ot(vt,e.__scopeScrollArea),a=e.orientation==="horizontal",i=Eo(()=>s("SCROLL_END"),100),[l,s]=um("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 b.useEffect(()=>{if(l==="idle"){let u=window.setTimeout(()=>s("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,o.scrollHideDelay,s]),b.useEffect(()=>{let u=o.viewport,d=a?"scrollLeft":"scrollTop";if(u){let p=u[d],c=g(()=>{let f=u[d];p!==f&&(s("SCROLL"),i()),p=f},"handleScroll");return u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[o.viewport,a,s,i]),q.jsx(kn,{present:r||l!=="hidden",children:q.jsx(Aa,{"data-state":l==="hidden"?"hidden":"visible",...n,ref:t,onPointerEnter:hr(e.onPointerEnter,()=>s("POINTER_ENTER")),onPointerLeave:hr(e.onPointerLeave,()=>s("POINTER_LEAVE"))})})}),ns=b.forwardRef((e,t)=>{let r=ot(vt,e.__scopeScrollArea),{forceMount:n,...o}=e,[a,i]=b.useState(!1),l=e.orientation==="horizontal",s=Eo(()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,d=r.viewport.offsetHeight<r.viewport.scrollHeight;i(l?u:d)}},10);return Nr(r.viewport,s),Nr(r.content,s),q.jsx(kn,{present:n||a,children:q.jsx(Aa,{"data-state":a?"visible":"hidden",...o,ref:t})})}),Aa=b.forwardRef((e,t)=>{let{orientation:r="vertical",...n}=e,o=ot(vt,e.__scopeScrollArea),a=b.useRef(null),i=b.useRef(0),[l,s]=b.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=xu(l.viewport,l.content),d={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:g(c=>a.current=c,"onThumbChange"),onThumbPointerUp:g(()=>i.current=0,"onThumbPointerUp"),onThumbPointerDown:g(c=>i.current=c,"onThumbPointerDown")};function p(c,f){return cm(c,i.current,l,f)}return g(p,"getScrollPosition"),r==="horizontal"?q.jsx(gm,{...d,ref:t,onThumbPositionChange:g(()=>{if(o.viewport&&a.current){let c=o.viewport.scrollLeft,f=Xl(c,l,o.dir);a.current.style.transform=`translate3d(${f}px, 0, 0)`}},"onThumbPositionChange"),onWheelScroll:g(c=>{o.viewport&&(o.viewport.scrollLeft=c)},"onWheelScroll"),onDragScroll:g(c=>{o.viewport&&(o.viewport.scrollLeft=p(c,o.dir))},"onDragScroll")}):r==="vertical"?q.jsx(hm,{...d,ref:t,onThumbPositionChange:g(()=>{if(o.viewport&&a.current){let c=o.viewport.scrollTop,f=Xl(c,l);a.current.style.transform=`translate3d(0, ${f}px, 0)`}},"onThumbPositionChange"),onWheelScroll:g(c=>{o.viewport&&(o.viewport.scrollTop=c)},"onWheelScroll"),onDragScroll:g(c=>{o.viewport&&(o.viewport.scrollTop=p(c))},"onDragScroll")}):null}),gm=b.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=ot(vt,e.__scopeScrollArea),[i,l]=b.useState(),s=b.useRef(null),u=Er(t,s,a.onScrollbarXChange);return b.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),q.jsx(as,{"data-orientation":"horizontal",...o,ref:u,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":zo(r)+"px",...e.style},onThumbPointerDown:g(d=>e.onThumbPointerDown(d.x),"onThumbPointerDown"),onDragScroll:g(d=>e.onDragScroll(d.x),"onDragScroll"),onWheelScroll:g((d,p)=>{if(a.viewport){let c=a.viewport.scrollLeft+d.deltaX;e.onWheelScroll(c),Zl(c,p)&&d.preventDefault()}},"onWheelScroll"),onResize:g(()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:xo(i.paddingLeft),paddingEnd:xo(i.paddingRight)}})},"onResize")})}),hm=b.forwardRef((e,t)=>{let{sizes:r,onSizesChange:n,...o}=e,a=ot(vt,e.__scopeScrollArea),[i,l]=b.useState(),s=b.useRef(null),u=Er(t,s,a.onScrollbarYChange);return b.useEffect(()=>{s.current&&l(getComputedStyle(s.current))},[s]),q.jsx(as,{"data-orientation":"vertical",...o,ref:u,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":zo(r)+"px",...e.style},onThumbPointerDown:g(d=>e.onThumbPointerDown(d.y),"onThumbPointerDown"),onDragScroll:g(d=>e.onDragScroll(d.y),"onDragScroll"),onWheelScroll:g((d,p)=>{if(a.viewport){let c=a.viewport.scrollTop+d.deltaY;e.onWheelScroll(c),Zl(c,p)&&d.preventDefault()}},"onWheelScroll"),onResize:g(()=>{s.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:xo(i.paddingTop),paddingEnd:xo(i.paddingBottom)}})},"onResize")})}),[ym,os]=Jl(vt),as=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:d,onResize:p,...c}=e,f=ot(vt,r),[m,h]=b.useState(null),v=Er(t,F=>h(F)),E=b.useRef(null),w=b.useRef(""),S=f.viewport,x=n.content-n.viewport,$=Sr(d),A=Sr(s),C=Eo(p,10);function D(F){if(E.current){let k=F.clientX-E.current.left,_=F.clientY-E.current.top;u({x:k,y:_})}}return g(D,"handleDragScroll"),b.useEffect(()=>{let F=g(k=>{let _=k.target;m!=null&&m.contains(_)&&$(k,x)},"handleWheel");return document.addEventListener("wheel",F,{passive:!1}),()=>document.removeEventListener("wheel",F,{passive:!1})},[S,m,x,$]),b.useEffect(A,[n,A]),Nr(m,C),Nr(f.content,C),q.jsx(ym,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:Sr(a),onThumbPointerUp:Sr(i),onThumbPositionChange:A,onThumbPointerDown:Sr(l),children:q.jsx(Cn.div,{...c,ref:v,style:{position:"absolute",...c.style},onPointerDown:hr(e.onPointerDown,F=>{F.button===0&&(F.target.setPointerCapture(F.pointerId),E.current=m.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",f.viewport&&(f.viewport.style.scrollBehavior="auto"),D(F))}),onPointerMove:hr(e.onPointerMove,D),onPointerUp:hr(e.onPointerUp,F=>{let k=F.target;k.hasPointerCapture(F.pointerId)&&k.releasePointerCapture(F.pointerId),document.body.style.webkitUserSelect=w.current,f.viewport&&(f.viewport.style.scrollBehavior=""),E.current=null})})})}),wo="ScrollAreaThumb",is=b.forwardRef((e,t)=>{let{forceMount:r,...n}=e,o=os(wo,e.__scopeScrollArea);return q.jsx(kn,{present:r||o.hasThumb,children:q.jsx(bm,{ref:t,...n})})}),bm=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,style:n,...o}=e,a=ot(wo,r),i=os(wo,r),{onThumbPositionChange:l}=i,s=Er(t,p=>i.onThumbChange(p)),u=b.useRef(),d=Eo(()=>{u.current&&(u.current(),u.current=void 0)},100);return b.useEffect(()=>{let p=a.viewport;if(p){let c=g(()=>{if(d(),!u.current){let f=xm(p,l);u.current=f,l()}},"handleScroll");return l(),p.addEventListener("scroll",c),()=>p.removeEventListener("scroll",c)}},[a.viewport,d,l]),q.jsx(Cn.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:hr(e.onPointerDownCapture,p=>{let c=p.target.getBoundingClientRect(),f=p.clientX-c.left,m=p.clientY-c.top;i.onThumbPointerDown({x:f,y:m})}),onPointerUp:hr(e.onPointerUp,i.onThumbPointerUp)})}),is.displayName=wo,Da="ScrollAreaCorner",ls=b.forwardRef((e,t)=>{let r=ot(Da,e.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?q.jsx(vm,{...e,ref:t}):null}),ls.displayName=Da,vm=b.forwardRef((e,t)=>{let{__scopeScrollArea:r,...n}=e,o=ot(Da,r),[a,i]=b.useState(0),[l,s]=b.useState(0),u=!!(a&&l);return Nr(o.scrollbarX,()=>{var p;let d=((p=o.scrollbarX)==null?void 0:p.offsetHeight)||0;o.onCornerHeightChange(d),s(d)}),Nr(o.scrollbarY,()=>{var p;let d=((p=o.scrollbarY)==null?void 0:p.offsetWidth)||0;o.onCornerWidthChange(d),i(d)}),u?q.jsx(Cn.div,{...n,ref:t,style:{width:a,height:l,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null}),g(xo,"toInt"),g(xu,"getThumbRatio"),g(zo,"getThumbSize"),g(cm,"getScrollPositionFromPointer"),g(Xl,"getThumbOffsetFromScroll"),g(xd,"linearScale"),g(Zl,"isScrollingWithinScrollbarBounds"),xm=g((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return g(function o(){let a={left:e.scrollLeft,top:e.scrollTop},i=r.left!==a.left,l=r.top!==a.top;(i||l)&&t(),r=a,n=window.requestAnimationFrame(o)},"loop")(),()=>window.cancelAnimationFrame(n)},"addUnlinkedScrollListener"),g(Eo,"useDebounceCallback"),g(Nr,"useResizeObserver"),g(dm,"getSubtree"),Ov=Ql,Fv=ts,_v=rs,Tv=is,Rv=ls}),Em,wm,ss,us,Ko,Ed=N(()=>{SO(),Em=T(Ov)(({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`})),wm=T(Fv)({width:"100%",height:"100%"}),ss=T(_v)(({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}})),us=T(Tv)(({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%"}})),Ko=b.forwardRef(({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:o=6,className:a},i)=>y.createElement(Em,{scrollbarsize:o,offset:n,className:a},y.createElement(wm,{ref:i},e),t&&y.createElement(ss,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},y.createElement(us,null)),r&&y.createElement(ss,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},y.createElement(us,null)),t&&r&&y.createElement(Rv,null))),Ko.displayName="ScrollArea"}),wd={};oa(wd,{SyntaxHighlighter:()=>Uo,createCopyToClipboardFunction:()=>Ei,default:()=>Pv,supportedLanguages:()=>Eu});const{logger:CO}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:$O}=__STORYBOOK_MODULE_GLOBAL__;function Ei(){var e;return(e=Ho.navigator)!=null&&e.clipboard?async t=>{var r;try{await((r=Ho.top)==null?void 0:r.navigator.clipboard.writeText(t))}catch{await Ho.navigator.clipboard.writeText(t)}}:async t=>{let r=$n.createElement("TEXTAREA"),n=$n.activeElement;r.value=t,$n.body.appendChild(r),r.select(),$n.execCommand("copy"),$n.body.removeChild(r),n.focus()}}var Sm,$n,Ho,Eu,Cm,$m,Am,Dm,km,Om,Fm,cs,_m,Tm,Uo,Pv,ll=N(()=>{Sm=je(nl(),1),Kk(),Zk(),Jk(),eO(),rO(),oO(),aO(),lO(),sO(),cO(),dO(),fO(),Yk(),vv(),Ed(),{document:$n,window:Ho}=$O,Eu={jsextra:uv,jsx:pv,json:cv,yml:bv,md:fv,bash:iv,css:lv,html:mv,tsx:hv,typescript:yv,graphql:sv},Object.entries(Eu).forEach(([e,t])=>{Ua.registerLanguage(e,t)}),Cm=(0,Sm.default)(2)(e=>Object.entries(e.code||{}).reduce((t,[r,n])=>({...t,[`* .${r}`]:n}),{})),$m=Ei(),g(Ei,"createCopyToClipboardFunction"),Am=T.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)"}}:{}),Dm=g(({children:e,className:t})=>y.createElement(Ko,{horizontal:!0,vertical:!0,className:t},e),"UnstyledScroller"),km=T(Dm)({position:"relative"},({theme:e})=>Cm(e)),Om=T.pre(({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0})),Fm=T.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),cs=g(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"),_m=g(({rows:e,stylesheet:t,useInlineStyles:r})=>e.map((n,o)=>al({node:cs(n),stylesheet:t,useInlineStyles:r,key:`code-segement${o}`})),"defaultRenderer"),Tm=g((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map(o=>cs(o)),...n}):_m:e,"wrapRenderer"),Uo=g(({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:o=!1,format:a=!0,formatter:i=void 0,className:l=void 0,showLineNumbers:s=!1,...u})=>{if(typeof e!="string"||!e.trim())return null;let[d,p]=b.useState("");b.useEffect(()=>{i?i(a,e).then(p):p(e.trim())},[e,a,i]);let[c,f]=b.useState(!1),m=b.useCallback(v=>{v.preventDefault(),$m(d).then(()=>{f(!0),Ho.setTimeout(()=>f(!1),1500)}).catch(CO.error)},[d]),h=Tm(u.renderer,s);return y.createElement(Am,{bordered:n,padded:o,showLineNumbers:s,className:l},y.createElement(km,null,y.createElement(Ua,{padded:o||n,language:t,showLineNumbers:s,showInlineLineNumbers:s,useInlineStyles:!1,PreTag:Om,CodeTag:Fm,lineNumberContainerStyle:{},...u,renderer:h},d)),r?y.createElement(il,{actionItems:[{title:c?"Copied":"Copy",onClick:m}]}):null)},"SyntaxHighlighter"),Uo.registerLanguage=(...e)=>Ua.registerLanguage(...e),Pv=Uo});function Iv(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,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
|
|
799
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
|
|
800
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
|
|
801
|
+
`)&&(p=String(l).split(`
|
|
802
|
+
`).map(function(c,f){return f===0?c:""+d+c}).join(`
|
|
803
|
+
`)),i+=p+n[s+1]}),i}var AO=N(()=>{g(Iv,"dedent")}),Lv={};oa(Lv,{formatter:()=>Bv});var Rm,Bv,DO=N(()=>{Rm=je(nl(),1),AO(),Bv=(0,Rm.default)(2)(async(e,t)=>e===!1?t:Iv(t))}),wu,Su,kO=N(()=>{wu=g(function(e){return e.reduce(function(t,r){var n=r[0],o=r[1];return t[n]=o,t},{})},"fromEntries"),Su=typeof window<"u"&&window.document&&window.document.createElement?b.useLayoutEffect:b.useEffect}),Ge,st,ut,Ye,wi,Fn,Xr,_n,Nv,Sd,An,jv,Cu,Cd,Pm,Im,Lm,Bm,Nm,jm,Mm,zm,Hm,Mv,mt=N(()=>{Ge="top",st="bottom",ut="right",Ye="left",wi="auto",Fn=[Ge,st,ut,Ye],Xr="start",_n="end",Nv="clippingParents",Sd="viewport",An="popper",jv="reference",Cu=Fn.reduce(function(e,t){return e.concat([t+"-"+Xr,t+"-"+_n])},[]),Cd=[].concat(Fn,[wi]).reduce(function(e,t){return e.concat([t,t+"-"+Xr,t+"-"+_n])},[]),Pm="beforeRead",Im="read",Lm="afterRead",Bm="beforeMain",Nm="main",jm="afterMain",Mm="beforeWrite",zm="write",Hm="afterWrite",Mv=[Pm,Im,Lm,Bm,Nm,jm,Mm,zm,Hm]});function Ot(e){return e?(e.nodeName||"").toLowerCase():null}var sn=N(()=>{g(Ot,"getNodeName")});function Qe(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var Vt=N(()=>{g(Qe,"getWindow")});function kr(e){var t=Qe(e).Element;return e instanceof t||e instanceof Element}function lt(e){var t=Qe(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function sl(e){if(typeof ShadowRoot>"u")return!1;var t=Qe(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var gt=N(()=>{Vt(),g(kr,"isElement"),g(lt,"isHTMLElement"),g(sl,"isShadowRoot")});function Um(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!lt(a)||!Ot(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(i){var l=o[i];l===!1?a.removeAttribute(i):a.setAttribute(i,l===!0?"":l)}))})}function Wm(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],a=t.attributes[n]||{},i=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=i.reduce(function(s,u){return s[u]="",s},{});!lt(o)||!Ot(o)||(Object.assign(o.style,l),Object.keys(a).forEach(function(s){o.removeAttribute(s)}))})}}var zv,OO=N(()=>{sn(),gt(),g(Um,"applyStyles"),g(Wm,"effect"),zv={name:"applyStyles",enabled:!0,phase:"write",fn:Um,effect:Wm,requires:["computeStyles"]}});function kt(e){return e.split("-")[0]}var un=N(()=>{g(kt,"getBasePlacement")}),$r,Xo,en,cn=N(()=>{$r=Math.max,Xo=Math.min,en=Math.round});function Si(){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}var Hv=N(()=>{g(Si,"getUAString")});function $d(){return!/^((?!chrome|android).)*safari/i.test(Si())}var Uv=N(()=>{Hv(),g($d,"isLayoutViewport")});function tn(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&<(e)&&(o=e.offsetWidth>0&&en(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&en(n.height)/e.offsetHeight||1);var i=kr(e)?Qe(e):window,l=i.visualViewport,s=!$d()&&r,u=(n.left+(s&&l?l.offsetLeft:0))/o,d=(n.top+(s&&l?l.offsetTop:0))/a,p=n.width/o,c=n.height/a;return{width:p,height:c,top:d,right:u+p,bottom:d+c,left:u,x:u,y:d}}var ia=N(()=>{gt(),cn(),Vt(),Uv(),g(tn,"getBoundingClientRect")});function ul(e){var t=tn(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}}var Ad=N(()=>{ia(),g(ul,"getLayoutRect")});function Dd(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&sl(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var Wv=N(()=>{gt(),g(Dd,"contains")});function Wt(e){return Qe(e).getComputedStyle(e)}var la=N(()=>{Vt(),g(Wt,"getComputedStyle")});function Vv(e){return["table","td","th"].indexOf(Ot(e))>=0}var FO=N(()=>{sn(),g(Vv,"isTableElement")});function sr(e){return((kr(e)?e.ownerDocument:e.document)||window.document).documentElement}var Fr=N(()=>{gt(),g(sr,"getDocumentElement")});function sa(e){return Ot(e)==="html"?e:e.assignedSlot||e.parentNode||(sl(e)?e.host:null)||sr(e)}var cl=N(()=>{sn(),Fr(),gt(),g(sa,"getParentNode")});function $u(e){return!lt(e)||Wt(e).position==="fixed"?null:e.offsetParent}function qv(e){var t=/firefox/i.test(Si()),r=/Trident/i.test(Si());if(r&<(e)){var n=Wt(e);if(n.position==="fixed")return null}var o=sa(e);for(sl(o)&&(o=o.host);lt(o)&&["html","body"].indexOf(Ot(o))<0;){var a=Wt(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function so(e){for(var t=Qe(e),r=$u(e);r&&Vv(r)&&Wt(r).position==="static";)r=$u(r);return r&&(Ot(r)==="html"||Ot(r)==="body"&&Wt(r).position==="static")?t:r||qv(e)||t}var ua=N(()=>{Vt(),sn(),la(),gt(),FO(),cl(),Hv(),g($u,"getTrueOffsetParent"),g(qv,"getContainingBlock"),g(so,"getOffsetParent")});function dl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var kd=N(()=>{g(dl,"getMainAxisFromPlacement")});function Tn(e,t,r){return $r(e,Xo(t,r))}function Gv(e,t,r){var n=Tn(e,t,r);return n>r?r:n}var Yv=N(()=>{cn(),g(Tn,"within"),g(Gv,"withinMaxClamp")});function Od(){return{top:0,right:0,bottom:0,left:0}}var Kv=N(()=>{g(Od,"getFreshSideObject")});function Fd(e){return Object.assign({},Od(),e)}var Xv=N(()=>{Kv(),g(Fd,"mergePaddingObject")});function _d(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Zv=N(()=>{g(_d,"expandToHashMap")});function Vm(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,l=kt(r.placement),s=dl(l),u=[Ye,ut].indexOf(l)>=0,d=u?"height":"width";if(!(!a||!i)){var p=Jv(o.padding,r),c=ul(a),f=s==="y"?Ge:Ye,m=s==="y"?st:ut,h=r.rects.reference[d]+r.rects.reference[s]-i[s]-r.rects.popper[d],v=i[s]-r.rects.reference[s],E=so(a),w=E?s==="y"?E.clientHeight||0:E.clientWidth||0:0,S=h/2-v/2,x=p[f],$=w-c[d]-p[m],A=w/2-c[d]/2+S,C=Tn(x,A,$),D=s;r.modifiersData[n]=(t={},t[D]=C,t.centerOffset=C-A,t)}}function qm(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)||Dd(t.elements.popper,o)&&(t.elements.arrow=o))}var Jv,Qv,_O=N(()=>{un(),Ad(),Wv(),ua(),kd(),Yv(),Xv(),Zv(),mt(),Jv=g(function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,Fd(typeof e!="number"?e:_d(e,Fn))},"toPaddingObject"),g(Vm,"arrow"),g(qm,"effect"),Qv={name:"arrow",enabled:!0,phase:"main",fn:Vm,effect:qm,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}});function rn(e){return e.split("-")[1]}var ca=N(()=>{g(rn,"getVariation")});function ex(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:en(r*o)/o||0,y:en(n*o)/o||0}}function Au(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,p=e.isFixed,c=i.x,f=c===void 0?0:c,m=i.y,h=m===void 0?0:m,v=typeof d=="function"?d({x:f,y:h}):{x:f,y:h};f=v.x,h=v.y;var E=i.hasOwnProperty("x"),w=i.hasOwnProperty("y"),S=Ye,x=Ge,$=window;if(u){var A=so(r),C="clientHeight",D="clientWidth";if(A===Qe(r)&&(A=sr(r),Wt(A).position!=="static"&&l==="absolute"&&(C="scrollHeight",D="scrollWidth")),A=A,o===Ge||(o===Ye||o===ut)&&a===_n){x=st;var F=p&&A===$&&$.visualViewport?$.visualViewport.height:A[C];h-=F-n.height,h*=s?1:-1}if(o===Ye||(o===Ge||o===st)&&a===_n){S=ut;var k=p&&A===$&&$.visualViewport?$.visualViewport.width:A[D];f-=k-n.width,f*=s?1:-1}}var _=Object.assign({position:l},u&&tx),I=d===!0?ex({x:f,y:h},Qe(r)):{x:f,y:h};if(f=I.x,h=I.y,s){var L;return Object.assign({},_,(L={},L[x]=w?"0":"",L[S]=E?"0":"",L.transform=($.devicePixelRatio||1)<=1?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",L))}return Object.assign({},_,(t={},t[x]=w?h+"px":"",t[S]=E?f+"px":"",t.transform="",t))}function Gm(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,i=a===void 0?!0:a,l=r.roundOffsets,s=l===void 0?!0:l,u={placement:kt(t.placement),variation:rn(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,Au(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Au(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var tx,rx,TO=N(()=>{mt(),ua(),Vt(),Fr(),la(),un(),ca(),cn(),tx={top:"auto",right:"auto",bottom:"auto",left:"auto"},g(ex,"roundOffsetsByDPR"),g(Au,"mapToStyles"),g(Gm,"computeStyles"),rx={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gm,data:{}}});function Ym(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,i=n.resize,l=i===void 0?!0:i,s=Qe(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",r.update,Ro)}),l&&s.addEventListener("resize",r.update,Ro),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",r.update,Ro)}),l&&s.removeEventListener("resize",r.update,Ro)}}var Ro,nx,RO=N(()=>{Vt(),Ro={passive:!0},g(Ym,"effect"),nx={name:"eventListeners",enabled:!0,phase:"write",fn:g(function(){},"fn"),effect:Ym,data:{}}});function Wo(e){return e.replace(/left|right|bottom|top/g,function(t){return ox[t]})}var ox,PO=N(()=>{ox={left:"right",right:"left",bottom:"top",top:"bottom"},g(Wo,"getOppositePlacement")});function Du(e){return e.replace(/start|end/g,function(t){return ax[t]})}var ax,IO=N(()=>{ax={start:"end",end:"start"},g(Du,"getOppositeVariationPlacement")});function pl(e){var t=Qe(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}var Td=N(()=>{Vt(),g(pl,"getWindowScroll")});function fl(e){return tn(sr(e)).left+pl(e).scrollLeft}var Rd=N(()=>{ia(),Fr(),Td(),g(fl,"getWindowScrollBarX")});function ix(e,t){var r=Qe(e),n=sr(e),o=r.visualViewport,a=n.clientWidth,i=n.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var u=$d();(u||!u&&t==="fixed")&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+fl(e),y:s}}var LO=N(()=>{Vt(),Fr(),Rd(),Uv(),g(ix,"getViewportRect")});function lx(e){var t,r=sr(e),n=pl(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=$r(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=$r(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-n.scrollLeft+fl(e),s=-n.scrollTop;return Wt(o||r).direction==="rtl"&&(l+=$r(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}var BO=N(()=>{Fr(),la(),Rd(),Td(),cn(),g(lx,"getDocumentRect")});function ml(e){var t=Wt(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}var Pd=N(()=>{la(),g(ml,"isScrollParent")});function Id(e){return["html","body","#document"].indexOf(Ot(e))>=0?e.ownerDocument.body:lt(e)&&ml(e)?e:Id(sa(e))}var NO=N(()=>{cl(),Pd(),sn(),gt(),g(Id,"getScrollParent")});function Rn(e,t){var r;t===void 0&&(t=[]);var n=Id(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Qe(n),i=o?[a].concat(a.visualViewport||[],ml(n)?n:[]):n,l=t.concat(i);return o?l:l.concat(Rn(sa(i)))}var sx=N(()=>{NO(),cl(),Vt(),Pd(),g(Rn,"listScrollParents")});function Ci(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var ux=N(()=>{g(Ci,"rectToClientRect")});function cx(e,t){var r=tn(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 ku(e,t,r){return t===Sd?Ci(ix(e,r)):kr(t)?cx(t,r):Ci(lx(sr(e)))}function dx(e){var t=Rn(sa(e)),r=["absolute","fixed"].indexOf(Wt(e).position)>=0,n=r&<(e)?so(e):e;return kr(n)?t.filter(function(o){return kr(o)&&Dd(o,n)&&Ot(o)!=="body"}):[]}function px(e,t,r,n){var o=t==="clippingParents"?dx(e):[].concat(t),a=[].concat(o,[r]),i=a[0],l=a.reduce(function(s,u){var d=ku(e,u,n);return s.top=$r(d.top,s.top),s.right=Xo(d.right,s.right),s.bottom=Xo(d.bottom,s.bottom),s.left=$r(d.left,s.left),s},ku(e,i,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}var jO=N(()=>{mt(),LO(),BO(),sx(),ua(),Fr(),la(),gt(),ia(),cl(),Wv(),sn(),ux(),cn(),g(cx,"getInnerBoundingClientRect"),g(ku,"getClientRectFromMixedType"),g(dx,"getClippingParents"),g(px,"getClippingRect")});function Ld(e){var t=e.reference,r=e.element,n=e.placement,o=n?kt(n):null,a=n?rn(n):null,i=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,s;switch(o){case Ge:s={x:i,y:t.y-r.height};break;case st:s={x:i,y:t.y+t.height};break;case ut:s={x:t.x+t.width,y:l};break;case Ye:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var u=o?dl(o):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case Xr:s[u]=s[u]-(t[d]/2-r[d]/2);break;case _n:s[u]=s[u]+(t[d]/2-r[d]/2);break}}return s}var fx=N(()=>{un(),ca(),kd(),mt(),g(Ld,"computeOffsets")});function Zn(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,i=a===void 0?e.strategy:a,l=r.boundary,s=l===void 0?Nv:l,u=r.rootBoundary,d=u===void 0?Sd:u,p=r.elementContext,c=p===void 0?An:p,f=r.altBoundary,m=f===void 0?!1:f,h=r.padding,v=h===void 0?0:h,E=Fd(typeof v!="number"?v:_d(v,Fn)),w=c===An?jv:An,S=e.rects.popper,x=e.elements[m?w:c],$=px(kr(x)?x:x.contextElement||sr(e.elements.popper),s,d,i),A=tn(e.elements.reference),C=Ld({reference:A,element:S,placement:o}),D=Ci(Object.assign({},S,C)),F=c===An?D:A,k={top:$.top-F.top+E.top,bottom:F.bottom-$.bottom+E.bottom,left:$.left-F.left+E.left,right:F.right-$.right+E.right},_=e.modifiersData.offset;if(c===An&&_){var I=_[o];Object.keys(k).forEach(function(L){var j=[ut,st].indexOf(L)>=0?1:-1,B=[Ge,st].indexOf(L)>=0?"y":"x";k[L]+=I[B]*j})}return k}var gl=N(()=>{jO(),Fr(),ia(),fx(),ux(),mt(),gt(),Xv(),Zv(),g(Zn,"detectOverflow")});function mx(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,u=s===void 0?Cd:s,d=rn(n),p=d?l?Cu:Cu.filter(function(m){return rn(m)===d}):Fn,c=p.filter(function(m){return u.indexOf(m)>=0});c.length===0&&(c=p);var f=c.reduce(function(m,h){return m[h]=Zn(e,{placement:h,boundary:o,rootBoundary:a,padding:i})[kt(h)],m},{});return Object.keys(f).sort(function(m,h){return f[m]-f[h]})}var MO=N(()=>{ca(),mt(),gl(),un(),g(mx,"computeAutoPlacement")});function gx(e){if(kt(e)===wi)return[];var t=Wo(e);return[Du(e),t,Du(t)]}function Km(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!0:i,s=r.fallbackPlacements,u=r.padding,d=r.boundary,p=r.rootBoundary,c=r.altBoundary,f=r.flipVariations,m=f===void 0?!0:f,h=r.allowedAutoPlacements,v=t.options.placement,E=kt(v),w=E===v,S=s||(w||!m?[Wo(v)]:gx(v)),x=[v].concat(S).reduce(function(J,H){return J.concat(kt(H)===wi?mx(t,{placement:H,boundary:d,rootBoundary:p,padding:u,flipVariations:m,allowedAutoPlacements:h}):H)},[]),$=t.rects.reference,A=t.rects.popper,C=new Map,D=!0,F=x[0],k=0;k<x.length;k++){var _=x[k],I=kt(_),L=rn(_)===Xr,j=[Ge,st].indexOf(I)>=0,B=j?"width":"height",M=Zn(t,{placement:_,boundary:d,rootBoundary:p,altBoundary:c,padding:u}),V=j?L?ut:Ye:L?st:Ge;$[B]>A[B]&&(V=Wo(V));var G=Wo(V),W=[];if(a&&W.push(M[I]<=0),l&&W.push(M[V]<=0,M[G]<=0),W.every(function(J){return J})){F=_,D=!1;break}C.set(_,W)}if(D)for(var Y=m?3:1,X=g(function(J){var H=x.find(function(Z){var te=C.get(Z);if(te)return te.slice(0,J).every(function(le){return le})});if(H)return F=H,"break"},"_loop"),re=Y;re>0;re--){var oe=X(re);if(oe==="break")break}t.placement!==F&&(t.modifiersData[n]._skip=!0,t.placement=F,t.reset=!0)}}var hx,zO=N(()=>{PO(),un(),IO(),gl(),MO(),mt(),ca(),g(gx,"getExpandedFallbackPlacements"),g(Km,"flip"),hx={name:"flip",enabled:!0,phase:"main",fn:Km,requiresIfExists:["offset"],data:{_skip:!1}}});function Ou(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 Fu(e){return[Ge,ut,st,Ye].some(function(t){return e[t]>=0})}function Xm(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Zn(t,{elementContext:"reference"}),l=Zn(t,{altBoundary:!0}),s=Ou(i,n),u=Ou(l,o,a),d=Fu(s),p=Fu(u);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}var yx,HO=N(()=>{mt(),gl(),g(Ou,"getSideOffsets"),g(Fu,"isAnySideFullyClipped"),g(Xm,"hide"),yx={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xm}});function bx(e,t,r){var n=kt(e),o=[Ye,Ge].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Ye,ut].indexOf(n)>=0?{x:l,y:i}:{x:i,y:l}}function Zm(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,i=Cd.reduce(function(d,p){return d[p]=bx(p,t.rects,a),d},{}),l=i[t.placement],s=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=i}var vx,UO=N(()=>{un(),mt(),g(bx,"distanceAndSkiddingToXY"),g(Zm,"offset"),vx={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Zm}});function Jm(e){var t=e.state,r=e.name;t.modifiersData[r]=Ld({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var xx,WO=N(()=>{fx(),g(Jm,"popperOffsets"),xx={name:"popperOffsets",enabled:!0,phase:"read",fn:Jm,data:{}}});function Ex(e){return e==="x"?"y":"x"}var VO=N(()=>{g(Ex,"getAltAxis")});function Qm(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,i=r.altAxis,l=i===void 0?!1:i,s=r.boundary,u=r.rootBoundary,d=r.altBoundary,p=r.padding,c=r.tether,f=c===void 0?!0:c,m=r.tetherOffset,h=m===void 0?0:m,v=Zn(t,{boundary:s,rootBoundary:u,padding:p,altBoundary:d}),E=kt(t.placement),w=rn(t.placement),S=!w,x=dl(E),$=Ex(x),A=t.modifiersData.popperOffsets,C=t.rects.reference,D=t.rects.popper,F=typeof h=="function"?h(Object.assign({},t.rects,{placement:t.placement})):h,k=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),_=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(A){if(a){var L,j=x==="y"?Ge:Ye,B=x==="y"?st:ut,M=x==="y"?"height":"width",V=A[x],G=V+v[j],W=V-v[B],Y=f?-D[M]/2:0,X=w===Xr?C[M]:D[M],re=w===Xr?-D[M]:-C[M],oe=t.elements.arrow,J=f&&oe?ul(oe):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Od(),Z=H[j],te=H[B],le=Tn(0,C[M],J[M]),se=S?C[M]/2-Y-le-Z-k.mainAxis:X-le-Z-k.mainAxis,Re=S?-C[M]/2+Y+le+te+k.mainAxis:re+le+te+k.mainAxis,ae=t.elements.arrow&&so(t.elements.arrow),pe=ae?x==="y"?ae.clientTop||0:ae.clientLeft||0:0,z=(L=_==null?void 0:_[x])!=null?L:0,U=V+se-z-pe,me=V+Re-z,ke=Tn(f?Xo(G,U):G,V,f?$r(W,me):W);A[x]=ke,I[x]=ke-V}if(l){var be,We=x==="x"?Ge:Ye,fr=x==="x"?st:ut,Ce=A[$],nt=$==="y"?"height":"width",$e=Ce+v[We],ht=Ce-v[fr],Ve=[Ge,Ye].indexOf(E)!==-1,yt=(be=_==null?void 0:_[$])!=null?be:0,Rt=Ve?$e:Ce-C[nt]-D[nt]-yt+k.altAxis,Me=Ve?Ce+C[nt]+D[nt]-yt-k.altAxis:ht,bt=f&&Ve?Gv(Rt,Ce,Me):Tn(f?Rt:$e,Ce,f?Me:ht);A[$]=bt,I[$]=bt-Ce}t.modifiersData[n]=I}}var wx,qO=N(()=>{mt(),un(),kd(),VO(),Yv(),Ad(),ua(),gl(),ca(),Kv(),cn(),g(Qm,"preventOverflow"),wx={name:"preventOverflow",enabled:!0,phase:"main",fn:Qm,requiresIfExists:["offset"]}}),Sx=N(()=>{});function Cx(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var GO=N(()=>{g(Cx,"getHTMLElementScroll")});function $x(e){return e===Qe(e)||!lt(e)?pl(e):Cx(e)}var YO=N(()=>{Td(),Vt(),gt(),GO(),g($x,"getNodeScroll")});function Ax(e){var t=e.getBoundingClientRect(),r=en(t.width)/e.offsetWidth||1,n=en(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Dx(e,t,r){r===void 0&&(r=!1);var n=lt(t),o=lt(t)&&Ax(t),a=sr(t),i=tn(e,o,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&((Ot(t)!=="body"||ml(a))&&(l=$x(t)),lt(t)?(s=tn(t,!0),s.x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=fl(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}var KO=N(()=>{ia(),YO(),sn(),gt(),Rd(),Fr(),Pd(),cn(),g(Ax,"isElementScaled"),g(Dx,"getCompositeRect")});function kx(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var i=[].concat(a.requires||[],a.requiresIfExists||[]);i.forEach(function(l){if(!r.has(l)){var s=t.get(l);s&&o(s)}}),n.push(a)}return g(o,"sort"),e.forEach(function(a){r.has(a.name)||o(a)}),n}function Ox(e){var t=kx(e);return Mv.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}var XO=N(()=>{mt(),g(kx,"order"),g(Ox,"orderModifiers")});function Fx(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}var ZO=N(()=>{g(Fx,"debounce")});function _x(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]})}var JO=N(()=>{g(_x,"mergeByName")});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 Tx(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Tu:o;return g(function(i,l,s){s===void 0&&(s=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tu,a),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},d=[],p=!1,c={state:u,setOptions:g(function(h){var v=typeof h=="function"?h(u.options):h;m(),u.options=Object.assign({},a,u.options,v),u.scrollParents={reference:kr(i)?Rn(i):i.contextElement?Rn(i.contextElement):[],popper:Rn(l)};var E=Ox(_x([].concat(n,u.options.modifiers)));return u.orderedModifiers=E.filter(function(w){return w.enabled}),f(),c.update()},"setOptions"),forceUpdate:g(function(){if(!p){var h=u.elements,v=h.reference,E=h.popper;if(_u(v,E)){u.rects={reference:Dx(v,so(E),u.options.strategy==="fixed"),popper:ul(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var S=u.orderedModifiers[w],x=S.fn,$=S.options,A=$===void 0?{}:$,C=S.name;typeof x=="function"&&(u=x({state:u,options:A,name:C,instance:c})||u)}}}},"forceUpdate"),update:Fx(function(){return new Promise(function(h){c.forceUpdate(),h(u)})}),destroy:g(function(){m(),p=!0},"destroy")};if(!_u(i,l))return c;c.setOptions(s).then(function(h){!p&&s.onFirstUpdate&&s.onFirstUpdate(h)});function f(){u.orderedModifiers.forEach(function(h){var v=h.name,E=h.options,w=E===void 0?{}:E,S=h.effect;if(typeof S=="function"){var x=S({state:u,name:v,instance:c,options:w}),$=g(function(){},"noopFn");d.push(x||$)}})}g(f,"runModifierEffects");function m(){d.forEach(function(h){return h()}),d=[]}return g(m,"cleanupModifierEffects"),c},"createPopper")}var Tu,QO=N(()=>{KO(),Ad(),sx(),ua(),XO(),ZO(),JO(),gt(),Tu={placement:"bottom",modifiers:[],strategy:"absolute"},g(_u,"areValidElements"),g(Tx,"popperGenerator")}),eg,Rx,eF=N(()=>{QO(),RO(),WO(),TO(),OO(),UO(),zO(),qO(),_O(),HO(),Sx(),eg=[nx,xx,rx,zv,vx,hx,wx,Qv,yx],Rx=Tx({defaultModifiers:eg})}),tF=N(()=>{mt(),Sx(),eF()}),rF=ee((e,t)=>{var r=typeof Element<"u",n=typeof Map=="function",o=typeof Set=="function",a=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(l,s){if(l===s)return!0;if(l&&s&&typeof l=="object"&&typeof s=="object"){if(l.constructor!==s.constructor)return!1;var u,d,p;if(Array.isArray(l)){if(u=l.length,u!=s.length)return!1;for(d=u;d--!==0;)if(!i(l[d],s[d]))return!1;return!0}var c;if(n&&l instanceof Map&&s instanceof Map){if(l.size!==s.size)return!1;for(c=l.entries();!(d=c.next()).done;)if(!s.has(d.value[0]))return!1;for(c=l.entries();!(d=c.next()).done;)if(!i(d.value[1],s.get(d.value[0])))return!1;return!0}if(o&&l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(c=l.entries();!(d=c.next()).done;)if(!s.has(d.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(s)){if(u=l.length,u!=s.length)return!1;for(d=u;d--!==0;)if(l[d]!==s[d])return!1;return!0}if(l.constructor===RegExp)return l.source===s.source&&l.flags===s.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof s.valueOf=="function")return l.valueOf()===s.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof s.toString=="function")return l.toString()===s.toString();if(p=Object.keys(l),u=p.length,u!==Object.keys(s).length)return!1;for(d=u;d--!==0;)if(!Object.prototype.hasOwnProperty.call(s,p[d]))return!1;if(r&&l instanceof Element)return!1;for(d=u;d--!==0;)if(!((p[d]==="_owner"||p[d]==="__v"||p[d]==="__o")&&l.$$typeof)&&!i(l[p[d]],s[p[d]]))return!1;return!0}return l!==l&&s!==s}g(i,"equal"),t.exports=g(function(l,s){try{return i(l,s)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},"isEqual")}),tg,rg,Px,nF=N(()=>{tF(),tg=je(rF()),kO(),rg=[],Px=g(function(e,t,r){r===void 0&&(r={});var n=b.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||rg},a=b.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],l=a[1],s=b.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:g(function(p){var c=p.state,f=Object.keys(c.elements);pc.flushSync(function(){l({styles:wu(f.map(function(m){return[m,c.styles[m]||{}]})),attributes:wu(f.map(function(m){return[m,c.attributes[m]]}))})})},"fn"),requires:["computeStyles"]}},[]),u=b.useMemo(function(){var p={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[s,{name:"applyStyles",enabled:!1}])};return(0,tg.default)(n.current,p)?n.current||p:(n.current=p,p)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,s]),d=b.useRef();return Su(function(){d.current&&d.current.setOptions(u)},[u]),Su(function(){if(!(e==null||t==null)){var p=r.createPopper||Rx,c=p(e,t,u);return d.current=c,function(){c.destroy(),d.current=null}}},[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:i.styles,attributes:i.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},"usePopper")}),oF=N(()=>{nF()});function Bd(e){var t=b.useRef(e);return t.current=e,b.useCallback(function(){return t.current},[])}function Ix(e){var t=e.initial,r=e.value,n=e.onChange,o=n===void 0?Bx:n;if(t===void 0&&r===void 0)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var a=b.useState(t),i=a[0],l=a[1],s=Bd(i),u=b.useCallback(function(p){var c=s(),f=typeof p=="function"?p(c):p;typeof f.persist=="function"&&f.persist(),l(f),typeof o=="function"&&o(f)},[s,o]),d=r!==void 0;return[d?r:i,d?o:u]}function Ru(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:g(function(){return null},"toJSON")}}}function Lx(e,t){var r,n,o;e===void 0&&(e={}),t===void 0&&(t={});var a=Object.keys(Iu).reduce(function(B,M){var V;return xe({},B,(V={},V[M]=B[M]!==void 0?B[M]:Iu[M],V))},e),i=b.useMemo(function(){return[{name:"offset",options:{offset:a.offset}}]},Array.isArray(a.offset)?a.offset:[]),l=xe({},t,{placement:t.placement||a.placement,modifiers:t.modifiers||i}),s=b.useState(null),u=s[0],d=s[1],p=b.useState(null),c=p[0],f=p[1],m=Ix({initial:a.defaultVisible,value:a.visible,onChange:a.onVisibleChange}),h=m[0],v=m[1],E=b.useRef();b.useEffect(function(){return function(){return clearTimeout(E.current)}},[]);var w=Px(a.followCursor?Pu:u,c,l),S=w.styles,x=w.attributes,$=ol(w,Nx),A=$.update,C=Bd({visible:h,triggerRef:u,tooltipRef:c,finalConfig:a}),D=b.useCallback(function(B){return Array.isArray(a.trigger)?a.trigger.includes(B):a.trigger===B},Array.isArray(a.trigger)?a.trigger:[a.trigger]),F=b.useCallback(function(){clearTimeout(E.current),E.current=window.setTimeout(function(){return v(!1)},a.delayHide)},[a.delayHide,v]),k=b.useCallback(function(){clearTimeout(E.current),E.current=window.setTimeout(function(){return v(!0)},a.delayShow)},[a.delayShow,v]),_=b.useCallback(function(){C().visible?F():k()},[C,F,k]);b.useEffect(function(){if(C().finalConfig.closeOnOutsideClick){var B=g(function(M){var V,G=C(),W=G.tooltipRef,Y=G.triggerRef,X=(M.composedPath==null||(V=M.composedPath())==null?void 0:V[0])||M.target;X instanceof Node&&W!=null&&Y!=null&&!W.contains(X)&&!Y.contains(X)&&F()},"handleClickOutside");return document.addEventListener("mousedown",B),function(){return document.removeEventListener("mousedown",B)}}},[C,F]),b.useEffect(function(){if(!(u==null||!D("click")))return u.addEventListener("click",_),function(){return u.removeEventListener("click",_)}},[u,D,_]),b.useEffect(function(){if(!(u==null||!D("double-click")))return u.addEventListener("dblclick",_),function(){return u.removeEventListener("dblclick",_)}},[u,D,_]),b.useEffect(function(){if(!(u==null||!D("right-click"))){var B=g(function(M){M.preventDefault(),_()},"preventDefaultAndToggle");return u.addEventListener("contextmenu",B),function(){return u.removeEventListener("contextmenu",B)}}},[u,D,_]),b.useEffect(function(){if(!(u==null||!D("focus")))return u.addEventListener("focus",k),u.addEventListener("blur",F),function(){u.removeEventListener("focus",k),u.removeEventListener("blur",F)}},[u,D,k,F]),b.useEffect(function(){if(!(u==null||!D("hover")))return u.addEventListener("mouseenter",k),u.addEventListener("mouseleave",F),function(){u.removeEventListener("mouseenter",k),u.removeEventListener("mouseleave",F)}},[u,D,k,F]),b.useEffect(function(){if(!(c==null||!D("hover")||!C().finalConfig.interactive))return c.addEventListener("mouseenter",k),c.addEventListener("mouseleave",F),function(){c.removeEventListener("mouseenter",k),c.removeEventListener("mouseleave",F)}},[c,D,k,F,C]);var I=$==null||(r=$.state)==null||(n=r.modifiersData)==null||(o=n.hide)==null?void 0:o.isReferenceHidden;b.useEffect(function(){a.closeOnTriggerHidden&&I&&F()},[a.closeOnTriggerHidden,F,I]),b.useEffect(function(){if(!a.followCursor||u==null)return;function B(M){var V=M.clientX,G=M.clientY;Pu.getBoundingClientRect=Ru(V,G),A==null||A()}return g(B,"setMousePosition"),u.addEventListener("mousemove",B),function(){return u.removeEventListener("mousemove",B)}},[a.followCursor,u,A]),b.useEffect(function(){if(!(c==null||A==null||a.mutationObserverOptions==null)){var B=new MutationObserver(A);return B.observe(c,a.mutationObserverOptions),function(){return B.disconnect()}}},[a.mutationObserverOptions,c,A]);var L=g(function(B){return B===void 0&&(B={}),xe({},B,{style:xe({},B.style,S.popper)},x.popper,{"data-popper-interactive":a.interactive})},"getTooltipProps"),j=g(function(B){return B===void 0&&(B={}),xe({},B,x.arrow,{style:xe({},B.style,S.arrow),"data-popper-arrow":!0})},"getArrowProps");return xe({getArrowProps:j,getTooltipProps:L,setTooltipRef:f,setTriggerRef:d,tooltipRef:c,triggerRef:u,visible:h},$)}var Bx,Nx,Pu,Iu,aF=N(()=>{cd(),rl(),oF(),g(Bd,"useGetLatest"),Bx=g(function(){},"noop"),g(Ix,"useControlledState"),g(Ru,"generateBoundingClientRect"),Nx=["styles","attributes"],Pu={getBoundingClientRect:Ru()},Iu={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"},g(Lx,"usePopperTooltip")}),ng,at,Xt,og,ag,Lu,iF=N(()=>{ng=je(nl(),1),at=(0,ng.default)(1e3)((e,t,r,n=0)=>t.split("-")[0]===e?r:n),Xt=8,og=T.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}}return{transform:`translate3d(${t}px, ${r}px, 0px)`}},({theme:e,color:t,placement:r})=>({bottom:`${at("top",r,`${Xt*-1}px`,"auto")}`,top:`${at("bottom",r,`${Xt*-1}px`,"auto")}`,right:`${at("left",r,`${Xt*-1}px`,"auto")}`,left:`${at("right",r,`${Xt*-1}px`,"auto")}`,borderBottomWidth:`${at("top",r,"0",Xt)}px`,borderTopWidth:`${at("bottom",r,"0",Xt)}px`,borderRightWidth:`${at("left",r,"0",Xt)}px`,borderLeftWidth:`${at("right",r,"0",Xt)}px`,borderTopColor:at("top",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent"),borderBottomColor:at("bottom",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent"),borderLeftColor:at("left",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent"),borderRightColor:at("right",r,e.color[t]||t||e.base==="light"?Sn(e.background.app):e.background.app,"transparent")})),ag=T.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"?Sn(e.background.app):e.background.app,filter:`
|
|
804
|
+
drop-shadow(0px 5px 5px rgba(0,0,0,0.05))
|
|
805
|
+
drop-shadow(0 1px 3px rgba(0,0,0,0.1))
|
|
806
|
+
`,borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{}),Lu=y.forwardRef(({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:o,color:a,withArrows:i,...l},s)=>y.createElement(ag,{"data-testid":"tooltip",hasChrome:t,ref:s,...l,color:a},t&&i&&y.createElement(og,{placement:e,...n,color:a}),r)),Lu.displayName="Tooltip"}),Nd={};oa(Nd,{WithToolTipState:()=>$i,WithTooltip:()=>$i,WithTooltipPure:()=>Bu});const{global:lF}=__STORYBOOK_MODULE_GLOBAL__;var So,ig,lg,Bu,$i,jd=N(()=>{aF(),iF(),{document:So}=lF,ig=T.div`
|
|
807
|
+
display: inline-block;
|
|
808
|
+
cursor: ${e=>{var t;return e.trigger==="hover"||(t=e.trigger)!=null&&t.includes("hover")?"default":"pointer"}};
|
|
809
|
+
`,lg=T.g`
|
|
810
|
+
cursor: ${e=>{var t;return e.trigger==="hover"||(t=e.trigger)!=null&&t.includes("hover")?"default":"pointer"}};
|
|
811
|
+
`,Bu=g(({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:a=!0,defaultVisible:i=!1,withArrows:l,offset:s,tooltip:u,children:d,closeOnTriggerHidden:p,mutationObserverOptions:c,delayHide:f=t==="hover"?200:0,visible:m,interactive:h,delayShow:v=t==="hover"?400:0,strategy:E,followCursor:w,onVisibleChange:S,...x})=>{let $=e?lg:ig,{getArrowProps:A,getTooltipProps:C,setTooltipRef:D,setTriggerRef:F,visible:k,state:_}=Lx({trigger:t,placement:n,defaultVisible:i,delayHide:f,interactive:h,closeOnOutsideClick:r,closeOnTriggerHidden:p,onVisibleChange:S,delayShow:v,followCursor:w,mutationObserverOptions:c,visible:m,offset:s},{modifiers:o,strategy:E}),I=k?y.createElement(Lu,{placement:_==null?void 0:_.placement,ref:D,hasChrome:a,arrowProps:A(),withArrows:l,...C()},typeof u=="function"?u({onHide:g(()=>S(!1),"onHide")}):u):null;return y.createElement(y.Fragment,null,y.createElement($,{trigger:t,ref:F,...x},d),k&&ch.createPortal(I,So.body))},"WithTooltipPure"),$i=g(({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,o]=b.useState(e),a=b.useCallback(i=>{t&&t(i)===!1||o(i)},[t]);return b.useEffect(()=>{let i=g(()=>a(!1),"hide");So.addEventListener("keydown",i,!1);let l=Array.from(So.getElementsByTagName("iframe")),s=[];return l.forEach(u=>{let d=g(()=>{try{u.contentWindow.document&&(u.contentWindow.document.addEventListener("click",i),s.push(()=>{try{u.contentWindow.document.removeEventListener("click",i)}catch{}}))}catch{}},"bind");d(),u.addEventListener("load",d),s.push(()=>{u.removeEventListener("load",d)})}),()=>{So.removeEventListener("keydown",i),s.forEach(u=>{u()})}}),y.createElement(Bu,{...r,visible:n,onVisibleChange:a})},"WithToolTipState")}),ve=g(({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e},"nameSpaceClassNames");rl();uk();ud();function jx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kn(e,t)}g(jx,"_inheritsLoose");ck();ud();function Mx(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}g(Mx,"_isNativeFunction");function Md(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Md=g(function(){return!!e},"_isNativeReflectConstruct"))()}g(Md,"_isNativeReflectConstruct");ud();function zx(e,t,r){if(Md())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Kn(o,r.prototype),o}g(zx,"_construct");function Ai(e){var t=typeof Map=="function"?new Map:void 0;return Ai=g(function(r){if(r===null||!Mx(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return zx(r,arguments,yi(this).constructor)}return g(n,"Wrapper"),n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Kn(n,r)},"_wrapNativeSuper"),Ai(e)}g(Ai,"_wrapNativeSuper");var sF={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
812
|
+
|
|
813
|
+
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
|
814
|
+
|
|
815
|
+
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
|
|
816
|
+
|
|
817
|
+
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
|
|
818
|
+
|
|
819
|
+
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
|
820
|
+
|
|
821
|
+
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
|
822
|
+
|
|
823
|
+
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
|
824
|
+
|
|
825
|
+
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
|
826
|
+
|
|
827
|
+
`,9:`Please provide a number of steps to the modularScale helper.
|
|
828
|
+
|
|
829
|
+
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
830
|
+
|
|
831
|
+
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
|
832
|
+
|
|
833
|
+
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
|
834
|
+
|
|
835
|
+
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
|
836
|
+
|
|
837
|
+
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
838
|
+
|
|
839
|
+
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
840
|
+
|
|
841
|
+
`,16:`You must provide a template to this method.
|
|
842
|
+
|
|
843
|
+
`,17:`You passed an unsupported selector state to this method.
|
|
844
|
+
|
|
845
|
+
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
846
|
+
|
|
847
|
+
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
848
|
+
|
|
849
|
+
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
850
|
+
|
|
851
|
+
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
|
|
852
|
+
|
|
853
|
+
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
854
|
+
|
|
855
|
+
`,25:`fontFace expects localFonts to be an array.
|
|
856
|
+
|
|
857
|
+
`,26:`fontFace expects fileFormats to be an array.
|
|
858
|
+
|
|
859
|
+
`,27:`radialGradient requries at least 2 color-stops to properly render.
|
|
860
|
+
|
|
861
|
+
`,28:`Please supply a filename to retinaImage() as the first argument.
|
|
862
|
+
|
|
863
|
+
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
864
|
+
|
|
865
|
+
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
|
866
|
+
|
|
867
|
+
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
|
868
|
+
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
|
869
|
+
|
|
870
|
+
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
|
871
|
+
|
|
872
|
+
`,34:`borderRadius expects a radius value as a string or number as the second argument.
|
|
873
|
+
|
|
874
|
+
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
875
|
+
|
|
876
|
+
`,36:`Property must be a string value.
|
|
877
|
+
|
|
878
|
+
`,37:`Syntax Error at %s.
|
|
879
|
+
|
|
880
|
+
`,38:`Formula contains a function that needs parentheses at %s.
|
|
881
|
+
|
|
882
|
+
`,39:`Formula is missing closing parenthesis at %s.
|
|
883
|
+
|
|
884
|
+
`,40:`Formula has too many closing parentheses at %s.
|
|
885
|
+
|
|
886
|
+
`,41:`All values in a formula must have the same unit or be unitless.
|
|
887
|
+
|
|
888
|
+
`,42:`Please provide a number of steps to the modularScale helper.
|
|
889
|
+
|
|
890
|
+
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
891
|
+
|
|
892
|
+
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
|
893
|
+
|
|
894
|
+
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
|
895
|
+
|
|
896
|
+
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
|
897
|
+
|
|
898
|
+
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
899
|
+
|
|
900
|
+
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
901
|
+
|
|
902
|
+
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
903
|
+
|
|
904
|
+
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
|
905
|
+
|
|
906
|
+
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
|
|
907
|
+
|
|
908
|
+
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
909
|
+
|
|
910
|
+
`,53:`fontFace expects localFonts to be an array.
|
|
911
|
+
|
|
912
|
+
`,54:`fontFace expects fileFormats to be an array.
|
|
913
|
+
|
|
914
|
+
`,55:`fontFace expects a name of a font-family.
|
|
915
|
+
|
|
916
|
+
`,56:`linearGradient requries at least 2 color-stops to properly render.
|
|
917
|
+
|
|
918
|
+
`,57:`radialGradient requries at least 2 color-stops to properly render.
|
|
919
|
+
|
|
920
|
+
`,58:`Please supply a filename to retinaImage() as the first argument.
|
|
921
|
+
|
|
922
|
+
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
923
|
+
|
|
924
|
+
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
|
|
925
|
+
|
|
926
|
+
`,62:`borderRadius expects a radius value as a string or number as the second argument.
|
|
927
|
+
|
|
928
|
+
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
929
|
+
|
|
930
|
+
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
|
931
|
+
|
|
932
|
+
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
|
933
|
+
|
|
934
|
+
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
|
935
|
+
|
|
936
|
+
`,67:`You must provide a template to this method.
|
|
937
|
+
|
|
938
|
+
`,68:`You passed an unsupported selector state to this method.
|
|
939
|
+
|
|
940
|
+
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
|
941
|
+
|
|
942
|
+
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
|
943
|
+
|
|
944
|
+
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
|
945
|
+
|
|
946
|
+
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
|
947
|
+
|
|
948
|
+
`,73:`Please provide a valid CSS variable.
|
|
949
|
+
|
|
950
|
+
`,74:`CSS variable not found and no default was provided.
|
|
951
|
+
|
|
952
|
+
`,75:`important requires a valid style object, got a %s instead.
|
|
953
|
+
|
|
954
|
+
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
|
955
|
+
|
|
956
|
+
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
|
|
957
|
+
|
|
958
|
+
`,78:`base must be set in "px" or "%" but you set it in "%s".
|
|
959
|
+
`};function Hx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}g(Hx,"format");var Xe=function(e){jx(t,e);function t(r){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n=e.call(this,Hx.apply(void 0,[sF[r]].concat(a)))||this,A1(n)}return g(t,"PolishedError"),t}(Ai(Error));function Nu(e,t){return e.substr(-t.length)===t}g(Nu,"endsWith");var uF=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function ju(e){if(typeof e!="string")return e;var t=e.match(uF);return t?parseFloat(e):e}g(ju,"stripUnit");var cF=g(function(e){return function(t,r){r===void 0&&(r="16px");var n=t,o=r;if(typeof t=="string"){if(!Nu(t,"px"))throw new Xe(69,e,t);n=ju(t)}if(typeof r=="string"){if(!Nu(r,"px"))throw new Xe(70,e,r);o=ju(r)}if(typeof n=="string")throw new Xe(71,t,e);if(typeof o=="string")throw new Xe(72,r,e);return""+n/o+e}},"pxtoFactory"),Ux=cF;Ux("em");Ux("rem");function Wa(e){return Math.round(e*255)}g(Wa,"colorToInt");function Wx(e,t,r){return Wa(e)+","+Wa(t)+","+Wa(r)}g(Wx,"convertToInt");function Jn(e,t,r,n){if(n===void 0&&(n=Wx),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var d=r-a/2,p=l+d,c=s+d,f=u+d;return n(p,c,f)}g(Jn,"hslToRgb");var sg={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 Vx(e){if(typeof e!="string")return e;var t=e.toLowerCase();return sg[t]?"#"+sg[t]:e}g(Vx,"nameToHex");var dF=/^#[a-fA-F0-9]{6}$/,pF=/^#[a-fA-F0-9]{8}$/,fF=/^#[a-fA-F0-9]{3}$/,mF=/^#[a-fA-F0-9]{4}$/,ds=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,gF=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hF=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,yF=/^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 nn(e){if(typeof e!="string")throw new Xe(3);var t=Vx(e);if(t.match(dF))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(pF)){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(fF))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(mF)){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=ds.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=gF.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=hF.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+Jn(l,s,u)+")",p=ds.exec(d);if(!p)throw new Xe(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var c=yF.exec(t.substring(0,50));if(c){var f=parseInt(""+c[1],10),m=parseInt(""+c[2],10)/100,h=parseInt(""+c[3],10)/100,v="rgb("+Jn(f,m,h)+")",E=ds.exec(v);if(!E)throw new Xe(4,t,v);return{red:parseInt(""+E[1],10),green:parseInt(""+E[2],10),blue:parseInt(""+E[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Xe(5)}g(nn,"parseToRgb");function qx(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}g(qx,"rgbToHsl");function ur(e){return qx(nn(e))}g(ur,"parseToHsl");var bF=g(function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},"reduceHexValue"),Mu=bF;function wr(e){var t=e.toString(16);return t.length===1?"0"+t:t}g(wr,"numberToHex");function Va(e){return wr(Math.round(e*255))}g(Va,"colorToHex");function Gx(e,t,r){return Mu("#"+Va(e)+Va(t)+Va(r))}g(Gx,"convertToHex");function Zo(e,t,r){return Jn(e,t,r,Gx)}g(Zo,"hslToHex");function Yx(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Zo(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Zo(e.hue,e.saturation,e.lightness);throw new Xe(1)}g(Yx,"hsl");function Kx(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Zo(e,t,r):"rgba("+Jn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Zo(e.hue,e.saturation,e.lightness):"rgba("+Jn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Xe(2)}g(Kx,"hsla");function Di(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Mu("#"+wr(e)+wr(t)+wr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return Mu("#"+wr(e.red)+wr(e.green)+wr(e.blue));throw new Xe(6)}g(Di,"rgb");function on(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=nn(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?Di(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?Di(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new Xe(7)}g(on,"rgba");var vF=g(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),xF=g(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),EF=g(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),wF=g(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function cr(e){if(typeof e!="object")throw new Xe(8);if(xF(e))return on(e);if(vF(e))return Di(e);if(wF(e))return Kx(e);if(EF(e))return Yx(e);throw new Xe(8)}g(cr,"toColorString");function zd(e,t,r){return g(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):zd(e,t,n)},"fn")}g(zd,"curried");function rt(e){return zd(e,e.length,[])}g(rt,"curry");function Xx(e,t){if(t==="transparent")return t;var r=ur(t);return cr(xe({},r,{hue:r.hue+parseFloat(e)}))}g(Xx,"adjustHue");rt(Xx);function dn(e,t,r){return Math.max(e,Math.min(t,r))}g(dn,"guard");function Zx(e,t){if(t==="transparent")return t;var r=ur(t);return cr(xe({},r,{lightness:dn(0,1,r.lightness-parseFloat(e))}))}g(Zx,"darken");var SF=rt(Zx),On=SF;function Jx(e,t){if(t==="transparent")return t;var r=ur(t);return cr(xe({},r,{saturation:dn(0,1,r.saturation-parseFloat(e))}))}g(Jx,"desaturate");rt(Jx);function Qx(e,t){if(t==="transparent")return t;var r=ur(t);return cr(xe({},r,{lightness:dn(0,1,r.lightness+parseFloat(e))}))}g(Qx,"lighten");var CF=rt(Qx),ug=CF;function eE(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=nn(t),o=xe({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=nn(r),i=xe({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,p=(u/d+1)/2,c=1-p,f={red:Math.floor(o.red*p+i.red*c),green:Math.floor(o.green*p+i.green*c),blue:Math.floor(o.blue*p+i.blue*c),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return on(f)}g(eE,"mix");var $F=rt(eE),tE=$F;function rE(e,t){if(t==="transparent")return t;var r=nn(t),n=typeof r.alpha=="number"?r.alpha:1,o=xe({},r,{alpha:dn(0,1,(n*100+parseFloat(e)*100)/100)});return on(o)}g(rE,"opacify");rt(rE);function nE(e,t){if(t==="transparent")return t;var r=ur(t);return cr(xe({},r,{saturation:dn(0,1,r.saturation+parseFloat(e))}))}g(nE,"saturate");rt(nE);function oE(e,t){return t==="transparent"?t:cr(xe({},ur(t),{hue:parseFloat(e)}))}g(oE,"setHue");rt(oE);function aE(e,t){return t==="transparent"?t:cr(xe({},ur(t),{lightness:parseFloat(e)}))}g(aE,"setLightness");rt(aE);function iE(e,t){return t==="transparent"?t:cr(xe({},ur(t),{saturation:parseFloat(e)}))}g(iE,"setSaturation");rt(iE);function lE(e,t){return t==="transparent"?t:tE(parseFloat(e),"rgb(0, 0, 0)",t)}g(lE,"shade");rt(lE);function sE(e,t){return t==="transparent"?t:tE(parseFloat(e),"rgb(255, 255, 255)",t)}g(sE,"tint");rt(sE);function uE(e,t){if(t==="transparent")return t;var r=nn(t),n=typeof r.alpha=="number"?r.alpha:1,o=xe({},r,{alpha:dn(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return on(o)}g(uE,"transparentize");var AF=rt(uE),pt=AF,uo=g(({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"),dr=g(({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"?pt(.1,e.color.defaultText):pt(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border}),"codeCommon"),we=g(({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"),pn={margin:"16px 0"},Hd=T.div(we),DF=g(({href:e="",...t})=>{let r=/^\//.test(e)?`./?path=${e}`:e,n=/^#.*/.test(e)?"_self":"_top";return y.createElement("a",{href:r,target:n,...t})},"Link"),cE=T(DF)(we,({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}})),dE=T.blockquote(we,pn,({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}}));ll();var kF=g(e=>typeof e=="string","isReactChildString"),OF=/[\n\r]/g,FF=T.code(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"}),dr),_F=T(Uo)(({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"}})),Ud=g(({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),o=b.Children.toArray(t);return o.filter(kF).some(a=>a.match(OF))?y.createElement(_F,{bordered:!0,copyable:!0,language:(n==null?void 0:n[1])??"text",format:!1,...r},t):y.createElement(FF,{...r,className:e},o)},"Code"),pE=T.dl(we,pn,{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}}),fE=T.div(we),mE=T.h1(we,uo,({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold})),Wd=T.h2(we,uo,({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`})),Vd=T.h3(we,uo,({theme:e})=>({fontSize:`${e.typography.size.m1}px`})),gE=T.h4(we,uo,({theme:e})=>({fontSize:`${e.typography.size.s3}px`})),hE=T.h5(we,uo,({theme:e})=>({fontSize:`${e.typography.size.s2}px`})),yE=T.h6(we,uo,({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark})),bE=T.hr(({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0})),vE=T.img({maxWidth:"100%"}),xE=T.li(we,({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":dr({theme:e})})),TF={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},EE=T.ol(we,pn,TF,{listStyle:"decimal"}),wE=T.p(we,pn,({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":dr({theme:e})})),SE=T.pre(we,pn,({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"}})),CE=T.span(we,({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"}}})),$E=T.title(dr),AE=T.table(we,pn,({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}})),RF={paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},DE=T.ul(we,pn,RF,{listStyle:"disc"}),kE={h1:g(e=>y.createElement(mE,{...ve(e,"h1")}),"h1"),h2:g(e=>y.createElement(Wd,{...ve(e,"h2")}),"h2"),h3:g(e=>y.createElement(Vd,{...ve(e,"h3")}),"h3"),h4:g(e=>y.createElement(gE,{...ve(e,"h4")}),"h4"),h5:g(e=>y.createElement(hE,{...ve(e,"h5")}),"h5"),h6:g(e=>y.createElement(yE,{...ve(e,"h6")}),"h6"),pre:g(e=>y.createElement(SE,{...ve(e,"pre")}),"pre"),a:g(e=>y.createElement(cE,{...ve(e,"a")}),"a"),hr:g(e=>y.createElement(bE,{...ve(e,"hr")}),"hr"),dl:g(e=>y.createElement(pE,{...ve(e,"dl")}),"dl"),blockquote:g(e=>y.createElement(dE,{...ve(e,"blockquote")}),"blockquote"),table:g(e=>y.createElement(AE,{...ve(e,"table")}),"table"),img:g(e=>y.createElement(vE,{...ve(e,"img")}),"img"),div:g(e=>y.createElement(fE,{...ve(e,"div")}),"div"),span:g(e=>y.createElement(CE,{...ve(e,"span")}),"span"),li:g(e=>y.createElement(xE,{...ve(e,"li")}),"li"),ul:g(e=>y.createElement(DE,{...ve(e,"ul")}),"ul"),ol:g(e=>y.createElement(EE,{...ve(e,"ol")}),"ol"),p:g(e=>y.createElement(wE,{...ve(e,"p")}),"p"),code:g(e=>y.createElement(Ud,{...ve(e,"code")}),"code"),tt:g(e=>y.createElement($E,{...ve(e,"tt")}),"tt"),resetwrapper:g(e=>y.createElement(Hd,{...ve(e,"resetwrapper")}),"resetwrapper")},PF=T.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 ${pt(.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 ${pt(.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 ${pt(.8,e.textMutedColor)}`};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:e.base==="light"?`inset 0 0 0 1px ${pt(.9,e.color.positiveText)}`:"none"};case"active":return{color:e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${pt(.9,e.color.secondary)}`};default:return{}}}),IF=g(({...e})=>y.createElement(PF,{...e}),"Badge"),LF=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))),BF=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e}))),NF=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),jF=0,MF=g(e=>e.button===jF&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,"isPlainLeftClick"),zF=g((e,t)=>{MF(e)&&(e.preventDefault(),t(e))},"cancelled"),HF=T.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}}:{}),UF=T.a(({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:On(.07,e.color.secondary),"svg path:not([fill])":{fill:On(.07,e.color.secondary)}},"&:active":{color:On(.1,e.color.secondary),"svg path:not([fill])":{fill:On(.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"}:{}),Qn=g(({cancel:e=!0,children:t,onClick:r=void 0,withArrow:n=!1,containsIcon:o=!1,className:a=void 0,style:i=void 0,...l})=>y.createElement(UF,{...l,onClick:r&&e?s=>zF(s,r):r,className:a},y.createElement(HF,{withArrow:n,containsIcon:o},t,n&&y.createElement(NF,null))),"Link"),WF=T.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}})),Zr=[],eo=null,VF=b.lazy(async()=>{let{SyntaxHighlighter:e}=await Promise.resolve().then(()=>(ll(),wd));return Zr.length>0&&(Zr.forEach(t=>{e.registerLanguage(...t)}),Zr=[]),eo===null&&(eo=e),{default:g(t=>y.createElement(e,{...t}),"default")}}),qF=b.lazy(async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Promise.resolve().then(()=>(ll(),wd)),Promise.resolve().then(()=>(DO(),Lv))]);return Zr.length>0&&(Zr.forEach(r=>{e.registerLanguage(...r)}),Zr=[]),eo===null&&(eo=e),{default:g(r=>y.createElement(e,{...r,formatter:t}),"default")}}),hl=g(e=>y.createElement(b.Suspense,{fallback:y.createElement("div",null)},e.format!==!1?y.createElement(qF,{...e}):y.createElement(VF,{...e})),"SyntaxHighlighter");hl.registerLanguage=(...e)=>{if(eo!==null){eo.registerLanguage(...e);return}Zr.push(e)};ll();vv();var OE={};oa(OE,{Close:()=>Nw,Content:()=>Iw,Description:()=>Bw,Dialog:()=>Xd,DialogClose:()=>ap,DialogContent:()=>tp,DialogDescription:()=>op,DialogOverlay:()=>ep,DialogPortal:()=>Qd,DialogTitle:()=>np,DialogTrigger:()=>Zd,Overlay:()=>Pw,Portal:()=>Rw,Root:()=>Tw,Title:()=>Lw,Trigger:()=>q_,WarningProvider:()=>H_,createDialogScope:()=>I_});function Pn(e,t,{checkForDefaultPrevented:r=!0}={}){return g(function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)},"handleEvent")}g(Pn,"composeEventHandlers");function zu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}g(zu,"setRef");function qd(...e){return t=>{let r=!1,n=e.map(o=>{let a=zu(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){let a=n[o];typeof a=="function"?a():zu(e[o],null)}}}}g(qd,"composeRefs");function _r(...e){return b.useCallback(qd(...e),e)}g(_r,"useComposedRefs");function FE(e,t){let r=b.createContext(t),n=g(a=>{let{children:i,...l}=a,s=b.useMemo(()=>l,Object.values(l));return q.jsx(r.Provider,{value:s,children:i})},"Provider");n.displayName=e+"Provider";function o(a){let i=b.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return g(o,"useContext2"),[n,o]}g(FE,"createContext2");function _E(e,t=[]){let r=[];function n(a,i){let l=b.createContext(i),s=r.length;r=[...r,i];let u=g(p=>{var E;let{scope:c,children:f,...m}=p,h=((E=c==null?void 0:c[e])==null?void 0:E[s])||l,v=b.useMemo(()=>m,Object.values(m));return q.jsx(h.Provider,{value:v,children:f})},"Provider");u.displayName=a+"Provider";function d(p,c){var h;let f=((h=c==null?void 0:c[e])==null?void 0:h[s])||l,m=b.useContext(f);if(m)return m;if(i!==void 0)return i;throw new Error(`\`${p}\` must be used within \`${a}\``)}return g(d,"useContext2"),[u,d]}g(n,"createContext3");let o=g(()=>{let a=r.map(i=>b.createContext(i));return g(function(i){let l=(i==null?void 0:i[e])||a;return b.useMemo(()=>({[`__scope${e}`]:{...i,[e]:l}}),[i,l])},"useScope")},"createScope");return o.scopeName=e,[n,TE(o,...t)]}g(_E,"createContextScope");function TE(...e){let t=e[0];if(e.length===1)return t;let r=g(()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return g(function(o){let a=n.reduce((i,{useScope:l,scopeName:s})=>{let u=l(o)[`__scope${s}`];return{...i,...u}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])},"useComposedScopes")},"createScope");return r.scopeName=t.scopeName,r}g(TE,"composeContextScopes");var Jo=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},GF=uh[" useId ".trim().toString()]||(()=>{}),YF=0;function qa(e){let[t,r]=b.useState(GF());return Jo(()=>{e||r(n=>n??String(YF++))},[e]),e||(t?`radix-${t}`:"")}g(qa,"useId");var KF=uh[" useInsertionEffect ".trim().toString()]||Jo;function RE({prop:e,defaultProp:t,onChange:r=g(()=>{},"onChange"),caller:n}){let[o,a,i]=PE({defaultProp:t,onChange:r}),l=e!==void 0,s=l?e:o;{let d=b.useRef(e!==void 0);b.useEffect(()=>{let p=d.current;p!==l&&console.warn(`${n} is changing from ${p?"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.`),d.current=l},[l,n])}let u=b.useCallback(d=>{var p;if(l){let c=IE(d)?d(e):d;c!==e&&((p=i.current)==null||p.call(i,c))}else a(d)},[l,e,a,i]);return[s,u]}g(RE,"useControllableState");function PE({defaultProp:e,onChange:t}){let[r,n]=b.useState(e),o=b.useRef(r),a=b.useRef(t);return KF(()=>{a.current=t},[t]),b.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}g(PE,"useUncontrolledState");function IE(e){return typeof e=="function"}g(IE,"isFunction");function Ga(e,t,{checkForDefaultPrevented:r=!0}={}){return g(function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)},"handleEvent")}g(Ga,"composeEventHandlers");function yl(e){let t=LE(e),r=b.forwardRef((n,o)=>{let{children:a,...i}=n,l=b.Children.toArray(a),s=l.find(BE);if(s){let u=s.props.children,d=l.map(p=>p===s?b.Children.count(u)>1?b.Children.only(null):b.isValidElement(u)?u.props.children:null:p);return q.jsx(t,{...i,ref:o,children:b.isValidElement(u)?b.cloneElement(u,void 0,d):null})}return q.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}g(yl,"createSlot");var XF=yl("Slot");function LE(e){let t=b.forwardRef((r,n)=>{let{children:o,...a}=r;if(b.isValidElement(o)){let i=jE(o),l=NE(a,o.props);return o.type!==b.Fragment&&(l.ref=n?qd(n,i):i),b.cloneElement(o,l)}return b.Children.count(o)>1?b.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}g(LE,"createSlotClone");var ZF=Symbol("radix.slottable");function BE(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ZF}g(BE,"isSlottable");function NE(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{a(...i),o(...i)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}g(NE,"mergeProps");function jE(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}g(jE,"getElementRef");var JF=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pr=JF.reduce((e,t)=>{let r=yl(`Primitive.${t}`),n=b.forwardRef((o,a)=>{let{asChild:i,...l}=o,s=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),q.jsx(s,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ME(e,t){e&&pc.flushSync(()=>e.dispatchEvent(t))}g(ME,"dispatchDiscreteCustomEvent");function to(e){let t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}g(to,"useCallbackRef");function zE(e,t=globalThis==null?void 0:globalThis.document){let r=to(e);b.useEffect(()=>{let n=g(o=>{o.key==="Escape"&&r(o)},"handleKeyDown");return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}g(zE,"useEscapeKeydown");var QF="DismissableLayer",Hu="dismissableLayer.update",e_="dismissableLayer.pointerDownOutside",t_="dismissableLayer.focusOutside",cg,HE=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),UE=b.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:l,...s}=e,u=b.useContext(HE),[d,p]=b.useState(null),c=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,f]=b.useState({}),m=_r(t,C=>p(C)),h=Array.from(u.layers),[v]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),E=h.indexOf(v),w=d?h.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,x=w>=E,$=WE(C=>{let D=C.target,F=[...u.branches].some(k=>k.contains(D));!x||F||(o==null||o(C),i==null||i(C),C.defaultPrevented||(l==null||l()))},c),A=VE(C=>{let D=C.target;[...u.branches].some(F=>F.contains(D))||(a==null||a(C),i==null||i(C),C.defaultPrevented||(l==null||l()))},c);return zE(C=>{w===u.layers.size-1&&(n==null||n(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},c),b.useEffect(()=>{if(d)return r&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(cg=c.body.style.pointerEvents,c.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Uu(),()=>{r&&u.layersWithOutsidePointerEventsDisabled.size===1&&(c.body.style.pointerEvents=cg)}},[d,c,r,u]),b.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Uu())},[d,u]),b.useEffect(()=>{let C=g(()=>f({}),"handleUpdate");return document.addEventListener(Hu,C),()=>document.removeEventListener(Hu,C)},[]),q.jsx(pr.div,{...s,ref:m,style:{pointerEvents:S?x?"auto":"none":void 0,...e.style},onFocusCapture:Ga(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ga(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ga(e.onPointerDownCapture,$.onPointerDownCapture)})});UE.displayName=QF;var r_="DismissableLayerBranch",n_=b.forwardRef((e,t)=>{let r=b.useContext(HE),n=b.useRef(null),o=_r(t,n);return b.useEffect(()=>{let a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),q.jsx(pr.div,{...e,ref:o})});n_.displayName=r_;function WE(e,t=globalThis==null?void 0:globalThis.document){let r=to(e),n=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{let a=g(l=>{if(l.target&&!n.current){let s=g(function(){Gd(e_,r,u,{discrete:!0})},"handleAndDispatchPointerDownOutsideEvent2"),u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=s,t.addEventListener("click",o.current,{once:!0})):s()}else t.removeEventListener("click",o.current);n.current=!1},"handlePointerDown"),i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:g(()=>n.current=!0,"onPointerDownCapture")}}g(WE,"usePointerDownOutside");function VE(e,t=globalThis==null?void 0:globalThis.document){let r=to(e),n=b.useRef(!1);return b.useEffect(()=>{let o=g(a=>{a.target&&!n.current&&Gd(t_,r,{originalEvent:a},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:g(()=>n.current=!0,"onFocusCapture"),onBlurCapture:g(()=>n.current=!1,"onBlurCapture")}}g(VE,"useFocusOutside");function Uu(){let e=new CustomEvent(Hu);document.dispatchEvent(e)}g(Uu,"dispatchUpdate");function Gd(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ME(o,a):o.dispatchEvent(a)}g(Gd,"handleAndDispatchCustomEvent");var ps="focusScope.autoFocusOnMount",fs="focusScope.autoFocusOnUnmount",dg={bubbles:!1,cancelable:!0},o_="FocusScope",qE=b.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[l,s]=b.useState(null),u=to(o),d=to(a),p=b.useRef(null),c=_r(t,h=>s(h)),f=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(n){let h=g(function(S){if(f.paused||!l)return;let x=S.target;l.contains(x)?p.current=x:Qt(p.current,{select:!0})},"handleFocusIn2"),v=g(function(S){if(f.paused||!l)return;let x=S.relatedTarget;x!==null&&(l.contains(x)||Qt(p.current,{select:!0}))},"handleFocusOut2"),E=g(function(S){if(document.activeElement===document.body)for(let x of S)x.removedNodes.length>0&&Qt(l)},"handleMutations2");document.addEventListener("focusin",h),document.addEventListener("focusout",v);let w=new MutationObserver(E);return l&&w.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),w.disconnect()}}},[n,l,f.paused]),b.useEffect(()=>{if(l){pg.add(f);let h=document.activeElement;if(!l.contains(h)){let v=new CustomEvent(ps,dg);l.addEventListener(ps,u),l.dispatchEvent(v),v.defaultPrevented||(GE(JE(Yd(l)),{select:!0}),document.activeElement===h&&Qt(l))}return()=>{l.removeEventListener(ps,u),setTimeout(()=>{let v=new CustomEvent(fs,dg);l.addEventListener(fs,d),l.dispatchEvent(v),v.defaultPrevented||Qt(h??document.body,{select:!0}),l.removeEventListener(fs,d),pg.remove(f)},0)}}},[l,u,d,f]);let m=b.useCallback(h=>{if(!r&&!n||f.paused)return;let v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,E=document.activeElement;if(v&&E){let w=h.currentTarget,[S,x]=YE(w);S&&x?!h.shiftKey&&E===x?(h.preventDefault(),r&&Qt(S,{select:!0})):h.shiftKey&&E===S&&(h.preventDefault(),r&&Qt(x,{select:!0})):E===w&&h.preventDefault()}},[r,n,f.paused]);return q.jsx(pr.div,{tabIndex:-1,...i,ref:c,onKeyDown:m})});qE.displayName=o_;function GE(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(Qt(n,{select:t}),document.activeElement!==r)return}g(GE,"focusFirst");function YE(e){let t=Yd(e),r=Wu(t,e),n=Wu(t.reverse(),e);return[r,n]}g(YE,"getTabbableEdges");function Yd(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:g(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}g(Yd,"getTabbableCandidates");function Wu(e,t){for(let r of e)if(!KE(r,{upTo:t}))return r}g(Wu,"findVisible");function KE(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}g(KE,"isHidden");function XE(e){return e instanceof HTMLInputElement&&"select"in e}g(XE,"isSelectableInput");function Qt(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&XE(e)&&t&&e.select()}}g(Qt,"focus");var pg=ZE();function ZE(){let e=[];return{add(t){let r=e[0];t!==r&&(r==null||r.pause()),e=Vu(e,t),e.unshift(t)},remove(t){var r;e=Vu(e,t),(r=e[0])==null||r.resume()}}}g(ZE,"createFocusScopesStack");function Vu(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}g(Vu,"arrayRemove");function JE(e){return e.filter(t=>t.tagName!=="A")}g(JE,"removeLinks");var a_="Portal",QE=b.forwardRef((e,t)=>{var l;let{container:r,...n}=e,[o,a]=b.useState(!1);Jo(()=>a(!0),[]);let i=r||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return i?ch.createPortal(q.jsx(pr.div,{...n,ref:t}),i):null});QE.displayName=a_;function ew(e,t){return b.useReducer((r,n)=>t[r][n]??r,e)}g(ew,"useStateMachine");var bl=g(e=>{let{present:t,children:r}=e,n=tw(t),o=typeof r=="function"?r({present:n.isPresent}):b.Children.only(r),a=_r(n.ref,rw(o));return typeof r=="function"||n.isPresent?b.cloneElement(o,{ref:a}):null},"Presence");bl.displayName="Presence";function tw(e){let[t,r]=b.useState(),n=b.useRef(null),o=b.useRef(e),a=b.useRef("none"),i=e?"mounted":"unmounted",[l,s]=ew(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{let u=Po(n.current);a.current=l==="mounted"?u:"none"},[l]),Jo(()=>{let u=n.current,d=o.current;if(d!==e){let p=a.current,c=Po(u);e?s("MOUNT"):c==="none"||(u==null?void 0:u.display)==="none"?s("UNMOUNT"):s(d&&p!==c?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,s]),Jo(()=>{if(t){let u,d=t.ownerDocument.defaultView??window,p=g(f=>{let m=Po(n.current).includes(f.animationName);if(f.target===t&&m&&(s("ANIMATION_END"),!o.current)){let h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},"handleAnimationEnd"),c=g(f=>{f.target===t&&(a.current=Po(n.current))},"handleAnimationStart");return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:b.useCallback(u=>{n.current=u?getComputedStyle(u):null,r(u)},[])}}g(tw,"usePresence");function Po(e){return(e==null?void 0:e.animationName)||"none"}g(Po,"getAnimationName");function rw(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}g(rw,"getElementRef");var ms=0;function nw(){b.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qu()),document.body.insertAdjacentElement("beforeend",e[1]??qu()),ms++,()=>{ms===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ms--}},[])}g(nw,"useFocusGuards");function qu(){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}g(qu,"createFocusGuard");var zt=g(function(){return zt=Object.assign||g(function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},"__assign"),zt.apply(this,arguments)},"__assign");function Kd(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}g(Kd,"__rest");function ow(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}g(ow,"__spreadArray");var Ya="right-scroll-bar-position",Ka="width-before-scroll-bar",i_="with-scroll-bars-hidden",l_="--removed-body-scroll-bar-size";function Xa(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}g(Xa,"assignRef");function aw(e,t){var r=b.useState(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}g(aw,"useCallbackRef");var s_=typeof window<"u"?b.useLayoutEffect:b.useEffect,fg=new WeakMap;function iw(e,t){var r=aw(t||null,function(n){return e.forEach(function(o){return Xa(o,n)})});return s_(function(){var n=fg.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(l){a.has(l)||Xa(l,null)}),a.forEach(function(l){o.has(l)||Xa(l,i)})}fg.set(r,e)},[e]),r}g(iw,"useMergeRefs");function lw(e){return e}g(lw,"ItoI");function sw(e,t){t===void 0&&(t=lw);var r=[],n=!1,o={read:g(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:g(function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(l){return l!==i})}},"useMedium"),assignSyncMedium:g(function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:g(function(l){return a(l)},"push"),filter:g(function(){return r},"filter")}},"assignSyncMedium"),assignMedium:g(function(a){n=!0;var i=[];if(r.length){var l=r;r=[],l.forEach(a),i=r}var s=g(function(){var d=i;i=[],d.forEach(a)},"executeQueue"),u=g(function(){return Promise.resolve().then(s)},"cycle");u(),r={push:g(function(d){i.push(d),u()},"push"),filter:g(function(d){return i=i.filter(d),r},"filter")}},"assignMedium")};return o}g(sw,"innerCreateMedium");function uw(e){e===void 0&&(e={});var t=sw(null);return t.options=zt({async:!0,ssr:!1},e),t}g(uw,"createSidecarMedium");var cw=g(function(e){var t=e.sideCar,r=Kd(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 b.createElement(n,zt({},r))},"SideCar");cw.isSideCarExport=!0;function dw(e,t){return e.useMedium(t),cw}g(dw,"exportSidecar");var pw=uw(),gs=g(function(){},"nothing"),vl=b.forwardRef(function(e,t){var r=b.useRef(null),n=b.useState({onScrollCapture:gs,onWheelCapture:gs,onTouchMoveCapture:gs}),o=n[0],a=n[1],i=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,d=e.enabled,p=e.shards,c=e.sideCar,f=e.noIsolation,m=e.inert,h=e.allowPinchZoom,v=e.as,E=v===void 0?"div":v,w=e.gapMode,S=Kd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=c,$=iw([r,t]),A=zt(zt({},S),o);return b.createElement(b.Fragment,null,d&&b.createElement(x,{sideCar:pw,removeScrollBar:u,shards:p,noIsolation:f,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:w}),i?b.cloneElement(b.Children.only(l),zt(zt({},A),{ref:$})):b.createElement(E,zt({},A,{className:s,ref:$}),l))});vl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vl.classNames={fullWidth:Ka,zeroRight:Ya};var u_=g(function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},"getNonce");function fw(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u_();return t&&e.setAttribute("nonce",t),e}g(fw,"makeStyleTag");function mw(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}g(mw,"injectStyles");function gw(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}g(gw,"insertStyleTag");var c_=g(function(){var e=0,t=null;return{add:g(function(r){e==0&&(t=fw())&&(mw(t,r),gw(t)),e++},"add"),remove:g(function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)},"remove")}},"stylesheetSingleton"),d_=g(function(){var e=c_();return function(t,r){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},"styleHookSingleton"),hw=g(function(){var e=d_(),t=g(function(r){var n=r.styles,o=r.dynamic;return e(n,o),null},"Sheet");return t},"styleSingleton"),p_={left:0,top:0,right:0,gap:0},hs=g(function(e){return parseInt(e||"",10)||0},"parse"),f_=g(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[hs(r),hs(n),hs(o)]},"getOffset"),m_=g(function(e){if(e===void 0&&(e="margin"),typeof window>"u")return p_;var t=f_(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"),g_=hw(),In="data-scroll-locked",h_=g(function(e,t,r,n){var o=e.left,a=e.top,i=e.right,l=e.gap;return r===void 0&&(r="margin"),`
|
|
960
|
+
.`.concat(i_,` {
|
|
961
|
+
overflow: hidden `).concat(n,`;
|
|
962
|
+
padding-right: `).concat(l,"px ").concat(n,`;
|
|
963
|
+
}
|
|
964
|
+
body[`).concat(In,`] {
|
|
965
|
+
overflow: hidden `).concat(n,`;
|
|
966
|
+
overscroll-behavior: contain;
|
|
967
|
+
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
|
|
968
|
+
padding-left: `.concat(o,`px;
|
|
969
|
+
padding-top: `).concat(a,`px;
|
|
970
|
+
padding-right: `).concat(i,`px;
|
|
971
|
+
margin-left:0;
|
|
972
|
+
margin-top:0;
|
|
973
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
974
|
+
`),r==="padding"&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),`
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.`).concat(Ya,` {
|
|
978
|
+
right: `).concat(l,"px ").concat(n,`;
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
.`).concat(Ka,` {
|
|
982
|
+
margin-right: `).concat(l,"px ").concat(n,`;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
.`).concat(Ya," .").concat(Ya,` {
|
|
986
|
+
right: 0 `).concat(n,`;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
.`).concat(Ka," .").concat(Ka,` {
|
|
990
|
+
margin-right: 0 `).concat(n,`;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
body[`).concat(In,`] {
|
|
994
|
+
`).concat(l_,": ").concat(l,`px;
|
|
995
|
+
}
|
|
996
|
+
`)},"getStyles"),mg=g(function(){var e=parseInt(document.body.getAttribute(In)||"0",10);return isFinite(e)?e:0},"getCurrentUseCounter"),y_=g(function(){b.useEffect(function(){return document.body.setAttribute(In,(mg()+1).toString()),function(){var e=mg()-1;e<=0?document.body.removeAttribute(In):document.body.setAttribute(In,e.toString())}},[])},"useLockAttribute"),b_=g(function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;y_();var a=b.useMemo(function(){return m_(o)},[o]);return b.createElement(g_,{styles:h_(a,!t,o,r?"":"!important")})},"RemoveScrollBar"),Gu=!1;if(typeof window<"u")try{Co=Object.defineProperty({},"passive",{get:g(function(){return Gu=!0,!0},"get")}),window.addEventListener("test",Co,Co),window.removeEventListener("test",Co,Co)}catch{Gu=!1}var Co,gn=Gu?{passive:!1}:!1,v_=g(function(e){return e.tagName==="TEXTAREA"},"alwaysContainsScroll"),yw=g(function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!v_(e)&&r[t]==="visible")},"elementCanBeScrolled"),x_=g(function(e){return yw(e,"overflowY")},"elementCouldBeVScrolled"),E_=g(function(e){return yw(e,"overflowX")},"elementCouldBeHScrolled"),gg=g(function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=bw(e,n);if(o){var a=vw(e,n),i=a[1],l=a[2];if(i>l)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},"locationCouldBeScrolled"),w_=g(function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},"getVScrollVariables"),S_=g(function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},"getHScrollVariables"),bw=g(function(e,t){return e==="v"?x_(t):E_(t)},"elementCouldBeScrolled"),vw=g(function(e,t){return e==="v"?w_(t):S_(t)},"getScrollVariables"),C_=g(function(e,t){return e==="h"&&t==="rtl"?-1:1},"getDirectionFactor"),$_=g(function(e,t,r,n,o){var a=C_(e,window.getComputedStyle(t).direction),i=a*n,l=r.target,s=t.contains(l),u=!1,d=i>0,p=0,c=0;do{var f=vw(e,l),m=f[0],h=f[1],v=f[2],E=h-v-a*m;(m||E)&&bw(e,l)&&(p+=E,c+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(d&&(o&&Math.abs(p)<1||!o&&i>p)||!d&&(o&&Math.abs(c)<1||!o&&-i>c))&&(u=!0),u},"handleScroll"),ka=g(function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},"getTouchXY"),hg=g(function(e){return[e.deltaX,e.deltaY]},"getDeltaXY"),yg=g(function(e){return e&&"current"in e?e.current:e},"extractRef"),A_=g(function(e,t){return e[0]===t[0]&&e[1]===t[1]},"deltaCompare"),D_=g(function(e){return`
|
|
997
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
998
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
999
|
+
`)},"generateStyle"),k_=0,hn=[];function xw(e){var t=b.useRef([]),r=b.useRef([0,0]),n=b.useRef(),o=b.useState(k_++)[0],a=b.useState(hw)[0],i=b.useRef(e);b.useEffect(function(){i.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=ow([e.lockRef.current],(e.shards||[]).map(yg),!0).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=b.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!i.current.allowPinchZoom;var E=ka(h),w=r.current,S="deltaX"in h?h.deltaX:w[0]-E[0],x="deltaY"in h?h.deltaY:w[1]-E[1],$,A=h.target,C=Math.abs(S)>Math.abs(x)?"h":"v";if("touches"in h&&C==="h"&&A.type==="range")return!1;var D=gg(C,A);if(!D)return!0;if(D?$=C:($=C==="v"?"h":"v",D=gg(C,A)),!D)return!1;if(!n.current&&"changedTouches"in h&&(S||x)&&(n.current=$),!$)return!0;var F=n.current||$;return $_(F,v,h,F==="h"?S:x,!0)},[]),s=b.useCallback(function(h){var v=h;if(!(!hn.length||hn[hn.length-1]!==a)){var E="deltaY"in v?hg(v):ka(v),w=t.current.filter(function($){return $.name===v.type&&($.target===v.target||v.target===$.shadowParent)&&A_($.delta,E)})[0];if(w&&w.should){v.cancelable&&v.preventDefault();return}if(!w){var S=(i.current.shards||[]).map(yg).filter(Boolean).filter(function($){return $.contains(v.target)}),x=S.length>0?l(v,S[0]):!i.current.noIsolation;x&&v.cancelable&&v.preventDefault()}}},[]),u=b.useCallback(function(h,v,E,w){var S={name:h,delta:v,target:E,should:w,shadowParent:Ew(E)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(x){return x!==S})},1)},[]),d=b.useCallback(function(h){r.current=ka(h),n.current=void 0},[]),p=b.useCallback(function(h){u(h.type,hg(h),h.target,l(h,e.lockRef.current))},[]),c=b.useCallback(function(h){u(h.type,ka(h),h.target,l(h,e.lockRef.current))},[]);b.useEffect(function(){return hn.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:c}),document.addEventListener("wheel",s,gn),document.addEventListener("touchmove",s,gn),document.addEventListener("touchstart",d,gn),function(){hn=hn.filter(function(h){return h!==a}),document.removeEventListener("wheel",s,gn),document.removeEventListener("touchmove",s,gn),document.removeEventListener("touchstart",d,gn)}},[]);var f=e.removeScrollBar,m=e.inert;return b.createElement(b.Fragment,null,m?b.createElement(a,{styles:D_(o)}):null,f?b.createElement(b_,{gapMode:e.gapMode}):null)}g(xw,"RemoveScrollSideCar");function Ew(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}g(Ew,"getOutermostShadowParent");var O_=dw(pw,xw),ww=b.forwardRef(function(e,t){return b.createElement(vl,zt({},e,{ref:t,sideCar:O_}))});ww.classNames=vl.classNames;var F_=ww,__=g(function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},"getDefaultParent"),yn=new WeakMap,Oa=new WeakMap,Fa={},ys=0,Sw=g(function(e){return e&&(e.host||Sw(e.parentNode))},"unwrapHost"),T_=g(function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Sw(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"),R_=g(function(e,t,r,n){var o=T_(t,Array.isArray(e)?e:[e]);Fa[r]||(Fa[r]=new WeakMap);var a=Fa[r],i=[],l=new Set,s=new Set(o),u=g(function(p){!p||l.has(p)||(l.add(p),u(p.parentNode))},"keep");o.forEach(u);var d=g(function(p){!p||s.has(p)||Array.prototype.forEach.call(p.children,function(c){if(l.has(c))d(c);else try{var f=c.getAttribute(n),m=f!==null&&f!=="false",h=(yn.get(c)||0)+1,v=(a.get(c)||0)+1;yn.set(c,h),a.set(c,v),i.push(c),h===1&&m&&Oa.set(c,!0),v===1&&c.setAttribute(r,"true"),m||c.setAttribute(n,"true")}catch(E){console.error("aria-hidden: cannot operate on ",c,E)}})},"deep");return d(t),l.clear(),ys++,function(){i.forEach(function(p){var c=yn.get(p)-1,f=a.get(p)-1;yn.set(p,c),a.set(p,f),c||(Oa.has(p)||p.removeAttribute(n),Oa.delete(p)),f||p.removeAttribute(r)}),ys--,ys||(yn=new WeakMap,yn=new WeakMap,Oa=new WeakMap,Fa={})}},"applyAttributeToOthers"),P_=g(function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||__(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),R_(n,o,r,"aria-hidden")):function(){return null}},"hideOthers"),xl="Dialog",[Cw,I_]=_E(xl),[L_,Tt]=Cw(xl),Xd=g(e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,l=b.useRef(null),s=b.useRef(null),[u,d]=RE({prop:n,defaultProp:o??!1,onChange:a,caller:xl});return q.jsx(L_,{scope:t,triggerRef:l,contentRef:s,contentId:qa(),titleId:qa(),descriptionId:qa(),open:u,onOpenChange:d,onOpenToggle:b.useCallback(()=>d(p=>!p),[d]),modal:i,children:r})},"Dialog");Xd.displayName=xl;var $w="DialogTrigger",Zd=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt($w,r),a=_r(t,o.triggerRef);return q.jsx(pr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":El(o.open),...n,ref:a,onClick:Pn(e.onClick,o.onOpenToggle)})});Zd.displayName=$w;var Jd="DialogPortal",[B_,Aw]=Cw(Jd,{forceMount:void 0}),Qd=g(e=>{let{__scopeDialog:t,forceMount:r,children:n,container:o}=e,a=Tt(Jd,t);return q.jsx(B_,{scope:t,forceMount:r,children:b.Children.map(n,i=>q.jsx(bl,{present:r||a.open,children:q.jsx(QE,{asChild:!0,container:o,children:i})}))})},"DialogPortal");Qd.displayName=Jd;var ki="DialogOverlay",ep=b.forwardRef((e,t)=>{let r=Aw(ki,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(ki,e.__scopeDialog);return a.modal?q.jsx(bl,{present:n||a.open,children:q.jsx(j_,{...o,ref:t})}):null});ep.displayName=ki;var N_=yl("DialogOverlay.RemoveScroll"),j_=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(ki,r);return q.jsx(F_,{as:N_,allowPinchZoom:!0,shards:[o.contentRef],children:q.jsx(pr.div,{"data-state":El(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),an="DialogContent",tp=b.forwardRef((e,t)=>{let r=Aw(an,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=Tt(an,e.__scopeDialog);return q.jsx(bl,{present:n||a.open,children:a.modal?q.jsx(M_,{...o,ref:t}):q.jsx(z_,{...o,ref:t})})});tp.displayName=an;var M_=b.forwardRef((e,t)=>{let r=Tt(an,e.__scopeDialog),n=b.useRef(null),o=_r(t,r.contentRef,n);return b.useEffect(()=>{let a=n.current;if(a)return P_(a)},[]),q.jsx(Dw,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Pn(e.onCloseAutoFocus,a=>{var i;a.preventDefault(),(i=r.triggerRef.current)==null||i.focus()}),onPointerDownOutside:Pn(e.onPointerDownOutside,a=>{let i=a.detail.originalEvent,l=i.button===0&&i.ctrlKey===!0;(i.button===2||l)&&a.preventDefault()}),onFocusOutside:Pn(e.onFocusOutside,a=>a.preventDefault())})}),z_=b.forwardRef((e,t)=>{let r=Tt(an,e.__scopeDialog),n=b.useRef(!1),o=b.useRef(!1);return q.jsx(Dw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g(a=>{var i,l;(i=e.onCloseAutoFocus)==null||i.call(e,a),a.defaultPrevented||(n.current||((l=r.triggerRef.current)==null||l.focus()),a.preventDefault()),n.current=!1,o.current=!1},"onCloseAutoFocus"),onInteractOutside:g(a=>{var l,s;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));let i=a.target;(s=r.triggerRef.current)!=null&&s.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()},"onInteractOutside")})}),Dw=b.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,l=Tt(an,r),s=b.useRef(null),u=_r(t,s);return nw(),q.jsxs(q.Fragment,{children:[q.jsx(qE,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:q.jsx(UE,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":El(l.open),...i,ref:u,onDismiss:g(()=>l.onOpenChange(!1),"onDismiss")})}),q.jsxs(q.Fragment,{children:[q.jsx(U_,{titleId:l.titleId}),q.jsx(V_,{contentRef:s,descriptionId:l.descriptionId})]})]})}),rp="DialogTitle",np=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(rp,r);return q.jsx(pr.h2,{id:o.titleId,...n,ref:t})});np.displayName=rp;var kw="DialogDescription",op=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(kw,r);return q.jsx(pr.p,{id:o.descriptionId,...n,ref:t})});op.displayName=kw;var Ow="DialogClose",ap=b.forwardRef((e,t)=>{let{__scopeDialog:r,...n}=e,o=Tt(Ow,r);return q.jsx(pr.button,{type:"button",...n,ref:t,onClick:Pn(e.onClick,()=>o.onOpenChange(!1))})});ap.displayName=Ow;function El(e){return e?"open":"closed"}g(El,"getState");var Fw="DialogTitleWarning",[H_,_w]=FE(Fw,{contentName:an,titleName:rp,docsSlug:"dialog"}),U_=g(({titleId:e})=>{let t=_w(Fw),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1000
|
+
|
|
1001
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
1002
|
+
|
|
1003
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return b.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},"TitleWarning"),W_="DialogDescriptionWarning",V_=g(({contentRef:e,descriptionId:t})=>{let r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${_w(W_).contentName}}.`;return b.useEffect(()=>{var o;let n=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},"DescriptionWarning"),Tw=Xd,q_=Zd,Rw=Qd,Pw=ep,Iw=tp,Lw=np,Bw=op,Nw=ap,jw={};oa(jw,{Actions:()=>e4,CloseButton:()=>Uw,Col:()=>Vw,Container:()=>Hw,Content:()=>X_,Description:()=>Q_,Error:()=>t4,ErrorWrapper:()=>qw,Header:()=>Z_,Overlay:()=>zw,Row:()=>Ww,Title:()=>J_});var Tr=b.forwardRef(({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:o="medium",disabled:a=!1,active:i=!1,onClick:l,...s},u)=>{let d="button";e&&(d=XF);let[p,c]=b.useState(!1),f=g(m=>{l&&l(m),t!=="none"&&c(!0)},"handleClick");return b.useEffect(()=>{let m=setTimeout(()=>{p&&c(!1)},1e3);return()=>clearTimeout(m)},[p]),y.createElement(G_,{as:d,ref:u,variant:n,size:r,padding:o,disabled:a,active:i,animating:p,animation:t,onClick:f,...s})});Tr.displayName="Button";var G_=T("button",{shouldForwardProp:g(e=>id(e),"shouldForwardProp")})(({theme:e,variant:t,size:r,disabled:n,active:o,animating:a,animation:i="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?pt(.9,e.barTextColor):"transparent",color:o?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:pt(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:pt(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${on(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 s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?pt(.86,e.color.secondary):e.base==="light"?On(.02,s):ug(.03,s)})()},"&:active":{color:t==="ghost"?e.color.secondary:void 0,background:(()=>{let s=e.color.secondary;return t==="solid"&&(s=e.color.secondary),t==="outline"&&(s=e.button.background),t==="ghost"?e.background.hoverable:e.base==="light"?On(.02,s):ug(.03,s)})()},"&:focus":{boxShadow:`${on(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:a&&i!=="none"?`${e.animation[i]} 1000ms ease-out`:""}})),Ar=b.forwardRef(({padding:e="small",variant:t="ghost",...r},n)=>y.createElement(Tr,{padding:e,variant:t,ref:n,...r}));Ar.displayName="IconButton";var Mw=_t({from:{opacity:0},to:{opacity:1}}),Y_=_t({from:{maxHeight:0},to:{}}),K_=_t({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),zw=T.div({backdropFilter:"blur(24px)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${Mw} 200ms`}),Hw=T.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:`${K_} 200ms`,"&:focus-visible":{outline:"none"}})),Uw=g(e=>y.createElement(Nw,{asChild:!0},y.createElement(Ar,{"aria-label":"Close",...e},y.createElement(BF,null))),"CloseButton"),X_=T.div({display:"flex",flexDirection:"column",margin:16,gap:16}),Ww=T.div({display:"flex",justifyContent:"space-between",gap:16}),Vw=T.div({display:"flex",flexDirection:"column",gap:4}),Z_=g(e=>y.createElement(Ww,null,y.createElement(Vw,{...e}),y.createElement(Uw,null)),"Header"),J_=T(Lw)(({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold})),Q_=T(Bw)(({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2})),e4=T.div({display:"flex",flexDirection:"row-reverse",gap:8}),qw=T.div(({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${Y_} 300ms, ${Mw} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}})),t4=g(({children:e,...t})=>y.createElement(qw,{...t},y.createElement("div",null,e)),"Error");function Gw({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:o=g(u=>u.preventDefault(),"onInteractOutside"),className:a,container:i,portalSelector:l,...s}){let u=i??(l?document.querySelector(l):null)??document.body;return y.createElement(Tw,{...s},y.createElement(Rw,{container:u},y.createElement(Pw,{asChild:!0},y.createElement(zw,null)),y.createElement(Iw,{asChild:!0,onInteractOutside:o,onEscapeKeyDown:n},y.createElement(Hw,{className:a,width:t,height:r},e))))}g(Gw,"BaseModal");var r4=Object.assign(Gw,jw,{Dialog:OE}),n4=g(e=>typeof e=="number"?e:Number(e),"toNumber"),o4=T.div(({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${gu}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${gu}`]:{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{}}}),a4=g(({col:e,row:t,outer:r,children:n,...o})=>{let a=n4(typeof r=="number"||!r?r:e||t);return y.createElement(o4,{col:e,row:t,outer:a,...o},n)},"Spaced"),i4=T.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),l4=T.div(),s4=T.div(({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})),u4=g(({children:e,...t})=>{let[r,n]=b.Children.toArray(e);return y.createElement(s4,{...t},y.createElement(i4,null,r),n&&y.createElement(l4,null,n))},"Placeholder");Ed();function Yw(e,t){var r=b.useRef(null),n=b.useRef(null);n.current=t;var o=b.useRef(null);b.useEffect(function(){a()});var a=b.useCallback(function(){var i=o.current,l=n.current,s=i||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return b.useEffect(function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}},[]),b.useCallback(function(i){o.current=i,a()},[a])}g(Yw,"useResolvedElement");function Yu(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}g(Yu,"extractSize");function ip(e){e===void 0&&(e={});var t=e.onResize,r=b.useRef(void 0);r.current=t;var n=e.round||Math.round,o=b.useRef(),a=b.useState({width:void 0,height:void 0}),i=a[0],l=a[1],s=b.useRef(!1);b.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);var u=b.useRef({width:void 0,height:void 0}),d=Yw(b.useCallback(function(p){return(!o.current||o.current.box!==e.box||o.current.round!==n)&&(o.current={box:e.box,round:n,instance:new ResizeObserver(function(c){var f=c[0],m=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",h=Yu(f,m,"inlineSize"),v=Yu(f,m,"blockSize"),E=h?n(h):void 0,w=v?n(v):void 0;if(u.current.width!==E||u.current.height!==w){var S={width:E,height:w};u.current.width=E,u.current.height=w,r.current?r.current(S):s.current||l(S)}})}),o.current.instance.observe(p,{box:e.box}),function(){o.current&&o.current.instance.unobserve(p)}},[e.box,n]),e.ref);return b.useMemo(function(){return{ref:d,width:i.width,height:i.height}},[d,i.width,i.height])}g(ip,"useResizeObserver");var c4=T.div(({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`}));function Kw({centered:e,scale:t,children:r}){let n=b.useRef(null),[o,a]=b.useState(0),i=b.useCallback(({height:l})=>{l&&a(l/t)},[t]);return b.useEffect(()=>{n.current&&a(n.current.getBoundingClientRect().height)},[t]),ip({ref:n,onResize:i}),y.createElement(c4,{centered:e,scale:t,elementHeight:o},y.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}g(Kw,"ZoomElement");var Xw=class extends b.Component{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 y.createElement(y.Fragment,null,t)}};g(Xw,"ZoomIFrame");var d4=Xw,Zw={Element:Kw,IFrame:d4};const{global:p4}=__STORYBOOK_MODULE_GLOBAL__;var{document:f4}=p4,m4=T.strong(({theme:e})=>({color:e.color.orange})),g4=T.strong(({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"})),bg=T.em(({theme:e})=>({color:e.textMutedColor})),h4=/(Error): (.*)\n/,y4=/at (?:(.*) )?\(?(.+)\)?/,b4=/([^@]+)?(?:\/<)?@(.+)?/,v4=/([^@]+)?@(.+)?/,Jw=g(({error:e})=>{if(!e)return y.createElement(b.Fragment,null,"This error has no stack or message");if(!e.stack)return y.createElement(b.Fragment,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}
|
|
1004
|
+
|
|
1005
|
+
${t}`);let r=t.match(h4);if(!r)return y.createElement(b.Fragment,null,t);let[,n,o]=r,a=t.split(/\n/).slice(1),[,...i]=a.map(l=>{let s=l.match(y4)||l.match(b4)||l.match(v4);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(f4.location.origin,"")}:null}).filter(Boolean);return y.createElement(b.Fragment,null,y.createElement("span",null,n),": ",y.createElement(m4,null,o),y.createElement("br",null),i.map((l,s)=>l!=null&&l.name?y.createElement(b.Fragment,{key:s}," ","at ",y.createElement(g4,null,l.name)," (",y.createElement(bg,null,l.location),")",y.createElement("br",null)):y.createElement(b.Fragment,{key:s}," ","at ",y.createElement(bg,null,l==null?void 0:l.location),y.createElement("br",null))))},"ErrorFormatter"),x4=T.input({appearance:"none",display:"grid",placeContent:"center",width:14,height:14,flexShrink:0,margin:0,border:`1px solid ${K.border}`,borderRadius:2,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:K.medium},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:K.mediumdark},"&:checked, &:indeterminate":{backgroundColor:K.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 ${K.secondary}`,outlineOffset:1}}),E4=g(e=>y.createElement(x4,{...e,type:"checkbox"}),"Checkbox"),w4=T.label(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}})),S4=T.span(({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"})),C4=g(({label:e,children:t,...r})=>y.createElement(w4,{...r},e?y.createElement(S4,null,y.createElement("span",null,e)):null,t),"Field"),lp=g(({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};case"auto":default:return{display:"inline"}}},"sizes"),Qw=g(({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};case"start":default:return{textAlign:"left"}}},"alignment"),eS=g(({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"),$4={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},tS=g(({theme:e})=>({...$4,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"),A4=Object.assign(T(b.forwardRef(g(function({size:e,valid:t,align:r,...n},o){return y.createElement("input",{...n,ref:o})},"Input")))(tS,lp,Qw,eS,{minHeight:32}),{displayName:"Input"}),D4=T.input({appearance:"none",display:"grid",placeContent:"center",width:16,height:16,flexShrink:0,margin:-1,border:`1px solid ${K.border}`,borderRadius:8,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:K.medium},"&:disabled:checked":{backgroundColor:K.mediumdark},"&:checked":{backgroundColor:K.secondary,boxShadow:"inset 0 0 0 2px white"},"&:enabled:focus-visible":{outline:`1px solid ${K.secondary}`,outlineOffset:1}}),k4=g(e=>y.createElement(D4,{...e,type:"radio"}),"Radio");function rS(){var e,t,r;try{return!!globalThis.__vitest_browser__||!!((r=(t=(e=globalThis.window)==null?void 0:e.navigator)==null?void 0:t.userAgent)!=null&&r.match(/StorybookTestRunner/))}catch{return!1}}g(rS,"isTestEnvironment");var O4=T.select(lp,({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"?Sn(e.background.app):e.background.app,filter:`
|
|
1006
|
+
drop-shadow(0 5px 5px rgba(0,0,0,0.05))
|
|
1007
|
+
drop-shadow(0 0 3px rgba(0,0,0,0.1))
|
|
1008
|
+
`,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}}})),F4=g(({children:e,...t})=>y.createElement(O4,{...t},!rS()&&y.createElement("button",null,y.createElement("selectedcontent",null),y.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"},y.createElement("path",{d:"m6 9 6 6 6-6"}))),y.createElement("optgroup",null,e)),"Select");rl();cd();var _4=b.useLayoutEffect,T4=g(function(e){var t=y.useRef(e);return _4(function(){t.current=e}),t},"useLatest"),vg=g(function(e,t){if(typeof e=="function"){e(t);return}e.current=t},"updateRef"),R4=g(function(e,t){var r=y.useRef();return y.useCallback(function(n){e.current=n,r.current&&vg(r.current,null),r.current=t,t&&vg(t,n)},[t])},"useComposedRef"),xg={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},P4=g(function(e){Object.keys(xg).forEach(function(t){e.style.setProperty(t,xg[t],"important")})},"forceHiddenStyles"),Eg=P4,qe=null,wg=g(function(e,t){var r=e.scrollHeight;return t.sizingStyle.boxSizing==="border-box"?r+t.borderSize:r-t.paddingSize},"getHeight");function nS(e,t,r,n){r===void 0&&(r=1),n===void 0&&(n=1/0),qe||(qe=document.createElement("textarea"),qe.setAttribute("tabindex","-1"),qe.setAttribute("aria-hidden","true"),Eg(qe)),qe.parentNode===null&&document.body.appendChild(qe);var o=e.paddingSize,a=e.borderSize,i=e.sizingStyle,l=i.boxSizing;Object.keys(i).forEach(function(c){var f=c;qe.style[f]=i[f]}),Eg(qe),qe.value=t;var s=wg(qe,e);qe.value=t,s=wg(qe,e),qe.value="x";var u=qe.scrollHeight-o,d=u*r;l==="border-box"&&(d=d+o+a),s=Math.max(d,s);var p=u*n;return l==="border-box"&&(p=p+o+a),s=Math.min(p,s),[s,u]}g(nS,"calculateNodeHeight");var Sg=g(function(){},"noop"),I4=g(function(e,t){return e.reduce(function(r,n){return r[n]=t[n],r},{})},"pick"),L4=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],B4=!!document.documentElement.currentStyle,N4=g(function(e){var t=window.getComputedStyle(e);if(t===null)return null;var r=I4(L4,t),n=r.boxSizing;if(n==="")return null;B4&&n==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var o=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),a=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:o,borderSize:a}},"getSizingData"),j4=N4;function wl(e,t,r){var n=T4(r);b.useLayoutEffect(function(){var o=g(function(a){return n.current(a)},"handler");if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}g(wl,"useListener");var M4=g(function(e,t){wl(document.body,"reset",function(r){e.current.form===r.target&&t(r)})},"useFormResetListener"),z4=g(function(e){wl(window,"resize",e)},"useWindowResizeListener"),H4=g(function(e){wl(document.fonts,"loadingdone",e)},"useFontsLoadedListener"),U4=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],W4=g(function(e,t){var r=e.cacheMeasurements,n=e.maxRows,o=e.minRows,a=e.onChange,i=a===void 0?Sg:a,l=e.onHeightChange,s=l===void 0?Sg:l,u=ol(e,U4),d=u.value!==void 0,p=b.useRef(null),c=R4(p,t),f=b.useRef(0),m=b.useRef(),h=g(function(){var E=p.current,w=r&&m.current?m.current:j4(E);if(w){m.current=w;var S=nS(w,E.value||E.placeholder||"x",o,n),x=S[0],$=S[1];f.current!==x&&(f.current=x,E.style.setProperty("height",x+"px","important"),s(x,{rowHeight:$}))}},"resizeTextarea"),v=g(function(E){d||h(),i(E)},"handleChange");return b.useLayoutEffect(h),M4(p,function(){if(!d){var E=p.current.value;requestAnimationFrame(function(){var w=p.current;w&&E!==w.value&&h()})}}),z4(h),H4(h),b.createElement("textarea",xe({},u,{onChange:v,ref:c}))},"TextareaAutosize"),V4=b.forwardRef(W4),q4=Object.assign(T(b.forwardRef(g(function({size:e,valid:t,align:r,...n},o){return y.createElement(V4,{...n,ref:o})},"Textarea")))(tS,lp,Qw,eS,({height:e=400})=>({overflow:"visible",maxHeight:e})),{displayName:"Textarea"}),co=Object.assign(T.form({boxSizing:"border-box",width:"100%"}),{Field:C4,Input:A4,Select:F4,Textarea:q4,Button:Tr,Checkbox:E4,Radio:k4}),G4=b.lazy(()=>Promise.resolve().then(()=>(jd(),Nd)).then(e=>({default:e.WithTooltip}))),Y4=g(e=>y.createElement(b.Suspense,{fallback:y.createElement("div",null)},y.createElement(G4,{...e})),"WithTooltip"),K4=b.lazy(()=>Promise.resolve().then(()=>(jd(),Nd)).then(e=>({default:e.WithTooltipPure}))),oS=g(e=>y.createElement(b.Suspense,{fallback:y.createElement("div",null)},y.createElement(K4,{...e})),"WithTooltipPure"),X4=T.div(({theme:e})=>({fontWeight:e.typography.weight.bold})),Z4=T.span(),J4=T.div(({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}})),Q4=T.div(({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"})),eT=T.div({padding:15,width:280,boxSizing:"border-box"}),tT=g(({title:e,desc:t,links:r})=>y.createElement(eT,null,y.createElement(Q4,null,e&&y.createElement(X4,null,e),t&&y.createElement(Z4,null,t)),r&&y.createElement(J4,null,r.map(({title:n,...o})=>y.createElement(Qn,{...o,key:n},n)))),"TooltipMessage"),rT=T.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})),nT=g(({note:e,...t})=>y.createElement(rT,{...t},e),"TooltipNote"),oT=je(nl(),1),aT=T(({active:e,loading:t,disabled:r,...n})=>y.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}:{}),iT=T.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),lT=T.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},({isIndented:e})=>e?{marginLeft:24}:{}),sT=T.span(({theme:e})=>({fontSize:"11px",lineHeight:"14px"}),({active:e,theme:t})=>e?{color:t.color.secondary}:{},({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{}),uT=T.span(({active:e,theme:t})=>e?{color:t.color.secondary}:{},()=>({display:"flex",maxWidth:14})),cT=T.div(({theme:e})=>({width:"100%",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"}),dT=(0,oT.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}}})),pT=g(e=>{let{loading:t=!1,title:r=y.createElement("span",null,"Loading state"),center:n=null,right:o=null,active:a=!1,disabled:i=!1,isIndented:l=!1,href:s=void 0,onClick:u=void 0,icon:d,input:p,LinkWrapper:c=void 0,...f}=e,m={active:a,disabled:i},h=dT(e),v=d||p;return y.createElement(cT,{...f,...m,...h},y.createElement(y.Fragment,null,v&&y.createElement(uT,{...m},v),r||n?y.createElement(lT,{isIndented:l&&!v},r&&y.createElement(aT,{...m,loading:t},r),n&&y.createElement(sT,{...m},n)):null,o&&y.createElement(iT,{...m},o)))},"ListItem"),aS=pT,fT=T.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}:{}),mT=T.div(({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}})),gT=g(({id:e,onClick:t,...r})=>{let{active:n,disabled:o,title:a,href:i}=r,l=b.useCallback(s=>t==null?void 0:t(s,{id:e,active:n,disabled:o,title:a,href:i}),[t,e,n,o,a,i]);return y.createElement(aS,{id:`list-item-${e}`,...r,...t&&{onClick:l}})},"Item"),iS=g(({links:e,LinkWrapper:t,...r})=>{let n=Array.isArray(e[0])?e:[e],o=n.some(a=>a.some(i=>"icon"in i&&i.icon||"input"in i&&i.input));return y.createElement(fT,{...r},n.filter(a=>a.length).map((a,i)=>y.createElement(mT,{key:a.map(l=>l.id).join(`~${i}~`)},a.map(l=>"content"in l?y.createElement(b.Fragment,{key:l.id},l.content):y.createElement(gT,{key:l.id,isIndented:o,LinkWrapper:t,...l})))))},"TooltipLinkList");Ed();var Ku=T.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}:{});Ku.displayName="Side";var hT=g(({children:e,className:t,scrollable:r})=>r?y.createElement(Ko,{vertical:!1,className:t},e):y.createElement("div",{className:t},e),"UnstyledBar"),sp=T(hT)(({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}:{});sp.displayName="Bar";var yT=T.div(({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""})),Sl=g(({children:e,backgroundColor:t,className:r,...n})=>{let[o,a]=b.Children.toArray(e);return y.createElement(sp,{backgroundColor:t,className:`sb-bar ${r}`,...n},y.createElement(yT,{bgColor:t},y.createElement(Ku,{scrollable:n.scrollable,left:!0},o),a?y.createElement(Ku,{right:!0},a):null))},"FlexBar");Sl.displayName="FlexBar";var bT=g(e=>typeof e.props.href=="string","isLink"),vT=g(e=>typeof e.props.href!="string","isButton");function lS({children:e,...t},r){let n={props:t,ref:r};if(bT(n))return y.createElement("a",{ref:n.ref,...n.props},e);if(vT(n))return y.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}g(lS,"ForwardRefFunction");var sS=b.forwardRef(lS);sS.displayName="ButtonOrLink";var da=T(sS,{shouldForwardProp:id})({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}});da.displayName="TabButton";var xT=T.div(({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content})),ET=T.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),wT=T.div(({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor})),ST=T.div(({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor})),Cl=g(({title:e,description:t,footer:r})=>y.createElement(xT,null,y.createElement(ET,null,y.createElement(wT,null,e),t&&y.createElement(ST,null,t)),r),"EmptyTabContent"),uS=T.div(({active:e})=>e?{display:"block"}:{display:"none"}),CT=g(e=>b.Children.toArray(e).map(({props:{title:t,id:r,color:n,children:o}})=>{let a=Array.isArray(o)?o[0]:o;return{title:t,id:r,...n?{color:n}:{},render:typeof a=="function"?a:({active:i})=>y.createElement(uS,{active:i,role:"tabpanel"},a)}}),"childrenToList");jd();var $T=T.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"})),AT=T(da)(({active:e,theme:t,preActive:r})=>`
|
|
1009
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
1010
|
+
.addon-collapsible-icon {
|
|
1011
|
+
color: ${r||e?t.barSelectedColor:t.barTextColor};
|
|
1012
|
+
}
|
|
1013
|
+
&:hover {
|
|
1014
|
+
color: ${t.barHoverColor};
|
|
1015
|
+
.addon-collapsible-icon {
|
|
1016
|
+
color: ${t.barHoverColor};
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
`);function cS(e){let t=b.useRef(),r=b.useRef(),n=b.useRef(new Map),{width:o=1}=ip({ref:t}),[a,i]=b.useState(e),[l,s]=b.useState([]),u=b.useRef(e),d=b.useCallback(({menuName:c,actions:f})=>{let m=l.some(({active:E})=>E),[h,v]=b.useState(!1);return y.createElement(y.Fragment,null,y.createElement($i,{interactive:!0,visible:h,onVisibleChange:v,placement:"bottom",delayHide:100,tooltip:y.createElement(iS,{links:l.map(({title:E,id:w,color:S,active:x})=>({id:w,title:E,color:S,active:x,onClick:g($=>{$.preventDefault(),f.onSelect(w)},"onClick")}))})},y.createElement(AT,{id:"addons-menu-button",ref:r,active:m,preActive:h,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},c,y.createElement($T,{className:"addon-collapsible-icon",isActive:m||h}))),l.map(({title:E,id:w,color:S},x)=>{let $=`index-${x}`;return y.createElement(da,{id:`tabbutton-${qi(w)??$}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:A=>{n.current.set(w,A)},className:"tabbutton",type:"button",key:w,textColor:S,role:"tab"},E)}))},[l]),p=b.useCallback(()=>{if(!t.current||!r.current)return;let{x:c,width:f}=t.current.getBoundingClientRect(),{width:m}=r.current.getBoundingClientRect(),h=l.length?c+f-m:c+f,v=[],E=0,w=e.filter(S=>{let{id:x}=S,$=n.current.get(x),{width:A=0}=($==null?void 0:$.getBoundingClientRect())||{},C=c+E+A>h;return(!C||!$)&&v.push(S),E+=A,C});(v.length!==a.length||u.current!==e)&&(i(v),s(w),u.current=e)},[l.length,e,a]);return b.useLayoutEffect(p,[p,o]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:a,invisibleList:l,AddonTab:d}}g(cS,"useList");var DT="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",kT=T.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"}),up=T.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});up.displayName="TabBar";var OT=T.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${DT}`]:{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"}}:{}),FT=g(({active:e,render:t,children:r})=>y.createElement(uS,{active:e},t?t():r),"TabWrapper"),dS=class extends b.Component{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?y.createElement(Cl,{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}};g(dS,"TabErrorBoundary");var _T=dS,cp=b.memo(({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:o=!1,tools:a=null,backgroundColor:i,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:d})=>{let p=b.useMemo(()=>CT(e).map((E,w)=>({...E,active:t?E.id===t:w===0})),[e,t]),{visibleList:c,tabBarRef:f,tabRefs:m,AddonTab:h}=cS(p),v=u??y.createElement(Cl,{title:"Nothing found"});return!d&&p.length===0?v:y.createElement(kT,{absolute:n,bordered:o,id:l},y.createElement(Sl,{scrollable:!1,border:!0,backgroundColor:i},y.createElement(up,{style:{whiteSpace:"normal"},ref:f,role:"tablist"},c.map(({title:E,id:w,active:S,color:x},$)=>{let A=`index-${$}`;return y.createElement(da,{id:`tabbutton-${qi(w)??A}`,ref:C=>{m.current.set(w,C)},className:`tabbutton ${S?"tabbutton-active":""}`,type:"button",key:w,active:S,textColor:x,onClick:C=>{C.preventDefault(),r.onSelect(w)},role:"tab"},typeof E=="function"?y.createElement("title",null):E)}),y.createElement(h,{menuName:s,actions:r})),a),y.createElement(OT,{id:"panel-tab-content",bordered:o,absolute:n},p.length?p.map(({id:E,active:w,render:S})=>y.createElement(_T,{key:E,active:w},y.createElement(S,{active:w},null))):v))});cp.displayName="Tabs";var Xu=class extends b.Component{constructor(t){super(t),this.handlers={onSelect:g(r=>this.setState({selected:r}),"onSelect")},this.state={selected:t.initial}}render(){let{bordered:t=!1,absolute:r=!1,children:n,backgroundColor:o,menuName:a}=this.props,{selected:i}=this.state;return y.createElement(cp,{bordered:t,absolute:r,selected:i,backgroundColor:o,menuName:a,actions:this.handlers},n)}};g(Xu,"TabsState"),Xu.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var pS=Xu,dp=T.span(({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2}),({force:e})=>e?{}:{"& + &":{display:"none"}});dp.displayName="Separator";var TT=g(e=>e.reduce((t,r,n)=>r?y.createElement(b.Fragment,{key:r.id||r.key||`f-${n}`},t,n>0?y.createElement(dp,{key:`s-${n}`}):null,r.render()||r):t,null),"interleaveSeparators"),RT=g(e=>{let t=b.useRef();return b.useEffect(()=>{t.current=e},[e]),t.current},"usePrevious"),PT=g((e,t)=>{let r=RT(t);return e?t:r},"useUpdate"),IT=g(({active:e,children:t})=>y.createElement("div",{hidden:!e},PT(e,t)),"AddonPanel"),LT=g(({alt:e,...t})=>y.createElement("svg",{width:"200px",height:"40px",viewBox:"0 0 200 40",...t,role:"img"},e?y.createElement("title",null,e):null,y.createElement("defs",null,y.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"})),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.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"}),y.createElement("mask",{id:"b",fill:"#fff"},y.createElement("use",{xlinkHref:"#a"})),y.createElement("use",{fill:"#FF4785",fillRule:"nonzero",xlinkHref:"#a"}),y.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"),BT=g(e=>y.createElement("svg",{viewBox:"0 0 64 64",...e},y.createElement("title",null,"Storybook icon"),y.createElement("g",{id:"Artboard",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},y.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"}),y.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"}),y.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"),NT=_t`
|
|
1020
|
+
from {
|
|
1021
|
+
transform: rotate(0deg);
|
|
1022
|
+
}
|
|
1023
|
+
to {
|
|
1024
|
+
transform: rotate(360deg);
|
|
1025
|
+
}
|
|
1026
|
+
`,jT=T.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:`${NT} 0.7s linear infinite`,mixBlendMode:"difference"})),Cg=T.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),MT=T.div(({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:pt(.8,e.color.secondary),overflow:"hidden",cursor:"progress"})),zT=T.div(({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary})),$g=T.div(({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor})),HT=T(LF)(({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor})),UT=_t`
|
|
1027
|
+
from { content: "..." }
|
|
1028
|
+
33% { content: "." }
|
|
1029
|
+
66% { content: ".." }
|
|
1030
|
+
to { content: "..." }
|
|
1031
|
+
`,WT=T.span({"&::after":{content:"'...'",animation:`${UT} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),fS=g(({progress:e,error:t,size:r,...n})=>{if(t)return y.createElement(Cg,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},y.createElement(HT,null),y.createElement($g,null,t.message));if(e){let{value:o,modules:a}=e,{message:i}=e;return a&&(i+=` ${a.complete} / ${a.total} modules`),y.createElement(Cg,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o*100,"aria-valuetext":i,role:"progressbar",...n},y.createElement(MT,null,y.createElement(zT,{style:{width:`${o*100}%`}})),y.createElement($g,null,i,o<1&&y.createElement(WT,{key:i})))}return y.createElement(jT,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})},"Loader"),bs="http://www.w3.org/2000/svg",VT=_t({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ag=T.div(({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e})),vs=T.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:`${VT} 1s linear infinite`,circle:{opacity:.25}}),qT=g(({percentage:e=void 0,running:t=!0,size:r=24,width:n=1.5,children:o=null,...a})=>typeof e=="number"?y.createElement(Ag,{size:r,...a},o,y.createElement(vs,{size:r,width:n,xmlns:bs},y.createElement("circle",null)),t&&y.createElement(vs,{size:r,width:n,xmlns:bs,spinner:!0},y.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)})),y.createElement(vs,{size:r,width:n,xmlns:bs,progress:!0},y.createElement("circle",{strokeDashoffset:Math.PI*(r-Math.ceil(n))*(1-e/100)}))):y.createElement(Ag,{size:r,...a},o),"ProgressSpinner");function mS(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}g(mS,"parseQuery");var gS=g((e,t,r={})=>{let[n,o]=e.split("?"),a=o?{...mS(o),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(a).map(i=>`${i[0]}=${i[1]}`).join("&")}`},"getStoryHref"),GT=T.pre`
|
|
1032
|
+
line-height: 18px;
|
|
1033
|
+
padding: 11px 1rem;
|
|
1034
|
+
white-space: pre-wrap;
|
|
1035
|
+
background: rgba(0, 0, 0, 0.05);
|
|
1036
|
+
color: ${K.darkest};
|
|
1037
|
+
border-radius: 3px;
|
|
1038
|
+
margin: 1rem 0;
|
|
1039
|
+
width: 100%;
|
|
1040
|
+
display: block;
|
|
1041
|
+
overflow: hidden;
|
|
1042
|
+
font-family: ${Ht.fonts.mono};
|
|
1043
|
+
font-size: ${Ht.size.s2-1}px;
|
|
1044
|
+
`,YT=g(({code:e,...t})=>y.createElement(GT,{id:"clipboard-code",...t},e),"ClipboardCode"),hS=kE,yS={};Object.keys(kE).forEach(e=>{yS[e]=b.forwardRef((t,r)=>b.createElement(e,{...t,ref:r}))});const KT=Object.freeze(Object.defineProperty({__proto__:null,A:cE,get ActionBar(){return il},AddonPanel:IT,Badge:IF,Bar:sp,Blockquote:dE,Button:Tr,ClipboardCode:YT,Code:Ud,DL:pE,Div:fE,DocumentWrapper:WF,EmptyTabContent:Cl,ErrorFormatter:Jw,FlexBar:Sl,Form:co,H1:mE,H2:Wd,H3:Vd,H4:gE,H5:hE,H6:yE,HR:bE,IconButton:Ar,Img:vE,LI:xE,Link:Qn,ListItem:aS,Loader:fS,Modal:r4,OL:EE,P:wE,Placeholder:u4,Pre:SE,ProgressSpinner:qT,ResetWrapper:Hd,get ScrollArea(){return Ko},Separator:dp,Spaced:a4,Span:CE,StorybookIcon:BT,StorybookLogo:LT,SyntaxHighlighter:hl,TT:$E,TabBar:up,TabButton:da,TabWrapper:FT,Table:AE,Tabs:cp,TabsState:pS,TooltipLinkList:iS,TooltipMessage:tT,TooltipNote:nT,UL:DE,WithTooltip:Y4,WithTooltipPure:oS,Zoom:Zw,codeCommon:dr,components:hS,createCopyToClipboardFunction:Ei,getStoryHref:gS,interleaveSeparators:TT,nameSpaceClassNames:ve,resetComponents:yS,withReset:we},Symbol.toStringTag,{value:"Module"}));var XT=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:e}))),ZT=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:e}))),JT=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:e}))),QT=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:e}))),eR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:e}),b.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:e}))),Zu=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:e}))),VN=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:e}))),tR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:e}))),rR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:e}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:e}))),nR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:e}),b.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:e}))),oR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:e}))),aR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e}))),iR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:e}))),bS=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:e}))),lR=b.forwardRef(({color:e="currentColor",size:t=14,...r},n)=>b.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},b.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:e})));function sR(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,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map(function(d){var p,c;return(c=(p=d.match(/[\t ]/g))===null||p===void 0?void 0:p.length)!==null&&c!==void 0?c:0})):l},[]);if(o.length){var a=new RegExp(`
|
|
1045
|
+
[ ]{`+Math.min.apply(Math,o)+"}","g");n=n.map(function(l){return l.replace(a,`
|
|
1046
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,s){var u=i.match(/(?:^|\n)( *)$/),d=u?u[1]:"",p=l;typeof l=="string"&&l.includes(`
|
|
1047
|
+
`)&&(p=String(l).split(`
|
|
1048
|
+
`).map(function(c,f){return f===0?c:""+d+c}).join(`
|
|
1049
|
+
`)),i+=p+n[s+1]}),i}const{deprecate:uR,once:cR,logger:pp}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{NAVIGATE_URL:vS,STORY_ARGS_UPDATED:Dg,UPDATE_STORY_ARGS:dR,RESET_STORY_ARGS:pR,GLOBALS_UPDATED:kg}=__STORYBOOK_MODULE_CORE_EVENTS__,{filterArgTypes:Og,composeConfigs:qN,Preview:GN,DocsContext:YN}=__STORYBOOK_MODULE_PREVIEW_API__,{Channel:KN}=__STORYBOOK_MODULE_CHANNELS__;var fR=c3({"../../node_modules/memoizerific/memoizerific.js"(e,t){(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return function r(n,o,a){function i(u,d){if(!o[u]){if(!n[u]){var p=typeof va=="function"&&va;if(!d&&p)return p(u,!0);if(l)return l(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=o[u]={exports:{}};n[u][0].call(f.exports,function(m){var h=n[u][1][m];return i(h||m)},f,f.exports,r,n,o,a)}return o[u].exports}for(var l=typeof va=="function"&&va,s=0;s<a.length;s++)i(a[s]);return i}({1:[function(r,n,o){n.exports=function(a){if(typeof Map!="function"||a){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,o){function a(){return this.list=[],this.lastItem=void 0,this.size=0,this}a.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},a.prototype.set=function(i,l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(s=this.indexOf(i),s>=0?(this.lastItem=this.list[s],this.list[s].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},a.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},a.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},a.prototype.forEach=function(i,l){var s;for(s=0;s<this.size;s++)i.call(l||this,this.list[s].val,this.list[s].key,this)},a.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},a.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=a},{}],3:[function(r,n,o){var a=r("map-or-similar");n.exports=function(u){var d=new a(!1),p=[];return function(c){var f=function(){var m=d,h,v,E=arguments.length-1,w=Array(E+1),S=!0,x;if((f.numArgs||f.numArgs===0)&&f.numArgs!==E+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(x=0;x<E;x++){if(w[x]={cacheItem:m,arg:arguments[x]},m.has(arguments[x])){m=m.get(arguments[x]);continue}S=!1,h=new a(!1),m.set(arguments[x],h),m=h}return S&&(m.has(arguments[E])?v=m.get(arguments[E]):S=!1),S||(v=c.apply(null,arguments),m.set(arguments[E],v)),u>0&&(w[E]={cacheItem:m,arg:arguments[E]},S?i(p,w):p.push(w),p.length>u&&l(p.shift())),f.wasMemoized=S,f.numArgs=E+1,v};return f.limit=u,f.wasMemoized=!1,f.cache=d,f.lru=p,f}};function i(u,d){var p=u.length,c=d.length,f,m,h;for(m=0;m<p;m++){for(f=!0,h=0;h<c;h++)if(!s(u[m][h].arg,d[h].arg)){f=!1;break}if(f)break}u.push(u.splice(m,1)[0])}function l(u){var d=u.length,p=u[d-1],c,f;for(p.cacheItem.delete(p.arg),f=d-2;f>=0&&(p=u[f],c=p.cacheItem.get(p.arg),!c||!c.size);f--)p.cacheItem.delete(p.arg)}function s(u,d){return u===d||u!==u&&d!==d}},{"map-or-similar":1}]},{},[3])(3)})}});function et(){return et=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},et.apply(null,arguments)}function mR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qo(e,t){return Qo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qo(e,t)}function gR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Qo(e,t)}function Ju(e){return Ju=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ju(e)}function hR(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function xS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xS=function(){return!!e})()}function yR(e,t,r){if(xS())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&Qo(o,r.prototype),o}function Qu(e){var t=typeof Map=="function"?new Map:void 0;return Qu=function(r){if(r===null||!hR(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return yR(r,arguments,Ju(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Qo(n,r)},Qu(e)}var bR={1:`Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
|
1050
|
+
|
|
1051
|
+
`,2:`Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
|
1052
|
+
|
|
1053
|
+
`,3:`Passed an incorrect argument to a color function, please pass a string representation of a color.
|
|
1054
|
+
|
|
1055
|
+
`,4:`Couldn't generate valid rgb string from %s, it returned %s.
|
|
1056
|
+
|
|
1057
|
+
`,5:`Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
|
1058
|
+
|
|
1059
|
+
`,6:`Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
|
1060
|
+
|
|
1061
|
+
`,7:`Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
|
1062
|
+
|
|
1063
|
+
`,8:`Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
|
1064
|
+
|
|
1065
|
+
`,9:`Please provide a number of steps to the modularScale helper.
|
|
1066
|
+
|
|
1067
|
+
`,10:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
1068
|
+
|
|
1069
|
+
`,11:`Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
|
1070
|
+
|
|
1071
|
+
`,12:`Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
|
1072
|
+
|
|
1073
|
+
`,13:`Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
|
1074
|
+
|
|
1075
|
+
`,14:`Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
1076
|
+
|
|
1077
|
+
`,15:`Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
|
1078
|
+
|
|
1079
|
+
`,16:`You must provide a template to this method.
|
|
1080
|
+
|
|
1081
|
+
`,17:`You passed an unsupported selector state to this method.
|
|
1082
|
+
|
|
1083
|
+
`,18:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
1084
|
+
|
|
1085
|
+
`,19:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
1086
|
+
|
|
1087
|
+
`,20:`expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
1088
|
+
|
|
1089
|
+
`,21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:`fontFace expects a name of a font-family.
|
|
1090
|
+
|
|
1091
|
+
`,24:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
1092
|
+
|
|
1093
|
+
`,25:`fontFace expects localFonts to be an array.
|
|
1094
|
+
|
|
1095
|
+
`,26:`fontFace expects fileFormats to be an array.
|
|
1096
|
+
|
|
1097
|
+
`,27:`radialGradient requries at least 2 color-stops to properly render.
|
|
1098
|
+
|
|
1099
|
+
`,28:`Please supply a filename to retinaImage() as the first argument.
|
|
1100
|
+
|
|
1101
|
+
`,29:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
1102
|
+
|
|
1103
|
+
`,30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
|
1104
|
+
|
|
1105
|
+
`,32:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
|
1106
|
+
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
|
1107
|
+
|
|
1108
|
+
`,33:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
|
1109
|
+
|
|
1110
|
+
`,34:`borderRadius expects a radius value as a string or number as the second argument.
|
|
1111
|
+
|
|
1112
|
+
`,35:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
1113
|
+
|
|
1114
|
+
`,36:`Property must be a string value.
|
|
1115
|
+
|
|
1116
|
+
`,37:`Syntax Error at %s.
|
|
1117
|
+
|
|
1118
|
+
`,38:`Formula contains a function that needs parentheses at %s.
|
|
1119
|
+
|
|
1120
|
+
`,39:`Formula is missing closing parenthesis at %s.
|
|
1121
|
+
|
|
1122
|
+
`,40:`Formula has too many closing parentheses at %s.
|
|
1123
|
+
|
|
1124
|
+
`,41:`All values in a formula must have the same unit or be unitless.
|
|
1125
|
+
|
|
1126
|
+
`,42:`Please provide a number of steps to the modularScale helper.
|
|
1127
|
+
|
|
1128
|
+
`,43:`Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
|
1129
|
+
|
|
1130
|
+
`,44:`Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
|
1131
|
+
|
|
1132
|
+
`,45:`Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
|
1133
|
+
|
|
1134
|
+
`,46:`Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
|
1135
|
+
|
|
1136
|
+
`,47:`minScreen and maxScreen must be provided as stringified numbers with the same units.
|
|
1137
|
+
|
|
1138
|
+
`,48:`fromSize and toSize must be provided as stringified numbers with the same units.
|
|
1139
|
+
|
|
1140
|
+
`,49:`Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
|
1141
|
+
|
|
1142
|
+
`,50:`Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
|
1143
|
+
|
|
1144
|
+
`,51:`Expects the first argument object to have the properties prop, fromSize, and toSize.
|
|
1145
|
+
|
|
1146
|
+
`,52:`fontFace expects either the path to the font file(s) or a name of a local copy.
|
|
1147
|
+
|
|
1148
|
+
`,53:`fontFace expects localFonts to be an array.
|
|
1149
|
+
|
|
1150
|
+
`,54:`fontFace expects fileFormats to be an array.
|
|
1151
|
+
|
|
1152
|
+
`,55:`fontFace expects a name of a font-family.
|
|
1153
|
+
|
|
1154
|
+
`,56:`linearGradient requries at least 2 color-stops to properly render.
|
|
1155
|
+
|
|
1156
|
+
`,57:`radialGradient requries at least 2 color-stops to properly render.
|
|
1157
|
+
|
|
1158
|
+
`,58:`Please supply a filename to retinaImage() as the first argument.
|
|
1159
|
+
|
|
1160
|
+
`,59:`Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
|
1161
|
+
|
|
1162
|
+
`,60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:`Property must be a string value.
|
|
1163
|
+
|
|
1164
|
+
`,62:`borderRadius expects a radius value as a string or number as the second argument.
|
|
1165
|
+
|
|
1166
|
+
`,63:`borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
|
1167
|
+
|
|
1168
|
+
`,64:`The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
|
1169
|
+
|
|
1170
|
+
`,65:`To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
|
1171
|
+
|
|
1172
|
+
`,66:`The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
|
1173
|
+
|
|
1174
|
+
`,67:`You must provide a template to this method.
|
|
1175
|
+
|
|
1176
|
+
`,68:`You passed an unsupported selector state to this method.
|
|
1177
|
+
|
|
1178
|
+
`,69:`Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
|
1179
|
+
|
|
1180
|
+
`,70:`Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
|
1181
|
+
|
|
1182
|
+
`,71:`Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
|
1183
|
+
|
|
1184
|
+
`,72:`Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
|
1185
|
+
|
|
1186
|
+
`,73:`Please provide a valid CSS variable.
|
|
1187
|
+
|
|
1188
|
+
`,74:`CSS variable not found and no default was provided.
|
|
1189
|
+
|
|
1190
|
+
`,75:`important requires a valid style object, got a %s instead.
|
|
1191
|
+
|
|
1192
|
+
`,76:`fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
|
1193
|
+
|
|
1194
|
+
`,77:`remToPx expects a value in "rem" but you provided it in "%s".
|
|
1195
|
+
|
|
1196
|
+
`,78:`base must be set in "px" or "%" but you set it in "%s".
|
|
1197
|
+
`};function vR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=[],a;for(a=1;a<t.length;a+=1)o.push(t[a]);return o.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}var Ut=function(e){gR(t,e);function t(r){for(var n,o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n=e.call(this,vR.apply(void 0,[bR[r]].concat(a)))||this,mR(n)}return t}(Qu(Error));function xs(e){return Math.round(e*255)}function xR(e,t,r){return xs(e)+","+xs(t)+","+xs(r)}function Oi(e,t,r,n){if(n===void 0&&(n=xR),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,i=a*(1-Math.abs(o%2-1)),l=0,s=0,u=0;o>=0&&o<1?(l=a,s=i):o>=1&&o<2?(l=i,s=a):o>=2&&o<3?(s=a,u=i):o>=3&&o<4?(s=i,u=a):o>=4&&o<5?(l=i,u=a):o>=5&&o<6&&(l=a,u=i);var d=r-a/2,p=l+d,c=s+d,f=u+d;return n(p,c,f)}var Fg={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 ER(e){if(typeof e!="string")return e;var t=e.toLowerCase();return Fg[t]?"#"+Fg[t]:e}var wR=/^#[a-fA-F0-9]{6}$/,SR=/^#[a-fA-F0-9]{8}$/,CR=/^#[a-fA-F0-9]{3}$/,$R=/^#[a-fA-F0-9]{4}$/,Es=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,AR=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,DR=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,kR=/^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 ro(e){if(typeof e!="string")throw new Ut(3);var t=ER(e);if(t.match(wR))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(SR)){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(CR))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($R)){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=Es.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=AR.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=DR.exec(t);if(i){var l=parseInt(""+i[1],10),s=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+Oi(l,s,u)+")",p=Es.exec(d);if(!p)throw new Ut(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10)}}var c=kR.exec(t.substring(0,50));if(c){var f=parseInt(""+c[1],10),m=parseInt(""+c[2],10)/100,h=parseInt(""+c[3],10)/100,v="rgb("+Oi(f,m,h)+")",E=Es.exec(v);if(!E)throw new Ut(4,t,v);return{red:parseInt(""+E[1],10),green:parseInt(""+E[2],10),blue:parseInt(""+E[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new Ut(5)}function OR(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var l,s=o-a,u=i>.5?s/(2-o-a):s/(o+a);switch(o){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:i,alpha:e.alpha}:{hue:l,saturation:u,lightness:i}}function Rr(e){return OR(ro(e))}var FR=function(e){return e.length===7&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e},ec=FR;function zr(e){var t=e.toString(16);return t.length===1?"0"+t:t}function ws(e){return zr(Math.round(e*255))}function _R(e,t,r){return ec("#"+ws(e)+ws(t)+ws(r))}function ES(e,t,r){return Oi(e,t,r,_R)}function TR(e,t,r){if(typeof e=="object"&&t===void 0&&r===void 0)return ES(e.hue,e.saturation,e.lightness);throw new Ut(1)}function RR(e,t,r,n){if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?ES(e.hue,e.saturation,e.lightness):"rgba("+Oi(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ut(2)}function wS(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return ec("#"+zr(e)+zr(t)+zr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return ec("#"+zr(e.red)+zr(e.green)+zr(e.blue));throw new Ut(6)}function Mt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=ro(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?wS(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Ut(7)}var PR=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},IR=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},LR=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},BR=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function Pr(e){if(typeof e!="object")throw new Ut(8);if(IR(e))return Mt(e);if(PR(e))return wS(e);if(BR(e))return RR(e);if(LR(e))return TR(e);throw new Ut(8)}function SS(e,t,r){return function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):SS(e,t,n)}}function ct(e){return SS(e,e.length,[])}function NR(e,t){if(t==="transparent")return t;var r=Rr(t);return Pr(et({},r,{hue:r.hue+parseFloat(e)}))}ct(NR);function po(e,t,r){return Math.max(e,Math.min(t,r))}function jR(e,t){if(t==="transparent")return t;var r=Rr(t);return Pr(et({},r,{lightness:po(0,1,r.lightness-parseFloat(e))}))}var MR=ct(jR),Nt=MR;function zR(e,t){if(t==="transparent")return t;var r=Rr(t);return Pr(et({},r,{saturation:po(0,1,r.saturation-parseFloat(e))}))}ct(zR);function HR(e,t){if(t==="transparent")return t;var r=Rr(t);return Pr(et({},r,{lightness:po(0,1,r.lightness+parseFloat(e))}))}var UR=ct(HR),Hr=UR;function WR(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=ro(t),o=et({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=ro(r),i=et({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=o.alpha-i.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,d=1+s*l,p=(u/d+1)/2,c=1-p,f={red:Math.floor(o.red*p+i.red*c),green:Math.floor(o.green*p+i.green*c),blue:Math.floor(o.blue*p+i.blue*c),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Mt(f)}var VR=ct(WR),CS=VR;function qR(e,t){if(t==="transparent")return t;var r=ro(t),n=typeof r.alpha=="number"?r.alpha:1,o=et({},r,{alpha:po(0,1,(n*100+parseFloat(e)*100)/100)});return Mt(o)}var GR=ct(qR),_a=GR;function YR(e,t){if(t==="transparent")return t;var r=Rr(t);return Pr(et({},r,{saturation:po(0,1,r.saturation+parseFloat(e))}))}ct(YR);function KR(e,t){return t==="transparent"?t:Pr(et({},Rr(t),{hue:parseFloat(e)}))}ct(KR);function XR(e,t){return t==="transparent"?t:Pr(et({},Rr(t),{lightness:parseFloat(e)}))}ct(XR);function ZR(e,t){return t==="transparent"?t:Pr(et({},Rr(t),{saturation:parseFloat(e)}))}ct(ZR);function JR(e,t){return t==="transparent"?t:CS(parseFloat(e),"rgb(0, 0, 0)",t)}ct(JR);function QR(e,t){return t==="transparent"?t:CS(parseFloat(e),"rgb(255, 255, 255)",t)}ct(QR);function e6(e,t){if(t==="transparent")return t;var r=ro(t),n=typeof r.alpha=="number"?r.alpha:1,o=et({},r,{alpha:po(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Mt(o)}var t6=ct(e6),ye=t6,r6=T.div(we,({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})),$S=e=>y.createElement(r6,{...e,className:"docblock-emptyblock sb-unstyled"}),n6=T(hl)(({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"}})),o6=T.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"})),Ta=T.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${gu}`]:{margin:0}})),a6=()=>y.createElement(o6,null,y.createElement(Ta,null),y.createElement(Ta,{style:{width:"80%"}}),y.createElement(Ta,{style:{width:"30%"}}),y.createElement(Ta,{style:{width:"80%"}})),AS=({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,...i})=>{let{typography:l}=qb();if(e)return y.createElement(a6,null);if(t)return y.createElement($S,null,t);let s=y.createElement(n6,{bordered:!0,copyable:!0,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return s;let u=o?fu.dark:fu.light;return y.createElement(Gb,{theme:mu({...u,fontCode:l.fonts.mono,fontBase:l.fonts.base})},s)},Oe=e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,fp=600,i6=T.h1(we,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${fp}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),l6=T.h2(we,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${fp}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:ye(.25,e.color.defaultText)})),s6=T.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,[Oe("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}},[Oe("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}},[Oe("div")]:t,[Oe("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}},[Oe("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Oe("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Oe("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Oe("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Oe("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Oe("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Oe("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Oe("img")]:{maxWidth:"100%"},[Oe("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Oe("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Oe("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Oe("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"}},[Oe("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"}}},[Oe("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}},[Oe("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),u6=T.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: ${fp}px)`]:{}})),c6=({children:e,toc:t})=>y.createElement(u6,{className:"sbdocs sbdocs-wrapper"},t,y.createElement(s6,{className:"sbdocs sbdocs-content"},e)),$l=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}`}),{window:d6}=globalThis,p6=class extends b.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id:e}=this.props;this.iframe=d6.document.getElementById(e)}shouldComponentUpdate(e){let{scale:t}=e;return t!==this.props.scale&&this.setIframeBodyStyle({width:`${t*100}%`,height:`${t*100}%`,transform:`scale(${1/t})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(e){return Object.assign(this.iframe.contentDocument.body.style,e)}render(){let{id:e,title:t,src:r,allowFullScreen:n,scale:o,...a}=this.props;return y.createElement("iframe",{id:e,title:t,src:r,...n?{allow:"fullscreen"}:{},loading:"lazy",...a})}},DS=b.createContext({scale:1}),{PREVIEW_URL:f6}=globalThis,m6=f6||"iframe.html",tc=({story:e,primary:t})=>`story--${e.id}${t?"--primary":""}`,g6=e=>{let t=b.useRef(),[r,n]=b.useState(!0),[o,a]=b.useState(),{story:i,height:l,autoplay:s,forceInitialArgs:u,renderStoryToElement:d}=e;return b.useEffect(()=>{if(!(i&&t.current))return()=>{};let p=t.current,c=d(i,p,{showMain:()=>{},showError:({title:f,description:m})=>a(new Error(`${f} - ${m}`)),showException:f=>a(f)},{autoplay:s,forceInitialArgs:u});return n(!1),()=>{Promise.resolve().then(()=>c())}},[s,d,i]),o?y.createElement("pre",null,y.createElement(Jw,{error:o})):y.createElement(y.Fragment,null,l?y.createElement("style",null,`#${tc(e)} { min-height: ${l}; transform: translateZ(0); overflow: auto }`):null,r&&y.createElement(kS,null),y.createElement("div",{ref:t,id:`${tc(e)}-inner`,"data-name":i.name}))},h6=({story:e,height:t="500px"})=>y.createElement("div",{style:{width:"100%",height:t}},y.createElement(DS.Consumer,null,({scale:r})=>y.createElement(p6,{key:"iframe",id:`iframe--${e.id}`,title:e.name,src:gS(m6,e.id,{viewMode:"story"}),allowFullScreen:!0,scale:r,style:{width:"100%",height:"100%",border:"0 none"}}))),y6=T.strong(({theme:e})=>({color:e.color.orange})),b6=e=>{let{inline:t,story:r}=e;return t&&!e.autoplay&&r.usesMount?y.createElement(y6,null,"This story mounts inside of play. Set"," ",y.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story#autoplay"},"autoplay")," ","to true to view this story."):y.createElement("div",{id:tc(e),className:"sb-story sb-unstyled","data-story-block":"true"},t?y.createElement(g6,{...e}):y.createElement(h6,{...e}))},kS=()=>y.createElement(fS,null),v6=T(Sl)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),x6=T.div({display:"flex",alignItems:"center",gap:4}),E6=T.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`})),w6=({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>y.createElement(v6,{...a},y.createElement(x6,{key:"left"},e?[1,2,3].map(i=>y.createElement(E6,{key:i})):y.createElement(y.Fragment,null,y.createElement(Ar,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},y.createElement(XT,null)),y.createElement(Ar,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},y.createElement(ZT,null)),y.createElement(Ar,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},y.createElement(JT,null))))),S6=T.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)`}}:{}),_g=T(AS)(({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)":Nt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Nt(.05,e.background.content)}})),C6=T.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...$l(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),$6=(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:()=>r(!1)}};case t:return{source:y.createElement(_g,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>r(!1)}};default:return{source:y.createElement(_g,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>r(!0)}}}};function A6(e){if(b.Children.count(e)===1){let t=e;if(t.props)return t.props.id}return null}var D6=T(w6)({position:"absolute",top:0,left:0,right:0,height:40}),k6=T.div({overflow:"hidden",position:"relative"}),OS=({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:l,className:s,layout:u="padded",inline:d=!1,...p})=>{let[c,f]=b.useState(i),{source:m,actionItem:h}=$6(o,c,f),[v,E]=b.useState(1),w=[s].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),S=o?[h]:[],[x,$]=b.useState(l?[...l]:[]),A=[...S,...x],{window:C}=globalThis,D=b.useCallback(async k=>{let{createCopyToClipboardFunction:_}=await dc(()=>Promise.resolve().then(()=>KT),void 0,import.meta.url);_()},[]),F=k=>{let _=C.getSelection();_&&_.type==="Range"||(k.preventDefault(),x.filter(I=>I.title==="Copied").length===0&&D((m==null?void 0:m.props.code)??"").then(()=>{$([...x,{title:"Copied",onClick:()=>{}}]),C.setTimeout(()=>$(x.filter(I=>I.title!=="Copied")),1500)}))};return y.createElement(C6,{withSource:o,withToolbar:a,...p,className:w.join(" ")},a&&y.createElement(D6,{isLoading:e,border:!0,zoom:k=>E(v*k),resetZoom:()=>E(1),storyId:A6(n),baseUrl:"./iframe.html"}),y.createElement(DS.Provider,{value:{scale:v}},y.createElement(k6,{className:"docs-story",onCopyCapture:o&&F},y.createElement(S6,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:d},y.createElement(Zw.Element,{centered:u==="centered",scale:d?v:1},Array.isArray(n)?n.map((k,_)=>y.createElement("div",{key:_},k)):y.createElement("div",null,n))),y.createElement(il,{actionItems:A}))),o&&c&&m)};T(OS)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}}));var O6=({tabs:e,...t})=>{let r=Object.entries(e);return r.length===1?y.createElement(sc,{...r[0][1],...t}):y.createElement(pS,null,r.map((n,o)=>{let[a,i]=n,l=`prop_table_div_${a}`,s="div",u=o===0?t:{sort:t.sort};return y.createElement(s,{key:l,id:l,title:a},({active:d})=>d?y.createElement(sc,{key:`prop_table_${a}`,...i,...u}):null)}))};T.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)}));T.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});T.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}});T.div(we,({theme:e})=>({...$l(e),margin:"25px 0 40px",padding:"30px 20px"}));T.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText}));T.div(({theme:e})=>({color:e.base==="light"?ye(.2,e.color.defaultText):ye(.6,e.color.defaultText)}));T.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5});T.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}}));T.div({display:"flex",flexDirection:"row"});T.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}}));T.div(({theme:e})=>({...$l(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"}));T.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30});T.div({flex:1,display:"flex",flexDirection:"row"});T.div({display:"flex",alignItems:"flex-start"});T.div({flex:"0 0 30%"});T.div({flex:1});T.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)}));T.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"}));T.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"}));T.div(({theme:e})=>({...$l(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}));T.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"});T.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});function F6(e){let t=[].forEach,r=[].some,n=typeof window<"u"&&document.body,o=" ",a,i=!0,l=0;function s(k,_){let I=_.appendChild(d(k));if(k.children.length){let L=p(k.isCollapsed);k.children.forEach(j=>{s(j,L)}),I.appendChild(L)}}function u(k,_){let I=p(!1);if(_.forEach(L=>{s(L,I)}),a=k||a,a!==null)return a.firstChild&&a.removeChild(a.firstChild),_.length===0?a:a.appendChild(I)}function d(k){let _=document.createElement("li"),I=document.createElement("a");return e.listItemClass&&_.setAttribute("class",e.listItemClass),e.onClick&&(I.onclick=e.onClick),e.includeTitleTags&&I.setAttribute("title",k.textContent),e.includeHtml&&k.childNodes.length?t.call(k.childNodes,L=>{I.appendChild(L.cloneNode(!0))}):I.textContent=k.textContent,I.setAttribute("href",`${e.basePath}#${k.id}`),I.setAttribute("class",`${e.linkClass+o}node-name--${k.nodeName}${o}${e.extraLinkClasses}`),_.appendChild(I),_}function p(k){let _=e.orderedList?"ol":"ul",I=document.createElement(_),L=e.listClass+o+e.extraListClasses;return k&&(L=L+o+e.collapsibleClass,L=L+o+e.isCollapsedClass),I.setAttribute("class",L),I}function c(){let k=C(),_=document.querySelector(e.positionFixedSelector);e.fixedSidebarOffset==="auto"&&(e.fixedSidebarOffset=a.offsetTop),k>e.fixedSidebarOffset?_.className.indexOf(e.positionFixedClass)===-1&&(_.className+=o+e.positionFixedClass):_.className=_.className.replace(o+e.positionFixedClass,"")}function f(k){let _=0;return k!==null&&(_=k.offsetTop,e.hasInnerContainers&&(_+=f(k.offsetParent))),_}function m(k,_){return k&&k.className!==_&&(k.className=_),k}function h(k,_){var M,V;e.positionFixedSelector&&c();let I=k,L=(M=_==null?void 0:_.target)!=null&&M.getAttribute?(V=_==null?void 0:_.target)==null?void 0:V.getAttribute("href"):null,j=L&&L.charAt(0)==="#"?x(L.replace("#","")):!1,B=i||j;if(_&&l<5&&l++,B&&a&&I.length>0){let G=D(I),W=a.querySelector(`.${e.activeLinkClass}`),Y=G.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),X=window.location.hash.replace("#",""),re=Y,oe=$();L&&j?re=L.replace("#",""):X&&X!==Y&&oe&&(x(Y)||l<=2)&&(re=X);let J=a.querySelector(`.${e.linkClass}[href="${e.basePath}#${re}"]`);if(W===J)return;let H=a.querySelectorAll(`.${e.linkClass}`);t.call(H,se=>{m(se,se.className.replace(o+e.activeLinkClass,""))});let Z=a.querySelectorAll(`.${e.listItemClass}`);t.call(Z,se=>{m(se,se.className.replace(o+e.activeListItemClass,""))}),J&&J.className.indexOf(e.activeLinkClass)===-1&&(J.className+=o+e.activeLinkClass);let te=J==null?void 0:J.parentNode;te&&te.className.indexOf(e.activeListItemClass)===-1&&(te.className+=o+e.activeListItemClass);let le=a.querySelectorAll(`.${e.listClass}.${e.collapsibleClass}`);t.call(le,se=>{se.className.indexOf(e.isCollapsedClass)===-1&&(se.className+=o+e.isCollapsedClass)}),J!=null&&J.nextSibling&&J.nextSibling.className.indexOf(e.isCollapsedClass)!==-1&&m(J.nextSibling,J.nextSibling.className.replace(o+e.isCollapsedClass,"")),v(J==null?void 0:J.parentNode.parentNode)}}function v(k){return k&&k.className.indexOf(e.collapsibleClass)!==-1&&k.className.indexOf(e.isCollapsedClass)!==-1?(m(k,k.className.replace(o+e.isCollapsedClass,"")),v(k.parentNode.parentNode)):k}function E(k){let _=k.target||k.srcElement;typeof _.className!="string"||_.className.indexOf(e.linkClass)===-1||(i=!1)}function w(){i=!0}function S(){return i}function x(k){let _=A();return(document==null?void 0:document.getElementById(k)).offsetTop>_.offsetHeight-_.clientHeight*1.4-e.bottomModeThreshold}function $(){let k=A(),_=k.scrollHeight>k.clientHeight,I=C()+k.clientHeight>k.offsetHeight-e.bottomModeThreshold;return _&&I}function A(){let k;return e.scrollContainer&&document.querySelector(e.scrollContainer)?k=document.querySelector(e.scrollContainer):k=document.documentElement||n,k}function C(){var k;return((k=A())==null?void 0:k.scrollTop)||0}function D(k,_=C()){let I;return r.call(k,(L,j)=>{if(f(L)>_+e.headingsOffset+10){let B=j===0?j:j-1;return I=k[B],!0}if(j===k.length-1)return I=k[k.length-1],!0}),I}function F(k){let _=C(),I=D(k,_),L=$();if((!I||_<5)&&!L)window.location.hash==="#"||window.location.hash===""||window.history.pushState(null,null,"#");else if(I&&!L){let j=`#${I.id}`;window.location.hash!==j&&window.history.pushState(null,null,j)}}return{enableTocAnimation:w,disableTocAnimation:E,render:u,updateToc:h,getCurrentlyHighlighting:S,getTopHeader:D,getScrollTop:C,updateUrlHashForHeader:F}}var _6={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function T6(e){let t=[].reduce;function r(u){return u[u.length-1]}function n(u){return+u.nodeName.toUpperCase().replace("H","")}function o(u){try{return u instanceof window.HTMLElement||u instanceof window.parent.HTMLElement}catch{return u instanceof window.HTMLElement}}function a(u){if(!o(u))return u;if(e.ignoreHiddenElements&&(!u.offsetHeight||!u.offsetParent))return null;let d=u.getAttribute("data-heading-label")||(e.headingLabelCallback?String(e.headingLabelCallback(u.innerText)):(u.innerText||u.textContent).trim()),p={id:u.id,children:[],nodeName:u.nodeName,headingLevel:n(u),textContent:d};return e.includeHtml&&(p.childNodes=u.childNodes),e.headingObjectCallback?e.headingObjectCallback(p,u):p}function i(u,d){let p=a(u),c=p.headingLevel,f=d,m=r(f),h=m?m.headingLevel:0,v=c-h;for(;v>0&&(m=r(f),!(m&&c===m.headingLevel));)m&&m.children!==void 0&&(f=m.children),v--;return c>=e.collapseDepth&&(p.isCollapsed=!0),f.push(p),f}function l(u,d){let p=d;e.ignoreSelector&&(p=d.split(",").map(function(c){return`${c.trim()}:not(${e.ignoreSelector})`}));try{return u.querySelectorAll(p)}catch{return console.warn(`Headers not found with selector: ${p}`),null}}function s(u){return t.call(u,function(d,p){let c=a(p);return c&&i(c,d.nest),d},{nest:[]})}return{nestHeadingsArray:s,selectHeadings:l}}function R6(e){var t=e.duration,r=e.offset;if(typeof window>"u"||typeof location>"u")return;var n=location.hash?i(location.href):location.href;o();function o(){document.body.addEventListener("click",s,!1);function s(u){!a(u.target)||u.target.className.indexOf("no-smooth-scroll")>-1||u.target.href.charAt(u.target.href.length-2)==="#"&&u.target.href.charAt(u.target.href.length-1)==="!"||u.target.className.indexOf(e.linkClass)===-1||P6(u.target.hash,{duration:t,offset:r,callback:function(){l(u.target.hash)}})}}function a(s){return s.tagName.toLowerCase()==="a"&&(s.hash.length>0||s.href.charAt(s.href.length-1)==="#")&&(i(s.href)===n||i(s.href)+"#"===n)}function i(s){return s.slice(0,s.lastIndexOf("#"))}function l(s){var u=document.getElementById(s.substring(1));u&&(/^(?:a|select|input|button|textarea)$/i.test(u.tagName)||(u.tabIndex=-1),u.focus())}}function P6(e,t){var r=window.pageYOffset,n={duration:t.duration,offset:t.offset||0,callback:t.callback,easing:t.easing||p},o=document.querySelector('[id="'+decodeURI(e).split("#").join("")+'"]')||document.querySelector('[id="'+e.split("#").join("")+'"]'),a=typeof e=="string"?n.offset+(e?o&&o.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):e,i=typeof n.duration=="function"?n.duration(a):n.duration,l,s;requestAnimationFrame(function(c){l=c,u(c)});function u(c){s=c-l,window.scrollTo(0,n.easing(s,r,a,i)),s<i?requestAnimationFrame(u):d()}function d(){window.scrollTo(0,r+a),typeof n.callback=="function"&&n.callback()}function p(c,f,m,h){return c/=h/2,c<1?m/2*c*c+f:(c--,-m/2*(c*(c-2)-1)+f)}}function I6(e){let t=e.tocScrollingWrapper||e.tocElement||document.querySelector(e.tocSelector);if(t&&t.scrollHeight>t.clientHeight){let r=t.querySelector(`.${e.activeListItemClass}`);if(r){let n=r.offsetTop-e.tocScrollOffset;t.scrollTop=n>0?n:0}}}var ne={},xt,Ss,jr,wt,Vo;function FS(e){let t=!1;ne=N6(_6,e||{}),ne.scrollSmooth&&(ne.duration=ne.scrollSmoothDuration,ne.offset=ne.scrollSmoothOffset,R6(ne)),xt=F6(ne),Ss=T6(ne),mp();let r=M6(ne);if(r===null)return;let n=_S(ne);if(n===null||(jr=Ss.selectHeadings(r,ne.headingSelector),jr===null))return;let o=Ss.nestHeadingsArray(jr).nest;if(!ne.skipRendering)xt.render(n,o);else return this;let a=!1,i=ne.scrollHandlerTimeout||ne.throttleTimeout;wt=((s,u)=>j6(s,u,ne.scrollHandlerType))(s=>{var d,p,c;xt.updateToc(jr,s),!ne.disableTocScrollSync&&!a&&I6(ne),ne.enableUrlHashUpdateOnScroll&&t&&xt.getCurrentlyHighlighting()&&xt.updateUrlHashForHeader(jr);let u=((p=(d=s==null?void 0:s.target)==null?void 0:d.scrollingElement)==null?void 0:p.scrollTop)===0;(s&&(s.eventPhase===0||s.currentTarget===null)||u)&&(xt.updateToc(jr),(c=ne.scrollEndCallback)==null||c.call(ne,s))},i),t||(wt(),t=!0),window.onhashchange=window.onscrollend=s=>{wt(s)},ne.scrollContainer&&document.querySelector(ne.scrollContainer)?(document.querySelector(ne.scrollContainer).addEventListener("scroll",wt,!1),document.querySelector(ne.scrollContainer).addEventListener("resize",wt,!1)):(document.addEventListener("scroll",wt,!1),document.addEventListener("resize",wt,!1));let l=null;Vo=rc(s=>{a=!0,ne.scrollSmooth&&xt.disableTocAnimation(s),xt.updateToc(jr,s),l&&clearTimeout(l),l=setTimeout(()=>{xt.enableTocAnimation()},ne.scrollSmoothDuration),setTimeout(()=>{a=!1},ne.scrollSmoothDuration+100)},ne.throttleTimeout),ne.scrollContainer&&document.querySelector(ne.scrollContainer)?document.querySelector(ne.scrollContainer).addEventListener("click",Vo,!1):document.addEventListener("click",Vo,!1)}function mp(){let e=_S(ne);e!==null&&(ne.skipRendering||e&&(e.innerHTML=""),ne.scrollContainer&&document.querySelector(ne.scrollContainer)?(document.querySelector(ne.scrollContainer).removeEventListener("scroll",wt,!1),document.querySelector(ne.scrollContainer).removeEventListener("resize",wt,!1),xt&&document.querySelector(ne.scrollContainer).removeEventListener("click",Vo,!1)):(document.removeEventListener("scroll",wt,!1),document.removeEventListener("resize",wt,!1),xt&&document.removeEventListener("click",Vo,!1)))}function L6(e){mp(),FS(e||ne)}var B6=Object.prototype.hasOwnProperty;function N6(...e){let t={};for(let r=0;r<e.length;r++){let n=e[r];for(let o in n)B6.call(n,o)&&(t[o]=n[o])}return t}function rc(e,t,r){t||(t=250);let n,o;return function(...a){let i=this,l=+new Date;n&&l<n+t?(clearTimeout(o),o=setTimeout(()=>{n=l,e.apply(i,a)},t)):(n=l,e.apply(i,a))}}function Tg(e,t){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>e.apply(this,n),t)}}function j6(e,t,r="auto"){switch(r){case"debounce":return Tg(e,t);case"throttle":return rc(e,t);default:return t<334?Tg(e,t):rc(e,t)}}function M6(e){try{return e.contentElement||document.querySelector(e.contentSelector)}catch{return console.warn(`Contents element not found: ${e.contentSelector}`),null}}function _S(e){try{return e.tocElement||document.querySelector(e.tocSelector)}catch{return console.warn(`TOC element not found: ${e.tocSelector}`),null}}var z6={destroy:mp,init:FS,refresh:L6},Rg=z6,H6=T.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),U6=T.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"}})),W6=T.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10})),V6=({headingId:e,title:t})=>typeof t=="string"||!t?y.createElement(W6,{as:"h2",id:e,className:t?"":"sb-sr-only"},t||"Table of contents"):y.createElement("div",{id:e},t),q6=({title:e,disable:t,headingSelector:r,contentsSelector:n,ignoreSelector:o,unsafeTocbotOptions:a,channel:i,className:l})=>{b.useEffect(()=>{if(t)return()=>{};let u={tocSelector:".toc-wrapper",contentSelector:n??".sbdocs-content",headingSelector:r??"h3",ignoreSelector:o??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:p=>{if(p.preventDefault(),p.currentTarget instanceof HTMLAnchorElement){let[,c]=p.currentTarget.href.split("#");c&&i.emit(vS,`#${c}`)}},...a},d=setTimeout(()=>Rg.init(u),100);return()=>{clearTimeout(d),Rg.destroy()}},[i,t,o,n,r,a]);let s=b.useId();return y.createElement(H6,{className:l},t?null:y.createElement(U6,{"aria-labelledby":s},y.createElement(V6,{headingId:s,title:e}),y.createElement("div",{className:"toc-wrapper"})))};function Wr(){return Wr=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},Wr.apply(this,arguments)}var G6=["children","options"],Q={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"},Pg;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(Pg||(Pg={}));var Ig=["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"}),Lg={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Y6=["style","script"],K6=["src","href","data","formAction","srcDoc","action"],X6=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Z6=/mailto:/i,J6=/\n{2,}$/,TS=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Q6=/^ *> ?/gm,eP=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,tP=/^ {2,}\n/,rP=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,RS=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,PS=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,nP=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,oP=/^(?:\n *)*\n/,aP=/\r\n?/g,iP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,lP=/^\[\^([^\]]+)]/,sP=/\f/g,uP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,cP=/^\s*?\[(x|\s)\]/,IS=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,LS=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,BS=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,nc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,dP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,NS=/^<!--[\s\S]*?(?:-->)/,pP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,oc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,fP=/^\{.*\}$/,mP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,gP=/^<([^ >]+@[^ >]+)>/,hP=/^<([^ >]+:\/[^ >]+)>/,yP=/-([a-z])?/gi,jS=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,bP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,vP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,EP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,wP=/\t/g,SP=/(^ *\||\| *$)/g,CP=/^ *:-+: *$/,$P=/^ *:-+ *$/,AP=/^ *-+: *$/,Al="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",DP=new RegExp(`^([*_])\\1${Al}\\1\\1(?!\\1)`),kP=new RegExp(`^([*_])${Al}\\1(?!\\1)`),OP=new RegExp(`^(==)${Al}\\1`),FP=new RegExp(`^(~~)${Al}\\1`),_P=/^\\([^0-9A-Za-z\s])/,Bg=/\\([^0-9A-Za-z\s])/g,TP=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,RP=/^\n+/,PP=/^([ \t]*)/,IP=/\\([^\\])/g,LP=/(?:^|\n)( *)$/,gp="(?:\\d+\\.)",hp="(?:[*+-])";function MS(e){return"( *)("+(e===1?gp:hp)+") +"}var zS=MS(1),HS=MS(2);function US(e){return new RegExp("^"+(e===1?zS:HS))}var BP=US(1),NP=US(2);function WS(e){return new RegExp("^"+(e===1?zS:HS)+"[^\\n]*(?:\\n(?!\\1"+(e===1?gp:hp)+" )[^\\n]*)*(\\n|$)","gm")}var jP=WS(1),MP=WS(2);function VS(e){let t=e===1?gp:hp;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}var qS=VS(1),GS=VS(2);function Ng(e,t){let r=t===1,n=r?qS:GS,o=r?jP:MP,a=r?BP:NP;return{match:no(function(i,l){let s=LP.exec(l.prevCapture);return s&&(l.list||!l.inline&&!l.simple)?n.exec(i=s[1]+i):null}),order:1,parse(i,l,s){let u=r?+i[2]:void 0,d=i[0].replace(J6,`
|
|
1198
|
+
`).match(o),p=!1;return{items:d.map(function(c,f){let m=a.exec(c)[0].length,h=new RegExp("^ {1,"+m+"}","gm"),v=c.replace(h,"").replace(a,""),E=f===d.length-1,w=v.indexOf(`
|
|
1199
|
+
|
|
1200
|
+
`)!==-1||E&&p;p=w;let S=s.inline,x=s.list,$;s.list=!0,w?(s.inline=!1,$=ea(v)+`
|
|
1201
|
+
|
|
1202
|
+
`):(s.inline=!0,$=ea(v));let A=l($,s);return s.inline=S,s.list=x,A}),ordered:r,start:u}},render:(i,l,s)=>e(i.ordered?"ol":"ul",{key:s.key,start:i.type===Q.orderedList?i.start:void 0},i.items.map(function(u,d){return e("li",{key:d},l(u,s))}))}}var zP=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),HP=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,YS=[TS,RS,PS,IS,BS,LS,jS,qS,GS],UP=[...YS,/^[^\n]+(?: \n|\n{2,})/,nc,NS,oc];function ea(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function $o(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()}function WP(e){return AP.test(e)?"right":CP.test(e)?"center":$P.test(e)?"left":null}function jg(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function l(){if(!i)return;let s=a[a.length-1];s.push.apply(s,t(i,r)),i=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((s,u,d)=>{s.trim()==="|"&&(l(),n)?u!==0&&u!==d.length-1&&a.push([]):i+=s}),l(),r.inTable=o,a}function VP(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(SP,"").split("|").map(WP):[],o=e[3]?function(i,l,s){return i.trim().split(`
|
|
1203
|
+
`).map(function(u){return jg(u,l,s,!0)})}(e[3],t,r):[],a=jg(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:Q.table}:{children:a,type:Q.paragraph}}function Mg(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function no(e){return e.inline=1,e}function mr(e){return no(function(t,r){return r.inline?e.exec(t):null})}function gr(e){return no(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Zt(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Ao(e){return no(function(t){return e.exec(t)})}function qP(e,t){if(t.inline||t.simple)return null;let r="";e.split(`
|
|
1204
|
+
`).every(o=>(o+=`
|
|
1205
|
+
`,!YS.some(a=>a.test(o))&&(r+=o,!!o.trim())));let n=ea(r);return n==""?null:[r,,n]}var GP=/(javascript|vbscript|data(?!:image)):/i;function YP(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(GP.test(t))return null}catch{return null}return e}function zg(e){return e.replace(IP,"$1")}function Za(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function KP(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}function XP(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}var Cs=(e,t,r)=>({children:Za(t,e[2],r)});function $s(){return{}}function As(){return null}function ZP(...e){return e.filter(Boolean).join(" ")}function Ds(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function JP(e="",t={}){function r(c,f,...m){let h=Ds(t.overrides,`${c}.props`,{});return t.createElement(function(v,E){let w=Ds(E,v);return w?typeof w=="function"||typeof w=="object"&&"render"in w?w:Ds(E,`${v}.component`,v):v}(c,t.overrides),Wr({},f,h,{className:ZP(f==null?void 0:f.className,h.className)||void 0}),...m)}function n(c){c=c.replace(uP,"");let f=!1;t.forceInline?f=!0:t.forceBlock||(f=EP.test(c)===!1);let m=u(s(f?c:`${ea(c).replace(RP,"")}
|
|
1206
|
+
|
|
1207
|
+
`,{inline:f}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;let h=t.wrapper||(f?"span":"div"),v;if(m.length>1||t.forceWrapper)v=m;else{if(m.length===1)return v=m[0],typeof v=="string"?r("span",{key:"outer"},v):v;v=null}return t.createElement(h,{key:"outer"},v)}function o(c,f){let m=f.match(X6);return m?m.reduce(function(h,v){let E=v.indexOf("=");if(E!==-1){let w=function(A){return A.indexOf("-")!==-1&&A.match(pP)===null&&(A=A.replace(yP,function(C,D){return D.toUpperCase()})),A}(v.slice(0,E)).trim(),S=function(A){let C=A[0];return(C==='"'||C==="'")&&A.length>=2&&A[A.length-1]===C?A.slice(1,-1):A}(v.slice(E+1).trim()),x=Ig[w]||w;if(x==="ref")return h;let $=h[x]=function(A,C,D,F){return C==="style"?function(k){let _=[],I="",L=!1,j=!1,B="";if(!k)return _;for(let V=0;V<k.length;V++){let G=k[V];if(G!=='"'&&G!=="'"||L||(j?G===B&&(j=!1,B=""):(j=!0,B=G)),G==="("&&I.endsWith("url")?L=!0:G===")"&&L&&(L=!1),G!==";"||j||L)I+=G;else{let W=I.trim();if(W){let Y=W.indexOf(":");if(Y>0){let X=W.slice(0,Y).trim(),re=W.slice(Y+1).trim();_.push([X,re])}}I=""}}let M=I.trim();if(M){let V=M.indexOf(":");if(V>0){let G=M.slice(0,V).trim(),W=M.slice(V+1).trim();_.push([G,W])}}return _}(D).reduce(function(k,[_,I]){return k[_.replace(/(-[a-z])/g,L=>L[1].toUpperCase())]=F(I,A,_),k},{}):K6.indexOf(C)!==-1?F(D,A,C):(D.match(fP)&&(D=D.slice(1,D.length-1)),D==="true"||D!=="false"&&D)}(c,w,S,t.sanitizer);typeof $=="string"&&(nc.test($)||oc.test($))&&(h[x]=n($.trim()))}else v!=="style"&&(h[Ig[v]||v]=!0);return h},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||YP,t.slugify=t.slugify||$o,t.namedCodesToUnicode=t.namedCodesToUnicode?Wr({},Lg,t.namedCodesToUnicode):Lg,t.createElement=t.createElement||b.createElement;let a=[],i={},l={[Q.blockQuote]:{match:Zt(TS),order:1,parse(c,f,m){let[,h,v]=c[0].replace(Q6,"").match(eP);return{alert:h,children:f(v,m)}},render(c,f,m){let h={key:m.key};return c.alert&&(h.className="markdown-alert-"+t.slugify(c.alert.toLowerCase(),$o),c.children.unshift({attrs:{},children:[{type:Q.text,text:c.alert}],noInnerParse:!0,type:Q.htmlBlock,tag:"header"})),r("blockquote",h,f(c.children,m))}},[Q.breakLine]:{match:Ao(tP),order:1,parse:$s,render:(c,f,m)=>r("br",{key:m.key})},[Q.breakThematic]:{match:Zt(rP),order:1,parse:$s,render:(c,f,m)=>r("hr",{key:m.key})},[Q.codeBlock]:{match:Zt(PS),order:0,parse:c=>({lang:void 0,text:ea(c[0].replace(/^ {4}/gm,"")).replace(Bg,"$1")}),render:(c,f,m)=>r("pre",{key:m.key},r("code",Wr({},c.attrs,{className:c.lang?`lang-${c.lang}`:""}),c.text))},[Q.codeFenced]:{match:Zt(RS),order:0,parse:c=>({attrs:o("code",c[3]||""),lang:c[2]||void 0,text:c[4],type:Q.codeBlock})},[Q.codeInline]:{match:gr(nP),order:3,parse:c=>({text:c[2].replace(Bg,"$1")}),render:(c,f,m)=>r("code",{key:m.key},c.text)},[Q.footnote]:{match:Zt(iP),order:0,parse:c=>(a.push({footnote:c[2],identifier:c[1]}),{}),render:As},[Q.footnoteReference]:{match:mr(lP),order:1,parse:c=>({target:`#${t.slugify(c[1],$o)}`,text:c[1]}),render:(c,f,m)=>r("a",{key:m.key,href:t.sanitizer(c.target,"a","href")},r("sup",{key:m.key},c.text))},[Q.gfmTask]:{match:mr(cP),order:1,parse:c=>({completed:c[1].toLowerCase()==="x"}),render:(c,f,m)=>r("input",{checked:c.completed,key:m.key,readOnly:!0,type:"checkbox"})},[Q.heading]:{match:Zt(t.enforceAtxHeadings?LS:IS),order:1,parse:(c,f,m)=>({children:Za(f,c[2],m),id:t.slugify(c[2],$o),level:c[1].length}),render:(c,f,m)=>r(`h${c.level}`,{id:c.id,key:m.key},f(c.children,m))},[Q.headingSetext]:{match:Zt(BS),order:0,parse:(c,f,m)=>({children:Za(f,c[1],m),level:c[2]==="="?1:2,type:Q.heading})},[Q.htmlBlock]:{match:Ao(nc),order:1,parse(c,f,m){let[,h]=c[3].match(PP),v=new RegExp(`^${h}`,"gm"),E=c[3].replace(v,""),w=(S=E,UP.some(D=>D.test(S))?XP:Za);var S;let x=c[1].toLowerCase(),$=Y6.indexOf(x)!==-1,A=($?x:c[1]).trim(),C={attrs:o(A,c[2]),noInnerParse:$,tag:A};return m.inAnchor=m.inAnchor||x==="a",$?C.text=c[3]:C.children=w(f,E,m),m.inAnchor=!1,C},render:(c,f,m)=>r(c.tag,Wr({key:m.key},c.attrs),c.text||(c.children?f(c.children,m):""))},[Q.htmlSelfClosing]:{match:Ao(oc),order:1,parse(c){let f=c[1].trim();return{attrs:o(f,c[2]||""),tag:f}},render:(c,f,m)=>r(c.tag,Wr({},c.attrs,{key:m.key}))},[Q.htmlComment]:{match:Ao(NS),order:1,parse:()=>({}),render:As},[Q.image]:{match:gr(HP),order:1,parse:c=>({alt:c[1],target:zg(c[2]),title:c[3]}),render:(c,f,m)=>r("img",{key:m.key,alt:c.alt||void 0,title:c.title||void 0,src:t.sanitizer(c.target,"img","src")})},[Q.link]:{match:mr(zP),order:3,parse:(c,f,m)=>({children:KP(f,c[1],m),target:zg(c[2]),title:c[3]}),render:(c,f,m)=>r("a",{key:m.key,href:t.sanitizer(c.target,"a","href"),title:c.title},f(c.children,m))},[Q.linkAngleBraceStyleDetector]:{match:mr(hP),order:0,parse:c=>({children:[{text:c[1],type:Q.text}],target:c[1],type:Q.link})},[Q.linkBareUrlDetector]:{match:no((c,f)=>f.inAnchor||t.disableAutoLink?null:mr(mP)(c,f)),order:0,parse:c=>({children:[{text:c[1],type:Q.text}],target:c[1],title:void 0,type:Q.link})},[Q.linkMailtoDetector]:{match:mr(gP),order:0,parse(c){let f=c[1],m=c[1];return Z6.test(m)||(m="mailto:"+m),{children:[{text:f.replace("mailto:",""),type:Q.text}],target:m,type:Q.link}}},[Q.orderedList]:Ng(r,1),[Q.unorderedList]:Ng(r,2),[Q.newlineCoalescer]:{match:Zt(oP),order:3,parse:$s,render:()=>`
|
|
1208
|
+
`},[Q.paragraph]:{match:no(qP),order:3,parse:Cs,render:(c,f,m)=>r("p",{key:m.key},f(c.children,m))},[Q.ref]:{match:mr(bP),order:0,parse:c=>(i[c[1]]={target:c[2],title:c[4]},{}),render:As},[Q.refImage]:{match:gr(vP),order:0,parse:c=>({alt:c[1]||void 0,ref:c[2]}),render:(c,f,m)=>i[c.ref]?r("img",{key:m.key,alt:c.alt,src:t.sanitizer(i[c.ref].target,"img","src"),title:i[c.ref].title}):null},[Q.refLink]:{match:mr(xP),order:0,parse:(c,f,m)=>({children:f(c[1],m),fallbackChildren:c[0],ref:c[2]}),render:(c,f,m)=>i[c.ref]?r("a",{key:m.key,href:t.sanitizer(i[c.ref].target,"a","href"),title:i[c.ref].title},f(c.children,m)):r("span",{key:m.key},c.fallbackChildren)},[Q.table]:{match:Zt(jS),order:1,parse:VP,render(c,f,m){let h=c;return r("table",{key:m.key},r("thead",null,r("tr",null,h.header.map(function(v,E){return r("th",{key:E,style:Mg(h,E)},f(v,m))}))),r("tbody",null,h.cells.map(function(v,E){return r("tr",{key:E},v.map(function(w,S){return r("td",{key:S,style:Mg(h,S)},f(w,m))}))})))}},[Q.text]:{match:Ao(TP),order:4,parse:c=>({text:c[0].replace(dP,(f,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:f)}),render:c=>c.text},[Q.textBolded]:{match:gr(DP),order:2,parse:(c,f,m)=>({children:f(c[2],m)}),render:(c,f,m)=>r("strong",{key:m.key},f(c.children,m))},[Q.textEmphasized]:{match:gr(kP),order:3,parse:(c,f,m)=>({children:f(c[2],m)}),render:(c,f,m)=>r("em",{key:m.key},f(c.children,m))},[Q.textEscaped]:{match:gr(_P),order:1,parse:c=>({text:c[1],type:Q.text})},[Q.textMarked]:{match:gr(OP),order:3,parse:Cs,render:(c,f,m)=>r("mark",{key:m.key},f(c.children,m))},[Q.textStrikethroughed]:{match:gr(FP),order:3,parse:Cs,render:(c,f,m)=>r("del",{key:m.key},f(c.children,m))}};t.disableParsingRawHTML===!0&&(delete l[Q.htmlBlock],delete l[Q.htmlSelfClosing]);let s=function(c){let f=Object.keys(c);function m(h,v){let E,w,S=[],x="",$="";for(v.prevCapture=v.prevCapture||"";h;){let A=0;for(;A<f.length;){if(x=f[A],E=c[x],v.inline&&!E.match.inline){A++;continue}let C=E.match(h,v);if(C){$=C[0],v.prevCapture+=$,h=h.substring($.length),w=E.parse(C,m,v),w.type==null&&(w.type=x),S.push(w);break}A++}}return v.prevCapture="",S}return f.sort(function(h,v){let E=c[h].order,w=c[v].order;return E!==w?E-w:h<v?-1:1}),function(h,v){return m(function(E){return E.replace(aP,`
|
|
1209
|
+
`).replace(sP,"").replace(wP," ")}(h),v)}}(l),u=(d=function(c,f){return function(m,h,v){let E=c[m.type].render;return f?f(()=>E(m,h,v),m,h,v):E(m,h,v)}}(l,t.renderRule),function c(f,m={}){if(Array.isArray(f)){let h=m.key,v=[],E=!1;for(let w=0;w<f.length;w++){m.key=w;let S=c(f[w],m),x=typeof S=="string";x&&E?v[v.length-1]+=S:S!==null&&v.push(S),E=x}return m.key=h,v}return d(f,c,m)});var d;let p=n(e);return a.length?r("div",null,p,r("footer",{key:"footer"},a.map(function(c){return r("div",{id:t.slugify(c.identifier,$o),key:c.identifier},c.identifier,u(s(c.footnote,{inline:!0})))}))):p}var KS=e=>{let{children:t="",options:r}=e,n=function(o,a){if(o==null)return{};var i,l,s={},u=Object.keys(o);for(l=0;l<u.length;l++)a.indexOf(i=u[l])>=0||(s[i]=o[i]);return s}(e,G6);return b.cloneElement(JP(t,r),n)},QP=T.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:`${_a(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${_a(.05,e.appBorderColor)} 0 0 0 2px inset`,color:_a(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"?`${_a(.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"}}})),e8=e=>e==="true",t8=({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{var d;let i=b.useCallback(()=>r(!1),[r]),l=!!((d=a==null?void 0:a.table)!=null&&d.readonly);if(t===void 0)return y.createElement(Tr,{variant:"outline",size:"medium",id:Gi(e),onClick:i,disabled:l},"Set boolean");let s=Ft(e),u=typeof t=="string"?e8(t):t;return y.createElement(QP,{"aria-disabled":l,htmlFor:s,"aria-label":e},y.createElement("input",{id:s,type:"checkbox",onChange:p=>r(p.target.checked),checked:u,role:"switch",disabled:l,name:e,onBlur:n,onFocus:o}),y.createElement("span",{"aria-hidden":"true"},"False"),y.createElement("span",{"aria-hidden":"true"},"True"))},r8=e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},n8=e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},o8=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}`},a8=e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},Hg=T(co.Input)(({readOnly:e})=>({opacity:e?.5:1})),i8=T.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}})),l8=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{var m;let[i,l]=b.useState(!0),s=b.useRef(),u=b.useRef(),d=!!((m=a==null?void 0:a.table)!=null&&m.readonly);b.useEffect(()=>{i!==!1&&(s&&s.current&&(s.current.value=t?o8(t):""),u&&u.current&&(u.current.value=t?a8(t):""))},[t]);let p=h=>{if(!h.target.value)return r();let v=r8(h.target.value),E=new Date(t??"");E.setFullYear(v.getFullYear(),v.getMonth(),v.getDate());let w=E.getTime();w&&r(w),l(!!w)},c=h=>{if(!h.target.value)return r();let v=n8(h.target.value),E=new Date(t??"");E.setHours(v.getHours()),E.setMinutes(v.getMinutes());let w=E.getTime();w&&r(w),l(!!w)},f=Ft(e);return y.createElement(i8,null,y.createElement(Hg,{type:"date",max:"9999-12-31",ref:s,id:`${f}-date`,name:`${f}-date`,readOnly:d,onChange:p,onFocus:n,onBlur:o}),y.createElement(Hg,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:u,onChange:c,readOnly:d,onFocus:n,onBlur:o}),i?null:y.createElement("div",null,"invalid"))},s8=T.label({display:"flex"}),u8=e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},c8=T(co.Input)(({readOnly:e})=>({opacity:e?.5:1})),d8=({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:l,argType:s})=>{var S;let[u,d]=b.useState(typeof t=="number"?t:""),[p,c]=b.useState(!1),[f,m]=b.useState(null),h=!!((S=s==null?void 0:s.table)!=null&&S.readonly),v=b.useCallback(x=>{d(x.target.value);let $=parseFloat(x.target.value);Number.isNaN($)?m(new Error(`'${x.target.value}' is not a number`)):(r($),m(null))},[r,m]),E=b.useCallback(()=>{d("0"),r(0),c(!0)},[c]),w=b.useRef(null);return b.useEffect(()=>{p&&w.current&&w.current.select()},[p]),b.useEffect(()=>{let x=typeof t=="number"?t:"";u!==x&&d(x)},[t]),t===void 0?y.createElement(Tr,{variant:"outline",size:"medium",id:Gi(e),onClick:E,disabled:h},"Set number"):y.createElement(s8,null,y.createElement(c8,{ref:w,id:Ft(e),type:"number",onChange:v,size:"flex",placeholder:"Edit number...",value:u,valid:f?"error":void 0,autoFocus:p,readOnly:h,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i}))},XS=(e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},ac=(e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],ZS=(e,t)=>e&&t&&e.map(r=>t[r]),p8=T.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"}}}),f8=T.span({"[aria-readonly=true] &":{opacity:.5}}),m8=T.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Ug=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{var c;if(!t)return pp.warn(`Checkbox with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=ac(r||[],t),[l,s]=b.useState(i),u=!!((c=a==null?void 0:a.table)!=null&&c.readonly),d=f=>{let m=f.target.value,h=[...l];h.includes(m)?h.splice(h.indexOf(m),1):h.push(m),n(ZS(h,t)),s(h)};b.useEffect(()=>{s(ac(r||[],t))},[r]);let p=Ft(e);return y.createElement(p8,{"aria-readonly":u,isInline:o},Object.keys(t).map((f,m)=>{let h=`${p}-${m}`;return y.createElement(m8,{key:h,htmlFor:h},y.createElement("input",{type:"checkbox",disabled:u,id:h,name:h,value:f,onChange:d,checked:l==null?void 0:l.includes(f)}),y.createElement(f8,null,f))}))},g8=T.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"}}}),h8=T.span({"[aria-readonly=true] &":{opacity:.5}}),y8=T.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),Wg=({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{var u;if(!t)return pp.warn(`Radio with no options: ${e}`),y.createElement(y.Fragment,null,"-");let i=XS(r,t),l=Ft(e),s=!!((u=a==null?void 0:a.table)!=null&&u.readonly);return y.createElement(g8,{"aria-readonly":s,isInline:o},Object.keys(t).map((d,p)=>{let c=`${l}-${p}`;return y.createElement(y8,{key:c,htmlFor:c},y.createElement("input",{type:"radio",id:c,name:l,disabled:s,value:d,onChange:f=>n(t[f.currentTarget.value]),checked:d===i}),y.createElement(h8,null,d))}))},b8={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},JS=T.select(b8,({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}}})),QS=T.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}}})),Vg="Choose option...",v8=({name:e,value:t,options:r,onChange:n,argType:o})=>{var u;let a=d=>{n(r[d.currentTarget.value])},i=XS(t,r)||Vg,l=Ft(e),s=!!((u=o==null?void 0:o.table)!=null&&u.readonly);return y.createElement(QS,null,y.createElement(bS,null),y.createElement(JS,{disabled:s,id:l,value:i,onChange:a},y.createElement("option",{key:"no-selection",disabled:!0},Vg),Object.keys(r).map(d=>y.createElement("option",{key:d,value:d},d))))},x8=({name:e,value:t,options:r,onChange:n,argType:o})=>{var u;let a=d=>{let p=Array.from(d.currentTarget.options).filter(c=>c.selected).map(c=>c.value);n(ZS(p,r))},i=ac(t,r),l=Ft(e),s=!!((u=o==null?void 0:o.table)!=null&&u.readonly);return y.createElement(QS,null,y.createElement(JS,{disabled:s,id:l,multiple:!0,value:i,onChange:a},Object.keys(r).map(d=>y.createElement("option",{key:d,value:d},d))))},qg=e=>{let{name:t,options:r}=e;return r?e.isMulti?y.createElement(x8,{...e}):y.createElement(v8,{...e}):(pp.warn(`Select with no options: ${t}`),y.createElement(y.Fragment,null,"-"))},E8=(e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[(t==null?void 0:t[n])||String(n)]=n,r),{}):e,w8={check:Ug,"inline-check":Ug,radio:Wg,"inline-radio":Wg,select:qg,"multi-select":qg},bn=e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?E8(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=w8[t];if(a)return y.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},S8=T.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}}})),C8=T.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)"}})),$8=T.div({display:"inline"});function eC({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){let i=`${n.at(-1)??"root"}-${t}-${o}`,l={trigger:`${i}-trigger`,region:`${i}-region`},s=n.length>0?"li":"div";return y.createElement(S8,{as:s},y.createElement(C8,{type:"button","aria-expanded":!r,id:l.trigger,"aria-controls":l.region,className:"rejt-accordion-button",...a},t," :"),y.createElement($8,{role:"region",id:l.region,"aria-labelledby":l.trigger,className:"rejt-accordion-region"},e))}var A8="Error",D8="Object",k8="Array",O8="String",F8="Number",_8="Boolean",T8="Date",R8="Null",P8="Undefined",I8="Function",L8="Symbol",tC="ADD_DELTA_TYPE",rC="REMOVE_DELTA_TYPE",nC="UPDATE_DELTA_TYPE",yp="value",B8="key";function Yr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}function oC(e,t){let r=Yr(e),n=Yr(t);return(r==="Function"||n==="Function")&&n!==r}var bp=class extends b.Component{constructor(e){super(e),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:e,inputRefValue:t}=this.state,{onlyValue:r}=this.props;e&&typeof e.focus=="function"&&e.focus(),r&&t&&typeof t.focus=="function"&&t.focus()}onKeydown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat)return;let{inputRefKey:t,inputRefValue:r}=this.state,{addButtonElement:n,handleCancel:o}=this.props;[t,r,n].some(a=>a===e.target)&&((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.onSubmit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),o()))}onSubmit(){let{handleAdd:e,onlyValue:t,onSubmitValueParser:r,keyPath:n,deep:o}=this.props,{inputRefKey:a,inputRefValue:i}=this.state,l={};if(!t){if(!a.value)return;l.key=a.value}l.newValue=r(!1,n,o,l.key,i.value),e(l)}refInputKey(e){this.state.inputRefKey=e}refInputValue(e){this.state.inputRefValue=e}render(){let{handleCancel:e,onlyValue:t,addButtonElement:r,cancelButtonElement:n,inputElementGenerator:o,keyPath:a,deep:i}=this.props,l=r&&b.cloneElement(r,{onClick:this.onSubmit}),s=n&&b.cloneElement(n,{onClick:e}),u=o(yp,a,i),d=b.cloneElement(u,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),p=null;if(!t){let c=o(B8,a,i);p=b.cloneElement(c,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return y.createElement("span",{className:"rejt-add-value-node"},p,d,l,s)}};bp.defaultProps={onlyValue:!1,addButtonElement:y.createElement("button",null,"+"),cancelButtonElement:y.createElement("button",null,"c")};var aC=class extends b.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={data:e.data,name:e.name,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.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(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleRemoveItem(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o,nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:rC};n.splice(e,1),this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:tC,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i,nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],a),d({type:nC,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r(void 0)}).catch(n)})}renderCollapsed(){let{name:e,data:t,keyPath:r,deep:n}=this.state,{handleRemove:o,readOnly:a,getStyle:i,dataType:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=i(e,t,r,n,l),p=a(e,t,r,n,l),c=s&&b.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the array '${String(e)}'`});return y.createElement(y.Fragment,null,y.createElement("span",{style:d},"[...] ",t.length," ",t.length===1?"item":"items"),!p&&c)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,addFormVisible:o,nextDeep:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:p,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:w,beforeAddAction:S,beforeUpdateAction:x,logger:$,onSubmitValueParser:A}=this.props,{minus:C,plus:D,delimiter:F,ul:k,addForm:_}=d(e,t,r,n,p),I=u(e,t,r,n,p),L=E&&b.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new item to the '${String(e)}' array`}),j=v&&b.cloneElement(v,{onClick:l,className:"rejt-minus-menu",style:C,"aria-label":`remove the array '${String(e)}'`});return y.createElement(y.Fragment,null,y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"["),!o&&L,y.createElement("ul",{className:"rejt-not-collapsed-list",style:k},t.map((B,M)=>y.createElement(Dl,{key:M,name:M.toString(),data:B,keyPath:r,deep:a,isCollapsed:i,handleRemove:this.handleRemoveItem(M),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:w,beforeAddAction:S,beforeUpdateAction:x,logger:$,onSubmitValueParser:A}))),!I&&o&&y.createElement("div",{className:"rejt-add-form",style:_},y.createElement(bp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:F},"]"),!I&&j)}render(){let{name:e,collapsed:t,keyPath:r,deep:n}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return y.createElement(eC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};aC.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var iC=class extends b.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.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(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{oC(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,textareaElementGenerator:d,minusMenuElement:p,keyPath:c=[]}=this.props,f=u(e,i,n,o,s),m=null,h=null,v=l(e,i,n,o,s);if(r&&!v){let E=d(yp,c,o,e,i,s),w=b.cloneElement(E,{ref:this.refInput,defaultValue:t,onKeyDown:this.onKeydown});m=y.createElement("span",{className:"rejt-edit-form",style:f.editForm},w),h=null}else{m=y.createElement("span",{className:"rejt-value",style:f.value,onClick:v?void 0:this.handleEditMode},t);let E=c.at(-1),w=p&&b.cloneElement(p,{onClick:a,className:"rejt-minus-menu",style:f.minus,"aria-label":`remove the function '${String(e)}'${String(E)?` from '${String(E)}'`:""}`});h=v?null:w}return y.createElement("li",{className:"rejt-value-node",style:f.li},y.createElement("span",{className:"rejt-name",style:f.name},e," :"," "),m,h)}};iC.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};var Dl=class extends b.Component{constructor(e){super(e),this.state={data:e.data,name:e.name,keyPath:e.keyPath??[],deep:e.deep??0}}static getDerivedStateFromProps(e,t){return e.data!==t.data?{data:e.data}:null}render(){let{data:e,name:t,keyPath:r,deep:n}=this.state,{isCollapsed:o,handleRemove:a,handleUpdateValue:i,onUpdate:l,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:v,beforeRemoveAction:E,beforeAddAction:w,beforeUpdateAction:S,logger:x,onSubmitValueParser:$}=this.props,A=()=>!0,C=Yr(e);switch(C){case A8:return y.createElement(ic,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:A,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:v,beforeRemoveAction:E,beforeAddAction:w,beforeUpdateAction:S,logger:x,onSubmitValueParser:$});case D8:return y.createElement(ic,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:v,beforeRemoveAction:E,beforeAddAction:w,beforeUpdateAction:S,logger:x,onSubmitValueParser:$});case k8:return y.createElement(aC,{data:e,name:t,isCollapsed:o,keyPath:r,deep:n,handleRemove:a,onUpdate:l,onDeltaUpdate:s,readOnly:u,dataType:C,getStyle:d,addButtonElement:p,cancelButtonElement:c,inputElementGenerator:f,textareaElementGenerator:m,minusMenuElement:h,plusMenuElement:v,beforeRemoveAction:E,beforeAddAction:w,beforeUpdateAction:S,logger:x,onSubmitValueParser:$});case O8:return y.createElement(yr,{name:t,value:`"${e}"`,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:h,logger:x,onSubmitValueParser:$});case F8:return y.createElement(yr,{name:t,value:e,originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:h,logger:x,onSubmitValueParser:$});case _8:return y.createElement(yr,{name:t,value:e?"true":"false",originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:h,logger:x,onSubmitValueParser:$});case T8:return y.createElement(yr,{name:t,value:e.toISOString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:A,dataType:C,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:h,logger:x,onSubmitValueParser:$});case R8:return y.createElement(yr,{name:t,value:"null",originalValue:"null",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:h,logger:x,onSubmitValueParser:$});case P8:return y.createElement(yr,{name:t,value:"undefined",originalValue:"undefined",keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:h,logger:x,onSubmitValueParser:$});case I8:return y.createElement(iC,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:u,dataType:C,getStyle:d,cancelButtonElement:c,textareaElementGenerator:m,minusMenuElement:h,logger:x,onSubmitValueParser:$});case L8:return y.createElement(yr,{name:t,value:e.toString(),originalValue:e,keyPath:r,deep:n,handleRemove:a,handleUpdateValue:i,readOnly:A,dataType:C,getStyle:d,cancelButtonElement:c,inputElementGenerator:f,minusMenuElement:h,logger:x,onSubmitValueParser:$});default:return null}}};Dl.defaultProps={keyPath:[],deep:0};var ic=class extends b.Component{constructor(e){super(e);let t=e.deep===-1?[]:[...e.keyPath||[],e.name];this.state={name:e.name,data:e.data,keyPath:t??[],deep:e.deep??0,nextDeep:(e.deep??0)+1,collapsed:e.isCollapsed(t,e.deep??0,e.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(e,t){return e.data!==t.data?{data:e.data}:null}onChildUpdate(e,t){let{data:r,keyPath:n=[]}=this.state;r[e]=t,this.setState({data:r});let{onUpdate:o}=this.props,a=n.length;o(n[a-1],r)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:e,newValue:t}){let{data:r,keyPath:n=[],nextDeep:o}=this.state,{beforeAddAction:a,logger:i}=this.props;(a||Promise.resolve.bind(Promise))(e,n,o,t).then(()=>{r[e]=t,this.setState({data:r}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:s}=this.props;l(n[n.length-1],r),s({type:tC,keyPath:n,deep:o,key:e,newValue:t})}).catch(i.error)}handleRemoveValue(e){return()=>{let{beforeRemoveAction:t,logger:r}=this.props,{data:n,keyPath:o=[],nextDeep:a}=this.state,i=n[e];(t||Promise.resolve.bind(Promise))(e,o,a,i).then(()=>{let l={keyPath:o,deep:a,key:e,oldValue:i,type:rC};delete n[e],this.setState({data:n});let{onUpdate:s,onDeltaUpdate:u}=this.props;s(o[o.length-1],n),u(l)}).catch(r.error)}}handleCollapseMode(){this.setState(e=>({collapsed:!e.collapsed}))}handleEditValue({key:e,value:t}){return new Promise((r,n)=>{let{beforeUpdateAction:o}=this.props,{data:a,keyPath:i=[],nextDeep:l}=this.state,s=a[e];(o||Promise.resolve.bind(Promise))(e,i,l,s,t).then(()=>{a[e]=t,this.setState({data:a});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(i[i.length-1],a),d({type:nC,keyPath:i,deep:l,key:e,newValue:t,oldValue:s}),r()}).catch(n)})}renderCollapsed(){let{name:e,keyPath:t,deep:r,data:n}=this.state,{handleRemove:o,readOnly:a,dataType:i,getStyle:l,minusMenuElement:s}=this.props,{minus:u,collapsed:d}=l(e,n,t,r,i),p=Object.getOwnPropertyNames(n),c=a(e,n,t,r,i),f=s&&b.cloneElement(s,{onClick:o,className:"rejt-minus-menu",style:u,"aria-label":`remove the object '${String(e)}'`});return y.createElement(y.Fragment,null,y.createElement("span",{style:d},"{...}"," ",p.length," ",p.length===1?"key":"keys"),!c&&f)}renderNotCollapsed(){let{name:e,data:t,keyPath:r,deep:n,nextDeep:o,addFormVisible:a}=this.state,{isCollapsed:i,handleRemove:l,onDeltaUpdate:s,readOnly:u,getStyle:d,dataType:p,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:w,beforeAddAction:S,beforeUpdateAction:x,logger:$,onSubmitValueParser:A}=this.props,{minus:C,plus:D,addForm:F,ul:k,delimiter:_}=d(e,t,r,n,p),I=Object.getOwnPropertyNames(t),L=u(e,t,r,n,p),j=E&&b.cloneElement(E,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:D,"aria-label":`add a new property to the object '${String(e)}'`}),B=v&&b.cloneElement(v,{onClick:l,className:"rejt-minus-menu",style:C,"aria-label":`remove the object '${String(e)}'`}),M=I.map(V=>y.createElement(Dl,{key:V,name:V,data:t[V],keyPath:r,deep:o,isCollapsed:i,handleRemove:this.handleRemoveValue(V),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:s,readOnly:u,getStyle:d,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,textareaElementGenerator:h,minusMenuElement:v,plusMenuElement:E,beforeRemoveAction:w,beforeAddAction:S,beforeUpdateAction:x,logger:$,onSubmitValueParser:A}));return y.createElement(y.Fragment,null,y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"{"),!L&&j,y.createElement("ul",{className:"rejt-not-collapsed-list",style:k},M),!L&&a&&y.createElement("div",{className:"rejt-add-form",style:F},y.createElement(bp,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:c,cancelButtonElement:f,inputElementGenerator:m,keyPath:r,deep:n,onSubmitValueParser:A})),y.createElement("span",{className:"rejt-not-collapsed-delimiter",style:_},"}"),!L&&B)}render(){let{name:e,collapsed:t,keyPath:r,deep:n=0}=this.state,o=t?this.renderCollapsed():this.renderNotCollapsed();return y.createElement(eC,{name:e,collapsed:t,deep:n,keyPath:r,onClick:this.handleCollapseMode},o)}};ic.defaultProps={keyPath:[],deep:0,minusMenuElement:y.createElement("span",null," - "),plusMenuElement:y.createElement("span",null," + ")};var yr=class extends b.Component{constructor(e){super(e);let t=[...e.keyPath||[],e.name];this.state={value:e.value,name:e.name,keyPath:t??[],deep:e.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(e,t){return e.value!==t.value?{value:e.value}:null}componentDidUpdate(){let{editEnabled:e,inputRef:t,name:r,value:n,keyPath:o,deep:a}=this.state,{readOnly:i,dataType:l}=this.props,s=i(r,n,o,a,l);e&&!s&&typeof t.focus=="function"&&t.focus()}onKeydown(e){let{inputRef:t}=this.state;e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||e.repeat||t!==e.target||((e.code==="Enter"||e.key==="Enter")&&(e.preventDefault(),this.handleEdit()),(e.code==="Escape"||e.key==="Escape")&&(e.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:e,originalValue:t,logger:r,onSubmitValueParser:n,keyPath:o}=this.props,{inputRef:a,name:i,deep:l}=this.state;if(!a)return;let s=n(!0,o,l,i,a.value),u={value:s,key:i};(e||Promise.resolve.bind(Promise))(u).then(()=>{oC(t,s)||this.handleCancelEdit()}).catch(r.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(e){this.state.inputRef=e}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:e,value:t,editEnabled:r,keyPath:n,deep:o}=this.state,{handleRemove:a,originalValue:i,readOnly:l,dataType:s,getStyle:u,inputElementGenerator:d,minusMenuElement:p,keyPath:c}=this.props,f=u(e,i,n,o,s),m=l(e,i,n,o,s),h=r&&!m,v=d(yp,c,o,e,i,s),E=b.cloneElement(v,{ref:this.refInput,defaultValue:JSON.stringify(i),onKeyDown:this.onKeydown}),w=n.at(-2),S=p&&b.cloneElement(p,{onClick:a,className:"rejt-minus-menu",style:f.minus,"aria-label":`remove the property '${String(e)}' with value '${String(i)}'${String(w)?` from '${String(w)}'`:""}`});return y.createElement("li",{className:"rejt-value-node",style:f.li},y.createElement("span",{className:"rejt-name",style:f.name},e," : "),h?y.createElement("span",{className:"rejt-edit-form",style:f.editForm},E):y.createElement("span",{className:"rejt-value",style:f.value,onClick:m?void 0:this.handleEditMode},String(t)),!m&&!h&&S)}};yr.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:y.createElement("button",null,"c"),minusMenuElement:y.createElement("span",null," - ")};function N8(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}var j8={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},M8={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},z8={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},lC=class extends b.Component{constructor(e){super(e),this.state={data:e.data,rootName:e.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(e,t){return e.data!==t.data||e.rootName!==t.rootName?{data:e.data,rootName:e.rootName}:null}onUpdate(e,t){var r,n;this.setState({data:t}),(n=(r=this.props).onFullyUpdate)==null||n.call(r,t)}removeRoot(){this.onUpdate(null,null)}render(){let{data:e,rootName:t}=this.state,{isCollapsed:r,onDeltaUpdate:n,readOnly:o,getStyle:a,addButtonElement:i,cancelButtonElement:l,inputElement:s,textareaElement:u,minusMenuElement:d,plusMenuElement:p,beforeRemoveAction:c,beforeAddAction:f,beforeUpdateAction:m,logger:h,onSubmitValueParser:v,fallback:E=null}=this.props,w=Yr(e),S=o;Yr(o)==="Boolean"&&(S=()=>o);let x=s;s&&Yr(s)!=="Function"&&(x=()=>s);let $=u;return u&&Yr(u)!=="Function"&&($=()=>u),w==="Object"||w==="Array"?y.createElement("div",{className:"rejt-tree"},y.createElement(Dl,{data:e,name:t||"root",deep:-1,isCollapsed:r??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:n??(()=>{}),readOnly:S,getStyle:a??(()=>({})),addButtonElement:i,cancelButtonElement:l,inputElementGenerator:x,textareaElementGenerator:$,minusMenuElement:d,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:c,beforeAddAction:f,beforeUpdateAction:m,logger:h??{},onSubmitValueParser:v??(A=>A)})):E}};lC.defaultProps={rootName:"root",isCollapsed:(e,t)=>t!==-1,getStyle:(e,t,r,n,o)=>{switch(o){case"Object":case"Error":return j8;case"Array":return M8;default:return z8}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(e,t,r,n,o)=>N8(o),inputElement:()=>y.createElement("input",null),textareaElement:()=>y.createElement("textarea",null),fallback:null};var{window:H8}=globalThis,U8=T.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}})),Gg=T.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"})),Yg=T.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}}})),Kg=T.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}`}})),W8=T(Ar)(({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}})),V8=T(co.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"}})),q8={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},G8=e=>{e.currentTarget.dispatchEvent(new H8.KeyboardEvent("keydown",q8))},Y8=e=>{e.currentTarget.select()},K8=e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),Xg=({name:e,value:t,onChange:r,argType:n})=>{var S;let o=qb(),a=b.useMemo(()=>t&&YD(t),[t]),i=a!=null,[l,s]=b.useState(!i),[u,d]=b.useState(null),p=!!((S=n==null?void 0:n.table)!=null&&S.readonly),c=b.useCallback(x=>{try{x&&r(JSON.parse(x)),d(null)}catch($){d($)}},[r]),[f,m]=b.useState(!1),h=b.useCallback(()=>{r({}),m(!0)},[m]),v=b.useRef(null);if(b.useEffect(()=>{f&&v.current&&v.current.select()},[f]),!i)return y.createElement(Tr,{disabled:p,id:Gi(e),onClick:h},"Set object");let E=y.createElement(V8,{ref:v,id:Ft(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:x=>c(x.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:u?"error":void 0,readOnly:p}),w=Array.isArray(t)||typeof t=="object"&&(t==null?void 0:t.constructor)===Object;return y.createElement(U8,{"aria-readonly":p},w&&y.createElement(W8,{role:"switch","aria-checked":l,"aria-label":`Edit the ${e} properties in text format`,onClick:x=>{x.preventDefault(),s($=>!$)}},l?y.createElement(eR,null):y.createElement(QT,null),y.createElement("span",null,"RAW")),l?E:y.createElement(lC,{readOnly:p||!w,isCollapsed:w?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:K8(o),cancelButtonElement:y.createElement(Gg,{type:"button"},"Cancel"),addButtonElement:y.createElement(Gg,{type:"submit",primary:!0},"Save"),plusMenuElement:y.createElement(Yg,{type:"button"},y.createElement(tR,null)),minusMenuElement:y.createElement(Yg,{type:"button"},y.createElement(rR,null)),inputElement:(x,$,A,C)=>C?y.createElement(Kg,{onFocus:Y8,onBlur:G8}):y.createElement(Kg,null),fallback:E}))},X8=T.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,
|
|
1210
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
1211
|
+
${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
1212
|
+
${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
1213
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
1214
|
+
${Hr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
1215
|
+
${Hr(.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:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor: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,
|
|
1216
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
1217
|
+
${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
1218
|
+
${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
1219
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
1220
|
+
${Hr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
1221
|
+
${Hr(.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:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right,
|
|
1222
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
1223
|
+
${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
1224
|
+
${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right,
|
|
1225
|
+
${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%,
|
|
1226
|
+
${Hr(.02,e.input.background)} ${(n-t)/(r-t)*100}%,
|
|
1227
|
+
${Hr(.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"}}})),sC=T.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),Z8=T(sC)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),J8=T.div({display:"flex",alignItems:"center",width:"100%"});function Q8(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}var eI=({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:l,argType:s})=>{var f;let u=m=>{r(u8(m.target.value))},d=t!==void 0,p=b.useMemo(()=>Q8(a),[a]),c=!!((f=s==null?void 0:s.table)!=null&&f.readonly);return y.createElement(J8,{"aria-readonly":c},y.createElement(sC,null,n),y.createElement(X8,{id:Ft(e),type:"range",disabled:c,onChange:u,name:e,min:n,max:o,step:a,onFocus:l,onBlur:i,value:t??n}),y.createElement(Z8,{numberOFDecimalsPlaces:p,max:o},d?t.toFixed(p):"--"," / ",o))},tI=T.label({display:"flex"}),rI=T.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),nI=({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{var f;let l=m=>{r(m.target.value)},s=!!((f=i==null?void 0:i.table)!=null&&f.readonly),[u,d]=b.useState(!1),p=b.useCallback(()=>{r(""),d(!0)},[d]);if(t===void 0)return y.createElement(Tr,{variant:"outline",size:"medium",disabled:s,id:Gi(e),onClick:p},"Set string");let c=typeof t=="string";return y.createElement(tI,null,y.createElement(co.Textarea,{id:Ft(e),maxLength:a,onChange:l,disabled:s,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:c?void 0:"error",name:e,value:c?t:"",onFocus:n,onBlur:o}),a&&y.createElement(rI,{isMaxed:(t==null?void 0:t.length)===a},(t==null?void 0:t.length)??0," / ",a))},oI=T(co.Input)({padding:10});function aI(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}var iI=({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{var s;let a=b.useRef(null),i=(s=o==null?void 0:o.control)==null?void 0:s.readOnly;function l(u){if(!u.target.files)return;let d=Array.from(u.target.files).map(p=>URL.createObjectURL(p));e(d),aI(n||[])}return b.useEffect(()=>{n==null&&a.current&&(a.current.value="")},[n,t]),y.createElement(oI,{ref:a,id:Ft(t),type:"file",name:t,multiple:!0,disabled:i,onChange:l,accept:r,size:"flex"})},lI=b.lazy(()=>dc(()=>import("./Color-AVL7NMMY-BzNNgCT5.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),sI=e=>y.createElement(b.Suspense,{fallback:y.createElement("div",null)},y.createElement(lI,{...e})),uI={array:Xg,object:Xg,boolean:t8,color:sI,date:l8,number:d8,check:bn,"inline-check":bn,radio:bn,"inline-radio":bn,select:bn,"multi-select":bn,range:eI,text:nI,file:iI},Zg=()=>y.createElement(y.Fragment,null,"-"),cI=({row:e,arg:t,updateArgs:r,isHovered:n})=>{var h;let{key:o,control:a}=e,[i,l]=b.useState(!1),[s,u]=b.useState({value:t});b.useEffect(()=>{i||u({value:t})},[i,t]);let d=b.useCallback(v=>(u({value:v}),r({[o]:v}),v),[r,o]),p=b.useCallback(()=>l(!1),[]),c=b.useCallback(()=>l(!0),[]);if(!a||a.disable){let v=(a==null?void 0:a.disable)!==!0&&((h=e==null?void 0:e.type)==null?void 0:h.name)!=="function";return n&&v?y.createElement(Qn,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},"Setup controls"):y.createElement(Zg,null)}let f={name:o,argType:e,value:s.value,onChange:d,onBlur:p,onFocus:c},m=uI[a.type]||Zg;return y.createElement(m,{...f,...a,controlType:a.type})},dI=T.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:dr({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),pI=({tags:e})=>{var a,i;let t=(e.params||[]).filter(l=>l.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:y.createElement(y.Fragment,null,y.createElement(dI,null,y.createElement("tbody",null,n&&y.createElement("tr",{key:"deprecated"},y.createElement("td",{colSpan:2},y.createElement("strong",null,"Deprecated"),": ",(a=e.deprecated)==null?void 0:a.toString())),r&&t.map(l=>y.createElement("tr",{key:l.name},y.createElement("td",null,y.createElement("code",null,l.name)),y.createElement("td",null,l.description))),o&&y.createElement("tr",{key:"returns"},y.createElement("td",null,y.createElement("code",null,"Returns")),y.createElement("td",null,(i=e.returns)==null?void 0:i.description)))))},fI=p3(fR()),lc=8,Jg=T.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),mI=T.span(dr,({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}})),gI=T.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),hI=T.div(dr,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),yI=T.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"}})),bI=T(iR)({marginLeft:4}),vI=T(bS)({marginLeft:4}),xI=()=>y.createElement("span",null,"-"),uC=({text:e,simple:t})=>y.createElement(mI,{simple:t},e),EI=(0,fI.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),wI=e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return XD(t)},Qg=(e,t=!0)=>{let r=e;return t||(r=e.slice(0,lc)),r.map(n=>y.createElement(uC,{key:n,text:n===""?'""':n}))},SI=({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=b.useState(!1),[i,l]=b.useState(t||!1);if(r==null)return null;let s=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(s))return y.createElement(uC,{text:s});let u=wI(s),d=u.length;return d>lc?y.createElement(Jg,{isExpanded:i},Qg(u,i),y.createElement(gI,{onClick:()=>l(!i)},i?"Show less...":`Show ${d-lc} more...`)):y.createElement(Jg,null,Qg(u))}return y.createElement(oS,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},tooltip:y.createElement(yI,{width:EI(n)},y.createElement(hl,{language:"jsx",format:!1},n))},y.createElement(hI,{className:"sbdocs-expandable"},y.createElement("span",null,s),o?y.createElement(bI,null):y.createElement(vI,null)))},ks=({value:e,initialExpandedArgs:t})=>e==null?y.createElement(xI,null):y.createElement(SI,{value:e,initialExpandedArgs:t}),CI=T.span({fontWeight:"bold"}),$I=T.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),AI=T.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...dr({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),DI=T.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?ye(.1,e.color.defaultText):ye(.2,e.color.defaultText),marginTop:t?4:0})),kI=T.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})),OI=T.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),FI=e=>e&&{summary:typeof e=="string"?e:e.name},Ra=e=>{var h;let[t,r]=b.useState(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:l}=e,{name:s,description:u}=n,d=n.table||{},p=d.type||FI(n.type),c=d.defaultValue||n.defaultValue,f=(h=n.type)==null?void 0:h.required,m=u!=null&&u!=="";return y.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},y.createElement(OI,{expandable:i??!1},y.createElement(CI,null,s),f?y.createElement($I,{title:"Required"},"*"):null),a?null:y.createElement("td",null,m&&y.createElement(AI,null,y.createElement(KS,null,u)),d.jsDocTags!=null?y.createElement(y.Fragment,null,y.createElement(kI,{hasDescription:m},y.createElement(ks,{value:p,initialExpandedArgs:l})),y.createElement(pI,{tags:d.jsDocTags})):y.createElement(DI,{hasDescription:m},y.createElement(ks,{value:p,initialExpandedArgs:l}))),a?null:y.createElement("td",null,y.createElement(ks,{value:c,initialExpandedArgs:l})),o?y.createElement("td",null,y.createElement(cI,{...e,isHovered:t})):null)},_I=T.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})),TI=T.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),RI=({inAddonPanel:e})=>{let[t,r]=b.useState(!0);return b.useEffect(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:y.createElement(_I,{inAddonPanel:e},y.createElement(Cl,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:y.createElement(y.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:y.createElement(TI,null,e&&y.createElement(y.Fragment,null,y.createElement(Qn,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(Zu,null)," Read docs")),!e&&y.createElement(Qn,{href:"https://storybook.js.org/docs/essentials/controls",target:"_blank",withArrow:!0},y.createElement(Zu,null)," Learn how to set that up"))}))},PI=T(oR)(({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"})),II=T(aR)(({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"})),LI=T.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),BI=T.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`}})),NI=T.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),jI=T.td({position:"relative"}),MI=T.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Hr(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),eh=T.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"}),Os=({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=b.useState(n),l=e==="subsection"?NI:BI,s=(r==null?void 0:r.length)||0,u=e==="subsection"?`${s} item${s!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?s:t} item${s!==1?"s":""}`;return y.createElement(y.Fragment,null,y.createElement(MI,{title:d},y.createElement(l,{colSpan:1},y.createElement(eh,{onClick:p=>i(!a),tabIndex:0},d),y.createElement(LI,null,a?y.createElement(PI,null):y.createElement(II,null),t)),y.createElement(jI,{colSpan:o-1},y.createElement(eh,{onClick:p=>i(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:u)),a?r:null)},zI=T.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Pa=T.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),ze=T.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}}}),Fe=T.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})),HI=()=>y.createElement(zI,null,y.createElement(Pa,null,y.createElement(ze,{position:"first"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"second"},y.createElement(Fe,{width:"30%"})),y.createElement(ze,{position:"third"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"last"},y.createElement(Fe,{width:"60%"}))),y.createElement(Pa,null,y.createElement(ze,{position:"first"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"second"},y.createElement(Fe,{width:"80%"}),y.createElement(Fe,{width:"30%"})),y.createElement(ze,{position:"third"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"last"},y.createElement(Fe,{width:"60%"}))),y.createElement(Pa,null,y.createElement(ze,{position:"first"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"second"},y.createElement(Fe,{width:"80%"}),y.createElement(Fe,{width:"30%"})),y.createElement(ze,{position:"third"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"last"},y.createElement(Fe,{width:"60%"}))),y.createElement(Pa,null,y.createElement(ze,{position:"first"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"second"},y.createElement(Fe,{width:"80%"}),y.createElement(Fe,{width:"30%"})),y.createElement(ze,{position:"third"},y.createElement(Fe,{width:"60%"})),y.createElement(ze,{position:"last"},y.createElement(Fe,{width:"60%"})))),UI=T.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}}}}})),WI=T(Ar)(({theme:e})=>({margin:"-4px -12px -4px 0"})),VI=T.span({display:"flex",justifyContent:"space-between"}),qI={alpha:(e,t)=>(e.name??"").localeCompare(t.name??""),requiredFirst:(e,t)=>{var r,n;return+!!((r=t.type)!=null&&r.required)-+!!((n=e.type)!=null&&n.required)||(e.name??"").localeCompare(t.name??"")},none:null},GI=(e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:l,subcategory:s}=(i==null?void 0:i.table)||{};if(l){let u=r.sections[l]||{ungrouped:[],subsections:{}};if(!s)u.ungrouped.push({key:a,...i});else{let d=u.subsections[s]||[];d.push({key:a,...i}),u.subsections[s]=d}r.sections[l]=u}else if(s){let u=r.ungroupedSubsections[s]||[];u.push({key:a,...i}),r.ungroupedSubsections[s]=u}else r.ungrouped.push({key:a,...i})});let n=qI[t],o=a=>n?Object.keys(a).reduce((i,l)=>({...i,[l]:a[l].sort(n)}),{}):a;return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},YI=(e,t,r)=>{try{return iy(e,t,r)}catch(n){return cR.warn(n.message),!1}},sc=e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:l}=e;if("error"in e){let{error:w}=e;return y.createElement($S,null,w," ",y.createElement(Qn,{href:"http://storybook.js.org/docs/",target:"_blank",withArrow:!0},y.createElement(Zu,null)," Read the docs"))}if(l)return y.createElement(HI,null);let{rows:s,args:u,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},p=GI(a3(s||{},w=>{var S;return!((S=w==null?void 0:w.table)!=null&&S.disable)&&YI(w,u||{},d||{})}),i),c=p.ungrouped.length===0,f=Object.entries(p.sections).length===0,m=Object.entries(p.ungroupedSubsections).length===0;if(c&&f&&m)return y.createElement(RI,{inAddonPanel:o});let h=1;t&&(h+=1),n||(h+=2);let v=Object.keys(p.sections).length>0,E={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return y.createElement(Hd,null,y.createElement(UI,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},y.createElement("thead",{className:"docblock-argstable-head"},y.createElement("tr",null,y.createElement("th",null,y.createElement("span",null,"Name")),n?null:y.createElement("th",null,y.createElement("span",null,"Description")),n?null:y.createElement("th",null,y.createElement("span",null,"Default")),t?y.createElement("th",null,y.createElement(VI,null,"Control"," ",!l&&r&&y.createElement(WI,{onClick:()=>r(),title:"Reset controls"},y.createElement(lR,{"aria-hidden":!0})))):null)),y.createElement("tbody",{className:"docblock-argstable-body"},p.ungrouped.map(w=>y.createElement(Ra,{key:w.key,row:w,arg:u&&u[w.key],...E})),Object.entries(p.ungroupedSubsections).map(([w,S])=>y.createElement(Os,{key:w,label:w,level:"subsection",colSpan:h},S.map(x=>y.createElement(Ra,{key:x.key,row:x,arg:u&&u[x.key],expandable:v,...E})))),Object.entries(p.sections).map(([w,S])=>y.createElement(Os,{key:w,label:w,level:"section",colSpan:h},S.ungrouped.map(x=>y.createElement(Ra,{key:x.key,row:x,arg:u&&u[x.key],...E})),Object.entries(S.subsections).map(([x,$])=>y.createElement(Os,{key:x,label:x,level:"subsection",colSpan:h},$.map(A=>y.createElement(Ra,{key:A.key,row:A,arg:u&&u[A.key],expandable:v,...E})))))))))},KI=e=>`anchor--${e}`,XI=({storyId:e,children:t})=>y.createElement("div",{id:KI(e),className:"sb-anchor"},t);globalThis&&globalThis.__DOCS_CONTEXT__===void 0&&(globalThis.__DOCS_CONTEXT__=b.createContext(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var qt=globalThis?globalThis.__DOCS_CONTEXT__:b.createContext(null),fn=(e,t)=>b.useContext(qt).resolveOf(e,t),ZI=e=>e.split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),JI=e=>{if(e)return typeof e=="string"?e.includes("-")?ZI(e):e:e.__docgenInfo&&e.__docgenInfo.displayName?e.__docgenInfo.displayName:e.name};function QI(e,t="start"){e.scrollIntoView({behavior:"smooth",block:t,inline:"nearest"})}var e7=Object.create,cC=Object.defineProperty,t7=Object.getOwnPropertyDescriptor,dC=Object.getOwnPropertyNames,r7=Object.getPrototypeOf,n7=Object.prototype.hasOwnProperty,ie=(e,t)=>function(){return t||(0,e[dC(e)[0]])((t={exports:{}}).exports,t),t.exports},o7=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of dC(t))!n7.call(e,o)&&o!==r&&cC(e,o,{get:()=>t[o],enumerable:!(n=t7(t,o))||n.enumerable});return e},vp=(e,t,r)=>(r=e!=null?e7(r7(e)):{},o7(!e||!e.__esModule?cC(r,"default",{value:e,enumerable:!0}):r,e)),a7=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],i7=["detail"];function l7(e){let t=a7.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of i7.filter(n=>e[n]!==void 0))t[r]=e[r];return t}var pC=ie({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),s7=ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),u7=ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),c7=ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),d7=ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),p7=ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),xp=ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),f7=ie({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),m7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),g7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),h7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),y7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),b7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),v7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),x7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||function(r){return r!==r}}}),E7=ie({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=x7();t.exports=function(n){return r(n)||n===0?n:n<0?-1:1}}}),w7=ie({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Ep=ie({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=w7();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),S7=ie({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),fC=ie({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var a=42;r[n]=a;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(r,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0}}}),mC=ie({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=fC();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}}),gC=ie({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),hC=ie({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=pC();t.exports=r.getPrototypeOf||null}}),C7=ie({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,a="[object Function]",i=function(u,d){for(var p=[],c=0;c<u.length;c+=1)p[c]=u[c];for(var f=0;f<d.length;f+=1)p[f+u.length]=d[f];return p},l=function(u,d){for(var p=[],c=d,f=0;c<u.length;c+=1,f+=1)p[f]=u[c];return p},s=function(u,d){for(var p="",c=0;c<u.length;c+=1)p+=u[c],c+1<u.length&&(p+=d);return p};t.exports=function(u){var d=this;if(typeof d!="function"||n.apply(d)!==a)throw new TypeError(r+d);for(var p=l(arguments,1),c,f=function(){if(this instanceof c){var w=d.apply(this,i(p,arguments));return Object(w)===w?w:this}return d.apply(u,i(p,arguments))},m=o(0,d.length-p.length),h=[],v=0;v<m;v++)h[v]="$"+v;if(c=Function("binder","return function ("+s(h,",")+"){ return binder.apply(this,arguments); }")(f),d.prototype){var E=function(){};E.prototype=d.prototype,c.prototype=new E,E.prototype=null}return c}}}),kl=ie({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=C7();t.exports=Function.prototype.bind||r}}),wp=ie({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),yC=ie({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),$7=ie({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),A7=ie({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=kl(),n=yC(),o=wp(),a=$7();t.exports=a||r.call(o,n)}}),bC=ie({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=kl(),n=xp(),o=wp(),a=A7();t.exports=function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return a(r,o,i)}}}),D7=ie({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=bC(),n=Ep(),o;try{o=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var a=!!o&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=a&&typeof a.get=="function"?r([a.get]):typeof l=="function"?function(s){return l(s==null?s:i(s))}:!1}}),k7=ie({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=gC(),n=hC(),o=D7();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}}),vC=ie({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,o=kl();t.exports=o.call(r,n)}}),O7=ie({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=pC(),o=s7(),a=u7(),i=c7(),l=d7(),s=p7(),u=xp(),d=f7(),p=m7(),c=g7(),f=h7(),m=y7(),h=b7(),v=v7(),E=E7(),w=Function,S=function(ae){try{return w('"use strict"; return ('+ae+").constructor;")()}catch{}},x=Ep(),$=S7(),A=function(){throw new u},C=x?function(){try{return arguments.callee,A}catch{try{return x(arguments,"callee").get}catch{return A}}}():A,D=mC()(),F=k7(),k=hC(),_=gC(),I=yC(),L=wp(),j={},B=typeof Uint8Array>"u"||!F?r:F(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":D&&F?F([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D&&F?F(F([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!D||!F?r:F(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":x,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!D||!F?r:F(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D&&F?F(""[Symbol.iterator]()):r,"%Symbol%":D?Symbol:r,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":B,"%TypeError%":u,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":d,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":L,"%Function.prototype.apply%":I,"%Object.defineProperty%":$,"%Object.getPrototypeOf%":k,"%Math.abs%":p,"%Math.floor%":c,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":v,"%Math.sign%":E,"%Reflect.getPrototypeOf%":_};if(F)try{null.error}catch(ae){V=F(F(ae)),M["%Error.prototype%"]=V}var V,G=function ae(pe){var z;if(pe==="%AsyncFunction%")z=S("async function () {}");else if(pe==="%GeneratorFunction%")z=S("function* () {}");else if(pe==="%AsyncGeneratorFunction%")z=S("async function* () {}");else if(pe==="%AsyncGenerator%"){var U=ae("%AsyncGeneratorFunction%");U&&(z=U.prototype)}else if(pe==="%AsyncIteratorPrototype%"){var me=ae("%AsyncGenerator%");me&&F&&(z=F(me.prototype))}return M[pe]=z,z},W={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Y=kl(),X=vC(),re=Y.call(L,Array.prototype.concat),oe=Y.call(I,Array.prototype.splice),J=Y.call(L,String.prototype.replace),H=Y.call(L,String.prototype.slice),Z=Y.call(L,RegExp.prototype.exec),te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,le=/\\(\\)?/g,se=function(ae){var pe=H(ae,0,1),z=H(ae,-1);if(pe==="%"&&z!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&pe!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var U=[];return J(ae,te,function(me,ke,be,We){U[U.length]=be?J(We,le,"$1"):ke||me}),U},Re=function(ae,pe){var z=ae,U;if(X(W,z)&&(U=W[z],z="%"+U[0]+"%"),X(M,z)){var me=M[z];if(me===j&&(me=G(z)),typeof me>"u"&&!pe)throw new u("intrinsic "+ae+" exists, but is not available. Please file an issue!");return{alias:U,name:z,value:me}}throw new s("intrinsic "+ae+" does not exist!")};t.exports=function(ae,pe){if(typeof ae!="string"||ae.length===0)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof pe!="boolean")throw new u('"allowMissing" argument must be a boolean');if(Z(/^%?[^%]*%?$/,ae)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=se(ae),U=z.length>0?z[0]:"",me=Re("%"+U+"%",pe),ke=me.name,be=me.value,We=!1,fr=me.alias;fr&&(U=fr[0],oe(z,re([0,1],fr)));for(var Ce=1,nt=!0;Ce<z.length;Ce+=1){var $e=z[Ce],ht=H($e,0,1),Ve=H($e,-1);if((ht==='"'||ht==="'"||ht==="`"||Ve==='"'||Ve==="'"||Ve==="`")&&ht!==Ve)throw new s("property names with quotes must have matching quotes");if(($e==="constructor"||!nt)&&(We=!0),U+="."+$e,ke="%"+U+"%",X(M,ke))be=M[ke];else if(be!=null){if(!($e in be)){if(!pe)throw new u("base intrinsic for "+ae+" exists, but the property is not available.");return}if(x&&Ce+1>=z.length){var yt=x(be,$e);nt=!!yt,nt&&"get"in yt&&!("originalValue"in yt.get)?be=yt.get:be=be[$e]}else nt=X(be,$e),be=be[$e];nt&&!We&&(M[ke]=be)}}return be}}}),Sp=ie({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=O7(),n=bC(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,i){var l=r(a,!!i);return typeof l=="function"&&o(a,".prototype.")>-1?n([l]):l}}}),F7=ie({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=fC();t.exports=function(){return r()&&!!Symbol.toStringTag}}}),xC=ie({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=Sp(),n=F7()(),o=vC(),a=Ep(),i;n?(l=r("RegExp.prototype.exec"),s={},u=function(){throw s},d={toString:u,valueOf:u},typeof Symbol.toPrimitive=="symbol"&&(d[Symbol.toPrimitive]=u),i=function(f){if(!f||typeof f!="object")return!1;var m=a(f,"lastIndex"),h=m&&o(m,"value");if(!h)return!1;try{l(f,d)}catch(v){return v===s}}):(p=r("Object.prototype.toString"),c="[object RegExp]",i=function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:p(f)===c});var l,s,u,d,p,c;t.exports=i}}),_7=ie({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(o){if(!o)return!1;var a=r.call(o);return a==="[object Function]"||typeof o=="function"&&a!=="[object RegExp]"||typeof window<"u"&&(o===window.setTimeout||o===window.alert||o===window.confirm||o===window.prompt)}}}),T7=ie({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=Sp(),n=xC(),o=r("RegExp.prototype.exec"),a=xp();t.exports=function(i){if(!n(i))throw new a("`regex` must be a RegExp");return function(l){return o(i,l)!==null}}}}),R7=ie({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=Sp(),n=r("Object.prototype.toString"),o=mC()(),a=T7();o?(i=r("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(i(u))},t.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||n(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}):t.exports=function(u){return!1};var i,l,s}}),P7=vp(xC()),I7=vp(_7()),L7=vp(R7());function B7(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}var N7=typeof global=="object"&&global&&global.Object===Object&&global,j7=N7,M7=typeof self=="object"&&self&&self.Object===Object&&self,z7=j7||M7||Function("return this")(),Cp=z7,H7=Cp.Symbol,oo=H7,EC=Object.prototype,U7=EC.hasOwnProperty,W7=EC.toString,Do=oo?oo.toStringTag:void 0;function V7(e){var t=U7.call(e,Do),r=e[Do];try{e[Do]=void 0;var n=!0}catch{}var o=W7.call(e);return n&&(t?e[Do]=r:delete e[Do]),o}var q7=V7,G7=Object.prototype,Y7=G7.toString;function K7(e){return Y7.call(e)}var X7=K7,Z7="[object Null]",J7="[object Undefined]",th=oo?oo.toStringTag:void 0;function Q7(e){return e==null?e===void 0?J7:Z7:th&&th in Object(e)?q7(e):X7(e)}var eL=Q7,rh=oo?oo.prototype:void 0;rh&&rh.toString;function tL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wC=tL,rL="[object AsyncFunction]",nL="[object Function]",oL="[object GeneratorFunction]",aL="[object Proxy]";function iL(e){if(!wC(e))return!1;var t=eL(e);return t==nL||t==oL||t==rL||t==aL}var lL=iL,sL=Cp["__core-js_shared__"],Fs=sL,nh=function(){var e=/[^.]+$/.exec(Fs&&Fs.keys&&Fs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function uL(e){return!!nh&&nh in e}var cL=uL,dL=Function.prototype,pL=dL.toString;function fL(e){if(e!=null){try{return pL.call(e)}catch{}try{return e+""}catch{}}return""}var mL=fL,gL=/[\\^$.*+?()[\]{}|]/g,hL=/^\[object .+?Constructor\]$/,yL=Function.prototype,bL=Object.prototype,vL=yL.toString,xL=bL.hasOwnProperty,EL=RegExp("^"+vL.call(xL).replace(gL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wL(e){if(!wC(e)||cL(e))return!1;var t=lL(e)?EL:hL;return t.test(mL(e))}var SL=wL;function CL(e,t){return e==null?void 0:e[t]}var $L=CL;function AL(e,t){var r=$L(e,t);return SL(r)?r:void 0}var SC=AL;function DL(e,t){return e===t||e!==e&&t!==t}var kL=DL,OL=SC(Object,"create"),ta=OL;function FL(){this.__data__=ta?ta(null):{},this.size=0}var _L=FL;function TL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var RL=TL,PL="__lodash_hash_undefined__",IL=Object.prototype,LL=IL.hasOwnProperty;function BL(e){var t=this.__data__;if(ta){var r=t[e];return r===PL?void 0:r}return LL.call(t,e)?t[e]:void 0}var NL=BL,jL=Object.prototype,ML=jL.hasOwnProperty;function zL(e){var t=this.__data__;return ta?t[e]!==void 0:ML.call(t,e)}var HL=zL,UL="__lodash_hash_undefined__";function WL(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ta&&t===void 0?UL:t,this}var VL=WL;function fo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fo.prototype.clear=_L;fo.prototype.delete=RL;fo.prototype.get=NL;fo.prototype.has=HL;fo.prototype.set=VL;var oh=fo;function qL(){this.__data__=[],this.size=0}var GL=qL;function YL(e,t){for(var r=e.length;r--;)if(kL(e[r][0],t))return r;return-1}var Ol=YL,KL=Array.prototype,XL=KL.splice;function ZL(e){var t=this.__data__,r=Ol(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():XL.call(t,r,1),--this.size,!0}var JL=ZL;function QL(e){var t=this.__data__,r=Ol(t,e);return r<0?void 0:t[r][1]}var eB=QL;function tB(e){return Ol(this.__data__,e)>-1}var rB=tB;function nB(e,t){var r=this.__data__,n=Ol(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var oB=nB;function mo(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}mo.prototype.clear=GL;mo.prototype.delete=JL;mo.prototype.get=eB;mo.prototype.has=rB;mo.prototype.set=oB;var aB=mo,iB=SC(Cp,"Map"),lB=iB;function sB(){this.size=0,this.__data__={hash:new oh,map:new(lB||aB),string:new oh}}var uB=sB;function cB(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var dB=cB;function pB(e,t){var r=e.__data__;return dB(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Fl=pB;function fB(e){var t=Fl(this,e).delete(e);return this.size-=t?1:0,t}var mB=fB;function gB(e){return Fl(this,e).get(e)}var hB=gB;function yB(e){return Fl(this,e).has(e)}var bB=yB;function vB(e,t){var r=Fl(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var xB=vB;function go(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}go.prototype.clear=uB;go.prototype.delete=mB;go.prototype.get=hB;go.prototype.has=bB;go.prototype.set=xB;var CC=go,EB="Expected a function";function $p(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(EB);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new($p.Cache||CC),r}$p.Cache=CC;var wB=$p,SB=500;function CB(e){var t=wB(e,function(n){return r.size===SB&&r.clear(),n}),r=t.cache;return t}var $B=CB,AB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,DB=/\\(\\)?/g;$B(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(AB,function(r,n,o,a){t.push(o?a.replace(DB,"$1"):n||r)}),t});var kB=B7,OB=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function $C(e){if(!kB(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=l7(t),r=!0),t=Object.keys(t).reduce((n,o)=>{try{t[o]&&t[o].toJSON,n[o]=t[o]}catch{r=!0}return n},{}),r?t:e}var FB=function(e){let t,r,n,o;return function(a,i){var l;try{if(a==="")return o=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let s=r.get(this)||this;for(;n.length&&s!==n[0];)n.shift(),o.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return OB.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,P7.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,I7.default)(i))return;if((0,L7.default)(i)){if(!e.allowSymbol)return;let d=Symbol.keyFor(i);return d!==void 0?`_gsymbol_${d}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(o)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if((l=i==null?void 0:i.constructor)!=null&&l.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let d=t.get(i);if(!d){let p={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((c,f)=>{try{c[f]=i[f]}catch{}return c},{})};return o.push(a),n.unshift(p),t.set(i,JSON.stringify(o)),i!==p&&r.set(i,p),p}return`_duplicate_${d}`}let u=t.get(i);if(!u){let d=Array.isArray(i)?i:$C(i);return o.push(a),n.unshift(d),t.set(i,JSON.stringify(o)),i!==d&&r.set(i,d),d}return`_duplicate_${u}`}catch{return}}},_B={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},TB=(e,t={})=>{let r={..._B,...t};return JSON.stringify($C(e),FB(r),t.space)};function AC(e){return TB(e,{maxDepth:50})}var DC=b.createContext({sources:{}}),kC="--unknown--",RB=({children:e,channel:t})=>{let[r,n]=b.useState({});return b.useEffect(()=>{let o=(a,i=null,l=!1)=>{let{id:s,args:u=void 0,source:d,format:p}=typeof a=="string"?{id:a,source:i,format:l}:a,c=u?AC(u):kC;n(f=>({...f,[s]:{...f[s],[c]:{code:d||"",format:p}}}))};return t.on(Tp,o),()=>t.off(Tp,o)},[]),y.createElement(DC.Provider,{value:{sources:r}},e)};function PB(e,t,r){let[n,o]=b.useState("Transforming..."),a=t?t==null?void 0:t(e,r):e;return b.useEffect(()=>{async function i(){let l=await a;l!==n&&o(l)}i()}),typeof a=="object"&&typeof a.then=="function"?n:a}var IB=(e,t,r)=>{let{sources:n}=r,o=n==null?void 0:n[e];return(o==null?void 0:o[AC(t)])||(o==null?void 0:o[kC])||{code:""}},LB=({snippet:e,storyContext:t,typeFromProps:r,transformFromProps:n})=>{var p;let o=t.parameters??{},{__isArgsStory:a}=o,i=((p=o.docs)==null?void 0:p.source)||{},l=r||i.type||Rl.AUTO,s=l===Rl.DYNAMIC||l===Rl.AUTO&&e&&a?e:i.originalSource||"",u=n??i.transform,d=u?PB(s,u,t):s;return i.code!==void 0?i.code:d},BB=(e,t,r)=>{var f,m;let{of:n}=e,o=b.useMemo(()=>{if(n)return t.resolveOf(n,["story"]).story;try{return t.storyById()}catch{}},[t,n]),a=o?t.getStoryContext(o):{},i=e.__forceInitialArgs?a.initialArgs:a.unmappedArgs,l=o?IB(o.id,i,r):null,s=LB({snippet:l?l.code:"",storyContext:{...a,args:i},typeFromProps:e.type,transformFromProps:e.transform});if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let u=((m=(f=o==null?void 0:o.parameters)==null?void 0:f.docs)==null?void 0:m.source)||{},d=e.format,p=e.language??u.language??"jsx",c=e.dark??u.dark??!1;return!e.code&&!o?{error:"Oh no! The source is not available."}:e.code?{code:e.code,format:d,language:p,dark:c}:(d=(l==null?void 0:l.format)??!0,{code:s,format:d,language:p,dark:c})};function NB(e,t){let r=jB([e],t);return r&&r[0]}function jB(e,t){let[r,n]=b.useState({});return b.useEffect(()=>{Promise.all(e.map(async o=>{let a=await t.loadStory(o);n(i=>i[o]===a?i:{...i,[o]:a})}))}),e.map(o=>{if(r[o])return r[o];try{return t.storyById(o)}catch{return}})}var MB=(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},zB=(e,t,r)=>{let{parameters:n={}}=t||{},{docs:o={}}=n,a=o.story||{};if(o.disable)return null;if(e.inline??a.inline??!1){let l=e.height??a.height,s=e.autoplay??a.autoplay??!1;return{story:t,inline:!0,height:l,autoplay:s,forceInitialArgs:!!e.__forceInitialArgs,primary:!!e.__primary,renderStoryToElement:r.renderStoryToElement}}let i=e.height??a.height??a.iframeHeight??"100px";return{story:t,inline:!1,height:i,primary:!!e.__primary}},HB=(e={__forceInitialArgs:!1,__primary:!1})=>{let t=b.useContext(qt),r=MB(e,t),n=NB(r,t);if(!n)return y.createElement(kS,null);let o=zB(e,n,t);return o?y.createElement(b6,{...o}):null},UB=e=>{var f,m,h,v,E,w,S,x,$,A,C,D,F,k;let t=b.useContext(qt),r=b.useContext(DC),{of:n,source:o}=e;if("of"in e&&n===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story:a}=fn(n||"story",["story"]),i=BB({...o,...n&&{of:n}},t,r),l=e.layout??a.parameters.layout??((m=(f=a.parameters.docs)==null?void 0:f.canvas)==null?void 0:m.layout)??"padded",s=e.withToolbar??((v=(h=a.parameters.docs)==null?void 0:h.canvas)==null?void 0:v.withToolbar)??!1,u=e.additionalActions??((w=(E=a.parameters.docs)==null?void 0:E.canvas)==null?void 0:w.additionalActions),d=e.sourceState??((x=(S=a.parameters.docs)==null?void 0:S.canvas)==null?void 0:x.sourceState)??"hidden",p=e.className??((A=($=a.parameters.docs)==null?void 0:$.canvas)==null?void 0:A.className),c=((C=e.story)==null?void 0:C.inline)??((k=(F=(D=a.parameters)==null?void 0:D.docs)==null?void 0:F.story)==null?void 0:k.inline)??!1;return y.createElement(OS,{withSource:d==="none"?void 0:i,isExpanded:d==="shown",withToolbar:s,additionalActions:u,className:p,layout:l,inline:c},y.createElement(HB,{of:n||a.moduleExport,meta:e.meta,...e.story}))},WB=(e,t)=>{let r=VB(e,t);if(!r)throw new Error("No result when story was defined");return r},VB=(e,t)=>{let r=e?t.getStoryContext(e):{args:{}},{id:n}=e||{id:"none"},[o,a]=b.useState(r.args);b.useEffect(()=>{let s=u=>{u.storyId===n&&a(u.args)};return t.channel.on(Dg,s),()=>t.channel.off(Dg,s)},[n,t.channel]);let i=b.useCallback(s=>t.channel.emit(dR,{storyId:n,updatedArgs:s}),[n,t.channel]),l=b.useCallback(s=>t.channel.emit(pR,{storyId:n,argNames:s}),[n,t.channel]);return e&&[o,i,l]},qB=(e,t)=>{let r=t.getStoryContext(e),[n,o]=b.useState(r.globals);return b.useEffect(()=>{let a=i=>{o(i.globals)};return t.channel.on(kg,a),()=>t.channel.off(kg,a)},[t.channel]),[n]};function GB(e,t){let{extractArgTypes:r}=t.docs||{};if(!r)throw new Error("Args unsupported. See Args documentation for your framework.");return r(e)}var YB=e=>{var x;let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=b.useContext(qt),{story:n}=r.resolveOf(t||"story",["story"]),{parameters:o,argTypes:a,component:i,subcomponents:l}=n,s=((x=o.docs)==null?void 0:x.controls)||{},u=e.include??s.include,d=e.exclude??s.exclude,p=e.sort??s.sort,[c,f,m]=WB(n,r),[h]=qB(n,r),v=Og(a,u,d);if(!(l&&Object.keys(l||{}).length>0))return Object.keys(v).length>0||Object.keys(c).length>0?y.createElement(sc,{rows:v,sort:p,args:c,globals:h,updateArgs:f,resetArgs:m}):null;let E=JI(i)||"Story",w=Object.fromEntries(Object.entries(l||{}).map(([$,A])=>[$,{rows:Og(GB(A,o),u,d),sort:p}])),S={[E]:{rows:v,sort:p},...w};return y.createElement(O6,{tabs:S,sort:p,args:c,globals:h,updateArgs:f,resetArgs:m})},{document:OC}=globalThis,FC=({className:e,children:t,...r})=>{if(typeof e!="string"&&(typeof t!="string"||!t.match(/[\n\r]/g)))return y.createElement(Ud,null,t);let n=e&&e.split("-");return y.createElement(AS,{language:n&&n[1]||"text",format:!1,code:t,...r})};function Ap(e,t){e.channel.emit(vS,t)}var uc=hS.a,KB=({hash:e,children:t})=>{let r=b.useContext(qt);return y.createElement(uc,{href:e,target:"_self",onClick:n=>{let o=e.substring(1);OC.getElementById(o)&&Ap(r,e)}},t)},_C=e=>{let{href:t,target:r,children:n,...o}=e,a=b.useContext(qt);return!t||r==="_blank"||/^https?:\/\//.test(t)?y.createElement(uc,{...e}):t.startsWith("#")?y.createElement(KB,{hash:t},n):y.createElement(uc,{href:t,onClick:i=>{i.button===0&&!i.altKey&&!i.ctrlKey&&!i.metaKey&&!i.shiftKey&&(i.preventDefault(),Ap(a,i.currentTarget.getAttribute("href")||""))},target:r,...o},n)},TC=["h1","h2","h3","h4","h5","h6"],XB=TC.reduce((e,t)=>({...e,[t]:T(t)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})}),{}),ZB=T.a(()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"})),JB=({as:e,id:t,children:r,...n})=>{let o=b.useContext(qt),a=XB[e],i=`#${t}`;return y.createElement(a,{id:t,...n},y.createElement(ZB,{"aria-hidden":"true",href:i,tabIndex:-1,target:"_self",onClick:l=>{OC.getElementById(t)&&Ap(o,i)}},y.createElement(nR,null)),r)},Dp=e=>{let{as:t,id:r,children:n,...o}=e;if(r)return y.createElement(JB,{as:t,id:r,...o},n);let a=t,{as:i,...l}=e;return y.createElement(a,{...ve(l,t)})},RC=TC.reduce((e,t)=>({...e,[t]:r=>y.createElement(Dp,{as:t,...r})}),{}),QB=e=>{var t;if(!e.children)return null;if(typeof e.children!="string")throw new Error(sR`The Markdown block only accepts children as a single string, but children were of type: '${typeof e.children}'
|
|
1228
|
+
This is often caused by not wrapping the child in a template string.
|
|
1229
|
+
|
|
1230
|
+
This is invalid:
|
|
1231
|
+
<Markdown>
|
|
1232
|
+
# Some heading
|
|
1233
|
+
A paragraph
|
|
1234
|
+
</Markdown>
|
|
1235
|
+
|
|
1236
|
+
Instead do:
|
|
1237
|
+
<Markdown>
|
|
1238
|
+
{\`
|
|
1239
|
+
# Some heading
|
|
1240
|
+
A paragraph
|
|
1241
|
+
\`}
|
|
1242
|
+
</Markdown>
|
|
1243
|
+
`);return y.createElement(KS,{...e,options:{forceBlock:!0,overrides:{code:FC,a:_C,...RC,...(t=e==null?void 0:e.options)==null?void 0:t.overrides},...e==null?void 0:e.options}})},eN=(e=>(e.INFO="info",e.NOTES="notes",e.DOCGEN="docgen",e.AUTO="auto",e))(eN||{}),tN=e=>{var t,r,n,o,a,i,l,s;switch(e.type){case"story":return((r=(t=e.story.parameters.docs)==null?void 0:t.description)==null?void 0:r.story)||null;case"meta":{let{parameters:u,component:d}=e.preparedMeta;return((o=(n=u.docs)==null?void 0:n.description)==null?void 0:o.component)||((i=(a=u.docs)==null?void 0:a.extractComponentDescription)==null?void 0:i.call(a,d,{component:d,parameters:u}))||null}case"component":{let{component:u,projectAnnotations:{parameters:d}}=e;return((s=(l=d==null?void 0:d.docs)==null?void 0:l.extractComponentDescription)==null?void 0:s.call(l,u,{component:u,parameters:d}))||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${e.type}`)}},cc=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let r=fn(t||"meta"),n=tN(r);return n?y.createElement(QB,null,n):null},{document:rN,window:nN}=globalThis,oN=({context:e,theme:t,children:r})=>{var o,a,i,l,s;let n;try{n=(a=(o=e.resolveOf("meta",["meta"]).preparedMeta.parameters)==null?void 0:o.docs)==null?void 0:a.toc}catch{n=(s=(l=(i=e==null?void 0:e.projectAnnotations)==null?void 0:i.parameters)==null?void 0:l.docs)==null?void 0:s.toc}return b.useEffect(()=>{let u;try{if(u=new URL(nN.parent.location.toString()),u.hash){let d=rN.getElementById(decodeURIComponent(u.hash.substring(1)));d&&setTimeout(()=>{QI(d)},200)}}catch{}}),y.createElement(qt.Provider,{value:e},y.createElement(RB,{channel:e.channel},y.createElement(Gb,{theme:rk(t)},y.createElement(c6,{toc:n?y.createElement(q6,{className:"sbdocs sbdocs-toc--custom",channel:e.channel,...n}):null},r))))},aN=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,iN=Object.hasOwnProperty,lN=class{constructor(){this.occurrences,this.reset()}slug(e,t){let r=this,n=sN(e,t===!0),o=n;for(;iN.call(r.occurrences,n);)r.occurrences[o]++,n=o+"-"+r.occurrences[o];return r.occurrences[n]=0,n}reset(){this.occurrences=Object.create(null)}};function sN(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(aN,"").replace(/ /g,"-"))}var PC=new lN,uN=({children:e,disableAnchor:t,...r})=>{if(t||typeof e!="string")return y.createElement(Wd,null,e);let n=PC.slug(e.toLowerCase());return y.createElement(Dp,{as:"h2",id:n,...r},e)},cN=({children:e,disableAnchor:t})=>{if(t||typeof e!="string")return y.createElement(Vd,null,e);let r=PC.slug(e.toLowerCase());return y.createElement(Dp,{as:"h3",id:r},e)},IC=({of:e,expanded:t=!0,withToolbar:r=!1,__forceInitialArgs:n=!1,__primary:o=!1})=>{var l,s;let{story:a}=fn(e||"story",["story"]),i=((s=(l=a.parameters.docs)==null?void 0:l.canvas)==null?void 0:s.withToolbar)??r;return y.createElement(XI,{storyId:a.id},t&&y.createElement(y.Fragment,null,y.createElement(cN,null,a.name),y.createElement(cc,{of:e})),y.createElement(UB,{of:e,withToolbar:i,story:{__forceInitialArgs:n,__primary:o},source:{__forceInitialArgs:n}}))},dN=e=>{let{of:t}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile:r}=fn(t||"meta",["meta"]),n=b.useContext(qt).componentStoriesFromCSFFile(r)[0];return n?y.createElement(IC,{of:n.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},pN=T(uN)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,fontWeight:e.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:e.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}})),fN=({title:e="Stories",includePrimary:t=!0})=>{var l;let{componentStories:r,projectAnnotations:n,getStoryContext:o}=b.useContext(qt),a=r(),{stories:{filter:i}={filter:void 0}}=((l=n.parameters)==null?void 0:l.docs)||{};return i&&(a=a.filter(s=>i(s,o(s)))),a.some(s=>{var u;return(u=s.tags)==null?void 0:u.includes("autodocs")})&&(a=a.filter(s=>{var u;return((u=s.tags)==null?void 0:u.includes("autodocs"))&&!s.usesMount})),t||(a=a.slice(1)),!a||a.length===0?null:y.createElement(y.Fragment,null,typeof e=="string"?y.createElement(pN,null,e):e,a.map(s=>s&&y.createElement(IC,{key:s.id,of:s.moduleExport,expanded:!0,__forceInitialArgs:!0})))},mN="https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle",gN=e=>{let{of:t,children:r}=e;if("of"in e&&t===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=fn(t||"meta",["meta"]).preparedMeta}catch(l){if(r&&!l.message.includes("did you forget to use <Meta of={} />?"))throw l}let{componentSubtitle:o,docs:a}=(n==null?void 0:n.parameters)||{};o&&uR(`Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See ${mN}`);let i=r||(a==null?void 0:a.subtitle)||o;return i?y.createElement(l6,{className:"sbdocs-subtitle sb-unstyled"},i):null},hN=/\s*\/\s*/,yN=e=>{let t=e.trim().split(hN);return(t==null?void 0:t[(t==null?void 0:t.length)-1])||e},bN=e=>{let{children:t,of:r}=e;if("of"in e&&r===void 0)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let n;try{n=fn(r||"meta",["meta"]).preparedMeta}catch(a){if(t&&a instanceof Error&&!a.message.includes("did you forget to use <Meta of={} />?"))throw a}let o=t||yN((n==null?void 0:n.title)||"");return o?y.createElement(i6,{className:"sbdocs-title sb-unstyled"},o):null},vN=()=>{let e=fn("meta",["meta"]),{stories:t}=e.csfFile,r=Object.keys(t).length===1;return y.createElement(y.Fragment,null,y.createElement(bN,null),y.createElement(gN,null),y.createElement(cc,{of:"meta"}),r?y.createElement(cc,{of:"story"}):null,y.createElement(dN,null),y.createElement(YB,null),r?null:y.createElement(fN,null))};function xN({context:e,docsParameter:t}){let r=t.container||oN,n=t.page||vN;return y.createElement(r,{context:e,theme:t.theme},y.createElement(n,null))}var LC={code:FC,a:_C,...RC},EN=class extends b.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:y.createElement(y.Fragment,null,t)}},wN=class{constructor(){this.render=async(e,t,r)=>{let n={...LC,...t==null?void 0:t.components},o=xN;return new Promise((a,i)=>{dc(async()=>{const{MDXProvider:l}=await import("./index-CBmvvqzc.js");return{MDXProvider:l}},__vite__mapDeps([5,1,2,3]),import.meta.url).then(({MDXProvider:l})=>MC(y.createElement(EN,{showException:i,key:Math.random()},y.createElement(l,{components:n},y.createElement(o,{context:e,docsParameter:t}))),r)).then(()=>a())})},this.unmount=e=>{zC(e)}}};const XN=Object.freeze(Object.defineProperty({__proto__:null,DocsRenderer:wN,defaultComponents:LC},Symbol.toStringTag,{value:"Module"}));export{XN as D,VN as M,Y4 as Y,co as Z,p3 as _,c3 as a,zN as d,Ft as g,nT as i,T as x};
|