@teambit/react 1.0.1100 → 1.0.1105

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/apps/web/react-app-options.ts +1 -1
  2. package/apps/web/react.application.ts +1 -1
  3. package/apps/web/webpack/mutators.ts +1 -1
  4. package/artifacts/env-template/public/{492.e7aaf1bdaf31771027ba.js → 492.105389e1c432441a7ad0.js} +12 -12
  5. package/artifacts/env-template/public/{595.956d7cfea1e148df79e9.js → 598.81114f26d48bd3ddd836.js} +1 -1
  6. package/artifacts/env-template/public/assets-manifest.json +12 -12
  7. package/artifacts/env-template/public/{compositions.d4162dd90a5b8b2dba03.js → compositions.2cd699e34b52dc025be3.js} +2 -2
  8. package/artifacts/env-template/public/compositions.html +1 -1
  9. package/artifacts/env-template/public/{overview.98c5433f95f02dfccdce.js → overview.df6260353f6246d664c4.js} +2 -2
  10. package/artifacts/env-template/public/overview.html +1 -1
  11. package/artifacts/env-template/public/{preview-root.d2476b880b41e84265b1.js → preview-root.77f8aa97e0e92c9c1083.js} +1 -1
  12. package/dist/apps/web/react-app-options.d.ts +1 -1
  13. package/dist/apps/web/react-app-options.js.map +1 -1
  14. package/dist/apps/web/react.application.d.ts +1 -1
  15. package/dist/apps/web/react.application.js.map +1 -1
  16. package/dist/apps/web/webpack/mutators.d.ts +1 -1
  17. package/dist/apps/web/webpack/mutators.js.map +1 -1
  18. package/dist/{preview-1786542728748.js → preview-1786731350011.js} +2 -2
  19. package/dist/react.env.d.ts +6 -5
  20. package/dist/react.env.js +113 -5
  21. package/dist/react.env.js.map +1 -1
  22. package/dist/react.main.runtime.d.ts +5 -3
  23. package/dist/react.main.runtime.js +6 -6
  24. package/dist/react.main.runtime.js.map +1 -1
  25. package/dist/webpack/webpack.config.env.dev.d.ts +1 -1
  26. package/dist/webpack/webpack.config.env.dev.js.map +1 -1
  27. package/package.json +35 -30
  28. package/webpack/webpack.config.env.dev.ts +1 -1
  29. /package/artifacts/env-template/public/{peers.f44fbbfc05c94b63fef3.js → peers.3a4d736b01904bd18caf.js} +0 -0
  30. /package/{compositions-1786542728748.js → compositions-1786731350011.js} +0 -0
  31. /package/{overview-1786542728748.js → overview-1786731350011.js} +0 -0
