@lovrabet/rabetbase-cli 2.5.10-beta.5 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
package/lib/constant/region.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ee30b,_0x586890){const _0x10e96a=a280_0x2f68,_0xdc5514=_0x2ee30b();while(!![]){try{const _0x3c28c4=-parseInt(_0x10e96a(0x138))/0x1*(-parseInt(_0x10e96a(0x13f))/0x2)+-parseInt(_0x10e96a(0x13d))/0x3+-parseInt(_0x10e96a(0x13e))/0x4*(parseInt(_0x10e96a(0x13c))/0x5)+parseInt(_0x10e96a(0x13b))/0x6*(parseInt(_0x10e96a(0x135))/0x7)+-parseInt(_0x10e96a(0x136))/0x8+parseInt(_0x10e96a(0x141))/0x9*(-parseInt(_0x10e96a(0x140))/0xa)+-parseInt(_0x10e96a(0x142))/0xb*(-parseInt(_0x10e96a(0x137))/0xc);if(_0x3c28c4===_0x586890)break;else _0xdc5514['push'](_0xdc5514['shift']());}catch(_0x3bd35b){_0xdc5514['push'](_0xdc5514['shift']());}}}(a280_0x4927,0xd0d96));import{DEFAULT_REGION,ENABLED_REGION_VALUES,REGION_ALIASES,REGION_VALUES}from'../generated/official-routing.js';export const LOVRABET_REGION_VALUES=REGION_VALUES;export const ENABLED_LOVRABET_REGION_VALUES=ENABLED_REGION_VALUES;export const DEFAULT_LOVRABET_REGION=DEFAULT_REGION;export function isLovrabetRegion(_0x4f0198){const _0x3b497c=a280_0x2f68;return typeof _0x4f0198===_0x3b497c(0x13a)&&LOVRABET_REGION_VALUES[_0x3b497c(0x139)](_0x4f0198);}export function isEnabledLovrabetRegion(_0x3a5b1c){const _0x593442=a280_0x2f68;return typeof _0x3a5b1c===_0x593442(0x13a)&&ENABLED_LOVRABET_REGION_VALUES[_0x593442(0x139)](_0x3a5b1c);}export function normalizeLovrabetRegion(_0x50a2aa){const _0x540a96=a280_0x2f68;if(typeof _0x50a2aa!==_0x540a96(0x13a))return undefined;const _0x48fa64=REGION_ALIASES[_0x50a2aa]??_0x50a2aa;return isLovrabetRegion(_0x48fa64)?_0x48fa64:undefined;}function a280_0x2f68(_0x6c6e9c,_0x127af5){_0x6c6e9c=_0x6c6e9c-0x135;const _0x49273d=a280_0x4927();let _0x2f684f=_0x49273d[_0x6c6e9c];return _0x2f684f;}function a280_0x4927(){const _0xa1945=['10CSogWu','includes','string','6iOIlws','2215tRLlMl','403728YRjioz','15208DxRAZl','185362JYdjrZ','94060EFiaKI','1107HmEAZH','10962083CWUoBW','8523851Qjllpd','2450904umErmr','24bCMRjt'];a280_0x4927=function(){return _0xa1945;};return a280_0x4927();}export function isInvalidLovrabetRegion(_0x1e4184){return _0x1e4184!==undefined&&_0x1e4184!==null&&_0x1e4184!==''&&normalizeLovrabetRegion(_0x1e4184)===undefined;}
|
package/lib/constant/risk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a281_0x2ad048=a281_0x2175;(function(_0x5f1f6d,_0x16c273){const _0x46a1af=a281_0x2175,_0x495d6d=_0x5f1f6d();while(!![]){try{const _0x25bad4=-parseInt(_0x46a1af(0xf2))/0x1+parseInt(_0x46a1af(0xf3))/0x2*(parseInt(_0x46a1af(0xec))/0x3)+parseInt(_0x46a1af(0xe9))/0x4+-parseInt(_0x46a1af(0xed))/0x5*(parseInt(_0x46a1af(0xea))/0x6)+parseInt(_0x46a1af(0xf0))/0x7+-parseInt(_0x46a1af(0xee))/0x8*(-parseInt(_0x46a1af(0xe7))/0x9)+parseInt(_0x46a1af(0xef))/0xa*(parseInt(_0x46a1af(0xe8))/0xb);if(_0x25bad4===_0x16c273)break;else _0x495d6d['push'](_0x495d6d['shift']());}catch(_0x282b10){_0x495d6d['push'](_0x495d6d['shift']());}}}(a281_0x2e93,0xc36ba));function a281_0x2175(_0x2accc1,_0x324ea9){_0x2accc1=_0x2accc1-0xe7;const _0x2e936a=a281_0x2e93();let _0x217592=_0x2e936a[_0x2accc1];return _0x217592;}function a281_0x2e93(){const _0xfa886d=['1340738aFTaIG','16qtKmcb','read','126FpmvqI','4874199FZtTDe','1788624nPgERB','5466XDwQTH','high-risk-write','427626eTxVrG','6070IfqTKp','564408lQGSRs','10mbvLcI','1601733aBwIMZ','write'];a281_0x2e93=function(){return _0xfa886d;};return a281_0x2e93();}export const RISK_LEVEL_VALUES=[a281_0x2ad048(0xf4),a281_0x2ad048(0xf1),a281_0x2ad048(0xeb)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b51c1,_0x27ab32){const _0xa25f64=a282_0x144b,_0x1abb8a=_0x1b51c1();while(!![]){try{const _0x37f8c2=-parseInt(_0xa25f64(0x173))/0x1+-parseInt(_0xa25f64(0x17a))/0x2+-parseInt(_0xa25f64(0x172))/0x3+-parseInt(_0xa25f64(0x175))/0x4*(parseInt(_0xa25f64(0x176))/0x5)+parseInt(_0xa25f64(0x174))/0x6*(parseInt(_0xa25f64(0x17d))/0x7)+-parseInt(_0xa25f64(0x17c))/0x8+parseInt(_0xa25f64(0x177))/0x9;if(_0x37f8c2===_0x27ab32)break;else _0x1abb8a['push'](_0x1abb8a['shift']());}catch(_0x13a825){_0x1abb8a['push'](_0x1abb8a['shift']());}}}(a282_0x57cf,0x8ebb9));function a282_0x144b(_0x8d8807,_0x27a015){_0x8d8807=_0x8d8807-0x172;const _0x57cfd6=a282_0x57cf();let _0x144bc1=_0x57cfd6[_0x8d8807];return _0x144bc1;}import{OFFICIAL_ROUTING_PROFILES as a282_0x175b85,ROUTING_CATALOG_DIGEST}from'../generated/official-routing.js';export const OFFICIAL_ROUTING_PROFILES=a282_0x175b85;export{ROUTING_CATALOG_DIGEST};function a282_0x57cf(){const _0x41bac9=['lovrabet','5401432ueQFXo','329yAUtMD','cdn','858822UEstbU','53625AJPMGi','44514HnxAid','451048OLeJWT','20uxtfMP','21747654AtlCnT','\x22\x20is\x20not\x20ready:\x20Lovrabet\x20CDN\x20Domain\x20is\x20not\x20configured.','Official\x20routing\x20for\x20region\x20\x22','1428680hUDNUT'];a282_0x57cf=function(){return _0x41bac9;};return a282_0x57cf();}export function getOfficialRoutingProfile(_0x5da448){return OFFICIAL_ROUTING_PROFILES[_0x5da448];}export function getOfficialRoutingCdn(_0x43937f){const _0x42fee4=a282_0x144b,_0x830dcb=getOfficialRoutingProfile(_0x43937f)[_0x42fee4(0x17e)];if(!_0x830dcb[_0x42fee4(0x17b)])throw new Error(_0x42fee4(0x179)+_0x43937f+_0x42fee4(0x178));return{'libraries':_0x830dcb['libraries'],'lovrabet':_0x830dcb[_0x42fee4(0x17b)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a283_0x5b9a(){const _0x575dfd=['ACCESS_KEY','appcode','324401bITQPd','FORMAT','riskLevel','apps','1428220JqEFsj','44264847ImOFTx','locale','string','30730zmTwMT','apiDir','region','3090174adtTVH','2706273DyQnWQ','4LOsqVP','globalConfig','production','format','length','app','accessKey','RISK_LEVEL','1230270BDRyrl','pageSize','daily','object','ENV','env','30LwKGoX','true','12sGrvRU','cookie','keys','trim','high-risk-write','88VaGXuj','write','APP'];a283_0x5b9a=function(){return _0x575dfd;};return a283_0x5b9a();}(function(_0x4f6300,_0x2d8cca){const _0x49ef30=a283_0x4311,_0x3eb4e7=_0x4f6300();while(!![]){try{const _0x3db0e6=parseInt(_0x49ef30(0x1db))/0x1*(-parseInt(_0x49ef30(0x1c6))/0x2)+-parseInt(_0x49ef30(0x1c9))/0x3*(parseInt(_0x49ef30(0x1cb))/0x4)+parseInt(_0x49ef30(0x1d9))/0x5*(-parseInt(_0x49ef30(0x1d3))/0x6)+-parseInt(_0x49ef30(0x1be))/0x7*(parseInt(_0x49ef30(0x1e0))/0x8)+-parseInt(_0x49ef30(0x1ca))/0x9+-parseInt(_0x49ef30(0x1c2))/0xa+parseInt(_0x49ef30(0x1c3))/0xb;if(_0x3db0e6===_0x2d8cca)break;else _0x3eb4e7['push'](_0x3eb4e7['shift']());}catch(_0x9444f0){_0x3eb4e7['push'](_0x3eb4e7['shift']());}}}(a283_0x5b9a,0x98d9d));import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{isDaily,normalizeEnv}from'../constant/env.js';import{normalizeLegacyOutputFormat,riskLevelOrder}from'../framework/types.js';import{DEFAULT_LOVRABET_REGION,normalizeLovrabetRegion}from'../constant/region.js';import{selectConfiguredRegion}from'../config/region-config.js';function stringConfigValue(_0x5974c4){const _0x1c275b=a283_0x4311;return typeof _0x5974c4===_0x1c275b(0x1c5)&&_0x5974c4[_0x1c275b(0x1de)]()?_0x5974c4['trim']():undefined;}function appProfiles(_0x41bebe){const _0x3c4651=a283_0x4311;return _0x41bebe[_0x3c4651(0x1c1)]&&typeof _0x41bebe[_0x3c4651(0x1c1)]==='object'?_0x41bebe[_0x3c4651(0x1c1)]:{};}function resolveDefaultAppName(_0x9554c){const _0x4b76ee=a283_0x4311,_0x3e72df=stringConfigValue(_0x9554c['defaultApp']);if(_0x3e72df)return _0x3e72df;const _0x4326c6=Object[_0x4b76ee(0x1dd)](appProfiles(_0x9554c));return _0x4326c6[_0x4b76ee(0x1cf)]===0x1?_0x4326c6[0x0]:undefined;}function a283_0x4311(_0x2ad080,_0x44f0db){_0x2ad080=_0x2ad080-0x1bc;const _0x5b9a9d=a283_0x5b9a();let _0x43118d=_0x5b9a9d[_0x2ad080];return _0x43118d;}function resolveTopLevelAppCode(_0x335434){const _0x145697=a283_0x4311;return stringConfigValue(_0x335434[_0x145697(0x1bd)])||stringConfigValue(_0x335434['app']);}function normalizeRiskCeiling(_0x4034b0){const _0x10c8fe=a283_0x4311;if(_0x4034b0===undefined||_0x4034b0===null)return undefined;if(_0x4034b0==='read'||_0x4034b0===_0x10c8fe(0x1e1)||_0x4034b0===_0x10c8fe(0x1df))return _0x4034b0;return'read';}function resolveRiskCeiling(..._0x159f6c){const _0x26aef9=a283_0x4311;let _0x2f4d17;for(const _0x35b30f of _0x159f6c){const _0x47feec=normalizeRiskCeiling(_0x35b30f);_0x47feec&&(!_0x2f4d17||riskLevelOrder(_0x47feec)<riskLevelOrder(_0x2f4d17))&&(_0x2f4d17=_0x47feec);}return _0x2f4d17??DEFAULT_CONFIG_VALUES[_0x26aef9(0x1c0)];}export function resolveAppConfig({raw:_0x233e10,flags:_0x4fb917,layers:_0x310562,readEnv:_0x52b90e}){const _0x96f76f=a283_0x4311,_0x46d510=_0x310562?.['projectConfig']??{},_0x250d5f=_0x310562?.[_0x96f76f(0x1cc)]??{},_0x1a6dca=!!_0x310562?.['projectPath']||Object[_0x96f76f(0x1dd)](_0x46d510)[_0x96f76f(0x1cf)]>0x0,_0x27b707=!_0x1a6dca,_0x5dc8f3=_0x1a6dca?resolveDefaultAppName(_0x46d510):undefined,_0x510502=_0x27b707?resolveDefaultAppName(_0x250d5f):undefined,_0x385f1a=stringConfigValue(_0x4fb917[_0x96f76f(0x1d0)]),_0x52d444=_0x52b90e(_0x96f76f(0x1e2)),_0x4d585d={};if(_0x233e10[_0x96f76f(0x1c1)]&&typeof _0x233e10[_0x96f76f(0x1c1)]===_0x96f76f(0x1d6))for(const [_0x2ebf96,_0x43f342]of Object['entries'](_0x233e10[_0x96f76f(0x1c1)])){_0x43f342&&typeof _0x43f342===_0x96f76f(0x1d6)&&_0x43f342[_0x96f76f(0x1bd)]&&(_0x4d585d[_0x2ebf96]=_0x43f342);}const _0x487ee0=_0x5dc8f3||_0x510502||resolveDefaultAppName(_0x233e10),_0x300536=Object[_0x96f76f(0x1dd)](_0x4d585d)[_0x96f76f(0x1cf)]>0x0,_0x1f5e7f=_0x385f1a||_0x5dc8f3||_0x52d444||_0x510502||_0x487ee0||undefined,_0x5dda28=stringConfigValue(_0x4fb917[_0x96f76f(0x1bd)]),_0x372909=_0x5dda28?Object['entries'](_0x4d585d)['filter'](([,_0x215991])=>_0x215991?.[_0x96f76f(0x1bd)]===_0x5dda28):[],_0x1fc950=_0x385f1a&&_0x4d585d[_0x385f1a]?.[_0x96f76f(0x1bd)]===_0x5dda28?[_0x385f1a,_0x4d585d[_0x385f1a]]:undefined,_0x3d7971=_0x1fc950??(_0x372909[_0x96f76f(0x1cf)]===0x1?_0x372909[0x0]:undefined),_0x197a73=_0x3d7971?.[0x0],_0x4a766f=_0x3d7971?.[0x1],_0x449577=_0x5dda28?_0x197a73:_0x1f5e7f;let _0xbf0cd=_0x449577&&_0x4d585d[_0x449577]?_0x4d585d[_0x449577]:undefined;_0x5dda28&&_0x4a766f&&(_0xbf0cd=_0x4a766f);const _0x531c23=_0x5dda28?_0x4a766f??_0xbf0cd:_0xbf0cd,_0x356875=!_0x385f1a&&!_0x5dc8f3&&_0x52d444&&_0x449577===_0x52d444,_0x160acd=_0x385f1a||(_0x356875?_0x52d444:undefined)||(_0x5dda28?_0x197a73:undefined),_0x435599=_0x531c23?.[_0x96f76f(0x1bd)],_0x4e0bca=_0x1a6dca?resolveTopLevelAppCode(_0x46d510):undefined,_0x3df0d1=_0x27b707?resolveTopLevelAppCode(_0x250d5f):undefined,_0x41dbec=_0x385f1a||_0x5dc8f3?_0x435599:undefined,_0x5cecf9=!_0x385f1a&&!_0x5dc8f3?_0x435599:undefined,_0x338bd6=_0x5dda28||_0x41dbec||_0x4e0bca||_0x5cecf9||_0x3df0d1||undefined,_0x389a31=_0x1a6dca?stringConfigValue(_0x46d510[_0x96f76f(0x1d8)]):undefined,_0x11c315=_0x27b707?stringConfigValue(_0x250d5f[_0x96f76f(0x1d8)]):undefined,_0x2d404b=_0x4fb917[_0x96f76f(0x1d8)]||_0x531c23?.[_0x96f76f(0x1d8)]||_0x389a31||_0x52b90e(_0x96f76f(0x1d7))||_0x11c315||_0x233e10[_0x96f76f(0x1d8)]||DEFAULT_CONFIG_VALUES[_0x96f76f(0x1d8)],_0x122afc=_0x531c23?.[_0x96f76f(0x1c4)]||_0x233e10[_0x96f76f(0x1c4)]||DEFAULT_CONFIG_VALUES[_0x96f76f(0x1c4)],_0x4ecbbb=_0x52b90e('COOKIE')||_0x531c23?.[_0x96f76f(0x1dc)]||_0x233e10[_0x96f76f(0x1dc)]||undefined,_0x4bee90=_0x52b90e(_0x96f76f(0x1bc))||_0x531c23?.['accessKey']||_0x233e10[_0x96f76f(0x1d1)]||undefined,_0x3fdcdd=_0x4fb917[_0x96f76f(0x1ce)]||_0x52b90e(_0x96f76f(0x1bf))||_0x531c23?.['format']||_0x233e10[_0x96f76f(0x1ce)],_0x4925cc=normalizeLegacyOutputFormat(_0x3fdcdd),_0x3bd3aa=_0x52b90e('PAGE_SIZE')||_0x531c23?.[_0x96f76f(0x1d4)]||_0x233e10[_0x96f76f(0x1d4)],_0x4f6285=_0x3bd3aa?Number(_0x3bd3aa)||undefined:undefined,_0x219417=_0x310562?[_0x310562[_0x96f76f(0x1cc)]['riskLevel'],_0x310562['projectConfig'][_0x96f76f(0x1c0)]]:[_0x233e10['riskLevel']],_0x43fde4=resolveRiskCeiling(..._0x219417,_0x531c23?.['riskLevel']),_0x1e3330=resolveRiskCeiling(_0x43fde4,_0x52b90e(_0x96f76f(0x1d2))),_0x589ced=_0x52b90e('VERBOSE'),_0x334d55=_0x589ced==='1'||_0x589ced===_0x96f76f(0x1da),_0x53e5b4=_0x531c23?.['apiDir']||_0x233e10[_0x96f76f(0x1c7)]||DEFAULT_CONFIG_VALUES[_0x96f76f(0x1c7)],_0x30095e=selectConfiguredRegion({'appRegion':_0x531c23?.[_0x96f76f(0x1c8)],'projectRegion':_0x1a6dca?_0x46d510[_0x96f76f(0x1c8)]:undefined,'globalRegion':_0x1a6dca||_0x27b707?_0x250d5f[_0x96f76f(0x1c8)]:undefined,'mergedRegion':_0x233e10[_0x96f76f(0x1c8)]}),_0x1d6636=normalizeLovrabetRegion(_0x30095e['value'])??DEFAULT_LOVRABET_REGION,_0x4c65c8=isDaily(normalizeEnv(String(_0x2d404b)))?_0x96f76f(0x1d5):_0x96f76f(0x1cd);return{'appCode':typeof _0x338bd6===_0x96f76f(0x1c5)&&_0x338bd6[_0x96f76f(0x1de)]()?_0x338bd6[_0x96f76f(0x1de)]():undefined,'region':_0x1d6636,'regionConfiguredValue':_0x30095e['value'],'regionSource':_0x30095e['source'],'env':_0x4c65c8,'locale':_0x122afc,'cookie':_0x4ecbbb,'accessKey':_0x4bee90,'format':_0x4925cc,'pageSize':_0x4f6285,'riskLevel':_0x1e3330,'verbose':_0x334d55,'apiDir':_0x53e5b4,'apps':_0x4d585d,'defaultApp':_0x487ee0,'currentApp':_0x300536?_0x449577:undefined,'explicitAppName':_0x160acd};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x27860d,_0x4fcdbb){const _0x1eb66a=a284_0x5604,_0x421eec=_0x27860d();while(!![]){try{const _0x1ad493=-parseInt(_0x1eb66a(0xbd))/0x1+-parseInt(_0x1eb66a(0xba))/0x2+parseInt(_0x1eb66a(0xb8))/0x3*(parseInt(_0x1eb66a(0xbe))/0x4)+-parseInt(_0x1eb66a(0xb9))/0x5+parseInt(_0x1eb66a(0xbb))/0x6+-parseInt(_0x1eb66a(0xb7))/0x7*(-parseInt(_0x1eb66a(0xbc))/0x8)+parseInt(_0x1eb66a(0xb6))/0x9;if(_0x1ad493===_0x4fcdbb)break;else _0x421eec['push'](_0x421eec['shift']());}catch(_0x3406c6){_0x421eec['push'](_0x421eec['shift']());}}}(a284_0x25e0,0xea4b0));function a284_0x25e0(){const _0x1c1ad8=['5494040IqFWDp','3594558oKmqov','7618752bwuFsN','8yrsKWj','301968UCxxDy','1026412kmttNm','../auth/get-cookie.js','19893447AGhNPV','1150366vLJVek','6PbcrYG'];a284_0x25e0=function(){return _0x1c1ad8;};return a284_0x25e0();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{CliErrors}from'../errors.js';function a284_0x5604(_0x5d619d,_0x4f7e5f){_0x5d619d=_0x5d619d-0xb6;const _0x25e0ef=a284_0x25e0();let _0x5604ba=_0x25e0ef[_0x5d619d];return _0x5604ba;}export async function buildAuth(_0x19e4ac){const _0x4aa0d6=a284_0x5604,{getCookie:_0x27035}=await import(_0x4aa0d6(0xbf)),_0x489aef=_0x19e4ac['cookie']||_0x27035(),_0x3429f1=_0x489aef?await getIsSessionValid():![];return{'cookie':_0x489aef,'isLoggedIn':_0x3429f1,async 'getOrLogin'(){if(_0x489aef&&_0x3429f1)return _0x489aef;throw CliErrors['authRequired']();}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a285_0xa8c00b=a285_0x4cf2;(function(_0x2ac24b,_0x1d4c30){const _0x32d5d2=a285_0x4cf2,_0x4355d3=_0x2ac24b();while(!![]){try{const _0x250de9=-parseInt(_0x32d5d2(0x184))/0x1*(-parseInt(_0x32d5d2(0x15e))/0x2)+-parseInt(_0x32d5d2(0x171))/0x3*(-parseInt(_0x32d5d2(0x170))/0x4)+-parseInt(_0x32d5d2(0x16c))/0x5+-parseInt(_0x32d5d2(0x17e))/0x6*(parseInt(_0x32d5d2(0x14f))/0x7)+-parseInt(_0x32d5d2(0x158))/0x8+parseInt(_0x32d5d2(0x175))/0x9*(-parseInt(_0x32d5d2(0x14c))/0xa)+-parseInt(_0x32d5d2(0x179))/0xb*(-parseInt(_0x32d5d2(0x161))/0xc);if(_0x250de9===_0x1d4c30)break;else _0x4355d3['push'](_0x4355d3['shift']());}catch(_0x13f157){_0x4355d3['push'](_0x4355d3['shift']());}}}(a285_0xc166,0xc60a1));import{existsSync,mkdirSync,readFileSync,renameSync,unlinkSync,writeFileSync}from'node:fs';function a285_0x4cf2(_0x5874a6,_0x4f55c9){_0x5874a6=_0x5874a6-0x14c;const _0xc166f8=a285_0xc166();let _0x4cf2e1=_0xc166f8[_0x5874a6];return _0x4cf2e1;}import{dirname,parse,resolve}from'node:path';import{homedir}from'node:os';import{CLI_BIN_NAME}from'../constant/cli.js';import{normalizeConfigForWrite}from'../config/schema.js';export const NEW_CONFIG_NAME='.rabetbase.json';export const CONFIG_NAMES=[NEW_CONFIG_NAME];const normalizedWriteCache=new Map();export function resolveConfigPath(_0x1f7f8d){for(const _0x226fb9 of CONFIG_NAMES){const _0x5d4649=resolve(_0x1f7f8d,_0x226fb9);if(existsSync(_0x5d4649))return _0x5d4649;}return undefined;}export function findProjectRootDirectory(_0x590eb9=process[a285_0xa8c00b(0x165)]()){let _0x4844fb=resolve(_0x590eb9);const {root:_0x524e13}=parse(_0x4844fb),_0x3cd6cd=homedir();while(!![]){if(resolveConfigPath(_0x4844fb)){if(_0x4844fb===_0x3cd6cd)break;return _0x4844fb;}if(_0x4844fb===_0x524e13||_0x4844fb===_0x3cd6cd)break;const _0x570548=dirname(_0x4844fb);if(_0x570548===_0x4844fb)break;_0x4844fb=_0x570548;}return resolve(_0x590eb9);}function a285_0xc166(){const _0x38439f=['169652pgTZOO','12GuKOSJ','inherit','trim','cookie','2524509lIggwI','locale','length','certificateDomain','648307dWfjBK','userDomain','Project','accessKey','kbDomain','79644FjCLdQ','keys','missing','data','\x0a\x20\x20','empty','5Ouhjml','region','localDomain','50WqSqEt','projectPath','riskLevel','413CGpecJ','\x20config\x20file\x20ignored\x20(invalid\x20JSON\x20or\x20unreadable):\x20','project','Global','apps','message','format','error','kbServiceDomain','8518072qZXsKk','skillDomain','apiDomain','silent','defaultApp','runtimeDomain','193498NAvzVC','config','apiDir','1020oDElPd','stringify','status','pageSize','cwd','env','utf8','warn','appDomain','.tmp','object','8007215jzkxpn','set','appcode','routing'];a285_0xc166=function(){return _0x38439f;};return a285_0xc166();}export function getProjectConfigPath(){const _0x1002f4=a285_0xa8c00b;return resolveConfigPath(process[_0x1002f4(0x165)]());}export function getGlobalConfigPath(){return resolveConfigPath(homedir());}export function isInProject(){return!!getProjectConfigPath();}export function inspectCliConfigJsonFile(_0x1ce9d6){const _0x25a70e=a285_0xa8c00b;if(!existsSync(_0x1ce9d6))return{'status':_0x25a70e(0x180)};try{const _0x529bb1=readFileSync(_0x1ce9d6,{'encoding':_0x25a70e(0x167)});if(!_0x529bb1?.[_0x25a70e(0x173)]())return{'status':_0x25a70e(0x183)};const _0xc18e62=JSON['parse'](_0x529bb1);return{'status':'ok','data':_0xc18e62};}catch(_0x408309){return{'status':'error','message':_0x408309 instanceof Error?_0x408309[_0x25a70e(0x154)]:String(_0x408309)};}}function parseCliConfigJsonFile(_0x24986e,_0x4d0ce0,_0x44f56c){const _0x3b8b30=a285_0xa8c00b,_0x2caf8c=inspectCliConfigJsonFile(_0x24986e);if(_0x2caf8c[_0x3b8b30(0x163)]===_0x3b8b30(0x180)||_0x2caf8c[_0x3b8b30(0x163)]===_0x3b8b30(0x183))return{};if(_0x2caf8c[_0x3b8b30(0x163)]==='ok')return _0x2caf8c[_0x3b8b30(0x181)];return _0x4d0ce0===_0x3b8b30(0x168)&&_0x44f56c&&console[_0x3b8b30(0x156)](CLI_BIN_NAME+':\x20'+_0x44f56c+_0x3b8b30(0x150)+_0x24986e+_0x3b8b30(0x182)+_0x2caf8c[_0x3b8b30(0x154)]),{};}function normalizeLegacyConfigShape(_0x1d6172){const _0x1368e=a285_0xa8c00b;if(!_0x1d6172||typeof _0x1d6172!==_0x1368e(0x16b))return{'config':{},'migrated':![]};const _0x29c61c={..._0x1d6172},_0x29baff=_0x29c61c['apps']&&typeof _0x29c61c[_0x1368e(0x153)]===_0x1368e(0x16b)?{..._0x29c61c[_0x1368e(0x153)]}:{},_0x266b7d=Object[_0x1368e(0x17f)](_0x29baff)[_0x1368e(0x177)],_0x55cced=_0x29c61c[_0x1368e(0x16e)]||_0x29c61c['app'];let _0xbf51bd=![];if(_0x55cced&&_0x266b7d===0x0){const _0x3bbfec=typeof _0x29c61c[_0x1368e(0x15c)]==='string'&&_0x29c61c[_0x1368e(0x15c)][_0x1368e(0x173)]()?_0x29c61c['defaultApp']:String(_0x55cced)[_0x1368e(0x173)]();_0x29baff[_0x3bbfec]={'appcode':String(_0x55cced)[_0x1368e(0x173)](),..._0x29c61c['env']!=null?{'env':_0x29c61c[_0x1368e(0x166)]}:{},..._0x29c61c['apiDir']!=null?{'apiDir':_0x29c61c[_0x1368e(0x160)]}:{},..._0x29c61c[_0x1368e(0x174)]!=null?{'cookie':_0x29c61c[_0x1368e(0x174)]}:{},..._0x29c61c['accessKey']!=null?{'accessKey':_0x29c61c[_0x1368e(0x17c)]}:{},..._0x29c61c['format']!=null?{'format':_0x29c61c['format']}:{},..._0x29c61c['pageSize']!=null?{'pageSize':_0x29c61c[_0x1368e(0x164)]}:{},..._0x29c61c[_0x1368e(0x14e)]!=null?{'riskLevel':_0x29c61c[_0x1368e(0x14e)]}:{},..._0x29c61c[_0x1368e(0x176)]!=null?{'locale':_0x29c61c[_0x1368e(0x176)]}:{}},_0x29c61c['apps']=_0x29baff,delete _0x29c61c[_0x1368e(0x15c)],_0xbf51bd=!![];}return(_0x1368e(0x16e)in _0x29c61c||'app'in _0x29c61c)&&(delete _0x29c61c['appcode'],delete _0x29c61c['app'],_0xbf51bd=!![]),{'config':_0x29c61c,'migrated':_0xbf51bd};}function writeNormalizedConfigIfNeeded(_0x4be2c2,_0x3511f2){const _0x49bc2b=a285_0xa8c00b,_0x85301b=JSON[_0x49bc2b(0x162)](normalizeConfigForWrite(_0x3511f2),null,0x2)+'\x0a';if(normalizedWriteCache['get'](_0x4be2c2)===_0x85301b)return;writeConfigFile(_0x4be2c2,_0x3511f2),normalizedWriteCache[_0x49bc2b(0x16d)](_0x4be2c2,_0x85301b);}function parseAndNormalizeConfig(_0xf61cc2,_0x9f1379,_0x45f221){const _0x247d44=a285_0xa8c00b,_0x56391c=parseCliConfigJsonFile(_0xf61cc2,_0x9f1379,_0x45f221),_0x580b8e=normalizeLegacyConfigShape(_0x56391c);if(_0x580b8e['migrated'])try{writeNormalizedConfigIfNeeded(_0xf61cc2,_0x580b8e[_0x247d44(0x15f)]);}catch{}return _0x580b8e[_0x247d44(0x15f)];}export function loadRawConfigLayers(_0x33a3a2){const _0xbe5036=a285_0xa8c00b;let _0x88350f={},_0x378862={};const _0x2e363c=resolveConfigPath(homedir());_0x2e363c&&(_0x88350f=parseAndNormalizeConfig(_0x2e363c,_0xbe5036(0x168),_0xbe5036(0x152)));const _0x561e7d=_0x33a3a2??findProjectRootDirectory(),_0x14a311=resolveConfigPath(_0x561e7d);return _0x14a311&&(_0x378862=parseAndNormalizeConfig(_0x14a311,_0xbe5036(0x168),_0xbe5036(0x17b))),{'globalPath':_0x2e363c,'projectPath':_0x14a311,'globalConfig':_0x88350f,'projectConfig':_0x378862};}const INHERIT_WHITELIST=[a285_0xa8c00b(0x174),a285_0xa8c00b(0x17c),'locale',a285_0xa8c00b(0x155),a285_0xa8c00b(0x14e),a285_0xa8c00b(0x164),a285_0xa8c00b(0x185),a285_0xa8c00b(0x16f),a285_0xa8c00b(0x17a),a285_0xa8c00b(0x15a),a285_0xa8c00b(0x15d),a285_0xa8c00b(0x159),a285_0xa8c00b(0x17d),a285_0xa8c00b(0x157),a285_0xa8c00b(0x169),a285_0xa8c00b(0x186),a285_0xa8c00b(0x178)];export function mergeRawConfigLayers(_0x33472d){const _0x517d4c=a285_0xa8c00b,{globalConfig:_0x84baa3,projectConfig:_0x4bddbb}=_0x33472d,_0x2fb44a=!!_0x33472d[_0x517d4c(0x14d)]||Object[_0x517d4c(0x17f)](_0x4bddbb)[_0x517d4c(0x177)]>0x0;if(!_0x2fb44a)return mergeGlobalOnly(_0x84baa3);return mergeProjectFirst(_0x84baa3,_0x4bddbb);}function mergeGlobalOnly(_0x1da7b9){const _0x43d3ae=a285_0xa8c00b,_0x2ce2d2={..._0x1da7b9};delete _0x2ce2d2[_0x43d3ae(0x172)];const _0x5f0541=_0x1da7b9[_0x43d3ae(0x153)]&&typeof _0x1da7b9[_0x43d3ae(0x153)]===_0x43d3ae(0x16b)?_0x1da7b9['apps']:{};if(Object[_0x43d3ae(0x17f)](_0x5f0541)[_0x43d3ae(0x177)]>0x0)_0x2ce2d2['apps']=_0x5f0541;if(_0x1da7b9[_0x43d3ae(0x15c)])_0x2ce2d2[_0x43d3ae(0x15c)]=_0x1da7b9['defaultApp'];return _0x2ce2d2;}function mergeProjectFirst(_0x468f93,_0x2b0a0b){const _0x4657f7=a285_0xa8c00b,_0x161933={..._0x2b0a0b};delete _0x161933[_0x4657f7(0x172)];for(const _0x296986 of INHERIT_WHITELIST){!(_0x296986 in _0x161933)&&_0x296986 in _0x468f93&&(_0x161933[_0x296986]=_0x468f93[_0x296986]);}const _0x1f489e=_0x2b0a0b['apps']&&typeof _0x2b0a0b[_0x4657f7(0x153)]===_0x4657f7(0x16b)?_0x2b0a0b['apps']:{};return Object[_0x4657f7(0x17f)](_0x1f489e)['length']>0x0?_0x161933['apps']=_0x1f489e:delete _0x161933[_0x4657f7(0x153)],'defaultApp'in _0x2b0a0b?_0x161933[_0x4657f7(0x15c)]=_0x2b0a0b[_0x4657f7(0x15c)]:delete _0x161933[_0x4657f7(0x15c)],_0x161933;}export function readRawConfigWithLayers(_0x1808a1){const _0x5f3de8=loadRawConfigLayers(_0x1808a1);return{'config':mergeRawConfigLayers(_0x5f3de8),'layers':_0x5f3de8};}export function readRawConfig(_0x26a15d){return mergeRawConfigLayers(loadRawConfigLayers(_0x26a15d));}export function readConfigFile(_0x50511e){const _0x417887=a285_0xa8c00b;return parseAndNormalizeConfig(_0x50511e,_0x417887(0x15b));}export function writeConfigFile(_0x1e5751,_0x5c7327){const _0x6422dd=a285_0xa8c00b,_0x2ee6df=dirname(_0x1e5751);!existsSync(_0x2ee6df)&&mkdirSync(_0x2ee6df,{'recursive':!![]});const _0x51a595=_0x1e5751+_0x6422dd(0x16a);try{const _0x127db7=normalizeConfigForWrite(_0x5c7327);writeFileSync(_0x51a595,JSON['stringify'](_0x127db7,null,0x2)+'\x0a',{'encoding':_0x6422dd(0x167),'mode':0x180}),renameSync(_0x51a595,_0x1e5751);}catch(_0x4fedcb){try{unlinkSync(_0x51a595);}catch{}throw _0x4fedcb;}}export function resolveWriteConfigPath(_0x3ec895){const _0x408839=a285_0xa8c00b,_0x56c062=_0x3ec895===_0x408839(0x151)?process[_0x408839(0x165)]():homedir(),_0x1f564b=resolveConfigPath(_0x56c062);return _0x1f564b??resolve(_0x56c062,NEW_CONFIG_NAME);}
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a286_0x58056b=a286_0x3875;(function(_0x5cbd15,_0x352890){const _0x1bfa71=a286_0x3875,_0x5e32a3=_0x5cbd15();while(!![]){try{const _0x283b33=parseInt(_0x1bfa71(0x214))/0x1+-parseInt(_0x1bfa71(0x1df))/0x2+parseInt(_0x1bfa71(0x1e9))/0x3+-parseInt(_0x1bfa71(0x1e8))/0x4+parseInt(_0x1bfa71(0x1e0))/0x5*(parseInt(_0x1bfa71(0x1e7))/0x6)+parseInt(_0x1bfa71(0x1f0))/0x7+-parseInt(_0x1bfa71(0x204))/0x8*(parseInt(_0x1bfa71(0x1ed))/0x9);if(_0x283b33===_0x352890)break;else _0x5e32a3['push'](_0x5e32a3['shift']());}catch(_0x3452fd){_0x5e32a3['push'](_0x5e32a3['shift']());}}}(a286_0x386c,0x3a3a7));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';function a286_0x386c(){const _0xcf7411=['routing','raw','95466NkcuAz','1019640zVHQzh','1082619UbiAlA','filePath','appDomain','apiGroup','861453dKjtrV','setRawCommand','values','1928710scqQxC','replace','project','keys','hasOwnProperty','./utils/is-non-interactive.js','env','apps','configuredRegion','cookie','cwd','globalConfig','app\x20profile\x20\x22','regionConfiguredValue','config','prototype','filter','length','doctor','agentDomain','16OlgaGV','argv','name','merged','join','daily','Rabetbase\x20configuration','global\x20Rabetbase\x20configuration','call','currentApp','some','./constant/env.js','apiDomain','routingConfig','./constant/domain.js','object','34420lLmzTa','kbServiceDomain','domains','regionSource','userDomain','certificateDomain','source','skillHubDomain','entries','appcode','string','slice','https://g.lovrabet.com/dist/lovrabet-skill','setLogPath','project\x20Rabetbase\x20configuration','region','trim','map','localDomain','platformDomain','kbDomain','skillDomain','global','regionLocation','template_base_url','apiDir','projectConfig','67418grUlqX','15ZAHLym','targetEnv','defaultApp','app','runtimeDomain'];a286_0x386c=function(){return _0xcf7411;};return a286_0x386c();}import{resolveApiModelSource}from'./api/model-source.js';export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x42716f){return process.env[`RABETBASE_${_0x42716f}`]||process.env[`LOVRABET_${_0x42716f}`]||undefined;}function optionalString(_0x458196){const _0x58e2b9=a286_0x3875;return typeof _0x458196==='string'&&_0x458196['trim']()?_0x458196[_0x58e2b9(0x224)]():undefined;}export function isRoutingRecoveryService(_0x20b96f){const _0x3cfdd7=a286_0x3875;return _0x20b96f===_0x3cfdd7(0x1fe)||_0x20b96f===_0x3cfdd7(0x202);}export async function createContext(_0x313af7){const _0x376150=a286_0x3875,{config:_0x5d2666,layers:_0x3a39d8}=readRawConfigWithLayers(),_0x2f5160=buildConfig(_0x5d2666,_0x313af7,_0x3a39d8);await initGlobalEnvironment(_0x2f5160);const {getUserDomain:_0x24e575,getApiDomain:_0x8a17e8}=await import(_0x376150(0x212)),_0x4cf558={'apiDomain':_0x8a17e8(),'userDomain':_0x24e575()},_0x49464a=await buildAuth(_0x2f5160);logger[_0x376150(0x221)](process[_0x376150(0x1fa)]());const _0x21adf7=(CLI_BIN_NAME+'\x20'+process[_0x376150(0x205)][_0x376150(0x21f)](0x2)[_0x376150(0x208)]('\x20'))[_0x376150(0x224)]();logger[_0x376150(0x1ee)](_0x21adf7);const {isNonInteractive:_0x4c2715}=await import(_0x376150(0x1f5)),_0x2c9073=_0x4c2715(_0x313af7);return{'config':_0x2f5160,'auth':_0x49464a,'logger':logger,'env':_0x4cf558,'nonInteractive':_0x2c9073};}export function buildConfigFromFlags(_0x2e9165){const {config:_0x41da2d,layers:_0x9c3e15}=readRawConfigWithLayers();return buildConfig(_0x41da2d,_0x2e9165,_0x9c3e15);}export async function initGlobalEnvironment(_0x1f75b2){const _0x542dc9=a286_0x3875,_0x5e75f2=_0x1f75b2[_0x542dc9(0x217)]===_0x542dc9(0x1e3)&&_0x1f75b2['currentApp']?_0x542dc9(0x1fc)+_0x1f75b2[_0x542dc9(0x20d)]+'\x22':_0x1f75b2[_0x542dc9(0x217)]==='project'?_0x542dc9(0x222):_0x1f75b2['regionSource']===_0x542dc9(0x1da)?_0x542dc9(0x20b):_0x542dc9(0x20a);await initConfiguredEnvironment({'raw':_0x1f75b2[_0x542dc9(0x1e6)],'configuredRegion':_0x1f75b2[_0x542dc9(0x1fd)]??_0x1f75b2[_0x542dc9(0x1e6)]?.[_0x542dc9(0x223)]??_0x1f75b2[_0x542dc9(0x223)],'regionLocation':_0x5e75f2,'targetEnv':_0x1f75b2[_0x542dc9(0x1f6)]});}async function initConfiguredEnvironment(_0x4be705){const _0x2de10b=a286_0x3875,_0x53743e=resolveConfiguredRegion(_0x4be705[_0x2de10b(0x1f8)],_0x4be705[_0x2de10b(0x1db)]),_0x557e0a=resolveEnterpriseRoutingManifest(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1e5)]),_0x137591={'region':_0x53743e,'apiDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x210)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x210)]),'userDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x218)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x218)]),'runtimeDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x1e4)]:optionalString(_0x4be705['raw']?.['runtimeDomain']),'skillDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x1d9)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d9)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x21b)])||optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x203)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x1d7)]),'kbDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x1d8)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d8)])||optionalString(_0x4be705['raw']?.[_0x2de10b(0x203)])||optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1d7)]),'kbServiceDomain':_0x557e0a?_0x557e0a['domains']['kbServiceDomain']:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x215)]),'appDomain':_0x557e0a?_0x557e0a['domains'][_0x2de10b(0x1eb)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x1eb)]),'localDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x226)]:optionalString(_0x4be705[_0x2de10b(0x1e6)]?.[_0x2de10b(0x226)]),'certificateDomain':_0x557e0a?_0x557e0a[_0x2de10b(0x216)][_0x2de10b(0x219)]:optionalString(_0x4be705['raw']?.[_0x2de10b(0x219)]),'cdn':_0x557e0a?.['cdn'],'allowOfficialKbServiceDefault':!(_0x557e0a!==undefined||['apiDomain','userDomain',_0x2de10b(0x1e4),_0x2de10b(0x1d9),_0x2de10b(0x21b),_0x2de10b(0x1d8),'kbServiceDomain',_0x2de10b(0x203),'platformDomain','appDomain',_0x2de10b(0x226),_0x2de10b(0x219)][_0x2de10b(0x20e)](_0x3b7571=>Object['prototype'][_0x2de10b(0x1f4)][_0x2de10b(0x20c)](_0x4be705[_0x2de10b(0x1e6)]??{},_0x3b7571)))},{initEnv:_0x5956ea}=await import(_0x2de10b(0x20f)),{initDomains:_0x4c63fc}=await import(_0x2de10b(0x212));_0x5956ea(_0x4be705[_0x2de10b(0x1e1)]),_0x4c63fc(_0x137591);}export async function initMultiAppEnvironment(_0xd6552e){const _0x4268d0=a286_0x3875;await initConfiguredEnvironment({'raw':_0xd6552e[_0x4268d0(0x211)],'configuredRegion':_0xd6552e['region'],'regionLocation':_0x4268d0(0x1fc)+_0xd6552e[_0x4268d0(0x206)]+'\x22','targetEnv':_0xd6552e[_0x4268d0(0x1f6)]===_0x4268d0(0x209)?'daily':'production'});}function a286_0x3875(_0x11b9e2,_0x4a21b7){_0x11b9e2=_0x11b9e2-0x1d7;const _0x386c2e=a286_0x386c();let _0x38756c=_0x386c2e[_0x11b9e2];return _0x38756c;}export function getConfigAppCode(_0x23c632){const _0xf0b178=a286_0x3875,_0x4cb317=readRawConfig(_0x23c632);if(_0x4cb317[_0xf0b178(0x1f7)]&&typeof _0x4cb317['apps']===_0xf0b178(0x213)){const _0xc30b6a=_0x4cb317[_0xf0b178(0x1e2)];if(_0xc30b6a)return _0x4cb317['apps'][_0xc30b6a]?.[_0xf0b178(0x21d)]?String(_0x4cb317[_0xf0b178(0x1f7)][_0xc30b6a][_0xf0b178(0x21d)])[_0xf0b178(0x224)]():undefined;const _0x4585ba=Object[_0xf0b178(0x1ef)](_0x4cb317[_0xf0b178(0x1f7)]);if(_0x4585ba[_0xf0b178(0x201)]===0x1&&_0x4585ba[0x0]?.['appcode'])return String(_0x4585ba[0x0][_0xf0b178(0x21d)])[_0xf0b178(0x224)]();}const _0x10715d=_0x4cb317[_0xf0b178(0x21d)]||_0x4cb317[_0xf0b178(0x1e3)];if(typeof _0x10715d!=='string'||_0x10715d['trim']()==='')return undefined;return _0x10715d[_0xf0b178(0x224)]();}const CONNECTION_ROUTING_KEYS=[a286_0x58056b(0x1e5),a286_0x58056b(0x210),a286_0x58056b(0x218),'runtimeDomain','skillDomain','skillHubDomain',a286_0x58056b(0x1d8),a286_0x58056b(0x215),a286_0x58056b(0x203),a286_0x58056b(0x1d7),a286_0x58056b(0x1eb),a286_0x58056b(0x226),a286_0x58056b(0x219)];function withAppProfileRouting(_0x22d70d,_0x1665a4){const _0x478b30=a286_0x58056b;if(!_0x1665a4||_0x1665a4[_0x478b30(0x215)]===undefined)return _0x22d70d;return{..._0x22d70d,'kbServiceDomain':_0x1665a4['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x48c64b,_0xd0c9b6){const _0x38c979={'region':_0xd0c9b6};for(const _0x5dc60e of CONNECTION_ROUTING_KEYS){if(_0x48c64b[_0x5dc60e]!==undefined)_0x38c979[_0x5dc60e]=_0x48c64b[_0x5dc60e];}return _0x38c979;}export function getMultiAppConfigs(_0x54a399='project',_0x22b201){const _0x4be8c0=a286_0x58056b,_0x2f0885=loadRawConfigLayers(_0x22b201);let _0xcaded9,_0x4924fa;const _0x237fc4=mergeRawConfigLayers(_0x2f0885),_0xdac43f=_0x2f0885[_0x4be8c0(0x1fb)]['apps']&&typeof _0x2f0885[_0x4be8c0(0x1fb)][_0x4be8c0(0x1f7)]===_0x4be8c0(0x213)?_0x2f0885[_0x4be8c0(0x1fb)][_0x4be8c0(0x1f7)]:{},_0x52baa2=_0x2f0885['projectConfig'][_0x4be8c0(0x1f7)]&&typeof _0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1f7)]===_0x4be8c0(0x213)?_0x2f0885['projectConfig'][_0x4be8c0(0x1f7)]:{};_0x54a399===_0x4be8c0(0x207)?(_0xcaded9={..._0xdac43f,..._0x52baa2},_0x4924fa=_0x237fc4['defaultApp']):(_0xcaded9=_0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1f7)],_0x4924fa=_0x2f0885[_0x4be8c0(0x1de)][_0x4be8c0(0x1e2)]);!_0x4924fa&&_0xcaded9&&typeof _0xcaded9===_0x4be8c0(0x213)&&Object[_0x4be8c0(0x1f3)](_0xcaded9)[_0x4be8c0(0x201)]===0x1&&(_0x4924fa=Object[_0x4be8c0(0x1f3)](_0xcaded9)[0x0]);if(!_0xcaded9||typeof _0xcaded9!==_0x4be8c0(0x213)||Object[_0x4be8c0(0x1f3)](_0xcaded9)['length']===0x0)return null;return Object[_0x4be8c0(0x21c)](_0xcaded9)[_0x4be8c0(0x225)](([_0x1612e8,_0x415345])=>{const _0x2d129e=_0x4be8c0,_0x5ed445=_0x54a399===_0x2d129e(0x1f2)||Object[_0x2d129e(0x1ff)]['hasOwnProperty'][_0x2d129e(0x20c)](_0x52baa2,_0x1612e8),_0x2fa872=withAppProfileRouting(_0x5ed445?_0x237fc4:_0x2f0885[_0x2d129e(0x1fb)],_0x415345),_0x4b7afe=resolveEffectiveRegion({'appRegion':_0x415345?.[_0x2d129e(0x223)],'projectRegion':_0x5ed445?_0x2f0885[_0x2d129e(0x1de)]['region']:undefined,'globalRegion':_0x2f0885[_0x2d129e(0x1fb)][_0x2d129e(0x223)],'mergedRegion':_0x2fa872[_0x2d129e(0x223)],'appName':_0x1612e8});return{'name':_0x1612e8,'appcode':_0x415345?.[_0x2d129e(0x21d)]||'','apiGroup':optionalString(_0x415345?.[_0x2d129e(0x1ec)]),'isDefault':_0x1612e8===_0x4924fa,'region':_0x4b7afe[_0x2d129e(0x223)],'regionSource':_0x4b7afe[_0x2d129e(0x21a)],'env':_0x415345?.[_0x2d129e(0x1f6)],'apiDir':optionalString(_0x415345?.[_0x2d129e(0x1dd)])||optionalString(_0x2fa872[_0x2d129e(0x1dd)]),'cookie':_0x415345?.[_0x2d129e(0x1f9)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x2fa872,_0x4b7afe[_0x2d129e(0x223)])};})[_0x4be8c0(0x200)](_0x2e938=>_0x2e938[_0x4be8c0(0x21d)]);}export function getTemplateBaseUrl(_0x2ee6bf){const _0x447938=a286_0x58056b,_0x57c66e=readRawConfig(_0x2ee6bf);if(_0x57c66e['template_base_url']&&typeof _0x57c66e[_0x447938(0x1dc)]===_0x447938(0x21e))return _0x57c66e['template_base_url'][_0x447938(0x1f1)](/\/$/,'');return _0x447938(0x220);}function buildConfig(_0x29bc38,_0x57586f,_0x34313e){const _0x3753fa=a286_0x58056b,_0x1620f4=resolveAppConfig({'raw':_0x29bc38,'flags':_0x57586f,'layers':_0x34313e,'readEnv':env}),_0x542238=_0x1620f4[_0x3753fa(0x20d)]?_0x1620f4[_0x3753fa(0x1f7)][_0x1620f4['currentApp']]:undefined;return{..._0x1620f4,'raw':withAppProfileRouting(_0x29bc38,_0x542238)};}export function resolveApiFilePath(_0x4b910d,_0x1f66d4,_0x2ef621){const _0x40d2fc=a286_0x58056b;return resolveApiModelSource(_0x4b910d,_0x1f66d4,_0x2ef621)[_0x40d2fc(0x1ea)];}
|
|
1
|
+
const a286_0x5eb4e2=a286_0x3772;(function(_0x47f891,_0x5313a1){const _0x19ec70=a286_0x3772,_0xfb764=_0x47f891();while(!![]){try{const _0x29e735=parseInt(_0x19ec70(0x1b2))/0x1+parseInt(_0x19ec70(0x1ea))/0x2*(-parseInt(_0x19ec70(0x1b0))/0x3)+-parseInt(_0x19ec70(0x1c7))/0x4*(-parseInt(_0x19ec70(0x1d4))/0x5)+-parseInt(_0x19ec70(0x1f4))/0x6+-parseInt(_0x19ec70(0x1f5))/0x7*(parseInt(_0x19ec70(0x1c5))/0x8)+parseInt(_0x19ec70(0x1db))/0x9+parseInt(_0x19ec70(0x1b5))/0xa;if(_0x29e735===_0x5313a1)break;else _0xfb764['push'](_0xfb764['shift']());}catch(_0xfe3296){_0xfb764['push'](_0xfb764['shift']());}}}(a286_0x3687,0xa05ed));import{CLI_BIN_NAME}from'./constant/cli.js';import{buildAuth}from'./context/auth-resolver.js';import{resolveAppConfig}from'./context/app-resolver.js';import{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile}from'./context/config-loader.js';import{resolveConfiguredRegion,resolveEffectiveRegion}from'./config/region-config.js';function a286_0x3687(){const _0xdccda0=['project','app\x20profile\x20\x22','./constant/domain.js','map','filePath','6207138wbUvPs','runtimeDomain','cwd','replace','certificateDomain','prototype','values','skillDomain','currentApp','name','kbServiceDomain','project\x20Rabetbase\x20configuration','domains','raw','regionLocation','2eIfwnn','string','keys','globalConfig','cdn','./constant/env.js','app','trim','env','setLogPath','1813308TZTUiG','187761qZMLUD','call','configuredRegion','2761029rpOAnV','defaultApp','1090636yklyYF','source','apiDomain','9924090TjGTNe','appcode','hasOwnProperty','region','platformDomain','object','length','routing','regionSource','agentDomain','daily','cookie','apps','template_base_url','global\x20Rabetbase\x20configuration','slice','360XgrhvC','targetEnv','12rJjSuI','userDomain','setRawCommand','some','doctor','entries','localDomain','kbDomain','regionConfiguredValue','apiGroup','./utils/is-non-interactive.js','appDomain','projectConfig','522910ukEtUw','skillHubDomain'];a286_0x3687=function(){return _0xdccda0;};return a286_0x3687();}import{resolveEnterpriseRoutingManifest}from'./config/domain-config.js';import{logger}from'./utils/logger.js';import{resolveApiModelSource}from'./api/model-source.js';function a286_0x3772(_0x71e9cd,_0x5c6d94){_0x71e9cd=_0x71e9cd-0x1ae;const _0x3687e=a286_0x3687();let _0x37720f=_0x3687e[_0x71e9cd];return _0x37720f;}export{CONFIG_NAMES,NEW_CONFIG_NAME,findProjectRootDirectory,getGlobalConfigPath,getProjectConfigPath,inspectCliConfigJsonFile,isInProject,loadRawConfigLayers,mergeRawConfigLayers,readConfigFile,readRawConfig,readRawConfigWithLayers,resolveConfigPath,resolveWriteConfigPath,writeConfigFile};function env(_0x1f45e5){return process.env[`RABETBASE_${_0x1f45e5}`]||process.env[`LOVRABET_${_0x1f45e5}`]||undefined;}function optionalString(_0x1f1cae){const _0x294012=a286_0x3772;return typeof _0x1f1cae===_0x294012(0x1eb)&&_0x1f1cae['trim']()?_0x1f1cae[_0x294012(0x1f1)]():undefined;}export function isRoutingRecoveryService(_0x4432d4){const _0x1b224f=a286_0x3772;return _0x4432d4==='config'||_0x4432d4===_0x1b224f(0x1cb);}export async function createContext(_0x3986de){const _0x5e129f=a286_0x3772,{config:_0x297f10,layers:_0xfcc05}=readRawConfigWithLayers(),_0x42d206=buildConfig(_0x297f10,_0x3986de,_0xfcc05);await initGlobalEnvironment(_0x42d206);const {getUserDomain:_0x1cdfec,getApiDomain:_0x160aff}=await import(_0x5e129f(0x1d8)),_0x430005={'apiDomain':_0x160aff(),'userDomain':_0x1cdfec()},_0xca5e7b=await buildAuth(_0x42d206);logger[_0x5e129f(0x1f3)](process[_0x5e129f(0x1dd)]());const _0x5109a9=(CLI_BIN_NAME+'\x20'+process['argv'][_0x5e129f(0x1c4)](0x2)['join']('\x20'))[_0x5e129f(0x1f1)]();logger[_0x5e129f(0x1c9)](_0x5109a9);const {isNonInteractive:_0x1655b4}=await import(_0x5e129f(0x1d1)),_0x3ef900=_0x1655b4(_0x3986de);return{'config':_0x42d206,'auth':_0xca5e7b,'logger':logger,'env':_0x430005,'nonInteractive':_0x3ef900};}export function buildConfigFromFlags(_0x352945){const {config:_0xb3887f,layers:_0xe6d90a}=readRawConfigWithLayers();return buildConfig(_0xb3887f,_0x352945,_0xe6d90a);}export async function initGlobalEnvironment(_0x231685){const _0x4c5ea8=a286_0x3772,_0x56c278=_0x231685[_0x4c5ea8(0x1bd)]===_0x4c5ea8(0x1f0)&&_0x231685[_0x4c5ea8(0x1e3)]?_0x4c5ea8(0x1d7)+_0x231685[_0x4c5ea8(0x1e3)]+'\x22':_0x231685['regionSource']===_0x4c5ea8(0x1d6)?_0x4c5ea8(0x1e6):_0x231685['regionSource']==='global'?_0x4c5ea8(0x1c3):'Rabetbase\x20configuration';await initConfiguredEnvironment({'raw':_0x231685[_0x4c5ea8(0x1e8)],'configuredRegion':_0x231685[_0x4c5ea8(0x1cf)]??_0x231685[_0x4c5ea8(0x1e8)]?.[_0x4c5ea8(0x1b8)]??_0x231685[_0x4c5ea8(0x1b8)],'regionLocation':_0x56c278,'targetEnv':_0x231685['env']});}async function initConfiguredEnvironment(_0x277aad){const _0x117b4a=a286_0x3772,_0x134986=resolveConfiguredRegion(_0x277aad[_0x117b4a(0x1af)],_0x277aad[_0x117b4a(0x1e9)]),_0x9ae779=resolveEnterpriseRoutingManifest(_0x277aad[_0x117b4a(0x1e8)]?.['routing']),_0x37a5f0={'region':_0x134986,'apiDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1b4)]:optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1b4)]),'userDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1c8)]:optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1c8)]),'runtimeDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1dc)]:optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1dc)]),'skillDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)]['skillDomain']:optionalString(_0x277aad['raw']?.['skillDomain'])||optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1d5)])||optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1be)])||optionalString(_0x277aad['raw']?.[_0x117b4a(0x1b9)]),'kbDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1ce)]:optionalString(_0x277aad['raw']?.[_0x117b4a(0x1ce)])||optionalString(_0x277aad[_0x117b4a(0x1e8)]?.['agentDomain'])||optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1b9)]),'kbServiceDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1e5)]:optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1e5)]),'appDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1d2)]:optionalString(_0x277aad[_0x117b4a(0x1e8)]?.[_0x117b4a(0x1d2)]),'localDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1cd)]:optionalString(_0x277aad['raw']?.[_0x117b4a(0x1cd)]),'certificateDomain':_0x9ae779?_0x9ae779[_0x117b4a(0x1e7)][_0x117b4a(0x1df)]:optionalString(_0x277aad['raw']?.[_0x117b4a(0x1df)]),'cdn':_0x9ae779?.[_0x117b4a(0x1ee)],'allowOfficialKbServiceDefault':!(_0x9ae779!==undefined||[_0x117b4a(0x1b4),_0x117b4a(0x1c8),_0x117b4a(0x1dc),_0x117b4a(0x1e2),_0x117b4a(0x1d5),'kbDomain',_0x117b4a(0x1e5),'agentDomain',_0x117b4a(0x1b9),'appDomain',_0x117b4a(0x1cd),_0x117b4a(0x1df)][_0x117b4a(0x1ca)](_0x88e17e=>Object[_0x117b4a(0x1e0)][_0x117b4a(0x1b7)][_0x117b4a(0x1ae)](_0x277aad[_0x117b4a(0x1e8)]??{},_0x88e17e)))},{initEnv:_0x4cb165}=await import(_0x117b4a(0x1ef)),{initDomains:_0x256846}=await import(_0x117b4a(0x1d8));_0x4cb165(_0x277aad[_0x117b4a(0x1c6)]),_0x256846(_0x37a5f0);}export async function initMultiAppEnvironment(_0x3fe710){const _0x3fe453=a286_0x3772;await initConfiguredEnvironment({'raw':_0x3fe710['routingConfig'],'configuredRegion':_0x3fe710[_0x3fe453(0x1b8)],'regionLocation':_0x3fe453(0x1d7)+_0x3fe710[_0x3fe453(0x1e4)]+'\x22','targetEnv':_0x3fe710[_0x3fe453(0x1f2)]===_0x3fe453(0x1bf)?_0x3fe453(0x1bf):'production'});}export function getConfigAppCode(_0xa36e8e){const _0x4c5bf5=a286_0x3772,_0x1e8c2b=readRawConfig(_0xa36e8e);if(_0x1e8c2b[_0x4c5bf5(0x1c1)]&&typeof _0x1e8c2b[_0x4c5bf5(0x1c1)]===_0x4c5bf5(0x1ba)){const _0x5c6cfe=_0x1e8c2b[_0x4c5bf5(0x1b1)];if(_0x5c6cfe)return _0x1e8c2b[_0x4c5bf5(0x1c1)][_0x5c6cfe]?.[_0x4c5bf5(0x1b6)]?String(_0x1e8c2b[_0x4c5bf5(0x1c1)][_0x5c6cfe][_0x4c5bf5(0x1b6)])['trim']():undefined;const _0x45fd15=Object[_0x4c5bf5(0x1e1)](_0x1e8c2b['apps']);if(_0x45fd15[_0x4c5bf5(0x1bb)]===0x1&&_0x45fd15[0x0]?.[_0x4c5bf5(0x1b6)])return String(_0x45fd15[0x0][_0x4c5bf5(0x1b6)])[_0x4c5bf5(0x1f1)]();}const _0x3e91e4=_0x1e8c2b[_0x4c5bf5(0x1b6)]||_0x1e8c2b[_0x4c5bf5(0x1f0)];if(typeof _0x3e91e4!==_0x4c5bf5(0x1eb)||_0x3e91e4[_0x4c5bf5(0x1f1)]()==='')return undefined;return _0x3e91e4['trim']();}const CONNECTION_ROUTING_KEYS=[a286_0x5eb4e2(0x1bc),a286_0x5eb4e2(0x1b4),a286_0x5eb4e2(0x1c8),'runtimeDomain',a286_0x5eb4e2(0x1e2),a286_0x5eb4e2(0x1d5),a286_0x5eb4e2(0x1ce),a286_0x5eb4e2(0x1e5),a286_0x5eb4e2(0x1be),a286_0x5eb4e2(0x1b9),a286_0x5eb4e2(0x1d2),a286_0x5eb4e2(0x1cd),a286_0x5eb4e2(0x1df)];function withAppProfileRouting(_0x12131b,_0x39cb7e){if(!_0x39cb7e||_0x39cb7e['kbServiceDomain']===undefined)return _0x12131b;return{..._0x12131b,'kbServiceDomain':_0x39cb7e['kbServiceDomain']};}function pickConnectionRoutingConfig(_0x49d3d5,_0x531973){const _0x276a73={'region':_0x531973};for(const _0x2e7754 of CONNECTION_ROUTING_KEYS){if(_0x49d3d5[_0x2e7754]!==undefined)_0x276a73[_0x2e7754]=_0x49d3d5[_0x2e7754];}return _0x276a73;}export function getMultiAppConfigs(_0x2c5e5e='project',_0xd303a5){const _0x3cbcfb=a286_0x5eb4e2,_0x2dcfe0=loadRawConfigLayers(_0xd303a5);let _0x514d42,_0x5c456a;const _0x23e70a=mergeRawConfigLayers(_0x2dcfe0),_0x54f170=_0x2dcfe0[_0x3cbcfb(0x1ed)]['apps']&&typeof _0x2dcfe0[_0x3cbcfb(0x1ed)][_0x3cbcfb(0x1c1)]==='object'?_0x2dcfe0[_0x3cbcfb(0x1ed)][_0x3cbcfb(0x1c1)]:{},_0x5dde7e=_0x2dcfe0[_0x3cbcfb(0x1d3)][_0x3cbcfb(0x1c1)]&&typeof _0x2dcfe0['projectConfig'][_0x3cbcfb(0x1c1)]===_0x3cbcfb(0x1ba)?_0x2dcfe0[_0x3cbcfb(0x1d3)][_0x3cbcfb(0x1c1)]:{};_0x2c5e5e==='merged'?(_0x514d42={..._0x54f170,..._0x5dde7e},_0x5c456a=_0x23e70a[_0x3cbcfb(0x1b1)]):(_0x514d42=_0x2dcfe0[_0x3cbcfb(0x1d3)]['apps'],_0x5c456a=_0x2dcfe0[_0x3cbcfb(0x1d3)][_0x3cbcfb(0x1b1)]);!_0x5c456a&&_0x514d42&&typeof _0x514d42==='object'&&Object[_0x3cbcfb(0x1ec)](_0x514d42)[_0x3cbcfb(0x1bb)]===0x1&&(_0x5c456a=Object[_0x3cbcfb(0x1ec)](_0x514d42)[0x0]);if(!_0x514d42||typeof _0x514d42!==_0x3cbcfb(0x1ba)||Object[_0x3cbcfb(0x1ec)](_0x514d42)[_0x3cbcfb(0x1bb)]===0x0)return null;return Object[_0x3cbcfb(0x1cc)](_0x514d42)[_0x3cbcfb(0x1d9)](([_0x25a31b,_0x2de2e8])=>{const _0x3e2227=_0x3cbcfb,_0xf6ca1c=_0x2c5e5e==='project'||Object[_0x3e2227(0x1e0)][_0x3e2227(0x1b7)][_0x3e2227(0x1ae)](_0x5dde7e,_0x25a31b),_0x269a3d=withAppProfileRouting(_0xf6ca1c?_0x23e70a:_0x2dcfe0[_0x3e2227(0x1ed)],_0x2de2e8),_0x3a0eab=resolveEffectiveRegion({'appRegion':_0x2de2e8?.[_0x3e2227(0x1b8)],'projectRegion':_0xf6ca1c?_0x2dcfe0[_0x3e2227(0x1d3)]['region']:undefined,'globalRegion':_0x2dcfe0['globalConfig'][_0x3e2227(0x1b8)],'mergedRegion':_0x269a3d['region'],'appName':_0x25a31b});return{'name':_0x25a31b,'appcode':_0x2de2e8?.['appcode']||'','apiGroup':optionalString(_0x2de2e8?.[_0x3e2227(0x1d0)]),'isDefault':_0x25a31b===_0x5c456a,'region':_0x3a0eab[_0x3e2227(0x1b8)],'regionSource':_0x3a0eab[_0x3e2227(0x1b3)],'env':_0x2de2e8?.[_0x3e2227(0x1f2)],'apiDir':optionalString(_0x2de2e8?.['apiDir'])||optionalString(_0x269a3d['apiDir']),'cookie':_0x2de2e8?.[_0x3e2227(0x1c0)]||undefined,'routingConfig':pickConnectionRoutingConfig(_0x269a3d,_0x3a0eab['region'])};})['filter'](_0x30b7b1=>_0x30b7b1['appcode']);}export function getTemplateBaseUrl(_0x4878b8){const _0x5c8542=a286_0x5eb4e2,_0x1665b7=readRawConfig(_0x4878b8);if(_0x1665b7[_0x5c8542(0x1c2)]&&typeof _0x1665b7[_0x5c8542(0x1c2)]===_0x5c8542(0x1eb))return _0x1665b7['template_base_url'][_0x5c8542(0x1de)](/\/$/,'');return'https://g.lovrabet.com/dist/lovrabet-skill';}function buildConfig(_0x1093b9,_0x21bfa2,_0x21c44e){const _0x304afd=a286_0x5eb4e2,_0x4995f6=resolveAppConfig({'raw':_0x1093b9,'flags':_0x21bfa2,'layers':_0x21c44e,'readEnv':env}),_0x2be445=_0x4995f6[_0x304afd(0x1e3)]?_0x4995f6['apps'][_0x4995f6['currentApp']]:undefined;return{..._0x4995f6,'raw':withAppProfileRouting(_0x1093b9,_0x2be445)};}export function resolveApiFilePath(_0x55c4fd,_0x4cf6ce,_0x2d3524){const _0xb709fa=a286_0x5eb4e2;return resolveApiModelSource(_0x55c4fd,_0x4cf6ce,_0x2d3524)[_0xb709fa(0x1da)];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a287_0x2f0aac=a287_0x2d1d;(function(_0x19752a,_0x59a2f8){const _0x7eedc5=a287_0x2d1d,_0x3813b0=_0x19752a();while(!![]){try{const _0x33c8f3=parseInt(_0x7eedc5(0x20e))/0x1*(parseInt(_0x7eedc5(0x1ee))/0x2)+-parseInt(_0x7eedc5(0x1f9))/0x3+-parseInt(_0x7eedc5(0x214))/0x4*(parseInt(_0x7eedc5(0x207))/0x5)+parseInt(_0x7eedc5(0x1ff))/0x6+-parseInt(_0x7eedc5(0x213))/0x7*(-parseInt(_0x7eedc5(0x1fc))/0x8)+-parseInt(_0x7eedc5(0x20a))/0x9*(parseInt(_0x7eedc5(0x1fe))/0xa)+parseInt(_0x7eedc5(0x1f2))/0xb;if(_0x33c8f3===_0x59a2f8)break;else _0x3813b0['push'](_0x3813b0['shift']());}catch(_0x3726a1){_0x3813b0['push'](_0x3813b0['shift']());}}}(a287_0x36c0,0xe6e27));import{existsSync,readFileSync,realpathSync,statSync}from'node:fs';import{dirname,extname,isAbsolute,relative,resolve}from'node:path';import{MODEL_REGISTRY_FILE_NAME,getProfileModels,readModelRegistry}from'../api/model-registry-file.js';import{parseLegacyApiModels}from'../api/legacy-api-file.js';import{findProjectRootDirectory}from'../context/config-loader.js';const cache=new Map(),MAX_LOCAL_REEXPORT_DEPTH=0x8,SOURCE_FILE_EXTENSIONS=[a287_0x2f0aac(0x1fa),a287_0x2f0aac(0x201),a287_0x2f0aac(0x203),a287_0x2f0aac(0x1fd),a287_0x2f0aac(0x1f0),a287_0x2f0aac(0x212),a287_0x2f0aac(0x1f3),a287_0x2f0aac(0x1fb)],LOCAL_REEXPORT_RE=/\bexport\s+(?:type\s+)?(?:\{[\s\S]*?\}|\*)\s+from\s*["']([^"']+)["']/g,SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION={'.js':['.ts',a287_0x2f0aac(0x201)],'.jsx':[a287_0x2f0aac(0x201)],'.mjs':[a287_0x2f0aac(0x203)],'.cjs':['.cts']};function parseApiFile(_0x189a54){const _0x4d7943=a287_0x2f0aac;return parseLegacyApiModels(_0x189a54)[_0x4d7943(0x206)](_0x1dc488=>_0x1dc488[_0x4d7943(0x204)]?[{'alias':_0x1dc488[_0x4d7943(0x204)],'datasetCode':_0x1dc488[_0x4d7943(0x205)],'tableName':_0x1dc488[_0x4d7943(0x20f)],'name':_0x1dc488[_0x4d7943(0x1f6)]}]:[]);}function isWithinRoot(_0x36db0c,_0x3b95e2){const _0x2c1855=a287_0x2f0aac,_0x11c920=relative(_0x36db0c,_0x3b95e2);return _0x11c920===''||!_0x11c920[_0x2c1855(0x215)]('..')&&!isAbsolute(_0x11c920);}function resolveExistingFile(_0x4b3e1a){if(!existsSync(_0x4b3e1a))return undefined;try{return statSync(_0x4b3e1a)['isFile']()?realpathSync(_0x4b3e1a):undefined;}catch{return undefined;}}function reexportCandidatePaths(_0x29e6cf){const _0x2d0796=a287_0x2f0aac,_0x36d250=extname(_0x29e6cf);if(!_0x36d250)return[...SOURCE_FILE_EXTENSIONS[_0x2d0796(0x1f7)](_0x2967a8=>''+_0x29e6cf+_0x2967a8),...SOURCE_FILE_EXTENSIONS['map'](_0x5bc513=>resolve(_0x29e6cf,'index'+_0x5bc513))];const _0x112f47=SOURCE_EXTENSIONS_BY_RUNTIME_EXTENSION[_0x36d250];if(!_0x112f47)return[_0x29e6cf];const _0x271ad1=_0x29e6cf['slice'](0x0,-_0x36d250[_0x2d0796(0x1f5)]);return[..._0x112f47[_0x2d0796(0x1f7)](_0x46e5aa=>''+_0x271ad1+_0x46e5aa),_0x29e6cf];}function a287_0x36c0(){const _0x1f0f75=['source','23388508hSPchr','.mjs','defaultProfile','length','name','map','size','1638513oEsCeN','.ts','.cjs','8OWGPFf','.cts','7668850HJSZdC','1206906iCnART','filter','.tsx','set','.mts','alias','datasetCode','flatMap','5573420zWthZR','endsWith','cwd','9itRfCy','add','has','get','433AihANa','tableName','exec','push','.jsx','499667vEApyY','4vbUsiW','startsWith','4502IbaVBk','api.ts','.js'];a287_0x36c0=function(){return _0x1f0f75;};return a287_0x36c0();}function resolveLocalReexport(_0x268c0b,_0x4295c0,_0xec4b82){const _0x30a935=a287_0x2f0aac;if(!_0x4295c0[_0x30a935(0x215)]('./')&&!_0x4295c0[_0x30a935(0x215)]('../'))return undefined;const _0x777827=resolve(dirname(_0x268c0b),_0x4295c0);if(!isWithinRoot(_0xec4b82,_0x777827))return undefined;for(const _0x2d9150 of reexportCandidatePaths(_0x777827)){const _0x1f82bb=resolveExistingFile(_0x2d9150);if(_0x1f82bb&&isWithinRoot(_0xec4b82,_0x1f82bb))return _0x1f82bb;}return undefined;}function parseApiFileTree(_0x2b569f,_0x2bdb14,_0x1da87b,_0x521d98){const _0xb44a5a=a287_0x2f0aac,_0x1cb25b=resolveExistingFile(_0x2b569f);if(!_0x1cb25b)return[];const _0x1c0000=_0x1da87b['get'](_0x1cb25b);if(_0x1c0000!==undefined&&_0x1c0000<=_0x521d98)return[];_0x1da87b[_0xb44a5a(0x202)](_0x1cb25b,_0x521d98);const _0x39deca=readFileSync(_0x1cb25b,'utf-8'),_0x21f826=parseApiFile(_0x39deca);if(_0x521d98>=MAX_LOCAL_REEXPORT_DEPTH)return _0x21f826;const _0x108bad=new RegExp(LOCAL_REEXPORT_RE[_0xb44a5a(0x1f1)],LOCAL_REEXPORT_RE['flags']);let _0xc83547;while((_0xc83547=_0x108bad[_0xb44a5a(0x210)](_0x39deca))!==null){const _0xd3edc5=resolveLocalReexport(_0x1cb25b,_0xc83547[0x1],_0x2bdb14);_0xd3edc5&&_0x21f826[_0xb44a5a(0x211)](...parseApiFileTree(_0xd3edc5,_0x2bdb14,_0x1da87b,_0x521d98+0x1));}return _0x21f826;}function aliasProjectRoot(_0x215e3f){const _0x171e3a=findProjectRootDirectory(dirname(_0x215e3f));try{return realpathSync(_0x171e3a);}catch{return _0x171e3a;}}function uniqueAliasEntries(_0x317a24){const _0x192c6d=a287_0x2f0aac,_0x42177f=new Set();return _0x317a24[_0x192c6d(0x200)](_0x2c1a2b=>{const _0x336d3b=_0x192c6d,_0x313dfa=JSON['stringify'](_0x2c1a2b);if(_0x42177f[_0x336d3b(0x20c)](_0x313dfa))return![];return _0x42177f[_0x336d3b(0x20b)](_0x313dfa),!![];});}export function loadAliasMap(_0x480c09,_0x5b67e5,_0x1fad6d,_0x3f7b61){const _0x6c33e=a287_0x2f0aac,_0x5620f3=resolve(_0x1fad6d??resolve(process[_0x6c33e(0x209)](),_0x480c09,_0x6c33e(0x1ef))),_0x2db27=_0x3f7b61?_0x5620f3+'#'+_0x3f7b61:_0x5620f3;if(cache[_0x6c33e(0x20c)](_0x2db27))return cache[_0x6c33e(0x20d)](_0x2db27);if(!existsSync(_0x5620f3))return cache['set'](_0x2db27,[]),[];try{if(_0x5620f3[_0x6c33e(0x208)](MODEL_REGISTRY_FILE_NAME)){const _0x38626e=readModelRegistry(_0x5620f3),_0xa190f=_0x3f7b61??_0x38626e?.[_0x6c33e(0x1f4)],_0x5b31bf=_0xa190f&&_0x38626e?getProfileModels(_0x38626e,_0xa190f):[],_0x2ce1d0=uniqueAliasEntries(_0x5b31bf[_0x6c33e(0x206)](_0x3a3a21=>_0x3a3a21[_0x6c33e(0x204)]?[{'alias':_0x3a3a21['alias'],'datasetCode':_0x3a3a21[_0x6c33e(0x205)],'tableName':_0x3a3a21[_0x6c33e(0x20f)],'name':_0x3a3a21[_0x6c33e(0x1f6)]}]:[]));return cache[_0x6c33e(0x202)](_0x2db27,_0x2ce1d0),_0x2ce1d0;}const _0x1306a2=uniqueAliasEntries(parseApiFileTree(_0x5620f3,aliasProjectRoot(_0x5620f3),new Map(),0x0));return cache['set'](_0x2db27,_0x1306a2),_0x1306a2;}catch{return cache['set'](_0x2db27,[]),[];}}function a287_0x2d1d(_0x2a4fbd,_0x4854e7){_0x2a4fbd=_0x2a4fbd-0x1ee;const _0x36c00f=a287_0x36c0();let _0x2d1d2d=_0x36c00f[_0x2a4fbd];return _0x2d1d2d;}export function resolveAlias(_0x327281,_0x2e9295,_0xc646f0,_0x201f12,_0xe564d8){const _0x543dc9=a287_0x2f0aac;if(!_0x2e9295)return undefined;const _0x2236bf=loadAliasMap(_0x327281,_0xc646f0,_0x201f12,_0xe564d8),_0x40d293=new Set(_0x2236bf[_0x543dc9(0x200)](_0x1d6bc1=>_0x1d6bc1[_0x543dc9(0x204)]===_0x2e9295)[_0x543dc9(0x1f7)](_0x1df059=>_0x1df059[_0x543dc9(0x205)]));return _0x40d293[_0x543dc9(0x1f8)]===0x1?[..._0x40d293][0x0]:undefined;}export function listAliases(_0x1e38f2,_0x23d9cb,_0x1c48d6,_0x1a902e){return loadAliasMap(_0x1e38f2,_0x23d9cb,_0x1c48d6,_0x1a902e);}
|