@platforma-open/milaboratories.immune-assay-data.model 1.6.0 → 1.7.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.js","sources":["../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/internal.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/block_storage_facade.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/config/actions.js","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/bmodel/code.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/util.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/errors.js","../../node_modules/.pnpm/canonicalize@2.1.0/node_modules/canonicalize/lib/canonicalize.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/json.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/utils.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/ids.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/anchored.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/pool/spec.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/native_id.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/linker_columns.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/plid.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/ref.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.1/node_modules/@milaboratories/pl-model-common/dist/value_or_error.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/future.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/accessor.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/internal.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/util/axis_filtering.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/util/label.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/util/pcolumn_data.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/util/column_collection.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/util/pframe_upgraders.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/render/api.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/package.json.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/version.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/bconfig/types.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/bconfig/normalization.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/block_model_legacy.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/pframe_utils/axes.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/pframe_utils/columns.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/filters/traverse.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/filters/distill.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/components/PlDataTable/state-migration.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/filters/converters/filterToQuery.js","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/function/identity.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isFunction.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isLength.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isNil.mjs","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/components/PlDataTable/labels.js","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs","../../node_modules/.pnpm/@platforma-sdk+model@1.58.3/node_modules/@platforma-sdk/model/dist/components/PlDataTable/table.js","../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js","../../node_modules/.pnpm/@milaboratories+pl-error-like@1.12.8/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js","../src/label.ts","../src/index.ts"],"sourcesContent":["/** Utility code helping to identify whether the code is running in actual UI environment */\nfunction isInUI() {\n return (typeof globalThis.getPlatforma !== \"undefined\" || typeof globalThis.platforma !== \"undefined\");\n}\n/** Utility code helping to retrieve a platforma instance form the environment */\nfunction getPlatformaInstance(config) {\n if (config && typeof globalThis.getPlatforma === \"function\")\n return globalThis.getPlatforma(config);\n else if (typeof globalThis.platforma !== \"undefined\")\n return globalThis.platforma;\n else\n throw new Error(\"Can't get platforma instance.\");\n}\nfunction tryGetCfgRenderCtx() {\n if (typeof globalThis.cfgRenderCtx !== \"undefined\")\n return globalThis.cfgRenderCtx;\n else\n return undefined;\n}\nfunction getCfgRenderCtx() {\n if (typeof globalThis.cfgRenderCtx !== \"undefined\")\n return globalThis.cfgRenderCtx;\n else\n throw new Error(\"Not in config rendering context\");\n}\nfunction tryRegisterCallback(key, callback) {\n const ctx = tryGetCfgRenderCtx();\n if (ctx === undefined)\n return false;\n if (key in ctx.callbackRegistry)\n throw new Error(`Callback with key ${key} already registered.`);\n ctx.callbackRegistry[key] = callback;\n return true;\n}\n/**\n * Registers a callback, replacing any existing callback with the same key.\n * Use this for callbacks that have a default value but can be overridden.\n *\n * @param key - The callback registry key\n * @param callback - The callback function to register\n * @returns true if registered, false if not in render context\n */\nfunction replaceCallback(key, callback) {\n const ctx = tryGetCfgRenderCtx();\n if (ctx === undefined)\n return false;\n ctx.callbackRegistry[key] = callback;\n return true;\n}\n/** Creates a ConfigRenderLambda descriptor without registering a callback. */\nfunction createRenderLambda(opts) {\n const { handle, ...flags } = opts;\n return {\n __renderLambda: true,\n handle,\n ...flags,\n };\n}\n/** Registers a callback and returns a ConfigRenderLambda descriptor. */\nfunction createAndRegisterRenderLambda(opts, replace) {\n const { handle, lambda, ...flags } = opts;\n if (replace) {\n replaceCallback(handle, lambda);\n }\n else {\n tryRegisterCallback(handle, lambda);\n }\n return createRenderLambda({ handle, ...flags });\n}\nconst futureResolves = new Map();\nfunction registerFutureAwait(handle, onResolve) {\n if (!(handle in getCfgRenderCtx().callbackRegistry)) {\n getCfgRenderCtx().callbackRegistry[handle] = (value) => {\n for (const res of futureResolves.get(handle)) {\n res(value);\n }\n };\n futureResolves.set(handle, []);\n }\n futureResolves.get(handle).push(onResolve);\n}\n\nexport { createAndRegisterRenderLambda, createRenderLambda, getCfgRenderCtx, getPlatformaInstance, isInUI, registerFutureAwait, replaceCallback, tryGetCfgRenderCtx, tryRegisterCallback };\n//# sourceMappingURL=internal.js.map\n","import { createRenderLambda, tryRegisterCallback } from './internal.js';\n\n/**\n * Block Storage Facade - Contract between bundled blocks and middle layer.\n *\n * ============================================================================\n * VERSIONING\n * ============================================================================\n *\n * Blocks declare their model API version via the `requiresModelAPIVersion` feature flag\n * (see BlockCodeKnownFeatureFlags). This determines how the middle layer manages block state:\n *\n * - Version 1: Legacy BlockModel - state is {args, uiState}, managed directly by middle layer\n * - Version 2: BlockModelV3 - uses blockStorage with VM-based callbacks (this facade)\n *\n * This facade (BlockStorageFacade) is used by blocks with `requiresModelAPIVersion: 2`.\n * The version number matches the model API version for clarity.\n *\n * ============================================================================\n * BACKWARD COMPATIBILITY WARNING\n * ============================================================================\n *\n * This file documents the FACADE between the SDK (bundled into blocks) and the\n * middle layer. Once a block is published, its SDK version is frozen. The middle\n * layer must support ALL previously released callback signatures indefinitely.\n *\n * RULES:\n * 1. NEVER change the signature of existing callbacks\n * 2. NEVER remove existing callbacks\n * 3. New callbacks CAN be added (old blocks won't register them, middle layer\n * should handle missing callbacks gracefully)\n * 4. Callback return types can be EXTENDED (add optional fields) but not changed\n * 5. Callback parameter types should remain compatible (middle layer may need\n * to handle both old and new formats)\n *\n * The facade consists of callbacks registered via `tryRegisterCallback()` with\n * the `__pl_` prefix. These are registered by the SDK when a block loads and\n * called by the middle layer to perform operations.\n *\n * ============================================================================\n * WHAT CAN BE CHANGED FREELY\n * ============================================================================\n *\n * - Middle layer code (lib/node/pl-middle-layer)\n * - SDK internal implementation (as long as callback contracts are preserved)\n * - SDK exports used ONLY by middle layer (not by blocks themselves)\n * - New SDK features that don't affect existing callbacks\n *\n * @module block_storage_facade\n */\n// =============================================================================\n// Facade Version\n// =============================================================================\n/**\n * The current facade version. This value is used for `requiresModelAPIVersion`\n * feature flag in BlockModelV3.\n */\nconst BLOCK_STORAGE_FACADE_VERSION = 2;\n// =============================================================================\n// Facade Callback Names\n// =============================================================================\n/**\n * All facade callback names as constants.\n * These are the source of truth - the interface is derived from these.\n *\n * IMPORTANT: When adding a new callback:\n * 1. Add the constant here\n * 2. Add the callback signature to FacadeCallbackTypes below\n * 3. The BlockStorageFacade type will automatically include it\n */\nconst BlockStorageFacadeCallbacks = {\n StorageApplyUpdate: \"__pl_storage_applyUpdate\",\n StorageDebugView: \"__pl_storage_debugView\",\n StorageMigrate: \"__pl_storage_migrate\",\n ArgsDerive: \"__pl_args_derive\",\n PrerunArgsDerive: \"__pl_prerunArgs_derive\",\n StorageInitial: \"__pl_storage_initial\",\n};\n/**\n * Creates a map of lambda handles from a callbacks constant object.\n * Keys are the callback string values (e.g., '__pl_storage_applyUpdate').\n */\nfunction createFacadeHandles(callbacks) {\n return Object.fromEntries(Object.values(callbacks).map((handle) => [handle, createRenderLambda({ handle })]));\n}\n/**\n * Lambda handles for facade callbacks.\n * Used by the middle layer to invoke callbacks via executeSingleLambda().\n */\nconst BlockStorageFacadeHandles = createFacadeHandles(BlockStorageFacadeCallbacks);\n/** Register all facade callbacks at once. Ensures all required callbacks are provided. */\nfunction registerFacadeCallbacks(callbacks) {\n for (const key of Object.values(BlockStorageFacadeCallbacks)) {\n tryRegisterCallback(key, callbacks[key]);\n }\n}\n\nexport { BLOCK_STORAGE_FACADE_VERSION, BlockStorageFacadeCallbacks, BlockStorageFacadeHandles, registerFacadeCallbacks };\n//# sourceMappingURL=block_storage_facade.js.map\n","//\n// Helpers\n//\nfunction primitiveToConfig(value) {\n if (typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\" ||\n value === null)\n return getImmediate(value);\n else\n return value;\n}\n//\n// Context\n//\nfunction getFromCfg(variable) {\n return { type: \"GetFromCtx\", variable };\n}\n//\n// Isolate\n//\nfunction isolate(cfg) {\n return {\n type: \"Isolate\",\n cfg,\n };\n}\n//\n// Well-known Context Vars\n//\nconst Args = getFromCfg(\"$args\");\nconst It = getFromCfg(\"$it\");\nconst MainOutputs = getFromCfg(\"$prod\");\nconst StagingOutputs = getFromCfg(\"$staging\");\nconst UiState = getFromCfg(\"$ui\");\n//\n// Json\n//\nfunction getImmediate(value) {\n return { type: \"Immediate\", value };\n}\nfunction makeObject(template) {\n const normalizedTemplate = {};\n for (const [k, cfg] of Object.entries(template))\n normalizedTemplate[k] = primitiveToConfig(cfg);\n return {\n type: \"MakeObject\",\n template: normalizedTemplate,\n };\n}\nfunction makeArray(...template) {\n const normalizedTemplate = [];\n for (const cfg of template)\n normalizedTemplate.push(primitiveToConfig(cfg));\n return {\n type: \"MakeArray\",\n template: normalizedTemplate,\n };\n}\nfunction getJsonField(source, field) {\n return {\n type: \"GetJsonField\",\n source: primitiveToConfig(source),\n field: primitiveToConfig(field),\n };\n}\nfunction mapRecordValues(source, mapping, itVar = \"$it\") {\n return {\n type: \"MapRecordValues\",\n source,\n mapping,\n itVar,\n };\n}\nfunction mapArrayValues(source, mapping, itVar = \"$it\") {\n return {\n type: \"MapArrayValues\",\n source,\n mapping,\n itVar,\n };\n}\nfunction flatten(source) {\n return {\n type: \"Flatten\",\n source,\n };\n}\n//\n// Boolean\n//\nfunction isEmpty(arg) {\n return {\n type: \"IsEmpty\",\n arg,\n };\n}\nfunction not(operand) {\n return {\n type: \"Not\",\n operand,\n };\n}\nfunction and(operand1, operand2) {\n return {\n type: \"And\",\n operand1,\n operand2,\n };\n}\nfunction or(operand1, operand2) {\n return {\n type: \"Or\",\n operand1,\n operand2,\n };\n}\n//\n// Resources\n//\nfunction getResourceField(source, field) {\n return {\n type: \"GetResourceField\",\n source: primitiveToConfig(source),\n field: primitiveToConfig(field),\n };\n}\nfunction getResourceValueAsJson() {\n return function (source) {\n return {\n type: \"GetResourceValueAsJson\",\n source: primitiveToConfig(source),\n };\n };\n}\nfunction mapResourceFields(source, mapping, itVar = \"$it\") {\n return {\n type: \"MapResourceFields\",\n source,\n mapping,\n itVar,\n };\n}\n//\n// Download Blobs\n//\nfunction getBlobContent(source, range) {\n return {\n type: \"GetBlobContent\",\n range,\n source: primitiveToConfig(source),\n };\n}\nfunction getBlobContentAsString(source, range) {\n return {\n type: \"GetBlobContentAsString\",\n range,\n source: primitiveToConfig(source),\n };\n}\nfunction getBlobContentAsJson() {\n return function (source, range) {\n return {\n type: \"GetBlobContentAsJson\",\n range,\n source: primitiveToConfig(source),\n };\n };\n}\nfunction getDownloadedBlobContent(source) {\n return {\n type: \"GetDownloadedBlobContent\",\n source: primitiveToConfig(source),\n };\n}\nfunction getOnDemandBlobContent(source) {\n return {\n type: \"GetOnDemandBlobContent\",\n source: primitiveToConfig(source),\n };\n}\n//\n// Download Blobs to URLs\n//\nfunction extractArchiveAndGetURL(source, format) {\n return {\n type: \"ExtractArchiveAndGetURL\",\n format,\n source: primitiveToConfig(source),\n };\n}\n//\n// Upload Blobs\n//\nfunction getImportProgress(source) {\n return {\n type: \"GetImportProgress\",\n source: primitiveToConfig(source),\n };\n}\n//\n// Logs\n//\nfunction getLastLogs(source, lines) {\n return {\n type: \"GetLastLogs\",\n source: primitiveToConfig(source),\n lines,\n };\n}\nfunction getProgressLog(source, patternToSearch) {\n return {\n type: \"GetProgressLog\",\n source: primitiveToConfig(source),\n patternToSearch,\n };\n}\nfunction getProgressLogWithInfo(source, patternToSearch) {\n return {\n type: \"GetProgressLogWithInfo\",\n source: primitiveToConfig(source),\n patternToSearch,\n };\n}\nfunction getLogHandle(source) {\n return {\n type: \"GetLogHandle\",\n source: primitiveToConfig(source),\n };\n}\n\nexport { Args, It, MainOutputs, StagingOutputs, UiState, and, extractArchiveAndGetURL, flatten, getBlobContent, getBlobContentAsJson, getBlobContentAsString, getDownloadedBlobContent, getFromCfg, getImmediate, getImportProgress, getJsonField, getLastLogs, getLogHandle, getOnDemandBlobContent, getProgressLog, getProgressLogWithInfo, getResourceField, getResourceValueAsJson, isEmpty, isolate, makeArray, makeObject, mapArrayValues, mapRecordValues, mapResourceFields, not, or };\n//# sourceMappingURL=actions.js.map\n","var util;\n(function (util) {\n util.assertEqual = (val) => val;\n function assertIs(_arg) { }\n util.assertIs = assertIs;\n function assertNever(_x) {\n throw new Error();\n }\n util.assertNever = assertNever;\n util.arrayToEnum = (items) => {\n const obj = {};\n for (const item of items) {\n obj[item] = item;\n }\n return obj;\n };\n util.getValidEnumValues = (obj) => {\n const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n const filtered = {};\n for (const k of validKeys) {\n filtered[k] = obj[k];\n }\n return util.objectValues(filtered);\n };\n util.objectValues = (obj) => {\n return util.objectKeys(obj).map(function (e) {\n return obj[e];\n });\n };\n util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n : (object) => {\n const keys = [];\n for (const key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n keys.push(key);\n }\n }\n return keys;\n };\n util.find = (arr, checker) => {\n for (const item of arr) {\n if (checker(item))\n return item;\n }\n return undefined;\n };\n util.isInteger = typeof Number.isInteger === \"function\"\n ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n : (val) => typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n function joinValues(array, separator = \" | \") {\n return array\n .map((val) => (typeof val === \"string\" ? `'${val}'` : val))\n .join(separator);\n }\n util.joinValues = joinValues;\n util.jsonStringifyReplacer = (_, value) => {\n if (typeof value === \"bigint\") {\n return value.toString();\n }\n return value;\n };\n})(util || (util = {}));\nvar objectUtil;\n(function (objectUtil) {\n objectUtil.mergeShapes = (first, second) => {\n return {\n ...first,\n ...second, // second overwrites first\n };\n };\n})(objectUtil || (objectUtil = {}));\nconst ZodParsedType = util.arrayToEnum([\n \"string\",\n \"nan\",\n \"number\",\n \"integer\",\n \"float\",\n \"boolean\",\n \"date\",\n \"bigint\",\n \"symbol\",\n \"function\",\n \"undefined\",\n \"null\",\n \"array\",\n \"object\",\n \"unknown\",\n \"promise\",\n \"void\",\n \"never\",\n \"map\",\n \"set\",\n]);\nconst getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return ZodParsedType.undefined;\n case \"string\":\n return ZodParsedType.string;\n case \"number\":\n return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;\n case \"boolean\":\n return ZodParsedType.boolean;\n case \"function\":\n return ZodParsedType.function;\n case \"bigint\":\n return ZodParsedType.bigint;\n case \"symbol\":\n return ZodParsedType.symbol;\n case \"object\":\n if (Array.isArray(data)) {\n return ZodParsedType.array;\n }\n if (data === null) {\n return ZodParsedType.null;\n }\n if (data.then &&\n typeof data.then === \"function\" &&\n data.catch &&\n typeof data.catch === \"function\") {\n return ZodParsedType.promise;\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return ZodParsedType.map;\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return ZodParsedType.set;\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return ZodParsedType.date;\n }\n return ZodParsedType.object;\n default:\n return ZodParsedType.unknown;\n }\n};\n\nconst ZodIssueCode = util.arrayToEnum([\n \"invalid_type\",\n \"invalid_literal\",\n \"custom\",\n \"invalid_union\",\n \"invalid_union_discriminator\",\n \"invalid_enum_value\",\n \"unrecognized_keys\",\n \"invalid_arguments\",\n \"invalid_return_type\",\n \"invalid_date\",\n \"invalid_string\",\n \"too_small\",\n \"too_big\",\n \"invalid_intersection_types\",\n \"not_multiple_of\",\n \"not_finite\",\n]);\nconst quotelessJson = (obj) => {\n const json = JSON.stringify(obj, null, 2);\n return json.replace(/\"([^\"]+)\":/g, \"$1:\");\n};\nclass ZodError extends Error {\n constructor(issues) {\n super();\n this.issues = [];\n this.addIssue = (sub) => {\n this.issues = [...this.issues, sub];\n };\n this.addIssues = (subs = []) => {\n this.issues = [...this.issues, ...subs];\n };\n const actualProto = new.target.prototype;\n if (Object.setPrototypeOf) {\n // eslint-disable-next-line ban/ban\n Object.setPrototypeOf(this, actualProto);\n }\n else {\n this.__proto__ = actualProto;\n }\n this.name = \"ZodError\";\n this.issues = issues;\n }\n get errors() {\n return this.issues;\n }\n format(_mapper) {\n const mapper = _mapper ||\n function (issue) {\n return issue.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\") {\n issue.unionErrors.map(processError);\n }\n else if (issue.code === \"invalid_return_type\") {\n processError(issue.returnTypeError);\n }\n else if (issue.code === \"invalid_arguments\") {\n processError(issue.argumentsError);\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n // if (typeof el === \"string\") {\n // curr[el] = curr[el] || { _errors: [] };\n // } else if (typeof el === \"number\") {\n // const errorArray: any = [];\n // errorArray._errors = [];\n // curr[el] = curr[el] || errorArray;\n // }\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(this);\n return fieldErrors;\n }\n static assert(value) {\n if (!(value instanceof ZodError)) {\n throw new Error(`Not a ZodError: ${value}`);\n }\n }\n toString() {\n return this.message;\n }\n get message() {\n return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);\n }\n get isEmpty() {\n return this.issues.length === 0;\n }\n flatten(mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of this.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n }\n get formErrors() {\n return this.flatten();\n }\n}\nZodError.create = (issues) => {\n const error = new ZodError(issues);\n return error;\n};\n\nconst errorMap = (issue, _ctx) => {\n let message;\n switch (issue.code) {\n case ZodIssueCode.invalid_type:\n if (issue.received === ZodParsedType.undefined) {\n message = \"Required\";\n }\n else {\n message = `Expected ${issue.expected}, received ${issue.received}`;\n }\n break;\n case ZodIssueCode.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;\n break;\n case ZodIssueCode.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, \", \")}`;\n break;\n case ZodIssueCode.invalid_union:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;\n break;\n case ZodIssueCode.invalid_enum_value:\n message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;\n break;\n case ZodIssueCode.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodIssueCode.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodIssueCode.invalid_date:\n message = `Invalid date`;\n break;\n case ZodIssueCode.invalid_string:\n if (typeof issue.validation === \"object\") {\n if (\"includes\" in issue.validation) {\n message = `Invalid input: must include \"${issue.validation.includes}\"`;\n if (typeof issue.validation.position === \"number\") {\n message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n }\n }\n else if (\"startsWith\" in issue.validation) {\n message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n }\n else if (\"endsWith\" in issue.validation) {\n message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n }\n else {\n util.assertNever(issue.validation);\n }\n }\n else if (issue.validation !== \"regex\") {\n message = `Invalid ${issue.validation}`;\n }\n else {\n message = \"Invalid\";\n }\n break;\n case ZodIssueCode.too_small:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${issue.minimum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${new Date(Number(issue.minimum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.too_big:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"bigint\")\n message = `BigInt must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `smaller than or equal to`\n : `smaller than`} ${new Date(Number(issue.maximum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.custom:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodIssueCode.not_multiple_of:\n message = `Number must be a multiple of ${issue.multipleOf}`;\n break;\n case ZodIssueCode.not_finite:\n message = \"Number must be finite\";\n break;\n default:\n message = _ctx.defaultError;\n util.assertNever(issue);\n }\n return { message };\n};\n\nlet overrideErrorMap = errorMap;\nfunction setErrorMap(map) {\n overrideErrorMap = map;\n}\nfunction getErrorMap() {\n return overrideErrorMap;\n}\n\nconst makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...(issueData.path || [])];\n const fullIssue = {\n ...issueData,\n path: fullPath,\n };\n if (issueData.message !== undefined) {\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message,\n };\n }\n let errorMessage = \"\";\n const maps = errorMaps\n .filter((m) => !!m)\n .slice()\n .reverse();\n for (const map of maps) {\n errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: errorMessage,\n };\n};\nconst EMPTY_PATH = [];\nfunction addIssueToContext(ctx, issueData) {\n const overrideMap = getErrorMap();\n const issue = makeIssue({\n issueData: issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n overrideMap,\n overrideMap === errorMap ? undefined : errorMap, // then global default map\n ].filter((x) => !!x),\n });\n ctx.common.issues.push(issue);\n}\nclass ParseStatus {\n constructor() {\n this.value = \"valid\";\n }\n dirty() {\n if (this.value === \"valid\")\n this.value = \"dirty\";\n }\n abort() {\n if (this.value !== \"aborted\")\n this.value = \"aborted\";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s of results) {\n if (s.status === \"aborted\")\n return INVALID;\n if (s.status === \"dirty\")\n status.dirty();\n arrayValue.push(s.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value,\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === \"aborted\")\n return INVALID;\n if (value.status === \"aborted\")\n return INVALID;\n if (key.status === \"dirty\")\n status.dirty();\n if (value.status === \"dirty\")\n status.dirty();\n if (key.value !== \"__proto__\" &&\n (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nconst INVALID = Object.freeze({\n status: \"aborted\",\n});\nconst DIRTY = (value) => ({ status: \"dirty\", value });\nconst OK = (value) => ({ status: \"valid\", value });\nconst isAborted = (x) => x.status === \"aborted\";\nconst isDirty = (x) => x.status === \"dirty\";\nconst isValid = (x) => x.status === \"valid\";\nconst isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nfunction __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nvar errorUtil;\n(function (errorUtil) {\n errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n errorUtil.toString = (message) => typeof message === \"string\" ? message : message === null || message === void 0 ? void 0 : message.message;\n})(errorUtil || (errorUtil = {}));\n\nvar _ZodEnum_cache, _ZodNativeEnum_cache;\nclass ParseInputLazyPath {\n constructor(parent, value, path, key) {\n this._cachedPath = [];\n this.parent = parent;\n this.data = value;\n this._path = path;\n this._key = key;\n }\n get path() {\n if (!this._cachedPath.length) {\n if (this._key instanceof Array) {\n this._cachedPath.push(...this._path, ...this._key);\n }\n else {\n this._cachedPath.push(...this._path, this._key);\n }\n }\n return this._cachedPath;\n }\n}\nconst handleResult = (ctx, result) => {\n if (isValid(result)) {\n return { success: true, data: result.value };\n }\n else {\n if (!ctx.common.issues.length) {\n throw new Error(\"Validation failed but no issues detected.\");\n }\n return {\n success: false,\n get error() {\n if (this._error)\n return this._error;\n const error = new ZodError(ctx.common.issues);\n this._error = error;\n return this._error;\n },\n };\n }\n};\nfunction processCreateParams(params) {\n if (!params)\n return {};\n const { errorMap, invalid_type_error, required_error, description } = params;\n if (errorMap && (invalid_type_error || required_error)) {\n throw new Error(`Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);\n }\n if (errorMap)\n return { errorMap: errorMap, description };\n const customMap = (iss, ctx) => {\n var _a, _b;\n const { message } = params;\n if (iss.code === \"invalid_enum_value\") {\n return { message: message !== null && message !== void 0 ? message : ctx.defaultError };\n }\n if (typeof ctx.data === \"undefined\") {\n return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };\n }\n if (iss.code !== \"invalid_type\")\n return { message: ctx.defaultError };\n return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };\n };\n return { errorMap: customMap, description };\n}\nclass ZodType {\n constructor(def) {\n /** Alias of safeParseAsync */\n this.spa = this.safeParseAsync;\n this._def = def;\n this.parse = this.parse.bind(this);\n this.safeParse = this.safeParse.bind(this);\n this.parseAsync = this.parseAsync.bind(this);\n this.safeParseAsync = this.safeParseAsync.bind(this);\n this.spa = this.spa.bind(this);\n this.refine = this.refine.bind(this);\n this.refinement = this.refinement.bind(this);\n this.superRefine = this.superRefine.bind(this);\n this.optional = this.optional.bind(this);\n this.nullable = this.nullable.bind(this);\n this.nullish = this.nullish.bind(this);\n this.array = this.array.bind(this);\n this.promise = this.promise.bind(this);\n this.or = this.or.bind(this);\n this.and = this.and.bind(this);\n this.transform = this.transform.bind(this);\n this.brand = this.brand.bind(this);\n this.default = this.default.bind(this);\n this.catch = this.catch.bind(this);\n this.describe = this.describe.bind(this);\n this.pipe = this.pipe.bind(this);\n this.readonly = this.readonly.bind(this);\n this.isNullable = this.isNullable.bind(this);\n this.isOptional = this.isOptional.bind(this);\n }\n get description() {\n return this._def.description;\n }\n _getType(input) {\n return getParsedType(input.data);\n }\n _getOrReturnCtx(input, ctx) {\n return (ctx || {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n });\n }\n _processInputParams(input) {\n return {\n status: new ParseStatus(),\n ctx: {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n },\n };\n }\n _parseSync(input) {\n const result = this._parse(input);\n if (isAsync(result)) {\n throw new Error(\"Synchronous parse encountered promise.\");\n }\n return result;\n }\n _parseAsync(input) {\n const result = this._parse(input);\n return Promise.resolve(result);\n }\n parse(data, params) {\n const result = this.safeParse(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n safeParse(data, params) {\n var _a;\n const ctx = {\n common: {\n issues: [],\n async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType(data),\n };\n const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n return handleResult(ctx, result);\n }\n async parseAsync(data, params) {\n const result = await this.safeParseAsync(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n async safeParseAsync(data, params) {\n const ctx = {\n common: {\n issues: [],\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n async: true,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType(data),\n };\n const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });\n const result = await (isAsync(maybeAsyncResult)\n ? maybeAsyncResult\n : Promise.resolve(maybeAsyncResult));\n return handleResult(ctx, result);\n }\n refine(check, message) {\n const getIssueProperties = (val) => {\n if (typeof message === \"string\" || typeof message === \"undefined\") {\n return { message };\n }\n else if (typeof message === \"function\") {\n return message(val);\n }\n else {\n return message;\n }\n };\n return this._refinement((val, ctx) => {\n const result = check(val);\n const setError = () => ctx.addIssue({\n code: ZodIssueCode.custom,\n ...getIssueProperties(val),\n });\n if (typeof Promise !== \"undefined\" && result instanceof Promise) {\n return result.then((data) => {\n if (!data) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n if (!result) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n refinement(check, refinementData) {\n return this._refinement((val, ctx) => {\n if (!check(val)) {\n ctx.addIssue(typeof refinementData === \"function\"\n ? refinementData(val, ctx)\n : refinementData);\n return false;\n }\n else {\n return true;\n }\n });\n }\n _refinement(refinement) {\n return new ZodEffects({\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"refinement\", refinement },\n });\n }\n superRefine(refinement) {\n return this._refinement(refinement);\n }\n optional() {\n return ZodOptional.create(this, this._def);\n }\n nullable() {\n return ZodNullable.create(this, this._def);\n }\n nullish() {\n return this.nullable().optional();\n }\n array() {\n return ZodArray.create(this, this._def);\n }\n promise() {\n return ZodPromise.create(this, this._def);\n }\n or(option) {\n return ZodUnion.create([this, option], this._def);\n }\n and(incoming) {\n return ZodIntersection.create(this, incoming, this._def);\n }\n transform(transform) {\n return new ZodEffects({\n ...processCreateParams(this._def),\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"transform\", transform },\n });\n }\n default(def) {\n const defaultValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodDefault({\n ...processCreateParams(this._def),\n innerType: this,\n defaultValue: defaultValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n });\n }\n brand() {\n return new ZodBranded({\n typeName: ZodFirstPartyTypeKind.ZodBranded,\n type: this,\n ...processCreateParams(this._def),\n });\n }\n catch(def) {\n const catchValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodCatch({\n ...processCreateParams(this._def),\n innerType: this,\n catchValue: catchValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n });\n }\n describe(description) {\n const This = this.constructor;\n return new This({\n ...this._def,\n description,\n });\n }\n pipe(target) {\n return ZodPipeline.create(this, target);\n }\n readonly() {\n return ZodReadonly.create(this);\n }\n isOptional() {\n return this.safeParse(undefined).success;\n }\n isNullable() {\n return this.safeParse(null).success;\n }\n}\nconst cuidRegex = /^c[^\\s-]{8,}$/i;\nconst cuid2Regex = /^[0-9a-z]+$/;\nconst ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;\n// const uuidRegex =\n// /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;\nconst uuidRegex = /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i;\nconst nanoidRegex = /^[a-z0-9_-]{21}$/i;\nconst durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\n// from https://stackoverflow.com/a/46181/1550155\n// old version: too slow, didn't support unicode\n// const emailRegex = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i;\n//old email regex\n// const emailRegex = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@((?!-)([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{1,})[^-<>()[\\].,;:\\s@\"]$/i;\n// eslint-disable-next-line\n// const emailRegex =\n// /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\])|(\\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\\.[A-Za-z]{2,})+))$/;\n// const emailRegex =\n// /^[a-zA-Z0-9\\.\\!\\#\\$\\%\\&\\'\\*\\+\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// const emailRegex =\n// /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])$/i;\nconst emailRegex = /^(?!\\.)(?!.*\\.\\.)([A-Z0-9_'+\\-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i;\n// const emailRegex =\n// /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\\.[a-z0-9\\-]+)*$/i;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emojiRegex = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nlet emojiRegex;\n// faster, simpler, safer\nconst ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nconst ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nconst base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;\n// simple\n// const dateRegexSource = `\\\\d{4}-\\\\d{2}-\\\\d{2}`;\n// no leap year validation\n// const dateRegexSource = `\\\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\\\d|2\\\\d))`;\n// with leap year validation\nconst dateRegexSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nconst dateRegex = new RegExp(`^${dateRegexSource}$`);\nfunction timeRegexSource(args) {\n // let regex = `\\\\d{2}:\\\\d{2}:\\\\d{2}`;\n let regex = `([01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d`;\n if (args.precision) {\n regex = `${regex}\\\\.\\\\d{${args.precision}}`;\n }\n else if (args.precision == null) {\n regex = `${regex}(\\\\.\\\\d+)?`;\n }\n return regex;\n}\nfunction timeRegex(args) {\n return new RegExp(`^${timeRegexSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nfunction datetimeRegex(args) {\n let regex = `${dateRegexSource}T${timeRegexSource(args)}`;\n const opts = [];\n opts.push(args.local ? `Z?` : `Z`);\n if (args.offset)\n opts.push(`([+-]\\\\d{2}:?\\\\d{2})`);\n regex = `${regex}(${opts.join(\"|\")})`;\n return new RegExp(`^${regex}$`);\n}\nfunction isValidIP(ip, version) {\n if ((version === \"v4\" || !version) && ipv4Regex.test(ip)) {\n return true;\n }\n if ((version === \"v6\" || !version) && ipv6Regex.test(ip)) {\n return true;\n }\n return false;\n}\nclass ZodString extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = String(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.string) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.string,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const status = new ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.length < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.length > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"length\") {\n const tooBig = input.data.length > check.value;\n const tooSmall = input.data.length < check.value;\n if (tooBig || tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n if (tooBig) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n else if (tooSmall) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n status.dirty();\n }\n }\n else if (check.kind === \"email\") {\n if (!emailRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"email\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"emoji\") {\n if (!emojiRegex) {\n emojiRegex = new RegExp(_emojiRegex, \"u\");\n }\n if (!emojiRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"emoji\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"uuid\") {\n if (!uuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"uuid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"nanoid\") {\n if (!nanoidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"nanoid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid\") {\n if (!cuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"cuid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid2\") {\n if (!cuid2Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"cuid2\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ulid\") {\n if (!ulidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"ulid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"url\") {\n try {\n new URL(input.data);\n }\n catch (_a) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"url\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"regex\") {\n check.regex.lastIndex = 0;\n const testResult = check.regex.test(input.data);\n if (!testResult) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"regex\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"trim\") {\n input.data = input.data.trim();\n }\n else if (check.kind === \"includes\") {\n if (!input.data.includes(check.value, check.position)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { includes: check.value, position: check.position },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"toLowerCase\") {\n input.data = input.data.toLowerCase();\n }\n else if (check.kind === \"toUpperCase\") {\n input.data = input.data.toUpperCase();\n }\n else if (check.kind === \"startsWith\") {\n if (!input.data.startsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { startsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"endsWith\") {\n if (!input.data.endsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { endsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"datetime\") {\n const regex = datetimeRegex(check);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: \"datetime\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"date\") {\n const regex = dateRegex;\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: \"date\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"time\") {\n const regex = timeRegex(check);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: \"time\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"duration\") {\n if (!durationRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"duration\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ip\") {\n if (!isValidIP(input.data, check.version)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"ip\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"base64\") {\n if (!base64Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"base64\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n _regex(regex, validation, message) {\n return this.refinement((data) => regex.test(data), {\n validation,\n code: ZodIssueCode.invalid_string,\n ...errorUtil.errToObj(message),\n });\n }\n _addCheck(check) {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n email(message) {\n return this._addCheck({ kind: \"email\", ...errorUtil.errToObj(message) });\n }\n url(message) {\n return this._addCheck({ kind: \"url\", ...errorUtil.errToObj(message) });\n }\n emoji(message) {\n return this._addCheck({ kind: \"emoji\", ...errorUtil.errToObj(message) });\n }\n uuid(message) {\n return this._addCheck({ kind: \"uuid\", ...errorUtil.errToObj(message) });\n }\n nanoid(message) {\n return this._addCheck({ kind: \"nanoid\", ...errorUtil.errToObj(message) });\n }\n cuid(message) {\n return this._addCheck({ kind: \"cuid\", ...errorUtil.errToObj(message) });\n }\n cuid2(message) {\n return this._addCheck({ kind: \"cuid2\", ...errorUtil.errToObj(message) });\n }\n ulid(message) {\n return this._addCheck({ kind: \"ulid\", ...errorUtil.errToObj(message) });\n }\n base64(message) {\n return this._addCheck({ kind: \"base64\", ...errorUtil.errToObj(message) });\n }\n ip(options) {\n return this._addCheck({ kind: \"ip\", ...errorUtil.errToObj(options) });\n }\n datetime(options) {\n var _a, _b;\n if (typeof options === \"string\") {\n return this._addCheck({\n kind: \"datetime\",\n precision: null,\n offset: false,\n local: false,\n message: options,\n });\n }\n return this._addCheck({\n kind: \"datetime\",\n precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === \"undefined\" ? null : options === null || options === void 0 ? void 0 : options.precision,\n offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,\n local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,\n ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n date(message) {\n return this._addCheck({ kind: \"date\", message });\n }\n time(options) {\n if (typeof options === \"string\") {\n return this._addCheck({\n kind: \"time\",\n precision: null,\n message: options,\n });\n }\n return this._addCheck({\n kind: \"time\",\n precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === \"undefined\" ? null : options === null || options === void 0 ? void 0 : options.precision,\n ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n duration(message) {\n return this._addCheck({ kind: \"duration\", ...errorUtil.errToObj(message) });\n }\n regex(regex, message) {\n return this._addCheck({\n kind: \"regex\",\n regex: regex,\n ...errorUtil.errToObj(message),\n });\n }\n includes(value, options) {\n return this._addCheck({\n kind: \"includes\",\n value: value,\n position: options === null || options === void 0 ? void 0 : options.position,\n ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n startsWith(value, message) {\n return this._addCheck({\n kind: \"startsWith\",\n value: value,\n ...errorUtil.errToObj(message),\n });\n }\n endsWith(value, message) {\n return this._addCheck({\n kind: \"endsWith\",\n value: value,\n ...errorUtil.errToObj(message),\n });\n }\n min(minLength, message) {\n return this._addCheck({\n kind: \"min\",\n value: minLength,\n ...errorUtil.errToObj(message),\n });\n }\n max(maxLength, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxLength,\n ...errorUtil.errToObj(message),\n });\n }\n length(len, message) {\n return this._addCheck({\n kind: \"length\",\n value: len,\n ...errorUtil.errToObj(message),\n });\n }\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message) {\n return this.min(1, errorUtil.errToObj(message));\n }\n trim() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"trim\" }],\n });\n }\n toLowerCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toLowerCase\" }],\n });\n }\n toUpperCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toUpperCase\" }],\n });\n }\n get isDatetime() {\n return !!this._def.checks.find((ch) => ch.kind === \"datetime\");\n }\n get isDate() {\n return !!this._def.checks.find((ch) => ch.kind === \"date\");\n }\n get isTime() {\n return !!this._def.checks.find((ch) => ch.kind === \"time\");\n }\n get isDuration() {\n return !!this._def.checks.find((ch) => ch.kind === \"duration\");\n }\n get isEmail() {\n return !!this._def.checks.find((ch) => ch.kind === \"email\");\n }\n get isURL() {\n return !!this._def.checks.find((ch) => ch.kind === \"url\");\n }\n get isEmoji() {\n return !!this._def.checks.find((ch) => ch.kind === \"emoji\");\n }\n get isUUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"uuid\");\n }\n get isNANOID() {\n return !!this._def.checks.find((ch) => ch.kind === \"nanoid\");\n }\n get isCUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid\");\n }\n get isCUID2() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid2\");\n }\n get isULID() {\n return !!this._def.checks.find((ch) => ch.kind === \"ulid\");\n }\n get isIP() {\n return !!this._def.checks.find((ch) => ch.kind === \"ip\");\n }\n get isBase64() {\n return !!this._def.checks.find((ch) => ch.kind === \"base64\");\n }\n get minLength() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxLength() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nZodString.create = (params) => {\n var _a;\n return new ZodString({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodString,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\n// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034\nfunction floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n const stepInt = parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n return (valInt % stepInt) / Math.pow(10, decCount);\n}\nclass ZodNumber extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n this.step = this.multipleOf;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = Number(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.number) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.number,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n let ctx = undefined;\n const status = new ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"int\") {\n if (!util.isInteger(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: \"integer\",\n received: \"float\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (floatSafeRemainder(input.data, check.value) !== 0) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"finite\") {\n if (!Number.isFinite(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.not_finite,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodNumber({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodNumber({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n int(message) {\n return this._addCheck({\n kind: \"int\",\n message: errorUtil.toString(message),\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value: value,\n message: errorUtil.toString(message),\n });\n }\n finite(message) {\n return this._addCheck({\n kind: \"finite\",\n message: errorUtil.toString(message),\n });\n }\n safe(message) {\n return this._addCheck({\n kind: \"min\",\n inclusive: true,\n value: Number.MIN_SAFE_INTEGER,\n message: errorUtil.toString(message),\n })._addCheck({\n kind: \"max\",\n inclusive: true,\n value: Number.MAX_SAFE_INTEGER,\n message: errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n get isInt() {\n return !!this._def.checks.find((ch) => ch.kind === \"int\" ||\n (ch.kind === \"multipleOf\" && util.isInteger(ch.value)));\n }\n get isFinite() {\n let max = null, min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"finite\" ||\n ch.kind === \"int\" ||\n ch.kind === \"multipleOf\") {\n return true;\n }\n else if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n else if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return Number.isFinite(min) && Number.isFinite(max);\n }\n}\nZodNumber.create = (params) => {\n return new ZodNumber({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodNumber,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodBigInt extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = BigInt(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.bigint) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.bigint,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n let ctx = undefined;\n const status = new ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n type: \"bigint\",\n minimum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n type: \"bigint\",\n maximum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (input.data % check.value !== BigInt(0)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodBigInt({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodBigInt({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value,\n message: errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nZodBigInt.create = (params) => {\n var _a;\n return new ZodBigInt({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodBigInt,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\nclass ZodBoolean extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = Boolean(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.boolean) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.boolean,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodBoolean.create = (params) => {\n return new ZodBoolean({\n typeName: ZodFirstPartyTypeKind.ZodBoolean,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodDate extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = new Date(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.date) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.date,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (isNaN(input.data.getTime())) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_date,\n });\n return INVALID;\n }\n const status = new ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.getTime() < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n message: check.message,\n inclusive: true,\n exact: false,\n minimum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.getTime() > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n message: check.message,\n inclusive: true,\n exact: false,\n maximum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return {\n status: status.value,\n value: new Date(input.data.getTime()),\n };\n }\n _addCheck(check) {\n return new ZodDate({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n min(minDate, message) {\n return this._addCheck({\n kind: \"min\",\n value: minDate.getTime(),\n message: errorUtil.toString(message),\n });\n }\n max(maxDate, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxDate.getTime(),\n message: errorUtil.toString(message),\n });\n }\n get minDate() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min != null ? new Date(min) : null;\n }\n get maxDate() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max != null ? new Date(max) : null;\n }\n}\nZodDate.create = (params) => {\n return new ZodDate({\n checks: [],\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n typeName: ZodFirstPartyTypeKind.ZodDate,\n ...processCreateParams(params),\n });\n};\nclass ZodSymbol extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.symbol) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.symbol,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodSymbol.create = (params) => {\n return new ZodSymbol({\n typeName: ZodFirstPartyTypeKind.ZodSymbol,\n ...processCreateParams(params),\n });\n};\nclass ZodUndefined extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.undefined,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodUndefined.create = (params) => {\n return new ZodUndefined({\n typeName: ZodFirstPartyTypeKind.ZodUndefined,\n ...processCreateParams(params),\n });\n};\nclass ZodNull extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.null) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.null,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodNull.create = (params) => {\n return new ZodNull({\n typeName: ZodFirstPartyTypeKind.ZodNull,\n ...processCreateParams(params),\n });\n};\nclass ZodAny extends ZodType {\n constructor() {\n super(...arguments);\n // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.\n this._any = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodAny.create = (params) => {\n return new ZodAny({\n typeName: ZodFirstPartyTypeKind.ZodAny,\n ...processCreateParams(params),\n });\n};\nclass ZodUnknown extends ZodType {\n constructor() {\n super(...arguments);\n // required\n this._unknown = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodUnknown.create = (params) => {\n return new ZodUnknown({\n typeName: ZodFirstPartyTypeKind.ZodUnknown,\n ...processCreateParams(params),\n });\n};\nclass ZodNever extends ZodType {\n _parse(input) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.never,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n}\nZodNever.create = (params) => {\n return new ZodNever({\n typeName: ZodFirstPartyTypeKind.ZodNever,\n ...processCreateParams(params),\n });\n};\nclass ZodVoid extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.void,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodVoid.create = (params) => {\n return new ZodVoid({\n typeName: ZodFirstPartyTypeKind.ZodVoid,\n ...processCreateParams(params),\n });\n};\nclass ZodArray extends ZodType {\n _parse(input) {\n const { ctx, status } = this._processInputParams(input);\n const def = this._def;\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (def.exactLength !== null) {\n const tooBig = ctx.data.length > def.exactLength.value;\n const tooSmall = ctx.data.length < def.exactLength.value;\n if (tooBig || tooSmall) {\n addIssueToContext(ctx, {\n code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,\n minimum: (tooSmall ? def.exactLength.value : undefined),\n maximum: (tooBig ? def.exactLength.value : undefined),\n type: \"array\",\n inclusive: true,\n exact: true,\n message: def.exactLength.message,\n });\n status.dirty();\n }\n }\n if (def.minLength !== null) {\n if (ctx.data.length < def.minLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: def.minLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.minLength.message,\n });\n status.dirty();\n }\n }\n if (def.maxLength !== null) {\n if (ctx.data.length > def.maxLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: def.maxLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.maxLength.message,\n });\n status.dirty();\n }\n }\n if (ctx.common.async) {\n return Promise.all([...ctx.data].map((item, i) => {\n return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n })).then((result) => {\n return ParseStatus.mergeArray(status, result);\n });\n }\n const result = [...ctx.data].map((item, i) => {\n return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n });\n return ParseStatus.mergeArray(status, result);\n }\n get element() {\n return this._def.type;\n }\n min(minLength, message) {\n return new ZodArray({\n ...this._def,\n minLength: { value: minLength, message: errorUtil.toString(message) },\n });\n }\n max(maxLength, message) {\n return new ZodArray({\n ...this._def,\n maxLength: { value: maxLength, message: errorUtil.toString(message) },\n });\n }\n length(len, message) {\n return new ZodArray({\n ...this._def,\n exactLength: { value: len, message: errorUtil.toString(message) },\n });\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodArray.create = (schema, params) => {\n return new ZodArray({\n type: schema,\n minLength: null,\n maxLength: null,\n exactLength: null,\n typeName: ZodFirstPartyTypeKind.ZodArray,\n ...processCreateParams(params),\n });\n};\nfunction deepPartialify(schema) {\n if (schema instanceof ZodObject) {\n const newShape = {};\n for (const key in schema.shape) {\n const fieldSchema = schema.shape[key];\n newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));\n }\n return new ZodObject({\n ...schema._def,\n shape: () => newShape,\n });\n }\n else if (schema instanceof ZodArray) {\n return new ZodArray({\n ...schema._def,\n type: deepPartialify(schema.element),\n });\n }\n else if (schema instanceof ZodOptional) {\n return ZodOptional.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodNullable) {\n return ZodNullable.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodTuple) {\n return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));\n }\n else {\n return schema;\n }\n}\nclass ZodObject extends ZodType {\n constructor() {\n super(...arguments);\n this._cached = null;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n this.nonstrict = this.passthrough;\n // extend<\n // Augmentation extends ZodRawShape,\n // NewOutput extends util.flatten<{\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // }>,\n // NewInput extends util.flatten<{\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }>\n // >(\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape<T, Augmentation>,\n // UnknownKeys,\n // Catchall,\n // NewOutput,\n // NewInput\n // > {\n // return new ZodObject({\n // ...this._def,\n // shape: () => ({\n // ...this._def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // }\n /**\n * @deprecated Use `.extend` instead\n * */\n this.augment = this.extend;\n }\n _getCached() {\n if (this._cached !== null)\n return this._cached;\n const shape = this._def.shape();\n const keys = util.objectKeys(shape);\n return (this._cached = { shape, keys });\n }\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.object) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const { status, ctx } = this._processInputParams(input);\n const { shape, keys: shapeKeys } = this._getCached();\n const extraKeys = [];\n if (!(this._def.catchall instanceof ZodNever &&\n this._def.unknownKeys === \"strip\")) {\n for (const key in ctx.data) {\n if (!shapeKeys.includes(key)) {\n extraKeys.push(key);\n }\n }\n }\n const pairs = [];\n for (const key of shapeKeys) {\n const keyValidator = shape[key];\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n alwaysSet: key in ctx.data,\n });\n }\n if (this._def.catchall instanceof ZodNever) {\n const unknownKeys = this._def.unknownKeys;\n if (unknownKeys === \"passthrough\") {\n for (const key of extraKeys) {\n pairs.push({\n key: { status: \"valid\", value: key },\n value: { status: \"valid\", value: ctx.data[key] },\n });\n }\n }\n else if (unknownKeys === \"strict\") {\n if (extraKeys.length > 0) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.unrecognized_keys,\n keys: extraKeys,\n });\n status.dirty();\n }\n }\n else if (unknownKeys === \"strip\") ;\n else {\n throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n }\n }\n else {\n // run catchall validation\n const catchall = this._def.catchall;\n for (const key of extraKeys) {\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)\n ),\n alwaysSet: key in ctx.data,\n });\n }\n }\n if (ctx.common.async) {\n return Promise.resolve()\n .then(async () => {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value,\n alwaysSet: pair.alwaysSet,\n });\n }\n return syncPairs;\n })\n .then((syncPairs) => {\n return ParseStatus.mergeObjectSync(status, syncPairs);\n });\n }\n else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get shape() {\n return this._def.shape();\n }\n strict(message) {\n errorUtil.errToObj;\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strict\",\n ...(message !== undefined\n ? {\n errorMap: (issue, ctx) => {\n var _a, _b, _c, _d;\n const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;\n if (issue.code === \"unrecognized_keys\")\n return {\n message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,\n };\n return {\n message: defaultError,\n };\n },\n }\n : {}),\n });\n }\n strip() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strip\",\n });\n }\n passthrough() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"passthrough\",\n });\n }\n // const AugmentFactory =\n // <Def extends ZodObjectDef>(def: Def) =>\n // <Augmentation extends ZodRawShape>(\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape<ReturnType<Def[\"shape\"]>, Augmentation>,\n // Def[\"unknownKeys\"],\n // Def[\"catchall\"]\n // > => {\n // return new ZodObject({\n // ...def,\n // shape: () => ({\n // ...def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // };\n extend(augmentation) {\n return new ZodObject({\n ...this._def,\n shape: () => ({\n ...this._def.shape(),\n ...augmentation,\n }),\n });\n }\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge(merging) {\n const merged = new ZodObject({\n unknownKeys: merging._def.unknownKeys,\n catchall: merging._def.catchall,\n shape: () => ({\n ...this._def.shape(),\n ...merging._def.shape(),\n }),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n });\n return merged;\n }\n // merge<\n // Incoming extends AnyZodObject,\n // Augmentation extends Incoming[\"shape\"],\n // NewOutput extends {\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // },\n // NewInput extends {\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }\n // >(\n // merging: Incoming\n // ): ZodObject<\n // extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"],\n // NewOutput,\n // NewInput\n // > {\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n setKey(key, schema) {\n return this.augment({ [key]: schema });\n }\n // merge<Incoming extends AnyZodObject>(\n // merging: Incoming\n // ): //ZodObject<T & Incoming[\"_shape\"], UnknownKeys, Catchall> = (merging) => {\n // ZodObject<\n // extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"]\n // > {\n // // const mergedShape = objectUtil.mergeShapes(\n // // this._def.shape(),\n // // merging._def.shape()\n // // );\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n catchall(index) {\n return new ZodObject({\n ...this._def,\n catchall: index,\n });\n }\n pick(mask) {\n const shape = {};\n util.objectKeys(mask).forEach((key) => {\n if (mask[key] && this.shape[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n omit(mask) {\n const shape = {};\n util.objectKeys(this.shape).forEach((key) => {\n if (!mask[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n /**\n * @deprecated\n */\n deepPartial() {\n return deepPartialify(this);\n }\n partial(mask) {\n const newShape = {};\n util.objectKeys(this.shape).forEach((key) => {\n const fieldSchema = this.shape[key];\n if (mask && !mask[key]) {\n newShape[key] = fieldSchema;\n }\n else {\n newShape[key] = fieldSchema.optional();\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n required(mask) {\n const newShape = {};\n util.objectKeys(this.shape).forEach((key) => {\n if (mask && !mask[key]) {\n newShape[key] = this.shape[key];\n }\n else {\n const fieldSchema = this.shape[key];\n let newField = fieldSchema;\n while (newField instanceof ZodOptional) {\n newField = newField._def.innerType;\n }\n newShape[key] = newField;\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n keyof() {\n return createZodEnum(util.objectKeys(this.shape));\n }\n}\nZodObject.create = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.strictCreate = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strict\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.lazycreate = (shape, params) => {\n return new ZodObject({\n shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nclass ZodUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const options = this._def.options;\n function handleResults(results) {\n // return first issue-free validation if it exists\n for (const result of results) {\n if (result.result.status === \"valid\") {\n return result.result;\n }\n }\n for (const result of results) {\n if (result.result.status === \"dirty\") {\n // add issues from dirty option\n ctx.common.issues.push(...result.ctx.common.issues);\n return result.result;\n }\n }\n // return invalid\n const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union,\n unionErrors,\n });\n return INVALID;\n }\n if (ctx.common.async) {\n return Promise.all(options.map(async (option) => {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n return {\n result: await option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n }),\n ctx: childCtx,\n };\n })).then(handleResults);\n }\n else {\n let dirty = undefined;\n const issues = [];\n for (const option of options) {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n const result = option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n });\n if (result.status === \"valid\") {\n return result;\n }\n else if (result.status === \"dirty\" && !dirty) {\n dirty = { result, ctx: childCtx };\n }\n if (childCtx.common.issues.length) {\n issues.push(childCtx.common.issues);\n }\n }\n if (dirty) {\n ctx.common.issues.push(...dirty.ctx.common.issues);\n return dirty.result;\n }\n const unionErrors = issues.map((issues) => new ZodError(issues));\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union,\n unionErrors,\n });\n return INVALID;\n }\n }\n get options() {\n return this._def.options;\n }\n}\nZodUnion.create = (types, params) => {\n return new ZodUnion({\n options: types,\n typeName: ZodFirstPartyTypeKind.ZodUnion,\n ...processCreateParams(params),\n });\n};\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\n////////// //////////\n////////// ZodDiscriminatedUnion //////////\n////////// //////////\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\nconst getDiscriminator = (type) => {\n if (type instanceof ZodLazy) {\n return getDiscriminator(type.schema);\n }\n else if (type instanceof ZodEffects) {\n return getDiscriminator(type.innerType());\n }\n else if (type instanceof ZodLiteral) {\n return [type.value];\n }\n else if (type instanceof ZodEnum) {\n return type.options;\n }\n else if (type instanceof ZodNativeEnum) {\n // eslint-disable-next-line ban/ban\n return util.objectValues(type.enum);\n }\n else if (type instanceof ZodDefault) {\n return getDiscriminator(type._def.innerType);\n }\n else if (type instanceof ZodUndefined) {\n return [undefined];\n }\n else if (type instanceof ZodNull) {\n return [null];\n }\n else if (type instanceof ZodOptional) {\n return [undefined, ...getDiscriminator(type.unwrap())];\n }\n else if (type instanceof ZodNullable) {\n return [null, ...getDiscriminator(type.unwrap())];\n }\n else if (type instanceof ZodBranded) {\n return getDiscriminator(type.unwrap());\n }\n else if (type instanceof ZodReadonly) {\n return getDiscriminator(type.unwrap());\n }\n else if (type instanceof ZodCatch) {\n return getDiscriminator(type._def.innerType);\n }\n else {\n return [];\n }\n};\nclass ZodDiscriminatedUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const discriminator = this.discriminator;\n const discriminatorValue = ctx.data[discriminator];\n const option = this.optionsMap.get(discriminatorValue);\n if (!option) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union_discriminator,\n options: Array.from(this.optionsMap.keys()),\n path: [discriminator],\n });\n return INVALID;\n }\n if (ctx.common.async) {\n return option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n else {\n return option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n get discriminator() {\n return this._def.discriminator;\n }\n get options() {\n return this._def.options;\n }\n get optionsMap() {\n return this._def.optionsMap;\n }\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create(discriminator, options, params) {\n // Get all the valid discriminator values\n const optionsMap = new Map();\n // try {\n for (const type of options) {\n const discriminatorValues = getDiscriminator(type.shape[discriminator]);\n if (!discriminatorValues.length) {\n throw new Error(`A discriminator value for key \\`${discriminator}\\` could not be extracted from all schema options`);\n }\n for (const value of discriminatorValues) {\n if (optionsMap.has(value)) {\n throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);\n }\n optionsMap.set(value, type);\n }\n }\n return new ZodDiscriminatedUnion({\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n discriminator,\n options,\n optionsMap,\n ...processCreateParams(params),\n });\n }\n}\nfunction mergeValues(a, b) {\n const aType = getParsedType(a);\n const bType = getParsedType(b);\n if (a === b) {\n return { valid: true, data: a };\n }\n else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {\n const bKeys = util.objectKeys(b);\n const sharedKeys = util\n .objectKeys(a)\n .filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a, ...b };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues(a[key], b[key]);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n }\n else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {\n if (a.length !== b.length) {\n return { valid: false };\n }\n const newArray = [];\n for (let index = 0; index < a.length; index++) {\n const itemA = a[index];\n const itemB = b[index];\n const sharedValue = mergeValues(itemA, itemB);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n }\n else if (aType === ZodParsedType.date &&\n bType === ZodParsedType.date &&\n +a === +b) {\n return { valid: true, data: a };\n }\n else {\n return { valid: false };\n }\n}\nclass ZodIntersection extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const handleParsed = (parsedLeft, parsedRight) => {\n if (isAborted(parsedLeft) || isAborted(parsedRight)) {\n return INVALID;\n }\n const merged = mergeValues(parsedLeft.value, parsedRight.value);\n if (!merged.valid) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_intersection_types,\n });\n return INVALID;\n }\n if (isDirty(parsedLeft) || isDirty(parsedRight)) {\n status.dirty();\n }\n return { status: status.value, value: merged.data };\n };\n if (ctx.common.async) {\n return Promise.all([\n this._def.left._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n this._def.right._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n ]).then(([left, right]) => handleParsed(left, right));\n }\n else {\n return handleParsed(this._def.left._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }), this._def.right._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }));\n }\n }\n}\nZodIntersection.create = (left, right, params) => {\n return new ZodIntersection({\n left: left,\n right: right,\n typeName: ZodFirstPartyTypeKind.ZodIntersection,\n ...processCreateParams(params),\n });\n};\nclass ZodTuple extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (ctx.data.length < this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n return INVALID;\n }\n const rest = this._def.rest;\n if (!rest && ctx.data.length > this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n status.dirty();\n }\n const items = [...ctx.data]\n .map((item, itemIndex) => {\n const schema = this._def.items[itemIndex] || this._def.rest;\n if (!schema)\n return null;\n return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n })\n .filter((x) => !!x); // filter nulls\n if (ctx.common.async) {\n return Promise.all(items).then((results) => {\n return ParseStatus.mergeArray(status, results);\n });\n }\n else {\n return ParseStatus.mergeArray(status, items);\n }\n }\n get items() {\n return this._def.items;\n }\n rest(rest) {\n return new ZodTuple({\n ...this._def,\n rest,\n });\n }\n}\nZodTuple.create = (schemas, params) => {\n if (!Array.isArray(schemas)) {\n throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");\n }\n return new ZodTuple({\n items: schemas,\n typeName: ZodFirstPartyTypeKind.ZodTuple,\n rest: null,\n ...processCreateParams(params),\n });\n};\nclass ZodRecord extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const pairs = [];\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n for (const key in ctx.data) {\n pairs.push({\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n alwaysSet: key in ctx.data,\n });\n }\n if (ctx.common.async) {\n return ParseStatus.mergeObjectAsync(status, pairs);\n }\n else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get element() {\n return this._def.valueType;\n }\n static create(first, second, third) {\n if (second instanceof ZodType) {\n return new ZodRecord({\n keyType: first,\n valueType: second,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(third),\n });\n }\n return new ZodRecord({\n keyType: ZodString.create(),\n valueType: first,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(second),\n });\n }\n}\nclass ZodMap extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.map) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.map,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n return {\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, \"key\"])),\n value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, \"value\"])),\n };\n });\n if (ctx.common.async) {\n const finalMap = new Map();\n return Promise.resolve().then(async () => {\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n });\n }\n else {\n const finalMap = new Map();\n for (const pair of pairs) {\n const key = pair.key;\n const value = pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n }\n }\n}\nZodMap.create = (keyType, valueType, params) => {\n return new ZodMap({\n valueType,\n keyType,\n typeName: ZodFirstPartyTypeKind.ZodMap,\n ...processCreateParams(params),\n });\n};\nclass ZodSet extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.set) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.set,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const def = this._def;\n if (def.minSize !== null) {\n if (ctx.data.size < def.minSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: def.minSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.minSize.message,\n });\n status.dirty();\n }\n }\n if (def.maxSize !== null) {\n if (ctx.data.size > def.maxSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: def.maxSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.maxSize.message,\n });\n status.dirty();\n }\n }\n const valueType = this._def.valueType;\n function finalizeSet(elements) {\n const parsedSet = new Set();\n for (const element of elements) {\n if (element.status === \"aborted\")\n return INVALID;\n if (element.status === \"dirty\")\n status.dirty();\n parsedSet.add(element.value);\n }\n return { status: status.value, value: parsedSet };\n }\n const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));\n if (ctx.common.async) {\n return Promise.all(elements).then((elements) => finalizeSet(elements));\n }\n else {\n return finalizeSet(elements);\n }\n }\n min(minSize, message) {\n return new ZodSet({\n ...this._def,\n minSize: { value: minSize, message: errorUtil.toString(message) },\n });\n }\n max(maxSize, message) {\n return new ZodSet({\n ...this._def,\n maxSize: { value: maxSize, message: errorUtil.toString(message) },\n });\n }\n size(size, message) {\n return this.min(size, message).max(size, message);\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodSet.create = (valueType, params) => {\n return new ZodSet({\n valueType,\n minSize: null,\n maxSize: null,\n typeName: ZodFirstPartyTypeKind.ZodSet,\n ...processCreateParams(params),\n });\n};\nclass ZodFunction extends ZodType {\n constructor() {\n super(...arguments);\n this.validate = this.implement;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.function) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.function,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n function makeArgsIssue(args, error) {\n return makeIssue({\n data: args,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n getErrorMap(),\n errorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodIssueCode.invalid_arguments,\n argumentsError: error,\n },\n });\n }\n function makeReturnsIssue(returns, error) {\n return makeIssue({\n data: returns,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n getErrorMap(),\n errorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodIssueCode.invalid_return_type,\n returnTypeError: error,\n },\n });\n }\n const params = { errorMap: ctx.common.contextualErrorMap };\n const fn = ctx.data;\n if (this._def.returns instanceof ZodPromise) {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return OK(async function (...args) {\n const error = new ZodError([]);\n const parsedArgs = await me._def.args\n .parseAsync(args, params)\n .catch((e) => {\n error.addIssue(makeArgsIssue(args, e));\n throw error;\n });\n const result = await Reflect.apply(fn, this, parsedArgs);\n const parsedReturns = await me._def.returns._def.type\n .parseAsync(result, params)\n .catch((e) => {\n error.addIssue(makeReturnsIssue(result, e));\n throw error;\n });\n return parsedReturns;\n });\n }\n else {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return OK(function (...args) {\n const parsedArgs = me._def.args.safeParse(args, params);\n if (!parsedArgs.success) {\n throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);\n }\n const result = Reflect.apply(fn, this, parsedArgs.data);\n const parsedReturns = me._def.returns.safeParse(result, params);\n if (!parsedReturns.success) {\n throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);\n }\n return parsedReturns.data;\n });\n }\n }\n parameters() {\n return this._def.args;\n }\n returnType() {\n return this._def.returns;\n }\n args(...items) {\n return new ZodFunction({\n ...this._def,\n args: ZodTuple.create(items).rest(ZodUnknown.create()),\n });\n }\n returns(returnType) {\n return new ZodFunction({\n ...this._def,\n returns: returnType,\n });\n }\n implement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n strictImplement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n static create(args, returns, params) {\n return new ZodFunction({\n args: (args\n ? args\n : ZodTuple.create([]).rest(ZodUnknown.create())),\n returns: returns || ZodUnknown.create(),\n typeName: ZodFirstPartyTypeKind.ZodFunction,\n ...processCreateParams(params),\n });\n }\n}\nclass ZodLazy extends ZodType {\n get schema() {\n return this._def.getter();\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const lazySchema = this._def.getter();\n return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n }\n}\nZodLazy.create = (getter, params) => {\n return new ZodLazy({\n getter: getter,\n typeName: ZodFirstPartyTypeKind.ZodLazy,\n ...processCreateParams(params),\n });\n};\nclass ZodLiteral extends ZodType {\n _parse(input) {\n if (input.data !== this._def.value) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_literal,\n expected: this._def.value,\n });\n return INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n get value() {\n return this._def.value;\n }\n}\nZodLiteral.create = (value, params) => {\n return new ZodLiteral({\n value: value,\n typeName: ZodFirstPartyTypeKind.ZodLiteral,\n ...processCreateParams(params),\n });\n};\nfunction createZodEnum(values, params) {\n return new ZodEnum({\n values,\n typeName: ZodFirstPartyTypeKind.ZodEnum,\n ...processCreateParams(params),\n });\n}\nclass ZodEnum extends ZodType {\n constructor() {\n super(...arguments);\n _ZodEnum_cache.set(this, void 0);\n }\n _parse(input) {\n if (typeof input.data !== \"string\") {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode.invalid_type,\n });\n return INVALID;\n }\n if (!__classPrivateFieldGet(this, _ZodEnum_cache, \"f\")) {\n __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), \"f\");\n }\n if (!__classPrivateFieldGet(this, _ZodEnum_cache, \"f\").has(input.data)) {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n get options() {\n return this._def.values;\n }\n get enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Values() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n extract(values, newDef = this._def) {\n return ZodEnum.create(values, {\n ...this._def,\n ...newDef,\n });\n }\n exclude(values, newDef = this._def) {\n return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {\n ...this._def,\n ...newDef,\n });\n }\n}\n_ZodEnum_cache = new WeakMap();\nZodEnum.create = createZodEnum;\nclass ZodNativeEnum extends ZodType {\n constructor() {\n super(...arguments);\n _ZodNativeEnum_cache.set(this, void 0);\n }\n _parse(input) {\n const nativeEnumValues = util.getValidEnumValues(this._def.values);\n const ctx = this._getOrReturnCtx(input);\n if (ctx.parsedType !== ZodParsedType.string &&\n ctx.parsedType !== ZodParsedType.number) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode.invalid_type,\n });\n return INVALID;\n }\n if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, \"f\")) {\n __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), \"f\");\n }\n if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, \"f\").has(input.data)) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n get enum() {\n return this._def.values;\n }\n}\n_ZodNativeEnum_cache = new WeakMap();\nZodNativeEnum.create = (values, params) => {\n return new ZodNativeEnum({\n values: values,\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n ...processCreateParams(params),\n });\n};\nclass ZodPromise extends ZodType {\n unwrap() {\n return this._def.type;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.promise &&\n ctx.common.async === false) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.promise,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const promisified = ctx.parsedType === ZodParsedType.promise\n ? ctx.data\n : Promise.resolve(ctx.data);\n return OK(promisified.then((data) => {\n return this._def.type.parseAsync(data, {\n path: ctx.path,\n errorMap: ctx.common.contextualErrorMap,\n });\n }));\n }\n}\nZodPromise.create = (schema, params) => {\n return new ZodPromise({\n type: schema,\n typeName: ZodFirstPartyTypeKind.ZodPromise,\n ...processCreateParams(params),\n });\n};\nclass ZodEffects extends ZodType {\n innerType() {\n return this._def.schema;\n }\n sourceType() {\n return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects\n ? this._def.schema.sourceType()\n : this._def.schema;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const effect = this._def.effect || null;\n const checkCtx = {\n addIssue: (arg) => {\n addIssueToContext(ctx, arg);\n if (arg.fatal) {\n status.abort();\n }\n else {\n status.dirty();\n }\n },\n get path() {\n return ctx.path;\n },\n };\n checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n if (effect.type === \"preprocess\") {\n const processed = effect.transform(ctx.data, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(processed).then(async (processed) => {\n if (status.value === \"aborted\")\n return INVALID;\n const result = await this._def.schema._parseAsync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n if (result.status === \"aborted\")\n return INVALID;\n if (result.status === \"dirty\")\n return DIRTY(result.value);\n if (status.value === \"dirty\")\n return DIRTY(result.value);\n return result;\n });\n }\n else {\n if (status.value === \"aborted\")\n return INVALID;\n const result = this._def.schema._parseSync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n if (result.status === \"aborted\")\n return INVALID;\n if (result.status === \"dirty\")\n return DIRTY(result.value);\n if (status.value === \"dirty\")\n return DIRTY(result.value);\n return result;\n }\n }\n if (effect.type === \"refinement\") {\n const executeRefinement = (acc) => {\n const result = effect.refinement(acc, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(result);\n }\n if (result instanceof Promise) {\n throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");\n }\n return acc;\n };\n if (ctx.common.async === false) {\n const inner = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inner.status === \"aborted\")\n return INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n // return value is ignored\n executeRefinement(inner.value);\n return { status: status.value, value: inner.value };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((inner) => {\n if (inner.status === \"aborted\")\n return INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n return executeRefinement(inner.value).then(() => {\n return { status: status.value, value: inner.value };\n });\n });\n }\n }\n if (effect.type === \"transform\") {\n if (ctx.common.async === false) {\n const base = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (!isValid(base))\n return base;\n const result = effect.transform(base.value, checkCtx);\n if (result instanceof Promise) {\n throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n }\n return { status: status.value, value: result };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((base) => {\n if (!isValid(base))\n return base;\n return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));\n });\n }\n }\n util.assertNever(effect);\n }\n}\nZodEffects.create = (schema, effect, params) => {\n return new ZodEffects({\n schema,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect,\n ...processCreateParams(params),\n });\n};\nZodEffects.createWithPreprocess = (preprocess, schema, params) => {\n return new ZodEffects({\n schema,\n effect: { type: \"preprocess\", transform: preprocess },\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n ...processCreateParams(params),\n });\n};\nclass ZodOptional extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === ZodParsedType.undefined) {\n return OK(undefined);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodOptional.create = (type, params) => {\n return new ZodOptional({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodOptional,\n ...processCreateParams(params),\n });\n};\nclass ZodNullable extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === ZodParsedType.null) {\n return OK(null);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodNullable.create = (type, params) => {\n return new ZodNullable({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodNullable,\n ...processCreateParams(params),\n });\n};\nclass ZodDefault extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n let data = ctx.data;\n if (ctx.parsedType === ZodParsedType.undefined) {\n data = this._def.defaultValue();\n }\n return this._def.innerType._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n removeDefault() {\n return this._def.innerType;\n }\n}\nZodDefault.create = (type, params) => {\n return new ZodDefault({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n defaultValue: typeof params.default === \"function\"\n ? params.default\n : () => params.default,\n ...processCreateParams(params),\n });\n};\nclass ZodCatch extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n // newCtx is used to not collect issues from inner types in ctx\n const newCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n };\n const result = this._def.innerType._parse({\n data: newCtx.data,\n path: newCtx.path,\n parent: {\n ...newCtx,\n },\n });\n if (isAsync(result)) {\n return result.then((result) => {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n });\n }\n else {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n }\n }\n removeCatch() {\n return this._def.innerType;\n }\n}\nZodCatch.create = (type, params) => {\n return new ZodCatch({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n catchValue: typeof params.catch === \"function\" ? params.catch : () => params.catch,\n ...processCreateParams(params),\n });\n};\nclass ZodNaN extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.nan) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.nan,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n}\nZodNaN.create = (params) => {\n return new ZodNaN({\n typeName: ZodFirstPartyTypeKind.ZodNaN,\n ...processCreateParams(params),\n });\n};\nconst BRAND = Symbol(\"zod_brand\");\nclass ZodBranded extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const data = ctx.data;\n return this._def.type._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n unwrap() {\n return this._def.type;\n }\n}\nclass ZodPipeline extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.common.async) {\n const handleAsync = async () => {\n const inResult = await this._def.in._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return DIRTY(inResult.value);\n }\n else {\n return this._def.out._parseAsync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n };\n return handleAsync();\n }\n else {\n const inResult = this._def.in._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return {\n status: \"dirty\",\n value: inResult.value,\n };\n }\n else {\n return this._def.out._parseSync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n }\n static create(a, b) {\n return new ZodPipeline({\n in: a,\n out: b,\n typeName: ZodFirstPartyTypeKind.ZodPipeline,\n });\n }\n}\nclass ZodReadonly extends ZodType {\n _parse(input) {\n const result = this._def.innerType._parse(input);\n const freeze = (data) => {\n if (isValid(data)) {\n data.value = Object.freeze(data.value);\n }\n return data;\n };\n return isAsync(result)\n ? result.then((data) => freeze(data))\n : freeze(result);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodReadonly.create = (type, params) => {\n return new ZodReadonly({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodReadonly,\n ...processCreateParams(params),\n });\n};\nfunction custom(check, params = {}, \n/**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\nfatal) {\n if (check)\n return ZodAny.create().superRefine((data, ctx) => {\n var _a, _b;\n if (!check(data)) {\n const p = typeof params === \"function\"\n ? params(data)\n : typeof params === \"string\"\n ? { message: params }\n : params;\n const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;\n const p2 = typeof p === \"string\" ? { message: p } : p;\n ctx.addIssue({ code: \"custom\", ...p2, fatal: _fatal });\n }\n });\n return ZodAny.create();\n}\nconst late = {\n object: ZodObject.lazycreate,\n};\nvar ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n ZodFirstPartyTypeKind[\"ZodString\"] = \"ZodString\";\n ZodFirstPartyTypeKind[\"ZodNumber\"] = \"ZodNumber\";\n ZodFirstPartyTypeKind[\"ZodNaN\"] = \"ZodNaN\";\n ZodFirstPartyTypeKind[\"ZodBigInt\"] = \"ZodBigInt\";\n ZodFirstPartyTypeKind[\"ZodBoolean\"] = \"ZodBoolean\";\n ZodFirstPartyTypeKind[\"ZodDate\"] = \"ZodDate\";\n ZodFirstPartyTypeKind[\"ZodSymbol\"] = \"ZodSymbol\";\n ZodFirstPartyTypeKind[\"ZodUndefined\"] = \"ZodUndefined\";\n ZodFirstPartyTypeKind[\"ZodNull\"] = \"ZodNull\";\n ZodFirstPartyTypeKind[\"ZodAny\"] = \"ZodAny\";\n ZodFirstPartyTypeKind[\"ZodUnknown\"] = \"ZodUnknown\";\n ZodFirstPartyTypeKind[\"ZodNever\"] = \"ZodNever\";\n ZodFirstPartyTypeKind[\"ZodVoid\"] = \"ZodVoid\";\n ZodFirstPartyTypeKind[\"ZodArray\"] = \"ZodArray\";\n ZodFirstPartyTypeKind[\"ZodObject\"] = \"ZodObject\";\n ZodFirstPartyTypeKind[\"ZodUnion\"] = \"ZodUnion\";\n ZodFirstPartyTypeKind[\"ZodDiscriminatedUnion\"] = \"ZodDiscriminatedUnion\";\n ZodFirstPartyTypeKind[\"ZodIntersection\"] = \"ZodIntersection\";\n ZodFirstPartyTypeKind[\"ZodTuple\"] = \"ZodTuple\";\n ZodFirstPartyTypeKind[\"ZodRecord\"] = \"ZodRecord\";\n ZodFirstPartyTypeKind[\"ZodMap\"] = \"ZodMap\";\n ZodFirstPartyTypeKind[\"ZodSet\"] = \"ZodSet\";\n ZodFirstPartyTypeKind[\"ZodFunction\"] = \"ZodFunction\";\n ZodFirstPartyTypeKind[\"ZodLazy\"] = \"ZodLazy\";\n ZodFirstPartyTypeKind[\"ZodLiteral\"] = \"ZodLiteral\";\n ZodFirstPartyTypeKind[\"ZodEnum\"] = \"ZodEnum\";\n ZodFirstPartyTypeKind[\"ZodEffects\"] = \"ZodEffects\";\n ZodFirstPartyTypeKind[\"ZodNativeEnum\"] = \"ZodNativeEnum\";\n ZodFirstPartyTypeKind[\"ZodOptional\"] = \"ZodOptional\";\n ZodFirstPartyTypeKind[\"ZodNullable\"] = \"ZodNullable\";\n ZodFirstPartyTypeKind[\"ZodDefault\"] = \"ZodDefault\";\n ZodFirstPartyTypeKind[\"ZodCatch\"] = \"ZodCatch\";\n ZodFirstPartyTypeKind[\"ZodPromise\"] = \"ZodPromise\";\n ZodFirstPartyTypeKind[\"ZodBranded\"] = \"ZodBranded\";\n ZodFirstPartyTypeKind[\"ZodPipeline\"] = \"ZodPipeline\";\n ZodFirstPartyTypeKind[\"ZodReadonly\"] = \"ZodReadonly\";\n})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));\nconst instanceOfType = (\n// const instanceOfType = <T extends new (...args: any[]) => any>(\ncls, params = {\n message: `Input not instance of ${cls.name}`,\n}) => custom((data) => data instanceof cls, params);\nconst stringType = ZodString.create;\nconst numberType = ZodNumber.create;\nconst nanType = ZodNaN.create;\nconst bigIntType = ZodBigInt.create;\nconst booleanType = ZodBoolean.create;\nconst dateType = ZodDate.create;\nconst symbolType = ZodSymbol.create;\nconst undefinedType = ZodUndefined.create;\nconst nullType = ZodNull.create;\nconst anyType = ZodAny.create;\nconst unknownType = ZodUnknown.create;\nconst neverType = ZodNever.create;\nconst voidType = ZodVoid.create;\nconst arrayType = ZodArray.create;\nconst objectType = ZodObject.create;\nconst strictObjectType = ZodObject.strictCreate;\nconst unionType = ZodUnion.create;\nconst discriminatedUnionType = ZodDiscriminatedUnion.create;\nconst intersectionType = ZodIntersection.create;\nconst tupleType = ZodTuple.create;\nconst recordType = ZodRecord.create;\nconst mapType = ZodMap.create;\nconst setType = ZodSet.create;\nconst functionType = ZodFunction.create;\nconst lazyType = ZodLazy.create;\nconst literalType = ZodLiteral.create;\nconst enumType = ZodEnum.create;\nconst nativeEnumType = ZodNativeEnum.create;\nconst promiseType = ZodPromise.create;\nconst effectsType = ZodEffects.create;\nconst optionalType = ZodOptional.create;\nconst nullableType = ZodNullable.create;\nconst preprocessType = ZodEffects.createWithPreprocess;\nconst pipelineType = ZodPipeline.create;\nconst ostring = () => stringType().optional();\nconst onumber = () => numberType().optional();\nconst oboolean = () => booleanType().optional();\nconst coerce = {\n string: ((arg) => ZodString.create({ ...arg, coerce: true })),\n number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),\n boolean: ((arg) => ZodBoolean.create({\n ...arg,\n coerce: true,\n })),\n bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),\n date: ((arg) => ZodDate.create({ ...arg, coerce: true })),\n};\nconst NEVER = INVALID;\n\nvar z = /*#__PURE__*/Object.freeze({\n __proto__: null,\n defaultErrorMap: errorMap,\n setErrorMap: setErrorMap,\n getErrorMap: getErrorMap,\n makeIssue: makeIssue,\n EMPTY_PATH: EMPTY_PATH,\n addIssueToContext: addIssueToContext,\n ParseStatus: ParseStatus,\n INVALID: INVALID,\n DIRTY: DIRTY,\n OK: OK,\n isAborted: isAborted,\n isDirty: isDirty,\n isValid: isValid,\n isAsync: isAsync,\n get util () { return util; },\n get objectUtil () { return objectUtil; },\n ZodParsedType: ZodParsedType,\n getParsedType: getParsedType,\n ZodType: ZodType,\n datetimeRegex: datetimeRegex,\n ZodString: ZodString,\n ZodNumber: ZodNumber,\n ZodBigInt: ZodBigInt,\n ZodBoolean: ZodBoolean,\n ZodDate: ZodDate,\n ZodSymbol: ZodSymbol,\n ZodUndefined: ZodUndefined,\n ZodNull: ZodNull,\n ZodAny: ZodAny,\n ZodUnknown: ZodUnknown,\n ZodNever: ZodNever,\n ZodVoid: ZodVoid,\n ZodArray: ZodArray,\n ZodObject: ZodObject,\n ZodUnion: ZodUnion,\n ZodDiscriminatedUnion: ZodDiscriminatedUnion,\n ZodIntersection: ZodIntersection,\n ZodTuple: ZodTuple,\n ZodRecord: ZodRecord,\n ZodMap: ZodMap,\n ZodSet: ZodSet,\n ZodFunction: ZodFunction,\n ZodLazy: ZodLazy,\n ZodLiteral: ZodLiteral,\n ZodEnum: ZodEnum,\n ZodNativeEnum: ZodNativeEnum,\n ZodPromise: ZodPromise,\n ZodEffects: ZodEffects,\n ZodTransformer: ZodEffects,\n ZodOptional: ZodOptional,\n ZodNullable: ZodNullable,\n ZodDefault: ZodDefault,\n ZodCatch: ZodCatch,\n ZodNaN: ZodNaN,\n BRAND: BRAND,\n ZodBranded: ZodBranded,\n ZodPipeline: ZodPipeline,\n ZodReadonly: ZodReadonly,\n custom: custom,\n Schema: ZodType,\n ZodSchema: ZodType,\n late: late,\n get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },\n coerce: coerce,\n any: anyType,\n array: arrayType,\n bigint: bigIntType,\n boolean: booleanType,\n date: dateType,\n discriminatedUnion: discriminatedUnionType,\n effect: effectsType,\n 'enum': enumType,\n 'function': functionType,\n 'instanceof': instanceOfType,\n intersection: intersectionType,\n lazy: lazyType,\n literal: literalType,\n map: mapType,\n nan: nanType,\n nativeEnum: nativeEnumType,\n never: neverType,\n 'null': nullType,\n nullable: nullableType,\n number: numberType,\n object: objectType,\n oboolean: oboolean,\n onumber: onumber,\n optional: optionalType,\n ostring: ostring,\n pipeline: pipelineType,\n preprocess: preprocessType,\n promise: promiseType,\n record: recordType,\n set: setType,\n strictObject: strictObjectType,\n string: stringType,\n symbol: symbolType,\n transformer: effectsType,\n tuple: tupleType,\n 'undefined': undefinedType,\n union: unionType,\n unknown: unknownType,\n 'void': voidType,\n NEVER: NEVER,\n ZodIssueCode: ZodIssueCode,\n quotelessJson: quotelessJson,\n ZodError: ZodError\n});\n\nexport { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, z as default, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };\n","import { z } from 'zod';\n\nconst Code = z.object({\n type: z.literal(\"plain\"),\n content: z.string(),\n});\n\nexport { Code };\n//# sourceMappingURL=code.js.map\n","import { z } from 'zod';\n\n/** Range in bytes, from should be less than to. */\nconst RangeBytes = z.object({\n /** Included left border. */\n from: z.number().min(0),\n /** Excluded right border. */\n to: z.number().min(1),\n});\nfunction newRangeBytesOpt(from, to) {\n if (from == undefined || to == undefined) {\n return undefined;\n }\n const range = { from, to };\n validateRangeBytes(range, \"newRangeBytesOpt\");\n return range;\n}\nfunction validateRangeBytes(range, errMsg) {\n if (range.from < 0 || range.from >= range.to) {\n throw new Error(`${errMsg}: invalid bytes range: ${range}`);\n }\n}\n\nexport { RangeBytes, newRangeBytesOpt, validateRangeBytes };\n//# sourceMappingURL=blob.js.map\n","function assertNever(x) {\n throw new Error(\"Unexpected object: \" + x); // This is ok, because this is a possible runtime error\n}\n/**\n * Return unique entries of the array by the provided id\n * For each id, the last entry is kept\n */\nfunction uniqueBy(array, makeId) {\n return [...new Map(array.map((e) => [makeId(e), e])).values()];\n}\n\nexport { assertNever, uniqueBy };\n//# sourceMappingURL=util.js.map\n","import { assertNever } from '../../util.js';\n\n/**\n * Type guard function that checks if the given value is a valid DataInfo.\n *\n * @param value - The value to check\n * @returns True if the value is a valid DataInfo, false otherwise\n */\nfunction isDataInfo(value) {\n if (!value || typeof value !== \"object\") {\n return false;\n }\n const data = value;\n if (!(\"type\" in data)) {\n return false;\n }\n switch (data.type) {\n case \"Json\":\n return (typeof data.keyLength === \"number\" &&\n data.data !== undefined &&\n typeof data.data === \"object\");\n case \"JsonPartitioned\":\n case \"BinaryPartitioned\":\n case \"ParquetPartitioned\":\n return (typeof data.partitionKeyLength === \"number\" &&\n data.parts !== undefined &&\n typeof data.parts === \"object\");\n default:\n return false;\n }\n}\nfunction mapDataInfo(dataInfo, mapFn) {\n if (dataInfo === undefined) {\n return undefined;\n }\n switch (dataInfo.type) {\n case \"Json\":\n // Json type doesn't contain blobs, so return as is\n return dataInfo;\n case \"JsonPartitioned\": {\n // Map each blob in parts\n const newParts = {};\n for (const [key, blob] of Object.entries(dataInfo.parts)) {\n newParts[key] = mapFn(blob);\n }\n return {\n ...dataInfo,\n parts: newParts,\n };\n }\n case \"BinaryPartitioned\": {\n // Map each index and values blob in parts\n const newParts = {};\n for (const [key, chunk] of Object.entries(dataInfo.parts)) {\n newParts[key] = {\n index: mapFn(chunk.index),\n values: mapFn(chunk.values),\n };\n }\n return {\n ...dataInfo,\n parts: newParts,\n };\n }\n case \"ParquetPartitioned\": {\n // Map each blob in parts\n const newParts = {};\n for (const [key, blob] of Object.entries(dataInfo.parts)) {\n newParts[key] = mapFn(blob);\n }\n return {\n ...dataInfo,\n parts: newParts,\n };\n }\n }\n}\n/**\n * @param dataInfo - The source DataInfo object\n * @param cb - Callback, function that have access to every blob to visit them all\n * @returns Nothing\n */\nfunction visitDataInfo(dataInfo, cb) {\n switch (dataInfo.type) {\n case \"Json\":\n // Json type doesn't contain blobs, so return as is\n break;\n case \"JsonPartitioned\": {\n // Visit each blob in parts\n Object.values(dataInfo.parts).forEach(cb);\n break;\n }\n case \"BinaryPartitioned\": {\n // Visit each index and values blob in parts\n Object.values(dataInfo.parts).forEach((chunk) => {\n cb(chunk.index);\n cb(chunk.values);\n });\n break;\n }\n case \"ParquetPartitioned\": {\n // Visit each blob in parts\n Object.values(dataInfo.parts).forEach(cb);\n break;\n }\n }\n}\n/**\n * Type guard function that checks if the given value is a valid DataInfoEntries.\n *\n * @param value - The value to check\n * @returns True if the value is a valid DataInfoEntries, false otherwise\n */\nfunction isDataInfoEntries(value) {\n if (!value || typeof value !== \"object\") {\n return false;\n }\n const data = value;\n if (!(\"type\" in data)) {\n return false;\n }\n switch (data.type) {\n case \"Json\":\n return typeof data.keyLength === \"number\" && Array.isArray(data.data);\n case \"JsonPartitioned\":\n case \"BinaryPartitioned\":\n case \"ParquetPartitioned\":\n return typeof data.partitionKeyLength === \"number\" && Array.isArray(data.parts);\n default:\n return false;\n }\n}\n/**\n * Type guard function that checks if the given value is a valid PartitionedDataInfoEntries.\n *\n * @template Blob - Type parameter representing the storage reference type\n * @param value - The value to check\n * @returns True if the value is a valid PartitionedDataInfoEntries, false otherwise\n */\nfunction isPartitionedDataInfoEntries(value) {\n if (!isDataInfoEntries(value))\n return false;\n switch (value.type) {\n case \"JsonPartitioned\":\n case \"BinaryPartitioned\":\n case \"ParquetPartitioned\":\n return true;\n default:\n return false;\n }\n}\n/**\n * Converts DataInfo to DataInfoEntries\n *\n * @param dataInfo - The record-based DataInfo object\n * @returns The equivalent entry-based DataInfoEntries object\n */\nfunction dataInfoToEntries(dataInfo) {\n switch (dataInfo.type) {\n case \"Json\":\n return {\n type: \"Json\",\n keyLength: dataInfo.keyLength,\n data: Object.entries(dataInfo.data).map(([keyStr, value]) => {\n const key = JSON.parse(keyStr);\n return { key, value };\n }),\n };\n case \"JsonPartitioned\":\n return {\n type: \"JsonPartitioned\",\n partitionKeyLength: dataInfo.partitionKeyLength,\n parts: Object.entries(dataInfo.parts).map(([keyStr, blob]) => {\n const key = JSON.parse(keyStr);\n return { key, value: blob };\n }),\n };\n case \"BinaryPartitioned\":\n return {\n type: \"BinaryPartitioned\",\n partitionKeyLength: dataInfo.partitionKeyLength,\n parts: Object.entries(dataInfo.parts).map(([keyStr, chunk]) => {\n const key = JSON.parse(keyStr);\n return { key, value: chunk };\n }),\n };\n case \"ParquetPartitioned\":\n return {\n type: \"ParquetPartitioned\",\n partitionKeyLength: dataInfo.partitionKeyLength,\n parts: Object.entries(dataInfo.parts).map(([keyStr, blob]) => {\n const key = JSON.parse(keyStr);\n return { key, value: blob };\n }),\n };\n default:\n assertNever(dataInfo);\n }\n}\n/**\n * Converts DataInfoEntries to DataInfo\n *\n * @param dataInfoEntries - The entry-based DataInfoEntries object\n * @returns The equivalent record-based DataInfo object\n */\nfunction entriesToDataInfo(dataInfoEntries) {\n switch (dataInfoEntries.type) {\n case \"Json\":\n return {\n type: \"Json\",\n keyLength: dataInfoEntries.keyLength,\n data: Object.fromEntries(dataInfoEntries.data.map(({ key, value }) => [JSON.stringify(key), value])),\n };\n case \"JsonPartitioned\":\n return {\n type: \"JsonPartitioned\",\n partitionKeyLength: dataInfoEntries.partitionKeyLength,\n parts: Object.fromEntries(dataInfoEntries.parts.map(({ key, value }) => [JSON.stringify(key), value])),\n };\n case \"BinaryPartitioned\":\n return {\n type: \"BinaryPartitioned\",\n partitionKeyLength: dataInfoEntries.partitionKeyLength,\n parts: Object.fromEntries(dataInfoEntries.parts.map(({ key, value }) => [JSON.stringify(key), value])),\n };\n case \"ParquetPartitioned\":\n return {\n type: \"ParquetPartitioned\",\n partitionKeyLength: dataInfoEntries.partitionKeyLength,\n parts: Object.fromEntries(dataInfoEntries.parts.map(({ key, value }) => [JSON.stringify(key), value])),\n };\n default:\n assertNever(dataInfoEntries);\n }\n}\nfunction mapDataInfoEntries(dataInfoEntries, mapFn) {\n if (dataInfoEntries === undefined) {\n return undefined;\n }\n switch (dataInfoEntries.type) {\n case \"Json\":\n // Json type doesn't contain blobs, so return as is\n return dataInfoEntries;\n case \"JsonPartitioned\":\n return {\n ...dataInfoEntries,\n parts: dataInfoEntries.parts.map((entry) => ({\n key: entry.key,\n value: mapFn(entry.value),\n })),\n };\n case \"BinaryPartitioned\":\n return {\n ...dataInfoEntries,\n parts: dataInfoEntries.parts.map((entry) => ({\n key: entry.key,\n value: {\n index: mapFn(entry.value.index),\n values: mapFn(entry.value.values),\n },\n })),\n };\n case \"ParquetPartitioned\":\n return {\n ...dataInfoEntries,\n parts: dataInfoEntries.parts.map((entry) => ({\n key: entry.key,\n value: mapFn(entry.value),\n })),\n };\n }\n}\n\nexport { dataInfoToEntries, entriesToDataInfo, isDataInfo, isDataInfoEntries, isPartitionedDataInfoEntries, mapDataInfo, mapDataInfoEntries, visitDataInfo };\n//# sourceMappingURL=data_info.js.map\n","/**\n * Just for convenience, usually it is an Error with name 'AbortError'\n */\nclass AbortError extends Error {\n name = \"AbortError\";\n}\n/**\n * Throw this to show a message without stack trace in UI\n */\nclass UiError extends Error {\n name = \"UiError\";\n}\nfunction isAbortError(error) {\n return error instanceof Error && error.name === \"AbortError\";\n}\nfunction hasAbortError(error) {\n if (!(error instanceof Error)) {\n return false;\n }\n return error.name === \"AbortError\" || hasAbortError(error.cause);\n}\nfunction isAggregateError(error) {\n return error instanceof Error && error.name === \"AggregateError\";\n}\nclass PFrameError extends Error {\n name = \"PFrameError\";\n}\nfunction isPFrameError(error) {\n return error instanceof Error && error.name === \"PFrameError\";\n}\nclass PFrameDriverError extends PFrameError {\n name = \"PFrameError.Driver\";\n}\nfunction isPFrameDriverError(error) {\n return error instanceof Error && error.name === \"PFrameError.Driver\";\n}\nfunction stringifyValue(value) {\n if (typeof value === \"string\") {\n return `String value was thrown: ${value}`;\n }\n if (value && typeof value === \"object\") {\n try {\n return `Plain object was thrown: ${JSON.stringify(value)}`;\n }\n catch (jsonError) {\n const errorMessage = jsonError instanceof Error ? jsonError.message : String(jsonError);\n return `Non-serializable object was thrown (JSON.stringify failed: ${errorMessage}): ${String(value)}`;\n }\n }\n return String(`Non-Error value (${typeof value}) was thrown: ${value}`);\n}\nfunction ensureError(value) {\n if (value instanceof Error) {\n return value;\n }\n return new Error(stringifyValue(value));\n}\nfunction deserializeError(obj) {\n const cause = obj.cause ? deserializeError(obj.cause) : undefined;\n const error = new Error(obj.message, cause !== undefined ? { cause } : undefined);\n error.name = obj.name || \"Error\";\n error.stack = obj.stack;\n return error;\n}\nfunction serializeError(e) {\n const error = ensureError(e);\n const cause = error.cause ? serializeError(error.cause) : undefined;\n return {\n name: error.name,\n message: error.message,\n stack: error.stack,\n ...(error.cause !== undefined && { cause }),\n };\n}\nfunction unwrapResult(result) {\n if (result.error) {\n throw result.error instanceof Error ? result.error : deserializeError(result.error);\n }\n return result.value;\n}\nfunction serializeResult(result) {\n if (result.error) {\n return { error: serializeError(result.error) };\n }\n return { value: result.value };\n}\nfunction deserializeResult(result) {\n if (result.error) {\n return { error: deserializeError(result.error) };\n }\n return { value: result.value };\n}\nfunction wrapCallback(callback) {\n try {\n const value = callback();\n return { value };\n }\n catch (error) {\n return { error: ensureError(error) };\n }\n}\nasync function wrapAsyncCallback(callback) {\n try {\n const value = await callback();\n return { value };\n }\n catch (error) {\n return { error: ensureError(error) };\n }\n}\nfunction wrapAndSerialize(callback) {\n const result = wrapCallback(callback);\n return serializeResult(result);\n}\nasync function wrapAndSerializeAsync(callback) {\n const result = await wrapAsyncCallback(callback);\n return serializeResult(result);\n}\n\nexport { AbortError, PFrameDriverError, PFrameError, UiError, deserializeError, deserializeResult, ensureError, hasAbortError, isAbortError, isAggregateError, isPFrameDriverError, isPFrameError, serializeError, serializeResult, unwrapResult, wrapAndSerialize, wrapAndSerializeAsync, wrapAsyncCallback, wrapCallback };\n//# sourceMappingURL=errors.js.map\n","/* jshint esversion: 6 */\n/* jslint node: true */\n'use strict';\n\nmodule.exports = function serialize (object) {\n if (typeof object === 'number' && isNaN(object)) {\n throw new Error('NaN is not allowed');\n }\n\n if (typeof object === 'number' && !isFinite(object)) {\n throw new Error('Infinity is not allowed');\n }\n\n if (object === null || typeof object !== 'object') {\n return JSON.stringify(object);\n }\n\n if (object.toJSON instanceof Function) {\n return serialize(object.toJSON());\n }\n\n if (Array.isArray(object)) {\n const values = object.reduce((t, cv, ci) => {\n const comma = ci === 0 ? '' : ',';\n const value = cv === undefined || typeof cv === 'symbol' ? null : cv;\n return `${t}${comma}${serialize(value)}`;\n }, '');\n return `[${values}]`;\n }\n\n const values = Object.keys(object).sort().reduce((t, cv) => {\n if (object[cv] === undefined ||\n typeof object[cv] === 'symbol') {\n return t;\n }\n const comma = t.length === 0 ? '' : ',';\n return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;\n }, '');\n return `{${values}}`;\n};\n","import canonicalize from 'canonicalize';\n\nfunction stringifyJson(value) {\n return JSON.stringify(value);\n}\nfunction canonicalizeJson(value) {\n return canonicalize(value);\n}\nfunction parseJson(value) {\n return JSON.parse(value);\n}\nfunction bigintReplacer(_key, value) {\n return typeof value === \"bigint\" ? value.toString() : value;\n}\n\nexport { bigintReplacer, canonicalizeJson, parseJson, stringifyJson };\n//# sourceMappingURL=json.js.map\n","import { ensureError } from '../../../errors.js';\nimport { canonicalizeJson } from '../../../json.js';\nimport { z } from 'zod';\n\nconst ValueType = {\n Int: \"Int\",\n Long: \"Long\",\n Float: \"Float\",\n Double: \"Double\",\n String: \"String\",\n Bytes: \"Bytes\",\n};\nfunction readMetadata(metadata, key) {\n return metadata?.[key];\n}\nfunction readMetadataJsonOrThrow(metadata, metadataJson, key, methodNameInError = \"readMetadataJsonOrThrow\") {\n const json = readMetadata(metadata, key);\n if (json === undefined)\n return undefined;\n const schema = metadataJson[key];\n try {\n const value = JSON.parse(json);\n return schema.parse(value);\n }\n catch (error) {\n throw new Error(`${methodNameInError} failed, ` +\n `key: ${String(key)}, ` +\n `value: ${json}, ` +\n `error: ${ensureError(error)}`);\n }\n}\nfunction readMetadataJson(metadata, metadataJson, key) {\n try {\n return readMetadataJsonOrThrow(metadata, metadataJson, key);\n }\n catch {\n return undefined; // treat invalid values as unset\n }\n}\n/// Well-known domains\nconst Domain = {\n Alphabet: \"pl7.app/alphabet\",\n BlockId: \"pl7.app/blockId\",\n VDJ: {\n Clustering: {\n BlockId: \"pl7.app/vdj/clustering/blockId\",\n },\n ScClonotypeChain: {\n Index: \"pl7.app/vdj/scClonotypeChain/index\",\n },\n },\n};\nconst DomainJson = {};\n/// Helper function for reading plain domain values\nfunction readDomain(spec, key) {\n return readMetadata(spec?.domain, key);\n}\n/// Helper function for reading json-encoded domain values, throws on JSON parsing error\nfunction readDomainJsonOrThrow(spec, key) {\n return readMetadataJsonOrThrow(spec?.domain, DomainJson, key, \"readDomainJsonOrThrow\");\n}\n/// Helper function for reading json-encoded domain values, returns undefined on JSON parsing error\nfunction readDomainJson(spec, key) {\n return readMetadataJson(spec?.domain, DomainJson, key);\n}\n/// Well-known annotations\nconst Annotation = {\n AxisNature: \"pl7.app/axisNature\",\n Alphabet: \"pl7.app/alphabet\",\n Description: \"pl7.app/description\",\n DiscreteValues: \"pl7.app/discreteValues\",\n Format: \"pl7.app/format\",\n Graph: {\n Axis: {\n HighCardinality: \"pl7.app/graph/axis/highCardinality\",\n LowerLimit: \"pl7.app/graph/axis/lowerLimit\",\n SymmetricRange: \"pl7.app/graph/axis/symmetricRange\",\n UpperLimit: \"pl7.app/graph/axis/upperLimit\",\n },\n IsDenseAxis: \"pl7.app/graph/isDenseAxis\",\n IsVirtual: \"pl7.app/graph/isVirtual\",\n Palette: \"pl7.app/graph/palette\",\n Thresholds: \"pl7.app/graph/thresholds\",\n TreatAbsentValuesAs: \"pl7.app/graph/treatAbsentValuesAs\",\n },\n HideDataFromUi: \"pl7.app/hideDataFromUi\",\n HideDataFromGraphs: \"pl7.app/hideDataFromGraphs\",\n IsDiscreteFilter: \"pl7.app/isDiscreteFilter\",\n IsAnchor: \"pl7.app/isAnchor\",\n IsLinkerColumn: \"pl7.app/isLinkerColumn\",\n IsScore: \"pl7.app/isScore\",\n IsSubset: \"pl7.app/isSubset\",\n Label: \"pl7.app/label\",\n Max: \"pl7.app/max\",\n Min: \"pl7.app/min\",\n MultipliesBy: \"pl7.app/multipliesBy\",\n Parents: \"pl7.app/parents\",\n Score: {\n DefaultCutoff: \"pl7.app/score/defaultCutoff\",\n RankingOrder: \"pl7.app/score/rankingOrder\",\n },\n Sequence: {\n Annotation: {\n Mapping: \"pl7.app/sequence/annotation/mapping\",\n },\n IsAnnotation: \"pl7.app/sequence/isAnnotation\",\n },\n Table: {\n FontFamily: \"pl7.app/table/fontFamily\",\n OrderPriority: \"pl7.app/table/orderPriority\",\n Visibility: \"pl7.app/table/visibility\",\n },\n Trace: \"pl7.app/trace\",\n VDJ: {\n IsAssemblingFeature: \"pl7.app/vdj/isAssemblingFeature\",\n IsMainSequence: \"pl7.app/vdj/isMainSequence\",\n },\n};\nconst ValueTypeSchema = z.enum([\"Int\", \"Long\", \"Float\", \"Double\", \"String\"]);\nconst AnnotationJson = {\n [Annotation.DiscreteValues]: z.array(z.string()).or(z.array(z.number())),\n [Annotation.Graph.Axis.HighCardinality]: z.boolean(),\n [Annotation.Graph.Axis.LowerLimit]: z.number(),\n [Annotation.Graph.Axis.UpperLimit]: z.number(),\n [Annotation.Graph.Axis.SymmetricRange]: z.boolean(),\n [Annotation.Graph.IsDenseAxis]: z.boolean(),\n [Annotation.Graph.Palette]: z.object({ mapping: z.record(z.number()), name: z.string() }),\n [Annotation.Graph.Thresholds]: z.array(z.object({\n columnId: z.object({ valueType: ValueTypeSchema, name: z.string() }),\n value: z.number(),\n })),\n [Annotation.Graph.TreatAbsentValuesAs]: z.number(),\n [Annotation.Graph.IsVirtual]: z.boolean(),\n [Annotation.HideDataFromUi]: z.boolean(),\n [Annotation.HideDataFromGraphs]: z.boolean(),\n [Annotation.IsDiscreteFilter]: z.boolean(),\n [Annotation.IsLinkerColumn]: z.boolean(),\n [Annotation.IsSubset]: z.boolean(),\n [Annotation.Max]: z.number(),\n [Annotation.Min]: z.number(),\n [Annotation.MultipliesBy]: z.array(z.string()),\n [Annotation.Parents]: z.array(z.string()),\n [Annotation.Sequence.Annotation.Mapping]: z.record(z.string(), z.string()),\n [Annotation.Sequence.IsAnnotation]: z.boolean(),\n [Annotation.Table.OrderPriority]: z.number(),\n [Annotation.Trace]: z.record(z.string(), z.unknown()),\n [Annotation.VDJ.IsAssemblingFeature]: z.boolean(),\n};\n/// Helper function for reading plain annotation values\nfunction readAnnotation(spec, key) {\n return readMetadata(spec?.annotations, key);\n}\n/// Helper function for reading json-encoded annotation values, throws on JSON parsing error\nfunction readAnnotationJsonOrThrow(spec, key) {\n return readMetadataJsonOrThrow(spec?.annotations, AnnotationJson, key, \"readAnnotationJsonOrThrow\");\n}\n/// Helper function for reading json-encoded annotation values, returns undefined on JSON parsing error\nfunction readAnnotationJson(spec, key) {\n return readMetadataJson(spec?.annotations, AnnotationJson, key);\n}\nfunction isLinkerColumn(column) {\n return !!readAnnotationJson(column, Annotation.IsLinkerColumn);\n}\nfunction makeAxisTree(axis) {\n return { axis, children: [] };\n}\n/** Build tree by axis parents annotations */\nfunction getAxesTree(rootAxis) {\n const root = makeAxisTree(rootAxis);\n let nodesQ = [root];\n while (nodesQ.length) {\n const nextNodes = [];\n for (const node of nodesQ) {\n node.children = node.axis.parentAxesSpec.map(makeAxisTree);\n nextNodes.push(...node.children);\n }\n nodesQ = nextNodes;\n }\n return root;\n}\n/** Get set of canonicalized axisIds from axisTree */\nfunction getSetFromAxisTree(tree) {\n const set = new Set([canonicalizeJson(getAxisId(tree.axis))]);\n let nodesQ = [tree];\n while (nodesQ.length) {\n const nextNodes = [];\n for (const node of nodesQ) {\n for (const parent of node.children) {\n set.add(canonicalizeJson(getAxisId(parent.axis)));\n nextNodes.push(parent);\n }\n }\n nodesQ = nextNodes;\n }\n return set;\n}\n/** Get array of axisSpecs from axisTree */\nfunction getArrayFromAxisTree(tree) {\n const res = [tree.axis];\n let nodesQ = [tree];\n while (nodesQ.length) {\n const nextNodes = [];\n for (const node of nodesQ) {\n for (const parent of node.children) {\n res.push(parent.axis);\n nextNodes.push(parent);\n }\n }\n nodesQ = nextNodes;\n }\n return res;\n}\nfunction canonicalizeAxisWithParents(axis) {\n return canonicalizeJson(getArrayFromAxisTree(getAxesTree(axis)).map(getAxisId));\n}\nfunction normalizingAxesComparator(axis1, axis2) {\n if (axis1.name !== axis2.name) {\n return axis1.name < axis2.name ? 1 : -1;\n }\n if (axis1.type !== axis2.type) {\n return axis1.type < axis2.type ? 1 : -1;\n }\n const domain1 = canonicalizeJson(axis1.domain ?? {});\n const domain2 = canonicalizeJson(axis2.domain ?? {});\n if (domain1 !== domain2) {\n return domain1 < domain2 ? 1 : -1;\n }\n const parents1 = canonicalizeAxisWithParents(axis1);\n const parents2 = canonicalizeAxisWithParents(axis2);\n if (parents1 !== parents2) {\n return parents1 < parents2 ? 1 : -1;\n }\n const annotation1 = canonicalizeJson(axis1.annotations ?? {});\n const annotation2 = canonicalizeJson(axis2.annotations ?? {});\n if (annotation1 !== annotation2) {\n return annotation1 < annotation2 ? 1 : -1;\n }\n return 0;\n}\nfunction parseParentsFromAnnotations(axis) {\n const parentsList = readAnnotationJson(axis, Annotation.Parents);\n if (parentsList === undefined) {\n return [];\n }\n return parentsList;\n}\nfunction sortParentsDeep(axisSpec) {\n axisSpec.parentAxesSpec.forEach(sortParentsDeep);\n axisSpec.parentAxesSpec.sort(normalizingAxesComparator);\n}\nfunction hasCycleOfParents(axisSpec) {\n const root = makeAxisTree(axisSpec);\n let nodesQ = [root];\n const ancestors = new Set(canonicalizeJson(getAxisId(axisSpec)));\n while (nodesQ.length) {\n const nextNodes = [];\n const levelIds = new Set();\n for (const node of nodesQ) {\n node.children = node.axis.parentAxesSpec.map(makeAxisTree);\n for (const child of node.children) {\n const childId = canonicalizeJson(getAxisId(child.axis));\n if (!levelIds.has(childId)) {\n nextNodes.push(child);\n levelIds.add(childId);\n if (ancestors.has(childId)) {\n return true;\n }\n ancestors.add(childId);\n }\n }\n }\n nodesQ = nextNodes;\n }\n return false;\n}\n/** Create list of normalized axisSpec (parents are in array of specs, not indexes) */\nfunction getNormalizedAxesList(axes) {\n if (!axes.length) {\n return [];\n }\n const modifiedAxes = axes.map((axis) => {\n const { parentAxes: _, ...copiedRest } = axis;\n return { ...copiedRest, annotations: { ...copiedRest.annotations }, parentAxesSpec: [] };\n });\n axes.forEach((axis, idx) => {\n const modifiedAxis = modifiedAxes[idx];\n if (axis.parentAxes) {\n // if we have parents by indexes then take from the list\n modifiedAxis.parentAxesSpec = axis.parentAxes.map((idx) => modifiedAxes[idx]);\n }\n else {\n // else try to parse from annotation name\n const parents = parseParentsFromAnnotations(axis).map((name) => modifiedAxes.find((axis) => axis.name === name));\n modifiedAxis.parentAxesSpec = parents.some((p) => p === undefined)\n ? []\n : parents;\n delete modifiedAxis.annotations?.[Annotation.Parents];\n }\n });\n if (modifiedAxes.some(hasCycleOfParents)) {\n // Axes list is broken\n modifiedAxes.forEach((axis) => {\n axis.parentAxesSpec = [];\n });\n }\n else {\n modifiedAxes.forEach((axis) => {\n sortParentsDeep(axis);\n });\n }\n return modifiedAxes;\n}\n/** Create list of regular axisSpec from normalized (parents are indexes, inside of current axes list) */\nfunction getDenormalizedAxesList(axesSpec) {\n const idsList = axesSpec.map((axisSpec) => canonicalizeJson(getAxisId(axisSpec)));\n return axesSpec.map((axisSpec) => {\n const parentsIds = axisSpec.parentAxesSpec.map((axisSpec) => canonicalizeJson(getAxisId(axisSpec)));\n const parentIdxs = parentsIds.map((id) => idsList.indexOf(id));\n const { parentAxesSpec: _, ...copiedRest } = axisSpec;\n if (parentIdxs.length) {\n return { ...copiedRest, parentAxes: parentIdxs };\n }\n return copiedRest;\n });\n}\n/// Well-known column names\nconst PColumnName = {\n Label: \"pl7.app/label\",\n Table: {\n RowSelection: \"pl7.app/table/row-selection\",\n },\n VDJ: {\n LeadSelection: \"pl7.app/vdj/lead-selection\",\n RankingOrder: \"pl7.app/vdj/ranking-order\",\n Sequence: \"pl7.app/vdj/sequence\",\n },\n};\n/// Well-known axis names\nconst PAxisName = {\n SampleId: \"pl7.app/sampleId\",\n VDJ: {\n Assay: {\n SequenceId: \"pl7.app/vdj/assay/sequenceId\",\n },\n ClusterId: \"pl7.app/vdj/clusterId\",\n ClonotypeKey: \"pl7.app/vdj/clonotypeKey\",\n ScClonotypeKey: \"pl7.app/vdj/scClonotypeKey\",\n },\n};\nfunction isLabelColumn(column) {\n return column.axesSpec.length === 1 && column.name === PColumnName.Label;\n}\nfunction getPColumnSpecId(spec) {\n return {\n kind: spec.kind,\n valueType: spec.valueType,\n name: spec.name,\n domain: spec.domain,\n parentAxes: spec.parentAxes,\n axesId: getAxesId(spec.axesSpec),\n };\n}\n/** Get column id and spec from a column */\nfunction getColumnIdAndSpec(column) {\n return {\n columnId: column.id,\n spec: column.spec,\n };\n}\n/** Extracts axis ids from axis spec */\nfunction getAxisId(spec) {\n const { type, name, domain } = spec;\n const result = { type, name };\n if (domain && Object.entries(domain).length > 0) {\n Object.assign(result, { domain });\n }\n return result;\n}\n/** Extracts axes ids from axes spec array from column spec */\nfunction getAxesId(spec) {\n return spec.map(getAxisId);\n}\n/** Canonicalizes axis id */\nfunction canonicalizeAxisId(id) {\n return canonicalizeJson(getAxisId(id));\n}\n/** Returns true if all domains from query are found in target */\nfunction matchDomain(query, target) {\n if (query === undefined)\n return target === undefined;\n if (target === undefined)\n return true;\n for (const k in target) {\n if (query[k] !== target[k])\n return false;\n }\n return true;\n}\n/** Returns whether \"match\" axis id is compatible with the \"query\" */\nfunction matchAxisId(query, target) {\n return query.name === target.name && matchDomain(query.domain, target.domain);\n}\nfunction getTypeFromPColumnOrAxisSpec(spec) {\n return \"valueType\" in spec ? spec.valueType : spec.type;\n}\nfunction isAxisId(id) {\n return typeof id === \"object\" && id !== null && \"name\" in id && \"type\" in id;\n}\n\nexport { Annotation, AnnotationJson, Domain, DomainJson, PAxisName, PColumnName, ValueType, canonicalizeAxisId, canonicalizeAxisWithParents, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getNormalizedAxesList, getPColumnSpecId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, isAxisId, isLabelColumn, isLinkerColumn, matchAxisId, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow };\n//# sourceMappingURL=spec.js.map\n","import { canonicalizeJson } from '../../../json.js';\nimport { assertNever } from '../../../util.js';\n\nconst booleanTypesSet = new Set([\n \"numericComparison\",\n \"stringEquals\",\n \"stringContains\",\n \"stringContainsFuzzy\",\n \"stringRegex\",\n \"isNull\",\n \"not\",\n \"and\",\n \"or\",\n \"isIn\",\n]);\nfunction isBooleanExpression(expr) {\n return booleanTypesSet.has(\n // @ts-expect-error -- TypeScript doesn't understand the discriminated union here, but we do at runtime\n expr.type);\n}\n/**\n * Recursively traverses a SpecQuery tree bottom-up, applying visitor callbacks.\n *\n * Traversal order:\n * 1. Recurse into child queries\n * 2. Apply `column` to transform column references in leaf nodes\n * 3. Apply `joinEntry` to each join entry (with inner query already traversed)\n * 4. Assemble node with transformed children\n * 5. Apply `node` to the assembled node\n */\nfunction traverseQuerySpec(query, visitor) {\n const traverseEntry = (entry) => {\n const traversed = {\n ...entry,\n entry: traverseQuerySpec(entry.entry, visitor),\n };\n return visitor.joinEntry ? visitor.joinEntry(traversed) : traversed;\n };\n let result;\n switch (query.type) {\n case \"column\":\n result = { type: \"column\", column: visitor.column(query.column) };\n break;\n case \"sparseToDenseColumn\":\n result = { ...query, column: visitor.column(query.column) };\n break;\n case \"inlineColumn\":\n result = query;\n break;\n case \"innerJoin\":\n case \"fullJoin\":\n result = { ...query, entries: query.entries.map(traverseEntry) };\n break;\n case \"outerJoin\":\n result = {\n ...query,\n primary: traverseEntry(query.primary),\n secondary: query.secondary.map(traverseEntry),\n };\n break;\n case \"filter\":\n case \"sort\":\n case \"sliceAxes\":\n result = { ...query, input: traverseQuerySpec(query.input, visitor) };\n break;\n default:\n assertNever(query);\n }\n return visitor.node ? visitor.node(result) : result;\n}\n/** Recursively maps all column references in a SpecQuery tree. */\nfunction mapSpecQueryColumns(query, cb) {\n return traverseQuerySpec(query, { column: cb });\n}\n/** Collects all column references from a SpecQuery tree. */\nfunction collectSpecQueryColumns(query) {\n const result = [];\n traverseQuerySpec(query, {\n column: (c) => {\n result.push(c);\n return c;\n },\n });\n return result;\n}\nfunction sortSpecQuery(query) {\n return traverseQuerySpec(query, {\n column: (c) => c,\n node: (node) => {\n switch (node.type) {\n case \"sparseToDenseColumn\":\n return { ...node, axesIndices: node.axesIndices.toSorted((a, b) => a - b) };\n case \"innerJoin\":\n case \"fullJoin\": {\n const sorted = [...node.entries].sort(cmpQueryJoinEntrySpec);\n return { ...node, entries: sorted };\n }\n case \"outerJoin\": {\n const sorted = [...node.secondary].sort(cmpQueryJoinEntrySpec);\n return { ...node, secondary: sorted };\n }\n case \"sliceAxes\":\n return {\n ...node,\n axisFilters: node.axisFilters.toSorted((a, b) => {\n const ak = canonicalizeJson(a.axisSelector);\n const bk = canonicalizeJson(b.axisSelector);\n return ak < bk ? -1 : ak === bk ? 0 : 1;\n }),\n };\n default:\n return node;\n }\n },\n joinEntry: (entry) => ({\n ...entry,\n qualifications: entry.qualifications.toSorted((a, b) => {\n const ak = canonicalizeJson(a.axis);\n const bk = canonicalizeJson(b.axis);\n return ak < bk ? -1 : ak === bk ? 0 : 1;\n }),\n }),\n });\n}\nfunction cmpQuerySpec(lhs, rhs) {\n if (lhs.type !== rhs.type) {\n return lhs.type < rhs.type ? -1 : 1;\n }\n switch (lhs.type) {\n case \"column\":\n return lhs.column < rhs.column\n ? -1\n : lhs.column === rhs.column\n ? 0\n : 1;\n case \"inlineColumn\":\n return lhs.spec.id < rhs.spec.id\n ? -1\n : lhs.spec.id === rhs.spec.id\n ? 0\n : 1;\n case \"sparseToDenseColumn\":\n return lhs.column < rhs.column\n ? -1\n : lhs.column === rhs.column\n ? 0\n : 1;\n case \"innerJoin\":\n case \"fullJoin\": {\n const rhsJoin = rhs;\n if (lhs.entries.length !== rhsJoin.entries.length) {\n return lhs.entries.length - rhsJoin.entries.length;\n }\n for (let i = 0; i < lhs.entries.length; i++) {\n const cmp = cmpQueryJoinEntrySpec(lhs.entries[i], rhsJoin.entries[i]);\n if (cmp !== 0)\n return cmp;\n }\n return 0;\n }\n case \"outerJoin\": {\n const rhsOuter = rhs;\n const cmp = cmpQueryJoinEntrySpec(lhs.primary, rhsOuter.primary);\n if (cmp !== 0)\n return cmp;\n if (lhs.secondary.length !== rhsOuter.secondary.length) {\n return lhs.secondary.length - rhsOuter.secondary.length;\n }\n for (let i = 0; i < lhs.secondary.length; i++) {\n const cmp = cmpQueryJoinEntrySpec(lhs.secondary[i], rhsOuter.secondary[i]);\n if (cmp !== 0)\n return cmp;\n }\n return 0;\n }\n case \"sliceAxes\":\n return cmpQuerySpec(lhs.input, rhs.input);\n case \"sort\":\n return cmpQuerySpec(lhs.input, rhs.input);\n case \"filter\":\n return cmpQuerySpec(lhs.input, rhs.input);\n default:\n assertNever(lhs);\n }\n}\nfunction cmpQueryJoinEntrySpec(lhs, rhs) {\n const cmp = cmpQuerySpec(lhs.entry, rhs.entry);\n if (cmp !== 0)\n return cmp;\n if (lhs.qualifications.length !== rhs.qualifications.length) {\n return lhs.qualifications.length - rhs.qualifications.length;\n }\n for (let i = 0; i < lhs.qualifications.length; i++) {\n const lhsQ = canonicalizeJson(lhs.qualifications[i]);\n const rhsQ = canonicalizeJson(rhs.qualifications[i]);\n if (lhsQ !== rhsQ)\n return lhsQ < rhsQ ? -1 : 1;\n }\n return 0;\n}\n\nexport { collectSpecQueryColumns, isBooleanExpression, mapSpecQueryColumns, sortSpecQuery, traverseQuerySpec };\n//# sourceMappingURL=utils.js.map\n","import { assertNever } from '../../util.js';\nimport { getAxisId } from './spec/spec.js';\nimport { canonicalizeJson } from '../../json.js';\nimport { mapSpecQueryColumns } from './query/utils.js';\n\nfunction mapPTableDef(def, cb) {\n return { ...def, src: mapJoinEntry(def.src, cb) };\n}\nfunction sortPTableDef(def) {\n function sortFilters(filters) {\n return filters.toSorted((lhs, rhs) => {\n if (lhs.column.type === \"axis\" && rhs.column.type === \"axis\") {\n const lhsId = canonicalizeJson(getAxisId(lhs.column.id));\n const rhsId = canonicalizeJson(getAxisId(rhs.column.id));\n return lhsId < rhsId ? -1 : 1;\n }\n else if (lhs.column.type === \"column\" && rhs.column.type === \"column\") {\n return lhs.column.id < rhs.column.id ? -1 : 1;\n }\n else {\n return lhs.column.type === \"axis\" ? -1 : 1;\n }\n });\n }\n return {\n src: sortJoinEntry(def.src),\n partitionFilters: sortFilters(def.partitionFilters),\n filters: sortFilters(def.filters),\n sorting: def.sorting,\n };\n}\nfunction mapPTableDefV2(def, cb) {\n return { query: mapSpecQueryColumns(def.query, cb) };\n}\nfunction mapJoinEntry(entry, cb) {\n switch (entry.type) {\n case \"column\":\n return {\n type: \"column\",\n column: cb(entry.column),\n };\n case \"slicedColumn\":\n return {\n type: \"slicedColumn\",\n column: cb(entry.column),\n newId: entry.newId,\n axisFilters: entry.axisFilters,\n };\n case \"artificialColumn\":\n return {\n type: \"artificialColumn\",\n column: cb(entry.column),\n newId: entry.newId,\n axesIndices: entry.axesIndices,\n };\n case \"inlineColumn\":\n return entry;\n case \"inner\":\n case \"full\":\n return {\n type: entry.type,\n entries: entry.entries.map((col) => mapJoinEntry(col, cb)),\n };\n case \"outer\":\n return {\n type: \"outer\",\n primary: mapJoinEntry(entry.primary, cb),\n secondary: entry.secondary.map((col) => mapJoinEntry(col, cb)),\n };\n default:\n assertNever(entry);\n }\n}\nfunction cmpJoinEntries(lhs, rhs) {\n if (lhs.type !== rhs.type) {\n return lhs.type < rhs.type ? -1 : 1;\n }\n const type = lhs.type;\n switch (type) {\n case \"column\":\n return lhs.column < rhs.column ? -1 : 1;\n case \"slicedColumn\":\n case \"artificialColumn\":\n return lhs.newId < rhs.newId ? -1 : 1;\n case \"inlineColumn\": {\n return lhs.column.id < rhs.column.id ? -1 : 1;\n }\n case \"inner\":\n case \"full\": {\n const rhsInner = rhs;\n if (lhs.entries.length !== rhsInner.entries.length) {\n return lhs.entries.length - rhsInner.entries.length;\n }\n for (let i = 0; i < lhs.entries.length; i++) {\n const cmp = cmpJoinEntries(lhs.entries[i], rhsInner.entries[i]);\n if (cmp !== 0) {\n return cmp;\n }\n }\n return 0;\n }\n case \"outer\": {\n const rhsOuter = rhs;\n const cmp = cmpJoinEntries(lhs.primary, rhsOuter.primary);\n if (cmp !== 0) {\n return cmp;\n }\n if (lhs.secondary.length !== rhsOuter.secondary.length) {\n return lhs.secondary.length - rhsOuter.secondary.length;\n }\n for (let i = 0; i < lhs.secondary.length; i++) {\n const cmp = cmpJoinEntries(lhs.secondary[i], rhsOuter.secondary[i]);\n if (cmp !== 0) {\n return cmp;\n }\n }\n return 0;\n }\n default:\n assertNever(type);\n }\n}\nfunction sortJoinEntry(entry) {\n switch (entry.type) {\n case \"column\":\n case \"slicedColumn\":\n case \"inlineColumn\":\n return entry;\n case \"artificialColumn\": {\n const sortedAxesIndices = entry.axesIndices.toSorted((lhs, rhs) => lhs - rhs);\n return {\n ...entry,\n axesIndices: sortedAxesIndices,\n };\n }\n case \"inner\":\n case \"full\": {\n const sortedEntries = entry.entries.map(sortJoinEntry);\n sortedEntries.sort(cmpJoinEntries);\n return {\n ...entry,\n entries: sortedEntries,\n };\n }\n case \"outer\": {\n const sortedSecondary = entry.secondary.map(sortJoinEntry);\n sortedSecondary.sort(cmpJoinEntries);\n return {\n ...entry,\n primary: sortJoinEntry(entry.primary),\n secondary: sortedSecondary,\n };\n }\n default:\n assertNever(entry);\n }\n}\n\nexport { mapJoinEntry, mapPTableDef, mapPTableDefV2, sortJoinEntry, sortPTableDef };\n//# sourceMappingURL=table_calculate.js.map\n","import canonicalize from 'canonicalize';\n\n/**\n * Canonically serializes a {@link UniversalPColumnId} to a string.\n * @param id - The column identifier to serialize\n * @returns The canonically serialized string\n */\nfunction stringifyColumnId(id) {\n return canonicalize(id);\n}\n/**\n * Parses a canonically serialized {@link UniversalPColumnId} from a string.\n * @param str - The string to parse\n * @returns The parsed column identifier\n */\nfunction parseColumnId(str) {\n return JSON.parse(str);\n}\n\nexport { parseColumnId, stringifyColumnId };\n//# sourceMappingURL=ids.js.map\n","import canonicalize from 'canonicalize';\nimport { stringifyColumnId } from './ids.js';\nimport { getAxisId, matchAxisId } from './spec.js';\n\n//\n// Helper functions\n//\nfunction axisKey(axis) {\n return canonicalize(getAxisId(axis));\n}\nfunction domainKey(key, value) {\n return JSON.stringify([key, value]);\n}\n/**\n * Context for resolving and generating anchored references to columns and axes\n * Maintains maps of known domain values and axes that can be referenced by anchors\n */\nclass AnchoredIdDeriver {\n anchors;\n domains = new Map();\n axes = new Map();\n /**\n * Domain packs are used to group domain keys that can be anchored to the same anchor\n * This is used to optimize the lookup of domain anchors\n */\n domainPacks = [];\n /**\n * Maps domain packs to anchors\n */\n domainPackToAnchor = new Map();\n /**\n * Creates a new anchor context from a set of anchor column specifications\n * @param anchors Record of anchor column specifications indexed by anchor ID\n */\n constructor(anchors) {\n this.anchors = anchors;\n const anchorEntries = Object.entries(anchors);\n anchorEntries.sort((a, b) => a[0].localeCompare(b[0]));\n for (const [anchorId, spec] of anchorEntries) {\n for (let axisIdx = 0; axisIdx < spec.axesSpec.length; axisIdx++) {\n const axis = spec.axesSpec[axisIdx];\n const key = axisKey(axis);\n this.axes.set(key, { anchor: anchorId, idx: axisIdx });\n }\n if (spec.domain !== undefined) {\n const domainEntries = Object.entries(spec.domain);\n domainEntries.sort((a, b) => a[0].localeCompare(b[0]));\n this.domainPackToAnchor.set(JSON.stringify(domainEntries), anchorId);\n this.domainPacks.push(domainEntries.map(([dKey]) => dKey));\n for (const [dKey, dValue] of domainEntries) {\n const key = domainKey(dKey, dValue);\n this.domains.set(key, anchorId);\n }\n }\n }\n }\n /**\n * Implementation of derive method\n */\n derive(spec, axisFilters) {\n const result = {\n name: spec.name,\n axes: [],\n };\n let skipDomains = undefined;\n if (spec.domain !== undefined) {\n outer: for (const domainPack of this.domainPacks) {\n const dAnchor = [];\n for (const domainKey of domainPack) {\n const dValue = spec.domain[domainKey];\n if (dValue !== undefined)\n dAnchor.push([domainKey, dValue]);\n else\n break outer;\n }\n const domainAnchor = this.domainPackToAnchor.get(JSON.stringify(dAnchor));\n if (domainAnchor !== undefined) {\n result.domainAnchor = domainAnchor;\n skipDomains = new Set(domainPack);\n break;\n }\n }\n }\n for (const [dKey, dValue] of Object.entries(spec.domain ?? {})) {\n if (skipDomains !== undefined && skipDomains.has(dKey))\n continue;\n const key = domainKey(dKey, dValue);\n const anchorId = this.domains.get(key);\n result.domain ??= {};\n result.domain[dKey] = anchorId ? { anchor: anchorId } : dValue;\n }\n result.axes = spec.axesSpec.map((axis) => {\n const key = axisKey(axis);\n const anchorAxisRef = this.axes.get(key);\n if (anchorAxisRef === undefined)\n return getAxisId(axis);\n else\n return anchorAxisRef;\n });\n // If no axis filters are provided, return the anchored ID as is\n if (!axisFilters || axisFilters.length === 0) {\n return result;\n }\n // Process axis filters and create a sliced column ID\n const resolvedFilters = [];\n for (const filter of axisFilters) {\n const [axisIdOrIndex, value] = filter;\n // If it's already a numeric index, validate it\n if (typeof axisIdOrIndex === \"number\") {\n if (axisIdOrIndex < 0 || axisIdOrIndex >= spec.axesSpec.length) {\n throw new Error(`Axis index ${axisIdOrIndex} is out of bounds (0-${spec.axesSpec.length - 1})`);\n }\n resolvedFilters.push([axisIdOrIndex, value]);\n }\n else {\n // If it's a string (axis name), resolve it to an index\n const axisIndex = spec.axesSpec.findIndex((axis) => axis.name === axisIdOrIndex);\n if (axisIndex === -1) {\n throw new Error(`Axis with name \"${axisIdOrIndex}\" not found in the column specification`);\n }\n resolvedFilters.push([axisIndex, value]);\n }\n }\n // Sort filters by axis index to ensure consistency\n resolvedFilters.sort((a, b) => a[0] - b[0]);\n return {\n source: result,\n axisFilters: resolvedFilters,\n };\n }\n /**\n * Derives a canonicalized string representation of an anchored column identifier, can be used as a unique identifier for the column\n * @param spec Column specification to anchor\n * @param axisFilters Optional axis filters to apply to the column\n * @returns A canonicalized string representation of the anchored column identifier\n */\n deriveS(spec, axisFilters) {\n return stringifyColumnId(this.derive(spec, axisFilters));\n }\n}\n/**\n * Resolves anchored references in a column matcher to create a non-anchored matcher.\n * Doing an opposite operation to {@link AnchorIdDeriver.derive()}.\n *\n * @param anchors - Record of anchor column specifications indexed by anchor id\n * @param matcher - An anchored column matcher (or id, which is subtype of it) containing references that need to be resolved\n * @param options - Options for resolving anchors\n * @returns A non-anchored column matcher with all references resolved to actual values\n */\nfunction resolveAnchors(anchors, matcher, options) {\n const result = { ...matcher };\n const ignoreMissingDomains = options?.ignoreMissingDomains ?? false;\n if (result.domainAnchor !== undefined) {\n const anchorSpec = anchors[result.domainAnchor];\n if (!anchorSpec)\n throw new Error(`Anchor \"${result.domainAnchor}\" not found`);\n const anchorDomains = anchorSpec.domain || {};\n result.domain = { ...anchorDomains, ...result.domain };\n delete result.domainAnchor;\n }\n if (result.domain) {\n const resolvedDomain = {};\n for (const [key, value] of Object.entries(result.domain)) {\n if (typeof value === \"string\") {\n resolvedDomain[key] = value;\n }\n else {\n // It's an AnchorDomainRef\n const anchorSpec = anchors[value.anchor];\n if (!anchorSpec)\n throw new Error(`Anchor \"${value.anchor}\" not found for domain key \"${key}\"`);\n if (!anchorSpec.domain || anchorSpec.domain[key] === undefined) {\n if (!ignoreMissingDomains)\n throw new Error(`Domain key \"${key}\" not found in anchor \"${value.anchor}\"`);\n continue;\n }\n resolvedDomain[key] = anchorSpec.domain[key];\n }\n }\n result.domain = resolvedDomain;\n }\n if (result.axes)\n result.axes = result.axes.map((axis) => resolveAxisReference(anchors, axis));\n return result;\n}\n/**\n * Resolves an anchored axis reference to a concrete AxisId\n */\nfunction resolveAxisReference(anchors, axisRef) {\n if (!isAnchorAxisRef(axisRef))\n return axisRef;\n // It's an anchored reference\n const anchorId = axisRef.anchor;\n const anchorSpec = anchors[anchorId];\n if (!anchorSpec)\n throw new Error(`Anchor \"${anchorId}\" not found for axis reference`);\n if (\"idx\" in axisRef) {\n // AnchorAxisRefByIdx\n if (axisRef.idx < 0 || axisRef.idx >= anchorSpec.axesSpec.length)\n throw new Error(`Axis index ${axisRef.idx} out of bounds for anchor \"${anchorId}\"`);\n return anchorSpec.axesSpec[axisRef.idx];\n }\n else if (\"name\" in axisRef) {\n // AnchorAxisRefByName\n const matches = anchorSpec.axesSpec.filter((axis) => axis.name === axisRef.name);\n if (matches.length > 1)\n throw new Error(`Multiple axes with name \"${axisRef.name}\" found in anchor \"${anchorId}\"`);\n if (matches.length === 0)\n throw new Error(`Axis with name \"${axisRef.name}\" not found in anchor \"${anchorId}\"`);\n return matches[0];\n }\n else if (\"id\" in axisRef) {\n // AnchorAxisRefByMatcher\n const matches = anchorSpec.axesSpec.filter((axis) => matchAxisId(axisRef.id, getAxisId(axis)));\n if (matches.length > 1)\n throw new Error(`Multiple matching axes found for matcher in anchor \"${anchorId}\"`);\n if (matches.length === 0)\n throw new Error(`No matching axis found for matcher in anchor \"${anchorId}\"`);\n return matches[0];\n }\n throw new Error(`Unsupported axis reference type`);\n}\n/**\n * Type guard to check if a value is an anchored axis reference\n */\nfunction isAnchorAxisRef(value) {\n return typeof value === \"object\" && \"anchor\" in value;\n}\n\nexport { AnchoredIdDeriver, resolveAnchors };\n//# sourceMappingURL=anchored.js.map\n","import { assertNever } from '../util.js';\n\nfunction isPColumnSpec(spec) {\n return spec.kind === \"PColumn\";\n}\nfunction isPColumn(obj) {\n return isPColumnSpec(obj.spec);\n}\nfunction isPColumnSpecResult(r) {\n return isPColumnSpec(r.obj);\n}\nfunction isPColumnResult(r) {\n return isPColumnSpec(r.obj.spec);\n}\nfunction ensurePColumn(obj) {\n if (!isPColumn(obj))\n throw new Error(`not a PColumn (kind = ${obj.spec.kind})`);\n return obj;\n}\nfunction mapPObjectData(pObj, cb) {\n return pObj === undefined\n ? undefined\n : {\n ...pObj,\n data: cb(typeof pObj.data === \"function\" ? pObj.data() : pObj.data),\n };\n}\nfunction extractAllColumns(entry) {\n const columns = new Map();\n const addAllColumns = (entry) => {\n switch (entry.type) {\n case \"column\":\n columns.set(entry.column.id, entry.column);\n return;\n case \"slicedColumn\":\n columns.set(entry.column.id, entry.column);\n return;\n case \"artificialColumn\":\n columns.set(entry.column.id, entry.column);\n return;\n case \"inlineColumn\":\n return;\n case \"full\":\n case \"inner\":\n for (const e of entry.entries)\n addAllColumns(e);\n return;\n case \"outer\":\n addAllColumns(entry.primary);\n for (const e of entry.secondary)\n addAllColumns(e);\n return;\n default:\n assertNever(entry);\n }\n };\n addAllColumns(entry);\n return [...columns.values()];\n}\n\nexport { ensurePColumn, extractAllColumns, isPColumn, isPColumnResult, isPColumnSpec, isPColumnSpecResult, mapPObjectData };\n//# sourceMappingURL=spec.js.map\n","import { isPColumnSpec } from '../../../pool/spec.js';\nimport { getAxisId } from './spec.js';\n\n/**\n * Checks if a given value is an anchored column identifier\n * @param id - The value to check\n * @returns True if the value is an anchored column identifier, false otherwise\n */\nfunction isAnchoredPColumnId(id) {\n // basic check, can be extended if needed\n return typeof id === \"object\" && id !== null && \"name\" in id && \"axes\" in id;\n}\n/**\n * Determines if an axis ID matches an axis selector.\n *\n * @param selector - The selector with criteria to match against\n * @param axis - The AxisId to check against the selector\n * @returns true if the AxisId matches all specified criteria in the selector, false otherwise\n */\nfunction matchAxis(selector, axis) {\n // Match name if specified\n if (selector.name !== undefined && selector.name !== axis.name)\n return false;\n // Match type if specified\n if (selector.type !== undefined) {\n if (Array.isArray(selector.type)) {\n if (!selector.type.includes(axis.type))\n return false;\n }\n else if (selector.type !== axis.type) {\n return false;\n }\n }\n // Match domain if specified - using existing logic from matchAxisId\n if (selector.domain !== undefined) {\n const axisDomain = axis.domain || {};\n for (const [key, value] of Object.entries(selector.domain))\n if (axisDomain[key] !== value)\n return false;\n }\n return true;\n}\n/**\n * Determines if a given PColumnSpec matches a selector.\n *\n * @param pcolumn - The PColumnSpec to check against the selector\n * @param selector - The selector criteria to match against\n * @returns true if the PColumnSpec matches all criteria in the selector, false otherwise\n */\nfunction matchPColumn(pcolumn, selector) {\n // Match name if specified\n if (selector.name !== undefined && pcolumn.name !== selector.name)\n return false;\n // Match name pattern if specified\n if (selector.namePattern !== undefined && !new RegExp(selector.namePattern).test(pcolumn.name))\n return false;\n // Match type if specified\n if (selector.type !== undefined) {\n if (Array.isArray(selector.type)) {\n if (!selector.type.includes(pcolumn.valueType))\n return false;\n }\n else if (selector.type !== pcolumn.valueType) {\n return false;\n }\n }\n // Match domain if specified\n if (selector.domain !== undefined) {\n const columnDomain = pcolumn.domain || {};\n for (const [key, value] of Object.entries(selector.domain))\n if (columnDomain[key] !== value)\n return false;\n }\n // Match axes if specified\n if (selector.axes !== undefined) {\n const pcolumnAxes = pcolumn.axesSpec.map(getAxisId);\n if (selector.partialAxesMatch) {\n // For partial matching, all selector axes must match at least one column axis\n for (const selectorAxis of selector.axes)\n if (!pcolumnAxes.some((columnAxis) => matchAxis(selectorAxis, columnAxis)))\n return false;\n }\n else {\n // For exact matching, column must have the same number of axes and all must match\n if (pcolumnAxes.length !== selector.axes.length)\n return false;\n // Each selector axis must match a corresponding column axis\n for (let i = 0; i < selector.axes.length; i++)\n if (!matchAxis(selector.axes[i], pcolumnAxes[i]))\n return false;\n }\n }\n // Match annotations if specified\n if (selector.annotations !== undefined) {\n const columnAnnotations = pcolumn.annotations || {};\n for (const [key, value] of Object.entries(selector.annotations))\n if (columnAnnotations[key] !== value)\n return false;\n }\n // Match annotation patterns if specified\n if (selector.annotationPatterns !== undefined) {\n const columnAnnotations = pcolumn.annotations || {};\n for (const [key, pattern] of Object.entries(selector.annotationPatterns)) {\n const value = columnAnnotations[key];\n if (value === undefined || !new RegExp(pattern).test(value))\n return false;\n }\n }\n return true;\n}\n/**\n * Convert a predicate or array of selectors to a single predicate function\n * @param predicateOrSelectors - Either a function that takes a PColumnSpec and returns a boolean,\n * or an array of PColumnSelectors, or a single PColumnSelector\n * @returns A function that takes a PColumnSpec and returns a boolean\n */\nfunction selectorsToPredicate(predicateOrSelectors) {\n if (Array.isArray(predicateOrSelectors))\n return (spec) => predicateOrSelectors.some((selector) => isPColumnSpec(spec) && matchPColumn(spec, selector));\n else\n return (spec) => isPColumnSpec(spec) && matchPColumn(spec, predicateOrSelectors);\n}\n\nexport { isAnchoredPColumnId, matchAxis, matchPColumn, selectorsToPredicate };\n//# sourceMappingURL=selectors.js.map\n","import { isPColumnSpec } from '../../../pool/spec.js';\nimport { getAxesId } from './spec.js';\nimport canonicalize from 'canonicalize';\n\nfunction deriveNativeId(spec) {\n const result = {\n kind: spec.kind,\n name: spec.name,\n };\n if (spec.domain !== undefined)\n result.domain = spec.domain;\n if (isPColumnSpec(spec))\n result.axesSpec = getAxesId(spec.axesSpec);\n return canonicalize(result);\n}\n\nexport { deriveNativeId };\n//# sourceMappingURL=native_id.js.map\n","import { parseJson, canonicalizeJson } from '../../json.js';\nimport { readAnnotationJson, Annotation, getNormalizedAxesList, getArrayFromAxisTree, getAxesTree, getAxisId } from './spec/spec.js';\n\nclass LinkerMap {\n /** Graph of linkers connected by axes (single or grouped by parents) */\n data;\n constructor(linkerMap) {\n this.data = linkerMap;\n }\n get keys() {\n return this.data.keys();\n }\n get keyAxesIds() {\n return [...this.data.keys()].map(parseJson);\n }\n static fromColumns(columns) {\n const result = new Map();\n for (const linker of columns.filter((l) => !!readAnnotationJson(l.spec, Annotation.IsLinkerColumn))) {\n const groups = LinkerMap.getAxesGroups(getNormalizedAxesList(linker.spec.axesSpec)); // split input axes into groups by parent links from annotation\n if (groups.length !== 2) {\n continue; // not a valid linker column\n }\n const [left, right] = groups;\n // In case of group:\n // A - C\n // \\_ B _ D\n // E/\n // put 2 variants as keys:\n // A - C\n // \\_ B _ D\n // and\n // E - B - D\n const leftKeyVariants = LinkerMap.getAxesRoots(left).map((axis) => {\n const axes = getArrayFromAxisTree(getAxesTree(axis));\n const key = canonicalizeJson(axes.map(getAxisId));\n return [key, axes];\n });\n const rightKeyVariants = LinkerMap.getAxesRoots(right).map((axis) => {\n const axes = getArrayFromAxisTree(getAxesTree(axis));\n const key = canonicalizeJson(axes.map(getAxisId));\n return [key, axes];\n });\n for (const [keyLeft, spec] of leftKeyVariants) {\n if (!result.has(keyLeft)) {\n result.set(keyLeft, { keyAxesSpec: spec, linkWith: new Map() });\n }\n }\n for (const [keyRight, spec] of rightKeyVariants) {\n if (!result.has(keyRight)) {\n result.set(keyRight, { keyAxesSpec: spec, linkWith: new Map() });\n }\n }\n for (const [keyLeft] of leftKeyVariants) {\n for (const [keyRight] of rightKeyVariants) {\n result.get(keyLeft)?.linkWith.set(keyRight, linker);\n result.get(keyRight)?.linkWith.set(keyLeft, linker);\n }\n }\n }\n return new this(result);\n }\n /** Get all available nodes of linker graphs if start from sourceAxesKeys */\n searchAvailableAxesKeys(sourceAxesKeys) {\n const startKeys = new Set(sourceAxesKeys);\n const allAvailableKeys = new Set();\n let nextKeys = sourceAxesKeys;\n while (nextKeys.length) {\n const next = [];\n for (const key of nextKeys) {\n const node = this.data.get(key);\n if (!node)\n continue;\n for (const availableKey of node.linkWith.keys()) {\n if (!allAvailableKeys.has(availableKey) && !startKeys.has(availableKey)) {\n next.push(availableKey);\n allAvailableKeys.add(availableKey);\n }\n }\n }\n nextKeys = next;\n }\n return allAvailableKeys;\n }\n /** Get all linker columns that are necessary to reach endKey from startKey */\n searchLinkerPath(startKey, endKey) {\n const previous = {};\n let nextIds = new Set([startKey]);\n const visited = new Set([startKey]);\n while (nextIds.size) {\n const next = new Set();\n for (const nextId of nextIds) {\n const node = this.data.get(nextId);\n if (!node)\n continue;\n for (const availableId of node.linkWith.keys()) {\n previous[availableId] = nextId;\n if (availableId === endKey) {\n const ids = [];\n let current = endKey;\n while (previous[current] !== startKey) {\n ids.push(current);\n current = previous[current];\n }\n ids.push(current);\n return ids.map((id) => this.data.get(id).linkWith.get(previous[id]));\n }\n else if (!visited.has(availableId)) {\n next.add(availableId);\n visited.add(availableId);\n }\n }\n }\n nextIds = next;\n }\n return [];\n }\n getLinkerColumnsForAxes({ from: sourceAxes, to: targetAxes, throwWhenNoLinkExists = true, }) {\n // start keys - all possible keys in linker map using sourceAxes (for example, all axes of block's columns or all axes of columns in data-inputs)\n const startKeys = sourceAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n return Array.from(new Map(LinkerMap.getAxesRoots(targetAxes)\n .map(LinkerMap.getLinkerKeyFromAxisSpec) // target keys contain all axes to be linked; if some of target axes has parents they must be in the key\n .flatMap((targetKey) => {\n const linkers = startKeys\n .map((startKey) => this.searchLinkerPath(startKey, targetKey))\n .reduce((shortestPath, path) => (shortestPath.length && shortestPath.length < path.length) || !path.length\n ? shortestPath\n : path, [])\n .map((linker) => [linker.columnId, linker]);\n if (!linkers.length && throwWhenNoLinkExists) {\n throw Error(`Unable to find linker column for ${targetKey}`);\n }\n return linkers;\n })).values());\n }\n /** Get list of axisSpecs from keys of linker columns map */\n getAxesListFromKeysList(keys) {\n return Array.from(new Map(keys\n .flatMap((key) => this.data.get(key)?.keyAxesSpec ?? [])\n .map((axis) => [canonicalizeJson(getAxisId(axis)), axis])).values());\n }\n /** Get axes of target axes that are impossible to be linked to source axes with current linker map */\n getNonLinkableAxes(sourceAxes, targetAxes) {\n const startKeys = sourceAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n // target keys contain all axes to be linked; if some of target axes has parents they must be in the key\n const targetKeys = targetAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n const axes = Array.from(new Map(targetAxes\n .filter((_targetAxis, idx) => {\n const targetKey = targetKeys[idx];\n return !startKeys.some((startKey) => this.searchLinkerPath(startKey, targetKey).length);\n })\n .flatMap((axis) => getArrayFromAxisTree(getAxesTree(axis)).map((axis) => [\n canonicalizeJson(getAxisId(axis)),\n axis,\n ]))).values());\n return axes;\n }\n /** Get all axes that can be connected to sourceAxes by linkers */\n getReachableByLinkersAxesFromAxesNormalized(sourceAxes, matchAxisIdFn) {\n let startKeys = [];\n if (matchAxisIdFn) {\n const sourceAxisIdsGrouped = sourceAxes.map((axis) => getArrayFromAxisTree(getAxesTree(axis)).map(getAxisId));\n for (const sourceAxisIdsGroup of sourceAxisIdsGrouped) {\n const matched = this.keyAxesIds.find((keyIds) => keyIds.every((linkerKeyAxisId) => sourceAxisIdsGroup.find((sourceAxisId) => matchAxisIdFn(linkerKeyAxisId, sourceAxisId))));\n if (matched) {\n startKeys.push(canonicalizeJson(matched));\n }\n }\n }\n else {\n startKeys = sourceAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n }\n const availableKeys = this.searchAvailableAxesKeys(startKeys);\n return this.getAxesListFromKeysList([...availableKeys]);\n }\n getReachableByLinkersAxesFromAxes(sourceAxes, matchAxisIdFn) {\n return this.getReachableByLinkersAxesFromAxesNormalized(getNormalizedAxesList(sourceAxes), matchAxisIdFn);\n }\n static getLinkerKeyFromAxisSpec(axis) {\n return canonicalizeJson(getArrayFromAxisTree(getAxesTree(axis)).map(getAxisId));\n }\n /** Split array of axes into several arrays by parents: axes of one group are parents for each other.\n There are no order inside every group. */\n static getAxesGroups(axesSpec) {\n switch (axesSpec.length) {\n case 0:\n return [];\n case 1:\n return [[axesSpec[0]]];\n }\n const axisKeys = axesSpec.map((spec) => canonicalizeJson(getAxisId(spec)));\n const axisParentsIdxs = axesSpec.map((spec) => new Set(spec.parentAxesSpec\n .map((spec) => canonicalizeJson(getAxisId(spec)))\n .map((el) => {\n const idx = axisKeys.indexOf(el);\n if (idx === -1) {\n throw new Error(`malformed axesSpec: ${JSON.stringify(axesSpec)}, unable to locate parent ${el}`);\n }\n return idx;\n })));\n const allIdxs = [...axesSpec.keys()];\n const groups = []; // groups of axis indexes\n const usedIdxs = new Set();\n let nextFreeEl = allIdxs.find((idx) => !usedIdxs.has(idx));\n while (nextFreeEl !== undefined) {\n const currentGroup = [nextFreeEl];\n usedIdxs.add(nextFreeEl);\n let nextElsOfCurrentGroup = [nextFreeEl];\n while (nextElsOfCurrentGroup.length) {\n const next = new Set();\n for (const groupIdx of nextElsOfCurrentGroup) {\n const groupElementParents = axisParentsIdxs[groupIdx];\n allIdxs.forEach((idx) => {\n if (idx === groupIdx || usedIdxs.has(idx)) {\n return;\n }\n const parents = axisParentsIdxs[idx];\n if (parents.has(groupIdx) || groupElementParents.has(idx)) {\n currentGroup.push(idx);\n next.add(idx);\n usedIdxs.add(idx);\n }\n });\n }\n nextElsOfCurrentGroup = [...next];\n }\n groups.push([...currentGroup]);\n nextFreeEl = allIdxs.find((idx) => !usedIdxs.has(idx));\n }\n return groups.map((group) => group.map((idx) => axesSpec[idx]));\n }\n /** Get all axes that are not parents of any other axis */\n static getAxesRoots(axes) {\n const parentsSet = new Set(axes.flatMap((axis) => axis.parentAxesSpec).map((spec) => canonicalizeJson(getAxisId(spec))));\n return axes.filter((axis) => !parentsSet.has(canonicalizeJson(getAxisId(axis))));\n }\n}\n\nexport { LinkerMap };\n//# sourceMappingURL=linker_columns.js.map\n","import { z } from 'zod';\nimport { base32Encode } from './base32_encode.js';\n\n/** Number of raw bytes in the PlId. */\nconst PlIdBytes = 15;\n/** Characters in string representation */\nconst PlIdLength = 24; // = 15 bytes * 8 bits / 5 bits per char in base32\nconst PlId = z\n .string()\n .length(PlIdLength)\n .regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/) // RFC4648\n .brand(\"PlId\");\nfunction uniquePlId() {\n const data = new Uint8Array(PlIdBytes);\n crypto.getRandomValues(data);\n return PlId.parse(base32Encode(data, \"RFC4648\"));\n}\nfunction plId(bytes) {\n if (bytes.length !== PlIdBytes)\n throw new Error(`Wrong number of bytes: ${bytes.length}`);\n return PlId.parse(base32Encode(bytes, \"RFC4648\"));\n}\nasync function digestPlId(data) {\n const encoder = new TextEncoder();\n const bytes = await crypto.subtle.digest(\"SHA-256\", encoder.encode(data));\n return plId(new Uint8Array(bytes.slice(0, 15)));\n}\n\nexport { PlId, PlIdBytes, PlIdLength, digestPlId, plId, uniquePlId };\n//# sourceMappingURL=plid.js.map\n","import { z } from 'zod';\n\nconst PlRef = z\n .object({\n __isRef: z\n .literal(true)\n .describe(\"Crucial marker for the block dependency tree reconstruction\"),\n blockId: z.string().describe(\"Upstream block id\"),\n name: z.string().describe(\"Name of the output provided to the upstream block's output context\"),\n requireEnrichments: z\n .literal(true)\n .optional()\n .describe(\"True if current block that stores this reference in its args, may need enrichments \" +\n \"for the references value originating from the blocks in between current and referenced block\"),\n})\n .describe(\"Universal reference type, allowing to set block connections. It is crucial that \" +\n \"{@link __isRef} is present and equal to true, internal logic relies on this marker \" +\n \"to build block dependency trees.\")\n .readonly();\n/**\n * Type guard to check if a value is a PlRef.\n *\n * @param value - The value to check.\n * @returns True if the value is a PlRef, false otherwise.\n */\nfunction isPlRef(value) {\n return (typeof value === \"object\" &&\n value !== null &&\n \"__isRef\" in value &&\n value.__isRef === true &&\n \"blockId\" in value &&\n \"name\" in value);\n}\n/**\n * Creates a PlRef with the given blockId and name.\n *\n * @param blockId - The blockId of the reference.\n * @param name - The name of the reference.\n * @param requireEnrichments - Whether the reference requires enrichments.\n */\nfunction createPlRef(blockId, name, requireEnrichments = false) {\n if (requireEnrichments)\n return {\n __isRef: true,\n blockId,\n name,\n requireEnrichments: true,\n };\n else\n return {\n __isRef: true,\n blockId,\n name,\n };\n}\n/**\n * Creates a new PlRef based on an existing one, explicitly setting (default) or removing the\n * requireEnrichments property.\n *\n * @param ref - The original PlRef object.\n * @param requireEnrichments - If true, the `requireEnrichments: true` property is added\n * to the returned PlRef. If false, the `requireEnrichments` property is removed. Defaults to true.\n * @returns A new PlRef object with the `requireEnrichments` property set or removed accordingly.\n */\nfunction withEnrichments(ref, requireEnrichments = true) {\n if (requireEnrichments)\n return {\n ...ref,\n requireEnrichments: true,\n };\n else {\n const { requireEnrichments: _, ...rest } = ref;\n return rest;\n }\n}\n/** Compare two PlRefs and returns true if they are qual */\nfunction plRefsEqual(ref1, ref2, ignoreEnrichments = false) {\n return (ref1.blockId === ref2.blockId &&\n ref1.name === ref2.name &&\n (ignoreEnrichments || ref1.requireEnrichments === ref2.requireEnrichments));\n}\n\nexport { PlRef, createPlRef, isPlRef, plRefsEqual, withEnrichments };\n//# sourceMappingURL=ref.js.map\n","function mapValueInVOE(voe, cb) {\n return voe.ok ? { ok: true, value: cb(voe.value) } : voe;\n}\n\nexport { mapValueInVOE };\n//# sourceMappingURL=value_or_error.js.map\n","import { registerFutureAwait } from '../internal.js';\n\nclass FutureRef {\n handle;\n postProcess;\n isResolved = false;\n resolvedValue;\n constructor(handle, postProcess = (v) => v) {\n this.handle = handle;\n this.postProcess = postProcess;\n registerFutureAwait(handle, (value) => {\n this.resolvedValue = postProcess(value);\n this.isResolved = true;\n });\n }\n map(mapping) {\n return new FutureRef(this.handle, (v) => mapping(this.postProcess(v)));\n }\n mapDefined(mapping) {\n return new FutureRef(this.handle, (v) => {\n const vv = this.postProcess(v);\n return vv ? mapping(vv) : undefined;\n });\n }\n toJSON() {\n return this.isResolved\n ? this.resolvedValue\n : { __awaited_futures__: [this.handle] };\n }\n}\n\nexport { FutureRef };\n//# sourceMappingURL=future.js.map\n","import { isPColumn, mapPObjectData } from '@milaboratories/pl-model-common';\nimport { getCfgRenderCtx } from '../internal.js';\nimport { FutureRef } from './future.js';\n\nfunction ifDef(value, cb) {\n return value === undefined ? undefined : cb(value);\n}\n/** Represent resource tree node accessor */\nclass TreeNodeAccessor {\n handle;\n resolvePath;\n constructor(handle, resolvePath) {\n this.handle = handle;\n this.resolvePath = resolvePath;\n }\n resolve(...steps) {\n const transformedSteps = steps.map((s) => ({\n assertFieldType: \"Input\",\n ...(typeof s === \"string\" ? { field: s } : s),\n }));\n return this.resolveWithCommon({}, ...transformedSteps);\n }\n resolveOutput(...steps) {\n const transformedSteps = steps.map((s) => ({\n assertFieldType: \"Output\",\n ...(typeof s === \"string\" ? { field: s } : s),\n }));\n return this.resolveWithCommon({}, ...transformedSteps);\n }\n resolveInput(...steps) {\n const transformedSteps = steps.map((s) => ({\n assertFieldType: \"Input\",\n ...(typeof s === \"string\" ? { field: s } : s),\n }));\n return this.resolveWithCommon({}, ...transformedSteps);\n }\n resolveAny(...steps) {\n return this.resolveWithCommon({}, ...steps);\n }\n resolveWithCommon(commonOptions, ...steps) {\n const resolvePath = [\n ...this.resolvePath,\n ...steps.map((step) => (typeof step === \"string\" ? step : step.field)),\n ];\n return ifDef(getCfgRenderCtx().resolveWithCommon(this.handle, commonOptions, ...steps), (accessor) => new TreeNodeAccessor(accessor, resolvePath));\n }\n get resourceType() {\n return getCfgRenderCtx().getResourceType(this.handle);\n }\n getInputsLocked() {\n return getCfgRenderCtx().getInputsLocked(this.handle);\n }\n getOutputsLocked() {\n return getCfgRenderCtx().getOutputsLocked(this.handle);\n }\n getIsReadyOrError() {\n return getCfgRenderCtx().getIsReadyOrError(this.handle);\n }\n getIsFinal() {\n return getCfgRenderCtx().getIsFinal(this.handle);\n }\n getError() {\n const resolvePath = [...this.resolvePath, \"error\"];\n return ifDef(getCfgRenderCtx().getError(this.handle), (accsessor) => new TreeNodeAccessor(accsessor, resolvePath));\n }\n listInputFields() {\n return getCfgRenderCtx().listInputFields(this.handle);\n }\n listOutputFields() {\n return getCfgRenderCtx().listOutputFields(this.handle);\n }\n listDynamicFields() {\n return getCfgRenderCtx().listDynamicFields(this.handle);\n }\n getKeyValueBase64(key) {\n return getCfgRenderCtx().getKeyValueBase64(this.handle, key);\n }\n getKeyValueAsString(key) {\n return getCfgRenderCtx().getKeyValueAsString(this.handle, key);\n }\n getKeyValueAsJson(key) {\n const content = this.getKeyValueAsString(key);\n if (content == undefined)\n throw new Error(\"Resource has no content.\");\n return JSON.parse(content);\n }\n getDataBase64() {\n return getCfgRenderCtx().getDataBase64(this.handle);\n }\n getDataAsString() {\n return getCfgRenderCtx().getDataAsString(this.handle);\n }\n getDataAsJson() {\n const content = this.getDataAsString();\n if (content == undefined)\n throw new Error(\"Resource has no content.\");\n return JSON.parse(content);\n }\n /**\n *\n */\n getPColumns(errorOnUnknownField = false, prefix = \"\") {\n const result = this.parsePObjectCollection(errorOnUnknownField, prefix);\n if (result === undefined)\n return undefined;\n const pf = Object.entries(result).map(([, obj]) => {\n if (!isPColumn(obj))\n throw new Error(`not a PColumn (kind = ${obj.spec.kind})`);\n return obj;\n });\n return pf;\n }\n /**\n *\n */\n parsePObjectCollection(errorOnUnknownField = false, prefix = \"\") {\n const pObjects = getCfgRenderCtx().parsePObjectCollection(this.handle, errorOnUnknownField, prefix, ...this.resolvePath);\n if (pObjects === undefined)\n return undefined;\n const result = {};\n for (const [key, value] of Object.entries(pObjects)) {\n const resolvePath = [...this.resolvePath, key];\n result[key] = mapPObjectData(value, (c) => new TreeNodeAccessor(c, resolvePath));\n }\n return result;\n }\n getFileContentAsBase64(range) {\n return new FutureRef(getCfgRenderCtx().getBlobContentAsBase64(this.handle, range));\n }\n getFileContentAsString(range) {\n return new FutureRef(getCfgRenderCtx().getBlobContentAsString(this.handle, range));\n }\n getFileContentAsJson(range) {\n return new FutureRef(getCfgRenderCtx().getBlobContentAsString(this.handle, range)).mapDefined((v) => JSON.parse(v));\n }\n /**\n * @deprecated use getFileContentAsBase64\n */\n getBlobContentAsBase64() {\n return this.getFileContentAsBase64();\n }\n /**\n * @deprecated use getFileContentAsString\n */\n getBlobContentAsString() {\n return this.getFileContentAsString();\n }\n /**\n * @returns downloaded file handle\n */\n getFileHandle() {\n return new FutureRef(getCfgRenderCtx().getDownloadedBlobContentHandle(this.handle));\n }\n /**\n * @deprecated use getFileHandle\n */\n getDownloadedBlobHandle() {\n return this.getFileHandle();\n }\n /**\n * @returns downloaded file handle\n */\n getRemoteFileHandle() {\n return new FutureRef(getCfgRenderCtx().getOnDemandBlobContentHandle(this.handle));\n }\n /**\n * @deprecated use getRemoteFileHandle\n */\n getOnDemandBlobHandle() {\n return this.getRemoteFileHandle();\n }\n /**\n * @returns the url to the extracted folder\n */\n extractArchiveAndGetURL(format) {\n return new FutureRef(getCfgRenderCtx().extractArchiveAndGetURL(this.handle, format));\n }\n getImportProgress() {\n return new FutureRef(getCfgRenderCtx().getImportProgress(this.handle));\n }\n getLastLogs(nLines) {\n return new FutureRef(getCfgRenderCtx().getLastLogs(this.handle, nLines));\n }\n getProgressLog(patternToSearch) {\n return new FutureRef(getCfgRenderCtx().getProgressLog(this.handle, patternToSearch));\n }\n getProgressLogWithInfo(patternToSearch) {\n return new FutureRef(getCfgRenderCtx().getProgressLogWithInfo(this.handle, patternToSearch));\n }\n getLogHandle() {\n return new FutureRef(getCfgRenderCtx().getLogHandle(this.handle));\n }\n allFieldsResolved(fieldType = \"Input\") {\n switch (fieldType) {\n case \"Input\":\n return (this.getInputsLocked() &&\n this.listInputFields().every((field) => this.resolve({ field, assertFieldType: \"Input\" }) !== undefined));\n case \"Output\":\n return (this.getOutputsLocked() &&\n this.listOutputFields().every((field) => this.resolve({ field, assertFieldType: \"Output\" }) !== undefined));\n }\n }\n mapFields(_mapping, _ops) {\n const { fieldType, requireLocked, skipUnresolved } = {\n fieldType: \"Input\",\n requireLocked: true,\n skipUnresolved: false,\n ..._ops,\n };\n const mapping = _mapping;\n if (requireLocked) {\n if (fieldType === \"Input\" && !this.getInputsLocked())\n return undefined;\n if (fieldType === \"Output\" && !this.getOutputsLocked())\n return undefined;\n }\n const fieldList = fieldType === \"Input\"\n ? this.listInputFields()\n : fieldType === \"Output\"\n ? this.listOutputFields()\n : this.listDynamicFields();\n let fieldEntries = fieldList.map((field) => [field, this.resolve({ field, assertFieldType: fieldType })]);\n if (skipUnresolved)\n fieldEntries = fieldEntries.filter((e) => e[1] !== undefined);\n return fieldEntries.map(([name, value]) => mapping(name, value));\n }\n}\n\nexport { TreeNodeAccessor, ifDef };\n//# sourceMappingURL=accessor.js.map\n","const StagingAccessorName = \"staging\";\nconst MainAccessorName = \"main\";\nconst GlobalCfgRenderCtxFeatureFlags = {\n explicitColumnsSupport: true,\n inlineColumnsSupport: true,\n activeArgs: true,\n pTablePartitionFiltersSupport: true,\n pFrameInSetFilterSupport: true,\n};\nfunction isFutureAwait(obj) {\n return typeof obj === \"object\" && obj !== null && \"__awaited_futures__\" in obj;\n}\nfunction addAllFutureAwaits(set, visited, node) {\n if (visited.has(node))\n return;\n visited.add(node);\n const type = typeof node;\n if (type === \"object\") {\n if (isFutureAwait(node))\n node.__awaited_futures__.forEach((a) => set.add(a));\n else if (Array.isArray(node))\n for (const nested of node)\n addAllFutureAwaits(set, visited, nested);\n else\n for (const [, nested] of Object.entries(node))\n if (nested !== node)\n addAllFutureAwaits(set, visited, nested);\n }\n}\nfunction getAllFutureAwaits(obj) {\n const set = new Set();\n addAllFutureAwaits(set, new Set(), obj);\n return set;\n}\n\nexport { GlobalCfgRenderCtxFeatureFlags, MainAccessorName, StagingAccessorName, getAllFutureAwaits, isFutureAwait };\n//# sourceMappingURL=internal.js.map\n","function filterDataInfoEntries(dataInfoEntries, axisFilters) {\n // Sort filters by axis index in descending order to safely remove elements from arrays\n const sortedFilters = [...axisFilters].sort((a, b) => b[0] - a[0]);\n // Check for invalid filter axes\n const { type } = dataInfoEntries;\n switch (type) {\n case \"Json\": {\n const { keyLength } = dataInfoEntries;\n for (const [axisIdx] of axisFilters)\n if (axisIdx >= keyLength)\n throw new Error(`Can't filter on non-data axis ${axisIdx}. Must be >= ${keyLength}`);\n break;\n }\n case \"JsonPartitioned\":\n case \"BinaryPartitioned\":\n case \"ParquetPartitioned\": {\n const { partitionKeyLength } = dataInfoEntries;\n for (const [axisIdx] of axisFilters)\n if (axisIdx >= partitionKeyLength)\n throw new Error(`Can't filter on non-partitioned axis ${axisIdx}. Must be >= ${partitionKeyLength}`);\n break;\n }\n default:\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n throw new Error(`Unsupported data info type: ${type}`);\n }\n const keyMatchesFilters = (key) => {\n for (const [axisIdx, axisValue] of sortedFilters)\n if (key[axisIdx] !== axisValue)\n return false;\n return true;\n };\n const removeFilteredAxes = (key) => {\n const newKey = [...key];\n // Remove axes in descending order to maintain correct indices\n for (const [axisIdx] of sortedFilters)\n newKey.splice(axisIdx, 1);\n return newKey;\n };\n switch (dataInfoEntries.type) {\n case \"Json\":\n return {\n type: \"Json\",\n keyLength: dataInfoEntries.keyLength - axisFilters.length,\n data: dataInfoEntries.data\n .filter((entry) => keyMatchesFilters(entry.key))\n .map((entry) => ({\n key: removeFilteredAxes(entry.key),\n value: entry.value,\n })),\n };\n case \"JsonPartitioned\":\n return {\n type: \"JsonPartitioned\",\n partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,\n parts: dataInfoEntries.parts\n .filter((entry) => keyMatchesFilters(entry.key))\n .map((entry) => ({\n key: removeFilteredAxes(entry.key),\n value: entry.value,\n })),\n };\n case \"BinaryPartitioned\":\n return {\n type: \"BinaryPartitioned\",\n partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,\n parts: dataInfoEntries.parts\n .filter((entry) => keyMatchesFilters(entry.key))\n .map((entry) => ({\n key: removeFilteredAxes(entry.key),\n value: entry.value,\n })),\n };\n case \"ParquetPartitioned\":\n return {\n type: \"ParquetPartitioned\",\n partitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,\n parts: dataInfoEntries.parts\n .filter((entry) => keyMatchesFilters(entry.key))\n .map((entry) => ({\n key: removeFilteredAxes(entry.key),\n value: entry.value,\n })),\n };\n }\n}\n\nexport { filterDataInfoEntries };\n//# sourceMappingURL=axis_filtering.js.map\n","import { readAnnotation, Annotation, parseJson } from '@milaboratories/pl-model-common';\nimport { z } from 'zod';\n\nconst TraceEntry = z.object({\n type: z.string(),\n importance: z.number().optional(),\n id: z.string().optional(),\n label: z.string(),\n});\nconst Trace = z.array(TraceEntry);\nconst DistancePenalty = 0.001;\nconst LabelType = \"__LABEL__\";\nconst LabelTypeFull = \"__LABEL__@1\";\nfunction deriveLabels(values, specExtractor, ops = {}) {\n const importances = new Map();\n const forceTraceElements = ops.forceTraceElements !== undefined && ops.forceTraceElements.length > 0\n ? new Set(ops.forceTraceElements)\n : undefined;\n // number of times certain type occurred among all of the\n const numberOfRecordsWithType = new Map();\n const enrichedRecords = values.map((value) => {\n const extractorResult = specExtractor(value);\n let spec;\n let prefixTrace;\n let suffixTrace;\n // Check if the result is the new structure or just PObjectSpec\n if (\"spec\" in extractorResult && typeof extractorResult.spec === \"object\") {\n // It's the new structure { spec, prefixTrace?, suffixTrace? }\n spec = extractorResult.spec;\n prefixTrace = extractorResult.prefixTrace;\n suffixTrace = extractorResult.suffixTrace;\n }\n else {\n // It's just PObjectSpec\n spec = extractorResult;\n }\n const label = readAnnotation(spec, Annotation.Label);\n const traceStr = readAnnotation(spec, Annotation.Trace);\n const baseTrace = (traceStr ? Trace.safeParse(parseJson(traceStr)).data : undefined) ?? [];\n const trace = [...(prefixTrace ?? []), ...baseTrace, ...(suffixTrace ?? [])];\n if (label !== undefined) {\n const labelEntry = { label, type: LabelType, importance: -2 };\n if (ops.addLabelAsSuffix)\n trace.push(labelEntry);\n else\n trace.splice(0, 0, labelEntry);\n }\n const fullTrace = [];\n const occurrences = new Map();\n for (let i = trace.length - 1; i >= 0; --i) {\n const { type: typeName } = trace[i];\n const importance = trace[i].importance ?? 0;\n const occurrenceIndex = (occurrences.get(typeName) ?? 0) + 1;\n occurrences.set(typeName, occurrenceIndex);\n const fullType = `${typeName}@${occurrenceIndex}`;\n numberOfRecordsWithType.set(fullType, (numberOfRecordsWithType.get(fullType) ?? 0) + 1);\n importances.set(fullType, Math.max(importances.get(fullType) ?? Number.NEGATIVE_INFINITY, importance - (trace.length - i) * DistancePenalty));\n fullTrace.push({ ...trace[i], fullType, occurrenceIndex: occurrenceIndex });\n }\n fullTrace.reverse();\n return {\n value,\n spec,\n label,\n fullTrace,\n };\n });\n // excluding repeated types (i.e. ..@2, ..@3, etc.) not found in some records\n const mainTypes = [];\n // repeated types (i.e. ..@2, ..@3, etc.) not found in some records\n const secondaryTypes = [];\n const allTypeRecords = [...importances];\n // sorting: most important types go first\n allTypeRecords.sort(([, i1], [, i2]) => i2 - i1);\n for (const [typeName] of allTypeRecords) {\n if (typeName.endsWith(\"@1\") || numberOfRecordsWithType.get(typeName) === values.length)\n mainTypes.push(typeName);\n else\n secondaryTypes.push(typeName);\n }\n const calculate = (includedTypes, force = false) => {\n const result = [];\n for (let i = 0; i < enrichedRecords.length; i++) {\n const r = enrichedRecords[i];\n const includedTrace = r.fullTrace.filter((fm) => includedTypes.has(fm.fullType) || (forceTraceElements && forceTraceElements.has(fm.type)));\n if (includedTrace.length === 0) {\n if (force)\n result.push({\n label: \"Unlabeled\",\n value: r.value,\n });\n else\n return undefined;\n }\n const labelSet = includedTrace.map((fm) => fm.label);\n const sep = ops.separator ?? \" / \";\n result.push({\n label: labelSet.join(sep),\n value: r.value,\n });\n }\n return result;\n };\n const countUniqueLabels = (result) => result === undefined ? 0 : new Set(result.map((c) => c.label)).size;\n // Post-processing: try removing types one by one (lowest importance first) to minimize the label set\n // Accepts removal if it doesn't decrease the number of unique labels (cardinality)\n const minimizeTypeSet = (typeSet) => {\n const initialResult = calculate(typeSet);\n if (initialResult === undefined) {\n return typeSet;\n }\n const currentCardinality = countUniqueLabels(initialResult);\n // Get types sorted by importance ascending (lowest first), excluding forced elements\n const removableSorted = [...typeSet]\n .filter((t) => !forceTraceElements?.has(t.split(\"@\")[0]) &&\n !(ops.includeNativeLabel && t === LabelTypeFull))\n .sort((a, b) => (importances.get(a) ?? 0) - (importances.get(b) ?? 0));\n for (const typeToRemove of removableSorted) {\n const reducedSet = new Set(typeSet);\n reducedSet.delete(typeToRemove);\n const candidateResult = calculate(reducedSet);\n if (candidateResult !== undefined &&\n countUniqueLabels(candidateResult) >= currentCardinality) {\n typeSet.delete(typeToRemove);\n }\n }\n return typeSet;\n };\n if (mainTypes.length === 0) {\n if (secondaryTypes.length !== 0)\n throw new Error(\"Non-empty secondary types list while main types list is empty.\");\n return calculate(new Set(LabelTypeFull), true);\n }\n //\n // includedTypes = 2\n // * *\n // T0 T1 T2 T3 T4 T5\n // *\n // additionalType = 3\n //\n // Resulting set: T0, T1, T3\n //\n let includedTypes = 0;\n let additionalType = -1;\n while (includedTypes < mainTypes.length) {\n const currentSet = new Set();\n if (ops.includeNativeLabel)\n currentSet.add(LabelTypeFull);\n for (let i = 0; i < includedTypes; ++i)\n currentSet.add(mainTypes[i]);\n if (additionalType >= 0)\n currentSet.add(mainTypes[additionalType]);\n const candidateResult = calculate(currentSet);\n if (candidateResult !== undefined && countUniqueLabels(candidateResult) === values.length) {\n minimizeTypeSet(currentSet);\n return calculate(currentSet);\n }\n additionalType++;\n if (additionalType >= mainTypes.length) {\n includedTypes++;\n additionalType = includedTypes;\n }\n }\n // Fallback: include all types, then try to minimize\n const fallbackSet = new Set([...mainTypes, ...secondaryTypes]);\n minimizeTypeSet(fallbackSet);\n return calculate(fallbackSet, true);\n}\n\nexport { Trace, TraceEntry, deriveLabels };\n//# sourceMappingURL=label.js.map\n","import { isDataInfoEntries, isDataInfo, dataInfoToEntries, visitDataInfo } from '@milaboratories/pl-model-common';\nimport { TreeNodeAccessor } from '../accessor.js';\n\nconst PCD_PREFIX = \"PColumnData/\";\nconst RT_RESOURCE_MAP = PCD_PREFIX + \"ResourceMap\";\nconst RT_RESOURCE_MAP_PARTITIONED = PCD_PREFIX + \"Partitioned/ResourceMap\";\nconst RT_JSON_PARTITIONED = PCD_PREFIX + \"JsonPartitioned\";\nconst RT_BINARY_PARTITIONED = PCD_PREFIX + \"BinaryPartitioned\";\nconst RT_PARQUET_PARTITIONED = PCD_PREFIX + \"ParquetPartitioned\";\nconst PCD_SUP_PREFIX = PCD_PREFIX + \"Partitioned/\";\nconst RT_JSON_SUPER_PARTITIONED = PCD_SUP_PREFIX + \"JsonPartitioned\";\nconst RT_BINARY_SUPER_PARTITIONED = PCD_SUP_PREFIX + \"BinaryPartitioned\";\nconst RT_PARQUET_SUPER_PARTITIONED = PCD_SUP_PREFIX + \"ParquetPartitioned\";\nfunction populateResourceMapData(acc, resourceParser, data, keyPrefix = [], addEntriesWithNoData) {\n if (acc === undefined)\n return false;\n switch (acc.resourceType.name) {\n case RT_RESOURCE_MAP: {\n let isComplete = acc.getInputsLocked();\n for (const keyStr of acc.listInputFields()) {\n const value = acc.resolve({ field: keyStr, assertFieldType: \"Input\" });\n const key = [...keyPrefix, ...JSON.parse(keyStr)];\n const converted = value === undefined ? undefined : resourceParser(value);\n if (converted === undefined)\n isComplete = false;\n if (converted !== undefined || addEntriesWithNoData)\n data.push({ key, value: converted });\n }\n return isComplete;\n }\n case RT_RESOURCE_MAP_PARTITIONED: {\n let isComplete = acc.getInputsLocked();\n for (const keyStr of acc.listInputFields()) {\n const value = acc.resolve({ field: keyStr, assertFieldType: \"Input\" });\n if (value === undefined)\n isComplete = false;\n else {\n const key = [...keyPrefix, ...JSON.parse(keyStr)];\n const populateResult = populateResourceMapData(value, resourceParser, data, key, addEntriesWithNoData);\n isComplete = isComplete && populateResult;\n }\n }\n return isComplete;\n }\n default:\n throw new Error(`Unknown resource type: ${acc.resourceType.name}`);\n }\n}\nfunction parseResourceMap(acc, resourceParser, addEntriesWithNoData = false) {\n const data = [];\n const isComplete = populateResourceMapData(acc, resourceParser, data, [], addEntriesWithNoData);\n return { isComplete, data };\n}\nconst removeIndexSuffix = (keyStr) => {\n if (keyStr.endsWith(\".index\")) {\n return { baseKey: keyStr.substring(0, keyStr.length - 6), type: \"index\" };\n }\n else if (keyStr.endsWith(\".values\")) {\n return { baseKey: keyStr.substring(0, keyStr.length - 7), type: \"values\" };\n }\n else {\n throw new Error(`key must ends on .index/.values for binary p-column, got: ${keyStr}`);\n }\n};\n// @TODO define a class with various resource map operations\n/** Returns a list of all partition keys appeared in the p-column */\nfunction getPartitionKeysList(acc) {\n if (!acc)\n return undefined;\n const rt = acc.resourceType.name;\n const meta = acc.getDataAsJson();\n const data = [];\n let keyLength = 0;\n // @TODO validate meta shape\n switch (rt) {\n case RT_RESOURCE_MAP:\n keyLength = meta[\"keyLength\"];\n break;\n case RT_RESOURCE_MAP_PARTITIONED:\n keyLength = meta[\"partitionKeyLength\"] + meta[\"keyLength\"];\n break;\n case RT_JSON_PARTITIONED:\n case RT_BINARY_PARTITIONED:\n case RT_PARQUET_PARTITIONED:\n keyLength = meta[\"partitionKeyLength\"];\n break;\n case RT_BINARY_SUPER_PARTITIONED:\n case RT_JSON_SUPER_PARTITIONED:\n case RT_PARQUET_SUPER_PARTITIONED:\n keyLength = meta[\"superPartitionKeyLength\"] + meta[\"partitionKeyLength\"];\n break;\n }\n switch (rt) {\n case RT_RESOURCE_MAP:\n case RT_JSON_PARTITIONED:\n case RT_BINARY_PARTITIONED:\n case RT_PARQUET_PARTITIONED:\n for (let keyStr of acc.listInputFields()) {\n if (rt === RT_BINARY_PARTITIONED) {\n keyStr = removeIndexSuffix(keyStr).baseKey;\n }\n const key = [...JSON.parse(keyStr)];\n data.push(key);\n }\n break;\n case RT_RESOURCE_MAP_PARTITIONED:\n case RT_BINARY_SUPER_PARTITIONED:\n case RT_JSON_SUPER_PARTITIONED:\n case RT_PARQUET_SUPER_PARTITIONED:\n for (const supKeyStr of acc.listInputFields()) {\n const keyPrefix = [...JSON.parse(supKeyStr)];\n const value = acc.resolve({ field: supKeyStr, assertFieldType: \"Input\" });\n if (value !== undefined) {\n for (let keyStr of value.listInputFields()) {\n if (rt === RT_BINARY_SUPER_PARTITIONED) {\n keyStr = removeIndexSuffix(keyStr).baseKey;\n }\n const key = [...keyPrefix, ...JSON.parse(keyStr)];\n data.push(key);\n }\n }\n }\n break;\n }\n return { data, keyLength };\n}\nfunction getUniquePartitionKeysForDataEntries(list) {\n if (list.type !== \"JsonPartitioned\" &&\n list.type !== \"BinaryPartitioned\" &&\n list.type !== \"ParquetPartitioned\")\n throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${list.type}`);\n const { parts, partitionKeyLength } = list;\n const result = [];\n for (let i = 0; i < partitionKeyLength; ++i) {\n result.push(new Set());\n }\n for (const part of parts) {\n const key = part.key;\n if (key.length !== partitionKeyLength) {\n throw new Error(`Key length (${key.length}) does not match partition length (${partitionKeyLength}) for key: ${JSON.stringify(key)}`);\n }\n for (let i = 0; i < partitionKeyLength; ++i) {\n result[i].add(key[i]);\n }\n }\n return result.map((s) => Array.from(s.values()));\n}\nfunction getUniquePartitionKeys(acc) {\n if (acc === undefined)\n return undefined;\n if (isDataInfoEntries(acc))\n return getUniquePartitionKeysForDataEntries(acc);\n const list = getPartitionKeysList(acc);\n if (!list)\n return undefined;\n const { data, keyLength } = list;\n const result = [];\n for (let i = 0; i < keyLength; ++i) {\n result.push(new Set());\n }\n for (const l of data) {\n if (l.length !== keyLength) {\n throw new Error(\"key length does not match partition length\");\n }\n for (let i = 0; i < keyLength; ++i) {\n result[i].add(l[i]);\n }\n }\n return result.map((s) => Array.from(s.values()));\n}\n/**\n * Parses the PColumn data from a TreeNodeAccessor into a DataInfoEntries structure.\n * Returns undefined if any required data is missing.\n * Throws error on validation failures.\n *\n * @param acc - The TreeNodeAccessor containing PColumn data\n * @param keyPrefix - Optional key prefix for recursive calls\n * @returns DataInfoEntries representation of the PColumn data, or undefined if incomplete\n */\nfunction parsePColumnData(acc, keyPrefix = []) {\n if (acc === undefined)\n return undefined;\n if (!acc.getIsReadyOrError())\n return undefined;\n const resourceType = acc.resourceType.name;\n const meta = acc.getDataAsJson();\n // Prevent recursive super-partitioned resources\n if (keyPrefix.length > 0 &&\n (resourceType === RT_JSON_SUPER_PARTITIONED ||\n resourceType === RT_BINARY_SUPER_PARTITIONED ||\n resourceType === RT_PARQUET_SUPER_PARTITIONED)) {\n throw new Error(`Unexpected nested super-partitioned resource: ${resourceType}`);\n }\n switch (resourceType) {\n case RT_RESOURCE_MAP:\n case RT_RESOURCE_MAP_PARTITIONED:\n throw new Error(`Only data columns are supported, got: ${resourceType}`);\n case RT_JSON_PARTITIONED: {\n if (typeof meta?.partitionKeyLength !== \"number\") {\n throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);\n }\n const parts = [];\n for (const keyStr of acc.listInputFields()) {\n const value = acc.resolve({ field: keyStr, assertFieldType: \"Input\" });\n if (value === undefined)\n return undefined;\n const key = [...keyPrefix, ...JSON.parse(keyStr)];\n parts.push({ key, value });\n }\n return {\n type: \"JsonPartitioned\",\n partitionKeyLength: meta.partitionKeyLength,\n parts,\n };\n }\n case RT_BINARY_PARTITIONED: {\n if (typeof meta?.partitionKeyLength !== \"number\") {\n throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);\n }\n const parts = [];\n const baseKeys = new Map();\n // Group fields by base key (without .index/.values suffix)\n for (const keyStr of acc.listInputFields()) {\n const suffix = removeIndexSuffix(keyStr);\n const value = acc.resolve({ field: keyStr, assertFieldType: \"Input\" });\n if (value === undefined)\n return undefined;\n let entry = baseKeys.get(suffix.baseKey);\n if (!entry) {\n entry = {};\n baseKeys.set(suffix.baseKey, entry);\n }\n if (suffix.type === \"index\") {\n entry.index = value;\n }\n else {\n entry.values = value;\n }\n }\n // Process complete binary chunks only\n for (const [baseKeyStr, entry] of baseKeys.entries()) {\n if (!entry.index || !entry.values)\n return undefined;\n const key = [...keyPrefix, ...JSON.parse(baseKeyStr)];\n parts.push({\n key,\n value: {\n index: entry.index,\n values: entry.values,\n },\n });\n }\n return {\n type: \"BinaryPartitioned\",\n partitionKeyLength: meta.partitionKeyLength,\n parts,\n };\n }\n case RT_PARQUET_PARTITIONED: {\n if (typeof meta?.partitionKeyLength !== \"number\") {\n throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);\n }\n const parts = [];\n for (const keyStr of acc.listInputFields()) {\n const value = acc.resolve({ field: keyStr, assertFieldType: \"Input\" });\n if (value === undefined)\n return undefined;\n const key = [...keyPrefix, ...JSON.parse(keyStr)];\n parts.push({ key, value });\n }\n return {\n type: \"ParquetPartitioned\",\n partitionKeyLength: meta.partitionKeyLength,\n parts,\n };\n }\n case RT_JSON_SUPER_PARTITIONED: {\n if (typeof meta?.superPartitionKeyLength !== \"number\" ||\n typeof meta?.partitionKeyLength !== \"number\") {\n throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);\n }\n const totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;\n const parts = [];\n // Process all super partitions\n for (const supKeyStr of acc.listInputFields()) {\n const superPartition = acc.resolve({ field: supKeyStr, assertFieldType: \"Input\" });\n if (superPartition === undefined)\n return undefined;\n // Validate inner type\n if (superPartition.resourceType.name !== RT_JSON_PARTITIONED) {\n throw new Error(`Expected ${RT_JSON_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);\n }\n const innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));\n if (innerResult === undefined)\n return undefined;\n if (innerResult.type !== \"JsonPartitioned\")\n throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);\n parts.push(...innerResult.parts);\n }\n return {\n type: \"JsonPartitioned\",\n partitionKeyLength: totalKeyLength,\n parts,\n };\n }\n case RT_BINARY_SUPER_PARTITIONED: {\n if (typeof meta?.superPartitionKeyLength !== \"number\" ||\n typeof meta?.partitionKeyLength !== \"number\") {\n throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);\n }\n const totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;\n const parts = [];\n // Process all super partitions\n for (const supKeyStr of acc.listInputFields()) {\n const superPartition = acc.resolve({ field: supKeyStr, assertFieldType: \"Input\" });\n if (superPartition === undefined)\n return undefined;\n // Validate inner type\n if (superPartition.resourceType.name !== RT_BINARY_PARTITIONED) {\n throw new Error(`Expected ${RT_BINARY_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);\n }\n const innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));\n if (innerResult === undefined)\n return undefined;\n if (innerResult.type !== \"BinaryPartitioned\")\n throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);\n parts.push(...innerResult.parts);\n }\n return {\n type: \"BinaryPartitioned\",\n partitionKeyLength: totalKeyLength,\n parts,\n };\n }\n case RT_PARQUET_SUPER_PARTITIONED: {\n if (typeof meta?.superPartitionKeyLength !== \"number\" ||\n typeof meta?.partitionKeyLength !== \"number\") {\n throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);\n }\n const totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;\n const parts = [];\n // Process all super partitions\n for (const supKeyStr of acc.listInputFields()) {\n const superPartition = acc.resolve({ field: supKeyStr, assertFieldType: \"Input\" });\n if (superPartition === undefined)\n return undefined;\n // Validate inner type\n if (superPartition.resourceType.name !== RT_PARQUET_PARTITIONED) {\n throw new Error(`Expected ${RT_PARQUET_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);\n }\n const innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));\n if (innerResult === undefined)\n return undefined;\n if (innerResult.type !== \"ParquetPartitioned\")\n throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);\n parts.push(...innerResult.parts);\n }\n return {\n type: \"ParquetPartitioned\",\n partitionKeyLength: totalKeyLength,\n parts,\n };\n }\n default:\n throw new Error(`Unknown resource type: ${resourceType}`);\n }\n}\n/**\n * Converts or parses the input into DataInfoEntries format.\n\n * @param acc - The input data, which can be TreeNodeAccessor, DataInfoEntries, DataInfo, or undefined.\n * @returns The data in DataInfoEntries format, or undefined if the input was undefined or data is not ready.\n */\nfunction convertOrParsePColumnData(acc) {\n if (acc === undefined)\n return undefined;\n if (isDataInfoEntries(acc))\n return acc;\n if (isDataInfo(acc))\n return dataInfoToEntries(acc);\n if (acc instanceof TreeNodeAccessor)\n return parsePColumnData(acc);\n throw new Error(`Unexpected input type: ${typeof acc}`);\n}\nfunction isPColumnReady(c) {\n const isValues = (d) => Array.isArray(d);\n const isAccessor = (d) => d instanceof TreeNodeAccessor;\n let ready = true;\n const data = typeof c.data === \"function\" ? c.data() : c.data;\n if (data == null) {\n return false;\n }\n else if (isAccessor(data)) {\n ready &&= data.getIsReadyOrError();\n }\n else if (isDataInfo(data)) {\n visitDataInfo(data, (v) => (ready &&= v.getIsReadyOrError()));\n }\n else if (!isValues(data)) {\n // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n throw Error(`unsupported column data type: ${data}`);\n }\n return ready;\n}\nfunction allPColumnsReady(columns) {\n return columns.every(isPColumnReady);\n}\n\nexport { RT_BINARY_PARTITIONED, RT_BINARY_SUPER_PARTITIONED, RT_JSON_PARTITIONED, RT_JSON_SUPER_PARTITIONED, RT_PARQUET_PARTITIONED, RT_PARQUET_SUPER_PARTITIONED, RT_RESOURCE_MAP, RT_RESOURCE_MAP_PARTITIONED, allPColumnsReady, convertOrParsePColumnData, getPartitionKeysList, getUniquePartitionKeys, isPColumnReady, parsePColumnData, parseResourceMap };\n//# sourceMappingURL=pcolumn_data.js.map\n","import { selectorsToPredicate, resolveAnchors, deriveNativeId, isPColumnSpec, isPartitionedDataInfoEntries, getAxisId, Annotation, entriesToDataInfo, isLinkerColumn, LinkerMap, getColumnIdAndSpec, matchAxisId, canonicalizeAxisId } from '@milaboratories/pl-model-common';\nimport canonicalize from 'canonicalize';\nimport { filterDataInfoEntries } from './axis_filtering.js';\nimport { deriveLabels } from './label.js';\nimport { convertOrParsePColumnData, getUniquePartitionKeys } from './pcolumn_data.js';\n\nfunction isPColumnValues(value) {\n if (!Array.isArray(value))\n return false;\n if (value.length === 0)\n return true;\n const first = value[0];\n return typeof first === \"object\" && first !== null && \"key\" in first && \"val\" in first;\n}\n/**\n * A simple implementation of {@link ColumnProvider} backed by a pre-defined array of columns.\n */\nclass ArrayColumnProvider {\n columns;\n constructor(columns) {\n this.columns = columns;\n }\n selectColumns(selectors) {\n const predicate = typeof selectors === \"function\" ? selectors : selectorsToPredicate(selectors);\n // Filter based on spec, ignoring data type for now\n return this.columns.filter((column) => predicate(column.spec));\n }\n}\nfunction splitFiltersToTrace(splitFilters) {\n if (!splitFilters)\n return undefined;\n return splitFilters.map((filter) => ({\n type: `split:${canonicalizeAxisId(filter.axisId)}`,\n label: filter.label,\n importance: 1_000_000, // High importance for split filters in labels\n }));\n}\nfunction splitFiltersToAxisFilter(splitFilters) {\n if (!splitFilters)\n return undefined;\n return splitFilters.map((filter) => [filter.axisIdx, filter.value]);\n}\nfunction fallbackIdDeriver(originalId, axisFilters) {\n if (!axisFilters || axisFilters.length === 0)\n return originalId;\n const filtersToCanonicalize = [...axisFilters].sort((a, b) => a[0] - b[0]);\n return canonicalize({ id: originalId, axisFilters: filtersToCanonicalize });\n}\n/** Checks if a selector object uses any anchor properties */\nfunction hasAnchors(selector) {\n if (!selector || typeof selector !== \"object\")\n return false;\n const potentialAnchored = selector;\n const domainHasAnchors = potentialAnchored[\"domain\"] &&\n typeof potentialAnchored[\"domain\"] === \"object\" &&\n Object.values(potentialAnchored[\"domain\"]).some((v) => typeof v === \"object\" && v !== null && \"anchor\" in v);\n const axesHaveAnchors = potentialAnchored[\"axes\"] &&\n Array.isArray(potentialAnchored[\"axes\"]) &&\n potentialAnchored[\"axes\"].some((a) => typeof a === \"object\" && a !== null && \"anchor\" in a);\n return !!potentialAnchored[\"domainAnchor\"] || domainHasAnchors || axesHaveAnchors;\n}\n/**\n * Derives the indices of axes marked for splitting based on the selector.\n * Throws an error if splitting is requested alongside `partialAxesMatch`.\n */\nfunction getSplitAxisIndices(selector) {\n if (typeof selector !== \"object\" || !(\"axes\" in selector) || selector.axes === undefined) {\n return []; // No axes specified or not an object selector, no splitting\n }\n const splitIndices = selector.axes\n .map((axis, index) => typeof axis === \"object\" && \"split\" in axis && axis.split === true ? index : -1)\n .filter((index) => index !== -1);\n if (splitIndices.length > 0 && selector.partialAxesMatch !== undefined) {\n throw new Error(\"Axis splitting is not supported when `partialAxesMatch` is defined.\");\n }\n splitIndices.sort((a, b) => a - b);\n return splitIndices;\n}\nclass PColumnCollection {\n defaultProviderStore = [];\n providers = [\n new ArrayColumnProvider(this.defaultProviderStore),\n ];\n axisLabelProviders = [];\n constructor() { }\n addColumnProvider(provider) {\n this.providers.push(provider);\n return this;\n }\n addAxisLabelProvider(provider) {\n this.axisLabelProviders.push(provider);\n return this;\n }\n addColumns(columns) {\n this.defaultProviderStore.push(...columns);\n return this;\n }\n addColumn(column) {\n this.defaultProviderStore.push(column);\n return this;\n }\n /** Fetches labels for a given axis from the registered providers */\n findLabels(axis) {\n for (const provider of this.axisLabelProviders) {\n const labels = provider.findLabels(axis);\n if (labels)\n return labels; // First provider wins\n }\n return undefined;\n }\n getUniversalEntries(predicateOrSelectors, opts) {\n const { anchorCtx, labelOps: rawLabelOps, dontWaitAllData = false, overrideLabelAnnotation = false, exclude, enrichByLinkers = false, } = opts ?? {};\n const labelOps = {\n ...(overrideLabelAnnotation && rawLabelOps?.includeNativeLabel !== false\n ? { includeNativeLabel: true }\n : {}),\n ...rawLabelOps,\n };\n let excludePredicate = () => false;\n if (exclude) {\n const excludePredicartes = (Array.isArray(exclude) ? exclude : [exclude]).map((selector) => {\n if (hasAnchors(selector)) {\n if (!anchorCtx)\n throw new Error(\"Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.\");\n return selectorsToPredicate(resolveAnchors(anchorCtx.anchors, selector, opts));\n }\n else\n return selectorsToPredicate(selector);\n });\n excludePredicate = (spec) => excludePredicartes.some((predicate) => predicate(spec));\n }\n const selectorsArray = typeof predicateOrSelectors === \"function\"\n ? [predicateOrSelectors]\n : Array.isArray(predicateOrSelectors)\n ? predicateOrSelectors\n : [predicateOrSelectors];\n const intermediateResults = [];\n const selectedNativeIds = new Set();\n for (const rawSelector of selectorsArray) {\n const usesAnchors = hasAnchors(rawSelector);\n let currentSelector;\n if (usesAnchors) {\n if (!anchorCtx)\n throw new Error(\"Anchored selectors require an AnchoredIdDeriver to be provided in options.\");\n currentSelector = resolveAnchors(anchorCtx.anchors, rawSelector, opts);\n }\n else\n currentSelector = rawSelector;\n const selectedIds = new Set();\n const selectedColumns = [];\n for (const provider of this.providers) {\n const providerColumns = provider.selectColumns(currentSelector);\n for (const col of providerColumns) {\n if (excludePredicate(col.spec))\n continue;\n if (selectedIds.has(col.id))\n throw new Error(`Duplicate column id ${col.id} in provider ${provider.constructor.name}`);\n const nativeId = deriveNativeId(col.spec);\n if (selectedNativeIds.has(nativeId))\n continue;\n selectedIds.add(col.id);\n selectedNativeIds.add(nativeId);\n selectedColumns.push(col);\n }\n }\n if (selectedColumns.length === 0)\n continue;\n const splitAxisIdxs = getSplitAxisIndices(rawSelector);\n const needsSplitting = splitAxisIdxs.length > 0;\n for (const column of selectedColumns) {\n if (!isPColumnSpec(column.spec))\n continue;\n const originalSpec = column.spec;\n if (needsSplitting) {\n if (isPColumnValues(column.data))\n throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${column.id}`);\n const dataEntries = convertOrParsePColumnData(column.data);\n if (!dataEntries) {\n if (dontWaitAllData)\n continue;\n return undefined;\n }\n if (!isPartitionedDataInfoEntries(dataEntries))\n throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${dataEntries.type} for column ${column.id}`);\n const uniqueKeys = getUniquePartitionKeys(dataEntries);\n const maxSplitIdx = splitAxisIdxs[splitAxisIdxs.length - 1];\n if (maxSplitIdx >= dataEntries.partitionKeyLength)\n throw new Error(`Not enough partition keys (${dataEntries.partitionKeyLength}) for requested split axes (max index ${maxSplitIdx}) in column ${originalSpec.name}`);\n const axesLabels = splitAxisIdxs.map((idx) => this.findLabels(getAxisId(originalSpec.axesSpec[idx])));\n const keyCombinations = [];\n const generateCombinations = (currentCombo, sAxisIdx) => {\n if (sAxisIdx >= splitAxisIdxs.length) {\n keyCombinations.push([...currentCombo]);\n if (keyCombinations.length > 10000)\n throw new Error(\"Too many key combinations, aborting.\");\n return;\n }\n const axisIdx = splitAxisIdxs[sAxisIdx];\n if (axisIdx >= uniqueKeys.length)\n throw new Error(`Axis index ${axisIdx} out of bounds for unique keys array (length ${uniqueKeys.length}) during split key generation for column ${column.id}`);\n const axisValues = uniqueKeys[axisIdx];\n if (!axisValues || axisValues.length === 0) {\n keyCombinations.length = 0; // No combinations possible if one axis has no keys\n return;\n }\n for (const val of axisValues) {\n currentCombo.push(val);\n generateCombinations(currentCombo, sAxisIdx + 1);\n currentCombo.pop();\n }\n };\n generateCombinations([], 0);\n if (keyCombinations.length === 0)\n continue;\n const newAxesSpec = [...originalSpec.axesSpec];\n const splitAxisOriginalIdxs = splitAxisIdxs.map((idx) => idx); // Keep original indices for axisId lookup\n // Remove axes in reverse order to maintain correct indices during removal\n for (let i = splitAxisIdxs.length - 1; i >= 0; i--) {\n newAxesSpec.splice(splitAxisIdxs[i], 1);\n }\n const adjustedSpec = { ...originalSpec, axesSpec: newAxesSpec };\n for (const keyCombo of keyCombinations) {\n const splitFilters = keyCombo.map((value, sAxisIdx) => {\n const axisIdx = splitAxisOriginalIdxs[sAxisIdx]; // Use original index for lookup\n const axisId = getAxisId(originalSpec.axesSpec[axisIdx]);\n const axisLabelMap = axesLabels[sAxisIdx];\n const label = axisLabelMap?.[value] ?? String(value);\n return { axisIdx, axisId, value: value, label };\n });\n intermediateResults.push({\n type: \"split\",\n originalColumn: column,\n spec: originalSpec,\n adjustedSpec,\n dataEntries,\n axisFilters: splitFilters,\n });\n }\n }\n else {\n intermediateResults.push({\n type: \"direct\",\n originalColumn: column,\n spec: originalSpec,\n adjustedSpec: originalSpec,\n });\n }\n }\n }\n if (intermediateResults.length === 0)\n return [];\n const labeledResults = deriveLabels(intermediateResults, (entry) => ({\n spec: entry.spec,\n suffixTrace: entry.type === \"split\" ? splitFiltersToTrace(entry.axisFilters) : undefined,\n }), labelOps);\n const result = [];\n for (const { value: entry, label } of labeledResults) {\n const { originalColumn, spec: originalSpec } = entry;\n const axisFilters = entry.type === \"split\" ? entry.axisFilters : undefined;\n const axisFiltersTuple = splitFiltersToAxisFilter(axisFilters);\n let finalId;\n if (anchorCtx)\n finalId = anchorCtx.deriveS(originalSpec, axisFiltersTuple);\n else\n finalId = fallbackIdDeriver(originalColumn.id, axisFiltersTuple);\n let finalSpec = { ...entry.adjustedSpec };\n if (overrideLabelAnnotation) {\n finalSpec = {\n ...finalSpec,\n annotations: {\n ...finalSpec.annotations,\n [Annotation.Label]: label,\n },\n };\n }\n result.push({\n id: finalId,\n spec: finalSpec,\n data: () => entry.type === \"split\"\n ? entriesToDataInfo(filterDataInfoEntries(entry.dataEntries, axisFiltersTuple))\n : entry.originalColumn.data,\n label: label,\n });\n }\n const ids = new Set(result.map((entry) => entry.id));\n if (enrichByLinkers && anchorCtx) {\n const linkers = result.filter((entry) => isLinkerColumn(entry.spec));\n if (linkers.length === 0) {\n return result;\n }\n const anchorAxes = Object.values(anchorCtx.anchors).flatMap((anchor) => anchor.axesSpec);\n const linkerMap = LinkerMap.fromColumns(linkers.map(getColumnIdAndSpec));\n // loose way of matching\n function matchAxisIdFn(linkerKeyId, sourceAxisId) {\n return matchAxisId(linkerKeyId, sourceAxisId) || matchAxisId(sourceAxisId, linkerKeyId);\n }\n // search all axes that can be reached by linkers from anchor axes; anchor axes are not in this list;\n const availableByLinkersAxes = linkerMap.getReachableByLinkersAxesFromAxes(anchorAxes, matchAxisIdFn);\n // search all columns that includes at least one of additional axes;\n const availableByLinkersColumns = this.getUniversalEntries((spec) => !isLinkerColumn(spec) &&\n spec.axesSpec.some((columnAxisSpec) => {\n const columnAxisId = getAxisId(columnAxisSpec);\n return availableByLinkersAxes.some((axis) => matchAxisIdFn(getAxisId(axis), columnAxisId));\n }), { anchorCtx, labelOps, dontWaitAllData, overrideLabelAnnotation, exclude });\n if (availableByLinkersColumns) {\n result.push(...availableByLinkersColumns.filter((entry) => !ids.has(entry.id)));\n }\n }\n return result;\n }\n getColumns(predicateOrSelectors, opts) {\n const entries = this.getUniversalEntries(predicateOrSelectors, {\n overrideLabelAnnotation: true, // default for getColumns\n ...opts,\n });\n if (!entries)\n return undefined;\n const columns = [];\n for (const entry of entries) {\n const data = entry.data();\n if (!data) {\n if (opts?.dontWaitAllData)\n continue;\n return undefined;\n }\n columns.push({\n id: entry.id,\n spec: entry.spec,\n data,\n });\n }\n return columns;\n }\n}\n\nexport { PColumnCollection };\n//# sourceMappingURL=column_collection.js.map\n","function patchInSetFilters(filters) {\n const inSetToOrEqual = (predicate) => {\n if (predicate.operator !== \"InSet\")\n return predicate;\n return {\n operator: \"Or\",\n operands: predicate.references.map((reference) => ({\n operator: \"Equal\",\n reference,\n })),\n };\n };\n const mapSingleValuePredicate = (filter, cb) => {\n const operator = filter.operator;\n switch (operator) {\n case \"And\":\n return {\n ...filter,\n operands: filter.operands.map((operand) => mapSingleValuePredicate(operand, cb)),\n };\n case \"Or\":\n return {\n ...filter,\n operands: filter.operands.map((operand) => mapSingleValuePredicate(operand, cb)),\n };\n case \"Not\":\n return {\n ...filter,\n operand: mapSingleValuePredicate(filter.operand, cb),\n };\n default:\n return cb(filter);\n }\n };\n const mapFilter = (filter, cb) => {\n return {\n ...filter,\n predicate: mapSingleValuePredicate(filter.predicate, cb),\n };\n };\n return filters.map((filter) => mapFilter(filter, inSetToOrEqual));\n}\n\nexport { patchInSetFilters };\n//# sourceMappingURL=pframe_upgraders.js.map\n","import { selectorsToPredicate, withEnrichments, AnchoredIdDeriver, isPlRef, mapValueInVOE, mapPObjectData, ensurePColumn, isPColumnSpec, isPColumn, PColumnName, readAnnotation, isDataInfo, extractAllColumns, mapPTableDef, collectSpecQueryColumns, mapPTableDefV2, parseJson, mapDataInfo } from '@milaboratories/pl-model-common';\nimport canonicalize from 'canonicalize';\nimport { getCfgRenderCtx } from '../internal.js';\nimport { getPluginData } from '../block_storage.js';\nimport { TreeNodeAccessor, ifDef } from './accessor.js';\nimport { StagingAccessorName, MainAccessorName } from './internal.js';\nimport { PColumnCollection } from './util/column_collection.js';\nimport { deriveLabels } from './util/label.js';\nimport { patchInSetFilters } from './util/pframe_upgraders.js';\nimport { allPColumnsReady } from './util/pcolumn_data.js';\n\n/**\n * Helper function to match domain objects\n * @param query Optional domain to match against\n * @param target Optional domain to match\n * @returns true if domains match, false otherwise\n */\nfunction matchDomain(query, target) {\n if (query === undefined)\n return target === undefined;\n if (target === undefined)\n return true;\n for (const k in target) {\n if (query[k] !== target[k])\n return false;\n }\n return true;\n}\n/**\n * Transforms PColumn data into the internal representation expected by the platform\n * @param data Data from a PColumn to transform\n * @returns Transformed data compatible with platform API\n */\nfunction transformPColumnData(data) {\n return mapPObjectData(data, (d) => {\n if (d instanceof TreeNodeAccessor) {\n return d.handle;\n }\n else if (isDataInfo(d)) {\n return mapDataInfo(d, (accessor) => accessor.handle);\n }\n else {\n return d;\n }\n });\n}\nclass ResultPool {\n ctx = getCfgRenderCtx();\n /**\n * @deprecated use getOptions()\n */\n calculateOptions(predicate) {\n return this.ctx.calculateOptions(predicate);\n }\n getOptions(predicateOrSelector, opts) {\n const predicate = typeof predicateOrSelector === \"function\"\n ? predicateOrSelector\n : selectorsToPredicate(predicateOrSelector);\n const filtered = this.getSpecs().entries.filter((s) => predicate(s.obj));\n let labelOps = {};\n let refsWithEnrichments = false;\n if (typeof opts !== \"undefined\") {\n if (typeof opts === \"function\") {\n labelOps = opts;\n }\n else if (typeof opts === \"object\") {\n if (\"includeNativeLabel\" in opts || \"separator\" in opts || \"addLabelAsSuffix\" in opts) {\n labelOps = opts;\n }\n else {\n opts = opts;\n labelOps = opts.label ?? {};\n refsWithEnrichments = opts.refsWithEnrichments ?? false;\n }\n }\n }\n if (typeof labelOps === \"object\")\n return deriveLabels(filtered, (o) => o.obj, labelOps ?? {}).map(({ value: { ref }, label }) => ({\n ref: withEnrichments(ref, refsWithEnrichments),\n label,\n }));\n else\n return filtered.map(({ ref, obj }) => ({\n ref: withEnrichments(ref, refsWithEnrichments),\n label: labelOps(obj, ref),\n }));\n }\n resolveAnchorCtx(anchorsOrCtx) {\n if (anchorsOrCtx instanceof AnchoredIdDeriver)\n return anchorsOrCtx;\n const resolvedAnchors = {};\n for (const [key, value] of Object.entries(anchorsOrCtx)) {\n if (isPlRef(value)) {\n const resolvedSpec = this.getPColumnSpecByRef(value);\n if (!resolvedSpec)\n return undefined;\n resolvedAnchors[key] = resolvedSpec;\n }\n else {\n resolvedAnchors[key] = value;\n }\n }\n return new AnchoredIdDeriver(resolvedAnchors);\n }\n /**\n * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.\n *\n * @param anchorsOrCtx - Anchor context for column selection (same as in getCanonicalOptions)\n * @param predicateOrSelectors - Predicate or selectors for filtering columns (same as in getCanonicalOptions)\n * @param opts - Optional configuration for label generation and data waiting\n * @returns A PFrameHandle for the created PFrame, or undefined if any required data is missing\n */\n getAnchoredPColumns(anchorsOrCtx, predicateOrSelectors, opts) {\n const anchorCtx = this.resolveAnchorCtx(anchorsOrCtx);\n if (!anchorCtx)\n return undefined;\n return new PColumnCollection()\n .addColumnProvider(this)\n .addAxisLabelProvider(this)\n .getColumns(predicateOrSelectors, {\n ...opts,\n anchorCtx,\n });\n }\n /**\n * Calculates anchored identifier options for columns matching a given predicate and returns their\n * canonicalized representations.\n *\n * This function filters column specifications from the result pool that match the provided predicate,\n * creates a standardized AnchorCtx from the provided anchors, and generates a list of label-value\n * pairs for UI components (like dropdowns).\n *\n * @param anchorsOrCtx - Either:\n * - An existing AnchorCtx instance\n * - A record mapping anchor IDs to PColumnSpec objects\n * - A record mapping anchor IDs to PlRef objects (which will be resolved to PColumnSpec)\n * @param predicateOrSelectors - Either:\n * - A predicate function that takes a PColumnSpec and returns a boolean.\n * Only specs that return true will be included.\n * - An APColumnSelector object for declarative filtering, which will be\n * resolved against the provided anchors and matched using matchPColumn.\n * - An array of APColumnSelector objects - columns matching ANY selector\n * in the array will be included (OR operation).\n * @param opts - Optional configuration for label generation:\n * - labelOps: Optional configuration for label generation:\n * - includeNativeLabel: Whether to include native column labels\n * - separator: String to use between label parts (defaults to \" / \")\n * - addLabelAsSuffix: Whether to add labels as suffix instead of prefix\n * - dontWaitAllData: Whether to skip columns that don't have all data (if not set, will return undefined,\n * if at least one column that requires splitting is missing data)\n * @returns An array of objects with `label` (display text) and `value` (anchored ID string) properties,\n * or undefined if any PlRef resolution fails.\n */\n getCanonicalOptions(anchorsOrCtx, predicateOrSelectors, opts) {\n const anchorCtx = this.resolveAnchorCtx(anchorsOrCtx);\n if (!anchorCtx)\n return undefined;\n const entries = new PColumnCollection()\n .addColumnProvider(this)\n .addAxisLabelProvider(this)\n .getUniversalEntries(predicateOrSelectors, {\n ...opts,\n anchorCtx,\n });\n if (!entries)\n return undefined;\n return entries.map((item) => ({\n value: item.id,\n label: item.label,\n }));\n }\n /**\n * @deprecated use getData()\n */\n getDataFromResultPool() {\n return this.getData();\n }\n getData() {\n const result = this.ctx.getDataFromResultPool();\n return {\n isComplete: result.isComplete,\n entries: result.entries.map((e) => ({\n ref: e.ref,\n obj: {\n ...e.obj,\n data: new TreeNodeAccessor(e.obj.data, [e.ref.blockId, e.ref.name]),\n },\n })),\n };\n }\n /**\n * @deprecated use getDataWithErrors()\n */\n getDataWithErrorsFromResultPool() {\n return this.getDataWithErrors();\n }\n getDataWithErrors() {\n const result = this.ctx.getDataWithErrorsFromResultPool();\n return {\n isComplete: result.isComplete,\n entries: result.entries.map((e) => ({\n ref: e.ref,\n obj: {\n ...e.obj,\n data: mapValueInVOE(e.obj.data, (handle) => new TreeNodeAccessor(handle, [e.ref.blockId, e.ref.name])),\n },\n })),\n };\n }\n /**\n * @deprecated use getSpecs()\n */\n getSpecsFromResultPool() {\n return this.getSpecs();\n }\n getSpecs() {\n return this.ctx.getSpecsFromResultPool();\n }\n /**\n * @param ref a Ref\n * @returns data associated with the ref\n */\n getDataByRef(ref) {\n // @TODO remove after 1 Jan 2025; forward compatibility\n if (typeof this.ctx.getDataFromResultPoolByRef === \"undefined\")\n return this.getData().entries.find((f) => f.ref.blockId === ref.blockId && f.ref.name === ref.name)?.obj;\n const data = this.ctx.getDataFromResultPoolByRef(ref.blockId, ref.name); // Keep original call\n // Need to handle undefined case before mapping\n if (!data)\n return undefined;\n return mapPObjectData(data, (handle) => new TreeNodeAccessor(handle, [ref.blockId, ref.name]));\n }\n /**\n * Returns data associated with the ref ensuring that it is a p-column.\n * @param ref a Ref\n * @returns p-column associated with the ref\n */\n getPColumnByRef(ref) {\n const data = this.getDataByRef(ref);\n if (!data)\n return undefined;\n return ensurePColumn(data);\n }\n /**\n * Returns spec associated with the ref ensuring that it is a p-column spec.\n * @param ref a Ref\n * @returns p-column spec associated with the ref\n */\n getPColumnSpecByRef(ref) {\n const spec = this.getSpecByRef(ref);\n if (!spec)\n return undefined;\n if (!isPColumnSpec(spec))\n throw new Error(`not a PColumn spec (kind = ${spec.kind})`);\n return spec;\n }\n /**\n * @param ref a Ref\n * @returns object spec associated with the ref\n */\n getSpecByRef(ref) {\n return this.ctx.getSpecFromResultPoolByRef(ref.blockId, ref.name);\n }\n /**\n * @param spec object specification\n * @returns array of data objects with compatible specs\n * @deprecated delete this method after Jan 1, 2025\n */\n findDataWithCompatibleSpec(spec) {\n const result = [];\n out: for (const data of this.getData().entries) {\n if (!isPColumnSpec(data.obj.spec)) {\n continue;\n }\n const oth = data.obj.spec;\n if (spec.name !== oth.name) {\n continue;\n }\n if (spec.valueType !== oth.valueType) {\n continue;\n }\n if (spec.axesSpec.length !== oth.axesSpec.length) {\n continue;\n }\n if (!matchDomain(spec.domain, oth.domain)) {\n continue;\n }\n for (let i = 0; i < spec.axesSpec.length; ++i) {\n const qAx = spec.axesSpec[i];\n const tAx = oth.axesSpec[i];\n if (qAx.name !== tAx.name) {\n continue out;\n }\n if (qAx.type !== tAx.type) {\n continue out;\n }\n if (!matchDomain(qAx.domain, tAx.domain)) {\n continue out;\n }\n }\n result.push(data.obj);\n }\n return result;\n }\n /**\n * Find labels data for a given axis id. It will search for a label column and return its data as a map.\n * @returns a map of axis value => label\n */\n findLabels(axis) {\n const dataPool = this.getData();\n for (const column of dataPool.entries) {\n if (!isPColumn(column.obj))\n continue;\n const spec = column.obj.spec;\n if (spec.name === PColumnName.Label &&\n spec.axesSpec.length === 1 &&\n spec.axesSpec[0].name === axis.name &&\n spec.axesSpec[0].type === axis.type &&\n matchDomain(axis.domain, spec.axesSpec[0].domain)) {\n if (column.obj.data.resourceType.name !== \"PColumnData/Json\") {\n throw Error(`Expected JSON column for labels, got: ${column.obj.data.resourceType.name}`);\n }\n const labels = Object.fromEntries(Object.entries(column.obj.data.getDataAsJson().data).map((e) => [JSON.parse(e[0])[0], e[1]]));\n return labels;\n }\n }\n return undefined;\n }\n /**\n * Selects columns based on the provided selectors, returning PColumn objects\n * with lazily loaded data.\n *\n * @param selectors - A predicate function, a single selector, or an array of selectors.\n * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.\n */\n selectColumns(selectors) {\n const predicate = typeof selectors === \"function\" ? selectors : selectorsToPredicate(selectors);\n const matchedSpecs = this.getSpecs().entries.filter(({ obj: spec }) => {\n if (!isPColumnSpec(spec))\n return false;\n return predicate(spec);\n });\n // Map specs to PColumn objects with lazy data loading\n return matchedSpecs.map(({ ref, obj: spec }) => {\n // Type assertion needed because filter ensures it's PColumnSpec\n const pcolumnSpec = spec;\n let _cachedData = null; // Use null to distinguish initial state from undefined result\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const self = this; // Capture 'this' for use inside the getter\n return {\n id: canonicalize(ref),\n spec: pcolumnSpec,\n get data() {\n if (_cachedData !== null) {\n return _cachedData; // Return cached data (could be undefined if fetch failed)\n }\n _cachedData = self.getPColumnByRef(ref)?.data;\n return _cachedData;\n },\n }; // Cast needed because 'data' is a getter\n });\n }\n /**\n * Find labels data for a given axis id of a p-column.\n * @returns a map of axis value => label\n */\n findLabelsForColumnAxis(column, axisIdx) {\n const labels = this.findLabels(column.axesSpec[axisIdx]);\n if (!labels)\n return undefined;\n const axisKeys = readAnnotation(column, `pl7.app/axisKeys/${axisIdx}`);\n if (axisKeys !== undefined) {\n const keys = JSON.parse(axisKeys);\n return Object.fromEntries(keys.map((key) => {\n return [key, labels[key] ?? \"Unlabelled\"];\n }));\n }\n else {\n return labels;\n }\n }\n}\n/** Main entry point to the API available within model lambdas (like outputs, sections, etc..) */\nclass RenderCtxBase {\n ctx;\n constructor() {\n this.ctx = getCfgRenderCtx();\n }\n dataCache;\n get data() {\n if (this.dataCache === undefined) {\n const raw = this.ctx.data;\n const value = typeof raw === \"function\" ? raw() : raw;\n this.dataCache = { v: value ? JSON.parse(value) : {} };\n }\n return this.dataCache.v;\n }\n // lazy rendering because this feature is rarely used\n activeArgsCache;\n /**\n * Returns args snapshot the block was executed for (i.e. when \"Run\" button was pressed).\n * Returns undefined, if block was never executed or stopped mid-way execution, so that the result was cleared.\n * */\n get activeArgs() {\n if (this.activeArgsCache === undefined) {\n const raw = this.ctx.activeArgs;\n const value = typeof raw === \"function\" ? raw() : raw;\n this.activeArgsCache = {\n v: value ? JSON.parse(value) : undefined,\n };\n }\n return this.activeArgsCache.v;\n }\n // /** Can be used to determine features provided by the desktop instance. */\n // public get featureFlags() {\n // return this.ctx.featureFlags;\n // }\n getNamedAccessor(name) {\n return ifDef(this.ctx.getAccessorHandleByName(name), (accessor) => new TreeNodeAccessor(accessor, [name]));\n }\n get prerun() {\n return this.getNamedAccessor(StagingAccessorName);\n }\n get outputs() {\n return this.getNamedAccessor(MainAccessorName);\n }\n resultPool = new ResultPool();\n /**\n * Find labels data for a given axis id. It will search for a label column and return its data as a map.\n * @returns a map of axis value => label\n * @deprecated Use resultPool.findLabels instead\n */\n findLabels(axis) {\n return this.resultPool.findLabels(axis);\n }\n verifyInlineAndExplicitColumnsSupport(columns) {\n const hasInlineColumns = columns.some((c) => !(c.data instanceof TreeNodeAccessor) || isDataInfo(c.data)); // Updated check for DataInfo\n const inlineColumnsSupport = this.ctx.featureFlags?.inlineColumnsSupport === true;\n if (hasInlineColumns && !inlineColumnsSupport)\n throw Error(`Inline or explicit columns not supported`); // Combined check\n // Removed redundant explicitColumns check\n }\n patchPTableDef(def) {\n if (!this.ctx.featureFlags?.pTablePartitionFiltersSupport) {\n // For old desktop move all partition filters to filters field as it doesn't read partitionFilters field\n def = {\n ...def,\n partitionFilters: [],\n filters: [...def.partitionFilters, ...def.filters],\n };\n }\n if (!this.ctx.featureFlags?.pFrameInSetFilterSupport) {\n def = {\n ...def,\n partitionFilters: patchInSetFilters(def.partitionFilters),\n filters: patchInSetFilters(def.filters),\n };\n }\n return def;\n }\n // TODO remove all non-PColumn fields\n createPFrame(def) {\n this.verifyInlineAndExplicitColumnsSupport(def);\n if (!allPColumnsReady(def))\n return undefined;\n return this.ctx.createPFrame(def.map((c) => transformPColumnData(c)));\n }\n createPTable(def) {\n let rawDef;\n if (\"columns\" in def) {\n rawDef = this.patchPTableDef({\n src: {\n type: \"full\",\n entries: def.columns.map((c) => ({ type: \"column\", column: c })),\n },\n partitionFilters: def.filters ?? [],\n filters: [],\n sorting: def.sorting ?? [],\n });\n }\n else {\n rawDef = this.patchPTableDef(def);\n }\n const columns = extractAllColumns(rawDef.src);\n this.verifyInlineAndExplicitColumnsSupport(columns);\n if (!allPColumnsReady(columns))\n return undefined;\n return this.ctx.createPTable(mapPTableDef(rawDef, (po) => transformPColumnData(po)));\n }\n createPTableV2(def) {\n const columns = collectSpecQueryColumns(def.query);\n this.verifyInlineAndExplicitColumnsSupport(columns);\n if (!allPColumnsReady(columns))\n return undefined;\n return this.ctx.createPTableV2(mapPTableDefV2(def, (po) => transformPColumnData(po)));\n }\n /** @deprecated scheduled for removal from SDK */\n getBlockLabel(blockId) {\n return this.ctx.getBlockLabel(blockId);\n }\n getCurrentUnstableMarker() {\n return this.ctx.getCurrentUnstableMarker();\n }\n logInfo(msg) {\n this.ctx.logInfo(msg);\n }\n logWarn(msg) {\n this.ctx.logWarn(msg);\n }\n logError(msg) {\n this.ctx.logError(msg);\n }\n}\n/** Main entry point to the API available within model lambdas (like outputs, sections, etc..) for v3+ blocks */\nclass BlockRenderCtx extends RenderCtxBase {\n argsCache;\n get args() {\n if (this.argsCache === undefined) {\n const raw = this.ctx.args;\n const value = typeof raw === \"function\" ? raw() : raw;\n this.argsCache = { v: value === undefined ? undefined : JSON.parse(value) };\n }\n return this.argsCache.v;\n }\n}\n/** Render context for legacy v1/v2 blocks - provides backward compatibility */\nclass RenderCtxLegacy extends RenderCtxBase {\n argsCache;\n get args() {\n if (this.argsCache === undefined) {\n const raw = this.ctx.args;\n const value = typeof raw === \"function\" ? raw() : raw;\n this.argsCache = { v: JSON.parse(value) };\n }\n return this.argsCache.v;\n }\n uiStateCache;\n get uiState() {\n if (this.uiStateCache === undefined) {\n const raw = this.ctx.uiState;\n const value = typeof raw === \"function\" ? raw() : raw;\n this.uiStateCache = { v: value ? JSON.parse(value) : {} };\n }\n return this.uiStateCache.v;\n }\n}\n/**\n * Render context for plugin output functions.\n * Reads plugin data from blockStorage and derives params from pre-wrapped input callbacks.\n *\n * Parameterized on the factory-like phantom F so that getPluginData returns\n * InferFactoryData<F> directly — no casts needed for the data getter.\n *\n * @typeParam F - PluginFactoryLike phantom carrying data/params/outputs types\n */\nclass PluginRenderCtx {\n ctx;\n handle;\n wrappedInputs;\n constructor(handle, wrappedInputs) {\n this.ctx = getCfgRenderCtx();\n this.handle = handle;\n this.wrappedInputs = wrappedInputs;\n }\n dataCache;\n /** Plugin's persistent data from blockStorage.__plugins.{pluginId}.__data */\n get data() {\n if (this.dataCache === undefined) {\n const raw = this.ctx.blockStorage();\n this.dataCache = { v: getPluginData(parseJson(raw), this.handle) };\n }\n return this.dataCache.v;\n }\n paramsCache;\n /** Params derived from block context via pre-wrapped input callbacks */\n get params() {\n if (this.paramsCache === undefined) {\n const result = {};\n for (const [key, fn] of Object.entries(this.wrappedInputs)) {\n result[key] = fn();\n }\n this.paramsCache = { v: result };\n }\n return this.paramsCache.v;\n }\n /** Result pool — same as block, from cfgRenderCtx methods */\n resultPool = new ResultPool();\n}\n\nexport { BlockRenderCtx, PluginRenderCtx, RenderCtxBase, RenderCtxLegacy, ResultPool };\n//# sourceMappingURL=api.js.map\n","var version = \"1.58.3\";\n\nexport { version };\n//# sourceMappingURL=package.json.js.map\n","import { version } from './package.json.js';\n\nconst PlatformaSDKVersion = version;\nconst CurrentSdkInfo = {\n sdkVersion: PlatformaSDKVersion,\n};\n\nexport { CurrentSdkInfo, PlatformaSDKVersion };\n//# sourceMappingURL=version.js.map\n","function isConfigLambda(cfgOrFh) {\n return cfgOrFh.__renderLambda === true;\n}\n\nexport { isConfigLambda };\n//# sourceMappingURL=types.js.map\n","import { extractConfigGeneric } from '@milaboratories/pl-model-common';\nimport { isConfigLambda } from './types.js';\nimport { BlockStorageFacadeHandles } from '../block_storage_facade.js';\n\nfunction downgradeCfgOrLambda(data) {\n if (data === undefined)\n return undefined;\n if (isConfigLambda(data))\n return data.handle;\n return data;\n}\nfunction extractConfig(cfg) {\n const config = extractConfigGeneric(cfg);\n // Fill blockLifecycleCallbacks with defaults for V4 blocks that don't declare them\n if (config.configVersion === 4 && Object.keys(config.blockLifecycleCallbacks).length === 0) {\n config.blockLifecycleCallbacks =\n BlockStorageFacadeHandles;\n }\n return config;\n}\n\nexport { downgradeCfgOrLambda, extractConfig };\n//# sourceMappingURL=normalization.js.map\n","import { getImmediate } from './config/actions.js';\nimport { tryRegisterCallback, isInUI, getPlatformaInstance } from './internal.js';\nimport { RenderCtxLegacy } from './render/api.js';\nimport '@milaboratories/pl-model-common';\nimport './render/util/label.js';\nimport 'canonicalize';\nimport { PlatformaSDKVersion } from './version.js';\nimport { downgradeCfgOrLambda } from './bconfig/normalization.js';\nimport { isConfigLambda } from './bconfig/types.js';\n\n/** Main entry point that each block should use in it's \"config\" module. Don't forget\n * to call {@link done()} at the end of configuration. Value returned by this builder must be\n * exported as constant with name \"platforma\" from the \"config\" module. */\nclass BlockModel {\n config;\n constructor(config) {\n this.config = config;\n }\n static get INITIAL_BLOCK_FEATURE_FLAGS() {\n return {\n supportsLazyState: true,\n requiresUIAPIVersion: 1,\n requiresModelAPIVersion: 1,\n requiresCreatePTable: 2,\n };\n }\n static create(renderingMode = \"Heavy\") {\n return new BlockModel({\n renderingMode,\n initialUiState: {},\n outputs: {},\n inputsValid: getImmediate(true),\n sections: getImmediate([]),\n featureFlags: BlockModel.INITIAL_BLOCK_FEATURE_FLAGS,\n });\n }\n output(key, cfgOrRf, flags = {}) {\n if (typeof cfgOrRf === \"function\") {\n const handle = `output#${key}`;\n tryRegisterCallback(handle, () => cfgOrRf(new RenderCtxLegacy()));\n return new BlockModel({\n ...this.config,\n outputs: {\n ...this.config.outputs,\n [key]: {\n __renderLambda: true,\n handle,\n ...flags,\n },\n },\n });\n }\n else {\n return new BlockModel({\n ...this.config,\n outputs: {\n ...this.config.outputs,\n [key]: cfgOrRf,\n },\n });\n }\n }\n /** Shortcut for {@link output} with retentive flag set to true. */\n retentiveOutput(key, rf) {\n return this.output(key, rf, { retentive: true });\n }\n /** Shortcut for {@link output} with withStatus flag set to true. */\n outputWithStatus(key, rf) {\n return this.output(key, rf, { withStatus: true });\n }\n /** Shortcut for {@link output} with retentive and withStatus flags set to true. */\n retentiveOutputWithStatus(key, rf) {\n return this.output(key, rf, { retentive: true, withStatus: true });\n }\n argsValid(cfgOrRf) {\n if (typeof cfgOrRf === \"function\") {\n tryRegisterCallback(\"inputsValid\", () => cfgOrRf(new RenderCtxLegacy()));\n return new BlockModel({\n ...this.config,\n inputsValid: {\n __renderLambda: true,\n handle: \"inputsValid\",\n },\n });\n }\n else {\n return new BlockModel({\n ...this.config,\n inputsValid: cfgOrRf,\n });\n }\n }\n sections(arrOrCfgOrRf) {\n if (Array.isArray(arrOrCfgOrRf)) {\n return this.sections(getImmediate(arrOrCfgOrRf));\n }\n else if (typeof arrOrCfgOrRf === \"function\") {\n tryRegisterCallback(\"sections\", () => arrOrCfgOrRf(new RenderCtxLegacy()));\n return new BlockModel({\n ...this.config,\n sections: {\n __renderLambda: true,\n handle: \"sections\",\n },\n });\n }\n else {\n return new BlockModel({\n ...this.config,\n sections: arrOrCfgOrRf,\n });\n }\n }\n /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */\n title(rf) {\n tryRegisterCallback(\"title\", () => rf(new RenderCtxLegacy()));\n return new BlockModel({\n ...this.config,\n title: {\n __renderLambda: true,\n handle: \"title\",\n },\n });\n }\n subtitle(rf) {\n tryRegisterCallback(\"subtitle\", () => rf(new RenderCtxLegacy()));\n return new BlockModel({\n ...this.config,\n subtitle: {\n __renderLambda: true,\n handle: \"subtitle\",\n },\n });\n }\n tags(rf) {\n tryRegisterCallback(\"tags\", () => rf(new RenderCtxLegacy()));\n return new BlockModel({\n ...this.config,\n tags: {\n __renderLambda: true,\n handle: \"tags\",\n },\n });\n }\n /**\n * Sets initial args for the block, this value must be specified.\n * @deprecated use {@link withArgs}\n * */\n initialArgs(value) {\n return this.withArgs(value);\n }\n /** Sets initial args for the block, this value must be specified. */\n withArgs(initialArgs) {\n return new BlockModel({\n ...this.config,\n initialArgs,\n });\n }\n /** Defines type and sets initial value for block UiState. */\n withUiState(initialUiState) {\n return new BlockModel({\n ...this.config,\n initialUiState,\n });\n }\n /** Sets or overrides feature flags for the block. */\n withFeatureFlags(flags) {\n return new BlockModel({\n ...this.config,\n featureFlags: {\n ...this.config.featureFlags,\n ...flags,\n },\n });\n }\n /**\n * Defines how to derive list of upstream references this block is meant to enrich with its exports from block args.\n * Influences dependency graph construction.\n */\n enriches(lambda) {\n tryRegisterCallback(\"enrichmentTargets\", lambda);\n return new BlockModel({\n ...this.config,\n enrichmentTargets: {\n __renderLambda: true,\n handle: \"enrichmentTargets\",\n },\n });\n }\n /** Renders all provided block settings into a pre-configured platforma API\n * instance, that can be used in frontend to interact with block state, and\n * other features provided by the platforma to the block. */\n done(apiVersion = 1) {\n return this.withFeatureFlags({\n ...this.config.featureFlags,\n requiresUIAPIVersion: apiVersion,\n }).#done();\n }\n #done() {\n if (this.config.initialArgs === undefined)\n throw new Error(\"Initial arguments not set.\");\n const config = {\n v4: undefined,\n v3: {\n configVersion: 3,\n modelAPIVersion: 1,\n sdkVersion: PlatformaSDKVersion,\n renderingMode: this.config.renderingMode,\n initialArgs: this.config.initialArgs,\n initialUiState: this.config.initialUiState,\n inputsValid: this.config.inputsValid,\n sections: this.config.sections,\n title: this.config.title,\n subtitle: this.config.subtitle,\n tags: this.config.tags,\n outputs: this.config.outputs,\n enrichmentTargets: this.config.enrichmentTargets,\n featureFlags: this.config.featureFlags,\n },\n // fields below are added to allow previous desktop versions read generated configs\n sdkVersion: PlatformaSDKVersion,\n renderingMode: this.config.renderingMode,\n initialArgs: this.config.initialArgs,\n inputsValid: downgradeCfgOrLambda(this.config.inputsValid),\n sections: downgradeCfgOrLambda(this.config.sections),\n outputs: Object.fromEntries(Object.entries(this.config.outputs).map(([key, value]) => [\n key,\n downgradeCfgOrLambda(value),\n ])),\n };\n globalThis.platformaApiVersion = this.config.featureFlags\n .requiresUIAPIVersion;\n if (!isInUI())\n // we are in the configuration rendering routine, not in actual UI\n return { config };\n // normal operation inside the UI\n else\n return {\n ...getPlatformaInstance({\n sdkVersion: PlatformaSDKVersion,\n apiVersion: platformaApiVersion,\n }),\n blockModelInfo: {\n outputs: Object.fromEntries(Object.entries(this.config.outputs).map(([key, value]) => [\n key,\n {\n withStatus: Boolean(isConfigLambda(value) && value.withStatus),\n },\n ])),\n pluginIds: [],\n },\n };\n }\n}\n\nexport { BlockModel };\n//# sourceMappingURL=block_model_legacy.js.map\n","import { LinkerMap, getColumnIdAndSpec, matchAxisId, getAxisId, canonicalizeJson, readAnnotation, Annotation, stringifyJson } from '@milaboratories/pl-model-common';\n\n/**\n * Axes utilities for PFrame graph operations.\n *\n * Extracted from PFrameForGraphs to break circular dependency\n * between PFrameForGraphs and columns modules.\n *\n * @module pframe_utils/axes\n */\n/** Create id for column copy with added keys in axes domains */\nconst colId = (id, domains) => {\n let wid = id.toString();\n domains?.forEach((domain) => {\n if (domain) {\n for (const [k, v] of Object.entries(domain)) {\n wid += k;\n wid += v;\n }\n }\n });\n return wid;\n};\n/** All combinations with 1 key from each list */\nfunction getKeysCombinations(idsLists) {\n if (!idsLists.length) {\n return [];\n }\n let result = [[]];\n idsLists.forEach((list) => {\n const nextResult = [];\n list.forEach((key) => {\n nextResult.push(...result.map((resultItem) => [...resultItem, key]));\n });\n result = nextResult;\n });\n return result;\n}\nfunction getAvailableWithLinkersAxes(linkerColumns, blockAxes) {\n const linkerMap = LinkerMap.fromColumns(linkerColumns.map(getColumnIdAndSpec));\n const availableAxes = linkerMap.getReachableByLinkersAxesFromAxesNormalized([...blockAxes.values()], (linkerKeyId, sourceAxisId) => matchAxisId(sourceAxisId, linkerKeyId));\n return new Map(availableAxes.map((axisSpec) => {\n const id = getAxisId(axisSpec);\n return [canonicalizeJson(id), axisSpec];\n }));\n}\n/** Add columns with fully compatible axes created from partial compatible ones */\nfunction enrichCompatible(blockAxes, columns) {\n return columns.flatMap((column) => getAdditionalColumnsForColumn(blockAxes, column));\n}\nfunction getAdditionalColumnsForColumn(blockAxes, column) {\n const columnAxesIds = column.spec.axesSpec.map(getAxisId);\n if (columnAxesIds.every((id) => blockAxes.has(canonicalizeJson(id)))) {\n return [column]; // the column is compatible with its own domains without modifications\n }\n // options with different possible domains for every axis of secondary column\n const secondaryIdsOptions = columnAxesIds.map((id) => {\n const result = [];\n for (const [_, mainId] of blockAxes) {\n if (matchAxisId(mainId, id) && !matchAxisId(id, mainId)) {\n result.push(mainId);\n }\n }\n return result;\n });\n // all possible combinations of axes with added domains\n const secondaryIdsVariants = getKeysCombinations(secondaryIdsOptions);\n // sets of added to column domain fields\n const allAddedDomainValues = new Set();\n const addedNotToAllVariantsDomainValues = new Set();\n const addedByVariantsDomainValues = secondaryIdsVariants.map((idsList) => {\n const addedSet = new Set();\n idsList.map((axisId, idx) => {\n const d1 = column.spec.axesSpec[idx].domain;\n const d2 = axisId.domain;\n Object.entries(d2 ?? {}).forEach(([key, value]) => {\n if (d1?.[key] === undefined) {\n const item = JSON.stringify([key, value]);\n addedSet.add(item);\n allAddedDomainValues.add(item);\n }\n });\n return {\n ...axisId,\n annotations: column.spec.axesSpec[idx].annotations,\n };\n });\n return addedSet;\n });\n [...allAddedDomainValues].forEach((addedPart) => {\n if (addedByVariantsDomainValues.some((s) => !s.has(addedPart))) {\n addedNotToAllVariantsDomainValues.add(addedPart);\n }\n });\n const additionalColumns = secondaryIdsVariants.map((idsList, idx) => {\n const id = colId(column.id, idsList.map((id) => id.domain));\n const label = readAnnotation(column.spec, Annotation.Label) ?? \"\";\n const labelDomainPart = [...addedByVariantsDomainValues[idx]]\n .filter((str) => addedNotToAllVariantsDomainValues.has(str))\n .sort()\n .map((v) => JSON.parse(v)?.[1]) // use in labels only domain values, but sort them by key to save the same order in all column variants\n .join(\" / \");\n const annotations = {\n ...column.spec.annotations,\n [Annotation.Graph.IsVirtual]: stringifyJson(true),\n };\n if (label || labelDomainPart) {\n annotations[Annotation.Label] =\n label && labelDomainPart ? label + \" / \" + labelDomainPart : label + labelDomainPart;\n }\n return {\n ...column,\n id: id,\n spec: {\n ...column.spec,\n axesSpec: idsList.map((axisId, idx) => ({\n ...axisId,\n annotations: column.spec.axesSpec[idx].annotations,\n })),\n annotations,\n },\n };\n });\n return [column, ...additionalColumns];\n}\n\nexport { enrichCompatible, getAvailableWithLinkersAxes };\n//# sourceMappingURL=axes.js.map\n","import { getNormalizedAxesList, getAxisId, canonicalizeJson, isLinkerColumn, matchAxisId, isLabelColumn } from '@milaboratories/pl-model-common';\nimport { enrichCompatible, getAvailableWithLinkersAxes } from './axes.js';\nimport 'canonicalize';\nimport { PColumnCollection } from '../render/util/column_collection.js';\nimport '../render/util/label.js';\n\nfunction getAllRelatedColumns(ctx, predicate) {\n // if current block doesn't produce own columns then use all columns from result pool\n const columns = new PColumnCollection();\n columns.addColumnProvider(ctx.resultPool);\n const allColumns = columns.getColumns(predicate, {\n dontWaitAllData: true,\n overrideLabelAnnotation: false,\n }) ?? [];\n const allAxes = new Map(allColumns\n .flatMap((column) => getNormalizedAxesList(column.spec.axesSpec))\n .map((axisSpec) => {\n const axisId = getAxisId(axisSpec);\n return [canonicalizeJson(axisId), axisSpec];\n }));\n // additional columns are duplicates with extra fields in domains for compatibility if there are ones with partial match\n const extendedColumns = enrichCompatible(allAxes, allColumns);\n return extendedColumns;\n}\nfunction getRelatedColumns(ctx, { columns: rootColumns, predicate, }) {\n // if current block has its own columns then take from result pool only compatible with them\n const columns = new PColumnCollection();\n columns.addColumnProvider(ctx.resultPool);\n columns.addColumns(rootColumns);\n // all possible axes from block columns\n const blockAxes = new Map();\n // axes from block columns and compatible result pool columns\n const allAxes = new Map();\n for (const c of rootColumns) {\n for (const spec of getNormalizedAxesList(c.spec.axesSpec)) {\n const aid = getAxisId(spec);\n blockAxes.set(canonicalizeJson(aid), spec);\n allAxes.set(canonicalizeJson(aid), spec);\n }\n }\n // all linker columns always go to pFrame - even it's impossible to use some of them they all are hidden\n const linkerColumns = columns.getColumns((spec) => predicate(spec) && isLinkerColumn(spec), {\n dontWaitAllData: true,\n }) ?? [];\n const availableWithLinkersAxes = getAvailableWithLinkersAxes(linkerColumns, blockAxes);\n // all possible axes from connected linkers\n for (const item of availableWithLinkersAxes) {\n blockAxes.set(...item);\n allAxes.set(...item);\n }\n const blockAxesArr = Array.from(blockAxes.values());\n // all compatible with block columns but without label columns\n let compatibleWithoutLabels = (columns.getColumns((spec) => predicate(spec) &&\n spec.axesSpec.some((axisSpec) => {\n const axisId = getAxisId(axisSpec);\n return blockAxesArr.some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));\n }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));\n // extend axes set for label columns request\n for (const c of compatibleWithoutLabels) {\n for (const spec of getNormalizedAxesList(c.spec.axesSpec)) {\n const aid = getAxisId(spec);\n allAxes.set(canonicalizeJson(aid), spec);\n }\n }\n const allAxesArr = Array.from(allAxes.values());\n // extend allowed columns - add columns thad doesn't have axes from block, but have all axes in 'allAxes' list (that means all axes from linkers or from 'hanging' of other selected columns)\n compatibleWithoutLabels = (columns.getColumns((spec) => predicate(spec) &&\n spec.axesSpec.every((axisSpec) => {\n const axisId = getAxisId(axisSpec);\n return allAxesArr.some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));\n }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => !isLabelColumn(column.spec));\n // label columns must be compatible with full set of axes - block axes and axes from compatible columns from result pool\n const compatibleLabels = (columns.getColumns((spec) => predicate(spec) &&\n spec.axesSpec.some((axisSpec) => {\n const axisId = getAxisId(axisSpec);\n return allAxesArr.some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));\n }), { dontWaitAllData: true, overrideLabelAnnotation: false }) ?? []).filter((column) => isLabelColumn(column.spec));\n const compatible = [...compatibleWithoutLabels, ...compatibleLabels];\n // additional columns are duplicates with extra fields in domains for compatibility if there are ones with partial match\n const extendedColumns = enrichCompatible(blockAxes, compatible);\n return extendedColumns;\n}\n\nexport { getAllRelatedColumns, getRelatedColumns };\n//# sourceMappingURL=columns.js.map\n","import { readAnnotationJson, Annotation } from '@milaboratories/pl-model-common';\nimport { getAllRelatedColumns, getRelatedColumns } from '../pframe_utils/columns.js';\n\nfunction isHiddenFromGraphColumn(column) {\n return !!readAnnotationJson(column, Annotation.HideDataFromGraphs);\n}\nfunction isHiddenFromUIColumn(column) {\n return !!readAnnotationJson(column, Annotation.HideDataFromUi);\n}\n/**\n The aim of createPFrameForGraphs: to create pframe with block’s columns and all compatible columns from result pool\n (including linker columns and all label columns).\n Block’s columns are added to pframe as is.\n Other columns are added basing on set of axes of block’s columns, considering available with linker columns.\n Compatible columns must have at least one axis from block’s axes set. This axis of the compatible column from\n result pool must satisfy matchAxisId (it can have less domain keys than in block’s axis, but without conflicting values\n among existing ones).\n In requests to pframe (calculateTableData) columns must have strictly the same axes. For compatibility in case\n of partially matched axis we add to pframe a copy of this column with modified axis (with filled missed domains)\n and modified label (with added domain values in case if more than one copy with different domains exist).\n */\nfunction createPFrameForGraphs(ctx, blockColumns) {\n const suitableSpec = (spec) => !isHiddenFromUIColumn(spec) && !isHiddenFromGraphColumn(spec);\n // if current block doesn't produce own columns then use all columns from result pool\n if (!blockColumns) {\n return ctx.createPFrame(getAllRelatedColumns(ctx, suitableSpec));\n }\n return ctx.createPFrame(getRelatedColumns(ctx, { columns: blockColumns, predicate: suitableSpec }));\n}\n\nexport { createPFrameForGraphs, isHiddenFromGraphColumn, isHiddenFromUIColumn };\n//# sourceMappingURL=PFrameForGraphs.js.map\n","/**\n * Recursively traverses a FilterSpec tree bottom-up, applying visitor callbacks.\n *\n * Entries with `{ type: undefined }` inside `and`/`or` arrays are skipped\n * (these represent unfilled filter slots in the UI).\n *\n * Traversal order:\n * 1. Recurse into child filters (`and`/`or`/`not`)\n * 2. Apply the corresponding visitor callback with already-traversed children\n * 3. For leaf nodes, call `leaf` directly\n */\nfunction traverseFilterSpec(filter, visitor) {\n return traverseFilterSpecImpl(filter, visitor);\n}\n/** Internal implementation with simple generics for clean recursion. */\nfunction traverseFilterSpecImpl(filter, visitor) {\n switch (filter.type) {\n case \"and\":\n return visitor.and(filter.filters\n .filter((f) => f.type !== undefined)\n .map((f) => traverseFilterSpecImpl(f, visitor)));\n case \"or\":\n return visitor.or(filter.filters\n .filter((f) => f.type !== undefined)\n .map((f) => traverseFilterSpecImpl(f, visitor)));\n case \"not\":\n return visitor.not(traverseFilterSpecImpl(filter.filter, visitor));\n default:\n return visitor.leaf(filter);\n }\n}\n/** Collects all column references (`column` and `rhs` fields) from filter leaves. */\nfunction collectFilterSpecColumns(filter) {\n return traverseFilterSpec(filter, {\n leaf: (leaf) => {\n const cols = [];\n if (\"column\" in leaf && leaf.column !== undefined)\n cols.push(leaf.column);\n if (\"rhs\" in leaf && leaf.rhs !== undefined)\n cols.push(leaf.rhs);\n return cols;\n },\n and: (results) => results.flat(),\n or: (results) => results.flat(),\n not: (result) => result,\n });\n}\n\nexport { collectFilterSpecColumns, traverseFilterSpec };\n//# sourceMappingURL=traverse.js.map\n","import { traverseFilterSpec } from './traverse.js';\n\n/** Compile-time check: every key in the tuple is a valid leaf key (via satisfies). */\nconst KNOWN_LEAF_KEYS_TUPLE = [\n \"n\",\n \"x\",\n \"rhs\",\n \"type\",\n \"value\",\n \"column\",\n \"minDiff\",\n \"maxEdits\",\n \"wildcard\",\n \"replacement\",\n \"substitutionsOnly\",\n];\nconst KNOWN_LEAF_KEYS = new Set(KNOWN_LEAF_KEYS_TUPLE);\n/** Returns true if the leaf is filled — type is defined and no required fields are undefined. */\nfunction isFilledLeaf(node) {\n if (node.type == null)\n return false;\n return !Object.values(node).some((v) => v === undefined);\n}\nfunction distillLeaf(node) {\n const result = {};\n for (const [key, value] of Object.entries(node)) {\n if (KNOWN_LEAF_KEYS.has(key)) {\n result[key] = value;\n }\n }\n return result;\n}\n/**\n * Strips non-FilterSpec metadata (whitelist approach) and removes\n * unfilled leaves (type is undefined or any required field is undefined).\n */\nfunction distillFilterSpec(filter) {\n if (filter == null)\n return null;\n return traverseFilterSpec(filter, {\n leaf: (leaf) => {\n if (!isFilledLeaf(leaf))\n return null;\n return distillLeaf(leaf);\n },\n and: (results) => {\n const filtered = results.filter((f) => f !== null);\n return filtered.length === 0 ? null : { type: \"and\", filters: filtered };\n },\n or: (results) => {\n const filtered = results.filter((f) => f !== null);\n return filtered.length === 0 ? null : { type: \"or\", filters: filtered };\n },\n not: (result) => (result === null ? null : { type: \"not\", filter: result }),\n });\n}\n\nexport { distillFilterSpec };\n//# sourceMappingURL=distill.js.map\n","import { canonicalizeJson } from '@milaboratories/pl-model-common';\nimport '@milaboratories/ptabler-expression-js';\nimport { distillFilterSpec } from '../../filters/distill.js';\n\n/** Upgrade PlDataTableStateV2 to the latest version */\nfunction upgradePlDataTableStateV2(state) {\n // Block just added, had no state, model started earlier than the UI\n if (!state) {\n return createPlDataTableStateV2();\n }\n // v1 -> v2\n if (!(\"version\" in state)) {\n // Non upgradeable as sourceId calculation algorithm has changed, resetting state to default\n state = createPlDataTableStateV2();\n }\n // v2 -> v3\n if (state.version === 2) {\n state = {\n version: 3,\n stateCache: state.stateCache.map((entry) => ({\n ...entry,\n filtersState: [],\n })),\n pTableParams: createDefaultPTableParams(),\n };\n }\n // v3 -> v4\n if (state.version === 3) {\n // Non upgradeable as column ids calculation algorithm has changed, resetting state to default\n state = createPlDataTableStateV2();\n }\n // v4 -> v5: migrate per-column filters to tree-based format\n if (state.version === 4) {\n state = migrateV4toV5(state);\n }\n return state;\n}\n/** Migrate v4 state to v5: convert per-column filters to tree-based format */\nfunction migrateV4toV5(state) {\n let idCounter = 0;\n const nextId = () => ++idCounter;\n const migratedCache = state.stateCache.map((entry) => {\n const leaves = [];\n for (const f of entry.filtersState) {\n if (f.filter !== null && !f.filter.disabled) {\n const column = canonicalizeJson(f.id);\n leaves.push(migrateTableFilter(column, f.filter.value, nextId));\n }\n }\n const filtersState = leaves.length > 0 ? { id: nextId(), type: \"and\", filters: leaves } : null;\n return {\n sourceId: entry.sourceId,\n gridState: entry.gridState,\n sheetsState: entry.sheetsState,\n filtersState,\n };\n });\n const oldSourceId = state.pTableParams.sourceId;\n const currentCache = oldSourceId\n ? migratedCache.find((e) => e.sourceId === oldSourceId)\n : undefined;\n return {\n version: 5,\n stateCache: migratedCache,\n pTableParams: currentCache && oldSourceId\n ? {\n sourceId: oldSourceId,\n hiddenColIds: state.pTableParams.hiddenColIds,\n filters: distillFilterSpec(currentCache.filtersState),\n sorting: state.pTableParams.sorting,\n }\n : createDefaultPTableParams(),\n };\n}\n/** Migrate a single per-column PlTableFilter to a tree-based FilterSpec node */\nfunction migrateTableFilter(column, filter, nextId) {\n const id = nextId();\n switch (filter.type) {\n case \"isNA\":\n return { id, type: \"isNA\", column };\n case \"isNotNA\":\n return { id, type: \"isNotNA\", column };\n case \"number_equals\":\n return { id, type: \"equal\", column, x: filter.reference };\n case \"number_notEquals\":\n return { id, type: \"notEqual\", column, x: filter.reference };\n case \"number_greaterThan\":\n return { id, type: \"greaterThan\", column, x: filter.reference };\n case \"number_greaterThanOrEqualTo\":\n return { id, type: \"greaterThanOrEqual\", column, x: filter.reference };\n case \"number_lessThan\":\n return { id, type: \"lessThan\", column, x: filter.reference };\n case \"number_lessThanOrEqualTo\":\n return { id, type: \"lessThanOrEqual\", column, x: filter.reference };\n case \"number_between\":\n return {\n id,\n type: \"and\",\n filters: [\n filter.includeLowerBound\n ? { id: nextId(), type: \"greaterThanOrEqual\", column, x: filter.lowerBound }\n : { id: nextId(), type: \"greaterThan\", column, x: filter.lowerBound },\n filter.includeUpperBound\n ? { id: nextId(), type: \"lessThanOrEqual\", column, x: filter.upperBound }\n : { id: nextId(), type: \"lessThan\", column, x: filter.upperBound },\n ],\n };\n case \"string_equals\":\n return { id, type: \"patternEquals\", column, value: filter.reference };\n case \"string_notEquals\":\n return { id, type: \"patternNotEquals\", column, value: filter.reference };\n case \"string_contains\":\n return { id, type: \"patternContainSubsequence\", column, value: filter.reference };\n case \"string_doesNotContain\":\n return { id, type: \"patternNotContainSubsequence\", column, value: filter.reference };\n case \"string_matches\":\n return { id, type: \"patternMatchesRegularExpression\", column, value: filter.reference };\n case \"string_doesNotMatch\":\n return {\n id,\n type: \"not\",\n filter: {\n id: nextId(),\n type: \"patternMatchesRegularExpression\",\n column,\n value: filter.reference,\n },\n };\n case \"string_containsFuzzyMatch\":\n return {\n id,\n type: \"patternFuzzyContainSubsequence\",\n column,\n value: filter.reference,\n maxEdits: filter.maxEdits,\n substitutionsOnly: filter.substitutionsOnly,\n ...(filter.wildcard !== undefined ? { wildcard: filter.wildcard } : {}),\n };\n }\n}\nfunction createDefaultPTableParams() {\n return {\n sourceId: null,\n hiddenColIds: null,\n filters: null,\n sorting: [],\n };\n}\nfunction createPlDataTableStateV2() {\n return {\n version: 5,\n stateCache: [],\n pTableParams: createDefaultPTableParams(),\n };\n}\n\nexport { createDefaultPTableParams, createPlDataTableStateV2, upgradePlDataTableStateV2 };\n//# sourceMappingURL=state-migration.js.map\n","import { assertNever } from '@milaboratories/pl-model-common';\nimport { traverseFilterSpec } from '../traverse.js';\n\n/** Parses a CanonicalizedJson<PTableColumnId> string into a SpecQueryExpression reference. */\nfunction resolveColumnRef(columnStr) {\n const parsed = JSON.parse(columnStr);\n return parsed.type === \"axis\"\n ? { type: \"axisRef\", value: parsed.id }\n : { type: \"columnRef\", value: parsed.id };\n}\n/** Converts a FilterSpec tree into a SpecQueryExpression. */\nfunction filterSpecToSpecQueryExpr(filter) {\n return traverseFilterSpec(filter, {\n leaf: leafToSpecQueryExpr,\n and: (inputs) => {\n if (inputs.length === 0) {\n throw new Error(\"AND filter requires at least one operand\");\n }\n return { type: \"and\", input: inputs };\n },\n or: (inputs) => {\n if (inputs.length === 0) {\n throw new Error(\"OR filter requires at least one operand\");\n }\n return { type: \"or\", input: inputs };\n },\n not: (input) => ({ type: \"not\", input }),\n });\n}\nfunction leafToSpecQueryExpr(filter) {\n switch (filter.type) {\n case \"patternEquals\":\n return {\n type: \"stringEquals\",\n input: resolveColumnRef(filter.column),\n value: filter.value,\n caseInsensitive: false,\n };\n case \"patternNotEquals\":\n return {\n type: \"not\",\n input: {\n type: \"stringEquals\",\n input: resolveColumnRef(filter.column),\n value: filter.value,\n caseInsensitive: false,\n },\n };\n case \"patternContainSubsequence\":\n return {\n type: \"stringContains\",\n input: resolveColumnRef(filter.column),\n value: filter.value,\n caseInsensitive: false,\n };\n case \"patternNotContainSubsequence\":\n return {\n type: \"not\",\n input: {\n type: \"stringContains\",\n input: resolveColumnRef(filter.column),\n value: filter.value,\n caseInsensitive: false,\n },\n };\n case \"patternMatchesRegularExpression\":\n return {\n type: \"stringRegex\",\n input: resolveColumnRef(filter.column),\n value: filter.value,\n };\n case \"patternFuzzyContainSubsequence\":\n return {\n type: \"stringContainsFuzzy\",\n input: resolveColumnRef(filter.column),\n value: filter.value,\n maxEdits: filter.maxEdits ?? 1,\n caseInsensitive: false,\n substitutionsOnly: filter.substitutionsOnly ?? false,\n wildcard: filter.wildcard ?? null,\n };\n case \"equal\":\n return {\n type: \"numericComparison\",\n operand: \"eq\",\n left: resolveColumnRef(filter.column),\n right: { type: \"constant\", value: filter.x },\n };\n case \"notEqual\":\n return {\n type: \"numericComparison\",\n operand: \"ne\",\n left: resolveColumnRef(filter.column),\n right: { type: \"constant\", value: filter.x },\n };\n case \"lessThan\":\n return {\n type: \"numericComparison\",\n operand: \"lt\",\n left: resolveColumnRef(filter.column),\n right: { type: \"constant\", value: filter.x },\n };\n case \"greaterThan\":\n return {\n type: \"numericComparison\",\n operand: \"gt\",\n left: resolveColumnRef(filter.column),\n right: { type: \"constant\", value: filter.x },\n };\n case \"lessThanOrEqual\":\n return {\n type: \"numericComparison\",\n operand: \"le\",\n left: resolveColumnRef(filter.column),\n right: { type: \"constant\", value: filter.x },\n };\n case \"greaterThanOrEqual\":\n return {\n type: \"numericComparison\",\n operand: \"ge\",\n left: resolveColumnRef(filter.column),\n right: { type: \"constant\", value: filter.x },\n };\n case \"equalToColumn\":\n return {\n type: \"numericComparison\",\n operand: \"eq\",\n left: resolveColumnRef(filter.column),\n right: resolveColumnRef(filter.rhs),\n };\n case \"lessThanColumn\": {\n const left = resolveColumnRef(filter.column);\n const right = resolveColumnRef(filter.rhs);\n if (filter.minDiff !== undefined && filter.minDiff !== 0) {\n return {\n type: \"numericComparison\",\n operand: \"lt\",\n left: {\n type: \"numericBinary\",\n operand: \"add\",\n left,\n right: { type: \"constant\", value: filter.minDiff },\n },\n right,\n };\n }\n return { type: \"numericComparison\", operand: \"lt\", left, right };\n }\n case \"greaterThanColumn\": {\n const left = resolveColumnRef(filter.column);\n const right = resolveColumnRef(filter.rhs);\n if (filter.minDiff !== undefined && filter.minDiff !== 0) {\n return {\n type: \"numericComparison\",\n operand: \"gt\",\n left: {\n type: \"numericBinary\",\n operand: \"add\",\n left,\n right: { type: \"constant\", value: filter.minDiff },\n },\n right,\n };\n }\n return { type: \"numericComparison\", operand: \"gt\", left, right };\n }\n case \"lessThanColumnOrEqual\": {\n const left = resolveColumnRef(filter.column);\n const right = resolveColumnRef(filter.rhs);\n if (filter.minDiff !== undefined && filter.minDiff !== 0) {\n return {\n type: \"numericComparison\",\n operand: \"le\",\n left: {\n type: \"numericBinary\",\n operand: \"add\",\n left,\n right: { type: \"constant\", value: filter.minDiff },\n },\n right,\n };\n }\n return { type: \"numericComparison\", operand: \"le\", left, right };\n }\n case \"greaterThanColumnOrEqual\": {\n const left = resolveColumnRef(filter.column);\n const right = resolveColumnRef(filter.rhs);\n if (filter.minDiff !== undefined && filter.minDiff !== 0) {\n return {\n type: \"numericComparison\",\n operand: \"ge\",\n left: {\n type: \"numericBinary\",\n operand: \"add\",\n left,\n right: { type: \"constant\", value: filter.minDiff },\n },\n right,\n };\n }\n return { type: \"numericComparison\", operand: \"ge\", left, right };\n }\n case \"inSet\":\n return {\n type: \"isIn\",\n input: resolveColumnRef(filter.column),\n set: filter.value,\n };\n case \"notInSet\":\n return {\n type: \"not\",\n input: {\n type: \"isIn\",\n input: resolveColumnRef(filter.column),\n set: filter.value,\n },\n };\n case \"isNA\":\n return {\n type: \"isNull\",\n input: resolveColumnRef(filter.column),\n };\n case \"isNotNA\":\n return {\n type: \"not\",\n input: {\n type: \"isNull\",\n input: resolveColumnRef(filter.column),\n },\n };\n case \"ifNa\":\n return {\n type: \"ifNull\",\n input: resolveColumnRef(filter.column),\n replacement: { type: \"constant\", value: filter.replacement },\n };\n case \"topN\":\n case \"bottomN\":\n throw new Error(`Filter type \"${filter.type}\" is not supported in query expressions`);\n case undefined:\n throw new Error(\"Filter type is undefined\");\n default:\n assertNever(filter);\n }\n}\n\nexport { filterSpecToSpecQueryExpr };\n//# sourceMappingURL=filterToQuery.js.map\n","function identity(x) {\n return x;\n}\n\nexport { identity };\n","function isTypedArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n\nexport { isTypedArray };\n","function getTag(value) {\n if (value == null) {\n return value === undefined ? '[object Undefined]' : '[object Null]';\n }\n return Object.prototype.toString.call(value);\n}\n\nexport { getTag };\n","function isFunction(value) {\n return typeof value === 'function';\n}\n\nexport { isFunction };\n","function isLength(value) {\n return Number.isSafeInteger(value) && value >= 0;\n}\n\nexport { isLength };\n","function isNil(x) {\n return x == null;\n}\n\nexport { isNil };\n","import { PColumnName, isLabelColumn, getAxisId, matchAxisId } from '@milaboratories/pl-model-common';\nimport 'canonicalize';\nimport { PColumnCollection } from '../../render/util/column_collection.js';\nimport '../../render/util/label.js';\n\n/** Get all label columns from the result pool */\nfunction getAllLabelColumns(resultPool) {\n return new PColumnCollection()\n .addAxisLabelProvider(resultPool)\n .addColumnProvider(resultPool)\n .getColumns({\n name: PColumnName.Label,\n axes: [{}], // exactly one axis\n }, { dontWaitAllData: true, overrideLabelAnnotation: false });\n}\n/** Get label columns matching the provided columns from the result pool */\nfunction getMatchingLabelColumns(columns, allLabelColumns) {\n // split input columns into label and value columns\n const inputLabelColumns = [];\n const inputValueColumns = [];\n for (const column of columns) {\n if (isLabelColumn(column.spec)) {\n inputLabelColumns.push(column);\n }\n else {\n inputValueColumns.push(column);\n }\n }\n // collect distinct axes of value columns\n const unlabeledAxes = [];\n for (const column of inputValueColumns) {\n for (const axis of column.spec.axesSpec) {\n const axisId = getAxisId(axis);\n if (!unlabeledAxes.some((id) => matchAxisId(id, axisId))) {\n unlabeledAxes.push(axisId);\n }\n }\n }\n // remove axes matched by input label columns\n for (const labelColumn of inputLabelColumns) {\n const labelAxisId = getAxisId(labelColumn.spec.axesSpec[0]);\n const labelMatch = unlabeledAxes.findIndex((axisId) => matchAxisId(axisId, labelAxisId));\n if (labelMatch !== -1) {\n unlabeledAxes.splice(labelMatch, 1);\n }\n }\n // warning: changing this id will break backward compatibility\n const colId = (id, domain) => {\n let wid = id.toString();\n if (domain) {\n for (const k in domain) {\n wid += k;\n wid += domain[k];\n }\n }\n return wid;\n };\n // search label columns for unmatched axes\n const labelColumns = [];\n for (const labelColumn of allLabelColumns) {\n const labelAxis = labelColumn.spec.axesSpec[0];\n const labelAxisId = getAxisId(labelAxis);\n const labelMatch = unlabeledAxes.findIndex((axisId) => matchAxisId(axisId, labelAxisId));\n if (labelMatch !== -1) {\n const axisId = unlabeledAxes[labelMatch];\n const dataDomainLen = Object.keys(axisId.domain ?? {}).length;\n const labelDomainLen = Object.keys(labelAxis.domain ?? {}).length;\n if (dataDomainLen > labelDomainLen) {\n labelColumns.push({\n id: colId(labelColumn.id, axisId.domain),\n spec: {\n ...labelColumn.spec,\n axesSpec: [{ ...axisId, annotations: labelAxis.annotations }],\n },\n data: labelColumn.data,\n });\n }\n else {\n labelColumns.push(labelColumn);\n }\n unlabeledAxes.splice(labelMatch, 1);\n }\n }\n return labelColumns;\n}\n\nexport { getAllLabelColumns, getMatchingLabelColumns };\n//# sourceMappingURL=labels.js.map\n","import { isLength } from '../../predicate/isLength.mjs';\n\nfunction isArrayLike(value) {\n return value != null && typeof value !== 'function' && isLength(value.length);\n}\n\nexport { isArrayLike };\n","import { getTag } from '../_internal/getTag.mjs';\n\nfunction isArguments(value) {\n return value !== null && typeof value === 'object' && getTag(value) === '[object Arguments]';\n}\n\nexport { isArguments };\n","function isPrototype(value) {\n const constructor = value?.constructor;\n const prototype = typeof constructor === 'function' ? constructor.prototype : Object.prototype;\n return value === prototype;\n}\n\nexport { isPrototype };\n","import { isTypedArray as isTypedArray$1 } from '../../predicate/isTypedArray.mjs';\n\nfunction isTypedArray(x) {\n return isTypedArray$1(x);\n}\n\nexport { isTypedArray };\n","import { isArguments } from './isArguments.mjs';\nimport { isArrayLike } from './isArrayLike.mjs';\nimport { isTypedArray } from './isTypedArray.mjs';\nimport { isPrototype } from '../_internal/isPrototype.mjs';\n\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value)) {\n if (typeof value.splice !== 'function' &&\n typeof value !== 'string' &&\n (typeof Buffer === 'undefined' || !Buffer.isBuffer(value)) &&\n !isTypedArray(value) &&\n !isArguments(value)) {\n return false;\n }\n return value.length === 0;\n }\n if (typeof value === 'object') {\n if (value instanceof Map || value instanceof Set) {\n return value.size === 0;\n }\n const keys = Object.keys(value);\n if (isPrototype(value)) {\n return keys.filter(x => x !== 'constructor').length === 0;\n }\n return keys.length === 0;\n }\n return true;\n}\n\nexport { isEmpty };\n","import { readAnnotation, Annotation, getColumnIdAndSpec, uniqueBy, getAxisId, canonicalizeJson, isLinkerColumn, parseJson, isBooleanExpression } from '@milaboratories/pl-model-common';\nimport { filterSpecToSpecQueryExpr } from '../../filters/converters/filterToQuery.js';\nimport '@milaboratories/ptabler-expression-js';\nimport { collectFilterSpecColumns } from '../../filters/traverse.js';\nimport { distillFilterSpec } from '../../filters/distill.js';\nimport 'canonicalize';\nimport { deriveLabels } from '../../render/util/label.js';\nimport { allPColumnsReady } from '../../render/util/pcolumn_data.js';\nimport { isFunction, isNil, identity } from 'es-toolkit';\nimport { upgradePlDataTableStateV2 } from './state-migration.js';\nimport { getAllLabelColumns, getMatchingLabelColumns } from './labels.js';\nimport { isEmpty } from 'es-toolkit/compat';\n\n/** Convert a PTableColumnId to a SpecQueryExpression reference. */\nfunction columnIdToExpr(col) {\n if (col.type === \"axis\") {\n return { type: \"axisRef\", value: col.id };\n }\n return { type: \"columnRef\", value: col.id };\n}\n/** Wrap a SpecQuery as a SpecQueryJoinEntry with empty qualifications. */\nfunction joinEntry(input) {\n return { entry: input, qualifications: [] };\n}\nfunction createPTableDef(params) {\n let coreColumns = params.columns;\n const secondaryColumns = [];\n if (isFunction(params.coreColumnPredicate)) {\n coreColumns = [];\n for (const c of params.columns)\n if (params.coreColumnPredicate(getColumnIdAndSpec(c)))\n coreColumns.push(c);\n else\n secondaryColumns.push(c);\n }\n secondaryColumns.push(...params.labelColumns);\n // Build SpecQuery directly from columns\n const coreJoinQuery = {\n type: params.coreJoinType === \"inner\" ? \"innerJoin\" : \"fullJoin\",\n entries: coreColumns.map((c) => joinEntry({ type: \"column\", column: c })),\n };\n let query = {\n type: \"outerJoin\",\n primary: joinEntry(coreJoinQuery),\n secondary: secondaryColumns.map((c) => joinEntry({ type: \"column\", column: c })),\n };\n // Apply filters\n if (params.filters !== null) {\n const nonEmpty = distillFilterSpec(params.filters);\n if (!isNil(nonEmpty)) {\n const pridicate = filterSpecToSpecQueryExpr(nonEmpty);\n if (!isBooleanExpression(pridicate)) {\n throw new Error(`Filter conversion produced a non-boolean expression (got type \"${pridicate.type}\"), expected a boolean predicate for query filtering`);\n }\n query = {\n type: \"filter\",\n input: query,\n predicate: pridicate,\n };\n }\n }\n // Apply sorting\n if (params.sorting.length > 0) {\n query = {\n type: \"sort\",\n input: query,\n sortBy: params.sorting.map((s) => ({\n expression: columnIdToExpr(s.column),\n ascending: s.ascending,\n nullsFirst: s.ascending === s.naAndAbsentAreLeastValues,\n })),\n };\n }\n return { query };\n}\n/** Check if column should be omitted from the table */\nfunction isColumnHidden(spec) {\n return readAnnotation(spec, Annotation.Table.Visibility) === \"hidden\";\n}\n/** Check if column is hidden by default */\nfunction isColumnOptional(spec) {\n return readAnnotation(spec, Annotation.Table.Visibility) === \"optional\";\n}\n/**\n * Create p-table spec and handle given ui table state\n *\n * @param ctx context\n * @param columns column list\n * @param tableState table ui state\n * @returns PlAgDataTableV2 table source\n */\nfunction createPlDataTableV2(ctx, columns, tableState, ops) {\n if (columns.length === 0)\n return undefined;\n const tableStateNormalized = upgradePlDataTableStateV2(tableState);\n const allLabelColumns = getAllLabelColumns(ctx.resultPool);\n if (!allLabelColumns)\n return undefined;\n let fullLabelColumns = getMatchingLabelColumns(columns.map(getColumnIdAndSpec), allLabelColumns);\n fullLabelColumns = deriveLabels(fullLabelColumns, identity, { includeNativeLabel: true }).map((v) => {\n return {\n ...v.value,\n spec: {\n ...v.value.spec,\n annotations: {\n ...v.value.spec.annotations,\n [Annotation.Label]: v.label,\n },\n },\n };\n });\n const fullColumns = [...columns, ...fullLabelColumns];\n const fullColumnsAxes = uniqueBy(fullColumns.flatMap((c) => c.spec.axesSpec.map((a) => getAxisId(a))), (a) => canonicalizeJson(a));\n const fullColumnsIds = [\n ...fullColumnsAxes.map((a) => ({ type: \"axis\", id: a })),\n ...fullColumns.map((c) => ({ type: \"column\", id: c.id })),\n ];\n const fullColumnsIdsSet = new Set(fullColumnsIds.map((c) => canonicalizeJson(c)));\n const isValidColumnId = (id) => fullColumnsIdsSet.has(id);\n // -- Filtering validation --\n const stateFilters = tableStateNormalized.pTableParams.filters;\n const opsFilters = ops?.filters ?? null;\n const filters = stateFilters != null && opsFilters != null\n ? { type: \"and\", filters: [stateFilters, opsFilters] }\n : (stateFilters ?? opsFilters);\n const filterColumns = filters ? collectFilterSpecColumns(filters) : [];\n const firstInvalidFilterColumn = filterColumns.find((col) => !isValidColumnId(col));\n if (firstInvalidFilterColumn)\n throw new Error(`Invalid filter column ${firstInvalidFilterColumn}: column reference does not match the table columns`);\n // -- Sorting validation --\n const userSorting = tableStateNormalized.pTableParams.sorting;\n const sorting = (isEmpty(userSorting) ? ops?.sorting : userSorting) ?? [];\n const firstInvalidSortingColumn = sorting.find((s) => !isValidColumnId(canonicalizeJson(s.column)));\n if (firstInvalidSortingColumn)\n throw new Error(`Invalid sorting column ${JSON.stringify(firstInvalidSortingColumn.column)}: column reference does not match the table columns`);\n const coreJoinType = ops?.coreJoinType ?? \"full\";\n const fullDef = createPTableDef({\n columns,\n labelColumns: fullLabelColumns,\n coreJoinType,\n filters,\n sorting,\n coreColumnPredicate: ops?.coreColumnPredicate,\n });\n const fullHandle = ctx.createPTableV2(fullDef);\n if (!fullHandle)\n return undefined;\n const hiddenColumns = new Set((() => {\n // Inner join works as a filter - all columns must be present\n if (coreJoinType === \"inner\")\n return [];\n const hiddenColIds = tableStateNormalized.pTableParams.hiddenColIds;\n if (hiddenColIds)\n return hiddenColIds;\n return columns.filter((c) => isColumnOptional(c.spec)).map((c) => c.id);\n })());\n // Preserve linker columns\n columns.filter((c) => isLinkerColumn(c.spec)).forEach((c) => hiddenColumns.delete(c.id));\n // Preserve core columns as they change the shape of join.\n const coreColumnPredicate = ops?.coreColumnPredicate;\n if (coreColumnPredicate) {\n const coreColumns = columns.flatMap((c) => coreColumnPredicate(getColumnIdAndSpec(c)) ? [c.id] : []);\n coreColumns.forEach((c) => hiddenColumns.delete(c));\n }\n // Preserve sorted columns from being hidden\n sorting\n .map((s) => s.column)\n .filter((c) => c.type === \"column\")\n .forEach((c) => hiddenColumns.delete(c.id));\n // Preserve filter columns from being hidden\n if (filters) {\n collectFilterSpecColumns(filters)\n .flatMap((c) => {\n const obj = parseJson(c);\n return obj.type === \"column\" ? [obj.id] : [];\n })\n .forEach((c) => hiddenColumns.delete(c));\n }\n const visibleColumns = columns.filter((c) => !hiddenColumns.has(c.id));\n const visibleLabelColumns = getMatchingLabelColumns(visibleColumns.map(getColumnIdAndSpec), allLabelColumns);\n // if at least one column is not yet computed, we can't show the table\n if (!allPColumnsReady([...visibleColumns, ...visibleLabelColumns]))\n return undefined;\n const visibleDef = createPTableDef({\n columns: visibleColumns,\n labelColumns: visibleLabelColumns,\n coreJoinType,\n filters,\n sorting,\n coreColumnPredicate,\n });\n const visibleHandle = ctx.createPTableV2(visibleDef);\n if (!visibleHandle)\n return undefined;\n return {\n sourceId: tableStateNormalized.pTableParams.sourceId,\n fullTableHandle: fullHandle,\n visibleTableHandle: visibleHandle,\n };\n}\n/** Create sheet entries for PlDataTable */\nfunction createPlDataTableSheet(ctx, axis, values) {\n const labels = ctx.resultPool.findLabels(axis);\n return {\n axis,\n options: values.map((v) => ({\n value: v,\n label: labels?.[v] ?? v.toString(),\n })),\n defaultValue: values[0],\n };\n}\n\nexport { createPlDataTableSheet, createPlDataTableV2, isColumnHidden, isColumnOptional };\n//# sourceMappingURL=table.js.map\n","exports = module.exports = stringify\nexports.getSerialize = serializer\n\nfunction stringify(obj, replacer, spaces, cycleReplacer) {\n return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)\n}\n\nfunction serializer(replacer, cycleReplacer) {\n var stack = [], keys = []\n\n if (cycleReplacer == null) cycleReplacer = function(key, value) {\n if (stack[0] === value) return \"[Circular ~]\"\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\"\n }\n\n return function(key, value) {\n if (stack.length > 0) {\n var thisPos = stack.indexOf(this)\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)\n if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)\n }\n else stack.push(value)\n\n return replacer == null ? value : replacer.call(this, key, value)\n }\n}\n","import stringify from 'json-stringify-safe';\nimport { z } from 'zod';\n\n// We want to define StandardErrorLike and PlErrorLike, it's a way to define recursive types in zod.\n// https://zod.dev/?id=recursive-types\n// We need zod to parse error strings into these objects for keeping new UI and old blocks compatible.\nconst BasePlErrorLike = z.object({\n type: z.literal(\"PlError\"),\n name: z.string(),\n message: z.string(),\n /** The message with all details needed for SDK developers. */\n fullMessage: z.string().optional(),\n stack: z.string().optional(),\n});\nconst PlErrorLike = BasePlErrorLike.extend({\n cause: z.lazy(() => ErrorLike).optional(),\n errors: z.lazy(() => ErrorLike.array()).optional(),\n});\nconst BaseStandardErrorLike = z.object({\n type: z.literal(\"StandardError\"),\n name: z.string(),\n message: z.string(),\n stack: z.string().optional(),\n});\nconst StandardErrorLike = BaseStandardErrorLike.extend({\n cause: z.lazy(() => ErrorLike).optional(),\n errors: z.lazy(() => ErrorLike.array()).optional(),\n});\nconst ErrorLike = z.union([StandardErrorLike, PlErrorLike]);\n/** Converts everything into ErrorLike. */\nfunction ensureErrorLike(error) {\n const result = ErrorShape.safeParse(error);\n if (result.success) {\n const err = result.data;\n if (err.name === \"PlQuickJSError\" ||\n err.name === \"PlErrorReport\" ||\n err.name === \"PlInternalError\" ||\n err.name === \"PlTengoError\" ||\n err.name === \"PlRunnerError\" ||\n err.name === \"PlMonetizationError\") {\n return {\n type: \"PlError\",\n name: err.name,\n message: err.message,\n fullMessage: err.fullMessage ?? undefined,\n stack: err.stack ?? undefined,\n cause: err.cause ? ensureErrorLike(err.cause) : undefined,\n errors: err.errors ? err.errors.map(ensureErrorLike) : undefined,\n };\n }\n return {\n type: \"StandardError\",\n name: err.name,\n message: err.message,\n stack: err.stack ?? undefined,\n cause: err.cause ? ensureErrorLike(err.cause) : undefined,\n errors: err.errors ? err.errors.map(ensureErrorLike) : undefined,\n };\n }\n return {\n type: \"StandardError\",\n name: \"Error\",\n // Stringify without circular dependencies.\n // Maps (and sets?) will be converted to empty json objects,\n // if this is a problem, we should change the library,\n // but the new library must work in all QuickJS, UI and Node.js like this one.\n message: stringify(error),\n };\n}\n/** Tries to parse strings into ErrorLike. It's needed for keeping old blocks compatible with new UI. */\nfunction parseErrorLikeSafe(err) {\n try {\n return ErrorLike.safeParse(JSON.parse(err));\n }\n catch (e) {\n return {\n success: false,\n error: new Error(`parseErrorLikeSafe: could not parse JSON: ${err}, ${String(e)}`),\n };\n }\n}\n// We want to define ErrorShape schema just to parse it above, it's a way to define recursive types in zod.\n// https://zod.dev/?id=recursive-types\nconst baseErrorShape = z.object({\n name: z.string(),\n message: z.string(),\n fullMessage: z.string().optional(),\n stack: z.string().optional(),\n});\nconst ErrorShape = baseErrorShape.extend({\n cause: z.lazy(() => ErrorShape).optional(),\n errors: z.lazy(() => ErrorShape.array()).optional(),\n});\n\nexport { BasePlErrorLike, ErrorLike, PlErrorLike, StandardErrorLike, ensureErrorLike, parseErrorLikeSafe };\n//# sourceMappingURL=error_like_shape.js.map\n","export function getDefaultBlockLabel(data: {\n fileName?: string;\n similarityType: 'alignment-score' | 'sequence-identity';\n identity: number;\n coverageThreshold: number;\n}) {\n const parts: string[] = [];\n\n // Add file name if available\n if (data.fileName) {\n parts.push(data.fileName);\n }\n\n // Add similarity type label\n const similarityLabel = data.similarityType === 'alignment-score' ? 'BLOSUM' : 'Exact Match';\n if (similarityLabel) {\n parts.push(similarityLabel);\n }\n\n // Add identity threshold\n parts.push(`ident:${data.identity}`);\n\n // Add coverage threshold\n parts.push(`cov:${data.coverageThreshold}`);\n\n return parts.filter(Boolean).join(', ');\n}\n","import type {\n DataInfo,\n ImportFileHandle,\n PColumn,\n PColumnSpec,\n PColumnValues,\n PlDataTableStateV2,\n PlMultiSequenceAlignmentModel,\n PlRef,\n RenderCtxLegacy,\n SUniversalPColumnId,\n TreeNodeAccessor,\n} from '@platforma-sdk/model';\nimport {\n BlockModel,\n createPFrameForGraphs,\n createPlDataTableStateV2,\n createPlDataTableV2,\n} from '@platforma-sdk/model';\nimport { getDefaultBlockLabel } from './label';\n\ntype Settings = {\n coverageThreshold: number; // fraction of aligned residues required\n identity: number;\n similarityType: 'sequence-identity' | 'alignment-score';\n};\n\nexport type ImportColumnInfo = {\n header: string;\n type: 'Int' | 'Double' | 'String';\n /** If this column is a sequence column, the type of the sequence */\n sequenceType?: 'nucleotide' | 'aminoacid';\n};\n\nexport type BlockArgs = {\n defaultBlockLabel: string;\n customBlockLabel: string;\n datasetRef?: PlRef;\n targetRef?: SUniversalPColumnId;\n fileHandle?: ImportFileHandle;\n fileExtension?: string;\n detectedXsvType?: 'csv' | 'tsv';\n importColumns?: ImportColumnInfo[];\n sequenceColumnHeader?: string;\n selectedColumns: string[];\n settings: Settings;\n lessSensitive: boolean;\n mem?: number;\n cpu?: number;\n};\n\nexport type UiState = {\n fileImportError?: string;\n tableState: PlDataTableStateV2;\n alignmentModel: PlMultiSequenceAlignmentModel;\n};\n\ntype Column = PColumn<DataInfo<TreeNodeAccessor> | TreeNodeAccessor | PColumnValues>;\n\ntype Columns = {\n props: Column[];\n};\n\nfunction getColumns(ctx: RenderCtxLegacy<BlockArgs, UiState>): Columns | undefined {\n const anchor = ctx.args.datasetRef;\n if (anchor === undefined)\n return undefined;\n\n const anchorSpec = ctx.resultPool.getPColumnSpecByRef(anchor);\n if (anchorSpec === undefined)\n return undefined;\n\n // all clone properties\n const props = (ctx.resultPool.getAnchoredPColumns(\n { main: anchor },\n [\n {\n axes: [{ anchor: 'main', idx: 1 }],\n },\n ]) ?? [])\n .filter((p) => p.spec.annotations?.['pl7.app/sequence/isAnnotation'] !== 'true');\n\n return {\n props: props,\n };\n}\n\nexport const model = BlockModel.create()\n\n .withArgs<BlockArgs>({\n defaultBlockLabel: getDefaultBlockLabel({\n similarityType: 'alignment-score',\n identity: 0.9,\n coverageThreshold: 0.95,\n }),\n customBlockLabel: '',\n settings: {\n coverageThreshold: 0.95, // default value matching MMseqs2 default\n identity: 0.9,\n similarityType: 'alignment-score',\n },\n selectedColumns: [],\n lessSensitive: false,\n })\n\n .withUiState<UiState>({\n tableState: createPlDataTableStateV2(),\n alignmentModel: {},\n })\n\n .argsValid((ctx) =>\n ctx.args.datasetRef !== undefined\n && ctx.args.fileHandle !== undefined\n && ctx.args.importColumns !== undefined\n && ctx.args.sequenceColumnHeader !== undefined\n && ctx.args.targetRef !== undefined\n && ctx.uiState.fileImportError === undefined,\n )\n\n .output('datasetOptions', (ctx) =>\n ctx.resultPool.getOptions([{\n axes: [\n { name: 'pl7.app/sampleId' },\n { name: 'pl7.app/vdj/clonotypeKey' },\n ],\n annotations: { 'pl7.app/isAnchor': 'true' },\n }, {\n axes: [\n { name: 'pl7.app/sampleId' },\n { name: 'pl7.app/vdj/scClonotypeKey' },\n ],\n annotations: { 'pl7.app/isAnchor': 'true' },\n }], {}),\n )\n\n .output('targetOptions', (ctx) => {\n const ref = ctx.args.datasetRef;\n if (ref === undefined) return undefined;\n\n const isSingleCell = ctx.resultPool.getPColumnSpecByRef(ref)?.axesSpec[1].name === 'pl7.app/vdj/scClonotypeKey';\n const sequenceMatchers = [];\n // const allowedFeatures = ['CDR1', 'CDR2', 'CDR3', 'FR1', 'FR2',\n // 'FR3', 'FR4', 'VDJRegion'];\n // for (const feature of allowedFeatures) {\n if (isSingleCell) {\n sequenceMatchers.push({\n axes: [{ anchor: 'main', idx: 1 }],\n name: 'pl7.app/vdj/sequence',\n domain: {\n // 'pl7.app/vdj/feature': feature,\n 'pl7.app/vdj/scClonotypeChain/index': 'primary',\n },\n });\n } else {\n sequenceMatchers.push({\n axes: [{ anchor: 'main', idx: 1 }],\n name: 'pl7.app/vdj/sequence',\n domain: {\n // 'pl7.app/vdj/feature': feature,\n },\n });\n }\n\n return ctx.resultPool.getCanonicalOptions(\n { main: ref },\n sequenceMatchers,\n {\n ignoreMissingDomains: true,\n labelOps: {\n includeNativeLabel: true,\n },\n });\n })\n\n .output(\n 'dataImportHandle',\n (ctx) => ctx.outputs?.resolve('dataImportHandle')?.getImportProgress(),\n { isActive: true },\n )\n\n .outputWithStatus('table', (ctx) => {\n if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n\n return createPlDataTableV2(\n ctx,\n cols,\n ctx.uiState.tableState,\n );\n })\n\n .output('pf', (ctx) => {\n if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n\n return createPFrameForGraphs(ctx, cols);\n })\n\n .output('assaySequenceSpec', (ctx): PColumnSpec | undefined => {\n if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n // Return only sequence column\n return cols.find((c) => c.spec.name === 'pl7.app/vdj/sequence'\n && c.spec.axesSpec[0].name === 'pl7.app/vdj/assay/sequenceId')?.spec;\n })\n\n .output('msaPf', (ctx) => {\n if (ctx.outputs?.resolve('emptyResults')?.getDataAsJson<boolean>()) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n\n const msaCols = ctx.outputs?.resolve('assayLinkerPframe')?.getPColumns();\n if (!msaCols) return undefined;\n\n const columns = getColumns(ctx);\n if (columns === undefined) {\n return undefined;\n }\n\n return createPFrameForGraphs(ctx, [...msaCols, ...cols, ...columns.props]);\n })\n\n .output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)\n\n .title(() => 'Immune Assay Data')\n\n .subtitle((ctx) => ctx.args.customBlockLabel || ctx.args.defaultBlockLabel)\n\n .sections((_ctx) => ([\n { type: 'link', href: '/', label: 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AE,OAAO,CAAC,mBAAmB,CAAC,EAAE,WAAW,EAAE;IACxE,IAAA,IAAI,CAAC,OAAO;IAAE,QAAA,OAAO,SAAS;IAE9B,IAAA,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,CAAC;IAC/B,IAAA,IAAI,OAAO,KAAK,SAAS,EAAE;IACzB,QAAA,OAAO,SAAS;QAClB;IAEA,IAAA,OAAO,qBAAqB,CAAC,GAAG,EAAE,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5E,CAAC;IAEA,KAAA,MAAM,CAAC,WAAW,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,OAAO,EAAE,iBAAiB,EAAE,KAAK,KAAK;IAEvE,KAAA,KAAK,CAAC,MAAM,mBAAmB;IAE/B,KAAA,QAAQ,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,IAAI,CAAC,gBAAgB,IAAI,GAAG,CAAC,IAAI,CAAC,iBAAiB;IAEzE,KAAA,QAAQ,CAAC,CAAC,IAAI,MAAM;QACnB,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE;IAC3C,CAAA,CAAC;SAED,IAAI,CAAC,CAAC;;;;;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58]}
1
+ {"version":3,"file":"bundle.js","names":["FROM_BUILDER","matchDomain","#done","isTypedArray"],"sources":["../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/block_storage.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/block_migrations.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/internal.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/block_storage_facade.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/config/actions.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/future.js","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.mjs","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/bmodel/code.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/util.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/errors.js","../../node_modules/.pnpm/canonicalize@2.1.0/node_modules/canonicalize/lib/canonicalize.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/json.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/utils.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/ids.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/anchored.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/pool/spec.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/native_id.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/linker_columns.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/driver.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/plid.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/ref.js","../../node_modules/.pnpm/@milaboratories+pl-model-common@1.25.2/node_modules/@milaboratories/pl-model-common/dist/value_or_error.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/accessor.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/internal.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/util/axis_filtering.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/util/label.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/util/pcolumn_data.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/util/column_collection.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/util/pframe_upgraders.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/render/api.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/package.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/version.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/bconfig/types.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/bconfig/normalization.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/block_model_legacy.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/plugin_model.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/pframe_utils/axes.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/pframe_utils/columns.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/components/PFrameForGraphs.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/filters/traverse.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/filters/converters/filterToQuery.js","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isLength.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/function/identity.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/getTag.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isTypedArray.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isNil.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/predicate/isFunction.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs","../../node_modules/.pnpm/es-toolkit@1.39.10/node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/filters/distill.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/components/PlDataTable/state-migration.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/components/PlDataTable/labels.js","../../node_modules/.pnpm/@platforma-sdk+model@1.58.19/node_modules/@platforma-sdk/model/dist/components/PlDataTable/table.js","../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js","../../node_modules/.pnpm/@milaboratories+pl-error-like@1.12.9/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.js","../src/label.ts","../src/index.ts"],"sourcesContent":["import { isDataUnrecoverableError } from \"./block_migrations.js\";\n\n//#region src/block_storage.ts\n/**\n* Discriminator key for BlockStorage format detection.\n* This unique hash-based key identifies data as BlockStorage vs legacy formats.\n*/\nconst BLOCK_STORAGE_KEY = \"__pl_a7f3e2b9__\";\n/**\n* Current BlockStorage schema version.\n* Increment this when the storage structure itself changes (not block state migrations).\n*/\nconst BLOCK_STORAGE_SCHEMA_VERSION = \"v1\";\n/**\n* Default data version for new blocks without migrations.\n* Unique identifier ensures blocks are created via DataModel API.\n*/\nconst DATA_MODEL_LEGACY_VERSION = \"__pl_v1_d4e8f2a1__\";\n/**\n* Type guard to check if a value is a valid BlockStorage object.\n* Checks for the discriminator key and valid schema version.\n*/\nfunction isBlockStorage(value) {\n\tif (value === null || typeof value !== \"object\") return false;\n\treturn value[BLOCK_STORAGE_KEY] === \"v1\";\n}\n/**\n* Creates a BlockStorage with the given initial data\n*\n* @param initialData - The initial data value (defaults to empty object)\n* @param version - The initial data version key (defaults to DATA_MODEL_LEGACY_VERSION)\n* @returns A new BlockStorage instance with discriminator key\n*/\nfunction createBlockStorage(initialData = {}, version = DATA_MODEL_LEGACY_VERSION) {\n\treturn {\n\t\t[BLOCK_STORAGE_KEY]: BLOCK_STORAGE_SCHEMA_VERSION,\n\t\t__dataVersion: version,\n\t\t__data: initialData,\n\t\t__pluginRegistry: {},\n\t\t__plugins: {}\n\t};\n}\n/**\n* Normalizes raw storage data to BlockStorage format.\n* If the input is already a BlockStorage, returns it as-is (with defaults for missing fields).\n* If the input is legacy format (raw state), wraps it in BlockStorage structure.\n*\n* @param raw - Raw storage data (may be legacy format or BlockStorage)\n* @returns Normalized BlockStorage\n*/\nfunction normalizeBlockStorage(raw) {\n\tif (isBlockStorage(raw)) {\n\t\tconst storage = raw;\n\t\treturn {\n\t\t\t...storage,\n\t\t\t__dataVersion: typeof storage.__dataVersion === \"number\" ? DATA_MODEL_LEGACY_VERSION : storage.__dataVersion,\n\t\t\t__pluginRegistry: storage.__pluginRegistry ?? {},\n\t\t\t__plugins: storage.__plugins ?? {}\n\t\t};\n\t}\n\treturn createBlockStorage(raw);\n}\n/**\n* Gets the data from BlockStorage\n*\n* @param storage - The BlockStorage instance\n* @returns The data value\n*/\nfunction getStorageData(storage) {\n\treturn storage.__data;\n}\n/**\n* Derives data from raw block storage.\n* This function is meant to be called from sdk/ui-vue to extract\n* user-facing data from the raw storage returned by the middle layer.\n*\n* The middle layer returns raw storage (opaque to it), and the UI\n* uses this function to derive the actual data value.\n*\n* @param rawStorage - Raw storage data from middle layer (may be any format)\n* @returns The extracted data value, or undefined if storage is undefined/null\n*/\nfunction deriveDataFromStorage(rawStorage) {\n\treturn getStorageData(normalizeBlockStorage(rawStorage));\n}\n/**\n* Updates the data in BlockStorage (immutable)\n*\n* @param storage - The current BlockStorage\n* @param payload - The update payload with operation and value\n* @returns A new BlockStorage with updated data\n*/\nfunction updateStorageData(storage, payload) {\n\tswitch (payload.operation) {\n\t\tcase \"update-block-data\": return {\n\t\t\t...storage,\n\t\t\t__data: payload.value\n\t\t};\n\t\tcase \"update-plugin-data\": {\n\t\t\tconst { pluginId, value } = payload;\n\t\t\tconst currentPlugins = storage.__plugins ?? {};\n\t\t\tconst version = currentPlugins[pluginId]?.__dataVersion ?? DATA_MODEL_LEGACY_VERSION;\n\t\t\treturn {\n\t\t\t\t...storage,\n\t\t\t\t__plugins: {\n\t\t\t\t\t...currentPlugins,\n\t\t\t\t\t[pluginId]: {\n\t\t\t\t\t\t__dataVersion: version,\n\t\t\t\t\t\t__data: value\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tdefault: throw new Error(`Unknown storage operation: ${payload.operation}`);\n\t}\n}\n/**\n* Performs atomic migration of block storage including block data and all plugins.\n*\n* Migration is atomic: either everything succeeds and a new storage is returned,\n* or an error is returned and the original storage is completely untouched.\n*\n* Migration steps:\n* 1. Migrate block data\n* 2. For each plugin in newPluginRegistry:\n* - If plugin exists with same name: migrate its data\n* - Otherwise (new or type changed): create with initial data\n* Plugins not in newPluginRegistry are dropped.\n*\n* If any step throws, migration fails and original storage is preserved.\n* User can then choose to:\n* - Abort: keep original storage, don't update block\n* - Reset: call createBlockStorage() to start fresh\n*\n* @param storage - The original storage (will not be modified)\n* @param config - Migration configuration\n* @returns Migration result - either success with new storage, or failure with error info\n*\n* @example\n* const result = migrateBlockStorage(storage, {\n* migrateBlockData: (versioned) => blockDataModel.migrate(versioned),\n* migratePluginData: (pluginId, versioned) => getPluginModel(pluginId).migrate(versioned),\n* newPluginRegistry: { table1: 'dataTable' as PluginName },\n* createPluginData: (pluginId) => getPluginModel(pluginId).getDefaultData(),\n* });\n*\n* if (result.success) {\n* commitStorage(result.storage);\n* } else {\n* const userChoice = await askUser(`Migration failed: ${result.error}. Reset data?`);\n* if (userChoice === 'reset') {\n* commitStorage(createBlockStorage(initialData, currentVersion));\n* }\n* // else: abort, keep original\n* }\n*/\nfunction migrateBlockStorage(storage, config) {\n\tconst { migrateBlockData, migratePluginData, newPluginRegistry, createPluginData } = config;\n\tlet migratedData;\n\tlet newVersion;\n\tlet transfers;\n\ttry {\n\t\tconst result = migrateBlockData({\n\t\t\tversion: storage.__dataVersion,\n\t\t\tdata: storage.__data\n\t\t});\n\t\tmigratedData = result.data;\n\t\tnewVersion = result.version;\n\t\ttransfers = result.transfers;\n\t} catch (error) {\n\t\treturn {\n\t\t\tsuccess: false,\n\t\t\terror: error instanceof Error ? error.message : String(error),\n\t\t\tfailedAt: \"block\"\n\t\t};\n\t}\n\tconst oldPlugins = storage.__plugins ?? {};\n\tconst oldRegistry = storage.__pluginRegistry ?? {};\n\tconst newPlugins = {};\n\tfor (const [key, pluginName] of Object.entries(newPluginRegistry)) {\n\t\tconst handle = key;\n\t\tconst existingEntry = oldPlugins[handle];\n\t\tconst existingName = oldRegistry[handle];\n\t\ttry {\n\t\t\tif (existingEntry && existingName === pluginName) {\n\t\t\t\tconst migrated = migratePluginData(handle, {\n\t\t\t\t\tversion: existingEntry.__dataVersion,\n\t\t\t\t\tdata: existingEntry.__data\n\t\t\t\t});\n\t\t\t\tif (migrated) newPlugins[handle] = {\n\t\t\t\t\t__dataVersion: migrated.version,\n\t\t\t\t\t__data: migrated.data\n\t\t\t\t};\n\t\t\t} else if (existingEntry) {\n\t\t\t\tlet recovered = false;\n\t\t\t\ttry {\n\t\t\t\t\tconst migrated = migratePluginData(handle, {\n\t\t\t\t\t\tversion: DATA_MODEL_LEGACY_VERSION,\n\t\t\t\t\t\tdata: existingEntry.__data\n\t\t\t\t\t});\n\t\t\t\t\tif (migrated) {\n\t\t\t\t\t\tnewPlugins[handle] = {\n\t\t\t\t\t\t\t__dataVersion: migrated.version,\n\t\t\t\t\t\t\t__data: migrated.data\n\t\t\t\t\t\t};\n\t\t\t\t\t\trecovered = true;\n\t\t\t\t\t}\n\t\t\t\t} catch (recoverError) {\n\t\t\t\t\tif (!isDataUnrecoverableError(recoverError)) throw recoverError;\n\t\t\t\t}\n\t\t\t\tif (!recovered) {\n\t\t\t\t\tconst transfer = transfers[handle];\n\t\t\t\t\tconst initial = createPluginData(handle, transfer);\n\t\t\t\t\tnewPlugins[handle] = {\n\t\t\t\t\t\t__dataVersion: initial.version,\n\t\t\t\t\t\t__data: initial.data\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tconst transfer = transfers[handle];\n\t\t\t\tconst initial = createPluginData(handle, transfer);\n\t\t\t\tnewPlugins[handle] = {\n\t\t\t\t\t__dataVersion: initial.version,\n\t\t\t\t\t__data: initial.data\n\t\t\t\t};\n\t\t\t}\n\t\t} catch (error) {\n\t\t\treturn {\n\t\t\t\tsuccess: false,\n\t\t\t\terror: error instanceof Error ? error.message : String(error),\n\t\t\t\tfailedAt: handle\n\t\t\t};\n\t\t}\n\t}\n\treturn {\n\t\tsuccess: true,\n\t\tstorage: {\n\t\t\t[BLOCK_STORAGE_KEY]: BLOCK_STORAGE_SCHEMA_VERSION,\n\t\t\t__dataVersion: newVersion,\n\t\t\t__data: migratedData,\n\t\t\t__pluginRegistry: newPluginRegistry,\n\t\t\t__plugins: newPlugins\n\t\t}\n\t};\n}\n/**\n* Gets plugin-specific data from block storage.\n* Accepts raw storage (any format) and normalizes internally.\n*\n* When called with a typed PluginHandle<F>, the return type is automatically\n* inferred from the factory's phantom `__types.data` field.\n*\n* @param rawStorage - Raw block storage (may be legacy format or BlockStorage)\n* @param handle - The plugin handle (branded plugin instance id)\n* @returns The plugin data, typed via factory inference\n* @throws If plugin is not found in storage\n*/\nfunction getPluginData(rawStorage, handle) {\n\tconst pluginEntry = normalizeBlockStorage(rawStorage).__plugins?.[handle];\n\tif (!pluginEntry) throw new Error(`Plugin '${handle}' not found in block storage`);\n\treturn pluginEntry.__data;\n}\n\n//#endregion\nexport { BLOCK_STORAGE_KEY, BLOCK_STORAGE_SCHEMA_VERSION, DATA_MODEL_LEGACY_VERSION, createBlockStorage, deriveDataFromStorage, getPluginData, getStorageData, isBlockStorage, migrateBlockStorage, normalizeBlockStorage, updateStorageData };\n//# sourceMappingURL=block_storage.js.map","import { DATA_MODEL_LEGACY_VERSION } from \"./block_storage.js\";\n\n//#region src/block_migrations.ts\n/** Create a DataVersioned wrapper with correct shape */\nfunction makeVersionedData(version, data) {\n\treturn {\n\t\tversion,\n\t\tdata\n\t};\n}\n/** Thrown by recover() to signal unrecoverable data. */\nvar DataUnrecoverableError = class extends Error {\n\tname = \"DataUnrecoverableError\";\n\tconstructor(dataVersion) {\n\t\tsuper(`Unknown version '${dataVersion}'`);\n\t}\n};\nfunction isDataUnrecoverableError(error) {\n\treturn error instanceof Error && error.name === \"DataUnrecoverableError\";\n}\n/**\n* Default recover function for unknown versions.\n* Use as fallback at the end of custom recover functions.\n*\n* @example\n* .recover((version, data) => {\n* if (version === 'legacy') {\n* return transformLegacyData(data);\n* }\n* return defaultRecover(version, data);\n* })\n*/\nconst defaultRecover = (version, _data) => {\n\tthrow new DataUnrecoverableError(version);\n};\n/** Symbol for internal builder creation method */\nconst FROM_BUILDER = Symbol(\"fromBuilder\");\n/**\n* Abstract base for both migration chain types.\n* Holds shared state, buildStep() helper, and init().\n* migrate() cannot be shared due to a TypeScript limitation: when the base class\n* migrate() return type is abstract, subclasses cannot narrow it without losing type safety.\n* Each subclass therefore owns its migrate() with the correct concrete return type.\n*\n* @internal\n*/\nvar MigrationChainBase = class {\n\tversionChain;\n\tmigrationSteps;\n\ttransferSteps;\n\tconstructor(state) {\n\t\tthis.versionChain = state.versionChain;\n\t\tthis.migrationSteps = state.steps;\n\t\tthis.transferSteps = state.transferSteps ?? [];\n\t}\n\t/** Appends a migration step and returns the new versionChain and steps arrays. */\n\tbuildStep(nextVersion, fn) {\n\t\tif (this.versionChain.includes(nextVersion)) throw new Error(`Duplicate version '${nextVersion}' in migration chain`);\n\t\tconst step = {\n\t\t\tfromVersion: this.versionChain[this.versionChain.length - 1],\n\t\t\ttoVersion: nextVersion,\n\t\t\tmigrate: fn\n\t\t};\n\t\treturn {\n\t\t\tversionChain: [...this.versionChain, nextVersion],\n\t\t\tsteps: [...this.migrationSteps, step]\n\t\t};\n\t}\n\t/** Validates uniqueness and records a TransferStep. */\n\tbuildTransfer(target, extract) {\n\t\tif (this.transferSteps.some((t) => t.pluginId === target.id)) throw new Error(`Duplicate transfer for plugin '${target.id}'`);\n\t\tconst entry = {\n\t\t\tpluginId: target.id,\n\t\t\tbeforeStepIndex: this.migrationSteps.length,\n\t\t\textract,\n\t\t\ttargetVersion: target.transferVersion\n\t\t};\n\t\treturn { transferSteps: [...this.transferSteps, entry] };\n\t}\n\t/** Returns recover-specific fields for DataModel construction. Overridden by WithRecover. */\n\trecoverState() {\n\t\treturn {};\n\t}\n\t/**\n\t* Finalize the DataModel with initial data factory.\n\t*\n\t* @param initialData - Factory function returning the initial state\n\t* @returns Finalized DataModel instance\n\t*/\n\tinit(initialData) {\n\t\treturn DataModel[FROM_BUILDER]({\n\t\t\tversionChain: this.versionChain,\n\t\t\tsteps: this.migrationSteps,\n\t\t\ttransferSteps: this.transferSteps,\n\t\t\tinitialDataFn: initialData,\n\t\t\t...this.recoverState()\n\t\t});\n\t}\n};\n/**\n* Migration chain after recover() or upgradeLegacy() has been called.\n* Further migrate() and transfer() calls are allowed; recover() and upgradeLegacy() are not\n* (enforced by type — no such methods on this class).\n*\n* @typeParam Current - Data type at the current point in the chain\n* @typeParam Transfers - Accumulated transfer types keyed by plugin ID\n* @internal\n*/\nvar DataModelMigrationChainWithRecover = class DataModelMigrationChainWithRecover extends MigrationChainBase {\n\trecoverFn;\n\trecoverFromIndex;\n\t/** @internal */\n\tconstructor(state) {\n\t\tsuper(state);\n\t\tthis.recoverFn = state.recoverFn;\n\t\tthis.recoverFromIndex = state.recoverFromIndex;\n\t}\n\trecoverState() {\n\t\treturn {\n\t\t\trecoverFn: this.recoverFn,\n\t\t\trecoverFromIndex: this.recoverFromIndex\n\t\t};\n\t}\n\t/**\n\t* Add a migration step. Same semantics as on the base chain.\n\t* recover() and upgradeLegacy() are not available — one has already been called.\n\t*/\n\tmigrate(nextVersion, fn) {\n\t\tconst { versionChain, steps } = this.buildStep(nextVersion, fn);\n\t\treturn new DataModelMigrationChainWithRecover({\n\t\t\tversionChain,\n\t\t\tsteps,\n\t\t\ttransferSteps: this.transferSteps,\n\t\t\trecoverFn: this.recoverFn,\n\t\t\trecoverFromIndex: this.recoverFromIndex\n\t\t});\n\t}\n\t/**\n\t* Extract data at the current chain position for seeding a new plugin.\n\t* The extract function's return type must match the plugin's transfer data type.\n\t* Duplicate plugin IDs are rejected at both type and runtime level.\n\t*/\n\ttransfer(target, extract) {\n\t\tconst { transferSteps } = this.buildTransfer(target, extract);\n\t\treturn new DataModelMigrationChainWithRecover({\n\t\t\tversionChain: this.versionChain,\n\t\t\tsteps: this.migrationSteps,\n\t\t\ttransferSteps,\n\t\t\trecoverFn: this.recoverFn,\n\t\t\trecoverFromIndex: this.recoverFromIndex\n\t\t});\n\t}\n};\n/**\n* Migration chain builder.\n* Each migrate() call advances the current data type. recover() can be called once\n* at any point — it removes itself from the returned chain so it cannot be called again.\n* Duplicate version keys throw at runtime.\n*\n* @typeParam Current - Data type at the current point in the migration chain\n* @typeParam Transfers - Accumulated transfer types keyed by plugin ID\n* @internal\n*/\nvar DataModelMigrationChain = class DataModelMigrationChain extends MigrationChainBase {\n\t/** @internal */\n\tconstructor({ versionChain, steps = [], transferSteps = [] }) {\n\t\tsuper({\n\t\t\tversionChain,\n\t\t\tsteps,\n\t\t\ttransferSteps\n\t\t});\n\t}\n\t/**\n\t* Add a migration step transforming data from the current version to the next.\n\t*\n\t* @typeParam Next - Data type of the next version\n\t* @param nextVersion - Version key to migrate to (must be unique in the chain)\n\t* @param fn - Migration function\n\t* @returns Builder with the next version as current\n\t*\n\t* @example\n\t* .migrate<BlockDataV2>(\"v2\", (v1) => ({ ...v1, labels: [] }))\n\t*/\n\tmigrate(nextVersion, fn) {\n\t\tconst { versionChain, steps } = this.buildStep(nextVersion, fn);\n\t\treturn new DataModelMigrationChain({\n\t\t\tversionChain,\n\t\t\tsteps,\n\t\t\ttransferSteps: this.transferSteps\n\t\t});\n\t}\n\t/**\n\t* Extract data at the current chain position for seeding a new plugin.\n\t* The extract function's return type must match the plugin's transfer data type.\n\t* Duplicate plugin IDs are rejected at both type and runtime level.\n\t*\n\t* Calling .transfer() on DataModelInitialChain returns DataModelMigrationChain,\n\t* which removes .upgradeLegacy() from the chain (preventing a problematic combination).\n\t*\n\t* @example\n\t* .from<V1>(\"v1\")\n\t* .transfer(tablePlugin, (v1) => ({ state: v1.tableState }))\n\t* .migrate<V2>(\"v2\", ({ tableState: _, ...rest }) => rest)\n\t*/\n\ttransfer(target, extract) {\n\t\tconst { transferSteps } = this.buildTransfer(target, extract);\n\t\treturn new DataModelMigrationChain({\n\t\t\tversionChain: this.versionChain,\n\t\t\tsteps: this.migrationSteps,\n\t\t\ttransferSteps\n\t\t});\n\t}\n\t/**\n\t* Set a recovery handler for unknown or legacy versions.\n\t*\n\t* The recover function is called when data has a version not in the migration chain.\n\t* It must return data of the type at this point in the chain (Current). Any migrate()\n\t* steps added after recover() will then run on the recovered data.\n\t*\n\t* Can only be called once — the returned chain has no recover() method.\n\t*\n\t* @param fn - Recovery function returning Current (the type at this chain position)\n\t* @returns Builder with migrate() and init() but without recover()\n\t*\n\t* @example\n\t* // Recover between migrations — recovered data goes through v3 migration\n\t* new DataModelBuilder<V1>(\"v1\")\n\t* .migrate<V2>(\"v2\", (v1) => ({ ...v1, label: \"\" }))\n\t* .recover((version, data) => {\n\t* if (version === 'legacy') return transformLegacy(data); // returns V2\n\t* return defaultRecover(version, data);\n\t* })\n\t* .migrate<V3>(\"v3\", (v2) => ({ ...v2, description: \"\" }))\n\t* .init(() => ({ count: 0, label: \"\", description: \"\" }));\n\t*/\n\trecover(fn) {\n\t\treturn new DataModelMigrationChainWithRecover({\n\t\t\tversionChain: this.versionChain,\n\t\t\tsteps: this.migrationSteps,\n\t\t\ttransferSteps: this.transferSteps,\n\t\t\trecoverFn: fn,\n\t\t\trecoverFromIndex: this.migrationSteps.length\n\t\t});\n\t}\n};\n/**\n* Initial migration chain returned by `.from()`.\n* Extends DataModelMigrationChain with `upgradeLegacy()` — available only before\n* any `.migrate()` calls, since legacy data always arrives at the initial version.\n*\n* @typeParam Current - Data type at the initial version\n* @typeParam Transfers - Accumulated transfer types keyed by plugin ID\n* @internal\n*/\nvar DataModelInitialChain = class extends DataModelMigrationChain {\n\t/**\n\t* Handle legacy V1 model state ({ args, uiState }) when upgrading a block from\n\t* BlockModel V1 to BlockModelV3.\n\t*\n\t* When a V1 block is upgraded, its stored state `{ args, uiState }` is normalized\n\t* to the internal default version. This method inserts a migration step from that\n\t* internal version to the version specified in `.from()`, using the provided typed\n\t* callback to transform the legacy shape. Non-legacy data passes through unchanged.\n\t*\n\t* Must be called right after `.from()` — not available after `.migrate()` calls.\n\t* Any `.migrate()` steps added after `upgradeLegacy()` will run on the transformed result.\n\t*\n\t* Can only be called once — the returned chain has no upgradeLegacy() method.\n\t* Mutually exclusive with recover().\n\t*\n\t* @typeParam Args - Type of the legacy block args\n\t* @typeParam UiState - Type of the legacy block uiState\n\t* @param fn - Typed transform from { args, uiState } to Current\n\t* @returns Builder with migrate() and init() but without recover() or upgradeLegacy()\n\t*\n\t* @example\n\t* type OldArgs = { inputFile: string; threshold: number };\n\t* type OldUiState = { selectedTab: string };\n\t* type BlockData = { inputFile: string; threshold: number; selectedTab: string };\n\t*\n\t* const dataModel = new DataModelBuilder()\n\t* .from<BlockData>(\"v1\")\n\t* .upgradeLegacy<OldArgs, OldUiState>(({ args, uiState }) => ({\n\t* inputFile: args.inputFile,\n\t* threshold: args.threshold,\n\t* selectedTab: uiState.selectedTab,\n\t* }))\n\t* .init(() => ({ inputFile: '', threshold: 0, selectedTab: 'main' }));\n\t*/\n\tupgradeLegacy(fn) {\n\t\tconst wrappedFn = (data) => {\n\t\t\tif (data !== null && typeof data === \"object\" && \"args\" in data) return fn(data);\n\t\t\treturn data;\n\t\t};\n\t\tconst step = {\n\t\t\tfromVersion: DATA_MODEL_LEGACY_VERSION,\n\t\t\ttoVersion: this.versionChain[0],\n\t\t\tmigrate: wrappedFn\n\t\t};\n\t\treturn new DataModelMigrationChainWithRecover({\n\t\t\tversionChain: [DATA_MODEL_LEGACY_VERSION, ...this.versionChain],\n\t\t\tsteps: [step, ...this.migrationSteps],\n\t\t\ttransferSteps: this.transferSteps.map((t) => ({\n\t\t\t\t...t,\n\t\t\t\tbeforeStepIndex: t.beforeStepIndex + 1\n\t\t\t}))\n\t\t});\n\t}\n};\n/**\n* Builder entry point for creating DataModel with type-safe migrations.\n*\n* @example\n* // Simple (no migrations):\n* const dataModel = new DataModelBuilder()\n* .from<BlockData>(\"v1\")\n* .init(() => ({ numbers: [] }));\n*\n* @example\n* // With migrations:\n* const dataModel = new DataModelBuilder()\n* .from<BlockDataV1>(\"v1\")\n* .migrate<BlockDataV2>(\"v2\", (v1) => ({ ...v1, labels: [] }))\n* .migrate<BlockDataV3>(\"v3\", (v2) => ({ ...v2, description: '' }))\n* .init(() => ({ numbers: [], labels: [], description: '' }));\n*\n* @example\n* // With recover() between migrations — recovered data goes through remaining migrations:\n* const dataModelChain = new DataModelBuilder()\n* .from<BlockDataV1>(\"v1\")\n* .migrate<BlockDataV2>(\"v2\", (v1) => ({ ...v1, labels: [] }));\n*\n* // recover() placed before the v3 migration: recovered data goes through v3\n* const dataModel = dataModelChain\n* .recover((version, data) => {\n* if (version === 'legacy' && isLegacyData(data)) return transformLegacy(data); // returns V2\n* return defaultRecover(version, data);\n* })\n* .migrate<BlockDataV3>(\"v3\", (v2) => ({ ...v2, description: '' }))\n* .init(() => ({ numbers: [], labels: [], description: '' }));\n*\n* @example\n* // With upgradeLegacy() — typed upgrade from BlockModel V1 state:\n* type OldArgs = { inputFile: string };\n* type OldUiState = { selectedTab: string };\n* type BlockData = { inputFile: string; selectedTab: string };\n*\n* const dataModel = new DataModelBuilder()\n* .from<BlockData>(\"v1\")\n* .upgradeLegacy<OldArgs, OldUiState>(({ args, uiState }) => ({\n* inputFile: args.inputFile,\n* selectedTab: uiState.selectedTab,\n* }))\n* .init(() => ({ inputFile: '', selectedTab: 'main' }));\n*/\nvar DataModelBuilder = class {\n\t/**\n\t* Start the migration chain with the given initial data type and version key.\n\t*\n\t* @typeParam T - Data type for the initial version\n\t* @param initialVersion - Version key string (e.g. \"v1\")\n\t* @returns Migration chain builder\n\t*/\n\tfrom(initialVersion) {\n\t\treturn new DataModelInitialChain({ versionChain: [initialVersion] });\n\t}\n};\n/**\n* DataModel defines the block's data structure, initial values, and migrations.\n* Used by BlockModelV3 to manage data state.\n*\n* Use `new DataModelBuilder()` to create a DataModel.\n*\n* @example\n* // With recover() between migrations:\n* // Recovered data (V2) goes through the v2→v3 migration automatically.\n* const dataModel = new DataModelBuilder()\n* .from<V1>(\"v1\")\n* .migrate<V2>(\"v2\", (v1) => ({ ...v1, label: \"\" }))\n* .recover((version, data) => {\n* if (version === \"legacy\") return transformLegacy(data); // returns V2\n* return defaultRecover(version, data);\n* })\n* .migrate<V3>(\"v3\", (v2) => ({ ...v2, description: \"\" }))\n* .init(() => ({ count: 0, label: \"\", description: \"\" }));\n*/\nvar DataModel = class DataModel {\n\t/** Latest version key — O(1) access for the common \"already current\" check. */\n\tlatestVersion;\n\t/** Maps each known version key to the index of the first step to run from it. O(1) lookup. */\n\tstepsByFromVersion;\n\tsteps;\n\ttransferSteps;\n\tinitialDataFn;\n\trecoverFn;\n\trecoverFromIndex;\n\tconstructor({ versionChain, steps, transferSteps = [], initialDataFn, recoverFn = defaultRecover, recoverFromIndex }) {\n\t\tif (versionChain.length === 0) throw new Error(\"DataModel requires at least one version key\");\n\t\tthis.latestVersion = versionChain[versionChain.length - 1];\n\t\tthis.stepsByFromVersion = new Map(versionChain.map((v, i) => [v, i]));\n\t\tthis.steps = steps;\n\t\tthis.transferSteps = transferSteps;\n\t\tthis.initialDataFn = initialDataFn;\n\t\tthis.recoverFn = recoverFn;\n\t\tthis.recoverFromIndex = recoverFromIndex ?? steps.length;\n\t}\n\t/**\n\t* Internal method for creating DataModel from builder.\n\t* Uses Symbol key to prevent external access.\n\t* @internal\n\t*/\n\tstatic [FROM_BUILDER](state) {\n\t\treturn new DataModel(state);\n\t}\n\t/**\n\t* The latest (current) version key in the migration chain.\n\t*/\n\tget version() {\n\t\treturn this.latestVersion;\n\t}\n\t/**\n\t* Get a fresh copy of the initial data.\n\t*/\n\tinitialData() {\n\t\treturn this.initialDataFn();\n\t}\n\t/**\n\t* Get initial data wrapped with current version.\n\t* Used when creating new blocks or resetting to defaults.\n\t*/\n\tgetDefaultData() {\n\t\treturn makeVersionedData(this.latestVersion, this.initialDataFn());\n\t}\n\trecoverFrom(data, version) {\n\t\tlet currentData = this.recoverFn(version, data);\n\t\tfor (let i = this.recoverFromIndex; i < this.steps.length; i++) currentData = this.steps[i].migrate(currentData);\n\t\treturn {\n\t\t\tversion: this.latestVersion,\n\t\t\tdata: currentData\n\t\t};\n\t}\n\t/**\n\t* Migrate versioned data from any version to the latest.\n\t* Collects transfer extractions at their designated chain positions.\n\t*\n\t* - If version is in chain, applies needed migrations (O(1) lookup)\n\t* - If version is unknown, attempts recovery; falls back to initial data\n\t* - If a migration step fails, throws so the caller can preserve original data\n\t*\n\t* Transfers only fire during normal step-by-step migration:\n\t* - Recovery path: returns empty transfers\n\t* - Fast-path (already at latest): returns empty transfers\n\t*\n\t* @param versioned - Data with version tag\n\t* @returns Migrated data at the latest version with transfer record\n\t* @throws If a migration step from a known version fails\n\t*/\n\tmigrate(versioned) {\n\t\tconst { version: fromVersion, data } = versioned;\n\t\tif (fromVersion === this.latestVersion) return {\n\t\t\tversion: this.latestVersion,\n\t\t\tdata,\n\t\t\ttransfers: {}\n\t\t};\n\t\tconst startIndex = this.stepsByFromVersion.get(fromVersion);\n\t\tif (startIndex === void 0) try {\n\t\t\treturn {\n\t\t\t\t...this.recoverFrom(data, fromVersion),\n\t\t\t\ttransfers: {}\n\t\t\t};\n\t\t} catch {\n\t\t\treturn {\n\t\t\t\t...this.getDefaultData(),\n\t\t\t\ttransfers: {}\n\t\t\t};\n\t\t}\n\t\tlet currentData = data;\n\t\tconst transfers = {};\n\t\tfor (let i = startIndex; i < this.steps.length; i++) {\n\t\t\tfor (const t of this.transferSteps) if (t.beforeStepIndex === i) transfers[t.pluginId] = {\n\t\t\t\tversion: t.targetVersion,\n\t\t\t\tdata: t.extract(currentData)\n\t\t\t};\n\t\t\tcurrentData = this.steps[i].migrate(currentData);\n\t\t}\n\t\tfor (const t of this.transferSteps) if (t.beforeStepIndex >= this.steps.length && t.beforeStepIndex >= startIndex) transfers[t.pluginId] = {\n\t\t\tversion: t.targetVersion,\n\t\t\tdata: t.extract(currentData)\n\t\t};\n\t\treturn {\n\t\t\tversion: this.latestVersion,\n\t\t\tdata: currentData,\n\t\t\ttransfers\n\t\t};\n\t}\n};\n\n//#endregion\nexport { DataModel, DataModelBuilder, isDataUnrecoverableError };\n//# sourceMappingURL=block_migrations.js.map","//#region src/internal.ts\n/** Utility code helping to identify whether the code is running in actual UI environment */\nfunction isInUI() {\n\treturn typeof globalThis.getPlatforma !== \"undefined\" || typeof globalThis.platforma !== \"undefined\";\n}\n/** Utility code helping to retrieve a platforma instance form the environment */\nfunction getPlatformaInstance(config) {\n\tif (config && typeof globalThis.getPlatforma === \"function\") return globalThis.getPlatforma(config);\n\telse if (typeof globalThis.platforma !== \"undefined\") return globalThis.platforma;\n\telse throw new Error(\"Can't get platforma instance.\");\n}\nfunction tryGetCfgRenderCtx() {\n\tif (typeof globalThis.cfgRenderCtx !== \"undefined\") return globalThis.cfgRenderCtx;\n\telse return void 0;\n}\nfunction getCfgRenderCtx() {\n\tif (typeof globalThis.cfgRenderCtx !== \"undefined\") return globalThis.cfgRenderCtx;\n\telse throw new Error(\"Not in config rendering context\");\n}\nfunction tryRegisterCallback(key, callback) {\n\tconst ctx = tryGetCfgRenderCtx();\n\tif (ctx === void 0) return false;\n\tif (key in ctx.callbackRegistry) throw new Error(`Callback with key ${key} already registered.`);\n\tctx.callbackRegistry[key] = callback;\n\treturn true;\n}\n/**\n* Registers a callback, replacing any existing callback with the same key.\n* Use this for callbacks that have a default value but can be overridden.\n*\n* @param key - The callback registry key\n* @param callback - The callback function to register\n* @returns true if registered, false if not in render context\n*/\nfunction replaceCallback(key, callback) {\n\tconst ctx = tryGetCfgRenderCtx();\n\tif (ctx === void 0) return false;\n\tctx.callbackRegistry[key] = callback;\n\treturn true;\n}\n/** Creates a ConfigRenderLambda descriptor without registering a callback. */\nfunction createRenderLambda(opts) {\n\tconst { handle, ...flags } = opts;\n\treturn {\n\t\t__renderLambda: true,\n\t\thandle,\n\t\t...flags\n\t};\n}\n/** Registers a callback and returns a ConfigRenderLambda descriptor. */\nfunction createAndRegisterRenderLambda(opts, replace) {\n\tconst { handle, lambda, ...flags } = opts;\n\tif (replace) replaceCallback(handle, lambda);\n\telse tryRegisterCallback(handle, lambda);\n\treturn createRenderLambda({\n\t\thandle,\n\t\t...flags\n\t});\n}\nconst futureResolves = /* @__PURE__ */ new Map();\nfunction registerFutureAwait(handle, onResolve) {\n\tif (!(handle in getCfgRenderCtx().callbackRegistry)) {\n\t\tgetCfgRenderCtx().callbackRegistry[handle] = (value) => {\n\t\t\tfor (const res of futureResolves.get(handle)) res(value);\n\t\t};\n\t\tfutureResolves.set(handle, []);\n\t}\n\tfutureResolves.get(handle).push(onResolve);\n}\n\n//#endregion\nexport { createAndRegisterRenderLambda, createRenderLambda, getCfgRenderCtx, getPlatformaInstance, isInUI, registerFutureAwait, tryRegisterCallback };\n//# sourceMappingURL=internal.js.map","import { createRenderLambda, tryRegisterCallback } from \"./internal.js\";\n\n//#region src/block_storage_facade.ts\n/**\n* The current facade version. This value is used for `requiresModelAPIVersion`\n* feature flag in BlockModelV3.\n*/\nconst BLOCK_STORAGE_FACADE_VERSION = 2;\n/**\n* All facade callback names as constants.\n* These are the source of truth - the interface is derived from these.\n*\n* IMPORTANT: When adding a new callback:\n* 1. Add the constant here\n* 2. Add the callback signature to FacadeCallbackTypes below\n* 3. The BlockStorageFacade type will automatically include it\n*/\nconst BlockStorageFacadeCallbacks = {\n\tStorageApplyUpdate: \"__pl_storage_applyUpdate\",\n\tStorageDebugView: \"__pl_storage_debugView\",\n\tStorageMigrate: \"__pl_storage_migrate\",\n\tArgsDerive: \"__pl_args_derive\",\n\tPrerunArgsDerive: \"__pl_prerunArgs_derive\",\n\tStorageInitial: \"__pl_storage_initial\"\n};\n/**\n* Creates a map of lambda handles from a callbacks constant object.\n* Keys are the callback string values (e.g., '__pl_storage_applyUpdate').\n*/\nfunction createFacadeHandles(callbacks) {\n\treturn Object.fromEntries(Object.values(callbacks).map((handle) => [handle, createRenderLambda({ handle })]));\n}\n/**\n* Lambda handles for facade callbacks.\n* Used by the middle layer to invoke callbacks via executeSingleLambda().\n*/\nconst BlockStorageFacadeHandles = createFacadeHandles(BlockStorageFacadeCallbacks);\n/** Register all facade callbacks at once. Ensures all required callbacks are provided. */\nfunction registerFacadeCallbacks(callbacks) {\n\tfor (const key of Object.values(BlockStorageFacadeCallbacks)) tryRegisterCallback(key, callbacks[key]);\n}\n\n//#endregion\nexport { BLOCK_STORAGE_FACADE_VERSION, BlockStorageFacadeCallbacks, BlockStorageFacadeHandles, registerFacadeCallbacks };\n//# sourceMappingURL=block_storage_facade.js.map","//#region src/config/actions.ts\nfunction primitiveToConfig(value) {\n\tif (typeof value === \"string\" || typeof value === \"number\" || typeof value === \"boolean\" || value === null) return getImmediate(value);\n\telse return value;\n}\nfunction getFromCfg(variable) {\n\treturn {\n\t\ttype: \"GetFromCtx\",\n\t\tvariable\n\t};\n}\nfunction isolate(cfg) {\n\treturn {\n\t\ttype: \"Isolate\",\n\t\tcfg\n\t};\n}\nconst Args = getFromCfg(\"$args\");\nconst It = getFromCfg(\"$it\");\nconst MainOutputs = getFromCfg(\"$prod\");\nconst StagingOutputs = getFromCfg(\"$staging\");\nconst UiState = getFromCfg(\"$ui\");\nfunction getImmediate(value) {\n\treturn {\n\t\ttype: \"Immediate\",\n\t\tvalue\n\t};\n}\nfunction makeObject(template) {\n\tconst normalizedTemplate = {};\n\tfor (const [k, cfg] of Object.entries(template)) normalizedTemplate[k] = primitiveToConfig(cfg);\n\treturn {\n\t\ttype: \"MakeObject\",\n\t\ttemplate: normalizedTemplate\n\t};\n}\nfunction makeArray(...template) {\n\tconst normalizedTemplate = [];\n\tfor (const cfg of template) normalizedTemplate.push(primitiveToConfig(cfg));\n\treturn {\n\t\ttype: \"MakeArray\",\n\t\ttemplate: normalizedTemplate\n\t};\n}\nfunction getJsonField(source, field) {\n\treturn {\n\t\ttype: \"GetJsonField\",\n\t\tsource: primitiveToConfig(source),\n\t\tfield: primitiveToConfig(field)\n\t};\n}\nfunction mapRecordValues(source, mapping, itVar = \"$it\") {\n\treturn {\n\t\ttype: \"MapRecordValues\",\n\t\tsource,\n\t\tmapping,\n\t\titVar\n\t};\n}\nfunction mapArrayValues(source, mapping, itVar = \"$it\") {\n\treturn {\n\t\ttype: \"MapArrayValues\",\n\t\tsource,\n\t\tmapping,\n\t\titVar\n\t};\n}\nfunction flatten(source) {\n\treturn {\n\t\ttype: \"Flatten\",\n\t\tsource\n\t};\n}\nfunction isEmpty(arg) {\n\treturn {\n\t\ttype: \"IsEmpty\",\n\t\targ\n\t};\n}\nfunction not(operand) {\n\treturn {\n\t\ttype: \"Not\",\n\t\toperand\n\t};\n}\nfunction and(operand1, operand2) {\n\treturn {\n\t\ttype: \"And\",\n\t\toperand1,\n\t\toperand2\n\t};\n}\nfunction or(operand1, operand2) {\n\treturn {\n\t\ttype: \"Or\",\n\t\toperand1,\n\t\toperand2\n\t};\n}\nfunction getResourceField(source, field) {\n\treturn {\n\t\ttype: \"GetResourceField\",\n\t\tsource: primitiveToConfig(source),\n\t\tfield: primitiveToConfig(field)\n\t};\n}\nfunction getResourceValueAsJson() {\n\treturn function(source) {\n\t\treturn {\n\t\t\ttype: \"GetResourceValueAsJson\",\n\t\t\tsource: primitiveToConfig(source)\n\t\t};\n\t};\n}\nfunction mapResourceFields(source, mapping, itVar = \"$it\") {\n\treturn {\n\t\ttype: \"MapResourceFields\",\n\t\tsource,\n\t\tmapping,\n\t\titVar\n\t};\n}\nfunction getBlobContent(source, range) {\n\treturn {\n\t\ttype: \"GetBlobContent\",\n\t\trange,\n\t\tsource: primitiveToConfig(source)\n\t};\n}\nfunction getBlobContentAsString(source, range) {\n\treturn {\n\t\ttype: \"GetBlobContentAsString\",\n\t\trange,\n\t\tsource: primitiveToConfig(source)\n\t};\n}\nfunction getBlobContentAsJson() {\n\treturn function(source, range) {\n\t\treturn {\n\t\t\ttype: \"GetBlobContentAsJson\",\n\t\t\trange,\n\t\t\tsource: primitiveToConfig(source)\n\t\t};\n\t};\n}\nfunction getDownloadedBlobContent(source) {\n\treturn {\n\t\ttype: \"GetDownloadedBlobContent\",\n\t\tsource: primitiveToConfig(source)\n\t};\n}\nfunction getOnDemandBlobContent(source) {\n\treturn {\n\t\ttype: \"GetOnDemandBlobContent\",\n\t\tsource: primitiveToConfig(source)\n\t};\n}\nfunction extractArchiveAndGetURL(source, format) {\n\treturn {\n\t\ttype: \"ExtractArchiveAndGetURL\",\n\t\tformat,\n\t\tsource: primitiveToConfig(source)\n\t};\n}\nfunction getImportProgress(source) {\n\treturn {\n\t\ttype: \"GetImportProgress\",\n\t\tsource: primitiveToConfig(source)\n\t};\n}\nfunction getLastLogs(source, lines) {\n\treturn {\n\t\ttype: \"GetLastLogs\",\n\t\tsource: primitiveToConfig(source),\n\t\tlines\n\t};\n}\nfunction getProgressLog(source, patternToSearch) {\n\treturn {\n\t\ttype: \"GetProgressLog\",\n\t\tsource: primitiveToConfig(source),\n\t\tpatternToSearch\n\t};\n}\nfunction getProgressLogWithInfo(source, patternToSearch) {\n\treturn {\n\t\ttype: \"GetProgressLogWithInfo\",\n\t\tsource: primitiveToConfig(source),\n\t\tpatternToSearch\n\t};\n}\nfunction getLogHandle(source) {\n\treturn {\n\t\ttype: \"GetLogHandle\",\n\t\tsource: primitiveToConfig(source)\n\t};\n}\n\n//#endregion\nexport { Args, It, MainOutputs, StagingOutputs, UiState, and, extractArchiveAndGetURL, flatten, getBlobContent, getBlobContentAsJson, getBlobContentAsString, getDownloadedBlobContent, getFromCfg, getImmediate, getImportProgress, getJsonField, getLastLogs, getLogHandle, getOnDemandBlobContent, getProgressLog, getProgressLogWithInfo, getResourceField, getResourceValueAsJson, isEmpty, isolate, makeArray, makeObject, mapArrayValues, mapRecordValues, mapResourceFields, not, or };\n//# sourceMappingURL=actions.js.map","import { registerFutureAwait } from \"../internal.js\";\n\n//#region src/render/future.ts\nvar FutureRef = class FutureRef {\n\tisResolved = false;\n\tresolvedValue;\n\tconstructor(handle, postProcess = (v) => v) {\n\t\tthis.handle = handle;\n\t\tthis.postProcess = postProcess;\n\t\tregisterFutureAwait(handle, (value) => {\n\t\t\tthis.resolvedValue = postProcess(value);\n\t\t\tthis.isResolved = true;\n\t\t});\n\t}\n\tmap(mapping) {\n\t\treturn new FutureRef(this.handle, (v) => mapping(this.postProcess(v)));\n\t}\n\tmapDefined(mapping) {\n\t\treturn new FutureRef(this.handle, (v) => {\n\t\t\tconst vv = this.postProcess(v);\n\t\t\treturn vv ? mapping(vv) : void 0;\n\t\t});\n\t}\n\ttoJSON() {\n\t\treturn this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };\n\t}\n};\n\n//#endregion\nexport { FutureRef };\n//# sourceMappingURL=future.js.map","var util;\n(function (util) {\n util.assertEqual = (val) => val;\n function assertIs(_arg) { }\n util.assertIs = assertIs;\n function assertNever(_x) {\n throw new Error();\n }\n util.assertNever = assertNever;\n util.arrayToEnum = (items) => {\n const obj = {};\n for (const item of items) {\n obj[item] = item;\n }\n return obj;\n };\n util.getValidEnumValues = (obj) => {\n const validKeys = util.objectKeys(obj).filter((k) => typeof obj[obj[k]] !== \"number\");\n const filtered = {};\n for (const k of validKeys) {\n filtered[k] = obj[k];\n }\n return util.objectValues(filtered);\n };\n util.objectValues = (obj) => {\n return util.objectKeys(obj).map(function (e) {\n return obj[e];\n });\n };\n util.objectKeys = typeof Object.keys === \"function\" // eslint-disable-line ban/ban\n ? (obj) => Object.keys(obj) // eslint-disable-line ban/ban\n : (object) => {\n const keys = [];\n for (const key in object) {\n if (Object.prototype.hasOwnProperty.call(object, key)) {\n keys.push(key);\n }\n }\n return keys;\n };\n util.find = (arr, checker) => {\n for (const item of arr) {\n if (checker(item))\n return item;\n }\n return undefined;\n };\n util.isInteger = typeof Number.isInteger === \"function\"\n ? (val) => Number.isInteger(val) // eslint-disable-line ban/ban\n : (val) => typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n function joinValues(array, separator = \" | \") {\n return array\n .map((val) => (typeof val === \"string\" ? `'${val}'` : val))\n .join(separator);\n }\n util.joinValues = joinValues;\n util.jsonStringifyReplacer = (_, value) => {\n if (typeof value === \"bigint\") {\n return value.toString();\n }\n return value;\n };\n})(util || (util = {}));\nvar objectUtil;\n(function (objectUtil) {\n objectUtil.mergeShapes = (first, second) => {\n return {\n ...first,\n ...second, // second overwrites first\n };\n };\n})(objectUtil || (objectUtil = {}));\nconst ZodParsedType = util.arrayToEnum([\n \"string\",\n \"nan\",\n \"number\",\n \"integer\",\n \"float\",\n \"boolean\",\n \"date\",\n \"bigint\",\n \"symbol\",\n \"function\",\n \"undefined\",\n \"null\",\n \"array\",\n \"object\",\n \"unknown\",\n \"promise\",\n \"void\",\n \"never\",\n \"map\",\n \"set\",\n]);\nconst getParsedType = (data) => {\n const t = typeof data;\n switch (t) {\n case \"undefined\":\n return ZodParsedType.undefined;\n case \"string\":\n return ZodParsedType.string;\n case \"number\":\n return isNaN(data) ? ZodParsedType.nan : ZodParsedType.number;\n case \"boolean\":\n return ZodParsedType.boolean;\n case \"function\":\n return ZodParsedType.function;\n case \"bigint\":\n return ZodParsedType.bigint;\n case \"symbol\":\n return ZodParsedType.symbol;\n case \"object\":\n if (Array.isArray(data)) {\n return ZodParsedType.array;\n }\n if (data === null) {\n return ZodParsedType.null;\n }\n if (data.then &&\n typeof data.then === \"function\" &&\n data.catch &&\n typeof data.catch === \"function\") {\n return ZodParsedType.promise;\n }\n if (typeof Map !== \"undefined\" && data instanceof Map) {\n return ZodParsedType.map;\n }\n if (typeof Set !== \"undefined\" && data instanceof Set) {\n return ZodParsedType.set;\n }\n if (typeof Date !== \"undefined\" && data instanceof Date) {\n return ZodParsedType.date;\n }\n return ZodParsedType.object;\n default:\n return ZodParsedType.unknown;\n }\n};\n\nconst ZodIssueCode = util.arrayToEnum([\n \"invalid_type\",\n \"invalid_literal\",\n \"custom\",\n \"invalid_union\",\n \"invalid_union_discriminator\",\n \"invalid_enum_value\",\n \"unrecognized_keys\",\n \"invalid_arguments\",\n \"invalid_return_type\",\n \"invalid_date\",\n \"invalid_string\",\n \"too_small\",\n \"too_big\",\n \"invalid_intersection_types\",\n \"not_multiple_of\",\n \"not_finite\",\n]);\nconst quotelessJson = (obj) => {\n const json = JSON.stringify(obj, null, 2);\n return json.replace(/\"([^\"]+)\":/g, \"$1:\");\n};\nclass ZodError extends Error {\n constructor(issues) {\n super();\n this.issues = [];\n this.addIssue = (sub) => {\n this.issues = [...this.issues, sub];\n };\n this.addIssues = (subs = []) => {\n this.issues = [...this.issues, ...subs];\n };\n const actualProto = new.target.prototype;\n if (Object.setPrototypeOf) {\n // eslint-disable-next-line ban/ban\n Object.setPrototypeOf(this, actualProto);\n }\n else {\n this.__proto__ = actualProto;\n }\n this.name = \"ZodError\";\n this.issues = issues;\n }\n get errors() {\n return this.issues;\n }\n format(_mapper) {\n const mapper = _mapper ||\n function (issue) {\n return issue.message;\n };\n const fieldErrors = { _errors: [] };\n const processError = (error) => {\n for (const issue of error.issues) {\n if (issue.code === \"invalid_union\") {\n issue.unionErrors.map(processError);\n }\n else if (issue.code === \"invalid_return_type\") {\n processError(issue.returnTypeError);\n }\n else if (issue.code === \"invalid_arguments\") {\n processError(issue.argumentsError);\n }\n else if (issue.path.length === 0) {\n fieldErrors._errors.push(mapper(issue));\n }\n else {\n let curr = fieldErrors;\n let i = 0;\n while (i < issue.path.length) {\n const el = issue.path[i];\n const terminal = i === issue.path.length - 1;\n if (!terminal) {\n curr[el] = curr[el] || { _errors: [] };\n // if (typeof el === \"string\") {\n // curr[el] = curr[el] || { _errors: [] };\n // } else if (typeof el === \"number\") {\n // const errorArray: any = [];\n // errorArray._errors = [];\n // curr[el] = curr[el] || errorArray;\n // }\n }\n else {\n curr[el] = curr[el] || { _errors: [] };\n curr[el]._errors.push(mapper(issue));\n }\n curr = curr[el];\n i++;\n }\n }\n }\n };\n processError(this);\n return fieldErrors;\n }\n static assert(value) {\n if (!(value instanceof ZodError)) {\n throw new Error(`Not a ZodError: ${value}`);\n }\n }\n toString() {\n return this.message;\n }\n get message() {\n return JSON.stringify(this.issues, util.jsonStringifyReplacer, 2);\n }\n get isEmpty() {\n return this.issues.length === 0;\n }\n flatten(mapper = (issue) => issue.message) {\n const fieldErrors = {};\n const formErrors = [];\n for (const sub of this.issues) {\n if (sub.path.length > 0) {\n fieldErrors[sub.path[0]] = fieldErrors[sub.path[0]] || [];\n fieldErrors[sub.path[0]].push(mapper(sub));\n }\n else {\n formErrors.push(mapper(sub));\n }\n }\n return { formErrors, fieldErrors };\n }\n get formErrors() {\n return this.flatten();\n }\n}\nZodError.create = (issues) => {\n const error = new ZodError(issues);\n return error;\n};\n\nconst errorMap = (issue, _ctx) => {\n let message;\n switch (issue.code) {\n case ZodIssueCode.invalid_type:\n if (issue.received === ZodParsedType.undefined) {\n message = \"Required\";\n }\n else {\n message = `Expected ${issue.expected}, received ${issue.received}`;\n }\n break;\n case ZodIssueCode.invalid_literal:\n message = `Invalid literal value, expected ${JSON.stringify(issue.expected, util.jsonStringifyReplacer)}`;\n break;\n case ZodIssueCode.unrecognized_keys:\n message = `Unrecognized key(s) in object: ${util.joinValues(issue.keys, \", \")}`;\n break;\n case ZodIssueCode.invalid_union:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_union_discriminator:\n message = `Invalid discriminator value. Expected ${util.joinValues(issue.options)}`;\n break;\n case ZodIssueCode.invalid_enum_value:\n message = `Invalid enum value. Expected ${util.joinValues(issue.options)}, received '${issue.received}'`;\n break;\n case ZodIssueCode.invalid_arguments:\n message = `Invalid function arguments`;\n break;\n case ZodIssueCode.invalid_return_type:\n message = `Invalid function return type`;\n break;\n case ZodIssueCode.invalid_date:\n message = `Invalid date`;\n break;\n case ZodIssueCode.invalid_string:\n if (typeof issue.validation === \"object\") {\n if (\"includes\" in issue.validation) {\n message = `Invalid input: must include \"${issue.validation.includes}\"`;\n if (typeof issue.validation.position === \"number\") {\n message = `${message} at one or more positions greater than or equal to ${issue.validation.position}`;\n }\n }\n else if (\"startsWith\" in issue.validation) {\n message = `Invalid input: must start with \"${issue.validation.startsWith}\"`;\n }\n else if (\"endsWith\" in issue.validation) {\n message = `Invalid input: must end with \"${issue.validation.endsWith}\"`;\n }\n else {\n util.assertNever(issue.validation);\n }\n }\n else if (issue.validation !== \"regex\") {\n message = `Invalid ${issue.validation}`;\n }\n else {\n message = \"Invalid\";\n }\n break;\n case ZodIssueCode.too_small:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `more than`} ${issue.minimum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? \"exactly\" : issue.inclusive ? `at least` : `over`} ${issue.minimum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${issue.minimum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly equal to `\n : issue.inclusive\n ? `greater than or equal to `\n : `greater than `}${new Date(Number(issue.minimum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.too_big:\n if (issue.type === \"array\")\n message = `Array must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `less than`} ${issue.maximum} element(s)`;\n else if (issue.type === \"string\")\n message = `String must contain ${issue.exact ? `exactly` : issue.inclusive ? `at most` : `under`} ${issue.maximum} character(s)`;\n else if (issue.type === \"number\")\n message = `Number must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"bigint\")\n message = `BigInt must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `less than or equal to`\n : `less than`} ${issue.maximum}`;\n else if (issue.type === \"date\")\n message = `Date must be ${issue.exact\n ? `exactly`\n : issue.inclusive\n ? `smaller than or equal to`\n : `smaller than`} ${new Date(Number(issue.maximum))}`;\n else\n message = \"Invalid input\";\n break;\n case ZodIssueCode.custom:\n message = `Invalid input`;\n break;\n case ZodIssueCode.invalid_intersection_types:\n message = `Intersection results could not be merged`;\n break;\n case ZodIssueCode.not_multiple_of:\n message = `Number must be a multiple of ${issue.multipleOf}`;\n break;\n case ZodIssueCode.not_finite:\n message = \"Number must be finite\";\n break;\n default:\n message = _ctx.defaultError;\n util.assertNever(issue);\n }\n return { message };\n};\n\nlet overrideErrorMap = errorMap;\nfunction setErrorMap(map) {\n overrideErrorMap = map;\n}\nfunction getErrorMap() {\n return overrideErrorMap;\n}\n\nconst makeIssue = (params) => {\n const { data, path, errorMaps, issueData } = params;\n const fullPath = [...path, ...(issueData.path || [])];\n const fullIssue = {\n ...issueData,\n path: fullPath,\n };\n if (issueData.message !== undefined) {\n return {\n ...issueData,\n path: fullPath,\n message: issueData.message,\n };\n }\n let errorMessage = \"\";\n const maps = errorMaps\n .filter((m) => !!m)\n .slice()\n .reverse();\n for (const map of maps) {\n errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;\n }\n return {\n ...issueData,\n path: fullPath,\n message: errorMessage,\n };\n};\nconst EMPTY_PATH = [];\nfunction addIssueToContext(ctx, issueData) {\n const overrideMap = getErrorMap();\n const issue = makeIssue({\n issueData: issueData,\n data: ctx.data,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n overrideMap,\n overrideMap === errorMap ? undefined : errorMap, // then global default map\n ].filter((x) => !!x),\n });\n ctx.common.issues.push(issue);\n}\nclass ParseStatus {\n constructor() {\n this.value = \"valid\";\n }\n dirty() {\n if (this.value === \"valid\")\n this.value = \"dirty\";\n }\n abort() {\n if (this.value !== \"aborted\")\n this.value = \"aborted\";\n }\n static mergeArray(status, results) {\n const arrayValue = [];\n for (const s of results) {\n if (s.status === \"aborted\")\n return INVALID;\n if (s.status === \"dirty\")\n status.dirty();\n arrayValue.push(s.value);\n }\n return { status: status.value, value: arrayValue };\n }\n static async mergeObjectAsync(status, pairs) {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value,\n });\n }\n return ParseStatus.mergeObjectSync(status, syncPairs);\n }\n static mergeObjectSync(status, pairs) {\n const finalObject = {};\n for (const pair of pairs) {\n const { key, value } = pair;\n if (key.status === \"aborted\")\n return INVALID;\n if (value.status === \"aborted\")\n return INVALID;\n if (key.status === \"dirty\")\n status.dirty();\n if (value.status === \"dirty\")\n status.dirty();\n if (key.value !== \"__proto__\" &&\n (typeof value.value !== \"undefined\" || pair.alwaysSet)) {\n finalObject[key.value] = value.value;\n }\n }\n return { status: status.value, value: finalObject };\n }\n}\nconst INVALID = Object.freeze({\n status: \"aborted\",\n});\nconst DIRTY = (value) => ({ status: \"dirty\", value });\nconst OK = (value) => ({ status: \"valid\", value });\nconst isAborted = (x) => x.status === \"aborted\";\nconst isDirty = (x) => x.status === \"dirty\";\nconst isValid = (x) => x.status === \"valid\";\nconst isAsync = (x) => typeof Promise !== \"undefined\" && x instanceof Promise;\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nfunction __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\ntypeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\n\nvar errorUtil;\n(function (errorUtil) {\n errorUtil.errToObj = (message) => typeof message === \"string\" ? { message } : message || {};\n errorUtil.toString = (message) => typeof message === \"string\" ? message : message === null || message === void 0 ? void 0 : message.message;\n})(errorUtil || (errorUtil = {}));\n\nvar _ZodEnum_cache, _ZodNativeEnum_cache;\nclass ParseInputLazyPath {\n constructor(parent, value, path, key) {\n this._cachedPath = [];\n this.parent = parent;\n this.data = value;\n this._path = path;\n this._key = key;\n }\n get path() {\n if (!this._cachedPath.length) {\n if (this._key instanceof Array) {\n this._cachedPath.push(...this._path, ...this._key);\n }\n else {\n this._cachedPath.push(...this._path, this._key);\n }\n }\n return this._cachedPath;\n }\n}\nconst handleResult = (ctx, result) => {\n if (isValid(result)) {\n return { success: true, data: result.value };\n }\n else {\n if (!ctx.common.issues.length) {\n throw new Error(\"Validation failed but no issues detected.\");\n }\n return {\n success: false,\n get error() {\n if (this._error)\n return this._error;\n const error = new ZodError(ctx.common.issues);\n this._error = error;\n return this._error;\n },\n };\n }\n};\nfunction processCreateParams(params) {\n if (!params)\n return {};\n const { errorMap, invalid_type_error, required_error, description } = params;\n if (errorMap && (invalid_type_error || required_error)) {\n throw new Error(`Can't use \"invalid_type_error\" or \"required_error\" in conjunction with custom error map.`);\n }\n if (errorMap)\n return { errorMap: errorMap, description };\n const customMap = (iss, ctx) => {\n var _a, _b;\n const { message } = params;\n if (iss.code === \"invalid_enum_value\") {\n return { message: message !== null && message !== void 0 ? message : ctx.defaultError };\n }\n if (typeof ctx.data === \"undefined\") {\n return { message: (_a = message !== null && message !== void 0 ? message : required_error) !== null && _a !== void 0 ? _a : ctx.defaultError };\n }\n if (iss.code !== \"invalid_type\")\n return { message: ctx.defaultError };\n return { message: (_b = message !== null && message !== void 0 ? message : invalid_type_error) !== null && _b !== void 0 ? _b : ctx.defaultError };\n };\n return { errorMap: customMap, description };\n}\nclass ZodType {\n constructor(def) {\n /** Alias of safeParseAsync */\n this.spa = this.safeParseAsync;\n this._def = def;\n this.parse = this.parse.bind(this);\n this.safeParse = this.safeParse.bind(this);\n this.parseAsync = this.parseAsync.bind(this);\n this.safeParseAsync = this.safeParseAsync.bind(this);\n this.spa = this.spa.bind(this);\n this.refine = this.refine.bind(this);\n this.refinement = this.refinement.bind(this);\n this.superRefine = this.superRefine.bind(this);\n this.optional = this.optional.bind(this);\n this.nullable = this.nullable.bind(this);\n this.nullish = this.nullish.bind(this);\n this.array = this.array.bind(this);\n this.promise = this.promise.bind(this);\n this.or = this.or.bind(this);\n this.and = this.and.bind(this);\n this.transform = this.transform.bind(this);\n this.brand = this.brand.bind(this);\n this.default = this.default.bind(this);\n this.catch = this.catch.bind(this);\n this.describe = this.describe.bind(this);\n this.pipe = this.pipe.bind(this);\n this.readonly = this.readonly.bind(this);\n this.isNullable = this.isNullable.bind(this);\n this.isOptional = this.isOptional.bind(this);\n }\n get description() {\n return this._def.description;\n }\n _getType(input) {\n return getParsedType(input.data);\n }\n _getOrReturnCtx(input, ctx) {\n return (ctx || {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n });\n }\n _processInputParams(input) {\n return {\n status: new ParseStatus(),\n ctx: {\n common: input.parent.common,\n data: input.data,\n parsedType: getParsedType(input.data),\n schemaErrorMap: this._def.errorMap,\n path: input.path,\n parent: input.parent,\n },\n };\n }\n _parseSync(input) {\n const result = this._parse(input);\n if (isAsync(result)) {\n throw new Error(\"Synchronous parse encountered promise.\");\n }\n return result;\n }\n _parseAsync(input) {\n const result = this._parse(input);\n return Promise.resolve(result);\n }\n parse(data, params) {\n const result = this.safeParse(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n safeParse(data, params) {\n var _a;\n const ctx = {\n common: {\n issues: [],\n async: (_a = params === null || params === void 0 ? void 0 : params.async) !== null && _a !== void 0 ? _a : false,\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType(data),\n };\n const result = this._parseSync({ data, path: ctx.path, parent: ctx });\n return handleResult(ctx, result);\n }\n async parseAsync(data, params) {\n const result = await this.safeParseAsync(data, params);\n if (result.success)\n return result.data;\n throw result.error;\n }\n async safeParseAsync(data, params) {\n const ctx = {\n common: {\n issues: [],\n contextualErrorMap: params === null || params === void 0 ? void 0 : params.errorMap,\n async: true,\n },\n path: (params === null || params === void 0 ? void 0 : params.path) || [],\n schemaErrorMap: this._def.errorMap,\n parent: null,\n data,\n parsedType: getParsedType(data),\n };\n const maybeAsyncResult = this._parse({ data, path: ctx.path, parent: ctx });\n const result = await (isAsync(maybeAsyncResult)\n ? maybeAsyncResult\n : Promise.resolve(maybeAsyncResult));\n return handleResult(ctx, result);\n }\n refine(check, message) {\n const getIssueProperties = (val) => {\n if (typeof message === \"string\" || typeof message === \"undefined\") {\n return { message };\n }\n else if (typeof message === \"function\") {\n return message(val);\n }\n else {\n return message;\n }\n };\n return this._refinement((val, ctx) => {\n const result = check(val);\n const setError = () => ctx.addIssue({\n code: ZodIssueCode.custom,\n ...getIssueProperties(val),\n });\n if (typeof Promise !== \"undefined\" && result instanceof Promise) {\n return result.then((data) => {\n if (!data) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n if (!result) {\n setError();\n return false;\n }\n else {\n return true;\n }\n });\n }\n refinement(check, refinementData) {\n return this._refinement((val, ctx) => {\n if (!check(val)) {\n ctx.addIssue(typeof refinementData === \"function\"\n ? refinementData(val, ctx)\n : refinementData);\n return false;\n }\n else {\n return true;\n }\n });\n }\n _refinement(refinement) {\n return new ZodEffects({\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"refinement\", refinement },\n });\n }\n superRefine(refinement) {\n return this._refinement(refinement);\n }\n optional() {\n return ZodOptional.create(this, this._def);\n }\n nullable() {\n return ZodNullable.create(this, this._def);\n }\n nullish() {\n return this.nullable().optional();\n }\n array() {\n return ZodArray.create(this, this._def);\n }\n promise() {\n return ZodPromise.create(this, this._def);\n }\n or(option) {\n return ZodUnion.create([this, option], this._def);\n }\n and(incoming) {\n return ZodIntersection.create(this, incoming, this._def);\n }\n transform(transform) {\n return new ZodEffects({\n ...processCreateParams(this._def),\n schema: this,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect: { type: \"transform\", transform },\n });\n }\n default(def) {\n const defaultValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodDefault({\n ...processCreateParams(this._def),\n innerType: this,\n defaultValue: defaultValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n });\n }\n brand() {\n return new ZodBranded({\n typeName: ZodFirstPartyTypeKind.ZodBranded,\n type: this,\n ...processCreateParams(this._def),\n });\n }\n catch(def) {\n const catchValueFunc = typeof def === \"function\" ? def : () => def;\n return new ZodCatch({\n ...processCreateParams(this._def),\n innerType: this,\n catchValue: catchValueFunc,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n });\n }\n describe(description) {\n const This = this.constructor;\n return new This({\n ...this._def,\n description,\n });\n }\n pipe(target) {\n return ZodPipeline.create(this, target);\n }\n readonly() {\n return ZodReadonly.create(this);\n }\n isOptional() {\n return this.safeParse(undefined).success;\n }\n isNullable() {\n return this.safeParse(null).success;\n }\n}\nconst cuidRegex = /^c[^\\s-]{8,}$/i;\nconst cuid2Regex = /^[0-9a-z]+$/;\nconst ulidRegex = /^[0-9A-HJKMNP-TV-Z]{26}$/;\n// const uuidRegex =\n// /^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i;\nconst uuidRegex = /^[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}$/i;\nconst nanoidRegex = /^[a-z0-9_-]{21}$/i;\nconst durationRegex = /^[-+]?P(?!$)(?:(?:[-+]?\\d+Y)|(?:[-+]?\\d+[.,]\\d+Y$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:(?:[-+]?\\d+W)|(?:[-+]?\\d+[.,]\\d+W$))?(?:(?:[-+]?\\d+D)|(?:[-+]?\\d+[.,]\\d+D$))?(?:T(?=[\\d+-])(?:(?:[-+]?\\d+H)|(?:[-+]?\\d+[.,]\\d+H$))?(?:(?:[-+]?\\d+M)|(?:[-+]?\\d+[.,]\\d+M$))?(?:[-+]?\\d+(?:[.,]\\d+)?S)?)??$/;\n// from https://stackoverflow.com/a/46181/1550155\n// old version: too slow, didn't support unicode\n// const emailRegex = /^((([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-z]|\\d|-|\\.|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))$/i;\n//old email regex\n// const emailRegex = /^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|(\".+\"))@((?!-)([^<>()[\\].,;:\\s@\"]+\\.)+[^<>()[\\].,;:\\s@\"]{1,})[^-<>()[\\].,;:\\s@\"]$/i;\n// eslint-disable-next-line\n// const emailRegex =\n// /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\])|(\\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\\.[A-Za-z]{2,})+))$/;\n// const emailRegex =\n// /^[a-zA-Z0-9\\.\\!\\#\\$\\%\\&\\'\\*\\+\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~\\-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n// const emailRegex =\n// /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])$/i;\nconst emailRegex = /^(?!\\.)(?!.*\\.\\.)([A-Z0-9_'+\\-\\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\\-]*\\.)+[A-Z]{2,}$/i;\n// const emailRegex =\n// /^[a-z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-z0-9-]+(?:\\.[a-z0-9\\-]+)*$/i;\n// from https://thekevinscott.com/emojis-in-javascript/#writing-a-regular-expression\nconst _emojiRegex = `^(\\\\p{Extended_Pictographic}|\\\\p{Emoji_Component})+$`;\nlet emojiRegex;\n// faster, simpler, safer\nconst ipv4Regex = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/;\nconst ipv6Regex = /^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;\n// https://stackoverflow.com/questions/7860392/determine-if-string-is-in-base64-using-javascript\nconst base64Regex = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/;\n// simple\n// const dateRegexSource = `\\\\d{4}-\\\\d{2}-\\\\d{2}`;\n// no leap year validation\n// const dateRegexSource = `\\\\d{4}-((0[13578]|10|12)-31|(0[13-9]|1[0-2])-30|(0[1-9]|1[0-2])-(0[1-9]|1\\\\d|2\\\\d))`;\n// with leap year validation\nconst dateRegexSource = `((\\\\d\\\\d[2468][048]|\\\\d\\\\d[13579][26]|\\\\d\\\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\\\d|30)|(02)-(0[1-9]|1\\\\d|2[0-8])))`;\nconst dateRegex = new RegExp(`^${dateRegexSource}$`);\nfunction timeRegexSource(args) {\n // let regex = `\\\\d{2}:\\\\d{2}:\\\\d{2}`;\n let regex = `([01]\\\\d|2[0-3]):[0-5]\\\\d:[0-5]\\\\d`;\n if (args.precision) {\n regex = `${regex}\\\\.\\\\d{${args.precision}}`;\n }\n else if (args.precision == null) {\n regex = `${regex}(\\\\.\\\\d+)?`;\n }\n return regex;\n}\nfunction timeRegex(args) {\n return new RegExp(`^${timeRegexSource(args)}$`);\n}\n// Adapted from https://stackoverflow.com/a/3143231\nfunction datetimeRegex(args) {\n let regex = `${dateRegexSource}T${timeRegexSource(args)}`;\n const opts = [];\n opts.push(args.local ? `Z?` : `Z`);\n if (args.offset)\n opts.push(`([+-]\\\\d{2}:?\\\\d{2})`);\n regex = `${regex}(${opts.join(\"|\")})`;\n return new RegExp(`^${regex}$`);\n}\nfunction isValidIP(ip, version) {\n if ((version === \"v4\" || !version) && ipv4Regex.test(ip)) {\n return true;\n }\n if ((version === \"v6\" || !version) && ipv6Regex.test(ip)) {\n return true;\n }\n return false;\n}\nclass ZodString extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = String(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.string) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.string,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const status = new ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.length < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.length > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"length\") {\n const tooBig = input.data.length > check.value;\n const tooSmall = input.data.length < check.value;\n if (tooBig || tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n if (tooBig) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n else if (tooSmall) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"string\",\n inclusive: true,\n exact: true,\n message: check.message,\n });\n }\n status.dirty();\n }\n }\n else if (check.kind === \"email\") {\n if (!emailRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"email\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"emoji\") {\n if (!emojiRegex) {\n emojiRegex = new RegExp(_emojiRegex, \"u\");\n }\n if (!emojiRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"emoji\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"uuid\") {\n if (!uuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"uuid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"nanoid\") {\n if (!nanoidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"nanoid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid\") {\n if (!cuidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"cuid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"cuid2\") {\n if (!cuid2Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"cuid2\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ulid\") {\n if (!ulidRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"ulid\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"url\") {\n try {\n new URL(input.data);\n }\n catch (_a) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"url\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"regex\") {\n check.regex.lastIndex = 0;\n const testResult = check.regex.test(input.data);\n if (!testResult) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"regex\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"trim\") {\n input.data = input.data.trim();\n }\n else if (check.kind === \"includes\") {\n if (!input.data.includes(check.value, check.position)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { includes: check.value, position: check.position },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"toLowerCase\") {\n input.data = input.data.toLowerCase();\n }\n else if (check.kind === \"toUpperCase\") {\n input.data = input.data.toUpperCase();\n }\n else if (check.kind === \"startsWith\") {\n if (!input.data.startsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { startsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"endsWith\") {\n if (!input.data.endsWith(check.value)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: { endsWith: check.value },\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"datetime\") {\n const regex = datetimeRegex(check);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: \"datetime\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"date\") {\n const regex = dateRegex;\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: \"date\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"time\") {\n const regex = timeRegex(check);\n if (!regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_string,\n validation: \"time\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"duration\") {\n if (!durationRegex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"duration\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"ip\") {\n if (!isValidIP(input.data, check.version)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"ip\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"base64\") {\n if (!base64Regex.test(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n validation: \"base64\",\n code: ZodIssueCode.invalid_string,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n _regex(regex, validation, message) {\n return this.refinement((data) => regex.test(data), {\n validation,\n code: ZodIssueCode.invalid_string,\n ...errorUtil.errToObj(message),\n });\n }\n _addCheck(check) {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n email(message) {\n return this._addCheck({ kind: \"email\", ...errorUtil.errToObj(message) });\n }\n url(message) {\n return this._addCheck({ kind: \"url\", ...errorUtil.errToObj(message) });\n }\n emoji(message) {\n return this._addCheck({ kind: \"emoji\", ...errorUtil.errToObj(message) });\n }\n uuid(message) {\n return this._addCheck({ kind: \"uuid\", ...errorUtil.errToObj(message) });\n }\n nanoid(message) {\n return this._addCheck({ kind: \"nanoid\", ...errorUtil.errToObj(message) });\n }\n cuid(message) {\n return this._addCheck({ kind: \"cuid\", ...errorUtil.errToObj(message) });\n }\n cuid2(message) {\n return this._addCheck({ kind: \"cuid2\", ...errorUtil.errToObj(message) });\n }\n ulid(message) {\n return this._addCheck({ kind: \"ulid\", ...errorUtil.errToObj(message) });\n }\n base64(message) {\n return this._addCheck({ kind: \"base64\", ...errorUtil.errToObj(message) });\n }\n ip(options) {\n return this._addCheck({ kind: \"ip\", ...errorUtil.errToObj(options) });\n }\n datetime(options) {\n var _a, _b;\n if (typeof options === \"string\") {\n return this._addCheck({\n kind: \"datetime\",\n precision: null,\n offset: false,\n local: false,\n message: options,\n });\n }\n return this._addCheck({\n kind: \"datetime\",\n precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === \"undefined\" ? null : options === null || options === void 0 ? void 0 : options.precision,\n offset: (_a = options === null || options === void 0 ? void 0 : options.offset) !== null && _a !== void 0 ? _a : false,\n local: (_b = options === null || options === void 0 ? void 0 : options.local) !== null && _b !== void 0 ? _b : false,\n ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n date(message) {\n return this._addCheck({ kind: \"date\", message });\n }\n time(options) {\n if (typeof options === \"string\") {\n return this._addCheck({\n kind: \"time\",\n precision: null,\n message: options,\n });\n }\n return this._addCheck({\n kind: \"time\",\n precision: typeof (options === null || options === void 0 ? void 0 : options.precision) === \"undefined\" ? null : options === null || options === void 0 ? void 0 : options.precision,\n ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n duration(message) {\n return this._addCheck({ kind: \"duration\", ...errorUtil.errToObj(message) });\n }\n regex(regex, message) {\n return this._addCheck({\n kind: \"regex\",\n regex: regex,\n ...errorUtil.errToObj(message),\n });\n }\n includes(value, options) {\n return this._addCheck({\n kind: \"includes\",\n value: value,\n position: options === null || options === void 0 ? void 0 : options.position,\n ...errorUtil.errToObj(options === null || options === void 0 ? void 0 : options.message),\n });\n }\n startsWith(value, message) {\n return this._addCheck({\n kind: \"startsWith\",\n value: value,\n ...errorUtil.errToObj(message),\n });\n }\n endsWith(value, message) {\n return this._addCheck({\n kind: \"endsWith\",\n value: value,\n ...errorUtil.errToObj(message),\n });\n }\n min(minLength, message) {\n return this._addCheck({\n kind: \"min\",\n value: minLength,\n ...errorUtil.errToObj(message),\n });\n }\n max(maxLength, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxLength,\n ...errorUtil.errToObj(message),\n });\n }\n length(len, message) {\n return this._addCheck({\n kind: \"length\",\n value: len,\n ...errorUtil.errToObj(message),\n });\n }\n /**\n * @deprecated Use z.string().min(1) instead.\n * @see {@link ZodString.min}\n */\n nonempty(message) {\n return this.min(1, errorUtil.errToObj(message));\n }\n trim() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"trim\" }],\n });\n }\n toLowerCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toLowerCase\" }],\n });\n }\n toUpperCase() {\n return new ZodString({\n ...this._def,\n checks: [...this._def.checks, { kind: \"toUpperCase\" }],\n });\n }\n get isDatetime() {\n return !!this._def.checks.find((ch) => ch.kind === \"datetime\");\n }\n get isDate() {\n return !!this._def.checks.find((ch) => ch.kind === \"date\");\n }\n get isTime() {\n return !!this._def.checks.find((ch) => ch.kind === \"time\");\n }\n get isDuration() {\n return !!this._def.checks.find((ch) => ch.kind === \"duration\");\n }\n get isEmail() {\n return !!this._def.checks.find((ch) => ch.kind === \"email\");\n }\n get isURL() {\n return !!this._def.checks.find((ch) => ch.kind === \"url\");\n }\n get isEmoji() {\n return !!this._def.checks.find((ch) => ch.kind === \"emoji\");\n }\n get isUUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"uuid\");\n }\n get isNANOID() {\n return !!this._def.checks.find((ch) => ch.kind === \"nanoid\");\n }\n get isCUID() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid\");\n }\n get isCUID2() {\n return !!this._def.checks.find((ch) => ch.kind === \"cuid2\");\n }\n get isULID() {\n return !!this._def.checks.find((ch) => ch.kind === \"ulid\");\n }\n get isIP() {\n return !!this._def.checks.find((ch) => ch.kind === \"ip\");\n }\n get isBase64() {\n return !!this._def.checks.find((ch) => ch.kind === \"base64\");\n }\n get minLength() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxLength() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nZodString.create = (params) => {\n var _a;\n return new ZodString({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodString,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\n// https://stackoverflow.com/questions/3966484/why-does-modulus-operator-return-fractional-number-in-javascript/31711034#31711034\nfunction floatSafeRemainder(val, step) {\n const valDecCount = (val.toString().split(\".\")[1] || \"\").length;\n const stepDecCount = (step.toString().split(\".\")[1] || \"\").length;\n const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;\n const valInt = parseInt(val.toFixed(decCount).replace(\".\", \"\"));\n const stepInt = parseInt(step.toFixed(decCount).replace(\".\", \"\"));\n return (valInt % stepInt) / Math.pow(10, decCount);\n}\nclass ZodNumber extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n this.step = this.multipleOf;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = Number(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.number) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.number,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n let ctx = undefined;\n const status = new ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"int\") {\n if (!util.isInteger(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: \"integer\",\n received: \"float\",\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: check.value,\n type: \"number\",\n inclusive: check.inclusive,\n exact: false,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (floatSafeRemainder(input.data, check.value) !== 0) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"finite\") {\n if (!Number.isFinite(input.data)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.not_finite,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodNumber({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodNumber({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n int(message) {\n return this._addCheck({\n kind: \"int\",\n message: errorUtil.toString(message),\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: 0,\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value: value,\n message: errorUtil.toString(message),\n });\n }\n finite(message) {\n return this._addCheck({\n kind: \"finite\",\n message: errorUtil.toString(message),\n });\n }\n safe(message) {\n return this._addCheck({\n kind: \"min\",\n inclusive: true,\n value: Number.MIN_SAFE_INTEGER,\n message: errorUtil.toString(message),\n })._addCheck({\n kind: \"max\",\n inclusive: true,\n value: Number.MAX_SAFE_INTEGER,\n message: errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n get isInt() {\n return !!this._def.checks.find((ch) => ch.kind === \"int\" ||\n (ch.kind === \"multipleOf\" && util.isInteger(ch.value)));\n }\n get isFinite() {\n let max = null, min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"finite\" ||\n ch.kind === \"int\" ||\n ch.kind === \"multipleOf\") {\n return true;\n }\n else if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n else if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return Number.isFinite(min) && Number.isFinite(max);\n }\n}\nZodNumber.create = (params) => {\n return new ZodNumber({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodNumber,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodBigInt extends ZodType {\n constructor() {\n super(...arguments);\n this.min = this.gte;\n this.max = this.lte;\n }\n _parse(input) {\n if (this._def.coerce) {\n input.data = BigInt(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.bigint) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.bigint,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n let ctx = undefined;\n const status = new ParseStatus();\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n const tooSmall = check.inclusive\n ? input.data < check.value\n : input.data <= check.value;\n if (tooSmall) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n type: \"bigint\",\n minimum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n const tooBig = check.inclusive\n ? input.data > check.value\n : input.data >= check.value;\n if (tooBig) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n type: \"bigint\",\n maximum: check.value,\n inclusive: check.inclusive,\n message: check.message,\n });\n status.dirty();\n }\n }\n else if (check.kind === \"multipleOf\") {\n if (input.data % check.value !== BigInt(0)) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.not_multiple_of,\n multipleOf: check.value,\n message: check.message,\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return { status: status.value, value: input.data };\n }\n gte(value, message) {\n return this.setLimit(\"min\", value, true, errorUtil.toString(message));\n }\n gt(value, message) {\n return this.setLimit(\"min\", value, false, errorUtil.toString(message));\n }\n lte(value, message) {\n return this.setLimit(\"max\", value, true, errorUtil.toString(message));\n }\n lt(value, message) {\n return this.setLimit(\"max\", value, false, errorUtil.toString(message));\n }\n setLimit(kind, value, inclusive, message) {\n return new ZodBigInt({\n ...this._def,\n checks: [\n ...this._def.checks,\n {\n kind,\n value,\n inclusive,\n message: errorUtil.toString(message),\n },\n ],\n });\n }\n _addCheck(check) {\n return new ZodBigInt({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n positive(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n negative(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: false,\n message: errorUtil.toString(message),\n });\n }\n nonpositive(message) {\n return this._addCheck({\n kind: \"max\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n nonnegative(message) {\n return this._addCheck({\n kind: \"min\",\n value: BigInt(0),\n inclusive: true,\n message: errorUtil.toString(message),\n });\n }\n multipleOf(value, message) {\n return this._addCheck({\n kind: \"multipleOf\",\n value,\n message: errorUtil.toString(message),\n });\n }\n get minValue() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min;\n }\n get maxValue() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max;\n }\n}\nZodBigInt.create = (params) => {\n var _a;\n return new ZodBigInt({\n checks: [],\n typeName: ZodFirstPartyTypeKind.ZodBigInt,\n coerce: (_a = params === null || params === void 0 ? void 0 : params.coerce) !== null && _a !== void 0 ? _a : false,\n ...processCreateParams(params),\n });\n};\nclass ZodBoolean extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = Boolean(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.boolean) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.boolean,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodBoolean.create = (params) => {\n return new ZodBoolean({\n typeName: ZodFirstPartyTypeKind.ZodBoolean,\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n ...processCreateParams(params),\n });\n};\nclass ZodDate extends ZodType {\n _parse(input) {\n if (this._def.coerce) {\n input.data = new Date(input.data);\n }\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.date) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.date,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (isNaN(input.data.getTime())) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_date,\n });\n return INVALID;\n }\n const status = new ParseStatus();\n let ctx = undefined;\n for (const check of this._def.checks) {\n if (check.kind === \"min\") {\n if (input.data.getTime() < check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n message: check.message,\n inclusive: true,\n exact: false,\n minimum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else if (check.kind === \"max\") {\n if (input.data.getTime() > check.value) {\n ctx = this._getOrReturnCtx(input, ctx);\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n message: check.message,\n inclusive: true,\n exact: false,\n maximum: check.value,\n type: \"date\",\n });\n status.dirty();\n }\n }\n else {\n util.assertNever(check);\n }\n }\n return {\n status: status.value,\n value: new Date(input.data.getTime()),\n };\n }\n _addCheck(check) {\n return new ZodDate({\n ...this._def,\n checks: [...this._def.checks, check],\n });\n }\n min(minDate, message) {\n return this._addCheck({\n kind: \"min\",\n value: minDate.getTime(),\n message: errorUtil.toString(message),\n });\n }\n max(maxDate, message) {\n return this._addCheck({\n kind: \"max\",\n value: maxDate.getTime(),\n message: errorUtil.toString(message),\n });\n }\n get minDate() {\n let min = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"min\") {\n if (min === null || ch.value > min)\n min = ch.value;\n }\n }\n return min != null ? new Date(min) : null;\n }\n get maxDate() {\n let max = null;\n for (const ch of this._def.checks) {\n if (ch.kind === \"max\") {\n if (max === null || ch.value < max)\n max = ch.value;\n }\n }\n return max != null ? new Date(max) : null;\n }\n}\nZodDate.create = (params) => {\n return new ZodDate({\n checks: [],\n coerce: (params === null || params === void 0 ? void 0 : params.coerce) || false,\n typeName: ZodFirstPartyTypeKind.ZodDate,\n ...processCreateParams(params),\n });\n};\nclass ZodSymbol extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.symbol) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.symbol,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodSymbol.create = (params) => {\n return new ZodSymbol({\n typeName: ZodFirstPartyTypeKind.ZodSymbol,\n ...processCreateParams(params),\n });\n};\nclass ZodUndefined extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.undefined,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodUndefined.create = (params) => {\n return new ZodUndefined({\n typeName: ZodFirstPartyTypeKind.ZodUndefined,\n ...processCreateParams(params),\n });\n};\nclass ZodNull extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.null) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.null,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodNull.create = (params) => {\n return new ZodNull({\n typeName: ZodFirstPartyTypeKind.ZodNull,\n ...processCreateParams(params),\n });\n};\nclass ZodAny extends ZodType {\n constructor() {\n super(...arguments);\n // to prevent instances of other classes from extending ZodAny. this causes issues with catchall in ZodObject.\n this._any = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodAny.create = (params) => {\n return new ZodAny({\n typeName: ZodFirstPartyTypeKind.ZodAny,\n ...processCreateParams(params),\n });\n};\nclass ZodUnknown extends ZodType {\n constructor() {\n super(...arguments);\n // required\n this._unknown = true;\n }\n _parse(input) {\n return OK(input.data);\n }\n}\nZodUnknown.create = (params) => {\n return new ZodUnknown({\n typeName: ZodFirstPartyTypeKind.ZodUnknown,\n ...processCreateParams(params),\n });\n};\nclass ZodNever extends ZodType {\n _parse(input) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.never,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n}\nZodNever.create = (params) => {\n return new ZodNever({\n typeName: ZodFirstPartyTypeKind.ZodNever,\n ...processCreateParams(params),\n });\n};\nclass ZodVoid extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.undefined) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.void,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n}\nZodVoid.create = (params) => {\n return new ZodVoid({\n typeName: ZodFirstPartyTypeKind.ZodVoid,\n ...processCreateParams(params),\n });\n};\nclass ZodArray extends ZodType {\n _parse(input) {\n const { ctx, status } = this._processInputParams(input);\n const def = this._def;\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (def.exactLength !== null) {\n const tooBig = ctx.data.length > def.exactLength.value;\n const tooSmall = ctx.data.length < def.exactLength.value;\n if (tooBig || tooSmall) {\n addIssueToContext(ctx, {\n code: tooBig ? ZodIssueCode.too_big : ZodIssueCode.too_small,\n minimum: (tooSmall ? def.exactLength.value : undefined),\n maximum: (tooBig ? def.exactLength.value : undefined),\n type: \"array\",\n inclusive: true,\n exact: true,\n message: def.exactLength.message,\n });\n status.dirty();\n }\n }\n if (def.minLength !== null) {\n if (ctx.data.length < def.minLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: def.minLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.minLength.message,\n });\n status.dirty();\n }\n }\n if (def.maxLength !== null) {\n if (ctx.data.length > def.maxLength.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: def.maxLength.value,\n type: \"array\",\n inclusive: true,\n exact: false,\n message: def.maxLength.message,\n });\n status.dirty();\n }\n }\n if (ctx.common.async) {\n return Promise.all([...ctx.data].map((item, i) => {\n return def.type._parseAsync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n })).then((result) => {\n return ParseStatus.mergeArray(status, result);\n });\n }\n const result = [...ctx.data].map((item, i) => {\n return def.type._parseSync(new ParseInputLazyPath(ctx, item, ctx.path, i));\n });\n return ParseStatus.mergeArray(status, result);\n }\n get element() {\n return this._def.type;\n }\n min(minLength, message) {\n return new ZodArray({\n ...this._def,\n minLength: { value: minLength, message: errorUtil.toString(message) },\n });\n }\n max(maxLength, message) {\n return new ZodArray({\n ...this._def,\n maxLength: { value: maxLength, message: errorUtil.toString(message) },\n });\n }\n length(len, message) {\n return new ZodArray({\n ...this._def,\n exactLength: { value: len, message: errorUtil.toString(message) },\n });\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodArray.create = (schema, params) => {\n return new ZodArray({\n type: schema,\n minLength: null,\n maxLength: null,\n exactLength: null,\n typeName: ZodFirstPartyTypeKind.ZodArray,\n ...processCreateParams(params),\n });\n};\nfunction deepPartialify(schema) {\n if (schema instanceof ZodObject) {\n const newShape = {};\n for (const key in schema.shape) {\n const fieldSchema = schema.shape[key];\n newShape[key] = ZodOptional.create(deepPartialify(fieldSchema));\n }\n return new ZodObject({\n ...schema._def,\n shape: () => newShape,\n });\n }\n else if (schema instanceof ZodArray) {\n return new ZodArray({\n ...schema._def,\n type: deepPartialify(schema.element),\n });\n }\n else if (schema instanceof ZodOptional) {\n return ZodOptional.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodNullable) {\n return ZodNullable.create(deepPartialify(schema.unwrap()));\n }\n else if (schema instanceof ZodTuple) {\n return ZodTuple.create(schema.items.map((item) => deepPartialify(item)));\n }\n else {\n return schema;\n }\n}\nclass ZodObject extends ZodType {\n constructor() {\n super(...arguments);\n this._cached = null;\n /**\n * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.\n * If you want to pass through unknown properties, use `.passthrough()` instead.\n */\n this.nonstrict = this.passthrough;\n // extend<\n // Augmentation extends ZodRawShape,\n // NewOutput extends util.flatten<{\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // }>,\n // NewInput extends util.flatten<{\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }>\n // >(\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape<T, Augmentation>,\n // UnknownKeys,\n // Catchall,\n // NewOutput,\n // NewInput\n // > {\n // return new ZodObject({\n // ...this._def,\n // shape: () => ({\n // ...this._def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // }\n /**\n * @deprecated Use `.extend` instead\n * */\n this.augment = this.extend;\n }\n _getCached() {\n if (this._cached !== null)\n return this._cached;\n const shape = this._def.shape();\n const keys = util.objectKeys(shape);\n return (this._cached = { shape, keys });\n }\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.object) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const { status, ctx } = this._processInputParams(input);\n const { shape, keys: shapeKeys } = this._getCached();\n const extraKeys = [];\n if (!(this._def.catchall instanceof ZodNever &&\n this._def.unknownKeys === \"strip\")) {\n for (const key in ctx.data) {\n if (!shapeKeys.includes(key)) {\n extraKeys.push(key);\n }\n }\n }\n const pairs = [];\n for (const key of shapeKeys) {\n const keyValidator = shape[key];\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: keyValidator._parse(new ParseInputLazyPath(ctx, value, ctx.path, key)),\n alwaysSet: key in ctx.data,\n });\n }\n if (this._def.catchall instanceof ZodNever) {\n const unknownKeys = this._def.unknownKeys;\n if (unknownKeys === \"passthrough\") {\n for (const key of extraKeys) {\n pairs.push({\n key: { status: \"valid\", value: key },\n value: { status: \"valid\", value: ctx.data[key] },\n });\n }\n }\n else if (unknownKeys === \"strict\") {\n if (extraKeys.length > 0) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.unrecognized_keys,\n keys: extraKeys,\n });\n status.dirty();\n }\n }\n else if (unknownKeys === \"strip\") ;\n else {\n throw new Error(`Internal ZodObject error: invalid unknownKeys value.`);\n }\n }\n else {\n // run catchall validation\n const catchall = this._def.catchall;\n for (const key of extraKeys) {\n const value = ctx.data[key];\n pairs.push({\n key: { status: \"valid\", value: key },\n value: catchall._parse(new ParseInputLazyPath(ctx, value, ctx.path, key) //, ctx.child(key), value, getParsedType(value)\n ),\n alwaysSet: key in ctx.data,\n });\n }\n }\n if (ctx.common.async) {\n return Promise.resolve()\n .then(async () => {\n const syncPairs = [];\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n syncPairs.push({\n key,\n value,\n alwaysSet: pair.alwaysSet,\n });\n }\n return syncPairs;\n })\n .then((syncPairs) => {\n return ParseStatus.mergeObjectSync(status, syncPairs);\n });\n }\n else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get shape() {\n return this._def.shape();\n }\n strict(message) {\n errorUtil.errToObj;\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strict\",\n ...(message !== undefined\n ? {\n errorMap: (issue, ctx) => {\n var _a, _b, _c, _d;\n const defaultError = (_c = (_b = (_a = this._def).errorMap) === null || _b === void 0 ? void 0 : _b.call(_a, issue, ctx).message) !== null && _c !== void 0 ? _c : ctx.defaultError;\n if (issue.code === \"unrecognized_keys\")\n return {\n message: (_d = errorUtil.errToObj(message).message) !== null && _d !== void 0 ? _d : defaultError,\n };\n return {\n message: defaultError,\n };\n },\n }\n : {}),\n });\n }\n strip() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"strip\",\n });\n }\n passthrough() {\n return new ZodObject({\n ...this._def,\n unknownKeys: \"passthrough\",\n });\n }\n // const AugmentFactory =\n // <Def extends ZodObjectDef>(def: Def) =>\n // <Augmentation extends ZodRawShape>(\n // augmentation: Augmentation\n // ): ZodObject<\n // extendShape<ReturnType<Def[\"shape\"]>, Augmentation>,\n // Def[\"unknownKeys\"],\n // Def[\"catchall\"]\n // > => {\n // return new ZodObject({\n // ...def,\n // shape: () => ({\n // ...def.shape(),\n // ...augmentation,\n // }),\n // }) as any;\n // };\n extend(augmentation) {\n return new ZodObject({\n ...this._def,\n shape: () => ({\n ...this._def.shape(),\n ...augmentation,\n }),\n });\n }\n /**\n * Prior to zod@1.0.12 there was a bug in the\n * inferred type of merged objects. Please\n * upgrade if you are experiencing issues.\n */\n merge(merging) {\n const merged = new ZodObject({\n unknownKeys: merging._def.unknownKeys,\n catchall: merging._def.catchall,\n shape: () => ({\n ...this._def.shape(),\n ...merging._def.shape(),\n }),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n });\n return merged;\n }\n // merge<\n // Incoming extends AnyZodObject,\n // Augmentation extends Incoming[\"shape\"],\n // NewOutput extends {\n // [k in keyof Augmentation | keyof Output]: k extends keyof Augmentation\n // ? Augmentation[k][\"_output\"]\n // : k extends keyof Output\n // ? Output[k]\n // : never;\n // },\n // NewInput extends {\n // [k in keyof Augmentation | keyof Input]: k extends keyof Augmentation\n // ? Augmentation[k][\"_input\"]\n // : k extends keyof Input\n // ? Input[k]\n // : never;\n // }\n // >(\n // merging: Incoming\n // ): ZodObject<\n // extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"],\n // NewOutput,\n // NewInput\n // > {\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n setKey(key, schema) {\n return this.augment({ [key]: schema });\n }\n // merge<Incoming extends AnyZodObject>(\n // merging: Incoming\n // ): //ZodObject<T & Incoming[\"_shape\"], UnknownKeys, Catchall> = (merging) => {\n // ZodObject<\n // extendShape<T, ReturnType<Incoming[\"_def\"][\"shape\"]>>,\n // Incoming[\"_def\"][\"unknownKeys\"],\n // Incoming[\"_def\"][\"catchall\"]\n // > {\n // // const mergedShape = objectUtil.mergeShapes(\n // // this._def.shape(),\n // // merging._def.shape()\n // // );\n // const merged: any = new ZodObject({\n // unknownKeys: merging._def.unknownKeys,\n // catchall: merging._def.catchall,\n // shape: () =>\n // objectUtil.mergeShapes(this._def.shape(), merging._def.shape()),\n // typeName: ZodFirstPartyTypeKind.ZodObject,\n // }) as any;\n // return merged;\n // }\n catchall(index) {\n return new ZodObject({\n ...this._def,\n catchall: index,\n });\n }\n pick(mask) {\n const shape = {};\n util.objectKeys(mask).forEach((key) => {\n if (mask[key] && this.shape[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n omit(mask) {\n const shape = {};\n util.objectKeys(this.shape).forEach((key) => {\n if (!mask[key]) {\n shape[key] = this.shape[key];\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => shape,\n });\n }\n /**\n * @deprecated\n */\n deepPartial() {\n return deepPartialify(this);\n }\n partial(mask) {\n const newShape = {};\n util.objectKeys(this.shape).forEach((key) => {\n const fieldSchema = this.shape[key];\n if (mask && !mask[key]) {\n newShape[key] = fieldSchema;\n }\n else {\n newShape[key] = fieldSchema.optional();\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n required(mask) {\n const newShape = {};\n util.objectKeys(this.shape).forEach((key) => {\n if (mask && !mask[key]) {\n newShape[key] = this.shape[key];\n }\n else {\n const fieldSchema = this.shape[key];\n let newField = fieldSchema;\n while (newField instanceof ZodOptional) {\n newField = newField._def.innerType;\n }\n newShape[key] = newField;\n }\n });\n return new ZodObject({\n ...this._def,\n shape: () => newShape,\n });\n }\n keyof() {\n return createZodEnum(util.objectKeys(this.shape));\n }\n}\nZodObject.create = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.strictCreate = (shape, params) => {\n return new ZodObject({\n shape: () => shape,\n unknownKeys: \"strict\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nZodObject.lazycreate = (shape, params) => {\n return new ZodObject({\n shape,\n unknownKeys: \"strip\",\n catchall: ZodNever.create(),\n typeName: ZodFirstPartyTypeKind.ZodObject,\n ...processCreateParams(params),\n });\n};\nclass ZodUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const options = this._def.options;\n function handleResults(results) {\n // return first issue-free validation if it exists\n for (const result of results) {\n if (result.result.status === \"valid\") {\n return result.result;\n }\n }\n for (const result of results) {\n if (result.result.status === \"dirty\") {\n // add issues from dirty option\n ctx.common.issues.push(...result.ctx.common.issues);\n return result.result;\n }\n }\n // return invalid\n const unionErrors = results.map((result) => new ZodError(result.ctx.common.issues));\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union,\n unionErrors,\n });\n return INVALID;\n }\n if (ctx.common.async) {\n return Promise.all(options.map(async (option) => {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n return {\n result: await option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n }),\n ctx: childCtx,\n };\n })).then(handleResults);\n }\n else {\n let dirty = undefined;\n const issues = [];\n for (const option of options) {\n const childCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n parent: null,\n };\n const result = option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: childCtx,\n });\n if (result.status === \"valid\") {\n return result;\n }\n else if (result.status === \"dirty\" && !dirty) {\n dirty = { result, ctx: childCtx };\n }\n if (childCtx.common.issues.length) {\n issues.push(childCtx.common.issues);\n }\n }\n if (dirty) {\n ctx.common.issues.push(...dirty.ctx.common.issues);\n return dirty.result;\n }\n const unionErrors = issues.map((issues) => new ZodError(issues));\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union,\n unionErrors,\n });\n return INVALID;\n }\n }\n get options() {\n return this._def.options;\n }\n}\nZodUnion.create = (types, params) => {\n return new ZodUnion({\n options: types,\n typeName: ZodFirstPartyTypeKind.ZodUnion,\n ...processCreateParams(params),\n });\n};\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\n////////// //////////\n////////// ZodDiscriminatedUnion //////////\n////////// //////////\n/////////////////////////////////////////////////////\n/////////////////////////////////////////////////////\nconst getDiscriminator = (type) => {\n if (type instanceof ZodLazy) {\n return getDiscriminator(type.schema);\n }\n else if (type instanceof ZodEffects) {\n return getDiscriminator(type.innerType());\n }\n else if (type instanceof ZodLiteral) {\n return [type.value];\n }\n else if (type instanceof ZodEnum) {\n return type.options;\n }\n else if (type instanceof ZodNativeEnum) {\n // eslint-disable-next-line ban/ban\n return util.objectValues(type.enum);\n }\n else if (type instanceof ZodDefault) {\n return getDiscriminator(type._def.innerType);\n }\n else if (type instanceof ZodUndefined) {\n return [undefined];\n }\n else if (type instanceof ZodNull) {\n return [null];\n }\n else if (type instanceof ZodOptional) {\n return [undefined, ...getDiscriminator(type.unwrap())];\n }\n else if (type instanceof ZodNullable) {\n return [null, ...getDiscriminator(type.unwrap())];\n }\n else if (type instanceof ZodBranded) {\n return getDiscriminator(type.unwrap());\n }\n else if (type instanceof ZodReadonly) {\n return getDiscriminator(type.unwrap());\n }\n else if (type instanceof ZodCatch) {\n return getDiscriminator(type._def.innerType);\n }\n else {\n return [];\n }\n};\nclass ZodDiscriminatedUnion extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const discriminator = this.discriminator;\n const discriminatorValue = ctx.data[discriminator];\n const option = this.optionsMap.get(discriminatorValue);\n if (!option) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_union_discriminator,\n options: Array.from(this.optionsMap.keys()),\n path: [discriminator],\n });\n return INVALID;\n }\n if (ctx.common.async) {\n return option._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n else {\n return option._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n get discriminator() {\n return this._def.discriminator;\n }\n get options() {\n return this._def.options;\n }\n get optionsMap() {\n return this._def.optionsMap;\n }\n /**\n * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.\n * However, it only allows a union of objects, all of which need to share a discriminator property. This property must\n * have a different value for each object in the union.\n * @param discriminator the name of the discriminator property\n * @param types an array of object schemas\n * @param params\n */\n static create(discriminator, options, params) {\n // Get all the valid discriminator values\n const optionsMap = new Map();\n // try {\n for (const type of options) {\n const discriminatorValues = getDiscriminator(type.shape[discriminator]);\n if (!discriminatorValues.length) {\n throw new Error(`A discriminator value for key \\`${discriminator}\\` could not be extracted from all schema options`);\n }\n for (const value of discriminatorValues) {\n if (optionsMap.has(value)) {\n throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);\n }\n optionsMap.set(value, type);\n }\n }\n return new ZodDiscriminatedUnion({\n typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion,\n discriminator,\n options,\n optionsMap,\n ...processCreateParams(params),\n });\n }\n}\nfunction mergeValues(a, b) {\n const aType = getParsedType(a);\n const bType = getParsedType(b);\n if (a === b) {\n return { valid: true, data: a };\n }\n else if (aType === ZodParsedType.object && bType === ZodParsedType.object) {\n const bKeys = util.objectKeys(b);\n const sharedKeys = util\n .objectKeys(a)\n .filter((key) => bKeys.indexOf(key) !== -1);\n const newObj = { ...a, ...b };\n for (const key of sharedKeys) {\n const sharedValue = mergeValues(a[key], b[key]);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newObj[key] = sharedValue.data;\n }\n return { valid: true, data: newObj };\n }\n else if (aType === ZodParsedType.array && bType === ZodParsedType.array) {\n if (a.length !== b.length) {\n return { valid: false };\n }\n const newArray = [];\n for (let index = 0; index < a.length; index++) {\n const itemA = a[index];\n const itemB = b[index];\n const sharedValue = mergeValues(itemA, itemB);\n if (!sharedValue.valid) {\n return { valid: false };\n }\n newArray.push(sharedValue.data);\n }\n return { valid: true, data: newArray };\n }\n else if (aType === ZodParsedType.date &&\n bType === ZodParsedType.date &&\n +a === +b) {\n return { valid: true, data: a };\n }\n else {\n return { valid: false };\n }\n}\nclass ZodIntersection extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const handleParsed = (parsedLeft, parsedRight) => {\n if (isAborted(parsedLeft) || isAborted(parsedRight)) {\n return INVALID;\n }\n const merged = mergeValues(parsedLeft.value, parsedRight.value);\n if (!merged.valid) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_intersection_types,\n });\n return INVALID;\n }\n if (isDirty(parsedLeft) || isDirty(parsedRight)) {\n status.dirty();\n }\n return { status: status.value, value: merged.data };\n };\n if (ctx.common.async) {\n return Promise.all([\n this._def.left._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n this._def.right._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }),\n ]).then(([left, right]) => handleParsed(left, right));\n }\n else {\n return handleParsed(this._def.left._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }), this._def.right._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n }));\n }\n }\n}\nZodIntersection.create = (left, right, params) => {\n return new ZodIntersection({\n left: left,\n right: right,\n typeName: ZodFirstPartyTypeKind.ZodIntersection,\n ...processCreateParams(params),\n });\n};\nclass ZodTuple extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.array) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.array,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n if (ctx.data.length < this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n return INVALID;\n }\n const rest = this._def.rest;\n if (!rest && ctx.data.length > this._def.items.length) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: this._def.items.length,\n inclusive: true,\n exact: false,\n type: \"array\",\n });\n status.dirty();\n }\n const items = [...ctx.data]\n .map((item, itemIndex) => {\n const schema = this._def.items[itemIndex] || this._def.rest;\n if (!schema)\n return null;\n return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));\n })\n .filter((x) => !!x); // filter nulls\n if (ctx.common.async) {\n return Promise.all(items).then((results) => {\n return ParseStatus.mergeArray(status, results);\n });\n }\n else {\n return ParseStatus.mergeArray(status, items);\n }\n }\n get items() {\n return this._def.items;\n }\n rest(rest) {\n return new ZodTuple({\n ...this._def,\n rest,\n });\n }\n}\nZodTuple.create = (schemas, params) => {\n if (!Array.isArray(schemas)) {\n throw new Error(\"You must pass an array of schemas to z.tuple([ ... ])\");\n }\n return new ZodTuple({\n items: schemas,\n typeName: ZodFirstPartyTypeKind.ZodTuple,\n rest: null,\n ...processCreateParams(params),\n });\n};\nclass ZodRecord extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.object) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.object,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const pairs = [];\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n for (const key in ctx.data) {\n pairs.push({\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, key)),\n value: valueType._parse(new ParseInputLazyPath(ctx, ctx.data[key], ctx.path, key)),\n alwaysSet: key in ctx.data,\n });\n }\n if (ctx.common.async) {\n return ParseStatus.mergeObjectAsync(status, pairs);\n }\n else {\n return ParseStatus.mergeObjectSync(status, pairs);\n }\n }\n get element() {\n return this._def.valueType;\n }\n static create(first, second, third) {\n if (second instanceof ZodType) {\n return new ZodRecord({\n keyType: first,\n valueType: second,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(third),\n });\n }\n return new ZodRecord({\n keyType: ZodString.create(),\n valueType: first,\n typeName: ZodFirstPartyTypeKind.ZodRecord,\n ...processCreateParams(second),\n });\n }\n}\nclass ZodMap extends ZodType {\n get keySchema() {\n return this._def.keyType;\n }\n get valueSchema() {\n return this._def.valueType;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.map) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.map,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const keyType = this._def.keyType;\n const valueType = this._def.valueType;\n const pairs = [...ctx.data.entries()].map(([key, value], index) => {\n return {\n key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, \"key\"])),\n value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, \"value\"])),\n };\n });\n if (ctx.common.async) {\n const finalMap = new Map();\n return Promise.resolve().then(async () => {\n for (const pair of pairs) {\n const key = await pair.key;\n const value = await pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n });\n }\n else {\n const finalMap = new Map();\n for (const pair of pairs) {\n const key = pair.key;\n const value = pair.value;\n if (key.status === \"aborted\" || value.status === \"aborted\") {\n return INVALID;\n }\n if (key.status === \"dirty\" || value.status === \"dirty\") {\n status.dirty();\n }\n finalMap.set(key.value, value.value);\n }\n return { status: status.value, value: finalMap };\n }\n }\n}\nZodMap.create = (keyType, valueType, params) => {\n return new ZodMap({\n valueType,\n keyType,\n typeName: ZodFirstPartyTypeKind.ZodMap,\n ...processCreateParams(params),\n });\n};\nclass ZodSet extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.set) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.set,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const def = this._def;\n if (def.minSize !== null) {\n if (ctx.data.size < def.minSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_small,\n minimum: def.minSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.minSize.message,\n });\n status.dirty();\n }\n }\n if (def.maxSize !== null) {\n if (ctx.data.size > def.maxSize.value) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.too_big,\n maximum: def.maxSize.value,\n type: \"set\",\n inclusive: true,\n exact: false,\n message: def.maxSize.message,\n });\n status.dirty();\n }\n }\n const valueType = this._def.valueType;\n function finalizeSet(elements) {\n const parsedSet = new Set();\n for (const element of elements) {\n if (element.status === \"aborted\")\n return INVALID;\n if (element.status === \"dirty\")\n status.dirty();\n parsedSet.add(element.value);\n }\n return { status: status.value, value: parsedSet };\n }\n const elements = [...ctx.data.values()].map((item, i) => valueType._parse(new ParseInputLazyPath(ctx, item, ctx.path, i)));\n if (ctx.common.async) {\n return Promise.all(elements).then((elements) => finalizeSet(elements));\n }\n else {\n return finalizeSet(elements);\n }\n }\n min(minSize, message) {\n return new ZodSet({\n ...this._def,\n minSize: { value: minSize, message: errorUtil.toString(message) },\n });\n }\n max(maxSize, message) {\n return new ZodSet({\n ...this._def,\n maxSize: { value: maxSize, message: errorUtil.toString(message) },\n });\n }\n size(size, message) {\n return this.min(size, message).max(size, message);\n }\n nonempty(message) {\n return this.min(1, message);\n }\n}\nZodSet.create = (valueType, params) => {\n return new ZodSet({\n valueType,\n minSize: null,\n maxSize: null,\n typeName: ZodFirstPartyTypeKind.ZodSet,\n ...processCreateParams(params),\n });\n};\nclass ZodFunction extends ZodType {\n constructor() {\n super(...arguments);\n this.validate = this.implement;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.function) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.function,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n function makeArgsIssue(args, error) {\n return makeIssue({\n data: args,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n getErrorMap(),\n errorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodIssueCode.invalid_arguments,\n argumentsError: error,\n },\n });\n }\n function makeReturnsIssue(returns, error) {\n return makeIssue({\n data: returns,\n path: ctx.path,\n errorMaps: [\n ctx.common.contextualErrorMap,\n ctx.schemaErrorMap,\n getErrorMap(),\n errorMap,\n ].filter((x) => !!x),\n issueData: {\n code: ZodIssueCode.invalid_return_type,\n returnTypeError: error,\n },\n });\n }\n const params = { errorMap: ctx.common.contextualErrorMap };\n const fn = ctx.data;\n if (this._def.returns instanceof ZodPromise) {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return OK(async function (...args) {\n const error = new ZodError([]);\n const parsedArgs = await me._def.args\n .parseAsync(args, params)\n .catch((e) => {\n error.addIssue(makeArgsIssue(args, e));\n throw error;\n });\n const result = await Reflect.apply(fn, this, parsedArgs);\n const parsedReturns = await me._def.returns._def.type\n .parseAsync(result, params)\n .catch((e) => {\n error.addIssue(makeReturnsIssue(result, e));\n throw error;\n });\n return parsedReturns;\n });\n }\n else {\n // Would love a way to avoid disabling this rule, but we need\n // an alias (using an arrow function was what caused 2651).\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const me = this;\n return OK(function (...args) {\n const parsedArgs = me._def.args.safeParse(args, params);\n if (!parsedArgs.success) {\n throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);\n }\n const result = Reflect.apply(fn, this, parsedArgs.data);\n const parsedReturns = me._def.returns.safeParse(result, params);\n if (!parsedReturns.success) {\n throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);\n }\n return parsedReturns.data;\n });\n }\n }\n parameters() {\n return this._def.args;\n }\n returnType() {\n return this._def.returns;\n }\n args(...items) {\n return new ZodFunction({\n ...this._def,\n args: ZodTuple.create(items).rest(ZodUnknown.create()),\n });\n }\n returns(returnType) {\n return new ZodFunction({\n ...this._def,\n returns: returnType,\n });\n }\n implement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n strictImplement(func) {\n const validatedFunc = this.parse(func);\n return validatedFunc;\n }\n static create(args, returns, params) {\n return new ZodFunction({\n args: (args\n ? args\n : ZodTuple.create([]).rest(ZodUnknown.create())),\n returns: returns || ZodUnknown.create(),\n typeName: ZodFirstPartyTypeKind.ZodFunction,\n ...processCreateParams(params),\n });\n }\n}\nclass ZodLazy extends ZodType {\n get schema() {\n return this._def.getter();\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const lazySchema = this._def.getter();\n return lazySchema._parse({ data: ctx.data, path: ctx.path, parent: ctx });\n }\n}\nZodLazy.create = (getter, params) => {\n return new ZodLazy({\n getter: getter,\n typeName: ZodFirstPartyTypeKind.ZodLazy,\n ...processCreateParams(params),\n });\n};\nclass ZodLiteral extends ZodType {\n _parse(input) {\n if (input.data !== this._def.value) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_literal,\n expected: this._def.value,\n });\n return INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n get value() {\n return this._def.value;\n }\n}\nZodLiteral.create = (value, params) => {\n return new ZodLiteral({\n value: value,\n typeName: ZodFirstPartyTypeKind.ZodLiteral,\n ...processCreateParams(params),\n });\n};\nfunction createZodEnum(values, params) {\n return new ZodEnum({\n values,\n typeName: ZodFirstPartyTypeKind.ZodEnum,\n ...processCreateParams(params),\n });\n}\nclass ZodEnum extends ZodType {\n constructor() {\n super(...arguments);\n _ZodEnum_cache.set(this, void 0);\n }\n _parse(input) {\n if (typeof input.data !== \"string\") {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode.invalid_type,\n });\n return INVALID;\n }\n if (!__classPrivateFieldGet(this, _ZodEnum_cache, \"f\")) {\n __classPrivateFieldSet(this, _ZodEnum_cache, new Set(this._def.values), \"f\");\n }\n if (!__classPrivateFieldGet(this, _ZodEnum_cache, \"f\").has(input.data)) {\n const ctx = this._getOrReturnCtx(input);\n const expectedValues = this._def.values;\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n get options() {\n return this._def.values;\n }\n get enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Values() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n get Enum() {\n const enumValues = {};\n for (const val of this._def.values) {\n enumValues[val] = val;\n }\n return enumValues;\n }\n extract(values, newDef = this._def) {\n return ZodEnum.create(values, {\n ...this._def,\n ...newDef,\n });\n }\n exclude(values, newDef = this._def) {\n return ZodEnum.create(this.options.filter((opt) => !values.includes(opt)), {\n ...this._def,\n ...newDef,\n });\n }\n}\n_ZodEnum_cache = new WeakMap();\nZodEnum.create = createZodEnum;\nclass ZodNativeEnum extends ZodType {\n constructor() {\n super(...arguments);\n _ZodNativeEnum_cache.set(this, void 0);\n }\n _parse(input) {\n const nativeEnumValues = util.getValidEnumValues(this._def.values);\n const ctx = this._getOrReturnCtx(input);\n if (ctx.parsedType !== ZodParsedType.string &&\n ctx.parsedType !== ZodParsedType.number) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n expected: util.joinValues(expectedValues),\n received: ctx.parsedType,\n code: ZodIssueCode.invalid_type,\n });\n return INVALID;\n }\n if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, \"f\")) {\n __classPrivateFieldSet(this, _ZodNativeEnum_cache, new Set(util.getValidEnumValues(this._def.values)), \"f\");\n }\n if (!__classPrivateFieldGet(this, _ZodNativeEnum_cache, \"f\").has(input.data)) {\n const expectedValues = util.objectValues(nativeEnumValues);\n addIssueToContext(ctx, {\n received: ctx.data,\n code: ZodIssueCode.invalid_enum_value,\n options: expectedValues,\n });\n return INVALID;\n }\n return OK(input.data);\n }\n get enum() {\n return this._def.values;\n }\n}\n_ZodNativeEnum_cache = new WeakMap();\nZodNativeEnum.create = (values, params) => {\n return new ZodNativeEnum({\n values: values,\n typeName: ZodFirstPartyTypeKind.ZodNativeEnum,\n ...processCreateParams(params),\n });\n};\nclass ZodPromise extends ZodType {\n unwrap() {\n return this._def.type;\n }\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n if (ctx.parsedType !== ZodParsedType.promise &&\n ctx.common.async === false) {\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.promise,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n const promisified = ctx.parsedType === ZodParsedType.promise\n ? ctx.data\n : Promise.resolve(ctx.data);\n return OK(promisified.then((data) => {\n return this._def.type.parseAsync(data, {\n path: ctx.path,\n errorMap: ctx.common.contextualErrorMap,\n });\n }));\n }\n}\nZodPromise.create = (schema, params) => {\n return new ZodPromise({\n type: schema,\n typeName: ZodFirstPartyTypeKind.ZodPromise,\n ...processCreateParams(params),\n });\n};\nclass ZodEffects extends ZodType {\n innerType() {\n return this._def.schema;\n }\n sourceType() {\n return this._def.schema._def.typeName === ZodFirstPartyTypeKind.ZodEffects\n ? this._def.schema.sourceType()\n : this._def.schema;\n }\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n const effect = this._def.effect || null;\n const checkCtx = {\n addIssue: (arg) => {\n addIssueToContext(ctx, arg);\n if (arg.fatal) {\n status.abort();\n }\n else {\n status.dirty();\n }\n },\n get path() {\n return ctx.path;\n },\n };\n checkCtx.addIssue = checkCtx.addIssue.bind(checkCtx);\n if (effect.type === \"preprocess\") {\n const processed = effect.transform(ctx.data, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(processed).then(async (processed) => {\n if (status.value === \"aborted\")\n return INVALID;\n const result = await this._def.schema._parseAsync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n if (result.status === \"aborted\")\n return INVALID;\n if (result.status === \"dirty\")\n return DIRTY(result.value);\n if (status.value === \"dirty\")\n return DIRTY(result.value);\n return result;\n });\n }\n else {\n if (status.value === \"aborted\")\n return INVALID;\n const result = this._def.schema._parseSync({\n data: processed,\n path: ctx.path,\n parent: ctx,\n });\n if (result.status === \"aborted\")\n return INVALID;\n if (result.status === \"dirty\")\n return DIRTY(result.value);\n if (status.value === \"dirty\")\n return DIRTY(result.value);\n return result;\n }\n }\n if (effect.type === \"refinement\") {\n const executeRefinement = (acc) => {\n const result = effect.refinement(acc, checkCtx);\n if (ctx.common.async) {\n return Promise.resolve(result);\n }\n if (result instanceof Promise) {\n throw new Error(\"Async refinement encountered during synchronous parse operation. Use .parseAsync instead.\");\n }\n return acc;\n };\n if (ctx.common.async === false) {\n const inner = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inner.status === \"aborted\")\n return INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n // return value is ignored\n executeRefinement(inner.value);\n return { status: status.value, value: inner.value };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((inner) => {\n if (inner.status === \"aborted\")\n return INVALID;\n if (inner.status === \"dirty\")\n status.dirty();\n return executeRefinement(inner.value).then(() => {\n return { status: status.value, value: inner.value };\n });\n });\n }\n }\n if (effect.type === \"transform\") {\n if (ctx.common.async === false) {\n const base = this._def.schema._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (!isValid(base))\n return base;\n const result = effect.transform(base.value, checkCtx);\n if (result instanceof Promise) {\n throw new Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);\n }\n return { status: status.value, value: result };\n }\n else {\n return this._def.schema\n ._parseAsync({ data: ctx.data, path: ctx.path, parent: ctx })\n .then((base) => {\n if (!isValid(base))\n return base;\n return Promise.resolve(effect.transform(base.value, checkCtx)).then((result) => ({ status: status.value, value: result }));\n });\n }\n }\n util.assertNever(effect);\n }\n}\nZodEffects.create = (schema, effect, params) => {\n return new ZodEffects({\n schema,\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n effect,\n ...processCreateParams(params),\n });\n};\nZodEffects.createWithPreprocess = (preprocess, schema, params) => {\n return new ZodEffects({\n schema,\n effect: { type: \"preprocess\", transform: preprocess },\n typeName: ZodFirstPartyTypeKind.ZodEffects,\n ...processCreateParams(params),\n });\n};\nclass ZodOptional extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === ZodParsedType.undefined) {\n return OK(undefined);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodOptional.create = (type, params) => {\n return new ZodOptional({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodOptional,\n ...processCreateParams(params),\n });\n};\nclass ZodNullable extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType === ZodParsedType.null) {\n return OK(null);\n }\n return this._def.innerType._parse(input);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodNullable.create = (type, params) => {\n return new ZodNullable({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodNullable,\n ...processCreateParams(params),\n });\n};\nclass ZodDefault extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n let data = ctx.data;\n if (ctx.parsedType === ZodParsedType.undefined) {\n data = this._def.defaultValue();\n }\n return this._def.innerType._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n removeDefault() {\n return this._def.innerType;\n }\n}\nZodDefault.create = (type, params) => {\n return new ZodDefault({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodDefault,\n defaultValue: typeof params.default === \"function\"\n ? params.default\n : () => params.default,\n ...processCreateParams(params),\n });\n};\nclass ZodCatch extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n // newCtx is used to not collect issues from inner types in ctx\n const newCtx = {\n ...ctx,\n common: {\n ...ctx.common,\n issues: [],\n },\n };\n const result = this._def.innerType._parse({\n data: newCtx.data,\n path: newCtx.path,\n parent: {\n ...newCtx,\n },\n });\n if (isAsync(result)) {\n return result.then((result) => {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n });\n }\n else {\n return {\n status: \"valid\",\n value: result.status === \"valid\"\n ? result.value\n : this._def.catchValue({\n get error() {\n return new ZodError(newCtx.common.issues);\n },\n input: newCtx.data,\n }),\n };\n }\n }\n removeCatch() {\n return this._def.innerType;\n }\n}\nZodCatch.create = (type, params) => {\n return new ZodCatch({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodCatch,\n catchValue: typeof params.catch === \"function\" ? params.catch : () => params.catch,\n ...processCreateParams(params),\n });\n};\nclass ZodNaN extends ZodType {\n _parse(input) {\n const parsedType = this._getType(input);\n if (parsedType !== ZodParsedType.nan) {\n const ctx = this._getOrReturnCtx(input);\n addIssueToContext(ctx, {\n code: ZodIssueCode.invalid_type,\n expected: ZodParsedType.nan,\n received: ctx.parsedType,\n });\n return INVALID;\n }\n return { status: \"valid\", value: input.data };\n }\n}\nZodNaN.create = (params) => {\n return new ZodNaN({\n typeName: ZodFirstPartyTypeKind.ZodNaN,\n ...processCreateParams(params),\n });\n};\nconst BRAND = Symbol(\"zod_brand\");\nclass ZodBranded extends ZodType {\n _parse(input) {\n const { ctx } = this._processInputParams(input);\n const data = ctx.data;\n return this._def.type._parse({\n data,\n path: ctx.path,\n parent: ctx,\n });\n }\n unwrap() {\n return this._def.type;\n }\n}\nclass ZodPipeline extends ZodType {\n _parse(input) {\n const { status, ctx } = this._processInputParams(input);\n if (ctx.common.async) {\n const handleAsync = async () => {\n const inResult = await this._def.in._parseAsync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return DIRTY(inResult.value);\n }\n else {\n return this._def.out._parseAsync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n };\n return handleAsync();\n }\n else {\n const inResult = this._def.in._parseSync({\n data: ctx.data,\n path: ctx.path,\n parent: ctx,\n });\n if (inResult.status === \"aborted\")\n return INVALID;\n if (inResult.status === \"dirty\") {\n status.dirty();\n return {\n status: \"dirty\",\n value: inResult.value,\n };\n }\n else {\n return this._def.out._parseSync({\n data: inResult.value,\n path: ctx.path,\n parent: ctx,\n });\n }\n }\n }\n static create(a, b) {\n return new ZodPipeline({\n in: a,\n out: b,\n typeName: ZodFirstPartyTypeKind.ZodPipeline,\n });\n }\n}\nclass ZodReadonly extends ZodType {\n _parse(input) {\n const result = this._def.innerType._parse(input);\n const freeze = (data) => {\n if (isValid(data)) {\n data.value = Object.freeze(data.value);\n }\n return data;\n };\n return isAsync(result)\n ? result.then((data) => freeze(data))\n : freeze(result);\n }\n unwrap() {\n return this._def.innerType;\n }\n}\nZodReadonly.create = (type, params) => {\n return new ZodReadonly({\n innerType: type,\n typeName: ZodFirstPartyTypeKind.ZodReadonly,\n ...processCreateParams(params),\n });\n};\nfunction custom(check, params = {}, \n/**\n * @deprecated\n *\n * Pass `fatal` into the params object instead:\n *\n * ```ts\n * z.string().custom((val) => val.length > 5, { fatal: false })\n * ```\n *\n */\nfatal) {\n if (check)\n return ZodAny.create().superRefine((data, ctx) => {\n var _a, _b;\n if (!check(data)) {\n const p = typeof params === \"function\"\n ? params(data)\n : typeof params === \"string\"\n ? { message: params }\n : params;\n const _fatal = (_b = (_a = p.fatal) !== null && _a !== void 0 ? _a : fatal) !== null && _b !== void 0 ? _b : true;\n const p2 = typeof p === \"string\" ? { message: p } : p;\n ctx.addIssue({ code: \"custom\", ...p2, fatal: _fatal });\n }\n });\n return ZodAny.create();\n}\nconst late = {\n object: ZodObject.lazycreate,\n};\nvar ZodFirstPartyTypeKind;\n(function (ZodFirstPartyTypeKind) {\n ZodFirstPartyTypeKind[\"ZodString\"] = \"ZodString\";\n ZodFirstPartyTypeKind[\"ZodNumber\"] = \"ZodNumber\";\n ZodFirstPartyTypeKind[\"ZodNaN\"] = \"ZodNaN\";\n ZodFirstPartyTypeKind[\"ZodBigInt\"] = \"ZodBigInt\";\n ZodFirstPartyTypeKind[\"ZodBoolean\"] = \"ZodBoolean\";\n ZodFirstPartyTypeKind[\"ZodDate\"] = \"ZodDate\";\n ZodFirstPartyTypeKind[\"ZodSymbol\"] = \"ZodSymbol\";\n ZodFirstPartyTypeKind[\"ZodUndefined\"] = \"ZodUndefined\";\n ZodFirstPartyTypeKind[\"ZodNull\"] = \"ZodNull\";\n ZodFirstPartyTypeKind[\"ZodAny\"] = \"ZodAny\";\n ZodFirstPartyTypeKind[\"ZodUnknown\"] = \"ZodUnknown\";\n ZodFirstPartyTypeKind[\"ZodNever\"] = \"ZodNever\";\n ZodFirstPartyTypeKind[\"ZodVoid\"] = \"ZodVoid\";\n ZodFirstPartyTypeKind[\"ZodArray\"] = \"ZodArray\";\n ZodFirstPartyTypeKind[\"ZodObject\"] = \"ZodObject\";\n ZodFirstPartyTypeKind[\"ZodUnion\"] = \"ZodUnion\";\n ZodFirstPartyTypeKind[\"ZodDiscriminatedUnion\"] = \"ZodDiscriminatedUnion\";\n ZodFirstPartyTypeKind[\"ZodIntersection\"] = \"ZodIntersection\";\n ZodFirstPartyTypeKind[\"ZodTuple\"] = \"ZodTuple\";\n ZodFirstPartyTypeKind[\"ZodRecord\"] = \"ZodRecord\";\n ZodFirstPartyTypeKind[\"ZodMap\"] = \"ZodMap\";\n ZodFirstPartyTypeKind[\"ZodSet\"] = \"ZodSet\";\n ZodFirstPartyTypeKind[\"ZodFunction\"] = \"ZodFunction\";\n ZodFirstPartyTypeKind[\"ZodLazy\"] = \"ZodLazy\";\n ZodFirstPartyTypeKind[\"ZodLiteral\"] = \"ZodLiteral\";\n ZodFirstPartyTypeKind[\"ZodEnum\"] = \"ZodEnum\";\n ZodFirstPartyTypeKind[\"ZodEffects\"] = \"ZodEffects\";\n ZodFirstPartyTypeKind[\"ZodNativeEnum\"] = \"ZodNativeEnum\";\n ZodFirstPartyTypeKind[\"ZodOptional\"] = \"ZodOptional\";\n ZodFirstPartyTypeKind[\"ZodNullable\"] = \"ZodNullable\";\n ZodFirstPartyTypeKind[\"ZodDefault\"] = \"ZodDefault\";\n ZodFirstPartyTypeKind[\"ZodCatch\"] = \"ZodCatch\";\n ZodFirstPartyTypeKind[\"ZodPromise\"] = \"ZodPromise\";\n ZodFirstPartyTypeKind[\"ZodBranded\"] = \"ZodBranded\";\n ZodFirstPartyTypeKind[\"ZodPipeline\"] = \"ZodPipeline\";\n ZodFirstPartyTypeKind[\"ZodReadonly\"] = \"ZodReadonly\";\n})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));\nconst instanceOfType = (\n// const instanceOfType = <T extends new (...args: any[]) => any>(\ncls, params = {\n message: `Input not instance of ${cls.name}`,\n}) => custom((data) => data instanceof cls, params);\nconst stringType = ZodString.create;\nconst numberType = ZodNumber.create;\nconst nanType = ZodNaN.create;\nconst bigIntType = ZodBigInt.create;\nconst booleanType = ZodBoolean.create;\nconst dateType = ZodDate.create;\nconst symbolType = ZodSymbol.create;\nconst undefinedType = ZodUndefined.create;\nconst nullType = ZodNull.create;\nconst anyType = ZodAny.create;\nconst unknownType = ZodUnknown.create;\nconst neverType = ZodNever.create;\nconst voidType = ZodVoid.create;\nconst arrayType = ZodArray.create;\nconst objectType = ZodObject.create;\nconst strictObjectType = ZodObject.strictCreate;\nconst unionType = ZodUnion.create;\nconst discriminatedUnionType = ZodDiscriminatedUnion.create;\nconst intersectionType = ZodIntersection.create;\nconst tupleType = ZodTuple.create;\nconst recordType = ZodRecord.create;\nconst mapType = ZodMap.create;\nconst setType = ZodSet.create;\nconst functionType = ZodFunction.create;\nconst lazyType = ZodLazy.create;\nconst literalType = ZodLiteral.create;\nconst enumType = ZodEnum.create;\nconst nativeEnumType = ZodNativeEnum.create;\nconst promiseType = ZodPromise.create;\nconst effectsType = ZodEffects.create;\nconst optionalType = ZodOptional.create;\nconst nullableType = ZodNullable.create;\nconst preprocessType = ZodEffects.createWithPreprocess;\nconst pipelineType = ZodPipeline.create;\nconst ostring = () => stringType().optional();\nconst onumber = () => numberType().optional();\nconst oboolean = () => booleanType().optional();\nconst coerce = {\n string: ((arg) => ZodString.create({ ...arg, coerce: true })),\n number: ((arg) => ZodNumber.create({ ...arg, coerce: true })),\n boolean: ((arg) => ZodBoolean.create({\n ...arg,\n coerce: true,\n })),\n bigint: ((arg) => ZodBigInt.create({ ...arg, coerce: true })),\n date: ((arg) => ZodDate.create({ ...arg, coerce: true })),\n};\nconst NEVER = INVALID;\n\nvar z = /*#__PURE__*/Object.freeze({\n __proto__: null,\n defaultErrorMap: errorMap,\n setErrorMap: setErrorMap,\n getErrorMap: getErrorMap,\n makeIssue: makeIssue,\n EMPTY_PATH: EMPTY_PATH,\n addIssueToContext: addIssueToContext,\n ParseStatus: ParseStatus,\n INVALID: INVALID,\n DIRTY: DIRTY,\n OK: OK,\n isAborted: isAborted,\n isDirty: isDirty,\n isValid: isValid,\n isAsync: isAsync,\n get util () { return util; },\n get objectUtil () { return objectUtil; },\n ZodParsedType: ZodParsedType,\n getParsedType: getParsedType,\n ZodType: ZodType,\n datetimeRegex: datetimeRegex,\n ZodString: ZodString,\n ZodNumber: ZodNumber,\n ZodBigInt: ZodBigInt,\n ZodBoolean: ZodBoolean,\n ZodDate: ZodDate,\n ZodSymbol: ZodSymbol,\n ZodUndefined: ZodUndefined,\n ZodNull: ZodNull,\n ZodAny: ZodAny,\n ZodUnknown: ZodUnknown,\n ZodNever: ZodNever,\n ZodVoid: ZodVoid,\n ZodArray: ZodArray,\n ZodObject: ZodObject,\n ZodUnion: ZodUnion,\n ZodDiscriminatedUnion: ZodDiscriminatedUnion,\n ZodIntersection: ZodIntersection,\n ZodTuple: ZodTuple,\n ZodRecord: ZodRecord,\n ZodMap: ZodMap,\n ZodSet: ZodSet,\n ZodFunction: ZodFunction,\n ZodLazy: ZodLazy,\n ZodLiteral: ZodLiteral,\n ZodEnum: ZodEnum,\n ZodNativeEnum: ZodNativeEnum,\n ZodPromise: ZodPromise,\n ZodEffects: ZodEffects,\n ZodTransformer: ZodEffects,\n ZodOptional: ZodOptional,\n ZodNullable: ZodNullable,\n ZodDefault: ZodDefault,\n ZodCatch: ZodCatch,\n ZodNaN: ZodNaN,\n BRAND: BRAND,\n ZodBranded: ZodBranded,\n ZodPipeline: ZodPipeline,\n ZodReadonly: ZodReadonly,\n custom: custom,\n Schema: ZodType,\n ZodSchema: ZodType,\n late: late,\n get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },\n coerce: coerce,\n any: anyType,\n array: arrayType,\n bigint: bigIntType,\n boolean: booleanType,\n date: dateType,\n discriminatedUnion: discriminatedUnionType,\n effect: effectsType,\n 'enum': enumType,\n 'function': functionType,\n 'instanceof': instanceOfType,\n intersection: intersectionType,\n lazy: lazyType,\n literal: literalType,\n map: mapType,\n nan: nanType,\n nativeEnum: nativeEnumType,\n never: neverType,\n 'null': nullType,\n nullable: nullableType,\n number: numberType,\n object: objectType,\n oboolean: oboolean,\n onumber: onumber,\n optional: optionalType,\n ostring: ostring,\n pipeline: pipelineType,\n preprocess: preprocessType,\n promise: promiseType,\n record: recordType,\n set: setType,\n strictObject: strictObjectType,\n string: stringType,\n symbol: symbolType,\n transformer: effectsType,\n tuple: tupleType,\n 'undefined': undefinedType,\n union: unionType,\n unknown: unknownType,\n 'void': voidType,\n NEVER: NEVER,\n ZodIssueCode: ZodIssueCode,\n quotelessJson: quotelessJson,\n ZodError: ZodError\n});\n\nexport { BRAND, DIRTY, EMPTY_PATH, INVALID, NEVER, OK, ParseStatus, ZodType as Schema, ZodAny, ZodArray, ZodBigInt, ZodBoolean, ZodBranded, ZodCatch, ZodDate, ZodDefault, ZodDiscriminatedUnion, ZodEffects, ZodEnum, ZodError, ZodFirstPartyTypeKind, ZodFunction, ZodIntersection, ZodIssueCode, ZodLazy, ZodLiteral, ZodMap, ZodNaN, ZodNativeEnum, ZodNever, ZodNull, ZodNullable, ZodNumber, ZodObject, ZodOptional, ZodParsedType, ZodPipeline, ZodPromise, ZodReadonly, ZodRecord, ZodType as ZodSchema, ZodSet, ZodString, ZodSymbol, ZodEffects as ZodTransformer, ZodTuple, ZodType, ZodUndefined, ZodUnion, ZodUnknown, ZodVoid, addIssueToContext, anyType as any, arrayType as array, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, z as default, errorMap as defaultErrorMap, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, nanType as nan, nativeEnumType as nativeEnum, neverType as never, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectUtil, oboolean, onumber, optionalType as optional, ostring, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void, z };\n","import { z } from \"zod\";\n\n//#region src/bmodel/code.ts\nconst Code = z.object({\n\ttype: z.literal(\"plain\"),\n\tcontent: z.string()\n});\n\n//#endregion\nexport { Code };\n//# sourceMappingURL=code.js.map","import { z } from \"zod\";\n\n//#region src/drivers/blob.ts\n/** Range in bytes, from should be less than to. */\nconst RangeBytes = z.object({\n\tfrom: z.number().min(0),\n\tto: z.number().min(1)\n});\nfunction newRangeBytesOpt(from, to) {\n\tif (from == void 0 || to == void 0) return;\n\tconst range = {\n\t\tfrom,\n\t\tto\n\t};\n\tvalidateRangeBytes(range, \"newRangeBytesOpt\");\n\treturn range;\n}\nfunction validateRangeBytes(range, errMsg) {\n\tif (range.from < 0 || range.from >= range.to) throw new Error(`${errMsg}: invalid bytes range: ${range}`);\n}\n\n//#endregion\nexport { RangeBytes, newRangeBytesOpt, validateRangeBytes };\n//# sourceMappingURL=blob.js.map","//#region src/util.ts\nfunction assertNever(x) {\n\tthrow new Error(\"Unexpected object: \" + x);\n}\n/**\n* Return unique entries of the array by the provided id\n* For each id, the last entry is kept\n*/\nfunction uniqueBy(array, makeId) {\n\treturn [...new Map(array.map((e) => [makeId(e), e])).values()];\n}\n\n//#endregion\nexport { assertNever, uniqueBy };\n//# sourceMappingURL=util.js.map","import { assertNever } from \"../../util.js\";\n\n//#region src/drivers/pframe/data_info.ts\n/**\n* Type guard function that checks if the given value is a valid DataInfo.\n*\n* @param value - The value to check\n* @returns True if the value is a valid DataInfo, false otherwise\n*/\nfunction isDataInfo(value) {\n\tif (!value || typeof value !== \"object\") return false;\n\tconst data = value;\n\tif (!(\"type\" in data)) return false;\n\tswitch (data.type) {\n\t\tcase \"Json\": return typeof data.keyLength === \"number\" && data.data !== void 0 && typeof data.data === \"object\";\n\t\tcase \"JsonPartitioned\":\n\t\tcase \"BinaryPartitioned\":\n\t\tcase \"ParquetPartitioned\": return typeof data.partitionKeyLength === \"number\" && data.parts !== void 0 && typeof data.parts === \"object\";\n\t\tdefault: return false;\n\t}\n}\nfunction mapDataInfo(dataInfo, mapFn) {\n\tif (dataInfo === void 0) return;\n\tswitch (dataInfo.type) {\n\t\tcase \"Json\": return dataInfo;\n\t\tcase \"JsonPartitioned\": {\n\t\t\tconst newParts = {};\n\t\t\tfor (const [key, blob] of Object.entries(dataInfo.parts)) newParts[key] = mapFn(blob);\n\t\t\treturn {\n\t\t\t\t...dataInfo,\n\t\t\t\tparts: newParts\n\t\t\t};\n\t\t}\n\t\tcase \"BinaryPartitioned\": {\n\t\t\tconst newParts = {};\n\t\t\tfor (const [key, chunk] of Object.entries(dataInfo.parts)) newParts[key] = {\n\t\t\t\tindex: mapFn(chunk.index),\n\t\t\t\tvalues: mapFn(chunk.values)\n\t\t\t};\n\t\t\treturn {\n\t\t\t\t...dataInfo,\n\t\t\t\tparts: newParts\n\t\t\t};\n\t\t}\n\t\tcase \"ParquetPartitioned\": {\n\t\t\tconst newParts = {};\n\t\t\tfor (const [key, blob] of Object.entries(dataInfo.parts)) newParts[key] = mapFn(blob);\n\t\t\treturn {\n\t\t\t\t...dataInfo,\n\t\t\t\tparts: newParts\n\t\t\t};\n\t\t}\n\t}\n}\n/**\n* @param dataInfo - The source DataInfo object\n* @param cb - Callback, function that have access to every blob to visit them all\n* @returns Nothing\n*/\nfunction visitDataInfo(dataInfo, cb) {\n\tswitch (dataInfo.type) {\n\t\tcase \"Json\": break;\n\t\tcase \"JsonPartitioned\":\n\t\t\tObject.values(dataInfo.parts).forEach(cb);\n\t\t\tbreak;\n\t\tcase \"BinaryPartitioned\":\n\t\t\tObject.values(dataInfo.parts).forEach((chunk) => {\n\t\t\t\tcb(chunk.index);\n\t\t\t\tcb(chunk.values);\n\t\t\t});\n\t\t\tbreak;\n\t\tcase \"ParquetPartitioned\":\n\t\t\tObject.values(dataInfo.parts).forEach(cb);\n\t\t\tbreak;\n\t}\n}\n/**\n* Type guard function that checks if the given value is a valid DataInfoEntries.\n*\n* @param value - The value to check\n* @returns True if the value is a valid DataInfoEntries, false otherwise\n*/\nfunction isDataInfoEntries(value) {\n\tif (!value || typeof value !== \"object\") return false;\n\tconst data = value;\n\tif (!(\"type\" in data)) return false;\n\tswitch (data.type) {\n\t\tcase \"Json\": return typeof data.keyLength === \"number\" && Array.isArray(data.data);\n\t\tcase \"JsonPartitioned\":\n\t\tcase \"BinaryPartitioned\":\n\t\tcase \"ParquetPartitioned\": return typeof data.partitionKeyLength === \"number\" && Array.isArray(data.parts);\n\t\tdefault: return false;\n\t}\n}\n/**\n* Type guard function that checks if the given value is a valid PartitionedDataInfoEntries.\n*\n* @template Blob - Type parameter representing the storage reference type\n* @param value - The value to check\n* @returns True if the value is a valid PartitionedDataInfoEntries, false otherwise\n*/\nfunction isPartitionedDataInfoEntries(value) {\n\tif (!isDataInfoEntries(value)) return false;\n\tswitch (value.type) {\n\t\tcase \"JsonPartitioned\":\n\t\tcase \"BinaryPartitioned\":\n\t\tcase \"ParquetPartitioned\": return true;\n\t\tdefault: return false;\n\t}\n}\n/**\n* Converts DataInfo to DataInfoEntries\n*\n* @param dataInfo - The record-based DataInfo object\n* @returns The equivalent entry-based DataInfoEntries object\n*/\nfunction dataInfoToEntries(dataInfo) {\n\tswitch (dataInfo.type) {\n\t\tcase \"Json\": return {\n\t\t\ttype: \"Json\",\n\t\t\tkeyLength: dataInfo.keyLength,\n\t\t\tdata: Object.entries(dataInfo.data).map(([keyStr, value]) => {\n\t\t\t\treturn {\n\t\t\t\t\tkey: JSON.parse(keyStr),\n\t\t\t\t\tvalue\n\t\t\t\t};\n\t\t\t})\n\t\t};\n\t\tcase \"JsonPartitioned\": return {\n\t\t\ttype: \"JsonPartitioned\",\n\t\t\tpartitionKeyLength: dataInfo.partitionKeyLength,\n\t\t\tparts: Object.entries(dataInfo.parts).map(([keyStr, blob]) => {\n\t\t\t\treturn {\n\t\t\t\t\tkey: JSON.parse(keyStr),\n\t\t\t\t\tvalue: blob\n\t\t\t\t};\n\t\t\t})\n\t\t};\n\t\tcase \"BinaryPartitioned\": return {\n\t\t\ttype: \"BinaryPartitioned\",\n\t\t\tpartitionKeyLength: dataInfo.partitionKeyLength,\n\t\t\tparts: Object.entries(dataInfo.parts).map(([keyStr, chunk]) => {\n\t\t\t\treturn {\n\t\t\t\t\tkey: JSON.parse(keyStr),\n\t\t\t\t\tvalue: chunk\n\t\t\t\t};\n\t\t\t})\n\t\t};\n\t\tcase \"ParquetPartitioned\": return {\n\t\t\ttype: \"ParquetPartitioned\",\n\t\t\tpartitionKeyLength: dataInfo.partitionKeyLength,\n\t\t\tparts: Object.entries(dataInfo.parts).map(([keyStr, blob]) => {\n\t\t\t\treturn {\n\t\t\t\t\tkey: JSON.parse(keyStr),\n\t\t\t\t\tvalue: blob\n\t\t\t\t};\n\t\t\t})\n\t\t};\n\t\tdefault: assertNever(dataInfo);\n\t}\n}\n/**\n* Converts DataInfoEntries to DataInfo\n*\n* @param dataInfoEntries - The entry-based DataInfoEntries object\n* @returns The equivalent record-based DataInfo object\n*/\nfunction entriesToDataInfo(dataInfoEntries) {\n\tswitch (dataInfoEntries.type) {\n\t\tcase \"Json\": return {\n\t\t\ttype: \"Json\",\n\t\t\tkeyLength: dataInfoEntries.keyLength,\n\t\t\tdata: Object.fromEntries(dataInfoEntries.data.map(({ key, value }) => [JSON.stringify(key), value]))\n\t\t};\n\t\tcase \"JsonPartitioned\": return {\n\t\t\ttype: \"JsonPartitioned\",\n\t\t\tpartitionKeyLength: dataInfoEntries.partitionKeyLength,\n\t\t\tparts: Object.fromEntries(dataInfoEntries.parts.map(({ key, value }) => [JSON.stringify(key), value]))\n\t\t};\n\t\tcase \"BinaryPartitioned\": return {\n\t\t\ttype: \"BinaryPartitioned\",\n\t\t\tpartitionKeyLength: dataInfoEntries.partitionKeyLength,\n\t\t\tparts: Object.fromEntries(dataInfoEntries.parts.map(({ key, value }) => [JSON.stringify(key), value]))\n\t\t};\n\t\tcase \"ParquetPartitioned\": return {\n\t\t\ttype: \"ParquetPartitioned\",\n\t\t\tpartitionKeyLength: dataInfoEntries.partitionKeyLength,\n\t\t\tparts: Object.fromEntries(dataInfoEntries.parts.map(({ key, value }) => [JSON.stringify(key), value]))\n\t\t};\n\t\tdefault: assertNever(dataInfoEntries);\n\t}\n}\nfunction mapDataInfoEntries(dataInfoEntries, mapFn) {\n\tif (dataInfoEntries === void 0) return;\n\tswitch (dataInfoEntries.type) {\n\t\tcase \"Json\": return dataInfoEntries;\n\t\tcase \"JsonPartitioned\": return {\n\t\t\t...dataInfoEntries,\n\t\t\tparts: dataInfoEntries.parts.map((entry) => ({\n\t\t\t\tkey: entry.key,\n\t\t\t\tvalue: mapFn(entry.value)\n\t\t\t}))\n\t\t};\n\t\tcase \"BinaryPartitioned\": return {\n\t\t\t...dataInfoEntries,\n\t\t\tparts: dataInfoEntries.parts.map((entry) => ({\n\t\t\t\tkey: entry.key,\n\t\t\t\tvalue: {\n\t\t\t\t\tindex: mapFn(entry.value.index),\n\t\t\t\t\tvalues: mapFn(entry.value.values)\n\t\t\t\t}\n\t\t\t}))\n\t\t};\n\t\tcase \"ParquetPartitioned\": return {\n\t\t\t...dataInfoEntries,\n\t\t\tparts: dataInfoEntries.parts.map((entry) => ({\n\t\t\t\tkey: entry.key,\n\t\t\t\tvalue: mapFn(entry.value)\n\t\t\t}))\n\t\t};\n\t}\n}\n\n//#endregion\nexport { dataInfoToEntries, entriesToDataInfo, isDataInfo, isDataInfoEntries, isPartitionedDataInfoEntries, mapDataInfo, mapDataInfoEntries, visitDataInfo };\n//# sourceMappingURL=data_info.js.map","//#region src/errors.ts\n/**\n* Just for convenience, usually it is an Error with name 'AbortError'\n*/\nvar AbortError = class extends Error {\n\tname = \"AbortError\";\n};\n/**\n* Throw this to show a message without stack trace in UI\n*/\nvar UiError = class extends Error {\n\tname = \"UiError\";\n};\nfunction isAbortError(error) {\n\treturn error instanceof Error && error.name === \"AbortError\";\n}\nfunction hasAbortError(error) {\n\tif (!(error instanceof Error)) return false;\n\treturn error.name === \"AbortError\" || hasAbortError(error.cause);\n}\nfunction isAggregateError(error) {\n\treturn error instanceof Error && error.name === \"AggregateError\";\n}\nvar PFrameError = class extends Error {\n\tname = \"PFrameError\";\n};\nfunction isPFrameError(error) {\n\treturn error instanceof Error && error.name === \"PFrameError\";\n}\nvar PFrameDriverError = class extends PFrameError {\n\tname = \"PFrameError.Driver\";\n};\nfunction isPFrameDriverError(error) {\n\treturn error instanceof Error && error.name === \"PFrameError.Driver\";\n}\nfunction stringifyValue(value) {\n\tif (typeof value === \"string\") return `String value was thrown: ${value}`;\n\tif (value && typeof value === \"object\") try {\n\t\treturn `Plain object was thrown: ${JSON.stringify(value)}`;\n\t} catch (jsonError) {\n\t\treturn `Non-serializable object was thrown (JSON.stringify failed: ${jsonError instanceof Error ? jsonError.message : String(jsonError)}): ${String(value)}`;\n\t}\n\treturn String(`Non-Error value (${typeof value}) was thrown: ${value}`);\n}\nfunction ensureError(value) {\n\tif (value instanceof Error) return value;\n\treturn new Error(stringifyValue(value));\n}\nfunction deserializeError(obj) {\n\tconst cause = obj.cause ? deserializeError(obj.cause) : void 0;\n\tconst error = new Error(obj.message, cause !== void 0 ? { cause } : void 0);\n\terror.name = obj.name || \"Error\";\n\terror.stack = obj.stack;\n\treturn error;\n}\nfunction serializeError(e) {\n\tconst error = ensureError(e);\n\tconst cause = error.cause ? serializeError(error.cause) : void 0;\n\treturn {\n\t\tname: error.name,\n\t\tmessage: error.message,\n\t\tstack: error.stack,\n\t\t...error.cause !== void 0 && { cause }\n\t};\n}\nfunction unwrapResult(result) {\n\tif (result.error) throw result.error instanceof Error ? result.error : deserializeError(result.error);\n\treturn result.value;\n}\nfunction serializeResult(result) {\n\tif (result.error) return { error: serializeError(result.error) };\n\treturn { value: result.value };\n}\nfunction deserializeResult(result) {\n\tif (result.error) return { error: deserializeError(result.error) };\n\treturn { value: result.value };\n}\nfunction wrapCallback(callback) {\n\ttry {\n\t\treturn { value: callback() };\n\t} catch (error) {\n\t\treturn { error: ensureError(error) };\n\t}\n}\nasync function wrapAsyncCallback(callback) {\n\ttry {\n\t\treturn { value: await callback() };\n\t} catch (error) {\n\t\treturn { error: ensureError(error) };\n\t}\n}\nfunction wrapAndSerialize(callback) {\n\treturn serializeResult(wrapCallback(callback));\n}\nasync function wrapAndSerializeAsync(callback) {\n\treturn serializeResult(await wrapAsyncCallback(callback));\n}\n\n//#endregion\nexport { AbortError, PFrameDriverError, PFrameError, UiError, deserializeError, deserializeResult, ensureError, hasAbortError, isAbortError, isAggregateError, isPFrameDriverError, isPFrameError, serializeError, serializeResult, unwrapResult, wrapAndSerialize, wrapAndSerializeAsync, wrapAsyncCallback, wrapCallback };\n//# sourceMappingURL=errors.js.map","/* jshint esversion: 6 */\n/* jslint node: true */\n'use strict';\n\nmodule.exports = function serialize (object) {\n if (typeof object === 'number' && isNaN(object)) {\n throw new Error('NaN is not allowed');\n }\n\n if (typeof object === 'number' && !isFinite(object)) {\n throw new Error('Infinity is not allowed');\n }\n\n if (object === null || typeof object !== 'object') {\n return JSON.stringify(object);\n }\n\n if (object.toJSON instanceof Function) {\n return serialize(object.toJSON());\n }\n\n if (Array.isArray(object)) {\n const values = object.reduce((t, cv, ci) => {\n const comma = ci === 0 ? '' : ',';\n const value = cv === undefined || typeof cv === 'symbol' ? null : cv;\n return `${t}${comma}${serialize(value)}`;\n }, '');\n return `[${values}]`;\n }\n\n const values = Object.keys(object).sort().reduce((t, cv) => {\n if (object[cv] === undefined ||\n typeof object[cv] === 'symbol') {\n return t;\n }\n const comma = t.length === 0 ? '' : ',';\n return `${t}${comma}${serialize(cv)}:${serialize(object[cv])}`;\n }, '');\n return `{${values}}`;\n};\n","import canonicalize from \"canonicalize\";\n\n//#region src/json.ts\nfunction stringifyJson(value) {\n\treturn JSON.stringify(value);\n}\nfunction canonicalizeJson(value) {\n\treturn canonicalize(value);\n}\nfunction parseJson(value) {\n\treturn JSON.parse(value);\n}\nfunction bigintReplacer(_key, value) {\n\treturn typeof value === \"bigint\" ? value.toString() : value;\n}\n\n//#endregion\nexport { bigintReplacer, canonicalizeJson, parseJson, stringifyJson };\n//# sourceMappingURL=json.js.map","import { ensureError } from \"../../../errors.js\";\nimport { canonicalizeJson } from \"../../../json.js\";\nimport { z } from \"zod\";\n\n//#region src/drivers/pframe/spec/spec.ts\nconst ValueType = {\n\tInt: \"Int\",\n\tLong: \"Long\",\n\tFloat: \"Float\",\n\tDouble: \"Double\",\n\tString: \"String\",\n\tBytes: \"Bytes\"\n};\nfunction readMetadata(metadata, key) {\n\treturn metadata?.[key];\n}\nfunction readMetadataJsonOrThrow(metadata, metadataJson, key, methodNameInError = \"readMetadataJsonOrThrow\") {\n\tconst json = readMetadata(metadata, key);\n\tif (json === void 0) return void 0;\n\tconst schema = metadataJson[key];\n\ttry {\n\t\tconst value = JSON.parse(json);\n\t\treturn schema.parse(value);\n\t} catch (error) {\n\t\tthrow new Error(`${methodNameInError} failed, key: ${String(key)}, value: ${json}, error: ${ensureError(error)}`);\n\t}\n}\nfunction readMetadataJson(metadata, metadataJson, key) {\n\ttry {\n\t\treturn readMetadataJsonOrThrow(metadata, metadataJson, key);\n\t} catch {\n\t\treturn;\n\t}\n}\nconst Domain = {\n\tAlphabet: \"pl7.app/alphabet\",\n\tBlockId: \"pl7.app/blockId\",\n\tVDJ: {\n\t\tClustering: { BlockId: \"pl7.app/vdj/clustering/blockId\" },\n\t\tScClonotypeChain: { Index: \"pl7.app/vdj/scClonotypeChain/index\" }\n\t}\n};\nconst DomainJson = {};\nfunction readDomain(spec, key) {\n\treturn readMetadata(spec?.domain, key);\n}\nfunction readDomainJsonOrThrow(spec, key) {\n\treturn readMetadataJsonOrThrow(spec?.domain, DomainJson, key, \"readDomainJsonOrThrow\");\n}\nfunction readDomainJson(spec, key) {\n\treturn readMetadataJson(spec?.domain, DomainJson, key);\n}\nconst Annotation = {\n\tAxisNature: \"pl7.app/axisNature\",\n\tAlphabet: \"pl7.app/alphabet\",\n\tDescription: \"pl7.app/description\",\n\tDiscreteValues: \"pl7.app/discreteValues\",\n\tFormat: \"pl7.app/format\",\n\tGraph: {\n\t\tAxis: {\n\t\t\tHighCardinality: \"pl7.app/graph/axis/highCardinality\",\n\t\t\tLowerLimit: \"pl7.app/graph/axis/lowerLimit\",\n\t\t\tSymmetricRange: \"pl7.app/graph/axis/symmetricRange\",\n\t\t\tUpperLimit: \"pl7.app/graph/axis/upperLimit\"\n\t\t},\n\t\tIsDenseAxis: \"pl7.app/graph/isDenseAxis\",\n\t\tIsVirtual: \"pl7.app/graph/isVirtual\",\n\t\tPalette: \"pl7.app/graph/palette\",\n\t\tThresholds: \"pl7.app/graph/thresholds\",\n\t\tTreatAbsentValuesAs: \"pl7.app/graph/treatAbsentValuesAs\"\n\t},\n\tHideDataFromUi: \"pl7.app/hideDataFromUi\",\n\tHideDataFromGraphs: \"pl7.app/hideDataFromGraphs\",\n\tIsDiscreteFilter: \"pl7.app/isDiscreteFilter\",\n\tIsAnchor: \"pl7.app/isAnchor\",\n\tIsLinkerColumn: \"pl7.app/isLinkerColumn\",\n\tIsScore: \"pl7.app/isScore\",\n\tIsSubset: \"pl7.app/isSubset\",\n\tLabel: \"pl7.app/label\",\n\tMax: \"pl7.app/max\",\n\tMin: \"pl7.app/min\",\n\tMultipliesBy: \"pl7.app/multipliesBy\",\n\tParents: \"pl7.app/parents\",\n\tScore: {\n\t\tDefaultCutoff: \"pl7.app/score/defaultCutoff\",\n\t\tRankingOrder: \"pl7.app/score/rankingOrder\"\n\t},\n\tSequence: {\n\t\tAnnotation: { Mapping: \"pl7.app/sequence/annotation/mapping\" },\n\t\tIsAnnotation: \"pl7.app/sequence/isAnnotation\"\n\t},\n\tTable: {\n\t\tFontFamily: \"pl7.app/table/fontFamily\",\n\t\tOrderPriority: \"pl7.app/table/orderPriority\",\n\t\tVisibility: \"pl7.app/table/visibility\"\n\t},\n\tTrace: \"pl7.app/trace\",\n\tVDJ: {\n\t\tIsAssemblingFeature: \"pl7.app/vdj/isAssemblingFeature\",\n\t\tIsMainSequence: \"pl7.app/vdj/isMainSequence\"\n\t}\n};\nconst ValueTypeSchema = z.enum([\n\t\"Int\",\n\t\"Long\",\n\t\"Float\",\n\t\"Double\",\n\t\"String\"\n]);\nconst AnnotationJson = {\n\t[Annotation.DiscreteValues]: z.array(z.string()).or(z.array(z.number())),\n\t[Annotation.Graph.Axis.HighCardinality]: z.boolean(),\n\t[Annotation.Graph.Axis.LowerLimit]: z.number(),\n\t[Annotation.Graph.Axis.UpperLimit]: z.number(),\n\t[Annotation.Graph.Axis.SymmetricRange]: z.boolean(),\n\t[Annotation.Graph.IsDenseAxis]: z.boolean(),\n\t[Annotation.Graph.Palette]: z.object({\n\t\tmapping: z.record(z.number()),\n\t\tname: z.string()\n\t}),\n\t[Annotation.Graph.Thresholds]: z.array(z.object({\n\t\tcolumnId: z.object({\n\t\t\tvalueType: ValueTypeSchema,\n\t\t\tname: z.string()\n\t\t}),\n\t\tvalue: z.number()\n\t})),\n\t[Annotation.Graph.TreatAbsentValuesAs]: z.number(),\n\t[Annotation.Graph.IsVirtual]: z.boolean(),\n\t[Annotation.HideDataFromUi]: z.boolean(),\n\t[Annotation.HideDataFromGraphs]: z.boolean(),\n\t[Annotation.IsDiscreteFilter]: z.boolean(),\n\t[Annotation.IsLinkerColumn]: z.boolean(),\n\t[Annotation.IsSubset]: z.boolean(),\n\t[Annotation.Max]: z.number(),\n\t[Annotation.Min]: z.number(),\n\t[Annotation.MultipliesBy]: z.array(z.string()),\n\t[Annotation.Parents]: z.array(z.string()),\n\t[Annotation.Sequence.Annotation.Mapping]: z.record(z.string(), z.string()),\n\t[Annotation.Sequence.IsAnnotation]: z.boolean(),\n\t[Annotation.Table.OrderPriority]: z.number(),\n\t[Annotation.Trace]: z.record(z.string(), z.unknown()),\n\t[Annotation.VDJ.IsAssemblingFeature]: z.boolean()\n};\nfunction readAnnotation(spec, key) {\n\treturn readMetadata(spec?.annotations, key);\n}\nfunction readAnnotationJsonOrThrow(spec, key) {\n\treturn readMetadataJsonOrThrow(spec?.annotations, AnnotationJson, key, \"readAnnotationJsonOrThrow\");\n}\nfunction readAnnotationJson(spec, key) {\n\treturn readMetadataJson(spec?.annotations, AnnotationJson, key);\n}\nfunction isLinkerColumn(column) {\n\treturn !!readAnnotationJson(column, Annotation.IsLinkerColumn);\n}\nfunction makeAxisTree(axis) {\n\treturn {\n\t\taxis,\n\t\tchildren: []\n\t};\n}\n/** Build tree by axis parents annotations */\nfunction getAxesTree(rootAxis) {\n\tconst root = makeAxisTree(rootAxis);\n\tlet nodesQ = [root];\n\twhile (nodesQ.length) {\n\t\tconst nextNodes = [];\n\t\tfor (const node of nodesQ) {\n\t\t\tnode.children = node.axis.parentAxesSpec.map(makeAxisTree);\n\t\t\tnextNodes.push(...node.children);\n\t\t}\n\t\tnodesQ = nextNodes;\n\t}\n\treturn root;\n}\n/** Get set of canonicalized axisIds from axisTree */\nfunction getSetFromAxisTree(tree) {\n\tconst set = new Set([canonicalizeJson(getAxisId(tree.axis))]);\n\tlet nodesQ = [tree];\n\twhile (nodesQ.length) {\n\t\tconst nextNodes = [];\n\t\tfor (const node of nodesQ) for (const parent of node.children) {\n\t\t\tset.add(canonicalizeJson(getAxisId(parent.axis)));\n\t\t\tnextNodes.push(parent);\n\t\t}\n\t\tnodesQ = nextNodes;\n\t}\n\treturn set;\n}\n/** Get array of axisSpecs from axisTree */\nfunction getArrayFromAxisTree(tree) {\n\tconst res = [tree.axis];\n\tlet nodesQ = [tree];\n\twhile (nodesQ.length) {\n\t\tconst nextNodes = [];\n\t\tfor (const node of nodesQ) for (const parent of node.children) {\n\t\t\tres.push(parent.axis);\n\t\t\tnextNodes.push(parent);\n\t\t}\n\t\tnodesQ = nextNodes;\n\t}\n\treturn res;\n}\nfunction canonicalizeAxisWithParents(axis) {\n\treturn canonicalizeJson(getArrayFromAxisTree(getAxesTree(axis)).map(getAxisId));\n}\nfunction normalizingAxesComparator(axis1, axis2) {\n\tif (axis1.name !== axis2.name) return axis1.name < axis2.name ? 1 : -1;\n\tif (axis1.type !== axis2.type) return axis1.type < axis2.type ? 1 : -1;\n\tconst domain1 = canonicalizeJson(axis1.domain ?? {});\n\tconst domain2 = canonicalizeJson(axis2.domain ?? {});\n\tif (domain1 !== domain2) return domain1 < domain2 ? 1 : -1;\n\tconst parents1 = canonicalizeAxisWithParents(axis1);\n\tconst parents2 = canonicalizeAxisWithParents(axis2);\n\tif (parents1 !== parents2) return parents1 < parents2 ? 1 : -1;\n\tconst annotation1 = canonicalizeJson(axis1.annotations ?? {});\n\tconst annotation2 = canonicalizeJson(axis2.annotations ?? {});\n\tif (annotation1 !== annotation2) return annotation1 < annotation2 ? 1 : -1;\n\treturn 0;\n}\nfunction parseParentsFromAnnotations(axis) {\n\tconst parentsList = readAnnotationJson(axis, Annotation.Parents);\n\tif (parentsList === void 0) return [];\n\treturn parentsList;\n}\nfunction sortParentsDeep(axisSpec) {\n\taxisSpec.parentAxesSpec.forEach(sortParentsDeep);\n\taxisSpec.parentAxesSpec.sort(normalizingAxesComparator);\n}\nfunction hasCycleOfParents(axisSpec) {\n\tlet nodesQ = [makeAxisTree(axisSpec)];\n\tconst ancestors = new Set(canonicalizeJson(getAxisId(axisSpec)));\n\twhile (nodesQ.length) {\n\t\tconst nextNodes = [];\n\t\tconst levelIds = /* @__PURE__ */ new Set();\n\t\tfor (const node of nodesQ) {\n\t\t\tnode.children = node.axis.parentAxesSpec.map(makeAxisTree);\n\t\t\tfor (const child of node.children) {\n\t\t\t\tconst childId = canonicalizeJson(getAxisId(child.axis));\n\t\t\t\tif (!levelIds.has(childId)) {\n\t\t\t\t\tnextNodes.push(child);\n\t\t\t\t\tlevelIds.add(childId);\n\t\t\t\t\tif (ancestors.has(childId)) return true;\n\t\t\t\t\tancestors.add(childId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnodesQ = nextNodes;\n\t}\n\treturn false;\n}\n/** Create list of normalized axisSpec (parents are in array of specs, not indexes) */\nfunction getNormalizedAxesList(axes) {\n\tif (!axes.length) return [];\n\tconst modifiedAxes = axes.map((axis) => {\n\t\tconst { parentAxes: _, ...copiedRest } = axis;\n\t\treturn {\n\t\t\t...copiedRest,\n\t\t\tannotations: { ...copiedRest.annotations },\n\t\t\tparentAxesSpec: []\n\t\t};\n\t});\n\taxes.forEach((axis, idx) => {\n\t\tconst modifiedAxis = modifiedAxes[idx];\n\t\tif (axis.parentAxes) modifiedAxis.parentAxesSpec = axis.parentAxes.map((idx) => modifiedAxes[idx]);\n\t\telse {\n\t\t\tconst parents = parseParentsFromAnnotations(axis).map((name) => modifiedAxes.find((axis) => axis.name === name));\n\t\t\tmodifiedAxis.parentAxesSpec = parents.some((p) => p === void 0) ? [] : parents;\n\t\t\tdelete modifiedAxis.annotations?.[Annotation.Parents];\n\t\t}\n\t});\n\tif (modifiedAxes.some(hasCycleOfParents)) modifiedAxes.forEach((axis) => {\n\t\taxis.parentAxesSpec = [];\n\t});\n\telse modifiedAxes.forEach((axis) => {\n\t\tsortParentsDeep(axis);\n\t});\n\treturn modifiedAxes;\n}\n/** Create list of regular axisSpec from normalized (parents are indexes, inside of current axes list) */\nfunction getDenormalizedAxesList(axesSpec) {\n\tconst idsList = axesSpec.map((axisSpec) => canonicalizeJson(getAxisId(axisSpec)));\n\treturn axesSpec.map((axisSpec) => {\n\t\tconst parentIdxs = axisSpec.parentAxesSpec.map((axisSpec) => canonicalizeJson(getAxisId(axisSpec))).map((id) => idsList.indexOf(id));\n\t\tconst { parentAxesSpec: _, ...copiedRest } = axisSpec;\n\t\tif (parentIdxs.length) return {\n\t\t\t...copiedRest,\n\t\t\tparentAxes: parentIdxs\n\t\t};\n\t\treturn copiedRest;\n\t});\n}\nconst PColumnName = {\n\tLabel: \"pl7.app/label\",\n\tTable: { RowSelection: \"pl7.app/table/row-selection\" },\n\tVDJ: {\n\t\tLeadSelection: \"pl7.app/vdj/lead-selection\",\n\t\tRankingOrder: \"pl7.app/vdj/ranking-order\",\n\t\tSequence: \"pl7.app/vdj/sequence\"\n\t}\n};\nconst PAxisName = {\n\tSampleId: \"pl7.app/sampleId\",\n\tVDJ: {\n\t\tAssay: { SequenceId: \"pl7.app/vdj/assay/sequenceId\" },\n\t\tClusterId: \"pl7.app/vdj/clusterId\",\n\t\tClonotypeKey: \"pl7.app/vdj/clonotypeKey\",\n\t\tScClonotypeKey: \"pl7.app/vdj/scClonotypeKey\"\n\t}\n};\nfunction isLabelColumn(column) {\n\treturn column.axesSpec.length === 1 && column.name === PColumnName.Label;\n}\nfunction getPColumnSpecId(spec) {\n\treturn {\n\t\tkind: spec.kind,\n\t\tvalueType: spec.valueType,\n\t\tname: spec.name,\n\t\tdomain: spec.domain,\n\t\tparentAxes: spec.parentAxes,\n\t\taxesId: getAxesId(spec.axesSpec)\n\t};\n}\n/** Get column id and spec from a column */\nfunction getColumnIdAndSpec(column) {\n\treturn {\n\t\tcolumnId: column.id,\n\t\tspec: column.spec\n\t};\n}\n/** Extracts axis ids from axis spec */\nfunction getAxisId(spec) {\n\tconst { type, name, domain } = spec;\n\tconst result = {\n\t\ttype,\n\t\tname\n\t};\n\tif (domain && Object.entries(domain).length > 0) Object.assign(result, { domain });\n\treturn result;\n}\n/** Extracts axes ids from axes spec array from column spec */\nfunction getAxesId(spec) {\n\treturn spec.map(getAxisId);\n}\n/** Canonicalizes axis id */\nfunction canonicalizeAxisId(id) {\n\treturn canonicalizeJson(getAxisId(id));\n}\n/** Returns true if all domains from query are found in target */\nfunction matchDomain(query, target) {\n\tif (query === void 0) return target === void 0;\n\tif (target === void 0) return true;\n\tfor (const k in target) if (query[k] !== target[k]) return false;\n\treturn true;\n}\n/** Returns whether \"match\" axis id is compatible with the \"query\" */\nfunction matchAxisId(query, target) {\n\treturn query.name === target.name && matchDomain(query.domain, target.domain);\n}\nfunction getTypeFromPColumnOrAxisSpec(spec) {\n\treturn \"valueType\" in spec ? spec.valueType : spec.type;\n}\nfunction isAxisId(id) {\n\treturn typeof id === \"object\" && id !== null && \"name\" in id && \"type\" in id;\n}\n\n//#endregion\nexport { Annotation, AnnotationJson, Domain, DomainJson, PAxisName, PColumnName, ValueType, canonicalizeAxisId, canonicalizeAxisWithParents, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getNormalizedAxesList, getPColumnSpecId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, isAxisId, isLabelColumn, isLinkerColumn, matchAxisId, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow };\n//# sourceMappingURL=spec.js.map","import { assertNever } from \"../../../util.js\";\nimport { canonicalizeJson } from \"../../../json.js\";\n\n//#region src/drivers/pframe/query/utils.ts\nconst booleanTypesSet = new Set([\n\t\"numericComparison\",\n\t\"stringEquals\",\n\t\"stringContains\",\n\t\"stringContainsFuzzy\",\n\t\"stringRegex\",\n\t\"isNull\",\n\t\"not\",\n\t\"and\",\n\t\"or\",\n\t\"isIn\"\n]);\nfunction isBooleanExpression(expr) {\n\treturn booleanTypesSet.has(expr.type);\n}\n/**\n* Recursively traverses a SpecQuery tree bottom-up, applying visitor callbacks.\n*\n* Traversal order:\n* 1. Recurse into child queries\n* 2. Apply `column` to transform column references in leaf nodes\n* 3. Apply `joinEntry` to each join entry (with inner query already traversed)\n* 4. Assemble node with transformed children\n* 5. Apply `node` to the assembled node\n*/\nfunction traverseQuerySpec(query, visitor) {\n\tconst traverseEntry = (entry) => {\n\t\tconst traversed = {\n\t\t\t...entry,\n\t\t\tentry: traverseQuerySpec(entry.entry, visitor)\n\t\t};\n\t\treturn visitor.joinEntry ? visitor.joinEntry(traversed) : traversed;\n\t};\n\tlet result;\n\tswitch (query.type) {\n\t\tcase \"column\":\n\t\t\tresult = {\n\t\t\t\ttype: \"column\",\n\t\t\t\tcolumn: visitor.column(query.column)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"sparseToDenseColumn\":\n\t\t\tresult = {\n\t\t\t\t...query,\n\t\t\t\tcolumn: visitor.column(query.column)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"inlineColumn\":\n\t\t\tresult = query;\n\t\t\tbreak;\n\t\tcase \"innerJoin\":\n\t\tcase \"fullJoin\":\n\t\t\tresult = {\n\t\t\t\t...query,\n\t\t\t\tentries: query.entries.map(traverseEntry)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"outerJoin\":\n\t\t\tresult = {\n\t\t\t\t...query,\n\t\t\t\tprimary: traverseEntry(query.primary),\n\t\t\t\tsecondary: query.secondary.map(traverseEntry)\n\t\t\t};\n\t\t\tbreak;\n\t\tcase \"filter\":\n\t\tcase \"sort\":\n\t\tcase \"sliceAxes\":\n\t\t\tresult = {\n\t\t\t\t...query,\n\t\t\t\tinput: traverseQuerySpec(query.input, visitor)\n\t\t\t};\n\t\t\tbreak;\n\t\tdefault: assertNever(query);\n\t}\n\treturn visitor.node ? visitor.node(result) : result;\n}\n/** Recursively maps all column references in a SpecQuery tree. */\nfunction mapSpecQueryColumns(query, cb) {\n\treturn traverseQuerySpec(query, { column: cb });\n}\n/** Collects all column references from a SpecQuery tree. */\nfunction collectSpecQueryColumns(query) {\n\tconst result = [];\n\ttraverseQuerySpec(query, { column: (c) => {\n\t\tresult.push(c);\n\t\treturn c;\n\t} });\n\treturn result;\n}\nfunction sortSpecQuery(query) {\n\treturn traverseQuerySpec(query, {\n\t\tcolumn: (c) => c,\n\t\tnode: (node) => {\n\t\t\tswitch (node.type) {\n\t\t\t\tcase \"sparseToDenseColumn\": return {\n\t\t\t\t\t...node,\n\t\t\t\t\taxesIndices: node.axesIndices.toSorted((a, b) => a - b)\n\t\t\t\t};\n\t\t\t\tcase \"innerJoin\":\n\t\t\t\tcase \"fullJoin\": {\n\t\t\t\t\tconst sorted = [...node.entries].sort(cmpQueryJoinEntrySpec);\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...node,\n\t\t\t\t\t\tentries: sorted\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tcase \"outerJoin\": {\n\t\t\t\t\tconst sorted = [...node.secondary].sort(cmpQueryJoinEntrySpec);\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...node,\n\t\t\t\t\t\tsecondary: sorted\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tcase \"sliceAxes\": return {\n\t\t\t\t\t...node,\n\t\t\t\t\taxisFilters: node.axisFilters.toSorted((a, b) => {\n\t\t\t\t\t\tconst ak = canonicalizeJson(a.axisSelector);\n\t\t\t\t\t\tconst bk = canonicalizeJson(b.axisSelector);\n\t\t\t\t\t\treturn ak < bk ? -1 : ak === bk ? 0 : 1;\n\t\t\t\t\t})\n\t\t\t\t};\n\t\t\t\tdefault: return node;\n\t\t\t}\n\t\t},\n\t\tjoinEntry: (entry) => ({\n\t\t\t...entry,\n\t\t\tqualifications: entry.qualifications.toSorted((a, b) => {\n\t\t\t\tconst ak = canonicalizeJson(a.axis);\n\t\t\t\tconst bk = canonicalizeJson(b.axis);\n\t\t\t\treturn ak < bk ? -1 : ak === bk ? 0 : 1;\n\t\t\t})\n\t\t})\n\t});\n}\nfunction cmpQuerySpec(lhs, rhs) {\n\tif (lhs.type !== rhs.type) return lhs.type < rhs.type ? -1 : 1;\n\tswitch (lhs.type) {\n\t\tcase \"column\": return lhs.column < rhs.column ? -1 : lhs.column === rhs.column ? 0 : 1;\n\t\tcase \"inlineColumn\": return lhs.spec.id < rhs.spec.id ? -1 : lhs.spec.id === rhs.spec.id ? 0 : 1;\n\t\tcase \"sparseToDenseColumn\": return lhs.column < rhs.column ? -1 : lhs.column === rhs.column ? 0 : 1;\n\t\tcase \"innerJoin\":\n\t\tcase \"fullJoin\": {\n\t\t\tconst rhsJoin = rhs;\n\t\t\tif (lhs.entries.length !== rhsJoin.entries.length) return lhs.entries.length - rhsJoin.entries.length;\n\t\t\tfor (let i = 0; i < lhs.entries.length; i++) {\n\t\t\t\tconst cmp = cmpQueryJoinEntrySpec(lhs.entries[i], rhsJoin.entries[i]);\n\t\t\t\tif (cmp !== 0) return cmp;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t\tcase \"outerJoin\": {\n\t\t\tconst rhsOuter = rhs;\n\t\t\tconst cmp = cmpQueryJoinEntrySpec(lhs.primary, rhsOuter.primary);\n\t\t\tif (cmp !== 0) return cmp;\n\t\t\tif (lhs.secondary.length !== rhsOuter.secondary.length) return lhs.secondary.length - rhsOuter.secondary.length;\n\t\t\tfor (let i = 0; i < lhs.secondary.length; i++) {\n\t\t\t\tconst cmp = cmpQueryJoinEntrySpec(lhs.secondary[i], rhsOuter.secondary[i]);\n\t\t\t\tif (cmp !== 0) return cmp;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t\tcase \"sliceAxes\": return cmpQuerySpec(lhs.input, rhs.input);\n\t\tcase \"sort\": return cmpQuerySpec(lhs.input, rhs.input);\n\t\tcase \"filter\": return cmpQuerySpec(lhs.input, rhs.input);\n\t\tdefault: assertNever(lhs);\n\t}\n}\nfunction cmpQueryJoinEntrySpec(lhs, rhs) {\n\tconst cmp = cmpQuerySpec(lhs.entry, rhs.entry);\n\tif (cmp !== 0) return cmp;\n\tif (lhs.qualifications.length !== rhs.qualifications.length) return lhs.qualifications.length - rhs.qualifications.length;\n\tfor (let i = 0; i < lhs.qualifications.length; i++) {\n\t\tconst lhsQ = canonicalizeJson(lhs.qualifications[i]);\n\t\tconst rhsQ = canonicalizeJson(rhs.qualifications[i]);\n\t\tif (lhsQ !== rhsQ) return lhsQ < rhsQ ? -1 : 1;\n\t}\n\treturn 0;\n}\n\n//#endregion\nexport { collectSpecQueryColumns, isBooleanExpression, mapSpecQueryColumns, sortSpecQuery, traverseQuerySpec };\n//# sourceMappingURL=utils.js.map","import { assertNever } from \"../../util.js\";\nimport { canonicalizeJson } from \"../../json.js\";\nimport { getAxisId } from \"./spec/spec.js\";\nimport { mapSpecQueryColumns } from \"./query/utils.js\";\nimport \"./query/index.js\";\n\n//#region src/drivers/pframe/table_calculate.ts\nfunction mapPTableDef(def, cb) {\n\treturn {\n\t\t...def,\n\t\tsrc: mapJoinEntry(def.src, cb)\n\t};\n}\nfunction sortPTableDef(def) {\n\tfunction sortFilters(filters) {\n\t\treturn filters.toSorted((lhs, rhs) => {\n\t\t\tif (lhs.column.type === \"axis\" && rhs.column.type === \"axis\") return canonicalizeJson(getAxisId(lhs.column.id)) < canonicalizeJson(getAxisId(rhs.column.id)) ? -1 : 1;\n\t\t\telse if (lhs.column.type === \"column\" && rhs.column.type === \"column\") return lhs.column.id < rhs.column.id ? -1 : 1;\n\t\t\telse return lhs.column.type === \"axis\" ? -1 : 1;\n\t\t});\n\t}\n\treturn {\n\t\tsrc: sortJoinEntry(def.src),\n\t\tpartitionFilters: sortFilters(def.partitionFilters),\n\t\tfilters: sortFilters(def.filters),\n\t\tsorting: def.sorting\n\t};\n}\nfunction mapPTableDefV2(def, cb) {\n\treturn { query: mapSpecQueryColumns(def.query, cb) };\n}\nfunction mapJoinEntry(entry, cb) {\n\tswitch (entry.type) {\n\t\tcase \"column\": return {\n\t\t\ttype: \"column\",\n\t\t\tcolumn: cb(entry.column)\n\t\t};\n\t\tcase \"slicedColumn\": return {\n\t\t\ttype: \"slicedColumn\",\n\t\t\tcolumn: cb(entry.column),\n\t\t\tnewId: entry.newId,\n\t\t\taxisFilters: entry.axisFilters\n\t\t};\n\t\tcase \"artificialColumn\": return {\n\t\t\ttype: \"artificialColumn\",\n\t\t\tcolumn: cb(entry.column),\n\t\t\tnewId: entry.newId,\n\t\t\taxesIndices: entry.axesIndices\n\t\t};\n\t\tcase \"inlineColumn\": return entry;\n\t\tcase \"inner\":\n\t\tcase \"full\": return {\n\t\t\ttype: entry.type,\n\t\t\tentries: entry.entries.map((col) => mapJoinEntry(col, cb))\n\t\t};\n\t\tcase \"outer\": return {\n\t\t\ttype: \"outer\",\n\t\t\tprimary: mapJoinEntry(entry.primary, cb),\n\t\t\tsecondary: entry.secondary.map((col) => mapJoinEntry(col, cb))\n\t\t};\n\t\tdefault: assertNever(entry);\n\t}\n}\nfunction cmpJoinEntries(lhs, rhs) {\n\tif (lhs.type !== rhs.type) return lhs.type < rhs.type ? -1 : 1;\n\tconst type = lhs.type;\n\tswitch (type) {\n\t\tcase \"column\": return lhs.column < rhs.column ? -1 : 1;\n\t\tcase \"slicedColumn\":\n\t\tcase \"artificialColumn\": return lhs.newId < rhs.newId ? -1 : 1;\n\t\tcase \"inlineColumn\": return lhs.column.id < rhs.column.id ? -1 : 1;\n\t\tcase \"inner\":\n\t\tcase \"full\": {\n\t\t\tconst rhsInner = rhs;\n\t\t\tif (lhs.entries.length !== rhsInner.entries.length) return lhs.entries.length - rhsInner.entries.length;\n\t\t\tfor (let i = 0; i < lhs.entries.length; i++) {\n\t\t\t\tconst cmp = cmpJoinEntries(lhs.entries[i], rhsInner.entries[i]);\n\t\t\t\tif (cmp !== 0) return cmp;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t\tcase \"outer\": {\n\t\t\tconst rhsOuter = rhs;\n\t\t\tconst cmp = cmpJoinEntries(lhs.primary, rhsOuter.primary);\n\t\t\tif (cmp !== 0) return cmp;\n\t\t\tif (lhs.secondary.length !== rhsOuter.secondary.length) return lhs.secondary.length - rhsOuter.secondary.length;\n\t\t\tfor (let i = 0; i < lhs.secondary.length; i++) {\n\t\t\t\tconst cmp = cmpJoinEntries(lhs.secondary[i], rhsOuter.secondary[i]);\n\t\t\t\tif (cmp !== 0) return cmp;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t\tdefault: assertNever(type);\n\t}\n}\nfunction sortJoinEntry(entry) {\n\tswitch (entry.type) {\n\t\tcase \"column\":\n\t\tcase \"slicedColumn\":\n\t\tcase \"inlineColumn\": return entry;\n\t\tcase \"artificialColumn\": {\n\t\t\tconst sortedAxesIndices = entry.axesIndices.toSorted((lhs, rhs) => lhs - rhs);\n\t\t\treturn {\n\t\t\t\t...entry,\n\t\t\t\taxesIndices: sortedAxesIndices\n\t\t\t};\n\t\t}\n\t\tcase \"inner\":\n\t\tcase \"full\": {\n\t\t\tconst sortedEntries = entry.entries.map(sortJoinEntry);\n\t\t\tsortedEntries.sort(cmpJoinEntries);\n\t\t\treturn {\n\t\t\t\t...entry,\n\t\t\t\tentries: sortedEntries\n\t\t\t};\n\t\t}\n\t\tcase \"outer\": {\n\t\t\tconst sortedSecondary = entry.secondary.map(sortJoinEntry);\n\t\t\tsortedSecondary.sort(cmpJoinEntries);\n\t\t\treturn {\n\t\t\t\t...entry,\n\t\t\t\tprimary: sortJoinEntry(entry.primary),\n\t\t\t\tsecondary: sortedSecondary\n\t\t\t};\n\t\t}\n\t\tdefault: assertNever(entry);\n\t}\n}\n\n//#endregion\nexport { mapJoinEntry, mapPTableDef, mapPTableDefV2, sortJoinEntry, sortPTableDef };\n//# sourceMappingURL=table_calculate.js.map","import canonicalize from \"canonicalize\";\n\n//#region src/drivers/pframe/spec/ids.ts\n/**\n* Canonically serializes a {@link UniversalPColumnId} to a string.\n* @param id - The column identifier to serialize\n* @returns The canonically serialized string\n*/\nfunction stringifyColumnId(id) {\n\treturn canonicalize(id);\n}\n/**\n* Parses a canonically serialized {@link UniversalPColumnId} from a string.\n* @param str - The string to parse\n* @returns The parsed column identifier\n*/\nfunction parseColumnId(str) {\n\treturn JSON.parse(str);\n}\n\n//#endregion\nexport { parseColumnId, stringifyColumnId };\n//# sourceMappingURL=ids.js.map","import { getAxisId, matchAxisId } from \"./spec.js\";\nimport { stringifyColumnId } from \"./ids.js\";\nimport canonicalize from \"canonicalize\";\n\n//#region src/drivers/pframe/spec/anchored.ts\nfunction axisKey(axis) {\n\treturn canonicalize(getAxisId(axis));\n}\nfunction domainKey(key, value) {\n\treturn JSON.stringify([key, value]);\n}\n/**\n* Context for resolving and generating anchored references to columns and axes\n* Maintains maps of known domain values and axes that can be referenced by anchors\n*/\nvar AnchoredIdDeriver = class {\n\tdomains = /* @__PURE__ */ new Map();\n\taxes = /* @__PURE__ */ new Map();\n\t/**\n\t* Domain packs are used to group domain keys that can be anchored to the same anchor\n\t* This is used to optimize the lookup of domain anchors\n\t*/\n\tdomainPacks = [];\n\t/**\n\t* Maps domain packs to anchors\n\t*/\n\tdomainPackToAnchor = /* @__PURE__ */ new Map();\n\t/**\n\t* Creates a new anchor context from a set of anchor column specifications\n\t* @param anchors Record of anchor column specifications indexed by anchor ID\n\t*/\n\tconstructor(anchors) {\n\t\tthis.anchors = anchors;\n\t\tconst anchorEntries = Object.entries(anchors);\n\t\tanchorEntries.sort((a, b) => a[0].localeCompare(b[0]));\n\t\tfor (const [anchorId, spec] of anchorEntries) {\n\t\t\tfor (let axisIdx = 0; axisIdx < spec.axesSpec.length; axisIdx++) {\n\t\t\t\tconst axis = spec.axesSpec[axisIdx];\n\t\t\t\tconst key = axisKey(axis);\n\t\t\t\tthis.axes.set(key, {\n\t\t\t\t\tanchor: anchorId,\n\t\t\t\t\tidx: axisIdx\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (spec.domain !== void 0) {\n\t\t\t\tconst domainEntries = Object.entries(spec.domain);\n\t\t\t\tdomainEntries.sort((a, b) => a[0].localeCompare(b[0]));\n\t\t\t\tthis.domainPackToAnchor.set(JSON.stringify(domainEntries), anchorId);\n\t\t\t\tthis.domainPacks.push(domainEntries.map(([dKey]) => dKey));\n\t\t\t\tfor (const [dKey, dValue] of domainEntries) {\n\t\t\t\t\tconst key = domainKey(dKey, dValue);\n\t\t\t\t\tthis.domains.set(key, anchorId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Implementation of derive method\n\t*/\n\tderive(spec, axisFilters) {\n\t\tconst result = {\n\t\t\tname: spec.name,\n\t\t\taxes: []\n\t\t};\n\t\tlet skipDomains = void 0;\n\t\tif (spec.domain !== void 0) outer: for (const domainPack of this.domainPacks) {\n\t\t\tconst dAnchor = [];\n\t\t\tfor (const domainKey of domainPack) {\n\t\t\t\tconst dValue = spec.domain[domainKey];\n\t\t\t\tif (dValue !== void 0) dAnchor.push([domainKey, dValue]);\n\t\t\t\telse break outer;\n\t\t\t}\n\t\t\tconst domainAnchor = this.domainPackToAnchor.get(JSON.stringify(dAnchor));\n\t\t\tif (domainAnchor !== void 0) {\n\t\t\t\tresult.domainAnchor = domainAnchor;\n\t\t\t\tskipDomains = new Set(domainPack);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (const [dKey, dValue] of Object.entries(spec.domain ?? {})) {\n\t\t\tif (skipDomains !== void 0 && skipDomains.has(dKey)) continue;\n\t\t\tconst key = domainKey(dKey, dValue);\n\t\t\tconst anchorId = this.domains.get(key);\n\t\t\tresult.domain ??= {};\n\t\t\tresult.domain[dKey] = anchorId ? { anchor: anchorId } : dValue;\n\t\t}\n\t\tresult.axes = spec.axesSpec.map((axis) => {\n\t\t\tconst key = axisKey(axis);\n\t\t\tconst anchorAxisRef = this.axes.get(key);\n\t\t\tif (anchorAxisRef === void 0) return getAxisId(axis);\n\t\t\telse return anchorAxisRef;\n\t\t});\n\t\tif (!axisFilters || axisFilters.length === 0) return result;\n\t\tconst resolvedFilters = [];\n\t\tfor (const filter of axisFilters) {\n\t\t\tconst [axisIdOrIndex, value] = filter;\n\t\t\tif (typeof axisIdOrIndex === \"number\") {\n\t\t\t\tif (axisIdOrIndex < 0 || axisIdOrIndex >= spec.axesSpec.length) throw new Error(`Axis index ${axisIdOrIndex} is out of bounds (0-${spec.axesSpec.length - 1})`);\n\t\t\t\tresolvedFilters.push([axisIdOrIndex, value]);\n\t\t\t} else {\n\t\t\t\tconst axisIndex = spec.axesSpec.findIndex((axis) => axis.name === axisIdOrIndex);\n\t\t\t\tif (axisIndex === -1) throw new Error(`Axis with name \"${axisIdOrIndex}\" not found in the column specification`);\n\t\t\t\tresolvedFilters.push([axisIndex, value]);\n\t\t\t}\n\t\t}\n\t\tresolvedFilters.sort((a, b) => a[0] - b[0]);\n\t\treturn {\n\t\t\tsource: result,\n\t\t\taxisFilters: resolvedFilters\n\t\t};\n\t}\n\t/**\n\t* Derives a canonicalized string representation of an anchored column identifier, can be used as a unique identifier for the column\n\t* @param spec Column specification to anchor\n\t* @param axisFilters Optional axis filters to apply to the column\n\t* @returns A canonicalized string representation of the anchored column identifier\n\t*/\n\tderiveS(spec, axisFilters) {\n\t\treturn stringifyColumnId(this.derive(spec, axisFilters));\n\t}\n};\n/**\n* Resolves anchored references in a column matcher to create a non-anchored matcher.\n* Doing an opposite operation to {@link AnchorIdDeriver.derive()}.\n*\n* @param anchors - Record of anchor column specifications indexed by anchor id\n* @param matcher - An anchored column matcher (or id, which is subtype of it) containing references that need to be resolved\n* @param options - Options for resolving anchors\n* @returns A non-anchored column matcher with all references resolved to actual values\n*/\nfunction resolveAnchors(anchors, matcher, options) {\n\tconst result = { ...matcher };\n\tconst ignoreMissingDomains = options?.ignoreMissingDomains ?? false;\n\tif (result.domainAnchor !== void 0) {\n\t\tconst anchorSpec = anchors[result.domainAnchor];\n\t\tif (!anchorSpec) throw new Error(`Anchor \"${result.domainAnchor}\" not found`);\n\t\tresult.domain = {\n\t\t\t...anchorSpec.domain || {},\n\t\t\t...result.domain\n\t\t};\n\t\tdelete result.domainAnchor;\n\t}\n\tif (result.domain) {\n\t\tconst resolvedDomain = {};\n\t\tfor (const [key, value] of Object.entries(result.domain)) if (typeof value === \"string\") resolvedDomain[key] = value;\n\t\telse {\n\t\t\tconst anchorSpec = anchors[value.anchor];\n\t\t\tif (!anchorSpec) throw new Error(`Anchor \"${value.anchor}\" not found for domain key \"${key}\"`);\n\t\t\tif (!anchorSpec.domain || anchorSpec.domain[key] === void 0) {\n\t\t\t\tif (!ignoreMissingDomains) throw new Error(`Domain key \"${key}\" not found in anchor \"${value.anchor}\"`);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tresolvedDomain[key] = anchorSpec.domain[key];\n\t\t}\n\t\tresult.domain = resolvedDomain;\n\t}\n\tif (result.axes) result.axes = result.axes.map((axis) => resolveAxisReference(anchors, axis));\n\treturn result;\n}\n/**\n* Resolves an anchored axis reference to a concrete AxisId\n*/\nfunction resolveAxisReference(anchors, axisRef) {\n\tif (!isAnchorAxisRef(axisRef)) return axisRef;\n\tconst anchorId = axisRef.anchor;\n\tconst anchorSpec = anchors[anchorId];\n\tif (!anchorSpec) throw new Error(`Anchor \"${anchorId}\" not found for axis reference`);\n\tif (\"idx\" in axisRef) {\n\t\tif (axisRef.idx < 0 || axisRef.idx >= anchorSpec.axesSpec.length) throw new Error(`Axis index ${axisRef.idx} out of bounds for anchor \"${anchorId}\"`);\n\t\treturn anchorSpec.axesSpec[axisRef.idx];\n\t} else if (\"name\" in axisRef) {\n\t\tconst matches = anchorSpec.axesSpec.filter((axis) => axis.name === axisRef.name);\n\t\tif (matches.length > 1) throw new Error(`Multiple axes with name \"${axisRef.name}\" found in anchor \"${anchorId}\"`);\n\t\tif (matches.length === 0) throw new Error(`Axis with name \"${axisRef.name}\" not found in anchor \"${anchorId}\"`);\n\t\treturn matches[0];\n\t} else if (\"id\" in axisRef) {\n\t\tconst matches = anchorSpec.axesSpec.filter((axis) => matchAxisId(axisRef.id, getAxisId(axis)));\n\t\tif (matches.length > 1) throw new Error(`Multiple matching axes found for matcher in anchor \"${anchorId}\"`);\n\t\tif (matches.length === 0) throw new Error(`No matching axis found for matcher in anchor \"${anchorId}\"`);\n\t\treturn matches[0];\n\t}\n\tthrow new Error(`Unsupported axis reference type`);\n}\n/**\n* Type guard to check if a value is an anchored axis reference\n*/\nfunction isAnchorAxisRef(value) {\n\treturn typeof value === \"object\" && \"anchor\" in value;\n}\n\n//#endregion\nexport { AnchoredIdDeriver, resolveAnchors };\n//# sourceMappingURL=anchored.js.map","import { assertNever } from \"../util.js\";\n\n//#region src/pool/spec.ts\nfunction isPColumnSpec(spec) {\n\treturn spec.kind === \"PColumn\";\n}\nfunction isPColumn(obj) {\n\treturn isPColumnSpec(obj.spec);\n}\nfunction isPColumnSpecResult(r) {\n\treturn isPColumnSpec(r.obj);\n}\nfunction isPColumnResult(r) {\n\treturn isPColumnSpec(r.obj.spec);\n}\nfunction ensurePColumn(obj) {\n\tif (!isPColumn(obj)) throw new Error(`not a PColumn (kind = ${obj.spec.kind})`);\n\treturn obj;\n}\nfunction mapPObjectData(pObj, cb) {\n\treturn pObj === void 0 ? void 0 : {\n\t\t...pObj,\n\t\tdata: cb(typeof pObj.data === \"function\" ? pObj.data() : pObj.data)\n\t};\n}\nfunction extractAllColumns(entry) {\n\tconst columns = /* @__PURE__ */ new Map();\n\tconst addAllColumns = (entry) => {\n\t\tswitch (entry.type) {\n\t\t\tcase \"column\":\n\t\t\t\tcolumns.set(entry.column.id, entry.column);\n\t\t\t\treturn;\n\t\t\tcase \"slicedColumn\":\n\t\t\t\tcolumns.set(entry.column.id, entry.column);\n\t\t\t\treturn;\n\t\t\tcase \"artificialColumn\":\n\t\t\t\tcolumns.set(entry.column.id, entry.column);\n\t\t\t\treturn;\n\t\t\tcase \"inlineColumn\": return;\n\t\t\tcase \"full\":\n\t\t\tcase \"inner\":\n\t\t\t\tfor (const e of entry.entries) addAllColumns(e);\n\t\t\t\treturn;\n\t\t\tcase \"outer\":\n\t\t\t\taddAllColumns(entry.primary);\n\t\t\t\tfor (const e of entry.secondary) addAllColumns(e);\n\t\t\t\treturn;\n\t\t\tdefault: assertNever(entry);\n\t\t}\n\t};\n\taddAllColumns(entry);\n\treturn [...columns.values()];\n}\n\n//#endregion\nexport { ensurePColumn, extractAllColumns, isPColumn, isPColumnResult, isPColumnSpec, isPColumnSpecResult, mapPObjectData };\n//# sourceMappingURL=spec.js.map","import { getAxisId } from \"./spec.js\";\nimport { isPColumnSpec } from \"../../../pool/spec.js\";\n\n//#region src/drivers/pframe/spec/selectors.ts\n/**\n* Checks if a given value is an anchored column identifier\n* @param id - The value to check\n* @returns True if the value is an anchored column identifier, false otherwise\n*/\nfunction isAnchoredPColumnId(id) {\n\treturn typeof id === \"object\" && id !== null && \"name\" in id && \"axes\" in id;\n}\n/**\n* Determines if an axis ID matches an axis selector.\n*\n* @param selector - The selector with criteria to match against\n* @param axis - The AxisId to check against the selector\n* @returns true if the AxisId matches all specified criteria in the selector, false otherwise\n*/\nfunction matchAxis(selector, axis) {\n\tif (selector.name !== void 0 && selector.name !== axis.name) return false;\n\tif (selector.type !== void 0) {\n\t\tif (Array.isArray(selector.type)) {\n\t\t\tif (!selector.type.includes(axis.type)) return false;\n\t\t} else if (selector.type !== axis.type) return false;\n\t}\n\tif (selector.domain !== void 0) {\n\t\tconst axisDomain = axis.domain || {};\n\t\tfor (const [key, value] of Object.entries(selector.domain)) if (axisDomain[key] !== value) return false;\n\t}\n\treturn true;\n}\n/**\n* Determines if a given PColumnSpec matches a selector.\n*\n* @param pcolumn - The PColumnSpec to check against the selector\n* @param selector - The selector criteria to match against\n* @returns true if the PColumnSpec matches all criteria in the selector, false otherwise\n*/\nfunction matchPColumn(pcolumn, selector) {\n\tif (selector.name !== void 0 && pcolumn.name !== selector.name) return false;\n\tif (selector.namePattern !== void 0 && !new RegExp(selector.namePattern).test(pcolumn.name)) return false;\n\tif (selector.type !== void 0) {\n\t\tif (Array.isArray(selector.type)) {\n\t\t\tif (!selector.type.includes(pcolumn.valueType)) return false;\n\t\t} else if (selector.type !== pcolumn.valueType) return false;\n\t}\n\tif (selector.domain !== void 0) {\n\t\tconst columnDomain = pcolumn.domain || {};\n\t\tfor (const [key, value] of Object.entries(selector.domain)) if (columnDomain[key] !== value) return false;\n\t}\n\tif (selector.axes !== void 0) {\n\t\tconst pcolumnAxes = pcolumn.axesSpec.map(getAxisId);\n\t\tif (selector.partialAxesMatch) {\n\t\t\tfor (const selectorAxis of selector.axes) if (!pcolumnAxes.some((columnAxis) => matchAxis(selectorAxis, columnAxis))) return false;\n\t\t} else {\n\t\t\tif (pcolumnAxes.length !== selector.axes.length) return false;\n\t\t\tfor (let i = 0; i < selector.axes.length; i++) if (!matchAxis(selector.axes[i], pcolumnAxes[i])) return false;\n\t\t}\n\t}\n\tif (selector.annotations !== void 0) {\n\t\tconst columnAnnotations = pcolumn.annotations || {};\n\t\tfor (const [key, value] of Object.entries(selector.annotations)) if (columnAnnotations[key] !== value) return false;\n\t}\n\tif (selector.annotationPatterns !== void 0) {\n\t\tconst columnAnnotations = pcolumn.annotations || {};\n\t\tfor (const [key, pattern] of Object.entries(selector.annotationPatterns)) {\n\t\t\tconst value = columnAnnotations[key];\n\t\t\tif (value === void 0 || !new RegExp(pattern).test(value)) return false;\n\t\t}\n\t}\n\treturn true;\n}\n/**\n* Convert a predicate or array of selectors to a single predicate function\n* @param predicateOrSelectors - Either a function that takes a PColumnSpec and returns a boolean,\n* or an array of PColumnSelectors, or a single PColumnSelector\n* @returns A function that takes a PColumnSpec and returns a boolean\n*/\nfunction selectorsToPredicate(predicateOrSelectors) {\n\tif (Array.isArray(predicateOrSelectors)) return (spec) => predicateOrSelectors.some((selector) => isPColumnSpec(spec) && matchPColumn(spec, selector));\n\telse return (spec) => isPColumnSpec(spec) && matchPColumn(spec, predicateOrSelectors);\n}\n\n//#endregion\nexport { isAnchoredPColumnId, matchAxis, matchPColumn, selectorsToPredicate };\n//# sourceMappingURL=selectors.js.map","import { getAxesId } from \"./spec.js\";\nimport { isPColumnSpec } from \"../../../pool/spec.js\";\nimport canonicalize from \"canonicalize\";\n\n//#region src/drivers/pframe/spec/native_id.ts\nfunction deriveNativeId(spec) {\n\tconst result = {\n\t\tkind: spec.kind,\n\t\tname: spec.name\n\t};\n\tif (spec.domain !== void 0) result.domain = spec.domain;\n\tif (isPColumnSpec(spec)) result.axesSpec = getAxesId(spec.axesSpec);\n\treturn canonicalize(result);\n}\n\n//#endregion\nexport { deriveNativeId };\n//# sourceMappingURL=native_id.js.map","import { canonicalizeJson, parseJson } from \"../../json.js\";\nimport { Annotation, getArrayFromAxisTree, getAxesTree, getAxisId, getNormalizedAxesList, readAnnotationJson } from \"./spec/spec.js\";\n\n//#region src/drivers/pframe/linker_columns.ts\nvar LinkerMap = class LinkerMap {\n\t/** Graph of linkers connected by axes (single or grouped by parents) */\n\tdata;\n\tconstructor(linkerMap) {\n\t\tthis.data = linkerMap;\n\t}\n\tget keys() {\n\t\treturn this.data.keys();\n\t}\n\tget keyAxesIds() {\n\t\treturn [...this.data.keys()].map(parseJson);\n\t}\n\tstatic fromColumns(columns) {\n\t\tconst result = /* @__PURE__ */ new Map();\n\t\tfor (const linker of columns.filter((l) => !!readAnnotationJson(l.spec, Annotation.IsLinkerColumn))) {\n\t\t\tconst groups = LinkerMap.getAxesGroups(getNormalizedAxesList(linker.spec.axesSpec));\n\t\t\tif (groups.length !== 2) continue;\n\t\t\tconst [left, right] = groups;\n\t\t\tconst leftKeyVariants = LinkerMap.getAxesRoots(left).map((axis) => {\n\t\t\t\tconst axes = getArrayFromAxisTree(getAxesTree(axis));\n\t\t\t\treturn [canonicalizeJson(axes.map(getAxisId)), axes];\n\t\t\t});\n\t\t\tconst rightKeyVariants = LinkerMap.getAxesRoots(right).map((axis) => {\n\t\t\t\tconst axes = getArrayFromAxisTree(getAxesTree(axis));\n\t\t\t\treturn [canonicalizeJson(axes.map(getAxisId)), axes];\n\t\t\t});\n\t\t\tfor (const [keyLeft, spec] of leftKeyVariants) if (!result.has(keyLeft)) result.set(keyLeft, {\n\t\t\t\tkeyAxesSpec: spec,\n\t\t\t\tlinkWith: /* @__PURE__ */ new Map()\n\t\t\t});\n\t\t\tfor (const [keyRight, spec] of rightKeyVariants) if (!result.has(keyRight)) result.set(keyRight, {\n\t\t\t\tkeyAxesSpec: spec,\n\t\t\t\tlinkWith: /* @__PURE__ */ new Map()\n\t\t\t});\n\t\t\tfor (const [keyLeft] of leftKeyVariants) for (const [keyRight] of rightKeyVariants) {\n\t\t\t\tresult.get(keyLeft)?.linkWith.set(keyRight, linker);\n\t\t\t\tresult.get(keyRight)?.linkWith.set(keyLeft, linker);\n\t\t\t}\n\t\t}\n\t\treturn new this(result);\n\t}\n\t/** Get all available nodes of linker graphs if start from sourceAxesKeys */\n\tsearchAvailableAxesKeys(sourceAxesKeys) {\n\t\tconst startKeys = new Set(sourceAxesKeys);\n\t\tconst allAvailableKeys = /* @__PURE__ */ new Set();\n\t\tlet nextKeys = sourceAxesKeys;\n\t\twhile (nextKeys.length) {\n\t\t\tconst next = [];\n\t\t\tfor (const key of nextKeys) {\n\t\t\t\tconst node = this.data.get(key);\n\t\t\t\tif (!node) continue;\n\t\t\t\tfor (const availableKey of node.linkWith.keys()) if (!allAvailableKeys.has(availableKey) && !startKeys.has(availableKey)) {\n\t\t\t\t\tnext.push(availableKey);\n\t\t\t\t\tallAvailableKeys.add(availableKey);\n\t\t\t\t}\n\t\t\t}\n\t\t\tnextKeys = next;\n\t\t}\n\t\treturn allAvailableKeys;\n\t}\n\t/** Get all linker columns that are necessary to reach endKey from startKey */\n\tsearchLinkerPath(startKey, endKey) {\n\t\tconst previous = {};\n\t\tlet nextIds = new Set([startKey]);\n\t\tconst visited = new Set([startKey]);\n\t\twhile (nextIds.size) {\n\t\t\tconst next = /* @__PURE__ */ new Set();\n\t\t\tfor (const nextId of nextIds) {\n\t\t\t\tconst node = this.data.get(nextId);\n\t\t\t\tif (!node) continue;\n\t\t\t\tfor (const availableId of node.linkWith.keys()) {\n\t\t\t\t\tprevious[availableId] = nextId;\n\t\t\t\t\tif (availableId === endKey) {\n\t\t\t\t\t\tconst ids = [];\n\t\t\t\t\t\tlet current = endKey;\n\t\t\t\t\t\twhile (previous[current] !== startKey) {\n\t\t\t\t\t\t\tids.push(current);\n\t\t\t\t\t\t\tcurrent = previous[current];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tids.push(current);\n\t\t\t\t\t\treturn ids.map((id) => this.data.get(id).linkWith.get(previous[id]));\n\t\t\t\t\t} else if (!visited.has(availableId)) {\n\t\t\t\t\t\tnext.add(availableId);\n\t\t\t\t\t\tvisited.add(availableId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tnextIds = next;\n\t\t}\n\t\treturn [];\n\t}\n\tgetLinkerColumnsForAxes({ from: sourceAxes, to: targetAxes, throwWhenNoLinkExists = true }) {\n\t\tconst startKeys = sourceAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n\t\treturn Array.from(new Map(LinkerMap.getAxesRoots(targetAxes).map(LinkerMap.getLinkerKeyFromAxisSpec).flatMap((targetKey) => {\n\t\t\tconst linkers = startKeys.map((startKey) => this.searchLinkerPath(startKey, targetKey)).reduce((shortestPath, path) => shortestPath.length && shortestPath.length < path.length || !path.length ? shortestPath : path, []).map((linker) => [linker.columnId, linker]);\n\t\t\tif (!linkers.length && throwWhenNoLinkExists) throw Error(`Unable to find linker column for ${targetKey}`);\n\t\t\treturn linkers;\n\t\t})).values());\n\t}\n\t/** Get list of axisSpecs from keys of linker columns map */\n\tgetAxesListFromKeysList(keys) {\n\t\treturn Array.from(new Map(keys.flatMap((key) => this.data.get(key)?.keyAxesSpec ?? []).map((axis) => [canonicalizeJson(getAxisId(axis)), axis])).values());\n\t}\n\t/** Get axes of target axes that are impossible to be linked to source axes with current linker map */\n\tgetNonLinkableAxes(sourceAxes, targetAxes) {\n\t\tconst startKeys = sourceAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n\t\tconst targetKeys = targetAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n\t\treturn Array.from(new Map(targetAxes.filter((_targetAxis, idx) => {\n\t\t\tconst targetKey = targetKeys[idx];\n\t\t\treturn !startKeys.some((startKey) => this.searchLinkerPath(startKey, targetKey).length);\n\t\t}).flatMap((axis) => getArrayFromAxisTree(getAxesTree(axis)).map((axis) => [canonicalizeJson(getAxisId(axis)), axis]))).values());\n\t}\n\t/** Get all axes that can be connected to sourceAxes by linkers */\n\tgetReachableByLinkersAxesFromAxesNormalized(sourceAxes, matchAxisIdFn) {\n\t\tlet startKeys = [];\n\t\tif (matchAxisIdFn) {\n\t\t\tconst sourceAxisIdsGrouped = sourceAxes.map((axis) => getArrayFromAxisTree(getAxesTree(axis)).map(getAxisId));\n\t\t\tfor (const sourceAxisIdsGroup of sourceAxisIdsGrouped) {\n\t\t\t\tconst matched = this.keyAxesIds.find((keyIds) => keyIds.every((linkerKeyAxisId) => sourceAxisIdsGroup.find((sourceAxisId) => matchAxisIdFn(linkerKeyAxisId, sourceAxisId))));\n\t\t\t\tif (matched) startKeys.push(canonicalizeJson(matched));\n\t\t\t}\n\t\t} else startKeys = sourceAxes.map(LinkerMap.getLinkerKeyFromAxisSpec);\n\t\tconst availableKeys = this.searchAvailableAxesKeys(startKeys);\n\t\treturn this.getAxesListFromKeysList([...availableKeys]);\n\t}\n\tgetReachableByLinkersAxesFromAxes(sourceAxes, matchAxisIdFn) {\n\t\treturn this.getReachableByLinkersAxesFromAxesNormalized(getNormalizedAxesList(sourceAxes), matchAxisIdFn);\n\t}\n\tstatic getLinkerKeyFromAxisSpec(axis) {\n\t\treturn canonicalizeJson(getArrayFromAxisTree(getAxesTree(axis)).map(getAxisId));\n\t}\n\t/** Split array of axes into several arrays by parents: axes of one group are parents for each other.\n\tThere are no order inside every group. */\n\tstatic getAxesGroups(axesSpec) {\n\t\tswitch (axesSpec.length) {\n\t\t\tcase 0: return [];\n\t\t\tcase 1: return [[axesSpec[0]]];\n\t\t\tdefault: break;\n\t\t}\n\t\tconst axisKeys = axesSpec.map((spec) => canonicalizeJson(getAxisId(spec)));\n\t\tconst axisParentsIdxs = axesSpec.map((spec) => new Set(spec.parentAxesSpec.map((spec) => canonicalizeJson(getAxisId(spec))).map((el) => {\n\t\t\tconst idx = axisKeys.indexOf(el);\n\t\t\tif (idx === -1) throw new Error(`malformed axesSpec: ${JSON.stringify(axesSpec)}, unable to locate parent ${el}`);\n\t\t\treturn idx;\n\t\t})));\n\t\tconst allIdxs = [...axesSpec.keys()];\n\t\tconst groups = [];\n\t\tconst usedIdxs = /* @__PURE__ */ new Set();\n\t\tlet nextFreeEl = allIdxs.find((idx) => !usedIdxs.has(idx));\n\t\twhile (nextFreeEl !== void 0) {\n\t\t\tconst currentGroup = [nextFreeEl];\n\t\t\tusedIdxs.add(nextFreeEl);\n\t\t\tlet nextElsOfCurrentGroup = [nextFreeEl];\n\t\t\twhile (nextElsOfCurrentGroup.length) {\n\t\t\t\tconst next = /* @__PURE__ */ new Set();\n\t\t\t\tfor (const groupIdx of nextElsOfCurrentGroup) {\n\t\t\t\t\tconst groupElementParents = axisParentsIdxs[groupIdx];\n\t\t\t\t\tallIdxs.forEach((idx) => {\n\t\t\t\t\t\tif (idx === groupIdx || usedIdxs.has(idx)) return;\n\t\t\t\t\t\tif (axisParentsIdxs[idx].has(groupIdx) || groupElementParents.has(idx)) {\n\t\t\t\t\t\t\tcurrentGroup.push(idx);\n\t\t\t\t\t\t\tnext.add(idx);\n\t\t\t\t\t\t\tusedIdxs.add(idx);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tnextElsOfCurrentGroup = [...next];\n\t\t\t}\n\t\t\tgroups.push([...currentGroup]);\n\t\t\tnextFreeEl = allIdxs.find((idx) => !usedIdxs.has(idx));\n\t\t}\n\t\treturn groups.map((group) => group.map((idx) => axesSpec[idx]));\n\t}\n\t/** Get all axes that are not parents of any other axis */\n\tstatic getAxesRoots(axes) {\n\t\tconst parentsSet = new Set(axes.flatMap((axis) => axis.parentAxesSpec).map((spec) => canonicalizeJson(getAxisId(spec))));\n\t\treturn axes.filter((axis) => !parentsSet.has(canonicalizeJson(getAxisId(axis))));\n\t}\n};\n\n//#endregion\nexport { LinkerMap };\n//# sourceMappingURL=linker_columns.js.map","//#region src/drivers/pframe/driver.ts\nfunction assert() {}\nassert();\n\n//#endregion\n//# sourceMappingURL=driver.js.map","import { base32Encode } from \"./base32_encode.js\";\nimport { z } from \"zod\";\n\n//#region src/plid.ts\n/** Number of raw bytes in the PlId. */\nconst PlIdBytes = 15;\n/** Characters in string representation */\nconst PlIdLength = 24;\nconst PlId = z.string().length(PlIdLength).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand(\"PlId\");\nfunction uniquePlId() {\n\tconst data = new Uint8Array(PlIdBytes);\n\tcrypto.getRandomValues(data);\n\treturn PlId.parse(base32Encode(data, \"RFC4648\"));\n}\nfunction plId(bytes) {\n\tif (bytes.length !== PlIdBytes) throw new Error(`Wrong number of bytes: ${bytes.length}`);\n\treturn PlId.parse(base32Encode(bytes, \"RFC4648\"));\n}\nasync function digestPlId(data) {\n\tconst encoder = new TextEncoder();\n\tconst bytes = await crypto.subtle.digest(\"SHA-256\", encoder.encode(data));\n\treturn plId(new Uint8Array(bytes.slice(0, 15)));\n}\n\n//#endregion\nexport { PlId, PlIdBytes, PlIdLength, digestPlId, plId, uniquePlId };\n//# sourceMappingURL=plid.js.map","import { z } from \"zod\";\n\n//#region src/ref.ts\nconst PlRef = z.object({\n\t__isRef: z.literal(true).describe(\"Crucial marker for the block dependency tree reconstruction\"),\n\tblockId: z.string().describe(\"Upstream block id\"),\n\tname: z.string().describe(\"Name of the output provided to the upstream block's output context\"),\n\trequireEnrichments: z.literal(true).optional().describe(\"True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block\")\n}).describe(\"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees.\").readonly();\n/**\n* Type guard to check if a value is a PlRef.\n*\n* @param value - The value to check.\n* @returns True if the value is a PlRef, false otherwise.\n*/\nfunction isPlRef(value) {\n\treturn typeof value === \"object\" && value !== null && \"__isRef\" in value && value.__isRef === true && \"blockId\" in value && \"name\" in value;\n}\n/**\n* Creates a PlRef with the given blockId and name.\n*\n* @param blockId - The blockId of the reference.\n* @param name - The name of the reference.\n* @param requireEnrichments - Whether the reference requires enrichments.\n*/\nfunction createPlRef(blockId, name, requireEnrichments = false) {\n\tif (requireEnrichments) return {\n\t\t__isRef: true,\n\t\tblockId,\n\t\tname,\n\t\trequireEnrichments: true\n\t};\n\telse return {\n\t\t__isRef: true,\n\t\tblockId,\n\t\tname\n\t};\n}\n/**\n* Creates a new PlRef based on an existing one, explicitly setting (default) or removing the\n* requireEnrichments property.\n*\n* @param ref - The original PlRef object.\n* @param requireEnrichments - If true, the `requireEnrichments: true` property is added\n* to the returned PlRef. If false, the `requireEnrichments` property is removed. Defaults to true.\n* @returns A new PlRef object with the `requireEnrichments` property set or removed accordingly.\n*/\nfunction withEnrichments(ref, requireEnrichments = true) {\n\tif (requireEnrichments) return {\n\t\t...ref,\n\t\trequireEnrichments: true\n\t};\n\telse {\n\t\tconst { requireEnrichments: _, ...rest } = ref;\n\t\treturn rest;\n\t}\n}\n/** Compare two PlRefs and returns true if they are qual */\nfunction plRefsEqual(ref1, ref2, ignoreEnrichments = false) {\n\treturn ref1.blockId === ref2.blockId && ref1.name === ref2.name && (ignoreEnrichments || ref1.requireEnrichments === ref2.requireEnrichments);\n}\n\n//#endregion\nexport { PlRef, createPlRef, isPlRef, plRefsEqual, withEnrichments };\n//# sourceMappingURL=ref.js.map","//#region src/value_or_error.ts\nfunction mapValueInVOE(voe, cb) {\n\treturn voe.ok ? {\n\t\tok: true,\n\t\tvalue: cb(voe.value)\n\t} : voe;\n}\n\n//#endregion\nexport { mapValueInVOE };\n//# sourceMappingURL=value_or_error.js.map","import { getCfgRenderCtx } from \"../internal.js\";\nimport { FutureRef } from \"./future.js\";\nimport { isPColumn, mapPObjectData } from \"@milaboratories/pl-model-common\";\n\n//#region src/render/accessor.ts\nfunction ifDef(value, cb) {\n\treturn value === void 0 ? void 0 : cb(value);\n}\n/** Represent resource tree node accessor */\nvar TreeNodeAccessor = class TreeNodeAccessor {\n\tconstructor(handle, resolvePath) {\n\t\tthis.handle = handle;\n\t\tthis.resolvePath = resolvePath;\n\t}\n\tresolve(...steps) {\n\t\tconst transformedSteps = steps.map((s) => ({\n\t\t\tassertFieldType: \"Input\",\n\t\t\t...typeof s === \"string\" ? { field: s } : s\n\t\t}));\n\t\treturn this.resolveWithCommon({}, ...transformedSteps);\n\t}\n\tresolveOutput(...steps) {\n\t\tconst transformedSteps = steps.map((s) => ({\n\t\t\tassertFieldType: \"Output\",\n\t\t\t...typeof s === \"string\" ? { field: s } : s\n\t\t}));\n\t\treturn this.resolveWithCommon({}, ...transformedSteps);\n\t}\n\tresolveInput(...steps) {\n\t\tconst transformedSteps = steps.map((s) => ({\n\t\t\tassertFieldType: \"Input\",\n\t\t\t...typeof s === \"string\" ? { field: s } : s\n\t\t}));\n\t\treturn this.resolveWithCommon({}, ...transformedSteps);\n\t}\n\tresolveAny(...steps) {\n\t\treturn this.resolveWithCommon({}, ...steps);\n\t}\n\tresolveWithCommon(commonOptions, ...steps) {\n\t\tconst resolvePath = [...this.resolvePath, ...steps.map((step) => typeof step === \"string\" ? step : step.field)];\n\t\treturn ifDef(getCfgRenderCtx().resolveWithCommon(this.handle, commonOptions, ...steps), (accessor) => new TreeNodeAccessor(accessor, resolvePath));\n\t}\n\tget resourceType() {\n\t\treturn getCfgRenderCtx().getResourceType(this.handle);\n\t}\n\tgetInputsLocked() {\n\t\treturn getCfgRenderCtx().getInputsLocked(this.handle);\n\t}\n\tgetOutputsLocked() {\n\t\treturn getCfgRenderCtx().getOutputsLocked(this.handle);\n\t}\n\tgetIsReadyOrError() {\n\t\treturn getCfgRenderCtx().getIsReadyOrError(this.handle);\n\t}\n\tgetIsFinal() {\n\t\treturn getCfgRenderCtx().getIsFinal(this.handle);\n\t}\n\tgetError() {\n\t\tconst resolvePath = [...this.resolvePath, \"error\"];\n\t\treturn ifDef(getCfgRenderCtx().getError(this.handle), (accsessor) => new TreeNodeAccessor(accsessor, resolvePath));\n\t}\n\tlistInputFields() {\n\t\treturn getCfgRenderCtx().listInputFields(this.handle);\n\t}\n\tlistOutputFields() {\n\t\treturn getCfgRenderCtx().listOutputFields(this.handle);\n\t}\n\tlistDynamicFields() {\n\t\treturn getCfgRenderCtx().listDynamicFields(this.handle);\n\t}\n\tgetKeyValueBase64(key) {\n\t\treturn getCfgRenderCtx().getKeyValueBase64(this.handle, key);\n\t}\n\tgetKeyValueAsString(key) {\n\t\treturn getCfgRenderCtx().getKeyValueAsString(this.handle, key);\n\t}\n\tgetKeyValueAsJson(key) {\n\t\tconst content = this.getKeyValueAsString(key);\n\t\tif (content == void 0) throw new Error(\"Resource has no content.\");\n\t\treturn JSON.parse(content);\n\t}\n\tgetDataBase64() {\n\t\treturn getCfgRenderCtx().getDataBase64(this.handle);\n\t}\n\tgetDataAsString() {\n\t\treturn getCfgRenderCtx().getDataAsString(this.handle);\n\t}\n\tgetDataAsJson() {\n\t\tconst content = this.getDataAsString();\n\t\tif (content == void 0) throw new Error(\"Resource has no content.\");\n\t\treturn JSON.parse(content);\n\t}\n\t/**\n\t*\n\t*/\n\tgetPColumns(errorOnUnknownField = false, prefix = \"\") {\n\t\tconst result = this.parsePObjectCollection(errorOnUnknownField, prefix);\n\t\tif (result === void 0) return void 0;\n\t\treturn Object.entries(result).map(([, obj]) => {\n\t\t\tif (!isPColumn(obj)) throw new Error(`not a PColumn (kind = ${obj.spec.kind})`);\n\t\t\treturn obj;\n\t\t});\n\t}\n\t/**\n\t*\n\t*/\n\tparsePObjectCollection(errorOnUnknownField = false, prefix = \"\") {\n\t\tconst pObjects = getCfgRenderCtx().parsePObjectCollection(this.handle, errorOnUnknownField, prefix, ...this.resolvePath);\n\t\tif (pObjects === void 0) return void 0;\n\t\tconst result = {};\n\t\tfor (const [key, value] of Object.entries(pObjects)) {\n\t\t\tconst resolvePath = [...this.resolvePath, key];\n\t\t\tresult[key] = mapPObjectData(value, (c) => new TreeNodeAccessor(c, resolvePath));\n\t\t}\n\t\treturn result;\n\t}\n\tgetFileContentAsBase64(range) {\n\t\treturn new FutureRef(getCfgRenderCtx().getBlobContentAsBase64(this.handle, range));\n\t}\n\tgetFileContentAsString(range) {\n\t\treturn new FutureRef(getCfgRenderCtx().getBlobContentAsString(this.handle, range));\n\t}\n\tgetFileContentAsJson(range) {\n\t\treturn new FutureRef(getCfgRenderCtx().getBlobContentAsString(this.handle, range)).mapDefined((v) => JSON.parse(v));\n\t}\n\t/**\n\t* @deprecated use getFileContentAsBase64\n\t*/\n\tgetBlobContentAsBase64() {\n\t\treturn this.getFileContentAsBase64();\n\t}\n\t/**\n\t* @deprecated use getFileContentAsString\n\t*/\n\tgetBlobContentAsString() {\n\t\treturn this.getFileContentAsString();\n\t}\n\t/**\n\t* @returns downloaded file handle\n\t*/\n\tgetFileHandle() {\n\t\treturn new FutureRef(getCfgRenderCtx().getDownloadedBlobContentHandle(this.handle));\n\t}\n\t/**\n\t* @deprecated use getFileHandle\n\t*/\n\tgetDownloadedBlobHandle() {\n\t\treturn this.getFileHandle();\n\t}\n\t/**\n\t* @returns downloaded file handle\n\t*/\n\tgetRemoteFileHandle() {\n\t\treturn new FutureRef(getCfgRenderCtx().getOnDemandBlobContentHandle(this.handle));\n\t}\n\t/**\n\t* @deprecated use getRemoteFileHandle\n\t*/\n\tgetOnDemandBlobHandle() {\n\t\treturn this.getRemoteFileHandle();\n\t}\n\t/**\n\t* @returns the url to the extracted folder\n\t*/\n\textractArchiveAndGetURL(format) {\n\t\treturn new FutureRef(getCfgRenderCtx().extractArchiveAndGetURL(this.handle, format));\n\t}\n\tgetImportProgress() {\n\t\treturn new FutureRef(getCfgRenderCtx().getImportProgress(this.handle));\n\t}\n\tgetLastLogs(nLines) {\n\t\treturn new FutureRef(getCfgRenderCtx().getLastLogs(this.handle, nLines));\n\t}\n\tgetProgressLog(patternToSearch) {\n\t\treturn new FutureRef(getCfgRenderCtx().getProgressLog(this.handle, patternToSearch));\n\t}\n\tgetProgressLogWithInfo(patternToSearch) {\n\t\treturn new FutureRef(getCfgRenderCtx().getProgressLogWithInfo(this.handle, patternToSearch));\n\t}\n\tgetLogHandle() {\n\t\treturn new FutureRef(getCfgRenderCtx().getLogHandle(this.handle));\n\t}\n\tallFieldsResolved(fieldType = \"Input\") {\n\t\tswitch (fieldType) {\n\t\t\tcase \"Input\": return this.getInputsLocked() && this.listInputFields().every((field) => this.resolve({\n\t\t\t\tfield,\n\t\t\t\tassertFieldType: \"Input\"\n\t\t\t}) !== void 0);\n\t\t\tcase \"Output\": return this.getOutputsLocked() && this.listOutputFields().every((field) => this.resolve({\n\t\t\t\tfield,\n\t\t\t\tassertFieldType: \"Output\"\n\t\t\t}) !== void 0);\n\t\t}\n\t}\n\tmapFields(_mapping, _ops) {\n\t\tconst { fieldType, requireLocked, skipUnresolved } = {\n\t\t\tfieldType: \"Input\",\n\t\t\trequireLocked: true,\n\t\t\tskipUnresolved: false,\n\t\t\t..._ops\n\t\t};\n\t\tconst mapping = _mapping;\n\t\tif (requireLocked) {\n\t\t\tif (fieldType === \"Input\" && !this.getInputsLocked()) return void 0;\n\t\t\tif (fieldType === \"Output\" && !this.getOutputsLocked()) return void 0;\n\t\t}\n\t\tlet fieldEntries = (fieldType === \"Input\" ? this.listInputFields() : fieldType === \"Output\" ? this.listOutputFields() : this.listDynamicFields()).map((field) => [field, this.resolve({\n\t\t\tfield,\n\t\t\tassertFieldType: fieldType\n\t\t})]);\n\t\tif (skipUnresolved) fieldEntries = fieldEntries.filter((e) => e[1] !== void 0);\n\t\treturn fieldEntries.map(([name, value]) => mapping(name, value));\n\t}\n};\n\n//#endregion\nexport { TreeNodeAccessor, ifDef };\n//# sourceMappingURL=accessor.js.map","import { __exportAll } from \"../_virtual/_rolldown/runtime.js\";\n\n//#region src/render/internal.ts\nvar internal_exports = /* @__PURE__ */ __exportAll({\n\tGlobalCfgRenderCtxFeatureFlags: () => GlobalCfgRenderCtxFeatureFlags,\n\tMainAccessorName: () => MainAccessorName,\n\tStagingAccessorName: () => StagingAccessorName,\n\tgetAllFutureAwaits: () => getAllFutureAwaits,\n\tisFutureAwait: () => isFutureAwait\n});\nconst StagingAccessorName = \"staging\";\nconst MainAccessorName = \"main\";\nconst GlobalCfgRenderCtxFeatureFlags = {\n\texplicitColumnsSupport: true,\n\tinlineColumnsSupport: true,\n\tactiveArgs: true,\n\tpTablePartitionFiltersSupport: true,\n\tpFrameInSetFilterSupport: true\n};\nfunction isFutureAwait(obj) {\n\treturn typeof obj === \"object\" && obj !== null && \"__awaited_futures__\" in obj;\n}\nfunction addAllFutureAwaits(set, visited, node) {\n\tif (visited.has(node)) return;\n\tvisited.add(node);\n\tif (typeof node === \"object\") {\n\t\tif (isFutureAwait(node)) node.__awaited_futures__.forEach((a) => set.add(a));\n\t\telse if (Array.isArray(node)) for (const nested of node) addAllFutureAwaits(set, visited, nested);\n\t\telse for (const [, nested] of Object.entries(node)) if (nested !== node) addAllFutureAwaits(set, visited, nested);\n\t}\n}\nfunction getAllFutureAwaits(obj) {\n\tconst set = /* @__PURE__ */ new Set();\n\taddAllFutureAwaits(set, /* @__PURE__ */ new Set(), obj);\n\treturn set;\n}\n\n//#endregion\nexport { MainAccessorName, StagingAccessorName, internal_exports };\n//# sourceMappingURL=internal.js.map","//#region src/render/util/axis_filtering.ts\nfunction filterDataInfoEntries(dataInfoEntries, axisFilters) {\n\tconst sortedFilters = [...axisFilters].sort((a, b) => b[0] - a[0]);\n\tconst { type } = dataInfoEntries;\n\tswitch (type) {\n\t\tcase \"Json\": {\n\t\t\tconst { keyLength } = dataInfoEntries;\n\t\t\tfor (const [axisIdx] of axisFilters) if (axisIdx >= keyLength) throw new Error(`Can't filter on non-data axis ${axisIdx}. Must be >= ${keyLength}`);\n\t\t\tbreak;\n\t\t}\n\t\tcase \"JsonPartitioned\":\n\t\tcase \"BinaryPartitioned\":\n\t\tcase \"ParquetPartitioned\": {\n\t\t\tconst { partitionKeyLength } = dataInfoEntries;\n\t\t\tfor (const [axisIdx] of axisFilters) if (axisIdx >= partitionKeyLength) throw new Error(`Can't filter on non-partitioned axis ${axisIdx}. Must be >= ${partitionKeyLength}`);\n\t\t\tbreak;\n\t\t}\n\t\tdefault: throw new Error(`Unsupported data info type: ${type}`);\n\t}\n\tconst keyMatchesFilters = (key) => {\n\t\tfor (const [axisIdx, axisValue] of sortedFilters) if (key[axisIdx] !== axisValue) return false;\n\t\treturn true;\n\t};\n\tconst removeFilteredAxes = (key) => {\n\t\tconst newKey = [...key];\n\t\tfor (const [axisIdx] of sortedFilters) newKey.splice(axisIdx, 1);\n\t\treturn newKey;\n\t};\n\tswitch (dataInfoEntries.type) {\n\t\tcase \"Json\": return {\n\t\t\ttype: \"Json\",\n\t\t\tkeyLength: dataInfoEntries.keyLength - axisFilters.length,\n\t\t\tdata: dataInfoEntries.data.filter((entry) => keyMatchesFilters(entry.key)).map((entry) => ({\n\t\t\t\tkey: removeFilteredAxes(entry.key),\n\t\t\t\tvalue: entry.value\n\t\t\t}))\n\t\t};\n\t\tcase \"JsonPartitioned\": return {\n\t\t\ttype: \"JsonPartitioned\",\n\t\t\tpartitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,\n\t\t\tparts: dataInfoEntries.parts.filter((entry) => keyMatchesFilters(entry.key)).map((entry) => ({\n\t\t\t\tkey: removeFilteredAxes(entry.key),\n\t\t\t\tvalue: entry.value\n\t\t\t}))\n\t\t};\n\t\tcase \"BinaryPartitioned\": return {\n\t\t\ttype: \"BinaryPartitioned\",\n\t\t\tpartitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,\n\t\t\tparts: dataInfoEntries.parts.filter((entry) => keyMatchesFilters(entry.key)).map((entry) => ({\n\t\t\t\tkey: removeFilteredAxes(entry.key),\n\t\t\t\tvalue: entry.value\n\t\t\t}))\n\t\t};\n\t\tcase \"ParquetPartitioned\": return {\n\t\t\ttype: \"ParquetPartitioned\",\n\t\t\tpartitionKeyLength: dataInfoEntries.partitionKeyLength - axisFilters.length,\n\t\t\tparts: dataInfoEntries.parts.filter((entry) => keyMatchesFilters(entry.key)).map((entry) => ({\n\t\t\t\tkey: removeFilteredAxes(entry.key),\n\t\t\t\tvalue: entry.value\n\t\t\t}))\n\t\t};\n\t}\n}\n\n//#endregion\nexport { filterDataInfoEntries };\n//# sourceMappingURL=axis_filtering.js.map","import { Annotation, parseJson, readAnnotation } from \"@milaboratories/pl-model-common\";\nimport { z } from \"zod\";\n\n//#region src/render/util/label.ts\nconst TraceEntry = z.object({\n\ttype: z.string(),\n\timportance: z.number().optional(),\n\tid: z.string().optional(),\n\tlabel: z.string()\n});\nconst Trace = z.array(TraceEntry);\nconst DistancePenalty = .001;\nconst LabelType = \"__LABEL__\";\nconst LabelTypeFull = \"__LABEL__@1\";\nfunction deriveLabels(values, specExtractor, ops = {}) {\n\tconst importances = /* @__PURE__ */ new Map();\n\tconst forceTraceElements = ops.forceTraceElements !== void 0 && ops.forceTraceElements.length > 0 ? new Set(ops.forceTraceElements) : void 0;\n\tconst numberOfRecordsWithType = /* @__PURE__ */ new Map();\n\tconst enrichedRecords = values.map((value) => {\n\t\tconst extractorResult = specExtractor(value);\n\t\tlet spec;\n\t\tlet prefixTrace;\n\t\tlet suffixTrace;\n\t\tif (\"spec\" in extractorResult && typeof extractorResult.spec === \"object\") {\n\t\t\tspec = extractorResult.spec;\n\t\t\tprefixTrace = extractorResult.prefixTrace;\n\t\t\tsuffixTrace = extractorResult.suffixTrace;\n\t\t} else spec = extractorResult;\n\t\tconst label = readAnnotation(spec, Annotation.Label);\n\t\tconst traceStr = readAnnotation(spec, Annotation.Trace);\n\t\tconst baseTrace = (traceStr ? Trace.safeParse(parseJson(traceStr)).data : void 0) ?? [];\n\t\tconst trace = [\n\t\t\t...prefixTrace ?? [],\n\t\t\t...baseTrace,\n\t\t\t...suffixTrace ?? []\n\t\t];\n\t\tif (label !== void 0) {\n\t\t\tconst labelEntry = {\n\t\t\t\tlabel,\n\t\t\t\ttype: LabelType,\n\t\t\t\timportance: -2\n\t\t\t};\n\t\t\tif (ops.addLabelAsSuffix) trace.push(labelEntry);\n\t\t\telse trace.splice(0, 0, labelEntry);\n\t\t}\n\t\tconst fullTrace = [];\n\t\tconst occurrences = /* @__PURE__ */ new Map();\n\t\tfor (let i = trace.length - 1; i >= 0; --i) {\n\t\t\tconst { type: typeName } = trace[i];\n\t\t\tconst importance = trace[i].importance ?? 0;\n\t\t\tconst occurrenceIndex = (occurrences.get(typeName) ?? 0) + 1;\n\t\t\toccurrences.set(typeName, occurrenceIndex);\n\t\t\tconst fullType = `${typeName}@${occurrenceIndex}`;\n\t\t\tnumberOfRecordsWithType.set(fullType, (numberOfRecordsWithType.get(fullType) ?? 0) + 1);\n\t\t\timportances.set(fullType, Math.max(importances.get(fullType) ?? Number.NEGATIVE_INFINITY, importance - (trace.length - i) * DistancePenalty));\n\t\t\tfullTrace.push({\n\t\t\t\t...trace[i],\n\t\t\t\tfullType,\n\t\t\t\toccurrenceIndex\n\t\t\t});\n\t\t}\n\t\tfullTrace.reverse();\n\t\treturn {\n\t\t\tvalue,\n\t\t\tspec,\n\t\t\tlabel,\n\t\t\tfullTrace\n\t\t};\n\t});\n\tconst mainTypes = [];\n\tconst secondaryTypes = [];\n\tconst allTypeRecords = [...importances];\n\tallTypeRecords.sort(([, i1], [, i2]) => i2 - i1);\n\tfor (const [typeName] of allTypeRecords) if (typeName.endsWith(\"@1\") || numberOfRecordsWithType.get(typeName) === values.length) mainTypes.push(typeName);\n\telse secondaryTypes.push(typeName);\n\tconst calculate = (includedTypes, force = false) => {\n\t\tconst result = [];\n\t\tfor (let i = 0; i < enrichedRecords.length; i++) {\n\t\t\tconst r = enrichedRecords[i];\n\t\t\tconst includedTrace = r.fullTrace.filter((fm) => includedTypes.has(fm.fullType) || forceTraceElements && forceTraceElements.has(fm.type));\n\t\t\tif (includedTrace.length === 0) if (force) result.push({\n\t\t\t\tlabel: \"Unlabeled\",\n\t\t\t\tvalue: r.value\n\t\t\t});\n\t\t\telse return void 0;\n\t\t\tconst labelSet = includedTrace.map((fm) => fm.label);\n\t\t\tconst sep = ops.separator ?? \" / \";\n\t\t\tresult.push({\n\t\t\t\tlabel: labelSet.join(sep),\n\t\t\t\tvalue: r.value\n\t\t\t});\n\t\t}\n\t\treturn result;\n\t};\n\tconst countUniqueLabels = (result) => result === void 0 ? 0 : new Set(result.map((c) => c.label)).size;\n\tconst minimizeTypeSet = (typeSet) => {\n\t\tconst initialResult = calculate(typeSet);\n\t\tif (initialResult === void 0) return typeSet;\n\t\tconst currentCardinality = countUniqueLabels(initialResult);\n\t\tconst removableSorted = [...typeSet].filter((t) => !forceTraceElements?.has(t.split(\"@\")[0]) && !(ops.includeNativeLabel && t === LabelTypeFull)).sort((a, b) => (importances.get(a) ?? 0) - (importances.get(b) ?? 0));\n\t\tfor (const typeToRemove of removableSorted) {\n\t\t\tconst reducedSet = new Set(typeSet);\n\t\t\treducedSet.delete(typeToRemove);\n\t\t\tconst candidateResult = calculate(reducedSet);\n\t\t\tif (candidateResult !== void 0 && countUniqueLabels(candidateResult) >= currentCardinality) typeSet.delete(typeToRemove);\n\t\t}\n\t\treturn typeSet;\n\t};\n\tif (mainTypes.length === 0) {\n\t\tif (secondaryTypes.length !== 0) throw new Error(\"Non-empty secondary types list while main types list is empty.\");\n\t\treturn calculate(new Set(LabelTypeFull), true);\n\t}\n\tlet includedTypes = 0;\n\tlet additionalType = -1;\n\twhile (includedTypes < mainTypes.length) {\n\t\tconst currentSet = /* @__PURE__ */ new Set();\n\t\tif (ops.includeNativeLabel) currentSet.add(LabelTypeFull);\n\t\tfor (let i = 0; i < includedTypes; ++i) currentSet.add(mainTypes[i]);\n\t\tif (additionalType >= 0) currentSet.add(mainTypes[additionalType]);\n\t\tconst candidateResult = calculate(currentSet);\n\t\tif (candidateResult !== void 0 && countUniqueLabels(candidateResult) === values.length) {\n\t\t\tminimizeTypeSet(currentSet);\n\t\t\treturn calculate(currentSet);\n\t\t}\n\t\tadditionalType++;\n\t\tif (additionalType >= mainTypes.length) {\n\t\t\tincludedTypes++;\n\t\t\tadditionalType = includedTypes;\n\t\t}\n\t}\n\tconst fallbackSet = new Set([...mainTypes, ...secondaryTypes]);\n\tminimizeTypeSet(fallbackSet);\n\treturn calculate(fallbackSet, true);\n}\n\n//#endregion\nexport { Trace, TraceEntry, deriveLabels };\n//# sourceMappingURL=label.js.map","import { TreeNodeAccessor } from \"../accessor.js\";\nimport { dataInfoToEntries, isDataInfo, isDataInfoEntries, visitDataInfo } from \"@milaboratories/pl-model-common\";\n\n//#region src/render/util/pcolumn_data.ts\nconst PCD_PREFIX = \"PColumnData/\";\nconst RT_RESOURCE_MAP = PCD_PREFIX + \"ResourceMap\";\nconst RT_RESOURCE_MAP_PARTITIONED = PCD_PREFIX + \"Partitioned/ResourceMap\";\nconst RT_JSON_PARTITIONED = PCD_PREFIX + \"JsonPartitioned\";\nconst RT_BINARY_PARTITIONED = PCD_PREFIX + \"BinaryPartitioned\";\nconst RT_PARQUET_PARTITIONED = PCD_PREFIX + \"ParquetPartitioned\";\nconst PCD_SUP_PREFIX = PCD_PREFIX + \"Partitioned/\";\nconst RT_JSON_SUPER_PARTITIONED = PCD_SUP_PREFIX + \"JsonPartitioned\";\nconst RT_BINARY_SUPER_PARTITIONED = PCD_SUP_PREFIX + \"BinaryPartitioned\";\nconst RT_PARQUET_SUPER_PARTITIONED = PCD_SUP_PREFIX + \"ParquetPartitioned\";\nfunction populateResourceMapData(acc, resourceParser, data, keyPrefix = [], addEntriesWithNoData) {\n\tif (acc === void 0) return false;\n\tswitch (acc.resourceType.name) {\n\t\tcase RT_RESOURCE_MAP: {\n\t\t\tlet isComplete = acc.getInputsLocked();\n\t\t\tfor (const keyStr of acc.listInputFields()) {\n\t\t\t\tconst value = acc.resolve({\n\t\t\t\t\tfield: keyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tconst key = [...keyPrefix, ...JSON.parse(keyStr)];\n\t\t\t\tconst converted = value === void 0 ? void 0 : resourceParser(value);\n\t\t\t\tif (converted === void 0) isComplete = false;\n\t\t\t\tif (converted !== void 0 || addEntriesWithNoData) data.push({\n\t\t\t\t\tkey,\n\t\t\t\t\tvalue: converted\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn isComplete;\n\t\t}\n\t\tcase RT_RESOURCE_MAP_PARTITIONED: {\n\t\t\tlet isComplete = acc.getInputsLocked();\n\t\t\tfor (const keyStr of acc.listInputFields()) {\n\t\t\t\tconst value = acc.resolve({\n\t\t\t\t\tfield: keyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (value === void 0) isComplete = false;\n\t\t\t\telse {\n\t\t\t\t\tconst populateResult = populateResourceMapData(value, resourceParser, data, [...keyPrefix, ...JSON.parse(keyStr)], addEntriesWithNoData);\n\t\t\t\t\tisComplete = isComplete && populateResult;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn isComplete;\n\t\t}\n\t\tdefault: throw new Error(`Unknown resource type: ${acc.resourceType.name}`);\n\t}\n}\nfunction parseResourceMap(acc, resourceParser, addEntriesWithNoData = false) {\n\tconst data = [];\n\treturn {\n\t\tisComplete: populateResourceMapData(acc, resourceParser, data, [], addEntriesWithNoData),\n\t\tdata\n\t};\n}\nconst removeIndexSuffix = (keyStr) => {\n\tif (keyStr.endsWith(\".index\")) return {\n\t\tbaseKey: keyStr.substring(0, keyStr.length - 6),\n\t\ttype: \"index\"\n\t};\n\telse if (keyStr.endsWith(\".values\")) return {\n\t\tbaseKey: keyStr.substring(0, keyStr.length - 7),\n\t\ttype: \"values\"\n\t};\n\telse throw new Error(`key must ends on .index/.values for binary p-column, got: ${keyStr}`);\n};\n/** Returns a list of all partition keys appeared in the p-column */\nfunction getPartitionKeysList(acc) {\n\tif (!acc) return void 0;\n\tconst rt = acc.resourceType.name;\n\tconst meta = acc.getDataAsJson();\n\tconst data = [];\n\tlet keyLength = 0;\n\tswitch (rt) {\n\t\tcase RT_RESOURCE_MAP:\n\t\t\tkeyLength = meta[\"keyLength\"];\n\t\t\tbreak;\n\t\tcase RT_RESOURCE_MAP_PARTITIONED:\n\t\t\tkeyLength = meta[\"partitionKeyLength\"] + meta[\"keyLength\"];\n\t\t\tbreak;\n\t\tcase RT_JSON_PARTITIONED:\n\t\tcase RT_BINARY_PARTITIONED:\n\t\tcase RT_PARQUET_PARTITIONED:\n\t\t\tkeyLength = meta[\"partitionKeyLength\"];\n\t\t\tbreak;\n\t\tcase RT_BINARY_SUPER_PARTITIONED:\n\t\tcase RT_JSON_SUPER_PARTITIONED:\n\t\tcase RT_PARQUET_SUPER_PARTITIONED:\n\t\t\tkeyLength = meta[\"superPartitionKeyLength\"] + meta[\"partitionKeyLength\"];\n\t\t\tbreak;\n\t}\n\tswitch (rt) {\n\t\tcase RT_RESOURCE_MAP:\n\t\tcase RT_JSON_PARTITIONED:\n\t\tcase RT_BINARY_PARTITIONED:\n\t\tcase RT_PARQUET_PARTITIONED:\n\t\t\tfor (let keyStr of acc.listInputFields()) {\n\t\t\t\tif (rt === RT_BINARY_PARTITIONED) keyStr = removeIndexSuffix(keyStr).baseKey;\n\t\t\t\tconst key = [...JSON.parse(keyStr)];\n\t\t\t\tdata.push(key);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase RT_RESOURCE_MAP_PARTITIONED:\n\t\tcase RT_BINARY_SUPER_PARTITIONED:\n\t\tcase RT_JSON_SUPER_PARTITIONED:\n\t\tcase RT_PARQUET_SUPER_PARTITIONED:\n\t\t\tfor (const supKeyStr of acc.listInputFields()) {\n\t\t\t\tconst keyPrefix = [...JSON.parse(supKeyStr)];\n\t\t\t\tconst value = acc.resolve({\n\t\t\t\t\tfield: supKeyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (value !== void 0) for (let keyStr of value.listInputFields()) {\n\t\t\t\t\tif (rt === RT_BINARY_SUPER_PARTITIONED) keyStr = removeIndexSuffix(keyStr).baseKey;\n\t\t\t\t\tconst key = [...keyPrefix, ...JSON.parse(keyStr)];\n\t\t\t\t\tdata.push(key);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t}\n\treturn {\n\t\tdata,\n\t\tkeyLength\n\t};\n}\nfunction getUniquePartitionKeysForDataEntries(list) {\n\tif (list.type !== \"JsonPartitioned\" && list.type !== \"BinaryPartitioned\" && list.type !== \"ParquetPartitioned\") throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${list.type}`);\n\tconst { parts, partitionKeyLength } = list;\n\tconst result = [];\n\tfor (let i = 0; i < partitionKeyLength; ++i) result.push(/* @__PURE__ */ new Set());\n\tfor (const part of parts) {\n\t\tconst key = part.key;\n\t\tif (key.length !== partitionKeyLength) throw new Error(`Key length (${key.length}) does not match partition length (${partitionKeyLength}) for key: ${JSON.stringify(key)}`);\n\t\tfor (let i = 0; i < partitionKeyLength; ++i) result[i].add(key[i]);\n\t}\n\treturn result.map((s) => Array.from(s.values()));\n}\nfunction getUniquePartitionKeys(acc) {\n\tif (acc === void 0) return void 0;\n\tif (isDataInfoEntries(acc)) return getUniquePartitionKeysForDataEntries(acc);\n\tconst list = getPartitionKeysList(acc);\n\tif (!list) return void 0;\n\tconst { data, keyLength } = list;\n\tconst result = [];\n\tfor (let i = 0; i < keyLength; ++i) result.push(/* @__PURE__ */ new Set());\n\tfor (const l of data) {\n\t\tif (l.length !== keyLength) throw new Error(\"key length does not match partition length\");\n\t\tfor (let i = 0; i < keyLength; ++i) result[i].add(l[i]);\n\t}\n\treturn result.map((s) => Array.from(s.values()));\n}\n/**\n* Parses the PColumn data from a TreeNodeAccessor into a DataInfoEntries structure.\n* Returns undefined if any required data is missing.\n* Throws error on validation failures.\n*\n* @param acc - The TreeNodeAccessor containing PColumn data\n* @param keyPrefix - Optional key prefix for recursive calls\n* @returns DataInfoEntries representation of the PColumn data, or undefined if incomplete\n*/\nfunction parsePColumnData(acc, keyPrefix = []) {\n\tif (acc === void 0) return void 0;\n\tif (!acc.getIsReadyOrError()) return void 0;\n\tconst resourceType = acc.resourceType.name;\n\tconst meta = acc.getDataAsJson();\n\tif (keyPrefix.length > 0 && (resourceType === RT_JSON_SUPER_PARTITIONED || resourceType === RT_BINARY_SUPER_PARTITIONED || resourceType === RT_PARQUET_SUPER_PARTITIONED)) throw new Error(`Unexpected nested super-partitioned resource: ${resourceType}`);\n\tswitch (resourceType) {\n\t\tcase RT_RESOURCE_MAP:\n\t\tcase RT_RESOURCE_MAP_PARTITIONED: throw new Error(`Only data columns are supported, got: ${resourceType}`);\n\t\tcase RT_JSON_PARTITIONED: {\n\t\t\tif (typeof meta?.partitionKeyLength !== \"number\") throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);\n\t\t\tconst parts = [];\n\t\t\tfor (const keyStr of acc.listInputFields()) {\n\t\t\t\tconst value = acc.resolve({\n\t\t\t\t\tfield: keyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (value === void 0) return void 0;\n\t\t\t\tconst key = [...keyPrefix, ...JSON.parse(keyStr)];\n\t\t\t\tparts.push({\n\t\t\t\t\tkey,\n\t\t\t\t\tvalue\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn {\n\t\t\t\ttype: \"JsonPartitioned\",\n\t\t\t\tpartitionKeyLength: meta.partitionKeyLength,\n\t\t\t\tparts\n\t\t\t};\n\t\t}\n\t\tcase RT_BINARY_PARTITIONED: {\n\t\t\tif (typeof meta?.partitionKeyLength !== \"number\") throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);\n\t\t\tconst parts = [];\n\t\t\tconst baseKeys = /* @__PURE__ */ new Map();\n\t\t\tfor (const keyStr of acc.listInputFields()) {\n\t\t\t\tconst suffix = removeIndexSuffix(keyStr);\n\t\t\t\tconst value = acc.resolve({\n\t\t\t\t\tfield: keyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (value === void 0) return void 0;\n\t\t\t\tlet entry = baseKeys.get(suffix.baseKey);\n\t\t\t\tif (!entry) {\n\t\t\t\t\tentry = {};\n\t\t\t\t\tbaseKeys.set(suffix.baseKey, entry);\n\t\t\t\t}\n\t\t\t\tif (suffix.type === \"index\") entry.index = value;\n\t\t\t\telse entry.values = value;\n\t\t\t}\n\t\t\tfor (const [baseKeyStr, entry] of baseKeys.entries()) {\n\t\t\t\tif (!entry.index || !entry.values) return void 0;\n\t\t\t\tconst key = [...keyPrefix, ...JSON.parse(baseKeyStr)];\n\t\t\t\tparts.push({\n\t\t\t\t\tkey,\n\t\t\t\t\tvalue: {\n\t\t\t\t\t\tindex: entry.index,\n\t\t\t\t\t\tvalues: entry.values\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn {\n\t\t\t\ttype: \"BinaryPartitioned\",\n\t\t\t\tpartitionKeyLength: meta.partitionKeyLength,\n\t\t\t\tparts\n\t\t\t};\n\t\t}\n\t\tcase RT_PARQUET_PARTITIONED: {\n\t\t\tif (typeof meta?.partitionKeyLength !== \"number\") throw new Error(`Missing partitionKeyLength in metadata for ${resourceType}`);\n\t\t\tconst parts = [];\n\t\t\tfor (const keyStr of acc.listInputFields()) {\n\t\t\t\tconst value = acc.resolve({\n\t\t\t\t\tfield: keyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (value === void 0) return void 0;\n\t\t\t\tconst key = [...keyPrefix, ...JSON.parse(keyStr)];\n\t\t\t\tparts.push({\n\t\t\t\t\tkey,\n\t\t\t\t\tvalue\n\t\t\t\t});\n\t\t\t}\n\t\t\treturn {\n\t\t\t\ttype: \"ParquetPartitioned\",\n\t\t\t\tpartitionKeyLength: meta.partitionKeyLength,\n\t\t\t\tparts\n\t\t\t};\n\t\t}\n\t\tcase RT_JSON_SUPER_PARTITIONED: {\n\t\t\tif (typeof meta?.superPartitionKeyLength !== \"number\" || typeof meta?.partitionKeyLength !== \"number\") throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);\n\t\t\tconst totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;\n\t\t\tconst parts = [];\n\t\t\tfor (const supKeyStr of acc.listInputFields()) {\n\t\t\t\tconst superPartition = acc.resolve({\n\t\t\t\t\tfield: supKeyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (superPartition === void 0) return void 0;\n\t\t\t\tif (superPartition.resourceType.name !== RT_JSON_PARTITIONED) throw new Error(`Expected ${RT_JSON_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);\n\t\t\t\tconst innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));\n\t\t\t\tif (innerResult === void 0) return void 0;\n\t\t\t\tif (innerResult.type !== \"JsonPartitioned\") throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);\n\t\t\t\tparts.push(...innerResult.parts);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\ttype: \"JsonPartitioned\",\n\t\t\t\tpartitionKeyLength: totalKeyLength,\n\t\t\t\tparts\n\t\t\t};\n\t\t}\n\t\tcase RT_BINARY_SUPER_PARTITIONED: {\n\t\t\tif (typeof meta?.superPartitionKeyLength !== \"number\" || typeof meta?.partitionKeyLength !== \"number\") throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);\n\t\t\tconst totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;\n\t\t\tconst parts = [];\n\t\t\tfor (const supKeyStr of acc.listInputFields()) {\n\t\t\t\tconst superPartition = acc.resolve({\n\t\t\t\t\tfield: supKeyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (superPartition === void 0) return void 0;\n\t\t\t\tif (superPartition.resourceType.name !== RT_BINARY_PARTITIONED) throw new Error(`Expected ${RT_BINARY_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);\n\t\t\t\tconst innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));\n\t\t\t\tif (innerResult === void 0) return void 0;\n\t\t\t\tif (innerResult.type !== \"BinaryPartitioned\") throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);\n\t\t\t\tparts.push(...innerResult.parts);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\ttype: \"BinaryPartitioned\",\n\t\t\t\tpartitionKeyLength: totalKeyLength,\n\t\t\t\tparts\n\t\t\t};\n\t\t}\n\t\tcase RT_PARQUET_SUPER_PARTITIONED: {\n\t\t\tif (typeof meta?.superPartitionKeyLength !== \"number\" || typeof meta?.partitionKeyLength !== \"number\") throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${resourceType}`);\n\t\t\tconst totalKeyLength = meta.superPartitionKeyLength + meta.partitionKeyLength;\n\t\t\tconst parts = [];\n\t\t\tfor (const supKeyStr of acc.listInputFields()) {\n\t\t\t\tconst superPartition = acc.resolve({\n\t\t\t\t\tfield: supKeyStr,\n\t\t\t\t\tassertFieldType: \"Input\"\n\t\t\t\t});\n\t\t\t\tif (superPartition === void 0) return void 0;\n\t\t\t\tif (superPartition.resourceType.name !== RT_PARQUET_PARTITIONED) throw new Error(`Expected ${RT_PARQUET_PARTITIONED} inside ${resourceType}, but got ${superPartition.resourceType.name}`);\n\t\t\t\tconst innerResult = parsePColumnData(superPartition, JSON.parse(supKeyStr));\n\t\t\t\tif (innerResult === void 0) return void 0;\n\t\t\t\tif (innerResult.type !== \"ParquetPartitioned\") throw new Error(`Unexpected inner result type for ${resourceType}: ${innerResult.type}`);\n\t\t\t\tparts.push(...innerResult.parts);\n\t\t\t}\n\t\t\treturn {\n\t\t\t\ttype: \"ParquetPartitioned\",\n\t\t\t\tpartitionKeyLength: totalKeyLength,\n\t\t\t\tparts\n\t\t\t};\n\t\t}\n\t\tdefault: throw new Error(`Unknown resource type: ${resourceType}`);\n\t}\n}\n/**\n* Converts or parses the input into DataInfoEntries format.\n\n* @param acc - The input data, which can be TreeNodeAccessor, DataInfoEntries, DataInfo, or undefined.\n* @returns The data in DataInfoEntries format, or undefined if the input was undefined or data is not ready.\n*/\nfunction convertOrParsePColumnData(acc) {\n\tif (acc === void 0) return void 0;\n\tif (isDataInfoEntries(acc)) return acc;\n\tif (isDataInfo(acc)) return dataInfoToEntries(acc);\n\tif (acc instanceof TreeNodeAccessor) return parsePColumnData(acc);\n\tthrow new Error(`Unexpected input type: ${typeof acc}`);\n}\nfunction isPColumnReady(c) {\n\tconst isValues = (d) => Array.isArray(d);\n\tconst isAccessor = (d) => d instanceof TreeNodeAccessor;\n\tlet ready = true;\n\tconst data = typeof c.data === \"function\" ? c.data() : c.data;\n\tif (data == null) return false;\n\telse if (isAccessor(data)) ready &&= data.getIsReadyOrError();\n\telse if (isDataInfo(data)) visitDataInfo(data, (v) => ready &&= v.getIsReadyOrError());\n\telse if (!isValues(data)) throw Error(`unsupported column data type: ${data}`);\n\treturn ready;\n}\nfunction allPColumnsReady(columns) {\n\treturn columns.every(isPColumnReady);\n}\n\n//#endregion\nexport { RT_BINARY_PARTITIONED, RT_BINARY_SUPER_PARTITIONED, RT_JSON_PARTITIONED, RT_JSON_SUPER_PARTITIONED, RT_PARQUET_PARTITIONED, RT_PARQUET_SUPER_PARTITIONED, RT_RESOURCE_MAP, RT_RESOURCE_MAP_PARTITIONED, allPColumnsReady, convertOrParsePColumnData, getPartitionKeysList, getUniquePartitionKeys, isPColumnReady, parsePColumnData, parseResourceMap };\n//# sourceMappingURL=pcolumn_data.js.map","import { filterDataInfoEntries } from \"./axis_filtering.js\";\nimport { deriveLabels } from \"./label.js\";\nimport { convertOrParsePColumnData, getUniquePartitionKeys } from \"./pcolumn_data.js\";\nimport { Annotation, LinkerMap, canonicalizeAxisId, deriveNativeId, entriesToDataInfo, getAxisId, getColumnIdAndSpec, isLinkerColumn, isPColumnSpec, isPartitionedDataInfoEntries, matchAxisId, resolveAnchors, selectorsToPredicate } from \"@milaboratories/pl-model-common\";\nimport canonicalize from \"canonicalize\";\n\n//#region src/render/util/column_collection.ts\nfunction isPColumnValues(value) {\n\tif (!Array.isArray(value)) return false;\n\tif (value.length === 0) return true;\n\tconst first = value[0];\n\treturn typeof first === \"object\" && first !== null && \"key\" in first && \"val\" in first;\n}\n/**\n* A simple implementation of {@link ColumnProvider} backed by a pre-defined array of columns.\n*/\nvar ArrayColumnProvider = class {\n\tconstructor(columns) {\n\t\tthis.columns = columns;\n\t}\n\tselectColumns(selectors) {\n\t\tconst predicate = typeof selectors === \"function\" ? selectors : selectorsToPredicate(selectors);\n\t\treturn this.columns.filter((column) => predicate(column.spec));\n\t}\n};\nfunction splitFiltersToTrace(splitFilters) {\n\tif (!splitFilters) return void 0;\n\treturn splitFilters.map((filter) => ({\n\t\ttype: `split:${canonicalizeAxisId(filter.axisId)}`,\n\t\tlabel: filter.label,\n\t\timportance: 1e6\n\t}));\n}\nfunction splitFiltersToAxisFilter(splitFilters) {\n\tif (!splitFilters) return void 0;\n\treturn splitFilters.map((filter) => [filter.axisIdx, filter.value]);\n}\nfunction fallbackIdDeriver(originalId, axisFilters) {\n\tif (!axisFilters || axisFilters.length === 0) return originalId;\n\treturn canonicalize({\n\t\tid: originalId,\n\t\taxisFilters: [...axisFilters].sort((a, b) => a[0] - b[0])\n\t});\n}\n/** Checks if a selector object uses any anchor properties */\nfunction hasAnchors(selector) {\n\tif (!selector || typeof selector !== \"object\") return false;\n\tconst potentialAnchored = selector;\n\tconst domainHasAnchors = potentialAnchored[\"domain\"] && typeof potentialAnchored[\"domain\"] === \"object\" && Object.values(potentialAnchored[\"domain\"]).some((v) => typeof v === \"object\" && v !== null && \"anchor\" in v);\n\tconst axesHaveAnchors = potentialAnchored[\"axes\"] && Array.isArray(potentialAnchored[\"axes\"]) && potentialAnchored[\"axes\"].some((a) => typeof a === \"object\" && a !== null && \"anchor\" in a);\n\treturn !!potentialAnchored[\"domainAnchor\"] || domainHasAnchors || axesHaveAnchors;\n}\n/**\n* Derives the indices of axes marked for splitting based on the selector.\n* Throws an error if splitting is requested alongside `partialAxesMatch`.\n*/\nfunction getSplitAxisIndices(selector) {\n\tif (typeof selector !== \"object\" || !(\"axes\" in selector) || selector.axes === void 0) return [];\n\tconst splitIndices = selector.axes.map((axis, index) => typeof axis === \"object\" && \"split\" in axis && axis.split === true ? index : -1).filter((index) => index !== -1);\n\tif (splitIndices.length > 0 && selector.partialAxesMatch !== void 0) throw new Error(\"Axis splitting is not supported when `partialAxesMatch` is defined.\");\n\tsplitIndices.sort((a, b) => a - b);\n\treturn splitIndices;\n}\nvar PColumnCollection = class {\n\tdefaultProviderStore = [];\n\tproviders = [new ArrayColumnProvider(this.defaultProviderStore)];\n\taxisLabelProviders = [];\n\tconstructor() {}\n\taddColumnProvider(provider) {\n\t\tthis.providers.push(provider);\n\t\treturn this;\n\t}\n\taddAxisLabelProvider(provider) {\n\t\tthis.axisLabelProviders.push(provider);\n\t\treturn this;\n\t}\n\taddColumns(columns) {\n\t\tthis.defaultProviderStore.push(...columns);\n\t\treturn this;\n\t}\n\taddColumn(column) {\n\t\tthis.defaultProviderStore.push(column);\n\t\treturn this;\n\t}\n\t/** Fetches labels for a given axis from the registered providers */\n\tfindLabels(axis) {\n\t\tfor (const provider of this.axisLabelProviders) {\n\t\t\tconst labels = provider.findLabels(axis);\n\t\t\tif (labels) return labels;\n\t\t}\n\t}\n\tgetUniversalEntries(predicateOrSelectors, opts) {\n\t\tconst { anchorCtx, labelOps: rawLabelOps, dontWaitAllData = false, overrideLabelAnnotation = false, exclude, enrichByLinkers = false } = opts ?? {};\n\t\tconst labelOps = {\n\t\t\t...overrideLabelAnnotation && rawLabelOps?.includeNativeLabel !== false ? { includeNativeLabel: true } : {},\n\t\t\t...rawLabelOps\n\t\t};\n\t\tlet excludePredicate = () => false;\n\t\tif (exclude) {\n\t\t\tconst excludePredicartes = (Array.isArray(exclude) ? exclude : [exclude]).map((selector) => {\n\t\t\t\tif (hasAnchors(selector)) {\n\t\t\t\t\tif (!anchorCtx) throw new Error(\"Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.\");\n\t\t\t\t\treturn selectorsToPredicate(resolveAnchors(anchorCtx.anchors, selector, opts));\n\t\t\t\t} else return selectorsToPredicate(selector);\n\t\t\t});\n\t\t\texcludePredicate = (spec) => excludePredicartes.some((predicate) => predicate(spec));\n\t\t}\n\t\tconst selectorsArray = typeof predicateOrSelectors === \"function\" ? [predicateOrSelectors] : Array.isArray(predicateOrSelectors) ? predicateOrSelectors : [predicateOrSelectors];\n\t\tconst intermediateResults = [];\n\t\tconst selectedNativeIds = /* @__PURE__ */ new Set();\n\t\tfor (const rawSelector of selectorsArray) {\n\t\t\tconst usesAnchors = hasAnchors(rawSelector);\n\t\t\tlet currentSelector;\n\t\t\tif (usesAnchors) {\n\t\t\t\tif (!anchorCtx) throw new Error(\"Anchored selectors require an AnchoredIdDeriver to be provided in options.\");\n\t\t\t\tcurrentSelector = resolveAnchors(anchorCtx.anchors, rawSelector, opts);\n\t\t\t} else currentSelector = rawSelector;\n\t\t\tconst selectedIds = /* @__PURE__ */ new Set();\n\t\t\tconst selectedColumns = [];\n\t\t\tfor (const provider of this.providers) {\n\t\t\t\tconst providerColumns = provider.selectColumns(currentSelector);\n\t\t\t\tfor (const col of providerColumns) {\n\t\t\t\t\tif (excludePredicate(col.spec)) continue;\n\t\t\t\t\tif (selectedIds.has(col.id)) throw new Error(`Duplicate column id ${col.id} in provider ${provider.constructor.name}`);\n\t\t\t\t\tconst nativeId = deriveNativeId(col.spec);\n\t\t\t\t\tif (selectedNativeIds.has(nativeId)) continue;\n\t\t\t\t\tselectedIds.add(col.id);\n\t\t\t\t\tselectedNativeIds.add(nativeId);\n\t\t\t\t\tselectedColumns.push(col);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (selectedColumns.length === 0) continue;\n\t\t\tconst splitAxisIdxs = getSplitAxisIndices(rawSelector);\n\t\t\tconst needsSplitting = splitAxisIdxs.length > 0;\n\t\t\tfor (const column of selectedColumns) {\n\t\t\t\tif (!isPColumnSpec(column.spec)) continue;\n\t\t\t\tconst originalSpec = column.spec;\n\t\t\t\tif (needsSplitting) {\n\t\t\t\t\tif (isPColumnValues(column.data)) throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${column.id}`);\n\t\t\t\t\tconst dataEntries = convertOrParsePColumnData(column.data);\n\t\t\t\t\tif (!dataEntries) {\n\t\t\t\t\t\tif (dontWaitAllData) continue;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (!isPartitionedDataInfoEntries(dataEntries)) throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${dataEntries.type} for column ${column.id}`);\n\t\t\t\t\tconst uniqueKeys = getUniquePartitionKeys(dataEntries);\n\t\t\t\t\tconst maxSplitIdx = splitAxisIdxs[splitAxisIdxs.length - 1];\n\t\t\t\t\tif (maxSplitIdx >= dataEntries.partitionKeyLength) throw new Error(`Not enough partition keys (${dataEntries.partitionKeyLength}) for requested split axes (max index ${maxSplitIdx}) in column ${originalSpec.name}`);\n\t\t\t\t\tconst axesLabels = splitAxisIdxs.map((idx) => this.findLabels(getAxisId(originalSpec.axesSpec[idx])));\n\t\t\t\t\tconst keyCombinations = [];\n\t\t\t\t\tconst generateCombinations = (currentCombo, sAxisIdx) => {\n\t\t\t\t\t\tif (sAxisIdx >= splitAxisIdxs.length) {\n\t\t\t\t\t\t\tkeyCombinations.push([...currentCombo]);\n\t\t\t\t\t\t\tif (keyCombinations.length > 1e4) throw new Error(\"Too many key combinations, aborting.\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst axisIdx = splitAxisIdxs[sAxisIdx];\n\t\t\t\t\t\tif (axisIdx >= uniqueKeys.length) throw new Error(`Axis index ${axisIdx} out of bounds for unique keys array (length ${uniqueKeys.length}) during split key generation for column ${column.id}`);\n\t\t\t\t\t\tconst axisValues = uniqueKeys[axisIdx];\n\t\t\t\t\t\tif (!axisValues || axisValues.length === 0) {\n\t\t\t\t\t\t\tkeyCombinations.length = 0;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (const val of axisValues) {\n\t\t\t\t\t\t\tcurrentCombo.push(val);\n\t\t\t\t\t\t\tgenerateCombinations(currentCombo, sAxisIdx + 1);\n\t\t\t\t\t\t\tcurrentCombo.pop();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tgenerateCombinations([], 0);\n\t\t\t\t\tif (keyCombinations.length === 0) continue;\n\t\t\t\t\tconst newAxesSpec = [...originalSpec.axesSpec];\n\t\t\t\t\tconst splitAxisOriginalIdxs = splitAxisIdxs.map((idx) => idx);\n\t\t\t\t\tfor (let i = splitAxisIdxs.length - 1; i >= 0; i--) newAxesSpec.splice(splitAxisIdxs[i], 1);\n\t\t\t\t\tconst adjustedSpec = {\n\t\t\t\t\t\t...originalSpec,\n\t\t\t\t\t\taxesSpec: newAxesSpec\n\t\t\t\t\t};\n\t\t\t\t\tfor (const keyCombo of keyCombinations) {\n\t\t\t\t\t\tconst splitFilters = keyCombo.map((value, sAxisIdx) => {\n\t\t\t\t\t\t\tconst axisIdx = splitAxisOriginalIdxs[sAxisIdx];\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\taxisIdx,\n\t\t\t\t\t\t\t\taxisId: getAxisId(originalSpec.axesSpec[axisIdx]),\n\t\t\t\t\t\t\t\tvalue,\n\t\t\t\t\t\t\t\tlabel: axesLabels[sAxisIdx]?.[value] ?? String(value)\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t});\n\t\t\t\t\t\tintermediateResults.push({\n\t\t\t\t\t\t\ttype: \"split\",\n\t\t\t\t\t\t\toriginalColumn: column,\n\t\t\t\t\t\t\tspec: originalSpec,\n\t\t\t\t\t\t\tadjustedSpec,\n\t\t\t\t\t\t\tdataEntries,\n\t\t\t\t\t\t\taxisFilters: splitFilters\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t} else intermediateResults.push({\n\t\t\t\t\ttype: \"direct\",\n\t\t\t\t\toriginalColumn: column,\n\t\t\t\t\tspec: originalSpec,\n\t\t\t\t\tadjustedSpec: originalSpec\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t\tif (intermediateResults.length === 0) return [];\n\t\tconst labeledResults = deriveLabels(intermediateResults, (entry) => ({\n\t\t\tspec: entry.spec,\n\t\t\tsuffixTrace: entry.type === \"split\" ? splitFiltersToTrace(entry.axisFilters) : void 0\n\t\t}), labelOps);\n\t\tconst result = [];\n\t\tfor (const { value: entry, label } of labeledResults) {\n\t\t\tconst { originalColumn, spec: originalSpec } = entry;\n\t\t\tconst axisFiltersTuple = splitFiltersToAxisFilter(entry.type === \"split\" ? entry.axisFilters : void 0);\n\t\t\tlet finalId;\n\t\t\tif (anchorCtx) finalId = anchorCtx.deriveS(originalSpec, axisFiltersTuple);\n\t\t\telse finalId = fallbackIdDeriver(originalColumn.id, axisFiltersTuple);\n\t\t\tlet finalSpec = { ...entry.adjustedSpec };\n\t\t\tif (overrideLabelAnnotation) finalSpec = {\n\t\t\t\t...finalSpec,\n\t\t\t\tannotations: {\n\t\t\t\t\t...finalSpec.annotations,\n\t\t\t\t\t[Annotation.Label]: label\n\t\t\t\t}\n\t\t\t};\n\t\t\tresult.push({\n\t\t\t\tid: finalId,\n\t\t\t\tspec: finalSpec,\n\t\t\t\tdata: () => entry.type === \"split\" ? entriesToDataInfo(filterDataInfoEntries(entry.dataEntries, axisFiltersTuple)) : entry.originalColumn.data,\n\t\t\t\tlabel\n\t\t\t});\n\t\t}\n\t\tconst ids = new Set(result.map((entry) => entry.id));\n\t\tif (enrichByLinkers && anchorCtx) {\n\t\t\tconst linkers = result.filter((entry) => isLinkerColumn(entry.spec));\n\t\t\tif (linkers.length === 0) return result;\n\t\t\tconst anchorAxes = Object.values(anchorCtx.anchors).flatMap((anchor) => anchor.axesSpec);\n\t\t\tconst linkerMap = LinkerMap.fromColumns(linkers.map(getColumnIdAndSpec));\n\t\t\tfunction matchAxisIdFn(linkerKeyId, sourceAxisId) {\n\t\t\t\treturn matchAxisId(linkerKeyId, sourceAxisId) || matchAxisId(sourceAxisId, linkerKeyId);\n\t\t\t}\n\t\t\tconst availableByLinkersAxes = linkerMap.getReachableByLinkersAxesFromAxes(anchorAxes, matchAxisIdFn);\n\t\t\tconst availableByLinkersColumns = this.getUniversalEntries((spec) => !isLinkerColumn(spec) && spec.axesSpec.some((columnAxisSpec) => {\n\t\t\t\tconst columnAxisId = getAxisId(columnAxisSpec);\n\t\t\t\treturn availableByLinkersAxes.some((axis) => matchAxisIdFn(getAxisId(axis), columnAxisId));\n\t\t\t}), {\n\t\t\t\tanchorCtx,\n\t\t\t\tlabelOps,\n\t\t\t\tdontWaitAllData,\n\t\t\t\toverrideLabelAnnotation,\n\t\t\t\texclude\n\t\t\t});\n\t\t\tif (availableByLinkersColumns) result.push(...availableByLinkersColumns.filter((entry) => !ids.has(entry.id)));\n\t\t}\n\t\treturn result;\n\t}\n\tgetColumns(predicateOrSelectors, opts) {\n\t\tconst entries = this.getUniversalEntries(predicateOrSelectors, {\n\t\t\toverrideLabelAnnotation: true,\n\t\t\t...opts\n\t\t});\n\t\tif (!entries) return void 0;\n\t\tconst columns = [];\n\t\tfor (const entry of entries) {\n\t\t\tconst data = entry.data();\n\t\t\tif (!data) {\n\t\t\t\tif (opts?.dontWaitAllData) continue;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcolumns.push({\n\t\t\t\tid: entry.id,\n\t\t\t\tspec: entry.spec,\n\t\t\t\tdata\n\t\t\t});\n\t\t}\n\t\treturn columns;\n\t}\n};\n\n//#endregion\nexport { PColumnCollection };\n//# sourceMappingURL=column_collection.js.map","//#region src/render/util/pframe_upgraders.ts\nfunction patchInSetFilters(filters) {\n\tconst inSetToOrEqual = (predicate) => {\n\t\tif (predicate.operator !== \"InSet\") return predicate;\n\t\treturn {\n\t\t\toperator: \"Or\",\n\t\t\toperands: predicate.references.map((reference) => ({\n\t\t\t\toperator: \"Equal\",\n\t\t\t\treference\n\t\t\t}))\n\t\t};\n\t};\n\tconst mapSingleValuePredicate = (filter, cb) => {\n\t\tswitch (filter.operator) {\n\t\t\tcase \"And\": return {\n\t\t\t\t...filter,\n\t\t\t\toperands: filter.operands.map((operand) => mapSingleValuePredicate(operand, cb))\n\t\t\t};\n\t\t\tcase \"Or\": return {\n\t\t\t\t...filter,\n\t\t\t\toperands: filter.operands.map((operand) => mapSingleValuePredicate(operand, cb))\n\t\t\t};\n\t\t\tcase \"Not\": return {\n\t\t\t\t...filter,\n\t\t\t\toperand: mapSingleValuePredicate(filter.operand, cb)\n\t\t\t};\n\t\t\tdefault: return cb(filter);\n\t\t}\n\t};\n\tconst mapFilter = (filter, cb) => {\n\t\treturn {\n\t\t\t...filter,\n\t\t\tpredicate: mapSingleValuePredicate(filter.predicate, cb)\n\t\t};\n\t};\n\treturn filters.map((filter) => mapFilter(filter, inSetToOrEqual));\n}\n\n//#endregion\nexport { patchInSetFilters };\n//# sourceMappingURL=pframe_upgraders.js.map","import { getPluginData } from \"../block_storage.js\";\nimport { getCfgRenderCtx } from \"../internal.js\";\nimport { TreeNodeAccessor, ifDef } from \"./accessor.js\";\nimport { MainAccessorName, StagingAccessorName } from \"./internal.js\";\nimport { deriveLabels } from \"./util/label.js\";\nimport { allPColumnsReady } from \"./util/pcolumn_data.js\";\nimport { PColumnCollection } from \"./util/column_collection.js\";\nimport { patchInSetFilters } from \"./util/pframe_upgraders.js\";\nimport { AnchoredIdDeriver, PColumnName, collectSpecQueryColumns, ensurePColumn, extractAllColumns, isDataInfo, isPColumn, isPColumnSpec, isPlRef, mapDataInfo, mapPObjectData, mapPTableDef, mapPTableDefV2, mapValueInVOE, parseJson, readAnnotation, selectorsToPredicate, withEnrichments } from \"@milaboratories/pl-model-common\";\nimport canonicalize from \"canonicalize\";\n\n//#region src/render/api.ts\n/**\n* Helper function to match domain objects\n* @param query Optional domain to match against\n* @param target Optional domain to match\n* @returns true if domains match, false otherwise\n*/\nfunction matchDomain(query, target) {\n\tif (query === void 0) return target === void 0;\n\tif (target === void 0) return true;\n\tfor (const k in target) if (query[k] !== target[k]) return false;\n\treturn true;\n}\n/**\n* Transforms PColumn data into the internal representation expected by the platform\n* @param data Data from a PColumn to transform\n* @returns Transformed data compatible with platform API\n*/\nfunction transformPColumnData(data) {\n\treturn mapPObjectData(data, (d) => {\n\t\tif (d instanceof TreeNodeAccessor) return d.handle;\n\t\telse if (isDataInfo(d)) return mapDataInfo(d, (accessor) => accessor.handle);\n\t\telse return d;\n\t});\n}\nvar ResultPool = class {\n\tctx = getCfgRenderCtx();\n\t/**\n\t* @deprecated use getOptions()\n\t*/\n\tcalculateOptions(predicate) {\n\t\treturn this.ctx.calculateOptions(predicate);\n\t}\n\tgetOptions(predicateOrSelector, opts) {\n\t\tconst predicate = typeof predicateOrSelector === \"function\" ? predicateOrSelector : selectorsToPredicate(predicateOrSelector);\n\t\tconst filtered = this.getSpecs().entries.filter((s) => predicate(s.obj));\n\t\tlet labelOps = {};\n\t\tlet refsWithEnrichments = false;\n\t\tif (typeof opts !== \"undefined\") {\n\t\t\tif (typeof opts === \"function\") labelOps = opts;\n\t\t\telse if (typeof opts === \"object\") if (\"includeNativeLabel\" in opts || \"separator\" in opts || \"addLabelAsSuffix\" in opts) labelOps = opts;\n\t\t\telse {\n\t\t\t\topts = opts;\n\t\t\t\tlabelOps = opts.label ?? {};\n\t\t\t\trefsWithEnrichments = opts.refsWithEnrichments ?? false;\n\t\t\t}\n\t\t}\n\t\tif (typeof labelOps === \"object\") return deriveLabels(filtered, (o) => o.obj, labelOps ?? {}).map(({ value: { ref }, label }) => ({\n\t\t\tref: withEnrichments(ref, refsWithEnrichments),\n\t\t\tlabel\n\t\t}));\n\t\telse return filtered.map(({ ref, obj }) => ({\n\t\t\tref: withEnrichments(ref, refsWithEnrichments),\n\t\t\tlabel: labelOps(obj, ref)\n\t\t}));\n\t}\n\tresolveAnchorCtx(anchorsOrCtx) {\n\t\tif (anchorsOrCtx instanceof AnchoredIdDeriver) return anchorsOrCtx;\n\t\tconst resolvedAnchors = {};\n\t\tfor (const [key, value] of Object.entries(anchorsOrCtx)) if (isPlRef(value)) {\n\t\t\tconst resolvedSpec = this.getPColumnSpecByRef(value);\n\t\t\tif (!resolvedSpec) return void 0;\n\t\t\tresolvedAnchors[key] = resolvedSpec;\n\t\t} else resolvedAnchors[key] = value;\n\t\treturn new AnchoredIdDeriver(resolvedAnchors);\n\t}\n\t/**\n\t* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.\n\t*\n\t* @param anchorsOrCtx - Anchor context for column selection (same as in getCanonicalOptions)\n\t* @param predicateOrSelectors - Predicate or selectors for filtering columns (same as in getCanonicalOptions)\n\t* @param opts - Optional configuration for label generation and data waiting\n\t* @returns A PFrameHandle for the created PFrame, or undefined if any required data is missing\n\t*/\n\tgetAnchoredPColumns(anchorsOrCtx, predicateOrSelectors, opts) {\n\t\tconst anchorCtx = this.resolveAnchorCtx(anchorsOrCtx);\n\t\tif (!anchorCtx) return void 0;\n\t\treturn new PColumnCollection().addColumnProvider(this).addAxisLabelProvider(this).getColumns(predicateOrSelectors, {\n\t\t\t...opts,\n\t\t\tanchorCtx\n\t\t});\n\t}\n\t/**\n\t* Calculates anchored identifier options for columns matching a given predicate and returns their\n\t* canonicalized representations.\n\t*\n\t* This function filters column specifications from the result pool that match the provided predicate,\n\t* creates a standardized AnchorCtx from the provided anchors, and generates a list of label-value\n\t* pairs for UI components (like dropdowns).\n\t*\n\t* @param anchorsOrCtx - Either:\n\t* - An existing AnchorCtx instance\n\t* - A record mapping anchor IDs to PColumnSpec objects\n\t* - A record mapping anchor IDs to PlRef objects (which will be resolved to PColumnSpec)\n\t* @param predicateOrSelectors - Either:\n\t* - A predicate function that takes a PColumnSpec and returns a boolean.\n\t* Only specs that return true will be included.\n\t* - An APColumnSelector object for declarative filtering, which will be\n\t* resolved against the provided anchors and matched using matchPColumn.\n\t* - An array of APColumnSelector objects - columns matching ANY selector\n\t* in the array will be included (OR operation).\n\t* @param opts - Optional configuration for label generation:\n\t* - labelOps: Optional configuration for label generation:\n\t* - includeNativeLabel: Whether to include native column labels\n\t* - separator: String to use between label parts (defaults to \" / \")\n\t* - addLabelAsSuffix: Whether to add labels as suffix instead of prefix\n\t* - dontWaitAllData: Whether to skip columns that don't have all data (if not set, will return undefined,\n\t* if at least one column that requires splitting is missing data)\n\t* @returns An array of objects with `label` (display text) and `value` (anchored ID string) properties,\n\t* or undefined if any PlRef resolution fails.\n\t*/\n\tgetCanonicalOptions(anchorsOrCtx, predicateOrSelectors, opts) {\n\t\tconst anchorCtx = this.resolveAnchorCtx(anchorsOrCtx);\n\t\tif (!anchorCtx) return void 0;\n\t\tconst entries = new PColumnCollection().addColumnProvider(this).addAxisLabelProvider(this).getUniversalEntries(predicateOrSelectors, {\n\t\t\t...opts,\n\t\t\tanchorCtx\n\t\t});\n\t\tif (!entries) return void 0;\n\t\treturn entries.map((item) => ({\n\t\t\tvalue: item.id,\n\t\t\tlabel: item.label\n\t\t}));\n\t}\n\t/**\n\t* @deprecated use getData()\n\t*/\n\tgetDataFromResultPool() {\n\t\treturn this.getData();\n\t}\n\tgetData() {\n\t\tconst result = this.ctx.getDataFromResultPool();\n\t\treturn {\n\t\t\tisComplete: result.isComplete,\n\t\t\tentries: result.entries.map((e) => ({\n\t\t\t\tref: e.ref,\n\t\t\t\tobj: {\n\t\t\t\t\t...e.obj,\n\t\t\t\t\tdata: new TreeNodeAccessor(e.obj.data, [e.ref.blockId, e.ref.name])\n\t\t\t\t}\n\t\t\t}))\n\t\t};\n\t}\n\t/**\n\t* @deprecated use getDataWithErrors()\n\t*/\n\tgetDataWithErrorsFromResultPool() {\n\t\treturn this.getDataWithErrors();\n\t}\n\tgetDataWithErrors() {\n\t\tconst result = this.ctx.getDataWithErrorsFromResultPool();\n\t\treturn {\n\t\t\tisComplete: result.isComplete,\n\t\t\tentries: result.entries.map((e) => ({\n\t\t\t\tref: e.ref,\n\t\t\t\tobj: {\n\t\t\t\t\t...e.obj,\n\t\t\t\t\tdata: mapValueInVOE(e.obj.data, (handle) => new TreeNodeAccessor(handle, [e.ref.blockId, e.ref.name]))\n\t\t\t\t}\n\t\t\t}))\n\t\t};\n\t}\n\t/**\n\t* @deprecated use getSpecs()\n\t*/\n\tgetSpecsFromResultPool() {\n\t\treturn this.getSpecs();\n\t}\n\tgetSpecs() {\n\t\treturn this.ctx.getSpecsFromResultPool();\n\t}\n\t/**\n\t* @param ref a Ref\n\t* @returns data associated with the ref\n\t*/\n\tgetDataByRef(ref) {\n\t\tif (typeof this.ctx.getDataFromResultPoolByRef === \"undefined\") return this.getData().entries.find((f) => f.ref.blockId === ref.blockId && f.ref.name === ref.name)?.obj;\n\t\tconst data = this.ctx.getDataFromResultPoolByRef(ref.blockId, ref.name);\n\t\tif (!data) return void 0;\n\t\treturn mapPObjectData(data, (handle) => new TreeNodeAccessor(handle, [ref.blockId, ref.name]));\n\t}\n\t/**\n\t* Returns data associated with the ref ensuring that it is a p-column.\n\t* @param ref a Ref\n\t* @returns p-column associated with the ref\n\t*/\n\tgetPColumnByRef(ref) {\n\t\tconst data = this.getDataByRef(ref);\n\t\tif (!data) return void 0;\n\t\treturn ensurePColumn(data);\n\t}\n\t/**\n\t* Returns spec associated with the ref ensuring that it is a p-column spec.\n\t* @param ref a Ref\n\t* @returns p-column spec associated with the ref\n\t*/\n\tgetPColumnSpecByRef(ref) {\n\t\tconst spec = this.getSpecByRef(ref);\n\t\tif (!spec) return void 0;\n\t\tif (!isPColumnSpec(spec)) throw new Error(`not a PColumn spec (kind = ${spec.kind})`);\n\t\treturn spec;\n\t}\n\t/**\n\t* @param ref a Ref\n\t* @returns object spec associated with the ref\n\t*/\n\tgetSpecByRef(ref) {\n\t\treturn this.ctx.getSpecFromResultPoolByRef(ref.blockId, ref.name);\n\t}\n\t/**\n\t* @param spec object specification\n\t* @returns array of data objects with compatible specs\n\t* @deprecated delete this method after Jan 1, 2025\n\t*/\n\tfindDataWithCompatibleSpec(spec) {\n\t\tconst result = [];\n\t\tout: for (const data of this.getData().entries) {\n\t\t\tif (!isPColumnSpec(data.obj.spec)) continue;\n\t\t\tconst oth = data.obj.spec;\n\t\t\tif (spec.name !== oth.name) continue;\n\t\t\tif (spec.valueType !== oth.valueType) continue;\n\t\t\tif (spec.axesSpec.length !== oth.axesSpec.length) continue;\n\t\t\tif (!matchDomain(spec.domain, oth.domain)) continue;\n\t\t\tfor (let i = 0; i < spec.axesSpec.length; ++i) {\n\t\t\t\tconst qAx = spec.axesSpec[i];\n\t\t\t\tconst tAx = oth.axesSpec[i];\n\t\t\t\tif (qAx.name !== tAx.name) continue out;\n\t\t\t\tif (qAx.type !== tAx.type) continue out;\n\t\t\t\tif (!matchDomain(qAx.domain, tAx.domain)) continue out;\n\t\t\t}\n\t\t\tresult.push(data.obj);\n\t\t}\n\t\treturn result;\n\t}\n\t/**\n\t* Find labels data for a given axis id. It will search for a label column and return its data as a map.\n\t* @returns a map of axis value => label\n\t*/\n\tfindLabels(axis) {\n\t\tconst dataPool = this.getData();\n\t\tfor (const column of dataPool.entries) {\n\t\t\tif (!isPColumn(column.obj)) continue;\n\t\t\tconst spec = column.obj.spec;\n\t\t\tif (spec.name === PColumnName.Label && spec.axesSpec.length === 1 && spec.axesSpec[0].name === axis.name && spec.axesSpec[0].type === axis.type && matchDomain(axis.domain, spec.axesSpec[0].domain)) {\n\t\t\t\tif (column.obj.data.resourceType.name !== \"PColumnData/Json\") throw Error(`Expected JSON column for labels, got: ${column.obj.data.resourceType.name}`);\n\t\t\t\treturn Object.fromEntries(Object.entries(column.obj.data.getDataAsJson().data).map((e) => [JSON.parse(e[0])[0], e[1]]));\n\t\t\t}\n\t\t}\n\t}\n\t/**\n\t* Selects columns based on the provided selectors, returning PColumn objects\n\t* with lazily loaded data.\n\t*\n\t* @param selectors - A predicate function, a single selector, or an array of selectors.\n\t* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.\n\t*/\n\tselectColumns(selectors) {\n\t\tconst predicate = typeof selectors === \"function\" ? selectors : selectorsToPredicate(selectors);\n\t\treturn this.getSpecs().entries.filter(({ obj: spec }) => {\n\t\t\tif (!isPColumnSpec(spec)) return false;\n\t\t\treturn predicate(spec);\n\t\t}).map(({ ref, obj: spec }) => {\n\t\t\tconst pcolumnSpec = spec;\n\t\t\tlet _cachedData = null;\n\t\t\tconst self = this;\n\t\t\treturn {\n\t\t\t\tid: canonicalize(ref),\n\t\t\t\tspec: pcolumnSpec,\n\t\t\t\tget data() {\n\t\t\t\t\tif (_cachedData !== null) return _cachedData;\n\t\t\t\t\t_cachedData = self.getPColumnByRef(ref)?.data;\n\t\t\t\t\treturn _cachedData;\n\t\t\t\t}\n\t\t\t};\n\t\t});\n\t}\n\t/**\n\t* Find labels data for a given axis id of a p-column.\n\t* @returns a map of axis value => label\n\t*/\n\tfindLabelsForColumnAxis(column, axisIdx) {\n\t\tconst labels = this.findLabels(column.axesSpec[axisIdx]);\n\t\tif (!labels) return void 0;\n\t\tconst axisKeys = readAnnotation(column, `pl7.app/axisKeys/${axisIdx}`);\n\t\tif (axisKeys !== void 0) {\n\t\t\tconst keys = JSON.parse(axisKeys);\n\t\t\treturn Object.fromEntries(keys.map((key) => {\n\t\t\t\treturn [key, labels[key] ?? \"Unlabelled\"];\n\t\t\t}));\n\t\t} else return labels;\n\t}\n};\n/** Main entry point to the API available within model lambdas (like outputs, sections, etc..) */\nvar RenderCtxBase = class {\n\tctx;\n\tconstructor() {\n\t\tthis.ctx = getCfgRenderCtx();\n\t}\n\tdataCache;\n\tget data() {\n\t\tif (this.dataCache === void 0) {\n\t\t\tconst raw = this.ctx.data;\n\t\t\tconst value = typeof raw === \"function\" ? raw() : raw;\n\t\t\tthis.dataCache = { v: value ? JSON.parse(value) : {} };\n\t\t}\n\t\treturn this.dataCache.v;\n\t}\n\tactiveArgsCache;\n\t/**\n\t* Returns args snapshot the block was executed for (i.e. when \"Run\" button was pressed).\n\t* Returns undefined, if block was never executed or stopped mid-way execution, so that the result was cleared.\n\t* */\n\tget activeArgs() {\n\t\tif (this.activeArgsCache === void 0) {\n\t\t\tconst raw = this.ctx.activeArgs;\n\t\t\tconst value = typeof raw === \"function\" ? raw() : raw;\n\t\t\tthis.activeArgsCache = { v: value ? JSON.parse(value) : void 0 };\n\t\t}\n\t\treturn this.activeArgsCache.v;\n\t}\n\tgetNamedAccessor(name) {\n\t\treturn ifDef(this.ctx.getAccessorHandleByName(name), (accessor) => new TreeNodeAccessor(accessor, [name]));\n\t}\n\tget prerun() {\n\t\treturn this.getNamedAccessor(StagingAccessorName);\n\t}\n\tget outputs() {\n\t\treturn this.getNamedAccessor(MainAccessorName);\n\t}\n\tresultPool = new ResultPool();\n\t/**\n\t* Find labels data for a given axis id. It will search for a label column and return its data as a map.\n\t* @returns a map of axis value => label\n\t* @deprecated Use resultPool.findLabels instead\n\t*/\n\tfindLabels(axis) {\n\t\treturn this.resultPool.findLabels(axis);\n\t}\n\tverifyInlineAndExplicitColumnsSupport(columns) {\n\t\tconst hasInlineColumns = columns.some((c) => !(c.data instanceof TreeNodeAccessor) || isDataInfo(c.data));\n\t\tconst inlineColumnsSupport = this.ctx.featureFlags?.inlineColumnsSupport === true;\n\t\tif (hasInlineColumns && !inlineColumnsSupport) throw Error(`Inline or explicit columns not supported`);\n\t}\n\tpatchPTableDef(def) {\n\t\tif (!this.ctx.featureFlags?.pTablePartitionFiltersSupport) def = {\n\t\t\t...def,\n\t\t\tpartitionFilters: [],\n\t\t\tfilters: [...def.partitionFilters, ...def.filters]\n\t\t};\n\t\tif (!this.ctx.featureFlags?.pFrameInSetFilterSupport) def = {\n\t\t\t...def,\n\t\t\tpartitionFilters: patchInSetFilters(def.partitionFilters),\n\t\t\tfilters: patchInSetFilters(def.filters)\n\t\t};\n\t\treturn def;\n\t}\n\tcreatePFrame(def) {\n\t\tthis.verifyInlineAndExplicitColumnsSupport(def);\n\t\tif (!allPColumnsReady(def)) return void 0;\n\t\treturn this.ctx.createPFrame(def.map((c) => transformPColumnData(c)));\n\t}\n\tcreatePTable(def) {\n\t\tlet rawDef;\n\t\tif (\"columns\" in def) rawDef = this.patchPTableDef({\n\t\t\tsrc: {\n\t\t\t\ttype: \"full\",\n\t\t\t\tentries: def.columns.map((c) => ({\n\t\t\t\t\ttype: \"column\",\n\t\t\t\t\tcolumn: c\n\t\t\t\t}))\n\t\t\t},\n\t\t\tpartitionFilters: def.filters ?? [],\n\t\t\tfilters: [],\n\t\t\tsorting: def.sorting ?? []\n\t\t});\n\t\telse rawDef = this.patchPTableDef(def);\n\t\tconst columns = extractAllColumns(rawDef.src);\n\t\tthis.verifyInlineAndExplicitColumnsSupport(columns);\n\t\tif (!allPColumnsReady(columns)) return void 0;\n\t\treturn this.ctx.createPTable(mapPTableDef(rawDef, (po) => transformPColumnData(po)));\n\t}\n\tcreatePTableV2(def) {\n\t\tconst columns = collectSpecQueryColumns(def.query);\n\t\tthis.verifyInlineAndExplicitColumnsSupport(columns);\n\t\tif (!allPColumnsReady(columns)) return void 0;\n\t\treturn this.ctx.createPTableV2(mapPTableDefV2(def, (po) => transformPColumnData(po)));\n\t}\n\t/** @deprecated scheduled for removal from SDK */\n\tgetBlockLabel(blockId) {\n\t\treturn this.ctx.getBlockLabel(blockId);\n\t}\n\tgetCurrentUnstableMarker() {\n\t\treturn this.ctx.getCurrentUnstableMarker();\n\t}\n\tlogInfo(msg) {\n\t\tthis.ctx.logInfo(msg);\n\t}\n\tlogWarn(msg) {\n\t\tthis.ctx.logWarn(msg);\n\t}\n\tlogError(msg) {\n\t\tthis.ctx.logError(msg);\n\t}\n};\n/** Main entry point to the API available within model lambdas (like outputs, sections, etc..) for v3+ blocks */\nvar BlockRenderCtx = class extends RenderCtxBase {\n\targsCache;\n\tget args() {\n\t\tif (this.argsCache === void 0) {\n\t\t\tconst raw = this.ctx.args;\n\t\t\tconst value = typeof raw === \"function\" ? raw() : raw;\n\t\t\tthis.argsCache = { v: value === void 0 ? void 0 : JSON.parse(value) };\n\t\t}\n\t\treturn this.argsCache.v;\n\t}\n};\n/** Render context for legacy v1/v2 blocks - provides backward compatibility */\nvar RenderCtxLegacy = class extends RenderCtxBase {\n\targsCache;\n\tget args() {\n\t\tif (this.argsCache === void 0) {\n\t\t\tconst raw = this.ctx.args;\n\t\t\tconst value = typeof raw === \"function\" ? raw() : raw;\n\t\t\tthis.argsCache = { v: JSON.parse(value) };\n\t\t}\n\t\treturn this.argsCache.v;\n\t}\n\tuiStateCache;\n\tget uiState() {\n\t\tif (this.uiStateCache === void 0) {\n\t\t\tconst raw = this.ctx.uiState;\n\t\t\tconst value = typeof raw === \"function\" ? raw() : raw;\n\t\t\tthis.uiStateCache = { v: value ? JSON.parse(value) : {} };\n\t\t}\n\t\treturn this.uiStateCache.v;\n\t}\n};\n/**\n* Render context for plugin output functions.\n* Reads plugin data from blockStorage and derives params from pre-wrapped input callbacks.\n*\n* Parameterized on the factory-like phantom F so that getPluginData returns\n* InferFactoryData<F> directly — no casts needed for the data getter.\n*\n* @typeParam F - PluginFactoryLike phantom carrying data/params/outputs types\n*/\nvar PluginRenderCtx = class {\n\tctx;\n\thandle;\n\twrappedInputs;\n\tconstructor(handle, wrappedInputs) {\n\t\tthis.ctx = getCfgRenderCtx();\n\t\tthis.handle = handle;\n\t\tthis.wrappedInputs = wrappedInputs;\n\t}\n\tdataCache;\n\t/** Plugin's persistent data from blockStorage.__plugins.{pluginId}.__data */\n\tget data() {\n\t\tif (this.dataCache === void 0) this.dataCache = { v: getPluginData(parseJson(this.ctx.blockStorage()), this.handle) };\n\t\treturn this.dataCache.v;\n\t}\n\tparamsCache;\n\t/** Params derived from block context via pre-wrapped input callbacks */\n\tget params() {\n\t\tif (this.paramsCache === void 0) {\n\t\t\tconst result = {};\n\t\t\tfor (const [key, fn] of Object.entries(this.wrappedInputs)) result[key] = fn();\n\t\t\tthis.paramsCache = { v: result };\n\t\t}\n\t\treturn this.paramsCache.v;\n\t}\n\t/** Result pool — same as block, from cfgRenderCtx methods */\n\tresultPool = new ResultPool();\n};\n\n//#endregion\nexport { BlockRenderCtx, PluginRenderCtx, RenderCtxBase, RenderCtxLegacy, ResultPool };\n//# sourceMappingURL=api.js.map","//#region package.json\nvar version = \"1.58.19\";\n\n//#endregion\nexport { version };\n//# sourceMappingURL=package.js.map","import { version } from \"./package.js\";\n\n//#region src/version.ts\nconst PlatformaSDKVersion = version;\nconst CurrentSdkInfo = { sdkVersion: PlatformaSDKVersion };\n\n//#endregion\nexport { CurrentSdkInfo, PlatformaSDKVersion };\n//# sourceMappingURL=version.js.map","//#region src/bconfig/types.ts\nfunction isConfigLambda(cfgOrFh) {\n\treturn cfgOrFh.__renderLambda === true;\n}\n\n//#endregion\nexport { isConfigLambda };\n//# sourceMappingURL=types.js.map","import { BlockStorageFacadeHandles } from \"../block_storage_facade.js\";\nimport { isConfigLambda } from \"./types.js\";\nimport { extractConfigGeneric } from \"@milaboratories/pl-model-common\";\n\n//#region src/bconfig/normalization.ts\nfunction downgradeCfgOrLambda(data) {\n\tif (data === void 0) return void 0;\n\tif (isConfigLambda(data)) return data.handle;\n\treturn data;\n}\nfunction extractConfig(cfg) {\n\tconst config = extractConfigGeneric(cfg);\n\tif (config.configVersion === 4 && Object.keys(config.blockLifecycleCallbacks).length === 0) config.blockLifecycleCallbacks = BlockStorageFacadeHandles;\n\treturn config;\n}\n\n//#endregion\nexport { downgradeCfgOrLambda, extractConfig };\n//# sourceMappingURL=normalization.js.map","import { getPlatformaInstance, isInUI, tryRegisterCallback } from \"./internal.js\";\nimport { getImmediate } from \"./config/actions.js\";\nimport \"./config/index.js\";\nimport { RenderCtxLegacy } from \"./render/api.js\";\nimport \"./render/index.js\";\nimport { PlatformaSDKVersion } from \"./version.js\";\nimport { isConfigLambda } from \"./bconfig/types.js\";\nimport { downgradeCfgOrLambda } from \"./bconfig/normalization.js\";\nimport \"./bconfig/index.js\";\n\n//#region src/block_model_legacy.ts\n/** Main entry point that each block should use in it's \"config\" module. Don't forget\n* to call {@link done()} at the end of configuration. Value returned by this builder must be\n* exported as constant with name \"platforma\" from the \"config\" module. */\nvar BlockModel = class BlockModel {\n\tconstructor(config) {\n\t\tthis.config = config;\n\t}\n\tstatic get INITIAL_BLOCK_FEATURE_FLAGS() {\n\t\treturn {\n\t\t\tsupportsLazyState: true,\n\t\t\trequiresUIAPIVersion: 1,\n\t\t\trequiresModelAPIVersion: 1,\n\t\t\trequiresCreatePTable: 2\n\t\t};\n\t}\n\tstatic create(renderingMode = \"Heavy\") {\n\t\treturn new BlockModel({\n\t\t\trenderingMode,\n\t\t\tinitialUiState: {},\n\t\t\toutputs: {},\n\t\t\tinputsValid: getImmediate(true),\n\t\t\tsections: getImmediate([]),\n\t\t\tfeatureFlags: BlockModel.INITIAL_BLOCK_FEATURE_FLAGS\n\t\t});\n\t}\n\toutput(key, cfgOrRf, flags = {}) {\n\t\tif (typeof cfgOrRf === \"function\") {\n\t\t\tconst handle = `output#${key}`;\n\t\t\ttryRegisterCallback(handle, () => cfgOrRf(new RenderCtxLegacy()));\n\t\t\treturn new BlockModel({\n\t\t\t\t...this.config,\n\t\t\t\toutputs: {\n\t\t\t\t\t...this.config.outputs,\n\t\t\t\t\t[key]: {\n\t\t\t\t\t\t__renderLambda: true,\n\t\t\t\t\t\thandle,\n\t\t\t\t\t\t...flags\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t} else return new BlockModel({\n\t\t\t...this.config,\n\t\t\toutputs: {\n\t\t\t\t...this.config.outputs,\n\t\t\t\t[key]: cfgOrRf\n\t\t\t}\n\t\t});\n\t}\n\t/** Shortcut for {@link output} with retentive flag set to true. */\n\tretentiveOutput(key, rf) {\n\t\treturn this.output(key, rf, { retentive: true });\n\t}\n\t/** Shortcut for {@link output} with withStatus flag set to true. */\n\toutputWithStatus(key, rf) {\n\t\treturn this.output(key, rf, { withStatus: true });\n\t}\n\t/** Shortcut for {@link output} with retentive and withStatus flags set to true. */\n\tretentiveOutputWithStatus(key, rf) {\n\t\treturn this.output(key, rf, {\n\t\t\tretentive: true,\n\t\t\twithStatus: true\n\t\t});\n\t}\n\targsValid(cfgOrRf) {\n\t\tif (typeof cfgOrRf === \"function\") {\n\t\t\ttryRegisterCallback(\"inputsValid\", () => cfgOrRf(new RenderCtxLegacy()));\n\t\t\treturn new BlockModel({\n\t\t\t\t...this.config,\n\t\t\t\tinputsValid: {\n\t\t\t\t\t__renderLambda: true,\n\t\t\t\t\thandle: \"inputsValid\"\n\t\t\t\t}\n\t\t\t});\n\t\t} else return new BlockModel({\n\t\t\t...this.config,\n\t\t\tinputsValid: cfgOrRf\n\t\t});\n\t}\n\tsections(arrOrCfgOrRf) {\n\t\tif (Array.isArray(arrOrCfgOrRf)) return this.sections(getImmediate(arrOrCfgOrRf));\n\t\telse if (typeof arrOrCfgOrRf === \"function\") {\n\t\t\ttryRegisterCallback(\"sections\", () => arrOrCfgOrRf(new RenderCtxLegacy()));\n\t\t\treturn new BlockModel({\n\t\t\t\t...this.config,\n\t\t\t\tsections: {\n\t\t\t\t\t__renderLambda: true,\n\t\t\t\t\thandle: \"sections\"\n\t\t\t\t}\n\t\t\t});\n\t\t} else return new BlockModel({\n\t\t\t...this.config,\n\t\t\tsections: arrOrCfgOrRf\n\t\t});\n\t}\n\t/** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */\n\ttitle(rf) {\n\t\ttryRegisterCallback(\"title\", () => rf(new RenderCtxLegacy()));\n\t\treturn new BlockModel({\n\t\t\t...this.config,\n\t\t\ttitle: {\n\t\t\t\t__renderLambda: true,\n\t\t\t\thandle: \"title\"\n\t\t\t}\n\t\t});\n\t}\n\tsubtitle(rf) {\n\t\ttryRegisterCallback(\"subtitle\", () => rf(new RenderCtxLegacy()));\n\t\treturn new BlockModel({\n\t\t\t...this.config,\n\t\t\tsubtitle: {\n\t\t\t\t__renderLambda: true,\n\t\t\t\thandle: \"subtitle\"\n\t\t\t}\n\t\t});\n\t}\n\ttags(rf) {\n\t\ttryRegisterCallback(\"tags\", () => rf(new RenderCtxLegacy()));\n\t\treturn new BlockModel({\n\t\t\t...this.config,\n\t\t\ttags: {\n\t\t\t\t__renderLambda: true,\n\t\t\t\thandle: \"tags\"\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Sets initial args for the block, this value must be specified.\n\t* @deprecated use {@link withArgs}\n\t* */\n\tinitialArgs(value) {\n\t\treturn this.withArgs(value);\n\t}\n\t/** Sets initial args for the block, this value must be specified. */\n\twithArgs(initialArgs) {\n\t\treturn new BlockModel({\n\t\t\t...this.config,\n\t\t\tinitialArgs\n\t\t});\n\t}\n\t/** Defines type and sets initial value for block UiState. */\n\twithUiState(initialUiState) {\n\t\treturn new BlockModel({\n\t\t\t...this.config,\n\t\t\tinitialUiState\n\t\t});\n\t}\n\t/** Sets or overrides feature flags for the block. */\n\twithFeatureFlags(flags) {\n\t\treturn new BlockModel({\n\t\t\t...this.config,\n\t\t\tfeatureFlags: {\n\t\t\t\t...this.config.featureFlags,\n\t\t\t\t...flags\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Defines how to derive list of upstream references this block is meant to enrich with its exports from block args.\n\t* Influences dependency graph construction.\n\t*/\n\tenriches(lambda) {\n\t\ttryRegisterCallback(\"enrichmentTargets\", lambda);\n\t\treturn new BlockModel({\n\t\t\t...this.config,\n\t\t\tenrichmentTargets: {\n\t\t\t\t__renderLambda: true,\n\t\t\t\thandle: \"enrichmentTargets\"\n\t\t\t}\n\t\t});\n\t}\n\t/** Renders all provided block settings into a pre-configured platforma API\n\t* instance, that can be used in frontend to interact with block state, and\n\t* other features provided by the platforma to the block. */\n\tdone(apiVersion = 1) {\n\t\treturn this.withFeatureFlags({\n\t\t\t...this.config.featureFlags,\n\t\t\trequiresUIAPIVersion: apiVersion\n\t\t}).#done();\n\t}\n\t#done() {\n\t\tif (this.config.initialArgs === void 0) throw new Error(\"Initial arguments not set.\");\n\t\tconst config = {\n\t\t\tv4: void 0,\n\t\t\tv3: {\n\t\t\t\tconfigVersion: 3,\n\t\t\t\tmodelAPIVersion: 1,\n\t\t\t\tsdkVersion: PlatformaSDKVersion,\n\t\t\t\trenderingMode: this.config.renderingMode,\n\t\t\t\tinitialArgs: this.config.initialArgs,\n\t\t\t\tinitialUiState: this.config.initialUiState,\n\t\t\t\tinputsValid: this.config.inputsValid,\n\t\t\t\tsections: this.config.sections,\n\t\t\t\ttitle: this.config.title,\n\t\t\t\tsubtitle: this.config.subtitle,\n\t\t\t\ttags: this.config.tags,\n\t\t\t\toutputs: this.config.outputs,\n\t\t\t\tenrichmentTargets: this.config.enrichmentTargets,\n\t\t\t\tfeatureFlags: this.config.featureFlags\n\t\t\t},\n\t\t\tsdkVersion: PlatformaSDKVersion,\n\t\t\trenderingMode: this.config.renderingMode,\n\t\t\tinitialArgs: this.config.initialArgs,\n\t\t\tinputsValid: downgradeCfgOrLambda(this.config.inputsValid),\n\t\t\tsections: downgradeCfgOrLambda(this.config.sections),\n\t\t\toutputs: Object.fromEntries(Object.entries(this.config.outputs).map(([key, value]) => [key, downgradeCfgOrLambda(value)]))\n\t\t};\n\t\tglobalThis.platformaApiVersion = this.config.featureFlags.requiresUIAPIVersion;\n\t\tif (!isInUI()) return { config };\n\t\telse return {\n\t\t\t...getPlatformaInstance({\n\t\t\t\tsdkVersion: PlatformaSDKVersion,\n\t\t\t\tapiVersion: platformaApiVersion\n\t\t\t}),\n\t\t\tblockModelInfo: {\n\t\t\t\toutputs: Object.fromEntries(Object.entries(this.config.outputs).map(([key, value]) => [key, { withStatus: Boolean(isConfigLambda(value) && value.withStatus) }])),\n\t\t\t\tpluginIds: []\n\t\t\t}\n\t\t};\n\t}\n};\n\n//#endregion\nexport { BlockModel };\n//# sourceMappingURL=block_model_legacy.js.map","import { DataModelBuilder } from \"./block_migrations.js\";\nimport { DATA_MODEL_LEGACY_VERSION } from \"./block_storage.js\";\n\n//#region src/plugin_model.ts\n/** Symbol for internal builder creation method */\nconst FROM_BUILDER = Symbol(\"fromBuilder\");\n/** Symbol for internal plugin model creation — not accessible to external consumers */\nconst CREATE_PLUGIN_MODEL = Symbol(\"createPluginModel\");\n/** Sentinel for PluginInstance without transferAt — no transfer possible. */\nconst NO_TRANSFER_VERSION = \"\";\n/**\n* Plugin data model with typed migration chain and config-aware initialization.\n*\n* @typeParam Data - Current (latest) plugin data type\n* @typeParam Versions - Map of version keys to their data types (accumulated by the chain)\n* @typeParam Config - Config type passed to init function (undefined if none)\n*/\nvar PluginDataModel = class PluginDataModel {\n\tdataModel;\n\tconfigInitFn;\n\tconstructor(dataModel, configInitFn) {\n\t\tthis.dataModel = dataModel;\n\t\tthis.configInitFn = configInitFn;\n\t}\n\t/** @internal */\n\tstatic [FROM_BUILDER](dataModel, configInitFn) {\n\t\treturn new PluginDataModel(dataModel, configInitFn);\n\t}\n\t/** Create fresh data with optional config. */\n\tgetDefaultData(config) {\n\t\tconst data = this.configInitFn(config);\n\t\treturn {\n\t\t\tversion: this.dataModel.version,\n\t\t\tdata\n\t\t};\n\t}\n};\n/**\n* Builder for creating PluginDataModel with type-safe migrations.\n* Mirrors DataModelBuilder — same .from(), .migrate(), .recover(), .init() chain.\n*\n* @example\n* const pluginData = new PluginDataModelBuilder()\n* .from<TableData>(\"v1\")\n* .migrate<FilteredTableData>(\"v2\", (v1) => ({ ...v1, filters: [] }))\n* .init<TableConfig>((config?) => ({\n* state: createDefaultState(config?.ops),\n* filters: [],\n* }));\n*/\nvar PluginDataModelBuilder = class {\n\tfrom(version) {\n\t\treturn PluginDataModelInitialChain[FROM_BUILDER]({\n\t\t\tinitialVersion: version,\n\t\t\tmigrations: []\n\t\t});\n\t}\n};\n/**\n* Chain returned by .migrate(). Supports .migrate(), .recover(), .init().\n* No .upgradeLegacy() — that is only available on the initial chain.\n*/\nvar PluginDataModelChain = class PluginDataModelChain {\n\tconstructor(state) {\n\t\tthis.state = state;\n\t}\n\t/** @internal */\n\tstatic [FROM_BUILDER](state) {\n\t\treturn new PluginDataModelChain(state);\n\t}\n\t/**\n\t* Add a migration step transforming data from the current version to the next.\n\t*/\n\tmigrate(version, fn) {\n\t\treturn PluginDataModelChain[FROM_BUILDER]({\n\t\t\t...this.state,\n\t\t\tmigrations: [...this.state.migrations, {\n\t\t\t\ttoVersion: version,\n\t\t\t\tfn\n\t\t\t}]\n\t\t});\n\t}\n\t/**\n\t* Set a recovery handler for unknown or legacy versions.\n\t* Can only be called once — the returned chain has no recover() method.\n\t*/\n\trecover(fn) {\n\t\treturn PluginDataModelWithRecover[FROM_BUILDER]({\n\t\t\t...this.state,\n\t\t\trecoverFn: fn,\n\t\t\trecoverAtIndex: this.state.migrations.length\n\t\t});\n\t}\n\t/** Finalize the PluginDataModel. */\n\tinit(fn) {\n\t\treturn buildPluginDataModel(this.state, fn);\n\t}\n};\n/**\n* Initial chain returned by new PluginDataModelBuilder().from().\n* Extends PluginDataModelChain with .upgradeLegacy() — available only before\n* any .migrate() calls, matching the block's DataModelInitialChain pattern.\n*/\nvar PluginDataModelInitialChain = class PluginDataModelInitialChain extends PluginDataModelChain {\n\t/** @internal */\n\tstatic [FROM_BUILDER](state) {\n\t\treturn new PluginDataModelInitialChain(state);\n\t}\n\t/**\n\t* Handle data from a previous plugin type occupying this slot.\n\t* Prepends a migration from DATA_MODEL_LEGACY_VERSION to the initial version.\n\t* When a plugin type changes, the old data arrives with DATA_MODEL_LEGACY_VERSION —\n\t* this function transforms it into the initial version, then the normal chain runs.\n\t*\n\t* Must be called right after .from() — not available after .migrate().\n\t* Mutually exclusive with recover().\n\t*\n\t* @param fn - Transform from old plugin's raw data to this plugin's initial data type\n\t*/\n\tupgradeLegacy(fn) {\n\t\treturn PluginDataModelWithRecover[FROM_BUILDER]({\n\t\t\t...this.state,\n\t\t\tmigrations: [{\n\t\t\t\ttoVersion: this.state.initialVersion,\n\t\t\t\tfn\n\t\t\t}, ...this.state.migrations],\n\t\t\tinitialVersion: DATA_MODEL_LEGACY_VERSION\n\t\t});\n\t}\n};\n/**\n* Chain after .recover() — supports .migrate(), .init(). No second recover().\n*/\nvar PluginDataModelWithRecover = class PluginDataModelWithRecover {\n\tconstructor(state) {\n\t\tthis.state = state;\n\t}\n\t/** @internal */\n\tstatic [FROM_BUILDER](state) {\n\t\treturn new PluginDataModelWithRecover(state);\n\t}\n\tmigrate(version, fn) {\n\t\treturn PluginDataModelWithRecover[FROM_BUILDER]({\n\t\t\t...this.state,\n\t\t\tmigrations: [...this.state.migrations, {\n\t\t\t\ttoVersion: version,\n\t\t\t\tfn\n\t\t\t}]\n\t\t});\n\t}\n\tinit(fn) {\n\t\treturn buildPluginDataModel(this.state, fn);\n\t}\n};\n/**\n* Builds a PluginDataModel by replaying the stored chain state through DataModelBuilder.\n* @internal\n*/\nfunction buildPluginDataModel(state, configInitFn) {\n\tlet chain = new DataModelBuilder().from(state.initialVersion);\n\tfor (let i = 0; i < state.migrations.length; i++) {\n\t\tif (state.recoverFn !== void 0 && state.recoverAtIndex === i) chain = chain.recover(state.recoverFn);\n\t\tchain = chain.migrate(state.migrations[i].toVersion, state.migrations[i].fn);\n\t}\n\tif (state.recoverFn !== void 0 && state.recoverAtIndex === state.migrations.length) chain = chain.recover(state.recoverFn);\n\tconst dataModel = chain.init(() => configInitFn());\n\treturn PluginDataModel[FROM_BUILDER](dataModel, configInitFn);\n}\n/**\n* A named plugin instance created by `factory.create({ pluginId, ... })`.\n* Passed to both `.transfer()` (on migration chain) and `.plugin()` (on BlockModelV3).\n* Implements TransferTarget so the migration chain can accept it.\n*\n* @typeParam Id - Plugin instance ID literal type\n* @typeParam Data - Plugin data type\n* @typeParam Params - Plugin params type\n* @typeParam Outputs - Plugin outputs type\n* @typeParam TransferData - Type of data entering the plugin via transfer (never if no transfer)\n*/\nvar PluginInstance = class PluginInstance {\n\tid;\n\ttransferVersion;\n\t/** @internal */\n\t__transferBrand;\n\tfactory;\n\tconfig;\n\tconstructor(id, factory, transferVersion, config) {\n\t\tthis.id = id;\n\t\tthis.factory = factory;\n\t\tthis.transferVersion = transferVersion;\n\t\tthis.config = config;\n\t}\n\t/** @internal */\n\tstatic [FROM_BUILDER](id, factory, transferVersion, config) {\n\t\treturn new PluginInstance(id, factory, transferVersion, config);\n\t}\n\t/** @internal Create a PluginModel from this instance. Used by BlockModelV3.plugin(). */\n\t[CREATE_PLUGIN_MODEL]() {\n\t\treturn this.factory[CREATE_PLUGIN_MODEL](this.config);\n\t}\n};\n/**\n* Configured plugin instance returned by PluginModelFactory[CREATE_PLUGIN_MODEL]().\n* Contains the plugin's name, data model, and output definitions.\n*/\nvar PluginModel = class PluginModel {\n\t/** Globally unique plugin name */\n\tname;\n\t/** Data model instance for this plugin */\n\tdataModel;\n\t/** Output definitions - functions that compute outputs from plugin context */\n\toutputs;\n\t/** Feature flags declared by this plugin */\n\tfeatureFlags;\n\t/** Create fresh default data. Config (if any) is captured at creation time. */\n\tgetDefaultData;\n\tconstructor(options) {\n\t\tthis.name = options.name;\n\t\tthis.dataModel = options.dataModel;\n\t\tthis.outputs = options.outputs;\n\t\tthis.featureFlags = options.featureFlags;\n\t\tthis.getDefaultData = options.getDefaultData;\n\t}\n\t/**\n\t* Internal method for creating PluginModel from factory.\n\t* Uses Symbol key to prevent external access.\n\t* @internal\n\t*/\n\tstatic [FROM_BUILDER](options) {\n\t\treturn new PluginModel(options);\n\t}\n\tstatic define(options) {\n\t\tif (options.data instanceof PluginDataModel) {\n\t\t\tconst pdm = options.data;\n\t\t\treturn PluginModelBuilder[FROM_BUILDER]({\n\t\t\t\tname: options.name,\n\t\t\t\tdataFn: () => pdm.dataModel,\n\t\t\t\tgetDefaultDataFn: (config) => pdm.getDefaultData(config),\n\t\t\t\tfeatureFlags: options.featureFlags\n\t\t\t});\n\t\t}\n\t\treturn PluginModelBuilder[FROM_BUILDER]({\n\t\t\tname: options.name,\n\t\t\tdataFn: options.data,\n\t\t\tfeatureFlags: options.featureFlags\n\t\t});\n\t}\n};\nvar PluginModelFactory = class PluginModelFactory {\n\tname;\n\tdataFn;\n\tgetDefaultDataFn;\n\toutputs;\n\tfeatureFlags;\n\tconstructor(options) {\n\t\tthis.name = options.name;\n\t\tthis.dataFn = options.dataFn;\n\t\tthis.getDefaultDataFn = options.getDefaultDataFn;\n\t\tthis.outputs = options.outputs;\n\t\tthis.featureFlags = options.featureFlags;\n\t}\n\t/** @internal */\n\tstatic [FROM_BUILDER](options) {\n\t\treturn new PluginModelFactory(options);\n\t}\n\tcreate(options) {\n\t\tconst transferVersion = options.transferAt ?? NO_TRANSFER_VERSION;\n\t\treturn PluginInstance[FROM_BUILDER](options.pluginId, this, transferVersion, options.config);\n\t}\n\t/** @internal Create a PluginModel from config. Config is captured in getDefaultData closure. */\n\t[CREATE_PLUGIN_MODEL](config) {\n\t\tconst dataModel = this.dataFn(config);\n\t\tconst getDefaultDataFn = this.getDefaultDataFn;\n\t\treturn PluginModel[FROM_BUILDER]({\n\t\t\tname: this.name,\n\t\t\tdataModel,\n\t\t\toutputs: this.outputs,\n\t\t\tfeatureFlags: this.featureFlags,\n\t\t\tgetDefaultData: getDefaultDataFn ? () => getDefaultDataFn(config) : () => dataModel.getDefaultData()\n\t\t});\n\t}\n};\n/**\n* Builder for creating PluginType with type-safe output definitions.\n*\n* Use `PluginModel.define()` to create a builder instance.\n*\n* @typeParam Data - Plugin's persistent data type\n* @typeParam Params - Params derived from block's RenderCtx (optional)\n* @typeParam Config - Static configuration passed to plugin factory (optional)\n* @typeParam Outputs - Accumulated output types\n* @typeParam Versions - Version map from PluginDataModel (empty for function-based data)\n*\n* @example\n* const dataTable = PluginModel.define({\n* name: 'dataTable' as PluginName,\n* data: pluginDataModel,\n* })\n* .output('model', (ctx) => createTableModel(ctx))\n* .build();\n*/\nvar PluginModelBuilder = class PluginModelBuilder {\n\tname;\n\tdataFn;\n\tgetDefaultDataFn;\n\toutputs;\n\tfeatureFlags;\n\tconstructor(options) {\n\t\tthis.name = options.name;\n\t\tthis.dataFn = options.dataFn;\n\t\tthis.getDefaultDataFn = options.getDefaultDataFn;\n\t\tthis.outputs = options.outputs ?? {};\n\t\tthis.featureFlags = options.featureFlags;\n\t}\n\t/** @internal */\n\tstatic [FROM_BUILDER](options) {\n\t\treturn new PluginModelBuilder(options);\n\t}\n\t/**\n\t* Adds an output to the plugin.\n\t*\n\t* @param key - Output name\n\t* @param fn - Function that computes the output value from plugin context\n\t* @returns PluginModel with the new output added\n\t*\n\t* @example\n\t* .output('model', (ctx) => createModel(ctx.params.columns, ctx.data.state))\n\t* .output('isReady', (ctx) => ctx.params.columns !== undefined)\n\t*/\n\toutput(key, fn) {\n\t\treturn new PluginModelBuilder({\n\t\t\tname: this.name,\n\t\t\tdataFn: this.dataFn,\n\t\t\tgetDefaultDataFn: this.getDefaultDataFn,\n\t\t\tfeatureFlags: this.featureFlags,\n\t\t\toutputs: {\n\t\t\t\t...this.outputs,\n\t\t\t\t[key]: fn\n\t\t\t}\n\t\t});\n\t}\n\t/**\n\t* Finalizes the plugin definition and returns a PluginFactory.\n\t*\n\t* @returns Plugin factory that creates named plugin instances via .create()\n\t*\n\t* @example\n\t* const myPlugin = PluginModel.define({ ... })\n\t* .output('value', (ctx) => ctx.data.value)\n\t* .build();\n\t*\n\t* // Create a named instance:\n\t* const table = myPlugin.create({ pluginId: 'mainTable', config: { ... } });\n\t*/\n\tbuild() {\n\t\treturn PluginModelFactory[FROM_BUILDER]({\n\t\t\tname: this.name,\n\t\t\tdataFn: this.dataFn,\n\t\t\tgetDefaultDataFn: this.getDefaultDataFn,\n\t\t\toutputs: this.outputs,\n\t\t\tfeatureFlags: this.featureFlags\n\t\t});\n\t}\n};\n\n//#endregion\nexport { CREATE_PLUGIN_MODEL, PluginDataModel, PluginDataModelBuilder, PluginInstance, PluginModel };\n//# sourceMappingURL=plugin_model.js.map","import { Annotation, LinkerMap, canonicalizeJson, getAxisId, getColumnIdAndSpec, matchAxisId, readAnnotation, stringifyJson } from \"@milaboratories/pl-model-common\";\n\n//#region src/pframe_utils/axes.ts\n/** Create id for column copy with added keys in axes domains */\nconst colId = (id, domains) => {\n\tlet wid = id.toString();\n\tdomains?.forEach((domain) => {\n\t\tif (domain) for (const [k, v] of Object.entries(domain)) {\n\t\t\twid += k;\n\t\t\twid += v;\n\t\t}\n\t});\n\treturn wid;\n};\n/** All combinations with 1 key from each list */\nfunction getKeysCombinations(idsLists) {\n\tif (!idsLists.length) return [];\n\tlet result = [[]];\n\tidsLists.forEach((list) => {\n\t\tconst nextResult = [];\n\t\tlist.forEach((key) => {\n\t\t\tnextResult.push(...result.map((resultItem) => [...resultItem, key]));\n\t\t});\n\t\tresult = nextResult;\n\t});\n\treturn result;\n}\nfunction getAvailableWithLinkersAxes(linkerColumns, blockAxes) {\n\tconst availableAxes = LinkerMap.fromColumns(linkerColumns.map(getColumnIdAndSpec)).getReachableByLinkersAxesFromAxesNormalized([...blockAxes.values()], (linkerKeyId, sourceAxisId) => matchAxisId(sourceAxisId, linkerKeyId));\n\treturn new Map(availableAxes.map((axisSpec) => {\n\t\treturn [canonicalizeJson(getAxisId(axisSpec)), axisSpec];\n\t}));\n}\n/** Add columns with fully compatible axes created from partial compatible ones */\nfunction enrichCompatible(blockAxes, columns) {\n\treturn columns.flatMap((column) => getAdditionalColumnsForColumn(blockAxes, column));\n}\nfunction getAdditionalColumnsForColumn(blockAxes, column) {\n\tconst columnAxesIds = column.spec.axesSpec.map(getAxisId);\n\tif (columnAxesIds.every((id) => blockAxes.has(canonicalizeJson(id)))) return [column];\n\tconst secondaryIdsVariants = getKeysCombinations(columnAxesIds.map((id) => {\n\t\tconst result = [];\n\t\tfor (const [_, mainId] of blockAxes) if (matchAxisId(mainId, id) && !matchAxisId(id, mainId)) result.push(mainId);\n\t\treturn result;\n\t}));\n\tconst allAddedDomainValues = /* @__PURE__ */ new Set();\n\tconst addedNotToAllVariantsDomainValues = /* @__PURE__ */ new Set();\n\tconst addedByVariantsDomainValues = secondaryIdsVariants.map((idsList) => {\n\t\tconst addedSet = /* @__PURE__ */ new Set();\n\t\tidsList.map((axisId, idx) => {\n\t\t\tconst d1 = column.spec.axesSpec[idx].domain;\n\t\t\tconst d2 = axisId.domain;\n\t\t\tObject.entries(d2 ?? {}).forEach(([key, value]) => {\n\t\t\t\tif (d1?.[key] === void 0) {\n\t\t\t\t\tconst item = JSON.stringify([key, value]);\n\t\t\t\t\taddedSet.add(item);\n\t\t\t\t\tallAddedDomainValues.add(item);\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn {\n\t\t\t\t...axisId,\n\t\t\t\tannotations: column.spec.axesSpec[idx].annotations\n\t\t\t};\n\t\t});\n\t\treturn addedSet;\n\t});\n\t[...allAddedDomainValues].forEach((addedPart) => {\n\t\tif (addedByVariantsDomainValues.some((s) => !s.has(addedPart))) addedNotToAllVariantsDomainValues.add(addedPart);\n\t});\n\treturn [column, ...secondaryIdsVariants.map((idsList, idx) => {\n\t\tconst id = colId(column.id, idsList.map((id) => id.domain));\n\t\tconst label = readAnnotation(column.spec, Annotation.Label) ?? \"\";\n\t\tconst labelDomainPart = [...addedByVariantsDomainValues[idx]].filter((str) => addedNotToAllVariantsDomainValues.has(str)).sort().map((v) => JSON.parse(v)?.[1]).join(\" / \");\n\t\tconst annotations = {\n\t\t\t...column.spec.annotations,\n\t\t\t[Annotation.Graph.IsVirtual]: stringifyJson(true)\n\t\t};\n\t\tif (label || labelDomainPart) annotations[Annotation.Label] = label && labelDomainPart ? label + \" / \" + labelDomainPart : label + labelDomainPart;\n\t\treturn {\n\t\t\t...column,\n\t\t\tid,\n\t\t\tspec: {\n\t\t\t\t...column.spec,\n\t\t\t\taxesSpec: idsList.map((axisId, idx) => ({\n\t\t\t\t\t...axisId,\n\t\t\t\t\tannotations: column.spec.axesSpec[idx].annotations\n\t\t\t\t})),\n\t\t\t\tannotations\n\t\t\t}\n\t\t};\n\t})];\n}\n\n//#endregion\nexport { enrichCompatible, getAvailableWithLinkersAxes };\n//# sourceMappingURL=axes.js.map","import { PColumnCollection } from \"../render/util/column_collection.js\";\nimport \"../render/index.js\";\nimport { enrichCompatible, getAvailableWithLinkersAxes } from \"./axes.js\";\nimport { canonicalizeJson, getAxisId, getNormalizedAxesList, isLabelColumn, isLinkerColumn, matchAxisId } from \"@milaboratories/pl-model-common\";\n\n//#region src/pframe_utils/columns.ts\nfunction getAllRelatedColumns(ctx, predicate) {\n\tconst columns = new PColumnCollection();\n\tcolumns.addColumnProvider(ctx.resultPool);\n\tconst allColumns = columns.getColumns(predicate, {\n\t\tdontWaitAllData: true,\n\t\toverrideLabelAnnotation: false\n\t}) ?? [];\n\treturn enrichCompatible(new Map(allColumns.flatMap((column) => getNormalizedAxesList(column.spec.axesSpec)).map((axisSpec) => {\n\t\treturn [canonicalizeJson(getAxisId(axisSpec)), axisSpec];\n\t})), allColumns);\n}\nfunction getRelatedColumns(ctx, { columns: rootColumns, predicate }) {\n\tconst columns = new PColumnCollection();\n\tcolumns.addColumnProvider(ctx.resultPool);\n\tcolumns.addColumns(rootColumns);\n\tconst blockAxes = /* @__PURE__ */ new Map();\n\tconst allAxes = /* @__PURE__ */ new Map();\n\tfor (const c of rootColumns) for (const spec of getNormalizedAxesList(c.spec.axesSpec)) {\n\t\tconst aid = getAxisId(spec);\n\t\tblockAxes.set(canonicalizeJson(aid), spec);\n\t\tallAxes.set(canonicalizeJson(aid), spec);\n\t}\n\tconst availableWithLinkersAxes = getAvailableWithLinkersAxes(columns.getColumns((spec) => predicate(spec) && isLinkerColumn(spec), { dontWaitAllData: true }) ?? [], blockAxes);\n\tfor (const item of availableWithLinkersAxes) {\n\t\tblockAxes.set(...item);\n\t\tallAxes.set(...item);\n\t}\n\tconst blockAxesArr = Array.from(blockAxes.values());\n\tlet compatibleWithoutLabels = (columns.getColumns((spec) => predicate(spec) && spec.axesSpec.some((axisSpec) => {\n\t\tconst axisId = getAxisId(axisSpec);\n\t\treturn blockAxesArr.some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));\n\t}), {\n\t\tdontWaitAllData: true,\n\t\toverrideLabelAnnotation: false\n\t}) ?? []).filter((column) => !isLabelColumn(column.spec));\n\tfor (const c of compatibleWithoutLabels) for (const spec of getNormalizedAxesList(c.spec.axesSpec)) {\n\t\tconst aid = getAxisId(spec);\n\t\tallAxes.set(canonicalizeJson(aid), spec);\n\t}\n\tconst allAxesArr = Array.from(allAxes.values());\n\tcompatibleWithoutLabels = (columns.getColumns((spec) => predicate(spec) && spec.axesSpec.every((axisSpec) => {\n\t\tconst axisId = getAxisId(axisSpec);\n\t\treturn allAxesArr.some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));\n\t}), {\n\t\tdontWaitAllData: true,\n\t\toverrideLabelAnnotation: false\n\t}) ?? []).filter((column) => !isLabelColumn(column.spec));\n\tconst compatibleLabels = (columns.getColumns((spec) => predicate(spec) && spec.axesSpec.some((axisSpec) => {\n\t\tconst axisId = getAxisId(axisSpec);\n\t\treturn allAxesArr.some((selectorAxisSpec) => matchAxisId(getAxisId(selectorAxisSpec), axisId));\n\t}), {\n\t\tdontWaitAllData: true,\n\t\toverrideLabelAnnotation: false\n\t}) ?? []).filter((column) => isLabelColumn(column.spec));\n\treturn enrichCompatible(blockAxes, [...compatibleWithoutLabels, ...compatibleLabels]);\n}\n\n//#endregion\nexport { getAllRelatedColumns, getRelatedColumns };\n//# sourceMappingURL=columns.js.map","import { enrichCompatible, getAvailableWithLinkersAxes } from \"../pframe_utils/axes.js\";\nimport { getAllRelatedColumns, getRelatedColumns } from \"../pframe_utils/columns.js\";\nimport { Annotation, readAnnotationJson } from \"@milaboratories/pl-model-common\";\n\n//#region src/components/PFrameForGraphs.ts\nfunction isHiddenFromGraphColumn(column) {\n\treturn !!readAnnotationJson(column, Annotation.HideDataFromGraphs);\n}\nfunction isHiddenFromUIColumn(column) {\n\treturn !!readAnnotationJson(column, Annotation.HideDataFromUi);\n}\n/**\nThe aim of createPFrameForGraphs: to create pframe with block’s columns and all compatible columns from result pool\n(including linker columns and all label columns).\nBlock’s columns are added to pframe as is.\nOther columns are added basing on set of axes of block’s columns, considering available with linker columns.\nCompatible columns must have at least one axis from block’s axes set. This axis of the compatible column from\nresult pool must satisfy matchAxisId (it can have less domain keys than in block’s axis, but without conflicting values\namong existing ones).\nIn requests to pframe (calculateTableData) columns must have strictly the same axes. For compatibility in case\nof partially matched axis we add to pframe a copy of this column with modified axis (with filled missed domains)\nand modified label (with added domain values in case if more than one copy with different domains exist).\n*/\nfunction createPFrameForGraphs(ctx, blockColumns) {\n\tconst suitableSpec = (spec) => !isHiddenFromUIColumn(spec) && !isHiddenFromGraphColumn(spec);\n\tif (!blockColumns) return ctx.createPFrame(getAllRelatedColumns(ctx, suitableSpec));\n\treturn ctx.createPFrame(getRelatedColumns(ctx, {\n\t\tcolumns: blockColumns,\n\t\tpredicate: suitableSpec\n\t}));\n}\n\n//#endregion\nexport { createPFrameForGraphs, isHiddenFromGraphColumn, isHiddenFromUIColumn };\n//# sourceMappingURL=PFrameForGraphs.js.map","//#region src/filters/traverse.ts\n/**\n* Recursively traverses a FilterSpec tree bottom-up, applying visitor callbacks.\n*\n* Entries with `{ type: undefined }` inside `and`/`or` arrays are skipped\n* (these represent unfilled filter slots in the UI).\n*\n* Traversal order:\n* 1. Recurse into child filters (`and`/`or`/`not`)\n* 2. Apply the corresponding visitor callback with already-traversed children\n* 3. For leaf nodes, call `leaf` directly\n*/\nfunction traverseFilterSpec(filter, visitor) {\n\treturn traverseFilterSpecImpl(filter, visitor);\n}\n/** Internal implementation with simple generics for clean recursion. */\nfunction traverseFilterSpecImpl(filter, visitor) {\n\tswitch (filter.type) {\n\t\tcase \"and\": return visitor.and(filter.filters.filter((f) => f.type !== void 0).map((f) => traverseFilterSpecImpl(f, visitor)));\n\t\tcase \"or\": return visitor.or(filter.filters.filter((f) => f.type !== void 0).map((f) => traverseFilterSpecImpl(f, visitor)));\n\t\tcase \"not\": return visitor.not(traverseFilterSpecImpl(filter.filter, visitor));\n\t\tdefault: return visitor.leaf(filter);\n\t}\n}\n/** Collects all column references (`column` and `rhs` fields) from filter leaves. */\nfunction collectFilterSpecColumns(filter) {\n\treturn traverseFilterSpec(filter, {\n\t\tleaf: (leaf) => {\n\t\t\tconst cols = [];\n\t\t\tif (\"column\" in leaf && leaf.column !== void 0) cols.push(leaf.column);\n\t\t\tif (\"rhs\" in leaf && leaf.rhs !== void 0) cols.push(leaf.rhs);\n\t\t\treturn cols;\n\t\t},\n\t\tand: (results) => results.flat(),\n\t\tor: (results) => results.flat(),\n\t\tnot: (result) => result\n\t});\n}\n\n//#endregion\nexport { collectFilterSpecColumns, traverseFilterSpec };\n//# sourceMappingURL=traverse.js.map","import { traverseFilterSpec } from \"../traverse.js\";\nimport { assertNever } from \"@milaboratories/pl-model-common\";\n\n//#region src/filters/converters/filterToQuery.ts\n/** Parses a CanonicalizedJson<PTableColumnId> string into a SpecQueryExpression reference. */\nfunction resolveColumnRef(columnStr) {\n\tconst parsed = JSON.parse(columnStr);\n\treturn parsed.type === \"axis\" ? {\n\t\ttype: \"axisRef\",\n\t\tvalue: parsed.id\n\t} : {\n\t\ttype: \"columnRef\",\n\t\tvalue: parsed.id\n\t};\n}\n/** Converts a FilterSpec tree into a SpecQueryExpression. */\nfunction filterSpecToSpecQueryExpr(filter) {\n\treturn traverseFilterSpec(filter, {\n\t\tleaf: leafToSpecQueryExpr,\n\t\tand: (inputs) => {\n\t\t\tif (inputs.length === 0) throw new Error(\"AND filter requires at least one operand\");\n\t\t\treturn {\n\t\t\t\ttype: \"and\",\n\t\t\t\tinput: inputs\n\t\t\t};\n\t\t},\n\t\tor: (inputs) => {\n\t\t\tif (inputs.length === 0) throw new Error(\"OR filter requires at least one operand\");\n\t\t\treturn {\n\t\t\t\ttype: \"or\",\n\t\t\t\tinput: inputs\n\t\t\t};\n\t\t},\n\t\tnot: (input) => ({\n\t\t\ttype: \"not\",\n\t\t\tinput\n\t\t})\n\t});\n}\nfunction leafToSpecQueryExpr(filter) {\n\tswitch (filter.type) {\n\t\tcase \"patternEquals\": return {\n\t\t\ttype: \"stringEquals\",\n\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\tvalue: filter.value,\n\t\t\tcaseInsensitive: false\n\t\t};\n\t\tcase \"patternNotEquals\": return {\n\t\t\ttype: \"not\",\n\t\t\tinput: {\n\t\t\t\ttype: \"stringEquals\",\n\t\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\t\tvalue: filter.value,\n\t\t\t\tcaseInsensitive: false\n\t\t\t}\n\t\t};\n\t\tcase \"patternContainSubsequence\": return {\n\t\t\ttype: \"stringContains\",\n\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\tvalue: filter.value,\n\t\t\tcaseInsensitive: false\n\t\t};\n\t\tcase \"patternNotContainSubsequence\": return {\n\t\t\ttype: \"not\",\n\t\t\tinput: {\n\t\t\t\ttype: \"stringContains\",\n\t\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\t\tvalue: filter.value,\n\t\t\t\tcaseInsensitive: false\n\t\t\t}\n\t\t};\n\t\tcase \"patternMatchesRegularExpression\": return {\n\t\t\ttype: \"stringRegex\",\n\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\tvalue: filter.value\n\t\t};\n\t\tcase \"patternFuzzyContainSubsequence\": return {\n\t\t\ttype: \"stringContainsFuzzy\",\n\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\tvalue: filter.value,\n\t\t\tmaxEdits: filter.maxEdits ?? 1,\n\t\t\tcaseInsensitive: false,\n\t\t\tsubstitutionsOnly: filter.substitutionsOnly ?? false,\n\t\t\twildcard: filter.wildcard ?? null\n\t\t};\n\t\tcase \"equal\": return {\n\t\t\ttype: \"numericComparison\",\n\t\t\toperand: \"eq\",\n\t\t\tleft: resolveColumnRef(filter.column),\n\t\t\tright: {\n\t\t\t\ttype: \"constant\",\n\t\t\t\tvalue: filter.x\n\t\t\t}\n\t\t};\n\t\tcase \"notEqual\": return {\n\t\t\ttype: \"numericComparison\",\n\t\t\toperand: \"ne\",\n\t\t\tleft: resolveColumnRef(filter.column),\n\t\t\tright: {\n\t\t\t\ttype: \"constant\",\n\t\t\t\tvalue: filter.x\n\t\t\t}\n\t\t};\n\t\tcase \"lessThan\": return {\n\t\t\ttype: \"numericComparison\",\n\t\t\toperand: \"lt\",\n\t\t\tleft: resolveColumnRef(filter.column),\n\t\t\tright: {\n\t\t\t\ttype: \"constant\",\n\t\t\t\tvalue: filter.x\n\t\t\t}\n\t\t};\n\t\tcase \"greaterThan\": return {\n\t\t\ttype: \"numericComparison\",\n\t\t\toperand: \"gt\",\n\t\t\tleft: resolveColumnRef(filter.column),\n\t\t\tright: {\n\t\t\t\ttype: \"constant\",\n\t\t\t\tvalue: filter.x\n\t\t\t}\n\t\t};\n\t\tcase \"lessThanOrEqual\": return {\n\t\t\ttype: \"numericComparison\",\n\t\t\toperand: \"le\",\n\t\t\tleft: resolveColumnRef(filter.column),\n\t\t\tright: {\n\t\t\t\ttype: \"constant\",\n\t\t\t\tvalue: filter.x\n\t\t\t}\n\t\t};\n\t\tcase \"greaterThanOrEqual\": return {\n\t\t\ttype: \"numericComparison\",\n\t\t\toperand: \"ge\",\n\t\t\tleft: resolveColumnRef(filter.column),\n\t\t\tright: {\n\t\t\t\ttype: \"constant\",\n\t\t\t\tvalue: filter.x\n\t\t\t}\n\t\t};\n\t\tcase \"equalToColumn\": return {\n\t\t\ttype: \"numericComparison\",\n\t\t\toperand: \"eq\",\n\t\t\tleft: resolveColumnRef(filter.column),\n\t\t\tright: resolveColumnRef(filter.rhs)\n\t\t};\n\t\tcase \"lessThanColumn\": {\n\t\t\tconst left = resolveColumnRef(filter.column);\n\t\t\tconst right = resolveColumnRef(filter.rhs);\n\t\t\tif (filter.minDiff !== void 0 && filter.minDiff !== 0) return {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"lt\",\n\t\t\t\tleft: {\n\t\t\t\t\ttype: \"numericBinary\",\n\t\t\t\t\toperand: \"add\",\n\t\t\t\t\tleft,\n\t\t\t\t\tright: {\n\t\t\t\t\t\ttype: \"constant\",\n\t\t\t\t\t\tvalue: filter.minDiff\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tright\n\t\t\t};\n\t\t\treturn {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"lt\",\n\t\t\t\tleft,\n\t\t\t\tright\n\t\t\t};\n\t\t}\n\t\tcase \"greaterThanColumn\": {\n\t\t\tconst left = resolveColumnRef(filter.column);\n\t\t\tconst right = resolveColumnRef(filter.rhs);\n\t\t\tif (filter.minDiff !== void 0 && filter.minDiff !== 0) return {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"gt\",\n\t\t\t\tleft: {\n\t\t\t\t\ttype: \"numericBinary\",\n\t\t\t\t\toperand: \"add\",\n\t\t\t\t\tleft,\n\t\t\t\t\tright: {\n\t\t\t\t\t\ttype: \"constant\",\n\t\t\t\t\t\tvalue: filter.minDiff\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tright\n\t\t\t};\n\t\t\treturn {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"gt\",\n\t\t\t\tleft,\n\t\t\t\tright\n\t\t\t};\n\t\t}\n\t\tcase \"lessThanColumnOrEqual\": {\n\t\t\tconst left = resolveColumnRef(filter.column);\n\t\t\tconst right = resolveColumnRef(filter.rhs);\n\t\t\tif (filter.minDiff !== void 0 && filter.minDiff !== 0) return {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"le\",\n\t\t\t\tleft: {\n\t\t\t\t\ttype: \"numericBinary\",\n\t\t\t\t\toperand: \"add\",\n\t\t\t\t\tleft,\n\t\t\t\t\tright: {\n\t\t\t\t\t\ttype: \"constant\",\n\t\t\t\t\t\tvalue: filter.minDiff\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tright\n\t\t\t};\n\t\t\treturn {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"le\",\n\t\t\t\tleft,\n\t\t\t\tright\n\t\t\t};\n\t\t}\n\t\tcase \"greaterThanColumnOrEqual\": {\n\t\t\tconst left = resolveColumnRef(filter.column);\n\t\t\tconst right = resolveColumnRef(filter.rhs);\n\t\t\tif (filter.minDiff !== void 0 && filter.minDiff !== 0) return {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"ge\",\n\t\t\t\tleft: {\n\t\t\t\t\ttype: \"numericBinary\",\n\t\t\t\t\toperand: \"add\",\n\t\t\t\t\tleft,\n\t\t\t\t\tright: {\n\t\t\t\t\t\ttype: \"constant\",\n\t\t\t\t\t\tvalue: filter.minDiff\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tright\n\t\t\t};\n\t\t\treturn {\n\t\t\t\ttype: \"numericComparison\",\n\t\t\t\toperand: \"ge\",\n\t\t\t\tleft,\n\t\t\t\tright\n\t\t\t};\n\t\t}\n\t\tcase \"inSet\": return {\n\t\t\ttype: \"isIn\",\n\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\tset: filter.value\n\t\t};\n\t\tcase \"notInSet\": return {\n\t\t\ttype: \"not\",\n\t\t\tinput: {\n\t\t\t\ttype: \"isIn\",\n\t\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\t\tset: filter.value\n\t\t\t}\n\t\t};\n\t\tcase \"isNA\": return {\n\t\t\ttype: \"isNull\",\n\t\t\tinput: resolveColumnRef(filter.column)\n\t\t};\n\t\tcase \"isNotNA\": return {\n\t\t\ttype: \"not\",\n\t\t\tinput: {\n\t\t\t\ttype: \"isNull\",\n\t\t\t\tinput: resolveColumnRef(filter.column)\n\t\t\t}\n\t\t};\n\t\tcase \"ifNa\": return {\n\t\t\ttype: \"ifNull\",\n\t\t\tinput: resolveColumnRef(filter.column),\n\t\t\treplacement: {\n\t\t\t\ttype: \"constant\",\n\t\t\t\tvalue: filter.replacement\n\t\t\t}\n\t\t};\n\t\tcase \"topN\":\n\t\tcase \"bottomN\": throw new Error(`Filter type \"${filter.type}\" is not supported in query expressions`);\n\t\tcase void 0: throw new Error(\"Filter type is undefined\");\n\t\tdefault: assertNever(filter);\n\t}\n}\n\n//#endregion\nexport { filterSpecToSpecQueryExpr };\n//# sourceMappingURL=filterToQuery.js.map","function isLength(value) {\n return Number.isSafeInteger(value) && value >= 0;\n}\n\nexport { isLength };\n","import { isLength } from '../../predicate/isLength.mjs';\n\nfunction isArrayLike(value) {\n return value != null && typeof value !== 'function' && isLength(value.length);\n}\n\nexport { isArrayLike };\n","function identity(x) {\n return x;\n}\n\nexport { identity };\n","function getTag(value) {\n if (value == null) {\n return value === undefined ? '[object Undefined]' : '[object Null]';\n }\n return Object.prototype.toString.call(value);\n}\n\nexport { getTag };\n","function isTypedArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n\nexport { isTypedArray };\n","import { getTag } from '../_internal/getTag.mjs';\n\nfunction isArguments(value) {\n return value !== null && typeof value === 'object' && getTag(value) === '[object Arguments]';\n}\n\nexport { isArguments };\n","function isNil(x) {\n return x == null;\n}\n\nexport { isNil };\n","function isFunction(value) {\n return typeof value === 'function';\n}\n\nexport { isFunction };\n","function isPrototype(value) {\n const constructor = value?.constructor;\n const prototype = typeof constructor === 'function' ? constructor.prototype : Object.prototype;\n return value === prototype;\n}\n\nexport { isPrototype };\n","import { isTypedArray as isTypedArray$1 } from '../../predicate/isTypedArray.mjs';\n\nfunction isTypedArray(x) {\n return isTypedArray$1(x);\n}\n\nexport { isTypedArray };\n","import { isArguments } from './isArguments.mjs';\nimport { isArrayLike } from './isArrayLike.mjs';\nimport { isTypedArray } from './isTypedArray.mjs';\nimport { isPrototype } from '../_internal/isPrototype.mjs';\n\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value)) {\n if (typeof value.splice !== 'function' &&\n typeof value !== 'string' &&\n (typeof Buffer === 'undefined' || !Buffer.isBuffer(value)) &&\n !isTypedArray(value) &&\n !isArguments(value)) {\n return false;\n }\n return value.length === 0;\n }\n if (typeof value === 'object') {\n if (value instanceof Map || value instanceof Set) {\n return value.size === 0;\n }\n const keys = Object.keys(value);\n if (isPrototype(value)) {\n return keys.filter(x => x !== 'constructor').length === 0;\n }\n return keys.length === 0;\n }\n return true;\n}\n\nexport { isEmpty };\n","import { traverseFilterSpec } from \"./traverse.js\";\nimport { isEmpty } from \"es-toolkit/compat\";\n\n//#region src/filters/distill.ts\nconst KNOWN_LEAF_KEYS = new Set([\n\t\"n\",\n\t\"x\",\n\t\"rhs\",\n\t\"type\",\n\t\"value\",\n\t\"column\",\n\t\"minDiff\",\n\t\"maxEdits\",\n\t\"wildcard\",\n\t\"replacement\",\n\t\"substitutionsOnly\"\n]);\n/** Returns true if the leaf is filled — type is defined and no required fields are undefined. */\nfunction isFilledLeaf(node) {\n\tif (node.type == null) return false;\n\treturn !Object.values(node).some((value) => {\n\t\tswitch (typeof value) {\n\t\t\tcase \"number\":\n\t\t\tcase \"boolean\": return false;\n\t\t\tcase \"string\": return value.trim() === \"\";\n\t\t\tdefault: return isEmpty(value);\n\t\t}\n\t});\n}\nfunction distillLeaf(node) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(node)) if (KNOWN_LEAF_KEYS.has(key)) result[key] = value;\n\treturn result;\n}\n/**\n* Strips non-FilterSpec metadata (whitelist approach) and removes\n* unfilled leaves (type is undefined or any required field is undefined).\n*/\nfunction distillFilterSpec(filter) {\n\tif (filter == null) return null;\n\treturn traverseFilterSpec(filter, {\n\t\tleaf: (leaf) => {\n\t\t\tconst distilled = distillLeaf(leaf);\n\t\t\treturn isFilledLeaf(distilled) ? distilled : null;\n\t\t},\n\t\tand: (results) => {\n\t\t\tconst filtered = results.filter((f) => f !== null);\n\t\t\treturn filtered.length === 0 ? null : {\n\t\t\t\ttype: \"and\",\n\t\t\t\tfilters: filtered\n\t\t\t};\n\t\t},\n\t\tor: (results) => {\n\t\t\tconst filtered = results.filter((f) => f !== null);\n\t\t\treturn filtered.length === 0 ? null : {\n\t\t\t\ttype: \"or\",\n\t\t\t\tfilters: filtered\n\t\t\t};\n\t\t},\n\t\tnot: (result) => result === null ? null : {\n\t\t\ttype: \"not\",\n\t\t\tfilter: result\n\t\t}\n\t});\n}\n\n//#endregion\nexport { distillFilterSpec };\n//# sourceMappingURL=distill.js.map","import { distillFilterSpec } from \"../../filters/distill.js\";\nimport \"../../filters/index.js\";\nimport { canonicalizeJson } from \"@milaboratories/pl-model-common\";\n\n//#region src/components/PlDataTable/state-migration.ts\n/** Upgrade PlDataTableStateV2 to the latest version */\nfunction upgradePlDataTableStateV2(state) {\n\tif (!state) return createPlDataTableStateV2();\n\tif (!(\"version\" in state)) state = createPlDataTableStateV2();\n\tif (state.version === 2) state = {\n\t\tversion: 3,\n\t\tstateCache: state.stateCache.map((entry) => ({\n\t\t\t...entry,\n\t\t\tfiltersState: []\n\t\t})),\n\t\tpTableParams: createDefaultPTableParams()\n\t};\n\tif (state.version === 3) state = createPlDataTableStateV2();\n\tif (state.version === 4) state = migrateV4toV5(state);\n\treturn state;\n}\n/** Migrate v4 state to v5: convert per-column filters to tree-based format */\nfunction migrateV4toV5(state) {\n\tlet idCounter = 0;\n\tconst nextId = () => ++idCounter;\n\tconst migratedCache = state.stateCache.map((entry) => {\n\t\tconst leaves = [];\n\t\tfor (const f of entry.filtersState) if (f.filter !== null && !f.filter.disabled) {\n\t\t\tconst column = canonicalizeJson(f.id);\n\t\t\tleaves.push(migrateTableFilter(column, f.filter.value, nextId));\n\t\t}\n\t\tconst filtersState = leaves.length > 0 ? {\n\t\t\tid: nextId(),\n\t\t\ttype: \"and\",\n\t\t\tfilters: leaves\n\t\t} : null;\n\t\treturn {\n\t\t\tsourceId: entry.sourceId,\n\t\t\tgridState: entry.gridState,\n\t\t\tsheetsState: entry.sheetsState,\n\t\t\tfiltersState\n\t\t};\n\t});\n\tconst oldSourceId = state.pTableParams.sourceId;\n\tconst currentCache = oldSourceId ? migratedCache.find((e) => e.sourceId === oldSourceId) : void 0;\n\treturn {\n\t\tversion: 5,\n\t\tstateCache: migratedCache,\n\t\tpTableParams: currentCache && oldSourceId ? {\n\t\t\tsourceId: oldSourceId,\n\t\t\thiddenColIds: state.pTableParams.hiddenColIds,\n\t\t\tfilters: distillFilterSpec(currentCache.filtersState),\n\t\t\tsorting: state.pTableParams.sorting\n\t\t} : createDefaultPTableParams()\n\t};\n}\n/** Migrate a single per-column PlTableFilter to a tree-based FilterSpec node */\nfunction migrateTableFilter(column, filter, nextId) {\n\tconst id = nextId();\n\tswitch (filter.type) {\n\t\tcase \"isNA\": return {\n\t\t\tid,\n\t\t\ttype: \"isNA\",\n\t\t\tcolumn\n\t\t};\n\t\tcase \"isNotNA\": return {\n\t\t\tid,\n\t\t\ttype: \"isNotNA\",\n\t\t\tcolumn\n\t\t};\n\t\tcase \"number_equals\": return {\n\t\t\tid,\n\t\t\ttype: \"equal\",\n\t\t\tcolumn,\n\t\t\tx: filter.reference\n\t\t};\n\t\tcase \"number_notEquals\": return {\n\t\t\tid,\n\t\t\ttype: \"notEqual\",\n\t\t\tcolumn,\n\t\t\tx: filter.reference\n\t\t};\n\t\tcase \"number_greaterThan\": return {\n\t\t\tid,\n\t\t\ttype: \"greaterThan\",\n\t\t\tcolumn,\n\t\t\tx: filter.reference\n\t\t};\n\t\tcase \"number_greaterThanOrEqualTo\": return {\n\t\t\tid,\n\t\t\ttype: \"greaterThanOrEqual\",\n\t\t\tcolumn,\n\t\t\tx: filter.reference\n\t\t};\n\t\tcase \"number_lessThan\": return {\n\t\t\tid,\n\t\t\ttype: \"lessThan\",\n\t\t\tcolumn,\n\t\t\tx: filter.reference\n\t\t};\n\t\tcase \"number_lessThanOrEqualTo\": return {\n\t\t\tid,\n\t\t\ttype: \"lessThanOrEqual\",\n\t\t\tcolumn,\n\t\t\tx: filter.reference\n\t\t};\n\t\tcase \"number_between\": return {\n\t\t\tid,\n\t\t\ttype: \"and\",\n\t\t\tfilters: [filter.includeLowerBound ? {\n\t\t\t\tid: nextId(),\n\t\t\t\ttype: \"greaterThanOrEqual\",\n\t\t\t\tcolumn,\n\t\t\t\tx: filter.lowerBound\n\t\t\t} : {\n\t\t\t\tid: nextId(),\n\t\t\t\ttype: \"greaterThan\",\n\t\t\t\tcolumn,\n\t\t\t\tx: filter.lowerBound\n\t\t\t}, filter.includeUpperBound ? {\n\t\t\t\tid: nextId(),\n\t\t\t\ttype: \"lessThanOrEqual\",\n\t\t\t\tcolumn,\n\t\t\t\tx: filter.upperBound\n\t\t\t} : {\n\t\t\t\tid: nextId(),\n\t\t\t\ttype: \"lessThan\",\n\t\t\t\tcolumn,\n\t\t\t\tx: filter.upperBound\n\t\t\t}]\n\t\t};\n\t\tcase \"string_equals\": return {\n\t\t\tid,\n\t\t\ttype: \"patternEquals\",\n\t\t\tcolumn,\n\t\t\tvalue: filter.reference\n\t\t};\n\t\tcase \"string_notEquals\": return {\n\t\t\tid,\n\t\t\ttype: \"patternNotEquals\",\n\t\t\tcolumn,\n\t\t\tvalue: filter.reference\n\t\t};\n\t\tcase \"string_contains\": return {\n\t\t\tid,\n\t\t\ttype: \"patternContainSubsequence\",\n\t\t\tcolumn,\n\t\t\tvalue: filter.reference\n\t\t};\n\t\tcase \"string_doesNotContain\": return {\n\t\t\tid,\n\t\t\ttype: \"patternNotContainSubsequence\",\n\t\t\tcolumn,\n\t\t\tvalue: filter.reference\n\t\t};\n\t\tcase \"string_matches\": return {\n\t\t\tid,\n\t\t\ttype: \"patternMatchesRegularExpression\",\n\t\t\tcolumn,\n\t\t\tvalue: filter.reference\n\t\t};\n\t\tcase \"string_doesNotMatch\": return {\n\t\t\tid,\n\t\t\ttype: \"not\",\n\t\t\tfilter: {\n\t\t\t\tid: nextId(),\n\t\t\t\ttype: \"patternMatchesRegularExpression\",\n\t\t\t\tcolumn,\n\t\t\t\tvalue: filter.reference\n\t\t\t}\n\t\t};\n\t\tcase \"string_containsFuzzyMatch\": return {\n\t\t\tid,\n\t\t\ttype: \"patternFuzzyContainSubsequence\",\n\t\t\tcolumn,\n\t\t\tvalue: filter.reference,\n\t\t\tmaxEdits: filter.maxEdits,\n\t\t\tsubstitutionsOnly: filter.substitutionsOnly,\n\t\t\t...filter.wildcard !== void 0 ? { wildcard: filter.wildcard } : {}\n\t\t};\n\t}\n}\nfunction createDefaultPTableParams() {\n\treturn {\n\t\tsourceId: null,\n\t\thiddenColIds: null,\n\t\tfilters: null,\n\t\tsorting: []\n\t};\n}\nfunction createPlDataTableStateV2() {\n\treturn {\n\t\tversion: 5,\n\t\tstateCache: [],\n\t\tpTableParams: createDefaultPTableParams()\n\t};\n}\n\n//#endregion\nexport { createDefaultPTableParams, createPlDataTableStateV2, upgradePlDataTableStateV2 };\n//# sourceMappingURL=state-migration.js.map","import { PColumnCollection } from \"../../render/util/column_collection.js\";\nimport \"../../render/index.js\";\nimport { PColumnName, getAxisId, isLabelColumn, matchAxisId } from \"@milaboratories/pl-model-common\";\n\n//#region src/components/PlDataTable/labels.ts\n/** Get all label columns from the result pool */\nfunction getAllLabelColumns(resultPool) {\n\treturn new PColumnCollection().addAxisLabelProvider(resultPool).addColumnProvider(resultPool).getColumns({\n\t\tname: PColumnName.Label,\n\t\taxes: [{}]\n\t}, {\n\t\tdontWaitAllData: true,\n\t\toverrideLabelAnnotation: false\n\t});\n}\n/** Get label columns matching the provided columns from the result pool */\nfunction getMatchingLabelColumns(columns, allLabelColumns) {\n\tconst inputLabelColumns = [];\n\tconst inputValueColumns = [];\n\tfor (const column of columns) if (isLabelColumn(column.spec)) inputLabelColumns.push(column);\n\telse inputValueColumns.push(column);\n\tconst unlabeledAxes = [];\n\tfor (const column of inputValueColumns) for (const axis of column.spec.axesSpec) {\n\t\tconst axisId = getAxisId(axis);\n\t\tif (!unlabeledAxes.some((id) => matchAxisId(id, axisId))) unlabeledAxes.push(axisId);\n\t}\n\tfor (const labelColumn of inputLabelColumns) {\n\t\tconst labelAxisId = getAxisId(labelColumn.spec.axesSpec[0]);\n\t\tconst labelMatch = unlabeledAxes.findIndex((axisId) => matchAxisId(axisId, labelAxisId));\n\t\tif (labelMatch !== -1) unlabeledAxes.splice(labelMatch, 1);\n\t}\n\tconst colId = (id, domain) => {\n\t\tlet wid = id.toString();\n\t\tif (domain) for (const k in domain) {\n\t\t\twid += k;\n\t\t\twid += domain[k];\n\t\t}\n\t\treturn wid;\n\t};\n\tconst labelColumns = [];\n\tfor (const labelColumn of allLabelColumns) {\n\t\tconst labelAxis = labelColumn.spec.axesSpec[0];\n\t\tconst labelAxisId = getAxisId(labelAxis);\n\t\tconst labelMatch = unlabeledAxes.findIndex((axisId) => matchAxisId(axisId, labelAxisId));\n\t\tif (labelMatch !== -1) {\n\t\t\tconst axisId = unlabeledAxes[labelMatch];\n\t\t\tif (Object.keys(axisId.domain ?? {}).length > Object.keys(labelAxis.domain ?? {}).length) labelColumns.push({\n\t\t\t\tid: colId(labelColumn.id, axisId.domain),\n\t\t\t\tspec: {\n\t\t\t\t\t...labelColumn.spec,\n\t\t\t\t\taxesSpec: [{\n\t\t\t\t\t\t...axisId,\n\t\t\t\t\t\tannotations: labelAxis.annotations\n\t\t\t\t\t}]\n\t\t\t\t},\n\t\t\t\tdata: labelColumn.data\n\t\t\t});\n\t\t\telse labelColumns.push(labelColumn);\n\t\t\tunlabeledAxes.splice(labelMatch, 1);\n\t\t}\n\t}\n\treturn labelColumns;\n}\n\n//#endregion\nexport { getAllLabelColumns, getMatchingLabelColumns };\n//# sourceMappingURL=labels.js.map","import { deriveLabels } from \"../../render/util/label.js\";\nimport { allPColumnsReady } from \"../../render/util/pcolumn_data.js\";\nimport \"../../render/index.js\";\nimport { collectFilterSpecColumns } from \"../../filters/traverse.js\";\nimport { filterSpecToSpecQueryExpr } from \"../../filters/converters/filterToQuery.js\";\nimport { distillFilterSpec } from \"../../filters/distill.js\";\nimport \"../../filters/index.js\";\nimport { upgradePlDataTableStateV2 } from \"./state-migration.js\";\nimport { getAllLabelColumns, getMatchingLabelColumns } from \"./labels.js\";\nimport { Annotation, canonicalizeJson, getAxisId, getColumnIdAndSpec, isBooleanExpression, isLinkerColumn, parseJson, readAnnotation, uniqueBy } from \"@milaboratories/pl-model-common\";\nimport { isEmpty } from \"es-toolkit/compat\";\nimport { identity, isFunction, isNil } from \"es-toolkit\";\n\n//#region src/components/PlDataTable/table.ts\n/** Convert a PTableColumnId to a SpecQueryExpression reference. */\nfunction columnIdToExpr(col) {\n\tif (col.type === \"axis\") return {\n\t\ttype: \"axisRef\",\n\t\tvalue: col.id\n\t};\n\treturn {\n\t\ttype: \"columnRef\",\n\t\tvalue: col.id\n\t};\n}\n/** Wrap a SpecQuery as a SpecQueryJoinEntry with empty qualifications. */\nfunction joinEntry(input) {\n\treturn {\n\t\tentry: input,\n\t\tqualifications: []\n\t};\n}\nfunction createPTableDef(params) {\n\tlet coreColumns = params.columns;\n\tconst secondaryColumns = [];\n\tif (isFunction(params.coreColumnPredicate)) {\n\t\tcoreColumns = [];\n\t\tfor (const c of params.columns) if (params.coreColumnPredicate(getColumnIdAndSpec(c))) coreColumns.push(c);\n\t\telse secondaryColumns.push(c);\n\t}\n\tsecondaryColumns.push(...params.labelColumns);\n\tlet query = {\n\t\ttype: \"outerJoin\",\n\t\tprimary: joinEntry({\n\t\t\ttype: params.coreJoinType === \"inner\" ? \"innerJoin\" : \"fullJoin\",\n\t\t\tentries: coreColumns.map((c) => joinEntry({\n\t\t\t\ttype: \"column\",\n\t\t\t\tcolumn: c\n\t\t\t}))\n\t\t}),\n\t\tsecondary: secondaryColumns.map((c) => joinEntry({\n\t\t\ttype: \"column\",\n\t\t\tcolumn: c\n\t\t}))\n\t};\n\tif (params.filters !== null) {\n\t\tconst nonEmpty = distillFilterSpec(params.filters);\n\t\tif (!isNil(nonEmpty)) {\n\t\t\tconst pridicate = filterSpecToSpecQueryExpr(nonEmpty);\n\t\t\tif (!isBooleanExpression(pridicate)) throw new Error(`Filter conversion produced a non-boolean expression (got type \"${pridicate.type}\"), expected a boolean predicate for query filtering`);\n\t\t\tquery = {\n\t\t\t\ttype: \"filter\",\n\t\t\t\tinput: query,\n\t\t\t\tpredicate: pridicate\n\t\t\t};\n\t\t}\n\t}\n\tif (params.sorting.length > 0) query = {\n\t\ttype: \"sort\",\n\t\tinput: query,\n\t\tsortBy: params.sorting.map((s) => ({\n\t\t\texpression: columnIdToExpr(s.column),\n\t\t\tascending: s.ascending,\n\t\t\tnullsFirst: !s.naAndAbsentAreLeastValues\n\t\t}))\n\t};\n\treturn { query };\n}\n/** Check if column should be omitted from the table */\nfunction isColumnHidden(spec) {\n\treturn readAnnotation(spec, Annotation.Table.Visibility) === \"hidden\";\n}\n/** Check if column is hidden by default */\nfunction isColumnOptional(spec) {\n\treturn readAnnotation(spec, Annotation.Table.Visibility) === \"optional\";\n}\n/**\n* Create p-table spec and handle given ui table state\n*\n* @param ctx context\n* @param columns column list\n* @param tableState table ui state\n* @returns PlAgDataTableV2 table source\n*/\nfunction createPlDataTableV2(ctx, columns, tableState, ops) {\n\tif (columns.length === 0) return void 0;\n\tconst tableStateNormalized = upgradePlDataTableStateV2(tableState);\n\tconst allLabelColumns = getAllLabelColumns(ctx.resultPool);\n\tif (!allLabelColumns) return void 0;\n\tlet fullLabelColumns = getMatchingLabelColumns(columns.map(getColumnIdAndSpec), allLabelColumns);\n\tfullLabelColumns = deriveLabels(fullLabelColumns, identity, { includeNativeLabel: true }).map((v) => {\n\t\treturn {\n\t\t\t...v.value,\n\t\t\tspec: {\n\t\t\t\t...v.value.spec,\n\t\t\t\tannotations: {\n\t\t\t\t\t...v.value.spec.annotations,\n\t\t\t\t\t[Annotation.Label]: v.label\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t});\n\tconst fullColumns = [...columns, ...fullLabelColumns];\n\tconst fullColumnsIds = [...uniqueBy(fullColumns.flatMap((c) => c.spec.axesSpec.map((a) => getAxisId(a))), (a) => canonicalizeJson(a)).map((a) => ({\n\t\ttype: \"axis\",\n\t\tid: a\n\t})), ...fullColumns.map((c) => ({\n\t\ttype: \"column\",\n\t\tid: c.id\n\t}))];\n\tconst fullColumnsIdsSet = new Set(fullColumnsIds.map((c) => canonicalizeJson(c)));\n\tconst isValidColumnId = (id) => fullColumnsIdsSet.has(id);\n\tconst stateFilters = tableStateNormalized.pTableParams.filters;\n\tconst opsFilters = ops?.filters ?? null;\n\tconst filters = stateFilters != null && opsFilters != null ? {\n\t\ttype: \"and\",\n\t\tfilters: [stateFilters, opsFilters]\n\t} : stateFilters ?? opsFilters;\n\tconst firstInvalidFilterColumn = (filters ? collectFilterSpecColumns(filters) : []).find((col) => !isValidColumnId(col));\n\tif (firstInvalidFilterColumn) throw new Error(`Invalid filter column ${firstInvalidFilterColumn}: column reference does not match the table columns`);\n\tconst userSorting = tableStateNormalized.pTableParams.sorting;\n\tconst sorting = (isEmpty(userSorting) ? ops?.sorting : userSorting) ?? [];\n\tconst firstInvalidSortingColumn = sorting.find((s) => !isValidColumnId(canonicalizeJson(s.column)));\n\tif (firstInvalidSortingColumn) throw new Error(`Invalid sorting column ${JSON.stringify(firstInvalidSortingColumn.column)}: column reference does not match the table columns`);\n\tconst coreJoinType = ops?.coreJoinType ?? \"full\";\n\tconst fullDef = createPTableDef({\n\t\tcolumns,\n\t\tlabelColumns: fullLabelColumns,\n\t\tcoreJoinType,\n\t\tfilters,\n\t\tsorting,\n\t\tcoreColumnPredicate: ops?.coreColumnPredicate\n\t});\n\tconst fullHandle = ctx.createPTableV2(fullDef);\n\tconst pframeHandle = ctx.createPFrame(fullColumns);\n\tif (!fullHandle || !pframeHandle) return void 0;\n\tconst hiddenColumns = new Set((() => {\n\t\tif (coreJoinType === \"inner\") return [];\n\t\tconst hiddenColIds = tableStateNormalized.pTableParams.hiddenColIds;\n\t\tif (hiddenColIds) return hiddenColIds;\n\t\treturn columns.filter((c) => isColumnOptional(c.spec)).map((c) => c.id);\n\t})());\n\tcolumns.filter((c) => isLinkerColumn(c.spec)).forEach((c) => hiddenColumns.delete(c.id));\n\tconst coreColumnPredicate = ops?.coreColumnPredicate;\n\tif (coreColumnPredicate) columns.flatMap((c) => coreColumnPredicate(getColumnIdAndSpec(c)) ? [c.id] : []).forEach((c) => hiddenColumns.delete(c));\n\tsorting.map((s) => s.column).filter((c) => c.type === \"column\").forEach((c) => hiddenColumns.delete(c.id));\n\tif (filters) collectFilterSpecColumns(filters).flatMap((c) => {\n\t\tconst obj = parseJson(c);\n\t\treturn obj.type === \"column\" ? [obj.id] : [];\n\t}).forEach((c) => hiddenColumns.delete(c));\n\tconst visibleColumns = columns.filter((c) => !hiddenColumns.has(c.id));\n\tconst visibleLabelColumns = getMatchingLabelColumns(visibleColumns.map(getColumnIdAndSpec), allLabelColumns);\n\tif (!allPColumnsReady([...visibleColumns, ...visibleLabelColumns])) return void 0;\n\tconst visibleDef = createPTableDef({\n\t\tcolumns: visibleColumns,\n\t\tlabelColumns: visibleLabelColumns,\n\t\tcoreJoinType,\n\t\tfilters,\n\t\tsorting,\n\t\tcoreColumnPredicate\n\t});\n\tconst visibleHandle = ctx.createPTableV2(visibleDef);\n\tif (!visibleHandle) return void 0;\n\treturn {\n\t\tsourceId: tableStateNormalized.pTableParams.sourceId,\n\t\tfullTableHandle: fullHandle,\n\t\tfullPframeHandle: pframeHandle,\n\t\tvisibleTableHandle: visibleHandle\n\t};\n}\n/** Create sheet entries for PlDataTable */\nfunction createPlDataTableSheet(ctx, axis, values) {\n\tconst labels = ctx.resultPool.findLabels(axis);\n\treturn {\n\t\taxis,\n\t\toptions: values.map((v) => ({\n\t\t\tvalue: v,\n\t\t\tlabel: labels?.[v] ?? v.toString()\n\t\t})),\n\t\tdefaultValue: values[0]\n\t};\n}\n\n//#endregion\nexport { createPlDataTableSheet, createPlDataTableV2, isColumnHidden, isColumnOptional };\n//# sourceMappingURL=table.js.map","exports = module.exports = stringify\nexports.getSerialize = serializer\n\nfunction stringify(obj, replacer, spaces, cycleReplacer) {\n return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces)\n}\n\nfunction serializer(replacer, cycleReplacer) {\n var stack = [], keys = []\n\n if (cycleReplacer == null) cycleReplacer = function(key, value) {\n if (stack[0] === value) return \"[Circular ~]\"\n return \"[Circular ~.\" + keys.slice(0, stack.indexOf(value)).join(\".\") + \"]\"\n }\n\n return function(key, value) {\n if (stack.length > 0) {\n var thisPos = stack.indexOf(this)\n ~thisPos ? stack.splice(thisPos + 1) : stack.push(this)\n ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key)\n if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value)\n }\n else stack.push(value)\n\n return replacer == null ? value : replacer.call(this, key, value)\n }\n}\n","import stringify from \"json-stringify-safe\";\nimport { z } from \"zod\";\n\n//#region src/error_like_shape.ts\nconst BasePlErrorLike = z.object({\n\ttype: z.literal(\"PlError\"),\n\tname: z.string(),\n\tmessage: z.string(),\n\tfullMessage: z.string().optional(),\n\tstack: z.string().optional()\n});\nconst PlErrorLike = BasePlErrorLike.extend({\n\tcause: z.lazy(() => ErrorLike).optional(),\n\terrors: z.lazy(() => ErrorLike.array()).optional()\n});\nconst BaseStandardErrorLike = z.object({\n\ttype: z.literal(\"StandardError\"),\n\tname: z.string(),\n\tmessage: z.string(),\n\tstack: z.string().optional()\n});\nconst StandardErrorLike = BaseStandardErrorLike.extend({\n\tcause: z.lazy(() => ErrorLike).optional(),\n\terrors: z.lazy(() => ErrorLike.array()).optional()\n});\nconst ErrorLike = z.union([StandardErrorLike, PlErrorLike]);\n/** Converts everything into ErrorLike. */\nfunction ensureErrorLike(error) {\n\tconst result = ErrorShape.safeParse(error);\n\tif (result.success) {\n\t\tconst err = result.data;\n\t\tif (err.name === \"PlQuickJSError\" || err.name === \"PlErrorReport\" || err.name === \"PlInternalError\" || err.name === \"PlTengoError\" || err.name === \"PlRunnerError\" || err.name === \"PlMonetizationError\") return {\n\t\t\ttype: \"PlError\",\n\t\t\tname: err.name,\n\t\t\tmessage: err.message,\n\t\t\tfullMessage: err.fullMessage ?? void 0,\n\t\t\tstack: err.stack ?? void 0,\n\t\t\tcause: err.cause ? ensureErrorLike(err.cause) : void 0,\n\t\t\terrors: err.errors ? err.errors.map(ensureErrorLike) : void 0\n\t\t};\n\t\treturn {\n\t\t\ttype: \"StandardError\",\n\t\t\tname: err.name,\n\t\t\tmessage: err.message,\n\t\t\tstack: err.stack ?? void 0,\n\t\t\tcause: err.cause ? ensureErrorLike(err.cause) : void 0,\n\t\t\terrors: err.errors ? err.errors.map(ensureErrorLike) : void 0\n\t\t};\n\t}\n\treturn {\n\t\ttype: \"StandardError\",\n\t\tname: \"Error\",\n\t\tmessage: stringify(error)\n\t};\n}\n/** Tries to parse strings into ErrorLike. It's needed for keeping old blocks compatible with new UI. */\nfunction parseErrorLikeSafe(err) {\n\ttry {\n\t\treturn ErrorLike.safeParse(JSON.parse(err));\n\t} catch (e) {\n\t\treturn {\n\t\t\tsuccess: false,\n\t\t\terror: /* @__PURE__ */ new Error(`parseErrorLikeSafe: could not parse JSON: ${err}, ${String(e)}`)\n\t\t};\n\t}\n}\nconst ErrorShape = z.object({\n\tname: z.string(),\n\tmessage: z.string(),\n\tfullMessage: z.string().optional(),\n\tstack: z.string().optional()\n}).extend({\n\tcause: z.lazy(() => ErrorShape).optional(),\n\terrors: z.lazy(() => ErrorShape.array()).optional()\n});\n\n//#endregion\nexport { BasePlErrorLike, ErrorLike, PlErrorLike, StandardErrorLike, ensureErrorLike, parseErrorLikeSafe };\n//# sourceMappingURL=error_like_shape.js.map","export function getDefaultBlockLabel(data: {\n fileName?: string;\n similarityType: 'alignment-score' | 'sequence-identity';\n identity: number;\n coverageThreshold: number;\n}) {\n const parts: string[] = [];\n\n // Add file name if available\n if (data.fileName) {\n parts.push(data.fileName);\n }\n\n // Add similarity type label\n const similarityLabel = data.similarityType === 'alignment-score' ? 'BLOSUM' : 'Exact Match';\n if (similarityLabel) {\n parts.push(similarityLabel);\n }\n\n // Add identity threshold\n parts.push(`ident:${data.identity}`);\n\n // Add coverage threshold\n parts.push(`cov:${data.coverageThreshold}`);\n\n return parts.filter(Boolean).join(', ');\n}\n","import type {\n DataInfo,\n ImportFileHandle,\n PColumn,\n PColumnSpec,\n PColumnValues,\n PlDataTableStateV2,\n PlMultiSequenceAlignmentModel,\n PlRef,\n RenderCtxLegacy,\n SUniversalPColumnId,\n TreeNodeAccessor,\n} from '@platforma-sdk/model';\nimport {\n BlockModel,\n createPFrameForGraphs,\n createPlDataTableStateV2,\n createPlDataTableV2,\n} from '@platforma-sdk/model';\nimport { getDefaultBlockLabel } from './label';\n\ntype Settings = {\n coverageThreshold: number; // fraction of aligned residues required\n identity: number;\n similarityType: 'sequence-identity' | 'alignment-score';\n};\n\nexport type ImportColumnInfo = {\n header: string;\n type: 'Int' | 'Double' | 'String';\n /** If this column is a sequence column, the type of the sequence */\n sequenceType?: 'nucleotide' | 'aminoacid';\n};\n\nexport type BlockArgs = {\n defaultBlockLabel: string;\n customBlockLabel: string;\n datasetRef?: PlRef;\n targetRef?: SUniversalPColumnId;\n fileHandle?: ImportFileHandle;\n fileExtension?: string;\n detectedXsvType?: 'csv' | 'tsv';\n importColumns?: ImportColumnInfo[];\n sequenceColumnHeader?: string;\n selectedColumns: string[];\n settings: Settings;\n lessSensitive: boolean;\n mem?: number;\n cpu?: number;\n};\n\nexport type UiState = {\n fileImportError?: string;\n tableState: PlDataTableStateV2;\n alignmentModel: PlMultiSequenceAlignmentModel;\n};\n\ntype Column = PColumn<DataInfo<TreeNodeAccessor> | TreeNodeAccessor | PColumnValues>;\n\ntype Columns = {\n props: Column[];\n};\n\nfunction getColumns(ctx: RenderCtxLegacy<BlockArgs, UiState>): Columns | undefined {\n const anchor = ctx.args.datasetRef;\n if (anchor === undefined)\n return undefined;\n\n const anchorSpec = ctx.resultPool.getPColumnSpecByRef(anchor);\n if (anchorSpec === undefined)\n return undefined;\n\n // all clone properties\n const props = (ctx.resultPool.getAnchoredPColumns(\n { main: anchor },\n [\n {\n axes: [{ anchor: 'main', idx: 1 }],\n },\n ]) ?? [])\n .filter((p) => p.spec.annotations?.['pl7.app/sequence/isAnnotation'] !== 'true');\n\n return {\n props: props,\n };\n}\n\nexport const model = BlockModel.create()\n\n .withArgs<BlockArgs>({\n defaultBlockLabel: getDefaultBlockLabel({\n similarityType: 'alignment-score',\n identity: 0.9,\n coverageThreshold: 0.95,\n }),\n customBlockLabel: '',\n settings: {\n coverageThreshold: 0.95, // default value matching MMseqs2 default\n identity: 0.9,\n similarityType: 'alignment-score',\n },\n selectedColumns: [],\n lessSensitive: false,\n })\n\n .withUiState<UiState>({\n tableState: createPlDataTableStateV2(),\n alignmentModel: {},\n })\n\n .argsValid((ctx) =>\n ctx.args.datasetRef !== undefined\n && ctx.args.fileHandle !== undefined\n && ctx.args.importColumns !== undefined\n && ctx.args.sequenceColumnHeader !== undefined\n && ctx.args.targetRef !== undefined\n && ctx.uiState.fileImportError === undefined,\n )\n\n .output('datasetOptions', (ctx) =>\n ctx.resultPool.getOptions([{\n axes: [\n { name: 'pl7.app/sampleId' },\n { name: 'pl7.app/vdj/clonotypeKey' },\n ],\n annotations: { 'pl7.app/isAnchor': 'true' },\n }, {\n axes: [\n { name: 'pl7.app/sampleId' },\n { name: 'pl7.app/vdj/scClonotypeKey' },\n ],\n annotations: { 'pl7.app/isAnchor': 'true' },\n }], {}),\n )\n\n .output('targetOptions', (ctx) => {\n const ref = ctx.args.datasetRef;\n if (ref === undefined) return undefined;\n\n const isSingleCell = ctx.resultPool.getPColumnSpecByRef(ref)?.axesSpec[1].name === 'pl7.app/vdj/scClonotypeKey';\n const sequenceMatchers = [];\n // const allowedFeatures = ['CDR1', 'CDR2', 'CDR3', 'FR1', 'FR2',\n // 'FR3', 'FR4', 'VDJRegion'];\n // for (const feature of allowedFeatures) {\n if (isSingleCell) {\n sequenceMatchers.push({\n axes: [{ anchor: 'main', idx: 1 }],\n name: 'pl7.app/vdj/sequence',\n domain: {\n // 'pl7.app/vdj/feature': feature,\n 'pl7.app/vdj/scClonotypeChain/index': 'primary',\n },\n });\n } else {\n sequenceMatchers.push({\n axes: [{ anchor: 'main', idx: 1 }],\n name: 'pl7.app/vdj/sequence',\n domain: {\n // 'pl7.app/vdj/feature': feature,\n },\n });\n }\n\n return ctx.resultPool.getCanonicalOptions(\n { main: ref },\n sequenceMatchers,\n {\n ignoreMissingDomains: true,\n labelOps: {\n includeNativeLabel: true,\n },\n });\n })\n\n .output(\n 'dataImportHandle',\n (ctx) => ctx.outputs?.resolve('dataImportHandle')?.getImportProgress(),\n { isActive: true },\n )\n\n .outputWithStatus('table', (ctx) => {\n if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n\n return createPlDataTableV2(\n ctx,\n cols,\n ctx.uiState.tableState,\n );\n })\n\n .output('pf', (ctx) => {\n if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n\n return createPFrameForGraphs(ctx, cols);\n })\n\n .output('assaySequenceSpec', (ctx): PColumnSpec | undefined => {\n if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n // Return only sequence column\n return cols.find((c) => c.spec.name === 'pl7.app/vdj/sequence'\n && c.spec.axesSpec[0].name === 'pl7.app/vdj/assay/sequenceId')?.spec;\n })\n\n .output('msaPf', (ctx) => {\n if (ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true) {\n return undefined;\n }\n const cols = ctx.outputs?.resolve('table')?.getPColumns();\n if (cols === undefined)\n return undefined;\n\n const msaCols = ctx.outputs?.resolve('assayLinkerPframe')?.getPColumns();\n if (!msaCols) return undefined;\n\n const columns = getColumns(ctx);\n if (columns === undefined) {\n return undefined;\n }\n\n return createPFrameForGraphs(ctx, [...msaCols, ...cols, ...columns.props]);\n })\n\n .output('emptyClonesInput', (ctx) =>\n ctx.outputs?.resolve('emptyClonesInput')?.getDataAsJson<boolean>() === true,\n )\n\n .output('isRunning', (ctx) => ctx.outputs?.getIsReadyOrError() === false)\n\n .title(() => 'Immune Assay Data')\n\n .subtitle((ctx) => ctx.args.customBlockLabel || ctx.args.defaultBlockLabel)\n\n .sections((_ctx) => ([\n { type: 'link', href: '/', label: 'Main' },\n ]))\n\n .done(2);\n\nexport { getDefaultBlockLabel } from './label';\n"],"x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;ACW6B,gBAAc,MAAM;EAChD,OAAO;EACP,YAAY,aAAa;AACxB,SAAM,oBAAoB,YAAY,GAAG;;;;;;CCZ3C,SAAS,SAAS;AACjB,SAAO,OAAO,WAAW,iBAAiB,eAAe,OAAO,WAAW,cAAc;;;CAG1F,SAAS,qBAAqB,QAAQ;AACrC,MAAI,UAAU,OAAO,WAAW,iBAAiB,WAAY,QAAO,WAAW,aAAa,OAAO;WAC1F,OAAO,WAAW,cAAc,YAAa,QAAO,WAAW;MACnE,OAAM,IAAI,MAAM,gCAAgC;;CAEtD,SAAS,qBAAqB;AAC7B,MAAI,OAAO,WAAW,iBAAiB,YAAa,QAAO,WAAW;MACjE,QAAO,KAAK;;CAElB,SAAS,kBAAkB;AAC1B,MAAI,OAAO,WAAW,iBAAiB,YAAa,QAAO,WAAW;MACjE,OAAM,IAAI,MAAM,kCAAkC;;CAExD,SAAS,oBAAoB,KAAK,UAAU;EAC3C,MAAM,MAAM,oBAAoB;AAChC,MAAI,QAAQ,KAAK,EAAG,QAAO;AAC3B,MAAI,OAAO,IAAI,iBAAkB,OAAM,IAAI,MAAM,qBAAqB,IAAI,sBAAsB;AAChG,MAAI,iBAAiB,OAAO;AAC5B,SAAO;;;C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