@v-miniapp/ui-react 1.0.59 → 1.0.71
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/_virtual/_cloneBuffer.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/_nodeUtil.js +4 -0
- package/dist/_virtual/cloneDeepWith.js +7 -0
- package/dist/_virtual/isBuffer.js +4 -0
- package/dist/_virtual/isObject.js +7 -0
- package/dist/_virtual/isSameOrAfter.js +7 -0
- package/dist/_virtual/isSameOrAfter2.js +4 -0
- package/dist/_virtual/isSameOrBefore.js +7 -0
- package/dist/_virtual/isSameOrBefore2.js +4 -0
- package/dist/_virtual/merge.js +7 -0
- package/dist/_virtual/omit.js +7 -0
- package/dist/_virtual/pick.js +7 -0
- package/dist/_virtual/throttle.js +7 -0
- package/dist/assets/icons/loader.svg.js +5 -0
- package/dist/assets/icons/placeholder.svg.js +5 -0
- package/dist/assets/images/broken-image.svg.js +5 -0
- package/dist/assets/images/default-error.png.js +4 -0
- package/dist/assets/images/image.svg.js +5 -0
- package/dist/components/ai-app/ai-app.d.ts +7 -0
- package/dist/components/ai-app/ai-app.js +20 -0
- package/dist/components/ai-app/index.d.ts +1 -0
- package/dist/components/alert/alert.js +76 -0
- package/dist/components/app/app.d.ts +1 -6
- package/dist/components/app/app.js +78 -0
- package/dist/components/app/app.store.d.ts +6 -0
- package/dist/components/app/app.store.js +8 -0
- package/dist/components/app/bottom-tab-bar-layout/hook.js +36 -0
- package/dist/components/app/bottom-tab-bar-layout/index.js +38 -0
- package/dist/components/app/bottom-tab-bar-layout/store.js +54 -0
- package/dist/components/app/data-theme.js +29 -0
- package/dist/components/app/navigation-bar-layout/hook.js +39 -0
- package/dist/components/app/navigation-bar-layout/index.js +46 -0
- package/dist/components/app/navigation-bar-layout/store.js +60 -0
- package/dist/components/app/page-layout/hook.js +62 -0
- package/dist/components/app/page-layout/index.js +21 -0
- package/dist/components/app/page-layout/store.js +52 -0
- package/dist/components/avatar/avatar.js +79 -0
- package/dist/components/badge/badge.js +40 -0
- package/dist/components/bottom-tab-bar/bottom-tab-bar.js +90 -0
- package/dist/components/button/button.const.js +7 -0
- package/dist/components/button/button.js +62 -0
- package/dist/components/calendar/calendar-range-sheet.js +66 -0
- package/dist/components/calendar/calendar-single-sheet.js +64 -0
- package/dist/components/calendar/calendar.js +16 -0
- package/dist/components/calendar/default-render.js +16 -0
- package/dist/components/calendar/range-picker.js +301 -0
- package/dist/components/calendar/single-picker.js +186 -0
- package/dist/components/calendar/utils.js +25 -0
- package/dist/components/carousel/carousel.js +47 -0
- package/dist/components/carousel/use-carousel.js +54 -0
- package/dist/components/checkbox/check-icon.js +23 -0
- package/dist/components/checkbox/checkbox.js +131 -0
- package/dist/components/checkbox/indeterminate-icon.js +20 -0
- package/dist/components/chip/chip.js +80 -0
- package/dist/components/date-field/date-field-range.js +153 -0
- package/dist/components/date-field/date-field.js +100 -0
- package/dist/components/date-field/input.js +53 -0
- package/dist/components/date-picker/date-picker-base.js +214 -0
- package/dist/components/date-picker/date-picker-item.js +69 -0
- package/dist/components/date-picker/date-picker-sheet.js +54 -0
- package/dist/components/date-picker/date-picker.constant.js +11 -0
- package/dist/components/date-picker/date-picker.js +76 -0
- package/dist/components/date-picker/date-picker.utils.js +58 -0
- package/dist/components/dialog/dialog.js +115 -0
- package/dist/components/dropdown/dropdown-base.js +22 -0
- package/dist/components/dropdown/dropdown.js +148 -0
- package/dist/components/error/error-boundary.js +28 -0
- package/dist/components/error/error.js +25 -0
- package/dist/components/icon/icon-mapping.js +260 -0
- package/dist/components/icon/icon.js +54 -0
- package/dist/components/image/image.js +70 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input-wrapper/input-wrapper.js +153 -0
- package/dist/components/label/label.js +58 -0
- package/dist/components/layout/page-loading.js +39 -0
- package/dist/components/layout/page.js +103 -0
- package/dist/components/list-item/list-item.js +36 -0
- package/dist/components/navigation-bar/navigation-bar.d.ts +1 -4
- package/dist/components/navigation-bar/navigation-bar.js +106 -0
- package/dist/components/number-field/number-field.js +162 -0
- package/dist/components/option-item/option-item.js +56 -0
- package/dist/components/pagination/pagination.js +20 -0
- package/dist/components/pull-to-refresh/pull-to-refresh.js +120 -0
- package/dist/components/radio/radio.js +72 -0
- package/dist/components/rating/rating.js +62 -0
- package/dist/components/rating/star.js +22 -0
- package/dist/components/search-field/search-field.js +40 -0
- package/dist/components/section/section-content.js +10 -0
- package/dist/components/section/section-title.js +32 -0
- package/dist/components/section/section.js +21 -0
- package/dist/components/seo/seo.js +18 -0
- package/dist/components/sheet/sheet-body.js +25 -0
- package/dist/components/sheet/sheet-footer.js +11 -0
- package/dist/components/sheet/sheet-header.js +52 -0
- package/dist/components/sheet/sheet.js +72 -0
- package/dist/components/skeleton/skeleton.js +50 -0
- package/dist/components/switch/switch.js +68 -0
- package/dist/components/tab-bar/tab-bar.js +130 -0
- package/dist/components/tab-bar/tab.js +55 -0
- package/dist/components/text-area/text-area.js +75 -0
- package/dist/components/text-field/text-field.js +63 -0
- package/dist/components/toast/toast-provider.js +45 -0
- package/dist/components/toast/toast.js +66 -0
- package/dist/components/toast/toast.store.js +35 -0
- package/dist/components/tooltip/tooltip.js +43 -0
- package/dist/components/typography/typography.js +28 -0
- package/dist/components/uploader/helper.js +21 -0
- package/dist/components/uploader/uploader.js +93 -0
- package/dist/components/visibility-sensor/visibility-sensor.js +17 -0
- package/dist/docs/ui-react/icon-list-grid.d.ts +1 -0
- package/dist/external/index.js +13357 -13497
- package/dist/external/styles.css +1 -1
- package/dist/hooks/use-custom-icon-event.js +16 -0
- package/dist/hooks/use-settings-changed.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +139 -7488
- package/dist/locales/en.json.js +30 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/index.js +10 -0
- package/dist/locales/vi.json.js +30 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrAfter.js +18 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrBefore.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_DataView.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Hash.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_ListCache.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Map.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_MapCache.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Promise.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Set.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Stack.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_apply.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayEach.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayFilter.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayLikeKeys.js +26 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayMap.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assignMergeValue.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assignValue.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_assocIndexOf.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssign.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssignIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseAssignValue.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseClone.js +70 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseCreate.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseFlatten.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseFor.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGet.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetAllKeys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseGetTag.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseHasIn.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsArguments.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsMap.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsNative.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseIsTypedArray.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseKeys.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseKeysIn.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseMerge.js +27 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseMergeDeep.js +38 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_basePick.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_basePickBy.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseRest.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSet.js +31 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSetToString.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseSlice.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseToString.js +24 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseTrim.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseUnary.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_baseUnset.js +34 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_castPath.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneArrayBuffer.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneBuffer.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneDataView.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneRegExp.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneSymbol.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_cloneTypedArray.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copyArray.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copyObject.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copySymbols.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_copySymbolsIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_createAssigner.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_createBaseFor.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_customOmitClone.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_defineProperty.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_flatRest.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getAllKeysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getMapData.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getNative.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getPrototype.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getSymbols.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getTag.js +33 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_getValue.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hasPath.js +26 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashClear.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashDelete.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashGet.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashHas.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_hashSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneArray.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneByTag.js +48 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_initCloneObject.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isFlattenable.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIndex.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isIterateeCall.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isKey.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isKeyable.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isMasked.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_isPrototype.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheClear.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheDelete.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheGet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheHas.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_listCacheSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheClear.js +20 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheDelete.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheGet.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheHas.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_mapCacheSet.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_memoizeCapped.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nativeKeysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_nodeUtil.js +19 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_objectToString.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_overArg.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_overRest.js +21 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_parent.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_root.js +11 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_safeGet.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_setToString.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_shortOut.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackClear.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackDelete.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackGet.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackHas.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stackSet.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_stringToPath.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_toKey.js +17 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_toSource.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/cloneDeepWith.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/constant.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/debounce.js +60 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/eq.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/flatten.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/hasIn.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/identity.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArguments.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArray.js +10 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArrayLike.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isArrayLikeObject.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isBuffer.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isFunction.js +18 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isLength.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isMap.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObject.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isObjectLike.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isPlainObject.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSet.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isSymbol.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/isTypedArray.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/keys.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/keysIn.js +16 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/last.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/memoize.js +23 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/merge.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/now.js +13 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/omit.js +29 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/pick.js +14 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/stubArray.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/stubFalse.js +12 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/throttle.js +22 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toNumber.js +28 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toPlainObject.js +15 -0
- package/dist/node_modules/.pnpm/lodash@4.17.23/node_modules/lodash/toString.js +14 -0
- package/dist/styles.css +1 -1
- package/dist/utils/bound.js +7 -0
- package/dist/utils/can-use-dom.js +4 -0
- package/dist/utils/classname.js +6 -0
- package/dist/utils/colors.gen.js +371 -0
- package/dist/utils/colors.js +8 -0
- package/dist/utils/convert-px.js +14 -0
- package/dist/utils/date.d.ts +2 -1
- package/dist/utils/date.js +9 -0
- package/dist/utils/deep-clone.js +10 -0
- package/dist/utils/dev-log.js +7 -0
- package/dist/utils/get-scroll-parent.js +20 -0
- package/dist/utils/is-dev.js +4 -0
- package/dist/utils/rubberband.js +11 -0
- package/dist/utils/sleep.js +4 -0
- package/dist/utils/supports-passive.js +15 -0
- package/dist/utils/to-css-length.js +6 -0
- package/dist/vsf/choose-image.js +14 -0
- package/dist-storybook/assets/AIApp-C4keJkW8.js +37 -0
- package/dist-storybook/assets/{App-Dp1UG-xp.js → App-BkiRuUOF.js} +1 -1
- package/dist-storybook/assets/Color-6BZIO3FS-EdXZe4iv.js +1 -0
- package/dist-storybook/assets/{DEEPLINK-cjgFMuRJ.js → DEEPLINK-CvpIbZVm.js} +1 -1
- package/dist-storybook/assets/DocsRenderer-LL677BLK-Ch7ovClC.js +2 -0
- package/dist-storybook/assets/{EVENTS-BY66PjI7.js → EVENTS-Bnl2ehlm.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-BiQMvjvo.js → GETTING_STARTED-BYcN9hg3.js} +1 -1
- package/dist-storybook/assets/{GETTING_STARTED-580o-9Mx.js → GETTING_STARTED-BmHWFQQE.js} +1 -1
- package/dist-storybook/assets/GETTING_STARTED-C1AOB25Z.js +45 -0
- package/dist-storybook/assets/{GETTING_STARTED-CIVMqKZW.js → GETTING_STARTED-CBY9dL2_.js} +1 -1
- package/dist-storybook/assets/ICON-BaZgXbtw.js +6 -0
- package/dist-storybook/assets/ICON-CT1pTB1A.js +6 -0
- package/dist-storybook/assets/{INFINITE_SCROLL-BbeR5HeP.js → INFINITE_SCROLL-BJeWhgO7.js} +1 -1
- package/dist-storybook/assets/{LocalesProvider-CMlmwAyY.js → LocalesProvider-CQEwtoq3.js} +1 -1
- package/dist-storybook/assets/{MIGRATE_DARKMODE_TO_THEME-CBDyZyg2.js → MIGRATE_DARKMODE_TO_THEME-DCxXgvQC.js} +1 -1
- package/dist-storybook/assets/{MIGRATION_GUIDE-FZyRWI-B.js → MIGRATION_GUIDE-BN_V-xNj.js} +1 -1
- package/dist-storybook/assets/OVERVIEW-AI-CLWBzviY.js +35 -0
- package/dist-storybook/assets/{OVERVIEW-C9_6gX5Q.js → OVERVIEW-Byly3lQV.js} +1 -1
- package/dist-storybook/assets/{Router-B5U8bubH.js → Router-CO6rjSXr.js} +1 -1
- package/dist-storybook/assets/{TAILWIND_INTEGRATION-BJdy5DAv.js → TAILWIND_INTEGRATION-CpN4_fSu.js} +1 -1
- package/dist-storybook/assets/{THEME-CRbvH7KT.js → THEME-B9Y39f9D.js} +1 -1
- package/dist-storybook/assets/WithTooltip-65CFNBJE-D6J_7FjK.js +9 -0
- package/dist-storybook/assets/{alert.stories-D0X5wUHk.js → alert.stories-CUItfPLn.js} +12 -12
- package/dist-storybook/assets/app.store-BJVKVv1J.js +1 -0
- package/dist-storybook/assets/avatar.stories-8_vV7Bb0.js +136 -0
- package/dist-storybook/assets/{axe-BHGdSCoA.js → axe-4EaTvypG.js} +13 -13
- package/dist-storybook/assets/badge-Gh2kTOE3.js +1 -0
- package/dist-storybook/assets/{badge.stories-BEFNaUA1.js → badge.stories-BXGAtgaV.js} +3 -3
- package/dist-storybook/assets/blocks-CB7UwFa4.js +758 -0
- package/dist-storybook/assets/bottom-tab-bar.stories-OrY-k1sb.js +280 -0
- package/dist-storybook/assets/button-BLW8SOpg.js +1 -0
- package/dist-storybook/assets/{button.stories-DgYDJ6x7.js → button.stories--0kpp_af.js} +3 -3
- package/dist-storybook/assets/calendar-ySr-9cXG.js +1 -0
- package/dist-storybook/assets/{calendar.stories-IVvRAjWN.js → calendar.stories-4MQj1nsX.js} +1 -1
- package/dist-storybook/assets/carousel.stories-CMtljvBR.js +253 -0
- package/dist-storybook/assets/checkbox.stories-xYjsVg2X.js +201 -0
- package/dist-storybook/assets/{chip.stories-D7E6fdiV.js → chip.stories-DYEfUGq3.js} +12 -12
- package/dist-storybook/assets/classname-Bl5epEs-.js +1 -0
- package/dist-storybook/assets/client-CN8vOzuD.js +9 -0
- package/dist-storybook/assets/{date-B3PFMb6s.js → date-DWIyMGld.js} +1 -1
- package/dist-storybook/assets/date-field.stories-5Tlzdpvr.js +129 -0
- package/dist-storybook/assets/date-picker-DeB43YU4.js +1 -0
- package/dist-storybook/assets/{date-picker.stories-CIFgk4q_.js → date-picker.stories-Shn-MmVG.js} +1 -1
- package/dist-storybook/assets/dialog.stories-DeNKN0oJ.js +212 -0
- package/dist-storybook/assets/dropdown.stories-Bqmu2_KM.js +449 -0
- package/dist-storybook/assets/{embla-carousel-react.esm-5D5fs7OQ.js → embla-carousel-react.esm-DOEAp-w3.js} +1 -1
- package/dist-storybook/assets/{en-Cs9O0XWn.js → en-IjeCvZ5U.js} +1 -1
- package/dist-storybook/assets/formatter-EIJCOSYU-DZLV30KU.js +1 -0
- package/dist-storybook/assets/icon-Cc9W858e.js +1 -0
- package/dist-storybook/assets/icon-list-grid-CSnpdoAW.js +1 -0
- package/dist-storybook/assets/{icon.stories-DWwbUUY-.js → icon.stories-DE484rTd.js} +3 -3
- package/dist-storybook/assets/iframe-BBKyXin_.css +1 -0
- package/dist-storybook/assets/iframe-Crg_lbde.js +1119 -0
- package/dist-storybook/assets/image-CB4oeTy-.js +9 -0
- package/dist-storybook/assets/{image.stories-BhZU057W.js → image.stories-BlYIb_Qu.js} +1 -1
- package/dist-storybook/assets/index-B24pfkXD.js +1 -0
- package/dist-storybook/assets/{index-cMNObl2z.js → index-CdnALcTP.js} +1 -1
- package/dist-storybook/assets/{index-EGt7xBnA.js → index-hDlmuyu2.js} +1 -1
- package/dist-storybook/assets/input-wrapper-Gd3QJKqj.js +1 -0
- package/dist-storybook/assets/label-zfqCJTGJ.js +22 -0
- package/dist-storybook/assets/{label.stories-CXJjdYf_.js → label.stories-C-MVt-cu.js} +3 -3
- package/dist-storybook/assets/matchers-5TDFFDYO-HJu_DfWo.js +14 -0
- package/dist-storybook/assets/navigation-bar.stories-CZ-y3eDE.js +136 -0
- package/dist-storybook/assets/number-field.stories-BA0FySSU.js +167 -0
- package/dist-storybook/assets/omit-CRXr8Lio.js +1 -0
- package/dist-storybook/assets/option-item-DFWc14Up.js +1 -0
- package/dist-storybook/assets/{option-item.stories-BvXoc8WX.js → option-item.stories-DqA-ydWX.js} +3 -3
- package/dist-storybook/assets/pagination-CjgiVNvu.js +1 -0
- package/dist-storybook/assets/{pagination.stories-_5qj2nTS.js → pagination.stories-BsKHvdF4.js} +4 -4
- package/dist-storybook/assets/{radio.stories-BNR-wwuw.js → radio.stories-CBmxZRxo.js} +10 -10
- package/dist-storybook/assets/{rating.stories-CI0LG0Qq.js → rating.stories-CcdFtcNH.js} +9 -9
- package/dist-storybook/assets/react-18-D2tl8ksm.js +1 -0
- package/dist-storybook/assets/{react-I9jCW2VV.js → react-DO0-owxu.js} +1 -1
- package/dist-storybook/assets/search-field-zl4ROLfn.js +1 -0
- package/dist-storybook/assets/{search-field.stories-CKXC6-Za.js → search-field.stories-DoclnxtC.js} +1 -1
- package/dist-storybook/assets/{section.stories-9vd48AgB.js → section.stories-Bqz_QgYp.js} +8 -8
- package/dist-storybook/assets/sheet-body-2dWL2AE5.js +1 -0
- package/dist-storybook/assets/sheet-footer-DuPhbVOb.js +1 -0
- package/dist-storybook/assets/{sheet.stories-C3gLIQsn.js → sheet.stories-CoXnt4LG.js} +4 -4
- package/dist-storybook/assets/skeleton-BVLpHxKT.js +1 -0
- package/dist-storybook/assets/{skeleton.stories-C0y1o1Y_.js → skeleton.stories-B-OfMZId.js} +3 -3
- package/dist-storybook/assets/{store-Ce3Ikv5g.js → store-BwIebEt6.js} +5 -5
- package/dist-storybook/assets/{switch.stories-BdWFln-M.js → switch.stories-D4PQjgbo.js} +9 -9
- package/dist-storybook/assets/syntaxhighlighter-ED5Y7EFY-BxRQp_WE.js +6 -0
- package/dist-storybook/assets/tab-bar.stories-BrcQMypS.js +164 -0
- package/dist-storybook/assets/{text-area.stories-DCt3RB3A.js → text-area.stories-Bpaw2_4A.js} +10 -10
- package/dist-storybook/assets/text-field-CqJG0bIl.js +1 -0
- package/dist-storybook/assets/{text-field.stories-Bqv7f948.js → text-field.stories-PQoP3DbL.js} +1 -1
- package/dist-storybook/assets/toast.stories-DmPy9T3m.js +209 -0
- package/dist-storybook/assets/{tooltip.stories-DDdsuU3U.js → tooltip.stories-Be_kIaDc.js} +8 -8
- package/dist-storybook/assets/typography-CMIMyivt.js +1 -0
- package/dist-storybook/assets/{typography.stories-BzCxaZQU.js → typography.stories-DSt5W_AG.js} +3 -3
- package/dist-storybook/assets/uploader.stories-C5CmeXEk.js +65 -0
- package/dist-storybook/assets/{use-app-pause-ClsUnndr.js → use-app-pause-_ycnhKwZ.js} +3 -3
- package/dist-storybook/assets/{use-app-resume-D_EcIvMd.js → use-app-resume-CWb2s-wo.js} +1 -1
- package/dist-storybook/assets/{use-bottom-tab-bar-BC1cz2uE.js → use-bottom-tab-bar--DRl-8c4.js} +1 -1
- package/dist-storybook/assets/{use-custom-icon-event-cUk4Md0Y.js → use-custom-icon-event-BXcRPkLg.js} +1 -1
- package/dist-storybook/assets/{use-did-hide-BmABiaUE.js → use-did-hide-LBcrwoUo.js} +1 -1
- package/dist-storybook/assets/{use-did-show-CQuySkkT.js → use-did-show-BXLstTgt.js} +1 -1
- package/dist-storybook/assets/{use-histories-CBm09Lno.js → use-histories-Cz7ncXaj.js} +1 -1
- package/dist-storybook/assets/{use-history-7yguNz6O.js → use-history-B_w6SPwr.js} +1 -1
- package/dist-storybook/assets/{use-language-DPyWMce2.js → use-language-D84C9QNT.js} +1 -1
- package/dist-storybook/assets/{use-load-more-KlDJZhj2.js → use-load-more-Bb9YFkAE.js} +1 -1
- package/dist-storybook/assets/{use-location-C7kE1yla.js → use-location-DnxJ5FvJ.js} +1 -1
- package/dist-storybook/assets/{use-navigate-BpIyvtwc.js → use-navigate-OLqoL3vR.js} +3 -3
- package/dist-storybook/assets/{use-navigation-bar-guzwhM_u.js → use-navigation-bar-D5BX6S-r.js} +15 -15
- package/dist-storybook/assets/{use-navigation-type-DOndDqQH.js → use-navigation-type-Cq7T35ur.js} +1 -1
- package/dist-storybook/assets/{use-page-layout-dO6ylI1b.js → use-page-layout-BrFRWwC6.js} +1 -1
- package/dist-storybook/assets/{use-page-scroll-CCG2d2Gb.js → use-page-scroll-BZ8XiPza.js} +1 -1
- package/dist-storybook/assets/{use-pull-to-refresh-lhumDu1H.js → use-pull-to-refresh-BEjtxiFn.js} +1 -1
- package/dist-storybook/assets/{use-settings-changed-Bt58DJ-c.js → use-settings-changed-UaQRSWAg.js} +1 -1
- package/dist-storybook/assets/{use-translate-Jhz6jTXo.js → use-translate-BO8E9Sde.js} +1 -1
- package/dist-storybook/iframe.html +58 -40
- package/dist-storybook/index.html +8 -16
- package/dist-storybook/index.json +1 -1
- package/dist-storybook/project.json +1 -1
- package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +55 -3
- package/dist-storybook/sb-addons/docs-1/manager-bundle.js +1 -149
- package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +19 -1
- package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +93 -436
- package/dist-storybook/sb-manager/globals-runtime.js +73307 -65142
- package/dist-storybook/sb-manager/globals.js +6 -16
- package/dist-storybook/sb-manager/manager-stores.js +23 -0
- package/dist-storybook/sb-manager/runtime.js +17679 -10455
- package/dist-storybook/stories-data.json +91 -27
- package/dist-storybook/vite-inject-mocker-entry.js +2 -2
- package/package.json +5 -5
- package/dist-storybook/assets/Color-AVL7NMMY-XA8cFKdV.js +0 -1
- package/dist-storybook/assets/DocsRenderer-PQXLIZUC-D10-0Yfb.js +0 -2
- package/dist-storybook/assets/_baseClone-DQVxEhny.js +0 -1
- package/dist-storybook/assets/alert-CKwsuaPI.js +0 -1
- package/dist-storybook/assets/app-CTv8lFU3.js +0 -1
- package/dist-storybook/assets/avatar-rWcYGe6j.js +0 -1
- package/dist-storybook/assets/avatar.stories-8lrbhMma.js +0 -136
- package/dist-storybook/assets/badge-VcjGVEum.js +0 -1
- package/dist-storybook/assets/blocks-DKR3P4qW.js +0 -1243
- package/dist-storybook/assets/bottom-tab-bar-B6IAoRwz.js +0 -115
- package/dist-storybook/assets/bottom-tab-bar.stories-DXzLlO5o.js +0 -186
- package/dist-storybook/assets/button-DJH3RlJl.js +0 -1
- package/dist-storybook/assets/calendar-C4Xe_TW2.js +0 -1
- package/dist-storybook/assets/carousel-DJlgMyS5.js +0 -37
- package/dist-storybook/assets/carousel.stories-3rA3nxdL.js +0 -217
- package/dist-storybook/assets/checkbox-JOxcmyCZ.js +0 -1
- package/dist-storybook/assets/checkbox.stories-ge3pgfBb.js +0 -201
- package/dist-storybook/assets/chip-Crt60rph.js +0 -1
- package/dist-storybook/assets/date-field-range-B-sv9nbW.js +0 -1
- package/dist-storybook/assets/date-field.stories-B9G2heHt.js +0 -129
- package/dist-storybook/assets/date-picker-BPzKPdhO.js +0 -1
- package/dist-storybook/assets/dialog-BAfGQzk5.js +0 -1
- package/dist-storybook/assets/dialog.stories-vDMKz9Tw.js +0 -212
- package/dist-storybook/assets/dropdown-Dtomaqpw.js +0 -247
- package/dist-storybook/assets/dropdown.stories-Cj0HM0VI.js +0 -200
- package/dist-storybook/assets/icon-CdiFzFyf.js +0 -1
- package/dist-storybook/assets/iframe-BHaCv4dM.css +0 -1
- package/dist-storybook/assets/iframe-DfPay7Zl.js +0 -1071
- package/dist-storybook/assets/image-CMKb-R3x.js +0 -9
- package/dist-storybook/assets/index-BWpuenI4.js +0 -1
- package/dist-storybook/assets/index-DqZh6B0b.js +0 -1
- package/dist-storybook/assets/input-wrapper-CgaUwbbE.js +0 -1
- package/dist-storybook/assets/label-D44azUgi.js +0 -27
- package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +0 -14
- package/dist-storybook/assets/navigation-bar-DK3TxcTu.js +0 -79
- package/dist-storybook/assets/navigation-bar.stories-CB3Kg-sH.js +0 -73
- package/dist-storybook/assets/number-field-Bz7su9S1.js +0 -1
- package/dist-storybook/assets/number-field.stories-DSxPSzLv.js +0 -167
- package/dist-storybook/assets/omit-BWHsnDSR.js +0 -1
- package/dist-storybook/assets/option-item-CpeNcb5w.js +0 -1
- package/dist-storybook/assets/pagination-Cp-DHO4Q.js +0 -1
- package/dist-storybook/assets/proxy-B4G9nIBd.js +0 -1
- package/dist-storybook/assets/radio-D0aV0RIg.js +0 -1
- package/dist-storybook/assets/rating-D2e8RTGl.js +0 -1
- package/dist-storybook/assets/react-18-C7pDmBBf.js +0 -9
- package/dist-storybook/assets/search-field-DINESW8Y.js +0 -1
- package/dist-storybook/assets/section-content-D49PabBW.js +0 -1
- package/dist-storybook/assets/sheet-footer-nEdxsYan.js +0 -1
- package/dist-storybook/assets/skeleton-B12XbNAJ.js +0 -1
- package/dist-storybook/assets/switch-D0Z9tWin.js +0 -1
- package/dist-storybook/assets/tab-bar-kExoGg5P.js +0 -31
- package/dist-storybook/assets/tab-bar.stories-BgDXX0of.js +0 -136
- package/dist-storybook/assets/text-area-GKy5HL12.js +0 -1
- package/dist-storybook/assets/text-field-CGWNqitB.js +0 -1
- package/dist-storybook/assets/toast-provider-DKSrfhJD.js +0 -9
- package/dist-storybook/assets/toast.stories-CcFzS6QI.js +0 -201
- package/dist-storybook/assets/tooltip-B9rDI6z9.js +0 -1
- package/dist-storybook/assets/typography-CB8hPDyK.js +0 -1
- package/dist-storybook/assets/uploader.stories-izVumFqZ.js +0 -65
- package/dist-storybook/assets/visibility-sensor-Jf-Nmil6.js +0 -1
- package/dist-storybook/sb-manager/globals-module-info.js +0 -799
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{r as c,j as e}from"./iframe-Crg_lbde.js";import{c as D,g as I}from"./classname-Bl5epEs-.js";import{u as $}from"./index-hDlmuyu2.js";import{t as n}from"./store-BwIebEt6.js";import{T as E,S as N,a as v,P as T,b as M}from"./blocks-CB7UwFa4.js";import{B as L}from"./button-BLW8SOpg.js";import"./preload-helper-PPVm8Dsz.js";import"./index-B-Ksafg0.js";import"./index-CdnALcTP.js";import"./typography-CMIMyivt.js";import"./colors-_6nFGM3e.js";import"./icon-Cc9W858e.js";const i=I("switch"),t=c.forwardRef((s,l)=>{const{disabled:o=!1,theme:a="brand",className:r,style:y,checked:_,defaultChecked:B,onChange:R,...S}=s,b=c.useRef(null),[j,k]=c.useState(!1),[w,C]=$(s,{defaultValuePropName:"defaultChecked",valuePropName:"checked",trigger:"onChange"});return c.useImperativeHandle(l,()=>({focus:()=>b.current?.focus?.(),blur:()=>b.current?.blur?.()})),e.jsxs("label",{className:D(i,{[`${i}--checked`]:w,[`${i}--unchecked`]:!w,[`${i}--disabled`]:o,[`${i}--focus`]:j,[`${i}--theme-${a}`]:!0},r),style:y,children:[e.jsx("span",{className:`${i}__overlay`}),e.jsx("span",{className:`${i}__thumb`}),e.jsx("input",{...S,type:"checkbox",checked:w,disabled:o,onChange:p=>C(p.target.checked),ref:b,className:`${i}__input`,onFocus:p=>{k(!0),s.onFocus?.(p)},onBlur:p=>{k(!1),s.onBlur?.(p)}})]})});t.__docgenInfo={description:"",methods:[{name:"focus",docblock:null,modifiers:[],params:[],returns:null},{name:"blur",docblock:null,modifiers:[],params:[],returns:null}],displayName:"Switch"};const P=()=>{const s=`
|
|
2
2
|
## ${n("common.table.title")}
|
|
3
3
|
| ${n("common.table.name")} | ${n("common.table.type")} | ${n("common.table.required")} | ${n("common.table.description")} |
|
|
4
4
|
| :--- | :--- | :--- | :--- |
|
|
@@ -8,9 +8,9 @@ import{j as e,r as c}from"./iframe-DfPay7Zl.js";import{S as s}from"./switch-D0Z9
|
|
|
8
8
|
| \`theme\` | \`'brand' | 'inverse'\` | ${n("common.table.no")} | ${n("components.switch.argTypes.themeDescription")} |
|
|
9
9
|
| \`className\` | \`string\` | ${n("common.table.no")} | ${n("components.switch.argTypes.classNameDescription")} |
|
|
10
10
|
| \`...props\` | \`ComponentProps<'input'>\` | ${n("common.table.no")} | ${n("components.switch.argTypes.propsDescription")} |
|
|
11
|
-
`;return e.jsxs(e.Fragment,{children:[e.jsx(
|
|
11
|
+
`;return e.jsxs(e.Fragment,{children:[e.jsx(E,{}),e.jsx(N,{}),e.jsx(v,{children:n("components.switch.description")}),e.jsx(T,{}),e.jsx(v,{children:s}),e.jsx(M,{})]})},U={title:"Components/Switch",component:t,parameters:{layout:"padded",docs:{page:P}},tags:["autodocs"],argTypes:{checked:{control:"boolean",description:n("components.switch.argTypes.checkedDescription"),table:{type:{summary:"boolean"}}},onChange:{action:"changed",description:n("components.switch.argTypes.onChangeDescription"),table:{type:{summary:"(checked: boolean) => void"}}},disabled:{control:"boolean",description:n("components.switch.argTypes.disabledDescription"),table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},theme:{control:"select",options:["default","inverse"],description:n("components.switch.argTypes.themeDescription"),table:{type:{summary:"ISwitchTheme"},defaultValue:{summary:"default"}}},className:{description:n("components.switch.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},d={args:{}},m={name:n("components.switch.stories.states.name"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(t,{checked:!1}),e.jsx("span",{children:n("components.switch.states.off")})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(t,{checked:!0}),e.jsx("span",{children:n("components.switch.states.on")})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(t,{checked:!0,disabled:!0}),e.jsx("span",{children:n("components.switch.states.onDisabled")})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(t,{checked:!1,disabled:!0}),e.jsx("span",{children:n("components.switch.states.offDisabled")})]})]})},h={name:n("components.switch.stories.controlled.name"),render:()=>{const[s,l]=c.useState(!1);return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(t,{checked:s,onChange:l}),e.jsx("span",{children:n("components.switch.stories.controlled.notificationLabel",{status:s?n("components.switch.states.on").toLowerCase():n("components.switch.states.off").toLowerCase()})})]}),e.jsx(L,{onClick:()=>l(!s),children:n("components.switch.stories.controlled.toggleButton")})]})}},x={name:n("components.switch.stories.themes.name"),render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(t,{checked:!0}),e.jsx("span",{children:n("components.switch.stories.themes.brand")})]}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.jsx(t,{theme:"inverse",checked:!0}),e.jsx("span",{children:n("components.switch.stories.themes.inverse")})]})]})},u={name:n("components.switch.stories.withLabels.name"),render:()=>{const[s,l]=c.useState(!1),[o,a]=c.useState(!0),[r,y]=c.useState(!1);return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer"},children:[e.jsx(t,{checked:s,onChange:l}),e.jsx("span",{children:n("components.switch.stories.withLabels.notifications")})]}),e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer"},children:[e.jsx(t,{checked:o,onChange:a}),e.jsx("span",{children:n("components.switch.stories.withLabels.darkMode")})]}),e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer"},children:[e.jsx(t,{checked:r,onChange:y}),e.jsx("span",{children:n("components.switch.stories.withLabels.autoSave")})]})]})}},g={name:n("components.switch.stories.completeExample.name"),render:()=>{const[s,l]=c.useState({notifications:!1,darkMode:!0,autoSave:!1,publicProfile:!0}),o=(a,r)=>{l({...s,[a]:r})};return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[e.jsxs("div",{children:[e.jsx("h3",{style:{marginBottom:"12px"},children:n("components.switch.stories.completeExample.settingsTitle")}),e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer"},children:[e.jsx(t,{checked:s.notifications,onChange:a=>o("notifications",a)}),e.jsx("span",{children:n("components.switch.stories.completeExample.pushNotifications")})]}),e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer"},children:[e.jsx(t,{checked:s.darkMode,onChange:a=>o("darkMode",a)}),e.jsx("span",{children:n("components.switch.stories.completeExample.darkMode")})]}),e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"12px",cursor:"pointer"},children:[e.jsx(t,{checked:s.autoSave,onChange:a=>o("autoSave",a)}),e.jsx("span",{children:n("components.switch.stories.completeExample.autoSave")})]}),e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"12px",cursor:"not-allowed",opacity:.6},children:[e.jsx(t,{checked:s.publicProfile,onChange:a=>o("publicProfile",a),disabled:!0}),e.jsx("span",{children:n("components.switch.stories.completeExample.publicProfile")})]})]})]}),e.jsxs("div",{style:{padding:"12px",backgroundColor:"#f5f5f5",borderRadius:"4px"},children:[e.jsx("p",{style:{fontSize:"14px",margin:0},children:e.jsxs("strong",{children:[n("components.switch.stories.completeExample.currentSettings"),":"]})}),e.jsx("pre",{style:{fontSize:"12px",marginTop:"8px"},children:JSON.stringify(s,null,2)})]})]})}},f={name:n("components.switch.stories.interactive.name"),args:{checked:!1,disabled:!1,theme:"brand"}};d.parameters={...d.parameters,docs:{...d.parameters?.docs,source:{originalSource:`{
|
|
12
12
|
args: {}
|
|
13
|
-
}`,...
|
|
13
|
+
}`,...d.parameters?.docs?.source}}};m.parameters={...m.parameters,docs:{...m.parameters?.docs,source:{originalSource:`{
|
|
14
14
|
name: t('components.switch.stories.states.name'),
|
|
15
15
|
render: () => <div style={{
|
|
16
16
|
display: 'flex',
|
|
@@ -50,7 +50,7 @@ import{j as e,r as c}from"./iframe-DfPay7Zl.js";import{S as s}from"./switch-D0Z9
|
|
|
50
50
|
<span>{t('components.switch.states.offDisabled')}</span>
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
|
-
}`,...
|
|
53
|
+
}`,...m.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
|
|
54
54
|
name: t('components.switch.stories.controlled.name'),
|
|
55
55
|
render: () => {
|
|
56
56
|
const [enabled, setEnabled] = useState(false);
|
|
@@ -76,7 +76,7 @@ import{j as e,r as c}from"./iframe-DfPay7Zl.js";import{S as s}from"./switch-D0Z9
|
|
|
76
76
|
</Button>
|
|
77
77
|
</div>;
|
|
78
78
|
}
|
|
79
|
-
}`,...
|
|
79
|
+
}`,...h.parameters?.docs?.source}}};x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
80
80
|
name: t('components.switch.stories.themes.name'),
|
|
81
81
|
render: () => <div style={{
|
|
82
82
|
display: 'flex',
|
|
@@ -100,7 +100,7 @@ import{j as e,r as c}from"./iframe-DfPay7Zl.js";import{S as s}from"./switch-D0Z9
|
|
|
100
100
|
<span>{t('components.switch.stories.themes.inverse')}</span>
|
|
101
101
|
</div>
|
|
102
102
|
</div>
|
|
103
|
-
}`,...
|
|
103
|
+
}`,...x.parameters?.docs?.source}}};u.parameters={...u.parameters,docs:{...u.parameters?.docs,source:{originalSource:`{
|
|
104
104
|
name: t('components.switch.stories.withLabels.name'),
|
|
105
105
|
render: () => {
|
|
106
106
|
const [notifications, setNotifications] = useState(false);
|
|
@@ -140,7 +140,7 @@ import{j as e,r as c}from"./iframe-DfPay7Zl.js";import{S as s}from"./switch-D0Z9
|
|
|
140
140
|
</label>
|
|
141
141
|
</div>;
|
|
142
142
|
}
|
|
143
|
-
}`,...
|
|
143
|
+
}`,...u.parameters?.docs?.source}}};g.parameters={...g.parameters,docs:{...g.parameters?.docs,source:{originalSource:`{
|
|
144
144
|
name: t('components.switch.stories.completeExample.name'),
|
|
145
145
|
render: () => {
|
|
146
146
|
const [settings, setSettings] = useState({
|
|
@@ -240,11 +240,11 @@ import{j as e,r as c}from"./iframe-DfPay7Zl.js";import{S as s}from"./switch-D0Z9
|
|
|
240
240
|
</div>
|
|
241
241
|
</div>;
|
|
242
242
|
}
|
|
243
|
-
}`,...
|
|
243
|
+
}`,...g.parameters?.docs?.source}}};f.parameters={...f.parameters,docs:{...f.parameters?.docs,source:{originalSource:`{
|
|
244
244
|
name: t('components.switch.stories.interactive.name'),
|
|
245
245
|
args: {
|
|
246
246
|
checked: false,
|
|
247
247
|
disabled: false,
|
|
248
248
|
theme: 'brand'
|
|
249
249
|
}
|
|
250
|
-
}`,...
|
|
250
|
+
}`,...f.parameters?.docs?.source}}};const X=["Default","States","Controlled","Themes","WithLabels","CompleteExample","Interactive"];export{g as CompleteExample,h as Controlled,d as Default,f as Interactive,m as States,x as Themes,u as WithLabels,X as __namedExportsOrder,U as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{h as mt,k as ht,_ as Z,m as yt,s as Ee,j as F,n as bt,f as xt,r as vt}from"./blocks-CB7UwFa4.js";import{r as we,R as G}from"./iframe-Crg_lbde.js";import"./preload-helper-PPVm8Dsz.js";import"./index-CdnALcTP.js";function xe(e){"@babel/helpers - typeof";return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},xe(e)}function St(e,r){if(xe(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var a=t.call(e,r);if(xe(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function _t(e){var r=St(e,"string");return xe(r)=="symbol"?r:r+""}function Ve(e,r,t){return(r=_t(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function wt(e,r){if(e==null)return{};var t,a,n=mt(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)t=o[a],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var At=F({"../../node_modules/refractor/lang/bash.js"(e,r){r.exports=t,t.displayName="bash",t.aliases=["shell"];function t(a){(function(n){var o="\\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",u={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},d={bash:u,environment:{pattern:RegExp("\\$"+o),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("(\\{)"+o),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})/};n.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;|&]|[<>]\\()"+o),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:d},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:u}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:d},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:d.entity}}],environment:{pattern:RegExp("\\$?"+o),alias:"constant"},variable:d.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}},u.inside=n.languages.bash;for(var l=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],f=d.variable[1].inside,h=0;h<l.length;h++)f[l[h]]=n.languages.bash[l[h]];n.languages.shell=n.languages.bash})(a)}}}),Je=F({"../../node_modules/refractor/lang/css.js"(e,r){r.exports=t,t.displayName="css",t.aliases=[];function t(a){(function(n){var o=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;n.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\\((?:"+o.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+o.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+o.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:o,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:/[(){};:,]/},n.languages.css.atrule.inside.rest=n.languages.css;var u=n.languages.markup;u&&(u.tag.addInlined("style","css"),u.tag.addAttribute("style","css"))})(a)}}}),Et=F({"../../node_modules/refractor/lang/graphql.js"(e,r){r.exports=t,t.displayName="graphql",t.aliases=[];function t(a){a.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:a.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+/},a.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var o=n.tokens.filter(function(A){return typeof A!="string"&&A.type!=="comment"&&A.type!=="scalar"}),u=0;function d(A){return o[u+A]}function l(A,i){i=i||0;for(var s=0;s<A.length;s++){var p=d(s+i);if(!p||p.type!==A[s])return!1}return!0}function f(A,i){for(var s=1,p=u;p<o.length;p++){var g=o[p],m=g.content;if(g.type==="punctuation"&&typeof m=="string"){if(A.test(m))s++;else if(i.test(m)&&(s--,s===0))return p}}return-1}function h(A,i){var s=A.alias;s?Array.isArray(s)||(A.alias=s=[s]):A.alias=s=[],s.push(i)}for(;u<o.length;){var C=o[u++];if(C.type==="keyword"&&C.content==="mutation"){var x=[];if(l(["definition-mutation","punctuation"])&&d(1).content==="("){u+=2;var b=f(/^\($/,/^\)$/);if(b===-1)continue;for(;u<b;u++){var y=d(0);y.type==="variable"&&(h(y,"variable-input"),x.push(y.content))}u=b+1}if(l(["punctuation","property-query"])&&d(0).content==="{"&&(u++,h(d(0),"property-mutation"),x.length>0)){var S=f(/^\{$/,/^\}$/);if(S===-1)continue;for(var E=u;E<S;E++){var _=o[E];_.type==="variable"&&x.indexOf(_.content)>=0&&h(_,"variable-input")}}}}})}}}),kt=F({"../../node_modules/refractor/lang/js-extras.js"(e,r){r.exports=t,t.displayName="jsExtras",t.aliases=[];function t(a){(function(n){n.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+n.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),n.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+n.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),n.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 o(C,x){return RegExp(C.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),x)}n.languages.insertBefore("javascript","keyword",{imports:{pattern:o(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:n.languages.javascript},exports:{pattern:o(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:n.languages.javascript}}),n.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"}),n.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),n.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:o(/(\.\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 u=["function","function-variable","method","method-variable","property-access"],d=0;d<u.length;d++){var l=u[d],f=n.languages.javascript[l];n.util.type(f)==="RegExp"&&(f=n.languages.javascript[l]={pattern:f});var h=f.inside||{};f.inside=h,h["maybe-class-name"]=/^[A-Z][\s\S]*/}})(a)}}}),Ct=F({"../../node_modules/refractor/lang/json.js"(e,r){r.exports=t,t.displayName="json",t.aliases=["webmanifest"];function t(a){a.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"}},a.languages.webmanifest=a.languages.json}}}),Qe=F({"../../node_modules/refractor/lang/jsx.js"(e,r){r.exports=t,t.displayName="jsx",t.aliases=[];function t(a){(function(n){var o=n.util.clone(n.languages.javascript),u=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,d=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,l=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function f(x,b){return x=x.replace(/<S>/g,function(){return u}).replace(/<BRACES>/g,function(){return d}).replace(/<SPREAD>/g,function(){return l}),RegExp(x,b)}l=f(l).source,n.languages.jsx=n.languages.extend("markup",o),n.languages.jsx.tag.pattern=f(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),n.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,n.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,n.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,n.languages.jsx.tag.inside.comment=o.comment,n.languages.insertBefore("inside","attr-name",{spread:{pattern:f(/<SPREAD>/.source),inside:n.languages.jsx}},n.languages.jsx.tag),n.languages.insertBefore("inside","special-attr",{script:{pattern:f(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:n.languages.jsx}}},n.languages.jsx.tag);var h=function(x){return x?typeof x=="string"?x:typeof x.content=="string"?x.content:x.content.map(h).join(""):""},C=function(x){for(var b=[],y=0;y<x.length;y++){var S=x[y],E=!1;if(typeof S!="string"&&(S.type==="tag"&&S.content[0]&&S.content[0].type==="tag"?S.content[0].content[0].content==="</"?b.length>0&&b[b.length-1].tagName===h(S.content[0].content[1])&&b.pop():S.content[S.content.length-1].content==="/>"||b.push({tagName:h(S.content[0].content[1]),openedBraces:0}):b.length>0&&S.type==="punctuation"&&S.content==="{"?b[b.length-1].openedBraces++:b.length>0&&b[b.length-1].openedBraces>0&&S.type==="punctuation"&&S.content==="}"?b[b.length-1].openedBraces--:E=!0),(E||typeof S=="string")&&b.length>0&&b[b.length-1].openedBraces===0){var _=h(S);y<x.length-1&&(typeof x[y+1]=="string"||x[y+1].type==="plain-text")&&(_+=h(x[y+1]),x.splice(y+1,1)),y>0&&(typeof x[y-1]=="string"||x[y-1].type==="plain-text")&&(_=h(x[y-1])+_,x.splice(y-1,1),y--),x[y]=new n.Token("plain-text",_,null,_)}S.content&&typeof S.content!="string"&&C(S.content)}};n.hooks.add("after-tokenize",function(x){x.language!=="jsx"&&x.language!=="tsx"||C(x.tokens)})})(a)}}}),Ft=F({"../../node_modules/refractor/lang/markdown.js"(e,r){r.exports=t,t.displayName="markdown",t.aliases=["md"];function t(a){(function(n){var o=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function u(y){return y=y.replace(/<inner>/g,function(){return o}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+y+")")}var d=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,l=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return d}),f=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;n.languages.markdown=n.languages.extend("markup",{}),n.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:n.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+l+f+"(?:"+l+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+l+f+")(?:"+l+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(d),inside:n.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+l+")"+f+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+l+"$"),inside:{"table-header":{pattern:RegExp(d),alias:"important",inside:n.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:u(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:u(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:u(/(~~?)(?:(?!~)<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:u(/!?\[(?:(?!\])<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(y){["url","bold","italic","strike","code-snippet"].forEach(function(S){y!==S&&(n.languages.markdown[y].inside.content.inside[S]=n.languages.markdown[S])})}),n.hooks.add("after-tokenize",function(y){if(y.language!=="markdown"&&y.language!=="md")return;function S(E){if(!(!E||typeof E=="string"))for(var _=0,A=E.length;_<A;_++){var i=E[_];if(i.type!=="code"){S(i.content);continue}var s=i.content[1],p=i.content[3];if(s&&p&&s.type==="code-language"&&p.type==="code-block"&&typeof s.content=="string"){var g=s.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");g=(/[a-z][\w-]*/i.exec(g)||[""])[0].toLowerCase();var m="language-"+g;p.alias?typeof p.alias=="string"?p.alias=[p.alias,m]:p.alias.push(m):p.alias=[m]}}}S(y.tokens)}),n.hooks.add("wrap",function(y){if(y.type==="code-block"){for(var S="",E=0,_=y.classes.length;E<_;E++){var A=y.classes[E],i=/language-(.+)/.exec(A);if(i){S=i[1];break}}var s=n.languages[S];if(s)y.content=n.highlight(b(y.content.value),s,S);else if(S&&S!=="none"&&n.plugins.autoloader){var p="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);y.attributes.id=p,n.plugins.autoloader.loadLanguages(S,function(){var g=document.getElementById(p);g&&(g.innerHTML=n.highlight(g.textContent,n.languages[S],S))})}}});var h=RegExp(n.languages.markup.tag.pattern.source,"gi"),C={amp:"&",lt:"<",gt:">",quot:'"'},x=String.fromCodePoint||String.fromCharCode;function b(y){var S=y.replace(h,"");return S=S.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(E,_){if(_=_.toLowerCase(),_[0]==="#"){var A;return _[1]==="x"?A=parseInt(_.slice(2),16):A=Number(_.slice(1)),x(A)}else{var i=C[_];return i||E}}),S}n.languages.md=n.languages.markdown})(a)}}}),et=F({"../../node_modules/refractor/lang/markup.js"(e,r){r.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function t(a){a.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]},a.languages.markup.tag.inside["attr-value"].inside.entity=a.languages.markup.entity,a.languages.markup.doctype.inside["internal-subset"].inside=a.languages.markup,a.hooks.add("wrap",function(n){n.type==="entity"&&(n.attributes.title=n.content.value.replace(/&/,"&"))}),Object.defineProperty(a.languages.markup.tag,"addInlined",{value:function(n,o){var u={};u["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:a.languages[o]},u.cdata=/^<!\[CDATA\[|\]\]>$/i;var d={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:u}};d["language-"+o]={pattern:/[\s\S]+/,inside:a.languages[o]};var l={};l[n]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:d},a.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(a.languages.markup.tag,"addAttribute",{value:function(n,o){a.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+n+")"+/\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:[o,"language-"+o],inside:a.languages[o]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),a.languages.html=a.languages.markup,a.languages.mathml=a.languages.markup,a.languages.svg=a.languages.markup,a.languages.xml=a.languages.extend("markup",{}),a.languages.ssml=a.languages.xml,a.languages.atom=a.languages.xml,a.languages.rss=a.languages.xml}}}),tt=F({"../../node_modules/refractor/lang/typescript.js"(e,r){r.exports=t,t.displayName="typescript",t.aliases=["ts"];function t(a){(function(n){n.languages.typescript=n.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/}),n.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 n.languages.typescript.parameter,delete n.languages.typescript["literal-property"];var o=n.languages.extend("typescript",{});delete o["class-name"],n.languages.typescript["class-name"].inside=o,n.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:o}}}}),n.languages.ts=n.languages.typescript})(a)}}}),jt=F({"../../node_modules/refractor/lang/tsx.js"(e,r){var t=Qe(),a=tt();r.exports=n,n.displayName="tsx",n.aliases=[];function n(o){o.register(t),o.register(a),(function(u){var d=u.util.clone(u.languages.typescript);u.languages.tsx=u.languages.extend("jsx",d),delete u.languages.tsx.parameter,delete u.languages.tsx["literal-property"];var l=u.languages.tsx.tag;l.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+l.pattern.source+")",l.pattern.flags),l.lookbehind=!0})(o)}}}),Nt=F({"../../node_modules/refractor/lang/yaml.js"(e,r){r.exports=t,t.displayName="yaml",t.aliases=["yml"];function t(a){(function(n){var o=/[*&][^\s[\]{},]+/,u=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,d="(?:"+u.source+"(?:[ ]+"+o.source+")?|"+o.source+"(?:[ ]+"+u.source+")?)",l=/(?:[^\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}),f=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function h(C,x){x=(x||"").replace(/m/g,"")+"m";var b=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<value>>/g,function(){return C});return RegExp(b,x)}n.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 d})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return d}).replace(/<<key>>/g,function(){return"(?:"+l+"|"+f+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:h(/\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:h(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:h(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:h(f),lookbehind:!0,greedy:!0},number:{pattern:h(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:u,important:o,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},n.languages.yml=n.languages.yaml})(a)}}}),$t=F({"../../node_modules/xtend/immutable.js"(e,r){r.exports=a;var t=Object.prototype.hasOwnProperty;function a(){for(var n={},o=0;o<arguments.length;o++){var u=arguments[o];for(var d in u)t.call(u,d)&&(n[d]=u[d])}return n}}}),nt=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/schema.js"(e,r){r.exports=a;var t=a.prototype;t.space=null,t.normal={},t.property={};function a(n,o,u){this.property=n,this.normal=o,u&&(this.space=u)}}}),Ot=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/merge.js"(e,r){var t=$t(),a=nt();r.exports=n;function n(o){for(var u=o.length,d=[],l=[],f=-1,h,C;++f<u;)h=o[f],d.push(h.property),l.push(h.normal),C=h.space;return new a(t.apply(null,d),t.apply(null,l),C)}}}),De=F({"../../node_modules/hastscript/node_modules/property-information/normalize.js"(e,r){r.exports=t;function t(a){return a.toLowerCase()}}}),at=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/info.js"(e,r){r.exports=a;var t=a.prototype;t.space=null,t.attribute=null,t.property=null,t.boolean=!1,t.booleanish=!1,t.overloadedBoolean=!1,t.number=!1,t.commaSeparated=!1,t.spaceSeparated=!1,t.commaOrSpaceSeparated=!1,t.mustUseProperty=!1,t.defined=!1;function a(n,o){this.property=n,this.attribute=o}}}),Re=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/types.js"(e){var r=0;e.boolean=t(),e.booleanish=t(),e.overloadedBoolean=t(),e.number=t(),e.spaceSeparated=t(),e.commaSeparated=t(),e.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++r)}}}),rt=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/defined-info.js"(e,r){var t=at(),a=Re();r.exports=u,u.prototype=new t,u.prototype.defined=!0;var n=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=n.length;function u(l,f,h,C){var x=-1,b;for(d(this,"space",C),t.call(this,l,f);++x<o;)b=n[x],d(this,b,(h&a[b])===a[b])}function d(l,f,h){h&&(l[f]=h)}}}),ve=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/create.js"(e,r){var t=De(),a=nt(),n=rt();r.exports=o;function o(u){var d=u.space,l=u.mustUseProperty||[],f=u.attributes||{},h=u.properties,C=u.transform,x={},b={},y,S;for(y in h)S=new n(y,C(f,y),h[y],d),l.indexOf(y)!==-1&&(S.mustUseProperty=!0),x[y]=S,b[t(y)]=y,b[t(S.attribute)]=y;return new a(x,b,d)}}}),Lt=F({"../../node_modules/hastscript/node_modules/property-information/lib/xlink.js"(e,r){var t=ve();r.exports=t({space:"xlink",transform:a,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function a(n,o){return"xlink:"+o.slice(5).toLowerCase()}}}),It=F({"../../node_modules/hastscript/node_modules/property-information/lib/xml.js"(e,r){var t=ve();r.exports=t({space:"xml",transform:a,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function a(n,o){return"xml:"+o.slice(3).toLowerCase()}}}),Tt=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/case-sensitive-transform.js"(e,r){r.exports=t;function t(a,n){return n in a?a[n]:n}}}),ot=F({"../../node_modules/hastscript/node_modules/property-information/lib/util/case-insensitive-transform.js"(e,r){var t=Tt();r.exports=a;function a(n,o){return t(n,o.toLowerCase())}}}),Dt=F({"../../node_modules/hastscript/node_modules/property-information/lib/xmlns.js"(e,r){var t=ve(),a=ot();r.exports=t({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:a,properties:{xmlns:null,xmlnsXLink:null}})}}),Rt=F({"../../node_modules/hastscript/node_modules/property-information/lib/aria.js"(e,r){var t=Re(),a=ve(),n=t.booleanish,o=t.number,u=t.spaceSeparated;r.exports=a({transform:d,properties:{ariaActiveDescendant:null,ariaAtomic:n,ariaAutoComplete:null,ariaBusy:n,ariaChecked:n,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:u,ariaCurrent:null,ariaDescribedBy:u,ariaDetails:null,ariaDisabled:n,ariaDropEffect:u,ariaErrorMessage:null,ariaExpanded:n,ariaFlowTo:u,ariaGrabbed:n,ariaHasPopup:null,ariaHidden:n,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:u,ariaLevel:o,ariaLive:null,ariaModal:n,ariaMultiLine:n,ariaMultiSelectable:n,ariaOrientation:null,ariaOwns:u,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:n,ariaReadOnly:n,ariaRelevant:null,ariaRequired:n,ariaRoleDescription:u,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:n,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}});function d(l,f){return f==="role"?f:"aria-"+f.slice(4).toLowerCase()}}}),qt=F({"../../node_modules/hastscript/node_modules/property-information/lib/html.js"(e,r){var t=Re(),a=ve(),n=ot(),o=t.boolean,u=t.overloadedBoolean,d=t.booleanish,l=t.number,f=t.spaceSeparated,h=t.commaSeparated;r.exports=a({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:n,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:h,acceptCharset:f,accessKey:f,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:f,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:f,cols:l,colSpan:null,content:null,contentEditable:d,controls:o,controlsList:f,coords:l|h,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:u,draggable:d,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:f,height:l,hidden:o,high:l,href:null,hrefLang:null,htmlFor:f,httpEquiv:f,id:null,imageSizes:null,imageSrcSet:h,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:f,itemRef:f,itemScope:o,itemType:f,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:l,manifest:null,max:null,maxLength:l,media:null,method:null,min:null,minLength:l,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,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:o,optimum:l,pattern:null,ping:f,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:f,required:o,reversed:o,rows:l,rowSpan:l,sandbox:f,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:l,sizes:null,slot:null,span:l,spellCheck:d,src:null,srcDoc:null,srcLang:null,srcSet:h,start:l,step:null,style:null,tabIndex:l,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:d,width:l,wrap:null,align:null,aLink:null,archive:f,axis:null,background:null,bgColor:null,border:l,borderColor:null,bottomMargin:l,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:l,leftMargin:l,link:null,longDesc:null,lowSrc:null,marginHeight:l,marginWidth:l,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:l,rules:null,scheme:null,scrolling:d,standby:null,summary:null,text:null,topMargin:l,valueType:null,version:null,vAlign:null,vLink:null,vSpace:l,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:l,security:null,unselectable:null}})}}),Bt=F({"../../node_modules/hastscript/node_modules/property-information/html.js"(e,r){var t=Ot(),a=Lt(),n=It(),o=Dt(),u=Rt(),d=qt();r.exports=t([n,a,o,u,d])}}),Mt=F({"../../node_modules/hastscript/node_modules/property-information/find.js"(e,r){var t=De(),a=rt(),n=at(),o="data";r.exports=f;var u=/^data[-\w.:]+$/i,d=/-[a-z]/g,l=/[A-Z]/g;function f(y,S){var E=t(S),_=S,A=n;return E in y.normal?y.property[y.normal[E]]:(E.length>4&&E.slice(0,4)===o&&u.test(S)&&(S.charAt(4)==="-"?_=h(S):S=C(S),A=a),new A(_,S))}function h(y){var S=y.slice(5).replace(d,b);return o+S.charAt(0).toUpperCase()+S.slice(1)}function C(y){var S=y.slice(4);return d.test(S)?y:(S=S.replace(l,x),S.charAt(0)!=="-"&&(S="-"+S),o+S)}function x(y){return"-"+y.toLowerCase()}function b(y){return y.charAt(1).toUpperCase()}}}),zt=F({"../../node_modules/hast-util-parse-selector/index.js"(e,r){r.exports=a;var t=/[#.]/g;function a(n,o){for(var u=n||"",d=o||"div",l={},f=0,h,C,x;f<u.length;)t.lastIndex=f,x=t.exec(u),h=u.slice(f,x?x.index:u.length),h&&(C?C==="#"?l.id=h:l.className?l.className.push(h):l.className=[h]:d=h,f+=h.length),x&&(C=x[0],f++);return{type:"element",tagName:d,properties:l,children:[]}}}}),Ht=F({"../../node_modules/hastscript/node_modules/space-separated-tokens/index.js"(e){e.parse=n,e.stringify=o;var r="",t=" ",a=/[ \t\n\r\f]+/g;function n(u){var d=String(u||r).trim();return d===r?[]:d.split(a)}function o(u){return u.join(t).trim()}}}),Ut=F({"../../node_modules/hastscript/node_modules/comma-separated-tokens/index.js"(e){e.parse=n,e.stringify=o;var r=",",t=" ",a="";function n(u){for(var d=[],l=String(u||a),f=l.indexOf(r),h=0,C=!1,x;!C;)f===-1&&(f=l.length,C=!0),x=l.slice(h,f).trim(),(x||!C)&&d.push(x),h=f+1,f=l.indexOf(r,h);return d}function o(u,d){var l=d||{},f=l.padLeft===!1?a:t,h=l.padRight?t:a;return u[u.length-1]===a&&(u=u.concat(a)),u.join(h+r+f).trim()}}}),Pt=F({"../../node_modules/hastscript/factory.js"(e,r){var t=Mt(),a=De(),n=zt(),o=Ht().parse,u=Ut().parse;r.exports=l;var d={}.hasOwnProperty;function l(E,_,A){var i=A?S(A):null;return s;function s(g,m){var c=n(g,_),w=Array.prototype.slice.call(arguments,2),v=c.tagName.toLowerCase(),k;if(c.tagName=i&&d.call(i,v)?i[v]:v,m&&f(m,c)&&(w.unshift(m),m=null),m)for(k in m)p(c.properties,k,m[k]);return C(c.children,w),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function p(g,m,c){var w,v,k;c==null||c!==c||(w=t(E,m),v=w.property,k=c,typeof k=="string"&&(w.spaceSeparated?k=o(k):w.commaSeparated?k=u(k):w.commaOrSpaceSeparated&&(k=o(u(k).join(" ")))),v==="style"&&typeof c!="string"&&(k=y(k)),v==="className"&&g.className&&(k=g.className.concat(k)),g[v]=x(w,v,k))}}function f(E,_){return typeof E=="string"||"length"in E||h(_.tagName,E)}function h(E,_){var A=_.type;return E==="input"||!A||typeof A!="string"?!1:typeof _.children=="object"&&"length"in _.children?!0:(A=A.toLowerCase(),E==="button"?A!=="menu"&&A!=="submit"&&A!=="reset"&&A!=="button":"value"in _)}function C(E,_){var A,i;if(typeof _=="string"||typeof _=="number"){E.push({type:"text",value:String(_)});return}if(typeof _=="object"&&"length"in _){for(A=-1,i=_.length;++A<i;)C(E,_[A]);return}if(typeof _!="object"||!("type"in _))throw new Error("Expected node, nodes, or string, got `"+_+"`");E.push(_)}function x(E,_,A){var i,s,p;if(typeof A!="object"||!("length"in A))return b(E,_,A);for(s=A.length,i=-1,p=[];++i<s;)p[i]=b(E,_,A[i]);return p}function b(E,_,A){var i=A;return E.number||E.positiveNumber?!isNaN(i)&&i!==""&&(i=Number(i)):(E.boolean||E.overloadedBoolean)&&typeof i=="string"&&(i===""||a(A)===a(_))&&(i=!0),i}function y(E){var _=[],A;for(A in E)_.push([A,E[A]].join(": "));return _.join("; ")}function S(E){for(var _=E.length,A=-1,i={},s;++A<_;)s=E[A],i[s.toLowerCase()]=s;return i}}}),Gt=F({"../../node_modules/hastscript/html.js"(e,r){var t=Bt(),a=Pt(),n=a(t,"div");n.displayName="html",r.exports=n}}),Zt=F({"../../node_modules/hastscript/index.js"(e,r){r.exports=Gt()}}),Wt=F({"../../node_modules/refractor/node_modules/character-entities-legacy/index.json"(e,r){r.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:"ÿ"}}}),Kt=F({"../../node_modules/refractor/node_modules/character-reference-invalid/index.json"(e,r){r.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:"Ÿ"}}}),lt=F({"../../node_modules/refractor/node_modules/is-decimal/index.js"(e,r){r.exports=t;function t(a){var n=typeof a=="string"?a.charCodeAt(0):a;return n>=48&&n<=57}}}),Xt=F({"../../node_modules/refractor/node_modules/is-hexadecimal/index.js"(e,r){r.exports=t;function t(a){var n=typeof a=="string"?a.charCodeAt(0):a;return n>=97&&n<=102||n>=65&&n<=70||n>=48&&n<=57}}}),Yt=F({"../../node_modules/refractor/node_modules/is-alphabetical/index.js"(e,r){r.exports=t;function t(a){var n=typeof a=="string"?a.charCodeAt(0):a;return n>=97&&n<=122||n>=65&&n<=90}}}),Vt=F({"../../node_modules/refractor/node_modules/is-alphanumerical/index.js"(e,r){var t=Yt(),a=lt();r.exports=n;function n(o){return t(o)||a(o)}}}),Jt=F({"../../node_modules/refractor/node_modules/parse-entities/decode-entity.browser.js"(e,r){var t,a=59;r.exports=n;function n(o){var u="&"+o+";",d;return t=t||document.createElement("i"),t.innerHTML=u,d=t.textContent,d.charCodeAt(d.length-1)===a&&o!=="semi"||d===u?!1:d}}}),Qt=F({"../../node_modules/refractor/node_modules/parse-entities/index.js"(e,r){var t=Wt(),a=Kt(),n=lt(),o=Xt(),u=Vt(),d=Jt();r.exports=B;var l={}.hasOwnProperty,f=String.fromCharCode,h=Function.prototype,C={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},x=9,b=10,y=12,S=32,E=38,_=59,A=60,i=61,s=35,p=88,g=120,m=65533,c="named",w="hexadecimal",v="decimal",k={};k[w]=16,k[v]=10;var N={};N[c]=u,N[v]=n,N[w]=o;var $=1,H=2,z=3,X=4,J=5,W=6,O=7,L={};L[$]="Named character references must be terminated by a semicolon",L[H]="Numeric character references must be terminated by a semicolon",L[z]="Named character references cannot be empty",L[X]="Numeric character references cannot be empty",L[J]="Named character references must be known",L[W]="Numeric character references cannot be disallowed",L[O]="Numeric character references cannot be outside the permissible Unicode range";function B(j,I){var T={},K,U;I||(I={});for(U in C)K=I[U],T[U]=K??C[U];return(T.position.indent||T.position.start)&&(T.indent=T.position.indent||[],T.position=T.position.start),Q(j,T)}function Q(j,I){var T=I.additional,K=I.nonTerminated,U=I.text,re=I.reference,pe=I.warning,de=I.textContext,ke=I.referenceContext,me=I.warningContext,Ce=I.position,gt=I.indent||[],Fe=j.length,te=0,He=-1,oe=Ce.column||1,Ue=Ce.line||1,le="",je=[],ge,Ne,ie,P,ne,R,D,Y,Se,$e,se,he,ue,ee,Pe,ye,_e,V,q;for(typeof T=="string"&&(T=T.charCodeAt(0)),ye=be(),Y=pe?ft:h,te--,Fe++;++te<Fe;)if(ne===b&&(oe=gt[He]||1),ne=j.charCodeAt(te),ne===E){if(D=j.charCodeAt(te+1),D===x||D===b||D===y||D===S||D===E||D===A||D!==D||T&&D===T){le+=f(ne),oe++;continue}for(ue=te+1,he=ue,q=ue,D===s?(q=++he,D=j.charCodeAt(q),D===p||D===g?(ee=w,q=++he):ee=v):ee=c,ge="",se="",P="",Pe=N[ee],q--;++q<Fe&&(D=j.charCodeAt(q),!!Pe(D));)P+=f(D),ee===c&&l.call(t,P)&&(ge=P,se=t[P]);ie=j.charCodeAt(q)===_,ie&&(q++,Ne=ee===c?d(P):!1,Ne&&(ge=P,se=Ne)),V=1+q-ue,!ie&&!K||(P?ee===c?(ie&&!se?Y(J,1):(ge!==P&&(q=he+ge.length,V=1+q-he,ie=!1),ie||(Se=ge?$:z,I.attribute?(D=j.charCodeAt(q),D===i?(Y(Se,V),se=null):u(D)?se=null:Y(Se,V)):Y(Se,V))),R=se):(ie||Y(H,V),R=parseInt(P,k[ee]),M(R)?(Y(O,V),R=f(m)):R in a?(Y(W,V),R=a[R]):($e="",ce(R)&&Y(W,V),R>65535&&(R-=65536,$e+=f(R>>>10|55296),R=56320|R&1023),R=$e+f(R))):ee!==c&&Y(X,V)),R?(Ge(),ye=be(),te=q-1,oe+=q-ue+1,je.push(R),_e=be(),_e.offset++,re&&re.call(ke,R,{start:ye,end:_e},j.slice(ue-1,q)),ye=_e):(P=j.slice(ue-1,q),le+=P,oe+=P.length,te=q-1)}else ne===10&&(Ue++,He++,oe=0),ne===ne?(le+=f(ne),oe++):Ge();return je.join("");function be(){return{line:Ue,column:oe,offset:te+(Ce.offset||0)}}function ft(Ze,We){var Oe=be();Oe.column+=We,Oe.offset+=We,pe.call(me,L[Ze],Oe,Ze)}function Ge(){le&&(je.push(le),U&&U.call(de,le,{start:ye,end:be()}),le="")}}function M(j){return j>=55296&&j<=57343||j>1114111}function ce(j){return j>=1&&j<=8||j===11||j>=13&&j<=31||j>=127&&j<=159||j>=64976&&j<=65007||(j&65535)===65535||(j&65535)===65534}}}),en=F({"../../node_modules/refractor/node_modules/prismjs/components/prism-core.js"(e,r){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},a=(function(n){var o=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,u=0,d={},l={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function i(s){return s instanceof f?new f(s.type,i(s.content),s.alias):Array.isArray(s)?s.map(i):s.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(i){return Object.prototype.toString.call(i).slice(8,-1)},objId:function(i){return i.__id||Object.defineProperty(i,"__id",{value:++u}),i.__id},clone:function i(s,p){p=p||{};var g,m;switch(l.util.type(s)){case"Object":if(m=l.util.objId(s),p[m])return p[m];g={},p[m]=g;for(var c in s)s.hasOwnProperty(c)&&(g[c]=i(s[c],p));return g;case"Array":return m=l.util.objId(s),p[m]?p[m]:(g=[],p[m]=g,s.forEach(function(w,v){g[v]=i(w,p)}),g);default:return s}},getLanguage:function(i){for(;i;){var s=o.exec(i.className);if(s)return s[1].toLowerCase();i=i.parentElement}return"none"},setLanguage:function(i,s){i.className=i.className.replace(RegExp(o,"gi"),""),i.classList.add("language-"+s)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(g){var i=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(g.stack)||[])[1];if(i){var s=document.getElementsByTagName("script");for(var p in s)if(s[p].src==i)return s[p]}return null}},isActive:function(i,s,p){for(var g="no-"+s;i;){var m=i.classList;if(m.contains(s))return!0;if(m.contains(g))return!1;i=i.parentElement}return!!p}},languages:{plain:d,plaintext:d,text:d,txt:d,extend:function(i,s){var p=l.util.clone(l.languages[i]);for(var g in s)p[g]=s[g];return p},insertBefore:function(i,s,p,g){g=g||l.languages;var m=g[i],c={};for(var w in m)if(m.hasOwnProperty(w)){if(w==s)for(var v in p)p.hasOwnProperty(v)&&(c[v]=p[v]);p.hasOwnProperty(w)||(c[w]=m[w])}var k=g[i];return g[i]=c,l.languages.DFS(l.languages,function(N,$){$===k&&N!=i&&(this[N]=c)}),c},DFS:function i(s,p,g,m){m=m||{};var c=l.util.objId;for(var w in s)if(s.hasOwnProperty(w)){p.call(s,w,s[w],g||w);var v=s[w],k=l.util.type(v);k==="Object"&&!m[c(v)]?(m[c(v)]=!0,i(v,p,null,m)):k==="Array"&&!m[c(v)]&&(m[c(v)]=!0,i(v,p,w,m))}}},plugins:{},highlightAll:function(i,s){l.highlightAllUnder(document,i,s)},highlightAllUnder:function(i,s,p){var g={callback:p,container:i,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};l.hooks.run("before-highlightall",g),g.elements=Array.prototype.slice.apply(g.container.querySelectorAll(g.selector)),l.hooks.run("before-all-elements-highlight",g);for(var m=0,c;c=g.elements[m++];)l.highlightElement(c,s===!0,g.callback)},highlightElement:function(i,s,p){var g=l.util.getLanguage(i),m=l.languages[g];l.util.setLanguage(i,g);var c=i.parentElement;c&&c.nodeName.toLowerCase()==="pre"&&l.util.setLanguage(c,g);var w=i.textContent,v={element:i,language:g,grammar:m,code:w};function k($){v.highlightedCode=$,l.hooks.run("before-insert",v),v.element.innerHTML=v.highlightedCode,l.hooks.run("after-highlight",v),l.hooks.run("complete",v),p&&p.call(v.element)}if(l.hooks.run("before-sanity-check",v),c=v.element.parentElement,c&&c.nodeName.toLowerCase()==="pre"&&!c.hasAttribute("tabindex")&&c.setAttribute("tabindex","0"),!v.code){l.hooks.run("complete",v),p&&p.call(v.element);return}if(l.hooks.run("before-highlight",v),!v.grammar){k(l.util.encode(v.code));return}if(s&&n.Worker){var N=new Worker(l.filename);N.onmessage=function($){k($.data)},N.postMessage(JSON.stringify({language:v.language,code:v.code,immediateClose:!0}))}else k(l.highlight(v.code,v.grammar,v.language))},highlight:function(i,s,p){var g={code:i,grammar:s,language:p};if(l.hooks.run("before-tokenize",g),!g.grammar)throw new Error('The language "'+g.language+'" has no grammar.');return g.tokens=l.tokenize(g.code,g.grammar),l.hooks.run("after-tokenize",g),f.stringify(l.util.encode(g.tokens),g.language)},tokenize:function(i,s){var p=s.rest;if(p){for(var g in p)s[g]=p[g];delete s.rest}var m=new x;return b(m,m.head,i),C(i,m,s,m.head,0),S(m)},hooks:{all:{},add:function(i,s){var p=l.hooks.all;p[i]=p[i]||[],p[i].push(s)},run:function(i,s){var p=l.hooks.all[i];if(!(!p||!p.length))for(var g=0,m;m=p[g++];)m(s)}},Token:f};n.Prism=l;function f(i,s,p,g){this.type=i,this.content=s,this.alias=p,this.length=(g||"").length|0}f.stringify=function i(s,p){if(typeof s=="string")return s;if(Array.isArray(s)){var g="";return s.forEach(function(k){g+=i(k,p)}),g}var m={type:s.type,content:i(s.content,p),tag:"span",classes:["token",s.type],attributes:{},language:p},c=s.alias;c&&(Array.isArray(c)?Array.prototype.push.apply(m.classes,c):m.classes.push(c)),l.hooks.run("wrap",m);var w="";for(var v in m.attributes)w+=" "+v+'="'+(m.attributes[v]||"").replace(/"/g,""")+'"';return"<"+m.tag+' class="'+m.classes.join(" ")+'"'+w+">"+m.content+"</"+m.tag+">"};function h(i,s,p,g){i.lastIndex=s;var m=i.exec(p);if(m&&g&&m[1]){var c=m[1].length;m.index+=c,m[0]=m[0].slice(c)}return m}function C(i,s,p,g,m,c){for(var w in p)if(!(!p.hasOwnProperty(w)||!p[w])){var v=p[w];v=Array.isArray(v)?v:[v];for(var k=0;k<v.length;++k){if(c&&c.cause==w+","+k)return;var N=v[k],$=N.inside,H=!!N.lookbehind,z=!!N.greedy,X=N.alias;if(z&&!N.pattern.global){var J=N.pattern.toString().match(/[imsuy]*$/)[0];N.pattern=RegExp(N.pattern.source,J+"g")}for(var W=N.pattern||N,O=g.next,L=m;O!==s.tail&&!(c&&L>=c.reach);L+=O.value.length,O=O.next){var B=O.value;if(s.length>i.length)return;if(!(B instanceof f)){var Q=1,M;if(z){if(M=h(W,L,i,H),!M||M.index>=i.length)break;var T=M.index,ce=M.index+M[0].length,j=L;for(j+=O.value.length;T>=j;)O=O.next,j+=O.value.length;if(j-=O.value.length,L=j,O.value instanceof f)continue;for(var I=O;I!==s.tail&&(j<ce||typeof I.value=="string");I=I.next)Q++,j+=I.value.length;Q--,B=i.slice(L,j),M.index-=L}else if(M=h(W,0,B,H),!M)continue;var T=M.index,K=M[0],U=B.slice(0,T),re=B.slice(T+K.length),pe=L+B.length;c&&pe>c.reach&&(c.reach=pe);var de=O.prev;U&&(de=b(s,de,U),L+=U.length),y(s,de,Q);var ke=new f(w,$?l.tokenize(K,$):K,X,K);if(O=b(s,de,ke),re&&b(s,O,re),Q>1){var me={cause:w+","+k,reach:pe};C(i,s,p,O.prev,L,me),c&&me.reach>c.reach&&(c.reach=me.reach)}}}}}}function x(){var i={value:null,prev:null,next:null},s={value:null,prev:i,next:null};i.next=s,this.head=i,this.tail=s,this.length=0}function b(i,s,p){var g=s.next,m={value:p,prev:s,next:g};return s.next=m,g.prev=m,i.length++,m}function y(i,s,p){for(var g=s.next,m=0;m<p&&g!==i.tail;m++)g=g.next;s.next=g,g.prev=s,i.length-=m}function S(i){for(var s=[],p=i.head.next;p!==i.tail;)s.push(p.value),p=p.next;return s}if(!n.document)return n.addEventListener&&(l.disableWorkerMessageHandler||n.addEventListener("message",function(i){var s=JSON.parse(i.data),p=s.language,g=s.code,m=s.immediateClose;n.postMessage(l.highlight(g,l.languages[p],p)),m&&n.close()},!1)),l;var E=l.util.currentScript();E&&(l.filename=E.src,E.hasAttribute("data-manual")&&(l.manual=!0));function _(){l.manual||l.highlightAll()}if(!l.manual){var A=document.readyState;A==="loading"||A==="interactive"&&E&&E.defer?document.addEventListener("DOMContentLoaded",_):window.requestAnimationFrame?window.requestAnimationFrame(_):window.setTimeout(_,16)}return l})(t);typeof r<"u"&&r.exports&&(r.exports=a),typeof global<"u"&&(global.Prism=a)}}),tn=F({"../../node_modules/refractor/lang/clike.js"(e,r){r.exports=t,t.displayName="clike",t.aliases=[];function t(a){a.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:/[{}[\];(),.:]/}}}}),nn=F({"../../node_modules/refractor/lang/javascript.js"(e,r){r.exports=t,t.displayName="javascript",t.aliases=["js"];function t(a){a.languages.javascript=a.languages.extend("clike",{"class-name":[a.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}|\?\?=?|\?\.?|[~:]/}),a.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,a.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:a.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:a.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:a.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:a.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:a.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),a.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:a.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"}}),a.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),a.languages.markup&&(a.languages.markup.tag.addInlined("script","javascript"),a.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")),a.languages.js=a.languages.javascript}}}),an=F({"../../node_modules/refractor/core.js"(e,r){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof global=="object"?global:{},a=m();t.Prism={manual:!0,disableWorkerMessageHandler:!0};var n=Zt(),o=Qt(),u=en(),d=et(),l=Je(),f=tn(),h=nn();a();var C={}.hasOwnProperty;function x(){}x.prototype=u;var b=new x;r.exports=b,b.highlight=E,b.register=y,b.alias=S,b.registered=_,b.listLanguages=A,y(d),y(l),y(f),y(h),b.util.encode=p,b.Token.stringify=i;function y(c){if(typeof c!="function"||!c.displayName)throw new Error("Expected `function` for `grammar`, got `"+c+"`");b.languages[c.displayName]===void 0&&c(b)}function S(c,w){var v=b.languages,k=c,N,$,H,z;w&&(k={},k[c]=w);for(N in k)for($=k[N],$=typeof $=="string"?[$]:$,H=$.length,z=-1;++z<H;)v[$[z]]=v[N]}function E(c,w){var v=u.highlight,k;if(typeof c!="string")throw new Error("Expected `string` for `value`, got `"+c+"`");if(b.util.type(w)==="Object")k=w,w=null;else{if(typeof w!="string")throw new Error("Expected `string` for `name`, got `"+w+"`");if(C.call(b.languages,w))k=b.languages[w];else throw new Error("Unknown language: `"+w+"` is not registered")}return v.call(this,c,k,w)}function _(c){if(typeof c!="string")throw new Error("Expected `string` for `language`, got `"+c+"`");return C.call(b.languages,c)}function A(){var c=b.languages,w=[],v;for(v in c)C.call(c,v)&&typeof c[v]=="object"&&w.push(v);return w}function i(c,w,v){var k;return typeof c=="string"?{type:"text",value:c}:b.util.type(c)==="Array"?s(c,w):(k={type:c.type,content:b.Token.stringify(c.content,w,v),tag:"span",classes:["token",c.type],attributes:{},language:w,parent:v},c.alias&&(k.classes=k.classes.concat(c.alias)),b.hooks.run("wrap",k),n(k.tag+"."+k.classes.join("."),g(k.attributes),k.content))}function s(c,w){for(var v=[],k=c.length,N=-1,$;++N<k;)$=c[N],$!==""&&$!==null&&$!==void 0&&v.push($);for(N=-1,k=v.length;++N<k;)$=v[N],v[N]=b.Token.stringify($,w,v);return v}function p(c){return c}function g(c){var w;for(w in c)c[w]=o(c[w]);return c}function m(){var c="Prism"in t,w=c?t.Prism:void 0;return v;function v(){c?t.Prism=w:delete t.Prism,c=void 0,w=void 0}}}}),rn=Z(vt(),1);const{logger:on}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{global:ln}=__STORYBOOK_MODULE_GLOBAL__;function Ke(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function fe(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ke(Object(t),!0).forEach(function(a){Ve(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ke(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function sn(e){var r=e.length;if(r===0||r===1)return e;if(r===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(r===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(r>=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])]}var Le={};function un(e){if(e.length===0||e.length===1)return e;var r=e.join(".");return Le[r]||(Le[r]=sn(e)),Le[r]}function cn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,a=e.filter(function(o){return o!=="token"}),n=un(a);return n.reduce(function(o,u){return fe(fe({},o),t[u])},r)}function Xe(e){return e.join(" ")}function pn(e,r){var t=0;return function(a){return t+=1,a.map(function(n,o){return qe({node:n,stylesheet:e,useInlineStyles:r,key:"code-segment-".concat(t,"-").concat(o)})})}}function qe(e){var r=e.node,t=e.stylesheet,a=e.style,n=a===void 0?{}:a,o=e.useInlineStyles,u=e.key,d=r.properties,l=r.type,f=r.tagName,h=r.value;if(l==="text")return h;if(f){var C=pn(t,o),x;if(!o)x=fe(fe({},d),{},{className:Xe(d.className)});else{var b=Object.keys(t).reduce(function(_,A){return A.split(".").forEach(function(i){_.includes(i)||_.push(i)}),_},[]),y=d.className&&d.className.includes("token")?["token"]:[],S=d.className&&y.concat(d.className.filter(function(_){return!b.includes(_)}));x=fe(fe({},d),{},{className:Xe(S)||void 0,style:cn(d.className,Object.assign({},d.style,n),t)})}var E=C(r.children);return G.createElement(f,xt({key:u},x),E)}}var dn=Z(At()),gn=dn.default,fn=Z(Je()),mn=fn.default,hn=Z(Et()),yn=hn.default,bn=Z(kt()),xn=bn.default,vn=Z(Ct()),Sn=vn.default,_n=Z(Qe()),wn=_n.default,An=Z(Ft()),En=An.default,kn=Z(et()),Cn=kn.default,Fn=Z(jt()),jn=Fn.default,Nn=Z(tt()),$n=Nn.default,On=Z(Nt()),Ln=On.default;function Ie(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}function In(e){if(Array.isArray(e))return Ie(e)}function Tn(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dn(e,r){if(e){if(typeof e=="string")return Ie(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ie(e,r):void 0}}function Rn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Te(e){return In(e)||Tn(e)||Dn(e)||Rn()}var qn=(function(e,r){var t=e.listLanguages();return t.indexOf(r)!==-1}),Bn=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Ye(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function ae(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ye(Object(t),!0).forEach(function(a){Ve(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ye(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var Mn=/\n/g;function zn(e){return e.match(Mn)}function Hn(e){var r=e.lines,t=e.startingLineNumber,a=e.style;return r.map(function(n,o){var u=o+t;return G.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof a=="function"?a(u):a},"".concat(u,`
|
|
3
|
+
`))})}function Un(e){var r=e.codeString,t=e.codeStyle,a=e.containerStyle,n=a===void 0?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,u=o===void 0?{}:o,d=e.startingLineNumber;return G.createElement("code",{style:Object.assign({},t,n)},Hn({lines:r.replace(/\n$/,"").split(`
|
|
4
|
+
`),style:u,startingLineNumber:d}))}function Pn(e){return"".concat(e.toString().length,".25em")}function it(e,r){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:r},children:[{type:"text",value:e}]}}function st(e,r,t){var a={display:"inline-block",minWidth:Pn(t),paddingRight:"1em",textAlign:"right",userSelect:"none"},n=typeof e=="function"?e(r):e,o=ae(ae({},a),n);return o}function Ae(e){var r=e.children,t=e.lineNumber,a=e.lineNumberStyle,n=e.largestLineNumber,o=e.showInlineLineNumbers,u=e.lineProps,d=u===void 0?{}:u,l=e.className,f=l===void 0?[]:l,h=e.showLineNumbers,C=e.wrapLongLines,x=e.wrapLines,b=x===void 0?!1:x,y=b?ae({},typeof d=="function"?d(t):d):{};if(y.className=y.className?[].concat(Te(y.className.trim().split(/\s+/)),Te(f)):f,t&&o){var S=st(a,t,n);r.unshift(it(t,S))}return C&h&&(y.style=ae({display:"flex"},y.style)),{type:"element",tagName:"span",properties:y,children:r}}function ut(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],a=0;a<e.length;a++){var n=e[a];if(n.type==="text")t.push(Ae({children:[n],className:Te(new Set(r))}));else if(n.children){var o=r.concat(n.properties.className);ut(n.children,o).forEach(function(u){return t.push(u)})}}return t}function Gn(e,r,t,a,n,o,u,d,l){var f,h=ut(e.value),C=[],x=-1,b=0;function y(p,g){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ae({children:p,lineNumber:g,lineNumberStyle:d,largestLineNumber:u,showInlineLineNumbers:n,lineProps:t,className:m,showLineNumbers:a,wrapLongLines:l,wrapLines:r})}function S(p,g){if(a&&g&&n){var m=st(d,g,u);p.unshift(it(g,m))}return p}function E(p,g){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return r||m.length>0?y(p,g,m):S(p,g)}for(var _=function(){var p=h[b],g=p.children[0].value,m=zn(g);if(m){var c=g.split(`
|
|
5
|
+
`);c.forEach(function(w,v){var k=a&&C.length+o,N={type:"text",value:"".concat(w,`
|
|
6
|
+
`)};if(v===0){var $=h.slice(x+1,b).concat(Ae({children:[N],className:p.properties.className})),H=E($,k);C.push(H)}else if(v===c.length-1){var z=h[b+1]&&h[b+1].children&&h[b+1].children[0],X={type:"text",value:"".concat(w)};if(z){var J=Ae({children:[X],className:p.properties.className});h.splice(b+1,0,J)}else{var W=[X],O=E(W,k,p.properties.className);C.push(O)}}else{var L=[N],B=E(L,k,p.properties.className);C.push(B)}}),x=b}b++};b<h.length;)_();if(x!==h.length-1){var A=h.slice(x+1,h.length);if(A&&A.length){var i=a&&C.length+o,s=E(A,i);C.push(s)}}return r?C:(f=[]).concat.apply(f,C)}function Zn(e){var r=e.rows,t=e.stylesheet,a=e.useInlineStyles;return r.map(function(n,o){return qe({node:n,stylesheet:t,useInlineStyles:a,key:"code-segment-".concat(o)})})}function ct(e){return e&&typeof e.highlightAuto<"u"}function Wn(e){var r=e.astGenerator,t=e.language,a=e.code,n=e.defaultCodeValue;if(ct(r)){var o=qn(r,t);return t==="text"?{value:n,language:"text"}:o?r.highlight(t,a):r.highlightAuto(a)}try{return t&&t!=="text"?{value:r.highlight(a,t)}:{value:n}}catch{return{value:n}}}function Kn(e,r){return function(t){var a,n,o=t.language,u=t.children,d=t.style,l=d===void 0?r:d,f=t.customStyle,h=f===void 0?{}:f,C=t.codeTagProps,x=C===void 0?{className:o?"language-".concat(o):void 0,style:ae(ae({},l['code[class*="language-"]']),l['code[class*="language-'.concat(o,'"]')])}:C,b=t.useInlineStyles,y=b===void 0?!0:b,S=t.showLineNumbers,E=S===void 0?!1:S,_=t.showInlineLineNumbers,A=_===void 0?!0:_,i=t.startingLineNumber,s=i===void 0?1:i,p=t.lineNumberContainerStyle,g=t.lineNumberStyle,m=g===void 0?{}:g,c=t.wrapLines,w=t.wrapLongLines,v=w===void 0?!1:w,k=t.lineProps,N=k===void 0?{}:k,$=t.renderer,H=t.PreTag,z=H===void 0?"pre":H,X=t.CodeTag,J=X===void 0?"code":X,W=t.code,O=W===void 0?(Array.isArray(u)?u[0]:u)||"":W,L=t.astGenerator,B=wt(t,Bn);L=L||e;var Q=E?G.createElement(Un,{containerStyle:p,codeStyle:x.style||{},numberStyle:m,startingLineNumber:s,codeString:O}):null,M=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},ce=ct(L)?"hljs":"prismjs",j=y?Object.assign({},B,{style:Object.assign({},M,h)}):Object.assign({},B,{className:B.className?"".concat(ce," ").concat(B.className):ce,style:Object.assign({},h)});if(v?x.style=ae({whiteSpace:"pre-wrap"},x.style):x.style=ae({whiteSpace:"pre"},x.style),!L)return G.createElement(z,j,Q,G.createElement(J,x,O));(c===void 0&&$||v)&&(c=!0),$=$||Zn;var I=[{type:"text",value:O}],T=Wn({astGenerator:L,language:o,code:O,defaultCodeValue:I});T.language===null&&(T.value=I);var K=(a=(n=O.match(/\n/g))===null||n===void 0?void 0:n.length)!==null&&a!==void 0?a:0,U=s+K,re=Gn(T,c,N,E,A,s,U,m,v);return G.createElement(z,j,G.createElement(J,x,!A&&Q,$({rows:re,stylesheet:l,useInlineStyles:y})))}}var Be=Z(an()),Me=Kn(Be.default,{});Me.registerLanguage=function(e,r){return Be.default.register(r)};Me.alias=function(e,r){return Be.default.alias(e,r)};var ze=Me,{window:Xn}=ln,Yn={jsextra:xn,jsx:wn,json:Sn,yml:Ln,md:En,bash:gn,css:mn,html:Cn,tsx:jn,typescript:$n,graphql:yn};Object.entries(Yn).forEach(([e,r])=>{ze.registerLanguage(e,r)});var Vn=(0,rn.default)(2)(e=>Object.entries(e.code||{}).reduce((r,[t,a])=>({...r,[`* .${t}`]:a}),{})),Jn=yt(),Qn=Ee.div(({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText}),({theme:e,bordered:r})=>r?{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)"}}:{}),ea=({children:e,className:r})=>G.createElement(bt,{horizontal:!0,vertical:!0,className:r},e),ta=Ee(ea)({position:"relative"},({theme:e})=>Vn(e)),na=Ee.pre(({theme:e,padded:r})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:r?e.layoutMargin:0})),aa=Ee.div(({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono})),pt=e=>{let r=[...e.children],t=r[0],a=t.children[0].value,n={...t,children:[],properties:{...t.properties,"data-line-number":a,style:{...t.properties.style,userSelect:"auto"}}};return r[0]=n,{...e,children:r}},ra=({rows:e,stylesheet:r,useInlineStyles:t})=>e.map((a,n)=>qe({node:pt(a),stylesheet:r,useInlineStyles:t,key:`code-segement${n}`})),oa=(e,r)=>r?e?({rows:t,...a})=>e({rows:t.map(n=>pt(n)),...a}):ra:e,dt=({children:e,language:r="jsx",copyable:t=!1,bordered:a=!1,padded:n=!1,format:o=!0,formatter:u=void 0,className:d=void 0,showLineNumbers:l=!1,...f})=>{if(typeof e!="string"||!e.trim())return null;let[h,C]=we.useState("");we.useEffect(()=>{u?u(o,e).then(C):C(e.trim())},[e,o,u]);let[x,b]=we.useState(!1),y=we.useCallback(E=>{E.preventDefault(),Jn(h).then(()=>{b(!0),Xn.setTimeout(()=>b(!1),1500)}).catch(on.error)},[h]),S=oa(f.renderer,l);return G.createElement(Qn,{bordered:a,padded:n,showLineNumbers:l,className:d},G.createElement(ta,null,G.createElement(ze,{padded:n||a,language:r,showLineNumbers:l,showInlineLineNumbers:l,useInlineStyles:!1,PreTag:na,CodeTag:aa,lineNumberContainerStyle:{},...f,renderer:S},h)),t?G.createElement(ht,{actionItems:[{title:x?"Copied":"Copy",onClick:y}]}):null)};dt.registerLanguage=(...e)=>ze.registerLanguage(...e);var ca=dt;export{dt as SyntaxHighlighter,ca as default,Yn as supportedLanguages};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import{r,j as t}from"./iframe-Crg_lbde.js";import{c as J,g as K}from"./classname-Bl5epEs-.js";import{a as ee,B as F}from"./badge-Gh2kTOE3.js";import{r as te}from"./icon-Cc9W858e.js";import{T as ne}from"./typography-CMIMyivt.js";import{u as se}from"./index-hDlmuyu2.js";import{t as e}from"./store-BwIebEt6.js";import{T as ae,S as re,a as H,P as ie,b as oe}from"./blocks-CB7UwFa4.js";import"./preload-helper-PPVm8Dsz.js";import"./colors-_6nFGM3e.js";import"./index-B-Ksafg0.js";import"./index-CdnALcTP.js";const y=K("tab-bar__item"),Q=r.forwardRef(({className:a,id:s,active:i,icon:l,name:g,badge:c,onItemClick:m,...C},I)=>{const u=()=>{if(!l)return null;const p=t.jsx("span",{className:`${y}__icon`,children:te(l)});return c?t.jsxs(ee,{children:[p,t.jsx(F,{...c===!0?{}:c})]}):p},j=()=>{const p=t.jsx(ne,{component:"span",size:"base",className:`${y}__label`,children:g});return!c||l?p:t.jsxs("div",{className:`${y}__label-with-badge`,children:[p,t.jsx(F,{...c===!0?{}:c})]})};return t.jsxs("div",{ref:I,className:J(y,{[`${y}--active`]:i},a),onClick:()=>m?.(),...C,children:[u(),j()]})});Q.__docgenInfo={description:"",methods:[],displayName:"TabBarItem",props:{id:{required:!0,tsType:{name:"string"},description:""},icon:{required:!1,tsType:{name:"union",raw:"IIconProps | ReactNode",elements:[{name:"IOverride",elements:[{name:"Omit",elements:[{name:"intersection",raw:`React.ComponentProps<'svg'> & {
|
|
2
|
+
title?: string
|
|
3
|
+
titleId?: string
|
|
4
|
+
desc?: string
|
|
5
|
+
descId?: string
|
|
6
|
+
}`,elements:[{name:"ReactComponentProps",raw:"React.ComponentProps<'svg'>",elements:[{name:"literal",value:"'svg'"}]},{name:"signature",type:"object",raw:`{
|
|
7
|
+
title?: string
|
|
8
|
+
titleId?: string
|
|
9
|
+
desc?: string
|
|
10
|
+
descId?: string
|
|
11
|
+
}`,signature:{properties:[{key:"title",value:{name:"string",required:!1}},{key:"titleId",value:{name:"string",required:!1}},{key:"desc",value:{name:"string",required:!1}},{key:"descId",value:{name:"string",required:!1}}]}}]},{name:"union",raw:"'name' | 'type' | 'children'",elements:[{name:"literal",value:"'name'"},{name:"literal",value:"'type'"},{name:"literal",value:"'children'"}]}],raw:"Omit<ISVGComponentProps, 'name' | 'type' | 'children'>"},{name:"intersection",raw:`{
|
|
12
|
+
size?: number | string
|
|
13
|
+
color?: IColor
|
|
14
|
+
animation?: IIconAnimation
|
|
15
|
+
} & ({ name: IIconName; type?: 'outline' | 'fill' } | { children: ReactNode })`,elements:[{name:"signature",type:"object",raw:`{
|
|
16
|
+
size?: number | string
|
|
17
|
+
color?: IColor
|
|
18
|
+
animation?: IIconAnimation
|
|
19
|
+
}`,signature:{properties:[{key:"size",value:{name:"union",raw:"number | string",elements:[{name:"number"},{name:"string"}],required:!1}},{key:"color",value:{name:"IColor",required:!1}},{key:"animation",value:{name:"union",raw:"'spin' | 'ping' | 'pulse' | 'bounce'",elements:[{name:"literal",value:"'spin'"},{name:"literal",value:"'ping'"},{name:"literal",value:"'pulse'"},{name:"literal",value:"'bounce'"}],required:!1}}]}},{name:"unknown"}]}],raw:`IOverride<
|
|
20
|
+
Omit<ISVGComponentProps, 'name' | 'type' | 'children'>,
|
|
21
|
+
IBaseIconProps
|
|
22
|
+
>`},{name:"ReactNode"}]},description:""},name:{required:!1,tsType:{name:"ReactNode"},description:""},badge:{required:!1,tsType:{name:"union",raw:"IBadgeProps | boolean",elements:[{name:"IOverride",elements:[{name:"ComponentProps",elements:[{name:"literal",value:"'div'"}],raw:"ComponentProps<'div'>"},{name:"signature",type:"object",raw:`{
|
|
23
|
+
outline?: boolean
|
|
24
|
+
}`,signature:{properties:[{key:"outline",value:{name:"boolean",required:!1}}]}}],raw:`IOverride<
|
|
25
|
+
ComponentProps<'div'>,
|
|
26
|
+
{
|
|
27
|
+
outline?: boolean
|
|
28
|
+
}
|
|
29
|
+
>`},{name:"boolean"}]},description:""},active:{required:!1,tsType:{name:"boolean"},description:""},className:{required:!1,tsType:{name:"string"},description:""},onItemClick:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},style:{required:!1,tsType:{name:"CSSProperties"},description:""}}};const z=K("tab-bar"),d=a=>{const[s,i]=se(a,{trigger:"onItemClick",valuePropName:"activeId",defaultValuePropName:"defaultActiveId"}),{items:l,className:g,tabWidth:c}=a,m=!a.theme||a.theme==="default"?"brand":a.theme,C=r.useRef(l);C.current=l;const I=r.useRef(null),u=r.useRef(new Map),j=r.useRef(!0),[p,P]=r.useState({left:0,width:0}),h=r.useCallback(()=>{if(!s||!I.current){P({left:0,width:0});return}const n=u.current.get(s);if(!n){P({left:0,width:0});return}const o=n.offsetLeft,v=n.offsetWidth;P({left:o,width:v})},[s]),R=r.useCallback((n="smooth")=>{const o=C.current;if(!s||!I.current)return;const v=u.current.get(s);if(!v)return;const B=I.current,L=B.clientWidth,M=B.scrollLeft,D=v.offsetLeft,X=v.offsetWidth,Y=D+X,Z=M,V=M+L,G=D>=Z&&Y<=V,x=o.findIndex(b=>b.id===s),q=x===o.length-1;if(G&&!q&&x>=0){const b=o[x+1]?.id,f=b?u.current.get(b):null;if(f){const W=f.offsetLeft,_=f.offsetWidth,E=W+_*.5;if(E<=V)return;const O=E-L;B.scrollTo({left:Math.max(0,O),behavior:n});return}}if(!G){if(!q&&x>=0){const b=o[x+1]?.id,f=b?u.current.get(b):null;if(f){const W=f.offsetLeft,_=f.offsetWidth,O=W+_*.5-L;B.scrollTo({left:Math.max(0,O),behavior:n});return}}B.scrollTo({left:Math.max(0,D),behavior:n});return}},[s]);r.useLayoutEffect(()=>{h()},[h,c]),r.useEffect(()=>{if(!s)return;const n=setTimeout(()=>{j.current?(R("instant"),j.current=!1):R("smooth")},100);return()=>clearTimeout(n)},[R,s]),r.useEffect(()=>{const n=()=>{h()};return window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[h]),r.useEffect(()=>{const n=I.current;if(!n)return;const o=()=>{h()};return n.addEventListener("scroll",o,{passive:!0}),()=>n.removeEventListener("scroll",o)},[h]);const U=(n,o)=>{o?u.current.set(n,o):u.current.delete(n)};return t.jsxs("div",{ref:I,className:J(z,g,{[`${z}--theme-${m}`]:m}),children:[p.width>0&&t.jsx("div",{className:`${z}__indicator`,style:{left:`${p.left}px`,width:`${p.width}px`}}),l.map((n,o)=>t.jsx(Q,{ref:v=>U(n.id,v),onItemClick:()=>i(n,o),active:n.id===s,style:c?{width:c,minWidth:c}:{},...n},n.id))]})};d.__docgenInfo={description:"",methods:[],displayName:"TabBar"};const ce=()=>{const a=`
|
|
30
|
+
## ${e("common.table.title")}
|
|
31
|
+
| ${e("common.table.name")} | ${e("common.table.type")} | ${e("common.table.required")} | ${e("common.table.description")} |
|
|
32
|
+
| :--- | :--- | :--- | :--- |
|
|
33
|
+
| \`items\` | \`ITabBarItem[]\` | ${e("common.table.yes")} | ${e("components.tabBar.argTypes.itemsDescription")} |
|
|
34
|
+
| \`activeId\` | \`string\` | ${e("common.table.no")} | ${e("components.tabBar.argTypes.activeIdDescription")} |
|
|
35
|
+
| \`defaultActiveId\` | \`string\` | ${e("common.table.no")} | ${e("components.tabBar.argTypes.defaultActiveIdDescription")} |
|
|
36
|
+
| \`theme\` | \`'default' | 'brand' | 'neutral'\` | ${e("common.table.no")} | ${e("components.tabBar.argTypes.themeDescription")} |
|
|
37
|
+
| \`onItemClick\` | \`(item: ITabBarItem, index: number) => void\` | ${e("common.table.no")} | ${e("components.tabBar.argTypes.onItemClickDescription")} |
|
|
38
|
+
| \`className\` | \`string\` | ${e("common.table.no")} | ${e("components.tabBar.argTypes.classNameDescription")} |
|
|
39
|
+
| \`...props\` | \`ComponentPropsWithRef<'div'>\` | ${e("common.table.no")} | ${e("components.tabBar.argTypes.propsDescription")} |
|
|
40
|
+
`;return t.jsxs(t.Fragment,{children:[t.jsx(ae,{}),t.jsx(re,{}),t.jsx(H,{children:e("components.tabBar.description")}),t.jsx(ie,{}),t.jsx(H,{children:a}),t.jsx(oe,{})]})},xe={title:"Components/TabBar",component:d,parameters:{layout:"padded",docs:{page:ce}},tags:["autodocs"],argTypes:{items:{control:!1,description:e("components.tabBar.argTypes.itemsDescription"),table:{type:{summary:"ITabBarItem[]"}}},activeId:{control:"text",description:e("components.tabBar.argTypes.activeIdDescription"),table:{type:{summary:"string"}}},defaultActiveId:{control:"text",description:e("components.tabBar.argTypes.defaultActiveIdDescription"),table:{type:{summary:"string"}}},theme:{control:"select",options:["default","brand","neutral"],description:e("components.tabBar.argTypes.themeDescription"),table:{type:{summary:'"default" | "brand" | "neutral"'},defaultValue:{summary:"default"}}},onItemClick:{action:"item-clicked",description:e("components.tabBar.argTypes.onItemClickDescription"),table:{type:{summary:"(item: ITabBarItem, index: number) => void"}}},className:{description:e("components.tabBar.argTypes.classNameDescription"),table:{type:{summary:"string"}}}}},T=[{id:"1",name:e("components.tabBar.stories.items.home"),icon:{name:"placeholder"}},{id:"2",name:e("components.tabBar.stories.items.search"),icon:{name:"placeholder"}},{id:"3",name:e("components.tabBar.stories.items.profile"),icon:{name:"placeholder"}}],k={render:()=>{const[a,s]=r.useState("1");return t.jsx(d,{items:T,activeId:a,onItemClick:i=>s(i.id)})}},w={name:e("components.tabBar.stories.withIcons.name"),render:()=>{const[a,s]=r.useState("1");return t.jsx(d,{items:[{id:"1",name:e("components.tabBar.stories.items.home"),icon:{name:"placeholder"}},{id:"2",name:e("components.tabBar.stories.items.search"),icon:{name:"placeholder"}},{id:"3",name:e("components.tabBar.stories.items.profile"),icon:{name:"placeholder"}}],activeId:a,onItemClick:i=>s(i.id)})}},S={name:e("components.tabBar.stories.withBadges.name"),render:()=>{const[a,s]=r.useState("1");return t.jsx(d,{items:[{id:"1",name:e("components.tabBar.stories.items.home"),icon:{name:"placeholder"},badge:{children:3}},{id:"2",name:e("components.tabBar.stories.items.messages"),icon:{name:"placeholder"},badge:!0},{id:"3",name:e("components.tabBar.stories.items.profile"),icon:{name:"placeholder"}}],activeId:a,onItemClick:i=>s(i.id)})}},A={name:e("components.tabBar.stories.textOnly.name"),render:()=>{const[a,s]=r.useState("1");return t.jsx(d,{items:[{id:"1",name:e("components.tabBar.stories.items.tab1")},{id:"2",name:e("components.tabBar.stories.items.tab2")},{id:"3",name:e("components.tabBar.stories.items.tab3")}],activeId:a,onItemClick:i=>s(i.id)})}},$={name:e("components.tabBar.stories.themes.name"),render:()=>{const[a,s]=r.useState("1"),[i,l]=r.useState("1"),[g,c]=r.useState("1");return t.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"24px"},children:[t.jsxs("div",{children:[t.jsx("h3",{style:{marginBottom:"12px"},children:e("components.tabBar.stories.themes.defaultTheme")}),t.jsx(d,{items:T,activeId:a,onItemClick:m=>s(m.id)})]}),t.jsxs("div",{children:[t.jsx("h3",{style:{marginBottom:"12px"},children:e("components.tabBar.stories.themes.brandTheme")}),t.jsx(d,{theme:"brand",items:T,activeId:i,onItemClick:m=>l(m.id)})]}),t.jsxs("div",{children:[t.jsx("h3",{style:{marginBottom:"12px"},children:e("components.tabBar.stories.themes.neutralTheme")}),t.jsx(d,{theme:"neutral",items:T,activeId:g,onItemClick:m=>c(m.id)})]})]})}},N={name:e("components.tabBar.stories.interactive.name"),render:()=>{const[a,s]=r.useState("1");return t.jsxs("div",{children:[t.jsx(d,{items:T,activeId:a,onItemClick:i=>s(i.id)}),t.jsx("p",{style:{marginTop:"16px"},children:e("components.tabBar.stories.interactive.activeTab",{id:a})})]})}};k.parameters={...k.parameters,docs:{...k.parameters?.docs,source:{originalSource:`{
|
|
41
|
+
render: () => {
|
|
42
|
+
const [activeId, setActiveId] = useState('1');
|
|
43
|
+
return <TabBar items={items} activeId={activeId} onItemClick={item => setActiveId(item.id)} />;
|
|
44
|
+
}
|
|
45
|
+
}`,...k.parameters?.docs?.source}}};w.parameters={...w.parameters,docs:{...w.parameters?.docs,source:{originalSource:`{
|
|
46
|
+
name: t('components.tabBar.stories.withIcons.name'),
|
|
47
|
+
render: () => {
|
|
48
|
+
const [activeId, setActiveId] = useState('1');
|
|
49
|
+
return <TabBar items={[{
|
|
50
|
+
id: '1',
|
|
51
|
+
name: t('components.tabBar.stories.items.home'),
|
|
52
|
+
icon: {
|
|
53
|
+
name: 'placeholder'
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
id: '2',
|
|
57
|
+
name: t('components.tabBar.stories.items.search'),
|
|
58
|
+
icon: {
|
|
59
|
+
name: 'placeholder'
|
|
60
|
+
}
|
|
61
|
+
}, {
|
|
62
|
+
id: '3',
|
|
63
|
+
name: t('components.tabBar.stories.items.profile'),
|
|
64
|
+
icon: {
|
|
65
|
+
name: 'placeholder'
|
|
66
|
+
}
|
|
67
|
+
}]} activeId={activeId} onItemClick={item => setActiveId(item.id)} />;
|
|
68
|
+
}
|
|
69
|
+
}`,...w.parameters?.docs?.source}}};S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
|
|
70
|
+
name: t('components.tabBar.stories.withBadges.name'),
|
|
71
|
+
render: () => {
|
|
72
|
+
const [activeId, setActiveId] = useState('1');
|
|
73
|
+
return <TabBar items={[{
|
|
74
|
+
id: '1',
|
|
75
|
+
name: t('components.tabBar.stories.items.home'),
|
|
76
|
+
icon: {
|
|
77
|
+
name: 'placeholder'
|
|
78
|
+
},
|
|
79
|
+
badge: {
|
|
80
|
+
children: 3
|
|
81
|
+
}
|
|
82
|
+
}, {
|
|
83
|
+
id: '2',
|
|
84
|
+
name: t('components.tabBar.stories.items.messages'),
|
|
85
|
+
icon: {
|
|
86
|
+
name: 'placeholder'
|
|
87
|
+
},
|
|
88
|
+
badge: true
|
|
89
|
+
}, {
|
|
90
|
+
id: '3',
|
|
91
|
+
name: t('components.tabBar.stories.items.profile'),
|
|
92
|
+
icon: {
|
|
93
|
+
name: 'placeholder'
|
|
94
|
+
}
|
|
95
|
+
}]} activeId={activeId} onItemClick={item => setActiveId(item.id)} />;
|
|
96
|
+
}
|
|
97
|
+
}`,...S.parameters?.docs?.source}}};A.parameters={...A.parameters,docs:{...A.parameters?.docs,source:{originalSource:`{
|
|
98
|
+
name: t('components.tabBar.stories.textOnly.name'),
|
|
99
|
+
render: () => {
|
|
100
|
+
const [activeId, setActiveId] = useState('1');
|
|
101
|
+
return <TabBar items={[{
|
|
102
|
+
id: '1',
|
|
103
|
+
name: t('components.tabBar.stories.items.tab1')
|
|
104
|
+
}, {
|
|
105
|
+
id: '2',
|
|
106
|
+
name: t('components.tabBar.stories.items.tab2')
|
|
107
|
+
}, {
|
|
108
|
+
id: '3',
|
|
109
|
+
name: t('components.tabBar.stories.items.tab3')
|
|
110
|
+
}]} activeId={activeId} onItemClick={item => setActiveId(item.id)} />;
|
|
111
|
+
}
|
|
112
|
+
}`,...A.parameters?.docs?.source}}};$.parameters={...$.parameters,docs:{...$.parameters?.docs,source:{originalSource:`{
|
|
113
|
+
name: t('components.tabBar.stories.themes.name'),
|
|
114
|
+
render: () => {
|
|
115
|
+
const [activeId1, setActiveId1] = useState('1');
|
|
116
|
+
const [activeId2, setActiveId2] = useState('1');
|
|
117
|
+
const [activeId3, setActiveId3] = useState('1');
|
|
118
|
+
return <div style={{
|
|
119
|
+
display: 'flex',
|
|
120
|
+
flexDirection: 'column',
|
|
121
|
+
gap: '24px'
|
|
122
|
+
}}>
|
|
123
|
+
<div>
|
|
124
|
+
<h3 style={{
|
|
125
|
+
marginBottom: '12px'
|
|
126
|
+
}}>
|
|
127
|
+
{t('components.tabBar.stories.themes.defaultTheme')}
|
|
128
|
+
</h3>
|
|
129
|
+
<TabBar items={items} activeId={activeId1} onItemClick={item => setActiveId1(item.id)} />
|
|
130
|
+
</div>
|
|
131
|
+
<div>
|
|
132
|
+
<h3 style={{
|
|
133
|
+
marginBottom: '12px'
|
|
134
|
+
}}>
|
|
135
|
+
{t('components.tabBar.stories.themes.brandTheme')}
|
|
136
|
+
</h3>
|
|
137
|
+
<TabBar theme="brand" items={items} activeId={activeId2} onItemClick={item => setActiveId2(item.id)} />
|
|
138
|
+
</div>
|
|
139
|
+
<div>
|
|
140
|
+
<h3 style={{
|
|
141
|
+
marginBottom: '12px'
|
|
142
|
+
}}>
|
|
143
|
+
{t('components.tabBar.stories.themes.neutralTheme')}
|
|
144
|
+
</h3>
|
|
145
|
+
<TabBar theme="neutral" items={items} activeId={activeId3} onItemClick={item => setActiveId3(item.id)} />
|
|
146
|
+
</div>
|
|
147
|
+
</div>;
|
|
148
|
+
}
|
|
149
|
+
}`,...$.parameters?.docs?.source}}};N.parameters={...N.parameters,docs:{...N.parameters?.docs,source:{originalSource:`{
|
|
150
|
+
name: t('components.tabBar.stories.interactive.name'),
|
|
151
|
+
render: () => {
|
|
152
|
+
const [activeId, setActiveId] = useState('1');
|
|
153
|
+
return <div>
|
|
154
|
+
<TabBar items={items} activeId={activeId} onItemClick={item => setActiveId(item.id)} />
|
|
155
|
+
<p style={{
|
|
156
|
+
marginTop: '16px'
|
|
157
|
+
}}>
|
|
158
|
+
{t('components.tabBar.stories.interactive.activeTab', {
|
|
159
|
+
id: activeId
|
|
160
|
+
})}
|
|
161
|
+
</p>
|
|
162
|
+
</div>;
|
|
163
|
+
}
|
|
164
|
+
}`,...N.parameters?.docs?.source}}};const ye=["Default","WithIcons","WithBadges","TextOnly","Themes","Interactive"];export{k as Default,N as Interactive,A as TextOnly,$ as Themes,S as WithBadges,w as WithIcons,ye as __namedExportsOrder,xe as default};
|