UNPKG

@khulnasoft.com/dev-tools

Version:

Development tools for Khulnasoft CMS integration

4 lines 5.13 MB
{ "version": 3, "sources": ["../../../node_modules/mri/lib/index.js", "../../../node_modules/sisteransi/src/index.js", "../../../node_modules/picocolors/picocolors.js", "../../../node_modules/@sentry/src/is.ts", "../../../node_modules/@sentry/src/string.ts", "../../../node_modules/@sentry/src/aggregate-errors.ts", "../../../node_modules/@sentry/src/worldwide.ts", "../../../node_modules/@sentry/src/browser.ts", "../../../node_modules/@sentry/src/logger.ts", "../../../node_modules/@sentry/src/dsn.ts", "../../../node_modules/@sentry/src/error.ts", "../../../node_modules/@sentry/src/object.ts", "../../../node_modules/@sentry/src/node-stack-trace.ts", "../../../node_modules/@sentry/src/stacktrace.ts", "../../../node_modules/@sentry/src/supports.ts", "../../../node_modules/@sentry/src/vendor/supportsHistory.ts", "../../../node_modules/@sentry/src/instrument.ts", "../../../node_modules/@sentry/src/memo.ts", "../../../node_modules/@sentry/src/misc.ts", "../../../node_modules/@sentry/src/env.ts", "../../../node_modules/@sentry/src/node.ts", "../../../node_modules/@sentry/src/normalize.ts", "../../../node_modules/@sentry/src/path.ts", "../../../node_modules/@sentry/src/syncpromise.ts", "../../../node_modules/@sentry/src/promisebuffer.ts", "../../../node_modules/@sentry/src/url.ts", "../../../node_modules/@sentry/src/requestdata.ts", "../../../node_modules/@sentry/src/severity.ts", "../../../node_modules/@sentry/src/time.ts", "../../../node_modules/@sentry/src/baggage.ts", "../../../node_modules/@sentry/src/tracing.ts", "../../../node_modules/@sentry/src/envelope.ts", "../../../node_modules/@sentry/src/clientreport.ts", "../../../node_modules/@sentry/src/ratelimit.ts", "../../../node_modules/@sentry/src/userIntegrations.ts", "../../../node_modules/@sentry/src/cache.ts", "../../../node_modules/@sentry/src/eventkhulnasoft.ts", "../../../node_modules/@sentry/src/vendor/escapeStringForRegex.ts", "../../../node_modules/@sentry/utils/cjs/index.js", "../../../node_modules/@sentry/src/constants.ts", "../../../node_modules/@sentry/src/session.ts", "../../../node_modules/@sentry/src/scope.ts", "../../../node_modules/@sentry/src/hub.ts", "../../../node_modules/@sentry/src/utils/hasTracingEnabled.ts", "../../../node_modules/@sentry/src/tracing/utils.ts", "../../../node_modules/@sentry/src/tracing/errors.ts", "../../../node_modules/@sentry/src/tracing/span.ts", "../../../node_modules/@sentry/src/tracing/dynamicSamplingContext.ts", "../../../node_modules/@sentry/src/tracing/transaction.ts", "../../../node_modules/@sentry/src/tracing/idletransaction.ts", "../../../node_modules/@sentry/src/tracing/hubextensions.ts", "../../../node_modules/@sentry/src/tracing/spanstatus.ts", "../../../node_modules/@sentry/src/tracing/trace.ts", "../../../node_modules/@sentry/src/tracing/measurement.ts", "../../../node_modules/@sentry/src/exports.ts", "../../../node_modules/@sentry/src/sessionflusher.ts", "../../../node_modules/@sentry/src/api.ts", "../../../node_modules/@sentry/src/envelope.ts", "../../../node_modules/@sentry/src/integration.ts", "../../../node_modules/@sentry/src/utils/prepareEvent.ts", "../../../node_modules/@sentry/src/baseclient.ts", "../../../node_modules/@sentry/src/checkin.ts", "../../../node_modules/@sentry/src/server-runtime-client.ts", "../../../node_modules/@sentry/src/sdk.ts", "../../../node_modules/@sentry/src/transports/base.ts", "../../../node_modules/@sentry/src/transports/offline.ts", "../../../node_modules/@sentry/src/transports/multiplexed.ts", "../../../node_modules/@sentry/src/version.ts", "../../../node_modules/@sentry/src/integrations/functiontostring.ts", "../../../node_modules/@sentry/src/integrations/inboundfilters.ts", "../../../node_modules/@sentry/core/cjs/integrations/index.js", "../../../node_modules/@sentry/src/metadata.ts", "../../../node_modules/@sentry/src/integrations/metadata.ts", "../../../node_modules/@sentry/core/cjs/index.js", "../../../node_modules/@sentry/src/buildPolyfills/_nullishCoalesce.ts", "../../../node_modules/@sentry/src/buildPolyfills/_asyncNullishCoalesce.ts", "../../../node_modules/@sentry/src/buildPolyfills/_asyncOptionalChain.ts", "../../../node_modules/@sentry/src/buildPolyfills/_asyncOptionalChainDelete.ts", "../../../node_modules/@sentry/src/buildPolyfills/_optionalChain.ts", "../../../node_modules/@sentry/src/buildPolyfills/_optionalChainDelete.ts", "../../../node_modules/@sentry/utils/cjs/buildPolyfills/index.js", "../../../node_modules/@sentry-internal/src/node/integrations/utils/node-utils.ts", "../../../node_modules/@sentry-internal/src/node/integrations/express.ts", "../../../node_modules/@sentry-internal/src/node/integrations/postgres.ts", "../../../node_modules/@sentry-internal/src/node/integrations/mysql.ts", "../../../node_modules/@sentry-internal/src/node/integrations/mongo.ts", "../../../node_modules/@sentry-internal/src/node/integrations/prisma.ts", "../../../node_modules/@sentry-internal/src/node/integrations/graphql.ts", "../../../node_modules/@sentry-internal/src/node/integrations/apollo.ts", "../../../node_modules/@sentry-internal/src/node/integrations/lazy.ts", "../../../node_modules/@sentry-internal/src/browser/types.ts", "../../../node_modules/@sentry-internal/src/browser/backgroundtab.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/bindReporter.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/generateUniqueID.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/getNavigationEntry.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/getActivationStart.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/initMetric.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/observe.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/onHidden.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/getCLS.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/lib/getVisibilityWatcher.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/getFID.ts", "../../../node_modules/@sentry-internal/src/browser/web-vitals/getLCP.ts", "../../../node_modules/@sentry-internal/src/browser/metrics/utils.ts", "../../../node_modules/@sentry-internal/src/browser/metrics/index.ts", "../../../node_modules/@sentry-internal/src/browser/request.ts", "../../../node_modules/@sentry-internal/src/browser/router.ts", "../../../node_modules/@sentry-internal/src/browser/browsertracing.ts", "../../../node_modules/@sentry-internal/src/extensions.ts", "../../../node_modules/@sentry-internal/tracing/cjs/index.js", "../../../node_modules/@sentry/src/tracing/index.ts", "../../../node_modules/@sentry/src/eventkhulnasoft.ts", "../../../node_modules/@sentry/src/client.ts", "../../../node_modules/ms/index.js", "../../../node_modules/debug/src/common.js", "../../../node_modules/debug/src/browser.js", "../../../node_modules/has-flag/index.js", "../../../node_modules/supports-color/index.js", "../../../node_modules/debug/src/node.js", "../../../node_modules/debug/src/index.js", "../../../node_modules/agent-base/src/promisify.ts", "../../../node_modules/agent-base/src/index.ts", "../../../node_modules/https-proxy-agent/src/parse-proxy-response.ts", "../../../node_modules/https-proxy-agent/src/agent.ts", "../../../node_modules/https-proxy-agent/src/index.ts", "../../../node_modules/@sentry/src/transports/http.ts", "../../../node_modules/@sentry/src/nodeVersion.ts", "../../../node_modules/@sentry/src/async/domain.ts", "../../../node_modules/@sentry/src/async/hooks.ts", "../../../node_modules/@sentry/src/async/index.ts", "../../../node_modules/@sentry/src/integrations/console.ts", "../../../node_modules/lru_map/lru.js", "../../../node_modules/@sentry/src/integrations/utils/http.ts", "../../../node_modules/@sentry/src/integrations/http.ts", "../../../node_modules/@sentry/src/integrations/utils/errorhandling.ts", "../../../node_modules/@sentry/src/integrations/onuncaughtexception.ts", "../../../node_modules/@sentry/src/integrations/onunhandledrejection.ts", "../../../node_modules/@sentry/src/integrations/linkederrors.ts", "../../../node_modules/@sentry/src/integrations/modules.ts", "../../../node_modules/@sentry/src/integrations/contextlines.ts", "../../../node_modules/@sentry/src/integrations/context.ts", "../../../node_modules/cookie/index.js", "../../../node_modules/@sentry/src/requestdata.ts", "../../../node_modules/@sentry/src/integrations/requestdata.ts", "../../../node_modules/@sentry/src/integrations/localvariables.ts", "../../../node_modules/@sentry/src/integrations/undici/index.ts", "../../../node_modules/@sentry/src/module.ts", "../../../node_modules/@sentry/src/sdk.ts", "../../../node_modules/@sentry/src/utils.ts", "../../../node_modules/@sentry/src/requestDataDeprecated.ts", "../../../node_modules/@sentry/src/handlers.ts", "../../../node_modules/@sentry/node/cjs/integrations/index.js", "../../../node_modules/@sentry/node/cjs/tracing/integrations.js", "../../../node_modules/@sentry/src/index.ts", "../../../node_modules/which-pm-runs/index.js", "../../../node_modules/json5/lib/unicode.js", "../../../node_modules/json5/lib/util.js", "../../../node_modules/json5/lib/parse.js", "../../../node_modules/json5/lib/stringify.js", "../../../node_modules/json5/lib/index.js", "../../../node_modules/compress-json/dist/debug.js", "../../../node_modules/compress-json/dist/number.js", "../../../node_modules/compress-json/dist/encode.js", "../../../node_modules/compress-json/dist/config.js", "../../../node_modules/compress-json/dist/memory.js", "../../../node_modules/compress-json/dist/core.js", "../../../node_modules/compress-json/dist/helpers.js", "../../../node_modules/compress-json/dist/index.js", "../../../node_modules/prompts/node_modules/kleur/index.js", "../../../node_modules/prompts/dist/util/action.js", "../../../node_modules/prompts/dist/util/strip.js", "../../../node_modules/prompts/dist/util/clear.js", "../../../node_modules/prompts/dist/util/figures.js", "../../../node_modules/prompts/dist/util/style.js", "../../../node_modules/prompts/dist/util/lines.js", "../../../node_modules/prompts/dist/util/wrap.js", "../../../node_modules/prompts/dist/util/entriesToDisplay.js", "../../../node_modules/prompts/dist/util/index.js", "../../../node_modules/prompts/dist/elements/prompt.js", "../../../node_modules/prompts/dist/elements/text.js", "../../../node_modules/prompts/dist/elements/select.js", "../../../node_modules/prompts/dist/elements/toggle.js", "../../../node_modules/prompts/dist/dateparts/datepart.js", "../../../node_modules/prompts/dist/dateparts/meridiem.js", "../../../node_modules/prompts/dist/dateparts/day.js", "../../../node_modules/prompts/dist/dateparts/hours.js", "../../../node_modules/prompts/dist/dateparts/milliseconds.js", "../../../node_modules/prompts/dist/dateparts/minutes.js", "../../../node_modules/prompts/dist/dateparts/month.js", "../../../node_modules/prompts/dist/dateparts/seconds.js", "../../../node_modules/prompts/dist/dateparts/year.js", "../../../node_modules/prompts/dist/dateparts/index.js", "../../../node_modules/prompts/dist/elements/date.js", "../../../node_modules/prompts/dist/elements/number.js", "../../../node_modules/prompts/dist/elements/multiselect.js", "../../../node_modules/prompts/dist/elements/autocomplete.js", "../../../node_modules/prompts/dist/elements/autocompleteMultiselect.js", "../../../node_modules/prompts/dist/elements/confirm.js", "../../../node_modules/prompts/dist/elements/index.js", "../../../node_modules/prompts/dist/prompts.js", "../../../node_modules/prompts/dist/index.js", "../../../node_modules/prompts/lib/util/action.js", "../../../node_modules/prompts/lib/util/strip.js", "../../../node_modules/prompts/lib/util/clear.js", "../../../node_modules/prompts/lib/util/figures.js", "../../../node_modules/prompts/lib/util/style.js", "../../../node_modules/prompts/lib/util/lines.js", "../../../node_modules/prompts/lib/util/wrap.js", "../../../node_modules/prompts/lib/util/entriesToDisplay.js", "../../../node_modules/prompts/lib/util/index.js", "../../../node_modules/prompts/lib/elements/prompt.js", "../../../node_modules/prompts/lib/elements/text.js", "../../../node_modules/prompts/lib/elements/select.js", "../../../node_modules/prompts/lib/elements/toggle.js", "../../../node_modules/prompts/lib/dateparts/datepart.js", "../../../node_modules/prompts/lib/dateparts/meridiem.js", "../../../node_modules/prompts/lib/dateparts/day.js", "../../../node_modules/prompts/lib/dateparts/hours.js", "../../../node_modules/prompts/lib/dateparts/milliseconds.js", "../../../node_modules/prompts/lib/dateparts/minutes.js", "../../../node_modules/prompts/lib/dateparts/month.js", "../../../node_modules/prompts/lib/dateparts/seconds.js", "../../../node_modules/prompts/lib/dateparts/year.js", "../../../node_modules/prompts/lib/dateparts/index.js", "../../../node_modules/prompts/lib/elements/date.js", "../../../node_modules/prompts/lib/elements/number.js", "../../../node_modules/prompts/lib/elements/multiselect.js", "../../../node_modules/prompts/lib/elements/autocomplete.js", "../../../node_modules/prompts/lib/elements/autocompleteMultiselect.js", "../../../node_modules/prompts/lib/elements/confirm.js", "../../../node_modules/prompts/lib/elements/index.js", "../../../node_modules/prompts/lib/prompts.js", "../../../node_modules/prompts/lib/index.js", "../../../node_modules/prompts/index.js", "../../../node_modules/highlight.js/lib/core.js", "../../../node_modules/@amplitude/analytics-node/node_modules/tslib/tslib.es6.mjs", "../../../node_modules/@amplitude/analytics-core/node_modules/tslib/tslib.es6.mjs", "../../../node_modules/@amplitude/analytics-types/src/event.ts", "../../../node_modules/@amplitude/analytics-types/src/logger.ts", "../../../node_modules/@amplitude/analytics-types/src/plugin.ts", "../../../node_modules/@amplitude/analytics-types/src/server-zone.ts", "../../../node_modules/@amplitude/analytics-types/src/status.ts", "../../../node_modules/@amplitude/analytics-types/src/transport.ts", "../../../node_modules/@amplitude/analytics-types/src/index.ts", "../../../node_modules/@amplitude/analytics-core/src/constants.ts", "../../../node_modules/@amplitude/analytics-core/src/utils/valid-properties.ts", "../../../node_modules/@amplitude/analytics-core/src/identify.ts", "../../../node_modules/@amplitude/analytics-core/src/utils/event-khulnasoft.ts", "../../../node_modules/@amplitude/analytics-core/src/utils/result-khulnasoft.ts", "../../../node_modules/@amplitude/analytics-core/src/timeline.ts", "../../../node_modules/@amplitude/analytics-core/src/messages.ts", "../../../node_modules/@amplitude/analytics-core/src/utils/return-wrapper.ts", "../../../node_modules/@amplitude/analytics-core/src/core-client.ts", "../../../node_modules/@amplitude/analytics-core/src/revenue.ts", "../../../node_modules/@amplitude/analytics-core/src/utils/chunk.ts", "../../../node_modules/@amplitude/analytics-core/src/logger.ts", "../../../node_modules/@amplitude/analytics-core/src/config.ts", "../../../node_modules/@amplitude/analytics-core/src/plugins/destination.ts", "../../../node_modules/@amplitude/analytics-core/src/utils/debug.ts", "../../../node_modules/@amplitude/analytics-core/src/utils/uuid.ts", "../../../node_modules/@amplitude/analytics-core/src/storage/memory.ts", "../../../node_modules/@amplitude/analytics-core/src/transports/base.ts", "../../../node_modules/@amplitude/analytics-core/src/index.ts", "../../../node_modules/@amplitude/analytics-node/src/version.ts", "../../../node_modules/@amplitude/analytics-node/src/plugins/context.ts", "../../../node_modules/@amplitude/analytics-node/src/transports/http.ts", "../../../node_modules/@amplitude/analytics-node/src/config.ts", "../../../node_modules/@amplitude/analytics-node/src/node-client.ts", "../../../node_modules/@amplitude/analytics-node/src/index.ts", "../../../node_modules/source-map-js/lib/base64.js", "../../../node_modules/source-map-js/lib/base64-vlq.js", "../../../node_modules/source-map-js/lib/util.js", "../../../node_modules/source-map-js/lib/array-set.js", "../../../node_modules/source-map-js/lib/mapping-list.js", "../../../node_modules/source-map-js/lib/source-map-generator.js", "../../../node_modules/source-map-js/lib/binary-search.js", "../../../node_modules/source-map-js/lib/quick-sort.js", "../../../node_modules/source-map-js/lib/source-map-consumer.js", "../../../node_modules/source-map-js/lib/source-node.js", "../../../node_modules/source-map-js/source-map.js", "../../../node_modules/@babel/parser/src/util/location.ts", "../../../node_modules/@babel/parser/src/parse-error/module-errors.ts", "../../../node_modules/@babel/parser/src/parse-error/to-node-description.ts", "../../../node_modules/@babel/parser/src/parse-error/standard-errors.ts", "../../../node_modules/@babel/parser/src/parse-error/strict-mode-errors.ts", "../../../node_modules/@babel/parser/src/parse-error/pipeline-operator-errors.ts", "../../../node_modules/@babel/parser/src/parse-error.ts", "../../../node_modules/@babel/parser/src/plugins/estree.ts", "../../../node_modules/@babel/parser/src/tokenizer/context.ts", "../../../node_modules/@babel/parser/src/tokenizer/types.ts", "../../../node_modules/@babel/babel-helper-validator-identifier/src/identifier.ts", "../../../node_modules/@babel/babel-helper-validator-identifier/src/keyword.ts", "../../../node_modules/@babel/parser/src/util/identifier.ts", "../../../node_modules/@babel/parser/src/util/scope.ts", "../../../node_modules/@babel/parser/src/plugins/flow/scope.ts", "../../../node_modules/@babel/parser/src/parser/base.ts", "../../../node_modules/@babel/parser/src/parser/comments.ts", "../../../node_modules/@babel/parser/src/util/whitespace.ts", "../../../node_modules/@babel/parser/src/tokenizer/state.ts", "../../../node_modules/@babel/babel-helper-string-parser/src/index.ts", "../../../node_modules/@babel/parser/src/tokenizer/index.ts", "../../../node_modules/@babel/parser/src/util/class-scope.ts", "../../../node_modules/@babel/parser/src/util/expression-scope.ts", "../../../node_modules/@babel/parser/src/util/production-parameter.ts", "../../../node_modules/@babel/parser/src/parser/util.ts", "../../../node_modules/@babel/parser/src/parser/node.ts", "../../../node_modules/@babel/parser/src/plugins/flow/index.ts", "../../../node_modules/@babel/parser/src/plugins/jsx/xhtml.ts", "../../../node_modules/@babel/parser/src/plugins/jsx/index.ts", "../../../node_modules/@babel/parser/src/plugins/typescript/scope.ts", "../../../node_modules/@babel/parser/src/parser/lval.ts", "../../../node_modules/@babel/parser/src/plugins/typescript/index.ts", "../../../node_modules/@babel/parser/src/plugins/placeholders.ts", "../../../node_modules/@babel/parser/src/plugins/v8intrinsic.ts", "../../../node_modules/@babel/parser/src/plugin-utils.ts", "../../../node_modules/@babel/parser/src/options.ts", "../../../node_modules/@babel/parser/src/parser/expression.ts", "../../../node_modules/@babel/parser/src/parser/statement.ts", "../../../node_modules/@babel/parser/src/parser/index.ts", "../../../node_modules/@babel/parser/src/index.ts", "../../../node_modules/fastest-levenshtein/mod.js", "../../../node_modules/isexe/windows.js", "../../../node_modules/isexe/mode.js", "../../../node_modules/isexe/index.js", "../../../node_modules/which/which.js", "../../../node_modules/path-key/index.js", "../../../node_modules/cross-spawn/lib/util/resolveCommand.js", "../../../node_modules/cross-spawn/lib/util/escape.js", "../../../node_modules/shebang-regex/index.js", "../../../node_modules/shebang-command/index.js", "../../../node_modules/cross-spawn/lib/util/readShebang.js", "../../../node_modules/cross-spawn/lib/parse.js", "../../../node_modules/cross-spawn/lib/enoent.js", "../../../node_modules/cross-spawn/index.js", "../../../packages/dev-tools/cli/index.ts", "../../../packages/dev-tools/cli/download.ts", "../../../packages/dev-tools/cli/prettier.ts", "../../../packages/dev-tools/cli/credentials.ts", "../../../packages/dev-tools/common/constants.ts", "../../../node_modules/node_modules/.pnpm/ansi-regex@6.1.0/node_modules/ansi-regex/index.js", "../../../node_modules/node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js", "../../../node_modules/node_modules/.pnpm/eastasianwidth@0.2.0/node_modules/eastasianwidth/eastasianwidth.js", "../../../node_modules/node_modules/.pnpm/emoji-regex@9.2.2/node_modules/emoji-regex/index.js", "../../../node_modules/node_modules/.pnpm/string-width@5.1.2/node_modules/string-width/index.js", "../../../node_modules/node_modules/.pnpm/ansi-styles@6.2.1/node_modules/ansi-styles/index.js", "../../../node_modules/node_modules/.pnpm/wrap-ansi@8.1.0/node_modules/wrap-ansi/index.js", "../../../node_modules/@clack/core/src/prompts/prompt.ts", "../../../node_modules/@clack/core/src/prompts/confirm.ts", "../../../node_modules/@clack/core/src/prompts/group-multiselect.ts", "../../../node_modules/@clack/core/src/prompts/multi-select.ts", "../../../node_modules/@clack/core/src/prompts/password.ts", "../../../node_modules/@clack/core/src/prompts/select.ts", "../../../node_modules/@clack/core/src/prompts/select-key.ts", "../../../node_modules/@clack/core/src/prompts/text.ts", "../../../node_modules/@clack/core/src/utils.ts", "../../../node_modules/node_modules/.pnpm/is-unicode-supported@1.3.0/node_modules/is-unicode-supported/index.js", "../../../node_modules/@clack/prompts/src/index.ts", "../../../packages/dev-tools/cli/figma-publish.ts", "../../../packages/dev-tools/common/fs.ts", "../../../packages/dev-tools/common/utils.ts", "../../../packages/dev-tools/core/detect-frameworks.ts", "../../../packages/dev-tools/common/cache.ts", "../../../packages/dev-tools/common/dotenv.ts", "../../../packages/dev-tools/core/adapters/next/next-api-key.ts", "../../../packages/dev-tools/types.ts", "../../../packages/dev-tools/common/ast/transform.ts", "../../../packages/dev-tools/common/ast/convert-values.ts", "../../../packages/dev-tools/common/ast/component-input-types.ts", "../../../packages/dev-tools/common/ast/component-info.ts", "../../../packages/dev-tools/core/adapters/next/next-component-info.ts", "../../../packages/dev-tools/common/typescript.ts", "../../../packages/dev-tools/common/ast/ensure-imports.ts", "../../../packages/dev-tools/common/ast/exported-statements.ts", "../../../packages/dev-tools/common/ast/utils.ts", "../../../packages/dev-tools/common/ast/app-dependencies.ts", "../../../packages/dev-tools/common/ast/imported-statements.ts", "../../../packages/dev-tools/core/adapters/react/react-components.ts", "../../../packages/dev-tools/core/adapters/next/next-components.ts", "../../../packages/dev-tools/common/ast/normalize-statements.ts", "../../../packages/dev-tools/core/adapters/next/next-registry-parse.ts", "../../../packages/dev-tools/common/ast/remove-unused-imports.ts", "../../../packages/dev-tools/common/ast/component-registry.ts", "../../../packages/dev-tools/core/adapters/react/react-ts-program.ts", "../../../packages/dev-tools/common/ast/ensure-array-statement.ts", "../../../packages/dev-tools/core/adapters/next/next-registry.ts", "../../../packages/dev-tools/core/adapters/next/next-ensure-khulnasoft-setup.ts", "../../../packages/dev-tools/core/adapters/react/react-khulnasoft-sdk-setup.ts", "../../../packages/dev-tools/core/adapters/next/index.ts", "../../../packages/dev-tools/core/adapters/qwik-city/qwik-api-key.ts", "../../../packages/dev-tools/common/ast/ensure-comments.ts", "../../../packages/dev-tools/core/adapters/qwik-city/qwik-components.ts", "../../../packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.ts", "../../../packages/dev-tools/core/adapters/qwik-city/qwik-ensure-khulnasoft-setup.ts", "../../../packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.ts", "../../../packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.ts", "../../../packages/dev-tools/core/adapters/qwik-city/qwik-registry.ts", "../../../packages/dev-tools/core/adapters/qwik-city/index.ts", "../../../packages/dev-tools/core/adapters/remix/remix-api-key.ts", "../../../packages/dev-tools/core/adapters/remix/remix-components.ts", "../../../packages/dev-tools/core/adapters/remix/remix-registry-parse.ts", "../../../packages/dev-tools/core/adapters/remix/remix-registry.ts", "../../../packages/dev-tools/core/adapters/remix/remix-ensure-khulnasoft-setup.ts", "../../../packages/dev-tools/core/adapters/remix/index.ts", "../../../packages/dev-tools/core/adapters/react/react-api-key.ts", "../../../packages/dev-tools/core/adapters/react/react-component-info.ts", "../../../packages/dev-tools/core/adapters/react/react-registry-parse.ts", "../../../packages/dev-tools/core/adapters/react/react-registry.ts", "../../../packages/dev-tools/core/adapters/react/react-ensure-khulnasoft-setup.ts", "../../../packages/dev-tools/core/adapters/react/index.ts", "../../../packages/dev-tools/core/adapters/angular/angular-api-key.ts", "../../../packages/dev-tools/core/adapters/angular/angular-components.ts", "../../../packages/dev-tools/core/adapters/angular/angular-app-module-imports.ts", "../../../packages/dev-tools/core/adapters/angular/angular-app-routes-update.ts", "../../../packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.ts", "../../../packages/dev-tools/core/adapters/angular/angular-ensure-khulnasoft-setup.ts", "../../../packages/dev-tools/core/adapters/angular/angular-registry-parse.ts", "../../../packages/dev-tools/core/adapters/angular/angular-registry.ts", "../../../packages/dev-tools/core/adapters/angular/index.ts", "../../../packages/dev-tools/core/import-export-registry.ts", "../../../packages/dev-tools/common/khulnasoft/khulnasoft-sdks.ts", "../../../packages/dev-tools/core/find-dependencies.ts", "../../../packages/dev-tools/core/create-dev-tools.ts", "../../../packages/dev-tools/core/ensure-config-plugin.ts", "../../../packages/dev-tools/cli/generate.ts", "../../../node_modules/highlight.js/es/languages/arduino.js", "../../../node_modules/highlight.js/es/languages/bash.js", "../../../node_modules/highlight.js/es/languages/c.js", "../../../node_modules/highlight.js/es/languages/cpp.js", "../../../node_modules/highlight.js/es/languages/csharp.js", "../../../node_modules/highlight.js/es/languages/css.js", "../../../node_modules/highlight.js/es/languages/diff.js", "../../../node_modules/highlight.js/es/languages/go.js", "../../../node_modules/highlight.js/es/languages/graphql.js", "../../../node_modules/highlight.js/es/languages/ini.js", "../../../node_modules/highlight.js/es/languages/java.js", "../../../node_modules/highlight.js/es/languages/javascript.js", "../../../node_modules/highlight.js/es/languages/json.js", "../../../node_modules/highlight.js/es/languages/kotlin.js", "../../../node_modules/highlight.js/es/languages/less.js", "../../../node_modules/highlight.js/es/languages/lua.js", "../../../node_modules/highlight.js/es/languages/makefile.js", "../../../node_modules/highlight.js/es/languages/markdown.js", "../../../node_modules/highlight.js/es/languages/objectivec.js", "../../../node_modules/highlight.js/es/languages/perl.js", "../../../node_modules/highlight.js/es/languages/php.js", "../../../node_modules/highlight.js/es/languages/php-template.js", "../../../node_modules/highlight.js/es/languages/plaintext.js", "../../../node_modules/highlight.js/es/languages/python.js", "../../../node_modules/highlight.js/es/languages/python-repl.js", "../../../node_modules/highlight.js/es/languages/r.js", "../../../node_modules/highlight.js/es/languages/ruby.js", "../../../node_modules/highlight.js/es/languages/rust.js", "../../../node_modules/highlight.js/es/languages/scss.js", "../../../node_modules/highlight.js/es/languages/shell.js", "../../../node_modules/highlight.js/es/languages/sql.js", "../../../node_modules/highlight.js/es/languages/swift.js", "../../../node_modules/highlight.js/es/languages/typescript.js", "../../../node_modules/highlight.js/es/languages/vbnet.js", "../../../node_modules/highlight.js/es/languages/wasm.js", "../../../node_modules/highlight.js/es/languages/xml.js", "../../../node_modules/highlight.js/es/languages/yaml.js", "../../../node_modules/lowlight/lib/common.js", "../../../node_modules/highlight.js/es/core.js", "../../../node_modules/lowlight/lib/index.js", "../../../node_modules/chalk/source/vendor/ansi-styles/index.js", "../../../node_modules/chalk/source/vendor/supports-color/index.js", "../../../node_modules/chalk/source/utilities.js", "../../../node_modules/chalk/source/index.js", "../../../node_modules/emphasize/lib/index.js", "../../../packages/dev-tools/cli/help.ts", "../../../packages/dev-tools/cli/track.ts", "../../../packages/dev-tools/package.json", "../../../packages/dev-tools/node/node-sys.ts", "../../../node_modules/magicast/dist/index.mjs", "../../../node_modules/uuid/dist/esm-node/rng.js", "../../../node_modules/uuid/dist/esm-node/stringify.js", "../../../node_modules/uuid/dist/esm-node/native.js", "../../../node_modules/uuid/dist/esm-node/v4.js", "../../../packages/dev-tools/cli/kv.ts", "../../../packages/dev-tools/cli/fetch.ts", "../../../packages/dev-tools/cli/exit.ts", "../../../packages/dev-tools/cli/constants.ts", "../../../packages/dev-tools/cli/figma.ts", "../../../packages/create-khulnasoft/install.ts", "../../../packages/dev-tools/cli/khulnasoft-add/interface.ts", "../../../packages/dev-tools/cli/khulnasoft-add/options.ts", "../../../packages/dev-tools/cli/sync-utils.ts", "../../../packages/dev-tools/server/dev-tools-http-server.ts", "../../../packages/dev-tools/common/node-request.ts", "../../../packages/dev-tools/common/khulnasoft/khulnasoft-api.ts", "../../../packages/dev-tools/common/khulnasoft/content-ids.ts", "../../../packages/dev-tools/common/khulnasoft/content-generation.ts", "../../../packages/dev-tools/server/khulnasoft-connect.ts", "../../../packages/dev-tools/server/dev-tools-api.ts", "../../../packages/dev-tools/server/client-script.ts", "../../../packages/dev-tools/server/auth.ts", "../../../packages/dev-tools/server/request-handler.ts", "../../../packages/dev-tools/server/create-dev-tools-server.ts", "../../../packages/dev-tools/server/index.ts", "../../../packages/dev-tools/cli/code.ts", "../../../node_modules/is-unicode-supported/index.js", "../../../packages/dev-tools/cli/spinner.ts", "../../../packages/dev-tools/cli/indexing.ts"], "sourcesContent": ["function toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nmodule.exports = function (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n", "'use strict';\n\nconst ESC = '\\x1B';\nconst CSI = `${ESC}[`;\nconst beep = '\\u0007';\n\nconst cursor = {\n to(x, y) {\n if (!y) return `${CSI}${x + 1}G`;\n return `${CSI}${y + 1};${x + 1}H`;\n },\n move(x, y) {\n let ret = '';\n\n if (x < 0) ret += `${CSI}${-x}D`;\n else if (x > 0) ret += `${CSI}${x}C`;\n\n if (y < 0) ret += `${CSI}${-y}A`;\n else if (y > 0) ret += `${CSI}${y}B`;\n\n return ret;\n },\n up: (count = 1) => `${CSI}${count}A`,\n down: (count = 1) => `${CSI}${count}B`,\n forward: (count = 1) => `${CSI}${count}C`,\n backward: (count = 1) => `${CSI}${count}D`,\n nextLine: (count = 1) => `${CSI}E`.repeat(count),\n prevLine: (count = 1) => `${CSI}F`.repeat(count),\n left: `${CSI}G`,\n hide: `${CSI}?25l`,\n show: `${CSI}?25h`,\n save: `${ESC}7`,\n restore: `${ESC}8`\n}\n\nconst scroll = {\n up: (count = 1) => `${CSI}S`.repeat(count),\n down: (count = 1) => `${CSI}T`.repeat(count)\n}\n\nconst erase = {\n screen: `${CSI}2J`,\n up: (count = 1) => `${CSI}1J`.repeat(count),\n down: (count = 1) => `${CSI}J`.repeat(count),\n line: `${CSI}2K`,\n lineEnd: `${CSI}K`,\n lineStart: `${CSI}1K`,\n lines(count) {\n let clear = '';\n for (let i = 0; i < count; i++)\n clear += this.line + (i < count - 1 ? cursor.up() : '');\n if (count)\n clear += cursor.left;\n return clear;\n }\n}\n\nmodule.exports = { cursor, scroll, erase, beep };\n", "let p = process || {}, argv = p.argv || [], env = p.env || {}\nlet isColorSupported =\n\t!(!!env.NO_COLOR || argv.includes(\"--no-color\")) &&\n\t(!!env.FORCE_COLOR || argv.includes(\"--color\") || p.platform === \"win32\" || ((p.stdout || {}).isTTY && env.TERM !== \"dumb\") || !!env.CI)\n\nlet formatter = (open, close, replace = open) =>\n\tinput => {\n\t\tlet string = \"\" + input, index = string.indexOf(close, open.length)\n\t\treturn ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close\n\t}\n\nlet replaceClose = (string, close, replace, index) => {\n\tlet result = \"\", cursor = 0\n\tdo {\n\t\tresult += string.substring(cursor, index) + replace\n\t\tcursor = index + close.length\n\t\tindex = string.indexOf(close, cursor)\n\t} while (~index)\n\treturn result + string.substring(cursor)\n}\n\nlet createColors = (enabled = isColorSupported) => {\n\tlet f = enabled ? formatter : () => String\n\treturn {\n\t\tisColorSupported: enabled,\n\t\treset: f(\"\\x1b[0m\", \"\\x1b[0m\"),\n\t\tbold: f(\"\\x1b[1m\", \"\\x1b[22m\", \"\\x1b[22m\\x1b[1m\"),\n\t\tdim: f(\"\\x1b[2m\", \"\\x1b[22m\", \"\\x1b[22m\\x1b[2m\"),\n\t\titalic: f(\"\\x1b[3m\", \"\\x1b[23m\"),\n\t\tunderline: f(\"\\x1b[4m\", \"\\x1b[24m\"),\n\t\tinverse: f(\"\\x1b[7m\", \"\\x1b[27m\"),\n\t\thidden: f(\"\\x1b[8m\", \"\\x1b[28m\"),\n\t\tstrikethrough: f(\"\\x1b[9m\", \"\\x1b[29m\"),\n\n\t\tblack: f(\"\\x1b[30m\", \"\\x1b[39m\"),\n\t\tred: f(\"\\x1b[31m\", \"\\x1b[39m\"),\n\t\tgreen: f(\"\\x1b[32m\", \"\\x1b[39m\"),\n\t\tyellow: f(\"\\x1b[33m\", \"\\x1b[39m\"),\n\t\tblue: f(\"\\x1b[34m\", \"\\x1b[39m\"),\n\t\tmagenta: f(\"\\x1b[35m\", \"\\x1b[39m\"),\n\t\tcyan: f(\"\\x1b[36m\", \"\\x1b[39m\"),\n\t\twhite: f(\"\\x1b[37m\", \"\\x1b[39m\"),\n\t\tgray: f(\"\\x1b[90m\", \"\\x1b[39m\"),\n\n\t\tbgBlack: f(\"\\x1b[40m\", \"\\x1b[49m\"),\n\t\tbgRed: f(\"\\x1b[41m\", \"\\x1b[49m\"),\n\t\tbgGreen: f(\"\\x1b[42m\", \"\\x1b[49m\"),\n\t\tbgYellow: f(\"\\x1b[43m\", \"\\x1b[49m\"),\n\t\tbgBlue: f(\"\\x1b[44m\", \"\\x1b[49m\"),\n\t\tbgMagenta: f(\"\\x1b[45m\", \"\\x1b[49m\"),\n\t\tbgCyan: f(\"\\x1b[46m\", \"\\x1b[49m\"),\n\t\tbgWhite: f(\"\\x1b[47m\", \"\\x1b[49m\"),\n\n\t\tblackBright: f(\"\\x1b[90m\", \"\\x1b[39m\"),\n\t\tredBright: f(\"\\x1b[91m\", \"\\x1b[39m\"),\n\t\tgreenBright: f(\"\\x1b[92m\", \"\\x1b[39m\"),\n\t\tyellowBright: f(\"\\x1b[93m\", \"\\x1b[39m\"),\n\t\tblueBright: f(\"\\x1b[94m\", \"\\x1b[39m\"),\n\t\tmagentaBright: f(\"\\x1b[95m\", \"\\x1b[39m\"),\n\t\tcyanBright: f(\"\\x1b[96m\", \"\\x1b[39m\"),\n\t\twhiteBright: f(\"\\x1b[97m\", \"\\x1b[39m\"),\n\n\t\tbgBlackBright: f(\"\\x1b[100m\", \"\\x1b[49m\"),\n\t\tbgRedBright: f(\"\\x1b[101m\", \"\\x1b[49m\"),\n\t\tbgGreenBright: f(\"\\x1b[102m\", \"\\x1b[49m\"),\n\t\tbgYellowBright: f(\"\\x1b[103m\", \"\\x1b[49m\"),\n\t\tbgBlueBright: f(\"\\x1b[104m\", \"\\x1b[49m\"),\n\t\tbgMagentaBright: f(\"\\x1b[105m\", \"\\x1b[49m\"),\n\t\tbgCyanBright: f(\"\\x1b[106m\", \"\\x1b[49m\"),\n\t\tbgWhiteBright: f(\"\\x1b[107m\", \"\\x1b[49m\"),\n\t}\n}\n\nmodule.exports = createColors()\nmodule.exports.createColors = createColors\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n\nimport type { PolymorphicEvent, Primitive } from '@sentry/types';\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst objectToString = Object.prototype.toString;\n\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat: unknown): wat is Error {\n switch (objectToString.call(wat)) {\n case '[object Error]':\n case '[object Exception]':\n case '[object DOMException]':\n return true;\n default:\n return isInstanceOf(wat, Error);\n }\n}\n/**\n * Checks whether given value is an instance of the given built-in class.\n *\n * @param wat The value to be checked\n * @param className\n * @returns A boolean representing the result.\n */\nfunction isBuiltin(wat: unknown, className: string): boolean {\n return objectToString.call(wat) === `[object ${className}]`;\n}\n\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat: unknown): boolean {\n return isBuiltin(wat, 'ErrorEvent');\n}\n\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat: unknown): boolean {\n return isBuiltin(wat, 'DOMError');\n}\n\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat: unknown): boolean {\n return isBuiltin(wat, 'DOMException');\n}\n\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat: unknown): wat is string {\n return isBuiltin(wat, 'String');\n}\n\n/**\n * Checks whether given value is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat: unknown): wat is Primitive {\n return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n\n/**\n * Checks whether given value's type is an object literal\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat: unknown): wat is Record<string, unknown> {\n return isBuiltin(wat, 'Object');\n}\n\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat: unknown): wat is PolymorphicEvent {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isElement(wat: unknown): boolean {\n return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat: unknown): wat is RegExp {\n return isBuiltin(wat, 'RegExp');\n}\n\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat: any): wat is PromiseLike<any> {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}\n\n/**\n * Checks whether given value's type is a SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isSyntheticEvent(wat: unknown): boolean {\n return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n\n/**\n * Checks whether given value is NaN\n * {@link isNaN}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isNaN(wat: unknown): boolean {\n return typeof wat === 'number' && wat !== wat;\n}\n\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\nexport function isInstanceOf(wat: any, base: any): boolean {\n try {\n return wat instanceof base;\n } catch (_e) {\n return false;\n }\n}\n\ninterface VueViewModel {\n // Vue3\n __isVue?: boolean;\n // Vue2\n _isVue?: boolean;\n}\n/**\n * Checks whether given value's type is a Vue ViewModel.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isVueViewModel(wat: unknown): boolean {\n // Not using Object.prototype.toString because in Vue 3 it would read the instance's Symbol(Symbol.toStringTag) property.\n return !!(typeof wat === 'object' && wat !== null && ((wat as VueViewModel).__isVue || (wat as VueViewModel)._isVue));\n}\n", "import { isRegExp, isString, isVueViewModel } from './is';\n\nexport { escapeStringForRegex } from './vendor/escapeStringForRegex';\n\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str: string, max: number = 0): string {\n if (typeof str !== 'string' || max === 0) {\n return str;\n }\n return str.length <= max ? str : `${str.slice(0, max)}...`;\n}\n\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line: string, colno: number): string {\n let newLine = line;\n const lineLength = newLine.length;\n if (lineLength <= 150) {\n return newLine;\n }\n if (colno > lineLength) {\n // eslint-disable-next-line no-param-reassign\n colno = lineLength;\n }\n\n let start = Math.max(colno - 60, 0);\n if (start < 5) {\n start = 0;\n }\n\n let end = Math.min(start + 140, lineLength);\n if (end > lineLength - 5) {\n end = lineLength;\n }\n if (end === lineLength) {\n start = Math.max(end - 140, 0);\n }\n\n newLine = newLine.slice(start, end);\n if (start > 0) {\n newLine = `'{snip} ${newLine}`;\n }\n if (end < lineLength) {\n newLine += ' {snip}';\n }\n\n return newLine;\n}\n\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function safeJoin(input: any[], delimiter?: string): string {\n if (!Array.isArray(input)) {\n return '';\n }\n\n const output = [];\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < input.length; i++) {\n const value = input[i];\n try {\n // This is a hack to fix a Vue3-specific bug that causes an infinite loop of\n // console warnings. This happens when a Vue template is rendered with\n // an undeclared variable, which we try to stringify, ultimately causing\n // Vue to issue another warning which repeats indefinitely.\n // see: https://github.com/getsentry/sentry-javascript/pull/8981\n if (isVueViewModel(value)) {\n output.push('[VueViewModel]');\n } else {\n output.push(String(value));\n }\n } catch (e) {\n output.push('[value cannot be serialized]');\n }\n }\n\n return output.join(delimiter);\n}\n\n/**\n * Checks if the given value matches a regex or string\n *\n * @param value The string to test\n * @param pattern Either a regex or a string against which `value` will be matched\n * @param requireExactStringMatch If true, `value` must match `pattern` exactly. If false, `value` will match\n * `pattern` if it contains `pattern`. Only applies to string-type patterns.\n */\nexport function isMatchingPattern(\n value: string,\n pattern: RegExp | string,\n requireExactStringMatch: boolean = false,\n): boolean {\n if (!isString(value)) {\n return false;\n }\n\n if (isRegExp(pattern)) {\n return pattern.test(value);\n }\n if (isString(pattern)) {\n return requireExactStringMatch ? value === pattern : value.includes(pattern);\n }\n\n return false;\n}\n\n/**\n * Test the given string against an array of strings and regexes. By default, string matching is done on a\n * substring-inclusion basis rather than a strict equality basis\n *\n * @param testString The string to test\n * @param patterns The patterns against which to test the string\n * @param requireExactStringMatch If true, `testString` must match one of the given string patterns exactly in order to\n * count. If false, `testString` will match a string pattern if it contains that pattern.\n * @returns\n */\nexport function stringMatchesSomePattern(\n testString: string,\n patterns: Array<string | RegExp> = [],\n requireExactStringMatch: boolean = false,\n): boolean {\n return patterns.some(pattern => isMatchingPattern(testString, pattern, requireExactStringMatch));\n}\n", "import type { Event, EventHint, Exception, ExtendedError, StackParser } from '@sentry/types';\n\nimport { isInstanceOf } from './is';\nimport { truncate } from './string';\n\n/**\n * Creates exceptions inside `event.exception.values` for errors that are nested on properties based on the `key` parameter.\n */\nexport function applyAggregateErrorsToEvent(\n exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n parser: StackParser,\n maxValueLimit: number = 250,\n key: string,\n limit: number,\n event: Event,\n hint?: EventHint,\n): void {\n if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {\n return;\n }\n\n // Generally speaking the last item in `event.exception.values` is the exception originating from the original Error\n const originalException: Exception | undefined =\n event.exception.values.length > 0 ? event.exception.values[event.exception.values.length - 1] : undefined;\n\n // We only create exception grouping if there is an exception in the event.\n if (originalException) {\n event.exception.values = truncateAggregateExceptions(\n aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n hint.originalException as ExtendedError,\n key,\n event.exception.values,\n originalException,\n 0,\n ),\n maxValueLimit,\n );\n }\n}\n\nfunction aggregateExceptionsFromError(\n exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n parser: StackParser,\n limit: number,\n error: ExtendedError,\n key: string,\n prevExceptions: Exception[],\n exce