@@ -1,4 +1,4 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[595],{36595:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var main_04970a27=__webpack_require__(16277);(0,main_04970a27.run)({"teambit.workspace/workspace":{name:"bit",icon:"https://static.bit.dev/bit-logo.svg",defaultScope:"teambit.bit",defaultDirectory:"components",resolveAspectsFromNodeModules:!0,resolveEnvsFromRoots:!0},"teambit.dependencies/dependency-resolver":{allowScripts:{"@apollo/protobufjs":!0,"@parcel/watcher":!0,bufferutil:!0,"core-js":!1,"core-js-pure":!1,"es5-ext":!0,esbuild:!0,"utf-8-validate":!0},policy:{dependencies:{"@babel/core":"7.28.3","@babel/plugin-proposal-decorators":"7.28.0","@babel/plugin-transform-class-properties":"7.27.1","@babel/plugin-transform-modules-commonjs":"7.27.1","@babel/plugin-transform-object-rest-spread":"7.28.0","@babel/plugin-transform-runtime":"7.28.3","@babel/preset-env":"7.28.3","@babel/preset-react":"7.27.1","@babel/preset-typescript":"7.27.1","@babel/register":"7.28.3","@babel/runtime":"7.28.3","@babel/types":"7.28.2","@bitdev/node.generators.node-starters":"^1.0.0","@bitdev/node.generators.node-templates":"^6.0.1","@bitdev/react.generators.react-starters":"^2.0.0","@bitdev/react.generators.react-templates":"^6.0.3","@bitdev/symphony.generators.symphony-starters":"^1.0.0","@bitdev/symphony.generators.symphony-templates":"^5.0.2","@dagrejs/dagre":"^1.1.2","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"29.3.1","@lydell/node-pty":"^1.0.0","@mdx-js/loader":"^3.1.1","@mdx-js/mdx":"^3.1.1","@mdx-js/react":"^3.1.1","@modelcontextprotocol/sdk":"^1.22.0","@monaco-editor/react":"4.7.0","@parcel/watcher":"^2.5.1","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/cli.default-reporter":"1100.3.15","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config.parse-overrides":"1100.1.2","@pnpm/deps.inspection.list":"1100.1.0","@pnpm/deps.inspection.tree-builder":"1100.1.0","@pnpm/deps.path":"1100.1.0","@pnpm/error":"1100.1.1","@pnpm/installing.modules-yaml":"1100.0.15","@pnpm/lockfile.filtering":"1100.2.2","@pnpm/lockfile.fs":"1100.2.0","@pnpm/lockfile.types":"1100.0.19","@pnpm/logger":"1100.0.0","@pnpm/napi":"12.0.0-rc.1","@pnpm/network.ca-file":"3.0.3","@pnpm/network.fetch":"1100.1.11","@pnpm/node-fetch":"^1.0.0","@pnpm/plugin-trusted-deps":"0.2.2","@pnpm/registry-mock":"3.48.0","@pnpm/semver-diff":"1.1.0","@pnpm/types":"1101.9.0","@react-hook/latest":"1.0.3","@rspack/core":"^1.7.7","@rspack/dev-server":"1.2.1","@rspack/plugin-react-refresh":"1.6.0","@shikijs/engine-javascript":"^3.0.0","@shikijs/langs":"^3.0.0","@svgr/webpack":"8.1.0","@teambit/any-fs":"0.0.5","@teambit/api-reference.explorer.api-reference-explorer":"^0.0.39","@teambit/api-reference.hooks.use-api":"^0.0.57","@teambit/api-reference.hooks.use-api-ref-url":"^0.0.25","@teambit/api-reference.hooks.use-api-renderers":"^0.0.37","@teambit/api-reference.models.api-node-renderer":"^0.0.53","@teambit/api-reference.models.api-reference-model":"^0.0.53","@teambit/api-reference.overview.api-reference-table-of-contents":"^0.0.41","@teambit/api-reference.renderers.api-node-details":"^0.0.84","@teambit/api-reference.renderers.class":"^0.0.86","@teambit/api-reference.renderers.decorator":"^0.0.40","@teambit/api-reference.renderers.enum":"^0.0.84","@teambit/api-reference.renderers.function":"^0.0.88","@teambit/api-reference.renderers.grouped-schema-nodes-summary":"^0.0.82","@teambit/api-reference.renderers.inference-type":"^0.0.66","@teambit/api-reference.renderers.interface":"^0.0.84","@teambit/api-reference.renderers.parameter":"^0.0.69","@teambit/api-reference.renderers.react":"^0.0.69","@teambit/api-reference.renderers.schema-node-member-summary":"^0.0.80","@teambit/api-reference.renderers.schema-nodes-index":"^0.0.72","@teambit/api-reference.renderers.this":"^0.0.71","@teambit/api-reference.renderers.type":"^0.0.82","@teambit/api-reference.renderers.type-array":"^0.0.55","@teambit/api-reference.renderers.type-intersection":"^0.0.55","@teambit/api-reference.renderers.type-literal":"^0.0.75","@teambit/api-reference.renderers.type-ref":"^0.0.101","@teambit/api-reference.renderers.type-union":"^0.0.55","@teambit/api-reference.renderers.unresolved":"^0.0.82","@teambit/api-reference.renderers.variable":"^0.0.82","@teambit/api-reference.sections.api-reference-page":"^0.0.120","@teambit/api-reference.sections.api-reference-section":"^0.0.16","@teambit/api-reference.utils.code-editor-options":"^0.0.16","@teambit/api-reference.utils.copy-schema-node":"^0.0.45","@teambit/api-reference.utils.custom-prism-syntax-highlighter-theme":"^0.0.16","@teambit/api-reference.utils.group-schema-node-by-signature":"^0.0.45","@teambit/api-reference.utils.schema-node-signature-transform":"^0.0.47","@teambit/api-reference.utils.sort-api-nodes":"^0.0.53","@teambit/base-react.navigation.link":"^2.0.33","@teambit/base-react.themes.theme-switcher":"^1.1.2","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"^0.0.12","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.1","@teambit/base-ui.graph.tree.recursive-tree":"1.0.5","@teambit/base-ui.graph.tree.tree-context":"1.0.5","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.2","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.2","@teambit/base-ui.routing.nav-link":"^1.0.4","@teambit/base-ui.routing.routing-provider":"^1.0.4","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.card":"1.0.3","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.1","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.3","@teambit/base-ui.text.paragraph":"1.0.3","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.3","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.1","@teambit/base-ui.utils.time-ago":"1.0.2","@teambit/bit-error":"~0.0.404","@teambit/bit.content.what-is-bit":"1.96.13","@teambit/bvm.config":"^1.0.2","@teambit/bvm.list":"1.1.1","@teambit/bvm.path":"^1.0.0","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.8","@teambit/code.ui.code-tab-tree":"^0.0.620","@teambit/code.ui.hooks.use-code-params":"0.0.497","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"^0.0.503","@teambit/code.ui.utils.get-file-icon":"0.0.496","@teambit/community.starters.hello-world":"^0.1.2","@teambit/compilation.babel-compiler":"^1.1.18","@teambit/compilation.content.compiler-overview":"1.96.22","@teambit/component-id":"^1.2.4","@teambit/component-version":"^1.0.4","@teambit/component.content.component-overview":"^1.96.10","@teambit/component.content.dev-files":"1.96.6","@teambit/component.filters.base-filter":"^0.0.6","@teambit/component.instructions.exporting-components":"0.0.8","@teambit/component.ui.artifacts.artifacts-tree":"^0.0.28","@teambit/component.ui.artifacts.models.component-artifacts-model":"^0.0.12","@teambit/component.ui.artifacts.queries.use-component-artifacts":"^0.0.14","@teambit/component.ui.component-compare.compare-aspects.compare-aspects":"^0.0.155","@teambit/component.ui.component-compare.hooks.use-component-compare":"^0.0.113","@teambit/component.ui.component-compare.hooks.use-component-compare-url":"^0.0.13","@teambit/component.ui.component-compare.layouts.compare-split-layout-preset":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-change-type":"^0.0.7","@teambit/component.ui.component-compare.models.component-compare-hooks":"^0.0.11","@teambit/component.ui.component-compare.models.component-compare-model":"^0.0.112","@teambit/component.ui.component-compare.models.component-compare-state":"^0.0.7","@teambit/component.ui.component-compare.status-resolver":"^0.0.12","@teambit/component.ui.component-compare.utils.group-by-version":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-logs":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-tabs":"0.0.104","@teambit/component.ui.component-deprecated":"^0.0.41","@teambit/component.ui.component-size":"^0.0.77","@teambit/component.ui.component-status-resolver":"^0.0.510","@teambit/component.ui.deprecation-icon":"^0.0.509","@teambit/component.ui.hooks.use-fetch-docs":"^0.0.21","@teambit/component.ui.version-label":"^0.0.509","@teambit/compositions.ui.composition-live-controls":"^0.0.6","@teambit/compositions.ui.compositions-menu-bar":"^0.0.177","@teambit/compositions.ui.compositions-overview":"^0.0.10","@teambit/compositions.ui.hooks.use-composition":"^0.0.177","@teambit/defender.content.formatter-overview":"1.96.11","@teambit/defender.content.linter-overview":"1.96.12","@teambit/defender.content.tester-overview":"1.96.12","@teambit/defender.eslint-linter":"^1.0.56","@teambit/defender.fs.global-bit-temp-dir":"0.0.1","@teambit/defender.jest-tester":"^2.1.3","@teambit/defender.mocha-tester":"^1.1.1","@teambit/defender.prettier-formatter":"^1.0.24","@teambit/defender.tester-task":"^1.0.14","@teambit/defender.ui.test-compare-section":"^0.0.102","@teambit/defender.ui.test-loader":"^0.0.504","@teambit/defender.ui.test-table":"^0.0.512","@teambit/dependencies.modules.packages-excluder":"^1.0.8","@teambit/dependencies.pnpm.dep-path":"1.0.1","@teambit/design.buttons.action-button":"^0.0.4","@teambit/design.content.table":"^0.0.4","@teambit/design.controls.menu":"^0.0.1","@teambit/design.elements.icon":"1.0.24","@teambit/design.inputs.date-picker":"^0.0.3","@teambit/design.inputs.dropdown":"^1.3.3","@teambit/design.inputs.input-text":"^1.1.5","@teambit/design.inputs.selectors.checkbox-item":"1.2.0","@teambit/design.inputs.selectors.menu-item":"^1.1.0","@teambit/design.inputs.selectors.multi-select":"^2.0.17","@teambit/design.inputs.text-area":"^0.0.20","@teambit/design.inputs.toggle-button":"0.0.16","@teambit/design.inputs.toggle-switch":"^0.0.9","@teambit/design.navigation.responsive-navbar":"^0.0.8","@teambit/design.skeletons.base-skeleton":"^0.0.2","@teambit/design.theme.icons-font":"2.0.29","@teambit/design.themes.base-theme":"^0.1.60","@teambit/design.themes.dark-theme":"^1.91.64","@teambit/design.themes.light-theme":"^0.1.61","@teambit/design.themes.theme-toggler":"^0.1.69","@teambit/design.ui.alert-card":"0.0.27","@teambit/design.ui.brand.logo":"1.96.19","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.empty-box":"0.0.364","@teambit/design.ui.heading":"1.0.26","@teambit/design.ui.icon-button":"1.1.29","@teambit/design.ui.input.color-picker":"^0.0.56","@teambit/design.ui.input.option-button":"1.0.13","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.22","@teambit/design.ui.navigation.link":"^1.96.12","@teambit/design.ui.pages.not-found":"0.0.371","@teambit/design.ui.pages.server-error":"0.0.368","@teambit/design.ui.pages.standalone-not-found-page":"0.0.370","@teambit/design.ui.pill-label":"0.0.360","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.367","@teambit/design.ui.skeletons.sidebar-loader":"0.0.5","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.surfaces.menu.link-item":"^1.0.13","@teambit/design.ui.surfaces.menu.section":"^0.0.357","@teambit/design.ui.surfaces.status-message-card":"0.0.18","@teambit/design.ui.tree":"0.0.16","@teambit/docs.content.docs-overview":"1.96.8","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.overview-compare":"^1.0.12","@teambit/docs.ui.overview-compare-section":"^0.0.102","@teambit/documenter.theme.theme-compositions":"4.1.5","@teambit/documenter.theme.theme-context":"4.0.7","@teambit/documenter.ui.code-snippet":"^4.2.7","@teambit/documenter.ui.copied-message":"4.1.8","@teambit/documenter.ui.copy-box":"^4.1.20","@teambit/documenter.ui.heading":"4.1.8","@teambit/documenter.ui.label":"4.0.9","@teambit/documenter.ui.linked-heading":"4.1.10","@teambit/documenter.ui.paragraph":"^4.1.8","@teambit/documenter.ui.property-table":"4.1.11","@teambit/documenter.ui.section":"4.1.7","@teambit/documenter.ui.separator":"4.1.7","@teambit/documenter.ui.table":"4.1.10","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"^4.1.16","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.5","@teambit/evangelist.input.checkbox.label":"^1.1.0","@teambit/evangelist.surfaces.dropdown":"1.0.3","@teambit/explorer.ui.command-bar":"^2.0.19","@teambit/explorer.ui.component-card":"^0.0.52","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/git.modules.git-ignore":"^1.0.2","@teambit/gitconfig":"2.0.10","@teambit/graph.cleargraph":"0.0.11","@teambit/harmony":"0.4.12","@teambit/harmony.envs.core-aspect-env":"2.0.1","@teambit/html.modules.inject-html-element":"0.0.6","@teambit/lane-id":"~0.0.312","@teambit/lanes.ui.icons.lane-icon":"^0.0.9","@teambit/lanes.ui.lane-details":"^0.0.205","@teambit/lanes.ui.menus.lanes-overview-menu":"^0.0.11","@teambit/lanes.ui.menus.use-lanes-menu":"^0.0.299","@teambit/lanes.ui.navigation.lane-switcher":"^0.0.239","@teambit/legacy-bit-id":"^1.1.3","@teambit/mdx.compilers.mdx-multi-compiler":"^2.0.46","@teambit/mdx.generator.mdx-templates":"^1.0.14","@teambit/mdx.modules.mdx-pre-loader":"^0.0.1","@teambit/mdx.modules.mdx-v3-options":"^0.0.3","@teambit/mdx.ui.mdx-layout":"^1.0.14","@teambit/mdx.ui.mdx-scope-context":"^1.1.1","@teambit/node.deps-detectors.detective-es6":"~0.0.6","@teambit/node.utils.esm-loader":"^0.0.7","@teambit/pkg.config.auth":"^0.0.3","@teambit/pkg.content.packages-overview":"1.96.9","@teambit/pkg.entities.registry":"^0.0.4","@teambit/pkg.package-json.validator":"0.0.1","@teambit/preview.cli.dev-server-events-listener":"^0.0.1","@teambit/preview.modules.preview-modules":"^1.0.3","@teambit/preview.react-preview":"^1.1.13","@teambit/react.content.react-overview":"1.96.6","@teambit/react.instructions.react.adding-compositions":"0.0.8","@teambit/react.instructions.react.adding-tests":"0.0.7","@teambit/react.jest.react-jest":"^1.0.38","@teambit/react.rendering.ssr":"^1.0.4","@teambit/react.ui.component-highlighter":"0.2.8","@teambit/react.ui.highlighter.component-metadata.bit-component-meta":"0.0.45","@teambit/react.webpack.react-webpack":"^1.0.56","@teambit/scope.content.scope-overview":"1.96.8","@teambit/scope.ui.empty-scope":"^0.0.510","@teambit/scope.ui.hooks.use-scope":"^0.0.456","@teambit/scope.ui.scope-details":"^0.0.526","@teambit/scope.ui.scope-icon":"0.0.100","@teambit/scopes.scope-descriptor":"^0.0.34","@teambit/scopes.scope-id":"^0.0.9","@teambit/styling.deps-detectors.detective-css":"~0.0.6","@teambit/styling.deps-detectors.detective-less":"~0.0.6","@teambit/styling.deps-detectors.detective-sass":"~0.0.9","@teambit/styling.deps-detectors.detective-scss":"~0.0.9","@teambit/styling.deps-lookups.lookup-styling":"~0.0.4","@teambit/tests-results":"^1.0.5","@teambit/toolbox.fs.readdir-skip-system-files":"~0.0.2","@teambit/toolbox.network.agent":"~0.0.554","@teambit/toolbox.object.sorter":"~0.0.2","@teambit/toolbox.time.time-format":"^0.0.502","@teambit/typescript.deps-detectors.detective-typescript":"~0.0.10","@teambit/typescript.deps-lookups.lookup-typescript":"~0.0.2","@teambit/typescript.typescript-compiler":"^5.0.1","@teambit/ui-foundation.ui.constants.z-indexes":"^0.0.504","@teambit/ui-foundation.ui.corner":"^0.0.520","@teambit/ui-foundation.ui.empty-component-gallery":"^0.0.512","@teambit/ui-foundation.ui.full-loader":"^0.0.500","@teambit/ui-foundation.ui.global-loader":"^0.0.502","@teambit/ui-foundation.ui.hooks.use-is-mobile":"^0.0.200","@teambit/ui-foundation.ui.hooks.use-user-agent":"^0.0.200","@teambit/ui-foundation.ui.is-browser":"^0.0.500","@teambit/ui-foundation.ui.keycap":"^0.0.500","@teambit/ui-foundation.ui.main-dropdown":"^0.0.505","@teambit/ui-foundation.ui.menu":"^0.0.503","@teambit/ui-foundation.ui.menu-widget-icon":"^0.0.502","@teambit/ui-foundation.ui.navigation.react-router-adapter":"^6.1.3","@teambit/ui-foundation.ui.notifications.notification-center":"^0.0.523","@teambit/ui-foundation.ui.notifications.notification-context":"^0.0.501","@teambit/ui-foundation.ui.notifications.store":"^0.0.500","@teambit/ui-foundation.ui.react-router.use-query":"^0.0.505","@teambit/ui-foundation.ui.top-bar":"^0.0.515","@teambit/ui-foundation.ui.tree.drawer":"^1.0.0","@teambit/ui-foundation.ui.tree.file-tree":"0.0.526","@teambit/ui-foundation.ui.tree.folder-tree-node":"0.0.510","@teambit/ui-foundation.ui.tree.tree-node":"0.0.517","@teambit/ui-foundation.ui.use-box.bottom-link":"^0.0.119","@teambit/ui-foundation.ui.use-box.dropdown":"^0.0.151","@teambit/ui-foundation.ui.use-box.menu":"^1.0.16","@teambit/ui-foundation.ui.use-box.scope-menu":"^0.0.147","@teambit/ui-foundation.ui.use-box.tab":"^0.0.122","@teambit/workspace.content.variants":"1.96.7","@teambit/workspace.content.workspace-overview":"1.96.7","@teambit/workspace.root-components":"^1.0.1","@teambit/workspace.ui.empty-workspace":"^0.0.509","@teambit/workspace.ui.load-preview":"^0.0.504","@testing-library/jest-dom":"5.16.5","@testing-library/react":"14.3.1","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/cacache":"19.0.0","@types/chai":"4.2.15","@types/chai-arrays":"1.0.3","@types/chai-fs":"2.0.2","@types/chai-string":"1.4.2","@types/chai-subset":"1.3.5","@types/classnames":"^2.3.4","@types/cli-table":"^0.3.0","@types/cors":"2.8.10","@types/didyoumean":"1.2.0","@types/diff":"^5.2.3","@types/eslint":"8.56.6","@types/eventsource":"^1.1.15","@types/express":"^4.17.21","@types/find-root":"1.1.2","@types/fs-extra":"9.0.7","@types/graceful-fs":"4.1.9","@types/graphlib":"2.1.7","@types/http-proxy":"^1.17.16","@types/http-proxy-agent":"2.0.2","@types/lodash":"4.14.165","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/mdx-js__react":"1.5.5","@types/memoizee":"0.4.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/minimatch":"3.0.4","@types/mocha":"9.1.0","@types/mousetrap":"1.6.5","@types/node":"22.10.5","@types/node-fetch":"2.5.12","@types/normalize-path":"^3.0.0","@types/object-hash":"1.3.4","@types/pluralize":"0.0.29","@types/prettier":"2.7.3","@types/pretty-time":"^1.1.5","@types/react":"^19.0.0","@types/react-dev-utils":"9.0.15","@types/react-dom":"^19.0.0","@types/react-syntax-highlighter":"^15.5.13","@types/react-tabs":"2.3.2","@types/sass":"1.45.0","@types/semver":"7.5.8","@types/ssri":"^7.1.5","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/uuid":"8.3.4","@types/webpack":"5.28.5","@types/yargs":"17.0.0","@typescript-eslint/parser":"8.39.0","@typescript-eslint/typescript-estree":"8.39.0","@viz-js/viz":"^3.4.0","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0",agentkeepalive:"4.1.4","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.26.2","apollo-utilities":"1.3.4",archiver:"5.3.1",archy:"1.0.0","array-difference":"0.0.2",assert:"^2.1.0","async-mutex":"0.3.1","async-retry":"^1.3.3","babel-loader":"9.2.1","babel-plugin-transform-typescript-metadata":"0.3.2","body-parser":"1.20.3",buffer:"6.0.3",cacache:"20.0.3",camelcase:"6.2.0",chai:"4.3.0","chai-arrays":"1.1.0","chai-fs":"1.0.0","chai-string":"1.5.0","chai-subset":"^1.6.0",chalk:"4.1.2",checksum:"0.1.1",chokidar:"3.6.0",classnames:"^2.5.1","cli-highlight":"2.1.9","cli-spinners":"1.3.1","cli-table":"0.3.6",comlink:"4.3.0","command-exists":"1.2.9","comment-json":"4.2.5","compression-webpack-plugin":"11.0.0","copy-to-clipboard":"3.3.1","core-js":"3.9.0",cors:"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","cross-fetch":"3.1.5","css-minimizer-webpack-plugin":"^6.0.0",debug:"4.3.4","detect-indent":"5.0.0","detect-newline":"3.1.0","detective-amd":"3.0.1","detective-stylus":"1.0.0",didyoumean:"1.2.1",diff:"^7.0.0",doctrine:"2.1.0",dreidels:"0.6.1","enhanced-resolve":"4.5.0",enquirer:"2.4.1",eslint:"8.56.0","eslint-config-prettier":"8.5.0","eslint-import-resolver-node":"0.3.4","eslint-plugin-import":"2.29.1","eslint-plugin-mocha":"6.3.0","eslint-plugin-promise":"7.2.1","eslint-plugin-react":"7.33.2",eventemitter2:"6.4.4",events:"^3.3.0",eventsource:"^2.0.2",execa:"2.1.0","expose-loader":"3.1.0",express:"^4.21.2","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1",filenamify:"4.2.0","find-root":"1.1.0",firstline:"2.0.2",flatted:"3.1.0","fs-extra":"10.0.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0",glob:"13.0.0",globby:"11.0.1","graceful-fs":"4.2.10",graphlib:"2.1.8","graphql-disable-introspection":"^1.2.0","graphql-request":"6.1.0","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","group-array":"1.0.0",history:"5.3.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","http-proxy-agent":"4.0.1","http-proxy-middleware":"^3.0.3","https-proxy-agent":"5.0.0","humanize-duration":"3.23.1","humanize-string":"2.1.0",ignore:"3.3.10",ini:"2.0.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","is-relative-path":"2.0.0",isbinaryfile:"4.0.6",jest:"29.3.1","jest-message-util":"29.3.1","jest-watcher":"29.7.0","js-yaml":"npm:@zkochan/js-yaml@0.0.7","json-formatter-js":"2.3.4","junit-report-builder":"3.0.1",less:"^4.1.1","lint-staged":"^12.5.0",lodash:"4.17.21","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.partition":"4.6.0","lru-cache":"10.4.3",memoizee:"0.4.15",micromatch:"^4.0.5",mime:"2.5.2","mini-css-extract-plugin":"2.2.2",minimatch:"3.0.5",mocha:"11.1.0","mocha-junit-reporter":"2.2.1","mocha-multi-reporters":"1.5.1","module-definition":"3.3.1",moment:"2.29.4",mousetrap:"1.6.5",multimatch:"5.0.0","nerf-dart":"1.0.0","node-fetch":"2.6.7","node-gyp":"11.5.0","node-source-walk":"4.2.0","normalize-path":"3.0.0","null-loader":"^4.0.1","object-diff":"0.0.4","object-hash":"2.1.1",open:"8.4.2","open-editor":"3.0.0",ora:"5.4.1","p-filter":"2.1.0","p-limit":"3.1.0","p-locate":"5.0.0","p-map":"4.0.0","p-map-series":"2.1.0","p-queue":"6.6.2","pad-right":"0.2.2","parse-gitignore":"1.0.1","parse-package-name":"0.1.0","path-browserify":"^1.0.1","path-to-regexp":"6.3.0",penpal:"6.2.2",pino:"8.7.0","pino-pretty":"9.1.1",pluralize:"8.0.0",postcss:"8.4.45","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2",prettier:"3.3.3","prettier-eslint":"16.3.0","pretty-bytes":"5.6.0","pretty-time":"1.1.0",process:"0.11.10","prop-types":"^15.8.1",punycode:"^2.3.1","query-string":"7.0.0","react-animate-height":"3.2.3","react-dev-utils":"12.0.1","react-docgen":"5.3.1","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-syntax-highlighter":"^15.6.1","react-tabs":"3.2.0","react-test-renderer":"19.2.7",reactflow:"^11.11.3","read-pkg-up":"7.0.1","regenerator-runtime":"0.13.7","reset-css":"5.0.1",resolve:"1.20.0","resolve-dependency-path":"2.0.0","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0",rewire:"7.0.0",rimraf:"3.0.2","rspack-manifest-plugin":"^5.2.1",sass:"1.63.6",semver:"7.7.1","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","serialize-error":"5.0.0",shiki:"^3.0.0","simple-git":"^3.28.0",sinon:"17.0.1","socks-proxy-agent":"5.0.0",ssri:"10.0.1","string-format":"0.5.0",string_decoder:"^1.3.0","stringify-package":"1.0.1","strip-ansi":"6.0.0","stylus-lookup":"3.0.2","subscriptions-transport-ws":"0.9.18","symlink-dir":"^9.0.0",table:"6.7.3",tar:"7.4.3","tar-fs":"2.1.3","tar-stream":"2.2.0",tempy:"1.0.1","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ts-graphviz":"^2.1.6","type-coverage":"2.15.1",typescript:"5.9.2","ua-parser-js":"0.7.40","uid-number":"0.0.6",uniqid:"5.3.0",url:"^0.11.3","url-join":"4.0.1","user-home":"^3.0.0",util:"^0.12.5",uuid:"8.3.2","validate-npm-package-name":"6.0.0","version-selector-type":"3.0.0",vinyl:"2.2.1","vinyl-file":"3.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","vue-component-meta":"^2.2.10",webpack:"5.97.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.2","webpack-manifest-plugin":"5.0.0","webpack-merge":"5.8.0","workbox-webpack-plugin":"7.1.0","write-file-atomic":"5.0.0",ws:"7.5.10",yaml:"1.10.2",yargs:"17.0.1",yesno:"0.4.0",yn:"2.0.0",zod:"^3.24.4"},peerDependencies:{"@apollo/client":"^3.12.0","@teambit/base-react.navigation.link":"2.0.33","@testing-library/react":"^14.3.1","core-js":"^3.10.0",graphql:"15.8.0",mz:"2.7.0",react:"19.2.7","react-dom":"19.2.7","react-router-dom":"^6.22.3"}},linkCoreAspects:!1,packageManager:"teambit.dependencies/pnpm",rootComponents:!0,overrides:{"react@19":"19.2.7","react-dom@19":"19.2.7","react-router-dom@6":"^6.30.1","subscriptions-transport-ws@0.9":"^0.9.19","@teambit/base-react.navigation.link@2":"2.0.33","lodash@4":"4.17.21","trim@0":"0.0.3","@teambit/harmony":"0.4.12","@types/fs-capacitor":"2.0.0","@types/node":"22.10.5","signal-exit@4":"^4.0.2","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","cross-spawn@7":"^7.0.5","react-animate-height@2":"^3.2.3","react@17":"19.1.0","react-dom@17":"19.1.0","minio@7.0":"7.1.3","uri-js":"npm:uri-js-replace",encoding:"-","@pnpm/util.lex-comparator":"3.0.2","@pnpm/config.nerf-dart":"1.0.1"},nodeVersion:"22.22.0",engineStrict:!0,packageImportMethod:"copy",packageManagerArgs:[],devFilePatterns:["**/*.spec.ts"],strictPeerDependencies:!0,autoInstallPeers:!0,savePrefix:"",extraArgs:[],peerDependencyRules:{allowAny:["react","react-dom","@testing-library/react","@teambit/legacy","typescript"],ignoreMissing:[]},capsuleSelfReference:!0},"teambit.preview/preview":{bundlingStrategy:"component",maxChunkSize:5},"teambit.generator/generator":{aspects:["teambit.harmony/aspect"],envs:["teambit.harmony/envs/core-aspect-env"]},"teambit.component/issues":{ignoreIssues:["CircularDependencies"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{packageManagerPublishArgs:["--access public"],packageJson:{name:"@teambit/{name}"}}},"{*/**}":{"teambit.dependencies/dependency-resolver":{policy:{dependencies:{},devDependencies:{"@types/mocha":"9.1.0"},peerDependencies:{}}}},"scopes/harmony/bit":{"teambit.component/issues":{ignoreIssues:["ImportNonMainFiles"]},"teambit.pkg/pkg":{packageManagerPublishArgs:["--access public"],packageJson:{name:"@teambit/{name}",bvm:{node:"22.22.0"},engines:{node:">=18.12.0"},repository:{type:"git",url:"https://github.com/teambit/bit"}}},"teambit.dependencies/dependency-resolver":{policy:{dependencies:{"@teambit/base-react.navigation.link":"2.0.33","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.3","@apollo/client":"3.12.11","@teambit/legacy":"2.1.0","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0",graphql:"15.8.0",browserslist:"4.23.3","reflect-metadata":"0.1.13","monaco-editor":"0.52.2",mz:"2.7.0",react:"19.2.7","react-dom":"19.2.7","core-js":"3.13.0",postcss:"8.4.18",buffer:"6.0.3",process:"0.11.10","react-router-dom":"6.3.0",typescript:"5.9.2","@parcel/css":"^1.8.3",lightningcss:"^1.20.0","@swc/css":"^0.0.20"},devDependencies:{},peerDependencies:{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-",browserslist:"-",graphql:"-",react:"-","react-dom":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/dependencies/pnpm":{"teambit.dependencies/dependency-resolver":{policy:{dependencies:{"node-gyp":"11.5.0"}}}},"scopes/harmony/node":{"teambit.component/issues":{ignoreIssues:["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{policy:{}}},"components/legacy":{"teambit.pkg/pkg":{}},"components/bit":{"teambit.pkg/pkg":{}},"components/mcp":{"teambit.pkg/pkg":{}},"components/typescript-compiler":{"teambit.pkg/pkg":{}},"components/scope/remotes":{"teambit.pkg/pkg":{}},"scopes/component/sources":{"teambit.pkg/pkg":{}},"scopes/component/snap-distance":{"teambit.pkg/pkg":{}},"scopes/scope/network":{"teambit.pkg/pkg":{}},"scopes/scope/remote-actions":{"teambit.pkg/pkg":{}},"components/semantics/doc-parser":{"teambit.pkg/pkg":{}}},"teambit.git/ci":{commitMessageScript:"node scripts/generate-merge-commit-message.js"},"teambit.harmony/bit":"teambit.workspace/workspace"})},16277:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(()=>{var __webpack_modules__={5870(__unused_rspack_module,exports1){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.affix=function(prefix="",str,suffix=""){return str?`${prefix}${str}${suffix}`:""}},1812(__unused_rspack_module,exports1,__nested_webpack_require_267__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.affix=void 0;var affix_1=__nested_webpack_require_267__(5870);Object.defineProperty(exports1,"affix",{enumerable:!0,get:function(){return affix_1.affix}})},5950(__unused_rspack_module,exports1){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||""),this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports1.BitError=BitError},4490(__unused_rspack_module,exports1,__nested_webpack_require_851__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.BitError=void 0;var bit_error_1=__nested_webpack_require_851__(5950);Object.defineProperty(exports1,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},8635(__unused_rspack_module,exports1,__nested_webpack_require_1149__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.ComponentIdList=void 0;let lodash_1=__nested_webpack_require_1149__(2935),component_version_1=__nested_webpack_require_1149__(1936),component_id_1=__nested_webpack_require_1149__(6578);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return!!this.search(componentId)}hasWithoutVersion(componentId){return!!this.searchWithoutVersion(componentId)}hasWithoutScopeAndVersion(componentId){return!!this.searchWithoutScopeAndVersion(componentId)}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{let idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{let scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){let duplications={};return this.forEach(id=>{let sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){let componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){let uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{let found=this.filterWithoutVersion(componentId);if(found.length>1)throw Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[598],{37598:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var main_04970a27=__webpack_require__(16277);(0,main_04970a27.run)({"teambit.workspace/workspace":{name:"bit",icon:"https://static.bit.dev/bit-logo.svg",defaultScope:"teambit.bit",defaultDirectory:"components",resolveAspectsFromNodeModules:!0,resolveEnvsFromRoots:!0},"teambit.dependencies/dependency-resolver":{allowScripts:{"@apollo/protobufjs":!0,"@parcel/watcher":!0,bufferutil:!0,"core-js":!1,"core-js-pure":!1,"es5-ext":!0,esbuild:!0,"utf-8-validate":!0},policy:{dependencies:{"@babel/core":"7.28.3","@babel/plugin-proposal-decorators":"7.28.0","@babel/plugin-transform-class-properties":"7.27.1","@babel/plugin-transform-modules-commonjs":"7.27.1","@babel/plugin-transform-object-rest-spread":"7.28.0","@babel/plugin-transform-runtime":"7.28.3","@babel/preset-env":"7.28.3","@babel/preset-react":"7.27.1","@babel/preset-typescript":"7.27.1","@babel/register":"7.28.3","@babel/runtime":"7.28.3","@babel/types":"7.28.2","@bitdev/node.generators.node-starters":"^1.0.0","@bitdev/node.generators.node-templates":"^6.0.1","@bitdev/react.generators.react-starters":"^2.0.0","@bitdev/react.generators.react-templates":"^6.0.3","@bitdev/symphony.generators.symphony-starters":"^1.0.0","@bitdev/symphony.generators.symphony-templates":"^5.0.2","@dagrejs/dagre":"^1.1.2","@graphql-modules/core":"0.7.17","@graphql-tools/schema":"^10.0.0","@jest/test-result":"29.3.1","@lydell/node-pty":"^1.0.0","@mdx-js/loader":"^3.1.1","@mdx-js/mdx":"^3.1.1","@mdx-js/react":"^3.1.1","@modelcontextprotocol/sdk":"^1.22.0","@monaco-editor/react":"4.7.0","@parcel/watcher":"^2.5.1","@pmmmwh/react-refresh-webpack-plugin":"0.5.4","@pnpm/cli.default-reporter":"1100.3.15","@pnpm/colorize-semver-diff":"1.0.1","@pnpm/config.parse-overrides":"1100.1.2","@pnpm/deps.inspection.list":"1100.1.0","@pnpm/deps.inspection.tree-builder":"1100.1.0","@pnpm/deps.path":"1100.1.0","@pnpm/error":"1100.1.1","@pnpm/installing.modules-yaml":"1100.0.15","@pnpm/lockfile.filtering":"1100.2.2","@pnpm/lockfile.fs":"1100.2.0","@pnpm/lockfile.types":"1100.0.19","@pnpm/logger":"1100.0.0","@pnpm/napi":"12.0.0-rc.5","@pnpm/network.ca-file":"3.0.3","@pnpm/network.fetch":"1100.1.11","@pnpm/node-fetch":"^1.0.0","@pnpm/plugin-trusted-deps":"0.2.2","@pnpm/registry-mock":"3.48.0","@pnpm/semver-diff":"1.1.0","@pnpm/types":"1101.9.0","@react-hook/latest":"1.0.3","@rspack/core":"^1.7.7","@rspack/dev-server":"1.2.1","@rspack/plugin-react-refresh":"1.6.0","@shikijs/engine-javascript":"^3.0.0","@shikijs/langs":"^3.0.0","@svgr/webpack":"8.1.0","@teambit/any-fs":"0.0.5","@teambit/api-reference.explorer.api-reference-explorer":"^0.0.39","@teambit/api-reference.hooks.use-api":"^0.0.57","@teambit/api-reference.hooks.use-api-ref-url":"^0.0.25","@teambit/api-reference.hooks.use-api-renderers":"^0.0.37","@teambit/api-reference.models.api-node-renderer":"^0.0.53","@teambit/api-reference.models.api-reference-model":"^0.0.53","@teambit/api-reference.overview.api-reference-table-of-contents":"^0.0.41","@teambit/api-reference.renderers.api-node-details":"^0.0.84","@teambit/api-reference.renderers.class":"^0.0.86","@teambit/api-reference.renderers.decorator":"^0.0.40","@teambit/api-reference.renderers.enum":"^0.0.84","@teambit/api-reference.renderers.function":"^0.0.88","@teambit/api-reference.renderers.grouped-schema-nodes-summary":"^0.0.82","@teambit/api-reference.renderers.inference-type":"^0.0.66","@teambit/api-reference.renderers.interface":"^0.0.84","@teambit/api-reference.renderers.parameter":"^0.0.69","@teambit/api-reference.renderers.react":"^0.0.69","@teambit/api-reference.renderers.schema-node-member-summary":"^0.0.80","@teambit/api-reference.renderers.schema-nodes-index":"^0.0.72","@teambit/api-reference.renderers.this":"^0.0.71","@teambit/api-reference.renderers.type":"^0.0.82","@teambit/api-reference.renderers.type-array":"^0.0.55","@teambit/api-reference.renderers.type-intersection":"^0.0.55","@teambit/api-reference.renderers.type-literal":"^0.0.75","@teambit/api-reference.renderers.type-ref":"^0.0.101","@teambit/api-reference.renderers.type-union":"^0.0.55","@teambit/api-reference.renderers.unresolved":"^0.0.82","@teambit/api-reference.renderers.variable":"^0.0.82","@teambit/api-reference.sections.api-reference-page":"^0.0.120","@teambit/api-reference.sections.api-reference-section":"^0.0.16","@teambit/api-reference.utils.code-editor-options":"^0.0.16","@teambit/api-reference.utils.copy-schema-node":"^0.0.45","@teambit/api-reference.utils.custom-prism-syntax-highlighter-theme":"^0.0.16","@teambit/api-reference.utils.group-schema-node-by-signature":"^0.0.45","@teambit/api-reference.utils.schema-node-signature-transform":"^0.0.47","@teambit/api-reference.utils.sort-api-nodes":"^0.0.53","@teambit/base-react.navigation.link":"^2.0.33","@teambit/base-react.themes.theme-switcher":"^1.1.2","@teambit/base-ui.constants.storage":"1.0.0","@teambit/base-ui.graph.tree.collapsable-tree-node":"^0.0.12","@teambit/base-ui.graph.tree.indent":"1.0.0","@teambit/base-ui.graph.tree.inflate-paths":"1.0.1","@teambit/base-ui.graph.tree.recursive-tree":"1.0.5","@teambit/base-ui.graph.tree.tree-context":"1.0.5","@teambit/base-ui.layout.breakpoints":"1.0.0","@teambit/base-ui.layout.page-frame":"1.0.2","@teambit/base-ui.loaders.loader-ribbon":"1.0.0","@teambit/base-ui.loaders.skeleton":"1.0.2","@teambit/base-ui.routing.nav-link":"^1.0.4","@teambit/base-ui.routing.routing-provider":"^1.0.4","@teambit/base-ui.styles.flex-center":"1.0.0","@teambit/base-ui.surfaces.card":"1.0.3","@teambit/base-ui.surfaces.split-pane.hover-splitter":"1.0.1","@teambit/base-ui.surfaces.split-pane.split-pane":"1.0.0","@teambit/base-ui.text.muted-text":"1.0.3","@teambit/base-ui.text.paragraph":"1.0.3","@teambit/base-ui.theme.colors":"1.0.0","@teambit/base-ui.theme.dark-theme":"1.0.2","@teambit/base-ui.theme.fonts.book":"1.0.2","@teambit/base-ui.theme.fonts.roboto":"1.0.0","@teambit/base-ui.theme.theme-provider":"1.0.3","@teambit/base-ui.utils.composer":"1.0.0","@teambit/base-ui.utils.string.affix":"1.0.1","@teambit/base-ui.utils.time-ago":"1.0.2","@teambit/bit-error":"~0.0.404","@teambit/bit.content.what-is-bit":"1.96.13","@teambit/bvm.config":"^1.0.2","@teambit/bvm.list":"1.1.1","@teambit/bvm.path":"^1.0.0","@teambit/capsule":"0.0.12","@teambit/code.ui.code-compare-section":"0.0.8","@teambit/code.ui.code-tab-tree":"^0.0.620","@teambit/code.ui.hooks.use-code-params":"0.0.497","@teambit/code.ui.object-formatter":"0.0.1","@teambit/code.ui.queries.get-component-code":"^0.0.503","@teambit/code.ui.utils.get-file-icon":"0.0.496","@teambit/community.starters.hello-world":"^0.1.2","@teambit/compilation.babel-compiler":"^1.1.18","@teambit/compilation.content.compiler-overview":"1.96.22","@teambit/component-id":"^1.2.4","@teambit/component-version":"^1.0.4","@teambit/component.content.component-overview":"^1.96.10","@teambit/component.content.dev-files":"1.96.6","@teambit/component.filters.base-filter":"^0.0.6","@teambit/component.instructions.exporting-components":"0.0.8","@teambit/component.ui.artifacts.artifacts-tree":"^0.0.28","@teambit/component.ui.artifacts.models.component-artifacts-model":"^0.0.12","@teambit/component.ui.artifacts.queries.use-component-artifacts":"^0.0.14","@teambit/component.ui.component-compare.compare-aspects.compare-aspects":"^0.0.155","@teambit/component.ui.component-compare.hooks.use-component-compare":"^0.0.113","@teambit/component.ui.component-compare.hooks.use-component-compare-url":"^0.0.13","@teambit/component.ui.component-compare.layouts.compare-split-layout-preset":"^0.0.10","@teambit/component.ui.component-compare.models.component-compare-change-type":"^0.0.7","@teambit/component.ui.component-compare.models.component-compare-hooks":"^0.0.11","@teambit/component.ui.component-compare.models.component-compare-model":"^0.0.112","@teambit/component.ui.component-compare.models.component-compare-state":"^0.0.7","@teambit/component.ui.component-compare.status-resolver":"^0.0.12","@teambit/component.ui.component-compare.utils.group-by-version":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-logs":"^0.0.8","@teambit/component.ui.component-compare.utils.sort-tabs":"0.0.104","@teambit/component.ui.component-deprecated":"^0.0.41","@teambit/component.ui.component-size":"^0.0.77","@teambit/component.ui.component-status-resolver":"^0.0.510","@teambit/component.ui.deprecation-icon":"^0.0.509","@teambit/component.ui.hooks.use-fetch-docs":"^0.0.21","@teambit/component.ui.version-label":"^0.0.509","@teambit/compositions.ui.composition-live-controls":"^0.0.6","@teambit/compositions.ui.compositions-menu-bar":"^0.0.177","@teambit/compositions.ui.compositions-overview":"^0.0.10","@teambit/compositions.ui.hooks.use-composition":"^0.0.177","@teambit/defender.content.formatter-overview":"1.96.11","@teambit/defender.content.linter-overview":"1.96.12","@teambit/defender.content.tester-overview":"1.96.12","@teambit/defender.eslint-linter":"^1.0.56","@teambit/defender.fs.global-bit-temp-dir":"0.0.1","@teambit/defender.jest-tester":"^2.1.3","@teambit/defender.mocha-tester":"^1.1.1","@teambit/defender.prettier-formatter":"^1.0.24","@teambit/defender.tester-task":"^1.0.14","@teambit/defender.ui.test-compare-section":"^0.0.102","@teambit/defender.ui.test-loader":"^0.0.504","@teambit/defender.ui.test-table":"^0.0.512","@teambit/dependencies.modules.packages-excluder":"^1.0.8","@teambit/dependencies.pnpm.dep-path":"1.0.1","@teambit/design.buttons.action-button":"^0.0.4","@teambit/design.content.table":"^0.0.4","@teambit/design.controls.menu":"^0.0.1","@teambit/design.elements.icon":"1.0.24","@teambit/design.inputs.date-picker":"^0.0.3","@teambit/design.inputs.dropdown":"^1.3.3","@teambit/design.inputs.input-text":"^1.1.5","@teambit/design.inputs.selectors.checkbox-item":"1.2.0","@teambit/design.inputs.selectors.menu-item":"^1.1.0","@teambit/design.inputs.selectors.multi-select":"^2.0.17","@teambit/design.inputs.text-area":"^0.0.20","@teambit/design.inputs.toggle-button":"0.0.16","@teambit/design.inputs.toggle-switch":"^0.0.9","@teambit/design.navigation.responsive-navbar":"^0.0.8","@teambit/design.skeletons.base-skeleton":"^0.0.2","@teambit/design.theme.icons-font":"2.0.29","@teambit/design.themes.base-theme":"^0.1.60","@teambit/design.themes.dark-theme":"^1.91.64","@teambit/design.themes.light-theme":"^0.1.61","@teambit/design.themes.theme-toggler":"^0.1.69","@teambit/design.ui.alert-card":"0.0.27","@teambit/design.ui.brand.logo":"1.96.19","@teambit/design.ui.contributors":"0.0.514","@teambit/design.ui.empty-box":"0.0.364","@teambit/design.ui.heading":"1.0.26","@teambit/design.ui.icon-button":"1.1.29","@teambit/design.ui.input.color-picker":"^0.0.56","@teambit/design.ui.input.option-button":"1.0.13","@teambit/design.ui.input.radio":"1.1.13","@teambit/design.ui.input.toggle":"1.0.22","@teambit/design.ui.navigation.link":"^1.96.12","@teambit/design.ui.pages.not-found":"0.0.371","@teambit/design.ui.pages.server-error":"0.0.368","@teambit/design.ui.pages.standalone-not-found-page":"0.0.370","@teambit/design.ui.pill-label":"0.0.360","@teambit/design.ui.round-loader":"0.0.355","@teambit/design.ui.separator":"0.0.367","@teambit/design.ui.skeletons.sidebar-loader":"0.0.5","@teambit/design.ui.styles.colors-by-letter":"0.0.41","@teambit/design.ui.styles.ellipsis":"0.0.357","@teambit/design.ui.surfaces.menu.link-item":"^1.0.13","@teambit/design.ui.surfaces.menu.section":"^0.0.357","@teambit/design.ui.surfaces.status-message-card":"0.0.18","@teambit/design.ui.tree":"0.0.16","@teambit/docs.content.docs-overview":"1.96.8","@teambit/docs.entities.doc":"0.0.12","@teambit/docs.ui.overview-compare":"^1.0.12","@teambit/docs.ui.overview-compare-section":"^0.0.102","@teambit/documenter.theme.theme-compositions":"4.1.5","@teambit/documenter.theme.theme-context":"4.0.7","@teambit/documenter.ui.code-snippet":"^4.2.7","@teambit/documenter.ui.copied-message":"4.1.8","@teambit/documenter.ui.copy-box":"^4.1.20","@teambit/documenter.ui.heading":"4.1.8","@teambit/documenter.ui.label":"4.0.9","@teambit/documenter.ui.linked-heading":"4.1.10","@teambit/documenter.ui.paragraph":"^4.1.8","@teambit/documenter.ui.property-table":"4.1.11","@teambit/documenter.ui.section":"4.1.7","@teambit/documenter.ui.separator":"4.1.7","@teambit/documenter.ui.table":"4.1.10","@teambit/documenter.ui.table-heading-row":"4.0.11","@teambit/documenter.ui.table-row":"^4.1.16","@teambit/evangelist.elements.button":"1.0.6","@teambit/evangelist.elements.icon":"1.0.5","@teambit/evangelist.input.checkbox.label":"^1.1.0","@teambit/evangelist.surfaces.dropdown":"1.0.3","@teambit/explorer.ui.command-bar":"^2.0.19","@teambit/explorer.ui.component-card":"^0.0.52","@teambit/explorer.ui.gallery.component-grid":"0.0.496","@teambit/git.modules.git-ignore":"^1.0.2","@teambit/gitconfig":"2.0.10","@teambit/graph.cleargraph":"0.0.11","@teambit/harmony":"0.4.12","@teambit/harmony.envs.core-aspect-env":"2.0.1","@teambit/html.modules.inject-html-element":"0.0.6","@teambit/lane-id":"~0.0.312","@teambit/lanes.ui.icons.lane-icon":"^0.0.9","@teambit/lanes.ui.lane-details":"^0.0.205","@teambit/lanes.ui.menus.lanes-overview-menu":"^0.0.11","@teambit/lanes.ui.menus.use-lanes-menu":"^0.0.299","@teambit/lanes.ui.navigation.lane-switcher":"^0.0.239","@teambit/legacy-bit-id":"^1.1.3","@teambit/mdx.compilers.mdx-multi-compiler":"^2.0.46","@teambit/mdx.generator.mdx-templates":"^1.0.14","@teambit/mdx.modules.mdx-pre-loader":"^0.0.1","@teambit/mdx.modules.mdx-v3-options":"^0.0.3","@teambit/mdx.ui.mdx-layout":"^1.0.14","@teambit/mdx.ui.mdx-scope-context":"^1.1.1","@teambit/node.deps-detectors.detective-es6":"~0.0.6","@teambit/node.utils.esm-loader":"^0.0.7","@teambit/pkg.config.auth":"^0.0.3","@teambit/pkg.content.packages-overview":"1.96.9","@teambit/pkg.entities.registry":"^0.0.4","@teambit/pkg.package-json.validator":"0.0.1","@teambit/preview.cli.dev-server-events-listener":"^0.0.1","@teambit/preview.modules.preview-modules":"^1.0.3","@teambit/preview.react-preview":"^1.1.13","@teambit/react.content.react-overview":"1.96.6","@teambit/react.instructions.react.adding-compositions":"0.0.8","@teambit/react.instructions.react.adding-tests":"0.0.7","@teambit/react.jest.react-jest":"^1.0.38","@teambit/react.rendering.ssr":"^1.0.4","@teambit/react.ui.component-highlighter":"0.2.8","@teambit/react.ui.highlighter.component-metadata.bit-component-meta":"0.0.45","@teambit/react.webpack.react-webpack":"^1.0.56","@teambit/scope.content.scope-overview":"1.96.8","@teambit/scope.ui.empty-scope":"^0.0.510","@teambit/scope.ui.hooks.use-scope":"^0.0.456","@teambit/scope.ui.scope-details":"^0.0.526","@teambit/scope.ui.scope-icon":"0.0.100","@teambit/scopes.scope-descriptor":"^0.0.34","@teambit/scopes.scope-id":"^0.0.9","@teambit/styling.deps-detectors.detective-css":"~0.0.6","@teambit/styling.deps-detectors.detective-less":"~0.0.6","@teambit/styling.deps-detectors.detective-sass":"~0.0.9","@teambit/styling.deps-detectors.detective-scss":"~0.0.9","@teambit/styling.deps-lookups.lookup-styling":"~0.0.4","@teambit/tests-results":"^1.0.5","@teambit/toolbox.fs.readdir-skip-system-files":"~0.0.2","@teambit/toolbox.network.agent":"~0.0.554","@teambit/toolbox.object.sorter":"~0.0.2","@teambit/toolbox.time.time-format":"^0.0.502","@teambit/typescript.deps-detectors.detective-typescript":"~0.0.10","@teambit/typescript.deps-lookups.lookup-typescript":"~0.0.2","@teambit/typescript.typescript-compiler":"^5.0.1","@teambit/ui-foundation.ui.constants.z-indexes":"^0.0.504","@teambit/ui-foundation.ui.corner":"^0.0.520","@teambit/ui-foundation.ui.empty-component-gallery":"^0.0.512","@teambit/ui-foundation.ui.full-loader":"^0.0.500","@teambit/ui-foundation.ui.global-loader":"^0.0.502","@teambit/ui-foundation.ui.hooks.use-is-mobile":"^0.0.200","@teambit/ui-foundation.ui.hooks.use-user-agent":"^0.0.200","@teambit/ui-foundation.ui.is-browser":"^0.0.500","@teambit/ui-foundation.ui.keycap":"^0.0.500","@teambit/ui-foundation.ui.main-dropdown":"^0.0.505","@teambit/ui-foundation.ui.menu":"^0.0.503","@teambit/ui-foundation.ui.menu-widget-icon":"^0.0.502","@teambit/ui-foundation.ui.navigation.react-router-adapter":"^6.1.3","@teambit/ui-foundation.ui.notifications.notification-center":"^0.0.523","@teambit/ui-foundation.ui.notifications.notification-context":"^0.0.501","@teambit/ui-foundation.ui.notifications.store":"^0.0.500","@teambit/ui-foundation.ui.react-router.use-query":"^0.0.505","@teambit/ui-foundation.ui.top-bar":"^0.0.515","@teambit/ui-foundation.ui.tree.drawer":"^1.0.0","@teambit/ui-foundation.ui.tree.file-tree":"0.0.526","@teambit/ui-foundation.ui.tree.folder-tree-node":"0.0.510","@teambit/ui-foundation.ui.tree.tree-node":"0.0.517","@teambit/ui-foundation.ui.use-box.bottom-link":"^0.0.119","@teambit/ui-foundation.ui.use-box.dropdown":"^0.0.151","@teambit/ui-foundation.ui.use-box.menu":"^1.0.16","@teambit/ui-foundation.ui.use-box.scope-menu":"^0.0.147","@teambit/ui-foundation.ui.use-box.tab":"^0.0.122","@teambit/webpack.modules.exclude-node-modules-js":"0.0.1","@teambit/webpack.modules.resolve-peer":"0.1.0","@teambit/webpack.plugins.webpack-bit-reporter-plugin":"0.1.0","@teambit/webpack.transformers.generate-add-aliases-from-peers":"0.1.0","@teambit/webpack.transformers.generate-externals":"0.1.0","@teambit/webpack.webpack-bundler":"1.1.0","@teambit/webpack.webpack-dev-server":"1.1.0","@teambit/workspace.content.variants":"1.96.7","@teambit/workspace.content.workspace-overview":"1.96.7","@teambit/workspace.root-components":"^1.0.1","@teambit/workspace.ui.empty-workspace":"^0.0.509","@teambit/workspace.ui.load-preview":"^0.0.504","@testing-library/jest-dom":"5.16.5","@testing-library/react":"14.3.1","@tippyjs/react":"4.2.0","@types/archiver":"5.3.1","@types/cacache":"19.0.0","@types/chai":"4.2.15","@types/chai-arrays":"1.0.3","@types/chai-fs":"2.0.2","@types/chai-string":"1.4.2","@types/chai-subset":"1.3.5","@types/classnames":"^2.3.4","@types/cli-table":"^0.3.0","@types/cors":"2.8.10","@types/didyoumean":"1.2.0","@types/diff":"^5.2.3","@types/eslint":"8.56.6","@types/eventsource":"^1.1.15","@types/express":"^4.17.21","@types/find-root":"1.1.2","@types/fs-extra":"9.0.7","@types/graceful-fs":"4.1.9","@types/graphlib":"2.1.7","@types/http-proxy":"^1.17.16","@types/http-proxy-agent":"2.0.2","@types/lodash":"4.14.165","@types/lodash.compact":"3.0.6","@types/lodash.flatten":"4.4.6","@types/lodash.head":"4.0.6","@types/mdx-js__react":"1.5.5","@types/memoizee":"0.4.5","@types/mime":"2.0.3","@types/mini-css-extract-plugin":"2.2.0","@types/minimatch":"3.0.4","@types/mocha":"9.1.0","@types/mousetrap":"1.6.5","@types/node":"22.10.5","@types/node-fetch":"2.5.12","@types/normalize-path":"^3.0.0","@types/object-hash":"1.3.4","@types/pluralize":"0.0.29","@types/prettier":"2.7.3","@types/pretty-time":"^1.1.5","@types/react":"^19.0.0","@types/react-dev-utils":"9.0.15","@types/react-dom":"^19.0.0","@types/react-syntax-highlighter":"^15.5.13","@types/react-tabs":"2.3.2","@types/sass":"1.45.0","@types/semver":"7.5.8","@types/ssri":"^7.1.5","@types/testing-library__jest-dom":"5.9.5","@types/ua-parser-js":"0.7.35","@types/url-join":"4.0.0","@types/uuid":"8.3.4","@types/webpack":"5.28.5","@types/yargs":"17.0.0","@typescript-eslint/parser":"8.39.0","@typescript-eslint/typescript-estree":"8.39.0","@viz-js/viz":"^3.4.0","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/fslib":"2.10.3","@yarnpkg/parsers":"2.5.1","@yarnpkg/plugin-npm":"2.7.4","@yarnpkg/plugin-pack":"3.2.0",agentkeepalive:"4.1.4","apollo-link-context":"1.0.20","apollo-link-http":"1.5.17","apollo-link-ws":"1.0.20","apollo-server":"2.26.2","apollo-utilities":"1.3.4",archiver:"5.3.1",archy:"1.0.0","array-difference":"0.0.2",assert:"^2.1.0","async-mutex":"0.3.1","async-retry":"^1.3.3","babel-loader":"9.2.1","babel-plugin-transform-typescript-metadata":"0.3.2","body-parser":"1.20.3",buffer:"6.0.3",cacache:"20.0.3",camelcase:"6.2.0",chai:"4.3.0","chai-arrays":"1.1.0","chai-fs":"1.0.0","chai-string":"1.5.0","chai-subset":"^1.6.0",chalk:"4.1.2",checksum:"0.1.1",chokidar:"3.6.0",classnames:"^2.5.1","cli-highlight":"2.1.9","cli-spinners":"1.3.1","cli-table":"0.3.6",comlink:"4.3.0","command-exists":"1.2.9","comment-json":"4.2.5","compression-webpack-plugin":"11.0.0","copy-to-clipboard":"3.3.1","core-js":"3.9.0",cors:"2.8.5","credentials-by-uri":"2.0.0","cross-env":"7.0.3","cross-fetch":"3.1.5","css-minimizer-webpack-plugin":"^6.0.0",debug:"4.3.4","detect-indent":"5.0.0","detect-newline":"3.1.0","detective-amd":"3.0.1","detective-stylus":"1.0.0",didyoumean:"1.2.1",diff:"^7.0.0",doctrine:"2.1.0",dreidels:"0.6.1","enhanced-resolve":"4.5.0",enquirer:"2.4.1",eslint:"8.56.0","eslint-config-prettier":"8.5.0","eslint-import-resolver-node":"0.3.4","eslint-plugin-import":"2.29.1","eslint-plugin-mocha":"6.3.0","eslint-plugin-promise":"7.2.1","eslint-plugin-react":"7.33.2",eventemitter2:"6.4.4",events:"^3.3.0",eventsource:"^2.0.2",execa:"2.1.0","expose-loader":"3.1.0",express:"^4.21.2","express-graphql":"0.12.0","express-history-api-fallback":"2.2.1",filenamify:"4.2.0","find-root":"1.1.0",firstline:"2.0.2",flatted:"3.1.0","fs-extra":"10.0.0","fuse.js":"6.6.2","get-tsconfig":"4.2.0",glob:"13.0.0",globby:"11.0.1","graceful-fs":"4.2.10",graphlib:"2.1.8","graphql-disable-introspection":"^1.2.0","graphql-request":"6.1.0","graphql-subscriptions":"1.2.0","graphql-tag":"2.12.1","graphql-type-json":"0.3.2","group-array":"1.0.0",history:"5.3.0","html-webpack-plugin":"5.3.2","http-proxy":"1.18.1","http-proxy-agent":"4.0.1","http-proxy-middleware":"^3.0.3","https-proxy-agent":"5.0.0","humanize-duration":"3.23.1","humanize-string":"2.1.0",ignore:"3.3.10",ini:"2.0.0","inject-body-webpack-plugin":"1.3.0","insert-string-after":"1.0.0","insert-string-before":"1.0.0","is-binary-path":"2.1.0","is-builtin-module":"3.1.0","is-primitive":"3.0.1","is-relative-path":"2.0.0",isbinaryfile:"4.0.6",jest:"29.3.1","jest-message-util":"29.3.1","jest-watcher":"29.7.0","js-yaml":"npm:@zkochan/js-yaml@0.0.7","json-formatter-js":"2.3.4","junit-report-builder":"3.0.1",less:"^4.1.1","lint-staged":"^12.5.0",lodash:"4.17.21","lodash.compact":"3.0.1","lodash.head":"4.0.1","lodash.partition":"4.6.0","lru-cache":"10.4.3",memoizee:"0.4.15",micromatch:"^4.0.5",mime:"2.5.2","mini-css-extract-plugin":"2.2.2",minimatch:"3.0.5",mocha:"11.1.0","mocha-junit-reporter":"2.2.1","mocha-multi-reporters":"1.5.1","module-definition":"3.3.1",moment:"2.29.4",mousetrap:"1.6.5",multimatch:"5.0.0","nerf-dart":"1.0.0","node-fetch":"2.6.7","node-gyp":"11.5.0","node-source-walk":"4.2.0","normalize-path":"3.0.0","null-loader":"^4.0.1","object-diff":"0.0.4","object-hash":"2.1.1",open:"8.4.2","open-editor":"3.0.0",ora:"5.4.1","p-filter":"2.1.0","p-limit":"3.1.0","p-locate":"5.0.0","p-map":"4.0.0","p-map-series":"2.1.0","p-queue":"6.6.2","pad-right":"0.2.2","parse-gitignore":"1.0.1","parse-package-name":"0.1.0","path-browserify":"^1.0.1","path-to-regexp":"6.3.0",penpal:"6.2.2",pino:"8.7.0","pino-pretty":"9.1.1",pluralize:"8.0.0",postcss:"8.4.45","postcss-flexbugs-fixes":"5.0.2","postcss-loader":"7.0.1","postcss-preset-env":"7.8.2",prettier:"3.3.3","prettier-eslint":"16.3.0","pretty-bytes":"5.6.0","pretty-time":"1.1.0",process:"0.11.10","prop-types":"^15.8.1",punycode:"^2.3.1","query-string":"7.0.0","react-animate-height":"3.2.3","react-dev-utils":"12.0.1","react-docgen":"5.3.1","react-error-boundary":"^3.0.0","react-error-overlay":"6.0.9","react-syntax-highlighter":"^15.6.1","react-tabs":"3.2.0","react-test-renderer":"19.2.7",reactflow:"^11.11.3","read-pkg-up":"7.0.1","regenerator-runtime":"0.13.7","reset-css":"5.0.1",resolve:"1.20.0","resolve-dependency-path":"2.0.0","resolve-from":"5.0.0","resolve-link-target":"^1.0.1","resolve-url-loader":"5.0.0",rewire:"7.0.0",rimraf:"3.0.2","rspack-manifest-plugin":"^5.2.1",sass:"1.63.6",semver:"7.7.1","semver-intersect":"1.4.0","semver-range-intersect":"0.3.1","serialize-error":"5.0.0",shiki:"^3.0.0","simple-git":"^3.28.0",sinon:"17.0.1","socks-proxy-agent":"5.0.0",ssri:"10.0.1","string-format":"0.5.0",string_decoder:"^1.3.0","stringify-package":"1.0.1","strip-ansi":"6.0.0","stylus-lookup":"3.0.2","subscriptions-transport-ws":"0.9.18","symlink-dir":"^9.0.0",table:"6.7.3",tar:"7.4.3","tar-fs":"2.1.3","tar-stream":"2.2.0",tempy:"1.0.1","terser-webpack-plugin":"5.2.0","tippy.js":"6.2.7","ts-graphviz":"^2.1.6","type-coverage":"2.15.1",typescript:"5.9.2","ua-parser-js":"0.7.40",uniqid:"5.3.0",url:"^0.11.3","url-join":"4.0.1","user-home":"^3.0.0",util:"^0.12.5",uuid:"8.3.2","validate-npm-package-name":"6.0.0","version-selector-type":"3.0.0",vinyl:"2.2.1","vinyl-file":"3.0.0","vscode-jsonrpc":"6.0.0","vscode-languageserver-types":"3.16.0","vue-component-meta":"^2.2.10",webpack:"5.97.1","webpack-assets-manifest":"5.1.0","webpack-dev-server":"4.15.2","webpack-manifest-plugin":"5.0.0","webpack-merge":"5.8.0","workbox-webpack-plugin":"7.1.0","write-file-atomic":"5.0.0",ws:"7.5.10",yaml:"1.10.2",yargs:"17.0.1",yesno:"0.4.0",yn:"2.0.0",zod:"^3.24.4"},peerDependencies:{"@apollo/client":"^3.12.0","@teambit/base-react.navigation.link":"2.0.33","@testing-library/react":"^14.3.1","core-js":"^3.10.0",graphql:"15.8.0",mz:"2.7.0",react:"19.2.7","react-dom":"19.2.7","react-router-dom":"^6.22.3"}},linkCoreAspects:!1,packageManager:"teambit.dependencies/pnpm",rootComponents:!0,overrides:{"react@19":"19.2.7","react-dom@19":"19.2.7","react-router-dom@6":"^6.30.1","subscriptions-transport-ws@0.9":"^0.9.19","@teambit/base-react.navigation.link@2":"2.0.33","lodash@4":"4.17.21","trim@0":"0.0.3","@teambit/harmony":"0.4.12","@types/fs-capacitor":"2.0.0","@types/node":"22.10.5","signal-exit@4":"^4.0.2","@types/react":"^19.0.0","@types/react-dom":"^19.0.0","cross-spawn@7":"^7.0.5","react-animate-height@2":"^3.2.3","react@17":"19.1.0","react-dom@17":"19.1.0","minio@7.0":"7.1.3","uri-js":"npm:uri-js-replace",encoding:"-","@pnpm/util.lex-comparator":"3.0.2","@pnpm/config.nerf-dart":"1.0.1"},nodeVersion:"22.22.0",engineStrict:!0,packageImportMethod:"copy",packageManagerArgs:[],devFilePatterns:["**/*.spec.ts"],strictPeerDependencies:!0,autoInstallPeers:!0,savePrefix:"",extraArgs:[],peerDependencyRules:{allowAny:["react","react-dom","@testing-library/react","@teambit/legacy","typescript"],ignoreMissing:[]},capsuleSelfReference:!0},"teambit.preview/preview":{bundlingStrategy:"component",maxChunkSize:5},"teambit.generator/generator":{aspects:["teambit.harmony/aspect"],envs:["teambit.harmony/envs/core-aspect-env"]},"teambit.component/issues":{ignoreIssues:["CircularDependencies"]},"teambit.workspace/variants":{"*,!{*/**}":{"teambit.pkg/pkg":{packageManagerPublishArgs:["--access public"],packageJson:{name:"@teambit/{name}"}}},"{*/**}":{"teambit.dependencies/dependency-resolver":{policy:{dependencies:{},devDependencies:{"@types/mocha":"9.1.0"},peerDependencies:{}}}},"scopes/harmony/bit":{"teambit.component/issues":{ignoreIssues:["ImportNonMainFiles"]},"teambit.pkg/pkg":{packageManagerPublishArgs:["--access public"],packageJson:{name:"@teambit/{name}",bvm:{node:"22.22.0"},engines:{node:">=18.12.0"},repository:{type:"git",url:"https://github.com/teambit/bit"}}},"teambit.dependencies/dependency-resolver":{policy:{dependencies:{"@teambit/base-react.navigation.link":"2.0.33","@teambit/ui-foundation.ui.navigation.react-router-adapter":"6.1.3","@apollo/client":"3.12.11","@teambit/legacy":"2.1.0","@yarnpkg/cli":"3.6.1","@yarnpkg/core":"3.5.2","@yarnpkg/plugin-pack":"3.2.0","@types/react":"^19.0.0","@types/react-dom":"^19.0.0",graphql:"15.8.0",browserslist:"4.23.3","reflect-metadata":"0.1.13","monaco-editor":"0.52.2",mz:"2.7.0",react:"19.2.7","react-dom":"19.2.7","core-js":"3.13.0",postcss:"8.4.18",buffer:"6.0.3",process:"0.11.10","react-router-dom":"6.3.0",typescript:"5.9.2","@parcel/css":"^1.8.3",lightningcss:"^1.20.0","@swc/css":"^0.0.20"},devDependencies:{},peerDependencies:{"@teambit/base-react.navigation.link":"-","@teambit/legacy":"-","@teambit/ui-foundation.ui.navigation.react-router-adapter":"-",browserslist:"-",graphql:"-",react:"-","react-dom":"-","react-router-dom":"-","core-js":"-"}}}},"scopes/dependencies/pnpm":{"teambit.dependencies/dependency-resolver":{policy:{dependencies:{"node-gyp":"11.5.0"}}}},"scopes/harmony/node":{"teambit.component/issues":{ignoreIssues:["ImportNonMainFiles"]},"teambit.dependencies/dependency-resolver":{policy:{}}},"components/legacy":{"teambit.pkg/pkg":{}},"components/bit":{"teambit.pkg/pkg":{}},"components/mcp":{"teambit.pkg/pkg":{}},"components/typescript-compiler":{"teambit.pkg/pkg":{}},"components/scope/remotes":{"teambit.pkg/pkg":{}},"scopes/component/sources":{"teambit.pkg/pkg":{}},"scopes/component/snap-distance":{"teambit.pkg/pkg":{}},"scopes/scope/network":{"teambit.pkg/pkg":{}},"scopes/scope/remote-actions":{"teambit.pkg/pkg":{}},"components/semantics/doc-parser":{"teambit.pkg/pkg":{}}},"teambit.git/ci":{commitMessageScript:"node scripts/generate-merge-commit-message.js"},"teambit.harmony/bit":"teambit.workspace/workspace"})},16277:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_RESULT__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(()=>{var __webpack_modules__={5870(__unused_rspack_module,exports1){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.affix=function(prefix="",str,suffix=""){return str?`${prefix}${str}${suffix}`:""}},1812(__unused_rspack_module,exports1,__nested_webpack_require_267__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.affix=void 0;var affix_1=__nested_webpack_require_267__(5870);Object.defineProperty(exports1,"affix",{enumerable:!0,get:function(){return affix_1.affix}})},5950(__unused_rspack_module,exports1){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.BitError=void 0;class BitError extends Error{constructor(msg){super(msg||""),this.isUserError=!0,this.name=this.constructor.name}report(){return this.message}}exports1.BitError=BitError},4490(__unused_rspack_module,exports1,__nested_webpack_require_851__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.BitError=void 0;var bit_error_1=__nested_webpack_require_851__(5950);Object.defineProperty(exports1,"BitError",{enumerable:!0,get:function(){return bit_error_1.BitError}})},8635(__unused_rspack_module,exports1,__nested_webpack_require_1149__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.ComponentIdList=void 0;let lodash_1=__nested_webpack_require_1149__(2935),component_version_1=__nested_webpack_require_1149__(1936),component_id_1=__nested_webpack_require_1149__(6578);class ComponentIdList extends Array{toStringArray(){return this.map(componentId=>componentId.toString())}has(componentId){return!!this.search(componentId)}hasWithoutVersion(componentId){return!!this.searchWithoutVersion(componentId)}hasWithoutScopeAndVersion(componentId){return!!this.searchWithoutScopeAndVersion(componentId)}search(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id._legacy.hasSameVersion(componentId._legacy))}searchWithoutVersion(componentId){return this.find(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}searchWithoutScopeAndVersion(componentId){return this.find(id=>id.fullName===componentId.fullName)}searchStrWithoutVersion(idStr){return this.find(id=>id.toStringWithoutVersion()===idStr)}filterExact(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope&&id.hasSameVersion(componentId))}filterWithoutVersion(componentId){return this.filter(id=>id.fullName===componentId.fullName&&id.scope===componentId.scope)}removeIfExist(componentId){return ComponentIdList.fromArray(this.filter(id=>!id.isEqual(componentId)))}toObject(){return this.reduce((acc,componentId)=>(acc[componentId.toString()]=componentId,acc),{})}toString(){return this.map(id=>id.toString()).join(", ")}toGroupByIdWithoutVersion(){return this.reduce((acc,current)=>{let idStrWithoutVer=current.toStringWithoutVersion();return acc[idStrWithoutVer]?acc[idStrWithoutVer].push(current):acc[idStrWithoutVer]=new ComponentIdList(current),acc},{})}toGroupByScopeName(){return this.reduce((acc,current)=>{let scopeName=current.scope;return acc[scopeName]?acc[scopeName].push(current):acc[scopeName]=new ComponentIdList(current),acc},{})}findDuplicationsIgnoreVersion(){let duplications={};return this.forEach(id=>{let sameIds=this.filterWithoutVersion(id);sameIds.length>1&&(duplications[id.toStringWithoutVersion()]=sameIds)}),duplications}add(componentIds){componentIds.forEach(componentId=>{this.search(componentId)||this.push(componentId)})}static fromArray(ids){let componentIds=new ComponentIdList;return ids.forEach(id=>componentIds.push(id)),componentIds}static uniqFromArray(componentIds){let uniq=(0,lodash_1.uniqBy)(componentIds,id=>id.toString());return ComponentIdList.fromArray(uniq)}static fromStringArray(idsStr=[]){return ComponentIdList.fromArray(idsStr.map(id=>component_id_1.ComponentID.fromString(id)))}throwForDuplicationIgnoreVersion(){this.forEach(componentId=>{let found=this.filterWithoutVersion(componentId);if(found.length>1)throw Error(`componentIds has "${componentId.toStringWithoutVersion()}" duplicated as following:
2
2
  ${found.map(id=>id.toString()).join(`
3
3
  `)}`)})}toVersionLatest(){return ComponentIdList.uniqFromArray(this.map(id=>id.changeVersion(component_version_1.LATEST_VERSION)))}clone(){return ComponentIdList.fromArray(this.map(id=>id.clone()))}}exports1.ComponentIdList=ComponentIdList},6578(__unused_rspack_module,exports1,__nested_webpack_require_4372__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.ComponentID=void 0;let legacy_bit_id_1=__nested_webpack_require_4372__(5575),exceptions_1=__nested_webpack_require_4372__(1904);class ComponentID{constructor(_legacy,_scope){if(this._legacy=_legacy,this._scope=_scope,!_legacy.name)throw Error(`ComponentID expects to get an object with "name" prop. got ${_legacy}`);if(!_scope&&!_legacy.scope)throw new exceptions_1.MissingScope(_legacy)}hasVersion(){return this._legacy.hasVersion()}get version(){return this._legacy.version}get namespace(){return this._legacy.name.split("/").slice(0,-1).join("/")}get fullName(){return this._legacy.name}get name(){let arr=this._legacy.name.split("/");return arr[arr.length-1]}get scope(){let scope=this._legacy.scope;if(scope)return scope;if(!this._scope)throw Error("scope cannot be undefined");return this._scope}changeScope(scopeName){let legacyId=this._legacy.changeScope(scopeName);return ComponentID.fromLegacy(legacyId,this.scope)}changeDefaultScope(scopeName){return ComponentID.fromLegacy(this._legacy,scopeName)}changeVersion(version){let legacyId=this._legacy.changeVersion(version);return ComponentID.fromLegacy(legacyId,this.scope)}isEqual(id,opts){return ComponentID.isEqual(this,id,opts)}isEqualWithoutVersion(id){return this.isEqual(id,{ignoreVersion:!0})}isLocal(scopeName){return this._legacy.isLocal(scopeName)}hasScope(){return this._legacy.hasScope()}serialize(){return this.toObject()}static deserialize(id){return ComponentID.fromObject(id)}static isValidVersion(version){return legacy_bit_id_1.BitId.isValidVersion(version)}static getVersionFromString(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[1]}static getStringWithoutVersion(id){return id.split(legacy_bit_id_1.VERSION_DELIMITER)[0]}getVersionPreReleaseData(){return this._legacy.getVersionPreReleaseData()}toStringWithoutVersion(){let id=this._legacy;return this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope)),id.toStringWithoutVersion()}hasSameVersion(id){return this._legacy.hasSameVersion(id._legacy)}toString(opts={}){let id=this._legacy;this._scope&&!this._legacy.scope&&(id=id.changeScope(this._scope));let idStr=id.toString(!1,opts.ignoreVersion);return opts.fsCompatible?idStr.replace(/\//g,"_").replace(/\./g,"_").replace(/-/g,"_"):idStr}toObject(){let object=this._legacy.serialize();return object.scope||(object.scope=this.scope),object}clone(){return ComponentID.fromLegacy(this._legacy.clone(),this._scope)}static tryFromString(idStr,scope){try{return ComponentID.fromString(idStr,scope)}catch{return}}static isValidCompIdStr(idStr){return!!ComponentID.tryFromString(idStr)}static fromString(idStr,scope){let legacyId=legacy_bit_id_1.BitId.parse(idStr,!0);if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(idStr);return new ComponentID(legacyId,scope)}static fromLegacyString(idStr,scope){return new ComponentID(legacy_bit_id_1.BitId.parse(idStr,!1),scope)}static fromObject(object,scope){if(object instanceof ComponentID)throw Error(`ComponentID.fromObject expect to get an object, got an instance of ComponentID: ${object.toString()}`);return ComponentID.fromLegacy(new legacy_bit_id_1.BitId(object),scope)}static isValidObject(o){return typeof o=="object"&&typeof o.name=="string"&&typeof o.scope=="string"}static isEqual(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.toString({ignoreVersion:opts.ignoreVersion})===b.toString({ignoreVersion:opts.ignoreVersion});return opts.ignoreVersion?result:result&&a.hasSameVersion(b)}static isEqualObj(a,b,opts={}){if(!a&&!b)return!0;if(!a||!b)return!1;let result=a.scope===b.scope&&a.name===b.name;return opts.ignoreVersion||(result=result&&a.version===b.version),result}static fromLegacy(legacyId,scope){if(!scope&&!legacyId.scope)throw new exceptions_1.MissingScope(legacyId);return new ComponentID(legacyId,scope)}static sortIds(ids){return ids.sort((a,b)=>a.toString().localeCompare(b.toString()))}}exports1.ComponentID=ComponentID},1904(__unused_rspack_module,exports1,__nested_webpack_require_8423__){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.MissingScope=void 0;let missing_scope_1=__nested_webpack_require_8423__(6805);Object.defineProperty(exports1,"MissingScope",{enumerable:!0,get:function(){return missing_scope_1.MissingScope}})},6805(__unused_rspack_module,exports1){"use strict";Object.defineProperty(exports1,"__esModule",{value:!0}),exports1.MissingScope=void 0;class MissingScope extends Error{constructor(src){super(`scope is missing from a component-id "${src.toString()}".
4
4
  in case you just upgraded bit version to >= 1.2.10 and you're getting this error, please run "bit cc" and then "bit status" to fix it.
@@ -1,23 +1,23 @@
1
1
  {
2
- "492.e7aaf1bdaf31771027ba.js": "492.e7aaf1bdaf31771027ba.js",
3
- "595.956d7cfea1e148df79e9.js": "595.956d7cfea1e148df79e9.js",
2
+ "492.105389e1c432441a7ad0.js": "492.105389e1c432441a7ad0.js",
3
+ "598.81114f26d48bd3ddd836.js": "598.81114f26d48bd3ddd836.js",
4
4
  "66.53672cbe4f8af13f93c9.js": "66.53672cbe4f8af13f93c9.js",
5
5
  "compositions.css": "static/css/compositions.b7ba1a09.css",
6
6
  "compositions.html": "compositions.html",
7
- "compositions.js": "compositions.d4162dd90a5b8b2dba03.js",
7
+ "compositions.js": "compositions.2cd699e34b52dc025be3.js",
8
8
  "entrypoints": {
9
9
  "peers": {
10
10
  "assets": {
11
11
  "js": [
12
- "peers.f44fbbfc05c94b63fef3.js"
12
+ "peers.3a4d736b01904bd18caf.js"
13
13
  ]
14
14
  }
15
15
  },
16
16
  "preview-root": {
17
17
  "assets": {
18
18
  "js": [
19
- "595.956d7cfea1e148df79e9.js",
20
- "preview-root.d2476b880b41e84265b1.js"
19
+ "598.81114f26d48bd3ddd836.js",
20
+ "preview-root.77f8aa97e0e92c9c1083.js"
21
21
  ],
22
22
  "css": [
23
23
  "static/css/preview-root.21652b71.css"
@@ -28,7 +28,7 @@
28
28
  "assets": {
29
29
  "js": [
30
30
  "66.53672cbe4f8af13f93c9.js",
31
- "compositions.d4162dd90a5b8b2dba03.js"
31
+ "compositions.2cd699e34b52dc025be3.js"
32
32
  ],
33
33
  "css": [
34
34
  "static/css/compositions.b7ba1a09.css"
@@ -38,8 +38,8 @@
38
38
  "overview": {
39
39
  "assets": {
40
40
  "js": [
41
- "492.e7aaf1bdaf31771027ba.js",
42
- "overview.98c5433f95f02dfccdce.js"
41
+ "492.105389e1c432441a7ad0.js",
42
+ "overview.df6260353f6246d664c4.js"
43
43
  ],
44
44
  "css": [
45
45
  "static/css/492.88bc1ecf.css"
@@ -48,9 +48,9 @@
48
48
  }
49
49
  },
50
50
  "overview.html": "overview.html",
51
- "overview.js": "overview.98c5433f95f02dfccdce.js",
52
- "peers.js": "peers.f44fbbfc05c94b63fef3.js",
51
+ "overview.js": "overview.df6260353f6246d664c4.js",
52
+ "peers.js": "peers.3a4d736b01904bd18caf.js",
53
53
  "preview-root.css": "static/css/preview-root.21652b71.css",
54
- "preview-root.js": "preview-root.d2476b880b41e84265b1.js",
54
+ "preview-root.js": "preview-root.77f8aa97e0e92c9c1083.js",
55
55
  "static/css/492.88bc1ecf.css": "static/css/492.88bc1ecf.css"
56
56
  }
@@ -1,2 +1,2 @@
1
- "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[866],{86330:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{var _home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(81284),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32185);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("compositions",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[66,595,518],()=>__webpack_exec__(86330));var __webpack_exports__=__webpack_require__.O()}]);
1
+ "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[866],{46233:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{var _home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(81284),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32185);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("compositions",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_68b147035e4e910b00e4b8a4a3ce04a0de2e2e59_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[66,598,518],()=>__webpack_exec__(46233));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1,2 +1,2 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Preview</title><script>// Allow to use react dev-tools inside the examples
2
- try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.f44fbbfc05c94b63fef3.js"></script><script defer="defer" src="595.956d7cfea1e148df79e9.js"></script><script defer="defer" src="preview-root.d2476b880b41e84265b1.js"></script><script defer="defer" src="66.53672cbe4f8af13f93c9.js"></script><script defer="defer" src="compositions.d4162dd90a5b8b2dba03.js"></script><link href="static/css/preview-root.21652b71.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
2
+ try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.3a4d736b01904bd18caf.js"></script><script defer="defer" src="598.81114f26d48bd3ddd836.js"></script><script defer="defer" src="preview-root.77f8aa97e0e92c9c1083.js"></script><script defer="defer" src="66.53672cbe4f8af13f93c9.js"></script><script defer="defer" src="compositions.2cd699e34b52dc025be3.js"></script><link href="static/css/preview-root.21652b71.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -1,2 +1,2 @@
1
- (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[542],{18666:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(81284),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(95492);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("overview",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()},94891:()=>{},91044:()=>{},38954:()=>{},71220:()=>{},38854:()=>{}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[492,595,518,66,866],()=>__webpack_exec__(18666));var __webpack_exports__=__webpack_require__.O()}]);
1
+ (self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[542],{58853:(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var _home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(81284),_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(95492);function _regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r2,n2,o2,i2){var c2=n2&&n2.prototype instanceof Generator?n2:Generator,u2=Object.create(c2.prototype);return _regeneratorDefine2(u2,"_invoke",function(r3,n3,o3){var i3,c3,u3,f2=0,p=o3||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function(t2,r4){return i3=t2,c3=0,u3=e,G.n=r4,a}};function d(r4,n4){for(c3=r4,u3=n4,t=0;!y&&f2&&!o4&&t<p.length;t++){var o4,i4=p[t],d2=G.p,l=i4[2];r4>3?(o4=l===n4)&&(u3=i4[(c3=i4[4])?5:(c3=3,3)],i4[4]=i4[5]=e):i4[0]<=d2&&((o4=r4<2&&d2<i4[1])?(c3=0,G.v=n4,G.n=i4[1]):d2<l&&(o4=r4<3||i4[0]>n4||n4>l)&&(i4[4]=r4,i4[5]=n4,G.n=l,c3=0))}if(o4||r4>1)return a;throw y=!0,n4}return function(o4,p2,l){if(f2>1)throw TypeError("Generator is already running");for(y&&p2===1&&d(p2,l),c3=p2,u3=l;(t=c3<2?e:u3)||!y;){i3||(c3?c3<3?(c3>1&&(G.n=-1),d(c3,u3)):G.n=u3:G.v=u3);try{if(f2=2,i3){if(c3||(o4="next"),t=i3[o4]){if(!(t=t.call(i3,u3)))throw TypeError("iterator result is not an object");if(!t.done)return t;u3=t.value,c3<2&&(c3=0)}else c3===1&&(t=i3.return)&&t.call(i3),c3<2&&(u3=TypeError("The iterator does not provide a '"+o4+"' method"),c3=1);i3=e}else if((t=(y=G.n<0)?u3:r3.call(n3,G))!==a)break}catch(t2){i3=e,c3=1,u3=t2}finally{f2=1}}return{value:t,done:y}}}(r2,o2,i2),!0),u2}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(_regeneratorDefine2(t={},n,function(){return this}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e2){return Object.setPrototypeOf?Object.setPrototypeOf(e2,GeneratorFunctionPrototype):(e2.__proto__=GeneratorFunctionPrototype,_regeneratorDefine2(e2,o,"GeneratorFunction")),e2.prototype=Object.create(u),e2}return GeneratorFunction.prototype=GeneratorFunctionPrototype,_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),_regeneratorDefine2(u),_regeneratorDefine2(u,o,"Generator"),_regeneratorDefine2(u,n,function(){return this}),_regeneratorDefine2(u,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:i,m:f}})()}function _regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}_regeneratorDefine2=function(e2,r2,n2,t2){function o(r3,n3){_regeneratorDefine2(e2,r3,function(e3){return this._invoke(r3,n3,e3)})}r2?i?i(e2,r2,{value:n2,enumerable:!t2,configurable:!t2,writable:!t2}):e2[r2]=n2:(o("next",0),o("throw",1),o("return",2))},_regeneratorDefine2(e,r,n,t)}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n2){return void e(n2)}i.done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n2){asyncGeneratorStep(a,r,o,_next,_throw,"next",n2)}function _throw(n2){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n2)}_next(void 0)})}}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(r,a){if(r){if(typeof r=="string")return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}function _arrayLikeToArray(r,a){(a==null||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _iterableToArrayLimit(r,l){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,l===0){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r2){o=!0,n=r2}finally{try{if(!f&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}function _arrayWithHoles(r){if(Array.isArray(r))return r}function __bitNormalizeId(id){return id?String(id).trim().replace(/^\/+|\/+$/g,""):""}function __bitActiveComponentId(){try{var hash=window.location.hash;if(!hash)return null;var _hash$slice$split=hash.slice(1).split("?"),_hash$slice$split2=_slicedToArray(_hash$slice$split,1),idPart=_hash$slice$split2[0],id=__bitNormalizeId(idPart),idWithoutVersion=id.split("@")[0];return idWithoutVersion||null}catch{return null}}var __bitActiveId=__bitActiveComponentId();function __bitShouldSurfaceFor(componentId){if(!__bitActiveId)return!1;var act=__bitNormalizeId(__bitActiveId),cmp=__bitNormalizeId(componentId);return!act||!cmp?!1:act===cmp}function __bitSurfaceToOverlay(err,componentId){return;var e,msg}function initializeModules(){return _initializeModules.apply(this,arguments)}function _initializeModules(){return _initializeModules=_asyncToGenerator(_regenerator().m(function _callee2(){return _regenerator().w(function(_context2){for(;;)switch(_context2.n){case 0:(0,_home_circleci_bvm_versions_2_0_74_bit_2_0_74_node_modules_teambit_preview_dist_preview_modules_js__WEBPACK_IMPORTED_MODULE_0__.uf)("overview",{modulesMap:{default:_home_circleci_bit_bit_node_modules_teambit_local_preview_modules_9b89befd045d1080499f8437aaaa95b3d5125fd8_mjs__WEBPACK_IMPORTED_MODULE_1__.x},isSplitComponentBundle:!0,componentMap:{}});case 1:return _context2.a(2)}},_callee2)})),_initializeModules.apply(this,arguments)}(function(){var _initializeModulesOnLoad=_asyncToGenerator(_regenerator().m(function _callee(){return _regenerator().w(function(_context){for(;;)switch(_context.n){case 0:return _context.n=1,initializeModules();case 1:return _context.a(2)}},_callee)}));function initializeModulesOnLoad(){return _initializeModulesOnLoad.apply(this,arguments)}return initializeModulesOnLoad})()()},94891:()=>{},91044:()=>{},38954:()=>{},71220:()=>{},38854:()=>{}},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[492,598,518,66,866],()=>__webpack_exec__(58853));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1,2 +1,2 @@
1
1
  <!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Preview</title><script>// Allow to use react dev-tools inside the examples
2
- try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.f44fbbfc05c94b63fef3.js"></script><script defer="defer" src="595.956d7cfea1e148df79e9.js"></script><script defer="defer" src="preview-root.d2476b880b41e84265b1.js"></script><script defer="defer" src="66.53672cbe4f8af13f93c9.js"></script><script defer="defer" src="compositions.d4162dd90a5b8b2dba03.js"></script><script defer="defer" src="492.e7aaf1bdaf31771027ba.js"></script><script defer="defer" src="overview.98c5433f95f02dfccdce.js"></script><link href="static/css/preview-root.21652b71.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"><link href="static/css/492.88bc1ecf.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
2
+ try { window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; } catch {}</script><style>body { margin: 0; }</style><script defer="defer" src="peers.3a4d736b01904bd18caf.js"></script><script defer="defer" src="598.81114f26d48bd3ddd836.js"></script><script defer="defer" src="preview-root.77f8aa97e0e92c9c1083.js"></script><script defer="defer" src="66.53672cbe4f8af13f93c9.js"></script><script defer="defer" src="compositions.2cd699e34b52dc025be3.js"></script><script defer="defer" src="492.105389e1c432441a7ad0.js"></script><script defer="defer" src="overview.df6260353f6246d664c4.js"></script><link href="static/css/preview-root.21652b71.css" rel="stylesheet"><link href="static/css/compositions.b7ba1a09.css" rel="stylesheet"><link href="static/css/492.88bc1ecf.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
@@ -1 +1 @@
1
- "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[518],{},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[595],()=>__webpack_exec__(36595));var __webpack_exports__=__webpack_require__.O()}]);
1
+ "use strict";(self.__loadChunks_EnvTemplate=self.__loadChunks_EnvTemplate||[]).push([[518],{},__webpack_require__=>{var __webpack_exec__=moduleId=>__webpack_require__(__webpack_require__.s=moduleId);__webpack_require__.O(0,[598],()=>__webpack_exec__(37598));var __webpack_exports__=__webpack_require__.O()}]);
@@ -1,5 +1,5 @@
1
1
  import type { Bundler, DevServer } from '@teambit/bundler';
2
- import type { WebpackConfigTransformer } from '@teambit/webpack';
2
+ import type { WebpackConfigTransformer } from '@teambit/webpack.webpack-bundler';
3
3
  import type { ReactDeployContext } from './deploy-context';
4
4
  export type ReactAppOptions = {
5
5
  /**
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["react-app-options.ts"],"sourcesContent":["import type { Bundler, DevServer } from '@teambit/bundler';\nimport type { WebpackConfigTransformer } from '@teambit/webpack';\n\nimport type { ReactDeployContext } from './deploy-context';\n\nexport type ReactAppOptions = {\n /**\n * name of the application.\n */\n name: string;\n\n /**\n * path to entry files of the application.\n */\n entry: string[] | ((path?: string) => Promise<string[]>);\n\n /**\n * path to server-rendered entrypoint of the app\n */\n ssr?: string | (() => Promise<string>);\n\n /**\n * instance of bundler to use. default is Webpack.\n */\n bundler?: Bundler;\n\n /**\n * instance of serverside bundler to use. default is Webpack.\n */\n ssrBundler?: Bundler;\n\n /**\n * instance of dev server to use. default is Webpack.\n */\n devServer?: DevServer;\n\n /**\n * set webpack transformers\n */\n webpackTransformers?: WebpackConfigTransformer[];\n\n /**\n * deploy function.\n */\n deploy?: (context: ReactDeployContext) => Promise<void>;\n\n /**\n * ranges of ports to use to run the app server.\n */\n portRange?: [start: number, end: number];\n\n /**\n * favicon for the app. You can pass an abs path (using require.resolve()) or a url.\n */\n favicon?: string;\n\n /**\n * path to load the webpack instance from\n */\n webpackModulePath?: string;\n\n /**\n * path to load the webpack dev server instance from.\n */\n webpackDevServerModulePath?: string;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["react-app-options.ts"],"sourcesContent":["import type { Bundler, DevServer } from '@teambit/bundler';\nimport type { WebpackConfigTransformer } from '@teambit/webpack.webpack-bundler';\n\nimport type { ReactDeployContext } from './deploy-context';\n\nexport type ReactAppOptions = {\n /**\n * name of the application.\n */\n name: string;\n\n /**\n * path to entry files of the application.\n */\n entry: string[] | ((path?: string) => Promise<string[]>);\n\n /**\n * path to server-rendered entrypoint of the app\n */\n ssr?: string | (() => Promise<string>);\n\n /**\n * instance of bundler to use. default is Webpack.\n */\n bundler?: Bundler;\n\n /**\n * instance of serverside bundler to use. default is Webpack.\n */\n ssrBundler?: Bundler;\n\n /**\n * instance of dev server to use. default is Webpack.\n */\n devServer?: DevServer;\n\n /**\n * set webpack transformers\n */\n webpackTransformers?: WebpackConfigTransformer[];\n\n /**\n * deploy function.\n */\n deploy?: (context: ReactDeployContext) => Promise<void>;\n\n /**\n * ranges of ports to use to run the app server.\n */\n portRange?: [start: number, end: number];\n\n /**\n * favicon for the app. You can pass an abs path (using require.resolve()) or a url.\n */\n favicon?: string;\n\n /**\n * path to load the webpack instance from\n */\n webpackModulePath?: string;\n\n /**\n * path to load the webpack dev server instance from.\n */\n webpackDevServerModulePath?: string;\n};\n"],"mappings":"","ignoreList":[]}
@@ -2,7 +2,7 @@ import type { Application, AppContext, AppBuildContext, AppResult, ApplicationIn
2
2
  import type { Bundler, DevServer } from '@teambit/bundler';
3
3
  import type { Logger } from '@teambit/logger';
4
4
  import type { DependencyResolverMain } from '@teambit/dependency-resolver';
5
- import type { WebpackConfigTransformer } from '@teambit/webpack';
5
+ import type { WebpackConfigTransformer } from '@teambit/webpack.webpack-bundler';
6
6
  import type { ReactEnv } from '../../react.env';
7
7
  import type { ReactAppBuildResult } from './react-build-result';
8
8
  import type { ReactDeployContext } from './deploy-context';
@@ -1 +1 @@
1
- {"version":3,"names":["_fs","data","require","_path","_toolboxNetwork","_component","_dependencyResolver","_lodash","_interopRequireDefault","_bitError","_webpack","_computeResults","_webpackAppSsr","_mutators","_ssrExpress","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ReactApp","constructor","name","entry","ssr","portRange","reactEnv","logger","dependencyResolver","bundler","ssrBundler","devServer","transformers","deploy","favicon","webpackModulePath","webpackDevServerModulePath","run","context","from","to","port","Port","getPort","listen","console","appName","devServerContext","getDevServerContext","getDevServer","addDevServer","setOutput","setDevServerClient","runSsr","clientBundle","buildClient","errors","info","serverBundle","buildSsr","app","loadSsrApp","workdir","expressApp","createExpressSsr","assets","parseAssets","htmlConfig","title","templateContent","html","minify","ctx","assign","create","targets","entries","getEntries","components","appComponent","outputPath","resolve","calcOutputPath","hostDependencies","getHostDependencies","aliasHostDependencies","capsuleNetwork","undefined","previousTasksResults","getBundler","config","merge","clientConfig","bundleResult","getSsrEntries","ssrConfig","build","ssrAppDir","join","getPublicDir","artifactsDir","buildSsrApp","computeResults","publicDir","dir","ssrPublicDir","getSsrBundler","runner","readFileSync","__dirname","toString","capsule","fs","writeFileSync","capsuleSsrDir","getPath","installer","getInstaller","packageManager","rootDir","cacheRootDirectory","install","getSsrPolicy","ComponentMap","Map","workspacePolicy","WorkspacePolicy","add","lifecycleType","dependencyId","version","getDefaultBundler","getDefaultSsrBundler","path","bundlerContext","getBuildContext","compact","configMutator","buildConfig","replaceTerserPlugin","env","ssrBuildConfig","ssrDir","distDir","getCompiler","targetEntries","map","basename","component","hostRootDir","rootPath","metaData","initiator","envId","id","applicationType","Array","isArray","BitError","publicPath","getAdditionalHostDependencies","exports"],"sources":["react.application.ts"],"sourcesContent":["import { readFileSync } from 'fs';\nimport { join, resolve, basename } from 'path';\nimport type { Application, AppContext, AppBuildContext, AppResult, ApplicationInstance } from '@teambit/application';\nimport type { Bundler, DevServer, BundlerContext, DevServerContext, BundlerHtmlConfig } from '@teambit/bundler';\nimport { Port } from '@teambit/toolbox.network.get-port';\nimport { ComponentMap } from '@teambit/component';\nimport type { Logger } from '@teambit/logger';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { WorkspacePolicy } from '@teambit/dependency-resolver';\nimport compact from 'lodash.compact';\nimport type { WebpackConfigTransformer } from '@teambit/webpack';\nimport { BitError } from '@teambit/bit-error';\nimport type { ReactEnv } from '../../react.env';\nimport type { ReactAppBuildResult } from './react-build-result';\nimport { html } from '../../webpack';\nimport type { ReactDeployContext } from './deploy-context';\nimport { computeResults } from './compute-results';\nimport { clientConfig, ssrConfig, calcOutputPath, ssrBuildConfig, buildConfig } from './webpack/webpack.app.ssr.config';\nimport { addDevServer, setOutput, replaceTerserPlugin, setDevServerClient } from './webpack/mutators';\nimport { createExpressSsr, loadSsrApp, parseAssets } from './ssr/ssr-express';\n\nexport class ReactApp implements Application {\n constructor(\n readonly name: string,\n readonly entry: string[] | ((path?: string) => Promise<string[]>),\n readonly ssr: string | (() => Promise<string>) | undefined,\n readonly portRange: [number, number],\n private reactEnv: ReactEnv,\n private logger: Logger,\n private dependencyResolver: DependencyResolverMain,\n readonly bundler?: Bundler,\n readonly ssrBundler?: Bundler,\n readonly devServer?: DevServer,\n readonly transformers: WebpackConfigTransformer[] = [],\n readonly deploy?: (context: ReactDeployContext) => Promise<void>,\n readonly favicon?: string,\n readonly webpackModulePath?: string,\n readonly webpackDevServerModulePath?: string\n ) {}\n readonly applicationType = 'react-common-js';\n readonly dir = 'public';\n readonly ssrDir = 'ssr';\n\n async run(context: AppContext): Promise<ApplicationInstance> {\n const [from, to] = this.portRange;\n const port = context.port || (await Port.getPort(from, to));\n\n if (this.devServer) {\n await this.devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n const devServerContext = await this.getDevServerContext(context);\n const devServer = this.reactEnv.getDevServer(\n devServerContext,\n [addDevServer, setOutput, setDevServerClient, ...this.transformers],\n this.webpackModulePath,\n this.webpackDevServerModulePath\n );\n await devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n async runSsr(context: AppContext): Promise<AppResult> {\n const [from, to] = this.portRange;\n const port = await Port.getPort(from, to);\n\n // bundle client\n const clientBundle = await this.buildClient(context);\n if (clientBundle.errors.length > 0) return { errors: clientBundle.errors };\n this.logger?.info('[react.application] [ssr] client bundle - complete');\n\n // bundle server\n const serverBundle = await this.buildSsr(context);\n if (serverBundle.errors.length > 0) return { errors: serverBundle.errors };\n this.logger?.info('[react.application] [ssr] server bundle - complete');\n\n // load server-side runtime\n const app = await loadSsrApp(context.workdir, context.appName);\n this.logger?.info('[react.application] [ssr] bundle code - loaded');\n\n const expressApp = createExpressSsr({\n name: context.appName,\n workdir: context.workdir,\n port,\n app,\n assets: parseAssets(clientBundle.assets),\n logger: this.logger,\n });\n\n expressApp.listen(port);\n this.logger.console(`listening on port ${port}`);\n return { port };\n }\n\n private async buildClient(context: AppContext) {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.appName,\n templateContent: html(context.appName),\n minify: false,\n favicon: this.favicon,\n },\n ];\n\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n html: htmlConfig,\n targets: [\n {\n entries: await this.getEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'browser')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([clientConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n private async buildSsr(context: AppContext) {\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n ...context,\n targets: [\n {\n entries: await this.getSsrEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'ssr')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([ssrConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n async build(context: AppBuildContext): Promise<ReactAppBuildResult> {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.name,\n templateContent: html(context.name),\n minify: false,\n favicon: this.favicon,\n // filename: ''.html`,\n },\n ];\n Object.assign(context, {\n html: htmlConfig,\n });\n const bundler = await this.getBundler(context);\n const bundleResult = await bundler.run();\n const ssrAppDir = join(this.getPublicDir(context.artifactsDir));\n\n if (this.ssr) await this.buildSsrApp(context, ssrAppDir);\n return computeResults(bundleResult, {\n publicDir: `${this.getPublicDir(context.artifactsDir)}/${this.dir}`,\n ssrPublicDir: ssrAppDir,\n });\n }\n\n private async buildSsrApp(context: AppBuildContext, ssrAppDir: string) {\n const ssrBundler = await this.getSsrBundler(context);\n await ssrBundler.run();\n const runner = readFileSync(join(__dirname, './ssr/app/runner')).toString();\n context.capsule.fs.writeFileSync(join(ssrAppDir, 'runner.js'), runner);\n const capsuleSsrDir = context.capsule.fs.getPath(ssrAppDir);\n const installer = this.dependencyResolver.getInstaller({\n packageManager: 'teambit.dependencies/yarn',\n rootDir: capsuleSsrDir,\n cacheRootDirectory: capsuleSsrDir,\n });\n await installer.install(capsuleSsrDir, this.getSsrPolicy(), new ComponentMap(new Map()));\n return ssrAppDir;\n }\n\n private getSsrPolicy() {\n const workspacePolicy = new WorkspacePolicy([]);\n workspacePolicy.add({ lifecycleType: 'runtime', dependencyId: 'express', value: { version: '4.18.1' } });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/react.rendering.ssr',\n value: { version: '0.0.3' },\n });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/ui-foundation.ui.pages.static-error',\n value: { version: '0.0.75' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react',\n value: { version: '17.0.2' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react-dom',\n value: { version: '17.0.2' },\n });\n return workspacePolicy;\n }\n\n private getBundler(context: AppBuildContext) {\n if (this.bundler) return this.bundler;\n return this.getDefaultBundler(context);\n }\n\n private getSsrBundler(context: AppBuildContext) {\n if (this.ssrBundler) return this.ssrBundler;\n return this.getDefaultSsrBundler(context);\n }\n\n private async getDefaultBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(buildConfig({ outputPath: join(outputPath, this.dir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getDefaultSsrBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(ssrBuildConfig({ outputPath: join(outputPath, this.ssrDir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getBuildContext(context: AppBuildContext, { outputPath }: { outputPath: string }) {\n const { capsule } = context;\n const reactEnv = context.env as ReactEnv;\n const { distDir } = reactEnv.getCompiler();\n const targetEntries = await this.getEntries(`${capsule.path}/${distDir}`);\n const entries = targetEntries.map((entry) => require.resolve(`${capsule.path}/${distDir}/${basename(entry)}`));\n\n const bundlerContext: BundlerContext = Object.assign(context, {\n targets: [\n {\n components: [capsule?.component],\n entries,\n outputPath,\n hostRootDir: capsule?.path,\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n entry: [],\n rootPath: '/',\n metaData: {\n initiator: `building app: ${context.name}`,\n envId: context.id,\n },\n });\n\n return bundlerContext;\n }\n\n private getPublicDir(artifactsDir: string) {\n return join(artifactsDir, this.applicationType, this.name);\n }\n\n async getEntries(path?: string): Promise<string[]> {\n if (Array.isArray(this.entry)) return this.entry;\n return this.entry(path);\n }\n\n async getSsrEntries(): Promise<string[]> {\n if (!this.ssr) throw new BitError('tried to build ssr without ssr entries');\n if (typeof this.ssr === 'string') return [this.ssr];\n return [await this.ssr()];\n }\n\n private async getDevServerContext(context: AppContext): Promise<DevServerContext> {\n const entries = await this.getEntries();\n return Object.assign(context, {\n entry: entries,\n rootPath: '',\n publicPath: `public/${this.name}`,\n title: this.name,\n favicon: this.favicon,\n hostDependencies: await this.getHostDependencies(),\n aliasHostDependencies: true,\n });\n }\n\n private getHostDependencies(): string[] {\n return this.reactEnv.getAdditionalHostDependencies();\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAC,OAAA;EAAAE,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,WAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,UAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAGA,SAAAK,oBAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,mBAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,QAAA;EAAA,MAAAN,IAAA,GAAAO,sBAAA,CAAAN,OAAA;EAAAK,OAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AA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,CAAC;EACtD;AACF;AAACC,OAAA,CAAA7I,QAAA,GAAAA,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["_fs","data","require","_path","_toolboxNetwork","_component","_dependencyResolver","_lodash","_interopRequireDefault","_bitError","_webpack","_computeResults","_webpackAppSsr","_mutators","_ssrExpress","e","__esModule","default","ownKeys","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","_toPropertyKey","value","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","ReactApp","constructor","name","entry","ssr","portRange","reactEnv","logger","dependencyResolver","bundler","ssrBundler","devServer","transformers","deploy","favicon","webpackModulePath","webpackDevServerModulePath","run","context","from","to","port","Port","getPort","listen","console","appName","devServerContext","getDevServerContext","getDevServer","addDevServer","setOutput","setDevServerClient","runSsr","clientBundle","buildClient","errors","info","serverBundle","buildSsr","app","loadSsrApp","workdir","expressApp","createExpressSsr","assets","parseAssets","htmlConfig","title","templateContent","html","minify","ctx","assign","create","targets","entries","getEntries","components","appComponent","outputPath","resolve","calcOutputPath","hostDependencies","getHostDependencies","aliasHostDependencies","capsuleNetwork","undefined","previousTasksResults","getBundler","config","merge","clientConfig","bundleResult","getSsrEntries","ssrConfig","build","ssrAppDir","join","getPublicDir","artifactsDir","buildSsrApp","computeResults","publicDir","dir","ssrPublicDir","getSsrBundler","runner","readFileSync","__dirname","toString","capsule","fs","writeFileSync","capsuleSsrDir","getPath","installer","getInstaller","packageManager","rootDir","cacheRootDirectory","install","getSsrPolicy","ComponentMap","Map","workspacePolicy","WorkspacePolicy","add","lifecycleType","dependencyId","version","getDefaultBundler","getDefaultSsrBundler","path","bundlerContext","getBuildContext","compact","configMutator","buildConfig","replaceTerserPlugin","env","ssrBuildConfig","ssrDir","distDir","getCompiler","targetEntries","map","basename","component","hostRootDir","rootPath","metaData","initiator","envId","id","applicationType","Array","isArray","BitError","publicPath","getAdditionalHostDependencies","exports"],"sources":["react.application.ts"],"sourcesContent":["import { readFileSync } from 'fs';\nimport { join, resolve, basename } from 'path';\nimport type { Application, AppContext, AppBuildContext, AppResult, ApplicationInstance } from '@teambit/application';\nimport type { Bundler, DevServer, BundlerContext, DevServerContext, BundlerHtmlConfig } from '@teambit/bundler';\nimport { Port } from '@teambit/toolbox.network.get-port';\nimport { ComponentMap } from '@teambit/component';\nimport type { Logger } from '@teambit/logger';\nimport type { DependencyResolverMain } from '@teambit/dependency-resolver';\nimport { WorkspacePolicy } from '@teambit/dependency-resolver';\nimport compact from 'lodash.compact';\nimport type { WebpackConfigTransformer } from '@teambit/webpack.webpack-bundler';\nimport { BitError } from '@teambit/bit-error';\nimport type { ReactEnv } from '../../react.env';\nimport type { ReactAppBuildResult } from './react-build-result';\nimport { html } from '../../webpack';\nimport type { ReactDeployContext } from './deploy-context';\nimport { computeResults } from './compute-results';\nimport { clientConfig, ssrConfig, calcOutputPath, ssrBuildConfig, buildConfig } from './webpack/webpack.app.ssr.config';\nimport { addDevServer, setOutput, replaceTerserPlugin, setDevServerClient } from './webpack/mutators';\nimport { createExpressSsr, loadSsrApp, parseAssets } from './ssr/ssr-express';\n\nexport class ReactApp implements Application {\n constructor(\n readonly name: string,\n readonly entry: string[] | ((path?: string) => Promise<string[]>),\n readonly ssr: string | (() => Promise<string>) | undefined,\n readonly portRange: [number, number],\n private reactEnv: ReactEnv,\n private logger: Logger,\n private dependencyResolver: DependencyResolverMain,\n readonly bundler?: Bundler,\n readonly ssrBundler?: Bundler,\n readonly devServer?: DevServer,\n readonly transformers: WebpackConfigTransformer[] = [],\n readonly deploy?: (context: ReactDeployContext) => Promise<void>,\n readonly favicon?: string,\n readonly webpackModulePath?: string,\n readonly webpackDevServerModulePath?: string\n ) {}\n readonly applicationType = 'react-common-js';\n readonly dir = 'public';\n readonly ssrDir = 'ssr';\n\n async run(context: AppContext): Promise<ApplicationInstance> {\n const [from, to] = this.portRange;\n const port = context.port || (await Port.getPort(from, to));\n\n if (this.devServer) {\n await this.devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n const devServerContext = await this.getDevServerContext(context);\n const devServer = this.reactEnv.getDevServer(\n devServerContext,\n [addDevServer, setOutput, setDevServerClient, ...this.transformers],\n this.webpackModulePath,\n this.webpackDevServerModulePath\n );\n await devServer.listen(port);\n this.logger.console(`${context.appName} is listening on http://localhost:${port}`);\n\n return {\n appName: context.appName,\n port,\n };\n }\n\n async runSsr(context: AppContext): Promise<AppResult> {\n const [from, to] = this.portRange;\n const port = await Port.getPort(from, to);\n\n // bundle client\n const clientBundle = await this.buildClient(context);\n if (clientBundle.errors.length > 0) return { errors: clientBundle.errors };\n this.logger?.info('[react.application] [ssr] client bundle - complete');\n\n // bundle server\n const serverBundle = await this.buildSsr(context);\n if (serverBundle.errors.length > 0) return { errors: serverBundle.errors };\n this.logger?.info('[react.application] [ssr] server bundle - complete');\n\n // load server-side runtime\n const app = await loadSsrApp(context.workdir, context.appName);\n this.logger?.info('[react.application] [ssr] bundle code - loaded');\n\n const expressApp = createExpressSsr({\n name: context.appName,\n workdir: context.workdir,\n port,\n app,\n assets: parseAssets(clientBundle.assets),\n logger: this.logger,\n });\n\n expressApp.listen(port);\n this.logger.console(`listening on port ${port}`);\n return { port };\n }\n\n private async buildClient(context: AppContext) {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.appName,\n templateContent: html(context.appName),\n minify: false,\n favicon: this.favicon,\n },\n ];\n\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n html: htmlConfig,\n targets: [\n {\n entries: await this.getEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'browser')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([clientConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n private async buildSsr(context: AppContext) {\n // extend, including prototype methods\n const ctx: BundlerContext = Object.assign(Object.create(context), {\n ...context,\n targets: [\n {\n entries: await this.getSsrEntries(),\n components: [context.appComponent],\n outputPath: resolve(context.workdir, calcOutputPath(context.appName, 'ssr')),\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n\n capsuleNetwork: undefined,\n previousTasksResults: [],\n });\n\n const bundler = await this.reactEnv.getBundler(\n ctx,\n [(config) => config.merge([ssrConfig()]), ...this.transformers],\n this.webpackModulePath\n );\n\n const bundleResult = await bundler.run();\n return bundleResult[0];\n }\n\n async build(context: AppBuildContext): Promise<ReactAppBuildResult> {\n const htmlConfig: BundlerHtmlConfig[] = [\n {\n title: context.name,\n templateContent: html(context.name),\n minify: false,\n favicon: this.favicon,\n // filename: ''.html`,\n },\n ];\n Object.assign(context, {\n html: htmlConfig,\n });\n const bundler = await this.getBundler(context);\n const bundleResult = await bundler.run();\n const ssrAppDir = join(this.getPublicDir(context.artifactsDir));\n\n if (this.ssr) await this.buildSsrApp(context, ssrAppDir);\n return computeResults(bundleResult, {\n publicDir: `${this.getPublicDir(context.artifactsDir)}/${this.dir}`,\n ssrPublicDir: ssrAppDir,\n });\n }\n\n private async buildSsrApp(context: AppBuildContext, ssrAppDir: string) {\n const ssrBundler = await this.getSsrBundler(context);\n await ssrBundler.run();\n const runner = readFileSync(join(__dirname, './ssr/app/runner')).toString();\n context.capsule.fs.writeFileSync(join(ssrAppDir, 'runner.js'), runner);\n const capsuleSsrDir = context.capsule.fs.getPath(ssrAppDir);\n const installer = this.dependencyResolver.getInstaller({\n packageManager: 'teambit.dependencies/yarn',\n rootDir: capsuleSsrDir,\n cacheRootDirectory: capsuleSsrDir,\n });\n await installer.install(capsuleSsrDir, this.getSsrPolicy(), new ComponentMap(new Map()));\n return ssrAppDir;\n }\n\n private getSsrPolicy() {\n const workspacePolicy = new WorkspacePolicy([]);\n workspacePolicy.add({ lifecycleType: 'runtime', dependencyId: 'express', value: { version: '4.18.1' } });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/react.rendering.ssr',\n value: { version: '0.0.3' },\n });\n workspacePolicy.add({\n lifecycleType: 'runtime',\n dependencyId: '@teambit/ui-foundation.ui.pages.static-error',\n value: { version: '0.0.75' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react',\n value: { version: '17.0.2' },\n });\n\n workspacePolicy.add({\n lifecycleType: 'peer',\n dependencyId: 'react-dom',\n value: { version: '17.0.2' },\n });\n return workspacePolicy;\n }\n\n private getBundler(context: AppBuildContext) {\n if (this.bundler) return this.bundler;\n return this.getDefaultBundler(context);\n }\n\n private getSsrBundler(context: AppBuildContext) {\n if (this.ssrBundler) return this.ssrBundler;\n return this.getDefaultSsrBundler(context);\n }\n\n private async getDefaultBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(buildConfig({ outputPath: join(outputPath, this.dir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getDefaultSsrBundler(context: AppBuildContext) {\n const { capsule } = context;\n const publicDir = this.getPublicDir(context.artifactsDir);\n const outputPath = join(capsule.path, publicDir);\n\n const bundlerContext = await this.getBuildContext(context, { outputPath });\n const transformers: WebpackConfigTransformer[] = compact([\n (configMutator) => configMutator.merge(ssrBuildConfig({ outputPath: join(outputPath, this.ssrDir) })),\n replaceTerserPlugin(),\n ...this.transformers,\n ]);\n\n const reactEnv = context.env as ReactEnv;\n const bundler: Bundler = await reactEnv.getBundler(bundlerContext, transformers, this.webpackModulePath);\n return bundler;\n }\n\n private async getBuildContext(context: AppBuildContext, { outputPath }: { outputPath: string }) {\n const { capsule } = context;\n const reactEnv = context.env as ReactEnv;\n const { distDir } = reactEnv.getCompiler();\n const targetEntries = await this.getEntries(`${capsule.path}/${distDir}`);\n const entries = targetEntries.map((entry) => require.resolve(`${capsule.path}/${distDir}/${basename(entry)}`));\n\n const bundlerContext: BundlerContext = Object.assign(context, {\n targets: [\n {\n components: [capsule?.component],\n entries,\n outputPath,\n hostRootDir: capsule?.path,\n hostDependencies: this.getHostDependencies(),\n aliasHostDependencies: true,\n },\n ],\n entry: [],\n rootPath: '/',\n metaData: {\n initiator: `building app: ${context.name}`,\n envId: context.id,\n },\n });\n\n return bundlerContext;\n }\n\n private getPublicDir(artifactsDir: string) {\n return join(artifactsDir, this.applicationType, this.name);\n }\n\n async getEntries(path?: string): Promise<string[]> {\n if (Array.isArray(this.entry)) return this.entry;\n return this.entry(path);\n }\n\n async getSsrEntries(): Promise<string[]> {\n if (!this.ssr) throw new BitError('tried to build ssr without ssr entries');\n if (typeof this.ssr === 'string') return [this.ssr];\n return [await this.ssr()];\n }\n\n private async getDevServerContext(context: AppContext): Promise<DevServerContext> {\n const entries = await this.getEntries();\n return Object.assign(context, {\n entry: entries,\n rootPath: '',\n publicPath: `public/${this.name}`,\n title: this.name,\n favicon: this.favicon,\n hostDependencies: await this.getHostDependencies(),\n aliasHostDependencies: true,\n });\n }\n\n private getHostDependencies(): string[] {\n return this.reactEnv.getAdditionalHostDependencies();\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,IAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,GAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,MAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,KAAA,YAAAA,CAAA;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